Copyright | (c) 2013-2021 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 |
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.
CreateInvalidation' | |
|
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:
$sel:distributionId:CreateInvalidation'
, createInvalidation_distributionId
- The distribution's id.
$sel:invalidationBatch: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.
CreateInvalidationResponse' | |
|
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.