Copyright | (c) 2013-2015 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 |
Create a new invalidation.
See: AWS API Reference for CreateInvalidation.
- createInvalidation :: Text -> InvalidationBatch -> CreateInvalidation
- data CreateInvalidation
- ciDistributionId :: Lens' CreateInvalidation Text
- ciInvalidationBatch :: Lens' CreateInvalidation InvalidationBatch
- createInvalidationResponse :: Int -> CreateInvalidationResponse
- data CreateInvalidationResponse
- cirsInvalidation :: Lens' CreateInvalidationResponse (Maybe Invalidation)
- cirsLocation :: Lens' CreateInvalidationResponse (Maybe Text)
- cirsResponseStatus :: Lens' CreateInvalidationResponse Int
Creating a Request
Creates a value of CreateInvalidation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateInvalidation Source
The request to create an invalidation.
See: createInvalidation
smart constructor.
Request Lenses
ciDistributionId :: Lens' CreateInvalidation Text Source
The distribution's id.
ciInvalidationBatch :: Lens' CreateInvalidation InvalidationBatch Source
The batch information for the invalidation.
Destructuring the Response
createInvalidationResponse Source
Creates a value of CreateInvalidationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateInvalidationResponse Source
The returned result of the corresponding request.
See: createInvalidationResponse
smart constructor.
Response Lenses
cirsInvalidation :: Lens' CreateInvalidationResponse (Maybe Invalidation) Source
The invalidation's information.
cirsLocation :: Lens' CreateInvalidationResponse (Maybe Text) Source
The fully qualified URI of the distribution and invalidation batch request, including the Invalidation ID.
cirsResponseStatus :: Lens' CreateInvalidationResponse Int Source
The response status code.