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.
Namespace: Amazon.SecurityHub.Model
Assembly: AWSSDK.SecurityHub.dll
Version: 3.x.y.z
public class ListInvitationsRequest : AmazonSecurityHubRequest IAmazonWebServiceRequest
The ListInvitationsRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
ListInvitationsRequest() |
Name | Type | Description | |
---|---|---|---|
![]() |
MaxResults | System.Int32 |
Gets and sets the property MaxResults. The maximum number of items to return in the response. |
![]() |
NextToken | System.String |
Gets and sets the property NextToken.
The token that is required for pagination. On your first call to the For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response. |
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.
var client = new AmazonSecurityHubClient(); var response = client.ListInvitations(new ListInvitationsRequest { }); List<Invitation> invitations = response.Invitations;
.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