Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, Elastic IP Address, or an Amazon Route 53 hosted zone.
- createProtection :: Text -> Text -> CreateProtection
- data CreateProtection
- cpName :: Lens' CreateProtection Text
- cpResourceARN :: Lens' CreateProtection Text
- createProtectionResponse :: Int -> CreateProtectionResponse
- data CreateProtectionResponse
- cprsProtectionId :: Lens' CreateProtectionResponse (Maybe Text)
- cprsResponseStatus :: Lens' CreateProtectionResponse Int
Creating a Request
Creates a value of CreateProtection
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cpName
- Friendly name for theProtection
you are creating.cpResourceARN
- 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 :loadbalancerappload-balancer-name /load-balancer-id
* For an Elastic Load Balancer (Classic Load Balancer):arn:aws:elasticloadbalancing:region :account-id :loadbalancer/load-balancer-name
* For AWS CloudFront distribution:arn:aws:cloudfront::account-id :distribution/distribution-id
* For Amazon Route 53:arn:aws:route53::account-id :hostedzone/hosted-zone-id
* For an Elastic IP address:arn:aws:ec2:region :account-id :eip-allocation/allocation-id
data CreateProtection Source #
See: createProtection
smart constructor.
Request Lenses
cpResourceARN :: Lens' CreateProtection Text Source #
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 :loadbalancerappload-balancer-name /load-balancer-id
* For an Elastic Load Balancer (Classic Load Balancer): arn:aws:elasticloadbalancing:region :account-id :loadbalancer/load-balancer-name
* For AWS CloudFront distribution: arn:aws:cloudfront::account-id :distribution/distribution-id
* For Amazon Route 53: arn:aws:route53::account-id :hostedzone/hosted-zone-id
* For an Elastic IP address: arn:aws:ec2:region :account-id :eip-allocation/allocation-id
Destructuring the Response
createProtectionResponse Source #
Creates a value of CreateProtectionResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cprsProtectionId
- The unique identifier (ID) for theProtection
object that is created.cprsResponseStatus
- -- | The response status code.
data CreateProtectionResponse Source #
See: createProtectionResponse
smart constructor.
Response Lenses
cprsProtectionId :: Lens' CreateProtectionResponse (Maybe Text) Source #
The unique identifier (ID) for the Protection
object that is created.
cprsResponseStatus :: Lens' CreateProtectionResponse Int Source #
- - | The response status code.