Struct rusoto_ec2::RequestLaunchTemplateData[][src]

pub struct RequestLaunchTemplateData {
    pub block_device_mappings: Option<Vec<LaunchTemplateBlockDeviceMappingRequest>>,
    pub credit_specification: Option<CreditSpecificationRequest>,
    pub disable_api_termination: Option<bool>,
    pub ebs_optimized: Option<bool>,
    pub elastic_gpu_specifications: Option<Vec<ElasticGpuSpecification>>,
    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 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>,
}

The information to include in the launch template.

Fields

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.

The credit option for CPU usage of the instance. Valid for T2 instances only.

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.

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.

An elastic GPU to associate with the instance.

The IAM instance profile.

The ID of the AMI, which you can get by using DescribeImages.

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

Default: stop

The market (purchasing) option for the instances.

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

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.

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.

The monitoring for the instance.

One or more network interfaces.

The placement for the instance.

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.

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.

[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.

The tags to apply to the resources during launch. You can tag instances and volumes. The specified tags are applied to all instances or volumes that are created during launch.

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]

Returns the "default value" for a type. Read more

impl Debug for RequestLaunchTemplateData
[src]

Formats the value using the given formatter. Read more

impl Clone for RequestLaunchTemplateData
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for RequestLaunchTemplateData
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations