EC2 / Client / modify_transit_gateway_metering_policy

modify_transit_gateway_metering_policy

EC2.Client.modify_transit_gateway_metering_policy(**kwargs)

Modifies a transit gateway metering policy.

See also: AWS API Documentation

Request Syntax

response = client.modify_transit_gateway_metering_policy(
    TransitGatewayMeteringPolicyId='string',
    AddMiddleboxAttachmentIds=[
        'string',
    ],
    RemoveMiddleboxAttachmentIds=[
        'string',
    ],
    DryRun=True|False
)
Parameters:
  • TransitGatewayMeteringPolicyId (string) –

    [REQUIRED]

    The ID of the transit gateway metering policy to modify.

  • AddMiddleboxAttachmentIds (list) –

    The IDs of middlebox attachments to add to the metering policy.

    • (string) –

  • RemoveMiddleboxAttachmentIds (list) –

    The IDs of middlebox attachments to remove from the metering policy.

    • (string) –

  • DryRun (boolean) – 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.

Return type:

dict

Returns:

Response Syntax

{
    'TransitGatewayMeteringPolicy': {
        'TransitGatewayMeteringPolicyId': 'string',
        'TransitGatewayId': 'string',
        'MiddleboxAttachmentIds': [
            'string',
        ],
        'State': 'available'|'deleted'|'pending'|'modifying'|'deleting',
        'UpdateEffectiveAt': datetime(2015, 1, 1),
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) –

    • TransitGatewayMeteringPolicy (dict) –

      Information about the modified transit gateway metering policy.

      • TransitGatewayMeteringPolicyId (string) –

        The ID of the transit gateway metering policy.

      • TransitGatewayId (string) –

        The ID of the transit gateway associated with the metering policy.

      • MiddleboxAttachmentIds (list) –

        The IDs of the middlebox attachments associated with the metering policy.

        • (string) –

      • State (string) –

        The state of the transit gateway metering policy.

      • UpdateEffectiveAt (datetime) –

        The date and time when the metering policy update becomes effective.

      • Tags (list) –

        The tags assigned to the transit gateway metering policy.

        • (dict) –

          Describes a tag.

          • Key (string) –

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

          • Value (string) –

            The value of the tag.

            Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.