Skip to content

EC2  >  Operations  >  modify_instance_network_performance_options

modify_instance_network_performance_options

Operation

modify_instance_network_performance_options async

modify_instance_network_performance_options(input: ModifyInstanceNetworkPerformanceOptionsInput, plugins: list[Plugin] | None = None) -> ModifyInstanceNetworkPerformanceOptionsOutput

Change the configuration of the network performance options for an existing instance.

Parameters:

Name Type Description Default
input ModifyInstanceNetworkPerformanceOptionsInput

An instance of ModifyInstanceNetworkPerformanceOptionsInput.

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
ModifyInstanceNetworkPerformanceOptionsOutput

An instance of ModifyInstanceNetworkPerformanceOptionsOutput.

Input

ModifyInstanceNetworkPerformanceOptionsInput dataclass

Bases: _SerdeShape

Dataclass for ModifyInstanceNetworkPerformanceOptionsInput structure.

Attributes

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

Specify the bandwidth weighting option to boost the associated type of baseline bandwidth, as follows:

default

This option uses the standard bandwidth configuration for your instance type.

vpc-1

This option boosts your networking baseline bandwidth and reduces your EBS baseline bandwidth.

ebs-1

This option boosts your EBS baseline bandwidth and reduces your networking baseline bandwidth.

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

Checks whether you have the required permissions for the operation, 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.

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

The ID of the instance to update.

Output

ModifyInstanceNetworkPerformanceOptionsOutput dataclass

Bases: _SerdeShape

Dataclass for ModifyInstanceNetworkPerformanceOptionsOutput structure.

Attributes

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

Contains the updated configuration for bandwidth weighting on the specified instance.

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

The instance ID that was updated.

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

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.