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.

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.

Deletes invitations to become a Security Hub member account.

A Security Hub administrator account can use this operation to delete invitations sent to one or more prospective member accounts.

This operation is only used to delete invitations that are sent to prospective member accounts that aren't part of an Amazon Web Services organization. Organization accounts don't receive invitations.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to DeleteInvitationsAsync.

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

Syntax

C#
public virtual DeleteInvitationsResponse DeleteInvitations(
         DeleteInvitationsRequest request
)

Parameters

request
Type: Amazon.SecurityHub.Model.DeleteInvitationsRequest

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

Return Value


The response from the DeleteInvitations 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.

Examples

The following example deletes an invitation sent by the Security Hub administrator account to a prospective member account. This operation is used only for invitations sent to accounts that aren't part of an organization. Organization accounts don't receive invitations.

To delete a custom insight


var client = new AmazonSecurityHubClient();
var response = client.DeleteInsight(new DeleteInsightRequest 
{
    InsightArn = "arn:aws:securityhub:us-west-1:123456789012:insight/123456789012/custom/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
});

string insightArn = response.InsightArn;

            

Version Information

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

See Also