CloudFormation / Client / list_resource_scan_resources
list_resource_scan_resources¶
- CloudFormation.Client.list_resource_scan_resources(**kwargs)¶
Lists the resources from a resource scan. The results can be filtered by resource identifier, resource type prefix, tag key, and tag value. Only resources that match all specified filters are returned. The response indicates whether each returned resource is already managed by CloudFormation.
See also: AWS API Documentation
Request Syntax
response = client.list_resource_scan_resources( ResourceScanId='string', ResourceIdentifier='string', ResourceTypePrefix='string', TagKey='string', TagValue='string', NextToken='string', MaxResults=123 )
- Parameters:
ResourceScanId (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the resource scan.
ResourceIdentifier (string) – If specified, the returned resources will have the specified resource identifier (or one of them in the case where the resource has multiple identifiers).
ResourceTypePrefix (string) – If specified, the returned resources will be of any of the resource types with the specified prefix.
TagKey (string) – If specified, the returned resources will have a matching tag key.
TagValue (string) – If specified, the returned resources will have a matching tag value.
NextToken (string) – The token for the next set of items to return. (You received this token from a previous call.)
MaxResults (integer) – If the number of available results exceeds this maximum, the response includes a
NextTokenvalue that you can use for theNextTokenparameter to get the next set of results. By default theListResourceScanResourcesAPI action will return at most 100 results in each response. The maximum value is 100.
- Return type:
dict
- Returns:
Response Syntax
{ 'Resources': [ { 'ResourceType': 'string', 'ResourceIdentifier': { 'string': 'string' }, 'ManagedByStack': True|False }, ], 'NextToken': 'string' }
Response Structure
(dict) –
Resources (list) –
List of up to
MaxResultsresources in the specified resource scan that match all of the specified filters.(dict) –
A scanned resource returned by
ListResourceScanResourcesorListResourceScanRelatedResources.ResourceType (string) –
The type of the resource, such as
AWS::DynamoDB::Table. For the list of supported resources, see Resource type support for imports and drift detection In the CloudFormation User GuideResourceIdentifier (dict) –
A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one of the primary identifiers for the resource. (Primary identifiers are specified in the
primaryIdentifierlist in the resource schema.) The value is the value of that primary identifier. For example, for aAWS::DynamoDB::Tableresource, the primary identifiers isTableNameso the key-value pair could be"TableName": "MyDDBTable". For more information, see primaryIdentifier in the CloudFormation Command Line Interface (CLI) User Guide.(string) –
(string) –
ManagedByStack (boolean) –
If
true, the resource is managed by a CloudFormation stack.
NextToken (string) –
If the request doesn’t return all the remaining results,
NextTokenis set to a token. To retrieve the next set of results, callListResourceScanResourcesagain and use that value for theNextTokenparameter. If the request returns all results,NextTokenis set to an empty string.
Exceptions
CloudFormation.Client.exceptions.ResourceScanNotFoundExceptionCloudFormation.Client.exceptions.ResourceScanInProgressException