deleteConfigurationPolicy
abstract suspend fun deleteConfigurationPolicy(input: DeleteConfigurationPolicyRequest): DeleteConfigurationPolicyResponse
Deletes a configuration policy. Only the Security Hub delegated administrator can invoke this operation from the home Region. For the deletion to succeed, you must first disassociate a configuration policy from target accounts, organizational units, or the root by invoking the StartConfigurationPolicyDisassociation
operation.
Samples
fun main() {
//sampleStart
// This operation deletes the specified configuration policy.
securityHubClient.deleteConfigurationPolicy {
identifier = "arn:aws:securityhub:us-east-1:123456789012:configuration-policy/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}
//sampleEnd
}