Struct aws_sdk_ec2::model::response_launch_template_data::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for ResponseLaunchTemplateData
Implementations
The ID of the kernel, if applicable.
Indicates whether the instance is optimized for Amazon EBS I/O.
Indicates whether the instance is optimized for Amazon EBS I/O.
pub fn iam_instance_profile(
self,
input: LaunchTemplateIamInstanceProfileSpecification
) -> Self
pub fn iam_instance_profile(
self,
input: LaunchTemplateIamInstanceProfileSpecification
) -> Self
The IAM instance profile.
pub fn set_iam_instance_profile(
self,
input: Option<LaunchTemplateIamInstanceProfileSpecification>
) -> Self
pub fn set_iam_instance_profile(
self,
input: Option<LaunchTemplateIamInstanceProfileSpecification>
) -> Self
The IAM instance profile.
Appends an item to block_device_mappings
.
To override the contents of this collection use set_block_device_mappings
.
The block device mappings.
pub fn set_block_device_mappings(
self,
input: Option<Vec<LaunchTemplateBlockDeviceMapping>>
) -> Self
pub fn set_block_device_mappings(
self,
input: Option<Vec<LaunchTemplateBlockDeviceMapping>>
) -> Self
The block device mappings.
pub fn network_interfaces(
self,
input: LaunchTemplateInstanceNetworkInterfaceSpecification
) -> Self
pub fn network_interfaces(
self,
input: LaunchTemplateInstanceNetworkInterfaceSpecification
) -> Self
Appends an item to network_interfaces
.
To override the contents of this collection use set_network_interfaces
.
The network interfaces.
pub fn set_network_interfaces(
self,
input: Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecification>>
) -> Self
pub fn set_network_interfaces(
self,
input: Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecification>>
) -> Self
The network interfaces.
The ID of the AMI that was used to launch the instance.
The ID of the AMI that was used to launch the instance.
The instance type.
The instance type.
The name of the key pair.
The monitoring for the instance.
The monitoring for the instance.
The placement of the instance.
The placement of the instance.
The ID of the RAM disk, if applicable.
The ID of the RAM disk, if applicable.
If set to true
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.
If set to true
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
pub fn set_instance_initiated_shutdown_behavior(
self,
input: Option<ShutdownBehavior>
) -> Self
pub fn set_instance_initiated_shutdown_behavior(
self,
input: Option<ShutdownBehavior>
) -> Self
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
The user data for the instance.
Appends an item to tag_specifications
.
To override the contents of this collection use set_tag_specifications
.
The tags.
pub fn set_tag_specifications(
self,
input: Option<Vec<LaunchTemplateTagSpecification>>
) -> Self
pub fn set_tag_specifications(
self,
input: Option<Vec<LaunchTemplateTagSpecification>>
) -> Self
The tags.
Appends an item to elastic_gpu_specifications
.
To override the contents of this collection use set_elastic_gpu_specifications
.
The elastic GPU specification.
pub fn set_elastic_gpu_specifications(
self,
input: Option<Vec<ElasticGpuSpecificationResponse>>
) -> Self
pub fn set_elastic_gpu_specifications(
self,
input: Option<Vec<ElasticGpuSpecificationResponse>>
) -> Self
The elastic GPU specification.
pub fn elastic_inference_accelerators(
self,
input: LaunchTemplateElasticInferenceAcceleratorResponse
) -> Self
pub fn elastic_inference_accelerators(
self,
input: LaunchTemplateElasticInferenceAcceleratorResponse
) -> Self
Appends an item to elastic_inference_accelerators
.
To override the contents of this collection use set_elastic_inference_accelerators
.
The elastic inference accelerator for the instance.
pub fn set_elastic_inference_accelerators(
self,
input: Option<Vec<LaunchTemplateElasticInferenceAcceleratorResponse>>
) -> Self
pub fn set_elastic_inference_accelerators(
self,
input: Option<Vec<LaunchTemplateElasticInferenceAcceleratorResponse>>
) -> Self
The elastic inference accelerator for the instance.
Appends an item to security_group_ids
.
To override the contents of this collection use set_security_group_ids
.
The security group IDs.
The security group IDs.
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
The security group names.
The security group names.
The market (purchasing) option for the instances.
pub fn set_instance_market_options(
self,
input: Option<LaunchTemplateInstanceMarketOptions>
) -> Self
pub fn set_instance_market_options(
self,
input: Option<LaunchTemplateInstanceMarketOptions>
) -> Self
The market (purchasing) option for the instances.
The credit option for CPU usage of the instance.
The credit option for CPU usage of the instance.
The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.
The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.
pub fn capacity_reservation_specification(
self,
input: LaunchTemplateCapacityReservationSpecificationResponse
) -> Self
pub fn capacity_reservation_specification(
self,
input: LaunchTemplateCapacityReservationSpecificationResponse
) -> Self
Information about the Capacity Reservation targeting option.
pub fn set_capacity_reservation_specification(
self,
input: Option<LaunchTemplateCapacityReservationSpecificationResponse>
) -> Self
pub fn set_capacity_reservation_specification(
self,
input: Option<LaunchTemplateCapacityReservationSpecificationResponse>
) -> Self
Information about the Capacity Reservation targeting option.
Appends an item to license_specifications
.
To override the contents of this collection use set_license_specifications
.
The license configurations.
pub fn set_license_specifications(
self,
input: Option<Vec<LaunchTemplateLicenseConfiguration>>
) -> Self
pub fn set_license_specifications(
self,
input: Option<Vec<LaunchTemplateLicenseConfiguration>>
) -> Self
The license configurations.
Indicates whether an instance is configured for hibernation. For more information, see Hibernate your instance in the Amazon Elastic Compute Cloud User Guide.
pub fn set_hibernation_options(
self,
input: Option<LaunchTemplateHibernationOptions>
) -> Self
pub fn set_hibernation_options(
self,
input: Option<LaunchTemplateHibernationOptions>
) -> Self
Indicates whether an instance is configured for hibernation. For more information, see Hibernate your instance in the Amazon Elastic Compute Cloud User Guide.
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon Elastic Compute Cloud User Guide.
pub fn set_metadata_options(
self,
input: Option<LaunchTemplateInstanceMetadataOptions>
) -> Self
pub fn set_metadata_options(
self,
input: Option<LaunchTemplateInstanceMetadataOptions>
) -> Self
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon Elastic Compute Cloud User Guide.
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
If you specify InstanceRequirements
, you can't specify InstanceTypes
.
The attributes for the instance types. When you specify instance attributes, Amazon EC2 will identify instance types with these attributes.
If you specify InstanceRequirements
, you can't specify InstanceTypes
.
The options for the instance hostname.
pub fn set_private_dns_name_options(
self,
input: Option<LaunchTemplatePrivateDnsNameOptions>
) -> Self
pub fn set_private_dns_name_options(
self,
input: Option<LaunchTemplatePrivateDnsNameOptions>
) -> Self
The options for the instance hostname.
Consumes the builder and constructs a ResponseLaunchTemplateData
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
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