Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@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, 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.
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.
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.