1. Packages
  2. Dynatrace
  3. API Docs
  4. AttackRules
Dynatrace v0.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse

dynatrace.AttackRules

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.16.0 published on Tuesday, Sep 10, 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,
                    resource_attribute_conditions: Optional[AttackRulesResourceAttributeConditionsArgs] = None,
                    rule_name: 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",
        },
        Enabled = false,
        Metadata = new Dynatrace.Inputs.AttackRulesMetadataArgs
        {
            Comment = "string",
        },
        InsertAfter = "string",
        ResourceAttributeConditions = new Dynatrace.Inputs.AttackRulesResourceAttributeConditionsArgs
        {
            ResourceAttributeConditions = new[]
            {
                new Dynatrace.Inputs.AttackRulesResourceAttributeConditionsResourceAttributeConditionArgs
                {
                    Matcher = "string",
                    ResourceAttributeKey = "string",
                    ResourceAttributeValue = "string",
                },
            },
        },
        RuleName = "string",
    });
    
    example, err := dynatrace.NewAttackRules(ctx, "attackRulesResource", &dynatrace.AttackRulesArgs{
    	AttackHandling: &dynatrace.AttackRulesAttackHandlingArgs{
    		BlockingStrategy: pulumi.String("string"),
    	},
    	Criteria: &dynatrace.AttackRulesCriteriaArgs{
    		AttackType: pulumi.String("string"),
    	},
    	Enabled: pulumi.Bool(false),
    	Metadata: &dynatrace.AttackRulesMetadataArgs{
    		Comment: pulumi.String("string"),
    	},
    	InsertAfter: pulumi.String("string"),
    	ResourceAttributeConditions: &dynatrace.AttackRulesResourceAttributeConditionsArgs{
    		ResourceAttributeConditions: dynatrace.AttackRulesResourceAttributeConditionsResourceAttributeConditionArray{
    			&dynatrace.AttackRulesResourceAttributeConditionsResourceAttributeConditionArgs{
    				Matcher:                pulumi.String("string"),
    				ResourceAttributeKey:   pulumi.String("string"),
    				ResourceAttributeValue: pulumi.String("string"),
    			},
    		},
    	},
    	RuleName: pulumi.String("string"),
    })
    
    var attackRulesResource = new AttackRules("attackRulesResource", AttackRulesArgs.builder()
        .attackHandling(AttackRulesAttackHandlingArgs.builder()
            .blockingStrategy("string")
            .build())
        .criteria(AttackRulesCriteriaArgs.builder()
            .attackType("string")
            .build())
        .enabled(false)
        .metadata(AttackRulesMetadataArgs.builder()
            .comment("string")
            .build())
        .insertAfter("string")
        .resourceAttributeConditions(AttackRulesResourceAttributeConditionsArgs.builder()
            .resourceAttributeConditions(AttackRulesResourceAttributeConditionsResourceAttributeConditionArgs.builder()
                .matcher("string")
                .resourceAttributeKey("string")
                .resourceAttributeValue("string")
                .build())
            .build())
        .ruleName("string")
        .build());
    
    attack_rules_resource = dynatrace.AttackRules("attackRulesResource",
        attack_handling=dynatrace.AttackRulesAttackHandlingArgs(
            blocking_strategy="string",
        ),
        criteria=dynatrace.AttackRulesCriteriaArgs(
            attack_type="string",
        ),
        enabled=False,
        metadata=dynatrace.AttackRulesMetadataArgs(
            comment="string",
        ),
        insert_after="string",
        resource_attribute_conditions=dynatrace.AttackRulesResourceAttributeConditionsArgs(
            resource_attribute_conditions=[dynatrace.AttackRulesResourceAttributeConditionsResourceAttributeConditionArgs(
                matcher="string",
                resource_attribute_key="string",
                resource_attribute_value="string",
            )],
        ),
        rule_name="string")
    
    const attackRulesResource = new dynatrace.AttackRules("attackRulesResource", {
        attackHandling: {
            blockingStrategy: "string",
        },
        criteria: {
            attackType: "string",
        },
        enabled: false,
        metadata: {
            comment: "string",
        },
        insertAfter: "string",
        resourceAttributeConditions: {
            resourceAttributeConditions: [{
                matcher: "string",
                resourceAttributeKey: "string",
                resourceAttributeValue: "string",
            }],
        },
        ruleName: "string",
    });
    
    type: dynatrace:AttackRules
    properties:
        attackHandling:
            blockingStrategy: string
        criteria:
            attackType: string
        enabled: false
        insertAfter: string
        metadata:
            comment: string
        resourceAttributeConditions:
            resourceAttributeConditions:
                - matcher: string
                  resourceAttributeKey: string
                  resourceAttributeValue: string
        ruleName: 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 1: Select attack protection behavior
    Criteria Pulumiverse.Dynatrace.Inputs.AttackRulesCriteria
    Step 2: Select attack type
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Metadata Pulumiverse.Dynatrace.Inputs.AttackRulesMetadata
    Step 4: Leave comment (optional)
    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
    ResourceAttributeConditions Pulumiverse.Dynatrace.Inputs.AttackRulesResourceAttributeConditions
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    RuleName string
    Rule name
    AttackHandling AttackRulesAttackHandlingArgs
    Step 1: Select attack protection behavior
    Criteria AttackRulesCriteriaArgs
    Step 2: Select attack type
    Enabled bool
    This setting is enabled (true) or disabled (false)
    Metadata AttackRulesMetadataArgs
    Step 4: Leave comment (optional)
    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
    ResourceAttributeConditions AttackRulesResourceAttributeConditionsArgs
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    RuleName string
    Rule name
    attackHandling AttackRulesAttackHandling
    Step 1: Select attack protection behavior
    criteria AttackRulesCriteria
    Step 2: Select attack type
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    metadata AttackRulesMetadata
    Step 4: Leave comment (optional)
    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
    resourceAttributeConditions AttackRulesResourceAttributeConditions
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    ruleName String
    Rule name
    attackHandling AttackRulesAttackHandling
    Step 1: Select attack protection behavior
    criteria AttackRulesCriteria
    Step 2: Select attack type
    enabled boolean
    This setting is enabled (true) or disabled (false)
    metadata AttackRulesMetadata
    Step 4: Leave comment (optional)
    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
    resourceAttributeConditions AttackRulesResourceAttributeConditions
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    ruleName string
    Rule name
    attack_handling AttackRulesAttackHandlingArgs
    Step 1: Select attack protection behavior
    criteria AttackRulesCriteriaArgs
    Step 2: Select attack type
    enabled bool
    This setting is enabled (true) or disabled (false)
    metadata AttackRulesMetadataArgs
    Step 4: Leave comment (optional)
    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
    resource_attribute_conditions AttackRulesResourceAttributeConditionsArgs
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    rule_name str
    Rule name
    attackHandling Property Map
    Step 1: Select attack protection behavior
    criteria Property Map
    Step 2: Select attack type
    enabled Boolean
    This setting is enabled (true) or disabled (false)
    metadata Property Map
    Step 4: Leave comment (optional)
    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
    resourceAttributeConditions Property Map
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    ruleName String
    Rule name

    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,
            resource_attribute_conditions: Optional[AttackRulesResourceAttributeConditionsArgs] = None,
            rule_name: Optional[str] = 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 1: Select attack protection behavior
    Criteria Pulumiverse.Dynatrace.Inputs.AttackRulesCriteria
    Step 2: Select attack type
    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 4: Leave comment (optional)
    ResourceAttributeConditions Pulumiverse.Dynatrace.Inputs.AttackRulesResourceAttributeConditions
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    RuleName string
    Rule name
    AttackHandling AttackRulesAttackHandlingArgs
    Step 1: Select attack protection behavior
    Criteria AttackRulesCriteriaArgs
    Step 2: Select attack type
    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 4: Leave comment (optional)
    ResourceAttributeConditions AttackRulesResourceAttributeConditionsArgs
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    RuleName string
    Rule name
    attackHandling AttackRulesAttackHandling
    Step 1: Select attack protection behavior
    criteria AttackRulesCriteria
    Step 2: Select attack type
    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 4: Leave comment (optional)
    resourceAttributeConditions AttackRulesResourceAttributeConditions
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    ruleName String
    Rule name
    attackHandling AttackRulesAttackHandling
    Step 1: Select attack protection behavior
    criteria AttackRulesCriteria
    Step 2: Select attack type
    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 4: Leave comment (optional)
    resourceAttributeConditions AttackRulesResourceAttributeConditions
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    ruleName string
    Rule name
    attack_handling AttackRulesAttackHandlingArgs
    Step 1: Select attack protection behavior
    criteria AttackRulesCriteriaArgs
    Step 2: Select attack type
    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 4: Leave comment (optional)
    resource_attribute_conditions AttackRulesResourceAttributeConditionsArgs
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    rule_name str
    Rule name
    attackHandling Property Map
    Step 1: Select attack protection behavior
    criteria Property Map
    Step 2: Select attack type
    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 4: Leave comment (optional)
    resourceAttributeConditions Property Map
    If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
    ruleName String
    Rule name

    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

    Deprecated: This field has been deprecated

    AttackType string
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    ProcessGroup string
    Process group

    Deprecated: This field has been deprecated

    attackType String
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    processGroup String
    Process group

    Deprecated: This field has been deprecated

    attackType string
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    processGroup string
    Process group

    Deprecated: This field has been deprecated

    attack_type str
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    process_group str
    Process group

    Deprecated: This field has been deprecated

    attackType String
    Possible Values: ANY, CMD_INJECTION, JNDI_INJECTION, SQL_INJECTION, SSRF
    processGroup String
    Process group

    Deprecated: This field has been deprecated

    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

    AttackRulesResourceAttributeConditions, AttackRulesResourceAttributeConditionsArgs

    AttackRulesResourceAttributeConditionsResourceAttributeCondition, AttackRulesResourceAttributeConditionsResourceAttributeConditionArgs

    Matcher string
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_END_WITH, DOES_NOT_EXIST, DOES_NOT_START_WITH, ENDS_WITH, EQUALS, EXISTS, NOT_EQUALS, STARTS_WITH
    ResourceAttributeKey string
    Resource attribute key
    ResourceAttributeValue string
    Resource attribute value
    Matcher string
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_END_WITH, DOES_NOT_EXIST, DOES_NOT_START_WITH, ENDS_WITH, EQUALS, EXISTS, NOT_EQUALS, STARTS_WITH
    ResourceAttributeKey string
    Resource attribute key
    ResourceAttributeValue string
    Resource attribute value
    matcher String
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_END_WITH, DOES_NOT_EXIST, DOES_NOT_START_WITH, ENDS_WITH, EQUALS, EXISTS, NOT_EQUALS, STARTS_WITH
    resourceAttributeKey String
    Resource attribute key
    resourceAttributeValue String
    Resource attribute value
    matcher string
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_END_WITH, DOES_NOT_EXIST, DOES_NOT_START_WITH, ENDS_WITH, EQUALS, EXISTS, NOT_EQUALS, STARTS_WITH
    resourceAttributeKey string
    Resource attribute key
    resourceAttributeValue string
    Resource attribute value
    matcher str
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_END_WITH, DOES_NOT_EXIST, DOES_NOT_START_WITH, ENDS_WITH, EQUALS, EXISTS, NOT_EQUALS, STARTS_WITH
    resource_attribute_key str
    Resource attribute key
    resource_attribute_value str
    Resource attribute value
    matcher String
    Possible Values: CONTAINS, DOES_NOT_CONTAIN, DOES_NOT_END_WITH, DOES_NOT_EXIST, DOES_NOT_START_WITH, ENDS_WITH, EQUALS, EXISTS, NOT_EQUALS, STARTS_WITH
    resourceAttributeKey String
    Resource attribute key
    resourceAttributeValue String
    Resource attribute value

    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.16.0 published on Tuesday, Sep 10, 2024 by Pulumiverse