FMS.Client.
list_resource_sets
(**kwargs)¶Returns an array of ResourceSetSummary
objects.
See also: AWS API Documentation
Request Syntax
response = client.list_resource_sets(
NextToken='string',
MaxResults=123
)
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.NextToken
value that you can use in a subsequent call to get the next batch of objects.dict
Response Syntax
{
'ResourceSets': [
{
'Id': 'string',
'Name': 'string',
'Description': 'string',
'LastUpdateTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
ResourceSets (list) --
An array of ResourceSetSummary
objects.
(dict) --
Summarizes the resource sets used in a policy.
Id (string) --
A unique identifier for the resource set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
Name (string) --
The descriptive name of the resource set. You can't change the name of a resource set after you create it.
Description (string) --
A description of the resource set.
LastUpdateTime (datetime) --
The last time that the resource set was changed.
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.InvalidInputException
FMS.Client.exceptions.InternalErrorException