deleteInvitations
We recommend using Organizations instead of Security Hub invitations to manage your member accounts. For information, see Managing Security Hub administrator and member accounts with Organizations in the Security Hub User Guide.
Deletes invitations to become a Security Hub member account.
A Security Hub administrator account can use this operation to delete invitations sent to one or more prospective member accounts.
This operation is only used to delete invitations that are sent to prospective member accounts that aren't part of an Amazon Web Services organization. Organization accounts don't receive invitations.
Samples
fun main() {
//sampleStart
// The following example deletes an invitation sent by the Security Hub administrator account to a
// prospective member account. This operation is used only for invitations sent to accounts that aren t part of an
// organization. Organization accounts don t receive invitations.
val resp = securityHubClient.deleteInvitations {
accountIds = listOf<String>(
"123456789012"
)
}
//sampleEnd
}