1. Packages
  2. Packages
  3. Chronosphere
  4. API Docs
  5. ServiceAttribute
Viewing docs for Chronosphere v0.9.14
published on Monday, Apr 20, 2026 by Chronosphere
Viewing docs for Chronosphere v0.9.14
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:

    ServiceSlug string
    The slug of the service to associate attributes with
    Description string
    Human-readable description of the service
    Name string
    Name of the service
    NotificationPolicyId string
    Notification policy ID for alerts
    TeamId string
    Team that owns the service
    ServiceSlug string
    The slug of the service to associate attributes with
    Description string
    Human-readable description of the service
    Name string
    Name of the service
    NotificationPolicyId string
    Notification policy ID for alerts
    TeamId string
    Team that owns the service
    serviceSlug String
    The slug of the service to associate attributes with
    description String
    Human-readable description of the service
    name String
    Name of the service
    notificationPolicyId String
    Notification policy ID for alerts
    teamId String
    Team that owns the service
    serviceSlug string
    The slug of the service to associate attributes with
    description string
    Human-readable description of the service
    name string
    Name of the service
    notificationPolicyId string
    Notification policy ID for alerts
    teamId 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_id str
    Notification policy ID for alerts
    team_id str
    Team that owns the service
    serviceSlug String
    The slug of the service to associate attributes with
    description String
    Human-readable description of the service
    name String
    Name of the service
    notificationPolicyId String
    Notification policy ID for alerts
    teamId 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) -> ServiceAttribute
    func 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.
    The following state arguments are supported:
    Description string
    Human-readable description of the service
    Name string
    Name of the service
    NotificationPolicyId string
    Notification policy ID for alerts
    ServiceSlug string
    The slug of the service to associate attributes with
    TeamId string
    Team that owns the service
    Description string
    Human-readable description of the service
    Name string
    Name of the service
    NotificationPolicyId string
    Notification policy ID for alerts
    ServiceSlug string
    The slug of the service to associate attributes with
    TeamId string
    Team that owns the service
    description String
    Human-readable description of the service
    name String
    Name of the service
    notificationPolicyId String
    Notification policy ID for alerts
    serviceSlug String
    The slug of the service to associate attributes with
    teamId String
    Team that owns the service
    description string
    Human-readable description of the service
    name string
    Name of the service
    notificationPolicyId string
    Notification policy ID for alerts
    serviceSlug string
    The slug of the service to associate attributes with
    teamId string
    Team that owns the service
    description str
    Human-readable description of the service
    name str
    Name of the service
    notification_policy_id str
    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
    notificationPolicyId String
    Notification policy ID for alerts
    serviceSlug String
    The slug of the service to associate attributes with
    teamId 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 chronosphere Terraform Provider.
    Viewing docs for Chronosphere v0.9.14
    published on Monday, Apr 20, 2026 by Chronosphere
      Try Pulumi Cloud free. Your team will thank you.