getInvitationsCount

abstract suspend fun getInvitationsCount(input: GetInvitationsCountRequest = GetInvitationsCountRequest { }): GetInvitationsCountResponse

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.

Returns the count of all Security Hub membership invitations that were sent to the calling member account, not including the currently accepted invitation.

Samples


fun main() { 
   //sampleStart 
   // The following example returns a count of invitations that the Security Hub administrator sent to the
// current member account, not including the currently accepted invitation.
val resp = securityHubClient.getInvitationsCount() 
   //sampleEnd
}