Skip to content

enable_aws_network_performance_metric_subscription

Operation

enable_aws_network_performance_metric_subscription

Enables Infrastructure Performance subscriptions.

Parameters:

Name Type Description Default
request EnableAwsNetworkPerformanceMetricSubscriptionInput | EnableAwsNetworkPerformanceMetricSubscriptionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[EnableAwsNetworkPerformanceMetricSubscriptionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
EnableAwsNetworkPerformanceMetricSubscriptionOutput

An instance of EnableAwsNetworkPerformanceMetricSubscriptionOutput.

enable_aws_network_performance_metric_subscription async

Enables Infrastructure Performance subscriptions.

Parameters:

Name Type Description Default
request EnableAwsNetworkPerformanceMetricSubscriptionInput | EnableAwsNetworkPerformanceMetricSubscriptionInputDict | None

The input as a model or dictionary. Pass this or keyword arguments, not both.

None
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
**kwargs Unpack[EnableAwsNetworkPerformanceMetricSubscriptionInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
EnableAwsNetworkPerformanceMetricSubscriptionOutput

An instance of EnableAwsNetworkPerformanceMetricSubscriptionOutput.

Input

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

EnableAwsNetworkPerformanceMetricSubscriptionInputDict

Bases: TypedDict

Dictionary form of EnableAwsNetworkPerformanceMetricSubscriptionInput.

Attributes

destination instance-attribute
destination: str | None

The target Region (like us-east-2) or Availability Zone ID (like use2-az2) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region.

dry_run 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.

metric instance-attribute
metric: str | None

The metric used for the enabled subscription.

source instance-attribute
source: str | None

The source Region (like us-east-1) or Availability Zone ID (like use1-az1) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region.

statistic instance-attribute
statistic: str | None

The statistic used for the enabled subscription.

EnableAwsNetworkPerformanceMetricSubscriptionInput dataclass

Bases: _SerdeShape

Dataclass for EnableAwsNetworkPerformanceMetricSubscriptionInput structure.

Attributes

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

The target Region (like us-east-2) or Availability Zone ID (like use2-az2) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region.

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.

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

The metric used for the enabled subscription.

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

The source Region (like us-east-1) or Availability Zone ID (like use1-az1) that the metric subscription is enabled for. If you use Availability Zone IDs, the Source and Destination Availability Zones must be in the same Region.

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

The statistic used for the enabled subscription.

Output

EnableAwsNetworkPerformanceMetricSubscriptionOutput dataclass

Bases: _SerdeShape

Dataclass for EnableAwsNetworkPerformanceMetricSubscriptionOutput structure.

Attributes

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

Indicates whether the subscribe action was successful.

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.