Skip to content

create_transit_gateway_metering_policy_entry

Operation

create_transit_gateway_metering_policy_entry

Creates an entry in a transit gateway metering policy to define traffic measurement rules.

Parameters:

Name Type Description Default
request CreateTransitGatewayMeteringPolicyEntryInput | CreateTransitGatewayMeteringPolicyEntryInputDict | 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[CreateTransitGatewayMeteringPolicyEntryInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
CreateTransitGatewayMeteringPolicyEntryOutput

An instance of CreateTransitGatewayMeteringPolicyEntryOutput.

create_transit_gateway_metering_policy_entry async

Creates an entry in a transit gateway metering policy to define traffic measurement rules.

Parameters:

Name Type Description Default
request CreateTransitGatewayMeteringPolicyEntryInput | CreateTransitGatewayMeteringPolicyEntryInputDict | 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[CreateTransitGatewayMeteringPolicyEntryInputDict]

The input fields as keyword arguments.

{}

Returns:

Type Description
CreateTransitGatewayMeteringPolicyEntryOutput

An instance of CreateTransitGatewayMeteringPolicyEntryOutput.

Input

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

CreateTransitGatewayMeteringPolicyEntryInputDict

Bases: TypedDict

Dictionary form of CreateTransitGatewayMeteringPolicyEntryInput.

Attributes

destination_cidr_block instance-attribute
destination_cidr_block: str | None

The destination CIDR block for traffic matching.

destination_port_range instance-attribute
destination_port_range: str | None

The destination port range for traffic matching.

destination_transit_gateway_attachment_id instance-attribute
destination_transit_gateway_attachment_id: str | None

The ID of the destination transit gateway attachment for traffic matching.

destination_transit_gateway_attachment_type instance-attribute
destination_transit_gateway_attachment_type: str | None

The type of the destination transit gateway attachment for traffic matching. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.

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.

metered_account instance-attribute
metered_account: Required[str]

The Amazon Web Services account ID to which the metered traffic should be attributed.

policy_rule_number instance-attribute
policy_rule_number: Required[int]

The rule number for the metering policy entry. Rules are processed in order from lowest to highest number.

protocol instance-attribute
protocol: str | None

The protocol for traffic matching (1, 6, 17, etc.).

source_cidr_block instance-attribute
source_cidr_block: str | None

The source CIDR block for traffic matching.

source_port_range instance-attribute
source_port_range: str | None

The source port range for traffic matching.

source_transit_gateway_attachment_id instance-attribute
source_transit_gateway_attachment_id: str | None

The ID of the source transit gateway attachment for traffic matching.

source_transit_gateway_attachment_type instance-attribute
source_transit_gateway_attachment_type: str | None

The type of the source transit gateway attachment for traffic matching. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.

transit_gateway_metering_policy_id instance-attribute
transit_gateway_metering_policy_id: Required[str]

The ID of the transit gateway metering policy to add the entry to.

CreateTransitGatewayMeteringPolicyEntryInput dataclass

Bases: _SerdeShape

Dataclass for CreateTransitGatewayMeteringPolicyEntryInput structure.

Attributes

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

The destination CIDR block for traffic matching.

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

The destination port range for traffic matching.

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

The ID of the destination transit gateway attachment for traffic matching.

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

The type of the destination transit gateway attachment for traffic matching. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.

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.

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

The Amazon Web Services account ID to which the metered traffic should be attributed.

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

The rule number for the metering policy entry. Rules are processed in order from lowest to highest number.

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

The protocol for traffic matching (1, 6, 17, etc.).

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

The source CIDR block for traffic matching.

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

The source port range for traffic matching.

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

The ID of the source transit gateway attachment for traffic matching.

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

The type of the source transit gateway attachment for traffic matching. Note that the tgw-peering resource type has been deprecated. To configure metering policies for Connect, use the transport attachment type.

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

The ID of the transit gateway metering policy to add the entry to.

Output

CreateTransitGatewayMeteringPolicyEntryOutput dataclass

Bases: _SerdeShape

Dataclass for CreateTransitGatewayMeteringPolicyEntryOutput structure.

Attributes

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.

transit_gateway_metering_policy_entry class-attribute instance-attribute
transit_gateway_metering_policy_entry: TransitGatewayMeteringPolicyEntry | None = ...

Information about the created transit gateway metering policy entry.