AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the ListInvitations operation.

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.

Lists all Security Hub membership invitations that were sent to the calling account.

Only accounts that are managed by invitation can use this operation. Accounts that are managed using the integration with Organizations don't receive invitations.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.SecurityHub.AmazonSecurityHubRequest
      Amazon.SecurityHub.Model.ListInvitationsRequest

Namespace: Amazon.SecurityHub.Model
Assembly: AWSSDK.SecurityHub.dll
Version: 3.x.y.z

Syntax

C#
public class ListInvitationsRequest : AmazonSecurityHubRequest
         IAmazonWebServiceRequest

The ListInvitationsRequest type exposes the following members

Constructors

NameDescription
Public Method ListInvitationsRequest()

Properties

NameTypeDescription
Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of items to return in the response.

Public Property NextToken System.String

Gets and sets the property NextToken.

The token that is required for pagination. On your first call to the ListInvitations operation, set the value of this parameter to NULL.

For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

Examples

The following example returns a list of Security Hub member invitations sent to the calling AWS account. Only accounts that are invited manually use this operation. It's not for use by accounts that are managed through AWS Organizations.

To list membership invitations to calling account


var client = new AmazonSecurityHubClient();
var response = client.ListInvitations(new ListInvitationsRequest 
{
});

List<Invitation> invitations = response.Invitations;

            

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5