deleteInvitations
inline suspend fun SecurityHubClient.deleteInvitations(crossinline block: DeleteInvitationsRequest.Builder.() -> Unit): DeleteInvitationsResponse
Deletes invitations received by the Amazon Web Services account to become a member account.
A Security Hub administrator account can use this operation to delete invitations sent to one or more member accounts.
This operation is only used to delete invitations that are sent to member accounts that aren't part of an 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
}