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.

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.

Note:

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

Syntax

C#
public abstract AcceptInvitationResponse AcceptInvitation(
         AcceptInvitationRequest request
)

Parameters

request
Type: Amazon.SecurityHub.Model.AcceptInvitationRequest

Container for the necessary parameters to execute the AcceptInvitation service method.

Return Value


The response from the AcceptInvitation service method, as returned by SecurityHub.

Exceptions

ExceptionCondition
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.

Version Information

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

See Also