diff --git a/clients/client-api-gateway/.gitignore b/clients/client-api-gateway/.gitignore
new file mode 100644
index 000000000000..b41c05b597c4
--- /dev/null
+++ b/clients/client-api-gateway/.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-api-gateway/.npmignore b/clients/client-api-gateway/.npmignore
new file mode 100644
index 000000000000..b7ff81137c4a
--- /dev/null
+++ b/clients/client-api-gateway/.npmignore
@@ -0,0 +1,4 @@
+/coverage/
+/docs/
+tsconfig.test.json
+*.tsbuildinfo
diff --git a/clients/client-api-gateway/APIGateway.ts b/clients/client-api-gateway/APIGateway.ts
new file mode 100644
index 000000000000..2a98f13927e2
--- /dev/null
+++ b/clients/client-api-gateway/APIGateway.ts
@@ -0,0 +1,5156 @@
+import { APIGatewayClient } from "./APIGatewayClient";
+import {
+ CreateApiKeyCommand,
+ CreateApiKeyCommandInput,
+ CreateApiKeyCommandOutput,
+} from "./commands/CreateApiKeyCommand";
+import {
+ CreateAuthorizerCommand,
+ CreateAuthorizerCommandInput,
+ CreateAuthorizerCommandOutput,
+} from "./commands/CreateAuthorizerCommand";
+import {
+ CreateBasePathMappingCommand,
+ CreateBasePathMappingCommandInput,
+ CreateBasePathMappingCommandOutput,
+} from "./commands/CreateBasePathMappingCommand";
+import {
+ CreateDeploymentCommand,
+ CreateDeploymentCommandInput,
+ CreateDeploymentCommandOutput,
+} from "./commands/CreateDeploymentCommand";
+import {
+ CreateDocumentationPartCommand,
+ CreateDocumentationPartCommandInput,
+ CreateDocumentationPartCommandOutput,
+} from "./commands/CreateDocumentationPartCommand";
+import {
+ CreateDocumentationVersionCommand,
+ CreateDocumentationVersionCommandInput,
+ CreateDocumentationVersionCommandOutput,
+} from "./commands/CreateDocumentationVersionCommand";
+import {
+ CreateDomainNameCommand,
+ CreateDomainNameCommandInput,
+ CreateDomainNameCommandOutput,
+} from "./commands/CreateDomainNameCommand";
+import {
+ CreateModelCommand,
+ CreateModelCommandInput,
+ CreateModelCommandOutput,
+} from "./commands/CreateModelCommand";
+import {
+ CreateRequestValidatorCommand,
+ CreateRequestValidatorCommandInput,
+ CreateRequestValidatorCommandOutput,
+} from "./commands/CreateRequestValidatorCommand";
+import {
+ CreateResourceCommand,
+ CreateResourceCommandInput,
+ CreateResourceCommandOutput,
+} from "./commands/CreateResourceCommand";
+import {
+ CreateRestApiCommand,
+ CreateRestApiCommandInput,
+ CreateRestApiCommandOutput,
+} from "./commands/CreateRestApiCommand";
+import {
+ CreateStageCommand,
+ CreateStageCommandInput,
+ CreateStageCommandOutput,
+} from "./commands/CreateStageCommand";
+import {
+ CreateUsagePlanCommand,
+ CreateUsagePlanCommandInput,
+ CreateUsagePlanCommandOutput,
+} from "./commands/CreateUsagePlanCommand";
+import {
+ CreateUsagePlanKeyCommand,
+ CreateUsagePlanKeyCommandInput,
+ CreateUsagePlanKeyCommandOutput,
+} from "./commands/CreateUsagePlanKeyCommand";
+import {
+ CreateVpcLinkCommand,
+ CreateVpcLinkCommandInput,
+ CreateVpcLinkCommandOutput,
+} from "./commands/CreateVpcLinkCommand";
+import {
+ DeleteApiKeyCommand,
+ DeleteApiKeyCommandInput,
+ DeleteApiKeyCommandOutput,
+} from "./commands/DeleteApiKeyCommand";
+import {
+ DeleteAuthorizerCommand,
+ DeleteAuthorizerCommandInput,
+ DeleteAuthorizerCommandOutput,
+} from "./commands/DeleteAuthorizerCommand";
+import {
+ DeleteBasePathMappingCommand,
+ DeleteBasePathMappingCommandInput,
+ DeleteBasePathMappingCommandOutput,
+} from "./commands/DeleteBasePathMappingCommand";
+import {
+ DeleteClientCertificateCommand,
+ DeleteClientCertificateCommandInput,
+ DeleteClientCertificateCommandOutput,
+} from "./commands/DeleteClientCertificateCommand";
+import {
+ DeleteDeploymentCommand,
+ DeleteDeploymentCommandInput,
+ DeleteDeploymentCommandOutput,
+} from "./commands/DeleteDeploymentCommand";
+import {
+ DeleteDocumentationPartCommand,
+ DeleteDocumentationPartCommandInput,
+ DeleteDocumentationPartCommandOutput,
+} from "./commands/DeleteDocumentationPartCommand";
+import {
+ DeleteDocumentationVersionCommand,
+ DeleteDocumentationVersionCommandInput,
+ DeleteDocumentationVersionCommandOutput,
+} from "./commands/DeleteDocumentationVersionCommand";
+import {
+ DeleteDomainNameCommand,
+ DeleteDomainNameCommandInput,
+ DeleteDomainNameCommandOutput,
+} from "./commands/DeleteDomainNameCommand";
+import {
+ DeleteGatewayResponseCommand,
+ DeleteGatewayResponseCommandInput,
+ DeleteGatewayResponseCommandOutput,
+} from "./commands/DeleteGatewayResponseCommand";
+import {
+ DeleteIntegrationCommand,
+ DeleteIntegrationCommandInput,
+ DeleteIntegrationCommandOutput,
+} from "./commands/DeleteIntegrationCommand";
+import {
+ DeleteIntegrationResponseCommand,
+ DeleteIntegrationResponseCommandInput,
+ DeleteIntegrationResponseCommandOutput,
+} from "./commands/DeleteIntegrationResponseCommand";
+import {
+ DeleteMethodCommand,
+ DeleteMethodCommandInput,
+ DeleteMethodCommandOutput,
+} from "./commands/DeleteMethodCommand";
+import {
+ DeleteMethodResponseCommand,
+ DeleteMethodResponseCommandInput,
+ DeleteMethodResponseCommandOutput,
+} from "./commands/DeleteMethodResponseCommand";
+import {
+ DeleteModelCommand,
+ DeleteModelCommandInput,
+ DeleteModelCommandOutput,
+} from "./commands/DeleteModelCommand";
+import {
+ DeleteRequestValidatorCommand,
+ DeleteRequestValidatorCommandInput,
+ DeleteRequestValidatorCommandOutput,
+} from "./commands/DeleteRequestValidatorCommand";
+import {
+ DeleteResourceCommand,
+ DeleteResourceCommandInput,
+ DeleteResourceCommandOutput,
+} from "./commands/DeleteResourceCommand";
+import {
+ DeleteRestApiCommand,
+ DeleteRestApiCommandInput,
+ DeleteRestApiCommandOutput,
+} from "./commands/DeleteRestApiCommand";
+import {
+ DeleteStageCommand,
+ DeleteStageCommandInput,
+ DeleteStageCommandOutput,
+} from "./commands/DeleteStageCommand";
+import {
+ DeleteUsagePlanCommand,
+ DeleteUsagePlanCommandInput,
+ DeleteUsagePlanCommandOutput,
+} from "./commands/DeleteUsagePlanCommand";
+import {
+ DeleteUsagePlanKeyCommand,
+ DeleteUsagePlanKeyCommandInput,
+ DeleteUsagePlanKeyCommandOutput,
+} from "./commands/DeleteUsagePlanKeyCommand";
+import {
+ DeleteVpcLinkCommand,
+ DeleteVpcLinkCommandInput,
+ DeleteVpcLinkCommandOutput,
+} from "./commands/DeleteVpcLinkCommand";
+import {
+ FlushStageAuthorizersCacheCommand,
+ FlushStageAuthorizersCacheCommandInput,
+ FlushStageAuthorizersCacheCommandOutput,
+} from "./commands/FlushStageAuthorizersCacheCommand";
+import {
+ FlushStageCacheCommand,
+ FlushStageCacheCommandInput,
+ FlushStageCacheCommandOutput,
+} from "./commands/FlushStageCacheCommand";
+import {
+ GenerateClientCertificateCommand,
+ GenerateClientCertificateCommandInput,
+ GenerateClientCertificateCommandOutput,
+} from "./commands/GenerateClientCertificateCommand";
+import {
+ GetAccountCommand,
+ GetAccountCommandInput,
+ GetAccountCommandOutput,
+} from "./commands/GetAccountCommand";
+import {
+ GetApiKeyCommand,
+ GetApiKeyCommandInput,
+ GetApiKeyCommandOutput,
+} from "./commands/GetApiKeyCommand";
+import {
+ GetApiKeysCommand,
+ GetApiKeysCommandInput,
+ GetApiKeysCommandOutput,
+} from "./commands/GetApiKeysCommand";
+import {
+ GetAuthorizerCommand,
+ GetAuthorizerCommandInput,
+ GetAuthorizerCommandOutput,
+} from "./commands/GetAuthorizerCommand";
+import {
+ GetAuthorizersCommand,
+ GetAuthorizersCommandInput,
+ GetAuthorizersCommandOutput,
+} from "./commands/GetAuthorizersCommand";
+import {
+ GetBasePathMappingCommand,
+ GetBasePathMappingCommandInput,
+ GetBasePathMappingCommandOutput,
+} from "./commands/GetBasePathMappingCommand";
+import {
+ GetBasePathMappingsCommand,
+ GetBasePathMappingsCommandInput,
+ GetBasePathMappingsCommandOutput,
+} from "./commands/GetBasePathMappingsCommand";
+import {
+ GetClientCertificateCommand,
+ GetClientCertificateCommandInput,
+ GetClientCertificateCommandOutput,
+} from "./commands/GetClientCertificateCommand";
+import {
+ GetClientCertificatesCommand,
+ GetClientCertificatesCommandInput,
+ GetClientCertificatesCommandOutput,
+} from "./commands/GetClientCertificatesCommand";
+import {
+ GetDeploymentCommand,
+ GetDeploymentCommandInput,
+ GetDeploymentCommandOutput,
+} from "./commands/GetDeploymentCommand";
+import {
+ GetDeploymentsCommand,
+ GetDeploymentsCommandInput,
+ GetDeploymentsCommandOutput,
+} from "./commands/GetDeploymentsCommand";
+import {
+ GetDocumentationPartCommand,
+ GetDocumentationPartCommandInput,
+ GetDocumentationPartCommandOutput,
+} from "./commands/GetDocumentationPartCommand";
+import {
+ GetDocumentationPartsCommand,
+ GetDocumentationPartsCommandInput,
+ GetDocumentationPartsCommandOutput,
+} from "./commands/GetDocumentationPartsCommand";
+import {
+ GetDocumentationVersionCommand,
+ GetDocumentationVersionCommandInput,
+ GetDocumentationVersionCommandOutput,
+} from "./commands/GetDocumentationVersionCommand";
+import {
+ GetDocumentationVersionsCommand,
+ GetDocumentationVersionsCommandInput,
+ GetDocumentationVersionsCommandOutput,
+} from "./commands/GetDocumentationVersionsCommand";
+import {
+ GetDomainNameCommand,
+ GetDomainNameCommandInput,
+ GetDomainNameCommandOutput,
+} from "./commands/GetDomainNameCommand";
+import {
+ GetDomainNamesCommand,
+ GetDomainNamesCommandInput,
+ GetDomainNamesCommandOutput,
+} from "./commands/GetDomainNamesCommand";
+import {
+ GetExportCommand,
+ GetExportCommandInput,
+ GetExportCommandOutput,
+} from "./commands/GetExportCommand";
+import {
+ GetGatewayResponseCommand,
+ GetGatewayResponseCommandInput,
+ GetGatewayResponseCommandOutput,
+} from "./commands/GetGatewayResponseCommand";
+import {
+ GetGatewayResponsesCommand,
+ GetGatewayResponsesCommandInput,
+ GetGatewayResponsesCommandOutput,
+} from "./commands/GetGatewayResponsesCommand";
+import {
+ GetIntegrationCommand,
+ GetIntegrationCommandInput,
+ GetIntegrationCommandOutput,
+} from "./commands/GetIntegrationCommand";
+import {
+ GetIntegrationResponseCommand,
+ GetIntegrationResponseCommandInput,
+ GetIntegrationResponseCommandOutput,
+} from "./commands/GetIntegrationResponseCommand";
+import {
+ GetMethodCommand,
+ GetMethodCommandInput,
+ GetMethodCommandOutput,
+} from "./commands/GetMethodCommand";
+import {
+ GetMethodResponseCommand,
+ GetMethodResponseCommandInput,
+ GetMethodResponseCommandOutput,
+} from "./commands/GetMethodResponseCommand";
+import {
+ GetModelCommand,
+ GetModelCommandInput,
+ GetModelCommandOutput,
+} from "./commands/GetModelCommand";
+import {
+ GetModelTemplateCommand,
+ GetModelTemplateCommandInput,
+ GetModelTemplateCommandOutput,
+} from "./commands/GetModelTemplateCommand";
+import {
+ GetModelsCommand,
+ GetModelsCommandInput,
+ GetModelsCommandOutput,
+} from "./commands/GetModelsCommand";
+import {
+ GetRequestValidatorCommand,
+ GetRequestValidatorCommandInput,
+ GetRequestValidatorCommandOutput,
+} from "./commands/GetRequestValidatorCommand";
+import {
+ GetRequestValidatorsCommand,
+ GetRequestValidatorsCommandInput,
+ GetRequestValidatorsCommandOutput,
+} from "./commands/GetRequestValidatorsCommand";
+import {
+ GetResourceCommand,
+ GetResourceCommandInput,
+ GetResourceCommandOutput,
+} from "./commands/GetResourceCommand";
+import {
+ GetResourcesCommand,
+ GetResourcesCommandInput,
+ GetResourcesCommandOutput,
+} from "./commands/GetResourcesCommand";
+import {
+ GetRestApiCommand,
+ GetRestApiCommandInput,
+ GetRestApiCommandOutput,
+} from "./commands/GetRestApiCommand";
+import {
+ GetRestApisCommand,
+ GetRestApisCommandInput,
+ GetRestApisCommandOutput,
+} from "./commands/GetRestApisCommand";
+import {
+ GetSdkCommand,
+ GetSdkCommandInput,
+ GetSdkCommandOutput,
+} from "./commands/GetSdkCommand";
+import {
+ GetSdkTypeCommand,
+ GetSdkTypeCommandInput,
+ GetSdkTypeCommandOutput,
+} from "./commands/GetSdkTypeCommand";
+import {
+ GetSdkTypesCommand,
+ GetSdkTypesCommandInput,
+ GetSdkTypesCommandOutput,
+} from "./commands/GetSdkTypesCommand";
+import {
+ GetStageCommand,
+ GetStageCommandInput,
+ GetStageCommandOutput,
+} from "./commands/GetStageCommand";
+import {
+ GetStagesCommand,
+ GetStagesCommandInput,
+ GetStagesCommandOutput,
+} from "./commands/GetStagesCommand";
+import {
+ GetTagsCommand,
+ GetTagsCommandInput,
+ GetTagsCommandOutput,
+} from "./commands/GetTagsCommand";
+import {
+ GetUsageCommand,
+ GetUsageCommandInput,
+ GetUsageCommandOutput,
+} from "./commands/GetUsageCommand";
+import {
+ GetUsagePlanCommand,
+ GetUsagePlanCommandInput,
+ GetUsagePlanCommandOutput,
+} from "./commands/GetUsagePlanCommand";
+import {
+ GetUsagePlanKeyCommand,
+ GetUsagePlanKeyCommandInput,
+ GetUsagePlanKeyCommandOutput,
+} from "./commands/GetUsagePlanKeyCommand";
+import {
+ GetUsagePlanKeysCommand,
+ GetUsagePlanKeysCommandInput,
+ GetUsagePlanKeysCommandOutput,
+} from "./commands/GetUsagePlanKeysCommand";
+import {
+ GetUsagePlansCommand,
+ GetUsagePlansCommandInput,
+ GetUsagePlansCommandOutput,
+} from "./commands/GetUsagePlansCommand";
+import {
+ GetVpcLinkCommand,
+ GetVpcLinkCommandInput,
+ GetVpcLinkCommandOutput,
+} from "./commands/GetVpcLinkCommand";
+import {
+ GetVpcLinksCommand,
+ GetVpcLinksCommandInput,
+ GetVpcLinksCommandOutput,
+} from "./commands/GetVpcLinksCommand";
+import {
+ ImportApiKeysCommand,
+ ImportApiKeysCommandInput,
+ ImportApiKeysCommandOutput,
+} from "./commands/ImportApiKeysCommand";
+import {
+ ImportDocumentationPartsCommand,
+ ImportDocumentationPartsCommandInput,
+ ImportDocumentationPartsCommandOutput,
+} from "./commands/ImportDocumentationPartsCommand";
+import {
+ ImportRestApiCommand,
+ ImportRestApiCommandInput,
+ ImportRestApiCommandOutput,
+} from "./commands/ImportRestApiCommand";
+import {
+ PutGatewayResponseCommand,
+ PutGatewayResponseCommandInput,
+ PutGatewayResponseCommandOutput,
+} from "./commands/PutGatewayResponseCommand";
+import {
+ PutIntegrationCommand,
+ PutIntegrationCommandInput,
+ PutIntegrationCommandOutput,
+} from "./commands/PutIntegrationCommand";
+import {
+ PutIntegrationResponseCommand,
+ PutIntegrationResponseCommandInput,
+ PutIntegrationResponseCommandOutput,
+} from "./commands/PutIntegrationResponseCommand";
+import {
+ PutMethodCommand,
+ PutMethodCommandInput,
+ PutMethodCommandOutput,
+} from "./commands/PutMethodCommand";
+import {
+ PutMethodResponseCommand,
+ PutMethodResponseCommandInput,
+ PutMethodResponseCommandOutput,
+} from "./commands/PutMethodResponseCommand";
+import {
+ PutRestApiCommand,
+ PutRestApiCommandInput,
+ PutRestApiCommandOutput,
+} from "./commands/PutRestApiCommand";
+import {
+ TagResourceCommand,
+ TagResourceCommandInput,
+ TagResourceCommandOutput,
+} from "./commands/TagResourceCommand";
+import {
+ TestInvokeAuthorizerCommand,
+ TestInvokeAuthorizerCommandInput,
+ TestInvokeAuthorizerCommandOutput,
+} from "./commands/TestInvokeAuthorizerCommand";
+import {
+ TestInvokeMethodCommand,
+ TestInvokeMethodCommandInput,
+ TestInvokeMethodCommandOutput,
+} from "./commands/TestInvokeMethodCommand";
+import {
+ UntagResourceCommand,
+ UntagResourceCommandInput,
+ UntagResourceCommandOutput,
+} from "./commands/UntagResourceCommand";
+import {
+ UpdateAccountCommand,
+ UpdateAccountCommandInput,
+ UpdateAccountCommandOutput,
+} from "./commands/UpdateAccountCommand";
+import {
+ UpdateApiKeyCommand,
+ UpdateApiKeyCommandInput,
+ UpdateApiKeyCommandOutput,
+} from "./commands/UpdateApiKeyCommand";
+import {
+ UpdateAuthorizerCommand,
+ UpdateAuthorizerCommandInput,
+ UpdateAuthorizerCommandOutput,
+} from "./commands/UpdateAuthorizerCommand";
+import {
+ UpdateBasePathMappingCommand,
+ UpdateBasePathMappingCommandInput,
+ UpdateBasePathMappingCommandOutput,
+} from "./commands/UpdateBasePathMappingCommand";
+import {
+ UpdateClientCertificateCommand,
+ UpdateClientCertificateCommandInput,
+ UpdateClientCertificateCommandOutput,
+} from "./commands/UpdateClientCertificateCommand";
+import {
+ UpdateDeploymentCommand,
+ UpdateDeploymentCommandInput,
+ UpdateDeploymentCommandOutput,
+} from "./commands/UpdateDeploymentCommand";
+import {
+ UpdateDocumentationPartCommand,
+ UpdateDocumentationPartCommandInput,
+ UpdateDocumentationPartCommandOutput,
+} from "./commands/UpdateDocumentationPartCommand";
+import {
+ UpdateDocumentationVersionCommand,
+ UpdateDocumentationVersionCommandInput,
+ UpdateDocumentationVersionCommandOutput,
+} from "./commands/UpdateDocumentationVersionCommand";
+import {
+ UpdateDomainNameCommand,
+ UpdateDomainNameCommandInput,
+ UpdateDomainNameCommandOutput,
+} from "./commands/UpdateDomainNameCommand";
+import {
+ UpdateGatewayResponseCommand,
+ UpdateGatewayResponseCommandInput,
+ UpdateGatewayResponseCommandOutput,
+} from "./commands/UpdateGatewayResponseCommand";
+import {
+ UpdateIntegrationCommand,
+ UpdateIntegrationCommandInput,
+ UpdateIntegrationCommandOutput,
+} from "./commands/UpdateIntegrationCommand";
+import {
+ UpdateIntegrationResponseCommand,
+ UpdateIntegrationResponseCommandInput,
+ UpdateIntegrationResponseCommandOutput,
+} from "./commands/UpdateIntegrationResponseCommand";
+import {
+ UpdateMethodCommand,
+ UpdateMethodCommandInput,
+ UpdateMethodCommandOutput,
+} from "./commands/UpdateMethodCommand";
+import {
+ UpdateMethodResponseCommand,
+ UpdateMethodResponseCommandInput,
+ UpdateMethodResponseCommandOutput,
+} from "./commands/UpdateMethodResponseCommand";
+import {
+ UpdateModelCommand,
+ UpdateModelCommandInput,
+ UpdateModelCommandOutput,
+} from "./commands/UpdateModelCommand";
+import {
+ UpdateRequestValidatorCommand,
+ UpdateRequestValidatorCommandInput,
+ UpdateRequestValidatorCommandOutput,
+} from "./commands/UpdateRequestValidatorCommand";
+import {
+ UpdateResourceCommand,
+ UpdateResourceCommandInput,
+ UpdateResourceCommandOutput,
+} from "./commands/UpdateResourceCommand";
+import {
+ UpdateRestApiCommand,
+ UpdateRestApiCommandInput,
+ UpdateRestApiCommandOutput,
+} from "./commands/UpdateRestApiCommand";
+import {
+ UpdateStageCommand,
+ UpdateStageCommandInput,
+ UpdateStageCommandOutput,
+} from "./commands/UpdateStageCommand";
+import {
+ UpdateUsageCommand,
+ UpdateUsageCommandInput,
+ UpdateUsageCommandOutput,
+} from "./commands/UpdateUsageCommand";
+import {
+ UpdateUsagePlanCommand,
+ UpdateUsagePlanCommandInput,
+ UpdateUsagePlanCommandOutput,
+} from "./commands/UpdateUsagePlanCommand";
+import {
+ UpdateVpcLinkCommand,
+ UpdateVpcLinkCommandInput,
+ UpdateVpcLinkCommandOutput,
+} from "./commands/UpdateVpcLinkCommand";
+import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
+
+/**
+ *
+ * Amazon API Gateway
+ *
+ *
+ * Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.
+ *
+ */
+export class APIGateway extends APIGatewayClient {
+ /**
+ *
+ * Deletes an existing
+ *
+ * Authorizer
+ *
+ * resource.
+ *
+ *
+ */
+ public deleteAuthorizer(
+ args: DeleteAuthorizerCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteAuthorizer(
+ args: DeleteAuthorizerCommandInput,
+ cb: (err: any, data?: DeleteAuthorizerCommandOutput) => void
+ ): void;
+ public deleteAuthorizer(
+ args: DeleteAuthorizerCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteAuthorizerCommandOutput) => void
+ ): void;
+ public deleteAuthorizer(
+ args: DeleteAuthorizerCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteAuthorizerCommandOutput) => void),
+ cb?: (err: any, data?: DeleteAuthorizerCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteAuthorizerCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets the
+ *
+ * Tags
+ *
+ * collection for a given resource.
+ *
+ */
+ public getTags(
+ args: GetTagsCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getTags(
+ args: GetTagsCommandInput,
+ cb: (err: any, data?: GetTagsCommandOutput) => void
+ ): void;
+ public getTags(
+ args: GetTagsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetTagsCommandOutput) => void
+ ): void;
+ public getTags(
+ args: GetTagsCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetTagsCommandOutput) => void),
+ cb?: (err: any, data?: GetTagsCommandOutput) => void
+ ): Promise | void {
+ const command = new GetTagsCommand(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 new
+ *
+ * Stage
+ *
+ * resource that references a pre-existing
+ *
+ * Deployment
+ *
+ * for the API.
+ *
+ *
+ */
+ public createStage(
+ args: CreateStageCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createStage(
+ args: CreateStageCommandInput,
+ cb: (err: any, data?: CreateStageCommandOutput) => void
+ ): void;
+ public createStage(
+ args: CreateStageCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateStageCommandOutput) => void
+ ): void;
+ public createStage(
+ args: CreateStageCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateStageCommandOutput) => void),
+ cb?: (err: any, data?: CreateStageCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateStageCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets information about a
+ *
+ * Stage
+ *
+ * resource.
+ *
+ */
+ public getStage(
+ args: GetStageCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getStage(
+ args: GetStageCommandInput,
+ cb: (err: any, data?: GetStageCommandOutput) => void
+ ): void;
+ public getStage(
+ args: GetStageCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetStageCommandOutput) => void
+ ): void;
+ public getStage(
+ args: GetStageCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetStageCommandOutput) => void),
+ cb?: (err: any, data?: GetStageCommandOutput) => void
+ ): Promise | void {
+ const command = new GetStageCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets the usage data of a usage plan in a specified time interval.
+ *
+ */
+ public getUsage(
+ args: GetUsageCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getUsage(
+ args: GetUsageCommandInput,
+ cb: (err: any, data?: GetUsageCommandOutput) => void
+ ): void;
+ public getUsage(
+ args: GetUsageCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetUsageCommandOutput) => void
+ ): void;
+ public getUsage(
+ args: GetUsageCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetUsageCommandOutput) => void),
+ cb?: (err: any, data?: GetUsageCommandOutput) => void
+ ): Promise | void {
+ const command = new GetUsageCommand(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
+ *
+ * ReqeustValidator
+ *
+ * of a given
+ *
+ * RestApi
+ *
+ * .
+ *
+ */
+ public createRequestValidator(
+ args: CreateRequestValidatorCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createRequestValidator(
+ args: CreateRequestValidatorCommandInput,
+ cb: (err: any, data?: CreateRequestValidatorCommandOutput) => void
+ ): void;
+ public createRequestValidator(
+ args: CreateRequestValidatorCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateRequestValidatorCommandOutput) => void
+ ): void;
+ public createRequestValidator(
+ args: CreateRequestValidatorCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateRequestValidatorCommandOutput) => void),
+ cb?: (err: any, data?: CreateRequestValidatorCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateRequestValidatorCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Changes information about a
+ *
+ * Resource
+ *
+ * resource.
+ *
+ */
+ public updateResource(
+ args: UpdateResourceCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateResource(
+ args: UpdateResourceCommandInput,
+ cb: (err: any, data?: UpdateResourceCommandOutput) => void
+ ): void;
+ public updateResource(
+ args: UpdateResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateResourceCommandOutput) => void
+ ): void;
+ public updateResource(
+ args: UpdateResourceCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateResourceCommandOutput) => void),
+ cb?: (err: any, data?: UpdateResourceCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateResourceCommand(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
+ *
+ * Resource
+ *
+ * resource.
+ *
+ */
+ public deleteResource(
+ args: DeleteResourceCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteResource(
+ args: DeleteResourceCommandInput,
+ cb: (err: any, data?: DeleteResourceCommandOutput) => void
+ ): void;
+ public deleteResource(
+ args: DeleteResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteResourceCommandOutput) => void
+ ): void;
+ public deleteResource(
+ args: DeleteResourceCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteResourceCommandOutput) => void),
+ cb?: (err: any, data?: DeleteResourceCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteResourceCommand(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
+ *
+ * Deployment
+ *
+ * resource. Deleting a deployment will only succeed if there are no
+ *
+ * Stage
+ *
+ * resources associated with it.
+ *
+ */
+ public deleteDeployment(
+ args: DeleteDeploymentCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteDeployment(
+ args: DeleteDeploymentCommandInput,
+ cb: (err: any, data?: DeleteDeploymentCommandOutput) => void
+ ): void;
+ public deleteDeployment(
+ args: DeleteDeploymentCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteDeploymentCommandOutput) => void
+ ): void;
+ public deleteDeployment(
+ args: DeleteDeploymentCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDeploymentCommandOutput) => void),
+ cb?: (err: any, data?: DeleteDeploymentCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteDeploymentCommand(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);
+ }
+ }
+
+ public getSdkTypes(
+ args: GetSdkTypesCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getSdkTypes(
+ args: GetSdkTypesCommandInput,
+ cb: (err: any, data?: GetSdkTypesCommandOutput) => void
+ ): void;
+ public getSdkTypes(
+ args: GetSdkTypesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetSdkTypesCommandOutput) => void
+ ): void;
+ public getSdkTypes(
+ args: GetSdkTypesCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetSdkTypesCommandOutput) => void),
+ cb?: (err: any, data?: GetSdkTypesCommandOutput) => void
+ ): Promise | void {
+ const command = new GetSdkTypesCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Changes information about a model.
+ *
+ */
+ public updateModel(
+ args: UpdateModelCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateModel(
+ args: UpdateModelCommandInput,
+ cb: (err: any, data?: UpdateModelCommandOutput) => void
+ ): void;
+ public updateModel(
+ args: UpdateModelCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateModelCommandOutput) => void
+ ): void;
+ public updateModel(
+ args: UpdateModelCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateModelCommandOutput) => void),
+ cb?: (err: any, data?: UpdateModelCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateModelCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Clears any customization of a
+ *
+ * GatewayResponse
+ *
+ * of a specified response type on the given
+ *
+ * RestApi
+ *
+ * and resets it with the default settings.
+ *
+ */
+ public deleteGatewayResponse(
+ args: DeleteGatewayResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteGatewayResponse(
+ args: DeleteGatewayResponseCommandInput,
+ cb: (err: any, data?: DeleteGatewayResponseCommandOutput) => void
+ ): void;
+ public deleteGatewayResponse(
+ args: DeleteGatewayResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteGatewayResponseCommandOutput) => void
+ ): void;
+ public deleteGatewayResponse(
+ args: DeleteGatewayResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteGatewayResponseCommandOutput) => void),
+ cb?: (err: any, data?: DeleteGatewayResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteGatewayResponseCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Create an
+ *
+ * ApiKey
+ *
+ * resource.
+ *
+ *
+ */
+ public createApiKey(
+ args: CreateApiKeyCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createApiKey(
+ args: CreateApiKeyCommandInput,
+ cb: (err: any, data?: CreateApiKeyCommandOutput) => void
+ ): void;
+ public createApiKey(
+ args: CreateApiKeyCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateApiKeyCommandOutput) => void
+ ): void;
+ public createApiKey(
+ args: CreateApiKeyCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateApiKeyCommandOutput) => void),
+ cb?: (err: any, data?: CreateApiKeyCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateApiKeyCommand(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);
+ }
+ }
+
+ public deleteDocumentationVersion(
+ args: DeleteDocumentationVersionCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteDocumentationVersion(
+ args: DeleteDocumentationVersionCommandInput,
+ cb: (err: any, data?: DeleteDocumentationVersionCommandOutput) => void
+ ): void;
+ public deleteDocumentationVersion(
+ args: DeleteDocumentationVersionCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteDocumentationVersionCommandOutput) => void
+ ): void;
+ public deleteDocumentationVersion(
+ args: DeleteDocumentationVersionCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDocumentationVersionCommandOutput) => void),
+ cb?: (err: any, data?: DeleteDocumentationVersionCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteDocumentationVersionCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets a collection of
+ *
+ * ClientCertificate
+ *
+ * resources.
+ *
+ */
+ public getClientCertificates(
+ args: GetClientCertificatesCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getClientCertificates(
+ args: GetClientCertificatesCommandInput,
+ cb: (err: any, data?: GetClientCertificatesCommandOutput) => void
+ ): void;
+ public getClientCertificates(
+ args: GetClientCertificatesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetClientCertificatesCommandOutput) => void
+ ): void;
+ public getClientCertificates(
+ args: GetClientCertificatesCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetClientCertificatesCommandOutput) => void),
+ cb?: (err: any, data?: GetClientCertificatesCommandOutput) => void
+ ): Promise | void {
+ const command = new GetClientCertificatesCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Represents a get integration response.
+ *
+ */
+ public getIntegrationResponse(
+ args: GetIntegrationResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getIntegrationResponse(
+ args: GetIntegrationResponseCommandInput,
+ cb: (err: any, data?: GetIntegrationResponseCommandOutput) => void
+ ): void;
+ public getIntegrationResponse(
+ args: GetIntegrationResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetIntegrationResponseCommandOutput) => void
+ ): void;
+ public getIntegrationResponse(
+ args: GetIntegrationResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetIntegrationResponseCommandOutput) => void),
+ cb?: (err: any, data?: GetIntegrationResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new GetIntegrationResponseCommand(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);
+ }
+ }
+
+ public deleteDocumentationPart(
+ args: DeleteDocumentationPartCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteDocumentationPart(
+ args: DeleteDocumentationPartCommandInput,
+ cb: (err: any, data?: DeleteDocumentationPartCommandOutput) => void
+ ): void;
+ public deleteDocumentationPart(
+ args: DeleteDocumentationPartCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteDocumentationPartCommandOutput) => void
+ ): void;
+ public deleteDocumentationPart(
+ args: DeleteDocumentationPartCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDocumentationPartCommandOutput) => void),
+ cb?: (err: any, data?: DeleteDocumentationPartCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteDocumentationPartCommand(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 an existing
+ *
+ * Authorizer
+ *
+ * resource.
+ *
+ *
+ */
+ public updateAuthorizer(
+ args: UpdateAuthorizerCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateAuthorizer(
+ args: UpdateAuthorizerCommandInput,
+ cb: (err: any, data?: UpdateAuthorizerCommandOutput) => void
+ ): void;
+ public updateAuthorizer(
+ args: UpdateAuthorizerCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateAuthorizerCommandOutput) => void
+ ): void;
+ public updateAuthorizer(
+ args: UpdateAuthorizerCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateAuthorizerCommandOutput) => void),
+ cb?: (err: any, data?: UpdateAuthorizerCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateAuthorizerCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets information about the current
+ *
+ * ClientCertificate
+ *
+ * resource.
+ *
+ */
+ public getClientCertificate(
+ args: GetClientCertificateCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getClientCertificate(
+ args: GetClientCertificateCommandInput,
+ cb: (err: any, data?: GetClientCertificateCommandOutput) => void
+ ): void;
+ public getClientCertificate(
+ args: GetClientCertificateCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetClientCertificateCommandOutput) => void
+ ): void;
+ public getClientCertificate(
+ args: GetClientCertificateCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetClientCertificateCommandOutput) => void),
+ cb?: (err: any, data?: GetClientCertificateCommandOutput) => void
+ ): Promise | void {
+ const command = new GetClientCertificateCommand(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);
+ }
+ }
+
+ public getSdkType(
+ args: GetSdkTypeCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getSdkType(
+ args: GetSdkTypeCommandInput,
+ cb: (err: any, data?: GetSdkTypeCommandOutput) => void
+ ): void;
+ public getSdkType(
+ args: GetSdkTypeCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetSdkTypeCommandOutput) => void
+ ): void;
+ public getSdkType(
+ args: GetSdkTypeCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetSdkTypeCommandOutput) => void),
+ cb?: (err: any, data?: GetSdkTypeCommandOutput) => void
+ ): Promise | void {
+ const command = new GetSdkTypeCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets the
+ *
+ * RequestValidators
+ *
+ * collection of a given
+ *
+ * RestApi
+ *
+ * .
+ *
+ */
+ public getRequestValidators(
+ args: GetRequestValidatorsCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getRequestValidators(
+ args: GetRequestValidatorsCommandInput,
+ cb: (err: any, data?: GetRequestValidatorsCommandOutput) => void
+ ): void;
+ public getRequestValidators(
+ args: GetRequestValidatorsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetRequestValidatorsCommandOutput) => void
+ ): void;
+ public getRequestValidators(
+ args: GetRequestValidatorsCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRequestValidatorsCommandOutput) => void),
+ cb?: (err: any, data?: GetRequestValidatorsCommandOutput) => void
+ ): Promise | void {
+ const command = new GetRequestValidatorsCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Represents a collection of
+ *
+ * DomainName
+ *
+ * resources.
+ *
+ */
+ public getDomainNames(
+ args: GetDomainNamesCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getDomainNames(
+ args: GetDomainNamesCommandInput,
+ cb: (err: any, data?: GetDomainNamesCommandOutput) => void
+ ): void;
+ public getDomainNames(
+ args: GetDomainNamesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetDomainNamesCommandOutput) => void
+ ): void;
+ public getDomainNames(
+ args: GetDomainNamesCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDomainNamesCommandOutput) => void),
+ cb?: (err: any, data?: GetDomainNamesCommandOutput) => void
+ ): Promise | void {
+ const command = new GetDomainNamesCommand(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 customization of a
+ *
+ * GatewayResponse
+ *
+ * of a specified response type and status code on the given
+ *
+ * RestApi
+ *
+ * .
+ *
+ */
+ public putGatewayResponse(
+ args: PutGatewayResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public putGatewayResponse(
+ args: PutGatewayResponseCommandInput,
+ cb: (err: any, data?: PutGatewayResponseCommandOutput) => void
+ ): void;
+ public putGatewayResponse(
+ args: PutGatewayResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: PutGatewayResponseCommandOutput) => void
+ ): void;
+ public putGatewayResponse(
+ args: PutGatewayResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutGatewayResponseCommandOutput) => void),
+ cb?: (err: any, data?: PutGatewayResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new PutGatewayResponseCommand(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
+ *
+ * ClientCertificate
+ *
+ * resource.
+ *
+ */
+ public deleteClientCertificate(
+ args: DeleteClientCertificateCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteClientCertificate(
+ args: DeleteClientCertificateCommandInput,
+ cb: (err: any, data?: DeleteClientCertificateCommandOutput) => void
+ ): void;
+ public deleteClientCertificate(
+ args: DeleteClientCertificateCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteClientCertificateCommandOutput) => void
+ ): void;
+ public deleteClientCertificate(
+ args: DeleteClientCertificateCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteClientCertificateCommandOutput) => void),
+ cb?: (err: any, data?: DeleteClientCertificateCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteClientCertificateCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Represents a put integration.
+ *
+ */
+ public putIntegrationResponse(
+ args: PutIntegrationResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public putIntegrationResponse(
+ args: PutIntegrationResponseCommandInput,
+ cb: (err: any, data?: PutIntegrationResponseCommandOutput) => void
+ ): void;
+ public putIntegrationResponse(
+ args: PutIntegrationResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: PutIntegrationResponseCommandOutput) => void
+ ): void;
+ public putIntegrationResponse(
+ args: PutIntegrationResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutIntegrationResponseCommandOutput) => void),
+ cb?: (err: any, data?: PutIntegrationResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new PutIntegrationResponseCommand(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 model.
+ *
+ */
+ public deleteModel(
+ args: DeleteModelCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteModel(
+ args: DeleteModelCommandInput,
+ cb: (err: any, data?: DeleteModelCommandOutput) => void
+ ): void;
+ public deleteModel(
+ args: DeleteModelCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteModelCommandOutput) => void
+ ): void;
+ public deleteModel(
+ args: DeleteModelCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteModelCommandOutput) => void),
+ cb?: (err: any, data?: DeleteModelCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteModelCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Changes information about an
+ *
+ * ApiKey
+ *
+ * resource.
+ *
+ */
+ public updateApiKey(
+ args: UpdateApiKeyCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateApiKey(
+ args: UpdateApiKeyCommandInput,
+ cb: (err: any, data?: UpdateApiKeyCommandOutput) => void
+ ): void;
+ public updateApiKey(
+ args: UpdateApiKeyCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateApiKeyCommandOutput) => void
+ ): void;
+ public updateApiKey(
+ args: UpdateApiKeyCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateApiKeyCommandOutput) => void),
+ cb?: (err: any, data?: UpdateApiKeyCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateApiKeyCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets information about one or more
+ *
+ * Stage
+ *
+ * resources.
+ *
+ */
+ public getStages(
+ args: GetStagesCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getStages(
+ args: GetStagesCommandInput,
+ cb: (err: any, data?: GetStagesCommandOutput) => void
+ ): void;
+ public getStages(
+ args: GetStagesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetStagesCommandOutput) => void
+ ): void;
+ public getStages(
+ args: GetStagesCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetStagesCommandOutput) => void),
+ cb?: (err: any, data?: GetStagesCommandOutput) => void
+ ): Promise | void {
+ const command = new GetStagesCommand(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
+ *
+ * Method
+ *
+ * resource.
+ *
+ */
+ public deleteMethod(
+ args: DeleteMethodCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteMethod(
+ args: DeleteMethodCommandInput,
+ cb: (err: any, data?: DeleteMethodCommandOutput) => void
+ ): void;
+ public deleteMethod(
+ args: DeleteMethodCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteMethodCommandOutput) => void
+ ): void;
+ public deleteMethod(
+ args: DeleteMethodCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteMethodCommandOutput) => void),
+ cb?: (err: any, data?: DeleteMethodCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteMethodCommand(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 usage plan key for adding an existing API key to a usage plan.
+ *
+ */
+ public createUsagePlanKey(
+ args: CreateUsagePlanKeyCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createUsagePlanKey(
+ args: CreateUsagePlanKeyCommandInput,
+ cb: (err: any, data?: CreateUsagePlanKeyCommandOutput) => void
+ ): void;
+ public createUsagePlanKey(
+ args: CreateUsagePlanKeyCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateUsagePlanKeyCommandOutput) => void
+ ): void;
+ public createUsagePlanKey(
+ args: CreateUsagePlanKeyCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateUsagePlanKeyCommandOutput) => void),
+ cb?: (err: any, data?: CreateUsagePlanKeyCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateUsagePlanKeyCommand(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);
+ }
+ }
+
+ /**
+ *
+ * A feature of the API Gateway control service for updating an existing API with an input of external API definitions.
+ * The update can take the form of merging the supplied definition into the existing API or overwriting the existing API.
+ *
+ */
+ public putRestApi(
+ args: PutRestApiCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public putRestApi(
+ args: PutRestApiCommandInput,
+ cb: (err: any, data?: PutRestApiCommandOutput) => void
+ ): void;
+ public putRestApi(
+ args: PutRestApiCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: PutRestApiCommandOutput) => void
+ ): void;
+ public putRestApi(
+ args: PutRestApiCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutRestApiCommandOutput) => void),
+ cb?: (err: any, data?: PutRestApiCommandOutput) => void
+ ): Promise | void {
+ const command = new PutRestApiCommand(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);
+ }
+ }
+
+ public getDocumentationVersions(
+ args: GetDocumentationVersionsCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getDocumentationVersions(
+ args: GetDocumentationVersionsCommandInput,
+ cb: (err: any, data?: GetDocumentationVersionsCommandOutput) => void
+ ): void;
+ public getDocumentationVersions(
+ args: GetDocumentationVersionsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetDocumentationVersionsCommandOutput) => void
+ ): void;
+ public getDocumentationVersions(
+ args: GetDocumentationVersionsCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDocumentationVersionsCommandOutput) => void),
+ cb?: (err: any, data?: GetDocumentationVersionsCommandOutput) => void
+ ): Promise | void {
+ const command = new GetDocumentationVersionsCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Represents an update integration.
+ *
+ */
+ public updateIntegration(
+ args: UpdateIntegrationCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateIntegration(
+ args: UpdateIntegrationCommandInput,
+ cb: (err: any, data?: UpdateIntegrationCommandOutput) => void
+ ): void;
+ public updateIntegration(
+ args: UpdateIntegrationCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateIntegrationCommandOutput) => void
+ ): void;
+ public updateIntegration(
+ args: UpdateIntegrationCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateIntegrationCommandOutput) => void),
+ cb?: (err: any, data?: UpdateIntegrationCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateIntegrationCommand(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 a new
+ *
+ * Authorizer
+ *
+ * resource to an existing
+ *
+ * RestApi
+ *
+ * resource.
+ *
+ *
+ */
+ public createAuthorizer(
+ args: CreateAuthorizerCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createAuthorizer(
+ args: CreateAuthorizerCommandInput,
+ cb: (err: any, data?: CreateAuthorizerCommandOutput) => void
+ ): void;
+ public createAuthorizer(
+ args: CreateAuthorizerCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateAuthorizerCommandOutput) => void
+ ): void;
+ public createAuthorizer(
+ args: CreateAuthorizerCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateAuthorizerCommandOutput) => void),
+ cb?: (err: any, data?: CreateAuthorizerCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateAuthorizerCommand(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);
+ }
+ }
+
+ public createDocumentationPart(
+ args: CreateDocumentationPartCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createDocumentationPart(
+ args: CreateDocumentationPartCommandInput,
+ cb: (err: any, data?: CreateDocumentationPartCommandOutput) => void
+ ): void;
+ public createDocumentationPart(
+ args: CreateDocumentationPartCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateDocumentationPartCommandOutput) => void
+ ): void;
+ public createDocumentationPart(
+ args: CreateDocumentationPartCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDocumentationPartCommandOutput) => void),
+ cb?: (err: any, data?: CreateDocumentationPartCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateDocumentationPartCommand(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
+ *
+ * ApiKey
+ *
+ * resource.
+ *
+ */
+ public deleteApiKey(
+ args: DeleteApiKeyCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteApiKey(
+ args: DeleteApiKeyCommandInput,
+ cb: (err: any, data?: DeleteApiKeyCommandOutput) => void
+ ): void;
+ public deleteApiKey(
+ args: DeleteApiKeyCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteApiKeyCommandOutput) => void
+ ): void;
+ public deleteApiKey(
+ args: DeleteApiKeyCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteApiKeyCommandOutput) => void),
+ cb?: (err: any, data?: DeleteApiKeyCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteApiKeyCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Represents a delete integration.
+ *
+ */
+ public deleteIntegration(
+ args: DeleteIntegrationCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteIntegration(
+ args: DeleteIntegrationCommandInput,
+ cb: (err: any, data?: DeleteIntegrationCommandOutput) => void
+ ): void;
+ public deleteIntegration(
+ args: DeleteIntegrationCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteIntegrationCommandOutput) => void
+ ): void;
+ public deleteIntegration(
+ args: DeleteIntegrationCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteIntegrationCommandOutput) => void),
+ cb?: (err: any, data?: DeleteIntegrationCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteIntegrationCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Describe an existing
+ *
+ * Method
+ *
+ * resource.
+ *
+ */
+ public getMethod(
+ args: GetMethodCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getMethod(
+ args: GetMethodCommandInput,
+ cb: (err: any, data?: GetMethodCommandOutput) => void
+ ): void;
+ public getMethod(
+ args: GetMethodCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetMethodCommandOutput) => void
+ ): void;
+ public getMethod(
+ args: GetMethodCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetMethodCommandOutput) => void),
+ cb?: (err: any, data?: GetMethodCommandOutput) => void
+ ): Promise | void {
+ const command = new GetMethodCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets the
+ *
+ * VpcLinks
+ *
+ * collection under the caller's account in a selected region.
+ *
+ */
+ public getVpcLinks(
+ args: GetVpcLinksCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getVpcLinks(
+ args: GetVpcLinksCommandInput,
+ cb: (err: any, data?: GetVpcLinksCommandOutput) => void
+ ): void;
+ public getVpcLinks(
+ args: GetVpcLinksCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetVpcLinksCommandOutput) => void
+ ): void;
+ public getVpcLinks(
+ args: GetVpcLinksCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetVpcLinksCommandOutput) => void),
+ cb?: (err: any, data?: GetVpcLinksCommandOutput) => void
+ ): Promise | void {
+ const command = new GetVpcLinksCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Changes information about the
+ *
+ * DomainName
+ *
+ * resource.
+ *
+ */
+ public updateDomainName(
+ args: UpdateDomainNameCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateDomainName(
+ args: UpdateDomainNameCommandInput,
+ cb: (err: any, data?: UpdateDomainNameCommandOutput) => void
+ ): void;
+ public updateDomainName(
+ args: UpdateDomainNameCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateDomainNameCommandOutput) => void
+ ): void;
+ public updateDomainName(
+ args: UpdateDomainNameCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDomainNameCommandOutput) => void),
+ cb?: (err: any, data?: UpdateDomainNameCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateDomainNameCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Import API keys from an external source, such as a CSV-formatted file.
+ *
+ */
+ public importApiKeys(
+ args: ImportApiKeysCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public importApiKeys(
+ args: ImportApiKeysCommandInput,
+ cb: (err: any, data?: ImportApiKeysCommandOutput) => void
+ ): void;
+ public importApiKeys(
+ args: ImportApiKeysCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ImportApiKeysCommandOutput) => void
+ ): void;
+ public importApiKeys(
+ args: ImportApiKeysCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ImportApiKeysCommandOutput) => void),
+ cb?: (err: any, data?: ImportApiKeysCommandOutput) => void
+ ): Promise | void {
+ const command = new ImportApiKeysCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets all the usage plans of the caller's account.
+ *
+ */
+ public getUsagePlans(
+ args: GetUsagePlansCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getUsagePlans(
+ args: GetUsagePlansCommandInput,
+ cb: (err: any, data?: GetUsagePlansCommandOutput) => void
+ ): void;
+ public getUsagePlans(
+ args: GetUsagePlansCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetUsagePlansCommandOutput) => void
+ ): void;
+ public getUsagePlans(
+ args: GetUsagePlansCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetUsagePlansCommandOutput) => void),
+ cb?: (err: any, data?: GetUsagePlansCommandOutput) => void
+ ): Promise | void {
+ const command = new GetUsagePlansCommand(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
+ *
+ * DomainName
+ *
+ * resource.
+ *
+ */
+ public deleteDomainName(
+ args: DeleteDomainNameCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteDomainName(
+ args: DeleteDomainNameCommandInput,
+ cb: (err: any, data?: DeleteDomainNameCommandOutput) => void
+ ): void;
+ public deleteDomainName(
+ args: DeleteDomainNameCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteDomainNameCommandOutput) => void
+ ): void;
+ public deleteDomainName(
+ args: DeleteDomainNameCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteDomainNameCommandOutput) => void),
+ cb?: (err: any, data?: DeleteDomainNameCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteDomainNameCommand(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);
+ }
+ }
+
+ public getDocumentationPart(
+ args: GetDocumentationPartCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getDocumentationPart(
+ args: GetDocumentationPartCommandInput,
+ cb: (err: any, data?: GetDocumentationPartCommandOutput) => void
+ ): void;
+ public getDocumentationPart(
+ args: GetDocumentationPartCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetDocumentationPartCommandOutput) => void
+ ): void;
+ public getDocumentationPart(
+ args: GetDocumentationPartCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDocumentationPartCommandOutput) => void),
+ cb?: (err: any, data?: GetDocumentationPartCommandOutput) => void
+ ): Promise | void {
+ const command = new GetDocumentationPartCommand(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 usage plan of a given plan Id.
+ *
+ */
+ public deleteUsagePlan(
+ args: DeleteUsagePlanCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteUsagePlan(
+ args: DeleteUsagePlanCommandInput,
+ cb: (err: any, data?: DeleteUsagePlanCommandOutput) => void
+ ): void;
+ public deleteUsagePlan(
+ args: DeleteUsagePlanCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteUsagePlanCommandOutput) => void
+ ): void;
+ public deleteUsagePlan(
+ args: DeleteUsagePlanCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteUsagePlanCommandOutput) => void),
+ cb?: (err: any, data?: DeleteUsagePlanCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteUsagePlanCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets information about the current
+ *
+ * ApiKey
+ *
+ * resource.
+ *
+ */
+ public getApiKey(
+ args: GetApiKeyCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getApiKey(
+ args: GetApiKeyCommandInput,
+ cb: (err: any, data?: GetApiKeyCommandOutput) => void
+ ): void;
+ public getApiKey(
+ args: GetApiKeyCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetApiKeyCommandOutput) => void
+ ): void;
+ public getApiKey(
+ args: GetApiKeyCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetApiKeyCommandOutput) => void),
+ cb?: (err: any, data?: GetApiKeyCommandOutput) => void
+ ): Promise | void {
+ const command = new GetApiKeyCommand(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 an existing
+ *
+ * Method
+ *
+ * resource.
+ *
+ */
+ public updateMethod(
+ args: UpdateMethodCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateMethod(
+ args: UpdateMethodCommandInput,
+ cb: (err: any, data?: UpdateMethodCommandOutput) => void
+ ): void;
+ public updateMethod(
+ args: UpdateMethodCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateMethodCommandOutput) => void
+ ): void;
+ public updateMethod(
+ args: UpdateMethodCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateMethodCommandOutput) => void),
+ cb?: (err: any, data?: UpdateMethodCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateMethodCommand(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 new
+ *
+ * RestApi
+ *
+ * resource.
+ *
+ */
+ public createRestApi(
+ args: CreateRestApiCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createRestApi(
+ args: CreateRestApiCommandInput,
+ cb: (err: any, data?: CreateRestApiCommandOutput) => void
+ ): void;
+ public createRestApi(
+ args: CreateRestApiCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateRestApiCommandOutput) => void
+ ): void;
+ public createRestApi(
+ args: CreateRestApiCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateRestApiCommandOutput) => void),
+ cb?: (err: any, data?: CreateRestApiCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateRestApiCommand(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
+ *
+ * RequestValidator
+ *
+ * of a given
+ *
+ * RestApi
+ *
+ * .
+ *
+ */
+ public deleteRequestValidator(
+ args: DeleteRequestValidatorCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteRequestValidator(
+ args: DeleteRequestValidatorCommandInput,
+ cb: (err: any, data?: DeleteRequestValidatorCommandOutput) => void
+ ): void;
+ public deleteRequestValidator(
+ args: DeleteRequestValidatorCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteRequestValidatorCommandOutput) => void
+ ): void;
+ public deleteRequestValidator(
+ args: DeleteRequestValidatorCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteRequestValidatorCommandOutput) => void),
+ cb?: (err: any, data?: DeleteRequestValidatorCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteRequestValidatorCommand(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 new domain name.
+ *
+ */
+ public createDomainName(
+ args: CreateDomainNameCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createDomainName(
+ args: CreateDomainNameCommandInput,
+ cb: (err: any, data?: CreateDomainNameCommandOutput) => void
+ ): void;
+ public createDomainName(
+ args: CreateDomainNameCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateDomainNameCommandOutput) => void
+ ): void;
+ public createDomainName(
+ args: CreateDomainNameCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDomainNameCommandOutput) => void),
+ cb?: (err: any, data?: CreateDomainNameCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateDomainNameCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets all the usage plan keys representing the API keys added to a specified usage plan.
+ *
+ */
+ public getUsagePlanKeys(
+ args: GetUsagePlanKeysCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getUsagePlanKeys(
+ args: GetUsagePlanKeysCommandInput,
+ cb: (err: any, data?: GetUsagePlanKeysCommandOutput) => void
+ ): void;
+ public getUsagePlanKeys(
+ args: GetUsagePlanKeysCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetUsagePlanKeysCommandOutput) => void
+ ): void;
+ public getUsagePlanKeys(
+ args: GetUsagePlanKeysCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetUsagePlanKeysCommandOutput) => void),
+ cb?: (err: any, data?: GetUsagePlanKeysCommandOutput) => void
+ ): Promise | void {
+ const command = new GetUsagePlanKeysCommand(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 information about a resource.
+ *
+ */
+ public getResource(
+ args: GetResourceCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getResource(
+ args: GetResourceCommandInput,
+ cb: (err: any, data?: GetResourceCommandOutput) => void
+ ): void;
+ public getResource(
+ args: GetResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetResourceCommandOutput) => void
+ ): void;
+ public getResource(
+ args: GetResourceCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetResourceCommandOutput) => void),
+ cb?: (err: any, data?: GetResourceCommandOutput) => void
+ ): Promise | void {
+ const command = new GetResourceCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Flushes a stage's cache.
+ *
+ */
+ public flushStageCache(
+ args: FlushStageCacheCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public flushStageCache(
+ args: FlushStageCacheCommandInput,
+ cb: (err: any, data?: FlushStageCacheCommandOutput) => void
+ ): void;
+ public flushStageCache(
+ args: FlushStageCacheCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: FlushStageCacheCommandOutput) => void
+ ): void;
+ public flushStageCache(
+ args: FlushStageCacheCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: FlushStageCacheCommandOutput) => void),
+ cb?: (err: any, data?: FlushStageCacheCommandOutput) => void
+ ): Promise | void {
+ const command = new FlushStageCacheCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Changes information about a
+ *
+ * Stage
+ *
+ * resource.
+ *
+ */
+ public updateStage(
+ args: UpdateStageCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateStage(
+ args: UpdateStageCommandInput,
+ cb: (err: any, data?: UpdateStageCommandOutput) => void
+ ): void;
+ public updateStage(
+ args: UpdateStageCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateStageCommandOutput) => void
+ ): void;
+ public updateStage(
+ args: UpdateStageCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateStageCommandOutput) => void),
+ cb?: (err: any, data?: UpdateStageCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateStageCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Generates a
+ *
+ * ClientCertificate
+ *
+ * resource.
+ *
+ */
+ public generateClientCertificate(
+ args: GenerateClientCertificateCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public generateClientCertificate(
+ args: GenerateClientCertificateCommandInput,
+ cb: (err: any, data?: GenerateClientCertificateCommandOutput) => void
+ ): void;
+ public generateClientCertificate(
+ args: GenerateClientCertificateCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GenerateClientCertificateCommandOutput) => void
+ ): void;
+ public generateClientCertificate(
+ args: GenerateClientCertificateCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GenerateClientCertificateCommandOutput) => void),
+ cb?: (err: any, data?: GenerateClientCertificateCommandOutput) => void
+ ): Promise | void {
+ const command = new GenerateClientCertificateCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets a
+ *
+ * RequestValidator
+ *
+ * of a given
+ *
+ * RestApi
+ *
+ * .
+ *
+ */
+ public getRequestValidator(
+ args: GetRequestValidatorCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getRequestValidator(
+ args: GetRequestValidatorCommandInput,
+ cb: (err: any, data?: GetRequestValidatorCommandOutput) => void
+ ): void;
+ public getRequestValidator(
+ args: GetRequestValidatorCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetRequestValidatorCommandOutput) => void
+ ): void;
+ public getRequestValidator(
+ args: GetRequestValidatorCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRequestValidatorCommandOutput) => void),
+ cb?: (err: any, data?: GetRequestValidatorCommandOutput) => void
+ ): Promise | void {
+ const command = new GetRequestValidatorCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Represents a collection of
+ *
+ * BasePathMapping
+ *
+ * resources.
+ *
+ */
+ public getBasePathMappings(
+ args: GetBasePathMappingsCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getBasePathMappings(
+ args: GetBasePathMappingsCommandInput,
+ cb: (err: any, data?: GetBasePathMappingsCommandOutput) => void
+ ): void;
+ public getBasePathMappings(
+ args: GetBasePathMappingsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetBasePathMappingsCommandOutput) => void
+ ): void;
+ public getBasePathMappings(
+ args: GetBasePathMappingsCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetBasePathMappingsCommandOutput) => void),
+ cb?: (err: any, data?: GetBasePathMappingsCommandOutput) => void
+ ): Promise | void {
+ const command = new GetBasePathMappingsCommand(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);
+ }
+ }
+
+ public createDocumentationVersion(
+ args: CreateDocumentationVersionCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createDocumentationVersion(
+ args: CreateDocumentationVersionCommandInput,
+ cb: (err: any, data?: CreateDocumentationVersionCommandOutput) => void
+ ): void;
+ public createDocumentationVersion(
+ args: CreateDocumentationVersionCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateDocumentationVersionCommandOutput) => void
+ ): void;
+ public createDocumentationVersion(
+ args: CreateDocumentationVersionCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDocumentationVersionCommandOutput) => void),
+ cb?: (err: any, data?: CreateDocumentationVersionCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateDocumentationVersionCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Generates a sample mapping template that can be used to transform a payload into the structure of a model.
+ *
+ */
+ public getModelTemplate(
+ args: GetModelTemplateCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getModelTemplate(
+ args: GetModelTemplateCommandInput,
+ cb: (err: any, data?: GetModelTemplateCommandOutput) => void
+ ): void;
+ public getModelTemplate(
+ args: GetModelTemplateCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetModelTemplateCommandOutput) => void
+ ): void;
+ public getModelTemplate(
+ args: GetModelTemplateCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetModelTemplateCommandOutput) => void),
+ cb?: (err: any, data?: GetModelTemplateCommandOutput) => void
+ ): Promise | void {
+ const command = new GetModelTemplateCommand(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 new
+ *
+ * BasePathMapping
+ *
+ * resource.
+ *
+ */
+ public createBasePathMapping(
+ args: CreateBasePathMappingCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createBasePathMapping(
+ args: CreateBasePathMappingCommandInput,
+ cb: (err: any, data?: CreateBasePathMappingCommandOutput) => void
+ ): void;
+ public createBasePathMapping(
+ args: CreateBasePathMappingCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateBasePathMappingCommandOutput) => void
+ ): void;
+ public createBasePathMapping(
+ args: CreateBasePathMappingCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateBasePathMappingCommandOutput) => void),
+ cb?: (err: any, data?: CreateBasePathMappingCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateBasePathMappingCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Describe an existing
+ *
+ * Authorizer
+ *
+ * resource.
+ *
+ *
+ */
+ public getAuthorizer(
+ args: GetAuthorizerCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getAuthorizer(
+ args: GetAuthorizerCommandInput,
+ cb: (err: any, data?: GetAuthorizerCommandOutput) => void
+ ): void;
+ public getAuthorizer(
+ args: GetAuthorizerCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetAuthorizerCommandOutput) => void
+ ): void;
+ public getAuthorizer(
+ args: GetAuthorizerCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAuthorizerCommandOutput) => void),
+ cb?: (err: any, data?: GetAuthorizerCommandOutput) => void
+ ): Promise | void {
+ const command = new GetAuthorizerCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets information about a
+ *
+ * Deployment
+ *
+ * resource.
+ *
+ */
+ public getDeployment(
+ args: GetDeploymentCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getDeployment(
+ args: GetDeploymentCommandInput,
+ cb: (err: any, data?: GetDeploymentCommandOutput) => void
+ ): void;
+ public getDeployment(
+ args: GetDeploymentCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetDeploymentCommandOutput) => void
+ ): void;
+ public getDeployment(
+ args: GetDeploymentCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDeploymentCommandOutput) => void),
+ cb?: (err: any, data?: GetDeploymentCommandOutput) => void
+ ): Promise | void {
+ const command = new GetDeploymentCommand(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 an existing model defined for a
+ *
+ * RestApi
+ *
+ * resource.
+ *
+ */
+ public getModel(
+ args: GetModelCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getModel(
+ args: GetModelCommandInput,
+ cb: (err: any, data?: GetModelCommandOutput) => void
+ ): void;
+ public getModel(
+ args: GetModelCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetModelCommandOutput) => void
+ ): void;
+ public getModel(
+ args: GetModelCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetModelCommandOutput) => void),
+ cb?: (err: any, data?: GetModelCommandOutput) => void
+ ): Promise | void {
+ const command = new GetModelCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets information about a
+ *
+ * Deployments
+ *
+ * collection.
+ *
+ */
+ public getDeployments(
+ args: GetDeploymentsCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getDeployments(
+ args: GetDeploymentsCommandInput,
+ cb: (err: any, data?: GetDeploymentsCommandOutput) => void
+ ): void;
+ public getDeployments(
+ args: GetDeploymentsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetDeploymentsCommandOutput) => void
+ ): void;
+ public getDeployments(
+ args: GetDeploymentsCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDeploymentsCommandOutput) => void),
+ cb?: (err: any, data?: GetDeploymentsCommandOutput) => void
+ ): Promise | void {
+ const command = new GetDeploymentsCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets information about the current
+ *
+ * ApiKeys
+ *
+ * resource.
+ *
+ */
+ public getApiKeys(
+ args: GetApiKeysCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getApiKeys(
+ args: GetApiKeysCommandInput,
+ cb: (err: any, data?: GetApiKeysCommandOutput) => void
+ ): void;
+ public getApiKeys(
+ args: GetApiKeysCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetApiKeysCommandOutput) => void
+ ): void;
+ public getApiKeys(
+ args: GetApiKeysCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetApiKeysCommandOutput) => void),
+ cb?: (err: any, data?: GetApiKeysCommandOutput) => void
+ ): Promise | void {
+ const command = new GetApiKeysCommand(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 a tag from a given resource.
+ *
+ */
+ public untagResource(
+ args: UntagResourceCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public untagResource(
+ args: UntagResourceCommandInput,
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
+ ): void;
+ public untagResource(
+ args: UntagResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
+ ): void;
+ public untagResource(
+ args: UntagResourceCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
+ cb?: (err: any, data?: UntagResourceCommandOutput) => void
+ ): Promise | void {
+ const command = new UntagResourceCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Represents a domain name that is contained in a simpler, more intuitive URL that can be called.
+ *
+ */
+ public getDomainName(
+ args: GetDomainNameCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getDomainName(
+ args: GetDomainNameCommandInput,
+ cb: (err: any, data?: GetDomainNameCommandOutput) => void
+ ): void;
+ public getDomainName(
+ args: GetDomainNameCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetDomainNameCommandOutput) => void
+ ): void;
+ public getDomainName(
+ args: GetDomainNameCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDomainNameCommandOutput) => void),
+ cb?: (err: any, data?: GetDomainNameCommandOutput) => void
+ ): Promise | void {
+ const command = new GetDomainNameCommand(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 existing
+ *
+ * Models
+ *
+ * defined for a
+ *
+ * RestApi
+ *
+ * resource.
+ *
+ */
+ public getModels(
+ args: GetModelsCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getModels(
+ args: GetModelsCommandInput,
+ cb: (err: any, data?: GetModelsCommandOutput) => void
+ ): void;
+ public getModels(
+ args: GetModelsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetModelsCommandOutput) => void
+ ): void;
+ public getModels(
+ args: GetModelsCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetModelsCommandOutput) => void),
+ cb?: (err: any, data?: GetModelsCommandOutput) => void
+ ): Promise | void {
+ const command = new GetModelsCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Simulate the execution of an
+ *
+ * Authorizer
+ *
+ * in your
+ *
+ * RestApi
+ *
+ * with headers, parameters, and an incoming request body.
+ *
+ *
+ */
+ public testInvokeAuthorizer(
+ args: TestInvokeAuthorizerCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public testInvokeAuthorizer(
+ args: TestInvokeAuthorizerCommandInput,
+ cb: (err: any, data?: TestInvokeAuthorizerCommandOutput) => void
+ ): void;
+ public testInvokeAuthorizer(
+ args: TestInvokeAuthorizerCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: TestInvokeAuthorizerCommandOutput) => void
+ ): void;
+ public testInvokeAuthorizer(
+ args: TestInvokeAuthorizerCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TestInvokeAuthorizerCommandOutput) => void),
+ cb?: (err: any, data?: TestInvokeAuthorizerCommandOutput) => void
+ ): Promise | void {
+ const command = new TestInvokeAuthorizerCommand(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
+ *
+ * BasePathMapping
+ *
+ * resource.
+ *
+ */
+ public deleteBasePathMapping(
+ args: DeleteBasePathMappingCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteBasePathMapping(
+ args: DeleteBasePathMappingCommandInput,
+ cb: (err: any, data?: DeleteBasePathMappingCommandOutput) => void
+ ): void;
+ public deleteBasePathMapping(
+ args: DeleteBasePathMappingCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteBasePathMappingCommandOutput) => void
+ ): void;
+ public deleteBasePathMapping(
+ args: DeleteBasePathMappingCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteBasePathMappingCommandOutput) => void),
+ cb?: (err: any, data?: DeleteBasePathMappingCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteBasePathMappingCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets a usage plan key of a given key identifier.
+ *
+ */
+ public getUsagePlanKey(
+ args: GetUsagePlanKeyCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getUsagePlanKey(
+ args: GetUsagePlanKeyCommandInput,
+ cb: (err: any, data?: GetUsagePlanKeyCommandOutput) => void
+ ): void;
+ public getUsagePlanKey(
+ args: GetUsagePlanKeyCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetUsagePlanKeyCommandOutput) => void
+ ): void;
+ public getUsagePlanKey(
+ args: GetUsagePlanKeyCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetUsagePlanKeyCommandOutput) => void),
+ cb?: (err: any, data?: GetUsagePlanKeyCommandOutput) => void
+ ): Promise | void {
+ const command = new GetUsagePlanKeyCommand(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 information about a collection of
+ *
+ * Resource
+ *
+ * resources.
+ *
+ */
+ public getResources(
+ args: GetResourcesCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getResources(
+ args: GetResourcesCommandInput,
+ cb: (err: any, data?: GetResourcesCommandOutput) => void
+ ): void;
+ public getResources(
+ args: GetResourcesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetResourcesCommandOutput) => void
+ ): void;
+ public getResources(
+ args: GetResourcesCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetResourcesCommandOutput) => void),
+ cb?: (err: any, data?: GetResourcesCommandOutput) => void
+ ): Promise | void {
+ const command = new GetResourcesCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Grants a temporary extension to the remaining quota of a usage plan associated with a specified API key.
+ *
+ */
+ public updateUsage(
+ args: UpdateUsageCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateUsage(
+ args: UpdateUsageCommandInput,
+ cb: (err: any, data?: UpdateUsageCommandOutput) => void
+ ): void;
+ public updateUsage(
+ args: UpdateUsageCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateUsageCommandOutput) => void
+ ): void;
+ public updateUsage(
+ args: UpdateUsageCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateUsageCommandOutput) => void),
+ cb?: (err: any, data?: UpdateUsageCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateUsageCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Flushes all authorizer cache entries on a stage.
+ *
+ */
+ public flushStageAuthorizersCache(
+ args: FlushStageAuthorizersCacheCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public flushStageAuthorizersCache(
+ args: FlushStageAuthorizersCacheCommandInput,
+ cb: (err: any, data?: FlushStageAuthorizersCacheCommandOutput) => void
+ ): void;
+ public flushStageAuthorizersCache(
+ args: FlushStageAuthorizersCacheCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: FlushStageAuthorizersCacheCommandOutput) => void
+ ): void;
+ public flushStageAuthorizersCache(
+ args: FlushStageAuthorizersCacheCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: FlushStageAuthorizersCacheCommandOutput) => void),
+ cb?: (err: any, data?: FlushStageAuthorizersCacheCommandOutput) => void
+ ): Promise | void {
+ const command = new FlushStageAuthorizersCacheCommand(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);
+ }
+ }
+
+ public updateDocumentationVersion(
+ args: UpdateDocumentationVersionCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateDocumentationVersion(
+ args: UpdateDocumentationVersionCommandInput,
+ cb: (err: any, data?: UpdateDocumentationVersionCommandOutput) => void
+ ): void;
+ public updateDocumentationVersion(
+ args: UpdateDocumentationVersionCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateDocumentationVersionCommandOutput) => void
+ ): void;
+ public updateDocumentationVersion(
+ args: UpdateDocumentationVersionCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDocumentationVersionCommandOutput) => void),
+ cb?: (err: any, data?: UpdateDocumentationVersionCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateDocumentationVersionCommand(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 an existing
+ *
+ * MethodResponse
+ *
+ * resource.
+ *
+ */
+ public updateMethodResponse(
+ args: UpdateMethodResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateMethodResponse(
+ args: UpdateMethodResponseCommandInput,
+ cb: (err: any, data?: UpdateMethodResponseCommandOutput) => void
+ ): void;
+ public updateMethodResponse(
+ args: UpdateMethodResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateMethodResponseCommandOutput) => void
+ ): void;
+ public updateMethodResponse(
+ args: UpdateMethodResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateMethodResponseCommandOutput) => void),
+ cb?: (err: any, data?: UpdateMethodResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateMethodResponseCommand(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
+ *
+ * MethodResponse
+ *
+ * resource.
+ *
+ */
+ public deleteMethodResponse(
+ args: DeleteMethodResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteMethodResponse(
+ args: DeleteMethodResponseCommandInput,
+ cb: (err: any, data?: DeleteMethodResponseCommandOutput) => void
+ ): void;
+ public deleteMethodResponse(
+ args: DeleteMethodResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteMethodResponseCommandOutput) => void
+ ): void;
+ public deleteMethodResponse(
+ args: DeleteMethodResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteMethodResponseCommandOutput) => void),
+ cb?: (err: any, data?: DeleteMethodResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteMethodResponseCommand(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);
+ }
+ }
+
+ public getDocumentationParts(
+ args: GetDocumentationPartsCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getDocumentationParts(
+ args: GetDocumentationPartsCommandInput,
+ cb: (err: any, data?: GetDocumentationPartsCommandOutput) => void
+ ): void;
+ public getDocumentationParts(
+ args: GetDocumentationPartsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetDocumentationPartsCommandOutput) => void
+ ): void;
+ public getDocumentationParts(
+ args: GetDocumentationPartsCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDocumentationPartsCommandOutput) => void),
+ cb?: (err: any, data?: GetDocumentationPartsCommandOutput) => void
+ ): Promise | void {
+ const command = new GetDocumentationPartsCommand(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 VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.
+ *
+ */
+ public createVpcLink(
+ args: CreateVpcLinkCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createVpcLink(
+ args: CreateVpcLinkCommandInput,
+ cb: (err: any, data?: CreateVpcLinkCommandOutput) => void
+ ): void;
+ public createVpcLink(
+ args: CreateVpcLinkCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateVpcLinkCommandOutput) => void
+ ): void;
+ public createVpcLink(
+ args: CreateVpcLinkCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateVpcLinkCommandOutput) => void),
+ cb?: (err: any, data?: CreateVpcLinkCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateVpcLinkCommand(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
+ *
+ * Resource
+ *
+ * resource.
+ *
+ */
+ public createResource(
+ args: CreateResourceCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createResource(
+ args: CreateResourceCommandInput,
+ cb: (err: any, data?: CreateResourceCommandOutput) => void
+ ): void;
+ public createResource(
+ args: CreateResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateResourceCommandOutput) => void
+ ): void;
+ public createResource(
+ args: CreateResourceCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateResourceCommandOutput) => void),
+ cb?: (err: any, data?: CreateResourceCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateResourceCommand(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);
+ }
+ }
+
+ public importDocumentationParts(
+ args: ImportDocumentationPartsCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public importDocumentationParts(
+ args: ImportDocumentationPartsCommandInput,
+ cb: (err: any, data?: ImportDocumentationPartsCommandOutput) => void
+ ): void;
+ public importDocumentationParts(
+ args: ImportDocumentationPartsCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ImportDocumentationPartsCommandOutput) => void
+ ): void;
+ public importDocumentationParts(
+ args: ImportDocumentationPartsCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ImportDocumentationPartsCommandOutput) => void),
+ cb?: (err: any, data?: ImportDocumentationPartsCommandOutput) => void
+ ): Promise | void {
+ const command = new ImportDocumentationPartsCommand(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
+ *
+ * Deployment
+ *
+ * resource, which makes a specified
+ *
+ * RestApi
+ *
+ * callable over the internet.
+ *
+ */
+ public createDeployment(
+ args: CreateDeploymentCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createDeployment(
+ args: CreateDeploymentCommandInput,
+ cb: (err: any, data?: CreateDeploymentCommandOutput) => void
+ ): void;
+ public createDeployment(
+ args: CreateDeploymentCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateDeploymentCommandOutput) => void
+ ): void;
+ public createDeployment(
+ args: CreateDeploymentCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateDeploymentCommandOutput) => void),
+ cb?: (err: any, data?: CreateDeploymentCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateDeploymentCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Get the integration settings.
+ *
+ */
+ public getIntegration(
+ args: GetIntegrationCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getIntegration(
+ args: GetIntegrationCommandInput,
+ cb: (err: any, data?: GetIntegrationCommandOutput) => void
+ ): void;
+ public getIntegration(
+ args: GetIntegrationCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetIntegrationCommandOutput) => void
+ ): void;
+ public getIntegration(
+ args: GetIntegrationCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetIntegrationCommandOutput) => void),
+ cb?: (err: any, data?: GetIntegrationCommandOutput) => void
+ ): Promise | void {
+ const command = new GetIntegrationCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets a usage plan of a given plan identifier.
+ *
+ */
+ public getUsagePlan(
+ args: GetUsagePlanCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getUsagePlan(
+ args: GetUsagePlanCommandInput,
+ cb: (err: any, data?: GetUsagePlanCommandOutput) => void
+ ): void;
+ public getUsagePlan(
+ args: GetUsagePlanCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetUsagePlanCommandOutput) => void
+ ): void;
+ public getUsagePlan(
+ args: GetUsagePlanCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetUsagePlanCommandOutput) => void),
+ cb?: (err: any, data?: GetUsagePlanCommandOutput) => void
+ ): Promise | void {
+ const command = new GetUsagePlanCommand(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
+ *
+ * VpcLink
+ *
+ * of a specified identifier.
+ *
+ */
+ public deleteVpcLink(
+ args: DeleteVpcLinkCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteVpcLink(
+ args: DeleteVpcLinkCommandInput,
+ cb: (err: any, data?: DeleteVpcLinkCommandOutput) => void
+ ): void;
+ public deleteVpcLink(
+ args: DeleteVpcLinkCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteVpcLinkCommandOutput) => void
+ ): void;
+ public deleteVpcLink(
+ args: DeleteVpcLinkCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteVpcLinkCommandOutput) => void),
+ cb?: (err: any, data?: DeleteVpcLinkCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteVpcLinkCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Represents a delete integration response.
+ *
+ */
+ public deleteIntegrationResponse(
+ args: DeleteIntegrationResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteIntegrationResponse(
+ args: DeleteIntegrationResponseCommandInput,
+ cb: (err: any, data?: DeleteIntegrationResponseCommandOutput) => void
+ ): void;
+ public deleteIntegrationResponse(
+ args: DeleteIntegrationResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteIntegrationResponseCommandOutput) => void
+ ): void;
+ public deleteIntegrationResponse(
+ args: DeleteIntegrationResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteIntegrationResponseCommandOutput) => void),
+ cb?: (err: any, data?: DeleteIntegrationResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteIntegrationResponseCommand(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 usage plan of a given plan Id.
+ *
+ */
+ public updateUsagePlan(
+ args: UpdateUsagePlanCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateUsagePlan(
+ args: UpdateUsagePlanCommandInput,
+ cb: (err: any, data?: UpdateUsagePlanCommandOutput) => void
+ ): void;
+ public updateUsagePlan(
+ args: UpdateUsagePlanCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateUsagePlanCommandOutput) => void
+ ): void;
+ public updateUsagePlan(
+ args: UpdateUsagePlanCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateUsagePlanCommandOutput) => void),
+ cb?: (err: any, data?: UpdateUsagePlanCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateUsagePlanCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets a
+ *
+ * GatewayResponse
+ *
+ * of a specified response type on the given
+ *
+ * RestApi
+ *
+ * .
+ *
+ */
+ public getGatewayResponse(
+ args: GetGatewayResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getGatewayResponse(
+ args: GetGatewayResponseCommandInput,
+ cb: (err: any, data?: GetGatewayResponseCommandOutput) => void
+ ): void;
+ public getGatewayResponse(
+ args: GetGatewayResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetGatewayResponseCommandOutput) => void
+ ): void;
+ public getGatewayResponse(
+ args: GetGatewayResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetGatewayResponseCommandOutput) => void),
+ cb?: (err: any, data?: GetGatewayResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new GetGatewayResponseCommand(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 usage plan key and remove the underlying API key from the associated usage plan.
+ *
+ */
+ public deleteUsagePlanKey(
+ args: DeleteUsagePlanKeyCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteUsagePlanKey(
+ args: DeleteUsagePlanKeyCommandInput,
+ cb: (err: any, data?: DeleteUsagePlanKeyCommandOutput) => void
+ ): void;
+ public deleteUsagePlanKey(
+ args: DeleteUsagePlanKeyCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteUsagePlanKeyCommandOutput) => void
+ ): void;
+ public deleteUsagePlanKey(
+ args: DeleteUsagePlanKeyCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteUsagePlanKeyCommandOutput) => void),
+ cb?: (err: any, data?: DeleteUsagePlanKeyCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteUsagePlanKeyCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Represents an update integration response.
+ *
+ */
+ public updateIntegrationResponse(
+ args: UpdateIntegrationResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateIntegrationResponse(
+ args: UpdateIntegrationResponseCommandInput,
+ cb: (err: any, data?: UpdateIntegrationResponseCommandOutput) => void
+ ): void;
+ public updateIntegrationResponse(
+ args: UpdateIntegrationResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateIntegrationResponseCommandOutput) => void
+ ): void;
+ public updateIntegrationResponse(
+ args: UpdateIntegrationResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateIntegrationResponseCommandOutput) => void),
+ cb?: (err: any, data?: UpdateIntegrationResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateIntegrationResponseCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets a specified VPC link under the caller's account in a region.
+ *
+ */
+ public getVpcLink(
+ args: GetVpcLinkCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getVpcLink(
+ args: GetVpcLinkCommandInput,
+ cb: (err: any, data?: GetVpcLinkCommandOutput) => void
+ ): void;
+ public getVpcLink(
+ args: GetVpcLinkCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetVpcLinkCommandOutput) => void
+ ): void;
+ public getVpcLink(
+ args: GetVpcLinkCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetVpcLinkCommandOutput) => void),
+ cb?: (err: any, data?: GetVpcLinkCommandOutput) => void
+ ): Promise | void {
+ const command = new GetVpcLinkCommand(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);
+ }
+ }
+
+ public getDocumentationVersion(
+ args: GetDocumentationVersionCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getDocumentationVersion(
+ args: GetDocumentationVersionCommandInput,
+ cb: (err: any, data?: GetDocumentationVersionCommandOutput) => void
+ ): void;
+ public getDocumentationVersion(
+ args: GetDocumentationVersionCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetDocumentationVersionCommandOutput) => void
+ ): void;
+ public getDocumentationVersion(
+ args: GetDocumentationVersionCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDocumentationVersionCommandOutput) => void),
+ cb?: (err: any, data?: GetDocumentationVersionCommandOutput) => void
+ ): Promise | void {
+ const command = new GetDocumentationVersionCommand(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 a
+ *
+ * MethodResponse
+ *
+ * to an existing
+ *
+ * Method
+ *
+ * resource.
+ *
+ */
+ public putMethodResponse(
+ args: PutMethodResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public putMethodResponse(
+ args: PutMethodResponseCommandInput,
+ cb: (err: any, data?: PutMethodResponseCommandOutput) => void
+ ): void;
+ public putMethodResponse(
+ args: PutMethodResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: PutMethodResponseCommandOutput) => void
+ ): void;
+ public putMethodResponse(
+ args: PutMethodResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutMethodResponseCommandOutput) => void),
+ cb?: (err: any, data?: PutMethodResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new PutMethodResponseCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Changes information about the
+ *
+ * BasePathMapping
+ *
+ * resource.
+ *
+ */
+ public updateBasePathMapping(
+ args: UpdateBasePathMappingCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateBasePathMapping(
+ args: UpdateBasePathMappingCommandInput,
+ cb: (err: any, data?: UpdateBasePathMappingCommandOutput) => void
+ ): void;
+ public updateBasePathMapping(
+ args: UpdateBasePathMappingCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateBasePathMappingCommandOutput) => void
+ ): void;
+ public updateBasePathMapping(
+ args: UpdateBasePathMappingCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateBasePathMappingCommandOutput) => void),
+ cb?: (err: any, data?: UpdateBasePathMappingCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateBasePathMappingCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Describe a
+ *
+ * BasePathMapping
+ *
+ * resource.
+ *
+ */
+ public getBasePathMapping(
+ args: GetBasePathMappingCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getBasePathMapping(
+ args: GetBasePathMappingCommandInput,
+ cb: (err: any, data?: GetBasePathMappingCommandOutput) => void
+ ): void;
+ public getBasePathMapping(
+ args: GetBasePathMappingCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetBasePathMappingCommandOutput) => void
+ ): void;
+ public getBasePathMapping(
+ args: GetBasePathMappingCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetBasePathMappingCommandOutput) => void),
+ cb?: (err: any, data?: GetBasePathMappingCommandOutput) => void
+ ): Promise | void {
+ const command = new GetBasePathMappingCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Changes information about the specified API.
+ *
+ */
+ public updateRestApi(
+ args: UpdateRestApiCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateRestApi(
+ args: UpdateRestApiCommandInput,
+ cb: (err: any, data?: UpdateRestApiCommandOutput) => void
+ ): void;
+ public updateRestApi(
+ args: UpdateRestApiCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateRestApiCommandOutput) => void
+ ): void;
+ public updateRestApi(
+ args: UpdateRestApiCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateRestApiCommandOutput) => void),
+ cb?: (err: any, data?: UpdateRestApiCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateRestApiCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets information about the current
+ *
+ * Account
+ *
+ * resource.
+ *
+ */
+ public getAccount(
+ args: GetAccountCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getAccount(
+ args: GetAccountCommandInput,
+ cb: (err: any, data?: GetAccountCommandOutput) => void
+ ): void;
+ public getAccount(
+ args: GetAccountCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetAccountCommandOutput) => void
+ ): void;
+ public getAccount(
+ args: GetAccountCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAccountCommandOutput) => void),
+ cb?: (err: any, data?: GetAccountCommandOutput) => void
+ ): Promise | void {
+ const command = new GetAccountCommand(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 an existing
+ *
+ * VpcLink
+ *
+ * of a specified identifier.
+ *
+ */
+ public updateVpcLink(
+ args: UpdateVpcLinkCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateVpcLink(
+ args: UpdateVpcLinkCommandInput,
+ cb: (err: any, data?: UpdateVpcLinkCommandOutput) => void
+ ): void;
+ public updateVpcLink(
+ args: UpdateVpcLinkCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateVpcLinkCommandOutput) => void
+ ): void;
+ public updateVpcLink(
+ args: UpdateVpcLinkCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateVpcLinkCommandOutput) => void),
+ cb?: (err: any, data?: UpdateVpcLinkCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateVpcLinkCommand(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
+ *
+ * Stage
+ *
+ * resource.
+ *
+ */
+ public deleteStage(
+ args: DeleteStageCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteStage(
+ args: DeleteStageCommandInput,
+ cb: (err: any, data?: DeleteStageCommandOutput) => void
+ ): void;
+ public deleteStage(
+ args: DeleteStageCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteStageCommandOutput) => void
+ ): void;
+ public deleteStage(
+ args: DeleteStageCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteStageCommandOutput) => void),
+ cb?: (err: any, data?: DeleteStageCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteStageCommand(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 updates a tag on a given resource.
+ *
+ */
+ public tagResource(
+ args: TagResourceCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public tagResource(
+ args: TagResourceCommandInput,
+ cb: (err: any, data?: TagResourceCommandOutput) => void
+ ): void;
+ public tagResource(
+ args: TagResourceCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: TagResourceCommandOutput) => void
+ ): void;
+ public tagResource(
+ args: TagResourceCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
+ cb?: (err: any, data?: TagResourceCommandOutput) => void
+ ): Promise | void {
+ const command = new TagResourceCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Describe an existing
+ *
+ * Authorizers
+ *
+ * resource.
+ *
+ *
+ */
+ public getAuthorizers(
+ args: GetAuthorizersCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getAuthorizers(
+ args: GetAuthorizersCommandInput,
+ cb: (err: any, data?: GetAuthorizersCommandOutput) => void
+ ): void;
+ public getAuthorizers(
+ args: GetAuthorizersCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetAuthorizersCommandOutput) => void
+ ): void;
+ public getAuthorizers(
+ args: GetAuthorizersCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetAuthorizersCommandOutput) => void),
+ cb?: (err: any, data?: GetAuthorizersCommandOutput) => void
+ ): Promise | void {
+ const command = new GetAuthorizersCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Simulate the execution of a
+ *
+ * Method
+ *
+ * in your
+ *
+ * RestApi
+ *
+ * with headers, parameters, and an incoming request body.
+ *
+ */
+ public testInvokeMethod(
+ args: TestInvokeMethodCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public testInvokeMethod(
+ args: TestInvokeMethodCommandInput,
+ cb: (err: any, data?: TestInvokeMethodCommandOutput) => void
+ ): void;
+ public testInvokeMethod(
+ args: TestInvokeMethodCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: TestInvokeMethodCommandOutput) => void
+ ): void;
+ public testInvokeMethod(
+ args: TestInvokeMethodCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TestInvokeMethodCommandOutput) => void),
+ cb?: (err: any, data?: TestInvokeMethodCommandOutput) => void
+ ): Promise | void {
+ const command = new TestInvokeMethodCommand(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 a
+ *
+ * MethodResponse
+ *
+ * resource.
+ *
+ */
+ public getMethodResponse(
+ args: GetMethodResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getMethodResponse(
+ args: GetMethodResponseCommandInput,
+ cb: (err: any, data?: GetMethodResponseCommandOutput) => void
+ ): void;
+ public getMethodResponse(
+ args: GetMethodResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetMethodResponseCommandOutput) => void
+ ): void;
+ public getMethodResponse(
+ args: GetMethodResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetMethodResponseCommandOutput) => void),
+ cb?: (err: any, data?: GetMethodResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new GetMethodResponseCommand(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
+ *
+ * RestApi
+ *
+ * resource in the collection.
+ *
+ */
+ public getRestApi(
+ args: GetRestApiCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getRestApi(
+ args: GetRestApiCommandInput,
+ cb: (err: any, data?: GetRestApiCommandOutput) => void
+ ): void;
+ public getRestApi(
+ args: GetRestApiCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetRestApiCommandOutput) => void
+ ): void;
+ public getRestApi(
+ args: GetRestApiCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRestApiCommandOutput) => void),
+ cb?: (err: any, data?: GetRestApiCommandOutput) => void
+ ): Promise | void {
+ const command = new GetRestApiCommand(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 API.
+ *
+ */
+ public deleteRestApi(
+ args: DeleteRestApiCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public deleteRestApi(
+ args: DeleteRestApiCommandInput,
+ cb: (err: any, data?: DeleteRestApiCommandOutput) => void
+ ): void;
+ public deleteRestApi(
+ args: DeleteRestApiCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: DeleteRestApiCommandOutput) => void
+ ): void;
+ public deleteRestApi(
+ args: DeleteRestApiCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteRestApiCommandOutput) => void),
+ cb?: (err: any, data?: DeleteRestApiCommandOutput) => void
+ ): Promise | void {
+ const command = new DeleteRestApiCommand(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);
+ }
+ }
+
+ /**
+ *
+ * A feature of the API Gateway control service for creating a new API from an external API definition file.
+ *
+ */
+ public importRestApi(
+ args: ImportRestApiCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public importRestApi(
+ args: ImportRestApiCommandInput,
+ cb: (err: any, data?: ImportRestApiCommandOutput) => void
+ ): void;
+ public importRestApi(
+ args: ImportRestApiCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: ImportRestApiCommandOutput) => void
+ ): void;
+ public importRestApi(
+ args: ImportRestApiCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ImportRestApiCommandOutput) => void),
+ cb?: (err: any, data?: ImportRestApiCommandOutput) => void
+ ): Promise | void {
+ const command = new ImportRestApiCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Gets the
+ *
+ * GatewayResponses
+ *
+ * collection on the given
+ *
+ * RestApi
+ *
+ * . If an API developer has not added any definitions for gateway responses, the result will be the API Gateway-generated default
+ *
+ * GatewayResponses
+ *
+ * collection for the supported response types.
+ *
+ */
+ public getGatewayResponses(
+ args: GetGatewayResponsesCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getGatewayResponses(
+ args: GetGatewayResponsesCommandInput,
+ cb: (err: any, data?: GetGatewayResponsesCommandOutput) => void
+ ): void;
+ public getGatewayResponses(
+ args: GetGatewayResponsesCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetGatewayResponsesCommandOutput) => void
+ ): void;
+ public getGatewayResponses(
+ args: GetGatewayResponsesCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetGatewayResponsesCommandOutput) => void),
+ cb?: (err: any, data?: GetGatewayResponsesCommandOutput) => void
+ ): Promise | void {
+ const command = new GetGatewayResponsesCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Changes information about a
+ *
+ * Deployment
+ *
+ * resource.
+ *
+ */
+ public updateDeployment(
+ args: UpdateDeploymentCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateDeployment(
+ args: UpdateDeploymentCommandInput,
+ cb: (err: any, data?: UpdateDeploymentCommandOutput) => void
+ ): void;
+ public updateDeployment(
+ args: UpdateDeploymentCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateDeploymentCommandOutput) => void
+ ): void;
+ public updateDeployment(
+ args: UpdateDeploymentCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDeploymentCommandOutput) => void),
+ cb?: (err: any, data?: UpdateDeploymentCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateDeploymentCommand(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 a new
+ *
+ * Model
+ *
+ * resource to an existing
+ *
+ * RestApi
+ *
+ * resource.
+ *
+ */
+ public createModel(
+ args: CreateModelCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createModel(
+ args: CreateModelCommandInput,
+ cb: (err: any, data?: CreateModelCommandOutput) => void
+ ): void;
+ public createModel(
+ args: CreateModelCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateModelCommandOutput) => void
+ ): void;
+ public createModel(
+ args: CreateModelCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateModelCommandOutput) => void),
+ cb?: (err: any, data?: CreateModelCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateModelCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Generates a client SDK for a
+ *
+ * RestApi
+ *
+ * and
+ *
+ * Stage
+ *
+ * .
+ *
+ */
+ public getSdk(
+ args: GetSdkCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getSdk(
+ args: GetSdkCommandInput,
+ cb: (err: any, data?: GetSdkCommandOutput) => void
+ ): void;
+ public getSdk(
+ args: GetSdkCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetSdkCommandOutput) => void
+ ): void;
+ public getSdk(
+ args: GetSdkCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetSdkCommandOutput) => void),
+ cb?: (err: any, data?: GetSdkCommandOutput) => void
+ ): Promise | void {
+ const command = new GetSdkCommand(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 usage plan with the throttle and quota limits, as well as the associated API stages, specified in the payload.
+ *
+ */
+ public createUsagePlan(
+ args: CreateUsagePlanCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public createUsagePlan(
+ args: CreateUsagePlanCommandInput,
+ cb: (err: any, data?: CreateUsagePlanCommandOutput) => void
+ ): void;
+ public createUsagePlan(
+ args: CreateUsagePlanCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: CreateUsagePlanCommandOutput) => void
+ ): void;
+ public createUsagePlan(
+ args: CreateUsagePlanCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateUsagePlanCommandOutput) => void),
+ cb?: (err: any, data?: CreateUsagePlanCommandOutput) => void
+ ): Promise | void {
+ const command = new CreateUsagePlanCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Exports a deployed version of a
+ *
+ * RestApi
+ *
+ * in a specified format.
+ *
+ */
+ public getExport(
+ args: GetExportCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getExport(
+ args: GetExportCommandInput,
+ cb: (err: any, data?: GetExportCommandOutput) => void
+ ): void;
+ public getExport(
+ args: GetExportCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetExportCommandOutput) => void
+ ): void;
+ public getExport(
+ args: GetExportCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetExportCommandOutput) => void),
+ cb?: (err: any, data?: GetExportCommandOutput) => void
+ ): Promise | void {
+ const command = new GetExportCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Changes information about an
+ *
+ * ClientCertificate
+ *
+ * resource.
+ *
+ */
+ public updateClientCertificate(
+ args: UpdateClientCertificateCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateClientCertificate(
+ args: UpdateClientCertificateCommandInput,
+ cb: (err: any, data?: UpdateClientCertificateCommandOutput) => void
+ ): void;
+ public updateClientCertificate(
+ args: UpdateClientCertificateCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateClientCertificateCommandOutput) => void
+ ): void;
+ public updateClientCertificate(
+ args: UpdateClientCertificateCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateClientCertificateCommandOutput) => void),
+ cb?: (err: any, data?: UpdateClientCertificateCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateClientCertificateCommand(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
+ *
+ * RequestValidator
+ *
+ * of a given
+ *
+ * RestApi
+ *
+ * .
+ *
+ */
+ public updateRequestValidator(
+ args: UpdateRequestValidatorCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateRequestValidator(
+ args: UpdateRequestValidatorCommandInput,
+ cb: (err: any, data?: UpdateRequestValidatorCommandOutput) => void
+ ): void;
+ public updateRequestValidator(
+ args: UpdateRequestValidatorCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateRequestValidatorCommandOutput) => void
+ ): void;
+ public updateRequestValidator(
+ args: UpdateRequestValidatorCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateRequestValidatorCommandOutput) => void),
+ cb?: (err: any, data?: UpdateRequestValidatorCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateRequestValidatorCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Sets up a method's integration.
+ *
+ */
+ public putIntegration(
+ args: PutIntegrationCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public putIntegration(
+ args: PutIntegrationCommandInput,
+ cb: (err: any, data?: PutIntegrationCommandOutput) => void
+ ): void;
+ public putIntegration(
+ args: PutIntegrationCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: PutIntegrationCommandOutput) => void
+ ): void;
+ public putIntegration(
+ args: PutIntegrationCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutIntegrationCommandOutput) => void),
+ cb?: (err: any, data?: PutIntegrationCommandOutput) => void
+ ): Promise | void {
+ const command = new PutIntegrationCommand(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);
+ }
+ }
+
+ public updateDocumentationPart(
+ args: UpdateDocumentationPartCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateDocumentationPart(
+ args: UpdateDocumentationPartCommandInput,
+ cb: (err: any, data?: UpdateDocumentationPartCommandOutput) => void
+ ): void;
+ public updateDocumentationPart(
+ args: UpdateDocumentationPartCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateDocumentationPartCommandOutput) => void
+ ): void;
+ public updateDocumentationPart(
+ args: UpdateDocumentationPartCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDocumentationPartCommandOutput) => void),
+ cb?: (err: any, data?: UpdateDocumentationPartCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateDocumentationPartCommand(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
+ *
+ * RestApis
+ *
+ * resources for your collection.
+ *
+ */
+ public getRestApis(
+ args: GetRestApisCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public getRestApis(
+ args: GetRestApisCommandInput,
+ cb: (err: any, data?: GetRestApisCommandOutput) => void
+ ): void;
+ public getRestApis(
+ args: GetRestApisCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: GetRestApisCommandOutput) => void
+ ): void;
+ public getRestApis(
+ args: GetRestApisCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetRestApisCommandOutput) => void),
+ cb?: (err: any, data?: GetRestApisCommandOutput) => void
+ ): Promise | void {
+ const command = new GetRestApisCommand(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
+ *
+ * GatewayResponse
+ *
+ * of a specified response type on the given
+ *
+ * RestApi
+ *
+ * .
+ *
+ */
+ public updateGatewayResponse(
+ args: UpdateGatewayResponseCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateGatewayResponse(
+ args: UpdateGatewayResponseCommandInput,
+ cb: (err: any, data?: UpdateGatewayResponseCommandOutput) => void
+ ): void;
+ public updateGatewayResponse(
+ args: UpdateGatewayResponseCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateGatewayResponseCommandOutput) => void
+ ): void;
+ public updateGatewayResponse(
+ args: UpdateGatewayResponseCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateGatewayResponseCommandOutput) => void),
+ cb?: (err: any, data?: UpdateGatewayResponseCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateGatewayResponseCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Add a method to an existing
+ *
+ * Resource
+ *
+ * resource.
+ *
+ */
+ public putMethod(
+ args: PutMethodCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public putMethod(
+ args: PutMethodCommandInput,
+ cb: (err: any, data?: PutMethodCommandOutput) => void
+ ): void;
+ public putMethod(
+ args: PutMethodCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: PutMethodCommandOutput) => void
+ ): void;
+ public putMethod(
+ args: PutMethodCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: PutMethodCommandOutput) => void),
+ cb?: (err: any, data?: PutMethodCommandOutput) => void
+ ): Promise | void {
+ const command = new PutMethodCommand(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);
+ }
+ }
+
+ /**
+ *
+ * Changes information about the current
+ *
+ * Account
+ *
+ * resource.
+ *
+ */
+ public updateAccount(
+ args: UpdateAccountCommandInput,
+ options?: __HttpHandlerOptions,
+ ): Promise;
+ public updateAccount(
+ args: UpdateAccountCommandInput,
+ cb: (err: any, data?: UpdateAccountCommandOutput) => void
+ ): void;
+ public updateAccount(
+ args: UpdateAccountCommandInput,
+ options: __HttpHandlerOptions,
+ cb: (err: any, data?: UpdateAccountCommandOutput) => void
+ ): void;
+ public updateAccount(
+ args: UpdateAccountCommandInput,
+ optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateAccountCommandOutput) => void),
+ cb?: (err: any, data?: UpdateAccountCommandOutput) => void
+ ): Promise | void {
+ const command = new UpdateAccountCommand(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-api-gateway/APIGatewayClient.ts b/clients/client-api-gateway/APIGatewayClient.ts
new file mode 100644
index 000000000000..309acc9e36e2
--- /dev/null
+++ b/clients/client-api-gateway/APIGatewayClient.ts
@@ -0,0 +1,583 @@
+import {
+ Account,
+ ApiKey,
+ ApiKeyIds,
+ ApiKeys,
+ Authorizer,
+ Authorizers,
+ BasePathMapping,
+ BasePathMappings,
+ ClientCertificate,
+ ClientCertificates,
+ CreateApiKeyRequest,
+ CreateAuthorizerRequest,
+ CreateBasePathMappingRequest,
+ CreateDeploymentRequest,
+ CreateDocumentationPartRequest,
+ CreateDocumentationVersionRequest,
+ CreateDomainNameRequest,
+ CreateModelRequest,
+ CreateRequestValidatorRequest,
+ CreateResourceRequest,
+ CreateRestApiRequest,
+ CreateStageRequest,
+ CreateUsagePlanKeyRequest,
+ CreateUsagePlanRequest,
+ CreateVpcLinkRequest,
+ DeleteApiKeyRequest,
+ DeleteAuthorizerRequest,
+ DeleteBasePathMappingRequest,
+ DeleteClientCertificateRequest,
+ DeleteDeploymentRequest,
+ DeleteDocumentationPartRequest,
+ DeleteDocumentationVersionRequest,
+ DeleteDomainNameRequest,
+ DeleteGatewayResponseRequest,
+ DeleteIntegrationRequest,
+ DeleteIntegrationResponseRequest,
+ DeleteMethodRequest,
+ DeleteMethodResponseRequest,
+ DeleteModelRequest,
+ DeleteRequestValidatorRequest,
+ DeleteResourceRequest,
+ DeleteRestApiRequest,
+ DeleteStageRequest,
+ DeleteUsagePlanKeyRequest,
+ DeleteUsagePlanRequest,
+ DeleteVpcLinkRequest,
+ Deployment,
+ Deployments,
+ DocumentationPart,
+ DocumentationPartIds,
+ DocumentationParts,
+ DocumentationVersion,
+ DocumentationVersions,
+ DomainName,
+ DomainNames,
+ ExportResponse,
+ FlushStageAuthorizersCacheRequest,
+ FlushStageCacheRequest,
+ GatewayResponse,
+ GatewayResponses,
+ GenerateClientCertificateRequest,
+ GetAccountRequest,
+ GetApiKeyRequest,
+ GetApiKeysRequest,
+ GetAuthorizerRequest,
+ GetAuthorizersRequest,
+ GetBasePathMappingRequest,
+ GetBasePathMappingsRequest,
+ GetClientCertificateRequest,
+ GetClientCertificatesRequest,
+ GetDeploymentRequest,
+ GetDeploymentsRequest,
+ GetDocumentationPartRequest,
+ GetDocumentationPartsRequest,
+ GetDocumentationVersionRequest,
+ GetDocumentationVersionsRequest,
+ GetDomainNameRequest,
+ GetDomainNamesRequest,
+ GetExportRequest,
+ GetGatewayResponseRequest,
+ GetGatewayResponsesRequest,
+ GetIntegrationRequest,
+ GetIntegrationResponseRequest,
+ GetMethodRequest,
+ GetMethodResponseRequest,
+ GetModelRequest,
+ GetModelTemplateRequest,
+ GetModelsRequest,
+ GetRequestValidatorRequest,
+ GetRequestValidatorsRequest,
+ GetResourceRequest,
+ GetResourcesRequest,
+ GetRestApiRequest,
+ GetRestApisRequest,
+ GetSdkRequest,
+ GetSdkTypeRequest,
+ GetSdkTypesRequest,
+ GetStageRequest,
+ GetStagesRequest,
+ GetTagsRequest,
+ GetUsagePlanKeyRequest,
+ GetUsagePlanKeysRequest,
+ GetUsagePlanRequest,
+ GetUsagePlansRequest,
+ GetUsageRequest,
+ GetVpcLinkRequest,
+ GetVpcLinksRequest,
+ ImportApiKeysRequest,
+ ImportDocumentationPartsRequest,
+ ImportRestApiRequest,
+ Integration,
+ IntegrationResponse,
+ Method,
+ MethodResponse,
+ Model,
+ Models,
+ PutGatewayResponseRequest,
+ PutIntegrationRequest,
+ PutIntegrationResponseRequest,
+ PutMethodRequest,
+ PutMethodResponseRequest,
+ PutRestApiRequest,
+ RequestValidator,
+ RequestValidators,
+ Resource,
+ Resources,
+ RestApi,
+ RestApis,
+ SdkResponse,
+ SdkType,
+ SdkTypes,
+ Stage,
+ Stages,
+ TagResourceRequest,
+ Tags,
+ Template,
+ TestInvokeAuthorizerRequest,
+ TestInvokeAuthorizerResponse,
+ TestInvokeMethodRequest,
+ TestInvokeMethodResponse,
+ UntagResourceRequest,
+ UpdateAccountRequest,
+ UpdateApiKeyRequest,
+ UpdateAuthorizerRequest,
+ UpdateBasePathMappingRequest,
+ UpdateClientCertificateRequest,
+ UpdateDeploymentRequest,
+ UpdateDocumentationPartRequest,
+ UpdateDocumentationVersionRequest,
+ UpdateDomainNameRequest,
+ UpdateGatewayResponseRequest,
+ UpdateIntegrationRequest,
+ UpdateIntegrationResponseRequest,
+ UpdateMethodRequest,
+ UpdateMethodResponseRequest,
+ UpdateModelRequest,
+ UpdateRequestValidatorRequest,
+ UpdateResourceRequest,
+ UpdateRestApiRequest,
+ UpdateStageRequest,
+ UpdateUsagePlanRequest,
+ UpdateUsageRequest,
+ UpdateVpcLinkRequest,
+ Usage,
+ UsagePlan,
+ UsagePlanKey,
+ UsagePlanKeys,
+ UsagePlans,
+ VpcLink,
+ VpcLinks,
+} 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 { getAcceptsHeaderPlugin } from "@aws-sdk/middleware-sdk-api-gateway";
+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,
+ MetadataBearer as __MetadataBearer,
+ Provider as __Provider,
+ StreamCollector as __StreamCollector,
+ UrlParser as __UrlParser,
+} from "@aws-sdk/types";
+
+export type ServiceInputTypes =
+ | CreateApiKeyRequest
+ | CreateAuthorizerRequest
+ | CreateBasePathMappingRequest
+ | CreateDeploymentRequest
+ | CreateDocumentationPartRequest
+ | CreateDocumentationVersionRequest
+ | CreateDomainNameRequest
+ | CreateModelRequest
+ | CreateRequestValidatorRequest
+ | CreateResourceRequest
+ | CreateRestApiRequest
+ | CreateStageRequest
+ | CreateUsagePlanKeyRequest
+ | CreateUsagePlanRequest
+ | CreateVpcLinkRequest
+ | DeleteApiKeyRequest
+ | DeleteAuthorizerRequest
+ | DeleteBasePathMappingRequest
+ | DeleteClientCertificateRequest
+ | DeleteDeploymentRequest
+ | DeleteDocumentationPartRequest
+ | DeleteDocumentationVersionRequest
+ | DeleteDomainNameRequest
+ | DeleteGatewayResponseRequest
+ | DeleteIntegrationRequest
+ | DeleteIntegrationResponseRequest
+ | DeleteMethodRequest
+ | DeleteMethodResponseRequest
+ | DeleteModelRequest
+ | DeleteRequestValidatorRequest
+ | DeleteResourceRequest
+ | DeleteRestApiRequest
+ | DeleteStageRequest
+ | DeleteUsagePlanKeyRequest
+ | DeleteUsagePlanRequest
+ | DeleteVpcLinkRequest
+ | FlushStageAuthorizersCacheRequest
+ | FlushStageCacheRequest
+ | GenerateClientCertificateRequest
+ | GetAccountRequest
+ | GetApiKeyRequest
+ | GetApiKeysRequest
+ | GetAuthorizerRequest
+ | GetAuthorizersRequest
+ | GetBasePathMappingRequest
+ | GetBasePathMappingsRequest
+ | GetClientCertificateRequest
+ | GetClientCertificatesRequest
+ | GetDeploymentRequest
+ | GetDeploymentsRequest
+ | GetDocumentationPartRequest
+ | GetDocumentationPartsRequest
+ | GetDocumentationVersionRequest
+ | GetDocumentationVersionsRequest
+ | GetDomainNameRequest
+ | GetDomainNamesRequest
+ | GetExportRequest
+ | GetGatewayResponseRequest
+ | GetGatewayResponsesRequest
+ | GetIntegrationRequest
+ | GetIntegrationResponseRequest
+ | GetMethodRequest
+ | GetMethodResponseRequest
+ | GetModelRequest
+ | GetModelTemplateRequest
+ | GetModelsRequest
+ | GetRequestValidatorRequest
+ | GetRequestValidatorsRequest
+ | GetResourceRequest
+ | GetResourcesRequest
+ | GetRestApiRequest
+ | GetRestApisRequest
+ | GetSdkRequest
+ | GetSdkTypeRequest
+ | GetSdkTypesRequest
+ | GetStageRequest
+ | GetStagesRequest
+ | GetTagsRequest
+ | GetUsagePlanKeyRequest
+ | GetUsagePlanKeysRequest
+ | GetUsagePlanRequest
+ | GetUsagePlansRequest
+ | GetUsageRequest
+ | GetVpcLinkRequest
+ | GetVpcLinksRequest
+ | ImportApiKeysRequest
+ | ImportDocumentationPartsRequest
+ | ImportRestApiRequest
+ | PutGatewayResponseRequest
+ | PutIntegrationRequest
+ | PutIntegrationResponseRequest
+ | PutMethodRequest
+ | PutMethodResponseRequest
+ | PutRestApiRequest
+ | TagResourceRequest
+ | TestInvokeAuthorizerRequest
+ | TestInvokeMethodRequest
+ | UntagResourceRequest
+ | UpdateAccountRequest
+ | UpdateApiKeyRequest
+ | UpdateAuthorizerRequest
+ | UpdateBasePathMappingRequest
+ | UpdateClientCertificateRequest
+ | UpdateDeploymentRequest
+ | UpdateDocumentationPartRequest
+ | UpdateDocumentationVersionRequest
+ | UpdateDomainNameRequest
+ | UpdateGatewayResponseRequest
+ | UpdateIntegrationRequest
+ | UpdateIntegrationResponseRequest
+ | UpdateMethodRequest
+ | UpdateMethodResponseRequest
+ | UpdateModelRequest
+ | UpdateRequestValidatorRequest
+ | UpdateResourceRequest
+ | UpdateRestApiRequest
+ | UpdateStageRequest
+ | UpdateUsagePlanRequest
+ | UpdateUsageRequest
+ | UpdateVpcLinkRequest;
+
+export type ServiceOutputTypes =
+ | __MetadataBearer
+ | Account
+ | Account
+ | ApiKey
+ | ApiKey
+ | ApiKey
+ | ApiKeyIds
+ | ApiKeys
+ | Authorizer
+ | Authorizer
+ | Authorizer
+ | Authorizers
+ | BasePathMapping
+ | BasePathMapping
+ | BasePathMapping
+ | BasePathMappings
+ | ClientCertificate
+ | ClientCertificate
+ | ClientCertificate
+ | ClientCertificates
+ | Deployment
+ | Deployment
+ | Deployment
+ | Deployments
+ | DocumentationPart
+ | DocumentationPart
+ | DocumentationPart
+ | DocumentationPartIds
+ | DocumentationParts
+ | DocumentationVersion
+ | DocumentationVersion
+ | DocumentationVersion
+ | DocumentationVersions
+ | DomainName
+ | DomainName
+ | DomainName
+ | DomainNames
+ | ExportResponse
+ | GatewayResponse
+ | GatewayResponse
+ | GatewayResponse
+ | GatewayResponses
+ | Integration
+ | Integration
+ | Integration
+ | IntegrationResponse
+ | IntegrationResponse
+ | IntegrationResponse
+ | Method
+ | Method
+ | Method
+ | MethodResponse
+ | MethodResponse
+ | MethodResponse
+ | Model
+ | Model
+ | Model
+ | Models
+ | RequestValidator
+ | RequestValidator
+ | RequestValidator
+ | RequestValidators
+ | Resource
+ | Resource
+ | Resource
+ | Resources
+ | RestApi
+ | RestApi
+ | RestApi
+ | RestApi
+ | RestApi
+ | RestApis
+ | SdkResponse
+ | SdkType
+ | SdkTypes
+ | Stage
+ | Stage
+ | Stage
+ | Stages
+ | Tags
+ | Template
+ | TestInvokeAuthorizerResponse
+ | TestInvokeMethodResponse
+ | Usage
+ | Usage
+ | UsagePlan
+ | UsagePlan
+ | UsagePlan
+ | UsagePlanKey
+ | UsagePlanKey
+ | UsagePlanKeys
+ | UsagePlans
+ | VpcLink
+ | VpcLink
+ | VpcLink
+ | VpcLinks;
+
+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 APIGatewayClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>>
+ & ClientDefaults
+ & RegionInputConfig
+ & EndpointsInputConfig
+ & AwsAuthInputConfig
+ & RetryInputConfig
+ & UserAgentInputConfig
+ & HostHeaderInputConfig
+
+export type APIGatewayClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions>
+ & Required
+ & RegionResolvedConfig
+ & EndpointsResolvedConfig
+ & AwsAuthResolvedConfig
+ & RetryResolvedConfig
+ & UserAgentResolvedConfig
+ & HostHeaderResolvedConfig
+
+/**
+ *
+ * Amazon API Gateway
+ *
+ *
+ * Amazon API Gateway helps developers deliver robust, secure, and scalable mobile and web application back ends. API Gateway allows developers to securely connect mobile and web applications to APIs that run on AWS Lambda, Amazon EC2, or other publicly addressable web services that are hosted outside of AWS.
+ *
+ */
+export class APIGatewayClient extends __Client<
+ __HttpHandlerOptions,
+ ServiceInputTypes,
+ ServiceOutputTypes,
+ APIGatewayClientResolvedConfig
+> {
+ readonly config: APIGatewayClientResolvedConfig;
+
+ constructor(configuration: APIGatewayClientConfig) {
+ 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(getAcceptsHeaderPlugin(this.config));
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
+ }
+
+ destroy(): void {
+ }
+}
diff --git a/clients/client-api-gateway/LICENSE b/clients/client-api-gateway/LICENSE
new file mode 100644
index 000000000000..b7d2463d8cc0
--- /dev/null
+++ b/clients/client-api-gateway/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-api-gateway/README.md b/clients/client-api-gateway/README.md
new file mode 100644
index 000000000000..cac5f7500293
--- /dev/null
+++ b/clients/client-api-gateway/README.md
@@ -0,0 +1,6 @@
+@aws-sdk/client-api-gateway
+
+[![NPM version](https://img.shields.io/npm/v/@aws-sdk/client-api-gateway/preview.svg)](https://www.npmjs.com/package/@aws-sdk/client-api-gateway)
+[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/client-api-gateway.svg)](https://www.npmjs.com/package/@aws-sdk/client-api-gateway)
+
+For SDK usage, please step to [SDK reademe](https://github.com/aws/aws-sdk-js-v3).
diff --git a/clients/client-api-gateway/commands/CreateApiKeyCommand.ts b/clients/client-api-gateway/commands/CreateApiKeyCommand.ts
new file mode 100644
index 000000000000..85a86178d70a
--- /dev/null
+++ b/clients/client-api-gateway/commands/CreateApiKeyCommand.ts
@@ -0,0 +1,78 @@
+import {
+ APIGatewayClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes,
+} from "../APIGatewayClient";
+import {
+ ApiKey,
+ CreateApiKeyRequest,
+} from "../models/index";
+import {
+ deserializeAws_restJson1_1CreateApiKeyCommand,
+ serializeAws_restJson1_1CreateApiKeyCommand,
+} from "../protocols/Aws_restJson1_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 CreateApiKeyCommandInput = CreateApiKeyRequest;
+export type CreateApiKeyCommandOutput = ApiKey;
+
+export class CreateApiKeyCommand extends $Command {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateApiKeyCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: APIGatewayClientResolvedConfig,
+ 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: CreateApiKeyCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_restJson1_1CreateApiKeyCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_restJson1_1CreateApiKeyCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-api-gateway/commands/CreateAuthorizerCommand.ts b/clients/client-api-gateway/commands/CreateAuthorizerCommand.ts
new file mode 100644
index 000000000000..5f0125f82187
--- /dev/null
+++ b/clients/client-api-gateway/commands/CreateAuthorizerCommand.ts
@@ -0,0 +1,78 @@
+import {
+ APIGatewayClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes,
+} from "../APIGatewayClient";
+import {
+ Authorizer,
+ CreateAuthorizerRequest,
+} from "../models/index";
+import {
+ deserializeAws_restJson1_1CreateAuthorizerCommand,
+ serializeAws_restJson1_1CreateAuthorizerCommand,
+} from "../protocols/Aws_restJson1_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 CreateAuthorizerCommandInput = CreateAuthorizerRequest;
+export type CreateAuthorizerCommandOutput = Authorizer;
+
+export class CreateAuthorizerCommand extends $Command {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateAuthorizerCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack,
+ configuration: APIGatewayClientResolvedConfig,
+ 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: CreateAuthorizerCommandInput,
+ context: SerdeContext
+ ): Promise<__HttpRequest> {
+ return serializeAws_restJson1_1CreateAuthorizerCommand(input, context);
+ }
+
+ private deserialize(
+ output: __HttpResponse,
+ context: SerdeContext
+ ): Promise {
+ return deserializeAws_restJson1_1CreateAuthorizerCommand(output, context);
+ }
+
+ // Start section: command_body_extra
+ // End section: command_body_extra
+}
diff --git a/clients/client-api-gateway/commands/CreateBasePathMappingCommand.ts b/clients/client-api-gateway/commands/CreateBasePathMappingCommand.ts
new file mode 100644
index 000000000000..b7b8040c776f
--- /dev/null
+++ b/clients/client-api-gateway/commands/CreateBasePathMappingCommand.ts
@@ -0,0 +1,78 @@
+import {
+ APIGatewayClientResolvedConfig,
+ ServiceInputTypes,
+ ServiceOutputTypes,
+} from "../APIGatewayClient";
+import {
+ BasePathMapping,
+ CreateBasePathMappingRequest,
+} from "../models/index";
+import {
+ deserializeAws_restJson1_1CreateBasePathMappingCommand,
+ serializeAws_restJson1_1CreateBasePathMappingCommand,
+} from "../protocols/Aws_restJson1_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 CreateBasePathMappingCommandInput = CreateBasePathMappingRequest;
+export type CreateBasePathMappingCommandOutput = BasePathMapping;
+
+export class CreateBasePathMappingCommand extends $Command {
+ // Start section: command_properties
+ // End section: command_properties
+
+ constructor(readonly input: CreateBasePathMappingCommandInput) {
+ // Start section: command_constructor
+ super();
+ // End section: command_constructor
+ }
+
+ resolveMiddleware(
+ clientStack: MiddlewareStack