listResourceScanRelatedResources

Lists the related resources for a list of resources from a resource scan. The response indicates whether each returned resource is already managed by CloudFormation.

Samples

import aws.sdk.kotlin.services.cloudformation.model.ScannedResourceIdentifier

fun main() { 
   //sampleStart 
   // This example lists the resources related to the passed in resources
val resp = cloudFormationClient.listResourceScanRelatedResources {
    resourceScanId = "arn:aws:cloudformation:us-east-1:123456789012:resourceScan/c19304f6-c4f1-4ff8-8e1f-35162e41d7e1"
    resources = listOf<ScannedResourceIdentifier>(
        ScannedResourceIdentifier {
            resourceType = "AWS::S3::Bucket"
            resourceIdentifier = mapOf<String, String>(
                "BucketName" to "jazz-bucket"
            )
        },
        ScannedResourceIdentifier {
            resourceType = "AWS::EC2::DHCPOptions"
            resourceIdentifier = mapOf<String, String>(
                "DhcpOptionsId" to "random-id123"
            )
        }            
    )
} 
   //sampleEnd
}