@aws-sdk/client-mwaa 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/MWAA.js +1 -2
- package/{dist/cjs → dist-cjs}/MWAAClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/CreateCliTokenCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateEnvironmentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/CreateWebLoginTokenCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DeleteEnvironmentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetEnvironmentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListEnvironmentsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/PublishMetricsCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/UpdateEnvironmentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListEnvironmentsPaginator.js +1 -2
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +1 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/MWAA.js +2 -7
- package/{dist/es → dist-es}/MWAAClient.js +2 -12
- package/{dist/es → dist-es}/commands/CreateCliTokenCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateEnvironmentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/CreateWebLoginTokenCommand.js +4 -30
- package/{dist/es → dist-es}/commands/DeleteEnvironmentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/GetEnvironmentCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListEnvironmentsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/PublishMetricsCommand.js +4 -30
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -30
- package/{dist/es → dist-es}/commands/UpdateEnvironmentCommand.js +4 -30
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -115
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListEnvironmentsPaginator.js +17 -30
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +219 -225
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/MWAA.d.ts +2 -2
- package/{dist/types → dist-types}/MWAAClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/CreateCliTokenCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateEnvironmentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateWebLoginTokenCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteEnvironmentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetEnvironmentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListEnvironmentsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PublishMetricsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UpdateEnvironmentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListEnvironmentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/MWAA.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/MWAAClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/CreateCliTokenCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateEnvironmentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/CreateWebLoginTokenCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DeleteEnvironmentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetEnvironmentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListEnvironmentsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/PublishMetricsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/UpdateEnvironmentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListEnvironmentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/MWAA.ts +0 -405
- package/MWAAClient.ts +0 -275
- package/commands/CreateCliTokenCommand.ts +0 -94
- package/commands/CreateEnvironmentCommand.ts +0 -94
- package/commands/CreateWebLoginTokenCommand.ts +0 -94
- package/commands/DeleteEnvironmentCommand.ts +0 -94
- package/commands/GetEnvironmentCommand.ts +0 -94
- package/commands/ListEnvironmentsCommand.ts +0 -94
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/PublishMetricsCommand.ts +0 -94
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/commands/UpdateEnvironmentCommand.ts +0 -94
- package/dist/cjs/MWAA.js.map +0 -1
- package/dist/cjs/MWAAClient.js.map +0 -1
- package/dist/cjs/commands/CreateCliTokenCommand.js.map +0 -1
- package/dist/cjs/commands/CreateEnvironmentCommand.js.map +0 -1
- package/dist/cjs/commands/CreateWebLoginTokenCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteEnvironmentCommand.js.map +0 -1
- package/dist/cjs/commands/GetEnvironmentCommand.js.map +0 -1
- package/dist/cjs/commands/ListEnvironmentsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/PublishMetricsCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateEnvironmentCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListEnvironmentsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/MWAA.js.map +0 -1
- package/dist/es/MWAAClient.js.map +0 -1
- package/dist/es/commands/CreateCliTokenCommand.js.map +0 -1
- package/dist/es/commands/CreateEnvironmentCommand.js.map +0 -1
- package/dist/es/commands/CreateWebLoginTokenCommand.js.map +0 -1
- package/dist/es/commands/DeleteEnvironmentCommand.js.map +0 -1
- package/dist/es/commands/GetEnvironmentCommand.js.map +0 -1
- package/dist/es/commands/ListEnvironmentsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/PublishMetricsCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateEnvironmentCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -17
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListEnvironmentsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1206
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListEnvironmentsPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -1771
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
|
@@ -5,7 +5,7 @@ export var serializeAws_restJson1CreateCliTokenCommand = function (input, contex
|
|
|
5
5
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
6
6
|
return __generator(this, function (_c) {
|
|
7
7
|
switch (_c.label) {
|
|
8
|
-
case 0: return [4
|
|
8
|
+
case 0: return [4, context.endpoint()];
|
|
9
9
|
case 1:
|
|
10
10
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
11
11
|
headers = {};
|
|
@@ -20,7 +20,7 @@ export var serializeAws_restJson1CreateCliTokenCommand = function (input, contex
|
|
|
20
20
|
else {
|
|
21
21
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
22
22
|
}
|
|
23
|
-
return [4
|
|
23
|
+
return [4, context.endpoint()];
|
|
24
24
|
case 2:
|
|
25
25
|
resolvedHostname = (_c.sent()).hostname;
|
|
26
26
|
if (context.disableHostPrefix !== true) {
|
|
@@ -29,7 +29,7 @@ export var serializeAws_restJson1CreateCliTokenCommand = function (input, contex
|
|
|
29
29
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
return [2
|
|
32
|
+
return [2, new __HttpRequest({
|
|
33
33
|
protocol: protocol,
|
|
34
34
|
hostname: resolvedHostname,
|
|
35
35
|
port: port,
|
|
@@ -45,7 +45,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
45
45
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
46
46
|
return __generator(this, function (_c) {
|
|
47
47
|
switch (_c.label) {
|
|
48
|
-
case 0: return [4
|
|
48
|
+
case 0: return [4, context.endpoint()];
|
|
49
49
|
case 1:
|
|
50
50
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
51
51
|
headers = {
|
|
@@ -83,7 +83,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
83
83
|
input.WeeklyMaintenanceWindowStart !== null && {
|
|
84
84
|
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
85
85
|
})));
|
|
86
|
-
return [4
|
|
86
|
+
return [4, context.endpoint()];
|
|
87
87
|
case 2:
|
|
88
88
|
resolvedHostname = (_c.sent()).hostname;
|
|
89
89
|
if (context.disableHostPrefix !== true) {
|
|
@@ -92,7 +92,7 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
92
92
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
return [2
|
|
95
|
+
return [2, new __HttpRequest({
|
|
96
96
|
protocol: protocol,
|
|
97
97
|
hostname: resolvedHostname,
|
|
98
98
|
port: port,
|
|
@@ -108,7 +108,7 @@ export var serializeAws_restJson1CreateWebLoginTokenCommand = function (input, c
|
|
|
108
108
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
109
109
|
return __generator(this, function (_c) {
|
|
110
110
|
switch (_c.label) {
|
|
111
|
-
case 0: return [4
|
|
111
|
+
case 0: return [4, context.endpoint()];
|
|
112
112
|
case 1:
|
|
113
113
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
114
114
|
headers = {};
|
|
@@ -123,7 +123,7 @@ export var serializeAws_restJson1CreateWebLoginTokenCommand = function (input, c
|
|
|
123
123
|
else {
|
|
124
124
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
125
125
|
}
|
|
126
|
-
return [4
|
|
126
|
+
return [4, context.endpoint()];
|
|
127
127
|
case 2:
|
|
128
128
|
resolvedHostname = (_c.sent()).hostname;
|
|
129
129
|
if (context.disableHostPrefix !== true) {
|
|
@@ -132,7 +132,7 @@ export var serializeAws_restJson1CreateWebLoginTokenCommand = function (input, c
|
|
|
132
132
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
|
-
return [2
|
|
135
|
+
return [2, new __HttpRequest({
|
|
136
136
|
protocol: protocol,
|
|
137
137
|
hostname: resolvedHostname,
|
|
138
138
|
port: port,
|
|
@@ -148,7 +148,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
148
148
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
149
149
|
return __generator(this, function (_c) {
|
|
150
150
|
switch (_c.label) {
|
|
151
|
-
case 0: return [4
|
|
151
|
+
case 0: return [4, context.endpoint()];
|
|
152
152
|
case 1:
|
|
153
153
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
154
154
|
headers = {};
|
|
@@ -163,7 +163,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
163
163
|
else {
|
|
164
164
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
165
165
|
}
|
|
166
|
-
return [4
|
|
166
|
+
return [4, context.endpoint()];
|
|
167
167
|
case 2:
|
|
168
168
|
resolvedHostname = (_c.sent()).hostname;
|
|
169
169
|
if (context.disableHostPrefix !== true) {
|
|
@@ -172,7 +172,7 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
172
172
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
return [2
|
|
175
|
+
return [2, new __HttpRequest({
|
|
176
176
|
protocol: protocol,
|
|
177
177
|
hostname: resolvedHostname,
|
|
178
178
|
port: port,
|
|
@@ -188,7 +188,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
188
188
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
189
189
|
return __generator(this, function (_c) {
|
|
190
190
|
switch (_c.label) {
|
|
191
|
-
case 0: return [4
|
|
191
|
+
case 0: return [4, context.endpoint()];
|
|
192
192
|
case 1:
|
|
193
193
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
194
194
|
headers = {};
|
|
@@ -203,7 +203,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
203
203
|
else {
|
|
204
204
|
throw new Error("No value provided for input HTTP label: Name.");
|
|
205
205
|
}
|
|
206
|
-
return [4
|
|
206
|
+
return [4, context.endpoint()];
|
|
207
207
|
case 2:
|
|
208
208
|
resolvedHostname = (_c.sent()).hostname;
|
|
209
209
|
if (context.disableHostPrefix !== true) {
|
|
@@ -212,7 +212,7 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
212
212
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
return [2
|
|
215
|
+
return [2, new __HttpRequest({
|
|
216
216
|
protocol: protocol,
|
|
217
217
|
hostname: resolvedHostname,
|
|
218
218
|
port: port,
|
|
@@ -228,13 +228,13 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
|
|
|
228
228
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body, resolvedHostname;
|
|
229
229
|
return __generator(this, function (_c) {
|
|
230
230
|
switch (_c.label) {
|
|
231
|
-
case 0: return [4
|
|
231
|
+
case 0: return [4, context.endpoint()];
|
|
232
232
|
case 1:
|
|
233
233
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
234
234
|
headers = {};
|
|
235
235
|
resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/environments";
|
|
236
236
|
query = __assign(__assign({}, (input.NextToken !== undefined && { NextToken: input.NextToken })), (input.MaxResults !== undefined && { MaxResults: input.MaxResults.toString() }));
|
|
237
|
-
return [4
|
|
237
|
+
return [4, context.endpoint()];
|
|
238
238
|
case 2:
|
|
239
239
|
resolvedHostname = (_c.sent()).hostname;
|
|
240
240
|
if (context.disableHostPrefix !== true) {
|
|
@@ -243,7 +243,7 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
|
|
|
243
243
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
return [2
|
|
246
|
+
return [2, new __HttpRequest({
|
|
247
247
|
protocol: protocol,
|
|
248
248
|
hostname: resolvedHostname,
|
|
249
249
|
port: port,
|
|
@@ -260,7 +260,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
260
260
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
261
261
|
return __generator(this, function (_c) {
|
|
262
262
|
switch (_c.label) {
|
|
263
|
-
case 0: return [4
|
|
263
|
+
case 0: return [4, context.endpoint()];
|
|
264
264
|
case 1:
|
|
265
265
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
266
266
|
headers = {};
|
|
@@ -275,7 +275,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
275
275
|
else {
|
|
276
276
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
277
277
|
}
|
|
278
|
-
return [4
|
|
278
|
+
return [4, context.endpoint()];
|
|
279
279
|
case 2:
|
|
280
280
|
resolvedHostname = (_c.sent()).hostname;
|
|
281
281
|
if (context.disableHostPrefix !== true) {
|
|
@@ -284,7 +284,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
284
284
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
return [2
|
|
287
|
+
return [2, new __HttpRequest({
|
|
288
288
|
protocol: protocol,
|
|
289
289
|
hostname: resolvedHostname,
|
|
290
290
|
port: port,
|
|
@@ -300,7 +300,7 @@ export var serializeAws_restJson1PublishMetricsCommand = function (input, contex
|
|
|
300
300
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
301
301
|
return __generator(this, function (_c) {
|
|
302
302
|
switch (_c.label) {
|
|
303
|
-
case 0: return [4
|
|
303
|
+
case 0: return [4, context.endpoint()];
|
|
304
304
|
case 1:
|
|
305
305
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
306
306
|
headers = {
|
|
@@ -319,7 +319,7 @@ export var serializeAws_restJson1PublishMetricsCommand = function (input, contex
|
|
|
319
319
|
}
|
|
320
320
|
body = JSON.stringify(__assign({}, (input.MetricData !== undefined &&
|
|
321
321
|
input.MetricData !== null && { MetricData: serializeAws_restJson1MetricData(input.MetricData, context) })));
|
|
322
|
-
return [4
|
|
322
|
+
return [4, context.endpoint()];
|
|
323
323
|
case 2:
|
|
324
324
|
resolvedHostname = (_c.sent()).hostname;
|
|
325
325
|
if (context.disableHostPrefix !== true) {
|
|
@@ -328,7 +328,7 @@ export var serializeAws_restJson1PublishMetricsCommand = function (input, contex
|
|
|
328
328
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
return [2
|
|
331
|
+
return [2, new __HttpRequest({
|
|
332
332
|
protocol: protocol,
|
|
333
333
|
hostname: resolvedHostname,
|
|
334
334
|
port: port,
|
|
@@ -344,7 +344,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
344
344
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
345
345
|
return __generator(this, function (_c) {
|
|
346
346
|
switch (_c.label) {
|
|
347
|
-
case 0: return [4
|
|
347
|
+
case 0: return [4, context.endpoint()];
|
|
348
348
|
case 1:
|
|
349
349
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
350
350
|
headers = {
|
|
@@ -362,7 +362,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
362
362
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
363
363
|
}
|
|
364
364
|
body = JSON.stringify(__assign({}, (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
365
|
-
return [4
|
|
365
|
+
return [4, context.endpoint()];
|
|
366
366
|
case 2:
|
|
367
367
|
resolvedHostname = (_c.sent()).hostname;
|
|
368
368
|
if (context.disableHostPrefix !== true) {
|
|
@@ -371,7 +371,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
371
371
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
return [2
|
|
374
|
+
return [2, new __HttpRequest({
|
|
375
375
|
protocol: protocol,
|
|
376
376
|
hostname: resolvedHostname,
|
|
377
377
|
port: port,
|
|
@@ -387,7 +387,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
387
387
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body, resolvedHostname;
|
|
388
388
|
return __generator(this, function (_c) {
|
|
389
389
|
switch (_c.label) {
|
|
390
|
-
case 0: return [4
|
|
390
|
+
case 0: return [4, context.endpoint()];
|
|
391
391
|
case 1:
|
|
392
392
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
393
393
|
headers = {};
|
|
@@ -403,7 +403,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
403
403
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
404
404
|
}
|
|
405
405
|
query = __assign({}, (input.tagKeys !== undefined && { tagKeys: (input.tagKeys || []).map(function (_entry) { return _entry; }) }));
|
|
406
|
-
return [4
|
|
406
|
+
return [4, context.endpoint()];
|
|
407
407
|
case 2:
|
|
408
408
|
resolvedHostname = (_c.sent()).hostname;
|
|
409
409
|
if (context.disableHostPrefix !== true) {
|
|
@@ -412,7 +412,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
412
412
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
return [2
|
|
415
|
+
return [2, new __HttpRequest({
|
|
416
416
|
protocol: protocol,
|
|
417
417
|
hostname: resolvedHostname,
|
|
418
418
|
port: port,
|
|
@@ -429,7 +429,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
429
429
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body, resolvedHostname;
|
|
430
430
|
return __generator(this, function (_c) {
|
|
431
431
|
switch (_c.label) {
|
|
432
|
-
case 0: return [4
|
|
432
|
+
case 0: return [4, context.endpoint()];
|
|
433
433
|
case 1:
|
|
434
434
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
435
435
|
headers = {
|
|
@@ -467,7 +467,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
467
467
|
input.WeeklyMaintenanceWindowStart !== null && {
|
|
468
468
|
WeeklyMaintenanceWindowStart: input.WeeklyMaintenanceWindowStart,
|
|
469
469
|
})));
|
|
470
|
-
return [4
|
|
470
|
+
return [4, context.endpoint()];
|
|
471
471
|
case 2:
|
|
472
472
|
resolvedHostname = (_c.sent()).hostname;
|
|
473
473
|
if (context.disableHostPrefix !== true) {
|
|
@@ -476,7 +476,7 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
476
476
|
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
|
-
return [2
|
|
479
|
+
return [2, new __HttpRequest({
|
|
480
480
|
protocol: protocol,
|
|
481
481
|
hostname: resolvedHostname,
|
|
482
482
|
port: port,
|
|
@@ -494,7 +494,7 @@ export var deserializeAws_restJson1CreateCliTokenCommand = function (output, con
|
|
|
494
494
|
switch (_c.label) {
|
|
495
495
|
case 0:
|
|
496
496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
497
|
-
return [2
|
|
497
|
+
return [2, deserializeAws_restJson1CreateCliTokenCommandError(output, context)];
|
|
498
498
|
}
|
|
499
499
|
contents = {
|
|
500
500
|
$metadata: deserializeMetadata(output),
|
|
@@ -503,7 +503,7 @@ export var deserializeAws_restJson1CreateCliTokenCommand = function (output, con
|
|
|
503
503
|
};
|
|
504
504
|
_a = __expectNonNull;
|
|
505
505
|
_b = __expectObject;
|
|
506
|
-
return [4
|
|
506
|
+
return [4, parseBody(output.body, context)];
|
|
507
507
|
case 1:
|
|
508
508
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
509
509
|
if (data.CliToken !== undefined && data.CliToken !== null) {
|
|
@@ -512,7 +512,7 @@ export var deserializeAws_restJson1CreateCliTokenCommand = function (output, con
|
|
|
512
512
|
if (data.WebServerHostname !== undefined && data.WebServerHostname !== null) {
|
|
513
513
|
contents.WebServerHostname = __expectString(data.WebServerHostname);
|
|
514
514
|
}
|
|
515
|
-
return [2
|
|
515
|
+
return [2, Promise.resolve(contents)];
|
|
516
516
|
}
|
|
517
517
|
});
|
|
518
518
|
}); };
|
|
@@ -524,23 +524,23 @@ var deserializeAws_restJson1CreateCliTokenCommandError = function (output, conte
|
|
|
524
524
|
case 0:
|
|
525
525
|
_a = [__assign({}, output)];
|
|
526
526
|
_d = {};
|
|
527
|
-
return [4
|
|
527
|
+
return [4, parseBody(output.body, context)];
|
|
528
528
|
case 1:
|
|
529
529
|
parsedOutput = __assign.apply(void 0, _a.concat([(_d.body = _e.sent(), _d)]));
|
|
530
530
|
errorCode = "UnknownError";
|
|
531
531
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
532
532
|
_b = errorCode;
|
|
533
533
|
switch (_b) {
|
|
534
|
-
case "ResourceNotFoundException": return [3
|
|
535
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3
|
|
534
|
+
case "ResourceNotFoundException": return [3, 2];
|
|
535
|
+
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3, 2];
|
|
536
536
|
}
|
|
537
|
-
return [3
|
|
537
|
+
return [3, 4];
|
|
538
538
|
case 2:
|
|
539
539
|
_c = [{}];
|
|
540
|
-
return [4
|
|
540
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
541
541
|
case 3:
|
|
542
542
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_e.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
543
|
-
return [3
|
|
543
|
+
return [3, 5];
|
|
544
544
|
case 4:
|
|
545
545
|
parsedBody = parsedOutput.body;
|
|
546
546
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -550,7 +550,7 @@ var deserializeAws_restJson1CreateCliTokenCommandError = function (output, conte
|
|
|
550
550
|
message = response.message || response.Message || errorCode;
|
|
551
551
|
response.message = message;
|
|
552
552
|
delete response.Message;
|
|
553
|
-
return [2
|
|
553
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
554
554
|
}
|
|
555
555
|
});
|
|
556
556
|
}); };
|
|
@@ -560,7 +560,7 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
|
|
|
560
560
|
switch (_c.label) {
|
|
561
561
|
case 0:
|
|
562
562
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
563
|
-
return [2
|
|
563
|
+
return [2, deserializeAws_restJson1CreateEnvironmentCommandError(output, context)];
|
|
564
564
|
}
|
|
565
565
|
contents = {
|
|
566
566
|
$metadata: deserializeMetadata(output),
|
|
@@ -568,13 +568,13 @@ export var deserializeAws_restJson1CreateEnvironmentCommand = function (output,
|
|
|
568
568
|
};
|
|
569
569
|
_a = __expectNonNull;
|
|
570
570
|
_b = __expectObject;
|
|
571
|
-
return [4
|
|
571
|
+
return [4, parseBody(output.body, context)];
|
|
572
572
|
case 1:
|
|
573
573
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
574
574
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
575
575
|
contents.Arn = __expectString(data.Arn);
|
|
576
576
|
}
|
|
577
|
-
return [2
|
|
577
|
+
return [2, Promise.resolve(contents)];
|
|
578
578
|
}
|
|
579
579
|
});
|
|
580
580
|
}); };
|
|
@@ -586,31 +586,31 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
|
|
|
586
586
|
case 0:
|
|
587
587
|
_a = [__assign({}, output)];
|
|
588
588
|
_e = {};
|
|
589
|
-
return [4
|
|
589
|
+
return [4, parseBody(output.body, context)];
|
|
590
590
|
case 1:
|
|
591
591
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
592
592
|
errorCode = "UnknownError";
|
|
593
593
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
594
594
|
_b = errorCode;
|
|
595
595
|
switch (_b) {
|
|
596
|
-
case "InternalServerException": return [3
|
|
597
|
-
case "com.amazonaws.mwaa#InternalServerException": return [3
|
|
598
|
-
case "ValidationException": return [3
|
|
599
|
-
case "com.amazonaws.mwaa#ValidationException": return [3
|
|
596
|
+
case "InternalServerException": return [3, 2];
|
|
597
|
+
case "com.amazonaws.mwaa#InternalServerException": return [3, 2];
|
|
598
|
+
case "ValidationException": return [3, 4];
|
|
599
|
+
case "com.amazonaws.mwaa#ValidationException": return [3, 4];
|
|
600
600
|
}
|
|
601
|
-
return [3
|
|
601
|
+
return [3, 6];
|
|
602
602
|
case 2:
|
|
603
603
|
_c = [{}];
|
|
604
|
-
return [4
|
|
604
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
605
605
|
case 3:
|
|
606
606
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
607
|
-
return [3
|
|
607
|
+
return [3, 7];
|
|
608
608
|
case 4:
|
|
609
609
|
_d = [{}];
|
|
610
|
-
return [4
|
|
610
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
611
611
|
case 5:
|
|
612
612
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
613
|
-
return [3
|
|
613
|
+
return [3, 7];
|
|
614
614
|
case 6:
|
|
615
615
|
parsedBody = parsedOutput.body;
|
|
616
616
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -620,7 +620,7 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
|
|
|
620
620
|
message = response.message || response.Message || errorCode;
|
|
621
621
|
response.message = message;
|
|
622
622
|
delete response.Message;
|
|
623
|
-
return [2
|
|
623
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
624
624
|
}
|
|
625
625
|
});
|
|
626
626
|
}); };
|
|
@@ -630,7 +630,7 @@ export var deserializeAws_restJson1CreateWebLoginTokenCommand = function (output
|
|
|
630
630
|
switch (_c.label) {
|
|
631
631
|
case 0:
|
|
632
632
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
633
|
-
return [2
|
|
633
|
+
return [2, deserializeAws_restJson1CreateWebLoginTokenCommandError(output, context)];
|
|
634
634
|
}
|
|
635
635
|
contents = {
|
|
636
636
|
$metadata: deserializeMetadata(output),
|
|
@@ -639,7 +639,7 @@ export var deserializeAws_restJson1CreateWebLoginTokenCommand = function (output
|
|
|
639
639
|
};
|
|
640
640
|
_a = __expectNonNull;
|
|
641
641
|
_b = __expectObject;
|
|
642
|
-
return [4
|
|
642
|
+
return [4, parseBody(output.body, context)];
|
|
643
643
|
case 1:
|
|
644
644
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
645
645
|
if (data.WebServerHostname !== undefined && data.WebServerHostname !== null) {
|
|
@@ -648,7 +648,7 @@ export var deserializeAws_restJson1CreateWebLoginTokenCommand = function (output
|
|
|
648
648
|
if (data.WebToken !== undefined && data.WebToken !== null) {
|
|
649
649
|
contents.WebToken = __expectString(data.WebToken);
|
|
650
650
|
}
|
|
651
|
-
return [2
|
|
651
|
+
return [2, Promise.resolve(contents)];
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
654
|
}); };
|
|
@@ -660,47 +660,47 @@ var deserializeAws_restJson1CreateWebLoginTokenCommandError = function (output,
|
|
|
660
660
|
case 0:
|
|
661
661
|
_a = [__assign({}, output)];
|
|
662
662
|
_g = {};
|
|
663
|
-
return [4
|
|
663
|
+
return [4, parseBody(output.body, context)];
|
|
664
664
|
case 1:
|
|
665
665
|
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
666
666
|
errorCode = "UnknownError";
|
|
667
667
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
668
668
|
_b = errorCode;
|
|
669
669
|
switch (_b) {
|
|
670
|
-
case "AccessDeniedException": return [3
|
|
671
|
-
case "com.amazonaws.mwaa#AccessDeniedException": return [3
|
|
672
|
-
case "InternalServerException": return [3
|
|
673
|
-
case "com.amazonaws.mwaa#InternalServerException": return [3
|
|
674
|
-
case "ResourceNotFoundException": return [3
|
|
675
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3
|
|
676
|
-
case "ValidationException": return [3
|
|
677
|
-
case "com.amazonaws.mwaa#ValidationException": return [3
|
|
670
|
+
case "AccessDeniedException": return [3, 2];
|
|
671
|
+
case "com.amazonaws.mwaa#AccessDeniedException": return [3, 2];
|
|
672
|
+
case "InternalServerException": return [3, 4];
|
|
673
|
+
case "com.amazonaws.mwaa#InternalServerException": return [3, 4];
|
|
674
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
675
|
+
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3, 6];
|
|
676
|
+
case "ValidationException": return [3, 8];
|
|
677
|
+
case "com.amazonaws.mwaa#ValidationException": return [3, 8];
|
|
678
678
|
}
|
|
679
|
-
return [3
|
|
679
|
+
return [3, 10];
|
|
680
680
|
case 2:
|
|
681
681
|
_c = [{}];
|
|
682
|
-
return [4
|
|
682
|
+
return [4, deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
683
683
|
case 3:
|
|
684
684
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
685
|
-
return [3
|
|
685
|
+
return [3, 11];
|
|
686
686
|
case 4:
|
|
687
687
|
_d = [{}];
|
|
688
|
-
return [4
|
|
688
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
689
689
|
case 5:
|
|
690
690
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
691
|
-
return [3
|
|
691
|
+
return [3, 11];
|
|
692
692
|
case 6:
|
|
693
693
|
_e = [{}];
|
|
694
|
-
return [4
|
|
694
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
695
695
|
case 7:
|
|
696
696
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
697
|
-
return [3
|
|
697
|
+
return [3, 11];
|
|
698
698
|
case 8:
|
|
699
699
|
_f = [{}];
|
|
700
|
-
return [4
|
|
700
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
701
701
|
case 9:
|
|
702
702
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
703
|
-
return [3
|
|
703
|
+
return [3, 11];
|
|
704
704
|
case 10:
|
|
705
705
|
parsedBody = parsedOutput.body;
|
|
706
706
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -710,7 +710,7 @@ var deserializeAws_restJson1CreateWebLoginTokenCommandError = function (output,
|
|
|
710
710
|
message = response.message || response.Message || errorCode;
|
|
711
711
|
response.message = message;
|
|
712
712
|
delete response.Message;
|
|
713
|
-
return [2
|
|
713
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
714
714
|
}
|
|
715
715
|
});
|
|
716
716
|
}); };
|
|
@@ -720,15 +720,15 @@ export var deserializeAws_restJson1DeleteEnvironmentCommand = function (output,
|
|
|
720
720
|
switch (_a.label) {
|
|
721
721
|
case 0:
|
|
722
722
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
723
|
-
return [2
|
|
723
|
+
return [2, deserializeAws_restJson1DeleteEnvironmentCommandError(output, context)];
|
|
724
724
|
}
|
|
725
725
|
contents = {
|
|
726
726
|
$metadata: deserializeMetadata(output),
|
|
727
727
|
};
|
|
728
|
-
return [4
|
|
728
|
+
return [4, collectBody(output.body, context)];
|
|
729
729
|
case 1:
|
|
730
730
|
_a.sent();
|
|
731
|
-
return [2
|
|
731
|
+
return [2, Promise.resolve(contents)];
|
|
732
732
|
}
|
|
733
733
|
});
|
|
734
734
|
}); };
|
|
@@ -740,39 +740,39 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
|
|
|
740
740
|
case 0:
|
|
741
741
|
_a = [__assign({}, output)];
|
|
742
742
|
_f = {};
|
|
743
|
-
return [4
|
|
743
|
+
return [4, parseBody(output.body, context)];
|
|
744
744
|
case 1:
|
|
745
745
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
746
746
|
errorCode = "UnknownError";
|
|
747
747
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
748
748
|
_b = errorCode;
|
|
749
749
|
switch (_b) {
|
|
750
|
-
case "InternalServerException": return [3
|
|
751
|
-
case "com.amazonaws.mwaa#InternalServerException": return [3
|
|
752
|
-
case "ResourceNotFoundException": return [3
|
|
753
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3
|
|
754
|
-
case "ValidationException": return [3
|
|
755
|
-
case "com.amazonaws.mwaa#ValidationException": return [3
|
|
750
|
+
case "InternalServerException": return [3, 2];
|
|
751
|
+
case "com.amazonaws.mwaa#InternalServerException": return [3, 2];
|
|
752
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
753
|
+
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3, 4];
|
|
754
|
+
case "ValidationException": return [3, 6];
|
|
755
|
+
case "com.amazonaws.mwaa#ValidationException": return [3, 6];
|
|
756
756
|
}
|
|
757
|
-
return [3
|
|
757
|
+
return [3, 8];
|
|
758
758
|
case 2:
|
|
759
759
|
_c = [{}];
|
|
760
|
-
return [4
|
|
760
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
761
761
|
case 3:
|
|
762
762
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
763
|
-
return [3
|
|
763
|
+
return [3, 9];
|
|
764
764
|
case 4:
|
|
765
765
|
_d = [{}];
|
|
766
|
-
return [4
|
|
766
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
767
767
|
case 5:
|
|
768
768
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
769
|
-
return [3
|
|
769
|
+
return [3, 9];
|
|
770
770
|
case 6:
|
|
771
771
|
_e = [{}];
|
|
772
|
-
return [4
|
|
772
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
773
773
|
case 7:
|
|
774
774
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
775
|
-
return [3
|
|
775
|
+
return [3, 9];
|
|
776
776
|
case 8:
|
|
777
777
|
parsedBody = parsedOutput.body;
|
|
778
778
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -782,7 +782,7 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
|
|
|
782
782
|
message = response.message || response.Message || errorCode;
|
|
783
783
|
response.message = message;
|
|
784
784
|
delete response.Message;
|
|
785
|
-
return [2
|
|
785
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
786
786
|
}
|
|
787
787
|
});
|
|
788
788
|
}); };
|
|
@@ -792,7 +792,7 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
|
|
|
792
792
|
switch (_c.label) {
|
|
793
793
|
case 0:
|
|
794
794
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
795
|
-
return [2
|
|
795
|
+
return [2, deserializeAws_restJson1GetEnvironmentCommandError(output, context)];
|
|
796
796
|
}
|
|
797
797
|
contents = {
|
|
798
798
|
$metadata: deserializeMetadata(output),
|
|
@@ -800,13 +800,13 @@ export var deserializeAws_restJson1GetEnvironmentCommand = function (output, con
|
|
|
800
800
|
};
|
|
801
801
|
_a = __expectNonNull;
|
|
802
802
|
_b = __expectObject;
|
|
803
|
-
return [4
|
|
803
|
+
return [4, parseBody(output.body, context)];
|
|
804
804
|
case 1:
|
|
805
805
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
806
806
|
if (data.Environment !== undefined && data.Environment !== null) {
|
|
807
807
|
contents.Environment = deserializeAws_restJson1Environment(data.Environment, context);
|
|
808
808
|
}
|
|
809
|
-
return [2
|
|
809
|
+
return [2, Promise.resolve(contents)];
|
|
810
810
|
}
|
|
811
811
|
});
|
|
812
812
|
}); };
|
|
@@ -818,39 +818,39 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
|
|
|
818
818
|
case 0:
|
|
819
819
|
_a = [__assign({}, output)];
|
|
820
820
|
_f = {};
|
|
821
|
-
return [4
|
|
821
|
+
return [4, parseBody(output.body, context)];
|
|
822
822
|
case 1:
|
|
823
823
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
824
824
|
errorCode = "UnknownError";
|
|
825
825
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
826
826
|
_b = errorCode;
|
|
827
827
|
switch (_b) {
|
|
828
|
-
case "InternalServerException": return [3
|
|
829
|
-
case "com.amazonaws.mwaa#InternalServerException": return [3
|
|
830
|
-
case "ResourceNotFoundException": return [3
|
|
831
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3
|
|
832
|
-
case "ValidationException": return [3
|
|
833
|
-
case "com.amazonaws.mwaa#ValidationException": return [3
|
|
828
|
+
case "InternalServerException": return [3, 2];
|
|
829
|
+
case "com.amazonaws.mwaa#InternalServerException": return [3, 2];
|
|
830
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
831
|
+
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3, 4];
|
|
832
|
+
case "ValidationException": return [3, 6];
|
|
833
|
+
case "com.amazonaws.mwaa#ValidationException": return [3, 6];
|
|
834
834
|
}
|
|
835
|
-
return [3
|
|
835
|
+
return [3, 8];
|
|
836
836
|
case 2:
|
|
837
837
|
_c = [{}];
|
|
838
|
-
return [4
|
|
838
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
839
839
|
case 3:
|
|
840
840
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
841
|
-
return [3
|
|
841
|
+
return [3, 9];
|
|
842
842
|
case 4:
|
|
843
843
|
_d = [{}];
|
|
844
|
-
return [4
|
|
844
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
845
845
|
case 5:
|
|
846
846
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
847
|
-
return [3
|
|
847
|
+
return [3, 9];
|
|
848
848
|
case 6:
|
|
849
849
|
_e = [{}];
|
|
850
|
-
return [4
|
|
850
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
851
851
|
case 7:
|
|
852
852
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
853
|
-
return [3
|
|
853
|
+
return [3, 9];
|
|
854
854
|
case 8:
|
|
855
855
|
parsedBody = parsedOutput.body;
|
|
856
856
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -860,7 +860,7 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
|
|
|
860
860
|
message = response.message || response.Message || errorCode;
|
|
861
861
|
response.message = message;
|
|
862
862
|
delete response.Message;
|
|
863
|
-
return [2
|
|
863
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
864
864
|
}
|
|
865
865
|
});
|
|
866
866
|
}); };
|
|
@@ -870,7 +870,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
870
870
|
switch (_c.label) {
|
|
871
871
|
case 0:
|
|
872
872
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
873
|
-
return [2
|
|
873
|
+
return [2, deserializeAws_restJson1ListEnvironmentsCommandError(output, context)];
|
|
874
874
|
}
|
|
875
875
|
contents = {
|
|
876
876
|
$metadata: deserializeMetadata(output),
|
|
@@ -879,7 +879,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
879
879
|
};
|
|
880
880
|
_a = __expectNonNull;
|
|
881
881
|
_b = __expectObject;
|
|
882
|
-
return [4
|
|
882
|
+
return [4, parseBody(output.body, context)];
|
|
883
883
|
case 1:
|
|
884
884
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
885
885
|
if (data.Environments !== undefined && data.Environments !== null) {
|
|
@@ -888,7 +888,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
888
888
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
889
889
|
contents.NextToken = __expectString(data.NextToken);
|
|
890
890
|
}
|
|
891
|
-
return [2
|
|
891
|
+
return [2, Promise.resolve(contents)];
|
|
892
892
|
}
|
|
893
893
|
});
|
|
894
894
|
}); };
|
|
@@ -900,31 +900,31 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
|
|
|
900
900
|
case 0:
|
|
901
901
|
_a = [__assign({}, output)];
|
|
902
902
|
_e = {};
|
|
903
|
-
return [4
|
|
903
|
+
return [4, parseBody(output.body, context)];
|
|
904
904
|
case 1:
|
|
905
905
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
906
906
|
errorCode = "UnknownError";
|
|
907
907
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
908
|
_b = errorCode;
|
|
909
909
|
switch (_b) {
|
|
910
|
-
case "InternalServerException": return [3
|
|
911
|
-
case "com.amazonaws.mwaa#InternalServerException": return [3
|
|
912
|
-
case "ValidationException": return [3
|
|
913
|
-
case "com.amazonaws.mwaa#ValidationException": return [3
|
|
910
|
+
case "InternalServerException": return [3, 2];
|
|
911
|
+
case "com.amazonaws.mwaa#InternalServerException": return [3, 2];
|
|
912
|
+
case "ValidationException": return [3, 4];
|
|
913
|
+
case "com.amazonaws.mwaa#ValidationException": return [3, 4];
|
|
914
914
|
}
|
|
915
|
-
return [3
|
|
915
|
+
return [3, 6];
|
|
916
916
|
case 2:
|
|
917
917
|
_c = [{}];
|
|
918
|
-
return [4
|
|
918
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
919
919
|
case 3:
|
|
920
920
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
921
|
-
return [3
|
|
921
|
+
return [3, 7];
|
|
922
922
|
case 4:
|
|
923
923
|
_d = [{}];
|
|
924
|
-
return [4
|
|
924
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
925
925
|
case 5:
|
|
926
926
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
927
|
-
return [3
|
|
927
|
+
return [3, 7];
|
|
928
928
|
case 6:
|
|
929
929
|
parsedBody = parsedOutput.body;
|
|
930
930
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -934,7 +934,7 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
|
|
|
934
934
|
message = response.message || response.Message || errorCode;
|
|
935
935
|
response.message = message;
|
|
936
936
|
delete response.Message;
|
|
937
|
-
return [2
|
|
937
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
938
938
|
}
|
|
939
939
|
});
|
|
940
940
|
}); };
|
|
@@ -944,7 +944,7 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
944
944
|
switch (_c.label) {
|
|
945
945
|
case 0:
|
|
946
946
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
947
|
-
return [2
|
|
947
|
+
return [2, deserializeAws_restJson1ListTagsForResourceCommandError(output, context)];
|
|
948
948
|
}
|
|
949
949
|
contents = {
|
|
950
950
|
$metadata: deserializeMetadata(output),
|
|
@@ -952,13 +952,13 @@ export var deserializeAws_restJson1ListTagsForResourceCommand = function (output
|
|
|
952
952
|
};
|
|
953
953
|
_a = __expectNonNull;
|
|
954
954
|
_b = __expectObject;
|
|
955
|
-
return [4
|
|
955
|
+
return [4, parseBody(output.body, context)];
|
|
956
956
|
case 1:
|
|
957
957
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
958
958
|
if (data.Tags !== undefined && data.Tags !== null) {
|
|
959
959
|
contents.Tags = deserializeAws_restJson1TagMap(data.Tags, context);
|
|
960
960
|
}
|
|
961
|
-
return [2
|
|
961
|
+
return [2, Promise.resolve(contents)];
|
|
962
962
|
}
|
|
963
963
|
});
|
|
964
964
|
}); };
|
|
@@ -970,39 +970,39 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
970
970
|
case 0:
|
|
971
971
|
_a = [__assign({}, output)];
|
|
972
972
|
_f = {};
|
|
973
|
-
return [4
|
|
973
|
+
return [4, parseBody(output.body, context)];
|
|
974
974
|
case 1:
|
|
975
975
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
976
976
|
errorCode = "UnknownError";
|
|
977
977
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
978
978
|
_b = errorCode;
|
|
979
979
|
switch (_b) {
|
|
980
|
-
case "InternalServerException": return [3
|
|
981
|
-
case "com.amazonaws.mwaa#InternalServerException": return [3
|
|
982
|
-
case "ResourceNotFoundException": return [3
|
|
983
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3
|
|
984
|
-
case "ValidationException": return [3
|
|
985
|
-
case "com.amazonaws.mwaa#ValidationException": return [3
|
|
980
|
+
case "InternalServerException": return [3, 2];
|
|
981
|
+
case "com.amazonaws.mwaa#InternalServerException": return [3, 2];
|
|
982
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
983
|
+
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3, 4];
|
|
984
|
+
case "ValidationException": return [3, 6];
|
|
985
|
+
case "com.amazonaws.mwaa#ValidationException": return [3, 6];
|
|
986
986
|
}
|
|
987
|
-
return [3
|
|
987
|
+
return [3, 8];
|
|
988
988
|
case 2:
|
|
989
989
|
_c = [{}];
|
|
990
|
-
return [4
|
|
990
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
991
991
|
case 3:
|
|
992
992
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
993
|
-
return [3
|
|
993
|
+
return [3, 9];
|
|
994
994
|
case 4:
|
|
995
995
|
_d = [{}];
|
|
996
|
-
return [4
|
|
996
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
997
997
|
case 5:
|
|
998
998
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
999
|
-
return [3
|
|
999
|
+
return [3, 9];
|
|
1000
1000
|
case 6:
|
|
1001
1001
|
_e = [{}];
|
|
1002
|
-
return [4
|
|
1002
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1003
1003
|
case 7:
|
|
1004
1004
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1005
|
-
return [3
|
|
1005
|
+
return [3, 9];
|
|
1006
1006
|
case 8:
|
|
1007
1007
|
parsedBody = parsedOutput.body;
|
|
1008
1008
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1012,7 +1012,7 @@ var deserializeAws_restJson1ListTagsForResourceCommandError = function (output,
|
|
|
1012
1012
|
message = response.message || response.Message || errorCode;
|
|
1013
1013
|
response.message = message;
|
|
1014
1014
|
delete response.Message;
|
|
1015
|
-
return [2
|
|
1015
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1016
1016
|
}
|
|
1017
1017
|
});
|
|
1018
1018
|
}); };
|
|
@@ -1022,15 +1022,15 @@ export var deserializeAws_restJson1PublishMetricsCommand = function (output, con
|
|
|
1022
1022
|
switch (_a.label) {
|
|
1023
1023
|
case 0:
|
|
1024
1024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1025
|
-
return [2
|
|
1025
|
+
return [2, deserializeAws_restJson1PublishMetricsCommandError(output, context)];
|
|
1026
1026
|
}
|
|
1027
1027
|
contents = {
|
|
1028
1028
|
$metadata: deserializeMetadata(output),
|
|
1029
1029
|
};
|
|
1030
|
-
return [4
|
|
1030
|
+
return [4, collectBody(output.body, context)];
|
|
1031
1031
|
case 1:
|
|
1032
1032
|
_a.sent();
|
|
1033
|
-
return [2
|
|
1033
|
+
return [2, Promise.resolve(contents)];
|
|
1034
1034
|
}
|
|
1035
1035
|
});
|
|
1036
1036
|
}); };
|
|
@@ -1042,31 +1042,31 @@ var deserializeAws_restJson1PublishMetricsCommandError = function (output, conte
|
|
|
1042
1042
|
case 0:
|
|
1043
1043
|
_a = [__assign({}, output)];
|
|
1044
1044
|
_e = {};
|
|
1045
|
-
return [4
|
|
1045
|
+
return [4, parseBody(output.body, context)];
|
|
1046
1046
|
case 1:
|
|
1047
1047
|
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
1048
1048
|
errorCode = "UnknownError";
|
|
1049
1049
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1050
1050
|
_b = errorCode;
|
|
1051
1051
|
switch (_b) {
|
|
1052
|
-
case "InternalServerException": return [3
|
|
1053
|
-
case "com.amazonaws.mwaa#InternalServerException": return [3
|
|
1054
|
-
case "ValidationException": return [3
|
|
1055
|
-
case "com.amazonaws.mwaa#ValidationException": return [3
|
|
1052
|
+
case "InternalServerException": return [3, 2];
|
|
1053
|
+
case "com.amazonaws.mwaa#InternalServerException": return [3, 2];
|
|
1054
|
+
case "ValidationException": return [3, 4];
|
|
1055
|
+
case "com.amazonaws.mwaa#ValidationException": return [3, 4];
|
|
1056
1056
|
}
|
|
1057
|
-
return [3
|
|
1057
|
+
return [3, 6];
|
|
1058
1058
|
case 2:
|
|
1059
1059
|
_c = [{}];
|
|
1060
|
-
return [4
|
|
1060
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1061
1061
|
case 3:
|
|
1062
1062
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1063
|
-
return [3
|
|
1063
|
+
return [3, 7];
|
|
1064
1064
|
case 4:
|
|
1065
1065
|
_d = [{}];
|
|
1066
|
-
return [4
|
|
1066
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1067
1067
|
case 5:
|
|
1068
1068
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1069
|
-
return [3
|
|
1069
|
+
return [3, 7];
|
|
1070
1070
|
case 6:
|
|
1071
1071
|
parsedBody = parsedOutput.body;
|
|
1072
1072
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1076,7 +1076,7 @@ var deserializeAws_restJson1PublishMetricsCommandError = function (output, conte
|
|
|
1076
1076
|
message = response.message || response.Message || errorCode;
|
|
1077
1077
|
response.message = message;
|
|
1078
1078
|
delete response.Message;
|
|
1079
|
-
return [2
|
|
1079
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1080
1080
|
}
|
|
1081
1081
|
});
|
|
1082
1082
|
}); };
|
|
@@ -1086,15 +1086,15 @@ export var deserializeAws_restJson1TagResourceCommand = function (output, contex
|
|
|
1086
1086
|
switch (_a.label) {
|
|
1087
1087
|
case 0:
|
|
1088
1088
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1089
|
-
return [2
|
|
1089
|
+
return [2, deserializeAws_restJson1TagResourceCommandError(output, context)];
|
|
1090
1090
|
}
|
|
1091
1091
|
contents = {
|
|
1092
1092
|
$metadata: deserializeMetadata(output),
|
|
1093
1093
|
};
|
|
1094
|
-
return [4
|
|
1094
|
+
return [4, collectBody(output.body, context)];
|
|
1095
1095
|
case 1:
|
|
1096
1096
|
_a.sent();
|
|
1097
|
-
return [2
|
|
1097
|
+
return [2, Promise.resolve(contents)];
|
|
1098
1098
|
}
|
|
1099
1099
|
});
|
|
1100
1100
|
}); };
|
|
@@ -1106,39 +1106,39 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1106
1106
|
case 0:
|
|
1107
1107
|
_a = [__assign({}, output)];
|
|
1108
1108
|
_f = {};
|
|
1109
|
-
return [4
|
|
1109
|
+
return [4, parseBody(output.body, context)];
|
|
1110
1110
|
case 1:
|
|
1111
1111
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1112
1112
|
errorCode = "UnknownError";
|
|
1113
1113
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1114
1114
|
_b = errorCode;
|
|
1115
1115
|
switch (_b) {
|
|
1116
|
-
case "InternalServerException": return [3
|
|
1117
|
-
case "com.amazonaws.mwaa#InternalServerException": return [3
|
|
1118
|
-
case "ResourceNotFoundException": return [3
|
|
1119
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3
|
|
1120
|
-
case "ValidationException": return [3
|
|
1121
|
-
case "com.amazonaws.mwaa#ValidationException": return [3
|
|
1116
|
+
case "InternalServerException": return [3, 2];
|
|
1117
|
+
case "com.amazonaws.mwaa#InternalServerException": return [3, 2];
|
|
1118
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1119
|
+
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3, 4];
|
|
1120
|
+
case "ValidationException": return [3, 6];
|
|
1121
|
+
case "com.amazonaws.mwaa#ValidationException": return [3, 6];
|
|
1122
1122
|
}
|
|
1123
|
-
return [3
|
|
1123
|
+
return [3, 8];
|
|
1124
1124
|
case 2:
|
|
1125
1125
|
_c = [{}];
|
|
1126
|
-
return [4
|
|
1126
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1127
1127
|
case 3:
|
|
1128
1128
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1129
|
-
return [3
|
|
1129
|
+
return [3, 9];
|
|
1130
1130
|
case 4:
|
|
1131
1131
|
_d = [{}];
|
|
1132
|
-
return [4
|
|
1132
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1133
1133
|
case 5:
|
|
1134
1134
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1135
|
-
return [3
|
|
1135
|
+
return [3, 9];
|
|
1136
1136
|
case 6:
|
|
1137
1137
|
_e = [{}];
|
|
1138
|
-
return [4
|
|
1138
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1139
1139
|
case 7:
|
|
1140
1140
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1141
|
-
return [3
|
|
1141
|
+
return [3, 9];
|
|
1142
1142
|
case 8:
|
|
1143
1143
|
parsedBody = parsedOutput.body;
|
|
1144
1144
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1148,7 +1148,7 @@ var deserializeAws_restJson1TagResourceCommandError = function (output, context)
|
|
|
1148
1148
|
message = response.message || response.Message || errorCode;
|
|
1149
1149
|
response.message = message;
|
|
1150
1150
|
delete response.Message;
|
|
1151
|
-
return [2
|
|
1151
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1152
1152
|
}
|
|
1153
1153
|
});
|
|
1154
1154
|
}); };
|
|
@@ -1158,15 +1158,15 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
1158
1158
|
switch (_a.label) {
|
|
1159
1159
|
case 0:
|
|
1160
1160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1161
|
-
return [2
|
|
1161
|
+
return [2, deserializeAws_restJson1UntagResourceCommandError(output, context)];
|
|
1162
1162
|
}
|
|
1163
1163
|
contents = {
|
|
1164
1164
|
$metadata: deserializeMetadata(output),
|
|
1165
1165
|
};
|
|
1166
|
-
return [4
|
|
1166
|
+
return [4, collectBody(output.body, context)];
|
|
1167
1167
|
case 1:
|
|
1168
1168
|
_a.sent();
|
|
1169
|
-
return [2
|
|
1169
|
+
return [2, Promise.resolve(contents)];
|
|
1170
1170
|
}
|
|
1171
1171
|
});
|
|
1172
1172
|
}); };
|
|
@@ -1178,39 +1178,39 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1178
1178
|
case 0:
|
|
1179
1179
|
_a = [__assign({}, output)];
|
|
1180
1180
|
_f = {};
|
|
1181
|
-
return [4
|
|
1181
|
+
return [4, parseBody(output.body, context)];
|
|
1182
1182
|
case 1:
|
|
1183
1183
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1184
1184
|
errorCode = "UnknownError";
|
|
1185
1185
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
1186
|
_b = errorCode;
|
|
1187
1187
|
switch (_b) {
|
|
1188
|
-
case "InternalServerException": return [3
|
|
1189
|
-
case "com.amazonaws.mwaa#InternalServerException": return [3
|
|
1190
|
-
case "ResourceNotFoundException": return [3
|
|
1191
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3
|
|
1192
|
-
case "ValidationException": return [3
|
|
1193
|
-
case "com.amazonaws.mwaa#ValidationException": return [3
|
|
1188
|
+
case "InternalServerException": return [3, 2];
|
|
1189
|
+
case "com.amazonaws.mwaa#InternalServerException": return [3, 2];
|
|
1190
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1191
|
+
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3, 4];
|
|
1192
|
+
case "ValidationException": return [3, 6];
|
|
1193
|
+
case "com.amazonaws.mwaa#ValidationException": return [3, 6];
|
|
1194
1194
|
}
|
|
1195
|
-
return [3
|
|
1195
|
+
return [3, 8];
|
|
1196
1196
|
case 2:
|
|
1197
1197
|
_c = [{}];
|
|
1198
|
-
return [4
|
|
1198
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1199
1199
|
case 3:
|
|
1200
1200
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1201
|
-
return [3
|
|
1201
|
+
return [3, 9];
|
|
1202
1202
|
case 4:
|
|
1203
1203
|
_d = [{}];
|
|
1204
|
-
return [4
|
|
1204
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1205
1205
|
case 5:
|
|
1206
1206
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1207
|
-
return [3
|
|
1207
|
+
return [3, 9];
|
|
1208
1208
|
case 6:
|
|
1209
1209
|
_e = [{}];
|
|
1210
|
-
return [4
|
|
1210
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1211
1211
|
case 7:
|
|
1212
1212
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1213
|
-
return [3
|
|
1213
|
+
return [3, 9];
|
|
1214
1214
|
case 8:
|
|
1215
1215
|
parsedBody = parsedOutput.body;
|
|
1216
1216
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1220,7 +1220,7 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
1220
1220
|
message = response.message || response.Message || errorCode;
|
|
1221
1221
|
response.message = message;
|
|
1222
1222
|
delete response.Message;
|
|
1223
|
-
return [2
|
|
1223
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1224
1224
|
}
|
|
1225
1225
|
});
|
|
1226
1226
|
}); };
|
|
@@ -1230,7 +1230,7 @@ export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output,
|
|
|
1230
1230
|
switch (_c.label) {
|
|
1231
1231
|
case 0:
|
|
1232
1232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1233
|
-
return [2
|
|
1233
|
+
return [2, deserializeAws_restJson1UpdateEnvironmentCommandError(output, context)];
|
|
1234
1234
|
}
|
|
1235
1235
|
contents = {
|
|
1236
1236
|
$metadata: deserializeMetadata(output),
|
|
@@ -1238,13 +1238,13 @@ export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output,
|
|
|
1238
1238
|
};
|
|
1239
1239
|
_a = __expectNonNull;
|
|
1240
1240
|
_b = __expectObject;
|
|
1241
|
-
return [4
|
|
1241
|
+
return [4, parseBody(output.body, context)];
|
|
1242
1242
|
case 1:
|
|
1243
1243
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1244
1244
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1245
1245
|
contents.Arn = __expectString(data.Arn);
|
|
1246
1246
|
}
|
|
1247
|
-
return [2
|
|
1247
|
+
return [2, Promise.resolve(contents)];
|
|
1248
1248
|
}
|
|
1249
1249
|
});
|
|
1250
1250
|
}); };
|
|
@@ -1256,39 +1256,39 @@ var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, co
|
|
|
1256
1256
|
case 0:
|
|
1257
1257
|
_a = [__assign({}, output)];
|
|
1258
1258
|
_f = {};
|
|
1259
|
-
return [4
|
|
1259
|
+
return [4, parseBody(output.body, context)];
|
|
1260
1260
|
case 1:
|
|
1261
1261
|
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
1262
1262
|
errorCode = "UnknownError";
|
|
1263
1263
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1264
1264
|
_b = errorCode;
|
|
1265
1265
|
switch (_b) {
|
|
1266
|
-
case "InternalServerException": return [3
|
|
1267
|
-
case "com.amazonaws.mwaa#InternalServerException": return [3
|
|
1268
|
-
case "ResourceNotFoundException": return [3
|
|
1269
|
-
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3
|
|
1270
|
-
case "ValidationException": return [3
|
|
1271
|
-
case "com.amazonaws.mwaa#ValidationException": return [3
|
|
1266
|
+
case "InternalServerException": return [3, 2];
|
|
1267
|
+
case "com.amazonaws.mwaa#InternalServerException": return [3, 2];
|
|
1268
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
1269
|
+
case "com.amazonaws.mwaa#ResourceNotFoundException": return [3, 4];
|
|
1270
|
+
case "ValidationException": return [3, 6];
|
|
1271
|
+
case "com.amazonaws.mwaa#ValidationException": return [3, 6];
|
|
1272
1272
|
}
|
|
1273
|
-
return [3
|
|
1273
|
+
return [3, 8];
|
|
1274
1274
|
case 2:
|
|
1275
1275
|
_c = [{}];
|
|
1276
|
-
return [4
|
|
1276
|
+
return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1277
1277
|
case 3:
|
|
1278
1278
|
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1279
|
-
return [3
|
|
1279
|
+
return [3, 9];
|
|
1280
1280
|
case 4:
|
|
1281
1281
|
_d = [{}];
|
|
1282
|
-
return [4
|
|
1282
|
+
return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1283
1283
|
case 5:
|
|
1284
1284
|
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1285
|
-
return [3
|
|
1285
|
+
return [3, 9];
|
|
1286
1286
|
case 6:
|
|
1287
1287
|
_e = [{}];
|
|
1288
|
-
return [4
|
|
1288
|
+
return [4, deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context)];
|
|
1289
1289
|
case 7:
|
|
1290
1290
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1291
|
-
return [3
|
|
1291
|
+
return [3, 9];
|
|
1292
1292
|
case 8:
|
|
1293
1293
|
parsedBody = parsedOutput.body;
|
|
1294
1294
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -1298,7 +1298,7 @@ var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, co
|
|
|
1298
1298
|
message = response.message || response.Message || errorCode;
|
|
1299
1299
|
response.message = message;
|
|
1300
1300
|
delete response.Message;
|
|
1301
|
-
return [2
|
|
1301
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1302
1302
|
}
|
|
1303
1303
|
});
|
|
1304
1304
|
}); };
|
|
@@ -1315,7 +1315,7 @@ var deserializeAws_restJson1AccessDeniedExceptionResponse = function (parsedOutp
|
|
|
1315
1315
|
if (data.Message !== undefined && data.Message !== null) {
|
|
1316
1316
|
contents.Message = __expectString(data.Message);
|
|
1317
1317
|
}
|
|
1318
|
-
return [2
|
|
1318
|
+
return [2, contents];
|
|
1319
1319
|
});
|
|
1320
1320
|
}); };
|
|
1321
1321
|
var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1331,7 +1331,7 @@ var deserializeAws_restJson1InternalServerExceptionResponse = function (parsedOu
|
|
|
1331
1331
|
if (data.message !== undefined && data.message !== null) {
|
|
1332
1332
|
contents.message = __expectString(data.message);
|
|
1333
1333
|
}
|
|
1334
|
-
return [2
|
|
1334
|
+
return [2, contents];
|
|
1335
1335
|
});
|
|
1336
1336
|
}); };
|
|
1337
1337
|
var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1347,7 +1347,7 @@ var deserializeAws_restJson1ResourceNotFoundExceptionResponse = function (parsed
|
|
|
1347
1347
|
if (data.message !== undefined && data.message !== null) {
|
|
1348
1348
|
contents.message = __expectString(data.message);
|
|
1349
1349
|
}
|
|
1350
|
-
return [2
|
|
1350
|
+
return [2, contents];
|
|
1351
1351
|
});
|
|
1352
1352
|
}); };
|
|
1353
1353
|
var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -1363,7 +1363,7 @@ var deserializeAws_restJson1ValidationExceptionResponse = function (parsedOutput
|
|
|
1363
1363
|
if (data.message !== undefined && data.message !== null) {
|
|
1364
1364
|
contents.message = __expectString(data.message);
|
|
1365
1365
|
}
|
|
1366
|
-
return [2
|
|
1366
|
+
return [2, contents];
|
|
1367
1367
|
});
|
|
1368
1368
|
}); };
|
|
1369
1369
|
var serializeAws_restJson1AirflowConfigurationOptions = function (input, context) {
|
|
@@ -1628,7 +1628,6 @@ var deserializeMetadata = function (output) {
|
|
|
1628
1628
|
cfId: output.headers["x-amz-cf-id"],
|
|
1629
1629
|
});
|
|
1630
1630
|
};
|
|
1631
|
-
// Collect low-level response body stream to Uint8Array.
|
|
1632
1631
|
var collectBody = function (streamBody, context) {
|
|
1633
1632
|
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
1634
1633
|
if (streamBody instanceof Uint8Array) {
|
|
@@ -1636,7 +1635,6 @@ var collectBody = function (streamBody, context) {
|
|
|
1636
1635
|
}
|
|
1637
1636
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1638
1637
|
};
|
|
1639
|
-
// Encode Uint8Array data into string with utf-8.
|
|
1640
1638
|
var collectBodyString = function (streamBody, context) {
|
|
1641
1639
|
return collectBody(streamBody, context).then(function (body) { return context.utf8Encoder(body); });
|
|
1642
1640
|
};
|
|
@@ -1655,9 +1653,6 @@ var parseBody = function (streamBody, context) {
|
|
|
1655
1653
|
return {};
|
|
1656
1654
|
});
|
|
1657
1655
|
};
|
|
1658
|
-
/**
|
|
1659
|
-
* Load an error code for the aws.rest-json-1.1 protocol.
|
|
1660
|
-
*/
|
|
1661
1656
|
var loadRestJsonErrorCode = function (output, data) {
|
|
1662
1657
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1663
1658
|
var sanitizeErrorCode = function (rawValue) {
|
|
@@ -1682,4 +1677,3 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1682
1677
|
}
|
|
1683
1678
|
return "";
|
|
1684
1679
|
};
|
|
1685
|
-
//# sourceMappingURL=Aws_restJson1.js.map
|