pub struct CreateImageFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateImage
.
Creates a new image. This request will create a new image along with all of the configured output resources defined in the distribution configuration. You must specify exactly one recipe for your image, using either a ContainerRecipeArn or an ImageRecipeArn.
Implementations§
source§impl CreateImageFluentBuilder
impl CreateImageFluentBuilder
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateImage, AwsResponseRetryClassifier>, SdkError<CreateImageError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateImage, AwsResponseRetryClassifier>, SdkError<CreateImageError>>
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<CreateImageOutput, SdkError<CreateImageError>>
pub async fn send(self) -> Result<CreateImageOutput, SdkError<CreateImageError>>
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 image_recipe_arn(self, input: impl Into<String>) -> Self
pub fn image_recipe_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.
sourcepub fn set_image_recipe_arn(self, input: Option<String>) -> Self
pub fn set_image_recipe_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.
sourcepub fn container_recipe_arn(self, input: impl Into<String>) -> Self
pub fn container_recipe_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.
sourcepub fn set_container_recipe_arn(self, input: Option<String>) -> Self
pub fn set_container_recipe_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.
sourcepub fn distribution_configuration_arn(self, input: impl Into<String>) -> Self
pub fn distribution_configuration_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.
sourcepub fn set_distribution_configuration_arn(self, input: Option<String>) -> Self
pub fn set_distribution_configuration_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the distribution configuration that defines and configures the outputs of your pipeline.
sourcepub fn infrastructure_configuration_arn(self, input: impl Into<String>) -> Self
pub fn infrastructure_configuration_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.
sourcepub fn set_infrastructure_configuration_arn(self, input: Option<String>) -> Self
pub fn set_infrastructure_configuration_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the infrastructure configuration that defines the environment in which your image will be built and tested.
sourcepub fn image_tests_configuration(self, input: ImageTestsConfiguration) -> Self
pub fn image_tests_configuration(self, input: ImageTestsConfiguration) -> Self
The image tests configuration of the image.
sourcepub fn set_image_tests_configuration(
self,
input: Option<ImageTestsConfiguration>
) -> Self
pub fn set_image_tests_configuration( self, input: Option<ImageTestsConfiguration> ) -> Self
The image tests configuration of the image.
sourcepub fn enhanced_image_metadata_enabled(self, input: bool) -> Self
pub fn enhanced_image_metadata_enabled(self, input: bool) -> Self
Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
sourcepub fn set_enhanced_image_metadata_enabled(self, input: Option<bool>) -> Self
pub fn set_enhanced_image_metadata_enabled(self, input: Option<bool>) -> Self
Collects additional information about the image being created, including the operating system (OS) version and package list. This information is used to enhance the overall experience of using EC2 Image Builder. Enabled by default.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags of the image.
The tags of the image.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
The idempotency token used to make this request idempotent.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
The idempotency token used to make this request idempotent.
Trait Implementations§
source§impl Clone for CreateImageFluentBuilder
impl Clone for CreateImageFluentBuilder
source§fn clone(&self) -> CreateImageFluentBuilder
fn clone(&self) -> CreateImageFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more