Dynatrace v0.17.0 published on Tuesday, Oct 8, 2024 by Pulumiverse
dynatrace.AttackAllowlist
Explore with Pulumi AI
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=dynatrace.AttackAllowlistAttackHandlingArgs(
blocking_strategy="string",
),
criteria=dynatrace.AttackAllowlistCriteriaArgs(
attack_pattern="string",
source_ip="string",
),
enabled=False,
metadata=dynatrace.AttackAllowlistMetadataArgs(
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
The AttackAllowlist resource accepts the following input properties:
- Attack
Handling Pulumiverse.Dynatrace. Inputs. Attack Allowlist Attack Handling - Step 2: Define attack control for chosen criteria
- Criteria
Pulumiverse.
Dynatrace. Inputs. Attack Allowlist Criteria - 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. Attack Allowlist 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 AttackAllowlist Attack Handling Args - Step 2: Define attack control for chosen criteria
- Criteria
Attack
Allowlist Criteria Args - 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
Attack
Allowlist 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 AttackAllowlist Attack Handling - Step 2: Define attack control for chosen criteria
- criteria
Attack
Allowlist Criteria - 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
Attack
Allowlist 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 AttackAllowlist Attack Handling - Step 2: Define attack control for chosen criteria
- criteria
Attack
Allowlist Criteria - 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
Attack
Allowlist 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 AttackAllowlist Attack Handling Args - Step 2: Define attack control for chosen criteria
- criteria
Attack
Allowlist Criteria Args - 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
Attack
Allowlist 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. 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
- 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 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.
- Attack
Handling Pulumiverse.Dynatrace. Inputs. Attack Allowlist Attack Handling - Step 2: Define attack control for chosen criteria
- Criteria
Pulumiverse.
Dynatrace. Inputs. Attack Allowlist Criteria - 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 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 Allowlist Metadata - Step 3: Leave comment
- Attack
Handling AttackAllowlist Attack Handling Args - Step 2: Define attack control for chosen criteria
- Criteria
Attack
Allowlist Criteria Args - 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 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
Allowlist Metadata Args - Step 3: Leave comment
- attack
Handling AttackAllowlist Attack Handling - Step 2: Define attack control for chosen criteria
- criteria
Attack
Allowlist Criteria - 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
) - 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
Allowlist Metadata - Step 3: Leave comment
- attack
Handling AttackAllowlist Attack Handling - Step 2: Define attack control for chosen criteria
- criteria
Attack
Allowlist Criteria - 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
) - 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
Allowlist Metadata - Step 3: Leave comment
- attack_
handling AttackAllowlist Attack Handling Args - Step 2: Define attack control for chosen criteria
- criteria
Attack
Allowlist Criteria Args - 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
Attack
Allowlist 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. Please specify at least one of source IP or attack pattern.
- 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
AttackAllowlistAttackHandling, AttackAllowlistAttackHandlingArgs
- Blocking
Strategy string - Possible Values:
MONITOR
,OFF
- Blocking
Strategy string - Possible Values:
MONITOR
,OFF
- blocking
Strategy String - Possible Values:
MONITOR
,OFF
- blocking
Strategy string - Possible Values:
MONITOR
,OFF
- blocking_
strategy str - Possible Values:
MONITOR
,OFF
- blocking
Strategy String - Possible Values:
MONITOR
,OFF
AttackAllowlistCriteria, AttackAllowlistCriteriaArgs
- Attack
Pattern string - Only consider attacks matching the specified pattern.
- Source
Ip string - Source IP
- Attack
Pattern string - Only consider attacks matching the specified pattern.
- Source
Ip string - Source IP
- attack
Pattern String - Only consider attacks matching the specified pattern.
- source
Ip String - Source IP
- attack
Pattern string - Only consider attacks matching the specified pattern.
- source
Ip string - Source IP
- attack_
pattern str - Only consider attacks matching the specified pattern.
- source_
ip str - Source IP
- attack
Pattern String - Only consider attacks matching the specified pattern.
- source
Ip 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.