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(*, plugins: list[Plugin] | None = None, **kwargs: Unpack[ModifyInstanceNetworkPerformanceOptionsInputDict]) -> ModifyInstanceNetworkPerformanceOptionsOutput

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

Parameters:

Name Type Description Default
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

Pass the input fields as keyword arguments, or pass a model or dictionary as the first positional argument. Pass plugins separately as a keyword argument.

Model

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.

Dictionaries

ModifyInstanceNetworkPerformanceOptionsInputDict

Bases: TypedDict

Dictionary form of ModifyInstanceNetworkPerformanceOptionsInput.

Attributes
bandwidth_weighting instance-attribute
bandwidth_weighting: Required[str]

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 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 instance-attribute
instance_id: Required[str]

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.