declineInvitations

Declines invitations to become a member account.

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

This operation is only called by member accounts that aren't part of an organization. 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
}