EC2 / Client / get_transit_gateway_attachment_nat_configuration

get_transit_gateway_attachment_nat_configuration

EC2.Client.get_transit_gateway_attachment_nat_configuration(**kwargs)

Describes the NAT configuration for the specified transit gateway attachment. Only the owner of the transit gateway can describe the NAT configuration.

See also: AWS API Documentation

Request Syntax

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

    [REQUIRED]

    The ID of the transit gateway attachment.

  • 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

{
    'TransitGatewayAttachmentId': 'string',
    'NatGatewaySupport': 'enabled'|'disabled'|'enabling'|'disabling',
    'NatSystemRouteSupport': 'enable'|'disable',
    'NatGatewayRules': [
        {
            'RuleNumber': 123,
            'MatchSourceCidr': 'string',
            'NatCidr': 'string',
            'State': 'pending'|'activated'|'deactivated'|'deleting'
        },
    ]
}

Response Structure

  • (dict) –

    • TransitGatewayAttachmentId (string) –

      The ID of the transit gateway attachment.

    • NatGatewaySupport (string) –

      The state of NAT gateway support for the attachment.

    • NatSystemRouteSupport (string) –

      Specifies whether the transit gateway installs routes for the NAT CIDRs in the route tables to which the attachment propagates.

    • NatGatewayRules (list) –

      The NAT gateway rules for the attachment.

      • (dict) –

        Contains information about a NAT gateway rule for a transit gateway attachment, including the rule number, the source CIDR block, the translated CIDR block, and the state of the rule.

        • RuleNumber (integer) –

          The rule number.

        • MatchSourceCidr (string) –

          The IPv4 CIDR block of the source addresses to translate.

        • NatCidr (string) –

          The IPv4 CIDR block that the transit gateway translates the source addresses to.

        • State (string) –

          The state of the NAT gateway rule. The possible values are:

          • pending - The transit gateway is applying a change to the rule.

          • activated - The rule is in effect because NAT gateway support is enabled for the attachment.

          • deactivated - The rule isn’t in effect because NAT gateway support is disabled for the attachment.