Skip to content

EC2  >  Structures  >  LaunchSpecification

LaunchSpecification

Structure Class

LaunchSpecification dataclass

Bases: _SerdeShape

Describes the launch specification for an instance.

Attributes

addressing_type class-attribute instance-attribute
addressing_type: str | None = ...

Deprecated.

block_device_mappings class-attribute instance-attribute
block_device_mappings: list[BlockDeviceMapping] | None = ...

The block device mapping entries.

ebs_optimized class-attribute instance-attribute
ebs_optimized: bool | None = ...

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 class-attribute instance-attribute
iam_instance_profile: IamInstanceProfileSpecification | None = ...

The IAM instance profile.

image_id class-attribute instance-attribute
image_id: str | None = ...

The ID of the AMI.

instance_type class-attribute instance-attribute
instance_type: str | None = ...

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

kernel_id class-attribute instance-attribute
kernel_id: str | None = ...

The ID of the kernel.

key_name class-attribute instance-attribute
key_name: str | None = ...

The name of the key pair.

monitoring class-attribute instance-attribute
monitoring: RunInstancesMonitoringEnabled | None = ...

Describes the monitoring of an instance.

network_interfaces class-attribute instance-attribute
network_interfaces: list[InstanceNetworkInterfaceSpecification] | None = ...

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

placement class-attribute instance-attribute
placement: SpotPlacement | None = ...

The placement information for the instance.

ramdisk_id class-attribute instance-attribute
ramdisk_id: str | None = ...

The ID of the RAM disk.

security_groups class-attribute instance-attribute
security_groups: list[GroupIdentifier] | None = ...

The IDs of the security groups.

subnet_id class-attribute instance-attribute
subnet_id: str | None = ...

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

user_data class-attribute instance-attribute
user_data: str | None = ...

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