aws_sdk_imagebuilder/client/retry_image.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`RetryImage`](crate::operation::retry_image::builders::RetryImageFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`image_build_version_arn(impl Into<String>)`](crate::operation::retry_image::builders::RetryImageFluentBuilder::image_build_version_arn) / [`set_image_build_version_arn(Option<String>)`](crate::operation::retry_image::builders::RetryImageFluentBuilder::set_image_build_version_arn):<br>required: **true**<br><p>The source image Amazon Resource Name (ARN) to retry.</p><br>
7 /// - [`client_token(impl Into<String>)`](crate::operation::retry_image::builders::RetryImageFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::retry_image::builders::RetryImageFluentBuilder::set_client_token):<br>required: **true**<br><p>Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html">Ensuring idempotency</a> in the <i>Amazon EC2 API Reference</i>.</p><br>
8 /// - On success, responds with [`RetryImageOutput`](crate::operation::retry_image::RetryImageOutput) with field(s):
9 /// - [`client_token(Option<String>)`](crate::operation::retry_image::RetryImageOutput::client_token): <p>The client token that uniquely identifies the request.</p>
10 /// - [`image_build_version_arn(Option<String>)`](crate::operation::retry_image::RetryImageOutput::image_build_version_arn): <p>The ARN of the image to be retried.</p>
11 /// - On failure, responds with [`SdkError<RetryImageError>`](crate::operation::retry_image::RetryImageError)
12 pub fn retry_image(&self) -> crate::operation::retry_image::builders::RetryImageFluentBuilder {
13 crate::operation::retry_image::builders::RetryImageFluentBuilder::new(self.handle.clone())
14 }
15}