Struct aws_sdk_appstream::client::fluent_builders::CopyImage
source · pub struct CopyImage { /* private fields */ }
Expand description
Fluent builder constructing a request to CopyImage
.
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.
Implementations§
source§impl CopyImage
impl CopyImage
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CopyImage, AwsResponseRetryClassifier>, SdkError<CopyImageError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CopyImage, AwsResponseRetryClassifier>, SdkError<CopyImageError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<CopyImageOutput, SdkError<CopyImageError>>
pub async fn send(self) -> Result<CopyImageOutput, SdkError<CopyImageError>>
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.
sourcepub fn source_image_name(self, input: impl Into<String>) -> Self
pub fn source_image_name(self, input: impl Into<String>) -> Self
The name of the image to copy.
sourcepub fn set_source_image_name(self, input: Option<String>) -> Self
pub fn set_source_image_name(self, input: Option<String>) -> Self
The name of the image to copy.
sourcepub fn destination_image_name(self, input: impl Into<String>) -> Self
pub fn destination_image_name(self, input: impl Into<String>) -> Self
The name that the image will have when it is copied to the destination.
sourcepub fn set_destination_image_name(self, input: Option<String>) -> Self
pub fn set_destination_image_name(self, input: Option<String>) -> Self
The name that the image will have when it is copied to the destination.
sourcepub fn destination_region(self, input: impl Into<String>) -> Self
pub fn destination_region(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_destination_region(self, input: Option<String>) -> Self
pub fn set_destination_region(self, input: Option<String>) -> Self
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.
sourcepub fn destination_image_description(self, input: impl Into<String>) -> Self
pub fn destination_image_description(self, input: impl Into<String>) -> Self
The description that the image will have when it is copied to the destination.
sourcepub fn set_destination_image_description(self, input: Option<String>) -> Self
pub fn set_destination_image_description(self, input: Option<String>) -> Self
The description that the image will have when it is copied to the destination.