List Resource Scan Resources
| cloudformation_list_resource_scan_resources | R Documentation |
Lists the resources from a resource scan¶
Description¶
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.
Usage¶
cloudformation_list_resource_scan_resources(ResourceScanId,
ResourceIdentifier, ResourceTypePrefix, TagKey, TagValue, NextToken,
MaxResults)
Arguments¶
ResourceScanId[required] The Amazon Resource Name (ARN) of the resource scan.
ResourceIdentifierIf specified, the returned resources will have the specified resource identifier (or one of them in the case where the resource has multiple identifiers).
ResourceTypePrefixIf specified, the returned resources will be of any of the resource types with the specified prefix.
TagKeyIf specified, the returned resources will have a matching tag key.
TagValueIf specified, the returned resources will have a matching tag value.
NextTokenA string that identifies the next page of resource scan results.
MaxResultsIf 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 thelist_resource_scan_resourcesAPI action will return at most 100 results in each response. The maximum value is 100.
Value¶
A list with the following syntax:
list(
Resources = list(
list(
ResourceType = "string",
ResourceIdentifier = list(
"string"
),
ManagedByStack = TRUE|FALSE
)
),
NextToken = "string"
)
Request syntax¶
svc$list_resource_scan_resources(
ResourceScanId = "string",
ResourceIdentifier = "string",
ResourceTypePrefix = "string",
TagKey = "string",
TagValue = "string",
NextToken = "string",
MaxResults = 123
)
Examples¶
## Not run:
# This example lists the resources in your resource scan
svc$list_resource_scan_resources(
ResourceScanId = "arn:aws:cloudformation:us-east-1:123456789012:resourceS..."
)
# This example lists the resources in your resource scan filtering only
# the resources that start with the passed in prefix
svc$list_resource_scan_resources(
ResourceScanId = "arn:aws:cloudformation:us-east-1:123456789012:resourceS...",
ResourceTypePrefix = "AWS::S3"
)
## End(Not run)