EC2 / Client / disassociate_transit_gateway_policy_table

disassociate_transit_gateway_policy_table#

EC2.Client.disassociate_transit_gateway_policy_table(**kwargs)#

Removes the association between an an attachment and a policy table.

See also: AWS API Documentation

Request Syntax

response = client.disassociate_transit_gateway_policy_table(
    TransitGatewayPolicyTableId='string',
    TransitGatewayAttachmentId='string',
    DryRun=True|False
)
Parameters:
  • TransitGatewayPolicyTableId (string) –

    [REQUIRED]

    The ID of the disassociated policy table.

  • TransitGatewayAttachmentId (string) –

    [REQUIRED]

    The ID of the transit gateway attachment to disassociate from the policy table.

  • 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

{
    'Association': {
        'TransitGatewayPolicyTableId': 'string',
        'TransitGatewayAttachmentId': 'string',
        'ResourceId': 'string',
        'ResourceType': 'vpc'|'vpn'|'direct-connect-gateway'|'connect'|'peering'|'tgw-peering',
        'State': 'associating'|'associated'|'disassociating'|'disassociated'
    }
}

Response Structure

  • (dict) –

    • Association (dict) –

      Returns details about the transit gateway policy table disassociation.

      • TransitGatewayPolicyTableId (string) –

        The ID of the transit gateway policy table.

      • TransitGatewayAttachmentId (string) –

        The ID of the transit gateway attachment.

      • ResourceId (string) –

        The resource ID of the transit gateway attachment.

      • ResourceType (string) –

        The resource type for the transit gateway policy table association.

      • State (string) –

        The state of the transit gateway policy table association.