Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse
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)
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:
- Attack
Handling Pulumiverse.Dynatrace. Inputs. Attack Rules Attack Handling - Step 2: Define attack control for chosen criteria
- Criteria
Pulumiverse.
Dynatrace. Inputs. Attack Rules Criteria - Step 1: Define criteria
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Metadata
Pulumiverse.
Dynatrace. Inputs. Attack Rules Metadata - Step 3: Leave comment
- 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
- Attack
Handling AttackRules Attack Handling Args - Step 2: Define attack control for chosen criteria
- Criteria
Attack
Rules Criteria Args - Step 1: Define criteria
- Enabled bool
- This setting is enabled (
true
) or disabled (false
) - Metadata
Attack
Rules Metadata Args - Step 3: Leave comment
- 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
- attack
Handling AttackRules Attack Handling - Step 2: Define attack control for chosen criteria
- criteria
Attack
Rules Criteria - Step 1: Define criteria
- enabled Boolean
- This setting is enabled (
true
) or disabled (false
) - metadata
Attack
Rules Metadata - Step 3: Leave comment
- 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
- attack
Handling AttackRules Attack Handling - Step 2: Define attack control for chosen criteria
- criteria
Attack
Rules Criteria - Step 1: Define criteria
- enabled boolean
- This setting is enabled (
true
) or disabled (false
) - metadata
Attack
Rules Metadata - Step 3: Leave comment
- 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
- attack_
handling AttackRules Attack Handling Args - Step 2: Define attack control for chosen criteria
- criteria
Attack
Rules Criteria Args - Step 1: Define criteria
- enabled bool
- This setting is enabled (
true
) or disabled (false
) - metadata
Attack
Rules Metadata Args - 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
- attack
Handling 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
- 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
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.
- Attack
Handling Pulumiverse.Dynatrace. Inputs. Attack Rules Attack Handling - Step 2: Define attack control for chosen criteria
- Criteria
Pulumiverse.
Dynatrace. Inputs. Attack Rules Criteria - Step 1: Define criteria
- 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 3: Leave comment
- Attack
Handling AttackRules Attack Handling Args - Step 2: Define attack control for chosen criteria
- Criteria
Attack
Rules Criteria Args - Step 1: Define criteria
- 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 3: Leave comment
- attack
Handling AttackRules Attack Handling - Step 2: Define attack control for chosen criteria
- criteria
Attack
Rules Criteria - Step 1: Define criteria
- 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 3: Leave comment
- attack
Handling AttackRules Attack Handling - Step 2: Define attack control for chosen criteria
- criteria
Attack
Rules Criteria - Step 1: Define criteria
- 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 3: Leave comment
- attack_
handling AttackRules Attack Handling Args - Step 2: Define attack control for chosen criteria
- criteria
Attack
Rules Criteria Args - 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
Attack
Rules Metadata Args - Step 3: Leave comment
- attack
Handling 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
) - 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 3: Leave comment
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
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.