Skip to content

LaunchSpecification

Source code in docs_src/capo_ec2/types/launch_specification.py
class LaunchSpecification(TypedDict, closed=True):
    user_data: NotRequired["capo_ec2.types.sensitive_user_data.SensitiveUserData"]
    """<p>The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.</p>"""
    addressing_type: NotRequired["capo_ec2.types.string.String"]
    """<p>Deprecated.</p>"""
    block_device_mappings: NotRequired[
        "capo_ec2.types.block_device_mapping_list.BlockDeviceMappingList"
    ]
    """<p>The block device mapping entries.</p>"""
    ebs_optimized: NotRequired["capo_ec2.types.boolean.Boolean"]
    """<p>Indicates whether the instance is 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.</p> <p>Default: <code>false</code> </p>"""
    iam_instance_profile: NotRequired[
        "capo_ec2.types.iam_instance_profile_specification.IamInstanceProfileSpecification"
    ]
    """<p>The IAM instance profile.</p>"""
    image_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The ID of the AMI.</p>"""
    instance_type: NotRequired["capo_ec2.types.instance_type.InstanceType"]
    """<p>The instance type. Only one instance type can be specified.</p>"""
    kernel_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The ID of the kernel.</p>"""
    key_name: NotRequired["capo_ec2.types.string.String"]
    """<p>The name of the key pair.</p>"""
    network_interfaces: NotRequired[
        "capo_ec2.types.instance_network_interface_specification_list.InstanceNetworkInterfaceSpecificationList"
    ]
    """<p>The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.</p>"""
    placement: NotRequired["capo_ec2.types.spot_placement.SpotPlacement"]
    """<p>The placement information for the instance.</p>"""
    ramdisk_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The ID of the RAM disk.</p>"""
    subnet_id: NotRequired["capo_ec2.types.string.String"]
    """<p>The ID of the subnet in which to launch the instance.</p>"""
    security_groups: NotRequired[
        "capo_ec2.types.group_identifier_list.GroupIdentifierList"
    ]
    """<p>The IDs of the security groups.</p>"""
    monitoring: NotRequired[
        "capo_ec2.types.run_instances_monitoring_enabled.RunInstancesMonitoringEnabled"
    ]

addressing_type instance-attribute

addressing_type: NotRequired[String]

Deprecated.

block_device_mappings instance-attribute

block_device_mappings: NotRequired[BlockDeviceMappingList]

The block device mapping entries.

ebs_optimized instance-attribute

ebs_optimized: NotRequired[Boolean]

Indicates whether the instance is 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 instance-attribute

iam_instance_profile: NotRequired[IamInstanceProfileSpecification]

The IAM instance profile.

image_id instance-attribute

image_id: NotRequired[String]

The ID of the AMI.

instance_type instance-attribute

instance_type: NotRequired[InstanceType]

The instance type. Only one instance type can be specified.

kernel_id instance-attribute

kernel_id: NotRequired[String]

The ID of the kernel.

key_name instance-attribute

key_name: NotRequired[String]

The name of the key pair.

monitoring instance-attribute

monitoring: NotRequired[RunInstancesMonitoringEnabled]

network_interfaces instance-attribute

network_interfaces: NotRequired[InstanceNetworkInterfaceSpecificationList]

The network interfaces. If you specify a network interface, you must specify subnet IDs and security group IDs using the network interface.

placement instance-attribute

placement: NotRequired[SpotPlacement]

The placement information for the instance.

ramdisk_id instance-attribute

ramdisk_id: NotRequired[String]

The ID of the RAM disk.

security_groups instance-attribute

security_groups: NotRequired[GroupIdentifierList]

The IDs of the security groups.

subnet_id instance-attribute

subnet_id: NotRequired[String]

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

user_data instance-attribute

user_data: NotRequired[SensitiveUserData]

The base64-encoded user data that instances use when starting up. User data is limited to 16 KB.