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 |
Deletes a list of specified images within a repository in a public
registry. Images are specified with either an imageTag
or
imageDigest
.
You can remove a tag from an image by specifying the image's tag in your request. When you remove the last tag from an image, the image is deleted from your repository.
You can completely delete an image (and all of its tags) by specifying the image's digest in your request.
Synopsis
- data BatchDeleteImage = BatchDeleteImage' {}
- newBatchDeleteImage :: Text -> NonEmpty ImageIdentifier -> BatchDeleteImage
- batchDeleteImage_registryId :: Lens' BatchDeleteImage (Maybe Text)
- batchDeleteImage_repositoryName :: Lens' BatchDeleteImage Text
- batchDeleteImage_imageIds :: Lens' BatchDeleteImage (NonEmpty ImageIdentifier)
- data BatchDeleteImageResponse = BatchDeleteImageResponse' {
- failures :: Maybe [ImageFailure]
- imageIds :: Maybe (NonEmpty ImageIdentifier)
- httpStatus :: Int
- newBatchDeleteImageResponse :: Int -> BatchDeleteImageResponse
- batchDeleteImageResponse_failures :: Lens' BatchDeleteImageResponse (Maybe [ImageFailure])
- batchDeleteImageResponse_imageIds :: Lens' BatchDeleteImageResponse (Maybe (NonEmpty ImageIdentifier))
- batchDeleteImageResponse_httpStatus :: Lens' BatchDeleteImageResponse Int
Creating a Request
data BatchDeleteImage Source #
See: newBatchDeleteImage
smart constructor.
BatchDeleteImage' | |
|
Instances
Create a value of BatchDeleteImage
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:registryId:BatchDeleteImage'
, batchDeleteImage_registryId
- The AWS account ID associated with the registry that contains the image
to delete. If you do not specify a registry, the default public registry
is assumed.
$sel:repositoryName:BatchDeleteImage'
, batchDeleteImage_repositoryName
- The repository in a public registry that contains the image to delete.
$sel:imageIds:BatchDeleteImage'
, batchDeleteImage_imageIds
- A list of image ID references that correspond to images to delete. The
format of the imageIds
reference is imageTag=tag
or
imageDigest=digest
.
Request Lenses
batchDeleteImage_registryId :: Lens' BatchDeleteImage (Maybe Text) Source #
The AWS account ID associated with the registry that contains the image to delete. If you do not specify a registry, the default public registry is assumed.
batchDeleteImage_repositoryName :: Lens' BatchDeleteImage Text Source #
The repository in a public registry that contains the image to delete.
batchDeleteImage_imageIds :: Lens' BatchDeleteImage (NonEmpty ImageIdentifier) Source #
A list of image ID references that correspond to images to delete. The
format of the imageIds
reference is imageTag=tag
or
imageDigest=digest
.
Destructuring the Response
data BatchDeleteImageResponse Source #
See: newBatchDeleteImageResponse
smart constructor.
BatchDeleteImageResponse' | |
|
Instances
newBatchDeleteImageResponse Source #
Create a value of BatchDeleteImageResponse
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:failures:BatchDeleteImageResponse'
, batchDeleteImageResponse_failures
- Any failures associated with the call.
$sel:imageIds:BatchDeleteImage'
, batchDeleteImageResponse_imageIds
- The image IDs of the deleted images.
$sel:httpStatus:BatchDeleteImageResponse'
, batchDeleteImageResponse_httpStatus
- The response's http status code.
Response Lenses
batchDeleteImageResponse_failures :: Lens' BatchDeleteImageResponse (Maybe [ImageFailure]) Source #
Any failures associated with the call.
batchDeleteImageResponse_imageIds :: Lens' BatchDeleteImageResponse (Maybe (NonEmpty ImageIdentifier)) Source #
The image IDs of the deleted images.
batchDeleteImageResponse_httpStatus :: Lens' BatchDeleteImageResponse Int Source #
The response's http status code.