@aws-sdk/client-m2 3.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +201 -0
- package/README.md +209 -0
- package/dist-cjs/M2.js +487 -0
- package/dist-cjs/M2Client.js +37 -0
- package/dist-cjs/commands/CancelBatchJobExecutionCommand.js +36 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +36 -0
- package/dist-cjs/commands/CreateDataSetImportTaskCommand.js +36 -0
- package/dist-cjs/commands/CreateDeploymentCommand.js +36 -0
- package/dist-cjs/commands/CreateEnvironmentCommand.js +36 -0
- package/dist-cjs/commands/DeleteApplicationCommand.js +36 -0
- package/dist-cjs/commands/DeleteApplicationFromEnvironmentCommand.js +36 -0
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +36 -0
- package/dist-cjs/commands/GetApplicationCommand.js +36 -0
- package/dist-cjs/commands/GetApplicationVersionCommand.js +36 -0
- package/dist-cjs/commands/GetBatchJobExecutionCommand.js +36 -0
- package/dist-cjs/commands/GetDataSetDetailsCommand.js +36 -0
- package/dist-cjs/commands/GetDataSetImportTaskCommand.js +36 -0
- package/dist-cjs/commands/GetDeploymentCommand.js +36 -0
- package/dist-cjs/commands/GetEnvironmentCommand.js +36 -0
- package/dist-cjs/commands/ListApplicationVersionsCommand.js +36 -0
- package/dist-cjs/commands/ListApplicationsCommand.js +36 -0
- package/dist-cjs/commands/ListBatchJobDefinitionsCommand.js +36 -0
- package/dist-cjs/commands/ListBatchJobExecutionsCommand.js +36 -0
- package/dist-cjs/commands/ListDataSetImportHistoryCommand.js +36 -0
- package/dist-cjs/commands/ListDataSetsCommand.js +36 -0
- package/dist-cjs/commands/ListDeploymentsCommand.js +36 -0
- package/dist-cjs/commands/ListEngineVersionsCommand.js +36 -0
- package/dist-cjs/commands/ListEnvironmentsCommand.js +36 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/StartApplicationCommand.js +36 -0
- package/dist-cjs/commands/StartBatchJobCommand.js +36 -0
- package/dist-cjs/commands/StopApplicationCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateApplicationCommand.js +36 -0
- package/dist-cjs/commands/UpdateEnvironmentCommand.js +36 -0
- package/dist-cjs/commands/index.js +35 -0
- package/dist-cjs/endpoints.js +131 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/M2ServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +911 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListApplicationVersionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListApplicationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListBatchJobDefinitionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListBatchJobExecutionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListDataSetImportHistoryPaginator.js +36 -0
- package/dist-cjs/pagination/ListDataSetsPaginator.js +36 -0
- package/dist-cjs/pagination/ListDeploymentsPaginator.js +36 -0
- package/dist-cjs/pagination/ListEngineVersionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListEnvironmentsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +13 -0
- package/dist-cjs/protocols/Aws_restJson1.js +3744 -0
- package/dist-cjs/runtimeConfig.browser.js +45 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +16 -0
- package/dist-cjs/runtimeConfig.shared.js +17 -0
- package/dist-es/M2.js +490 -0
- package/dist-es/M2Client.js +39 -0
- package/dist-es/commands/CancelBatchJobExecutionCommand.js +39 -0
- package/dist-es/commands/CreateApplicationCommand.js +39 -0
- package/dist-es/commands/CreateDataSetImportTaskCommand.js +39 -0
- package/dist-es/commands/CreateDeploymentCommand.js +39 -0
- package/dist-es/commands/CreateEnvironmentCommand.js +39 -0
- package/dist-es/commands/DeleteApplicationCommand.js +39 -0
- package/dist-es/commands/DeleteApplicationFromEnvironmentCommand.js +39 -0
- package/dist-es/commands/DeleteEnvironmentCommand.js +39 -0
- package/dist-es/commands/GetApplicationCommand.js +39 -0
- package/dist-es/commands/GetApplicationVersionCommand.js +39 -0
- package/dist-es/commands/GetBatchJobExecutionCommand.js +39 -0
- package/dist-es/commands/GetDataSetDetailsCommand.js +39 -0
- package/dist-es/commands/GetDataSetImportTaskCommand.js +39 -0
- package/dist-es/commands/GetDeploymentCommand.js +39 -0
- package/dist-es/commands/GetEnvironmentCommand.js +39 -0
- package/dist-es/commands/ListApplicationVersionsCommand.js +39 -0
- package/dist-es/commands/ListApplicationsCommand.js +39 -0
- package/dist-es/commands/ListBatchJobDefinitionsCommand.js +39 -0
- package/dist-es/commands/ListBatchJobExecutionsCommand.js +39 -0
- package/dist-es/commands/ListDataSetImportHistoryCommand.js +39 -0
- package/dist-es/commands/ListDataSetsCommand.js +39 -0
- package/dist-es/commands/ListDeploymentsCommand.js +39 -0
- package/dist-es/commands/ListEngineVersionsCommand.js +39 -0
- package/dist-es/commands/ListEnvironmentsCommand.js +39 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/StartApplicationCommand.js +39 -0
- package/dist-es/commands/StartBatchJobCommand.js +39 -0
- package/dist-es/commands/StopApplicationCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/UpdateApplicationCommand.js +39 -0
- package/dist-es/commands/UpdateEnvironmentCommand.js +39 -0
- package/dist-es/commands/index.js +32 -0
- package/dist-es/endpoints.js +127 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/M2ServiceException.js +12 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +709 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListApplicationVersionsPaginator.js +75 -0
- package/dist-es/pagination/ListApplicationsPaginator.js +75 -0
- package/dist-es/pagination/ListBatchJobDefinitionsPaginator.js +75 -0
- package/dist-es/pagination/ListBatchJobExecutionsPaginator.js +75 -0
- package/dist-es/pagination/ListDataSetImportHistoryPaginator.js +75 -0
- package/dist-es/pagination/ListDataSetsPaginator.js +75 -0
- package/dist-es/pagination/ListDeploymentsPaginator.js +75 -0
- package/dist-es/pagination/ListEngineVersionsPaginator.js +75 -0
- package/dist-es/pagination/ListEnvironmentsPaginator.js +75 -0
- package/dist-es/pagination/index.js +10 -0
- package/dist-es/protocols/Aws_restJson1.js +4508 -0
- package/dist-es/runtimeConfig.browser.js +26 -0
- package/dist-es/runtimeConfig.js +30 -0
- package/dist-es/runtimeConfig.native.js +8 -0
- package/dist-es/runtimeConfig.shared.js +13 -0
- package/dist-types/M2.d.ts +250 -0
- package/dist-types/M2Client.d.ts +180 -0
- package/dist-types/commands/CancelBatchJobExecutionCommand.d.ts +35 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +36 -0
- package/dist-types/commands/CreateDataSetImportTaskCommand.d.ts +35 -0
- package/dist-types/commands/CreateDeploymentCommand.d.ts +35 -0
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +35 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +35 -0
- package/dist-types/commands/DeleteApplicationFromEnvironmentCommand.d.ts +38 -0
- package/dist-types/commands/DeleteEnvironmentCommand.d.ts +36 -0
- package/dist-types/commands/GetApplicationCommand.d.ts +35 -0
- package/dist-types/commands/GetApplicationVersionCommand.d.ts +35 -0
- package/dist-types/commands/GetBatchJobExecutionCommand.d.ts +35 -0
- package/dist-types/commands/GetDataSetDetailsCommand.d.ts +35 -0
- package/dist-types/commands/GetDataSetImportTaskCommand.d.ts +35 -0
- package/dist-types/commands/GetDeploymentCommand.d.ts +35 -0
- package/dist-types/commands/GetEnvironmentCommand.d.ts +35 -0
- package/dist-types/commands/ListApplicationVersionsCommand.d.ts +35 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +37 -0
- package/dist-types/commands/ListBatchJobDefinitionsCommand.d.ts +37 -0
- package/dist-types/commands/ListBatchJobExecutionsCommand.d.ts +36 -0
- package/dist-types/commands/ListDataSetImportHistoryCommand.d.ts +35 -0
- package/dist-types/commands/ListDataSetsCommand.d.ts +37 -0
- package/dist-types/commands/ListDeploymentsCommand.d.ts +37 -0
- package/dist-types/commands/ListEngineVersionsCommand.d.ts +35 -0
- package/dist-types/commands/ListEnvironmentsCommand.d.ts +35 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
- package/dist-types/commands/StartApplicationCommand.d.ts +35 -0
- package/dist-types/commands/StartBatchJobCommand.d.ts +36 -0
- package/dist-types/commands/StopApplicationCommand.d.ts +35 -0
- package/dist-types/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +35 -0
- package/dist-types/commands/UpdateEnvironmentCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +32 -0
- package/dist-types/endpoints.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/M2ServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +2682 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListApplicationVersionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListBatchJobDefinitionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListBatchJobExecutionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListDataSetImportHistoryPaginator.d.ts +4 -0
- package/dist-types/pagination/ListDataSetsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListDeploymentsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListEngineVersionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListEnvironmentsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +10 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +98 -0
- package/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/dist-types/runtimeConfig.d.ts +40 -0
- package/dist-types/runtimeConfig.native.d.ts +39 -0
- package/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/dist-types/ts3.4/M2.d.ts +165 -0
- package/dist-types/ts3.4/M2Client.d.ts +105 -0
- package/dist-types/ts3.4/commands/CancelBatchJobExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateDataSetImportTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateDeploymentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateEnvironmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationFromEnvironmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteEnvironmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetApplicationVersionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBatchJobExecutionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDataSetDetailsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDataSetImportTaskCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDeploymentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetEnvironmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListApplicationVersionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBatchJobDefinitionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBatchJobExecutionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDataSetImportHistoryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDataSetsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListDeploymentsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEngineVersionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListEnvironmentsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartBatchJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateEnvironmentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +32 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/M2ServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1609 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListApplicationVersionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListBatchJobDefinitionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListBatchJobExecutionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDataSetImportHistoryPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDataSetsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListDeploymentsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListEngineVersionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +98 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +96 -0
package/dist-cjs/M2.js
ADDED
|
@@ -0,0 +1,487 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.M2 = void 0;
|
|
4
|
+
const CancelBatchJobExecutionCommand_1 = require("./commands/CancelBatchJobExecutionCommand");
|
|
5
|
+
const CreateApplicationCommand_1 = require("./commands/CreateApplicationCommand");
|
|
6
|
+
const CreateDataSetImportTaskCommand_1 = require("./commands/CreateDataSetImportTaskCommand");
|
|
7
|
+
const CreateDeploymentCommand_1 = require("./commands/CreateDeploymentCommand");
|
|
8
|
+
const CreateEnvironmentCommand_1 = require("./commands/CreateEnvironmentCommand");
|
|
9
|
+
const DeleteApplicationCommand_1 = require("./commands/DeleteApplicationCommand");
|
|
10
|
+
const DeleteApplicationFromEnvironmentCommand_1 = require("./commands/DeleteApplicationFromEnvironmentCommand");
|
|
11
|
+
const DeleteEnvironmentCommand_1 = require("./commands/DeleteEnvironmentCommand");
|
|
12
|
+
const GetApplicationCommand_1 = require("./commands/GetApplicationCommand");
|
|
13
|
+
const GetApplicationVersionCommand_1 = require("./commands/GetApplicationVersionCommand");
|
|
14
|
+
const GetBatchJobExecutionCommand_1 = require("./commands/GetBatchJobExecutionCommand");
|
|
15
|
+
const GetDataSetDetailsCommand_1 = require("./commands/GetDataSetDetailsCommand");
|
|
16
|
+
const GetDataSetImportTaskCommand_1 = require("./commands/GetDataSetImportTaskCommand");
|
|
17
|
+
const GetDeploymentCommand_1 = require("./commands/GetDeploymentCommand");
|
|
18
|
+
const GetEnvironmentCommand_1 = require("./commands/GetEnvironmentCommand");
|
|
19
|
+
const ListApplicationsCommand_1 = require("./commands/ListApplicationsCommand");
|
|
20
|
+
const ListApplicationVersionsCommand_1 = require("./commands/ListApplicationVersionsCommand");
|
|
21
|
+
const ListBatchJobDefinitionsCommand_1 = require("./commands/ListBatchJobDefinitionsCommand");
|
|
22
|
+
const ListBatchJobExecutionsCommand_1 = require("./commands/ListBatchJobExecutionsCommand");
|
|
23
|
+
const ListDataSetImportHistoryCommand_1 = require("./commands/ListDataSetImportHistoryCommand");
|
|
24
|
+
const ListDataSetsCommand_1 = require("./commands/ListDataSetsCommand");
|
|
25
|
+
const ListDeploymentsCommand_1 = require("./commands/ListDeploymentsCommand");
|
|
26
|
+
const ListEngineVersionsCommand_1 = require("./commands/ListEngineVersionsCommand");
|
|
27
|
+
const ListEnvironmentsCommand_1 = require("./commands/ListEnvironmentsCommand");
|
|
28
|
+
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
29
|
+
const StartApplicationCommand_1 = require("./commands/StartApplicationCommand");
|
|
30
|
+
const StartBatchJobCommand_1 = require("./commands/StartBatchJobCommand");
|
|
31
|
+
const StopApplicationCommand_1 = require("./commands/StopApplicationCommand");
|
|
32
|
+
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
33
|
+
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
34
|
+
const UpdateApplicationCommand_1 = require("./commands/UpdateApplicationCommand");
|
|
35
|
+
const UpdateEnvironmentCommand_1 = require("./commands/UpdateEnvironmentCommand");
|
|
36
|
+
const M2Client_1 = require("./M2Client");
|
|
37
|
+
class M2 extends M2Client_1.M2Client {
|
|
38
|
+
cancelBatchJobExecution(args, optionsOrCb, cb) {
|
|
39
|
+
const command = new CancelBatchJobExecutionCommand_1.CancelBatchJobExecutionCommand(args);
|
|
40
|
+
if (typeof optionsOrCb === "function") {
|
|
41
|
+
this.send(command, optionsOrCb);
|
|
42
|
+
}
|
|
43
|
+
else if (typeof cb === "function") {
|
|
44
|
+
if (typeof optionsOrCb !== "object")
|
|
45
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
46
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
return this.send(command, optionsOrCb);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
createApplication(args, optionsOrCb, cb) {
|
|
53
|
+
const command = new CreateApplicationCommand_1.CreateApplicationCommand(args);
|
|
54
|
+
if (typeof optionsOrCb === "function") {
|
|
55
|
+
this.send(command, optionsOrCb);
|
|
56
|
+
}
|
|
57
|
+
else if (typeof cb === "function") {
|
|
58
|
+
if (typeof optionsOrCb !== "object")
|
|
59
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
60
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
61
|
+
}
|
|
62
|
+
else {
|
|
63
|
+
return this.send(command, optionsOrCb);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
createDataSetImportTask(args, optionsOrCb, cb) {
|
|
67
|
+
const command = new CreateDataSetImportTaskCommand_1.CreateDataSetImportTaskCommand(args);
|
|
68
|
+
if (typeof optionsOrCb === "function") {
|
|
69
|
+
this.send(command, optionsOrCb);
|
|
70
|
+
}
|
|
71
|
+
else if (typeof cb === "function") {
|
|
72
|
+
if (typeof optionsOrCb !== "object")
|
|
73
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
74
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
return this.send(command, optionsOrCb);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
createDeployment(args, optionsOrCb, cb) {
|
|
81
|
+
const command = new CreateDeploymentCommand_1.CreateDeploymentCommand(args);
|
|
82
|
+
if (typeof optionsOrCb === "function") {
|
|
83
|
+
this.send(command, optionsOrCb);
|
|
84
|
+
}
|
|
85
|
+
else if (typeof cb === "function") {
|
|
86
|
+
if (typeof optionsOrCb !== "object")
|
|
87
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
88
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
return this.send(command, optionsOrCb);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
createEnvironment(args, optionsOrCb, cb) {
|
|
95
|
+
const command = new CreateEnvironmentCommand_1.CreateEnvironmentCommand(args);
|
|
96
|
+
if (typeof optionsOrCb === "function") {
|
|
97
|
+
this.send(command, optionsOrCb);
|
|
98
|
+
}
|
|
99
|
+
else if (typeof cb === "function") {
|
|
100
|
+
if (typeof optionsOrCb !== "object")
|
|
101
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
102
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
return this.send(command, optionsOrCb);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
deleteApplication(args, optionsOrCb, cb) {
|
|
109
|
+
const command = new DeleteApplicationCommand_1.DeleteApplicationCommand(args);
|
|
110
|
+
if (typeof optionsOrCb === "function") {
|
|
111
|
+
this.send(command, optionsOrCb);
|
|
112
|
+
}
|
|
113
|
+
else if (typeof cb === "function") {
|
|
114
|
+
if (typeof optionsOrCb !== "object")
|
|
115
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
116
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
return this.send(command, optionsOrCb);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
deleteApplicationFromEnvironment(args, optionsOrCb, cb) {
|
|
123
|
+
const command = new DeleteApplicationFromEnvironmentCommand_1.DeleteApplicationFromEnvironmentCommand(args);
|
|
124
|
+
if (typeof optionsOrCb === "function") {
|
|
125
|
+
this.send(command, optionsOrCb);
|
|
126
|
+
}
|
|
127
|
+
else if (typeof cb === "function") {
|
|
128
|
+
if (typeof optionsOrCb !== "object")
|
|
129
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
130
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
return this.send(command, optionsOrCb);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
deleteEnvironment(args, optionsOrCb, cb) {
|
|
137
|
+
const command = new DeleteEnvironmentCommand_1.DeleteEnvironmentCommand(args);
|
|
138
|
+
if (typeof optionsOrCb === "function") {
|
|
139
|
+
this.send(command, optionsOrCb);
|
|
140
|
+
}
|
|
141
|
+
else if (typeof cb === "function") {
|
|
142
|
+
if (typeof optionsOrCb !== "object")
|
|
143
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
144
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
return this.send(command, optionsOrCb);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
getApplication(args, optionsOrCb, cb) {
|
|
151
|
+
const command = new GetApplicationCommand_1.GetApplicationCommand(args);
|
|
152
|
+
if (typeof optionsOrCb === "function") {
|
|
153
|
+
this.send(command, optionsOrCb);
|
|
154
|
+
}
|
|
155
|
+
else if (typeof cb === "function") {
|
|
156
|
+
if (typeof optionsOrCb !== "object")
|
|
157
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
158
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
return this.send(command, optionsOrCb);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
getApplicationVersion(args, optionsOrCb, cb) {
|
|
165
|
+
const command = new GetApplicationVersionCommand_1.GetApplicationVersionCommand(args);
|
|
166
|
+
if (typeof optionsOrCb === "function") {
|
|
167
|
+
this.send(command, optionsOrCb);
|
|
168
|
+
}
|
|
169
|
+
else if (typeof cb === "function") {
|
|
170
|
+
if (typeof optionsOrCb !== "object")
|
|
171
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
172
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
173
|
+
}
|
|
174
|
+
else {
|
|
175
|
+
return this.send(command, optionsOrCb);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
getBatchJobExecution(args, optionsOrCb, cb) {
|
|
179
|
+
const command = new GetBatchJobExecutionCommand_1.GetBatchJobExecutionCommand(args);
|
|
180
|
+
if (typeof optionsOrCb === "function") {
|
|
181
|
+
this.send(command, optionsOrCb);
|
|
182
|
+
}
|
|
183
|
+
else if (typeof cb === "function") {
|
|
184
|
+
if (typeof optionsOrCb !== "object")
|
|
185
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
186
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
187
|
+
}
|
|
188
|
+
else {
|
|
189
|
+
return this.send(command, optionsOrCb);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
getDataSetDetails(args, optionsOrCb, cb) {
|
|
193
|
+
const command = new GetDataSetDetailsCommand_1.GetDataSetDetailsCommand(args);
|
|
194
|
+
if (typeof optionsOrCb === "function") {
|
|
195
|
+
this.send(command, optionsOrCb);
|
|
196
|
+
}
|
|
197
|
+
else if (typeof cb === "function") {
|
|
198
|
+
if (typeof optionsOrCb !== "object")
|
|
199
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
200
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
return this.send(command, optionsOrCb);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
getDataSetImportTask(args, optionsOrCb, cb) {
|
|
207
|
+
const command = new GetDataSetImportTaskCommand_1.GetDataSetImportTaskCommand(args);
|
|
208
|
+
if (typeof optionsOrCb === "function") {
|
|
209
|
+
this.send(command, optionsOrCb);
|
|
210
|
+
}
|
|
211
|
+
else if (typeof cb === "function") {
|
|
212
|
+
if (typeof optionsOrCb !== "object")
|
|
213
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
214
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
return this.send(command, optionsOrCb);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
getDeployment(args, optionsOrCb, cb) {
|
|
221
|
+
const command = new GetDeploymentCommand_1.GetDeploymentCommand(args);
|
|
222
|
+
if (typeof optionsOrCb === "function") {
|
|
223
|
+
this.send(command, optionsOrCb);
|
|
224
|
+
}
|
|
225
|
+
else if (typeof cb === "function") {
|
|
226
|
+
if (typeof optionsOrCb !== "object")
|
|
227
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
228
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
return this.send(command, optionsOrCb);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
getEnvironment(args, optionsOrCb, cb) {
|
|
235
|
+
const command = new GetEnvironmentCommand_1.GetEnvironmentCommand(args);
|
|
236
|
+
if (typeof optionsOrCb === "function") {
|
|
237
|
+
this.send(command, optionsOrCb);
|
|
238
|
+
}
|
|
239
|
+
else if (typeof cb === "function") {
|
|
240
|
+
if (typeof optionsOrCb !== "object")
|
|
241
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
242
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
return this.send(command, optionsOrCb);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
listApplications(args, optionsOrCb, cb) {
|
|
249
|
+
const command = new ListApplicationsCommand_1.ListApplicationsCommand(args);
|
|
250
|
+
if (typeof optionsOrCb === "function") {
|
|
251
|
+
this.send(command, optionsOrCb);
|
|
252
|
+
}
|
|
253
|
+
else if (typeof cb === "function") {
|
|
254
|
+
if (typeof optionsOrCb !== "object")
|
|
255
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
256
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
257
|
+
}
|
|
258
|
+
else {
|
|
259
|
+
return this.send(command, optionsOrCb);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
listApplicationVersions(args, optionsOrCb, cb) {
|
|
263
|
+
const command = new ListApplicationVersionsCommand_1.ListApplicationVersionsCommand(args);
|
|
264
|
+
if (typeof optionsOrCb === "function") {
|
|
265
|
+
this.send(command, optionsOrCb);
|
|
266
|
+
}
|
|
267
|
+
else if (typeof cb === "function") {
|
|
268
|
+
if (typeof optionsOrCb !== "object")
|
|
269
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
270
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
return this.send(command, optionsOrCb);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
listBatchJobDefinitions(args, optionsOrCb, cb) {
|
|
277
|
+
const command = new ListBatchJobDefinitionsCommand_1.ListBatchJobDefinitionsCommand(args);
|
|
278
|
+
if (typeof optionsOrCb === "function") {
|
|
279
|
+
this.send(command, optionsOrCb);
|
|
280
|
+
}
|
|
281
|
+
else if (typeof cb === "function") {
|
|
282
|
+
if (typeof optionsOrCb !== "object")
|
|
283
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
284
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
285
|
+
}
|
|
286
|
+
else {
|
|
287
|
+
return this.send(command, optionsOrCb);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
listBatchJobExecutions(args, optionsOrCb, cb) {
|
|
291
|
+
const command = new ListBatchJobExecutionsCommand_1.ListBatchJobExecutionsCommand(args);
|
|
292
|
+
if (typeof optionsOrCb === "function") {
|
|
293
|
+
this.send(command, optionsOrCb);
|
|
294
|
+
}
|
|
295
|
+
else if (typeof cb === "function") {
|
|
296
|
+
if (typeof optionsOrCb !== "object")
|
|
297
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
298
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
return this.send(command, optionsOrCb);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
listDataSetImportHistory(args, optionsOrCb, cb) {
|
|
305
|
+
const command = new ListDataSetImportHistoryCommand_1.ListDataSetImportHistoryCommand(args);
|
|
306
|
+
if (typeof optionsOrCb === "function") {
|
|
307
|
+
this.send(command, optionsOrCb);
|
|
308
|
+
}
|
|
309
|
+
else if (typeof cb === "function") {
|
|
310
|
+
if (typeof optionsOrCb !== "object")
|
|
311
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
312
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
313
|
+
}
|
|
314
|
+
else {
|
|
315
|
+
return this.send(command, optionsOrCb);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
listDataSets(args, optionsOrCb, cb) {
|
|
319
|
+
const command = new ListDataSetsCommand_1.ListDataSetsCommand(args);
|
|
320
|
+
if (typeof optionsOrCb === "function") {
|
|
321
|
+
this.send(command, optionsOrCb);
|
|
322
|
+
}
|
|
323
|
+
else if (typeof cb === "function") {
|
|
324
|
+
if (typeof optionsOrCb !== "object")
|
|
325
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
326
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
327
|
+
}
|
|
328
|
+
else {
|
|
329
|
+
return this.send(command, optionsOrCb);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
listDeployments(args, optionsOrCb, cb) {
|
|
333
|
+
const command = new ListDeploymentsCommand_1.ListDeploymentsCommand(args);
|
|
334
|
+
if (typeof optionsOrCb === "function") {
|
|
335
|
+
this.send(command, optionsOrCb);
|
|
336
|
+
}
|
|
337
|
+
else if (typeof cb === "function") {
|
|
338
|
+
if (typeof optionsOrCb !== "object")
|
|
339
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
340
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
return this.send(command, optionsOrCb);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
listEngineVersions(args, optionsOrCb, cb) {
|
|
347
|
+
const command = new ListEngineVersionsCommand_1.ListEngineVersionsCommand(args);
|
|
348
|
+
if (typeof optionsOrCb === "function") {
|
|
349
|
+
this.send(command, optionsOrCb);
|
|
350
|
+
}
|
|
351
|
+
else if (typeof cb === "function") {
|
|
352
|
+
if (typeof optionsOrCb !== "object")
|
|
353
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
354
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
return this.send(command, optionsOrCb);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
listEnvironments(args, optionsOrCb, cb) {
|
|
361
|
+
const command = new ListEnvironmentsCommand_1.ListEnvironmentsCommand(args);
|
|
362
|
+
if (typeof optionsOrCb === "function") {
|
|
363
|
+
this.send(command, optionsOrCb);
|
|
364
|
+
}
|
|
365
|
+
else if (typeof cb === "function") {
|
|
366
|
+
if (typeof optionsOrCb !== "object")
|
|
367
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
368
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
369
|
+
}
|
|
370
|
+
else {
|
|
371
|
+
return this.send(command, optionsOrCb);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
listTagsForResource(args, optionsOrCb, cb) {
|
|
375
|
+
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
376
|
+
if (typeof optionsOrCb === "function") {
|
|
377
|
+
this.send(command, optionsOrCb);
|
|
378
|
+
}
|
|
379
|
+
else if (typeof cb === "function") {
|
|
380
|
+
if (typeof optionsOrCb !== "object")
|
|
381
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
382
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
return this.send(command, optionsOrCb);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
startApplication(args, optionsOrCb, cb) {
|
|
389
|
+
const command = new StartApplicationCommand_1.StartApplicationCommand(args);
|
|
390
|
+
if (typeof optionsOrCb === "function") {
|
|
391
|
+
this.send(command, optionsOrCb);
|
|
392
|
+
}
|
|
393
|
+
else if (typeof cb === "function") {
|
|
394
|
+
if (typeof optionsOrCb !== "object")
|
|
395
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
396
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
return this.send(command, optionsOrCb);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
startBatchJob(args, optionsOrCb, cb) {
|
|
403
|
+
const command = new StartBatchJobCommand_1.StartBatchJobCommand(args);
|
|
404
|
+
if (typeof optionsOrCb === "function") {
|
|
405
|
+
this.send(command, optionsOrCb);
|
|
406
|
+
}
|
|
407
|
+
else if (typeof cb === "function") {
|
|
408
|
+
if (typeof optionsOrCb !== "object")
|
|
409
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
410
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
return this.send(command, optionsOrCb);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
stopApplication(args, optionsOrCb, cb) {
|
|
417
|
+
const command = new StopApplicationCommand_1.StopApplicationCommand(args);
|
|
418
|
+
if (typeof optionsOrCb === "function") {
|
|
419
|
+
this.send(command, optionsOrCb);
|
|
420
|
+
}
|
|
421
|
+
else if (typeof cb === "function") {
|
|
422
|
+
if (typeof optionsOrCb !== "object")
|
|
423
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
424
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
return this.send(command, optionsOrCb);
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
tagResource(args, optionsOrCb, cb) {
|
|
431
|
+
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
432
|
+
if (typeof optionsOrCb === "function") {
|
|
433
|
+
this.send(command, optionsOrCb);
|
|
434
|
+
}
|
|
435
|
+
else if (typeof cb === "function") {
|
|
436
|
+
if (typeof optionsOrCb !== "object")
|
|
437
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
438
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
439
|
+
}
|
|
440
|
+
else {
|
|
441
|
+
return this.send(command, optionsOrCb);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
untagResource(args, optionsOrCb, cb) {
|
|
445
|
+
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
446
|
+
if (typeof optionsOrCb === "function") {
|
|
447
|
+
this.send(command, optionsOrCb);
|
|
448
|
+
}
|
|
449
|
+
else if (typeof cb === "function") {
|
|
450
|
+
if (typeof optionsOrCb !== "object")
|
|
451
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
452
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
return this.send(command, optionsOrCb);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
updateApplication(args, optionsOrCb, cb) {
|
|
459
|
+
const command = new UpdateApplicationCommand_1.UpdateApplicationCommand(args);
|
|
460
|
+
if (typeof optionsOrCb === "function") {
|
|
461
|
+
this.send(command, optionsOrCb);
|
|
462
|
+
}
|
|
463
|
+
else if (typeof cb === "function") {
|
|
464
|
+
if (typeof optionsOrCb !== "object")
|
|
465
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
466
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
467
|
+
}
|
|
468
|
+
else {
|
|
469
|
+
return this.send(command, optionsOrCb);
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
updateEnvironment(args, optionsOrCb, cb) {
|
|
473
|
+
const command = new UpdateEnvironmentCommand_1.UpdateEnvironmentCommand(args);
|
|
474
|
+
if (typeof optionsOrCb === "function") {
|
|
475
|
+
this.send(command, optionsOrCb);
|
|
476
|
+
}
|
|
477
|
+
else if (typeof cb === "function") {
|
|
478
|
+
if (typeof optionsOrCb !== "object")
|
|
479
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
480
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
return this.send(command, optionsOrCb);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
exports.M2 = M2;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.M2Client = void 0;
|
|
4
|
+
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
|
+
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
6
|
+
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
7
|
+
const middleware_logger_1 = require("@aws-sdk/middleware-logger");
|
|
8
|
+
const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection");
|
|
9
|
+
const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
10
|
+
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
11
|
+
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
12
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
13
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
14
|
+
class M2Client extends smithy_client_1.Client {
|
|
15
|
+
constructor(configuration) {
|
|
16
|
+
const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
|
|
17
|
+
const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
|
|
18
|
+
const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
|
|
19
|
+
const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
|
|
20
|
+
const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
|
|
21
|
+
const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
|
|
22
|
+
const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
|
|
23
|
+
super(_config_6);
|
|
24
|
+
this.config = _config_6;
|
|
25
|
+
this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
|
|
26
|
+
this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
|
|
27
|
+
this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
|
|
28
|
+
this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
|
|
29
|
+
this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config));
|
|
30
|
+
this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
|
|
31
|
+
this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
|
|
32
|
+
}
|
|
33
|
+
destroy() {
|
|
34
|
+
super.destroy();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.M2Client = M2Client;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancelBatchJobExecutionCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CancelBatchJobExecutionCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "M2Client";
|
|
18
|
+
const commandName = "CancelBatchJobExecutionCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CancelBatchJobExecutionRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CancelBatchJobExecutionResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CancelBatchJobExecutionCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CancelBatchJobExecutionCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CancelBatchJobExecutionCommand = CancelBatchJobExecutionCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateApplicationCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CreateApplicationCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "M2Client";
|
|
18
|
+
const commandName = "CreateApplicationCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateApplicationRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateApplicationResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateApplicationCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateApplicationCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateApplicationCommand = CreateApplicationCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateDataSetImportTaskCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CreateDataSetImportTaskCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "M2Client";
|
|
18
|
+
const commandName = "CreateDataSetImportTaskCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateDataSetImportTaskRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateDataSetImportTaskResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateDataSetImportTaskCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateDataSetImportTaskCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateDataSetImportTaskCommand = CreateDataSetImportTaskCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateDeploymentCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CreateDeploymentCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "M2Client";
|
|
18
|
+
const commandName = "CreateDeploymentCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateDeploymentRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateDeploymentResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateDeploymentCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateDeploymentCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateDeploymentCommand = CreateDeploymentCommand;
|