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
show all
Defined in:
(unknown)

Overview

Note:

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

Instance Attribute Details

#block_device_mappingsArray<Types::ScheduledInstancesBlockDeviceMapping>

The block device mapping entries.

Returns:

#ebs_optimizedBoolean

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

Returns:

  • (Boolean)

    Indicates whether the instances are optimized for EBS I/O.

#iam_instance_profileTypes::ScheduledInstancesIamInstanceProfile

The IAM instance profile.

Returns:

#image_idString

The ID of the Amazon Machine Image (AMI).

Returns:

  • (String)

    The ID of the Amazon Machine Image (AMI).

#instance_typeString

The instance type.

Returns:

  • (String)

    The instance type.

#kernel_idString

The ID of the kernel.

Returns:

  • (String)

    The ID of the kernel.

#key_nameString

The name of the key pair.

Returns:

  • (String)

    The name of the key pair.

#monitoringTypes::ScheduledInstancesMonitoring

Enable or disable monitoring for the instances.

Returns:

#network_interfacesArray<Types::ScheduledInstancesNetworkInterface>

The network interfaces.

Returns:

#placementTypes::ScheduledInstancesPlacement

The placement information.

Returns:

#ramdisk_idString

The ID of the RAM disk.

Returns:

  • (String)

    The ID of the RAM disk.

#security_group_idsArray<String>

The IDs of the security groups.

Returns:

  • (Array<String>)

    The IDs of the security groups.

#subnet_idString

The ID of the subnet in which to launch the instances.

Returns:

  • (String)

    The ID of the subnet in which to launch the instances.

#user_dataString

The base64-encoded MIME user data.

Returns:

  • (String)

    The base64-encoded MIME user data.