Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

listConfigurationPolicyAssociations

abstract suspend fun listConfigurationPolicyAssociations(    input: ListConfigurationPolicyAssociationsRequest = ListConfigurationPolicyAssociationsRequest { }): ListConfigurationPolicyAssociationsResponse

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

import aws.sdk.kotlin.services.securityhub.model.AssociationFilters
import aws.sdk.kotlin.services.securityhub.model.AssociationType

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
}