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 specified image from the specified Region to the current Region. For more information about copying images, see Copy a Custom WorkSpaces Image.
In the China (Ningxia) Region, you can copy images only within the same Region.
In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web Services Support.
Before copying a shared image, be sure to verify that it has been shared from the correct Amazon Web Services account. To determine if an image has been shared and to see the ID of the Amazon Web Services account that owns an image, use the DescribeWorkSpaceImages and DescribeWorkspaceImagePermissions API operations.
Synopsis
- data CopyWorkspaceImage = CopyWorkspaceImage' {
- description :: Maybe Text
- tags :: Maybe [Tag]
- name :: Text
- sourceImageId :: Text
- sourceRegion :: Text
- newCopyWorkspaceImage :: Text -> Text -> Text -> CopyWorkspaceImage
- copyWorkspaceImage_description :: Lens' CopyWorkspaceImage (Maybe Text)
- copyWorkspaceImage_tags :: Lens' CopyWorkspaceImage (Maybe [Tag])
- copyWorkspaceImage_name :: Lens' CopyWorkspaceImage Text
- copyWorkspaceImage_sourceImageId :: Lens' CopyWorkspaceImage Text
- copyWorkspaceImage_sourceRegion :: Lens' CopyWorkspaceImage Text
- data CopyWorkspaceImageResponse = CopyWorkspaceImageResponse' {
- imageId :: Maybe Text
- httpStatus :: Int
- newCopyWorkspaceImageResponse :: Int -> CopyWorkspaceImageResponse
- copyWorkspaceImageResponse_imageId :: Lens' CopyWorkspaceImageResponse (Maybe Text)
- copyWorkspaceImageResponse_httpStatus :: Lens' CopyWorkspaceImageResponse Int
Creating a Request
data CopyWorkspaceImage Source #
See: newCopyWorkspaceImage
smart constructor.
CopyWorkspaceImage' | |
|
Instances
newCopyWorkspaceImage Source #
:: Text | |
-> Text | |
-> Text | |
-> CopyWorkspaceImage |
Create a value of CopyWorkspaceImage
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:description:CopyWorkspaceImage'
, copyWorkspaceImage_description
- A description of the image.
$sel:tags:CopyWorkspaceImage'
, copyWorkspaceImage_tags
- The tags for the image.
$sel:name:CopyWorkspaceImage'
, copyWorkspaceImage_name
- The name of the image.
$sel:sourceImageId:CopyWorkspaceImage'
, copyWorkspaceImage_sourceImageId
- The identifier of the source image.
$sel:sourceRegion:CopyWorkspaceImage'
, copyWorkspaceImage_sourceRegion
- The identifier of the source Region.
Request Lenses
copyWorkspaceImage_description :: Lens' CopyWorkspaceImage (Maybe Text) Source #
A description of the image.
copyWorkspaceImage_tags :: Lens' CopyWorkspaceImage (Maybe [Tag]) Source #
The tags for the image.
copyWorkspaceImage_name :: Lens' CopyWorkspaceImage Text Source #
The name of the image.
copyWorkspaceImage_sourceImageId :: Lens' CopyWorkspaceImage Text Source #
The identifier of the source image.
copyWorkspaceImage_sourceRegion :: Lens' CopyWorkspaceImage Text Source #
The identifier of the source Region.
Destructuring the Response
data CopyWorkspaceImageResponse Source #
See: newCopyWorkspaceImageResponse
smart constructor.
CopyWorkspaceImageResponse' | |
|
Instances
newCopyWorkspaceImageResponse Source #
Create a value of CopyWorkspaceImageResponse
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:imageId:CopyWorkspaceImageResponse'
, copyWorkspaceImageResponse_imageId
- The identifier of the image.
$sel:httpStatus:CopyWorkspaceImageResponse'
, copyWorkspaceImageResponse_httpStatus
- The response's http status code.
Response Lenses
copyWorkspaceImageResponse_imageId :: Lens' CopyWorkspaceImageResponse (Maybe Text) Source #
The identifier of the image.
copyWorkspaceImageResponse_httpStatus :: Lens' CopyWorkspaceImageResponse Int Source #
The response's http status code.