attach_network_interface¶
Operation¶
attach_network_interface
async
¶
attach_network_interface(input: AttachNetworkInterfaceInput, plugins: list[Plugin] | None = None) -> AttachNetworkInterfaceOutput
Attaches a network interface to an instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
AttachNetworkInterfaceInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
AttachNetworkInterfaceOutput
|
An instance of |
Input¶
AttachNetworkInterfaceInput
dataclass
¶
Bases: _SerdeShape
Contains the parameters for AttachNetworkInterface.
Attributes¶
device_index
class-attribute
instance-attribute
¶
device_index: int | None = ...
The index of the device for the network interface attachment.
dry_run
class-attribute
instance-attribute
¶
dry_run: bool | None = ...
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation.
Otherwise, it is UnauthorizedOperation.
ena_queue_count
class-attribute
instance-attribute
¶
ena_queue_count: int | None = ...
The number of ENA queues to be created with the instance.
ena_srd_specification
class-attribute
instance-attribute
¶
ena_srd_specification: EnaSrdSpecification | None = ...
Configures ENA Express for the network interface that this action attaches to the instance.
instance_id
class-attribute
instance-attribute
¶
instance_id: str | None = ...
The ID of the instance.
Output¶
AttachNetworkInterfaceOutput
dataclass
¶
Bases: _SerdeShape
Contains the output of AttachNetworkInterface.
Attributes¶
attachment_id
class-attribute
instance-attribute
¶
attachment_id: str | None = ...
The ID of the network interface attachment.
network_card_index
class-attribute
instance-attribute
¶
network_card_index: int | None = ...
The index of the network card.
response_metadata
class-attribute
instance-attribute
¶
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.