1. Packages
  2. Dynatrace
  3. API Docs
  4. KubernetesEnrichment
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

dynatrace.KubernetesEnrichment

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse

    Create KubernetesEnrichment Resource

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

    Constructor syntax

    new KubernetesEnrichment(name: string, args?: KubernetesEnrichmentArgs, opts?: CustomResourceOptions);
    @overload
    def KubernetesEnrichment(resource_name: str,
                             args: Optional[KubernetesEnrichmentArgs] = None,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def KubernetesEnrichment(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             rules: Optional[KubernetesEnrichmentRulesArgs] = None,
                             scope: Optional[str] = None)
    func NewKubernetesEnrichment(ctx *Context, name string, args *KubernetesEnrichmentArgs, opts ...ResourceOption) (*KubernetesEnrichment, error)
    public KubernetesEnrichment(string name, KubernetesEnrichmentArgs? args = null, CustomResourceOptions? opts = null)
    public KubernetesEnrichment(String name, KubernetesEnrichmentArgs args)
    public KubernetesEnrichment(String name, KubernetesEnrichmentArgs args, CustomResourceOptions options)
    
    type: dynatrace:KubernetesEnrichment
    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 KubernetesEnrichmentArgs
    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 KubernetesEnrichmentArgs
    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 KubernetesEnrichmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args KubernetesEnrichmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args KubernetesEnrichmentArgs
    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 kubernetesEnrichmentResource = new Dynatrace.KubernetesEnrichment("kubernetesEnrichmentResource", new()
    {
        Rules = new Dynatrace.Inputs.KubernetesEnrichmentRulesArgs
        {
            Rules = new[]
            {
                new Dynatrace.Inputs.KubernetesEnrichmentRulesRuleArgs
                {
                    Enabled = false,
                    Source = "string",
                    Target = "string",
                    Type = "string",
                },
            },
        },
        Scope = "string",
    });
    
    example, err := dynatrace.NewKubernetesEnrichment(ctx, "kubernetesEnrichmentResource", &dynatrace.KubernetesEnrichmentArgs{
    	Rules: &dynatrace.KubernetesEnrichmentRulesArgs{
    		Rules: dynatrace.KubernetesEnrichmentRulesRuleArray{
    			&dynatrace.KubernetesEnrichmentRulesRuleArgs{
    				Enabled: pulumi.Bool(false),
    				Source:  pulumi.String("string"),
    				Target:  pulumi.String("string"),
    				Type:    pulumi.String("string"),
    			},
    		},
    	},
    	Scope: pulumi.String("string"),
    })
    
    var kubernetesEnrichmentResource = new KubernetesEnrichment("kubernetesEnrichmentResource", KubernetesEnrichmentArgs.builder()
        .rules(KubernetesEnrichmentRulesArgs.builder()
            .rules(KubernetesEnrichmentRulesRuleArgs.builder()
                .enabled(false)
                .source("string")
                .target("string")
                .type("string")
                .build())
            .build())
        .scope("string")
        .build());
    
    kubernetes_enrichment_resource = dynatrace.KubernetesEnrichment("kubernetesEnrichmentResource",
        rules={
            "rules": [{
                "enabled": False,
                "source": "string",
                "target": "string",
                "type": "string",
            }],
        },
        scope="string")
    
    const kubernetesEnrichmentResource = new dynatrace.KubernetesEnrichment("kubernetesEnrichmentResource", {
        rules: {
            rules: [{
                enabled: false,
                source: "string",
                target: "string",
                type: "string",
            }],
        },
        scope: "string",
    });
    
    type: dynatrace:KubernetesEnrichment
    properties:
        rules:
            rules:
                - enabled: false
                  source: string
                  target: string
                  type: string
        scope: string
    

    KubernetesEnrichment 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 KubernetesEnrichment resource accepts the following input properties:

    Rules Pulumiverse.Dynatrace.Inputs.KubernetesEnrichmentRules
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    Scope string
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
    Rules KubernetesEnrichmentRulesArgs
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    Scope string
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
    rules KubernetesEnrichmentRules
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    scope String
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
    rules KubernetesEnrichmentRules
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    scope string
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
    rules KubernetesEnrichmentRulesArgs
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    scope str
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
    rules Property Map
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    scope String
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.

    Outputs

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

    Get an existing KubernetesEnrichment 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?: KubernetesEnrichmentState, opts?: CustomResourceOptions): KubernetesEnrichment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            rules: Optional[KubernetesEnrichmentRulesArgs] = None,
            scope: Optional[str] = None) -> KubernetesEnrichment
    func GetKubernetesEnrichment(ctx *Context, name string, id IDInput, state *KubernetesEnrichmentState, opts ...ResourceOption) (*KubernetesEnrichment, error)
    public static KubernetesEnrichment Get(string name, Input<string> id, KubernetesEnrichmentState? state, CustomResourceOptions? opts = null)
    public static KubernetesEnrichment get(String name, Output<String> id, KubernetesEnrichmentState 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:
    Rules Pulumiverse.Dynatrace.Inputs.KubernetesEnrichmentRules
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    Scope string
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
    Rules KubernetesEnrichmentRulesArgs
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    Scope string
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
    rules KubernetesEnrichmentRules
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    scope String
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
    rules KubernetesEnrichmentRules
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    scope string
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
    rules KubernetesEnrichmentRulesArgs
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    scope str
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.
    rules Property Map
    Dynatrace allows to use metadata defined on Kubernetes nodes, namespaces, and pods to set security and cost allocation attributes and dimensions for metrics, events, log, spans, and entities associated with the respective Kubernetes resource.
    scope String
    The scope of this setting (KUBERNETES_CLUSTER). Omit this property if you want to cover the whole environment.

    Supporting Types

    KubernetesEnrichmentRules, KubernetesEnrichmentRulesArgs

    KubernetesEnrichmentRulesRule, KubernetesEnrichmentRulesRuleArgs

    Enabled bool
    This setting is enabled (true) or disabled (false)
    Source string
    The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
    Target string
    Possible Values: Dt_cost_costcenter, Dt_cost_product, Dt_security_context
    Type string
    Possible Values: ANNOTATION, LABEL
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Source string
    The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
    Target string
    Possible Values: Dt_cost_costcenter, Dt_cost_product, Dt_security_context
    Type string
    Possible Values: ANNOTATION, LABEL
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    source String
    The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
    target String
    Possible Values: Dt_cost_costcenter, Dt_cost_product, Dt_security_context
    type String
    Possible Values: ANNOTATION, LABEL
    enabled boolean
    This setting is enabled (true) or disabled (false)
    source string
    The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
    target string
    Possible Values: Dt_cost_costcenter, Dt_cost_product, Dt_security_context
    type string
    Possible Values: ANNOTATION, LABEL
    enabled bool
    This setting is enabled (true) or disabled (false)
    source str
    The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
    target str
    Possible Values: Dt_cost_costcenter, Dt_cost_product, Dt_security_context
    type str
    Possible Values: ANNOTATION, LABEL
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    source String
    The source must follow the syntax of Kubernetes annotation/label keys as defined in the Kubernetes documentation.
    target String
    Possible Values: Dt_cost_costcenter, Dt_cost_product, Dt_security_context
    type String
    Possible Values: ANNOTATION, LABEL

    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.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse