Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DirectoryService

import { DirectoryService } from "https://aws-api.deno.dev/v0.3/services/directoryservice.ts?docs=full";
class DirectoryService {
constructor(apiFactory: client.ApiFactory);
async acceptSharedDirectory(params: AcceptSharedDirectoryRequest, opts?: client.RequestOptions): Promise<AcceptSharedDirectoryResult>;
async addIpRoutes(params: AddIpRoutesRequest, opts?: client.RequestOptions): Promise<void>;
async addRegion(params: AddRegionRequest, opts?: client.RequestOptions): Promise<void>;
async addTagsToResource(params: AddTagsToResourceRequest, opts?: client.RequestOptions): Promise<void>;
async cancelSchemaExtension(params: CancelSchemaExtensionRequest, opts?: client.RequestOptions): Promise<void>;
async connectDirectory(params: ConnectDirectoryRequest, opts?: client.RequestOptions): Promise<ConnectDirectoryResult>;
async createAlias(params: CreateAliasRequest, opts?: client.RequestOptions): Promise<CreateAliasResult>;
async createComputer(params: CreateComputerRequest, opts?: client.RequestOptions): Promise<CreateComputerResult>;
async createConditionalForwarder(params: CreateConditionalForwarderRequest, opts?: client.RequestOptions): Promise<void>;
async createDirectory(params: CreateDirectoryRequest, opts?: client.RequestOptions): Promise<CreateDirectoryResult>;
async createLogSubscription(params: CreateLogSubscriptionRequest, opts?: client.RequestOptions): Promise<void>;
async createMicrosoftAD(params: CreateMicrosoftADRequest, opts?: client.RequestOptions): Promise<CreateMicrosoftADResult>;
async createSnapshot(params: CreateSnapshotRequest, opts?: client.RequestOptions): Promise<CreateSnapshotResult>;
async createTrust(params: CreateTrustRequest, opts?: client.RequestOptions): Promise<CreateTrustResult>;
async deleteConditionalForwarder(params: DeleteConditionalForwarderRequest, opts?: client.RequestOptions): Promise<void>;
async deleteDirectory(params: DeleteDirectoryRequest, opts?: client.RequestOptions): Promise<DeleteDirectoryResult>;
async deleteLogSubscription(params: DeleteLogSubscriptionRequest, opts?: client.RequestOptions): Promise<void>;
async deleteSnapshot(params: DeleteSnapshotRequest, opts?: client.RequestOptions): Promise<DeleteSnapshotResult>;
async deleteTrust(params: DeleteTrustRequest, opts?: client.RequestOptions): Promise<DeleteTrustResult>;
async deregisterCertificate(params: DeregisterCertificateRequest, opts?: client.RequestOptions): Promise<void>;
async deregisterEventTopic(params: DeregisterEventTopicRequest, opts?: client.RequestOptions): Promise<void>;
async describeCertificate(params: DescribeCertificateRequest, opts?: client.RequestOptions): Promise<DescribeCertificateResult>;
async describeClientAuthenticationSettings(params: DescribeClientAuthenticationSettingsRequest, opts?: client.RequestOptions): Promise<DescribeClientAuthenticationSettingsResult>;
async describeConditionalForwarders(params: DescribeConditionalForwardersRequest, opts?: client.RequestOptions): Promise<DescribeConditionalForwardersResult>;
async describeDirectories(params?: DescribeDirectoriesRequest, opts?: client.RequestOptions): Promise<DescribeDirectoriesResult>;
async describeDomainControllers(params: DescribeDomainControllersRequest, opts?: client.RequestOptions): Promise<DescribeDomainControllersResult>;
async describeEventTopics(params?: DescribeEventTopicsRequest, opts?: client.RequestOptions): Promise<DescribeEventTopicsResult>;
async describeLDAPSSettings(params: DescribeLDAPSSettingsRequest, opts?: client.RequestOptions): Promise<DescribeLDAPSSettingsResult>;
async describeRegions(params: DescribeRegionsRequest, opts?: client.RequestOptions): Promise<DescribeRegionsResult>;
async describeSharedDirectories(params: DescribeSharedDirectoriesRequest, opts?: client.RequestOptions): Promise<DescribeSharedDirectoriesResult>;
async describeSnapshots(params?: DescribeSnapshotsRequest, opts?: client.RequestOptions): Promise<DescribeSnapshotsResult>;
async describeTrusts(params?: DescribeTrustsRequest, opts?: client.RequestOptions): Promise<DescribeTrustsResult>;
async disableClientAuthentication(params: DisableClientAuthenticationRequest, opts?: client.RequestOptions): Promise<void>;
async disableLDAPS(params: DisableLDAPSRequest, opts?: client.RequestOptions): Promise<void>;
async disableRadius(params: DisableRadiusRequest, opts?: client.RequestOptions): Promise<void>;
async disableSso(params: DisableSsoRequest, opts?: client.RequestOptions): Promise<void>;
async enableClientAuthentication(params: EnableClientAuthenticationRequest, opts?: client.RequestOptions): Promise<void>;
async enableLDAPS(params: EnableLDAPSRequest, opts?: client.RequestOptions): Promise<void>;
async enableRadius(params: EnableRadiusRequest, opts?: client.RequestOptions): Promise<void>;
async enableSso(params: EnableSsoRequest, opts?: client.RequestOptions): Promise<void>;
async getDirectoryLimits(opts?: client.RequestOptions): Promise<GetDirectoryLimitsResult>;
async getSnapshotLimits(params: GetSnapshotLimitsRequest, opts?: client.RequestOptions): Promise<GetSnapshotLimitsResult>;
async listCertificates(params: ListCertificatesRequest, opts?: client.RequestOptions): Promise<ListCertificatesResult>;
async listIpRoutes(params: ListIpRoutesRequest, opts?: client.RequestOptions): Promise<ListIpRoutesResult>;
async listLogSubscriptions(params?: ListLogSubscriptionsRequest, opts?: client.RequestOptions): Promise<ListLogSubscriptionsResult>;
async listSchemaExtensions(params: ListSchemaExtensionsRequest, opts?: client.RequestOptions): Promise<ListSchemaExtensionsResult>;
async listTagsForResource(params: ListTagsForResourceRequest, opts?: client.RequestOptions): Promise<ListTagsForResourceResult>;
async registerCertificate(params: RegisterCertificateRequest, opts?: client.RequestOptions): Promise<RegisterCertificateResult>;
async registerEventTopic(params: RegisterEventTopicRequest, opts?: client.RequestOptions): Promise<void>;
async rejectSharedDirectory(params: RejectSharedDirectoryRequest, opts?: client.RequestOptions): Promise<RejectSharedDirectoryResult>;
async removeIpRoutes(params: RemoveIpRoutesRequest, opts?: client.RequestOptions): Promise<void>;
async removeRegion(params: RemoveRegionRequest, opts?: client.RequestOptions): Promise<void>;
async removeTagsFromResource(params: RemoveTagsFromResourceRequest, opts?: client.RequestOptions): Promise<void>;
async resetUserPassword(params: ResetUserPasswordRequest, opts?: client.RequestOptions): Promise<void>;
async restoreFromSnapshot(params: RestoreFromSnapshotRequest, opts?: client.RequestOptions): Promise<void>;
async shareDirectory(params: ShareDirectoryRequest, opts?: client.RequestOptions): Promise<ShareDirectoryResult>;
async startSchemaExtension(params: StartSchemaExtensionRequest, opts?: client.RequestOptions): Promise<StartSchemaExtensionResult>;
async unshareDirectory(params: UnshareDirectoryRequest, opts?: client.RequestOptions): Promise<UnshareDirectoryResult>;
async updateConditionalForwarder(params: UpdateConditionalForwarderRequest, opts?: client.RequestOptions): Promise<void>;
async updateNumberOfDomainControllers(params: UpdateNumberOfDomainControllersRequest, opts?: client.RequestOptions): Promise<void>;
async updateRadius(params: UpdateRadiusRequest, opts?: client.RequestOptions): Promise<void>;
async updateTrust(params: UpdateTrustRequest, opts?: client.RequestOptions): Promise<UpdateTrustResult>;
async verifyTrust(params: VerifyTrustRequest, opts?: client.RequestOptions): Promise<VerifyTrustResult>;
 
static ApiMetadata: client.ApiMetadata;
}

§Constructors

§
new DirectoryService(apiFactory: client.ApiFactory)
[src]

§Methods

§

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

§
addIpRoutes(params: AddIpRoutesRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§
addRegion(params: AddRegionRequest, opts?: client.RequestOptions): Promise<void>
[src]

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

§
addTagsToResource(params: AddTagsToResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§
cancelSchemaExtension(params: CancelSchemaExtensionRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§

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.

§
createAlias(params: CreateAliasRequest, opts?: client.RequestOptions): Promise<CreateAliasResult>
[src]

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.

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

§

Creates an Active Directory computer object in the specified directory.

§
createConditionalForwarder(params: CreateConditionalForwarderRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§

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.

§
createLogSubscription(params: CreateLogSubscriptionRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§

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.

§

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.

§
createTrust(params: CreateTrustRequest, opts?: client.RequestOptions): Promise<CreateTrustResult>
[src]

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.

§
deleteConditionalForwarder(params: DeleteConditionalForwarderRequest, opts?: client.RequestOptions): Promise<void>
[src]

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

§

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.

§
deleteLogSubscription(params: DeleteLogSubscriptionRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deletes the specified log subscription.

§

Deletes a directory snapshot.

§
deleteTrust(params: DeleteTrustRequest, opts?: client.RequestOptions): Promise<DeleteTrustResult>
[src]

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

§
deregisterCertificate(params: DeregisterCertificateRequest, opts?: client.RequestOptions): Promise<void>
[src]

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

§
deregisterEventTopic(params: DeregisterEventTopicRequest, opts?: client.RequestOptions): Promise<void>
[src]

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

§

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

§

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.

§

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.

§

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.

§

Provides information about any domain controllers in your directory.

§

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.

§

Describes the status of LDAP security for the specified directory.

§

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

§

Returns the shared directories in your account.

§

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.

§
describeTrusts(params?: DescribeTrustsRequest, opts?: client.RequestOptions): Promise<DescribeTrustsResult>
[src]

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.

§
disableClientAuthentication(params: DisableClientAuthenticationRequest, opts?: client.RequestOptions): Promise<void>
[src]

Disables alternative client authentication methods for the specified directory.

§
disableLDAPS(params: DisableLDAPSRequest, opts?: client.RequestOptions): Promise<void>
[src]

Deactivates LDAP secure calls for the specified directory.

§
disableRadius(params: DisableRadiusRequest, opts?: client.RequestOptions): Promise<void>
[src]

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

§
disableSso(params: DisableSsoRequest, opts?: client.RequestOptions): Promise<void>
[src]

Disables single-sign on for a directory.

§
enableClientAuthentication(params: EnableClientAuthenticationRequest, opts?: client.RequestOptions): Promise<void>
[src]

Enables alternative client authentication methods for the specified directory.

§
enableLDAPS(params: EnableLDAPSRequest, opts?: client.RequestOptions): Promise<void>
[src]

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

§
enableRadius(params: EnableRadiusRequest, opts?: client.RequestOptions): Promise<void>
[src]

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

§
enableSso(params: EnableSsoRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§
getDirectoryLimits(opts?: client.RequestOptions): Promise<GetDirectoryLimitsResult>
[src]

Obtains directory limit information for the current Region.

§

Obtains the manual snapshot limits for a directory.

§

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

§
listIpRoutes(params: ListIpRoutesRequest, opts?: client.RequestOptions): Promise<ListIpRoutesResult>
[src]

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

§

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

§

Lists all schema extensions applied to a Microsoft AD Directory.

§

Lists all tags on a directory.

§

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

§
registerEventTopic(params: RegisterEventTopicRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§

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

§
removeIpRoutes(params: RemoveIpRoutesRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes IP address blocks from a directory.

§
removeRegion(params: RemoveRegionRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§
removeTagsFromResource(params: RemoveTagsFromResourceRequest, opts?: client.RequestOptions): Promise<void>
[src]

Removes tags from a directory.

§
resetUserPassword(params: ResetUserPasswordRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.
§
restoreFromSnapshot(params: RestoreFromSnapshotRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§

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.

§

Applies a schema extension to a Microsoft AD directory.

§

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

§
updateConditionalForwarder(params: UpdateConditionalForwarderRequest, opts?: client.RequestOptions): Promise<void>
[src]

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

§
updateNumberOfDomainControllers(params: UpdateNumberOfDomainControllersRequest, opts?: client.RequestOptions): Promise<void>
[src]

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.

§
updateRadius(params: UpdateRadiusRequest, opts?: client.RequestOptions): Promise<void>
[src]

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

§
updateTrust(params: UpdateTrustRequest, opts?: client.RequestOptions): Promise<UpdateTrustResult>
[src]

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

§
verifyTrust(params: VerifyTrustRequest, opts?: client.RequestOptions): Promise<VerifyTrustResult>
[src]

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.

§Static Properties