modify_transit_gateway_metering_policy
async
¶
modify_transit_gateway_metering_policy(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
53734 53735 53736 53737 53738 53739 53740 53741 53742 53743 53744 53745 53746 53747 53748 53749 53750 53751 53752 53753 53754 53755 53756 53757 53758 53759 53760 53761 53762 53763 53764 53765 53766 53767 53768 53769 53770 53771 53772 53773 53774 53775 53776 53777 53778 53779 53780 53781 53782 53783 53784 53785 53786 53787 53788 53789 53790 53791 53792 53793 53794 53795 53796 53797 | |