listResourceScanResources
abstract suspend fun listResourceScanResources(input: ListResourceScanResourcesRequest): ListResourceScanResourcesResponse
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.
Samples
fun main() {
//sampleStart
// This example lists the resources in your resource scan
val resp = cloudFormationClient.listResourceScanResources {
resourceScanId = "arn:aws:cloudformation:us-east-1:123456789012:resourceScan/c19304f6-c4f1-4ff8-8e1f-35162e41d7e1"
}
//sampleEnd
}
fun main() {
//sampleStart
// This example lists the resources in your resource scan filtering only the resources that start with
// the passed in prefix
val resp = cloudFormationClient.listResourceScanResources {
resourceScanId = "arn:aws:cloudformation:us-east-1:123456789012:resourceScan/c19304f6-c4f1-4ff8-8e1f-35162e41d7e1"
resourceTypePrefix = "AWS::S3"
}
//sampleEnd
}