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 an Image Builder image resource. This does not delete any EC2 AMIs or ECR container images that are created during the image build process. You must clean those up separately, using the appropriate Amazon EC2 or Amazon ECR console actions, or API or CLI commands.
- To deregister an EC2 Linux AMI, see Deregister your Linux AMI in the /Amazon EC2 User Guide/ .
- To deregister an EC2 Windows AMI, see Deregister your Windows AMI in the /Amazon EC2 Windows Guide/ .
- To delete a container image from Amazon ECR, see Deleting an image in the Amazon ECR User Guide.
Synopsis
- data DeleteImage = DeleteImage' {}
- newDeleteImage :: Text -> DeleteImage
- deleteImage_imageBuildVersionArn :: Lens' DeleteImage Text
- data DeleteImageResponse = DeleteImageResponse' {}
- newDeleteImageResponse :: Int -> DeleteImageResponse
- deleteImageResponse_requestId :: Lens' DeleteImageResponse (Maybe Text)
- deleteImageResponse_imageBuildVersionArn :: Lens' DeleteImageResponse (Maybe Text)
- deleteImageResponse_httpStatus :: Lens' DeleteImageResponse Int
Creating a Request
data DeleteImage Source #
See: newDeleteImage
smart constructor.
DeleteImage' | |
|
Instances
Create a value of DeleteImage
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:imageBuildVersionArn:DeleteImage'
, deleteImage_imageBuildVersionArn
- The Amazon Resource Name (ARN) of the Image Builder image resource to
delete.
Request Lenses
deleteImage_imageBuildVersionArn :: Lens' DeleteImage Text Source #
The Amazon Resource Name (ARN) of the Image Builder image resource to delete.
Destructuring the Response
data DeleteImageResponse Source #
See: newDeleteImageResponse
smart constructor.
DeleteImageResponse' | |
|
Instances
newDeleteImageResponse Source #
Create a value of DeleteImageResponse
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:requestId:DeleteImageResponse'
, deleteImageResponse_requestId
- The request ID that uniquely identifies this request.
$sel:imageBuildVersionArn:DeleteImage'
, deleteImageResponse_imageBuildVersionArn
- The Amazon Resource Name (ARN) of the Image Builder image resource that
was deleted.
$sel:httpStatus:DeleteImageResponse'
, deleteImageResponse_httpStatus
- The response's http status code.
Response Lenses
deleteImageResponse_requestId :: Lens' DeleteImageResponse (Maybe Text) Source #
The request ID that uniquely identifies this request.
deleteImageResponse_imageBuildVersionArn :: Lens' DeleteImageResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the Image Builder image resource that was deleted.
deleteImageResponse_httpStatus :: Lens' DeleteImageResponse Int Source #
The response's http status code.