Skip to content

EC2  >  Structures  >  LaunchTemplateInstanceSecondaryInterfaceSpecification

LaunchTemplateInstanceSecondaryInterfaceSpecification

Structure Class

LaunchTemplateInstanceSecondaryInterfaceSpecification dataclass

Bases: _SerdeShape

Describes a secondary interface specification in a launch template.

Attributes

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

Indicates whether the secondary interface is deleted when the instance is terminated.

The only supported value for this field is true.

device_index class-attribute instance-attribute
device_index: int | None = ...

The device index for the secondary interface attachment.

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

The type of secondary interface.

network_card_index class-attribute instance-attribute
network_card_index: int | None = ...

The index of the network card.

private_ip_address_count class-attribute instance-attribute
private_ip_address_count: int | None = ...

The number of private IPv4 addresses to assign to the secondary interface.

If you specify privateIpAddressCount you cannot specify privateIpAddresses

private_ip_addresses class-attribute instance-attribute
private_ip_addresses: list[SecondaryInterfacePrivateIpAddressSpecification] | None = ...

The private IPv4 addresses to assign to the secondary interface.

If you specify privateIpAddresses you cannot specify privateIpAddressCount

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

The ID of the secondary subnet.