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 |
Copies the image within the same region or to a new region within the same AWS account. Note that any tags you added to the image will not be copied.
Synopsis
- data CopyImage = CopyImage' {}
- newCopyImage :: Text -> Text -> Text -> CopyImage
- copyImage_destinationImageDescription :: Lens' CopyImage (Maybe Text)
- copyImage_sourceImageName :: Lens' CopyImage Text
- copyImage_destinationImageName :: Lens' CopyImage Text
- copyImage_destinationRegion :: Lens' CopyImage Text
- data CopyImageResponse = CopyImageResponse' {}
- newCopyImageResponse :: Int -> CopyImageResponse
- copyImageResponse_destinationImageName :: Lens' CopyImageResponse (Maybe Text)
- copyImageResponse_httpStatus :: Lens' CopyImageResponse Int
Creating a Request
See: newCopyImage
smart constructor.
CopyImage' | |
|
Instances
Create a value of CopyImage
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:destinationImageDescription:CopyImage'
, copyImage_destinationImageDescription
- The description that the image will have when it is copied to the
destination.
$sel:sourceImageName:CopyImage'
, copyImage_sourceImageName
- The name of the image to copy.
$sel:destinationImageName:CopyImage'
, copyImage_destinationImageName
- The name that the image will have when it is copied to the destination.
$sel:destinationRegion:CopyImage'
, copyImage_destinationRegion
- The destination region to which the image will be copied. This parameter
is required, even if you are copying an image within the same region.
Request Lenses
copyImage_destinationImageDescription :: Lens' CopyImage (Maybe Text) Source #
The description that the image will have when it is copied to the destination.
copyImage_destinationImageName :: Lens' CopyImage Text Source #
The name that the image will have when it is copied to the destination.
copyImage_destinationRegion :: Lens' CopyImage Text Source #
The destination region to which the image will be copied. This parameter is required, even if you are copying an image within the same region.
Destructuring the Response
data CopyImageResponse Source #
See: newCopyImageResponse
smart constructor.
CopyImageResponse' | |
|
Instances
Create a value of CopyImageResponse
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:destinationImageName:CopyImage'
, copyImageResponse_destinationImageName
- The name of the destination image.
$sel:httpStatus:CopyImageResponse'
, copyImageResponse_httpStatus
- The response's http status code.
Response Lenses
copyImageResponse_destinationImageName :: Lens' CopyImageResponse (Maybe Text) Source #
The name of the destination image.
copyImageResponse_httpStatus :: Lens' CopyImageResponse Int Source #
The response's http status code.