dynatrace.AttackRules
Explore with Pulumi AI
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={
"blocking_strategy": "string",
},
criteria={
"attack_type": "string",
},
enabled=False,
metadata={
"comment": "string",
},
insert_after="string",
resource_attribute_conditions={
"resource_attribute_conditions": [{
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AttackRules resource accepts the following input properties:
- Attack
Handling Pulumiverse.Dynatrace. Inputs. Attack Rules Attack Handling - Step 1: Select attack protection behavior
- Criteria
Pulumiverse.
Dynatrace. Inputs. Attack Rules Criteria - Step 2: Select attack type
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Metadata
Pulumiverse.
Dynatrace. Inputs. Attack Rules Metadata - Step 4: Leave comment (optional)
- Insert
After 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
- Resource
Attribute Pulumiverse.Conditions Dynatrace. Inputs. Attack Rules Resource Attribute Conditions - If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
- Rule
Name string - Rule name
- Attack
Handling AttackRules Attack Handling Args - Step 1: Select attack protection behavior
- Criteria
Attack
Rules Criteria Args - Step 2: Select attack type
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Metadata
Attack
Rules Metadata Args - Step 4: Leave comment (optional)
- Insert
After 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
- Resource
Attribute AttackConditions Rules Resource Attribute Conditions Args - If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
- Rule
Name string - Rule name
- attack
Handling AttackRules Attack Handling - Step 1: Select attack protection behavior
- criteria
Attack
Rules Criteria - Step 2: Select attack type
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - metadata
Attack
Rules Metadata - Step 4: Leave comment (optional)
- insert
After 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
- resource
Attribute AttackConditions Rules Resource Attribute Conditions - If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
- rule
Name String - Rule name
- attack
Handling AttackRules Attack Handling - Step 1: Select attack protection behavior
- criteria
Attack
Rules Criteria - Step 2: Select attack type
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - metadata
Attack
Rules Metadata - Step 4: Leave comment (optional)
- insert
After 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
- resource
Attribute AttackConditions Rules Resource Attribute Conditions - If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
- rule
Name string - Rule name
- attack_
handling AttackRules Attack Handling Args - Step 1: Select attack protection behavior
- criteria
Attack
Rules Criteria Args - Step 2: Select attack type
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - metadata
Attack
Rules Metadata Args - 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_ Attackconditions Rules Resource Attribute Conditions Args - 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
- attack
Handling 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)
- insert
After 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
- resource
Attribute Property MapConditions - If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
- rule
Name 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.
- Attack
Handling Pulumiverse.Dynatrace. Inputs. Attack Rules Attack Handling - Step 1: Select attack protection behavior
- Criteria
Pulumiverse.
Dynatrace. Inputs. Attack Rules Criteria - Step 2: Select attack type
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Insert
After 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. Attack Rules Metadata - Step 4: Leave comment (optional)
- Resource
Attribute Pulumiverse.Conditions Dynatrace. Inputs. Attack Rules Resource Attribute Conditions - If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
- Rule
Name string - Rule name
- Attack
Handling AttackRules Attack Handling Args - Step 1: Select attack protection behavior
- Criteria
Attack
Rules Criteria Args - Step 2: Select attack type
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Insert
After 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
Attack
Rules Metadata Args - Step 4: Leave comment (optional)
- Resource
Attribute AttackConditions Rules Resource Attribute Conditions Args - If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
- Rule
Name string - Rule name
- attack
Handling AttackRules Attack Handling - Step 1: Select attack protection behavior
- criteria
Attack
Rules Criteria - Step 2: Select attack type
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After 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
Attack
Rules Metadata - Step 4: Leave comment (optional)
- resource
Attribute AttackConditions Rules Resource Attribute Conditions - If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
- rule
Name String - Rule name
- attack
Handling AttackRules Attack Handling - Step 1: Select attack protection behavior
- criteria
Attack
Rules Criteria - Step 2: Select attack type
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - insert
After 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
Attack
Rules Metadata - Step 4: Leave comment (optional)
- resource
Attribute AttackConditions Rules Resource Attribute Conditions - If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
- rule
Name string - Rule name
- attack_
handling AttackRules Attack Handling Args - Step 1: Select attack protection behavior
- criteria
Attack
Rules Criteria Args - 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
Attack
Rules Metadata Args - Step 4: Leave comment (optional)
- resource_
attribute_ Attackconditions Rules Resource Attribute Conditions Args - 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
- attack
Handling 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
) - insert
After 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)
- resource
Attribute Property MapConditions - If you add more than one condition, note that all conditions must be true simultaneously for the rule to apply.
- rule
Name String - Rule name
Supporting Types
AttackRulesAttackHandling, AttackRulesAttackHandlingArgs
- Blocking
Strategy string - Possible Values:
BLOCK
,MONITOR
,OFF
- Blocking
Strategy string - Possible Values:
BLOCK
,MONITOR
,OFF
- blocking
Strategy String - Possible Values:
BLOCK
,MONITOR
,OFF
- blocking
Strategy string - Possible Values:
BLOCK
,MONITOR
,OFF
- blocking_
strategy str - Possible Values:
BLOCK
,MONITOR
,OFF
- blocking
Strategy String - Possible Values:
BLOCK
,MONITOR
,OFF
AttackRulesCriteria, AttackRulesCriteriaArgs
- Attack
Type string - Possible Values:
ANY
,CMD_INJECTION
,JNDI_INJECTION
,SQL_INJECTION
,SSRF
- Process
Group string - Process group
- Attack
Type string - Possible Values:
ANY
,CMD_INJECTION
,JNDI_INJECTION
,SQL_INJECTION
,SSRF
- Process
Group string - Process group
- attack
Type String - Possible Values:
ANY
,CMD_INJECTION
,JNDI_INJECTION
,SQL_INJECTION
,SSRF
- process
Group String - Process group
- attack
Type string - Possible Values:
ANY
,CMD_INJECTION
,JNDI_INJECTION
,SQL_INJECTION
,SSRF
- process
Group string - Process group
- attack_
type str - Possible Values:
ANY
,CMD_INJECTION
,JNDI_INJECTION
,SQL_INJECTION
,SSRF
- process_
group str - Process group
- attack
Type String - Possible Values:
ANY
,CMD_INJECTION
,JNDI_INJECTION
,SQL_INJECTION
,SSRF
- process
Group 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
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
- Resource
Attribute stringKey - Resource attribute key
- Resource
Attribute stringValue - 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
- Resource
Attribute stringKey - Resource attribute key
- Resource
Attribute stringValue - 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
- resource
Attribute StringKey - Resource attribute key
- resource
Attribute StringValue - 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
- resource
Attribute stringKey - Resource attribute key
- resource
Attribute stringValue - 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_ strkey - Resource attribute key
- resource_
attribute_ strvalue - 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
- resource
Attribute StringKey - Resource attribute key
- resource
Attribute StringValue - 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.