Struct aws_sdk_imagebuilder::operation::create_image_recipe::builders::CreateImageRecipeInputBuilder
source · #[non_exhaustive]pub struct CreateImageRecipeInputBuilder { /* private fields */ }
Expand description
A builder for CreateImageRecipeInput
.
Implementations§
source§impl CreateImageRecipeInputBuilder
impl CreateImageRecipeInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the image recipe.
This field is required.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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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 get_semantic_version(&self) -> &Option<String>
pub fn get_semantic_version(&self) -> &Option<String>
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 included in 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 included in the image recipe.
sourcepub fn get_components(&self) -> &Option<Vec<ComponentConfiguration>>
pub fn get_components(&self) -> &Option<Vec<ComponentConfiguration>>
The components included in 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 get_parent_image(&self) -> &Option<String>
pub fn get_parent_image(&self) -> &Option<String>
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 block_device_mappings
.
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.
sourcepub fn get_block_device_mappings(
&self
) -> &Option<Vec<InstanceBlockDeviceMapping>>
pub fn get_block_device_mappings( &self ) -> &Option<Vec<InstanceBlockDeviceMapping>>
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 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 get_working_directory(&self) -> &Option<String>
pub fn get_working_directory(&self) -> &Option<String>
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 get_additional_instance_configuration(
&self
) -> &Option<AdditionalInstanceConfiguration>
pub fn get_additional_instance_configuration( &self ) -> &Option<AdditionalInstanceConfiguration>
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
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
This field is required.sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see Ensuring idempotency in the Amazon EC2 API Reference.
sourcepub fn build(self) -> Result<CreateImageRecipeInput, BuildError>
pub fn build(self) -> Result<CreateImageRecipeInput, BuildError>
Consumes the builder and constructs a CreateImageRecipeInput
.
source§impl CreateImageRecipeInputBuilder
impl CreateImageRecipeInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateImageRecipeOutput, SdkError<CreateImageRecipeError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateImageRecipeOutput, SdkError<CreateImageRecipeError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateImageRecipeInputBuilder
impl Clone for CreateImageRecipeInputBuilder
source§fn clone(&self) -> CreateImageRecipeInputBuilder
fn clone(&self) -> CreateImageRecipeInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateImageRecipeInputBuilder
impl Default for CreateImageRecipeInputBuilder
source§fn default() -> CreateImageRecipeInputBuilder
fn default() -> CreateImageRecipeInputBuilder
source§impl PartialEq for CreateImageRecipeInputBuilder
impl PartialEq for CreateImageRecipeInputBuilder
source§fn eq(&self, other: &CreateImageRecipeInputBuilder) -> bool
fn eq(&self, other: &CreateImageRecipeInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.