AWS::Shield::ProtectionEnables 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.
5 configurable properties. 2 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
Name | string | RequiredCreate-only |
ResourceArn | string | RequiredCreate-only |
ApplicationLayerAutomaticResponseConfiguration | ApplicationLayerAutomaticResponseConfiguration | |
HealthCheckArns | Array<string> | |
Tags | Array<Tag> |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
ProtectionArn | string | The ARN (Amazon Resource Name) of the protection. |
ProtectionId | string | The unique identifier (ID) of the protection. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Shield::Protection
Resources:
MyResource:
Type: AWS::Shield::Protection
Properties:
Name: "my-name"
ResourceArn: "arn:aws:service:region:account:resource"
Tags:
- Key: Environment
Value: ProductionPermissions CloudFormation needs in your IAM role to manage this resource.
shield:CreateProtectionshield:DeleteProtectionshield:DescribeProtectionshield:ListProtectionsshield:EnableApplicationLayerAutomaticResponseshield:AssociateHealthCheckshield:TagResourceec2:DescribeAddressesshield:DeleteProtectionshield:UntagResourceshield:DescribeProtectionshield:ListTagsForResourceshield:DescribeProtectionshield:AssociateHealthCheckshield:DisassociateHealthCheckshield:EnableApplicationLayerAutomaticResponseshield:UpdateApplicationLayerAutomaticResponseshield:DisableApplicationLayerAutomaticResponseshield:ListTagsForResourceshield:TagResourceshield:ListProtectionsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterProtectionArnThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
NameResourceArn