getConfigurationPolicyAssociation

Returns the association between a configuration and a target account, organizational unit, or the root. The configuration can be a configuration policy or self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.

Samples

import aws.sdk.kotlin.services.securityhub.model.Target

fun main() { 
   //sampleStart 
   // This operation provides details about configuration associations for a specific target account,
// organizational unit, or the root.
val resp = securityHubClient.getConfigurationPolicyAssociation {
    target = Target.AccountId("111122223333")
} 
   //sampleEnd
}