diff --git a/clients/client-directory-service/.gitignore b/clients/client-directory-service/.gitignore
new file mode 100644
index 000000000000..b41c05b597c4
--- /dev/null
+++ b/clients/client-directory-service/.gitignore
@@ -0,0 +1,14 @@
+/node_modules/
+/build/
+/coverage/
+/docs/
+/types/
+/dist/
+*.tsbuildinfo
+*.tgz
+*.log
+package-lock.json
+
+*.d.ts
+*.js
+*.js.map
diff --git a/clients/client-directory-service/.npmignore b/clients/client-directory-service/.npmignore
new file mode 100644
index 000000000000..b7ff81137c4a
--- /dev/null
+++ b/clients/client-directory-service/.npmignore
@@ -0,0 +1,4 @@
+/coverage/
+/docs/
+tsconfig.test.json
+*.tsbuildinfo
diff --git a/clients/client-directory-service/DirectoryService.ts b/clients/client-directory-service/DirectoryService.ts
new file mode 100644
index 000000000000..c268f1107b7b
--- /dev/null
+++ b/clients/client-directory-service/DirectoryService.ts
@@ -0,0 +1,2518 @@
+import { DirectoryServiceClient } from "./DirectoryServiceClient";
+import {
+ AcceptSharedDirectoryCommand,
+ AcceptSharedDirectoryCommandInput,
+ AcceptSharedDirectoryCommandOutput
+} from "./commands/AcceptSharedDirectoryCommand";
+import {
+ AddIpRoutesCommand,
+ AddIpRoutesCommandInput,
+ AddIpRoutesCommandOutput
+} from "./commands/AddIpRoutesCommand";
+import {
+ AddTagsToResourceCommand,
+ AddTagsToResourceCommandInput,
+ AddTagsToResourceCommandOutput
+} from "./commands/AddTagsToResourceCommand";
+import {
+ CancelSchemaExtensionCommand,
+ CancelSchemaExtensionCommandInput,
+ CancelSchemaExtensionCommandOutput
+} from "./commands/CancelSchemaExtensionCommand";
+import {
+ ConnectDirectoryCommand,
+ ConnectDirectoryCommandInput,
+ ConnectDirectoryCommandOutput
+} from "./commands/ConnectDirectoryCommand";
+import {
+ CreateAliasCommand,
+ CreateAliasCommandInput,
+ CreateAliasCommandOutput
+} from "./commands/CreateAliasCommand";
+import {
+ CreateComputerCommand,
+ CreateComputerCommandInput,
+ CreateComputerCommandOutput
+} from "./commands/CreateComputerCommand";
+import {
+ CreateConditionalForwarderCommand,
+ CreateConditionalForwarderCommandInput,
+ CreateConditionalForwarderCommandOutput
+} from "./commands/CreateConditionalForwarderCommand";
+import {
+ CreateDirectoryCommand,
+ CreateDirectoryCommandInput,
+ CreateDirectoryCommandOutput
+} from "./commands/CreateDirectoryCommand";
+import {
+ CreateLogSubscriptionCommand,
+ CreateLogSubscriptionCommandInput,
+ CreateLogSubscriptionCommandOutput
+} from "./commands/CreateLogSubscriptionCommand";
+import {
+ CreateMicrosoftADCommand,
+ CreateMicrosoftADCommandInput,
+ CreateMicrosoftADCommandOutput
+} from "./commands/CreateMicrosoftADCommand";
+import {
+ CreateSnapshotCommand,
+ CreateSnapshotCommandInput,
+ CreateSnapshotCommandOutput
+} from "./commands/CreateSnapshotCommand";
+import {
+ CreateTrustCommand,
+ CreateTrustCommandInput,
+ CreateTrustCommandOutput
+} from "./commands/CreateTrustCommand";
+import {
+ DeleteConditionalForwarderCommand,
+ DeleteConditionalForwarderCommandInput,
+ DeleteConditionalForwarderCommandOutput
+} from "./commands/DeleteConditionalForwarderCommand";
+import {
+ DeleteDirectoryCommand,
+ DeleteDirectoryCommandInput,
+ DeleteDirectoryCommandOutput
+} from "./commands/DeleteDirectoryCommand";
+import {
+ DeleteLogSubscriptionCommand,
+ DeleteLogSubscriptionCommandInput,
+ DeleteLogSubscriptionCommandOutput
+} from "./commands/DeleteLogSubscriptionCommand";
+import {
+ DeleteSnapshotCommand,
+ DeleteSnapshotCommandInput,
+ DeleteSnapshotCommandOutput
+} from "./commands/DeleteSnapshotCommand";
+import {
+ DeleteTrustCommand,
+ DeleteTrustCommandInput,
+ DeleteTrustCommandOutput
+} from "./commands/DeleteTrustCommand";
+import {
+ DeregisterCertificateCommand,
+ DeregisterCertificateCommandInput,
+ DeregisterCertificateCommandOutput
+} from "./commands/DeregisterCertificateCommand";
+import {
+ DeregisterEventTopicCommand,
+ DeregisterEventTopicCommandInput,
+ DeregisterEventTopicCommandOutput
+} from "./commands/DeregisterEventTopicCommand";
+import {
+ DescribeCertificateCommand,
+ DescribeCertificateCommandInput,
+ DescribeCertificateCommandOutput
+} from "./commands/DescribeCertificateCommand";
+import {
+ DescribeConditionalForwardersCommand,
+ DescribeConditionalForwardersCommandInput,
+ DescribeConditionalForwardersCommandOutput
+} from "./commands/DescribeConditionalForwardersCommand";
+import {
+ DescribeDirectoriesCommand,
+ DescribeDirectoriesCommandInput,
+ DescribeDirectoriesCommandOutput
+} from "./commands/DescribeDirectoriesCommand";
+import {
+ DescribeDomainControllersCommand,
+ DescribeDomainControllersCommandInput,
+ DescribeDomainControllersCommandOutput
+} from "./commands/DescribeDomainControllersCommand";
+import {
+ DescribeEventTopicsCommand,
+ DescribeEventTopicsCommandInput,
+ DescribeEventTopicsCommandOutput
+} from "./commands/DescribeEventTopicsCommand";
+import {
+ DescribeLDAPSSettingsCommand,
+ DescribeLDAPSSettingsCommandInput,
+ DescribeLDAPSSettingsCommandOutput
+} from "./commands/DescribeLDAPSSettingsCommand";
+import {
+ DescribeSharedDirectoriesCommand,
+ DescribeSharedDirectoriesCommandInput,
+ DescribeSharedDirectoriesCommandOutput
+} from "./commands/DescribeSharedDirectoriesCommand";
+import {
+ DescribeSnapshotsCommand,
+ DescribeSnapshotsCommandInput,
+ DescribeSnapshotsCommandOutput
+} from "./commands/DescribeSnapshotsCommand";
+import {
+ DescribeTrustsCommand,
+ DescribeTrustsCommandInput,
+ DescribeTrustsCommandOutput
+} from "./commands/DescribeTrustsCommand";
+import {
+ DisableLDAPSCommand,
+ DisableLDAPSCommandInput,
+ DisableLDAPSCommandOutput
+} from "./commands/DisableLDAPSCommand";
+import {
+ DisableRadiusCommand,
+ DisableRadiusCommandInput,
+ DisableRadiusCommandOutput
+} from "./commands/DisableRadiusCommand";
+import {
+ DisableSsoCommand,
+ DisableSsoCommandInput,
+ DisableSsoCommandOutput
+} from "./commands/DisableSsoCommand";
+import {
+ EnableLDAPSCommand,
+ EnableLDAPSCommandInput,
+ EnableLDAPSCommandOutput
+} from "./commands/EnableLDAPSCommand";
+import {
+ EnableRadiusCommand,
+ EnableRadiusCommandInput,
+ EnableRadiusCommandOutput
+} from "./commands/EnableRadiusCommand";
+import {
+ EnableSsoCommand,
+ EnableSsoCommandInput,
+ EnableSsoCommandOutput
+} from "./commands/EnableSsoCommand";
+import {
+ GetDirectoryLimitsCommand,
+ GetDirectoryLimitsCommandInput,
+ GetDirectoryLimitsCommandOutput
+} from "./commands/GetDirectoryLimitsCommand";
+import {
+ GetSnapshotLimitsCommand,
+ GetSnapshotLimitsCommandInput,
+ GetSnapshotLimitsCommandOutput
+} from "./commands/GetSnapshotLimitsCommand";
+import {
+ ListCertificatesCommand,
+ ListCertificatesCommandInput,
+ ListCertificatesCommandOutput
+} from "./commands/ListCertificatesCommand";
+import {
+ ListIpRoutesCommand,
+ ListIpRoutesCommandInput,
+ ListIpRoutesCommandOutput
+} from "./commands/ListIpRoutesCommand";
+import {
+ ListLogSubscriptionsCommand,
+ ListLogSubscriptionsCommandInput,
+ ListLogSubscriptionsCommandOutput
+} from "./commands/ListLogSubscriptionsCommand";
+import {
+ ListSchemaExtensionsCommand,
+ ListSchemaExtensionsCommandInput,
+ ListSchemaExtensionsCommandOutput
+} from "./commands/ListSchemaExtensionsCommand";
+import {
+ ListTagsForResourceCommand,
+ ListTagsForResourceCommandInput,
+ ListTagsForResourceCommandOutput
+} from "./commands/ListTagsForResourceCommand";
+import {
+ RegisterCertificateCommand,
+ RegisterCertificateCommandInput,
+ RegisterCertificateCommandOutput
+} from "./commands/RegisterCertificateCommand";
+import {
+ RegisterEventTopicCommand,
+ RegisterEventTopicCommandInput,
+ RegisterEventTopicCommandOutput
+} from "./commands/RegisterEventTopicCommand";
+import {
+ RejectSharedDirectoryCommand,
+ RejectSharedDirectoryCommandInput,
+ RejectSharedDirectoryCommandOutput
+} from "./commands/RejectSharedDirectoryCommand";
+import {
+ RemoveIpRoutesCommand,
+ RemoveIpRoutesCommandInput,
+ RemoveIpRoutesCommandOutput
+} from "./commands/RemoveIpRoutesCommand";
+import {
+ RemoveTagsFromResourceCommand,
+ RemoveTagsFromResourceCommandInput,
+ RemoveTagsFromResourceCommandOutput
+} from "./commands/RemoveTagsFromResourceCommand";
+import {
+ ResetUserPasswordCommand,
+ ResetUserPasswordCommandInput,
+ ResetUserPasswordCommandOutput
+} from "./commands/ResetUserPasswordCommand";
+import {
+ RestoreFromSnapshotCommand,
+ RestoreFromSnapshotCommandInput,
+ RestoreFromSnapshotCommandOutput
+} from "./commands/RestoreFromSnapshotCommand";
+import {
+ ShareDirectoryCommand,
+ ShareDirectoryCommandInput,
+ ShareDirectoryCommandOutput
+} from "./commands/ShareDirectoryCommand";
+import {
+ StartSchemaExtensionCommand,
+ StartSchemaExtensionCommandInput,
+ StartSchemaExtensionCommandOutput
+} from "./commands/StartSchemaExtensionCommand";
+import {
+ UnshareDirectoryCommand,
+ UnshareDirectoryCommandInput,
+ UnshareDirectoryCommandOutput
+} from "./commands/UnshareDirectoryCommand";
+import {
+ UpdateConditionalForwarderCommand,
+ UpdateConditionalForwarderCommandInput,
+ UpdateConditionalForwarderCommandOutput
+} from "./commands/UpdateConditionalForwarderCommand";
+import {
+ UpdateNumberOfDomainControllersCommand,
+ UpdateNumberOfDomainControllersCommandInput,
+ UpdateNumberOfDomainControllersCommandOutput
+} from "./commands/UpdateNumberOfDomainControllersCommand";
+import {
+ UpdateRadiusCommand,
+ UpdateRadiusCommandInput,
+ UpdateRadiusCommandOutput
+} from "./commands/UpdateRadiusCommand";
+import {
+ UpdateTrustCommand,
+ UpdateTrustCommandInput,
+ UpdateTrustCommandOutput
+} from "./commands/UpdateTrustCommand";
+import {
+ VerifyTrustCommand,
+ VerifyTrustCommandInput,
+ VerifyTrustCommandOutput
+} from "./commands/VerifyTrustCommand";
+import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
+
+/**
+ *
+ * AWS Directory Service
+ *
AWS Directory Service is a web service that makes it easy for you to setup and run directories in the AWS cloud, or connect your AWS resources with an existing on-premises Microsoft Active Directory. This guide provides detailed information about AWS Directory Service operations, data types, parameters, and errors. For information about AWS Directory Services features, see AWS Directory Service and the AWS Directory Service Administration Guide.
+ *
+ * AWS 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 AWS Directory Service and other AWS services. For more information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web
+ * Services.
+ *
+ *
+ */
+export class DirectoryService extends DirectoryServiceClient {
+ /**
+ *
+ * Accepts a directory sharing request that was sent from the directory owner account.
+ *
+ */
+ public acceptSharedDirectory(
+ args: AcceptSharedDirectoryCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public acceptSharedDirectory(
+ args: AcceptSharedDirectoryCommandInput,
+ cb: (err: any, data?: AcceptSharedDirectoryCommandOutput) => void
+ ): void;
+ public acceptSharedDirectory(
+ args: AcceptSharedDirectoryCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: AcceptSharedDirectoryCommandOutput) => void
+ ): void;
+ public acceptSharedDirectory(
+ args: AcceptSharedDirectoryCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: AcceptSharedDirectoryCommandOutput) => void),
+ cb?: (err: any, data?: AcceptSharedDirectoryCommandOutput) => void
+ ): Promise | void {
+ const command = new AcceptSharedDirectoryCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ *
+ * If the DNS server for your on-premises 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 AWS 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 AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.
+ *
+ *
+ */
+ public addIpRoutes(
+ args: AddIpRoutesCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public addIpRoutes(
+ args: AddIpRoutesCommandInput,
+ cb: (err: any, data?: AddIpRoutesCommandOutput) => void
+ ): void;
+ public addIpRoutes(
+ args: AddIpRoutesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: AddIpRoutesCommandOutput) => void
+ ): void;
+ public addIpRoutes(
+ args: AddIpRoutesCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: AddIpRoutesCommandOutput) => void),
+ cb?: (err: any, data?: AddIpRoutesCommandOutput) => void
+ ): Promise | void {
+ const command = new AddIpRoutesCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Adds or overwrites one or more tags for the specified directory. Each directory can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique to each resource.
+ *
+ *
+ */
+ public addTagsToResource(
+ args: AddTagsToResourceCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public addTagsToResource(
+ args: AddTagsToResourceCommandInput,
+ cb: (err: any, data?: AddTagsToResourceCommandOutput) => void
+ ): void;
+ public addTagsToResource(
+ args: AddTagsToResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: AddTagsToResourceCommandOutput) => void
+ ): void;
+ public addTagsToResource(
+ args: AddTagsToResourceCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: AddTagsToResourceCommandOutput) => void),
+ cb?: (err: any, data?: AddTagsToResourceCommandOutput) => void
+ ): Promise | void {
+ const command = new AddTagsToResourceCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Cancels an in-progress schema extension to a Microsoft AD directory. Once a schema extension has started replicating to all domain controllers, the task can no longer be canceled. A schema extension can be canceled during any of the following states; Initializing
, CreatingSnapshot
, and UpdatingSchema
.
+ *
+ *
+ */
+ public cancelSchemaExtension(
+ args: CancelSchemaExtensionCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public cancelSchemaExtension(
+ args: CancelSchemaExtensionCommandInput,
+ cb: (err: any, data?: CancelSchemaExtensionCommandOutput) => void
+ ): void;
+ public cancelSchemaExtension(
+ args: CancelSchemaExtensionCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CancelSchemaExtensionCommandOutput) => void
+ ): void;
+ public cancelSchemaExtension(
+ args: CancelSchemaExtensionCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CancelSchemaExtensionCommandOutput) => void),
+ cb?: (err: any, data?: CancelSchemaExtensionCommandOutput) => void
+ ): Promise | void {
+ const command = new CancelSchemaExtensionCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Creates an AD Connector to connect to an on-premises 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 AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.
+ *
+ *
+ */
+ public connectDirectory(
+ args: ConnectDirectoryCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public connectDirectory(
+ args: ConnectDirectoryCommandInput,
+ cb: (err: any, data?: ConnectDirectoryCommandOutput) => void
+ ): void;
+ public connectDirectory(
+ args: ConnectDirectoryCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ConnectDirectoryCommandOutput) => void
+ ): void;
+ public connectDirectory(
+ args: ConnectDirectoryCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ConnectDirectoryCommandOutput) => void),
+ cb?: (err: any, data?: ConnectDirectoryCommandOutput) => void
+ ): Promise | void {
+ const command = new ConnectDirectoryCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Creates an alias for a directory and assigns the alias to the directory. The alias is used
+ * to construct the access URL for the directory, such as
+ * http://.awsapps.com
.
+ *
+ * After an alias has been created, it cannot be deleted or reused, so this operation should only be used when absolutely necessary.
+ *
+ *
+ *
+ */
+ public createAlias(
+ args: CreateAliasCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createAlias(
+ args: CreateAliasCommandInput,
+ cb: (err: any, data?: CreateAliasCommandOutput) => void
+ ): void;
+ public createAlias(
+ args: CreateAliasCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateAliasCommandOutput) => void
+ ): void;
+ public createAlias(
+ args: CreateAliasCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateAliasCommandOutput) => void),
+ cb?: (err: any, data?: CreateAliasCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateAliasCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Creates a computer account in the specified directory, and joins the computer to the directory.
+ *
+ *
+ */
+ public createComputer(
+ args: CreateComputerCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createComputer(
+ args: CreateComputerCommandInput,
+ cb: (err: any, data?: CreateComputerCommandOutput) => void
+ ): void;
+ public createComputer(
+ args: CreateComputerCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateComputerCommandOutput) => void
+ ): void;
+ public createComputer(
+ args: CreateComputerCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateComputerCommandOutput) => void),
+ cb?: (err: any, data?: CreateComputerCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateComputerCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Creates a conditional forwarder associated with your AWS directory. Conditional forwarders are required in order to set up a trust relationship with another domain. The conditional forwarder points to the trusted domain.
+ *
+ *
+ */
+ public createConditionalForwarder(
+ args: CreateConditionalForwarderCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createConditionalForwarder(
+ args: CreateConditionalForwarderCommandInput,
+ cb: (err: any, data?: CreateConditionalForwarderCommandOutput) => void
+ ): void;
+ public createConditionalForwarder(
+ args: CreateConditionalForwarderCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateConditionalForwarderCommandOutput) => void
+ ): void;
+ public createConditionalForwarder(
+ args: CreateConditionalForwarderCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateConditionalForwarderCommandOutput) => void),
+ cb?: (err: any, data?: CreateConditionalForwarderCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateConditionalForwarderCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Creates a Simple AD directory. For more information, see Simple Active Directory in the AWS 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 AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.
+ *
+ *
+ */
+ public createDirectory(
+ args: CreateDirectoryCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createDirectory(
+ args: CreateDirectoryCommandInput,
+ cb: (err: any, data?: CreateDirectoryCommandOutput) => void
+ ): void;
+ public createDirectory(
+ args: CreateDirectoryCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateDirectoryCommandOutput) => void
+ ): void;
+ public createDirectory(
+ args: CreateDirectoryCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateDirectoryCommandOutput) => void),
+ cb?: (err: any, data?: CreateDirectoryCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateDirectoryCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Creates a subscription to forward real-time Directory Service domain controller
+ * security logs to the specified Amazon CloudWatch log group in your AWS account.
+ *
+ */
+ public createLogSubscription(
+ args: CreateLogSubscriptionCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createLogSubscription(
+ args: CreateLogSubscriptionCommandInput,
+ cb: (err: any, data?: CreateLogSubscriptionCommandOutput) => void
+ ): void;
+ public createLogSubscription(
+ args: CreateLogSubscriptionCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateLogSubscriptionCommandOutput) => void
+ ): void;
+ public createLogSubscription(
+ args: CreateLogSubscriptionCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateLogSubscriptionCommandOutput) => void),
+ cb?: (err: any, data?: CreateLogSubscriptionCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateLogSubscriptionCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Creates a Microsoft AD directory in the AWS Cloud. For more information, see AWS Managed Microsoft AD in the AWS 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 AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.
+ *
+ *
+ */
+ public createMicrosoftAD(
+ args: CreateMicrosoftADCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createMicrosoftAD(
+ args: CreateMicrosoftADCommandInput,
+ cb: (err: any, data?: CreateMicrosoftADCommandOutput) => void
+ ): void;
+ public createMicrosoftAD(
+ args: CreateMicrosoftADCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateMicrosoftADCommandOutput) => void
+ ): void;
+ public createMicrosoftAD(
+ args: CreateMicrosoftADCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateMicrosoftADCommandOutput) => void),
+ cb?: (err: any, data?: CreateMicrosoftADCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateMicrosoftADCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Creates a snapshot of a Simple AD or Microsoft AD directory in the AWS cloud.
+ *
+ * You cannot take snapshots of AD Connector directories.
+ *
+ *
+ *
+ */
+ public createSnapshot(
+ args: CreateSnapshotCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createSnapshot(
+ args: CreateSnapshotCommandInput,
+ cb: (err: any, data?: CreateSnapshotCommandOutput) => void
+ ): void;
+ public createSnapshot(
+ args: CreateSnapshotCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateSnapshotCommandOutput) => void
+ ): void;
+ public createSnapshot(
+ args: CreateSnapshotCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateSnapshotCommandOutput) => void),
+ cb?: (err: any, data?: CreateSnapshotCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateSnapshotCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * AWS Directory Service for Microsoft Active Directory allows you to configure trust relationships. For example, you can establish a trust between your AWS Managed Microsoft AD directory, and your existing on-premises 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 AWS side of a trust relationship between an AWS Managed Microsoft AD directory and an external domain. You can create either a forest trust or an external trust.
+ *
+ *
+ */
+ public createTrust(
+ args: CreateTrustCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public createTrust(
+ args: CreateTrustCommandInput,
+ cb: (err: any, data?: CreateTrustCommandOutput) => void
+ ): void;
+ public createTrust(
+ args: CreateTrustCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateTrustCommandOutput) => void
+ ): void;
+ public createTrust(
+ args: CreateTrustCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: CreateTrustCommandOutput) => void),
+ cb?: (err: any, data?: CreateTrustCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateTrustCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Deletes a conditional forwarder that has been set up for your AWS directory.
+ *
+ *
+ */
+ public deleteConditionalForwarder(
+ args: DeleteConditionalForwarderCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public deleteConditionalForwarder(
+ args: DeleteConditionalForwarderCommandInput,
+ cb: (err: any, data?: DeleteConditionalForwarderCommandOutput) => void
+ ): void;
+ public deleteConditionalForwarder(
+ args: DeleteConditionalForwarderCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteConditionalForwarderCommandOutput) => void
+ ): void;
+ public deleteConditionalForwarder(
+ args: DeleteConditionalForwarderCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DeleteConditionalForwarderCommandOutput) => void),
+ cb?: (err: any, data?: DeleteConditionalForwarderCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteConditionalForwarderCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Deletes an AWS 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 AWS Directory Service API Permissions: Actions, Resources, and Conditions Reference.
+ *
+ *
+ */
+ public deleteDirectory(
+ args: DeleteDirectoryCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public deleteDirectory(
+ args: DeleteDirectoryCommandInput,
+ cb: (err: any, data?: DeleteDirectoryCommandOutput) => void
+ ): void;
+ public deleteDirectory(
+ args: DeleteDirectoryCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteDirectoryCommandOutput) => void
+ ): void;
+ public deleteDirectory(
+ args: DeleteDirectoryCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DeleteDirectoryCommandOutput) => void),
+ cb?: (err: any, data?: DeleteDirectoryCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteDirectoryCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Deletes the specified log subscription.
+ *
+ */
+ public deleteLogSubscription(
+ args: DeleteLogSubscriptionCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public deleteLogSubscription(
+ args: DeleteLogSubscriptionCommandInput,
+ cb: (err: any, data?: DeleteLogSubscriptionCommandOutput) => void
+ ): void;
+ public deleteLogSubscription(
+ args: DeleteLogSubscriptionCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteLogSubscriptionCommandOutput) => void
+ ): void;
+ public deleteLogSubscription(
+ args: DeleteLogSubscriptionCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DeleteLogSubscriptionCommandOutput) => void),
+ cb?: (err: any, data?: DeleteLogSubscriptionCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteLogSubscriptionCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Deletes a directory snapshot.
+ *
+ *
+ */
+ public deleteSnapshot(
+ args: DeleteSnapshotCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public deleteSnapshot(
+ args: DeleteSnapshotCommandInput,
+ cb: (err: any, data?: DeleteSnapshotCommandOutput) => void
+ ): void;
+ public deleteSnapshot(
+ args: DeleteSnapshotCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteSnapshotCommandOutput) => void
+ ): void;
+ public deleteSnapshot(
+ args: DeleteSnapshotCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DeleteSnapshotCommandOutput) => void),
+ cb?: (err: any, data?: DeleteSnapshotCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteSnapshotCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Deletes an existing trust relationship between your AWS Managed Microsoft AD directory and an external domain.
+ *
+ *
+ */
+ public deleteTrust(
+ args: DeleteTrustCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public deleteTrust(
+ args: DeleteTrustCommandInput,
+ cb: (err: any, data?: DeleteTrustCommandOutput) => void
+ ): void;
+ public deleteTrust(
+ args: DeleteTrustCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteTrustCommandOutput) => void
+ ): void;
+ public deleteTrust(
+ args: DeleteTrustCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DeleteTrustCommandOutput) => void),
+ cb?: (err: any, data?: DeleteTrustCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteTrustCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Deletes from the system the certificate that was registered for a secured LDAP
+ * connection.
+ *
+ */
+ public deregisterCertificate(
+ args: DeregisterCertificateCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public deregisterCertificate(
+ args: DeregisterCertificateCommandInput,
+ cb: (err: any, data?: DeregisterCertificateCommandOutput) => void
+ ): void;
+ public deregisterCertificate(
+ args: DeregisterCertificateCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeregisterCertificateCommandOutput) => void
+ ): void;
+ public deregisterCertificate(
+ args: DeregisterCertificateCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DeregisterCertificateCommandOutput) => void),
+ cb?: (err: any, data?: DeregisterCertificateCommandOutput) => void
+ ): Promise | void {
+ const command = new DeregisterCertificateCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Removes the specified directory as a publisher to the specified SNS topic.
+ *
+ *
+ */
+ public deregisterEventTopic(
+ args: DeregisterEventTopicCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public deregisterEventTopic(
+ args: DeregisterEventTopicCommandInput,
+ cb: (err: any, data?: DeregisterEventTopicCommandOutput) => void
+ ): void;
+ public deregisterEventTopic(
+ args: DeregisterEventTopicCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeregisterEventTopicCommandOutput) => void
+ ): void;
+ public deregisterEventTopic(
+ args: DeregisterEventTopicCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DeregisterEventTopicCommandOutput) => void),
+ cb?: (err: any, data?: DeregisterEventTopicCommandOutput) => void
+ ): Promise | void {
+ const command = new DeregisterEventTopicCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Displays information about the certificate registered for a secured LDAP connection.
+ *
+ */
+ public describeCertificate(
+ args: DescribeCertificateCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeCertificate(
+ args: DescribeCertificateCommandInput,
+ cb: (err: any, data?: DescribeCertificateCommandOutput) => void
+ ): void;
+ public describeCertificate(
+ args: DescribeCertificateCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeCertificateCommandOutput) => void
+ ): void;
+ public describeCertificate(
+ args: DescribeCertificateCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeCertificateCommandOutput) => void),
+ cb?: (err: any, data?: DescribeCertificateCommandOutput) => void
+ ): Promise | void {
+ const command = new DescribeCertificateCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Obtains information about the conditional forwarders for this account.
+ * If no input parameters are provided for RemoteDomainNames, this request describes all conditional forwarders for the specified directory ID.
+ *
+ *
+ */
+ public describeConditionalForwarders(
+ args: DescribeConditionalForwardersCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeConditionalForwarders(
+ args: DescribeConditionalForwardersCommandInput,
+ cb: (err: any, data?: DescribeConditionalForwardersCommandOutput) => void
+ ): void;
+ public describeConditionalForwarders(
+ args: DescribeConditionalForwardersCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeConditionalForwardersCommandOutput) => void
+ ): void;
+ public describeConditionalForwarders(
+ args: DescribeConditionalForwardersCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeConditionalForwardersCommandOutput) => void),
+ cb?: (err: any, data?: DescribeConditionalForwardersCommandOutput) => void
+ ): Promise | void {
+ const command = new DescribeConditionalForwardersCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Obtains information about the directories that belong to this account.
+ * You can retrieve information about specific directories by passing the directory
+ * identifiers in the DirectoryIds
parameter. Otherwise, all directories that belong to
+ * the current account are returned.
+ * This operation supports pagination with the use of the NextToken
request and
+ * response parameters. If more results are available, the
+ * DescribeDirectoriesResult.NextToken
member contains a token that you pass in the
+ * next call to DescribeDirectories to retrieve the next set of items.
+ * You can also specify a maximum number of return results with the Limit
+ * parameter.
+ *
+ *
+ */
+ public describeDirectories(
+ args: DescribeDirectoriesCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeDirectories(
+ args: DescribeDirectoriesCommandInput,
+ cb: (err: any, data?: DescribeDirectoriesCommandOutput) => void
+ ): void;
+ public describeDirectories(
+ args: DescribeDirectoriesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeDirectoriesCommandOutput) => void
+ ): void;
+ public describeDirectories(
+ args: DescribeDirectoriesCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeDirectoriesCommandOutput) => void),
+ cb?: (err: any, data?: DescribeDirectoriesCommandOutput) => void
+ ): Promise | void {
+ const command = new DescribeDirectoriesCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Provides information about any domain controllers in your directory.
+ *
+ */
+ public describeDomainControllers(
+ args: DescribeDomainControllersCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeDomainControllers(
+ args: DescribeDomainControllersCommandInput,
+ cb: (err: any, data?: DescribeDomainControllersCommandOutput) => void
+ ): void;
+ public describeDomainControllers(
+ args: DescribeDomainControllersCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeDomainControllersCommandOutput) => void
+ ): void;
+ public describeDomainControllers(
+ args: DescribeDomainControllersCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeDomainControllersCommandOutput) => void),
+ cb?: (err: any, data?: DescribeDomainControllersCommandOutput) => void
+ ): Promise | void {
+ const command = new DescribeDomainControllersCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Obtains information about which SNS topics receive status messages from the specified directory.
+ * If no input parameters are provided, such as DirectoryId or TopicName, this request describes all of the associations in the account.
+ *
+ *
+ */
+ public describeEventTopics(
+ args: DescribeEventTopicsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeEventTopics(
+ args: DescribeEventTopicsCommandInput,
+ cb: (err: any, data?: DescribeEventTopicsCommandOutput) => void
+ ): void;
+ public describeEventTopics(
+ args: DescribeEventTopicsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeEventTopicsCommandOutput) => void
+ ): void;
+ public describeEventTopics(
+ args: DescribeEventTopicsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeEventTopicsCommandOutput) => void),
+ cb?: (err: any, data?: DescribeEventTopicsCommandOutput) => void
+ ): Promise | void {
+ const command = new DescribeEventTopicsCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Describes the status of LDAP security for the specified directory.
+ *
+ */
+ public describeLDAPSSettings(
+ args: DescribeLDAPSSettingsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeLDAPSSettings(
+ args: DescribeLDAPSSettingsCommandInput,
+ cb: (err: any, data?: DescribeLDAPSSettingsCommandOutput) => void
+ ): void;
+ public describeLDAPSSettings(
+ args: DescribeLDAPSSettingsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeLDAPSSettingsCommandOutput) => void
+ ): void;
+ public describeLDAPSSettings(
+ args: DescribeLDAPSSettingsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeLDAPSSettingsCommandOutput) => void),
+ cb?: (err: any, data?: DescribeLDAPSSettingsCommandOutput) => void
+ ): Promise | void {
+ const command = new DescribeLDAPSSettingsCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Returns the shared directories in your account.
+ *
+ */
+ public describeSharedDirectories(
+ args: DescribeSharedDirectoriesCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeSharedDirectories(
+ args: DescribeSharedDirectoriesCommandInput,
+ cb: (err: any, data?: DescribeSharedDirectoriesCommandOutput) => void
+ ): void;
+ public describeSharedDirectories(
+ args: DescribeSharedDirectoriesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeSharedDirectoriesCommandOutput) => void
+ ): void;
+ public describeSharedDirectories(
+ args: DescribeSharedDirectoriesCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeSharedDirectoriesCommandOutput) => void),
+ cb?: (err: any, data?: DescribeSharedDirectoriesCommandOutput) => void
+ ): Promise | void {
+ const command = new DescribeSharedDirectoriesCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Obtains information about the directory snapshots that belong to this account.
+ * This operation supports pagination with the use of the NextToken request and
+ * response parameters. If more results are available, the DescribeSnapshots.NextToken
+ * member contains a token that you pass in the next call to DescribeSnapshots to
+ * retrieve the next set of items.
+ * You can also specify a maximum number of return results with the Limit
+ * parameter.
+ *
+ *
+ */
+ public describeSnapshots(
+ args: DescribeSnapshotsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeSnapshots(
+ args: DescribeSnapshotsCommandInput,
+ cb: (err: any, data?: DescribeSnapshotsCommandOutput) => void
+ ): void;
+ public describeSnapshots(
+ args: DescribeSnapshotsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeSnapshotsCommandOutput) => void
+ ): void;
+ public describeSnapshots(
+ args: DescribeSnapshotsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeSnapshotsCommandOutput) => void),
+ cb?: (err: any, data?: DescribeSnapshotsCommandOutput) => void
+ ): Promise | void {
+ const command = new DescribeSnapshotsCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Obtains information about the trust relationships for this account.
+ * If no input parameters are provided, such as DirectoryId or TrustIds, this request describes all the trust relationships belonging to the account.
+ *
+ *
+ */
+ public describeTrusts(
+ args: DescribeTrustsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public describeTrusts(
+ args: DescribeTrustsCommandInput,
+ cb: (err: any, data?: DescribeTrustsCommandOutput) => void
+ ): void;
+ public describeTrusts(
+ args: DescribeTrustsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DescribeTrustsCommandOutput) => void
+ ): void;
+ public describeTrusts(
+ args: DescribeTrustsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DescribeTrustsCommandOutput) => void),
+ cb?: (err: any, data?: DescribeTrustsCommandOutput) => void
+ ): Promise | void {
+ const command = new DescribeTrustsCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Deactivates LDAP secure calls for the specified directory.
+ *
+ */
+ public disableLDAPS(
+ args: DisableLDAPSCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public disableLDAPS(
+ args: DisableLDAPSCommandInput,
+ cb: (err: any, data?: DisableLDAPSCommandOutput) => void
+ ): void;
+ public disableLDAPS(
+ args: DisableLDAPSCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DisableLDAPSCommandOutput) => void
+ ): void;
+ public disableLDAPS(
+ args: DisableLDAPSCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DisableLDAPSCommandOutput) => void),
+ cb?: (err: any, data?: DisableLDAPSCommandOutput) => void
+ ): Promise | void {
+ const command = new DisableLDAPSCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Disables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD directory.
+ *
+ *
+ */
+ public disableRadius(
+ args: DisableRadiusCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public disableRadius(
+ args: DisableRadiusCommandInput,
+ cb: (err: any, data?: DisableRadiusCommandOutput) => void
+ ): void;
+ public disableRadius(
+ args: DisableRadiusCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DisableRadiusCommandOutput) => void
+ ): void;
+ public disableRadius(
+ args: DisableRadiusCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DisableRadiusCommandOutput) => void),
+ cb?: (err: any, data?: DisableRadiusCommandOutput) => void
+ ): Promise | void {
+ const command = new DisableRadiusCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Disables single-sign on for a directory.
+ *
+ *
+ */
+ public disableSso(
+ args: DisableSsoCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public disableSso(
+ args: DisableSsoCommandInput,
+ cb: (err: any, data?: DisableSsoCommandOutput) => void
+ ): void;
+ public disableSso(
+ args: DisableSsoCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DisableSsoCommandOutput) => void
+ ): void;
+ public disableSso(
+ args: DisableSsoCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: DisableSsoCommandOutput) => void),
+ cb?: (err: any, data?: DisableSsoCommandOutput) => void
+ ): Promise | void {
+ const command = new DisableSsoCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Activates the switch for the specific directory to always use LDAP secure calls.
+ *
+ */
+ public enableLDAPS(
+ args: EnableLDAPSCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public enableLDAPS(
+ args: EnableLDAPSCommandInput,
+ cb: (err: any, data?: EnableLDAPSCommandOutput) => void
+ ): void;
+ public enableLDAPS(
+ args: EnableLDAPSCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: EnableLDAPSCommandOutput) => void
+ ): void;
+ public enableLDAPS(
+ args: EnableLDAPSCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: EnableLDAPSCommandOutput) => void),
+ cb?: (err: any, data?: EnableLDAPSCommandOutput) => void
+ ): Promise | void {
+ const command = new EnableLDAPSCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Enables multi-factor authentication (MFA) with the Remote Authentication Dial In User Service (RADIUS) server for an AD Connector or Microsoft AD directory.
+ *
+ *
+ */
+ public enableRadius(
+ args: EnableRadiusCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public enableRadius(
+ args: EnableRadiusCommandInput,
+ cb: (err: any, data?: EnableRadiusCommandOutput) => void
+ ): void;
+ public enableRadius(
+ args: EnableRadiusCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: EnableRadiusCommandOutput) => void
+ ): void;
+ public enableRadius(
+ args: EnableRadiusCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: EnableRadiusCommandOutput) => void),
+ cb?: (err: any, data?: EnableRadiusCommandOutput) => void
+ ): Promise | void {
+ const command = new EnableRadiusCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Enables single sign-on for a directory. Single sign-on allows users in your directory to access certain AWS services from a computer joined to the directory without having to enter their credentials separately.
+ *
+ *
+ */
+ public enableSso(
+ args: EnableSsoCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public enableSso(
+ args: EnableSsoCommandInput,
+ cb: (err: any, data?: EnableSsoCommandOutput) => void
+ ): void;
+ public enableSso(
+ args: EnableSsoCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: EnableSsoCommandOutput) => void
+ ): void;
+ public enableSso(
+ args: EnableSsoCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: EnableSsoCommandOutput) => void),
+ cb?: (err: any, data?: EnableSsoCommandOutput) => void
+ ): Promise | void {
+ const command = new EnableSsoCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Obtains directory limit information for the current Region.
+ *
+ *
+ */
+ public getDirectoryLimits(
+ args: GetDirectoryLimitsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public getDirectoryLimits(
+ args: GetDirectoryLimitsCommandInput,
+ cb: (err: any, data?: GetDirectoryLimitsCommandOutput) => void
+ ): void;
+ public getDirectoryLimits(
+ args: GetDirectoryLimitsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetDirectoryLimitsCommandOutput) => void
+ ): void;
+ public getDirectoryLimits(
+ args: GetDirectoryLimitsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: GetDirectoryLimitsCommandOutput) => void),
+ cb?: (err: any, data?: GetDirectoryLimitsCommandOutput) => void
+ ): Promise | void {
+ const command = new GetDirectoryLimitsCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Obtains the manual snapshot limits for a directory.
+ *
+ *
+ */
+ public getSnapshotLimits(
+ args: GetSnapshotLimitsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public getSnapshotLimits(
+ args: GetSnapshotLimitsCommandInput,
+ cb: (err: any, data?: GetSnapshotLimitsCommandOutput) => void
+ ): void;
+ public getSnapshotLimits(
+ args: GetSnapshotLimitsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetSnapshotLimitsCommandOutput) => void
+ ): void;
+ public getSnapshotLimits(
+ args: GetSnapshotLimitsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: GetSnapshotLimitsCommandOutput) => void),
+ cb?: (err: any, data?: GetSnapshotLimitsCommandOutput) => void
+ ): Promise | void {
+ const command = new GetSnapshotLimitsCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * For the specified directory, lists all the certificates registered for a secured LDAP connection.
+ *
+ */
+ public listCertificates(
+ args: ListCertificatesCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listCertificates(
+ args: ListCertificatesCommandInput,
+ cb: (err: any, data?: ListCertificatesCommandOutput) => void
+ ): void;
+ public listCertificates(
+ args: ListCertificatesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListCertificatesCommandOutput) => void
+ ): void;
+ public listCertificates(
+ args: ListCertificatesCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListCertificatesCommandOutput) => void),
+ cb?: (err: any, data?: ListCertificatesCommandOutput) => void
+ ): Promise | void {
+ const command = new ListCertificatesCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Lists the address blocks that you have added to a directory.
+ *
+ *
+ */
+ public listIpRoutes(
+ args: ListIpRoutesCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listIpRoutes(
+ args: ListIpRoutesCommandInput,
+ cb: (err: any, data?: ListIpRoutesCommandOutput) => void
+ ): void;
+ public listIpRoutes(
+ args: ListIpRoutesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListIpRoutesCommandOutput) => void
+ ): void;
+ public listIpRoutes(
+ args: ListIpRoutesCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListIpRoutesCommandOutput) => void),
+ cb?: (err: any, data?: ListIpRoutesCommandOutput) => void
+ ): Promise | void {
+ const command = new ListIpRoutesCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Lists the active log subscriptions for the AWS account.
+ *
+ */
+ public listLogSubscriptions(
+ args: ListLogSubscriptionsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listLogSubscriptions(
+ args: ListLogSubscriptionsCommandInput,
+ cb: (err: any, data?: ListLogSubscriptionsCommandOutput) => void
+ ): void;
+ public listLogSubscriptions(
+ args: ListLogSubscriptionsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListLogSubscriptionsCommandOutput) => void
+ ): void;
+ public listLogSubscriptions(
+ args: ListLogSubscriptionsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListLogSubscriptionsCommandOutput) => void),
+ cb?: (err: any, data?: ListLogSubscriptionsCommandOutput) => void
+ ): Promise | void {
+ const command = new ListLogSubscriptionsCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Lists all schema extensions applied to a Microsoft AD Directory.
+ *
+ *
+ */
+ public listSchemaExtensions(
+ args: ListSchemaExtensionsCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listSchemaExtensions(
+ args: ListSchemaExtensionsCommandInput,
+ cb: (err: any, data?: ListSchemaExtensionsCommandOutput) => void
+ ): void;
+ public listSchemaExtensions(
+ args: ListSchemaExtensionsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListSchemaExtensionsCommandOutput) => void
+ ): void;
+ public listSchemaExtensions(
+ args: ListSchemaExtensionsCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListSchemaExtensionsCommandOutput) => void),
+ cb?: (err: any, data?: ListSchemaExtensionsCommandOutput) => void
+ ): Promise | void {
+ const command = new ListSchemaExtensionsCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Lists all tags on a directory.
+ *
+ *
+ */
+ public listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
+ ): void;
+ public listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
+ ): void;
+ public listTagsForResource(
+ args: ListTagsForResourceCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
+ cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
+ ): Promise | void {
+ const command = new ListTagsForResourceCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Registers a certificate for secured LDAP connection.
+ *
+ */
+ public registerCertificate(
+ args: RegisterCertificateCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public registerCertificate(
+ args: RegisterCertificateCommandInput,
+ cb: (err: any, data?: RegisterCertificateCommandOutput) => void
+ ): void;
+ public registerCertificate(
+ args: RegisterCertificateCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: RegisterCertificateCommandOutput) => void
+ ): void;
+ public registerCertificate(
+ args: RegisterCertificateCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: RegisterCertificateCommandOutput) => void),
+ cb?: (err: any, data?: RegisterCertificateCommandOutput) => void
+ ): Promise | void {
+ const command = new RegisterCertificateCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Associates a directory with an SNS topic. This establishes the directory as a publisher to the specified SNS topic. You can then receive email or text (SMS) messages when the status of your directory changes. You get notified if your directory goes from an Active status to an Impaired or Inoperable status. You also receive a notification when the directory returns to an Active status.
+ *
+ *
+ */
+ public registerEventTopic(
+ args: RegisterEventTopicCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public registerEventTopic(
+ args: RegisterEventTopicCommandInput,
+ cb: (err: any, data?: RegisterEventTopicCommandOutput) => void
+ ): void;
+ public registerEventTopic(
+ args: RegisterEventTopicCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: RegisterEventTopicCommandOutput) => void
+ ): void;
+ public registerEventTopic(
+ args: RegisterEventTopicCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: RegisterEventTopicCommandOutput) => void),
+ cb?: (err: any, data?: RegisterEventTopicCommandOutput) => void
+ ): Promise | void {
+ const command = new RegisterEventTopicCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Rejects a directory sharing request that was sent from the directory owner account.
+ *
+ */
+ public rejectSharedDirectory(
+ args: RejectSharedDirectoryCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public rejectSharedDirectory(
+ args: RejectSharedDirectoryCommandInput,
+ cb: (err: any, data?: RejectSharedDirectoryCommandOutput) => void
+ ): void;
+ public rejectSharedDirectory(
+ args: RejectSharedDirectoryCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: RejectSharedDirectoryCommandOutput) => void
+ ): void;
+ public rejectSharedDirectory(
+ args: RejectSharedDirectoryCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: RejectSharedDirectoryCommandOutput) => void),
+ cb?: (err: any, data?: RejectSharedDirectoryCommandOutput) => void
+ ): Promise | void {
+ const command = new RejectSharedDirectoryCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Removes IP address blocks from a directory.
+ *
+ *
+ */
+ public removeIpRoutes(
+ args: RemoveIpRoutesCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public removeIpRoutes(
+ args: RemoveIpRoutesCommandInput,
+ cb: (err: any, data?: RemoveIpRoutesCommandOutput) => void
+ ): void;
+ public removeIpRoutes(
+ args: RemoveIpRoutesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: RemoveIpRoutesCommandOutput) => void
+ ): void;
+ public removeIpRoutes(
+ args: RemoveIpRoutesCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: RemoveIpRoutesCommandOutput) => void),
+ cb?: (err: any, data?: RemoveIpRoutesCommandOutput) => void
+ ): Promise | void {
+ const command = new RemoveIpRoutesCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Removes tags from a directory.
+ *
+ *
+ */
+ public removeTagsFromResource(
+ args: RemoveTagsFromResourceCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public removeTagsFromResource(
+ args: RemoveTagsFromResourceCommandInput,
+ cb: (err: any, data?: RemoveTagsFromResourceCommandOutput) => void
+ ): void;
+ public removeTagsFromResource(
+ args: RemoveTagsFromResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: RemoveTagsFromResourceCommandOutput) => void
+ ): void;
+ public removeTagsFromResource(
+ args: RemoveTagsFromResourceCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: RemoveTagsFromResourceCommandOutput) => void),
+ cb?: (err: any, data?: RemoveTagsFromResourceCommandOutput) => void
+ ): Promise | void {
+ const command = new RemoveTagsFromResourceCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Resets the password for any user in your AWS 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 AWS 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 AWS
+ * Reserved OU. For more information about the OU structure for an AWS Managed
+ * Microsoft AD directory, see What Gets Created in the AWS Directory Service Administration
+ * Guide.
+ *
+ *
+ *
+ */
+ public resetUserPassword(
+ args: ResetUserPasswordCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public resetUserPassword(
+ args: ResetUserPasswordCommandInput,
+ cb: (err: any, data?: ResetUserPasswordCommandOutput) => void
+ ): void;
+ public resetUserPassword(
+ args: ResetUserPasswordCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ResetUserPasswordCommandOutput) => void
+ ): void;
+ public resetUserPassword(
+ args: ResetUserPasswordCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ResetUserPasswordCommandOutput) => void),
+ cb?: (err: any, data?: ResetUserPasswordCommandOutput) => void
+ ): Promise | void {
+ const command = new ResetUserPasswordCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Restores a directory using an existing directory snapshot.
+ * When you restore a directory from a snapshot, any changes made to the directory after the snapshot date are overwritten.
+ * This action returns as soon as the restore operation is initiated. You can monitor the
+ * progress of the restore operation by calling the DescribeDirectories operation with
+ * the directory identifier. When the DirectoryDescription.Stage value changes to
+ * Active
, the restore operation is complete.
+ *
+ *
+ */
+ public restoreFromSnapshot(
+ args: RestoreFromSnapshotCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public restoreFromSnapshot(
+ args: RestoreFromSnapshotCommandInput,
+ cb: (err: any, data?: RestoreFromSnapshotCommandOutput) => void
+ ): void;
+ public restoreFromSnapshot(
+ args: RestoreFromSnapshotCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: RestoreFromSnapshotCommandOutput) => void
+ ): void;
+ public restoreFromSnapshot(
+ args: RestoreFromSnapshotCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: RestoreFromSnapshotCommandOutput) => void),
+ cb?: (err: any, data?: RestoreFromSnapshotCommandOutput) => void
+ ): Promise | void {
+ const command = new RestoreFromSnapshotCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Shares a specified directory (DirectoryId
) in your AWS account (directory
+ * owner) with another AWS account (directory consumer). With this operation you can use your
+ * directory from any AWS account and from any Amazon VPC within an AWS Region.
+ * When you share your AWS Managed Microsoft AD directory, AWS 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 AWS accounts inside the same AWS organization (ORGANIZATIONS
). It
+ * also determines whether you can share the directory with any other AWS account either inside
+ * or outside of the organization (HANDSHAKE
).
+ * The ShareNotes
parameter is only used when HANDSHAKE
is called,
+ * which sends a directory sharing request to the directory consumer.
+ *
+ */
+ public shareDirectory(
+ args: ShareDirectoryCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public shareDirectory(
+ args: ShareDirectoryCommandInput,
+ cb: (err: any, data?: ShareDirectoryCommandOutput) => void
+ ): void;
+ public shareDirectory(
+ args: ShareDirectoryCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ShareDirectoryCommandOutput) => void
+ ): void;
+ public shareDirectory(
+ args: ShareDirectoryCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: ShareDirectoryCommandOutput) => void),
+ cb?: (err: any, data?: ShareDirectoryCommandOutput) => void
+ ): Promise | void {
+ const command = new ShareDirectoryCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Applies a schema extension to a Microsoft AD directory.
+ *
+ *
+ */
+ public startSchemaExtension(
+ args: StartSchemaExtensionCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public startSchemaExtension(
+ args: StartSchemaExtensionCommandInput,
+ cb: (err: any, data?: StartSchemaExtensionCommandOutput) => void
+ ): void;
+ public startSchemaExtension(
+ args: StartSchemaExtensionCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: StartSchemaExtensionCommandOutput) => void
+ ): void;
+ public startSchemaExtension(
+ args: StartSchemaExtensionCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: StartSchemaExtensionCommandOutput) => void),
+ cb?: (err: any, data?: StartSchemaExtensionCommandOutput) => void
+ ): Promise | void {
+ const command = new StartSchemaExtensionCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Stops the directory sharing between the directory owner and consumer accounts.
+ *
+ */
+ public unshareDirectory(
+ args: UnshareDirectoryCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public unshareDirectory(
+ args: UnshareDirectoryCommandInput,
+ cb: (err: any, data?: UnshareDirectoryCommandOutput) => void
+ ): void;
+ public unshareDirectory(
+ args: UnshareDirectoryCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UnshareDirectoryCommandOutput) => void
+ ): void;
+ public unshareDirectory(
+ args: UnshareDirectoryCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: UnshareDirectoryCommandOutput) => void),
+ cb?: (err: any, data?: UnshareDirectoryCommandOutput) => void
+ ): Promise | void {
+ const command = new UnshareDirectoryCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Updates a conditional forwarder that has been set up for your AWS directory.
+ *
+ *
+ */
+ public updateConditionalForwarder(
+ args: UpdateConditionalForwarderCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public updateConditionalForwarder(
+ args: UpdateConditionalForwarderCommandInput,
+ cb: (err: any, data?: UpdateConditionalForwarderCommandOutput) => void
+ ): void;
+ public updateConditionalForwarder(
+ args: UpdateConditionalForwarderCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateConditionalForwarderCommandOutput) => void
+ ): void;
+ public updateConditionalForwarder(
+ args: UpdateConditionalForwarderCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: UpdateConditionalForwarderCommandOutput) => void),
+ cb?: (err: any, data?: UpdateConditionalForwarderCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateConditionalForwarderCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Adds or removes domain controllers to or from the directory. Based on the difference between current value and new value (provided through this API call), domain controllers will be added or removed. It may take up to 45 minutes for any new domain controllers to become fully active once the requested number of domain controllers is updated. During this time, you cannot make another update request.
+ *
+ */
+ public updateNumberOfDomainControllers(
+ args: UpdateNumberOfDomainControllersCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public updateNumberOfDomainControllers(
+ args: UpdateNumberOfDomainControllersCommandInput,
+ cb: (err: any, data?: UpdateNumberOfDomainControllersCommandOutput) => void
+ ): void;
+ public updateNumberOfDomainControllers(
+ args: UpdateNumberOfDomainControllersCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateNumberOfDomainControllersCommandOutput) => void
+ ): void;
+ public updateNumberOfDomainControllers(
+ args: UpdateNumberOfDomainControllersCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((
+ err: any,
+ data?: UpdateNumberOfDomainControllersCommandOutput
+ ) => void),
+ cb?: (err: any, data?: UpdateNumberOfDomainControllersCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateNumberOfDomainControllersCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Updates the Remote Authentication Dial In User Service (RADIUS) server information for an AD Connector or Microsoft AD directory.
+ *
+ *
+ */
+ public updateRadius(
+ args: UpdateRadiusCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public updateRadius(
+ args: UpdateRadiusCommandInput,
+ cb: (err: any, data?: UpdateRadiusCommandOutput) => void
+ ): void;
+ public updateRadius(
+ args: UpdateRadiusCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateRadiusCommandOutput) => void
+ ): void;
+ public updateRadius(
+ args: UpdateRadiusCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: UpdateRadiusCommandOutput) => void),
+ cb?: (err: any, data?: UpdateRadiusCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateRadiusCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * Updates the trust that has been set up between your AWS Managed Microsoft AD directory and an on-premises Active Directory.
+ *
+ */
+ public updateTrust(
+ args: UpdateTrustCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public updateTrust(
+ args: UpdateTrustCommandInput,
+ cb: (err: any, data?: UpdateTrustCommandOutput) => void
+ ): void;
+ public updateTrust(
+ args: UpdateTrustCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateTrustCommandOutput) => void
+ ): void;
+ public updateTrust(
+ args: UpdateTrustCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: UpdateTrustCommandOutput) => void),
+ cb?: (err: any, data?: UpdateTrustCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateTrustCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+
+ /**
+ *
+ * AWS Directory Service for Microsoft Active Directory allows you to configure and verify trust relationships.
+ * This action verifies a trust relationship between your AWS Managed Microsoft AD directory and an external domain.
+ *
+ *
+ */
+ public verifyTrust(
+ args: VerifyTrustCommandInput,
+ options?: __HttpHandlerOptions
+ ): Promise;
+ public verifyTrust(
+ args: VerifyTrustCommandInput,
+ cb: (err: any, data?: VerifyTrustCommandOutput) => void
+ ): void;
+ public verifyTrust(
+ args: VerifyTrustCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: VerifyTrustCommandOutput) => void
+ ): void;
+ public verifyTrust(
+ args: VerifyTrustCommandInput,
+ optionsOrCb?:
+ | __HttpHandlerOptions
+ | ((err: any, data?: VerifyTrustCommandOutput) => void),
+ cb?: (err: any, data?: VerifyTrustCommandOutput) => void
+ ): Promise | void {
+ const command = new VerifyTrustCommand(args);
+ if (typeof optionsOrCb === "function") {
+ this.send(command, optionsOrCb);
+ } else if (typeof cb === "function") {
+ if (typeof optionsOrCb !== "object")
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
+ this.send(command, optionsOrCb || {}, cb);
+ } else {
+ return this.send(command, optionsOrCb);
+ }
+ }
+}
diff --git a/clients/client-directory-service/DirectoryServiceClient.ts b/clients/client-directory-service/DirectoryServiceClient.ts
new file mode 100644
index 000000000000..71a2340a54b8
--- /dev/null
+++ b/clients/client-directory-service/DirectoryServiceClient.ts
@@ -0,0 +1,427 @@
+import {
+ AcceptSharedDirectoryRequest,
+ AcceptSharedDirectoryResult,
+ AddIpRoutesRequest,
+ AddIpRoutesResult,
+ AddTagsToResourceRequest,
+ AddTagsToResourceResult,
+ CancelSchemaExtensionRequest,
+ CancelSchemaExtensionResult,
+ ConnectDirectoryRequest,
+ ConnectDirectoryResult,
+ CreateAliasRequest,
+ CreateAliasResult,
+ CreateComputerRequest,
+ CreateComputerResult,
+ CreateConditionalForwarderRequest,
+ CreateConditionalForwarderResult,
+ CreateDirectoryRequest,
+ CreateDirectoryResult,
+ CreateLogSubscriptionRequest,
+ CreateLogSubscriptionResult,
+ CreateMicrosoftADRequest,
+ CreateMicrosoftADResult,
+ CreateSnapshotRequest,
+ CreateSnapshotResult,
+ CreateTrustRequest,
+ CreateTrustResult,
+ DeleteConditionalForwarderRequest,
+ DeleteConditionalForwarderResult,
+ DeleteDirectoryRequest,
+ DeleteDirectoryResult,
+ DeleteLogSubscriptionRequest,
+ DeleteLogSubscriptionResult,
+ DeleteSnapshotRequest,
+ DeleteSnapshotResult,
+ DeleteTrustRequest,
+ DeleteTrustResult,
+ DeregisterCertificateRequest,
+ DeregisterCertificateResult,
+ DeregisterEventTopicRequest,
+ DeregisterEventTopicResult,
+ DescribeCertificateRequest,
+ DescribeCertificateResult,
+ DescribeConditionalForwardersRequest,
+ DescribeConditionalForwardersResult,
+ DescribeDirectoriesRequest,
+ DescribeDirectoriesResult,
+ DescribeDomainControllersRequest,
+ DescribeDomainControllersResult,
+ DescribeEventTopicsRequest,
+ DescribeEventTopicsResult,
+ DescribeLDAPSSettingsRequest,
+ DescribeLDAPSSettingsResult,
+ DescribeSharedDirectoriesRequest,
+ DescribeSharedDirectoriesResult,
+ DescribeSnapshotsRequest,
+ DescribeSnapshotsResult,
+ DescribeTrustsRequest,
+ DescribeTrustsResult,
+ DisableLDAPSRequest,
+ DisableLDAPSResult,
+ DisableRadiusRequest,
+ DisableRadiusResult,
+ DisableSsoRequest,
+ DisableSsoResult,
+ EnableLDAPSRequest,
+ EnableLDAPSResult,
+ EnableRadiusRequest,
+ EnableRadiusResult,
+ EnableSsoRequest,
+ EnableSsoResult,
+ GetDirectoryLimitsRequest,
+ GetDirectoryLimitsResult,
+ GetSnapshotLimitsRequest,
+ GetSnapshotLimitsResult,
+ ListCertificatesRequest,
+ ListCertificatesResult,
+ ListIpRoutesRequest,
+ ListIpRoutesResult,
+ ListLogSubscriptionsRequest,
+ ListLogSubscriptionsResult,
+ ListSchemaExtensionsRequest,
+ ListSchemaExtensionsResult,
+ ListTagsForResourceRequest,
+ ListTagsForResourceResult,
+ RegisterCertificateRequest,
+ RegisterCertificateResult,
+ RegisterEventTopicRequest,
+ RegisterEventTopicResult,
+ RejectSharedDirectoryRequest,
+ RejectSharedDirectoryResult,
+ RemoveIpRoutesRequest,
+ RemoveIpRoutesResult,
+ RemoveTagsFromResourceRequest,
+ RemoveTagsFromResourceResult,
+ ResetUserPasswordRequest,
+ ResetUserPasswordResult,
+ RestoreFromSnapshotRequest,
+ RestoreFromSnapshotResult,
+ ShareDirectoryRequest,
+ ShareDirectoryResult,
+ StartSchemaExtensionRequest,
+ StartSchemaExtensionResult,
+ UnshareDirectoryRequest,
+ UnshareDirectoryResult,
+ UpdateConditionalForwarderRequest,
+ UpdateConditionalForwarderResult,
+ UpdateNumberOfDomainControllersRequest,
+ UpdateNumberOfDomainControllersResult,
+ UpdateRadiusRequest,
+ UpdateRadiusResult,
+ UpdateTrustRequest,
+ UpdateTrustResult,
+ VerifyTrustRequest,
+ VerifyTrustResult
+} from "./models/index";
+import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
+import {
+ EndpointsInputConfig,
+ EndpointsResolvedConfig,
+ RegionInputConfig,
+ RegionResolvedConfig,
+ resolveEndpointsConfig,
+ resolveRegionConfig
+} from "@aws-sdk/config-resolver";
+import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
+import {
+ HostHeaderInputConfig,
+ HostHeaderResolvedConfig,
+ getHostHeaderPlugin,
+ resolveHostHeaderConfig
+} from "@aws-sdk/middleware-host-header";
+import {
+ RetryInputConfig,
+ RetryResolvedConfig,
+ getRetryPlugin,
+ resolveRetryConfig
+} from "@aws-sdk/middleware-retry";
+import {
+ AwsAuthInputConfig,
+ AwsAuthResolvedConfig,
+ getAwsAuthPlugin,
+ resolveAwsAuthConfig
+} from "@aws-sdk/middleware-signing";
+import {
+ UserAgentInputConfig,
+ UserAgentResolvedConfig,
+ getUserAgentPlugin,
+ resolveUserAgentConfig
+} from "@aws-sdk/middleware-user-agent";
+import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
+import {
+ Client as __Client,
+ SmithyConfiguration as __SmithyConfiguration,
+ SmithyResolvedConfiguration as __SmithyResolvedConfiguration
+} from "@aws-sdk/smithy-client";
+import {
+ RegionInfoProvider,
+ Credentials as __Credentials,
+ Decoder as __Decoder,
+ Encoder as __Encoder,
+ HashConstructor as __HashConstructor,
+ HttpHandlerOptions as __HttpHandlerOptions,
+ Provider as __Provider,
+ StreamCollector as __StreamCollector,
+ UrlParser as __UrlParser
+} from "@aws-sdk/types";
+
+export type ServiceInputTypes =
+ | AcceptSharedDirectoryRequest
+ | AddIpRoutesRequest
+ | AddTagsToResourceRequest
+ | CancelSchemaExtensionRequest
+ | ConnectDirectoryRequest
+ | CreateAliasRequest
+ | CreateComputerRequest
+ | CreateConditionalForwarderRequest
+ | CreateDirectoryRequest
+ | CreateLogSubscriptionRequest
+ | CreateMicrosoftADRequest
+ | CreateSnapshotRequest
+ | CreateTrustRequest
+ | DeleteConditionalForwarderRequest
+ | DeleteDirectoryRequest
+ | DeleteLogSubscriptionRequest
+ | DeleteSnapshotRequest
+ | DeleteTrustRequest
+ | DeregisterCertificateRequest
+ | DeregisterEventTopicRequest
+ | DescribeCertificateRequest
+ | DescribeConditionalForwardersRequest
+ | DescribeDirectoriesRequest
+ | DescribeDomainControllersRequest
+ | DescribeEventTopicsRequest
+ | DescribeLDAPSSettingsRequest
+ | DescribeSharedDirectoriesRequest
+ | DescribeSnapshotsRequest
+ | DescribeTrustsRequest
+ | DisableLDAPSRequest
+ | DisableRadiusRequest
+ | DisableSsoRequest
+ | EnableLDAPSRequest
+ | EnableRadiusRequest
+ | EnableSsoRequest
+ | GetDirectoryLimitsRequest
+ | GetSnapshotLimitsRequest
+ | ListCertificatesRequest
+ | ListIpRoutesRequest
+ | ListLogSubscriptionsRequest
+ | ListSchemaExtensionsRequest
+ | ListTagsForResourceRequest
+ | RegisterCertificateRequest
+ | RegisterEventTopicRequest
+ | RejectSharedDirectoryRequest
+ | RemoveIpRoutesRequest
+ | RemoveTagsFromResourceRequest
+ | ResetUserPasswordRequest
+ | RestoreFromSnapshotRequest
+ | ShareDirectoryRequest
+ | StartSchemaExtensionRequest
+ | UnshareDirectoryRequest
+ | UpdateConditionalForwarderRequest
+ | UpdateNumberOfDomainControllersRequest
+ | UpdateRadiusRequest
+ | UpdateTrustRequest
+ | VerifyTrustRequest;
+
+export type ServiceOutputTypes =
+ | AcceptSharedDirectoryResult
+ | AddIpRoutesResult
+ | AddTagsToResourceResult
+ | CancelSchemaExtensionResult
+ | ConnectDirectoryResult
+ | CreateAliasResult
+ | CreateComputerResult
+ | CreateConditionalForwarderResult
+ | CreateDirectoryResult
+ | CreateLogSubscriptionResult
+ | CreateMicrosoftADResult
+ | CreateSnapshotResult
+ | CreateTrustResult
+ | DeleteConditionalForwarderResult
+ | DeleteDirectoryResult
+ | DeleteLogSubscriptionResult
+ | DeleteSnapshotResult
+ | DeleteTrustResult
+ | DeregisterCertificateResult
+ | DeregisterEventTopicResult
+ | DescribeCertificateResult
+ | DescribeConditionalForwardersResult
+ | DescribeDirectoriesResult
+ | DescribeDomainControllersResult
+ | DescribeEventTopicsResult
+ | DescribeLDAPSSettingsResult
+ | DescribeSharedDirectoriesResult
+ | DescribeSnapshotsResult
+ | DescribeTrustsResult
+ | DisableLDAPSResult
+ | DisableRadiusResult
+ | DisableSsoResult
+ | EnableLDAPSResult
+ | EnableRadiusResult
+ | EnableSsoResult
+ | GetDirectoryLimitsResult
+ | GetSnapshotLimitsResult
+ | ListCertificatesResult
+ | ListIpRoutesResult
+ | ListLogSubscriptionsResult
+ | ListSchemaExtensionsResult
+ | ListTagsForResourceResult
+ | RegisterCertificateResult
+ | RegisterEventTopicResult
+ | RejectSharedDirectoryResult
+ | RemoveIpRoutesResult
+ | RemoveTagsFromResourceResult
+ | ResetUserPasswordResult
+ | RestoreFromSnapshotResult
+ | ShareDirectoryResult
+ | StartSchemaExtensionResult
+ | UnshareDirectoryResult
+ | UpdateConditionalForwarderResult
+ | UpdateNumberOfDomainControllersResult
+ | UpdateRadiusResult
+ | UpdateTrustResult
+ | VerifyTrustResult;
+
+export interface ClientDefaults
+ extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
+ /**
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
+ */
+ requestHandler?: __HttpHandler;
+
+ /**
+ * A constructor for a class implementing the @aws-sdk/types.Hash interface
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
+ */
+ sha256?: __HashConstructor;
+
+ /**
+ * The function that will be used to convert strings into HTTP endpoints.
+ */
+ urlParser?: __UrlParser;
+
+ /**
+ * A function that can calculate the length of a request body.
+ */
+ bodyLengthChecker?: (body: any) => number | undefined;
+
+ /**
+ * A function that converts a stream into an array of bytes.
+ */
+ streamCollector?: __StreamCollector;
+
+ /**
+ * The function that will be used to convert a base64-encoded string to a byte array
+ */
+ base64Decoder?: __Decoder;
+
+ /**
+ * The function that will be used to convert binary data to a base64-encoded string
+ */
+ base64Encoder?: __Encoder;
+
+ /**
+ * The function that will be used to convert a UTF8-encoded string to a byte array
+ */
+ utf8Decoder?: __Decoder;
+
+ /**
+ * The function that will be used to convert binary data to a UTF-8 encoded string
+ */
+ utf8Encoder?: __Encoder;
+
+ /**
+ * The string that will be used to populate default value in 'User-Agent' header
+ */
+ defaultUserAgent?: string;
+
+ /**
+ * The runtime environment
+ */
+ runtime?: string;
+
+ /**
+ * The service name with which to sign requests.
+ */
+ signingName?: string;
+
+ /**
+ * Default credentials provider; Not available in browser runtime
+ */
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
+
+ /**
+ * Provider function that return promise of a region string
+ */
+ regionDefaultProvider?: (input: any) => __Provider;
+
+ /**
+ * Fetch related hostname, signing name or signing region with given region.
+ */
+ regionInfoProvider?: RegionInfoProvider;
+}
+
+export type DirectoryServiceClientConfig = Partial<
+ __SmithyConfiguration<__HttpHandlerOptions>
+> &
+ ClientDefaults &
+ RegionInputConfig &
+ EndpointsInputConfig &
+ AwsAuthInputConfig &
+ RetryInputConfig &
+ UserAgentInputConfig &
+ HostHeaderInputConfig;
+
+export type DirectoryServiceClientResolvedConfig = __SmithyResolvedConfiguration<
+ __HttpHandlerOptions
+> &
+ Required &
+ RegionResolvedConfig &
+ EndpointsResolvedConfig &
+ AwsAuthResolvedConfig &
+ RetryResolvedConfig &
+ UserAgentResolvedConfig &
+ HostHeaderResolvedConfig;
+
+/**
+ *
+ * AWS Directory Service
+ * AWS Directory Service is a web service that makes it easy for you to setup and run directories in the AWS cloud, or connect your AWS resources with an existing on-premises Microsoft Active Directory. This guide provides detailed information about AWS Directory Service operations, data types, parameters, and errors. For information about AWS Directory Services features, see AWS Directory Service and the AWS Directory Service Administration Guide.
+ *
+ * AWS 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 AWS Directory Service and other AWS services. For more information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web
+ * Services.
+ *
+ *
+ */
+export class DirectoryServiceClient extends __Client<
+ __HttpHandlerOptions,
+ ServiceInputTypes,
+ ServiceOutputTypes,
+ DirectoryServiceClientResolvedConfig
+> {
+ readonly config: DirectoryServiceClientResolvedConfig;
+
+ constructor(configuration: DirectoryServiceClientConfig) {
+ let _config_0 = {
+ ...__ClientDefaultValues,
+ ...configuration
+ };
+ let _config_1 = resolveRegionConfig(_config_0);
+ let _config_2 = resolveEndpointsConfig(_config_1);
+ let _config_3 = resolveAwsAuthConfig(_config_2);
+ let _config_4 = resolveRetryConfig(_config_3);
+ let _config_5 = resolveUserAgentConfig(_config_4);
+ let _config_6 = resolveHostHeaderConfig(_config_5);
+ super(_config_6);
+ this.config = _config_6;
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
+ this.middlewareStack.use(getRetryPlugin(this.config));
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
+ }
+
+ destroy(): void {}
+}
diff --git a/clients/client-directory-service/LICENSE b/clients/client-directory-service/LICENSE
new file mode 100644
index 000000000000..b7d2463d8cc0
--- /dev/null
+++ b/clients/client-directory-service/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/clients/client-directory-service/README.md b/clients/client-directory-service/README.md
new file mode 100644
index 000000000000..83e7ba464354
--- /dev/null
+++ b/clients/client-directory-service/README.md
@@ -0,0 +1,6 @@
+@aws-sdk/client-directory-service
+
+[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-directory-service/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-directory-service)
+[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-directory-service.svg)](https://www.npmjs.com/package/@aws-sdk/client-directory-service)
+
+For SDK usage, please step to [SDK reademe](https://github.com/aws/aws-sdk-js-v3).
diff --git a/clients/client-directory-service/commands/AcceptSharedDirectoryCommand.ts b/clients/client-directory-service/commands/AcceptSharedDirectoryCommand.ts
new file mode 100644
index 000000000000..386a6caf891a
--- /dev/null
+++ b/clients/client-directory-service/commands/AcceptSharedDirectoryCommand.ts
@@ -0,0 +1,87 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ AcceptSharedDirectoryRequest,
+ AcceptSharedDirectoryResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1AcceptSharedDirectoryCommand,
+ serializeAws_json1_1AcceptSharedDirectoryCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type AcceptSharedDirectoryCommandInput = AcceptSharedDirectoryRequest;
+export type AcceptSharedDirectoryCommandOutput = AcceptSharedDirectoryResult;
+
+export class AcceptSharedDirectoryCommand extends $Command<
+ AcceptSharedDirectoryCommandInput,
+ AcceptSharedDirectoryCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: AcceptSharedDirectoryCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ AcceptSharedDirectoryCommandInput,
+ AcceptSharedDirectoryCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: AcceptSharedDirectoryCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1AcceptSharedDirectoryCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1AcceptSharedDirectoryCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/AddIpRoutesCommand.ts b/clients/client-directory-service/commands/AddIpRoutesCommand.ts
new file mode 100644
index 000000000000..820c3618c29f
--- /dev/null
+++ b/clients/client-directory-service/commands/AddIpRoutesCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { AddIpRoutesRequest, AddIpRoutesResult } from "../models/index";
+import {
+ deserializeAws_json1_1AddIpRoutesCommand,
+ serializeAws_json1_1AddIpRoutesCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type AddIpRoutesCommandInput = AddIpRoutesRequest;
+export type AddIpRoutesCommandOutput = AddIpRoutesResult;
+
+export class AddIpRoutesCommand extends $Command<
+ AddIpRoutesCommandInput,
+ AddIpRoutesCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: AddIpRoutesCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: AddIpRoutesCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1AddIpRoutesCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1AddIpRoutesCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/AddTagsToResourceCommand.ts b/clients/client-directory-service/commands/AddTagsToResourceCommand.ts
new file mode 100644
index 000000000000..7591153a3bcf
--- /dev/null
+++ b/clients/client-directory-service/commands/AddTagsToResourceCommand.ts
@@ -0,0 +1,84 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ AddTagsToResourceRequest,
+ AddTagsToResourceResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1AddTagsToResourceCommand,
+ serializeAws_json1_1AddTagsToResourceCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type AddTagsToResourceCommandInput = AddTagsToResourceRequest;
+export type AddTagsToResourceCommandOutput = AddTagsToResourceResult;
+
+export class AddTagsToResourceCommand extends $Command<
+ AddTagsToResourceCommandInput,
+ AddTagsToResourceCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: AddTagsToResourceCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: AddTagsToResourceCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1AddTagsToResourceCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1AddTagsToResourceCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/CancelSchemaExtensionCommand.ts b/clients/client-directory-service/commands/CancelSchemaExtensionCommand.ts
new file mode 100644
index 000000000000..a93603b76e55
--- /dev/null
+++ b/clients/client-directory-service/commands/CancelSchemaExtensionCommand.ts
@@ -0,0 +1,87 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ CancelSchemaExtensionRequest,
+ CancelSchemaExtensionResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1CancelSchemaExtensionCommand,
+ serializeAws_json1_1CancelSchemaExtensionCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CancelSchemaExtensionCommandInput = CancelSchemaExtensionRequest;
+export type CancelSchemaExtensionCommandOutput = CancelSchemaExtensionResult;
+
+export class CancelSchemaExtensionCommand extends $Command<
+ CancelSchemaExtensionCommandInput,
+ CancelSchemaExtensionCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CancelSchemaExtensionCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ CancelSchemaExtensionCommandInput,
+ CancelSchemaExtensionCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CancelSchemaExtensionCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CancelSchemaExtensionCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CancelSchemaExtensionCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/ConnectDirectoryCommand.ts b/clients/client-directory-service/commands/ConnectDirectoryCommand.ts
new file mode 100644
index 000000000000..515639fb820d
--- /dev/null
+++ b/clients/client-directory-service/commands/ConnectDirectoryCommand.ts
@@ -0,0 +1,84 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ ConnectDirectoryRequest,
+ ConnectDirectoryResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1ConnectDirectoryCommand,
+ serializeAws_json1_1ConnectDirectoryCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ConnectDirectoryCommandInput = ConnectDirectoryRequest;
+export type ConnectDirectoryCommandOutput = ConnectDirectoryResult;
+
+export class ConnectDirectoryCommand extends $Command<
+ ConnectDirectoryCommandInput,
+ ConnectDirectoryCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ConnectDirectoryCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ConnectDirectoryCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ConnectDirectoryCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ConnectDirectoryCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/CreateAliasCommand.ts b/clients/client-directory-service/commands/CreateAliasCommand.ts
new file mode 100644
index 000000000000..1ff1cef94578
--- /dev/null
+++ b/clients/client-directory-service/commands/CreateAliasCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { CreateAliasRequest, CreateAliasResult } from "../models/index";
+import {
+ deserializeAws_json1_1CreateAliasCommand,
+ serializeAws_json1_1CreateAliasCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateAliasCommandInput = CreateAliasRequest;
+export type CreateAliasCommandOutput = CreateAliasResult;
+
+export class CreateAliasCommand extends $Command<
+ CreateAliasCommandInput,
+ CreateAliasCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateAliasCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateAliasCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateAliasCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateAliasCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/CreateComputerCommand.ts b/clients/client-directory-service/commands/CreateComputerCommand.ts
new file mode 100644
index 000000000000..2c47096f440e
--- /dev/null
+++ b/clients/client-directory-service/commands/CreateComputerCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { CreateComputerRequest, CreateComputerResult } from "../models/index";
+import {
+ deserializeAws_json1_1CreateComputerCommand,
+ serializeAws_json1_1CreateComputerCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateComputerCommandInput = CreateComputerRequest;
+export type CreateComputerCommandOutput = CreateComputerResult;
+
+export class CreateComputerCommand extends $Command<
+ CreateComputerCommandInput,
+ CreateComputerCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateComputerCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateComputerCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateComputerCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateComputerCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/CreateConditionalForwarderCommand.ts b/clients/client-directory-service/commands/CreateConditionalForwarderCommand.ts
new file mode 100644
index 000000000000..8c5e0578a940
--- /dev/null
+++ b/clients/client-directory-service/commands/CreateConditionalForwarderCommand.ts
@@ -0,0 +1,93 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ CreateConditionalForwarderRequest,
+ CreateConditionalForwarderResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1CreateConditionalForwarderCommand,
+ serializeAws_json1_1CreateConditionalForwarderCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateConditionalForwarderCommandInput = CreateConditionalForwarderRequest;
+export type CreateConditionalForwarderCommandOutput = CreateConditionalForwarderResult;
+
+export class CreateConditionalForwarderCommand extends $Command<
+ CreateConditionalForwarderCommandInput,
+ CreateConditionalForwarderCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateConditionalForwarderCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ CreateConditionalForwarderCommandInput,
+ CreateConditionalForwarderCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateConditionalForwarderCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateConditionalForwarderCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateConditionalForwarderCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/CreateDirectoryCommand.ts b/clients/client-directory-service/commands/CreateDirectoryCommand.ts
new file mode 100644
index 000000000000..98e34c989e0c
--- /dev/null
+++ b/clients/client-directory-service/commands/CreateDirectoryCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { CreateDirectoryRequest, CreateDirectoryResult } from "../models/index";
+import {
+ deserializeAws_json1_1CreateDirectoryCommand,
+ serializeAws_json1_1CreateDirectoryCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateDirectoryCommandInput = CreateDirectoryRequest;
+export type CreateDirectoryCommandOutput = CreateDirectoryResult;
+
+export class CreateDirectoryCommand extends $Command<
+ CreateDirectoryCommandInput,
+ CreateDirectoryCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateDirectoryCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateDirectoryCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateDirectoryCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateDirectoryCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/CreateLogSubscriptionCommand.ts b/clients/client-directory-service/commands/CreateLogSubscriptionCommand.ts
new file mode 100644
index 000000000000..6c0bba9a40a8
--- /dev/null
+++ b/clients/client-directory-service/commands/CreateLogSubscriptionCommand.ts
@@ -0,0 +1,87 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ CreateLogSubscriptionRequest,
+ CreateLogSubscriptionResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1CreateLogSubscriptionCommand,
+ serializeAws_json1_1CreateLogSubscriptionCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateLogSubscriptionCommandInput = CreateLogSubscriptionRequest;
+export type CreateLogSubscriptionCommandOutput = CreateLogSubscriptionResult;
+
+export class CreateLogSubscriptionCommand extends $Command<
+ CreateLogSubscriptionCommandInput,
+ CreateLogSubscriptionCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateLogSubscriptionCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ CreateLogSubscriptionCommandInput,
+ CreateLogSubscriptionCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateLogSubscriptionCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateLogSubscriptionCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateLogSubscriptionCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/CreateMicrosoftADCommand.ts b/clients/client-directory-service/commands/CreateMicrosoftADCommand.ts
new file mode 100644
index 000000000000..3acaff43b36a
--- /dev/null
+++ b/clients/client-directory-service/commands/CreateMicrosoftADCommand.ts
@@ -0,0 +1,84 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ CreateMicrosoftADRequest,
+ CreateMicrosoftADResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1CreateMicrosoftADCommand,
+ serializeAws_json1_1CreateMicrosoftADCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateMicrosoftADCommandInput = CreateMicrosoftADRequest;
+export type CreateMicrosoftADCommandOutput = CreateMicrosoftADResult;
+
+export class CreateMicrosoftADCommand extends $Command<
+ CreateMicrosoftADCommandInput,
+ CreateMicrosoftADCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateMicrosoftADCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateMicrosoftADCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateMicrosoftADCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateMicrosoftADCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/CreateSnapshotCommand.ts b/clients/client-directory-service/commands/CreateSnapshotCommand.ts
new file mode 100644
index 000000000000..bc1121e191b3
--- /dev/null
+++ b/clients/client-directory-service/commands/CreateSnapshotCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { CreateSnapshotRequest, CreateSnapshotResult } from "../models/index";
+import {
+ deserializeAws_json1_1CreateSnapshotCommand,
+ serializeAws_json1_1CreateSnapshotCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateSnapshotCommandInput = CreateSnapshotRequest;
+export type CreateSnapshotCommandOutput = CreateSnapshotResult;
+
+export class CreateSnapshotCommand extends $Command<
+ CreateSnapshotCommandInput,
+ CreateSnapshotCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateSnapshotCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateSnapshotCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateSnapshotCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateSnapshotCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/CreateTrustCommand.ts b/clients/client-directory-service/commands/CreateTrustCommand.ts
new file mode 100644
index 000000000000..4a1fc4cf111b
--- /dev/null
+++ b/clients/client-directory-service/commands/CreateTrustCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { CreateTrustRequest, CreateTrustResult } from "../models/index";
+import {
+ deserializeAws_json1_1CreateTrustCommand,
+ serializeAws_json1_1CreateTrustCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type CreateTrustCommandInput = CreateTrustRequest;
+export type CreateTrustCommandOutput = CreateTrustResult;
+
+export class CreateTrustCommand extends $Command<
+ CreateTrustCommandInput,
+ CreateTrustCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateTrustCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: CreateTrustCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1CreateTrustCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1CreateTrustCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DeleteConditionalForwarderCommand.ts b/clients/client-directory-service/commands/DeleteConditionalForwarderCommand.ts
new file mode 100644
index 000000000000..176d478ff874
--- /dev/null
+++ b/clients/client-directory-service/commands/DeleteConditionalForwarderCommand.ts
@@ -0,0 +1,93 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DeleteConditionalForwarderRequest,
+ DeleteConditionalForwarderResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DeleteConditionalForwarderCommand,
+ serializeAws_json1_1DeleteConditionalForwarderCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DeleteConditionalForwarderCommandInput = DeleteConditionalForwarderRequest;
+export type DeleteConditionalForwarderCommandOutput = DeleteConditionalForwarderResult;
+
+export class DeleteConditionalForwarderCommand extends $Command<
+ DeleteConditionalForwarderCommandInput,
+ DeleteConditionalForwarderCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DeleteConditionalForwarderCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DeleteConditionalForwarderCommandInput,
+ DeleteConditionalForwarderCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DeleteConditionalForwarderCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DeleteConditionalForwarderCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DeleteConditionalForwarderCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DeleteDirectoryCommand.ts b/clients/client-directory-service/commands/DeleteDirectoryCommand.ts
new file mode 100644
index 000000000000..eec23c7e59ce
--- /dev/null
+++ b/clients/client-directory-service/commands/DeleteDirectoryCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { DeleteDirectoryRequest, DeleteDirectoryResult } from "../models/index";
+import {
+ deserializeAws_json1_1DeleteDirectoryCommand,
+ serializeAws_json1_1DeleteDirectoryCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DeleteDirectoryCommandInput = DeleteDirectoryRequest;
+export type DeleteDirectoryCommandOutput = DeleteDirectoryResult;
+
+export class DeleteDirectoryCommand extends $Command<
+ DeleteDirectoryCommandInput,
+ DeleteDirectoryCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DeleteDirectoryCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DeleteDirectoryCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DeleteDirectoryCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DeleteDirectoryCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DeleteLogSubscriptionCommand.ts b/clients/client-directory-service/commands/DeleteLogSubscriptionCommand.ts
new file mode 100644
index 000000000000..2b281ac6bfd3
--- /dev/null
+++ b/clients/client-directory-service/commands/DeleteLogSubscriptionCommand.ts
@@ -0,0 +1,87 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DeleteLogSubscriptionRequest,
+ DeleteLogSubscriptionResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DeleteLogSubscriptionCommand,
+ serializeAws_json1_1DeleteLogSubscriptionCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DeleteLogSubscriptionCommandInput = DeleteLogSubscriptionRequest;
+export type DeleteLogSubscriptionCommandOutput = DeleteLogSubscriptionResult;
+
+export class DeleteLogSubscriptionCommand extends $Command<
+ DeleteLogSubscriptionCommandInput,
+ DeleteLogSubscriptionCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DeleteLogSubscriptionCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DeleteLogSubscriptionCommandInput,
+ DeleteLogSubscriptionCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DeleteLogSubscriptionCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DeleteLogSubscriptionCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DeleteLogSubscriptionCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DeleteSnapshotCommand.ts b/clients/client-directory-service/commands/DeleteSnapshotCommand.ts
new file mode 100644
index 000000000000..6434d9aa14c1
--- /dev/null
+++ b/clients/client-directory-service/commands/DeleteSnapshotCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { DeleteSnapshotRequest, DeleteSnapshotResult } from "../models/index";
+import {
+ deserializeAws_json1_1DeleteSnapshotCommand,
+ serializeAws_json1_1DeleteSnapshotCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DeleteSnapshotCommandInput = DeleteSnapshotRequest;
+export type DeleteSnapshotCommandOutput = DeleteSnapshotResult;
+
+export class DeleteSnapshotCommand extends $Command<
+ DeleteSnapshotCommandInput,
+ DeleteSnapshotCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DeleteSnapshotCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DeleteSnapshotCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DeleteSnapshotCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DeleteSnapshotCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DeleteTrustCommand.ts b/clients/client-directory-service/commands/DeleteTrustCommand.ts
new file mode 100644
index 000000000000..077ccf90ca76
--- /dev/null
+++ b/clients/client-directory-service/commands/DeleteTrustCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { DeleteTrustRequest, DeleteTrustResult } from "../models/index";
+import {
+ deserializeAws_json1_1DeleteTrustCommand,
+ serializeAws_json1_1DeleteTrustCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DeleteTrustCommandInput = DeleteTrustRequest;
+export type DeleteTrustCommandOutput = DeleteTrustResult;
+
+export class DeleteTrustCommand extends $Command<
+ DeleteTrustCommandInput,
+ DeleteTrustCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DeleteTrustCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DeleteTrustCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DeleteTrustCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DeleteTrustCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DeregisterCertificateCommand.ts b/clients/client-directory-service/commands/DeregisterCertificateCommand.ts
new file mode 100644
index 000000000000..4b04352e1358
--- /dev/null
+++ b/clients/client-directory-service/commands/DeregisterCertificateCommand.ts
@@ -0,0 +1,87 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DeregisterCertificateRequest,
+ DeregisterCertificateResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DeregisterCertificateCommand,
+ serializeAws_json1_1DeregisterCertificateCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DeregisterCertificateCommandInput = DeregisterCertificateRequest;
+export type DeregisterCertificateCommandOutput = DeregisterCertificateResult;
+
+export class DeregisterCertificateCommand extends $Command<
+ DeregisterCertificateCommandInput,
+ DeregisterCertificateCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DeregisterCertificateCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DeregisterCertificateCommandInput,
+ DeregisterCertificateCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DeregisterCertificateCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DeregisterCertificateCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DeregisterCertificateCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DeregisterEventTopicCommand.ts b/clients/client-directory-service/commands/DeregisterEventTopicCommand.ts
new file mode 100644
index 000000000000..50f7122302ae
--- /dev/null
+++ b/clients/client-directory-service/commands/DeregisterEventTopicCommand.ts
@@ -0,0 +1,87 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DeregisterEventTopicRequest,
+ DeregisterEventTopicResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DeregisterEventTopicCommand,
+ serializeAws_json1_1DeregisterEventTopicCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DeregisterEventTopicCommandInput = DeregisterEventTopicRequest;
+export type DeregisterEventTopicCommandOutput = DeregisterEventTopicResult;
+
+export class DeregisterEventTopicCommand extends $Command<
+ DeregisterEventTopicCommandInput,
+ DeregisterEventTopicCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DeregisterEventTopicCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DeregisterEventTopicCommandInput,
+ DeregisterEventTopicCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DeregisterEventTopicCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DeregisterEventTopicCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DeregisterEventTopicCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DescribeCertificateCommand.ts b/clients/client-directory-service/commands/DescribeCertificateCommand.ts
new file mode 100644
index 000000000000..537ee81ccebd
--- /dev/null
+++ b/clients/client-directory-service/commands/DescribeCertificateCommand.ts
@@ -0,0 +1,87 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DescribeCertificateRequest,
+ DescribeCertificateResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeCertificateCommand,
+ serializeAws_json1_1DescribeCertificateCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeCertificateCommandInput = DescribeCertificateRequest;
+export type DescribeCertificateCommandOutput = DescribeCertificateResult;
+
+export class DescribeCertificateCommand extends $Command<
+ DescribeCertificateCommandInput,
+ DescribeCertificateCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeCertificateCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeCertificateCommandInput,
+ DescribeCertificateCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeCertificateCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeCertificateCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeCertificateCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DescribeConditionalForwardersCommand.ts b/clients/client-directory-service/commands/DescribeConditionalForwardersCommand.ts
new file mode 100644
index 000000000000..74841b6fa2c9
--- /dev/null
+++ b/clients/client-directory-service/commands/DescribeConditionalForwardersCommand.ts
@@ -0,0 +1,93 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DescribeConditionalForwardersRequest,
+ DescribeConditionalForwardersResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeConditionalForwardersCommand,
+ serializeAws_json1_1DescribeConditionalForwardersCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeConditionalForwardersCommandInput = DescribeConditionalForwardersRequest;
+export type DescribeConditionalForwardersCommandOutput = DescribeConditionalForwardersResult;
+
+export class DescribeConditionalForwardersCommand extends $Command<
+ DescribeConditionalForwardersCommandInput,
+ DescribeConditionalForwardersCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeConditionalForwardersCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeConditionalForwardersCommandInput,
+ DescribeConditionalForwardersCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeConditionalForwardersCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeConditionalForwardersCommand(
+ input,
+ context
+ );
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeConditionalForwardersCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DescribeDirectoriesCommand.ts b/clients/client-directory-service/commands/DescribeDirectoriesCommand.ts
new file mode 100644
index 000000000000..d27d78565b8b
--- /dev/null
+++ b/clients/client-directory-service/commands/DescribeDirectoriesCommand.ts
@@ -0,0 +1,87 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DescribeDirectoriesRequest,
+ DescribeDirectoriesResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeDirectoriesCommand,
+ serializeAws_json1_1DescribeDirectoriesCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeDirectoriesCommandInput = DescribeDirectoriesRequest;
+export type DescribeDirectoriesCommandOutput = DescribeDirectoriesResult;
+
+export class DescribeDirectoriesCommand extends $Command<
+ DescribeDirectoriesCommandInput,
+ DescribeDirectoriesCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeDirectoriesCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeDirectoriesCommandInput,
+ DescribeDirectoriesCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeDirectoriesCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeDirectoriesCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeDirectoriesCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DescribeDomainControllersCommand.ts b/clients/client-directory-service/commands/DescribeDomainControllersCommand.ts
new file mode 100644
index 000000000000..49a5b4c4c463
--- /dev/null
+++ b/clients/client-directory-service/commands/DescribeDomainControllersCommand.ts
@@ -0,0 +1,90 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DescribeDomainControllersRequest,
+ DescribeDomainControllersResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeDomainControllersCommand,
+ serializeAws_json1_1DescribeDomainControllersCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeDomainControllersCommandInput = DescribeDomainControllersRequest;
+export type DescribeDomainControllersCommandOutput = DescribeDomainControllersResult;
+
+export class DescribeDomainControllersCommand extends $Command<
+ DescribeDomainControllersCommandInput,
+ DescribeDomainControllersCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeDomainControllersCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeDomainControllersCommandInput,
+ DescribeDomainControllersCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeDomainControllersCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeDomainControllersCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeDomainControllersCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DescribeEventTopicsCommand.ts b/clients/client-directory-service/commands/DescribeEventTopicsCommand.ts
new file mode 100644
index 000000000000..3150e91e9c8d
--- /dev/null
+++ b/clients/client-directory-service/commands/DescribeEventTopicsCommand.ts
@@ -0,0 +1,87 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DescribeEventTopicsRequest,
+ DescribeEventTopicsResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeEventTopicsCommand,
+ serializeAws_json1_1DescribeEventTopicsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeEventTopicsCommandInput = DescribeEventTopicsRequest;
+export type DescribeEventTopicsCommandOutput = DescribeEventTopicsResult;
+
+export class DescribeEventTopicsCommand extends $Command<
+ DescribeEventTopicsCommandInput,
+ DescribeEventTopicsCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeEventTopicsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeEventTopicsCommandInput,
+ DescribeEventTopicsCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeEventTopicsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeEventTopicsCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeEventTopicsCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DescribeLDAPSSettingsCommand.ts b/clients/client-directory-service/commands/DescribeLDAPSSettingsCommand.ts
new file mode 100644
index 000000000000..9f333bf29e37
--- /dev/null
+++ b/clients/client-directory-service/commands/DescribeLDAPSSettingsCommand.ts
@@ -0,0 +1,87 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DescribeLDAPSSettingsRequest,
+ DescribeLDAPSSettingsResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeLDAPSSettingsCommand,
+ serializeAws_json1_1DescribeLDAPSSettingsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeLDAPSSettingsCommandInput = DescribeLDAPSSettingsRequest;
+export type DescribeLDAPSSettingsCommandOutput = DescribeLDAPSSettingsResult;
+
+export class DescribeLDAPSSettingsCommand extends $Command<
+ DescribeLDAPSSettingsCommandInput,
+ DescribeLDAPSSettingsCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeLDAPSSettingsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeLDAPSSettingsCommandInput,
+ DescribeLDAPSSettingsCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeLDAPSSettingsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeLDAPSSettingsCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeLDAPSSettingsCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DescribeSharedDirectoriesCommand.ts b/clients/client-directory-service/commands/DescribeSharedDirectoriesCommand.ts
new file mode 100644
index 000000000000..6b157203fdf0
--- /dev/null
+++ b/clients/client-directory-service/commands/DescribeSharedDirectoriesCommand.ts
@@ -0,0 +1,90 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DescribeSharedDirectoriesRequest,
+ DescribeSharedDirectoriesResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeSharedDirectoriesCommand,
+ serializeAws_json1_1DescribeSharedDirectoriesCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeSharedDirectoriesCommandInput = DescribeSharedDirectoriesRequest;
+export type DescribeSharedDirectoriesCommandOutput = DescribeSharedDirectoriesResult;
+
+export class DescribeSharedDirectoriesCommand extends $Command<
+ DescribeSharedDirectoriesCommandInput,
+ DescribeSharedDirectoriesCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeSharedDirectoriesCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler<
+ DescribeSharedDirectoriesCommandInput,
+ DescribeSharedDirectoriesCommandOutput
+ > {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeSharedDirectoriesCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeSharedDirectoriesCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeSharedDirectoriesCommand(
+ output,
+ context
+ );
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DescribeSnapshotsCommand.ts b/clients/client-directory-service/commands/DescribeSnapshotsCommand.ts
new file mode 100644
index 000000000000..515433a2b860
--- /dev/null
+++ b/clients/client-directory-service/commands/DescribeSnapshotsCommand.ts
@@ -0,0 +1,84 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ DescribeSnapshotsRequest,
+ DescribeSnapshotsResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1DescribeSnapshotsCommand,
+ serializeAws_json1_1DescribeSnapshotsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeSnapshotsCommandInput = DescribeSnapshotsRequest;
+export type DescribeSnapshotsCommandOutput = DescribeSnapshotsResult;
+
+export class DescribeSnapshotsCommand extends $Command<
+ DescribeSnapshotsCommandInput,
+ DescribeSnapshotsCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeSnapshotsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeSnapshotsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeSnapshotsCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeSnapshotsCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DescribeTrustsCommand.ts b/clients/client-directory-service/commands/DescribeTrustsCommand.ts
new file mode 100644
index 000000000000..ca4870b5276c
--- /dev/null
+++ b/clients/client-directory-service/commands/DescribeTrustsCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { DescribeTrustsRequest, DescribeTrustsResult } from "../models/index";
+import {
+ deserializeAws_json1_1DescribeTrustsCommand,
+ serializeAws_json1_1DescribeTrustsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DescribeTrustsCommandInput = DescribeTrustsRequest;
+export type DescribeTrustsCommandOutput = DescribeTrustsResult;
+
+export class DescribeTrustsCommand extends $Command<
+ DescribeTrustsCommandInput,
+ DescribeTrustsCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DescribeTrustsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DescribeTrustsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DescribeTrustsCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DescribeTrustsCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DisableLDAPSCommand.ts b/clients/client-directory-service/commands/DisableLDAPSCommand.ts
new file mode 100644
index 000000000000..c7275058c769
--- /dev/null
+++ b/clients/client-directory-service/commands/DisableLDAPSCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { DisableLDAPSRequest, DisableLDAPSResult } from "../models/index";
+import {
+ deserializeAws_json1_1DisableLDAPSCommand,
+ serializeAws_json1_1DisableLDAPSCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DisableLDAPSCommandInput = DisableLDAPSRequest;
+export type DisableLDAPSCommandOutput = DisableLDAPSResult;
+
+export class DisableLDAPSCommand extends $Command<
+ DisableLDAPSCommandInput,
+ DisableLDAPSCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DisableLDAPSCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DisableLDAPSCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DisableLDAPSCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DisableLDAPSCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DisableRadiusCommand.ts b/clients/client-directory-service/commands/DisableRadiusCommand.ts
new file mode 100644
index 000000000000..1de61fe5c79f
--- /dev/null
+++ b/clients/client-directory-service/commands/DisableRadiusCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { DisableRadiusRequest, DisableRadiusResult } from "../models/index";
+import {
+ deserializeAws_json1_1DisableRadiusCommand,
+ serializeAws_json1_1DisableRadiusCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DisableRadiusCommandInput = DisableRadiusRequest;
+export type DisableRadiusCommandOutput = DisableRadiusResult;
+
+export class DisableRadiusCommand extends $Command<
+ DisableRadiusCommandInput,
+ DisableRadiusCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DisableRadiusCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DisableRadiusCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DisableRadiusCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DisableRadiusCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/DisableSsoCommand.ts b/clients/client-directory-service/commands/DisableSsoCommand.ts
new file mode 100644
index 000000000000..1c881f59322c
--- /dev/null
+++ b/clients/client-directory-service/commands/DisableSsoCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { DisableSsoRequest, DisableSsoResult } from "../models/index";
+import {
+ deserializeAws_json1_1DisableSsoCommand,
+ serializeAws_json1_1DisableSsoCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type DisableSsoCommandInput = DisableSsoRequest;
+export type DisableSsoCommandOutput = DisableSsoResult;
+
+export class DisableSsoCommand extends $Command<
+ DisableSsoCommandInput,
+ DisableSsoCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: DisableSsoCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: DisableSsoCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1DisableSsoCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1DisableSsoCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/EnableLDAPSCommand.ts b/clients/client-directory-service/commands/EnableLDAPSCommand.ts
new file mode 100644
index 000000000000..ced2f80b569a
--- /dev/null
+++ b/clients/client-directory-service/commands/EnableLDAPSCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { EnableLDAPSRequest, EnableLDAPSResult } from "../models/index";
+import {
+ deserializeAws_json1_1EnableLDAPSCommand,
+ serializeAws_json1_1EnableLDAPSCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type EnableLDAPSCommandInput = EnableLDAPSRequest;
+export type EnableLDAPSCommandOutput = EnableLDAPSResult;
+
+export class EnableLDAPSCommand extends $Command<
+ EnableLDAPSCommandInput,
+ EnableLDAPSCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: EnableLDAPSCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: EnableLDAPSCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1EnableLDAPSCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1EnableLDAPSCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/EnableRadiusCommand.ts b/clients/client-directory-service/commands/EnableRadiusCommand.ts
new file mode 100644
index 000000000000..2078831e4a7f
--- /dev/null
+++ b/clients/client-directory-service/commands/EnableRadiusCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { EnableRadiusRequest, EnableRadiusResult } from "../models/index";
+import {
+ deserializeAws_json1_1EnableRadiusCommand,
+ serializeAws_json1_1EnableRadiusCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type EnableRadiusCommandInput = EnableRadiusRequest;
+export type EnableRadiusCommandOutput = EnableRadiusResult;
+
+export class EnableRadiusCommand extends $Command<
+ EnableRadiusCommandInput,
+ EnableRadiusCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: EnableRadiusCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: EnableRadiusCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1EnableRadiusCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1EnableRadiusCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/EnableSsoCommand.ts b/clients/client-directory-service/commands/EnableSsoCommand.ts
new file mode 100644
index 000000000000..919f205e27bc
--- /dev/null
+++ b/clients/client-directory-service/commands/EnableSsoCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { EnableSsoRequest, EnableSsoResult } from "../models/index";
+import {
+ deserializeAws_json1_1EnableSsoCommand,
+ serializeAws_json1_1EnableSsoCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type EnableSsoCommandInput = EnableSsoRequest;
+export type EnableSsoCommandOutput = EnableSsoResult;
+
+export class EnableSsoCommand extends $Command<
+ EnableSsoCommandInput,
+ EnableSsoCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: EnableSsoCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: EnableSsoCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1EnableSsoCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1EnableSsoCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/GetDirectoryLimitsCommand.ts b/clients/client-directory-service/commands/GetDirectoryLimitsCommand.ts
new file mode 100644
index 000000000000..1fa0edff5a66
--- /dev/null
+++ b/clients/client-directory-service/commands/GetDirectoryLimitsCommand.ts
@@ -0,0 +1,84 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ GetDirectoryLimitsRequest,
+ GetDirectoryLimitsResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1GetDirectoryLimitsCommand,
+ serializeAws_json1_1GetDirectoryLimitsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type GetDirectoryLimitsCommandInput = GetDirectoryLimitsRequest;
+export type GetDirectoryLimitsCommandOutput = GetDirectoryLimitsResult;
+
+export class GetDirectoryLimitsCommand extends $Command<
+ GetDirectoryLimitsCommandInput,
+ GetDirectoryLimitsCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: GetDirectoryLimitsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: GetDirectoryLimitsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1GetDirectoryLimitsCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1GetDirectoryLimitsCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/GetSnapshotLimitsCommand.ts b/clients/client-directory-service/commands/GetSnapshotLimitsCommand.ts
new file mode 100644
index 000000000000..762ed03b7b0e
--- /dev/null
+++ b/clients/client-directory-service/commands/GetSnapshotLimitsCommand.ts
@@ -0,0 +1,84 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ GetSnapshotLimitsRequest,
+ GetSnapshotLimitsResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1GetSnapshotLimitsCommand,
+ serializeAws_json1_1GetSnapshotLimitsCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type GetSnapshotLimitsCommandInput = GetSnapshotLimitsRequest;
+export type GetSnapshotLimitsCommandOutput = GetSnapshotLimitsResult;
+
+export class GetSnapshotLimitsCommand extends $Command<
+ GetSnapshotLimitsCommandInput,
+ GetSnapshotLimitsCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: GetSnapshotLimitsCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: GetSnapshotLimitsCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1GetSnapshotLimitsCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1GetSnapshotLimitsCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/ListCertificatesCommand.ts b/clients/client-directory-service/commands/ListCertificatesCommand.ts
new file mode 100644
index 000000000000..5ba87c3717dc
--- /dev/null
+++ b/clients/client-directory-service/commands/ListCertificatesCommand.ts
@@ -0,0 +1,84 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import {
+ ListCertificatesRequest,
+ ListCertificatesResult
+} from "../models/index";
+import {
+ deserializeAws_json1_1ListCertificatesCommand,
+ serializeAws_json1_1ListCertificatesCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListCertificatesCommandInput = ListCertificatesRequest;
+export type ListCertificatesCommandOutput = ListCertificatesResult;
+
+export class ListCertificatesCommand extends $Command<
+ ListCertificatesCommandInput,
+ ListCertificatesCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListCertificatesCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: DirectoryServiceClientResolvedConfig,
+ options?: __HttpHandlerOptions
+ ): Handler {
+ this.middlewareStack.use(
+ getSerdePlugin(configuration, this.serialize, this.deserialize)
+ );
+
+ const stack = clientStack.concat(this.middlewareStack);
+
+ const handlerExecutionContext: HandlerExecutionContext = {
+ logger: {} as any
+ };
+ const { requestHandler } = configuration;
+ return stack.resolve(
+ (request: FinalizeHandlerArguments) =>
+ requestHandler.handle(request.request as __HttpRequest, options || {}),
+ handlerExecutionContext
+ );
+ }
+
+ private serialize(
+ input: ListCertificatesCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_json1_1ListCertificatesCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_json1_1ListCertificatesCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-directory-service/commands/ListIpRoutesCommand.ts b/clients/client-directory-service/commands/ListIpRoutesCommand.ts
new file mode 100644
index 000000000000..2d6c00b8e93d
--- /dev/null
+++ b/clients/client-directory-service/commands/ListIpRoutesCommand.ts
@@ -0,0 +1,81 @@
+import {
+ DirectoryServiceClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes
+} from "../DirectoryServiceClient";
+import { ListIpRoutesRequest, ListIpRoutesResult } from "../models/index";
+import {
+ deserializeAws_json1_1ListIpRoutesCommand,
+ serializeAws_json1_1ListIpRoutesCommand
+} from "../protocols/Aws_json1_1";
+import { getSerdePlugin } from "@aws-sdk/middleware-serde";
+import {
+ HttpRequest as __HttpRequest,
+ HttpResponse as __HttpResponse
+} from "@aws-sdk/protocol-http";
+import { Command as $Command } from "@aws-sdk/smithy-client";
+import {
+ FinalizeHandlerArguments,
+ Handler,
+ HandlerExecutionContext,
+ MiddlewareStack,
+ SerdeContext,
+ HttpHandlerOptions as __HttpHandlerOptions
+} from "@aws-sdk/types";
+
+export type ListIpRoutesCommandInput = ListIpRoutesRequest;
+export type ListIpRoutesCommandOutput = ListIpRoutesResult;
+
+export class ListIpRoutesCommand extends $Command<
+ ListIpRoutesCommandInput,
+ ListIpRoutesCommandOutput,
+ DirectoryServiceClientResolvedConfig
+> {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: ListIpRoutesCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack