declineInvitations

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.

Declines invitations to become a Security Hub member account.

A prospective member account uses this operation to decline an invitation to become a member.

Only member accounts that aren't part of an Amazon Web Services organization should use this operation. Organization accounts don't receive invitations.

Samples


fun main() { 
   //sampleStart 
   // The following example declines an invitation from the Security Hub administrator account to become a
// member account. The invited account makes the request.
val resp = securityHubClient.declineInvitations {
    accountIds = listOf<String>(
        "123456789012",
        "111122223333"
    )
} 
   //sampleEnd
}