1. Packages
  2. Dynatrace
  3. API Docs
  4. CustomTags
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

dynatrace.CustomTags

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse

    Create CustomTags Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CustomTags(name: string, args: CustomTagsArgs, opts?: CustomResourceOptions);
    @overload
    def CustomTags(resource_name: str,
                   args: CustomTagsArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def CustomTags(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   entity_selector: Optional[str] = None,
                   tags: Optional[CustomTagsTagsArgs] = None,
                   current_state: Optional[str] = None,
                   matched_entities: Optional[int] = None)
    func NewCustomTags(ctx *Context, name string, args CustomTagsArgs, opts ...ResourceOption) (*CustomTags, error)
    public CustomTags(string name, CustomTagsArgs args, CustomResourceOptions? opts = null)
    public CustomTags(String name, CustomTagsArgs args)
    public CustomTags(String name, CustomTagsArgs args, CustomResourceOptions options)
    
    type: dynatrace:CustomTags
    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 CustomTagsArgs
    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 CustomTagsArgs
    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 CustomTagsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomTagsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomTagsArgs
    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 customTagsResource = new Dynatrace.CustomTags("customTagsResource", new()
    {
        EntitySelector = "string",
        Tags = new Dynatrace.Inputs.CustomTagsTagsArgs
        {
            Filters = new[]
            {
                new Dynatrace.Inputs.CustomTagsTagsFilterArgs
                {
                    Context = "string",
                    Key = "string",
                    Value = "string",
                },
            },
        },
        CurrentState = "string",
        MatchedEntities = 0,
    });
    
    example, err := dynatrace.NewCustomTags(ctx, "customTagsResource", &dynatrace.CustomTagsArgs{
    	EntitySelector: pulumi.String("string"),
    	Tags: &dynatrace.CustomTagsTagsArgs{
    		Filters: dynatrace.CustomTagsTagsFilterArray{
    			&dynatrace.CustomTagsTagsFilterArgs{
    				Context: pulumi.String("string"),
    				Key:     pulumi.String("string"),
    				Value:   pulumi.String("string"),
    			},
    		},
    	},
    	CurrentState:    pulumi.String("string"),
    	MatchedEntities: pulumi.Int(0),
    })
    
    var customTagsResource = new CustomTags("customTagsResource", CustomTagsArgs.builder()
        .entitySelector("string")
        .tags(CustomTagsTagsArgs.builder()
            .filters(CustomTagsTagsFilterArgs.builder()
                .context("string")
                .key("string")
                .value("string")
                .build())
            .build())
        .currentState("string")
        .matchedEntities(0)
        .build());
    
    custom_tags_resource = dynatrace.CustomTags("customTagsResource",
        entity_selector="string",
        tags=dynatrace.CustomTagsTagsArgs(
            filters=[dynatrace.CustomTagsTagsFilterArgs(
                context="string",
                key="string",
                value="string",
            )],
        ),
        current_state="string",
        matched_entities=0)
    
    const customTagsResource = new dynatrace.CustomTags("customTagsResource", {
        entitySelector: "string",
        tags: {
            filters: [{
                context: "string",
                key: "string",
                value: "string",
            }],
        },
        currentState: "string",
        matchedEntities: 0,
    });
    
    type: dynatrace:CustomTags
    properties:
        currentState: string
        entitySelector: string
        matchedEntities: 0
        tags:
            filters:
                - context: string
                  key: string
                  value: string
    

    CustomTags Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The CustomTags resource accepts the following input properties:

    EntitySelector string
    Specifies the entities where you want to update tags
    Tags Pulumiverse.Dynatrace.Inputs.CustomTagsTags
    Specifies the entities where you want to update tags
    CurrentState string
    For internal use: current state of tags in JSON format
    MatchedEntities int
    The number of monitored entities where the tags have been added.
    EntitySelector string
    Specifies the entities where you want to update tags
    Tags CustomTagsTagsArgs
    Specifies the entities where you want to update tags
    CurrentState string
    For internal use: current state of tags in JSON format
    MatchedEntities int
    The number of monitored entities where the tags have been added.
    entitySelector String
    Specifies the entities where you want to update tags
    tags CustomTagsTags
    Specifies the entities where you want to update tags
    currentState String
    For internal use: current state of tags in JSON format
    matchedEntities Integer
    The number of monitored entities where the tags have been added.
    entitySelector string
    Specifies the entities where you want to update tags
    tags CustomTagsTags
    Specifies the entities where you want to update tags
    currentState string
    For internal use: current state of tags in JSON format
    matchedEntities number
    The number of monitored entities where the tags have been added.
    entity_selector str
    Specifies the entities where you want to update tags
    tags CustomTagsTagsArgs
    Specifies the entities where you want to update tags
    current_state str
    For internal use: current state of tags in JSON format
    matched_entities int
    The number of monitored entities where the tags have been added.
    entitySelector String
    Specifies the entities where you want to update tags
    tags Property Map
    Specifies the entities where you want to update tags
    currentState String
    For internal use: current state of tags in JSON format
    matchedEntities Number
    The number of monitored entities where the tags have been added.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CustomTags 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 CustomTags Resource

    Get an existing CustomTags 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?: CustomTagsState, opts?: CustomResourceOptions): CustomTags
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            current_state: Optional[str] = None,
            entity_selector: Optional[str] = None,
            matched_entities: Optional[int] = None,
            tags: Optional[CustomTagsTagsArgs] = None) -> CustomTags
    func GetCustomTags(ctx *Context, name string, id IDInput, state *CustomTagsState, opts ...ResourceOption) (*CustomTags, error)
    public static CustomTags Get(string name, Input<string> id, CustomTagsState? state, CustomResourceOptions? opts = null)
    public static CustomTags get(String name, Output<String> id, CustomTagsState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    CurrentState string
    For internal use: current state of tags in JSON format
    EntitySelector string
    Specifies the entities where you want to update tags
    MatchedEntities int
    The number of monitored entities where the tags have been added.
    Tags Pulumiverse.Dynatrace.Inputs.CustomTagsTags
    Specifies the entities where you want to update tags
    CurrentState string
    For internal use: current state of tags in JSON format
    EntitySelector string
    Specifies the entities where you want to update tags
    MatchedEntities int
    The number of monitored entities where the tags have been added.
    Tags CustomTagsTagsArgs
    Specifies the entities where you want to update tags
    currentState String
    For internal use: current state of tags in JSON format
    entitySelector String
    Specifies the entities where you want to update tags
    matchedEntities Integer
    The number of monitored entities where the tags have been added.
    tags CustomTagsTags
    Specifies the entities where you want to update tags
    currentState string
    For internal use: current state of tags in JSON format
    entitySelector string
    Specifies the entities where you want to update tags
    matchedEntities number
    The number of monitored entities where the tags have been added.
    tags CustomTagsTags
    Specifies the entities where you want to update tags
    current_state str
    For internal use: current state of tags in JSON format
    entity_selector str
    Specifies the entities where you want to update tags
    matched_entities int
    The number of monitored entities where the tags have been added.
    tags CustomTagsTagsArgs
    Specifies the entities where you want to update tags
    currentState String
    For internal use: current state of tags in JSON format
    entitySelector String
    Specifies the entities where you want to update tags
    matchedEntities Number
    The number of monitored entities where the tags have been added.
    tags Property Map
    Specifies the entities where you want to update tags

    Supporting Types

    CustomTagsTags, CustomTagsTagsArgs

    CustomTagsTagsFilter, CustomTagsTagsFilterArgs

    Context string
    The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the CONTEXTLESS value
    Key string
    The key of the tag. Custom tags have the tag value here
    Value string
    The value of the tag. Not applicable to custom tags
    Context string
    The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the CONTEXTLESS value
    Key string
    The key of the tag. Custom tags have the tag value here
    Value string
    The value of the tag. Not applicable to custom tags
    context String
    The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the CONTEXTLESS value
    key String
    The key of the tag. Custom tags have the tag value here
    value String
    The value of the tag. Not applicable to custom tags
    context string
    The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the CONTEXTLESS value
    key string
    The key of the tag. Custom tags have the tag value here
    value string
    The value of the tag. Not applicable to custom tags
    context str
    The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the CONTEXTLESS value
    key str
    The key of the tag. Custom tags have the tag value here
    value str
    The value of the tag. Not applicable to custom tags
    context String
    The origin of the tag, such as AWS or Cloud Foundry. Custom tags use the CONTEXTLESS value
    key String
    The key of the tag. Custom tags have the tag value here
    value String
    The value of the tag. Not applicable to custom tags

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse