listConfigurationPolicyAssociations

Provides information about the associations for your configuration policies and self-managed behavior. Only the Security Hub delegated administrator can invoke this operation from the home Region.

Samples


fun main() { 
   //sampleStart 
   // This operation lists all of the associations between targets and configuration policies or self
// managed behavior. Targets can include accounts, organizational units, or the root.
val resp = securityHubClient.listConfigurationPolicyAssociations {
    nextToken = "U1FsdGVkX19nBV2zoh+Gou9NgnulLJHWpn9xnG4hqSOhvw3o2JqjI86QDxdf"
    maxResults = 1
    filters = AssociationFilters {
        associationType = AssociationType.fromValue("APPLIED")
    }
} 
   //sampleEnd
}