| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudFront.CreateInvalidation
Description
Create a new invalidation.
Synopsis
- data CreateInvalidation = CreateInvalidation' {}
- newCreateInvalidation :: Text -> InvalidationBatch -> CreateInvalidation
- createInvalidation_distributionId :: Lens' CreateInvalidation Text
- createInvalidation_invalidationBatch :: Lens' CreateInvalidation InvalidationBatch
- data CreateInvalidationResponse = CreateInvalidationResponse' {}
- newCreateInvalidationResponse :: Int -> CreateInvalidationResponse
- createInvalidationResponse_invalidation :: Lens' CreateInvalidationResponse (Maybe Invalidation)
- createInvalidationResponse_location :: Lens' CreateInvalidationResponse (Maybe Text)
- createInvalidationResponse_httpStatus :: Lens' CreateInvalidationResponse Int
Creating a Request
data CreateInvalidation Source #
The request to create an invalidation.
See: newCreateInvalidation smart constructor.
Constructors
| CreateInvalidation' | |
Fields
| |
Instances
newCreateInvalidation Source #
Create a value of CreateInvalidation with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateInvalidation, createInvalidation_distributionId - The distribution's id.
CreateInvalidation, createInvalidation_invalidationBatch - The batch information for the invalidation.
Request Lenses
createInvalidation_distributionId :: Lens' CreateInvalidation Text Source #
The distribution's id.
createInvalidation_invalidationBatch :: Lens' CreateInvalidation InvalidationBatch Source #
The batch information for the invalidation.
Destructuring the Response
data CreateInvalidationResponse Source #
The returned result of the corresponding request.
See: newCreateInvalidationResponse smart constructor.
Constructors
| CreateInvalidationResponse' | |
Fields
| |
Instances
newCreateInvalidationResponse Source #
Create a value of CreateInvalidationResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:invalidation:CreateInvalidationResponse', createInvalidationResponse_invalidation - The invalidation's information.
$sel:location:CreateInvalidationResponse', createInvalidationResponse_location - The fully qualified URI of the distribution and invalidation batch
request, including the Invalidation ID.
$sel:httpStatus:CreateInvalidationResponse', createInvalidationResponse_httpStatus - The response's http status code.
Response Lenses
createInvalidationResponse_invalidation :: Lens' CreateInvalidationResponse (Maybe Invalidation) Source #
The invalidation's information.
createInvalidationResponse_location :: Lens' CreateInvalidationResponse (Maybe Text) Source #
The fully qualified URI of the distribution and invalidation batch
request, including the Invalidation ID.
createInvalidationResponse_httpStatus :: Lens' CreateInvalidationResponse Int Source #
The response's http status code.