Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
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.
- copyImage :: Text -> Text -> Text -> CopyImage
- data CopyImage
- ciDestinationImageDescription :: Lens' CopyImage (Maybe Text)
- ciSourceImageName :: Lens' CopyImage Text
- ciDestinationImageName :: Lens' CopyImage Text
- ciDestinationRegion :: Lens' CopyImage Text
- copyImageResponse :: Int -> CopyImageResponse
- data CopyImageResponse
- cirsDestinationImageName :: Lens' CopyImageResponse (Maybe Text)
- cirsResponseStatus :: Lens' CopyImageResponse Int
Creating a Request
Creates a value of CopyImage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ciDestinationImageDescription
- The description that the image will have when it is copied to the destination.ciSourceImageName
- The name of the image to copy.ciDestinationImageName
- The name that the image will have when it is copied to the destination.ciDestinationRegion
- 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.
See: copyImage
smart constructor.
Request Lenses
ciDestinationImageDescription :: Lens' CopyImage (Maybe Text) Source #
The description that the image will have when it is copied to the destination.
ciDestinationImageName :: Lens' CopyImage Text Source #
The name that the image will have when it is copied to the destination.
ciDestinationRegion :: 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
Creates a value of CopyImageResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cirsDestinationImageName
- The name of the destination image.cirsResponseStatus
- -- | The response status code.
data CopyImageResponse Source #
See: copyImageResponse
smart constructor.
Response Lenses
cirsDestinationImageName :: Lens' CopyImageResponse (Maybe Text) Source #
The name of the destination image.
cirsResponseStatus :: Lens' CopyImageResponse Int Source #
- - | The response status code.