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 EnableOrganizationAdminAccount operation. Designates the Security Hub administrator account for an organization. Can only be called by the organization management account.

Inheritance Hierarchy

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

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

Syntax

C#
public class EnableOrganizationAdminAccountRequest : AmazonSecurityHubRequest
         IAmazonWebServiceRequest

The EnableOrganizationAdminAccountRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property AdminAccountId System.String

Gets and sets the property AdminAccountId.

The Amazon Web Services account identifier of the account to designate as the Security Hub administrator account.

Examples

The following example designates the specified account as the Security Hub administrator account. The requesting account must be the organization management account.

To designate a Security Hub administrator


var client = new AmazonSecurityHubClient();
var response = client.EnableOrganizationAdminAccount(new EnableOrganizationAdminAccountRequest 
{
    AdminAccountId = "123456789012"
});


            

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