EC2 / Paginator / DescribeClientVpnAuthorizationRules

DescribeClientVpnAuthorizationRules#

class EC2.Paginator.DescribeClientVpnAuthorizationRules#
paginator = client.get_paginator('describe_client_vpn_authorization_rules')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from EC2.Client.describe_client_vpn_authorization_rules().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    ClientVpnEndpointId='string',
    DryRun=True|False,
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • ClientVpnEndpointId (string) –

    [REQUIRED]

    The ID of the Client VPN endpoint.

  • 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.

  • Filters (list) –

    One or more filters. Filter names and values are case-sensitive.

    • description - The description of the authorization rule.

    • destination-cidr - The CIDR of the network to which the authorization rule applies.

    • group-id - The ID of the Active Directory group to which the authorization rule grants access.

    • (dict) –

      A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

      If you specify multiple filters, the filters are joined with an AND, and the request returns only results that match all of the specified filters.

      • Name (string) –

        The name of the filter. Filter names are case-sensitive.

      • Values (list) –

        The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

        • (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

{
    'AuthorizationRules': [
        {
            'ClientVpnEndpointId': 'string',
            'Description': 'string',
            'GroupId': 'string',
            'AccessAll': True|False,
            'DestinationCidr': 'string',
            'Status': {
                'Code': 'authorizing'|'active'|'failed'|'revoking',
                'Message': 'string'
            }
        },
    ],

}

Response Structure

  • (dict) –

    • AuthorizationRules (list) –

      Information about the authorization rules.

      • (dict) –

        Information about an authorization rule.

        • ClientVpnEndpointId (string) –

          The ID of the Client VPN endpoint with which the authorization rule is associated.

        • Description (string) –

          A brief description of the authorization rule.

        • GroupId (string) –

          The ID of the Active Directory group to which the authorization rule grants access.

        • AccessAll (boolean) –

          Indicates whether the authorization rule grants access to all clients.

        • DestinationCidr (string) –

          The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.

        • Status (dict) –

          The current state of the authorization rule.

          • Code (string) –

            The state of the authorization rule.

          • Message (string) –

            A message about the status of the authorization rule, if applicable.