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

dynatrace.LogSensitiveDataMasking

Explore with Pulumi AI

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

    Create LogSensitiveDataMasking Resource

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

    Constructor syntax

    new LogSensitiveDataMasking(name: string, args: LogSensitiveDataMaskingArgs, opts?: CustomResourceOptions);
    @overload
    def LogSensitiveDataMasking(resource_name: str,
                                args: LogSensitiveDataMaskingArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def LogSensitiveDataMasking(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                enabled: Optional[bool] = None,
                                masking: Optional[LogSensitiveDataMaskingMaskingArgs] = None,
                                insert_after: Optional[str] = None,
                                matchers: Optional[LogSensitiveDataMaskingMatchersArgs] = None,
                                name: Optional[str] = None,
                                scope: Optional[str] = None)
    func NewLogSensitiveDataMasking(ctx *Context, name string, args LogSensitiveDataMaskingArgs, opts ...ResourceOption) (*LogSensitiveDataMasking, error)
    public LogSensitiveDataMasking(string name, LogSensitiveDataMaskingArgs args, CustomResourceOptions? opts = null)
    public LogSensitiveDataMasking(String name, LogSensitiveDataMaskingArgs args)
    public LogSensitiveDataMasking(String name, LogSensitiveDataMaskingArgs args, CustomResourceOptions options)
    
    type: dynatrace:LogSensitiveDataMasking
    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 LogSensitiveDataMaskingArgs
    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 LogSensitiveDataMaskingArgs
    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 LogSensitiveDataMaskingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LogSensitiveDataMaskingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LogSensitiveDataMaskingArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var logSensitiveDataMaskingResource = new Dynatrace.LogSensitiveDataMasking("logSensitiveDataMaskingResource", new()
    {
        Enabled = false,
        Masking = new Dynatrace.Inputs.LogSensitiveDataMaskingMaskingArgs
        {
            Expression = "string",
            Type = "string",
            Replacement = "string",
        },
        InsertAfter = "string",
        Matchers = new Dynatrace.Inputs.LogSensitiveDataMaskingMatchersArgs
        {
            Matchers = new[]
            {
                new Dynatrace.Inputs.LogSensitiveDataMaskingMatchersMatcherArgs
                {
                    Attribute = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
        },
        Name = "string",
        Scope = "string",
    });
    
    example, err := dynatrace.NewLogSensitiveDataMasking(ctx, "logSensitiveDataMaskingResource", &dynatrace.LogSensitiveDataMaskingArgs{
    	Enabled: pulumi.Bool(false),
    	Masking: &dynatrace.LogSensitiveDataMaskingMaskingArgs{
    		Expression:  pulumi.String("string"),
    		Type:        pulumi.String("string"),
    		Replacement: pulumi.String("string"),
    	},
    	InsertAfter: pulumi.String("string"),
    	Matchers: &dynatrace.LogSensitiveDataMaskingMatchersArgs{
    		Matchers: dynatrace.LogSensitiveDataMaskingMatchersMatcherArray{
    			&dynatrace.LogSensitiveDataMaskingMatchersMatcherArgs{
    				Attribute: pulumi.String("string"),
    				Operator:  pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Name:  pulumi.String("string"),
    	Scope: pulumi.String("string"),
    })
    
    var logSensitiveDataMaskingResource = new LogSensitiveDataMasking("logSensitiveDataMaskingResource", LogSensitiveDataMaskingArgs.builder()
        .enabled(false)
        .masking(LogSensitiveDataMaskingMaskingArgs.builder()
            .expression("string")
            .type("string")
            .replacement("string")
            .build())
        .insertAfter("string")
        .matchers(LogSensitiveDataMaskingMatchersArgs.builder()
            .matchers(LogSensitiveDataMaskingMatchersMatcherArgs.builder()
                .attribute("string")
                .operator("string")
                .values("string")
                .build())
            .build())
        .name("string")
        .scope("string")
        .build());
    
    log_sensitive_data_masking_resource = dynatrace.LogSensitiveDataMasking("logSensitiveDataMaskingResource",
        enabled=False,
        masking=dynatrace.LogSensitiveDataMaskingMaskingArgs(
            expression="string",
            type="string",
            replacement="string",
        ),
        insert_after="string",
        matchers=dynatrace.LogSensitiveDataMaskingMatchersArgs(
            matchers=[dynatrace.LogSensitiveDataMaskingMatchersMatcherArgs(
                attribute="string",
                operator="string",
                values=["string"],
            )],
        ),
        name="string",
        scope="string")
    
    const logSensitiveDataMaskingResource = new dynatrace.LogSensitiveDataMasking("logSensitiveDataMaskingResource", {
        enabled: false,
        masking: {
            expression: "string",
            type: "string",
            replacement: "string",
        },
        insertAfter: "string",
        matchers: {
            matchers: [{
                attribute: "string",
                operator: "string",
                values: ["string"],
            }],
        },
        name: "string",
        scope: "string",
    });
    
    type: dynatrace:LogSensitiveDataMasking
    properties:
        enabled: false
        insertAfter: string
        masking:
            expression: string
            replacement: string
            type: string
        matchers:
            matchers:
                - attribute: string
                  operator: string
                  values:
                    - string
        name: string
        scope: string
    

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

    Enabled bool
    This setting is enabled (true) or disabled (false)
    Masking Pulumiverse.Dynatrace.Inputs.LogSensitiveDataMaskingMasking
    no documentation available
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Matchers Pulumiverse.Dynatrace.Inputs.LogSensitiveDataMaskingMatchers
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Masking LogSensitiveDataMaskingMaskingArgs
    no documentation available
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Matchers LogSensitiveDataMaskingMatchersArgs
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    masking LogSensitiveDataMaskingMasking
    no documentation available
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers LogSensitiveDataMaskingMatchers
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    masking LogSensitiveDataMaskingMasking
    no documentation available
    insertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers LogSensitiveDataMaskingMatchers
    no documentation available
    name string
    Name
    scope string
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.
    enabled bool
    This setting is enabled (true) or disabled (false)
    masking LogSensitiveDataMaskingMaskingArgs
    no documentation available
    insert_after str
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers LogSensitiveDataMaskingMatchersArgs
    no documentation available
    name str
    Name
    scope str
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    masking Property Map
    no documentation available
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    matchers Property Map
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.

    Outputs

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

    Get an existing LogSensitiveDataMasking 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?: LogSensitiveDataMaskingState, opts?: CustomResourceOptions): LogSensitiveDataMasking
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            insert_after: Optional[str] = None,
            masking: Optional[LogSensitiveDataMaskingMaskingArgs] = None,
            matchers: Optional[LogSensitiveDataMaskingMatchersArgs] = None,
            name: Optional[str] = None,
            scope: Optional[str] = None) -> LogSensitiveDataMasking
    func GetLogSensitiveDataMasking(ctx *Context, name string, id IDInput, state *LogSensitiveDataMaskingState, opts ...ResourceOption) (*LogSensitiveDataMasking, error)
    public static LogSensitiveDataMasking Get(string name, Input<string> id, LogSensitiveDataMaskingState? state, CustomResourceOptions? opts = null)
    public static LogSensitiveDataMasking get(String name, Output<String> id, LogSensitiveDataMaskingState 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:
    Enabled bool
    This setting is enabled (true) or disabled (false)
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Masking Pulumiverse.Dynatrace.Inputs.LogSensitiveDataMaskingMasking
    no documentation available
    Matchers Pulumiverse.Dynatrace.Inputs.LogSensitiveDataMaskingMatchers
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    InsertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    Masking LogSensitiveDataMaskingMaskingArgs
    no documentation available
    Matchers LogSensitiveDataMaskingMatchersArgs
    no documentation available
    Name string
    Name
    Scope string
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    masking LogSensitiveDataMaskingMasking
    no documentation available
    matchers LogSensitiveDataMaskingMatchers
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    insertAfter string
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    masking LogSensitiveDataMaskingMasking
    no documentation available
    matchers LogSensitiveDataMaskingMatchers
    no documentation available
    name string
    Name
    scope string
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.
    enabled bool
    This setting is enabled (true) or disabled (false)
    insert_after str
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    masking LogSensitiveDataMaskingMaskingArgs
    no documentation available
    matchers LogSensitiveDataMaskingMatchersArgs
    no documentation available
    name str
    Name
    scope str
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    insertAfter String
    Because this resource allows for ordering you may specify the ID of the resource instance that comes before this instance regarding order. If not specified when creating the setting will be added to the end of the list. If not specified during update the order will remain untouched
    masking Property Map
    no documentation available
    matchers Property Map
    no documentation available
    name String
    Name
    scope String
    The scope of this setting (HOST-########, HOST_GROUP-########). Omit this property if you want to cover the whole environment.

    Supporting Types

    LogSensitiveDataMaskingMasking, LogSensitiveDataMaskingMaskingArgs

    Expression string
    Maximum one capture group is allowed. If none was given, the whole expression will be treated as a capture group.
    Type string
    Possible Values: SHA1, STRING
    Replacement string
    The string to replace the masked expression with. Irrelevant if type is SHA1.
    Expression string
    Maximum one capture group is allowed. If none was given, the whole expression will be treated as a capture group.
    Type string
    Possible Values: SHA1, STRING
    Replacement string
    The string to replace the masked expression with. Irrelevant if type is SHA1.
    expression String
    Maximum one capture group is allowed. If none was given, the whole expression will be treated as a capture group.
    type String
    Possible Values: SHA1, STRING
    replacement String
    The string to replace the masked expression with. Irrelevant if type is SHA1.
    expression string
    Maximum one capture group is allowed. If none was given, the whole expression will be treated as a capture group.
    type string
    Possible Values: SHA1, STRING
    replacement string
    The string to replace the masked expression with. Irrelevant if type is SHA1.
    expression str
    Maximum one capture group is allowed. If none was given, the whole expression will be treated as a capture group.
    type str
    Possible Values: SHA1, STRING
    replacement str
    The string to replace the masked expression with. Irrelevant if type is SHA1.
    expression String
    Maximum one capture group is allowed. If none was given, the whole expression will be treated as a capture group.
    type String
    Possible Values: SHA1, STRING
    replacement String
    The string to replace the masked expression with. Irrelevant if type is SHA1.

    LogSensitiveDataMaskingMatchers, LogSensitiveDataMaskingMatchersArgs

    LogSensitiveDataMaskingMatchersMatcher, LogSensitiveDataMaskingMatchersMatcherArgs

    Attribute string
    Possible Values: container.name, dt.entity.container_group, dt.entity.process_group, k8s.container.name, k8s.deployment.name, k8s.namespace.name, log.source, process.technology and host.tag
    Operator string
    Possible Values: MATCHES
    Values List<string>
    no documentation available
    Attribute string
    Possible Values: container.name, dt.entity.container_group, dt.entity.process_group, k8s.container.name, k8s.deployment.name, k8s.namespace.name, log.source, process.technology and host.tag
    Operator string
    Possible Values: MATCHES
    Values []string
    no documentation available
    attribute String
    Possible Values: container.name, dt.entity.container_group, dt.entity.process_group, k8s.container.name, k8s.deployment.name, k8s.namespace.name, log.source, process.technology and host.tag
    operator String
    Possible Values: MATCHES
    values List<String>
    no documentation available
    attribute string
    Possible Values: container.name, dt.entity.container_group, dt.entity.process_group, k8s.container.name, k8s.deployment.name, k8s.namespace.name, log.source, process.technology and host.tag
    operator string
    Possible Values: MATCHES
    values string[]
    no documentation available
    attribute str
    Possible Values: container.name, dt.entity.container_group, dt.entity.process_group, k8s.container.name, k8s.deployment.name, k8s.namespace.name, log.source, process.technology and host.tag
    operator str
    Possible Values: MATCHES
    values Sequence[str]
    no documentation available
    attribute String
    Possible Values: container.name, dt.entity.container_group, dt.entity.process_group, k8s.container.name, k8s.deployment.name, k8s.namespace.name, log.source, process.technology and host.tag
    operator String
    Possible Values: MATCHES
    values List<String>
    no documentation available

    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