| Copyright | (c) 2013-2017 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 |
Network.AWS.Shield.CreateProtection
Description
Enables AWS Shield Advanced for a specific AWS resource. The resource can be an Amazon CloudFront distribution, Elastic Load Balancing load balancer, 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
Arguments
| :: Text | |
| -> Text | |
| -> CreateProtection |
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 theProtectionyou are creating.cpResourceARN- The ARN (Amazon Resource Name) of the resource to be protected.
data CreateProtection Source #
See: createProtection smart constructor.
Instances
Request Lenses
cpResourceARN :: Lens' CreateProtection Text Source #
The ARN (Amazon Resource Name) of the resource to be protected.
Destructuring the Response
createProtectionResponse Source #
Arguments
| :: Int | |
| -> CreateProtectionResponse |
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 theProtectionobject 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.