create_transit_gateway_metering_policy
¶
create_transit_gateway_metering_policy(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 | |