modify_transit_gateway_metering_policy
¶
modify_transit_gateway_metering_policy(
*,
config_overrides: Optional[EC2ClientConfig] = None,
transit_gateway_metering_policy_id: Optional[TransitGatewayMeteringPolicyId] = None,
add_middlebox_attachment_ids: Optional[TransitGatewayAttachmentIdStringList] = None,
remove_middlebox_attachment_ids: Optional[
TransitGatewayAttachmentIdStringList
] = None,
dry_run: Optional[Boolean] = None,
) -> ModifyTransitGatewayMeteringPolicyResult
Modifies a transit gateway metering policy.
Parameters:
-
transit_gateway_metering_policy_id(Optional[TransitGatewayMeteringPolicyId], default:None) –The ID of the transit gateway metering policy to modify.
-
add_middlebox_attachment_ids(Optional[TransitGatewayAttachmentIdStringList], default:None) –The IDs of middlebox attachments to add to the metering policy.
-
remove_middlebox_attachment_ids(Optional[TransitGatewayAttachmentIdStringList], default:None) –The IDs of middlebox attachments to remove from 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
52997 52998 52999 53000 53001 53002 53003 53004 53005 53006 53007 53008 53009 53010 53011 53012 53013 53014 53015 53016 53017 53018 53019 53020 53021 53022 53023 53024 53025 53026 53027 53028 53029 53030 53031 53032 53033 53034 53035 53036 53037 53038 53039 53040 53041 53042 53043 53044 53045 53046 53047 53048 53049 53050 53051 53052 53053 53054 53055 53056 53057 53058 53059 | |