NetworkFirewall / Paginator / ListResourcesInContextStore

ListResourcesInContextStore

class NetworkFirewall.Paginator.ListResourcesInContextStore
paginator = client.get_paginator('list_resources_in_context_store')
paginate(**kwargs)

Creates an iterator that will paginate through responses from NetworkFirewall.Client.list_resources_in_context_store().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    ContextStoreId='string',
    Filters={
        'Region': 'string',
        'ResourceType': 'SecurityGroup'|'VPC'|'Subnet'|'TGWAttachment'
    },
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • ContextStoreId (string) –

    [REQUIRED]

    The unique identifier of the context store. To get the identifiers of the context stores that are associated with your firewalls, call ListContextStores.

  • Filters (dict) –

    Optional filters that limit the results to resources in a specific Region, of a specific resource type, or both. If you specify both filters, Network Firewall returns only the resources that match both.

    • Region (string) –

      The Amazon Web Services Region of the resources to return, for example us-east-1.

    • ResourceType (string) –

      The type of resource to return. Each resource type corresponds to the ContextType that Network Firewall reports for the resource:

      • SecurityGroup - Security groups. Reported with the SegmentId context type.

      • VPC - VPCs. Reported with the ResourceId context type.

      • Subnet - Subnets. Reported with the Subnet context type.

      • TGWAttachment - Transit gateway attachments. Reported with the Attachment context type.

  • 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

{
    'ResourceContexts': [
        {
            'ContextType': 'ResourceId'|'SegmentId'|'Subnet'|'Attachment',
            'Region': 'string',
            'AvailabilityZone': 'string',
            'AttachmentType': 'string',
            'PublicId': 'string'
        },
    ],

}

Response Structure

  • (dict) –

    • ResourceContexts (list) –

      The resources that the context store records and that match your filters.

      • (dict) –

        A resource that a context store records, which ListResourcesInContextStore returns.

        • ContextType (string) –

          The kind of context that the context store records for the resource. Valid values:

          • ResourceId - A VPC.

          • SegmentId - A security group.

          • Subnet - A subnet.

          • Attachment - A transit gateway attachment.

        • Region (string) –

          The Amazon Web Services Region of the resource.

        • AvailabilityZone (string) –

          The Availability Zone of the resource. Present for subnets.

        • AttachmentType (string) –

          The type of the transit gateway attachment. Present for attachments.

        • PublicId (string) –

          The identifier of the resource, for example vpc-1234567890abcdef0, subnet-1234567890abcdef0, sg-1234567890abcdef0, or tgw-attach-1234567890abcdef0.