We announced the upcoming end-of-support for AWS SDK for JavaScript v2.
We recommend that you migrate to AWS SDK for JavaScript v3. For dates, additional details, and information on how to migrate, please refer to the linked announcement.

Class: AWS.DirectoryService

Inherits:
AWS.Service show all
Identifier:
directoryservice
API Version:
2015-04-16
Defined in:
(unknown)

Overview

Constructs a service interface object. Each API operation is exposed as a function on service.

Service Description

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.

Note: 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.

Sending a Request Using DirectoryService

var directoryservice = new AWS.DirectoryService();
directoryservice.acceptSharedDirectory(params, function (err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Locking the API Version

In order to ensure that the DirectoryService object uses this specific API, you can construct the object by passing the apiVersion option to the constructor:

var directoryservice = new AWS.DirectoryService({apiVersion: '2015-04-16'});

You can also set the API version globally in AWS.config.apiVersions using the directoryservice service identifier:

AWS.config.apiVersions = {
  directoryservice: '2015-04-16',
  // other service API versions
};

var directoryservice = new AWS.DirectoryService();

Version:

  • 2015-04-16

Constructor Summary collapse

Property Summary collapse

Properties inherited from AWS.Service

apiVersions

Method Summary collapse

Methods inherited from AWS.Service

makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService

Constructor Details

new AWS.DirectoryService(options = {}) ⇒ Object

Constructs a service object. This object has one method for each API operation.

Examples:

Constructing a DirectoryService object

var directoryservice = new AWS.DirectoryService({apiVersion: '2015-04-16'});

Options Hash (options):

  • params (map)

    An optional map of parameters to bind to every request sent by this service object. For more information on bound parameters, see "Working with Services" in the Getting Started Guide.

  • endpoint (String|AWS.Endpoint)

    The endpoint URI to send requests to. The default endpoint is built from the configured region. The endpoint should be a string like 'https://{service}.{region}.amazonaws.com' or an Endpoint object.

  • accessKeyId (String)

    your AWS access key ID.

  • secretAccessKey (String)

    your AWS secret access key.

  • sessionToken (AWS.Credentials)

    the optional AWS session token to sign requests with.

  • credentials (AWS.Credentials)

    the AWS credentials to sign requests with. You can either specify this object, or specify the accessKeyId and secretAccessKey options directly.

  • credentialProvider (AWS.CredentialProviderChain)

    the provider chain used to resolve credentials if no static credentials property is set.

  • region (String)

    the region to send service requests to. See AWS.DirectoryService.region for more information.

  • maxRetries (Integer)

    the maximum amount of retries to attempt with a request. See AWS.DirectoryService.maxRetries for more information.

  • maxRedirects (Integer)

    the maximum amount of redirects to follow with a request. See AWS.DirectoryService.maxRedirects for more information.

  • sslEnabled (Boolean)

    whether to enable SSL for requests.

  • paramValidation (Boolean|map)

    whether input parameters should be validated against the operation description before sending the request. Defaults to true. Pass a map to enable any of the following specific validation features:

    • min [Boolean] — Validates that a value meets the min constraint. This is enabled by default when paramValidation is set to true.
    • max [Boolean] — Validates that a value meets the max constraint.
    • pattern [Boolean] — Validates that a string value matches a regular expression.
    • enum [Boolean] — Validates that a string value matches one of the allowable enum values.
  • computeChecksums (Boolean)

    whether to compute checksums for payload bodies when the service accepts it (currently supported in S3 only)

  • convertResponseTypes (Boolean)

    whether types are converted when parsing response data. Currently only supported for JSON based services. Turning this off may improve performance on large response payloads. Defaults to true.

  • correctClockSkew (Boolean)

    whether to apply a clock skew correction and retry requests that fail because of an skewed client clock. Defaults to false.

  • s3ForcePathStyle (Boolean)

    whether to force path style URLs for S3 objects.

  • s3BucketEndpoint (Boolean)

    whether the provided endpoint addresses an individual bucket (false if it addresses the root API endpoint). Note that setting this configuration option requires an endpoint to be provided explicitly to the service constructor.

  • s3DisableBodySigning (Boolean)

    whether S3 body signing should be disabled when using signature version v4. Body signing can only be disabled when using https. Defaults to true.

  • s3UsEast1RegionalEndpoint ('legacy'|'regional')

    when region is set to 'us-east-1', whether to send s3 request to global endpoints or 'us-east-1' regional endpoints. This config is only applicable to S3 client. Defaults to legacy

  • s3UseArnRegion (Boolean)

    whether to override the request region with the region inferred from requested resource's ARN. Only available for S3 buckets Defaults to true

  • retryDelayOptions (map)

    A set of options to configure the retry delay on retryable errors. Currently supported options are:

    • base [Integer] — The base number of milliseconds to use in the exponential backoff for operation retries. Defaults to 100 ms for all services except DynamoDB, where it defaults to 50ms.
    • customBackoff [function] — A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. If the result is a non-zero negative value, no further retry attempts will be made. The base option will be ignored if this option is supplied. The function is only called for retryable errors.
  • httpOptions (map)

    A set of options to pass to the low-level HTTP request. Currently supported options are:

    • proxy [String] — the URL to proxy requests through
    • agent [http.Agent, https.Agent] — the Agent object to perform HTTP requests with. Used for connection pooling. Defaults to the global agent (http.globalAgent) for non-SSL connections. Note that for SSL connections, a special Agent object is used in order to enable peer certificate verification. This feature is only available in the Node.js environment.
    • connectTimeout [Integer] — Sets the socket to timeout after failing to establish a connection with the server after connectTimeout milliseconds. This timeout has no effect once a socket connection has been established.
    • timeout [Integer] — Sets the socket to timeout after timeout milliseconds of inactivity on the socket. Defaults to two minutes (120000).
    • xhrAsync [Boolean] — Whether the SDK will send asynchronous HTTP requests. Used in the browser environment only. Set to false to send requests synchronously. Defaults to true (async on).
    • xhrWithCredentials [Boolean] — Sets the "withCredentials" property of an XMLHttpRequest object. Used in the browser environment only. Defaults to false.
  • apiVersion (String, Date)

    a String in YYYY-MM-DD format (or a date) that represents the latest possible API version that can be used in all services (unless overridden by apiVersions). Specify 'latest' to use the latest possible version.

  • apiVersions (map<String, String|Date>)

    a map of service identifiers (the lowercase service class name) with the API version to use when instantiating a service. Specify 'latest' for each individual that can use the latest available version.

  • logger (#write, #log)

    an object that responds to .write() (like a stream) or .log() (like the console object) in order to log information about requests

  • systemClockOffset (Number)

    an offset value in milliseconds to apply to all signing times. Use this to compensate for clock skew when your system may be out of sync with the service time. Note that this configuration option can only be applied to the global AWS.config object and cannot be overridden in service-specific configuration. Defaults to 0 milliseconds.

  • signatureVersion (String)

    the signature version to sign requests with (overriding the API configuration). Possible values are: 'v2', 'v3', 'v4'.

  • signatureCache (Boolean)

    whether the signature to sign requests with (overriding the API configuration) is cached. Only applies to the signature version 'v4'. Defaults to true.

  • dynamoDbCrc32 (Boolean)

    whether to validate the CRC32 checksum of HTTP response bodies returned by DynamoDB. Default: true.

  • useAccelerateEndpoint (Boolean)

    Whether to use the S3 Transfer Acceleration endpoint with the S3 service. Default: false.

  • clientSideMonitoring (Boolean)

    whether to collect and publish this client's performance metrics of all its API requests.

  • endpointDiscoveryEnabled (Boolean|undefined)

    whether to call operations with endpoints given by service dynamically. Setting this

  • endpointCacheSize (Number)

    the size of the global cache storing endpoints from endpoint discovery operations. Once endpoint cache is created, updating this setting cannot change existing cache size. Defaults to 1000

  • hostPrefixEnabled (Boolean)

    whether to marshal request parameters to the prefix of hostname. Defaults to true.

  • stsRegionalEndpoints ('legacy'|'regional')

    whether to send sts request to global endpoints or regional endpoints. Defaults to 'legacy'.

  • useFipsEndpoint (Boolean)

    Enables FIPS compatible endpoints. Defaults to false.

  • useDualstackEndpoint (Boolean)

    Enables IPv6 dualstack endpoint. Defaults to false.

Property Details

endpointAWS.Endpoint (readwrite)

Returns an Endpoint object representing the endpoint URL for service requests.

Returns:

  • (AWS.Endpoint)

    an Endpoint object representing the endpoint URL for service requests.

Method Details

acceptSharedDirectory(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the acceptSharedDirectory operation

var params = {
  SharedDirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.acceptSharedDirectory(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SharedDirectoryId — (String)

      Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SharedDirectory — (map)

        The shared directory in the directory consumer account.

        • OwnerAccountId — (String)

          Identifier of the directory owner account, which contains the directory that has been shared to the consumer account.

        • OwnerDirectoryId — (String)

          Identifier of the directory in the directory owner account.

        • ShareMethod — (String)

          The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (ORGANIZATIONS) or with any Amazon Web Services account by sending a shared directory request (HANDSHAKE).

          Possible values include:
          • "ORGANIZATIONS"
          • "HANDSHAKE"
        • SharedAccountId — (String)

          Identifier of the directory consumer account that has access to the shared directory (OwnerDirectoryId) in the directory owner account.

        • SharedDirectoryId — (String)

          Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.

        • ShareStatus — (String)

          Current directory status of the shared Managed Microsoft AD directory.

          Possible values include:
          • "Shared"
          • "PendingAcceptance"
          • "Rejected"
          • "Rejecting"
          • "RejectFailed"
          • "Sharing"
          • "ShareFailed"
          • "Deleted"
          • "Deleting"
        • ShareNotes — (String)

          A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.

        • CreatedDateTime — (Date)

          The date and time that the shared directory was created.

        • LastUpdatedDateTime — (Date)

          The date and time that the shared directory was last updated.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

addIpRoutes(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the addIpRoutes operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  IpRoutes: [ /* required */
    {
      CidrIp: 'STRING_VALUE',
      Description: 'STRING_VALUE'
    },
    /* more items */
  ],
  UpdateSecurityGroupForDirectoryControllers: true || false
};
directoryservice.addIpRoutes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      Identifier (ID) of the directory to which to add the address block.

    • IpRoutes — (Array<map>)

      IP address blocks, using CIDR format, of the traffic to route. This is often the IP address block of the DNS server used for your self-managed domain.

      • CidrIp — (String)

        IP address block using CIDR format, for example 10.0.0.0/24. This is often the address block of the DNS server used for your self-managed domain. For a single IP address use a CIDR address block with /32. For example 10.0.0.0/32.

      • Description — (String)

        Description of the address block.

    • UpdateSecurityGroupForDirectoryControllers — (Boolean)

      If set to true, updates the inbound and outbound rules of the security group that has the description: "Amazon Web Services created security group for directory ID directory controllers." Following are the new rules:

      Inbound:

      • Type: Custom UDP Rule, Protocol: UDP, Range: 88, Source: 0.0.0.0/0

      • Type: Custom UDP Rule, Protocol: UDP, Range: 123, Source: 0.0.0.0/0

      • Type: Custom UDP Rule, Protocol: UDP, Range: 138, Source: 0.0.0.0/0

      • Type: Custom UDP Rule, Protocol: UDP, Range: 389, Source: 0.0.0.0/0

      • Type: Custom UDP Rule, Protocol: UDP, Range: 464, Source: 0.0.0.0/0

      • Type: Custom UDP Rule, Protocol: UDP, Range: 445, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 88, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 135, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 445, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 464, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 636, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 1024-65535, Source: 0.0.0.0/0

      • Type: Custom TCP Rule, Protocol: TCP, Range: 3268-33269, Source: 0.0.0.0/0

      • Type: DNS (UDP), Protocol: UDP, Range: 53, Source: 0.0.0.0/0

      • Type: DNS (TCP), Protocol: TCP, Range: 53, Source: 0.0.0.0/0

      • Type: LDAP, Protocol: TCP, Range: 389, Source: 0.0.0.0/0

      • Type: All ICMP, Protocol: All, Range: N/A, Source: 0.0.0.0/0

      Outbound:

      • Type: All traffic, Protocol: All, Range: All, Destination: 0.0.0.0/0

      These security rules impact an internal network interface that is not exposed publicly.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

addRegion(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the addRegion operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  RegionName: 'STRING_VALUE', /* required */
  VPCSettings: { /* required */
    SubnetIds: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    VpcId: 'STRING_VALUE' /* required */
  }
};
directoryservice.addRegion(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory to which you want to add Region replication.

    • RegionName — (String)

      The name of the Region where you want to add domain controllers for replication. For example, us-east-1.

    • VPCSettings — (map)

      Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.

      • VpcIdrequired — (String)

        The identifier of the VPC in which to create the directory.

      • SubnetIdsrequired — (Array<String>)

        The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. Directory Service creates a directory server and a DNS server in each of these subnets.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

addTagsToResource(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the addTagsToResource operation

var params = {
  ResourceId: 'STRING_VALUE', /* required */
  Tags: [ /* required */
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
directoryservice.addTagsToResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceId — (String)

      Identifier (ID) for the directory to which to add the tag.

    • Tags — (Array<map>)

      The tags to be assigned to the directory.

      • Keyrequired — (String)

        Required name of the tag. The string value can be Unicode characters and cannot be prefixed with "aws:". The string can contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

      • Valuerequired — (String)

        The optional value of the tag. The string value can be Unicode characters. The string can contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

cancelSchemaExtension(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the cancelSchemaExtension operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  SchemaExtensionId: 'STRING_VALUE' /* required */
};
directoryservice.cancelSchemaExtension(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory whose schema extension will be canceled.

    • SchemaExtensionId — (String)

      The identifier of the schema extension that will be canceled.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

connectDirectory(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the connectDirectory operation

var params = {
  ConnectSettings: { /* required */
    CustomerDnsIps: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    CustomerUserName: 'STRING_VALUE', /* required */
    SubnetIds: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    VpcId: 'STRING_VALUE' /* required */
  },
  Name: 'STRING_VALUE', /* required */
  Password: 'STRING_VALUE', /* required */
  Size: Small | Large, /* required */
  Description: 'STRING_VALUE',
  ShortName: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
directoryservice.connectDirectory(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The fully qualified name of your self-managed directory, such as corp.example.com.

    • ShortName — (String)

      The NetBIOS name of your self-managed directory, such as CORP.

    • Password — (String)

      The password for your self-managed user account.

    • Description — (String)

      A description for the directory.

    • Size — (String)

      The size of the directory.

      Possible values include:
      • "Small"
      • "Large"
    • ConnectSettings — (map)

      A DirectoryConnectSettings object that contains additional information for the operation.

      • VpcIdrequired — (String)

        The identifier of the VPC in which the AD Connector is created.

      • SubnetIdsrequired — (Array<String>)

        A list of subnet identifiers in the VPC in which the AD Connector is created.

      • CustomerDnsIpsrequired — (Array<String>)

        A list of one or more IP addresses of DNS servers or domain controllers in your self-managed directory.

      • CustomerUserNamerequired — (String)

        The user name of an account in your self-managed directory that is used to connect to the directory. This account must have the following permissions:

        • Read users and groups

        • Create computer objects

        • Join computers to the domain

    • Tags — (Array<map>)

      The tags to be assigned to AD Connector.

      • Keyrequired — (String)

        Required name of the tag. The string value can be Unicode characters and cannot be prefixed with "aws:". The string can contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

      • Valuerequired — (String)

        The optional value of the tag. The string value can be Unicode characters. The string can contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DirectoryId — (String)

        The identifier of the new directory.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createAlias(params = {}, callback) ⇒ AWS.Request

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://<alias>.awsapps.com.

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

Service Reference:

Examples:

Calling the createAlias operation

var params = {
  Alias: 'STRING_VALUE', /* required */
  DirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.createAlias(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which to create the alias.

    • Alias — (String)

      The requested alias.

      The alias must be unique amongst all aliases in Amazon Web Services. This operation throws an EntityAlreadyExistsException error if the alias already exists.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DirectoryId — (String)

        The identifier of the directory.

      • Alias — (String)

        The alias for the directory.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createComputer(params = {}, callback) ⇒ AWS.Request

Creates an Active Directory computer object in the specified directory.

Service Reference:

Examples:

Calling the createComputer operation

var params = {
  ComputerName: 'STRING_VALUE', /* required */
  DirectoryId: 'STRING_VALUE', /* required */
  Password: 'STRING_VALUE', /* required */
  ComputerAttributes: [
    {
      Name: 'STRING_VALUE',
      Value: 'STRING_VALUE'
    },
    /* more items */
  ],
  OrganizationalUnitDistinguishedName: 'STRING_VALUE'
};
directoryservice.createComputer(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory in which to create the computer account.

    • ComputerName — (String)

      The name of the computer account.

    • Password — (String)

      A one-time password that is used to join the computer to the directory. You should generate a random, strong password to use for this parameter.

    • OrganizationalUnitDistinguishedName — (String)

      The fully-qualified distinguished name of the organizational unit to place the computer account in.

    • ComputerAttributes — (Array<map>)

      An array of Attribute objects that contain any LDAP attributes to apply to the computer account.

      • Name — (String)

        The name of the attribute.

      • Value — (String)

        The value of the attribute.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Computer — (map)

        A Computer object that represents the computer account.

        • ComputerId — (String)

          The identifier of the computer.

        • ComputerName — (String)

          The computer name.

        • ComputerAttributes — (Array<map>)

          An array of Attribute objects containing the LDAP attributes that belong to the computer account.

          • Name — (String)

            The name of the attribute.

          • Value — (String)

            The value of the attribute.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createConditionalForwarder(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the createConditionalForwarder operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  DnsIpAddrs: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  RemoteDomainName: 'STRING_VALUE' /* required */
};
directoryservice.createConditionalForwarder(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The directory ID of the Amazon Web Services directory for which you are creating the conditional forwarder.

    • RemoteDomainName — (String)

      The fully qualified domain name (FQDN) of the remote domain with which you will set up a trust relationship.

    • DnsIpAddrs — (Array<String>)

      The IP addresses of the remote DNS server associated with RemoteDomainName.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createDirectory(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the createDirectory operation

var params = {
  Name: 'STRING_VALUE', /* required */
  Password: 'STRING_VALUE', /* required */
  Size: Small | Large, /* required */
  Description: 'STRING_VALUE',
  ShortName: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ],
  VpcSettings: {
    SubnetIds: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    VpcId: 'STRING_VALUE' /* required */
  }
};
directoryservice.createDirectory(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The fully qualified name for the directory, such as corp.example.com.

    • ShortName — (String)

      The NetBIOS name of the directory, such as CORP.

    • Password — (String)

      The password for the directory administrator. The directory creation process creates a directory administrator account with the user name Administrator and this password.

      If you need to change the password for the administrator account, you can use the ResetUserPassword API call.

      The regex pattern for this string is made up of the following conditions:

      • Length (?=^.{8,64}$) – Must be between 8 and 64 characters

      AND any 3 of the following password complexity rules required by Active Directory:

      • Numbers and upper case and lowercase (?=.\d)(?=.[A-Z])(?=.[a-z])

      • Numbers and special characters and lower case (?=.\d)(?=.[^A-Za-z0-9\s])(?=.[a-z])

      • Special characters and upper case and lower case (?=.[^A-Za-z0-9\s])(?=.[A-Z])(?=.[a-z])

      • Numbers and upper case and special characters (?=.\d)(?=.[A-Z])(?=.[^A-Za-z0-9\s])

      For additional information about how Active Directory passwords are enforced, see Password must meet complexity requirements on the Microsoft website.

    • Description — (String)

      A description for the directory.

    • Size — (String)

      The size of the directory.

      Possible values include:
      • "Small"
      • "Large"
    • VpcSettings — (map)

      A DirectoryVpcSettings object that contains additional information for the operation.

      • VpcIdrequired — (String)

        The identifier of the VPC in which to create the directory.

      • SubnetIdsrequired — (Array<String>)

        The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. Directory Service creates a directory server and a DNS server in each of these subnets.

    • Tags — (Array<map>)

      The tags to be assigned to the Simple AD directory.

      • Keyrequired — (String)

        Required name of the tag. The string value can be Unicode characters and cannot be prefixed with "aws:". The string can contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

      • Valuerequired — (String)

        The optional value of the tag. The string value can be Unicode characters. The string can contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DirectoryId — (String)

        The identifier of the directory that was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createLogSubscription(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the createLogSubscription operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  LogGroupName: 'STRING_VALUE' /* required */
};
directoryservice.createLogSubscription(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      Identifier of the directory to which you want to subscribe and receive real-time logs to your specified CloudWatch log group.

    • LogGroupName — (String)

      The name of the CloudWatch log group where the real-time domain controller logs are forwarded.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createMicrosoftAD(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the createMicrosoftAD operation

var params = {
  Name: 'STRING_VALUE', /* required */
  Password: 'STRING_VALUE', /* required */
  VpcSettings: { /* required */
    SubnetIds: [ /* required */
      'STRING_VALUE',
      /* more items */
    ],
    VpcId: 'STRING_VALUE' /* required */
  },
  Description: 'STRING_VALUE',
  Edition: Enterprise | Standard,
  ShortName: 'STRING_VALUE',
  Tags: [
    {
      Key: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
directoryservice.createMicrosoftAD(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • Name — (String)

      The fully qualified domain name for the Managed Microsoft AD directory, such as corp.example.com. This name will resolve inside your VPC only. It does not need to be publicly resolvable.

    • ShortName — (String)

      The NetBIOS name for your domain, such as CORP. If you don't specify a NetBIOS name, it will default to the first part of your directory DNS. For example, CORP for the directory DNS corp.example.com.

    • Password — (String)

      The password for the default administrative user named Admin.

      If you need to change the password for the administrator account, you can use the ResetUserPassword API call.

    • Description — (String)

      A description for the directory. This label will appear on the Amazon Web Services console Directory Details page after the directory is created.

    • VpcSettings — (map)

      Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.

      • VpcIdrequired — (String)

        The identifier of the VPC in which to create the directory.

      • SubnetIdsrequired — (Array<String>)

        The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. Directory Service creates a directory server and a DNS server in each of these subnets.

    • Edition — (String)

      Managed Microsoft AD is available in two editions: Standard and Enterprise. Enterprise is the default.

      Possible values include:
      • "Enterprise"
      • "Standard"
    • Tags — (Array<map>)

      The tags to be assigned to the Managed Microsoft AD directory.

      • Keyrequired — (String)

        Required name of the tag. The string value can be Unicode characters and cannot be prefixed with "aws:". The string can contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

      • Valuerequired — (String)

        The optional value of the tag. The string value can be Unicode characters. The string can contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DirectoryId — (String)

        The identifier of the directory that was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createSnapshot(params = {}, callback) ⇒ AWS.Request

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

Note: You cannot take snapshots of AD Connector directories.

Service Reference:

Examples:

Calling the createSnapshot operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Name: 'STRING_VALUE'
};
directoryservice.createSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory of which to take a snapshot.

    • Name — (String)

      The descriptive name to apply to the snapshot.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SnapshotId — (String)

        The identifier of the snapshot that was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

createTrust(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the createTrust operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  RemoteDomainName: 'STRING_VALUE', /* required */
  TrustDirection: One-Way: Outgoing | One-Way: Incoming | Two-Way, /* required */
  TrustPassword: 'STRING_VALUE', /* required */
  ConditionalForwarderIpAddrs: [
    'STRING_VALUE',
    /* more items */
  ],
  SelectiveAuth: Enabled | Disabled,
  TrustType: Forest | External
};
directoryservice.createTrust(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The Directory ID of the Managed Microsoft AD directory for which to establish the trust relationship.

    • RemoteDomainName — (String)

      The Fully Qualified Domain Name (FQDN) of the external domain for which to create the trust relationship.

    • TrustPassword — (String)

      The trust password. The must be the same password that was used when creating the trust relationship on the external domain.

    • TrustDirection — (String)

      The direction of the trust relationship.

      Possible values include:
      • "One-Way: Outgoing"
      • "One-Way: Incoming"
      • "Two-Way"
    • TrustType — (String)

      The trust relationship type. Forest is the default.

      Possible values include:
      • "Forest"
      • "External"
    • ConditionalForwarderIpAddrs — (Array<String>)

      The IP addresses of the remote DNS server associated with RemoteDomainName.

    • SelectiveAuth — (String)

      Optional parameter to enable selective authentication for the trust.

      Possible values include:
      • "Enabled"
      • "Disabled"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TrustId — (String)

        A unique identifier for the trust relationship that was created.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteConditionalForwarder(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the deleteConditionalForwarder operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  RemoteDomainName: 'STRING_VALUE' /* required */
};
directoryservice.deleteConditionalForwarder(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The directory ID for which you are deleting the conditional forwarder.

    • RemoteDomainName — (String)

      The fully qualified domain name (FQDN) of the remote domain with which you are deleting the conditional forwarder.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteDirectory(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the deleteDirectory operation

var params = {
  DirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.deleteDirectory(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DirectoryId — (String)

        The directory identifier.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteLogSubscription(params = {}, callback) ⇒ AWS.Request

Deletes the specified log subscription.

Service Reference:

Examples:

Calling the deleteLogSubscription operation

var params = {
  DirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.deleteLogSubscription(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      Identifier of the directory whose log subscription you want to delete.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteSnapshot(params = {}, callback) ⇒ AWS.Request

Deletes a directory snapshot.

Service Reference:

Examples:

Calling the deleteSnapshot operation

var params = {
  SnapshotId: 'STRING_VALUE' /* required */
};
directoryservice.deleteSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SnapshotId — (String)

      The identifier of the directory snapshot to be deleted.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SnapshotId — (String)

        The identifier of the directory snapshot that was deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deleteTrust(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the deleteTrust operation

var params = {
  TrustId: 'STRING_VALUE', /* required */
  DeleteAssociatedConditionalForwarder: true || false
};
directoryservice.deleteTrust(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TrustId — (String)

      The Trust ID of the trust relationship to be deleted.

    • DeleteAssociatedConditionalForwarder — (Boolean)

      Delete a conditional forwarder as part of a DeleteTrustRequest.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TrustId — (String)

        The Trust ID of the trust relationship that was deleted.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deregisterCertificate(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the deregisterCertificate operation

var params = {
  CertificateId: 'STRING_VALUE', /* required */
  DirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.deregisterCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory.

    • CertificateId — (String)

      The identifier of the certificate.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

deregisterEventTopic(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the deregisterEventTopic operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  TopicName: 'STRING_VALUE' /* required */
};
directoryservice.deregisterEventTopic(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The Directory ID to remove as a publisher. This directory will no longer send messages to the specified Amazon SNS topic.

    • TopicName — (String)

      The name of the Amazon SNS topic from which to remove the directory as a publisher.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeCertificate(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the describeCertificate operation

var params = {
  CertificateId: 'STRING_VALUE', /* required */
  DirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.describeCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory.

    • CertificateId — (String)

      The identifier of the certificate.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Certificate — (map)

        Information about the certificate, including registered date time, certificate state, the reason for the state, expiration date time, and certificate common name.

        • CertificateId — (String)

          The identifier of the certificate.

        • State — (String)

          The state of the certificate.

          Possible values include:
          • "Registering"
          • "Registered"
          • "RegisterFailed"
          • "Deregistering"
          • "Deregistered"
          • "DeregisterFailed"
        • StateReason — (String)

          Describes a state change for the certificate.

        • CommonName — (String)

          The common name for the certificate.

        • RegisteredDateTime — (Date)

          The date and time that the certificate was registered.

        • ExpiryDateTime — (Date)

          The date and time when the certificate will expire.

        • Type — (String)

          The function that the registered certificate performs. Valid values include ClientLDAPS or ClientCertAuth. The default value is ClientLDAPS.

          Possible values include:
          • "ClientCertAuth"
          • "ClientLDAPS"
        • ClientCertAuthSettings — (map)

          A ClientCertAuthSettings object that contains client certificate authentication settings.

          • OCSPUrl — (String)

            Specifies the URL of the default OCSP server used to check for revocation status. A secondary value to any OCSP address found in the AIA extension of the user certificate.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeClientAuthenticationSettings(params = {}, callback) ⇒ AWS.Request

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.

Examples:

Calling the describeClientAuthenticationSettings operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  Type: SmartCard | SmartCardOrPassword
};
directoryservice.describeClientAuthenticationSettings(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which to retrieve information.

    • Type — (String)

      The type of client authentication for which to retrieve information. If no type is specified, a list of all client authentication types that are supported for the specified directory is retrieved.

      Possible values include:
      • "SmartCard"
      • "SmartCardOrPassword"
    • NextToken — (String)

      The DescribeClientAuthenticationSettingsResult.NextToken value from a previous call to DescribeClientAuthenticationSettings. Pass null if this is the first call.

    • Limit — (Integer)

      The maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ClientAuthenticationSettingsInfo — (Array<map>)

        Information about the type of client authentication for the specified directory. The following information is retrieved: The date and time when the status of the client authentication type was last updated, whether the client authentication type is enabled or disabled, and the type of client authentication.

        • Type — (String)

          The type of client authentication for the specified directory. If no type is specified, a list of all client authentication types that are supported for the directory is retrieved.

          Possible values include:
          • "SmartCard"
          • "SmartCardOrPassword"
        • Status — (String)

          Whether the client authentication type is enabled or disabled for the specified directory.

          Possible values include:
          • "Enabled"
          • "Disabled"
        • LastUpdatedDateTime — (Date)

          The date and time when the status of the client authentication type was last updated.

      • NextToken — (String)

        The next token used to retrieve the client authentication settings if the number of setting types exceeds page limit and there is another page.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeConditionalForwarders(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the describeConditionalForwarders operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  RemoteDomainNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
directoryservice.describeConditionalForwarders(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The directory ID for which to get the list of associated conditional forwarders.

    • RemoteDomainNames — (Array<String>)

      The fully qualified domain names (FQDN) of the remote domains for which to get the list of associated conditional forwarders. If this member is null, all conditional forwarders are returned.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • ConditionalForwarders — (Array<map>)

        The list of conditional forwarders that have been created.

        • RemoteDomainName — (String)

          The fully qualified domain name (FQDN) of the remote domains pointed to by the conditional forwarder.

        • DnsIpAddrs — (Array<String>)

          The IP addresses of the remote DNS server associated with RemoteDomainName. This is the IP address of the DNS server that your conditional forwarder points to.

        • ReplicationScope — (String)

          The replication scope of the conditional forwarder. The only allowed value is Domain, which will replicate the conditional forwarder to all of the domain controllers for your Amazon Web Services directory.

          Possible values include:
          • "Domain"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeDirectories(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the describeDirectories operation

var params = {
  DirectoryIds: [
    'STRING_VALUE',
    /* more items */
  ],
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
directoryservice.describeDirectories(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryIds — (Array<String>)

      A list of identifiers of the directories for which to obtain the information. If this member is null, all directories that belong to the current account are returned.

      An empty list results in an InvalidParameterException being thrown.

    • NextToken — (String)

      The DescribeDirectoriesResult.NextToken value from a previous call to DescribeDirectories. Pass null if this is the first call.

    • Limit — (Integer)

      The maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DirectoryDescriptions — (Array<map>)

        The list of DirectoryDescription objects that were retrieved.

        It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

        • DirectoryId — (String)

          The directory identifier.

        • Name — (String)

          The fully qualified name of the directory.

        • ShortName — (String)

          The short name of the directory.

        • Size — (String)

          The directory size.

          Possible values include:
          • "Small"
          • "Large"
        • Edition — (String)

          The edition associated with this directory.

          Possible values include:
          • "Enterprise"
          • "Standard"
        • Alias — (String)

          The alias for the directory. If no alias has been created for the directory, the alias is the directory identifier, such as d-XXXXXXXXXX.

        • AccessUrl — (String)

          The access URL for the directory, such as http://&lt;alias&gt;.awsapps.com. If no alias has been created for the directory, <alias> is the directory identifier, such as d-XXXXXXXXXX.

        • Description — (String)

          The description for the directory.

        • DnsIpAddrs — (Array<String>)

          The IP addresses of the DNS servers for the directory. For a Simple AD or Microsoft AD directory, these are the IP addresses of the Simple AD or Microsoft AD directory servers. For an AD Connector directory, these are the IP addresses of the DNS servers or domain controllers in your self-managed directory to which the AD Connector is connected.

        • Stage — (String)

          The current stage of the directory.

          Possible values include:
          • "Requested"
          • "Creating"
          • "Created"
          • "Active"
          • "Inoperable"
          • "Impaired"
          • "Restoring"
          • "RestoreFailed"
          • "Deleting"
          • "Deleted"
          • "Failed"
        • ShareStatus — (String)

          Current directory status of the shared Managed Microsoft AD directory.

          Possible values include:
          • "Shared"
          • "PendingAcceptance"
          • "Rejected"
          • "Rejecting"
          • "RejectFailed"
          • "Sharing"
          • "ShareFailed"
          • "Deleted"
          • "Deleting"
        • ShareMethod — (String)

          The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (ORGANIZATIONS) or with any Amazon Web Services account by sending a shared directory request (HANDSHAKE).

          Possible values include:
          • "ORGANIZATIONS"
          • "HANDSHAKE"
        • ShareNotes — (String)

          A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.

        • LaunchTime — (Date)

          Specifies when the directory was created.

        • StageLastUpdatedDateTime — (Date)

          The date and time that the stage was last updated.

        • Type — (String)

          The directory size.

          Possible values include:
          • "SimpleAD"
          • "ADConnector"
          • "MicrosoftAD"
          • "SharedMicrosoftAD"
        • VpcSettings — (map)

          A DirectoryVpcSettingsDescription object that contains additional information about a directory. This member is only present if the directory is a Simple AD or Managed Microsoft AD directory.

          • VpcId — (String)

            The identifier of the VPC that the directory is in.

          • SubnetIds — (Array<String>)

            The identifiers of the subnets for the directory servers.

          • SecurityGroupId — (String)

            The domain controller security group identifier for the directory.

          • AvailabilityZones — (Array<String>)

            The list of Availability Zones that the directory is in.

        • ConnectSettings — (map)

          A DirectoryConnectSettingsDescription object that contains additional information about an AD Connector directory. This member is only present if the directory is an AD Connector directory.

          • VpcId — (String)

            The identifier of the VPC that the AD Connector is in.

          • SubnetIds — (Array<String>)

            A list of subnet identifiers in the VPC that the AD Connector is in.

          • CustomerUserName — (String)

            The user name of the service account in your self-managed directory.

          • SecurityGroupId — (String)

            The security group identifier for the AD Connector directory.

          • AvailabilityZones — (Array<String>)

            A list of the Availability Zones that the directory is in.

          • ConnectIps — (Array<String>)

            The IP addresses of the AD Connector servers.

        • RadiusSettings — (map)

          A RadiusSettings object that contains information about the RADIUS server configured for this directory.

          • RadiusServers — (Array<String>)

            An array of strings that contains the fully qualified domain name (FQDN) or IP addresses of the RADIUS server endpoints, or the FQDN or IP addresses of your RADIUS server load balancer.

          • RadiusPort — (Integer)

            The port that your RADIUS server is using for communications. Your self-managed network must allow inbound traffic over this port from the Directory Service servers.

          • RadiusTimeout — (Integer)

            The amount of time, in seconds, to wait for the RADIUS server to respond.

          • RadiusRetries — (Integer)

            The maximum number of times that communication with the RADIUS server is attempted.

          • SharedSecret — (String)

            Required for enabling RADIUS on the directory.

          • AuthenticationProtocol — (String)

            The protocol specified for your RADIUS endpoints.

            Possible values include:
            • "PAP"
            • "CHAP"
            • "MS-CHAPv1"
            • "MS-CHAPv2"
          • DisplayLabel — (String)

            Not currently used.

          • UseSameUsername — (Boolean)

            Not currently used.

        • RadiusStatus — (String)

          The status of the RADIUS MFA server connection.

          Possible values include:
          • "Creating"
          • "Completed"
          • "Failed"
        • StageReason — (String)

          Additional information about the directory stage.

        • SsoEnabled — (Boolean)

          Indicates if single sign-on is enabled for the directory. For more information, see EnableSso and DisableSso.

        • DesiredNumberOfDomainControllers — (Integer)

          The desired number of domain controllers in the directory if the directory is Microsoft AD.

        • OwnerDirectoryDescription — (map)

          Describes the Managed Microsoft AD directory in the directory owner account.

          • DirectoryId — (String)

            Identifier of the Managed Microsoft AD directory in the directory owner account.

          • AccountId — (String)

            Identifier of the directory owner account.

          • DnsIpAddrs — (Array<String>)

            IP address of the directory’s domain controllers.

          • VpcSettings — (map)

            Information about the VPC settings for the directory.

            • VpcId — (String)

              The identifier of the VPC that the directory is in.

            • SubnetIds — (Array<String>)

              The identifiers of the subnets for the directory servers.

            • SecurityGroupId — (String)

              The domain controller security group identifier for the directory.

            • AvailabilityZones — (Array<String>)

              The list of Availability Zones that the directory is in.

          • RadiusSettings — (map)

            A RadiusSettings object that contains information about the RADIUS server.

            • RadiusServers — (Array<String>)

              An array of strings that contains the fully qualified domain name (FQDN) or IP addresses of the RADIUS server endpoints, or the FQDN or IP addresses of your RADIUS server load balancer.

            • RadiusPort — (Integer)

              The port that your RADIUS server is using for communications. Your self-managed network must allow inbound traffic over this port from the Directory Service servers.

            • RadiusTimeout — (Integer)

              The amount of time, in seconds, to wait for the RADIUS server to respond.

            • RadiusRetries — (Integer)

              The maximum number of times that communication with the RADIUS server is attempted.

            • SharedSecret — (String)

              Required for enabling RADIUS on the directory.

            • AuthenticationProtocol — (String)

              The protocol specified for your RADIUS endpoints.

              Possible values include:
              • "PAP"
              • "CHAP"
              • "MS-CHAPv1"
              • "MS-CHAPv2"
            • DisplayLabel — (String)

              Not currently used.

            • UseSameUsername — (Boolean)

              Not currently used.

          • RadiusStatus — (String)

            Information about the status of the RADIUS server.

            Possible values include:
            • "Creating"
            • "Completed"
            • "Failed"
        • RegionsInfo — (map)

          Lists the Regions where the directory has replicated.

          • PrimaryRegion — (String)

            The Region where the Managed Microsoft AD directory was originally created.

          • AdditionalRegions — (Array<String>)

            Lists the Regions where the directory has been replicated, excluding the primary Region.

        • OsVersion — (String)

          The operating system (OS) version of the directory.

          Possible values include:
          • "SERVER_2012"
          • "SERVER_2019"
      • NextToken — (String)

        If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDirectories to retrieve the next set of items.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeDomainControllers(params = {}, callback) ⇒ AWS.Request

Provides information about any domain controllers in your directory.

Service Reference:

Examples:

Calling the describeDomainControllers operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  DomainControllerIds: [
    'STRING_VALUE',
    /* more items */
  ],
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
directoryservice.describeDomainControllers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      Identifier of the directory for which to retrieve the domain controller information.

    • DomainControllerIds — (Array<String>)

      A list of identifiers for the domain controllers whose information will be provided.

    • NextToken — (String)

      The DescribeDomainControllers.NextToken value from a previous call to DescribeDomainControllers. Pass null if this is the first call.

    • Limit — (Integer)

      The maximum number of items to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DomainControllers — (Array<map>)

        List of the DomainController objects that were retrieved.

        • DirectoryId — (String)

          Identifier of the directory where the domain controller resides.

        • DomainControllerId — (String)

          Identifies a specific domain controller in the directory.

        • DnsIpAddr — (String)

          The IP address of the domain controller.

        • VpcId — (String)

          The identifier of the VPC that contains the domain controller.

        • SubnetId — (String)

          Identifier of the subnet in the VPC that contains the domain controller.

        • AvailabilityZone — (String)

          The Availability Zone where the domain controller is located.

        • Status — (String)

          The status of the domain controller.

          Possible values include:
          • "Creating"
          • "Active"
          • "Impaired"
          • "Restoring"
          • "Deleting"
          • "Deleted"
          • "Failed"
        • StatusReason — (String)

          A description of the domain controller state.

        • LaunchTime — (Date)

          Specifies when the domain controller was created.

        • StatusLastUpdatedDateTime — (Date)

          The date and time that the status was last updated.

      • NextToken — (String)

        If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeDomainControllers retrieve the next set of items.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeEventTopics(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the describeEventTopics operation

var params = {
  DirectoryId: 'STRING_VALUE',
  TopicNames: [
    'STRING_VALUE',
    /* more items */
  ]
};
directoryservice.describeEventTopics(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The Directory ID for which to get the list of associated Amazon SNS topics. If this member is null, associations for all Directory IDs are returned.

    • TopicNames — (Array<String>)

      A list of Amazon SNS topic names for which to obtain the information. If this member is null, all associations for the specified Directory ID are returned.

      An empty list results in an InvalidParameterException being thrown.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • EventTopics — (Array<map>)

        A list of Amazon SNS topic names that receive status messages from the specified Directory ID.

        • DirectoryId — (String)

          The Directory ID of an Directory Service directory that will publish status messages to an Amazon SNS topic.

        • TopicName — (String)

          The name of an Amazon SNS topic the receives status messages from the directory.

        • TopicArn — (String)

          The Amazon SNS topic ARN (Amazon Resource Name).

        • CreatedDateTime — (Date)

          The date and time of when you associated your directory with the Amazon SNS topic.

        • Status — (String)

          The topic registration status.

          Possible values include:
          • "Registered"
          • "Topic not found"
          • "Failed"
          • "Deleted"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeLDAPSSettings(params = {}, callback) ⇒ AWS.Request

Describes the status of LDAP security for the specified directory.

Service Reference:

Examples:

Calling the describeLDAPSSettings operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  Type: Client
};
directoryservice.describeLDAPSSettings(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory.

    • Type — (String)

      The type of LDAP security to enable. Currently only the value Client is supported.

      Possible values include:
      • "Client"
    • NextToken — (String)

      The type of next token used for pagination.

    • Limit — (Integer)

      Specifies the number of items that should be displayed on one page.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LDAPSSettingsInfo — (Array<map>)

        Information about LDAP security for the specified directory, including status of enablement, state last updated date time, and the reason for the state.

        • LDAPSStatus — (String)

          The state of the LDAPS settings.

          Possible values include:
          • "Enabling"
          • "Enabled"
          • "EnableFailed"
          • "Disabled"
        • LDAPSStatusReason — (String)

          Describes a state change for LDAPS.

        • LastUpdatedDateTime — (Date)

          The date and time when the LDAPS settings were last updated.

      • NextToken — (String)

        The next token used to retrieve the LDAPS settings if the number of setting types exceeds page limit and there is another page.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeRegions(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the describeRegions operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  NextToken: 'STRING_VALUE',
  RegionName: 'STRING_VALUE'
};
directoryservice.describeRegions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory.

    • RegionName — (String)

      The name of the Region. For example, us-east-1.

    • NextToken — (String)

      The DescribeRegionsResult.NextToken value from a previous call to DescribeRegions. Pass null if this is the first call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RegionsDescription — (Array<map>)

        List of Region information related to the directory for each replicated Region.

        • DirectoryId — (String)

          The identifier of the directory.

        • RegionName — (String)

          The name of the Region. For example, us-east-1.

        • RegionType — (String)

          Specifies whether the Region is the primary Region or an additional Region.

          Possible values include:
          • "Primary"
          • "Additional"
        • Status — (String)

          The status of the replication process for the specified Region.

          Possible values include:
          • "Requested"
          • "Creating"
          • "Created"
          • "Active"
          • "Inoperable"
          • "Impaired"
          • "Restoring"
          • "RestoreFailed"
          • "Deleting"
          • "Deleted"
          • "Failed"
        • VpcSettings — (map)

          Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.

          • VpcIdrequired — (String)

            The identifier of the VPC in which to create the directory.

          • SubnetIdsrequired — (Array<String>)

            The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. Directory Service creates a directory server and a DNS server in each of these subnets.

        • DesiredNumberOfDomainControllers — (Integer)

          The desired number of domain controllers in the specified Region for the specified directory.

        • LaunchTime — (Date)

          Specifies when the Region replication began.

        • StatusLastUpdatedDateTime — (Date)

          The date and time that the Region status was last updated.

        • LastUpdatedDateTime — (Date)

          The date and time that the Region description was last updated.

      • NextToken — (String)

        If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeRegions to retrieve the next set of items.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeSettings(params = {}, callback) ⇒ AWS.Request

Retrieves information about the configurable settings for the specified directory.

Service Reference:

Examples:

Calling the describeSettings operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  NextToken: 'STRING_VALUE',
  Status: Requested | Updating | Updated | Failed | Default
};
directoryservice.describeSettings(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which to retrieve information.

    • Status — (String)

      The status of the directory settings for which to retrieve information.

      Possible values include:
      • "Requested"
      • "Updating"
      • "Updated"
      • "Failed"
      • "Default"
    • NextToken — (String)

      The DescribeSettingsResult.NextToken value from a previous call to DescribeSettings. Pass null if this is the first call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DirectoryId — (String)

        The identifier of the directory.

      • SettingEntries — (Array<map>)

        The list of SettingEntry objects that were retrieved.

        It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

        • Type — (String)

          The type, or category, of a directory setting. Similar settings have the same type. For example, Protocol, Cipher, or Certificate-Based Authentication.

        • Name — (String)

          The name of the directory setting. For example:

          TLS_1_0

        • AllowedValues — (String)

          The valid range of values for the directory setting. These values depend on the DataType of your directory.

        • AppliedValue — (String)

          The value of the directory setting that is applied to the directory.

        • RequestedValue — (String)

          The value that was last requested for the directory setting.

        • RequestStatus — (String)

          The overall status of the request to update the directory setting request. If the directory setting is deployed in more than one region, and the request fails in any region, the overall status is Failed.

          Possible values include:
          • "Requested"
          • "Updating"
          • "Updated"
          • "Failed"
          • "Default"
        • RequestDetailedStatus — (map<String>)

          Details about the status of the request to update the directory setting. If the directory setting is deployed in more than one region, status is returned for the request in each region where the setting is deployed.

        • RequestStatusMessage — (String)

          The last status message for the directory status request.

        • LastUpdatedDateTime — (Date)

          The date and time when the directory setting was last updated.

        • LastRequestedDateTime — (Date)

          The date and time when the request to update a directory setting was last submitted.

        • DataType — (String)

          The data type of a directory setting. This is used to define the AllowedValues of a setting. For example a data type can be Boolean, DurationInSeconds, or Enum.

      • NextToken — (String)

        If not null, token that indicates that more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeSettings to retrieve the next set of items.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeSharedDirectories(params = {}, callback) ⇒ AWS.Request

Returns the shared directories in your account.

Service Reference:

Examples:

Calling the describeSharedDirectories operation

var params = {
  OwnerDirectoryId: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  SharedDirectoryIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
directoryservice.describeSharedDirectories(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • OwnerDirectoryId — (String)

      Returns the identifier of the directory in the directory owner account.

    • SharedDirectoryIds — (Array<String>)

      A list of identifiers of all shared directories in your account.

    • NextToken — (String)

      The DescribeSharedDirectoriesResult.NextToken value from a previous call to DescribeSharedDirectories. Pass null if this is the first call.

    • Limit — (Integer)

      The number of shared directories to return in the response object.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SharedDirectories — (Array<map>)

        A list of all shared directories in your account.

        • OwnerAccountId — (String)

          Identifier of the directory owner account, which contains the directory that has been shared to the consumer account.

        • OwnerDirectoryId — (String)

          Identifier of the directory in the directory owner account.

        • ShareMethod — (String)

          The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (ORGANIZATIONS) or with any Amazon Web Services account by sending a shared directory request (HANDSHAKE).

          Possible values include:
          • "ORGANIZATIONS"
          • "HANDSHAKE"
        • SharedAccountId — (String)

          Identifier of the directory consumer account that has access to the shared directory (OwnerDirectoryId) in the directory owner account.

        • SharedDirectoryId — (String)

          Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.

        • ShareStatus — (String)

          Current directory status of the shared Managed Microsoft AD directory.

          Possible values include:
          • "Shared"
          • "PendingAcceptance"
          • "Rejected"
          • "Rejecting"
          • "RejectFailed"
          • "Sharing"
          • "ShareFailed"
          • "Deleted"
          • "Deleting"
        • ShareNotes — (String)

          A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.

        • CreatedDateTime — (Date)

          The date and time that the shared directory was created.

        • LastUpdatedDateTime — (Date)

          The date and time that the shared directory was last updated.

      • NextToken — (String)

        If not null, token that indicates that more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeSharedDirectories to retrieve the next set of items.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeSnapshots(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the describeSnapshots operation

var params = {
  DirectoryId: 'STRING_VALUE',
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  SnapshotIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
directoryservice.describeSnapshots(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which to retrieve snapshot information.

    • SnapshotIds — (Array<String>)

      A list of identifiers of the snapshots to obtain the information for. If this member is null or empty, all snapshots are returned using the Limit and NextToken members.

    • NextToken — (String)

      The DescribeSnapshotsResult.NextToken value from a previous call to DescribeSnapshots. Pass null if this is the first call.

    • Limit — (Integer)

      The maximum number of objects to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Snapshots — (Array<map>)

        The list of Snapshot objects that were retrieved.

        It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

        • DirectoryId — (String)

          The directory identifier.

        • SnapshotId — (String)

          The snapshot identifier.

        • Type — (String)

          The snapshot type.

          Possible values include:
          • "Auto"
          • "Manual"
        • Name — (String)

          The descriptive name of the snapshot.

        • Status — (String)

          The snapshot status.

          Possible values include:
          • "Creating"
          • "Completed"
          • "Failed"
        • StartTime — (Date)

          The date and time that the snapshot was taken.

      • NextToken — (String)

        If not null, more results are available. Pass this value in the NextToken member of a subsequent call to DescribeSnapshots.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeTrusts(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the describeTrusts operation

var params = {
  DirectoryId: 'STRING_VALUE',
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE',
  TrustIds: [
    'STRING_VALUE',
    /* more items */
  ]
};
directoryservice.describeTrusts(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The Directory ID of the Amazon Web Services directory that is a part of the requested trust relationship.

    • TrustIds — (Array<String>)

      A list of identifiers of the trust relationships for which to obtain the information. If this member is null, all trust relationships that belong to the current account are returned.

      An empty list results in an InvalidParameterException being thrown.

    • NextToken — (String)

      The DescribeTrustsResult.NextToken value from a previous call to DescribeTrusts. Pass null if this is the first call.

    • Limit — (Integer)

      The maximum number of objects to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Trusts — (Array<map>)

        The list of Trust objects that were retrieved.

        It is possible that this list contains less than the number of items specified in the Limit member of the request. This occurs if there are less than the requested number of items left to retrieve, or if the limitations of the operation have been exceeded.

        • DirectoryId — (String)

          The Directory ID of the Amazon Web Services directory involved in the trust relationship.

        • TrustId — (String)

          The unique ID of the trust relationship.

        • RemoteDomainName — (String)

          The Fully Qualified Domain Name (FQDN) of the external domain involved in the trust relationship.

        • TrustType — (String)

          The trust relationship type. Forest is the default.

          Possible values include:
          • "Forest"
          • "External"
        • TrustDirection — (String)

          The trust relationship direction.

          Possible values include:
          • "One-Way: Outgoing"
          • "One-Way: Incoming"
          • "Two-Way"
        • TrustState — (String)

          The trust relationship state.

          Possible values include:
          • "Creating"
          • "Created"
          • "Verifying"
          • "VerifyFailed"
          • "Verified"
          • "Updating"
          • "UpdateFailed"
          • "Updated"
          • "Deleting"
          • "Deleted"
          • "Failed"
        • CreatedDateTime — (Date)

          The date and time that the trust relationship was created.

        • LastUpdatedDateTime — (Date)

          The date and time that the trust relationship was last updated.

        • StateLastUpdatedDateTime — (Date)

          The date and time that the TrustState was last updated.

        • TrustStateReason — (String)

          The reason for the TrustState.

        • SelectiveAuth — (String)

          Current state of selective authentication for the trust.

          Possible values include:
          • "Enabled"
          • "Disabled"
      • NextToken — (String)

        If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to DescribeTrusts to retrieve the next set of items.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

describeUpdateDirectory(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the describeUpdateDirectory operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  UpdateType: OS, /* required */
  NextToken: 'STRING_VALUE',
  RegionName: 'STRING_VALUE'
};
directoryservice.describeUpdateDirectory(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The unique identifier of the directory.

    • UpdateType — (String)

      The type of updates you want to describe for the directory.

      Possible values include:
      • "OS"
    • RegionName — (String)

      The name of the Region.

    • NextToken — (String)

      The DescribeUpdateDirectoryResult. NextToken value from a previous call to DescribeUpdateDirectory. Pass null if this is the first call.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • UpdateActivities — (Array<map>)

        The list of update activities on a directory for the requested update type.

        • Region — (String)

          The name of the Region.

        • Status — (String)

          The status of the update performed on the directory.

          Possible values include:
          • "Updated"
          • "Updating"
          • "UpdateFailed"
        • StatusReason — (String)

          The reason for the current status of the update type activity.

        • InitiatedBy — (String)

          This specifies if the update was initiated by the customer or by the service team.

        • NewValue — (map)

          The new value of the target setting.

          • OSUpdateSettings — (map)

            The OS update related settings.

            • OSVersion — (String)

              OS version that the directory needs to be updated to.

              Possible values include:
              • "SERVER_2012"
              • "SERVER_2019"
        • PreviousValue — (map)

          The old value of the target setting.

          • OSUpdateSettings — (map)

            The OS update related settings.

            • OSVersion — (String)

              OS version that the directory needs to be updated to.

              Possible values include:
              • "SERVER_2012"
              • "SERVER_2019"
        • StartTime — (Date)

          The start time of the UpdateDirectorySetup for the particular type.

        • LastUpdatedDateTime — (Date)

          The last updated date and time of a particular directory setting.

      • NextToken — (String)

        If not null, more results are available. Pass this value for the NextToken parameter.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disableClientAuthentication(params = {}, callback) ⇒ AWS.Request

Disables alternative client authentication methods for the specified directory.

Service Reference:

Examples:

Calling the disableClientAuthentication operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Type: SmartCard | SmartCardOrPassword /* required */
};
directoryservice.disableClientAuthentication(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory

    • Type — (String)

      The type of client authentication to disable. Currently, only the parameter, SmartCard is supported.

      Possible values include:
      • "SmartCard"
      • "SmartCardOrPassword"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disableLDAPS(params = {}, callback) ⇒ AWS.Request

Deactivates LDAP secure calls for the specified directory.

Service Reference:

Examples:

Calling the disableLDAPS operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Type: Client /* required */
};
directoryservice.disableLDAPS(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory.

    • Type — (String)

      The type of LDAP security to enable. Currently only the value Client is supported.

      Possible values include:
      • "Client"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disableRadius(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the disableRadius operation

var params = {
  DirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.disableRadius(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which to disable MFA.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

disableSso(params = {}, callback) ⇒ AWS.Request

Disables single-sign on for a directory.

Service Reference:

Examples:

Calling the disableSso operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Password: 'STRING_VALUE',
  UserName: 'STRING_VALUE'
};
directoryservice.disableSso(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which to disable single-sign on.

    • UserName — (String)

      The username of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. This account must have privileges to remove a service principal name.

      If the AD Connector service account does not have privileges to remove a service principal name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to disable single sign-on and are not stored by the service. The AD Connector service account is not changed.

    • Password — (String)

      The password of an alternate account to use to disable single-sign on. This is only used for AD Connector directories. For more information, see the UserName parameter.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

enableClientAuthentication(params = {}, callback) ⇒ AWS.Request

Enables alternative client authentication methods for the specified directory.

Service Reference:

Examples:

Calling the enableClientAuthentication operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Type: SmartCard | SmartCardOrPassword /* required */
};
directoryservice.enableClientAuthentication(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the specified directory.

    • Type — (String)

      The type of client authentication to enable. Currently only the value SmartCard is supported. Smart card authentication in AD Connector requires that you enable Kerberos Constrained Delegation for the Service User to the LDAP service in your self-managed AD.

      Possible values include:
      • "SmartCard"
      • "SmartCardOrPassword"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

enableLDAPS(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the enableLDAPS operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Type: Client /* required */
};
directoryservice.enableLDAPS(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory.

    • Type — (String)

      The type of LDAP security to enable. Currently only the value Client is supported.

      Possible values include:
      • "Client"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

enableRadius(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the enableRadius operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  RadiusSettings: { /* required */
    AuthenticationProtocol: PAP | CHAP | MS-CHAPv1 | MS-CHAPv2,
    DisplayLabel: 'STRING_VALUE',
    RadiusPort: 'NUMBER_VALUE',
    RadiusRetries: 'NUMBER_VALUE',
    RadiusServers: [
      'STRING_VALUE',
      /* more items */
    ],
    RadiusTimeout: 'NUMBER_VALUE',
    SharedSecret: 'STRING_VALUE',
    UseSameUsername: true || false
  }
};
directoryservice.enableRadius(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which to enable MFA.

    • RadiusSettings — (map)

      A RadiusSettings object that contains information about the RADIUS server.

      • RadiusServers — (Array<String>)

        An array of strings that contains the fully qualified domain name (FQDN) or IP addresses of the RADIUS server endpoints, or the FQDN or IP addresses of your RADIUS server load balancer.

      • RadiusPort — (Integer)

        The port that your RADIUS server is using for communications. Your self-managed network must allow inbound traffic over this port from the Directory Service servers.

      • RadiusTimeout — (Integer)

        The amount of time, in seconds, to wait for the RADIUS server to respond.

      • RadiusRetries — (Integer)

        The maximum number of times that communication with the RADIUS server is attempted.

      • SharedSecret — (String)

        Required for enabling RADIUS on the directory.

      • AuthenticationProtocol — (String)

        The protocol specified for your RADIUS endpoints.

        Possible values include:
        • "PAP"
        • "CHAP"
        • "MS-CHAPv1"
        • "MS-CHAPv2"
      • DisplayLabel — (String)

        Not currently used.

      • UseSameUsername — (Boolean)

        Not currently used.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

enableSso(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the enableSso operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Password: 'STRING_VALUE',
  UserName: 'STRING_VALUE'
};
directoryservice.enableSso(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which to enable single-sign on.

    • UserName — (String)

      The username of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. This account must have privileges to add a service principal name.

      If the AD Connector service account does not have privileges to add a service principal name, you can specify an alternate account with the UserName and Password parameters. These credentials are only used to enable single sign-on and are not stored by the service. The AD Connector service account is not changed.

    • Password — (String)

      The password of an alternate account to use to enable single-sign on. This is only used for AD Connector directories. For more information, see the UserName parameter.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getDirectoryLimits(params = {}, callback) ⇒ AWS.Request

Obtains directory limit information for the current Region.

Service Reference:

Examples:

Calling the getDirectoryLimits operation

var params = {
};
directoryservice.getDirectoryLimits(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DirectoryLimits — (map)

        A DirectoryLimits object that contains the directory limits for the current Region.

        • CloudOnlyDirectoriesLimit — (Integer)

          The maximum number of cloud directories allowed in the Region.

        • CloudOnlyDirectoriesCurrentCount — (Integer)

          The current number of cloud directories in the Region.

        • CloudOnlyDirectoriesLimitReached — (Boolean)

          Indicates if the cloud directory limit has been reached.

        • CloudOnlyMicrosoftADLimit — (Integer)

          The maximum number of Managed Microsoft AD directories allowed in the region.

        • CloudOnlyMicrosoftADCurrentCount — (Integer)

          The current number of Managed Microsoft AD directories in the region.

        • CloudOnlyMicrosoftADLimitReached — (Boolean)

          Indicates if the Managed Microsoft AD directory limit has been reached.

        • ConnectedDirectoriesLimit — (Integer)

          The maximum number of connected directories allowed in the Region.

        • ConnectedDirectoriesCurrentCount — (Integer)

          The current number of connected directories in the Region.

        • ConnectedDirectoriesLimitReached — (Boolean)

          Indicates if the connected directory limit has been reached.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

getSnapshotLimits(params = {}, callback) ⇒ AWS.Request

Obtains the manual snapshot limits for a directory.

Service Reference:

Examples:

Calling the getSnapshotLimits operation

var params = {
  DirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.getSnapshotLimits(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      Contains the identifier of the directory to obtain the limits for.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SnapshotLimits — (map)

        A SnapshotLimits object that contains the manual snapshot limits for the specified directory.

        • ManualSnapshotsLimit — (Integer)

          The maximum number of manual snapshots allowed.

        • ManualSnapshotsCurrentCount — (Integer)

          The current number of manual snapshots of the directory.

        • ManualSnapshotsLimitReached — (Boolean)

          Indicates if the manual snapshot limit has been reached.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listCertificates(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the listCertificates operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
directoryservice.listCertificates(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory.

    • NextToken — (String)

      A token for requesting another page of certificates if the NextToken response element indicates that more certificates are available. Use the value of the returned NextToken element in your request until the token comes back as null. Pass null if this is the first call.

    • Limit — (Integer)

      The number of items that should show up on one page

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • NextToken — (String)

        Indicates whether another page of certificates is available when the number of available certificates exceeds the page limit.

      • CertificatesInfo — (Array<map>)

        A list of certificates with basic details including certificate ID, certificate common name, certificate state.

        • CertificateId — (String)

          The identifier of the certificate.

        • CommonName — (String)

          The common name for the certificate.

        • State — (String)

          The state of the certificate.

          Possible values include:
          • "Registering"
          • "Registered"
          • "RegisterFailed"
          • "Deregistering"
          • "Deregistered"
          • "DeregisterFailed"
        • ExpiryDateTime — (Date)

          The date and time when the certificate will expire.

        • Type — (String)

          The function that the registered certificate performs. Valid values include ClientLDAPS or ClientCertAuth. The default value is ClientLDAPS.

          Possible values include:
          • "ClientCertAuth"
          • "ClientLDAPS"

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listIpRoutes(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the listIpRoutes operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
directoryservice.listIpRoutes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      Identifier (ID) of the directory for which you want to retrieve the IP addresses.

    • NextToken — (String)

      The ListIpRoutes.NextToken value from a previous call to ListIpRoutes. Pass null if this is the first call.

    • Limit — (Integer)

      Maximum number of items to return. If this value is zero, the maximum number of items is specified by the limitations of the operation.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • IpRoutesInfo — (Array<map>)

        A list of IpRoutes.

        • DirectoryId — (String)

          Identifier (ID) of the directory associated with the IP addresses.

        • CidrIp — (String)

          IP address block in the IpRoute.

        • IpRouteStatusMsg — (String)

          The status of the IP address block.

          Possible values include:
          • "Adding"
          • "Added"
          • "Removing"
          • "Removed"
          • "AddFailed"
          • "RemoveFailed"
        • AddedDateTime — (Date)

          The date and time the address block was added to the directory.

        • IpRouteStatusReason — (String)

          The reason for the IpRouteStatusMsg.

        • Description — (String)

          Description of the IpRouteInfo.

      • NextToken — (String)

        If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to ListIpRoutes to retrieve the next set of items.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listLogSubscriptions(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the listLogSubscriptions operation

var params = {
  DirectoryId: 'STRING_VALUE',
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
directoryservice.listLogSubscriptions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      If a DirectoryID is provided, lists only the log subscription associated with that directory. If no DirectoryId is provided, lists all log subscriptions associated with your Amazon Web Services account. If there are no log subscriptions for the Amazon Web Services account or the directory, an empty list will be returned.

    • NextToken — (String)

      The token for the next set of items to return.

    • Limit — (Integer)

      The maximum number of items returned.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • LogSubscriptions — (Array<map>)

        A list of active LogSubscription objects for calling the Amazon Web Services account.

        • DirectoryId — (String)

          Identifier (ID) of the directory that you want to associate with the log subscription.

        • LogGroupName — (String)

          The name of the log group.

        • SubscriptionCreatedDateTime — (Date)

          The date and time that the log subscription was created.

      • NextToken — (String)

        The token for the next set of items to return.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listSchemaExtensions(params = {}, callback) ⇒ AWS.Request

Lists all schema extensions applied to a Microsoft AD Directory.

Service Reference:

Examples:

Calling the listSchemaExtensions operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
directoryservice.listSchemaExtensions(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory from which to retrieve the schema extension information.

    • NextToken — (String)

      The ListSchemaExtensions.NextToken value from a previous call to ListSchemaExtensions. Pass null if this is the first call.

    • Limit — (Integer)

      The maximum number of items to return.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SchemaExtensionsInfo — (Array<map>)

        Information about the schema extensions applied to the directory.

        • DirectoryId — (String)

          The identifier of the directory to which the schema extension is applied.

        • SchemaExtensionId — (String)

          The identifier of the schema extension.

        • Description — (String)

          A description of the schema extension.

        • SchemaExtensionStatus — (String)

          The current status of the schema extension.

          Possible values include:
          • "Initializing"
          • "CreatingSnapshot"
          • "UpdatingSchema"
          • "Replicating"
          • "CancelInProgress"
          • "RollbackInProgress"
          • "Cancelled"
          • "Failed"
          • "Completed"
        • SchemaExtensionStatusReason — (String)

          The reason for the SchemaExtensionStatus.

        • StartDateTime — (Date)

          The date and time that the schema extension started being applied to the directory.

        • EndDateTime — (Date)

          The date and time that the schema extension was completed.

      • NextToken — (String)

        If not null, more results are available. Pass this value for the NextToken parameter in a subsequent call to ListSchemaExtensions to retrieve the next set of items.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

listTagsForResource(params = {}, callback) ⇒ AWS.Request

Lists all tags on a directory.

Service Reference:

Examples:

Calling the listTagsForResource operation

var params = {
  ResourceId: 'STRING_VALUE', /* required */
  Limit: 'NUMBER_VALUE',
  NextToken: 'STRING_VALUE'
};
directoryservice.listTagsForResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceId — (String)

      Identifier (ID) of the directory for which you want to retrieve tags.

    • NextToken — (String)

      Reserved for future use.

    • Limit — (Integer)

      Reserved for future use.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • Tags — (Array<map>)

        List of tags returned by the ListTagsForResource operation.

        • Keyrequired — (String)

          Required name of the tag. The string value can be Unicode characters and cannot be prefixed with "aws:". The string can contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

        • Valuerequired — (String)

          The optional value of the tag. The string value can be Unicode characters. The string can contain only the set of Unicode letters, digits, white-space, '', '.', '/', '=', '+', '-' (Java regex: "^([\p{L}\\p{Z}\\p{N}.:/=+\-]*)$").

      • NextToken — (String)

        Reserved for future use.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

registerCertificate(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the registerCertificate operation

var params = {
  CertificateData: 'STRING_VALUE', /* required */
  DirectoryId: 'STRING_VALUE', /* required */
  ClientCertAuthSettings: {
    OCSPUrl: 'STRING_VALUE'
  },
  Type: ClientCertAuth | ClientLDAPS
};
directoryservice.registerCertificate(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory.

    • CertificateData — (String)

      The certificate PEM string that needs to be registered.

    • Type — (String)

      The function that the registered certificate performs. Valid values include ClientLDAPS or ClientCertAuth. The default value is ClientLDAPS.

      Possible values include:
      • "ClientCertAuth"
      • "ClientLDAPS"
    • ClientCertAuthSettings — (map)

      A ClientCertAuthSettings object that contains client certificate authentication settings.

      • OCSPUrl — (String)

        Specifies the URL of the default OCSP server used to check for revocation status. A secondary value to any OCSP address found in the AIA extension of the user certificate.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • CertificateId — (String)

        The identifier of the certificate.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

registerEventTopic(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the registerEventTopic operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  TopicName: 'STRING_VALUE' /* required */
};
directoryservice.registerEventTopic(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The Directory ID that will publish status messages to the Amazon SNS topic.

    • TopicName — (String)

      The Amazon SNS topic name to which the directory will publish status messages. This Amazon SNS topic must be in the same region as the specified Directory ID.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

rejectSharedDirectory(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the rejectSharedDirectory operation

var params = {
  SharedDirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.rejectSharedDirectory(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SharedDirectoryId — (String)

      Identifier of the shared directory in the directory consumer account. This identifier is different for each directory owner account.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SharedDirectoryId — (String)

        Identifier of the shared directory in the directory consumer account.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

removeIpRoutes(params = {}, callback) ⇒ AWS.Request

Removes IP address blocks from a directory.

Service Reference:

Examples:

Calling the removeIpRoutes operation

var params = {
  CidrIps: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  DirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.removeIpRoutes(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      Identifier (ID) of the directory from which you want to remove the IP addresses.

    • CidrIps — (Array<String>)

      IP address blocks that you want to remove.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

removeRegion(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the removeRegion operation

var params = {
  DirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.removeRegion(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which you want to remove Region replication.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

removeTagsFromResource(params = {}, callback) ⇒ AWS.Request

Removes tags from a directory.

Service Reference:

Examples:

Calling the removeTagsFromResource operation

var params = {
  ResourceId: 'STRING_VALUE', /* required */
  TagKeys: [ /* required */
    'STRING_VALUE',
    /* more items */
  ]
};
directoryservice.removeTagsFromResource(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • ResourceId — (String)

      Identifier (ID) of the directory from which to remove the tag.

    • TagKeys — (Array<String>)

      The tag key (name) of the tag to be removed.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

resetUserPassword(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the resetUserPassword operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  NewPassword: 'STRING_VALUE', /* required */
  UserName: 'STRING_VALUE' /* required */
};
directoryservice.resetUserPassword(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      Identifier of the Managed Microsoft AD or Simple AD directory in which the user resides.

    • UserName — (String)

      The user name of the user whose password will be reset.

    • NewPassword — (String)

      The new password that will be reset.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

restoreFromSnapshot(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the restoreFromSnapshot operation

var params = {
  SnapshotId: 'STRING_VALUE' /* required */
};
directoryservice.restoreFromSnapshot(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • SnapshotId — (String)

      The identifier of the snapshot to restore from.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

shareDirectory(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the shareDirectory operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  ShareMethod: ORGANIZATIONS | HANDSHAKE, /* required */
  ShareTarget: { /* required */
    Id: 'STRING_VALUE', /* required */
    Type: ACCOUNT /* required */
  },
  ShareNotes: 'STRING_VALUE'
};
directoryservice.shareDirectory(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      Identifier of the Managed Microsoft AD directory that you want to share with other Amazon Web Services accounts.

    • ShareNotes — (String)

      A directory share request that is sent by the directory owner to the directory consumer. The request includes a typed message to help the directory consumer administrator determine whether to approve or reject the share invitation.

    • ShareTarget — (map)

      Identifier for the directory consumer account with whom the directory is to be shared.

      • Idrequired — (String)

        Identifier of the directory consumer account.

      • Typerequired — (String)

        Type of identifier to be used in the Id field.

        Possible values include:
        • "ACCOUNT"
    • ShareMethod — (String)

      The method used when sharing a directory to determine whether the directory should be shared within your Amazon Web Services organization (ORGANIZATIONS) or with any Amazon Web Services account by sending a directory sharing request (HANDSHAKE).

      Possible values include:
      • "ORGANIZATIONS"
      • "HANDSHAKE"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SharedDirectoryId — (String)

        Identifier of the directory that is stored in the directory consumer account that is shared from the specified directory (DirectoryId).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

startSchemaExtension(params = {}, callback) ⇒ AWS.Request

Applies a schema extension to a Microsoft AD directory.

Service Reference:

Examples:

Calling the startSchemaExtension operation

var params = {
  CreateSnapshotBeforeSchemaExtension: true || false, /* required */
  Description: 'STRING_VALUE', /* required */
  DirectoryId: 'STRING_VALUE', /* required */
  LdifContent: 'STRING_VALUE' /* required */
};
directoryservice.startSchemaExtension(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which the schema extension will be applied to.

    • CreateSnapshotBeforeSchemaExtension — (Boolean)

      If true, creates a snapshot of the directory before applying the schema extension.

    • LdifContent — (String)

      The LDIF file represented as a string. To construct the LdifContent string, precede each line as it would be formatted in an ldif file with \n. See the example request below for more details. The file size can be no larger than 1MB.

    • Description — (String)

      A description of the schema extension.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SchemaExtensionId — (String)

        The identifier of the schema extension that will be applied.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

unshareDirectory(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the unshareDirectory operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  UnshareTarget: { /* required */
    Id: 'STRING_VALUE', /* required */
    Type: ACCOUNT /* required */
  }
};
directoryservice.unshareDirectory(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the Managed Microsoft AD directory that you want to stop sharing.

    • UnshareTarget — (map)

      Identifier for the directory consumer account with whom the directory has to be unshared.

      • Idrequired — (String)

        Identifier of the directory consumer account.

      • Typerequired — (String)

        Type of identifier to be used in the Id field.

        Possible values include:
        • "ACCOUNT"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • SharedDirectoryId — (String)

        Identifier of the directory stored in the directory consumer account that is to be unshared from the specified directory (DirectoryId).

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateConditionalForwarder(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the updateConditionalForwarder operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  DnsIpAddrs: [ /* required */
    'STRING_VALUE',
    /* more items */
  ],
  RemoteDomainName: 'STRING_VALUE' /* required */
};
directoryservice.updateConditionalForwarder(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The directory ID of the Amazon Web Services directory for which to update the conditional forwarder.

    • RemoteDomainName — (String)

      The fully qualified domain name (FQDN) of the remote domain with which you will set up a trust relationship.

    • DnsIpAddrs — (Array<String>)

      The updated IP addresses of the remote DNS server associated with the conditional forwarder.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateDirectorySetup(params = {}, callback) ⇒ AWS.Request

Updates the directory for a particular update type.

Service Reference:

Examples:

Calling the updateDirectorySetup operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  UpdateType: OS, /* required */
  CreateSnapshotBeforeUpdate: true || false,
  OSUpdateSettings: {
    OSVersion: SERVER_2012 | SERVER_2019
  }
};
directoryservice.updateDirectorySetup(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory on which you want to perform the update.

    • UpdateType — (String)

      The type of update that needs to be performed on the directory. For example, OS.

      Possible values include:
      • "OS"
    • OSUpdateSettings — (map)

      The settings for the OS update that needs to be performed on the directory.

      • OSVersion — (String)

        OS version that the directory needs to be updated to.

        Possible values include:
        • "SERVER_2012"
        • "SERVER_2019"
    • CreateSnapshotBeforeUpdate — (Boolean)

      The boolean that specifies if a snapshot for the directory needs to be taken before updating the directory.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateNumberOfDomainControllers(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the updateNumberOfDomainControllers operation

var params = {
  DesiredNumber: 'NUMBER_VALUE', /* required */
  DirectoryId: 'STRING_VALUE' /* required */
};
directoryservice.updateNumberOfDomainControllers(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      Identifier of the directory to which the domain controllers will be added or removed.

    • DesiredNumber — (Integer)

      The number of domain controllers desired in the directory.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateRadius(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the updateRadius operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  RadiusSettings: { /* required */
    AuthenticationProtocol: PAP | CHAP | MS-CHAPv1 | MS-CHAPv2,
    DisplayLabel: 'STRING_VALUE',
    RadiusPort: 'NUMBER_VALUE',
    RadiusRetries: 'NUMBER_VALUE',
    RadiusServers: [
      'STRING_VALUE',
      /* more items */
    ],
    RadiusTimeout: 'NUMBER_VALUE',
    SharedSecret: 'STRING_VALUE',
    UseSameUsername: true || false
  }
};
directoryservice.updateRadius(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which to update the RADIUS server information.

    • RadiusSettings — (map)

      A RadiusSettings object that contains information about the RADIUS server.

      • RadiusServers — (Array<String>)

        An array of strings that contains the fully qualified domain name (FQDN) or IP addresses of the RADIUS server endpoints, or the FQDN or IP addresses of your RADIUS server load balancer.

      • RadiusPort — (Integer)

        The port that your RADIUS server is using for communications. Your self-managed network must allow inbound traffic over this port from the Directory Service servers.

      • RadiusTimeout — (Integer)

        The amount of time, in seconds, to wait for the RADIUS server to respond.

      • RadiusRetries — (Integer)

        The maximum number of times that communication with the RADIUS server is attempted.

      • SharedSecret — (String)

        Required for enabling RADIUS on the directory.

      • AuthenticationProtocol — (String)

        The protocol specified for your RADIUS endpoints.

        Possible values include:
        • "PAP"
        • "CHAP"
        • "MS-CHAPv1"
        • "MS-CHAPv2"
      • DisplayLabel — (String)

        Not currently used.

      • UseSameUsername — (Boolean)

        Not currently used.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateSettings(params = {}, callback) ⇒ AWS.Request

Updates the configurable settings for the specified directory.

Service Reference:

Examples:

Calling the updateSettings operation

var params = {
  DirectoryId: 'STRING_VALUE', /* required */
  Settings: [ /* required */
    {
      Name: 'STRING_VALUE', /* required */
      Value: 'STRING_VALUE' /* required */
    },
    /* more items */
  ]
};
directoryservice.updateSettings(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • DirectoryId — (String)

      The identifier of the directory for which to update settings.

    • Settings — (Array<map>)

      The list of Setting objects.

      • Namerequired — (String)

        The name of the directory setting. For example:

        TLS_1_0

      • Valuerequired — (String)

        The value of the directory setting for which to retrieve information. For example, for TLS_1_0, the valid values are: Enable and Disable.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • DirectoryId — (String)

        The identifier of the directory.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

updateTrust(params = {}, callback) ⇒ AWS.Request

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

Service Reference:

Examples:

Calling the updateTrust operation

var params = {
  TrustId: 'STRING_VALUE', /* required */
  SelectiveAuth: Enabled | Disabled
};
directoryservice.updateTrust(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TrustId — (String)

      Identifier of the trust relationship.

    • SelectiveAuth — (String)

      Updates selective authentication for the trust.

      Possible values include:
      • "Enabled"
      • "Disabled"

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • RequestId — (String)

        The Amazon Web Services request identifier.

      • TrustId — (String)

        Identifier of the trust relationship.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.

verifyTrust(params = {}, callback) ⇒ AWS.Request

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.

Service Reference:

Examples:

Calling the verifyTrust operation

var params = {
  TrustId: 'STRING_VALUE' /* required */
};
directoryservice.verifyTrust(params, function(err, data) {
  if (err) console.log(err, err.stack); // an error occurred
  else     console.log(data);           // successful response
});

Parameters:

  • params (Object) (defaults to: {})
    • TrustId — (String)

      The unique Trust ID of the trust relationship to verify.

Callback (callback):

  • function(err, data) { ... }

    Called when a response from the service is returned. If a callback is not supplied, you must call AWS.Request.send() on the returned request object to initiate the request.

    Context (this):

    • (AWS.Response)

      the response object containing error, data properties, and the original request object.

    Parameters:

    • err (Error)

      the error object returned from the request. Set to null if the request is successful.

    • data (Object)

      the de-serialized data returned from the request. Set to null if a request error occurs. The data object has the following properties:

      • TrustId — (String)

        The unique Trust ID of the trust relationship that was verified.

Returns:

  • (AWS.Request)

    a handle to the operation request for subsequent event callback registration.