1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. shield
  5. Protection

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.shield.Protection

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Amazon Route 53 hosted zone, AWS Global Accelerator standard accelerator, Elastic IP Address, Application Load Balancer, or a Classic Load Balancer. You can protect Amazon EC2 instances and Network Load Balancers by association with protected Amazon EC2 Elastic IP addresses.

Create Protection Resource

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

Constructor syntax

new Protection(name: string, args: ProtectionArgs, opts?: CustomResourceOptions);
@overload
def Protection(resource_name: str,
               args: ProtectionArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def Protection(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               resource_arn: Optional[str] = None,
               application_layer_automatic_response_configuration: Optional[ProtectionApplicationLayerAutomaticResponseConfigurationArgs] = None,
               health_check_arns: Optional[Sequence[str]] = None,
               name: Optional[str] = None,
               tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
func NewProtection(ctx *Context, name string, args ProtectionArgs, opts ...ResourceOption) (*Protection, error)
public Protection(string name, ProtectionArgs args, CustomResourceOptions? opts = null)
public Protection(String name, ProtectionArgs args)
public Protection(String name, ProtectionArgs args, CustomResourceOptions options)
type: aws-native:shield:Protection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ProtectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ProtectionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ProtectionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ProtectionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ProtectionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

ResourceArn This property is required. string
The ARN (Amazon Resource Name) of the resource to be protected.
ApplicationLayerAutomaticResponseConfiguration Pulumi.AwsNative.Shield.Inputs.ProtectionApplicationLayerAutomaticResponseConfiguration

The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.

If you use AWS CloudFormation to manage the web ACLs that you use with Shield Advanced automatic mitigation, see the additional guidance about web ACL management in the AWS::WAFv2::WebACL resource description.

HealthCheckArns List<string>
The Amazon Resource Names (ARNs) of the health check to associate with the protection.
Name string
Friendly name for the Protection.
Tags List<Pulumi.AwsNative.Inputs.Tag>
One or more tag key-value pairs for the Protection object.
ResourceArn This property is required. string
The ARN (Amazon Resource Name) of the resource to be protected.
ApplicationLayerAutomaticResponseConfiguration ProtectionApplicationLayerAutomaticResponseConfigurationArgs

The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.

If you use AWS CloudFormation to manage the web ACLs that you use with Shield Advanced automatic mitigation, see the additional guidance about web ACL management in the AWS::WAFv2::WebACL resource description.

HealthCheckArns []string
The Amazon Resource Names (ARNs) of the health check to associate with the protection.
Name string
Friendly name for the Protection.
Tags TagArgs
One or more tag key-value pairs for the Protection object.
resourceArn This property is required. String
The ARN (Amazon Resource Name) of the resource to be protected.
applicationLayerAutomaticResponseConfiguration ProtectionApplicationLayerAutomaticResponseConfiguration

The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.

If you use AWS CloudFormation to manage the web ACLs that you use with Shield Advanced automatic mitigation, see the additional guidance about web ACL management in the AWS::WAFv2::WebACL resource description.

healthCheckArns List<String>
The Amazon Resource Names (ARNs) of the health check to associate with the protection.
name String
Friendly name for the Protection.
tags List<Tag>
One or more tag key-value pairs for the Protection object.
resourceArn This property is required. string
The ARN (Amazon Resource Name) of the resource to be protected.
applicationLayerAutomaticResponseConfiguration ProtectionApplicationLayerAutomaticResponseConfiguration

The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.

If you use AWS CloudFormation to manage the web ACLs that you use with Shield Advanced automatic mitigation, see the additional guidance about web ACL management in the AWS::WAFv2::WebACL resource description.

healthCheckArns string[]
The Amazon Resource Names (ARNs) of the health check to associate with the protection.
name string
Friendly name for the Protection.
tags Tag[]
One or more tag key-value pairs for the Protection object.
resource_arn This property is required. str
The ARN (Amazon Resource Name) of the resource to be protected.
application_layer_automatic_response_configuration ProtectionApplicationLayerAutomaticResponseConfigurationArgs

The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.

If you use AWS CloudFormation to manage the web ACLs that you use with Shield Advanced automatic mitigation, see the additional guidance about web ACL management in the AWS::WAFv2::WebACL resource description.

health_check_arns Sequence[str]
The Amazon Resource Names (ARNs) of the health check to associate with the protection.
name str
Friendly name for the Protection.
tags Sequence[TagArgs]
One or more tag key-value pairs for the Protection object.
resourceArn This property is required. String
The ARN (Amazon Resource Name) of the resource to be protected.
applicationLayerAutomaticResponseConfiguration Property Map

The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.

If you use AWS CloudFormation to manage the web ACLs that you use with Shield Advanced automatic mitigation, see the additional guidance about web ACL management in the AWS::WAFv2::WebACL resource description.

healthCheckArns List<String>
The Amazon Resource Names (ARNs) of the health check to associate with the protection.
name String
Friendly name for the Protection.
tags List<Property Map>
One or more tag key-value pairs for the Protection object.

Outputs

All input properties are implicitly available as output properties. Additionally, the Protection resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
ProtectionArn string
The ARN (Amazon Resource Name) of the protection.
ProtectionId string
The unique identifier (ID) of the protection.
Id string
The provider-assigned unique ID for this managed resource.
ProtectionArn string
The ARN (Amazon Resource Name) of the protection.
ProtectionId string
The unique identifier (ID) of the protection.
id String
The provider-assigned unique ID for this managed resource.
protectionArn String
The ARN (Amazon Resource Name) of the protection.
protectionId String
The unique identifier (ID) of the protection.
id string
The provider-assigned unique ID for this managed resource.
protectionArn string
The ARN (Amazon Resource Name) of the protection.
protectionId string
The unique identifier (ID) of the protection.
id str
The provider-assigned unique ID for this managed resource.
protection_arn str
The ARN (Amazon Resource Name) of the protection.
protection_id str
The unique identifier (ID) of the protection.
id String
The provider-assigned unique ID for this managed resource.
protectionArn String
The ARN (Amazon Resource Name) of the protection.
protectionId String
The unique identifier (ID) of the protection.

Supporting Types

ProtectionApplicationLayerAutomaticResponseConfiguration
, ProtectionApplicationLayerAutomaticResponseConfigurationArgs

Action This property is required. Pulumi.AwsNative.Shield.Inputs.ProtectionApplicationLayerAutomaticResponseConfigurationAction0Properties | Pulumi.AwsNative.Shield.Inputs.ProtectionApplicationLayerAutomaticResponseConfigurationAction1Properties
Specifies the action setting that Shield Advanced should use in the AWS WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the AWS WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
Status This property is required. Pulumi.AwsNative.Shield.ProtectionApplicationLayerAutomaticResponseConfigurationStatus
Indicates whether automatic application layer DDoS mitigation is enabled for the protection.
Action This property is required. ProtectionApplicationLayerAutomaticResponseConfigurationAction0Properties | ProtectionApplicationLayerAutomaticResponseConfigurationAction1Properties
Specifies the action setting that Shield Advanced should use in the AWS WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the AWS WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
Status This property is required. ProtectionApplicationLayerAutomaticResponseConfigurationStatus
Indicates whether automatic application layer DDoS mitigation is enabled for the protection.
action This property is required. ProtectionApplicationLayerAutomaticResponseConfigurationAction0Properties | ProtectionApplicationLayerAutomaticResponseConfigurationAction1Properties
Specifies the action setting that Shield Advanced should use in the AWS WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the AWS WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
status This property is required. ProtectionApplicationLayerAutomaticResponseConfigurationStatus
Indicates whether automatic application layer DDoS mitigation is enabled for the protection.
action This property is required. ProtectionApplicationLayerAutomaticResponseConfigurationAction0Properties | ProtectionApplicationLayerAutomaticResponseConfigurationAction1Properties
Specifies the action setting that Shield Advanced should use in the AWS WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the AWS WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
status This property is required. ProtectionApplicationLayerAutomaticResponseConfigurationStatus
Indicates whether automatic application layer DDoS mitigation is enabled for the protection.
action This property is required. ProtectionApplicationLayerAutomaticResponseConfigurationAction0Properties | ProtectionApplicationLayerAutomaticResponseConfigurationAction1Properties
Specifies the action setting that Shield Advanced should use in the AWS WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the AWS WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
status This property is required. ProtectionApplicationLayerAutomaticResponseConfigurationStatus
Indicates whether automatic application layer DDoS mitigation is enabled for the protection.
action This property is required. Property Map | Property Map
Specifies the action setting that Shield Advanced should use in the AWS WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the AWS WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
status This property is required. "ENABLED" | "DISABLED"
Indicates whether automatic application layer DDoS mitigation is enabled for the protection.

ProtectionApplicationLayerAutomaticResponseConfigurationAction0Properties
, ProtectionApplicationLayerAutomaticResponseConfigurationAction0PropertiesArgs

Count object
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Count action. You must specify exactly one action, either Block or Count.
Count interface{}
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Count action. You must specify exactly one action, either Block or Count.
count Object
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Count action. You must specify exactly one action, either Block or Count.
count any
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Count action. You must specify exactly one action, either Block or Count.
count Any
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Count action. You must specify exactly one action, either Block or Count.
count Any
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Count action. You must specify exactly one action, either Block or Count.

ProtectionApplicationLayerAutomaticResponseConfigurationAction1Properties
, ProtectionApplicationLayerAutomaticResponseConfigurationAction1PropertiesArgs

Block object
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Block action. You must specify exactly one action, either Block or Count.
Block interface{}
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Block action. You must specify exactly one action, either Block or Count.
block Object
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Block action. You must specify exactly one action, either Block or Count.
block any
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Block action. You must specify exactly one action, either Block or Count.
block Any
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Block action. You must specify exactly one action, either Block or Count.
block Any
Specifies that Shield Advanced should configure its AWS WAF rules with the AWS WAF Block action. You must specify exactly one action, either Block or Count.

ProtectionApplicationLayerAutomaticResponseConfigurationStatus
, ProtectionApplicationLayerAutomaticResponseConfigurationStatusArgs

Enabled
ENABLED
Disabled
DISABLED
ProtectionApplicationLayerAutomaticResponseConfigurationStatusEnabled
ENABLED
ProtectionApplicationLayerAutomaticResponseConfigurationStatusDisabled
DISABLED
Enabled
ENABLED
Disabled
DISABLED
Enabled
ENABLED
Disabled
DISABLED
ENABLED
ENABLED
DISABLED
DISABLED
"ENABLED"
ENABLED
"DISABLED"
DISABLED

Tag
, TagArgs

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi