NetworkSecurityManagerCustomerAPI / Paginator / ListTemplateSnapshots

ListTemplateSnapshots

class NetworkSecurityManagerCustomerAPI.Paginator.ListTemplateSnapshots
paginator = client.get_paginator('list_template_snapshots')
paginate(**kwargs)

Creates an iterator that will paginate through responses from NetworkSecurityManagerCustomerAPI.Client.list_template_snapshots().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    templateIdentifier='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • templateIdentifier (string) –

    [REQUIRED]

    The identifier of the template. This is the template’s Amazon Resource Name (ARN).

  • 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

{
    'snapshots': [
        {
            'templateId': 'string',
            'templateArn': 'string',
            'templateName': 'string',
            'status': 'DRAFT'|'ACTIVE'|'DISABLED',
            'version': 'string',
            'hasPublishedVersion': True|False,
            'firewallType': 'WAF',
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • snapshots (list) –

      The snapshots of the template.

      • (dict) –

        Summary information about a template.

        • templateId (string) –

          The service-generated id of the template.

        • templateArn (string) –

          The Amazon Resource Name (ARN) of the template.

        • templateName (string) –

          The name of the template.

        • status (string) –

          The current status of the resource: DRAFT (unpublished, editable) or ACTIVE (published, in use).

        • version (string) –

          The version of the resource.

        • hasPublishedVersion (boolean) –

          Specifies whether a published version of the resource exists.

        • firewallType (string) –

          The firewall type associated with the resource.

        • updatedAt (datetime) –

          The time when the resource was last updated. For a snapshot, this is the time when the snapshot was created.

    • NextToken (string) –

      A token to resume pagination.