NetworkManager / Paginator / ListAttachmentNatConfigurations

ListAttachmentNatConfigurations

class NetworkManager.Paginator.ListAttachmentNatConfigurations
paginator = client.get_paginator('list_attachment_nat_configurations')
paginate(**kwargs)

Creates an iterator that will paginate through responses from NetworkManager.Client.list_attachment_nat_configurations().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    CoreNetworkId='string',
    AttachmentId='string',
    Filters={
        'string': [
            'string',
        ]
    },
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • CoreNetworkId (string) – The ID of a core network. Returns the NAT configurations of attachments in the core network that support NAT.

  • AttachmentId (string) – The ID of an attachment. Returns the NAT configuration of the specified attachment. If you specify both an attachment ID and a core network ID, the attachment ID is used.

  • Filters (dict) –

    The filters to apply to the results. Values for the same filter are joined with OR, and different filters are joined with AND. You can specify up to 10 filter values in total. The following filters are supported:

    • nat-gateway-support: The state of NAT gateway support on the attachment, for example ENABLED.

    • nat-system-route-support: Whether system routes are installed for the attachment, true or false.

    • rule-number: The rule number of a NAT rule.

    • match-source-cidr: The source CIDR block of a NAT rule. The value must exactly match the CIDR block of the rule.

    • nat-cidr: The NAT CIDR block of a NAT rule. The value must exactly match the CIDR block of the rule.

    • nat-rule-state: The state of a NAT rule, for example ACTIVATED.

    • (string) –

      • (list) –

        • (string) –

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'AttachmentNatConfigurations': [
        {
            'AttachmentId': 'string',
            'NatGatewaySupport': 'ENABLED'|'ENABLING'|'DISABLED'|'DISABLING'|'PENDING_ATTACHMENT_ACCEPTANCE',
            'NatSystemRouteSupport': True|False,
            'NatGatewayRules': [
                {
                    'RuleNumber': 123,
                    'MatchSourceCidr': 'string',
                    'NatCidr': 'string',
                    'State': 'CREATING'|'MODIFYING'|'DELETING'|'ACTIVATED'|'ACTIVATING'|'DEACTIVATED'|'DEACTIVATING'|'FAILED'|'PENDING_ATTACHMENT_ACCEPTANCE'
                },
            ]
        },
    ],

}

Response Structure

  • (dict) –

    • AttachmentNatConfigurations (list) –

      The NAT configurations of the attachments.

      • (dict) –

        Describes the NAT configuration of a core network attachment.

        • AttachmentId (string) –

          The ID of the attachment.

        • NatGatewaySupport (string) –

          The state of NAT gateway support on the attachment.

        • NatSystemRouteSupport (boolean) –

          Indicates whether the core network installs system routes for the NAT CIDR blocks of the attachment’s NAT rules.

        • NatGatewayRules (list) –

          The NAT rules of the attachment.

          • (dict) –

            Describes a NAT rule of an attachment.

            • RuleNumber (integer) –

              The rule number. Rule numbers identify the rules of an attachment and don’t set the order in which rules are evaluated.

            • MatchSourceCidr (string) –

              The source CIDR block that the rule matches for traffic from the attachment.

            • NatCidr (string) –

              The CIDR block that matching source addresses are translated to.

            • State (string) –

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

              • CREATING: The rule is being created.

              • MODIFYING: The rule is being modified.

              • DELETING: The rule is being deleted.

              • ACTIVATING: NAT gateway support is being enabled, and the rule is being applied.

              • ACTIVATED: NAT gateway support is enabled, and the rule is applied.

              • DEACTIVATING: NAT gateway support is being disabled, and the rule is being removed from use.

              • DEACTIVATED: NAT gateway support is disabled, and the rule isn’t applied.

              • FAILED: The attachment failed to be created, and the rule isn’t applied.

              • PENDING_ATTACHMENT_ACCEPTANCE: The attachment is pending acceptance. The rule is applied after the attachment is accepted.