Struct RequestLaunchTemplateData

Source
pub struct RequestLaunchTemplateData {
Show 27 fields pub block_device_mappings: Option<Vec<LaunchTemplateBlockDeviceMappingRequest>>, pub capacity_reservation_specification: Option<LaunchTemplateCapacityReservationSpecificationRequest>, pub cpu_options: Option<LaunchTemplateCpuOptionsRequest>, pub credit_specification: Option<CreditSpecificationRequest>, pub disable_api_termination: Option<bool>, pub ebs_optimized: Option<bool>, pub elastic_gpu_specifications: Option<Vec<ElasticGpuSpecification>>, pub elastic_inference_accelerators: Option<Vec<LaunchTemplateElasticInferenceAccelerator>>, pub enclave_options: Option<LaunchTemplateEnclaveOptionsRequest>, pub hibernation_options: Option<LaunchTemplateHibernationOptionsRequest>, pub iam_instance_profile: Option<LaunchTemplateIamInstanceProfileSpecificationRequest>, pub image_id: Option<String>, pub instance_initiated_shutdown_behavior: Option<String>, pub instance_market_options: Option<LaunchTemplateInstanceMarketOptionsRequest>, pub instance_type: Option<String>, pub kernel_id: Option<String>, pub key_name: Option<String>, pub license_specifications: Option<Vec<LaunchTemplateLicenseConfigurationRequest>>, pub metadata_options: Option<LaunchTemplateInstanceMetadataOptionsRequest>, pub monitoring: Option<LaunchTemplatesMonitoringRequest>, pub network_interfaces: Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>>, pub placement: Option<LaunchTemplatePlacementRequest>, pub ram_disk_id: Option<String>, pub security_group_ids: Option<Vec<String>>, pub security_groups: Option<Vec<String>>, pub tag_specifications: Option<Vec<LaunchTemplateTagSpecificationRequest>>, pub user_data: Option<String>,
}
Expand description

The information to include in the launch template.

Fields§

§block_device_mappings: Option<Vec<LaunchTemplateBlockDeviceMappingRequest>>

The block device mapping.

§capacity_reservation_specification: Option<LaunchTemplateCapacityReservationSpecificationRequest>

The Capacity Reservation targeting option. If you do not specify this parameter, the instance's Capacity Reservation preference defaults to open, which enables it to run in any open Capacity Reservation that has matching attributes (instance type, platform, Availability Zone).

§cpu_options: Option<LaunchTemplateCpuOptionsRequest>

The CPU options for the instance. For more information, see Optimizing CPU Options in the Amazon Elastic Compute Cloud User Guide.

§credit_specification: Option<CreditSpecificationRequest>

The credit option for CPU usage of the instance. Valid for T2, T3, or T3a instances only.

§disable_api_termination: Option<bool>

If you set this parameter to true, you can't terminate the instance using the Amazon EC2 console, CLI, or API; otherwise, you can. To change this attribute after launch, use ModifyInstanceAttribute. Alternatively, if you set InstanceInitiatedShutdownBehavior to terminate, you can terminate the instance by running the shutdown command from the instance.

§ebs_optimized: Option<bool>

Indicates whether the instance is optimized for Amazon EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal Amazon EBS I/O performance. This optimization isn't available with all instance types. Additional usage charges apply when using an EBS-optimized instance.

§elastic_gpu_specifications: Option<Vec<ElasticGpuSpecification>>

An elastic GPU to associate with the instance.

§elastic_inference_accelerators: Option<Vec<LaunchTemplateElasticInferenceAccelerator>>

The elastic inference accelerator for the instance.

§enclave_options: Option<LaunchTemplateEnclaveOptionsRequest>

Indicates whether the instance is enabled for AWS Nitro Enclaves. For more information, see What is AWS Nitro Enclaves? in the AWS Nitro Enclaves User Guide.

You can't enable AWS Nitro Enclaves and hibernation on the same instance.

§hibernation_options: Option<LaunchTemplateHibernationOptionsRequest>

Indicates whether an instance is enabled for hibernation. This parameter is valid only if the instance meets the hibernation prerequisites. For more information, see Hibernate Your Instance in the Amazon Elastic Compute Cloud User Guide.

§iam_instance_profile: Option<LaunchTemplateIamInstanceProfileSpecificationRequest>

The name or Amazon Resource Name (ARN) of an IAM instance profile.

§image_id: Option<String>

The ID of the AMI.

§instance_initiated_shutdown_behavior: Option<String>

Indicates whether an instance stops or terminates when you initiate shutdown from the instance (using the operating system command for system shutdown).

Default: stop

§instance_market_options: Option<LaunchTemplateInstanceMarketOptionsRequest>

The market (purchasing) option for the instances.

§instance_type: Option<String>

The instance type. For more information, see Instance Types in the Amazon Elastic Compute Cloud User Guide.

§kernel_id: Option<String>

The ID of the kernel.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.

§key_name: Option<String>

The name of the key pair. You can create a key pair using CreateKeyPair or ImportKeyPair.

If you do not specify a key pair, you can't connect to the instance unless you choose an AMI that is configured to allow users another way to log in.

§license_specifications: Option<Vec<LaunchTemplateLicenseConfigurationRequest>>

The license configurations.

§metadata_options: Option<LaunchTemplateInstanceMetadataOptionsRequest>

The metadata options for the instance. For more information, see Instance Metadata and User Data in the Amazon Elastic Compute Cloud User Guide.

§monitoring: Option<LaunchTemplatesMonitoringRequest>

The monitoring for the instance.

§network_interfaces: Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>>

One or more network interfaces. If you specify a network interface, you must specify any security groups and subnets as part of the network interface.

§placement: Option<LaunchTemplatePlacementRequest>

The placement for the instance.

§ram_disk_id: Option<String>

The ID of the RAM disk.

We recommend that you use PV-GRUB instead of kernels and RAM disks. For more information, see User Provided Kernels in the Amazon Elastic Compute Cloud User Guide.

§security_group_ids: Option<Vec<String>>

One or more security group IDs. You can create a security group using CreateSecurityGroup. You cannot specify both a security group ID and security name in the same request.

§security_groups: Option<Vec<String>>

[EC2-Classic, default VPC] One or more security group names. For a nondefault VPC, you must use security group IDs instead. You cannot specify both a security group ID and security name in the same request.

§tag_specifications: Option<Vec<LaunchTemplateTagSpecificationRequest>>

The tags to apply to the resources during launch. You can only tag instances and volumes on launch. The specified tags are applied to all instances or volumes that are created during launch. To tag a resource after it has been created, see CreateTags.

§user_data: Option<String>

The Base64-encoded user data to make available to the instance. For more information, see Running Commands on Your Linux Instance at Launch (Linux) and Adding User Data (Windows).

Trait Implementations§

Source§

impl Clone for RequestLaunchTemplateData

Source§

fn clone(&self) -> RequestLaunchTemplateData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RequestLaunchTemplateData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RequestLaunchTemplateData

Source§

fn default() -> RequestLaunchTemplateData

Returns the “default value” for a type. Read more
Source§

impl PartialEq for RequestLaunchTemplateData

Source§

fn eq(&self, other: &RequestLaunchTemplateData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for RequestLaunchTemplateData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more