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

dynatrace.AttackAllowlist

Explore with Pulumi AI

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

    Create AttackAllowlist Resource

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

    Constructor syntax

    new AttackAllowlist(name: string, args: AttackAllowlistArgs, opts?: CustomResourceOptions);
    @overload
    def AttackAllowlist(resource_name: str,
                        args: AttackAllowlistArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def AttackAllowlist(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        attack_handling: Optional[AttackAllowlistAttackHandlingArgs] = None,
                        criteria: Optional[AttackAllowlistCriteriaArgs] = None,
                        enabled: Optional[bool] = None,
                        metadata: Optional[AttackAllowlistMetadataArgs] = None,
                        insert_after: Optional[str] = None)
    func NewAttackAllowlist(ctx *Context, name string, args AttackAllowlistArgs, opts ...ResourceOption) (*AttackAllowlist, error)
    public AttackAllowlist(string name, AttackAllowlistArgs args, CustomResourceOptions? opts = null)
    public AttackAllowlist(String name, AttackAllowlistArgs args)
    public AttackAllowlist(String name, AttackAllowlistArgs args, CustomResourceOptions options)
    
    type: dynatrace:AttackAllowlist
    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 AttackAllowlistArgs
    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 AttackAllowlistArgs
    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 AttackAllowlistArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AttackAllowlistArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AttackAllowlistArgs
    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 attackAllowlistResource = new Dynatrace.AttackAllowlist("attackAllowlistResource", new()
    {
        AttackHandling = new Dynatrace.Inputs.AttackAllowlistAttackHandlingArgs
        {
            BlockingStrategy = "string",
        },
        Criteria = new Dynatrace.Inputs.AttackAllowlistCriteriaArgs
        {
            AttackPattern = "string",
            SourceIp = "string",
        },
        Enabled = false,
        Metadata = new Dynatrace.Inputs.AttackAllowlistMetadataArgs
        {
            Comment = "string",
        },
        InsertAfter = "string",
    });
    
    example, err := dynatrace.NewAttackAllowlist(ctx, "attackAllowlistResource", &dynatrace.AttackAllowlistArgs{
    	AttackHandling: &dynatrace.AttackAllowlistAttackHandlingArgs{
    		BlockingStrategy: pulumi.String("string"),
    	},
    	Criteria: &dynatrace.AttackAllowlistCriteriaArgs{
    		AttackPattern: pulumi.String("string"),
    		SourceIp:      pulumi.String("string"),
    	},
    	Enabled: pulumi.Bool(false),
    	Metadata: &dynatrace.AttackAllowlistMetadataArgs{
    		Comment: pulumi.String("string"),
    	},
    	InsertAfter: pulumi.String("string"),
    })
    
    var attackAllowlistResource = new AttackAllowlist("attackAllowlistResource", AttackAllowlistArgs.builder()
        .attackHandling(AttackAllowlistAttackHandlingArgs.builder()
            .blockingStrategy("string")
            .build())
        .criteria(AttackAllowlistCriteriaArgs.builder()
            .attackPattern("string")
            .sourceIp("string")
            .build())
        .enabled(false)
        .metadata(AttackAllowlistMetadataArgs.builder()
            .comment("string")
            .build())
        .insertAfter("string")
        .build());
    
    attack_allowlist_resource = dynatrace.AttackAllowlist("attackAllowlistResource",
        attack_handling={
            "blocking_strategy": "string",
        },
        criteria={
            "attack_pattern": "string",
            "source_ip": "string",
        },
        enabled=False,
        metadata={
            "comment": "string",
        },
        insert_after="string")
    
    const attackAllowlistResource = new dynatrace.AttackAllowlist("attackAllowlistResource", {
        attackHandling: {
            blockingStrategy: "string",
        },
        criteria: {
            attackPattern: "string",
            sourceIp: "string",
        },
        enabled: false,
        metadata: {
            comment: "string",
        },
        insertAfter: "string",
    });
    
    type: dynatrace:AttackAllowlist
    properties:
        attackHandling:
            blockingStrategy: string
        criteria:
            attackPattern: string
            sourceIp: string
        enabled: false
        insertAfter: string
        metadata:
            comment: string
    

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

    AttackHandling Pulumiverse.Dynatrace.Inputs.AttackAllowlistAttackHandling
    Step 2: Define attack control for chosen criteria
    Criteria Pulumiverse.Dynatrace.Inputs.AttackAllowlistCriteria
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Metadata Pulumiverse.Dynatrace.Inputs.AttackAllowlistMetadata
    Step 3: Leave comment
    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
    AttackHandling AttackAllowlistAttackHandlingArgs
    Step 2: Define attack control for chosen criteria
    Criteria AttackAllowlistCriteriaArgs
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Metadata AttackAllowlistMetadataArgs
    Step 3: Leave comment
    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
    attackHandling AttackAllowlistAttackHandling
    Step 2: Define attack control for chosen criteria
    criteria AttackAllowlistCriteria
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    metadata AttackAllowlistMetadata
    Step 3: Leave comment
    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
    attackHandling AttackAllowlistAttackHandling
    Step 2: Define attack control for chosen criteria
    criteria AttackAllowlistCriteria
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    enabled boolean
    This setting is enabled (true) or disabled (false)
    metadata AttackAllowlistMetadata
    Step 3: Leave comment
    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
    attack_handling AttackAllowlistAttackHandlingArgs
    Step 2: Define attack control for chosen criteria
    criteria AttackAllowlistCriteriaArgs
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    enabled bool
    This setting is enabled (true) or disabled (false)
    metadata AttackAllowlistMetadataArgs
    Step 3: Leave comment
    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
    attackHandling Property Map
    Step 2: Define attack control for chosen criteria
    criteria Property Map
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    metadata Property Map
    Step 3: Leave comment
    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

    Outputs

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

    Get an existing AttackAllowlist 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?: AttackAllowlistState, opts?: CustomResourceOptions): AttackAllowlist
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attack_handling: Optional[AttackAllowlistAttackHandlingArgs] = None,
            criteria: Optional[AttackAllowlistCriteriaArgs] = None,
            enabled: Optional[bool] = None,
            insert_after: Optional[str] = None,
            metadata: Optional[AttackAllowlistMetadataArgs] = None) -> AttackAllowlist
    func GetAttackAllowlist(ctx *Context, name string, id IDInput, state *AttackAllowlistState, opts ...ResourceOption) (*AttackAllowlist, error)
    public static AttackAllowlist Get(string name, Input<string> id, AttackAllowlistState? state, CustomResourceOptions? opts = null)
    public static AttackAllowlist get(String name, Output<String> id, AttackAllowlistState 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:
    AttackHandling Pulumiverse.Dynatrace.Inputs.AttackAllowlistAttackHandling
    Step 2: Define attack control for chosen criteria
    Criteria Pulumiverse.Dynatrace.Inputs.AttackAllowlistCriteria
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    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
    Metadata Pulumiverse.Dynatrace.Inputs.AttackAllowlistMetadata
    Step 3: Leave comment
    AttackHandling AttackAllowlistAttackHandlingArgs
    Step 2: Define attack control for chosen criteria
    Criteria AttackAllowlistCriteriaArgs
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    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
    Metadata AttackAllowlistMetadataArgs
    Step 3: Leave comment
    attackHandling AttackAllowlistAttackHandling
    Step 2: Define attack control for chosen criteria
    criteria AttackAllowlistCriteria
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    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
    metadata AttackAllowlistMetadata
    Step 3: Leave comment
    attackHandling AttackAllowlistAttackHandling
    Step 2: Define attack control for chosen criteria
    criteria AttackAllowlistCriteria
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    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
    metadata AttackAllowlistMetadata
    Step 3: Leave comment
    attack_handling AttackAllowlistAttackHandlingArgs
    Step 2: Define attack control for chosen criteria
    criteria AttackAllowlistCriteriaArgs
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    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
    metadata AttackAllowlistMetadataArgs
    Step 3: Leave comment
    attackHandling Property Map
    Step 2: Define attack control for chosen criteria
    criteria Property Map
    Step 1: Define criteria. Please specify at least one of source IP or attack pattern.
    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
    metadata Property Map
    Step 3: Leave comment

    Supporting Types

    AttackAllowlistAttackHandling, AttackAllowlistAttackHandlingArgs

    BlockingStrategy string
    Possible Values: MONITOR, OFF
    BlockingStrategy string
    Possible Values: MONITOR, OFF
    blockingStrategy String
    Possible Values: MONITOR, OFF
    blockingStrategy string
    Possible Values: MONITOR, OFF
    blocking_strategy str
    Possible Values: MONITOR, OFF
    blockingStrategy String
    Possible Values: MONITOR, OFF

    AttackAllowlistCriteria, AttackAllowlistCriteriaArgs

    AttackPattern string
    Only consider attacks matching the specified pattern.
    SourceIp string
    Source IP
    AttackPattern string
    Only consider attacks matching the specified pattern.
    SourceIp string
    Source IP
    attackPattern String
    Only consider attacks matching the specified pattern.
    sourceIp String
    Source IP
    attackPattern string
    Only consider attacks matching the specified pattern.
    sourceIp string
    Source IP
    attack_pattern str
    Only consider attacks matching the specified pattern.
    source_ip str
    Source IP
    attackPattern String
    Only consider attacks matching the specified pattern.
    sourceIp String
    Source IP

    AttackAllowlistMetadata, AttackAllowlistMetadataArgs

    Comment string
    no documentation available
    Comment string
    no documentation available
    comment String
    no documentation available
    comment string
    no documentation available
    comment str
    no documentation available
    comment 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.21.0 published on Sunday, Nov 17, 2024 by Pulumiverse