list_resource_set_resources

list_resource_set_resources(**kwargs)

Returns an array of resources that are currently associated to a resource set.

See also: AWS API Documentation

Request Syntax

response = client.list_resource_set_resources(
    Identifier='string',
    MaxResults=123,
    NextToken='string'
)
Parameters
  • Identifier (string) --

    [REQUIRED]

    A unique identifier for the resource set, used in a TODO to refer to the resource set.

  • MaxResults (integer) -- The maximum number of objects that you want Firewall Manager to return for this request. If more objects are available, in the response, Firewall Manager provides a NextToken value that you can use in a subsequent call to get the next batch of objects.
  • NextToken (string) -- When you request a list of objects with a MaxResults setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.
Return type

dict

Returns

Response Syntax

{
    'Items': [
        {
            'URI': 'string',
            'AccountId': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Items (list) --

      An array of the associated resources' uniform resource identifiers (URI).

      • (dict) --

        Details of a resource that is associated to an Firewall Manager resource set.

        • URI (string) --

          The resource's universal resource indicator (URI).

        • AccountId (string) --

          The Amazon Web Services account ID that the associated resource belongs to.

    • NextToken (string) --

      When you request a list of objects with a MaxResults setting, if the number of objects that are still available for retrieval exceeds the maximum you requested, Firewall Manager returns a NextToken value in the response. To retrieve the next batch of objects, use the token returned from the prior request in your next request.

Exceptions

  • FMS.Client.exceptions.InvalidOperationException
  • FMS.Client.exceptions.InternalErrorException
  • FMS.Client.exceptions.InvalidInputException
  • FMS.Client.exceptions.ResourceNotFoundException