startConfigurationPolicyAssociation
abstract suspend fun startConfigurationPolicyAssociation(input: StartConfigurationPolicyAssociationRequest): StartConfigurationPolicyAssociationResponse
Associates a target account, organizational unit, or the root with a specified configuration. The target can be associated with 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 associates a configuration policy or self managed behavior with the target account,
// organizational unit, or the root.
val resp = securityHubClient.startConfigurationPolicyAssociation {
configurationPolicyIdentifier = "arn:aws:securityhub:us-east-1:123456789012:configuration-policy/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
target = Target.AccountId("111122223333")
}
//sampleEnd
}