disableOrganizationAdminAccount

Disables a Security Hub administrator account. Can only be called by the organization management account.

Samples


fun main() { 
   //sampleStart 
   // The following example removes the Security Hub administrator account in the Region from which the
// operation was executed. This operation doesn t remove the delegated administrator account in AWS
// Organizations.
securityHubClient.disableOrganizationAdminAccount {
    adminAccountId = "123456789012"
} 
   //sampleEnd
}