published on Monday, Apr 20, 2026 by Chronosphere
published on Monday, Apr 20, 2026 by Chronosphere
Create ServiceAttribute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceAttribute(name: string, args: ServiceAttributeArgs, opts?: CustomResourceOptions);@overload
def ServiceAttribute(resource_name: str,
args: ServiceAttributeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceAttribute(resource_name: str,
opts: Optional[ResourceOptions] = None,
service_slug: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
notification_policy_id: Optional[str] = None,
team_id: Optional[str] = None)func NewServiceAttribute(ctx *Context, name string, args ServiceAttributeArgs, opts ...ResourceOption) (*ServiceAttribute, error)public ServiceAttribute(string name, ServiceAttributeArgs args, CustomResourceOptions? opts = null)
public ServiceAttribute(String name, ServiceAttributeArgs args)
public ServiceAttribute(String name, ServiceAttributeArgs args, CustomResourceOptions options)
type: chronosphere:ServiceAttribute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServiceAttributeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServiceAttributeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceAttributeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceAttributeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceAttributeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serviceAttributeResource = new Pulumi.ServiceAttribute("serviceAttributeResource", new()
{
ServiceSlug = "string",
Description = "string",
Name = "string",
NotificationPolicyId = "string",
TeamId = "string",
});
example, err := chronosphere.NewServiceAttribute(ctx, "serviceAttributeResource", &chronosphere.ServiceAttributeArgs{
ServiceSlug: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
NotificationPolicyId: pulumi.String("string"),
TeamId: pulumi.String("string"),
})
var serviceAttributeResource = new ServiceAttribute("serviceAttributeResource", ServiceAttributeArgs.builder()
.serviceSlug("string")
.description("string")
.name("string")
.notificationPolicyId("string")
.teamId("string")
.build());
service_attribute_resource = chronosphere.ServiceAttribute("serviceAttributeResource",
service_slug="string",
description="string",
name="string",
notification_policy_id="string",
team_id="string")
const serviceAttributeResource = new chronosphere.ServiceAttribute("serviceAttributeResource", {
serviceSlug: "string",
description: "string",
name: "string",
notificationPolicyId: "string",
teamId: "string",
});
type: chronosphere:ServiceAttribute
properties:
description: string
name: string
notificationPolicyId: string
serviceSlug: string
teamId: string
ServiceAttribute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ServiceAttribute resource accepts the following input properties:
- Service
Slug string - The slug of the service to associate attributes with
- Description string
- Human-readable description of the service
- Name string
- Name of the service
- Notification
Policy stringId - Notification policy ID for alerts
- Team
Id string - Team that owns the service
- Service
Slug string - The slug of the service to associate attributes with
- Description string
- Human-readable description of the service
- Name string
- Name of the service
- Notification
Policy stringId - Notification policy ID for alerts
- Team
Id string - Team that owns the service
- service
Slug String - The slug of the service to associate attributes with
- description String
- Human-readable description of the service
- name String
- Name of the service
- notification
Policy StringId - Notification policy ID for alerts
- team
Id String - Team that owns the service
- service
Slug string - The slug of the service to associate attributes with
- description string
- Human-readable description of the service
- name string
- Name of the service
- notification
Policy stringId - Notification policy ID for alerts
- team
Id string - Team that owns the service
- service_
slug str - The slug of the service to associate attributes with
- description str
- Human-readable description of the service
- name str
- Name of the service
- notification_
policy_ strid - Notification policy ID for alerts
- team_
id str - Team that owns the service
- service
Slug String - The slug of the service to associate attributes with
- description String
- Human-readable description of the service
- name String
- Name of the service
- notification
Policy StringId - Notification policy ID for alerts
- team
Id String - Team that owns the service
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceAttribute resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ServiceAttribute Resource
Get an existing ServiceAttribute resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServiceAttributeState, opts?: CustomResourceOptions): ServiceAttribute@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
notification_policy_id: Optional[str] = None,
service_slug: Optional[str] = None,
team_id: Optional[str] = None) -> ServiceAttributefunc GetServiceAttribute(ctx *Context, name string, id IDInput, state *ServiceAttributeState, opts ...ResourceOption) (*ServiceAttribute, error)public static ServiceAttribute Get(string name, Input<string> id, ServiceAttributeState? state, CustomResourceOptions? opts = null)public static ServiceAttribute get(String name, Output<String> id, ServiceAttributeState state, CustomResourceOptions options)resources: _: type: chronosphere:ServiceAttribute get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Description string
- Human-readable description of the service
- Name string
- Name of the service
- Notification
Policy stringId - Notification policy ID for alerts
- Service
Slug string - The slug of the service to associate attributes with
- Team
Id string - Team that owns the service
- Description string
- Human-readable description of the service
- Name string
- Name of the service
- Notification
Policy stringId - Notification policy ID for alerts
- Service
Slug string - The slug of the service to associate attributes with
- Team
Id string - Team that owns the service
- description String
- Human-readable description of the service
- name String
- Name of the service
- notification
Policy StringId - Notification policy ID for alerts
- service
Slug String - The slug of the service to associate attributes with
- team
Id String - Team that owns the service
- description string
- Human-readable description of the service
- name string
- Name of the service
- notification
Policy stringId - Notification policy ID for alerts
- service
Slug string - The slug of the service to associate attributes with
- team
Id string - Team that owns the service
- description str
- Human-readable description of the service
- name str
- Name of the service
- notification_
policy_ strid - Notification policy ID for alerts
- service_
slug str - The slug of the service to associate attributes with
- team_
id str - Team that owns the service
- description String
- Human-readable description of the service
- name String
- Name of the service
- notification
Policy StringId - Notification policy ID for alerts
- service
Slug String - The slug of the service to associate attributes with
- team
Id String - Team that owns the service
Package Details
- Repository
- chronosphere chronosphereio/pulumi-chronosphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
chronosphereTerraform Provider.
published on Monday, Apr 20, 2026 by Chronosphere
