Struct aws_sdk_imagebuilder::client::fluent_builders::CreateImageRecipe [−][src]
pub struct CreateImageRecipe<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* fields omitted */ }
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
impl<C, M, R> CreateImageRecipe<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateImageRecipe<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateImageRecipeOutput, SdkError<CreateImageRecipeError>> where
R::Policy: SmithyRetryPolicy<CreateImageRecipeInputOperationOutputAlias, CreateImageRecipeOutput, CreateImageRecipeError, CreateImageRecipeInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateImageRecipeOutput, SdkError<CreateImageRecipeError>> where
R::Policy: SmithyRetryPolicy<CreateImageRecipeInputOperationOutputAlias, CreateImageRecipeOutput, CreateImageRecipeError, CreateImageRecipeInputOperationRetryAlias>,
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.
The description of the image recipe.
The description of the image recipe.
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.
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.
Appends an item to components
.
To override the contents of this collection use set_components
.
The components of the image recipe.
The components of the image recipe.
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.
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.
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.
pub 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.
The working directory used during build and test workflows.
The working directory used during build and test workflows.
pub 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.
pub 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.
The idempotency token used to make this request idempotent.
The idempotency token used to make this request idempotent.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !RefUnwindSafe for CreateImageRecipe<C, M, R>
impl<C, M, R> Send for CreateImageRecipe<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateImageRecipe<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateImageRecipe<C, M, R>
impl<C = DynConnector, M = DefaultMiddleware, R = Standard> !UnwindSafe for CreateImageRecipe<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