Struct aws_sdk_ec2::types::ResponseLaunchTemplateData
source · #[non_exhaustive]pub struct ResponseLaunchTemplateData {Show 31 fields
pub kernel_id: Option<String>,
pub ebs_optimized: Option<bool>,
pub iam_instance_profile: Option<LaunchTemplateIamInstanceProfileSpecification>,
pub block_device_mappings: Option<Vec<LaunchTemplateBlockDeviceMapping>>,
pub network_interfaces: Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecification>>,
pub image_id: Option<String>,
pub instance_type: Option<InstanceType>,
pub key_name: Option<String>,
pub monitoring: Option<LaunchTemplatesMonitoring>,
pub placement: Option<LaunchTemplatePlacement>,
pub ram_disk_id: Option<String>,
pub disable_api_termination: Option<bool>,
pub instance_initiated_shutdown_behavior: Option<ShutdownBehavior>,
pub user_data: Option<String>,
pub tag_specifications: Option<Vec<LaunchTemplateTagSpecification>>,
pub elastic_gpu_specifications: Option<Vec<ElasticGpuSpecificationResponse>>,
pub elastic_inference_accelerators: Option<Vec<LaunchTemplateElasticInferenceAcceleratorResponse>>,
pub security_group_ids: Option<Vec<String>>,
pub security_groups: Option<Vec<String>>,
pub instance_market_options: Option<LaunchTemplateInstanceMarketOptions>,
pub credit_specification: Option<CreditSpecification>,
pub cpu_options: Option<LaunchTemplateCpuOptions>,
pub capacity_reservation_specification: Option<LaunchTemplateCapacityReservationSpecificationResponse>,
pub license_specifications: Option<Vec<LaunchTemplateLicenseConfiguration>>,
pub hibernation_options: Option<LaunchTemplateHibernationOptions>,
pub metadata_options: Option<LaunchTemplateInstanceMetadataOptions>,
pub enclave_options: Option<LaunchTemplateEnclaveOptions>,
pub instance_requirements: Option<InstanceRequirements>,
pub private_dns_name_options: Option<LaunchTemplatePrivateDnsNameOptions>,
pub maintenance_options: Option<LaunchTemplateInstanceMaintenanceOptions>,
pub disable_api_stop: Option<bool>,
}
Expand description
The information for a launch template.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kernel_id: Option<String>
The ID of the kernel, if applicable.
ebs_optimized: Option<bool>
Indicates whether the instance is optimized for Amazon EBS I/O.
iam_instance_profile: Option<LaunchTemplateIamInstanceProfileSpecification>
The IAM instance profile.
block_device_mappings: Option<Vec<LaunchTemplateBlockDeviceMapping>>
The block device mappings.
network_interfaces: Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecification>>
The network interfaces.
image_id: Option<String>
The ID of the AMI or a Systems Manager parameter. The Systems Manager parameter will resolve to the ID of the AMI at instance launch.
The value depends on what you specified in the request. The possible values are:
-
If an AMI ID was specified in the request, then this is the AMI ID.
-
If a Systems Manager parameter was specified in the request, and
ResolveAlias
was configured astrue
, then this is the AMI ID that the parameter is mapped to in the Parameter Store. -
If a Systems Manager parameter was specified in the request, and
ResolveAlias
was configured asfalse
, then this is the parameter value.
For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon Elastic Compute Cloud User Guide.
instance_type: Option<InstanceType>
The instance type.
key_name: Option<String>
The name of the key pair.
monitoring: Option<LaunchTemplatesMonitoring>
The monitoring for the instance.
placement: Option<LaunchTemplatePlacement>
The placement of the instance.
ram_disk_id: Option<String>
The ID of the RAM disk, if applicable.
disable_api_termination: Option<bool>
If set to true
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.
instance_initiated_shutdown_behavior: Option<ShutdownBehavior>
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
user_data: Option<String>
The user data for the instance.
tag_specifications: Option<Vec<LaunchTemplateTagSpecification>>
The tags that are applied to the resources that are created during instance launch.
elastic_gpu_specifications: Option<Vec<ElasticGpuSpecificationResponse>>
The elastic GPU specification.
elastic_inference_accelerators: Option<Vec<LaunchTemplateElasticInferenceAcceleratorResponse>>
The elastic inference accelerator for the instance.
security_group_ids: Option<Vec<String>>
The security group IDs.
security_groups: Option<Vec<String>>
The security group names.
instance_market_options: Option<LaunchTemplateInstanceMarketOptions>
The market (purchasing) option for the instances.
credit_specification: Option<CreditSpecification>
The credit option for CPU usage of the instance.
cpu_options: Option<LaunchTemplateCpuOptions>
The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.
capacity_reservation_specification: Option<LaunchTemplateCapacityReservationSpecificationResponse>
Information about the Capacity Reservation targeting option.
license_specifications: Option<Vec<LaunchTemplateLicenseConfiguration>>
The license configurations.
hibernation_options: Option<LaunchTemplateHibernationOptions>
Indicates whether an instance is configured for hibernation. For more information, see Hibernate your instance in the Amazon Elastic Compute Cloud User Guide.
metadata_options: Option<LaunchTemplateInstanceMetadataOptions>
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon Elastic Compute Cloud User Guide.
enclave_options: Option<LaunchTemplateEnclaveOptions>
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
instance_requirements: Option<InstanceRequirements>
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
.
private_dns_name_options: Option<LaunchTemplatePrivateDnsNameOptions>
The options for the instance hostname.
maintenance_options: Option<LaunchTemplateInstanceMaintenanceOptions>
The maintenance options for your instance.
disable_api_stop: Option<bool>
Indicates whether the instance is enabled for stop protection. For more information, see Stop protection in the Amazon Elastic Compute Cloud User Guide.
Implementations§
source§impl ResponseLaunchTemplateData
impl ResponseLaunchTemplateData
sourcepub fn ebs_optimized(&self) -> Option<bool>
pub fn ebs_optimized(&self) -> Option<bool>
Indicates whether the instance is optimized for Amazon EBS I/O.
sourcepub fn iam_instance_profile(
&self
) -> Option<&LaunchTemplateIamInstanceProfileSpecification>
pub fn iam_instance_profile( &self ) -> Option<&LaunchTemplateIamInstanceProfileSpecification>
The IAM instance profile.
sourcepub fn block_device_mappings(
&self
) -> Option<&[LaunchTemplateBlockDeviceMapping]>
pub fn block_device_mappings( &self ) -> Option<&[LaunchTemplateBlockDeviceMapping]>
The block device mappings.
sourcepub fn network_interfaces(
&self
) -> Option<&[LaunchTemplateInstanceNetworkInterfaceSpecification]>
pub fn network_interfaces( &self ) -> Option<&[LaunchTemplateInstanceNetworkInterfaceSpecification]>
The network interfaces.
sourcepub fn image_id(&self) -> Option<&str>
pub fn image_id(&self) -> Option<&str>
The ID of the AMI or a Systems Manager parameter. The Systems Manager parameter will resolve to the ID of the AMI at instance launch.
The value depends on what you specified in the request. The possible values are:
-
If an AMI ID was specified in the request, then this is the AMI ID.
-
If a Systems Manager parameter was specified in the request, and
ResolveAlias
was configured astrue
, then this is the AMI ID that the parameter is mapped to in the Parameter Store. -
If a Systems Manager parameter was specified in the request, and
ResolveAlias
was configured asfalse
, then this is the parameter value.
For more information, see Use a Systems Manager parameter instead of an AMI ID in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn instance_type(&self) -> Option<&InstanceType>
pub fn instance_type(&self) -> Option<&InstanceType>
The instance type.
sourcepub fn monitoring(&self) -> Option<&LaunchTemplatesMonitoring>
pub fn monitoring(&self) -> Option<&LaunchTemplatesMonitoring>
The monitoring for the instance.
sourcepub fn placement(&self) -> Option<&LaunchTemplatePlacement>
pub fn placement(&self) -> Option<&LaunchTemplatePlacement>
The placement of the instance.
sourcepub fn ram_disk_id(&self) -> Option<&str>
pub fn ram_disk_id(&self) -> Option<&str>
The ID of the RAM disk, if applicable.
sourcepub fn disable_api_termination(&self) -> Option<bool>
pub fn disable_api_termination(&self) -> Option<bool>
If set to true
, indicates that the instance cannot be terminated using the Amazon EC2 console, command line tool, or API.
sourcepub fn instance_initiated_shutdown_behavior(&self) -> Option<&ShutdownBehavior>
pub fn instance_initiated_shutdown_behavior(&self) -> Option<&ShutdownBehavior>
Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).
sourcepub fn tag_specifications(&self) -> Option<&[LaunchTemplateTagSpecification]>
pub fn tag_specifications(&self) -> Option<&[LaunchTemplateTagSpecification]>
The tags that are applied to the resources that are created during instance launch.
sourcepub fn elastic_gpu_specifications(
&self
) -> Option<&[ElasticGpuSpecificationResponse]>
pub fn elastic_gpu_specifications( &self ) -> Option<&[ElasticGpuSpecificationResponse]>
The elastic GPU specification.
sourcepub fn elastic_inference_accelerators(
&self
) -> Option<&[LaunchTemplateElasticInferenceAcceleratorResponse]>
pub fn elastic_inference_accelerators( &self ) -> Option<&[LaunchTemplateElasticInferenceAcceleratorResponse]>
The elastic inference accelerator for the instance.
sourcepub fn security_group_ids(&self) -> Option<&[String]>
pub fn security_group_ids(&self) -> Option<&[String]>
The security group IDs.
sourcepub fn security_groups(&self) -> Option<&[String]>
pub fn security_groups(&self) -> Option<&[String]>
The security group names.
sourcepub fn instance_market_options(
&self
) -> Option<&LaunchTemplateInstanceMarketOptions>
pub fn instance_market_options( &self ) -> Option<&LaunchTemplateInstanceMarketOptions>
The market (purchasing) option for the instances.
sourcepub fn credit_specification(&self) -> Option<&CreditSpecification>
pub fn credit_specification(&self) -> Option<&CreditSpecification>
The credit option for CPU usage of the instance.
sourcepub fn cpu_options(&self) -> Option<&LaunchTemplateCpuOptions>
pub fn cpu_options(&self) -> Option<&LaunchTemplateCpuOptions>
The CPU options for the instance. For more information, see Optimizing CPU options in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn capacity_reservation_specification(
&self
) -> Option<&LaunchTemplateCapacityReservationSpecificationResponse>
pub fn capacity_reservation_specification( &self ) -> Option<&LaunchTemplateCapacityReservationSpecificationResponse>
Information about the Capacity Reservation targeting option.
sourcepub fn license_specifications(
&self
) -> Option<&[LaunchTemplateLicenseConfiguration]>
pub fn license_specifications( &self ) -> Option<&[LaunchTemplateLicenseConfiguration]>
The license configurations.
sourcepub fn hibernation_options(&self) -> Option<&LaunchTemplateHibernationOptions>
pub fn hibernation_options(&self) -> Option<&LaunchTemplateHibernationOptions>
Indicates whether an instance is configured for hibernation. For more information, see Hibernate your instance in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn metadata_options(&self) -> Option<&LaunchTemplateInstanceMetadataOptions>
pub fn metadata_options(&self) -> Option<&LaunchTemplateInstanceMetadataOptions>
The metadata options for the instance. For more information, see Instance metadata and user data in the Amazon Elastic Compute Cloud User Guide.
sourcepub fn enclave_options(&self) -> Option<&LaunchTemplateEnclaveOptions>
pub fn enclave_options(&self) -> Option<&LaunchTemplateEnclaveOptions>
Indicates whether the instance is enabled for Amazon Web Services Nitro Enclaves.
sourcepub fn instance_requirements(&self) -> Option<&InstanceRequirements>
pub fn instance_requirements(&self) -> Option<&InstanceRequirements>
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
.
sourcepub fn private_dns_name_options(
&self
) -> Option<&LaunchTemplatePrivateDnsNameOptions>
pub fn private_dns_name_options( &self ) -> Option<&LaunchTemplatePrivateDnsNameOptions>
The options for the instance hostname.
sourcepub fn maintenance_options(
&self
) -> Option<&LaunchTemplateInstanceMaintenanceOptions>
pub fn maintenance_options( &self ) -> Option<&LaunchTemplateInstanceMaintenanceOptions>
The maintenance options for your instance.
sourcepub fn disable_api_stop(&self) -> Option<bool>
pub fn disable_api_stop(&self) -> Option<bool>
Indicates whether the instance is enabled for stop protection. For more information, see Stop protection in the Amazon Elastic Compute Cloud User Guide.
source§impl ResponseLaunchTemplateData
impl ResponseLaunchTemplateData
sourcepub fn builder() -> ResponseLaunchTemplateDataBuilder
pub fn builder() -> ResponseLaunchTemplateDataBuilder
Creates a new builder-style object to manufacture ResponseLaunchTemplateData
.
Trait Implementations§
source§impl Clone for ResponseLaunchTemplateData
impl Clone for ResponseLaunchTemplateData
source§fn clone(&self) -> ResponseLaunchTemplateData
fn clone(&self) -> ResponseLaunchTemplateData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResponseLaunchTemplateData
impl Debug for ResponseLaunchTemplateData
source§impl PartialEq<ResponseLaunchTemplateData> for ResponseLaunchTemplateData
impl PartialEq<ResponseLaunchTemplateData> for ResponseLaunchTemplateData
source§fn eq(&self, other: &ResponseLaunchTemplateData) -> bool
fn eq(&self, other: &ResponseLaunchTemplateData) -> bool
self
and other
values to be equal, and is used
by ==
.