class Aws::Shield::Types::CreateProtectionRequest
@note When making an API call, you may pass CreateProtectionRequest
data as a hash: { name: "ProtectionName", # required resource_arn: "ResourceArn", # required tags: [ { key: "TagKey", value: "TagValue", }, ], }
@!attribute [rw] name
Friendly name for the `Protection` you are creating. @return [String]
@!attribute [rw] resource_arn
The ARN (Amazon Resource Name) of the resource to be protected. The ARN should be in one of the following formats: * For an Application Load Balancer: `arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id ` * For an Elastic Load Balancer (Classic Load Balancer): `arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name ` * For an Amazon CloudFront distribution: `arn:aws:cloudfront::account-id:distribution/distribution-id ` * For an Global Accelerator accelerator: `arn:aws:globalaccelerator::account-id:accelerator/accelerator-id ` * For Amazon Route 53: `arn:aws:route53:::hostedzone/hosted-zone-id ` * For an Elastic IP address: `arn:aws:ec2:region:account-id:eip-allocation/allocation-id ` @return [String]
@!attribute [rw] tags
One or more tag key-value pairs for the Protection object that is created. @return [Array<Types::Tag>]
@see docs.aws.amazon.com/goto/WebAPI/shield-2016-06-02/CreateProtectionRequest AWS API Documentation
Constants
- SENSITIVE