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.
This method is deprecated. Instead, use AcceptAdministratorInvitation
.
The Security Hub console continues to use AcceptInvitation
. It will eventually
change to use AcceptAdministratorInvitation
. Any IAM policies that specifically
control access to this function must continue to use AcceptInvitation
. You
should also add AcceptAdministratorInvitation
to your policies to ensure that
the correct permissions are in place after the console begins to use AcceptAdministratorInvitation
.
Accepts the invitation to be a member account and be monitored by the Security Hub administrator account that the invitation was sent from.
This operation is only used by member accounts that are not added through Organizations.
When the member account accepts the invitation, permission is granted to the administrator account to view findings generated in the member account.
For .NET Core this operation is only available in asynchronous form. Please refer to AcceptInvitationAsync.
Namespace: Amazon.SecurityHub
Assembly: AWSSDK.SecurityHub.dll
Version: 3.x.y.z
public abstract AcceptInvitationResponse AcceptInvitation( AcceptInvitationRequest request )
Container for the necessary parameters to execute the AcceptInvitation service method.
Exception | Condition |
---|---|
InternalException | Internal server error. |
InvalidAccessException | The account doesn't have permission to perform this action. |
InvalidInputException | The request was rejected because you supplied an invalid or out-of-range value for an input parameter. |
LimitExceededException | The request was rejected because it attempted to create resources beyond the current Amazon Web Services account or throttling limits. The error code describes the limit exceeded. |
ResourceNotFoundException | The request was rejected because we can't find the specified resource. |
.NET Framework:
Supported in: 4.5 and newer, 3.5