1. Packages
  2. Dynatrace
  3. API Docs
  4. AttackRules
Dynatrace v0.12.0 published on Tuesday, Jul 16, 2024 by Pulumiverse

dynatrace.AttackRules

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.12.0 published on Tuesday, Jul 16, 2024 by Pulumiverse

    Create AttackRules Resource

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

    Constructor syntax

    new AttackRules(name: string, args: AttackRulesArgs, opts?: CustomResourceOptions);
    @overload
    def AttackRules(resource_name: str,
                    args: AttackRulesArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def AttackRules(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    attack_handling: Optional[AttackRulesAttackHandlingArgs] = None,
                    criteria: Optional[AttackRulesCriteriaArgs] = None,
                    enabled: Optional[bool] = None,
                    metadata: Optional[AttackRulesMetadataArgs] = None,
                    insert_after: Optional[str] = None)
    func NewAttackRules(ctx *Context, name string, args AttackRulesArgs, opts ...ResourceOption) (*AttackRules, error)
    public AttackRules(string name, AttackRulesArgs args, CustomResourceOptions? opts = null)
    public AttackRules(String name, AttackRulesArgs args)
    public AttackRules(String name, AttackRulesArgs args, CustomResourceOptions options)
    
    type: dynatrace:AttackRules
    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 AttackRulesArgs
    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 AttackRulesArgs
    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 AttackRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AttackRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AttackRulesArgs
    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 attackRulesResource = new Dynatrace.AttackRules("attackRulesResource", new()
    {
        AttackHandling = new Dynatrace.Inputs.AttackRulesAttackHandlingArgs
        {
            BlockingStrategy = "string",
        },
        Criteria = new Dynatrace.Inputs.AttackRulesCriteriaArgs
        {
            AttackType = "string",
            ProcessGroup = "string",
        },
        Enabled = false,
        Metadata = new Dynatrace.Inputs.AttackRulesMetadataArgs
        {
            Comment = "string",
        },
        InsertAfter = "string",
    });
    
    example, err := dynatrace.NewAttackRules(ctx, "attackRulesResource", &dynatrace.AttackRulesArgs{
    	AttackHandling: &dynatrace.AttackRulesAttackHandlingArgs{
    		BlockingStrategy: pulumi.String("string"),
    	},
    	Criteria: &dynatrace.AttackRulesCriteriaArgs{
    		AttackType:   pulumi.String("string"),
    		ProcessGroup: pulumi.String("string"),
    	},
    	Enabled: pulumi.Bool(false),
    	Metadata: &dynatrace.AttackRulesMetadataArgs{
    		Comment: pulumi.String("string"),
    	},
    	InsertAfter: pulumi.String("string"),
    })
    
    var attackRulesResource = new AttackRules("attackRulesResource", AttackRulesArgs.builder()
        .attackHandling(AttackRulesAttackHandlingArgs.builder()
            .blockingStrategy("string")
            .build())
        .criteria(AttackRulesCriteriaArgs.builder()
            .attackType("string")
            .processGroup("string")
            .build())
        .enabled(false)
        .metadata(AttackRulesMetadataArgs.builder()
            .comment("string")
            .build())
        .insertAfter("string")
        .build());
    
    attack_rules_resource = dynatrace.AttackRules("attackRulesResource",
        attack_handling=dynatrace.AttackRulesAttackHandlingArgs(
            blocking_strategy="string",
        ),
        criteria=dynatrace.AttackRulesCriteriaArgs(
            attack_type="string",
            process_group="string",
        ),
        enabled=False,
        metadata=dynatrace.AttackRulesMetadataArgs(
            comment="string",
        ),
        insert_after="string")
    
    const attackRulesResource = new dynatrace.AttackRules("attackRulesResource", {
        attackHandling: {
            blockingStrategy: "string",
        },
        criteria: {
            attackType: "string",
            processGroup: "string",
        },
        enabled: false,
        metadata: {
            comment: "string",
        },
        insertAfter: "string",
    });
    
    type: dynatrace:AttackRules
    properties:
        attackHandling:
            blockingStrategy: string
        criteria:
            attackType: string
            processGroup: string
        enabled: false
        insertAfter: string
        metadata:
            comment: string
    

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

    AttackHandling Pulumiverse.Dynatrace.Inputs.AttackRulesAttackHandling
    Step 2: Define attack control for chosen criteria
    Criteria Pulumiverse.Dynatrace.Inputs.AttackRulesCriteria
    Step 1: Define criteria
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Metadata Pulumiverse.Dynatrace.Inputs.AttackRulesMetadata
    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 AttackRulesAttackHandlingArgs
    Step 2: Define attack control for chosen criteria
    Criteria AttackRulesCriteriaArgs
    Step 1: Define criteria
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Metadata AttackRulesMetadataArgs
    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 AttackRulesAttackHandling
    Step 2: Define attack control for chosen criteria
    criteria AttackRulesCriteria
    Step 1: Define criteria
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    metadata AttackRulesMetadata
    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 AttackRulesAttackHandling
    Step 2: Define attack control for chosen criteria
    criteria AttackRulesCriteria
    Step 1: Define criteria
    enabled boolean
    This setting is enabled (true) or disabled (false)
    metadata AttackRulesMetadata
    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 AttackRulesAttackHandlingArgs
    Step 2: Define attack control for chosen criteria
    criteria AttackRulesCriteriaArgs
    Step 1: Define criteria
    enabled bool
    This setting is enabled (true) or disabled (false)
    metadata AttackRulesMetadataArgs
    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
    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 AttackRules 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 AttackRules Resource

    Get an existing AttackRules 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?: AttackRulesState, opts?: CustomResourceOptions): AttackRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attack_handling: Optional[AttackRulesAttackHandlingArgs] = None,
            criteria: Optional[AttackRulesCriteriaArgs] = None,
            enabled: Optional[bool] = None,
            insert_after: Optional[str] = None,
            metadata: Optional[AttackRulesMetadataArgs] = None) -> AttackRules
    func GetAttackRules(ctx *Context, name string, id IDInput, state *AttackRulesState, opts ...ResourceOption) (*AttackRules, error)
    public static AttackRules Get(string name, Input<string> id, AttackRulesState? state, CustomResourceOptions? opts = null)
    public static AttackRules get(String name, Output<String> id, AttackRulesState 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.AttackRulesAttackHandling
    Step 2: Define attack control for chosen criteria
    Criteria Pulumiverse.Dynatrace.Inputs.AttackRulesCriteria
    Step 1: Define criteria
    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.AttackRulesMetadata
    Step 3: Leave comment
    AttackHandling AttackRulesAttackHandlingArgs
    Step 2: Define attack control for chosen criteria
    Criteria AttackRulesCriteriaArgs
    Step 1: Define criteria
    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 AttackRulesMetadataArgs
    Step 3: Leave comment
    attackHandling AttackRulesAttackHandling
    Step 2: Define attack control for chosen criteria
    criteria AttackRulesCriteria
    Step 1: Define criteria
    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 AttackRulesMetadata
    Step 3: Leave comment
    attackHandling AttackRulesAttackHandling
    Step 2: Define attack control for chosen criteria
    criteria AttackRulesCriteria
    Step 1: Define criteria
    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 AttackRulesMetadata
    Step 3: Leave comment
    attack_handling AttackRulesAttackHandlingArgs
    Step 2: Define attack control for chosen criteria
    criteria AttackRulesCriteriaArgs
    Step 1: Define criteria
    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 AttackRulesMetadataArgs
    Step 3: Leave comment
    attackHandling Property Map
    Step 2: Define attack control for chosen criteria
    criteria Property Map
    Step 1: Define criteria
    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

    AttackRulesAttackHandling, AttackRulesAttackHandlingArgs

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

    AttackRulesCriteria, AttackRulesCriteriaArgs

    AttackType string
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    ProcessGroup string
    Process group
    AttackType string
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    ProcessGroup string
    Process group
    attackType String
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    processGroup String
    Process group
    attackType string
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    processGroup string
    Process group
    attack_type str
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    process_group str
    Process group
    attackType String
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    processGroup String
    Process group

    AttackRulesMetadata, AttackRulesMetadataArgs

    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.12.0 published on Tuesday, Jul 16, 2024 by Pulumiverse