pub struct CreateImageRecipe { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateImageRecipe
.
Creates a new image recipe. Image recipes define how images are configured, tested, and assessed.
Implementations§
source§impl CreateImageRecipe
impl CreateImageRecipe
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateImageRecipe, AwsResponseRetryClassifier>, SdkError<CreateImageRecipeError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateImageRecipe, AwsResponseRetryClassifier>, SdkError<CreateImageRecipeError>>
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<CreateImageRecipeOutput, SdkError<CreateImageRecipeError>>
pub async fn send(
self
) -> Result<CreateImageRecipeOutput, SdkError<CreateImageRecipeError>>
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 description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the image recipe.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the image recipe.
sourcepub fn semantic_version(self, input: impl Into<String>) -> Self
pub fn semantic_version(self, input: impl Into<String>) -> Self
The semantic version of the image recipe. This version follows the semantic version syntax.
The semantic version has four nodes:
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
sourcepub fn set_semantic_version(self, input: Option<String>) -> Self
pub fn set_semantic_version(self, input: Option<String>) -> Self
The semantic version of the image recipe. This version follows the semantic version syntax.
The semantic version has four nodes:
Assignment: For the first three nodes you can assign any positive integer value, including zero, with an upper limit of 2^30-1, or 1073741823 for each node. Image Builder automatically assigns the build number to the fourth node.
Patterns: You can use any numeric pattern that adheres to the assignment requirements for the nodes that you can assign. For example, you might choose a software version pattern, such as 1.0.0, or a date, such as 2021.01.01.
sourcepub fn components(self, input: ComponentConfiguration) -> Self
pub fn components(self, input: ComponentConfiguration) -> Self
Appends an item to components
.
To override the contents of this collection use set_components
.
The components of the image recipe.
sourcepub fn set_components(self, input: Option<Vec<ComponentConfiguration>>) -> Self
pub fn set_components(self, input: Option<Vec<ComponentConfiguration>>) -> Self
The components of the image recipe.
sourcepub fn parent_image(self, input: impl Into<String>) -> Self
pub fn parent_image(self, input: impl Into<String>) -> Self
The base image of the image recipe. The value of the string can be the ARN of the base image or an AMI ID. The format for the ARN follows this example: arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/x.x.x
. You can provide the specific version that you want to use, or you can use a wildcard in all of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, and the AMI must be in the same Region in which you are using Image Builder.
sourcepub fn set_parent_image(self, input: Option<String>) -> Self
pub fn set_parent_image(self, input: Option<String>) -> Self
The base image of the image recipe. The value of the string can be the ARN of the base image or an AMI ID. The format for the ARN follows this example: arn:aws:imagebuilder:us-west-2:aws:image/windows-server-2016-english-full-base-x86/x.x.x
. You can provide the specific version that you want to use, or you can use a wildcard in all of the fields. If you enter an AMI ID for the string value, you must have access to the AMI, and the AMI must be in the same Region in which you are using Image Builder.
sourcepub fn block_device_mappings(self, input: InstanceBlockDeviceMapping) -> Self
pub fn block_device_mappings(self, input: InstanceBlockDeviceMapping) -> Self
Appends an item to blockDeviceMappings
.
To override the contents of this collection use set_block_device_mappings
.
The block device mappings of the image recipe.
sourcepub fn set_block_device_mappings(
self,
input: Option<Vec<InstanceBlockDeviceMapping>>
) -> Self
pub fn set_block_device_mappings(
self,
input: Option<Vec<InstanceBlockDeviceMapping>>
) -> Self
The block device mappings of the image recipe.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags of the image recipe.
The tags of the image recipe.
sourcepub fn working_directory(self, input: impl Into<String>) -> Self
pub fn working_directory(self, input: impl Into<String>) -> Self
The working directory used during build and test workflows.
sourcepub fn set_working_directory(self, input: Option<String>) -> Self
pub fn set_working_directory(self, input: Option<String>) -> Self
The working directory used during build and test workflows.
sourcepub fn additional_instance_configuration(
self,
input: AdditionalInstanceConfiguration
) -> Self
pub fn additional_instance_configuration(
self,
input: AdditionalInstanceConfiguration
) -> Self
Specify additional settings and launch scripts for your build instances.
sourcepub fn set_additional_instance_configuration(
self,
input: Option<AdditionalInstanceConfiguration>
) -> Self
pub fn set_additional_instance_configuration(
self,
input: Option<AdditionalInstanceConfiguration>
) -> Self
Specify additional settings and launch scripts for your build instances.
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 CreateImageRecipe
impl Clone for CreateImageRecipe
source§fn clone(&self) -> CreateImageRecipe
fn clone(&self) -> CreateImageRecipe
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more