[−][src]Struct rusoto_ec2::RequestLaunchTemplateData
The information to include in the launch template.
Fields
block_device_mappings: Option<Vec<LaunchTemplateBlockDeviceMappingRequest>>
The block device mapping.
Supplying both a snapshot ID and an encryption value as arguments for block-device mapping results in an error. This is because only blank volumes can be encrypted on start, and these are not created from a snapshot. If a snapshot is the basis for the volume, it contains data by definition and its encryption status cannot be changed using this action.
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 instances only.
disable_api_termination: Option<bool>
If set to true
, you can't terminate the instance using the Amazon EC2 console, CLI, or API. To change this attribute to false
after launch, use ModifyInstanceAttribute.
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.
iam_instance_profile: Option<LaunchTemplateIamInstanceProfileSpecificationRequest>
The IAM instance profile.
image_id: Option<String>
The ID of the AMI, which you can get by using DescribeImages.
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.
monitoring: Option<LaunchTemplatesMonitoringRequest>
The monitoring for the instance.
network_interfaces: Option<Vec<LaunchTemplateInstanceNetworkInterfaceSpecificationRequest>>
One or more network interfaces.
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
impl Default for RequestLaunchTemplateData
[src]
impl Default for RequestLaunchTemplateData
fn default() -> RequestLaunchTemplateData
[src]
fn default() -> RequestLaunchTemplateData
Returns the "default value" for a type. Read more
impl PartialEq<RequestLaunchTemplateData> for RequestLaunchTemplateData
[src]
impl PartialEq<RequestLaunchTemplateData> for RequestLaunchTemplateData
fn eq(&self, other: &RequestLaunchTemplateData) -> bool
[src]
fn eq(&self, other: &RequestLaunchTemplateData) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RequestLaunchTemplateData) -> bool
[src]
fn ne(&self, other: &RequestLaunchTemplateData) -> bool
This method tests for !=
.
impl Clone for RequestLaunchTemplateData
[src]
impl Clone for RequestLaunchTemplateData
fn clone(&self) -> RequestLaunchTemplateData
[src]
fn clone(&self) -> RequestLaunchTemplateData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for RequestLaunchTemplateData
[src]
impl Debug for RequestLaunchTemplateData
Auto Trait Implementations
impl Send for RequestLaunchTemplateData
impl Send for RequestLaunchTemplateData
impl Sync for RequestLaunchTemplateData
impl Sync for RequestLaunchTemplateData
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
type Owned = T
fn to_owned(&self) -> T
[src]
fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)
[src]
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
try_from
)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
try_from
)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId
[src]
fn get_type_id(&self) -> TypeId
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Gets the TypeId
of self
. Read more
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T> Erased for T
impl<T> Erased for T