create_transit_gateway_metering_policy
async
¶
create_transit_gateway_metering_policy(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
transit_gateway_id: Optional[TransitGatewayId] = None,
middlebox_attachment_ids: Optional[TransitGatewayAttachmentIdStringList] = None,
tag_specifications: Optional[TagSpecificationList] = None,
dry_run: Optional[Boolean] = None,
) -> CreateTransitGatewayMeteringPolicyResult
Creates a metering policy for a transit gateway to track and measure network traffic.
Parameters:
-
transit_gateway_id(Optional[TransitGatewayId], default:None) –The ID of the transit gateway for which to create the metering policy.
-
middlebox_attachment_ids(Optional[TransitGatewayAttachmentIdStringList], default:None) –The IDs of the middlebox attachments to include in the metering policy.
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to assign to the metering policy.
-
dry_run(Optional[Boolean], default: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 isUnauthorizedOperation.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 | |