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.

Implementation for accessing DirectoryService

Directory Service

Directory Service is a web service that makes it easy for you to setup and run directories in the Amazon Web Services cloud, or connect your Amazon Web Services resources with an existing self-managed Microsoft Active Directory. This guide provides detailed information about Directory Service operations, data types, parameters, and errors. For information about Directory Services features, see Directory Service and the Directory Service Administration Guide.

Amazon Web Services provides SDKs that consist of libraries and sample code for various programming languages and platforms (Java, Ruby, .Net, iOS, Android, etc.). The SDKs provide a convenient way to create programmatic access to Directory Service and other Amazon Web Services services. For more information about the Amazon Web Services SDKs, including how to download and install them, see Tools for Amazon Web Services.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonServiceClient
    Amazon.DirectoryService.AmazonDirectoryServiceClient

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

Syntax

C#
public class AmazonDirectoryServiceClient : AmazonServiceClient
         IAmazonDirectoryService, IAmazonService, IDisposable

The AmazonDirectoryServiceClient type exposes the following members

Constructors

NameDescription
Public Method AmazonDirectoryServiceClient()

Constructs AmazonDirectoryServiceClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonDirectoryServiceClient(RegionEndpoint)

Constructs AmazonDirectoryServiceClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonDirectoryServiceClient(AmazonDirectoryServiceConfig)

Constructs AmazonDirectoryServiceClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set.

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
    <appSettings>
        <add key="AWSProfileName" value="AWS Default"/>
    </appSettings>
</configuration>
             

Public Method AmazonDirectoryServiceClient(AWSCredentials)

Constructs AmazonDirectoryServiceClient with AWS Credentials

Public Method AmazonDirectoryServiceClient(AWSCredentials, RegionEndpoint)

Constructs AmazonDirectoryServiceClient with AWS Credentials

Public Method AmazonDirectoryServiceClient(AWSCredentials, AmazonDirectoryServiceConfig)

Constructs AmazonDirectoryServiceClient with AWS Credentials and an AmazonDirectoryServiceClient Configuration object.

Public Method AmazonDirectoryServiceClient(string, string)

Constructs AmazonDirectoryServiceClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonDirectoryServiceClient(string, string, RegionEndpoint)

Constructs AmazonDirectoryServiceClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonDirectoryServiceClient(string, string, AmazonDirectoryServiceConfig)

Constructs AmazonDirectoryServiceClient with AWS Access Key ID, AWS Secret Key and an AmazonDirectoryServiceClient Configuration object.

Public Method AmazonDirectoryServiceClient(string, string, string)

Constructs AmazonDirectoryServiceClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonDirectoryServiceClient(string, string, string, RegionEndpoint)

Constructs AmazonDirectoryServiceClient with AWS Access Key ID and AWS Secret Key

Public Method AmazonDirectoryServiceClient(string, string, string, AmazonDirectoryServiceConfig)

Constructs AmazonDirectoryServiceClient with AWS Access Key ID, AWS Secret Key and an AmazonDirectoryServiceClient Configuration object.

Properties

NameTypeDescription
Public Property Config Amazon.Runtime.IClientConfig Inherited from Amazon.Runtime.AmazonServiceClient.
Public Property Paginators Amazon.DirectoryService.Model.IDirectoryServicePaginatorFactory

Paginators for the service

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.5 or higher. For .NET 3.5 the SDK follows the standard naming convention of BeginMethodName and EndMethodName to indicate asynchronous operations - these method pairs are not shown in the table below.

NameDescription
Public Method AcceptSharedDirectory(AcceptSharedDirectoryRequest)

Accepts a directory sharing request that was sent from the directory owner account.

Public Method AcceptSharedDirectoryAsync(AcceptSharedDirectoryRequest, CancellationToken)

Accepts a directory sharing request that was sent from the directory owner account.

Public Method AddIpRoutes(AddIpRoutesRequest)

If the DNS server for your self-managed domain uses a publicly addressable IP address, you must add a CIDR address block to correctly route traffic to and from your Microsoft AD on Amazon Web Services. AddIpRoutes adds this address block. You can also use AddIpRoutes to facilitate routing traffic that uses public IP ranges from your Microsoft AD on Amazon Web Services to a peer VPC.

Before you call AddIpRoutes, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the AddIpRoutes operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Public Method AddIpRoutesAsync(AddIpRoutesRequest, CancellationToken)

If the DNS server for your self-managed domain uses a publicly addressable IP address, you must add a CIDR address block to correctly route traffic to and from your Microsoft AD on Amazon Web Services. AddIpRoutes adds this address block. You can also use AddIpRoutes to facilitate routing traffic that uses public IP ranges from your Microsoft AD on Amazon Web Services to a peer VPC.

Before you call AddIpRoutes, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the AddIpRoutes operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Public Method AddRegion(AddRegionRequest)

Adds two domain controllers in the specified Region for the specified directory.

Public Method AddRegionAsync(AddRegionRequest, CancellationToken)

Adds two domain controllers in the specified Region for the specified directory.

Public Method AddTagsToResource(AddTagsToResourceRequest)

Adds or overwrites one or more tags for the specified directory. Each directory can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique to each resource.

Public Method AddTagsToResourceAsync(AddTagsToResourceRequest, CancellationToken)

Adds or overwrites one or more tags for the specified directory. Each directory can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique to each resource.

Public Method CancelSchemaExtension(CancelSchemaExtensionRequest)

Cancels an in-progress schema extension to a Microsoft AD directory. Once a schema extension has started replicating to all domain controllers, the task can no longer be canceled. A schema extension can be canceled during any of the following states; Initializing, CreatingSnapshot, and UpdatingSchema.

Public Method CancelSchemaExtensionAsync(CancelSchemaExtensionRequest, CancellationToken)

Cancels an in-progress schema extension to a Microsoft AD directory. Once a schema extension has started replicating to all domain controllers, the task can no longer be canceled. A schema extension can be canceled during any of the following states; Initializing, CreatingSnapshot, and UpdatingSchema.

Public Method ConnectDirectory(ConnectDirectoryRequest)

Creates an AD Connector to connect to a self-managed directory.

Before you call ConnectDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the ConnectDirectory operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Public Method ConnectDirectoryAsync(ConnectDirectoryRequest, CancellationToken)

Creates an AD Connector to connect to a self-managed directory.

Before you call ConnectDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the ConnectDirectory operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Public Method CreateAlias(CreateAliasRequest)

Creates an alias for a directory and assigns the alias to the directory. The alias is used to construct the access URL for the directory, such as http://.awsapps.com.

After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.

Public Method CreateAliasAsync(CreateAliasRequest, CancellationToken)

Creates an alias for a directory and assigns the alias to the directory. The alias is used to construct the access URL for the directory, such as http://.awsapps.com.

After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.

Public Method CreateComputer(CreateComputerRequest)

Creates an Active Directory computer object in the specified directory.

Public Method CreateComputerAsync(CreateComputerRequest, CancellationToken)

Creates an Active Directory computer object in the specified directory.

Public Method CreateConditionalForwarder(CreateConditionalForwarderRequest)

Creates a conditional forwarder associated with your Amazon Web Services directory. Conditional forwarders are required in order to set up a trust relationship with another domain. The conditional forwarder points to the trusted domain.

Public Method CreateConditionalForwarderAsync(CreateConditionalForwarderRequest, CancellationToken)

Creates a conditional forwarder associated with your Amazon Web Services directory. Conditional forwarders are required in order to set up a trust relationship with another domain. The conditional forwarder points to the trusted domain.

Public Method CreateDirectory(CreateDirectoryRequest)

Creates a Simple AD directory. For more information, see Simple Active Directory in the Directory Service Admin Guide.

Before you call CreateDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateDirectory operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Public Method CreateDirectoryAsync(CreateDirectoryRequest, CancellationToken)

Creates a Simple AD directory. For more information, see Simple Active Directory in the Directory Service Admin Guide.

Before you call CreateDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateDirectory operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Public Method CreateLogSubscription(CreateLogSubscriptionRequest)

Creates a subscription to forward real-time Directory Service domain controller security logs to the specified Amazon CloudWatch log group in your Amazon Web Services account.

Public Method CreateLogSubscriptionAsync(CreateLogSubscriptionRequest, CancellationToken)

Creates a subscription to forward real-time Directory Service domain controller security logs to the specified Amazon CloudWatch log group in your Amazon Web Services account.

Public Method CreateMicrosoftAD(CreateMicrosoftADRequest)

Creates a Microsoft AD directory in the Amazon Web Services Cloud. For more information, see Managed Microsoft AD in the Directory Service Admin Guide.

Before you call CreateMicrosoftAD, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateMicrosoftAD operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Public Method CreateMicrosoftADAsync(CreateMicrosoftADRequest, CancellationToken)

Creates a Microsoft AD directory in the Amazon Web Services Cloud. For more information, see Managed Microsoft AD in the Directory Service Admin Guide.

Before you call CreateMicrosoftAD, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the CreateMicrosoftAD operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Public Method CreateSnapshot(CreateSnapshotRequest)

Creates a snapshot of a Simple AD or Microsoft AD directory in the Amazon Web Services cloud.

You cannot take snapshots of AD Connector directories.

Public Method CreateSnapshotAsync(CreateSnapshotRequest, CancellationToken)

Creates a snapshot of a Simple AD or Microsoft AD directory in the Amazon Web Services cloud.

You cannot take snapshots of AD Connector directories.

Public Method CreateTrust(CreateTrustRequest)

Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your Managed Microsoft AD directory, and your existing self-managed Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.

This action initiates the creation of the Amazon Web Services side of a trust relationship between an Managed Microsoft AD directory and an external domain. You can create either a forest trust or an external trust.

Public Method CreateTrustAsync(CreateTrustRequest, CancellationToken)

Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your Managed Microsoft AD directory, and your existing self-managed Microsoft Active Directory. This would allow you to provide users and groups access to resources in either domain, with a single set of credentials.

This action initiates the creation of the Amazon Web Services side of a trust relationship between an Managed Microsoft AD directory and an external domain. You can create either a forest trust or an external trust.

Public Method DeleteConditionalForwarder(DeleteConditionalForwarderRequest)

Deletes a conditional forwarder that has been set up for your Amazon Web Services directory.

Public Method DeleteConditionalForwarderAsync(DeleteConditionalForwarderRequest, CancellationToken)

Deletes a conditional forwarder that has been set up for your Amazon Web Services directory.

Public Method DeleteDirectory(DeleteDirectoryRequest)

Deletes an Directory Service directory.

Before you call DeleteDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the DeleteDirectory operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Public Method DeleteDirectoryAsync(DeleteDirectoryRequest, CancellationToken)

Deletes an Directory Service directory.

Before you call DeleteDirectory, ensure that all of the required permissions have been explicitly granted through a policy. For details about what permissions are required to run the DeleteDirectory operation, see Directory Service API Permissions: Actions, Resources, and Conditions Reference.

Public Method DeleteLogSubscription(DeleteLogSubscriptionRequest)

Deletes the specified log subscription.

Public Method DeleteLogSubscriptionAsync(DeleteLogSubscriptionRequest, CancellationToken)

Deletes the specified log subscription.

Public Method DeleteSnapshot(DeleteSnapshotRequest)

Deletes a directory snapshot.

Public Method DeleteSnapshotAsync(DeleteSnapshotRequest, CancellationToken)

Deletes a directory snapshot.

Public Method DeleteTrust(DeleteTrustRequest)

Deletes an existing trust relationship between your Managed Microsoft AD directory and an external domain.

Public Method DeleteTrustAsync(DeleteTrustRequest, CancellationToken)

Deletes an existing trust relationship between your Managed Microsoft AD directory and an external domain.

Public Method DeregisterCertificate(DeregisterCertificateRequest)

Deletes from the system the certificate that was registered for secure LDAP or client certificate authentication.

Public Method DeregisterCertificateAsync(DeregisterCertificateRequest, CancellationToken)

Deletes from the system the certificate that was registered for secure LDAP or client certificate authentication.

Public Method DeregisterEventTopic(DeregisterEventTopicRequest)

Removes the specified directory as a publisher to the specified Amazon SNS topic.

Public Method DeregisterEventTopicAsync(DeregisterEventTopicRequest, CancellationToken)

Removes the specified directory as a publisher to the specified Amazon SNS topic.

Public Method DescribeCertificate(DescribeCertificateRequest)

Displays information about the certificate registered for secure LDAP or client certificate authentication.

Public Method DescribeCertificateAsync(DescribeCertificateRequest, CancellationToken)

Displays information about the certificate registered for secure LDAP or client certificate authentication.

Public Method DescribeClientAuthenticationSettings(DescribeClientAuthenticationSettingsRequest)

Retrieves information about the type of client authentication for the specified directory, if the type is specified. If no type is specified, information about all client authentication types that are supported for the specified directory is retrieved. Currently, only SmartCard is supported.

Public Method DescribeClientAuthenticationSettingsAsync(DescribeClientAuthenticationSettingsRequest, CancellationToken)

Retrieves information about the type of client authentication for the specified directory, if the type is specified. If no type is specified, information about all client authentication types that are supported for the specified directory is retrieved. Currently, only SmartCard is supported.

Public Method DescribeConditionalForwarders(DescribeConditionalForwardersRequest)

Obtains information about the conditional forwarders for this account.

If no input parameters are provided for RemoteDomainNames, this request describes all conditional forwarders for the specified directory ID.

Public Method DescribeConditionalForwardersAsync(DescribeConditionalForwardersRequest, CancellationToken)

Obtains information about the conditional forwarders for this account.

If no input parameters are provided for RemoteDomainNames, this request describes all conditional forwarders for the specified directory ID.

Public Method DescribeDirectories()

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

Public Method DescribeDirectories(DescribeDirectoriesRequest)

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

Public Method DescribeDirectoriesAsync(CancellationToken)

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

Public Method DescribeDirectoriesAsync(DescribeDirectoriesRequest, CancellationToken)

Obtains information about the directories that belong to this account.

You can retrieve information about specific directories by passing the directory identifiers in the DirectoryIds parameter. Otherwise, all directories that belong to the current account are returned.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeDirectoriesResult.NextToken member contains a token that you pass in the next call to DescribeDirectories to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

Public Method DescribeDomainControllers(DescribeDomainControllersRequest)

Provides information about any domain controllers in your directory.

Public Method DescribeDomainControllersAsync(DescribeDomainControllersRequest, CancellationToken)

Provides information about any domain controllers in your directory.

Public Method DescribeEventTopics(DescribeEventTopicsRequest)

Obtains information about which Amazon SNS topics receive status messages from the specified directory.

If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.

Public Method DescribeEventTopicsAsync(DescribeEventTopicsRequest, CancellationToken)

Obtains information about which Amazon SNS topics receive status messages from the specified directory.

If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.

Public Method DescribeLDAPSSettings(DescribeLDAPSSettingsRequest)

Describes the status of LDAP security for the specified directory.

Public Method DescribeLDAPSSettingsAsync(DescribeLDAPSSettingsRequest, CancellationToken)

Describes the status of LDAP security for the specified directory.

Public Method DescribeRegions(DescribeRegionsRequest)

Provides information about the Regions that are configured for multi-Region replication.

Public Method DescribeRegionsAsync(DescribeRegionsRequest, CancellationToken)

Provides information about the Regions that are configured for multi-Region replication.

Public Method DescribeSettings(DescribeSettingsRequest)

Retrieves information about the configurable settings for the specified directory.

Public Method DescribeSettingsAsync(DescribeSettingsRequest, CancellationToken)

Retrieves information about the configurable settings for the specified directory.

Public Method DescribeSharedDirectories(DescribeSharedDirectoriesRequest)

Returns the shared directories in your account.

Public Method DescribeSharedDirectoriesAsync(DescribeSharedDirectoriesRequest, CancellationToken)

Returns the shared directories in your account.

Public Method DescribeSnapshots(DescribeSnapshotsRequest)

Obtains information about the directory snapshots that belong to this account.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeSnapshots.NextToken member contains a token that you pass in the next call to DescribeSnapshots to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

Public Method DescribeSnapshotsAsync(DescribeSnapshotsRequest, CancellationToken)

Obtains information about the directory snapshots that belong to this account.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the DescribeSnapshots.NextToken member contains a token that you pass in the next call to DescribeSnapshots to retrieve the next set of items.

You can also specify a maximum number of return results with the Limit parameter.

Public Method DescribeTrusts(DescribeTrustsRequest)

Obtains information about the trust relationships for this account.

If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.

Public Method DescribeTrustsAsync(DescribeTrustsRequest, CancellationToken)

Obtains information about the trust relationships for this account.

If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.

Public Method DescribeUpdateDirectory(DescribeUpdateDirectoryRequest)

Describes the updates of a directory for a particular update type.

Public Method DescribeUpdateDirectoryAsync(DescribeUpdateDirectoryRequest, CancellationToken)

Describes the updates of a directory for a particular update type.

Public Method DetermineServiceOperationEndpoint(AmazonWebServiceRequest)

Returns the endpoint that will be used for a particular request.

Public Method DisableClientAuthentication(DisableClientAuthenticationRequest)

Disables alternative client authentication methods for the specified directory.

Public Method DisableClientAuthenticationAsync(DisableClientAuthenticationRequest, CancellationToken)

Disables alternative client authentication methods for the specified directory.

Public Method DisableLDAPS(DisableLDAPSRequest)

Deactivates LDAP secure calls for the specified directory.

Public Method DisableLDAPSAsync(DisableLDAPSRequest, CancellationToken)

Deactivates LDAP secure calls for the specified directory.

Public Method DisableRadius(DisableRadiusRequest)

Disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD directory.

Public Method DisableRadiusAsync(DisableRadiusRequest, CancellationToken)

Disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD directory.

Public Method DisableSso(DisableSsoRequest)

Disables single-sign on for a directory.

Public Method DisableSsoAsync(DisableSsoRequest, CancellationToken)

Disables single-sign on for a directory.

Public Method Dispose() Inherited from Amazon.Runtime.AmazonServiceClient.
Public Method EnableClientAuthentication(EnableClientAuthenticationRequest)

Enables alternative client authentication methods for the specified directory.

Public Method EnableClientAuthenticationAsync(EnableClientAuthenticationRequest, CancellationToken)

Enables alternative client authentication methods for the specified directory.

Public Method EnableLDAPS(EnableLDAPSRequest)

Activates the switch for the specific directory to always use LDAP secure calls.

Public Method EnableLDAPSAsync(EnableLDAPSRequest, CancellationToken)

Activates the switch for the specific directory to always use LDAP secure calls.

Public Method EnableRadius(EnableRadiusRequest)

Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD directory.

Public Method EnableRadiusAsync(EnableRadiusRequest, CancellationToken)

Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD directory.

Public Method EnableSso(EnableSsoRequest)

Enables single sign-on for a directory. Single sign-on allows users in your directory to access certain Amazon Web Services services from a computer joined to the directory without having to enter their credentials separately.

Public Method EnableSsoAsync(EnableSsoRequest, CancellationToken)

Enables single sign-on for a directory. Single sign-on allows users in your directory to access certain Amazon Web Services services from a computer joined to the directory without having to enter their credentials separately.

Public Method GetDirectoryLimits()

Obtains directory limit information for the current Region.

Public Method GetDirectoryLimits(GetDirectoryLimitsRequest)

Obtains directory limit information for the current Region.

Public Method GetDirectoryLimitsAsync(CancellationToken)

Obtains directory limit information for the current Region.

Public Method GetDirectoryLimitsAsync(GetDirectoryLimitsRequest, CancellationToken)

Obtains directory limit information for the current Region.

Public Method GetSnapshotLimits(GetSnapshotLimitsRequest)

Obtains the manual snapshot limits for a directory.

Public Method GetSnapshotLimitsAsync(GetSnapshotLimitsRequest, CancellationToken)

Obtains the manual snapshot limits for a directory.

Public Method ListCertificates(ListCertificatesRequest)

For the specified directory, lists all the certificates registered for a secure LDAP or client certificate authentication.

Public Method ListCertificatesAsync(ListCertificatesRequest, CancellationToken)

For the specified directory, lists all the certificates registered for a secure LDAP or client certificate authentication.

Public Method ListIpRoutes(ListIpRoutesRequest)

Lists the address blocks that you have added to a directory.

Public Method ListIpRoutesAsync(ListIpRoutesRequest, CancellationToken)

Lists the address blocks that you have added to a directory.

Public Method ListLogSubscriptions(ListLogSubscriptionsRequest)

Lists the active log subscriptions for the Amazon Web Services account.

Public Method ListLogSubscriptionsAsync(ListLogSubscriptionsRequest, CancellationToken)

Lists the active log subscriptions for the Amazon Web Services account.

Public Method ListSchemaExtensions(ListSchemaExtensionsRequest)

Lists all schema extensions applied to a Microsoft AD Directory.

Public Method ListSchemaExtensionsAsync(ListSchemaExtensionsRequest, CancellationToken)

Lists all schema extensions applied to a Microsoft AD Directory.

Public Method ListTagsForResource(ListTagsForResourceRequest)

Lists all tags on a directory.

Public Method ListTagsForResourceAsync(ListTagsForResourceRequest, CancellationToken)

Lists all tags on a directory.

Public Method RegisterCertificate(RegisterCertificateRequest)

Registers a certificate for a secure LDAP or client certificate authentication.

Public Method RegisterCertificateAsync(RegisterCertificateRequest, CancellationToken)

Registers a certificate for a secure LDAP or client certificate authentication.

Public Method RegisterEventTopic(RegisterEventTopicRequest)

Associates a directory with an Amazon SNS topic. This establishes the directory as a publisher to the specified Amazon SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.

Public Method RegisterEventTopicAsync(RegisterEventTopicRequest, CancellationToken)

Associates a directory with an Amazon SNS topic. This establishes the directory as a publisher to the specified Amazon SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.

Public Method RejectSharedDirectory(RejectSharedDirectoryRequest)

Rejects a directory sharing request that was sent from the directory owner account.

Public Method RejectSharedDirectoryAsync(RejectSharedDirectoryRequest, CancellationToken)

Rejects a directory sharing request that was sent from the directory owner account.

Public Method RemoveIpRoutes(RemoveIpRoutesRequest)

Removes IP address blocks from a directory.

Public Method RemoveIpRoutesAsync(RemoveIpRoutesRequest, CancellationToken)

Removes IP address blocks from a directory.

Public Method RemoveRegion(RemoveRegionRequest)

Stops all replication and removes the domain controllers from the specified Region. You cannot remove the primary Region with this operation. Instead, use the DeleteDirectory API.

Public Method RemoveRegionAsync(RemoveRegionRequest, CancellationToken)

Stops all replication and removes the domain controllers from the specified Region. You cannot remove the primary Region with this operation. Instead, use the DeleteDirectory API.

Public Method RemoveTagsFromResource(RemoveTagsFromResourceRequest)

Removes tags from a directory.

Public Method RemoveTagsFromResourceAsync(RemoveTagsFromResourceRequest, CancellationToken)

Removes tags from a directory.

Public Method ResetUserPassword(ResetUserPasswordRequest)

Resets the password for any user in your Managed Microsoft AD or Simple AD directory.

You can reset the password for any user in your directory with the following exceptions:

  • For Simple AD, you cannot reset the password for any user that is a member of either the Domain Admins or Enterprise Admins group except for the administrator user.

  • For Managed Microsoft AD, you can only reset the password for a user that is in an OU based off of the NetBIOS name that you typed when you created your directory. For example, you cannot reset the password for a user in the Amazon Web Services Reserved OU. For more information about the OU structure for an Managed Microsoft AD directory, see What Gets Created in the Directory Service Administration Guide.

Public Method ResetUserPasswordAsync(ResetUserPasswordRequest, CancellationToken)

Resets the password for any user in your Managed Microsoft AD or Simple AD directory.

You can reset the password for any user in your directory with the following exceptions:

  • For Simple AD, you cannot reset the password for any user that is a member of either the Domain Admins or Enterprise Admins group except for the administrator user.

  • For Managed Microsoft AD, you can only reset the password for a user that is in an OU based off of the NetBIOS name that you typed when you created your directory. For example, you cannot reset the password for a user in the Amazon Web Services Reserved OU. For more information about the OU structure for an Managed Microsoft AD directory, see What Gets Created in the Directory Service Administration Guide.

Public Method RestoreFromSnapshot(RestoreFromSnapshotRequest)

Restores a directory using an existing directory snapshot.

When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.

This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the DescribeDirectories operation with the directory identifier. When the DirectoryDescription.Stage value changes to Active, the restore operation is complete.

Public Method RestoreFromSnapshotAsync(RestoreFromSnapshotRequest, CancellationToken)

Restores a directory using an existing directory snapshot.

When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.

This action returns as soon as the restore operation is initiated. You can monitor the progress of the restore operation by calling the DescribeDirectories operation with the directory identifier. When the DirectoryDescription.Stage value changes to Active, the restore operation is complete.

Public Method ShareDirectory(ShareDirectoryRequest)

Shares a specified directory (DirectoryId) in your Amazon Web Services account (directory owner) with another Amazon Web Services account (directory consumer). With this operation you can use your directory from any Amazon Web Services account and from any Amazon VPC within an Amazon Web Services Region.

When you share your Managed Microsoft AD directory, Directory Service creates a shared directory in the directory consumer account. This shared directory contains the metadata to provide access to the directory within the directory owner account. The shared directory is visible in all VPCs in the directory consumer account.

The ShareMethod parameter determines whether the specified directory can be shared between Amazon Web Services accounts inside the same Amazon Web Services organization (ORGANIZATIONS). It also determines whether you can share the directory with any other Amazon Web Services account either inside or outside of the organization (HANDSHAKE).

The ShareNotes parameter is only used when HANDSHAKE is called, which sends a directory sharing request to the directory consumer.

Public Method ShareDirectoryAsync(ShareDirectoryRequest, CancellationToken)

Shares a specified directory (DirectoryId) in your Amazon Web Services account (directory owner) with another Amazon Web Services account (directory consumer). With this operation you can use your directory from any Amazon Web Services account and from any Amazon VPC within an Amazon Web Services Region.

When you share your Managed Microsoft AD directory, Directory Service creates a shared directory in the directory consumer account. This shared directory contains the metadata to provide access to the directory within the directory owner account. The shared directory is visible in all VPCs in the directory consumer account.

The ShareMethod parameter determines whether the specified directory can be shared between Amazon Web Services accounts inside the same Amazon Web Services organization (ORGANIZATIONS). It also determines whether you can share the directory with any other Amazon Web Services account either inside or outside of the organization (HANDSHAKE).

The ShareNotes parameter is only used when HANDSHAKE is called, which sends a directory sharing request to the directory consumer.

Public Method StartSchemaExtension(StartSchemaExtensionRequest)

Applies a schema extension to a Microsoft AD directory.

Public Method StartSchemaExtensionAsync(StartSchemaExtensionRequest, CancellationToken)

Applies a schema extension to a Microsoft AD directory.

Public Method UnshareDirectory(UnshareDirectoryRequest)

Stops the directory sharing between the directory owner and consumer accounts.

Public Method UnshareDirectoryAsync(UnshareDirectoryRequest, CancellationToken)

Stops the directory sharing between the directory owner and consumer accounts.

Public Method UpdateConditionalForwarder(UpdateConditionalForwarderRequest)

Updates a conditional forwarder that has been set up for your Amazon Web Services directory.

Public Method UpdateConditionalForwarderAsync(UpdateConditionalForwarderRequest, CancellationToken)

Updates a conditional forwarder that has been set up for your Amazon Web Services directory.

Public Method UpdateDirectorySetup(UpdateDirectorySetupRequest)

Updates the directory for a particular update type.

Public Method UpdateDirectorySetupAsync(UpdateDirectorySetupRequest, CancellationToken)

Updates the directory for a particular update type.

Public Method UpdateNumberOfDomainControllers(UpdateNumberOfDomainControllersRequest)

Adds or removes domain controllers to or from the directory. Based on the difference between current value and new value (provided through this API call), domain controllers will be added or removed. It may take up to 45 minutes for any new domain controllers to become fully active once the requested number of domain controllers is updated. During this time, you cannot make another update request.

Public Method UpdateNumberOfDomainControllersAsync(UpdateNumberOfDomainControllersRequest, CancellationToken)

Adds or removes domain controllers to or from the directory. Based on the difference between current value and new value (provided through this API call), domain controllers will be added or removed. It may take up to 45 minutes for any new domain controllers to become fully active once the requested number of domain controllers is updated. During this time, you cannot make another update request.

Public Method UpdateRadius(UpdateRadiusRequest)

Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector or Microsoft AD directory.

Public Method UpdateRadiusAsync(UpdateRadiusRequest, CancellationToken)

Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector or Microsoft AD directory.

Public Method UpdateSettings(UpdateSettingsRequest)

Updates the configurable settings for the specified directory.

Public Method UpdateSettingsAsync(UpdateSettingsRequest, CancellationToken)

Updates the configurable settings for the specified directory.

Public Method UpdateTrust(UpdateTrustRequest)

Updates the trust that has been set up between your Managed Microsoft AD directory and an self-managed Active Directory.

Public Method UpdateTrustAsync(UpdateTrustRequest, CancellationToken)

Updates the trust that has been set up between your Managed Microsoft AD directory and an self-managed Active Directory.

Public Method VerifyTrust(VerifyTrustRequest)

Directory Service for Microsoft Active Directory allows you to configure and verify trust relationships.

This action verifies a trust relationship between your Managed Microsoft AD directory and an external domain.

Public Method VerifyTrustAsync(VerifyTrustRequest, CancellationToken)

Directory Service for Microsoft Active Directory allows you to configure and verify trust relationships.

This action verifies a trust relationship between your Managed Microsoft AD directory and an external domain.

Events

NameDescription
Event AfterResponseEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event BeforeRequestEvent Inherited from Amazon.Runtime.AmazonServiceClient.
Event ExceptionEvent Inherited from Amazon.Runtime.AmazonServiceClient.

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5