startConfigurationPolicyDisassociation

Disassociates a target account, organizational unit, or the root from a specified configuration. When you disassociate a configuration from its target, the target inherits the configuration of the closest parent. If there’s no configuration to inherit, the target retains its settings but becomes a self-managed account. A target can be disassociated from 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 disassociates a configuration policy or self managed behavior from the target
// account, organizational unit, or the root.
securityHubClient.startConfigurationPolicyDisassociation {
    target = Target.RootId("r-f6g7h8i9j0example")
    configurationPolicyIdentifier = "SELF_MANAGED_SECURITY_HUB"
} 
   //sampleEnd
}