You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::EC2::Types::ScheduledInstancesLaunchSpecification
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::ScheduledInstancesLaunchSpecification
- Defined in:
- (unknown)
Overview
When passing ScheduledInstancesLaunchSpecification as input to an Aws::Client method, you can use a vanilla Hash:
{
block_device_mappings: [
{
device_name: "String",
ebs: {
delete_on_termination: false,
encrypted: false,
iops: 1,
snapshot_id: "SnapshotId",
volume_size: 1,
volume_type: "String",
},
no_device: "String",
virtual_name: "String",
},
],
ebs_optimized: false,
iam_instance_profile: {
arn: "String",
name: "String",
},
image_id: "ImageId", # required
instance_type: "String",
kernel_id: "KernelId",
key_name: "KeyPairName",
monitoring: {
enabled: false,
},
network_interfaces: [
{
associate_public_ip_address: false,
delete_on_termination: false,
description: "String",
device_index: 1,
groups: ["SecurityGroupId"],
ipv_6_address_count: 1,
ipv_6_addresses: [
{
ipv_6_address: "Ipv6Address",
},
],
network_interface_id: "NetworkInterfaceId",
private_ip_address: "String",
private_ip_address_configs: [
{
primary: false,
private_ip_address: "String",
},
],
secondary_private_ip_address_count: 1,
subnet_id: "SubnetId",
},
],
placement: {
availability_zone: "String",
group_name: "PlacementGroupName",
},
ramdisk_id: "RamdiskId",
security_group_ids: ["SecurityGroupId"],
subnet_id: "SubnetId",
user_data: "String",
}
Describes the launch specification for a Scheduled Instance.
If you are launching the Scheduled Instance in EC2-VPC, you must specify the ID of the subnet. You can specify the subnet using either SubnetId
or NetworkInterface
.
Returned by:
Instance Attribute Summary collapse
-
#block_device_mappings ⇒ Array<Types::ScheduledInstancesBlockDeviceMapping>
The block device mapping entries.
-
#ebs_optimized ⇒ Boolean
Indicates whether the instances are optimized for EBS I/O.
-
#iam_instance_profile ⇒ Types::ScheduledInstancesIamInstanceProfile
The IAM instance profile.
-
#image_id ⇒ String
The ID of the Amazon Machine Image (AMI).
-
#instance_type ⇒ String
The instance type.
-
#kernel_id ⇒ String
The ID of the kernel.
-
#key_name ⇒ String
The name of the key pair.
-
#monitoring ⇒ Types::ScheduledInstancesMonitoring
Enable or disable monitoring for the instances.
-
#network_interfaces ⇒ Array<Types::ScheduledInstancesNetworkInterface>
The network interfaces.
-
#placement ⇒ Types::ScheduledInstancesPlacement
The placement information.
-
#ramdisk_id ⇒ String
The ID of the RAM disk.
-
#security_group_ids ⇒ Array<String>
The IDs of the security groups.
-
#subnet_id ⇒ String
The ID of the subnet in which to launch the instances.
-
#user_data ⇒ String
The base64-encoded MIME user data.
Instance Attribute Details
#block_device_mappings ⇒ Array<Types::ScheduledInstancesBlockDeviceMapping>
The block device mapping entries.
#ebs_optimized ⇒ Boolean
Indicates whether the instances are optimized for EBS I/O. This optimization provides dedicated throughput to Amazon EBS and an optimized configuration stack to provide optimal EBS I/O performance. This optimization isn\'t available with all instance types. Additional usage charges apply when using an EBS-optimized instance.
Default: false
#iam_instance_profile ⇒ Types::ScheduledInstancesIamInstanceProfile
The IAM instance profile.
#image_id ⇒ String
The ID of the Amazon Machine Image (AMI).
#instance_type ⇒ String
The instance type.
#kernel_id ⇒ String
The ID of the kernel.
#key_name ⇒ String
The name of the key pair.
#monitoring ⇒ Types::ScheduledInstancesMonitoring
Enable or disable monitoring for the instances.
#network_interfaces ⇒ Array<Types::ScheduledInstancesNetworkInterface>
The network interfaces.
#placement ⇒ Types::ScheduledInstancesPlacement
The placement information.
#ramdisk_id ⇒ String
The ID of the RAM disk.
#security_group_ids ⇒ Array<String>
The IDs of the security groups.
#subnet_id ⇒ String
The ID of the subnet in which to launch the instances.
#user_data ⇒ String
The base64-encoded MIME user data.