pub struct CopyWorkspaceImage<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description
Fluent builder constructing a request to CopyWorkspaceImage
.
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.
Implementations
impl<C, M, R> CopyWorkspaceImage<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CopyWorkspaceImage<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CopyWorkspaceImageOutput, SdkError<CopyWorkspaceImageError>> where
R::Policy: SmithyRetryPolicy<CopyWorkspaceImageInputOperationOutputAlias, CopyWorkspaceImageOutput, CopyWorkspaceImageError, CopyWorkspaceImageInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CopyWorkspaceImageOutput, SdkError<CopyWorkspaceImageError>> where
R::Policy: SmithyRetryPolicy<CopyWorkspaceImageInputOperationOutputAlias, CopyWorkspaceImageOutput, CopyWorkspaceImageError, CopyWorkspaceImageInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
A description of the image.
A description of the image.
The identifier of the source image.
The identifier of the source image.
The identifier of the source Region.
The identifier of the source Region.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
The tags for the image.
The tags for the image.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CopyWorkspaceImage<C, M, R>
impl<C, M, R> Send for CopyWorkspaceImage<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CopyWorkspaceImage<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CopyWorkspaceImage<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CopyWorkspaceImage<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more