@aws-sdk/client-appconfig 3.127.0 → 3.130.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 +33 -0
- package/README.md +24 -23
- package/dist-cjs/AppConfig.js +150 -0
- package/dist-cjs/commands/CreateExtensionAssociationCommand.js +36 -0
- package/dist-cjs/commands/CreateExtensionCommand.js +36 -0
- package/dist-cjs/commands/DeleteExtensionAssociationCommand.js +36 -0
- package/dist-cjs/commands/DeleteExtensionCommand.js +36 -0
- package/dist-cjs/commands/GetExtensionAssociationCommand.js +36 -0
- package/dist-cjs/commands/GetExtensionCommand.js +36 -0
- package/dist-cjs/commands/ListExtensionAssociationsCommand.js +36 -0
- package/dist-cjs/commands/ListExtensionsCommand.js +36 -0
- package/dist-cjs/commands/UpdateExtensionAssociationCommand.js +36 -0
- package/dist-cjs/commands/UpdateExtensionCommand.js +36 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/endpoints.js +19 -2
- package/dist-cjs/models/models_0.js +146 -16
- package/dist-cjs/pagination/ListExtensionAssociationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListExtensionsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1107 -38
- package/dist-es/AppConfig.js +150 -0
- package/dist-es/commands/CreateExtensionAssociationCommand.js +39 -0
- package/dist-es/commands/CreateExtensionCommand.js +39 -0
- package/dist-es/commands/DeleteExtensionAssociationCommand.js +39 -0
- package/dist-es/commands/DeleteExtensionCommand.js +39 -0
- package/dist-es/commands/GetExtensionAssociationCommand.js +39 -0
- package/dist-es/commands/GetExtensionCommand.js +39 -0
- package/dist-es/commands/ListExtensionAssociationsCommand.js +39 -0
- package/dist-es/commands/ListExtensionsCommand.js +39 -0
- package/dist-es/commands/UpdateExtensionAssociationCommand.js +39 -0
- package/dist-es/commands/UpdateExtensionCommand.js +39 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/endpoints.js +19 -2
- package/dist-es/models/models_0.js +103 -13
- package/dist-es/pagination/ListExtensionAssociationsPaginator.js +75 -0
- package/dist-es/pagination/ListExtensionsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1504 -228
- package/dist-types/AppConfig.d.ts +159 -51
- package/dist-types/AppConfigClient.d.ts +36 -25
- package/dist-types/commands/CreateApplicationCommand.d.ts +5 -5
- package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +5 -6
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +1 -1
- package/dist-types/commands/CreateExtensionAssociationCommand.d.ts +47 -0
- package/dist-types/commands/CreateExtensionCommand.d.ts +43 -0
- package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +2 -1
- package/dist-types/commands/DeleteExtensionAssociationCommand.d.ts +36 -0
- package/dist-types/commands/DeleteExtensionCommand.d.ts +36 -0
- package/dist-types/commands/GetConfigurationCommand.d.ts +6 -5
- package/dist-types/commands/GetEnvironmentCommand.d.ts +6 -5
- package/dist-types/commands/GetExtensionAssociationCommand.d.ts +38 -0
- package/dist-types/commands/GetExtensionCommand.d.ts +35 -0
- package/dist-types/commands/ListExtensionAssociationsCommand.d.ts +38 -0
- package/dist-types/commands/ListExtensionsCommand.d.ts +38 -0
- package/dist-types/commands/TagResourceCommand.d.ts +3 -5
- package/dist-types/commands/UpdateExtensionAssociationCommand.d.ts +38 -0
- package/dist-types/commands/UpdateExtensionCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +678 -98
- package/dist-types/pagination/ListExtensionAssociationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExtensionsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +30 -0
- package/dist-types/ts3.4/AppConfig.d.ts +50 -0
- package/dist-types/ts3.4/AppConfigClient.d.ts +12 -2
- package/dist-types/ts3.4/commands/CreateExtensionAssociationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateExtensionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteExtensionAssociationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteExtensionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetExtensionAssociationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetExtensionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExtensionAssociationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListExtensionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateExtensionAssociationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateExtensionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +298 -9
- package/dist-types/ts3.4/pagination/ListExtensionAssociationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExtensionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +30 -0
- package/package.json +6 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseFloat32 as __limitedParseFloat32, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, extendedEncodeURIComponent as __extendedEncodeURIComponent, limitedParseFloat32 as __limitedParseFloat32, parseRfc3339DateTime as __parseRfc3339DateTime, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AppConfigServiceException as __BaseException } from "../models/AppConfigServiceException";
|
|
5
5
|
import { BadRequestException, ConflictException, InternalServerException, PayloadTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateApplicationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -123,6 +123,54 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
}); };
|
|
126
|
+
export var serializeAws_restJson1CreateExtensionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
127
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
128
|
+
return __generator(this, function (_c) {
|
|
129
|
+
switch (_c.label) {
|
|
130
|
+
case 0: return [4, context.endpoint()];
|
|
131
|
+
case 1:
|
|
132
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
133
|
+
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.LatestVersionNumber) && {
|
|
134
|
+
"latest-version-number": input.LatestVersionNumber.toString(),
|
|
135
|
+
}));
|
|
136
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensions";
|
|
137
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.Actions != null && { Actions: serializeAws_restJson1ActionsMap(input.Actions, context) })), (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Parameters != null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
138
|
+
return [2, new __HttpRequest({
|
|
139
|
+
protocol: protocol,
|
|
140
|
+
hostname: hostname,
|
|
141
|
+
port: port,
|
|
142
|
+
method: "POST",
|
|
143
|
+
headers: headers,
|
|
144
|
+
path: resolvedPath,
|
|
145
|
+
body: body,
|
|
146
|
+
})];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
}); };
|
|
150
|
+
export var serializeAws_restJson1CreateExtensionAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
152
|
+
return __generator(this, function (_c) {
|
|
153
|
+
switch (_c.label) {
|
|
154
|
+
case 0: return [4, context.endpoint()];
|
|
155
|
+
case 1:
|
|
156
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
157
|
+
headers = {
|
|
158
|
+
"content-type": "application/json",
|
|
159
|
+
};
|
|
160
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensionassociations";
|
|
161
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ExtensionIdentifier != null && { ExtensionIdentifier: input.ExtensionIdentifier })), (input.ExtensionVersionNumber != null && { ExtensionVersionNumber: input.ExtensionVersionNumber })), (input.Parameters != null && { Parameters: serializeAws_restJson1ParameterValueMap(input.Parameters, context) })), (input.ResourceIdentifier != null && { ResourceIdentifier: input.ResourceIdentifier })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
162
|
+
return [2, new __HttpRequest({
|
|
163
|
+
protocol: protocol,
|
|
164
|
+
hostname: hostname,
|
|
165
|
+
port: port,
|
|
166
|
+
method: "POST",
|
|
167
|
+
headers: headers,
|
|
168
|
+
path: resolvedPath,
|
|
169
|
+
body: body,
|
|
170
|
+
})];
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}); };
|
|
126
174
|
export var serializeAws_restJson1CreateHostedConfigurationVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
127
175
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
128
176
|
return __generator(this, function (_c) {
|
|
@@ -317,6 +365,71 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
317
365
|
}
|
|
318
366
|
});
|
|
319
367
|
}); };
|
|
368
|
+
export var serializeAws_restJson1DeleteExtensionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
369
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
370
|
+
return __generator(this, function (_c) {
|
|
371
|
+
switch (_c.label) {
|
|
372
|
+
case 0: return [4, context.endpoint()];
|
|
373
|
+
case 1:
|
|
374
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
375
|
+
headers = {};
|
|
376
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensions/{ExtensionIdentifier}";
|
|
377
|
+
if (input.ExtensionIdentifier !== undefined) {
|
|
378
|
+
labelValue = input.ExtensionIdentifier;
|
|
379
|
+
if (labelValue.length <= 0) {
|
|
380
|
+
throw new Error("Empty value provided for input HTTP label: ExtensionIdentifier.");
|
|
381
|
+
}
|
|
382
|
+
resolvedPath = resolvedPath.replace("{ExtensionIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
383
|
+
}
|
|
384
|
+
else {
|
|
385
|
+
throw new Error("No value provided for input HTTP label: ExtensionIdentifier.");
|
|
386
|
+
}
|
|
387
|
+
query = __assign({}, (input.VersionNumber !== undefined && { version: input.VersionNumber.toString() }));
|
|
388
|
+
return [2, new __HttpRequest({
|
|
389
|
+
protocol: protocol,
|
|
390
|
+
hostname: hostname,
|
|
391
|
+
port: port,
|
|
392
|
+
method: "DELETE",
|
|
393
|
+
headers: headers,
|
|
394
|
+
path: resolvedPath,
|
|
395
|
+
query: query,
|
|
396
|
+
body: body,
|
|
397
|
+
})];
|
|
398
|
+
}
|
|
399
|
+
});
|
|
400
|
+
}); };
|
|
401
|
+
export var serializeAws_restJson1DeleteExtensionAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
402
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
403
|
+
return __generator(this, function (_c) {
|
|
404
|
+
switch (_c.label) {
|
|
405
|
+
case 0: return [4, context.endpoint()];
|
|
406
|
+
case 1:
|
|
407
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
408
|
+
headers = {};
|
|
409
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
410
|
+
"/extensionassociations/{ExtensionAssociationId}";
|
|
411
|
+
if (input.ExtensionAssociationId !== undefined) {
|
|
412
|
+
labelValue = input.ExtensionAssociationId;
|
|
413
|
+
if (labelValue.length <= 0) {
|
|
414
|
+
throw new Error("Empty value provided for input HTTP label: ExtensionAssociationId.");
|
|
415
|
+
}
|
|
416
|
+
resolvedPath = resolvedPath.replace("{ExtensionAssociationId}", __extendedEncodeURIComponent(labelValue));
|
|
417
|
+
}
|
|
418
|
+
else {
|
|
419
|
+
throw new Error("No value provided for input HTTP label: ExtensionAssociationId.");
|
|
420
|
+
}
|
|
421
|
+
return [2, new __HttpRequest({
|
|
422
|
+
protocol: protocol,
|
|
423
|
+
hostname: hostname,
|
|
424
|
+
port: port,
|
|
425
|
+
method: "DELETE",
|
|
426
|
+
headers: headers,
|
|
427
|
+
path: resolvedPath,
|
|
428
|
+
body: body,
|
|
429
|
+
})];
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
}); };
|
|
320
433
|
export var serializeAws_restJson1DeleteHostedConfigurationVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
321
434
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
322
435
|
return __generator(this, function (_c) {
|
|
@@ -624,6 +737,71 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
624
737
|
}
|
|
625
738
|
});
|
|
626
739
|
}); };
|
|
740
|
+
export var serializeAws_restJson1GetExtensionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
741
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, query, body;
|
|
742
|
+
return __generator(this, function (_c) {
|
|
743
|
+
switch (_c.label) {
|
|
744
|
+
case 0: return [4, context.endpoint()];
|
|
745
|
+
case 1:
|
|
746
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
747
|
+
headers = {};
|
|
748
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensions/{ExtensionIdentifier}";
|
|
749
|
+
if (input.ExtensionIdentifier !== undefined) {
|
|
750
|
+
labelValue = input.ExtensionIdentifier;
|
|
751
|
+
if (labelValue.length <= 0) {
|
|
752
|
+
throw new Error("Empty value provided for input HTTP label: ExtensionIdentifier.");
|
|
753
|
+
}
|
|
754
|
+
resolvedPath = resolvedPath.replace("{ExtensionIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
755
|
+
}
|
|
756
|
+
else {
|
|
757
|
+
throw new Error("No value provided for input HTTP label: ExtensionIdentifier.");
|
|
758
|
+
}
|
|
759
|
+
query = __assign({}, (input.VersionNumber !== undefined && { version_number: input.VersionNumber.toString() }));
|
|
760
|
+
return [2, new __HttpRequest({
|
|
761
|
+
protocol: protocol,
|
|
762
|
+
hostname: hostname,
|
|
763
|
+
port: port,
|
|
764
|
+
method: "GET",
|
|
765
|
+
headers: headers,
|
|
766
|
+
path: resolvedPath,
|
|
767
|
+
query: query,
|
|
768
|
+
body: body,
|
|
769
|
+
})];
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
}); };
|
|
773
|
+
export var serializeAws_restJson1GetExtensionAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
774
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
775
|
+
return __generator(this, function (_c) {
|
|
776
|
+
switch (_c.label) {
|
|
777
|
+
case 0: return [4, context.endpoint()];
|
|
778
|
+
case 1:
|
|
779
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
780
|
+
headers = {};
|
|
781
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
782
|
+
"/extensionassociations/{ExtensionAssociationId}";
|
|
783
|
+
if (input.ExtensionAssociationId !== undefined) {
|
|
784
|
+
labelValue = input.ExtensionAssociationId;
|
|
785
|
+
if (labelValue.length <= 0) {
|
|
786
|
+
throw new Error("Empty value provided for input HTTP label: ExtensionAssociationId.");
|
|
787
|
+
}
|
|
788
|
+
resolvedPath = resolvedPath.replace("{ExtensionAssociationId}", __extendedEncodeURIComponent(labelValue));
|
|
789
|
+
}
|
|
790
|
+
else {
|
|
791
|
+
throw new Error("No value provided for input HTTP label: ExtensionAssociationId.");
|
|
792
|
+
}
|
|
793
|
+
return [2, new __HttpRequest({
|
|
794
|
+
protocol: protocol,
|
|
795
|
+
hostname: hostname,
|
|
796
|
+
port: port,
|
|
797
|
+
method: "GET",
|
|
798
|
+
headers: headers,
|
|
799
|
+
path: resolvedPath,
|
|
800
|
+
body: body,
|
|
801
|
+
})];
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
}); };
|
|
627
805
|
export var serializeAws_restJson1GetHostedConfigurationVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
628
806
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
629
807
|
return __generator(this, function (_c) {
|
|
@@ -834,6 +1012,54 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
|
|
|
834
1012
|
}
|
|
835
1013
|
});
|
|
836
1014
|
}); };
|
|
1015
|
+
export var serializeAws_restJson1ListExtensionAssociationsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1016
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1017
|
+
return __generator(this, function (_c) {
|
|
1018
|
+
switch (_c.label) {
|
|
1019
|
+
case 0: return [4, context.endpoint()];
|
|
1020
|
+
case 1:
|
|
1021
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1022
|
+
headers = {};
|
|
1023
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensionassociations";
|
|
1024
|
+
query = __assign(__assign(__assign(__assign(__assign({}, (input.ResourceIdentifier !== undefined && { resource_identifier: input.ResourceIdentifier })), (input.ExtensionIdentifier !== undefined && { extension_identifier: input.ExtensionIdentifier })), (input.ExtensionVersionNumber !== undefined && {
|
|
1025
|
+
extension_version_number: input.ExtensionVersionNumber.toString(),
|
|
1026
|
+
})), (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken }));
|
|
1027
|
+
return [2, new __HttpRequest({
|
|
1028
|
+
protocol: protocol,
|
|
1029
|
+
hostname: hostname,
|
|
1030
|
+
port: port,
|
|
1031
|
+
method: "GET",
|
|
1032
|
+
headers: headers,
|
|
1033
|
+
path: resolvedPath,
|
|
1034
|
+
query: query,
|
|
1035
|
+
body: body,
|
|
1036
|
+
})];
|
|
1037
|
+
}
|
|
1038
|
+
});
|
|
1039
|
+
}); };
|
|
1040
|
+
export var serializeAws_restJson1ListExtensionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1041
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
1042
|
+
return __generator(this, function (_c) {
|
|
1043
|
+
switch (_c.label) {
|
|
1044
|
+
case 0: return [4, context.endpoint()];
|
|
1045
|
+
case 1:
|
|
1046
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1047
|
+
headers = {};
|
|
1048
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensions";
|
|
1049
|
+
query = __assign(__assign(__assign({}, (input.MaxResults !== undefined && { max_results: input.MaxResults.toString() })), (input.NextToken !== undefined && { next_token: input.NextToken })), (input.Name !== undefined && { name: input.Name }));
|
|
1050
|
+
return [2, new __HttpRequest({
|
|
1051
|
+
protocol: protocol,
|
|
1052
|
+
hostname: hostname,
|
|
1053
|
+
port: port,
|
|
1054
|
+
method: "GET",
|
|
1055
|
+
headers: headers,
|
|
1056
|
+
path: resolvedPath,
|
|
1057
|
+
query: query,
|
|
1058
|
+
body: body,
|
|
1059
|
+
})];
|
|
1060
|
+
}
|
|
1061
|
+
});
|
|
1062
|
+
}); };
|
|
837
1063
|
export var serializeAws_restJson1ListHostedConfigurationVersionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
838
1064
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
839
1065
|
return __generator(this, function (_c) {
|
|
@@ -1234,6 +1460,75 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
1234
1460
|
}
|
|
1235
1461
|
});
|
|
1236
1462
|
}); };
|
|
1463
|
+
export var serializeAws_restJson1UpdateExtensionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1464
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1465
|
+
return __generator(this, function (_c) {
|
|
1466
|
+
switch (_c.label) {
|
|
1467
|
+
case 0: return [4, context.endpoint()];
|
|
1468
|
+
case 1:
|
|
1469
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1470
|
+
headers = {
|
|
1471
|
+
"content-type": "application/json",
|
|
1472
|
+
};
|
|
1473
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/extensions/{ExtensionIdentifier}";
|
|
1474
|
+
if (input.ExtensionIdentifier !== undefined) {
|
|
1475
|
+
labelValue = input.ExtensionIdentifier;
|
|
1476
|
+
if (labelValue.length <= 0) {
|
|
1477
|
+
throw new Error("Empty value provided for input HTTP label: ExtensionIdentifier.");
|
|
1478
|
+
}
|
|
1479
|
+
resolvedPath = resolvedPath.replace("{ExtensionIdentifier}", __extendedEncodeURIComponent(labelValue));
|
|
1480
|
+
}
|
|
1481
|
+
else {
|
|
1482
|
+
throw new Error("No value provided for input HTTP label: ExtensionIdentifier.");
|
|
1483
|
+
}
|
|
1484
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Actions != null && { Actions: serializeAws_restJson1ActionsMap(input.Actions, context) })), (input.Description != null && { Description: input.Description })), (input.Parameters != null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) })), (input.VersionNumber != null && { VersionNumber: input.VersionNumber })));
|
|
1485
|
+
return [2, new __HttpRequest({
|
|
1486
|
+
protocol: protocol,
|
|
1487
|
+
hostname: hostname,
|
|
1488
|
+
port: port,
|
|
1489
|
+
method: "PATCH",
|
|
1490
|
+
headers: headers,
|
|
1491
|
+
path: resolvedPath,
|
|
1492
|
+
body: body,
|
|
1493
|
+
})];
|
|
1494
|
+
}
|
|
1495
|
+
});
|
|
1496
|
+
}); };
|
|
1497
|
+
export var serializeAws_restJson1UpdateExtensionAssociationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1498
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, body;
|
|
1499
|
+
return __generator(this, function (_c) {
|
|
1500
|
+
switch (_c.label) {
|
|
1501
|
+
case 0: return [4, context.endpoint()];
|
|
1502
|
+
case 1:
|
|
1503
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1504
|
+
headers = {
|
|
1505
|
+
"content-type": "application/json",
|
|
1506
|
+
};
|
|
1507
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1508
|
+
"/extensionassociations/{ExtensionAssociationId}";
|
|
1509
|
+
if (input.ExtensionAssociationId !== undefined) {
|
|
1510
|
+
labelValue = input.ExtensionAssociationId;
|
|
1511
|
+
if (labelValue.length <= 0) {
|
|
1512
|
+
throw new Error("Empty value provided for input HTTP label: ExtensionAssociationId.");
|
|
1513
|
+
}
|
|
1514
|
+
resolvedPath = resolvedPath.replace("{ExtensionAssociationId}", __extendedEncodeURIComponent(labelValue));
|
|
1515
|
+
}
|
|
1516
|
+
else {
|
|
1517
|
+
throw new Error("No value provided for input HTTP label: ExtensionAssociationId.");
|
|
1518
|
+
}
|
|
1519
|
+
body = JSON.stringify(__assign({}, (input.Parameters != null && { Parameters: serializeAws_restJson1ParameterValueMap(input.Parameters, context) })));
|
|
1520
|
+
return [2, new __HttpRequest({
|
|
1521
|
+
protocol: protocol,
|
|
1522
|
+
hostname: hostname,
|
|
1523
|
+
port: port,
|
|
1524
|
+
method: "PATCH",
|
|
1525
|
+
headers: headers,
|
|
1526
|
+
path: resolvedPath,
|
|
1527
|
+
body: body,
|
|
1528
|
+
})];
|
|
1529
|
+
}
|
|
1530
|
+
});
|
|
1531
|
+
}); };
|
|
1237
1532
|
export var serializeAws_restJson1ValidateConfigurationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1238
1533
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
1239
1534
|
return __generator(this, function (_c) {
|
|
@@ -1614,27 +1909,209 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
|
|
|
1614
1909
|
}
|
|
1615
1910
|
});
|
|
1616
1911
|
}); };
|
|
1617
|
-
export var
|
|
1618
|
-
var contents, data;
|
|
1619
|
-
return __generator(this, function (
|
|
1620
|
-
switch (
|
|
1912
|
+
export var deserializeAws_restJson1CreateExtensionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1913
|
+
var contents, data, _a, _b;
|
|
1914
|
+
return __generator(this, function (_c) {
|
|
1915
|
+
switch (_c.label) {
|
|
1621
1916
|
case 0:
|
|
1622
1917
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1623
|
-
return [2,
|
|
1918
|
+
return [2, deserializeAws_restJson1CreateExtensionCommandError(output, context)];
|
|
1624
1919
|
}
|
|
1625
1920
|
contents = {
|
|
1626
1921
|
$metadata: deserializeMetadata(output),
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
Content: undefined,
|
|
1630
|
-
ContentType: undefined,
|
|
1922
|
+
Actions: undefined,
|
|
1923
|
+
Arn: undefined,
|
|
1631
1924
|
Description: undefined,
|
|
1925
|
+
Id: undefined,
|
|
1926
|
+
Name: undefined,
|
|
1927
|
+
Parameters: undefined,
|
|
1632
1928
|
VersionNumber: undefined,
|
|
1633
1929
|
};
|
|
1634
|
-
|
|
1635
|
-
|
|
1930
|
+
_a = __expectNonNull;
|
|
1931
|
+
_b = __expectObject;
|
|
1932
|
+
return [4, parseBody(output.body, context)];
|
|
1933
|
+
case 1:
|
|
1934
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1935
|
+
if (data.Actions !== undefined && data.Actions !== null) {
|
|
1936
|
+
contents.Actions = deserializeAws_restJson1ActionsMap(data.Actions, context);
|
|
1636
1937
|
}
|
|
1637
|
-
if (
|
|
1938
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
1939
|
+
contents.Arn = __expectString(data.Arn);
|
|
1940
|
+
}
|
|
1941
|
+
if (data.Description !== undefined && data.Description !== null) {
|
|
1942
|
+
contents.Description = __expectString(data.Description);
|
|
1943
|
+
}
|
|
1944
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
1945
|
+
contents.Id = __expectString(data.Id);
|
|
1946
|
+
}
|
|
1947
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
1948
|
+
contents.Name = __expectString(data.Name);
|
|
1949
|
+
}
|
|
1950
|
+
if (data.Parameters !== undefined && data.Parameters !== null) {
|
|
1951
|
+
contents.Parameters = deserializeAws_restJson1ParameterMap(data.Parameters, context);
|
|
1952
|
+
}
|
|
1953
|
+
if (data.VersionNumber !== undefined && data.VersionNumber !== null) {
|
|
1954
|
+
contents.VersionNumber = __expectInt32(data.VersionNumber);
|
|
1955
|
+
}
|
|
1956
|
+
return [2, Promise.resolve(contents)];
|
|
1957
|
+
}
|
|
1958
|
+
});
|
|
1959
|
+
}); };
|
|
1960
|
+
var deserializeAws_restJson1CreateExtensionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1961
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1962
|
+
var _c;
|
|
1963
|
+
return __generator(this, function (_d) {
|
|
1964
|
+
switch (_d.label) {
|
|
1965
|
+
case 0:
|
|
1966
|
+
_a = [__assign({}, output)];
|
|
1967
|
+
_c = {};
|
|
1968
|
+
return [4, parseBody(output.body, context)];
|
|
1969
|
+
case 1:
|
|
1970
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1971
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
|
+
_b = errorCode;
|
|
1973
|
+
switch (_b) {
|
|
1974
|
+
case "BadRequestException": return [3, 2];
|
|
1975
|
+
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
1976
|
+
case "ConflictException": return [3, 4];
|
|
1977
|
+
case "com.amazonaws.appconfig#ConflictException": return [3, 4];
|
|
1978
|
+
case "InternalServerException": return [3, 6];
|
|
1979
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 6];
|
|
1980
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
1981
|
+
case "com.amazonaws.appconfig#ServiceQuotaExceededException": return [3, 8];
|
|
1982
|
+
}
|
|
1983
|
+
return [3, 10];
|
|
1984
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
1985
|
+
case 3: throw _d.sent();
|
|
1986
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
1987
|
+
case 5: throw _d.sent();
|
|
1988
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1989
|
+
case 7: throw _d.sent();
|
|
1990
|
+
case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
1991
|
+
case 9: throw _d.sent();
|
|
1992
|
+
case 10:
|
|
1993
|
+
parsedBody = parsedOutput.body;
|
|
1994
|
+
$metadata = deserializeMetadata(output);
|
|
1995
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1996
|
+
response = new __BaseException({
|
|
1997
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1998
|
+
$fault: "client",
|
|
1999
|
+
$metadata: $metadata,
|
|
2000
|
+
});
|
|
2001
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2002
|
+
}
|
|
2003
|
+
});
|
|
2004
|
+
}); };
|
|
2005
|
+
export var deserializeAws_restJson1CreateExtensionAssociationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2006
|
+
var contents, data, _a, _b;
|
|
2007
|
+
return __generator(this, function (_c) {
|
|
2008
|
+
switch (_c.label) {
|
|
2009
|
+
case 0:
|
|
2010
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2011
|
+
return [2, deserializeAws_restJson1CreateExtensionAssociationCommandError(output, context)];
|
|
2012
|
+
}
|
|
2013
|
+
contents = {
|
|
2014
|
+
$metadata: deserializeMetadata(output),
|
|
2015
|
+
Arn: undefined,
|
|
2016
|
+
ExtensionArn: undefined,
|
|
2017
|
+
ExtensionVersionNumber: undefined,
|
|
2018
|
+
Id: undefined,
|
|
2019
|
+
Parameters: undefined,
|
|
2020
|
+
ResourceArn: undefined,
|
|
2021
|
+
};
|
|
2022
|
+
_a = __expectNonNull;
|
|
2023
|
+
_b = __expectObject;
|
|
2024
|
+
return [4, parseBody(output.body, context)];
|
|
2025
|
+
case 1:
|
|
2026
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2027
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
2028
|
+
contents.Arn = __expectString(data.Arn);
|
|
2029
|
+
}
|
|
2030
|
+
if (data.ExtensionArn !== undefined && data.ExtensionArn !== null) {
|
|
2031
|
+
contents.ExtensionArn = __expectString(data.ExtensionArn);
|
|
2032
|
+
}
|
|
2033
|
+
if (data.ExtensionVersionNumber !== undefined && data.ExtensionVersionNumber !== null) {
|
|
2034
|
+
contents.ExtensionVersionNumber = __expectInt32(data.ExtensionVersionNumber);
|
|
2035
|
+
}
|
|
2036
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
2037
|
+
contents.Id = __expectString(data.Id);
|
|
2038
|
+
}
|
|
2039
|
+
if (data.Parameters !== undefined && data.Parameters !== null) {
|
|
2040
|
+
contents.Parameters = deserializeAws_restJson1ParameterValueMap(data.Parameters, context);
|
|
2041
|
+
}
|
|
2042
|
+
if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
|
|
2043
|
+
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
2044
|
+
}
|
|
2045
|
+
return [2, Promise.resolve(contents)];
|
|
2046
|
+
}
|
|
2047
|
+
});
|
|
2048
|
+
}); };
|
|
2049
|
+
var deserializeAws_restJson1CreateExtensionAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2050
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2051
|
+
var _c;
|
|
2052
|
+
return __generator(this, function (_d) {
|
|
2053
|
+
switch (_d.label) {
|
|
2054
|
+
case 0:
|
|
2055
|
+
_a = [__assign({}, output)];
|
|
2056
|
+
_c = {};
|
|
2057
|
+
return [4, parseBody(output.body, context)];
|
|
2058
|
+
case 1:
|
|
2059
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2060
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2061
|
+
_b = errorCode;
|
|
2062
|
+
switch (_b) {
|
|
2063
|
+
case "BadRequestException": return [3, 2];
|
|
2064
|
+
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
2065
|
+
case "InternalServerException": return [3, 4];
|
|
2066
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
2067
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2068
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
2069
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
2070
|
+
case "com.amazonaws.appconfig#ServiceQuotaExceededException": return [3, 8];
|
|
2071
|
+
}
|
|
2072
|
+
return [3, 10];
|
|
2073
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2074
|
+
case 3: throw _d.sent();
|
|
2075
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2076
|
+
case 5: throw _d.sent();
|
|
2077
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2078
|
+
case 7: throw _d.sent();
|
|
2079
|
+
case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
2080
|
+
case 9: throw _d.sent();
|
|
2081
|
+
case 10:
|
|
2082
|
+
parsedBody = parsedOutput.body;
|
|
2083
|
+
$metadata = deserializeMetadata(output);
|
|
2084
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2085
|
+
response = new __BaseException({
|
|
2086
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2087
|
+
$fault: "client",
|
|
2088
|
+
$metadata: $metadata,
|
|
2089
|
+
});
|
|
2090
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2091
|
+
}
|
|
2092
|
+
});
|
|
2093
|
+
}); };
|
|
2094
|
+
export var deserializeAws_restJson1CreateHostedConfigurationVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2095
|
+
var contents, data;
|
|
2096
|
+
return __generator(this, function (_a) {
|
|
2097
|
+
switch (_a.label) {
|
|
2098
|
+
case 0:
|
|
2099
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2100
|
+
return [2, deserializeAws_restJson1CreateHostedConfigurationVersionCommandError(output, context)];
|
|
2101
|
+
}
|
|
2102
|
+
contents = {
|
|
2103
|
+
$metadata: deserializeMetadata(output),
|
|
2104
|
+
ApplicationId: undefined,
|
|
2105
|
+
ConfigurationProfileId: undefined,
|
|
2106
|
+
Content: undefined,
|
|
2107
|
+
ContentType: undefined,
|
|
2108
|
+
Description: undefined,
|
|
2109
|
+
VersionNumber: undefined,
|
|
2110
|
+
};
|
|
2111
|
+
if (output.headers["application-id"] !== undefined) {
|
|
2112
|
+
contents.ApplicationId = output.headers["application-id"];
|
|
2113
|
+
}
|
|
2114
|
+
if (output.headers["configuration-profile-id"] !== undefined) {
|
|
1638
2115
|
contents.ConfigurationProfileId = output.headers["configuration-profile-id"];
|
|
1639
2116
|
}
|
|
1640
2117
|
if (output.headers["version-number"] !== undefined) {
|
|
@@ -1951,13 +2428,13 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
|
|
|
1951
2428
|
}
|
|
1952
2429
|
});
|
|
1953
2430
|
}); };
|
|
1954
|
-
export var
|
|
2431
|
+
export var deserializeAws_restJson1DeleteExtensionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1955
2432
|
var contents;
|
|
1956
2433
|
return __generator(this, function (_a) {
|
|
1957
2434
|
switch (_a.label) {
|
|
1958
2435
|
case 0:
|
|
1959
2436
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1960
|
-
return [2,
|
|
2437
|
+
return [2, deserializeAws_restJson1DeleteExtensionCommandError(output, context)];
|
|
1961
2438
|
}
|
|
1962
2439
|
contents = {
|
|
1963
2440
|
$metadata: deserializeMetadata(output),
|
|
@@ -1969,7 +2446,7 @@ export var deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = fun
|
|
|
1969
2446
|
}
|
|
1970
2447
|
});
|
|
1971
2448
|
}); };
|
|
1972
|
-
var
|
|
2449
|
+
var deserializeAws_restJson1DeleteExtensionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1973
2450
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1974
2451
|
var _c;
|
|
1975
2452
|
return __generator(this, function (_d) {
|
|
@@ -2010,39 +2487,25 @@ var deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = funct
|
|
|
2010
2487
|
}
|
|
2011
2488
|
});
|
|
2012
2489
|
}); };
|
|
2013
|
-
export var
|
|
2014
|
-
var contents
|
|
2015
|
-
return __generator(this, function (
|
|
2016
|
-
switch (
|
|
2490
|
+
export var deserializeAws_restJson1DeleteExtensionAssociationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2491
|
+
var contents;
|
|
2492
|
+
return __generator(this, function (_a) {
|
|
2493
|
+
switch (_a.label) {
|
|
2017
2494
|
case 0:
|
|
2018
|
-
if (output.statusCode !==
|
|
2019
|
-
return [2,
|
|
2495
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2496
|
+
return [2, deserializeAws_restJson1DeleteExtensionAssociationCommandError(output, context)];
|
|
2020
2497
|
}
|
|
2021
2498
|
contents = {
|
|
2022
2499
|
$metadata: deserializeMetadata(output),
|
|
2023
|
-
Description: undefined,
|
|
2024
|
-
Id: undefined,
|
|
2025
|
-
Name: undefined,
|
|
2026
2500
|
};
|
|
2027
|
-
|
|
2028
|
-
_b = __expectObject;
|
|
2029
|
-
return [4, parseBody(output.body, context)];
|
|
2501
|
+
return [4, collectBody(output.body, context)];
|
|
2030
2502
|
case 1:
|
|
2031
|
-
|
|
2032
|
-
if (data.Description !== undefined && data.Description !== null) {
|
|
2033
|
-
contents.Description = __expectString(data.Description);
|
|
2034
|
-
}
|
|
2035
|
-
if (data.Id !== undefined && data.Id !== null) {
|
|
2036
|
-
contents.Id = __expectString(data.Id);
|
|
2037
|
-
}
|
|
2038
|
-
if (data.Name !== undefined && data.Name !== null) {
|
|
2039
|
-
contents.Name = __expectString(data.Name);
|
|
2040
|
-
}
|
|
2503
|
+
_a.sent();
|
|
2041
2504
|
return [2, Promise.resolve(contents)];
|
|
2042
2505
|
}
|
|
2043
2506
|
});
|
|
2044
2507
|
}); };
|
|
2045
|
-
var
|
|
2508
|
+
var deserializeAws_restJson1DeleteExtensionAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2046
2509
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2047
2510
|
var _c;
|
|
2048
2511
|
return __generator(this, function (_d) {
|
|
@@ -2083,35 +2546,25 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
2083
2546
|
}
|
|
2084
2547
|
});
|
|
2085
2548
|
}); };
|
|
2086
|
-
export var
|
|
2087
|
-
var contents
|
|
2549
|
+
export var deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2550
|
+
var contents;
|
|
2088
2551
|
return __generator(this, function (_a) {
|
|
2089
2552
|
switch (_a.label) {
|
|
2090
2553
|
case 0:
|
|
2091
|
-
if (output.statusCode !==
|
|
2092
|
-
return [2,
|
|
2554
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2555
|
+
return [2, deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError(output, context)];
|
|
2093
2556
|
}
|
|
2094
2557
|
contents = {
|
|
2095
2558
|
$metadata: deserializeMetadata(output),
|
|
2096
|
-
ConfigurationVersion: undefined,
|
|
2097
|
-
Content: undefined,
|
|
2098
|
-
ContentType: undefined,
|
|
2099
2559
|
};
|
|
2100
|
-
if (output.headers["configuration-version"] !== undefined) {
|
|
2101
|
-
contents.ConfigurationVersion = output.headers["configuration-version"];
|
|
2102
|
-
}
|
|
2103
|
-
if (output.headers["content-type"] !== undefined) {
|
|
2104
|
-
contents.ContentType = output.headers["content-type"];
|
|
2105
|
-
}
|
|
2106
2560
|
return [4, collectBody(output.body, context)];
|
|
2107
2561
|
case 1:
|
|
2108
|
-
|
|
2109
|
-
contents.Content = data;
|
|
2562
|
+
_a.sent();
|
|
2110
2563
|
return [2, Promise.resolve(contents)];
|
|
2111
2564
|
}
|
|
2112
2565
|
});
|
|
2113
2566
|
}); };
|
|
2114
|
-
var
|
|
2567
|
+
var deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2115
2568
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2116
2569
|
var _c;
|
|
2117
2570
|
return __generator(this, function (_d) {
|
|
@@ -2152,59 +2605,39 @@ var deserializeAws_restJson1GetConfigurationCommandError = function (output, con
|
|
|
2152
2605
|
}
|
|
2153
2606
|
});
|
|
2154
2607
|
}); };
|
|
2155
|
-
export var
|
|
2608
|
+
export var deserializeAws_restJson1GetApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2156
2609
|
var contents, data, _a, _b;
|
|
2157
2610
|
return __generator(this, function (_c) {
|
|
2158
2611
|
switch (_c.label) {
|
|
2159
2612
|
case 0:
|
|
2160
2613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2161
|
-
return [2,
|
|
2614
|
+
return [2, deserializeAws_restJson1GetApplicationCommandError(output, context)];
|
|
2162
2615
|
}
|
|
2163
2616
|
contents = {
|
|
2164
2617
|
$metadata: deserializeMetadata(output),
|
|
2165
|
-
ApplicationId: undefined,
|
|
2166
2618
|
Description: undefined,
|
|
2167
2619
|
Id: undefined,
|
|
2168
|
-
LocationUri: undefined,
|
|
2169
2620
|
Name: undefined,
|
|
2170
|
-
RetrievalRoleArn: undefined,
|
|
2171
|
-
Type: undefined,
|
|
2172
|
-
Validators: undefined,
|
|
2173
2621
|
};
|
|
2174
2622
|
_a = __expectNonNull;
|
|
2175
2623
|
_b = __expectObject;
|
|
2176
2624
|
return [4, parseBody(output.body, context)];
|
|
2177
2625
|
case 1:
|
|
2178
2626
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2179
|
-
if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
|
|
2180
|
-
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2181
|
-
}
|
|
2182
2627
|
if (data.Description !== undefined && data.Description !== null) {
|
|
2183
2628
|
contents.Description = __expectString(data.Description);
|
|
2184
2629
|
}
|
|
2185
2630
|
if (data.Id !== undefined && data.Id !== null) {
|
|
2186
2631
|
contents.Id = __expectString(data.Id);
|
|
2187
2632
|
}
|
|
2188
|
-
if (data.LocationUri !== undefined && data.LocationUri !== null) {
|
|
2189
|
-
contents.LocationUri = __expectString(data.LocationUri);
|
|
2190
|
-
}
|
|
2191
2633
|
if (data.Name !== undefined && data.Name !== null) {
|
|
2192
2634
|
contents.Name = __expectString(data.Name);
|
|
2193
2635
|
}
|
|
2194
|
-
if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
|
|
2195
|
-
contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
|
|
2196
|
-
}
|
|
2197
|
-
if (data.Type !== undefined && data.Type !== null) {
|
|
2198
|
-
contents.Type = __expectString(data.Type);
|
|
2199
|
-
}
|
|
2200
|
-
if (data.Validators !== undefined && data.Validators !== null) {
|
|
2201
|
-
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
2202
|
-
}
|
|
2203
2636
|
return [2, Promise.resolve(contents)];
|
|
2204
2637
|
}
|
|
2205
2638
|
});
|
|
2206
2639
|
}); };
|
|
2207
|
-
var
|
|
2640
|
+
var deserializeAws_restJson1GetApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2208
2641
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2209
2642
|
var _c;
|
|
2210
2643
|
return __generator(this, function (_d) {
|
|
@@ -2245,36 +2678,199 @@ var deserializeAws_restJson1GetConfigurationProfileCommandError = function (outp
|
|
|
2245
2678
|
}
|
|
2246
2679
|
});
|
|
2247
2680
|
}); };
|
|
2248
|
-
export var
|
|
2249
|
-
var contents, data
|
|
2250
|
-
return __generator(this, function (
|
|
2251
|
-
switch (
|
|
2681
|
+
export var deserializeAws_restJson1GetConfigurationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2682
|
+
var contents, data;
|
|
2683
|
+
return __generator(this, function (_a) {
|
|
2684
|
+
switch (_a.label) {
|
|
2252
2685
|
case 0:
|
|
2253
2686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2254
|
-
return [2,
|
|
2687
|
+
return [2, deserializeAws_restJson1GetConfigurationCommandError(output, context)];
|
|
2255
2688
|
}
|
|
2256
2689
|
contents = {
|
|
2257
2690
|
$metadata: deserializeMetadata(output),
|
|
2258
|
-
ApplicationId: undefined,
|
|
2259
|
-
CompletedAt: undefined,
|
|
2260
|
-
ConfigurationLocationUri: undefined,
|
|
2261
|
-
ConfigurationName: undefined,
|
|
2262
|
-
ConfigurationProfileId: undefined,
|
|
2263
2691
|
ConfigurationVersion: undefined,
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
DeploymentStrategyId: undefined,
|
|
2267
|
-
Description: undefined,
|
|
2268
|
-
EnvironmentId: undefined,
|
|
2269
|
-
EventLog: undefined,
|
|
2270
|
-
FinalBakeTimeInMinutes: undefined,
|
|
2271
|
-
GrowthFactor: undefined,
|
|
2272
|
-
GrowthType: undefined,
|
|
2273
|
-
PercentageComplete: undefined,
|
|
2274
|
-
StartedAt: undefined,
|
|
2275
|
-
State: undefined,
|
|
2692
|
+
Content: undefined,
|
|
2693
|
+
ContentType: undefined,
|
|
2276
2694
|
};
|
|
2277
|
-
|
|
2695
|
+
if (output.headers["configuration-version"] !== undefined) {
|
|
2696
|
+
contents.ConfigurationVersion = output.headers["configuration-version"];
|
|
2697
|
+
}
|
|
2698
|
+
if (output.headers["content-type"] !== undefined) {
|
|
2699
|
+
contents.ContentType = output.headers["content-type"];
|
|
2700
|
+
}
|
|
2701
|
+
return [4, collectBody(output.body, context)];
|
|
2702
|
+
case 1:
|
|
2703
|
+
data = _a.sent();
|
|
2704
|
+
contents.Content = data;
|
|
2705
|
+
return [2, Promise.resolve(contents)];
|
|
2706
|
+
}
|
|
2707
|
+
});
|
|
2708
|
+
}); };
|
|
2709
|
+
var deserializeAws_restJson1GetConfigurationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2710
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2711
|
+
var _c;
|
|
2712
|
+
return __generator(this, function (_d) {
|
|
2713
|
+
switch (_d.label) {
|
|
2714
|
+
case 0:
|
|
2715
|
+
_a = [__assign({}, output)];
|
|
2716
|
+
_c = {};
|
|
2717
|
+
return [4, parseBody(output.body, context)];
|
|
2718
|
+
case 1:
|
|
2719
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2720
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2721
|
+
_b = errorCode;
|
|
2722
|
+
switch (_b) {
|
|
2723
|
+
case "BadRequestException": return [3, 2];
|
|
2724
|
+
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
2725
|
+
case "InternalServerException": return [3, 4];
|
|
2726
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
2727
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2728
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
2729
|
+
}
|
|
2730
|
+
return [3, 8];
|
|
2731
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2732
|
+
case 3: throw _d.sent();
|
|
2733
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2734
|
+
case 5: throw _d.sent();
|
|
2735
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2736
|
+
case 7: throw _d.sent();
|
|
2737
|
+
case 8:
|
|
2738
|
+
parsedBody = parsedOutput.body;
|
|
2739
|
+
$metadata = deserializeMetadata(output);
|
|
2740
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2741
|
+
response = new __BaseException({
|
|
2742
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2743
|
+
$fault: "client",
|
|
2744
|
+
$metadata: $metadata,
|
|
2745
|
+
});
|
|
2746
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2747
|
+
}
|
|
2748
|
+
});
|
|
2749
|
+
}); };
|
|
2750
|
+
export var deserializeAws_restJson1GetConfigurationProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2751
|
+
var contents, data, _a, _b;
|
|
2752
|
+
return __generator(this, function (_c) {
|
|
2753
|
+
switch (_c.label) {
|
|
2754
|
+
case 0:
|
|
2755
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2756
|
+
return [2, deserializeAws_restJson1GetConfigurationProfileCommandError(output, context)];
|
|
2757
|
+
}
|
|
2758
|
+
contents = {
|
|
2759
|
+
$metadata: deserializeMetadata(output),
|
|
2760
|
+
ApplicationId: undefined,
|
|
2761
|
+
Description: undefined,
|
|
2762
|
+
Id: undefined,
|
|
2763
|
+
LocationUri: undefined,
|
|
2764
|
+
Name: undefined,
|
|
2765
|
+
RetrievalRoleArn: undefined,
|
|
2766
|
+
Type: undefined,
|
|
2767
|
+
Validators: undefined,
|
|
2768
|
+
};
|
|
2769
|
+
_a = __expectNonNull;
|
|
2770
|
+
_b = __expectObject;
|
|
2771
|
+
return [4, parseBody(output.body, context)];
|
|
2772
|
+
case 1:
|
|
2773
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2774
|
+
if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
|
|
2775
|
+
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2776
|
+
}
|
|
2777
|
+
if (data.Description !== undefined && data.Description !== null) {
|
|
2778
|
+
contents.Description = __expectString(data.Description);
|
|
2779
|
+
}
|
|
2780
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
2781
|
+
contents.Id = __expectString(data.Id);
|
|
2782
|
+
}
|
|
2783
|
+
if (data.LocationUri !== undefined && data.LocationUri !== null) {
|
|
2784
|
+
contents.LocationUri = __expectString(data.LocationUri);
|
|
2785
|
+
}
|
|
2786
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
2787
|
+
contents.Name = __expectString(data.Name);
|
|
2788
|
+
}
|
|
2789
|
+
if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
|
|
2790
|
+
contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
|
|
2791
|
+
}
|
|
2792
|
+
if (data.Type !== undefined && data.Type !== null) {
|
|
2793
|
+
contents.Type = __expectString(data.Type);
|
|
2794
|
+
}
|
|
2795
|
+
if (data.Validators !== undefined && data.Validators !== null) {
|
|
2796
|
+
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
2797
|
+
}
|
|
2798
|
+
return [2, Promise.resolve(contents)];
|
|
2799
|
+
}
|
|
2800
|
+
});
|
|
2801
|
+
}); };
|
|
2802
|
+
var deserializeAws_restJson1GetConfigurationProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2803
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2804
|
+
var _c;
|
|
2805
|
+
return __generator(this, function (_d) {
|
|
2806
|
+
switch (_d.label) {
|
|
2807
|
+
case 0:
|
|
2808
|
+
_a = [__assign({}, output)];
|
|
2809
|
+
_c = {};
|
|
2810
|
+
return [4, parseBody(output.body, context)];
|
|
2811
|
+
case 1:
|
|
2812
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2813
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2814
|
+
_b = errorCode;
|
|
2815
|
+
switch (_b) {
|
|
2816
|
+
case "BadRequestException": return [3, 2];
|
|
2817
|
+
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
2818
|
+
case "InternalServerException": return [3, 4];
|
|
2819
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
2820
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2821
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
2822
|
+
}
|
|
2823
|
+
return [3, 8];
|
|
2824
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2825
|
+
case 3: throw _d.sent();
|
|
2826
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2827
|
+
case 5: throw _d.sent();
|
|
2828
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2829
|
+
case 7: throw _d.sent();
|
|
2830
|
+
case 8:
|
|
2831
|
+
parsedBody = parsedOutput.body;
|
|
2832
|
+
$metadata = deserializeMetadata(output);
|
|
2833
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2834
|
+
response = new __BaseException({
|
|
2835
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2836
|
+
$fault: "client",
|
|
2837
|
+
$metadata: $metadata,
|
|
2838
|
+
});
|
|
2839
|
+
throw __decorateServiceException(response, parsedBody);
|
|
2840
|
+
}
|
|
2841
|
+
});
|
|
2842
|
+
}); };
|
|
2843
|
+
export var deserializeAws_restJson1GetDeploymentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2844
|
+
var contents, data, _a, _b;
|
|
2845
|
+
return __generator(this, function (_c) {
|
|
2846
|
+
switch (_c.label) {
|
|
2847
|
+
case 0:
|
|
2848
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2849
|
+
return [2, deserializeAws_restJson1GetDeploymentCommandError(output, context)];
|
|
2850
|
+
}
|
|
2851
|
+
contents = {
|
|
2852
|
+
$metadata: deserializeMetadata(output),
|
|
2853
|
+
ApplicationId: undefined,
|
|
2854
|
+
AppliedExtensions: undefined,
|
|
2855
|
+
CompletedAt: undefined,
|
|
2856
|
+
ConfigurationLocationUri: undefined,
|
|
2857
|
+
ConfigurationName: undefined,
|
|
2858
|
+
ConfigurationProfileId: undefined,
|
|
2859
|
+
ConfigurationVersion: undefined,
|
|
2860
|
+
DeploymentDurationInMinutes: undefined,
|
|
2861
|
+
DeploymentNumber: undefined,
|
|
2862
|
+
DeploymentStrategyId: undefined,
|
|
2863
|
+
Description: undefined,
|
|
2864
|
+
EnvironmentId: undefined,
|
|
2865
|
+
EventLog: undefined,
|
|
2866
|
+
FinalBakeTimeInMinutes: undefined,
|
|
2867
|
+
GrowthFactor: undefined,
|
|
2868
|
+
GrowthType: undefined,
|
|
2869
|
+
PercentageComplete: undefined,
|
|
2870
|
+
StartedAt: undefined,
|
|
2871
|
+
State: undefined,
|
|
2872
|
+
};
|
|
2873
|
+
_a = __expectNonNull;
|
|
2278
2874
|
_b = __expectObject;
|
|
2279
2875
|
return [4, parseBody(output.body, context)];
|
|
2280
2876
|
case 1:
|
|
@@ -2282,6 +2878,9 @@ export var deserializeAws_restJson1GetDeploymentCommand = function (output, cont
|
|
|
2282
2878
|
if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
|
|
2283
2879
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2284
2880
|
}
|
|
2881
|
+
if (data.AppliedExtensions !== undefined && data.AppliedExtensions !== null) {
|
|
2882
|
+
contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
|
|
2883
|
+
}
|
|
2285
2884
|
if (data.CompletedAt !== undefined && data.CompletedAt !== null) {
|
|
2286
2885
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTime(data.CompletedAt));
|
|
2287
2886
|
}
|
|
@@ -2556,6 +3155,180 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
|
|
|
2556
3155
|
}
|
|
2557
3156
|
});
|
|
2558
3157
|
}); };
|
|
3158
|
+
export var deserializeAws_restJson1GetExtensionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3159
|
+
var contents, data, _a, _b;
|
|
3160
|
+
return __generator(this, function (_c) {
|
|
3161
|
+
switch (_c.label) {
|
|
3162
|
+
case 0:
|
|
3163
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3164
|
+
return [2, deserializeAws_restJson1GetExtensionCommandError(output, context)];
|
|
3165
|
+
}
|
|
3166
|
+
contents = {
|
|
3167
|
+
$metadata: deserializeMetadata(output),
|
|
3168
|
+
Actions: undefined,
|
|
3169
|
+
Arn: undefined,
|
|
3170
|
+
Description: undefined,
|
|
3171
|
+
Id: undefined,
|
|
3172
|
+
Name: undefined,
|
|
3173
|
+
Parameters: undefined,
|
|
3174
|
+
VersionNumber: undefined,
|
|
3175
|
+
};
|
|
3176
|
+
_a = __expectNonNull;
|
|
3177
|
+
_b = __expectObject;
|
|
3178
|
+
return [4, parseBody(output.body, context)];
|
|
3179
|
+
case 1:
|
|
3180
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3181
|
+
if (data.Actions !== undefined && data.Actions !== null) {
|
|
3182
|
+
contents.Actions = deserializeAws_restJson1ActionsMap(data.Actions, context);
|
|
3183
|
+
}
|
|
3184
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
3185
|
+
contents.Arn = __expectString(data.Arn);
|
|
3186
|
+
}
|
|
3187
|
+
if (data.Description !== undefined && data.Description !== null) {
|
|
3188
|
+
contents.Description = __expectString(data.Description);
|
|
3189
|
+
}
|
|
3190
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
3191
|
+
contents.Id = __expectString(data.Id);
|
|
3192
|
+
}
|
|
3193
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
3194
|
+
contents.Name = __expectString(data.Name);
|
|
3195
|
+
}
|
|
3196
|
+
if (data.Parameters !== undefined && data.Parameters !== null) {
|
|
3197
|
+
contents.Parameters = deserializeAws_restJson1ParameterMap(data.Parameters, context);
|
|
3198
|
+
}
|
|
3199
|
+
if (data.VersionNumber !== undefined && data.VersionNumber !== null) {
|
|
3200
|
+
contents.VersionNumber = __expectInt32(data.VersionNumber);
|
|
3201
|
+
}
|
|
3202
|
+
return [2, Promise.resolve(contents)];
|
|
3203
|
+
}
|
|
3204
|
+
});
|
|
3205
|
+
}); };
|
|
3206
|
+
var deserializeAws_restJson1GetExtensionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3207
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3208
|
+
var _c;
|
|
3209
|
+
return __generator(this, function (_d) {
|
|
3210
|
+
switch (_d.label) {
|
|
3211
|
+
case 0:
|
|
3212
|
+
_a = [__assign({}, output)];
|
|
3213
|
+
_c = {};
|
|
3214
|
+
return [4, parseBody(output.body, context)];
|
|
3215
|
+
case 1:
|
|
3216
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3217
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3218
|
+
_b = errorCode;
|
|
3219
|
+
switch (_b) {
|
|
3220
|
+
case "BadRequestException": return [3, 2];
|
|
3221
|
+
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
3222
|
+
case "InternalServerException": return [3, 4];
|
|
3223
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
3224
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3225
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
3226
|
+
}
|
|
3227
|
+
return [3, 8];
|
|
3228
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3229
|
+
case 3: throw _d.sent();
|
|
3230
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3231
|
+
case 5: throw _d.sent();
|
|
3232
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3233
|
+
case 7: throw _d.sent();
|
|
3234
|
+
case 8:
|
|
3235
|
+
parsedBody = parsedOutput.body;
|
|
3236
|
+
$metadata = deserializeMetadata(output);
|
|
3237
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3238
|
+
response = new __BaseException({
|
|
3239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3240
|
+
$fault: "client",
|
|
3241
|
+
$metadata: $metadata,
|
|
3242
|
+
});
|
|
3243
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3244
|
+
}
|
|
3245
|
+
});
|
|
3246
|
+
}); };
|
|
3247
|
+
export var deserializeAws_restJson1GetExtensionAssociationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3248
|
+
var contents, data, _a, _b;
|
|
3249
|
+
return __generator(this, function (_c) {
|
|
3250
|
+
switch (_c.label) {
|
|
3251
|
+
case 0:
|
|
3252
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3253
|
+
return [2, deserializeAws_restJson1GetExtensionAssociationCommandError(output, context)];
|
|
3254
|
+
}
|
|
3255
|
+
contents = {
|
|
3256
|
+
$metadata: deserializeMetadata(output),
|
|
3257
|
+
Arn: undefined,
|
|
3258
|
+
ExtensionArn: undefined,
|
|
3259
|
+
ExtensionVersionNumber: undefined,
|
|
3260
|
+
Id: undefined,
|
|
3261
|
+
Parameters: undefined,
|
|
3262
|
+
ResourceArn: undefined,
|
|
3263
|
+
};
|
|
3264
|
+
_a = __expectNonNull;
|
|
3265
|
+
_b = __expectObject;
|
|
3266
|
+
return [4, parseBody(output.body, context)];
|
|
3267
|
+
case 1:
|
|
3268
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3269
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
3270
|
+
contents.Arn = __expectString(data.Arn);
|
|
3271
|
+
}
|
|
3272
|
+
if (data.ExtensionArn !== undefined && data.ExtensionArn !== null) {
|
|
3273
|
+
contents.ExtensionArn = __expectString(data.ExtensionArn);
|
|
3274
|
+
}
|
|
3275
|
+
if (data.ExtensionVersionNumber !== undefined && data.ExtensionVersionNumber !== null) {
|
|
3276
|
+
contents.ExtensionVersionNumber = __expectInt32(data.ExtensionVersionNumber);
|
|
3277
|
+
}
|
|
3278
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
3279
|
+
contents.Id = __expectString(data.Id);
|
|
3280
|
+
}
|
|
3281
|
+
if (data.Parameters !== undefined && data.Parameters !== null) {
|
|
3282
|
+
contents.Parameters = deserializeAws_restJson1ParameterValueMap(data.Parameters, context);
|
|
3283
|
+
}
|
|
3284
|
+
if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
|
|
3285
|
+
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
3286
|
+
}
|
|
3287
|
+
return [2, Promise.resolve(contents)];
|
|
3288
|
+
}
|
|
3289
|
+
});
|
|
3290
|
+
}); };
|
|
3291
|
+
var deserializeAws_restJson1GetExtensionAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3292
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3293
|
+
var _c;
|
|
3294
|
+
return __generator(this, function (_d) {
|
|
3295
|
+
switch (_d.label) {
|
|
3296
|
+
case 0:
|
|
3297
|
+
_a = [__assign({}, output)];
|
|
3298
|
+
_c = {};
|
|
3299
|
+
return [4, parseBody(output.body, context)];
|
|
3300
|
+
case 1:
|
|
3301
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3302
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3303
|
+
_b = errorCode;
|
|
3304
|
+
switch (_b) {
|
|
3305
|
+
case "BadRequestException": return [3, 2];
|
|
3306
|
+
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
3307
|
+
case "InternalServerException": return [3, 4];
|
|
3308
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
3309
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3310
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
3311
|
+
}
|
|
3312
|
+
return [3, 8];
|
|
3313
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3314
|
+
case 3: throw _d.sent();
|
|
3315
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3316
|
+
case 5: throw _d.sent();
|
|
3317
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3318
|
+
case 7: throw _d.sent();
|
|
3319
|
+
case 8:
|
|
3320
|
+
parsedBody = parsedOutput.body;
|
|
3321
|
+
$metadata = deserializeMetadata(output);
|
|
3322
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3323
|
+
response = new __BaseException({
|
|
3324
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3325
|
+
$fault: "client",
|
|
3326
|
+
$metadata: $metadata,
|
|
3327
|
+
});
|
|
3328
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3329
|
+
}
|
|
3330
|
+
});
|
|
3331
|
+
}); };
|
|
2559
3332
|
export var deserializeAws_restJson1GetHostedConfigurationVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2560
3333
|
var contents, data;
|
|
2561
3334
|
return __generator(this, function (_a) {
|
|
@@ -2566,37 +3339,171 @@ export var deserializeAws_restJson1GetHostedConfigurationVersionCommand = functi
|
|
|
2566
3339
|
}
|
|
2567
3340
|
contents = {
|
|
2568
3341
|
$metadata: deserializeMetadata(output),
|
|
2569
|
-
ApplicationId: undefined,
|
|
2570
|
-
ConfigurationProfileId: undefined,
|
|
2571
|
-
Content: undefined,
|
|
2572
|
-
ContentType: undefined,
|
|
2573
|
-
Description: undefined,
|
|
2574
|
-
VersionNumber: undefined,
|
|
3342
|
+
ApplicationId: undefined,
|
|
3343
|
+
ConfigurationProfileId: undefined,
|
|
3344
|
+
Content: undefined,
|
|
3345
|
+
ContentType: undefined,
|
|
3346
|
+
Description: undefined,
|
|
3347
|
+
VersionNumber: undefined,
|
|
3348
|
+
};
|
|
3349
|
+
if (output.headers["application-id"] !== undefined) {
|
|
3350
|
+
contents.ApplicationId = output.headers["application-id"];
|
|
3351
|
+
}
|
|
3352
|
+
if (output.headers["configuration-profile-id"] !== undefined) {
|
|
3353
|
+
contents.ConfigurationProfileId = output.headers["configuration-profile-id"];
|
|
3354
|
+
}
|
|
3355
|
+
if (output.headers["version-number"] !== undefined) {
|
|
3356
|
+
contents.VersionNumber = __strictParseInt32(output.headers["version-number"]);
|
|
3357
|
+
}
|
|
3358
|
+
if (output.headers["description"] !== undefined) {
|
|
3359
|
+
contents.Description = output.headers["description"];
|
|
3360
|
+
}
|
|
3361
|
+
if (output.headers["content-type"] !== undefined) {
|
|
3362
|
+
contents.ContentType = output.headers["content-type"];
|
|
3363
|
+
}
|
|
3364
|
+
return [4, collectBody(output.body, context)];
|
|
3365
|
+
case 1:
|
|
3366
|
+
data = _a.sent();
|
|
3367
|
+
contents.Content = data;
|
|
3368
|
+
return [2, Promise.resolve(contents)];
|
|
3369
|
+
}
|
|
3370
|
+
});
|
|
3371
|
+
}); };
|
|
3372
|
+
var deserializeAws_restJson1GetHostedConfigurationVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3373
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3374
|
+
var _c;
|
|
3375
|
+
return __generator(this, function (_d) {
|
|
3376
|
+
switch (_d.label) {
|
|
3377
|
+
case 0:
|
|
3378
|
+
_a = [__assign({}, output)];
|
|
3379
|
+
_c = {};
|
|
3380
|
+
return [4, parseBody(output.body, context)];
|
|
3381
|
+
case 1:
|
|
3382
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3383
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3384
|
+
_b = errorCode;
|
|
3385
|
+
switch (_b) {
|
|
3386
|
+
case "BadRequestException": return [3, 2];
|
|
3387
|
+
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
3388
|
+
case "InternalServerException": return [3, 4];
|
|
3389
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
3390
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3391
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
3392
|
+
}
|
|
3393
|
+
return [3, 8];
|
|
3394
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3395
|
+
case 3: throw _d.sent();
|
|
3396
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3397
|
+
case 5: throw _d.sent();
|
|
3398
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3399
|
+
case 7: throw _d.sent();
|
|
3400
|
+
case 8:
|
|
3401
|
+
parsedBody = parsedOutput.body;
|
|
3402
|
+
$metadata = deserializeMetadata(output);
|
|
3403
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3404
|
+
response = new __BaseException({
|
|
3405
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3406
|
+
$fault: "client",
|
|
3407
|
+
$metadata: $metadata,
|
|
3408
|
+
});
|
|
3409
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3410
|
+
}
|
|
3411
|
+
});
|
|
3412
|
+
}); };
|
|
3413
|
+
export var deserializeAws_restJson1ListApplicationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3414
|
+
var contents, data, _a, _b;
|
|
3415
|
+
return __generator(this, function (_c) {
|
|
3416
|
+
switch (_c.label) {
|
|
3417
|
+
case 0:
|
|
3418
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3419
|
+
return [2, deserializeAws_restJson1ListApplicationsCommandError(output, context)];
|
|
3420
|
+
}
|
|
3421
|
+
contents = {
|
|
3422
|
+
$metadata: deserializeMetadata(output),
|
|
3423
|
+
Items: undefined,
|
|
3424
|
+
NextToken: undefined,
|
|
3425
|
+
};
|
|
3426
|
+
_a = __expectNonNull;
|
|
3427
|
+
_b = __expectObject;
|
|
3428
|
+
return [4, parseBody(output.body, context)];
|
|
3429
|
+
case 1:
|
|
3430
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3431
|
+
if (data.Items !== undefined && data.Items !== null) {
|
|
3432
|
+
contents.Items = deserializeAws_restJson1ApplicationList(data.Items, context);
|
|
3433
|
+
}
|
|
3434
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3435
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
3436
|
+
}
|
|
3437
|
+
return [2, Promise.resolve(contents)];
|
|
3438
|
+
}
|
|
3439
|
+
});
|
|
3440
|
+
}); };
|
|
3441
|
+
var deserializeAws_restJson1ListApplicationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3442
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3443
|
+
var _c;
|
|
3444
|
+
return __generator(this, function (_d) {
|
|
3445
|
+
switch (_d.label) {
|
|
3446
|
+
case 0:
|
|
3447
|
+
_a = [__assign({}, output)];
|
|
3448
|
+
_c = {};
|
|
3449
|
+
return [4, parseBody(output.body, context)];
|
|
3450
|
+
case 1:
|
|
3451
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
3452
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3453
|
+
_b = errorCode;
|
|
3454
|
+
switch (_b) {
|
|
3455
|
+
case "BadRequestException": return [3, 2];
|
|
3456
|
+
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
3457
|
+
case "InternalServerException": return [3, 4];
|
|
3458
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
3459
|
+
}
|
|
3460
|
+
return [3, 6];
|
|
3461
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3462
|
+
case 3: throw _d.sent();
|
|
3463
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3464
|
+
case 5: throw _d.sent();
|
|
3465
|
+
case 6:
|
|
3466
|
+
parsedBody = parsedOutput.body;
|
|
3467
|
+
$metadata = deserializeMetadata(output);
|
|
3468
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3469
|
+
response = new __BaseException({
|
|
3470
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3471
|
+
$fault: "client",
|
|
3472
|
+
$metadata: $metadata,
|
|
3473
|
+
});
|
|
3474
|
+
throw __decorateServiceException(response, parsedBody);
|
|
3475
|
+
}
|
|
3476
|
+
});
|
|
3477
|
+
}); };
|
|
3478
|
+
export var deserializeAws_restJson1ListConfigurationProfilesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3479
|
+
var contents, data, _a, _b;
|
|
3480
|
+
return __generator(this, function (_c) {
|
|
3481
|
+
switch (_c.label) {
|
|
3482
|
+
case 0:
|
|
3483
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3484
|
+
return [2, deserializeAws_restJson1ListConfigurationProfilesCommandError(output, context)];
|
|
3485
|
+
}
|
|
3486
|
+
contents = {
|
|
3487
|
+
$metadata: deserializeMetadata(output),
|
|
3488
|
+
Items: undefined,
|
|
3489
|
+
NextToken: undefined,
|
|
2575
3490
|
};
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
contents.VersionNumber = __strictParseInt32(output.headers["version-number"]);
|
|
2584
|
-
}
|
|
2585
|
-
if (output.headers["description"] !== undefined) {
|
|
2586
|
-
contents.Description = output.headers["description"];
|
|
3491
|
+
_a = __expectNonNull;
|
|
3492
|
+
_b = __expectObject;
|
|
3493
|
+
return [4, parseBody(output.body, context)];
|
|
3494
|
+
case 1:
|
|
3495
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3496
|
+
if (data.Items !== undefined && data.Items !== null) {
|
|
3497
|
+
contents.Items = deserializeAws_restJson1ConfigurationProfileSummaryList(data.Items, context);
|
|
2587
3498
|
}
|
|
2588
|
-
if (
|
|
2589
|
-
contents.
|
|
3499
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3500
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2590
3501
|
}
|
|
2591
|
-
return [4, collectBody(output.body, context)];
|
|
2592
|
-
case 1:
|
|
2593
|
-
data = _a.sent();
|
|
2594
|
-
contents.Content = data;
|
|
2595
3502
|
return [2, Promise.resolve(contents)];
|
|
2596
3503
|
}
|
|
2597
3504
|
});
|
|
2598
3505
|
}); };
|
|
2599
|
-
var
|
|
3506
|
+
var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2600
3507
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2601
3508
|
var _c;
|
|
2602
3509
|
return __generator(this, function (_d) {
|
|
@@ -2637,13 +3544,13 @@ var deserializeAws_restJson1GetHostedConfigurationVersionCommandError = function
|
|
|
2637
3544
|
}
|
|
2638
3545
|
});
|
|
2639
3546
|
}); };
|
|
2640
|
-
export var
|
|
3547
|
+
export var deserializeAws_restJson1ListDeploymentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2641
3548
|
var contents, data, _a, _b;
|
|
2642
3549
|
return __generator(this, function (_c) {
|
|
2643
3550
|
switch (_c.label) {
|
|
2644
3551
|
case 0:
|
|
2645
3552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2646
|
-
return [2,
|
|
3553
|
+
return [2, deserializeAws_restJson1ListDeploymentsCommandError(output, context)];
|
|
2647
3554
|
}
|
|
2648
3555
|
contents = {
|
|
2649
3556
|
$metadata: deserializeMetadata(output),
|
|
@@ -2656,7 +3563,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
2656
3563
|
case 1:
|
|
2657
3564
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2658
3565
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2659
|
-
contents.Items =
|
|
3566
|
+
contents.Items = deserializeAws_restJson1DeploymentList(data.Items, context);
|
|
2660
3567
|
}
|
|
2661
3568
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2662
3569
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2665,7 +3572,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
2665
3572
|
}
|
|
2666
3573
|
});
|
|
2667
3574
|
}); };
|
|
2668
|
-
var
|
|
3575
|
+
var deserializeAws_restJson1ListDeploymentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2669
3576
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2670
3577
|
var _c;
|
|
2671
3578
|
return __generator(this, function (_d) {
|
|
@@ -2683,13 +3590,17 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
2683
3590
|
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
2684
3591
|
case "InternalServerException": return [3, 4];
|
|
2685
3592
|
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
3593
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3594
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
2686
3595
|
}
|
|
2687
|
-
return [3,
|
|
3596
|
+
return [3, 8];
|
|
2688
3597
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2689
3598
|
case 3: throw _d.sent();
|
|
2690
3599
|
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2691
3600
|
case 5: throw _d.sent();
|
|
2692
|
-
case 6:
|
|
3601
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3602
|
+
case 7: throw _d.sent();
|
|
3603
|
+
case 8:
|
|
2693
3604
|
parsedBody = parsedOutput.body;
|
|
2694
3605
|
$metadata = deserializeMetadata(output);
|
|
2695
3606
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -2702,13 +3613,13 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
2702
3613
|
}
|
|
2703
3614
|
});
|
|
2704
3615
|
}); };
|
|
2705
|
-
export var
|
|
3616
|
+
export var deserializeAws_restJson1ListDeploymentStrategiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2706
3617
|
var contents, data, _a, _b;
|
|
2707
3618
|
return __generator(this, function (_c) {
|
|
2708
3619
|
switch (_c.label) {
|
|
2709
3620
|
case 0:
|
|
2710
3621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2711
|
-
return [2,
|
|
3622
|
+
return [2, deserializeAws_restJson1ListDeploymentStrategiesCommandError(output, context)];
|
|
2712
3623
|
}
|
|
2713
3624
|
contents = {
|
|
2714
3625
|
$metadata: deserializeMetadata(output),
|
|
@@ -2721,7 +3632,7 @@ export var deserializeAws_restJson1ListConfigurationProfilesCommand = function (
|
|
|
2721
3632
|
case 1:
|
|
2722
3633
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2723
3634
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2724
|
-
contents.Items =
|
|
3635
|
+
contents.Items = deserializeAws_restJson1DeploymentStrategyList(data.Items, context);
|
|
2725
3636
|
}
|
|
2726
3637
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2727
3638
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2730,7 +3641,7 @@ export var deserializeAws_restJson1ListConfigurationProfilesCommand = function (
|
|
|
2730
3641
|
}
|
|
2731
3642
|
});
|
|
2732
3643
|
}); };
|
|
2733
|
-
var
|
|
3644
|
+
var deserializeAws_restJson1ListDeploymentStrategiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2734
3645
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2735
3646
|
var _c;
|
|
2736
3647
|
return __generator(this, function (_d) {
|
|
@@ -2748,17 +3659,13 @@ var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (ou
|
|
|
2748
3659
|
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
2749
3660
|
case "InternalServerException": return [3, 4];
|
|
2750
3661
|
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
2751
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
2752
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
2753
3662
|
}
|
|
2754
|
-
return [3,
|
|
3663
|
+
return [3, 6];
|
|
2755
3664
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2756
3665
|
case 3: throw _d.sent();
|
|
2757
3666
|
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2758
3667
|
case 5: throw _d.sent();
|
|
2759
|
-
case 6:
|
|
2760
|
-
case 7: throw _d.sent();
|
|
2761
|
-
case 8:
|
|
3668
|
+
case 6:
|
|
2762
3669
|
parsedBody = parsedOutput.body;
|
|
2763
3670
|
$metadata = deserializeMetadata(output);
|
|
2764
3671
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -2771,13 +3678,13 @@ var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (ou
|
|
|
2771
3678
|
}
|
|
2772
3679
|
});
|
|
2773
3680
|
}); };
|
|
2774
|
-
export var
|
|
3681
|
+
export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2775
3682
|
var contents, data, _a, _b;
|
|
2776
3683
|
return __generator(this, function (_c) {
|
|
2777
3684
|
switch (_c.label) {
|
|
2778
3685
|
case 0:
|
|
2779
3686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2780
|
-
return [2,
|
|
3687
|
+
return [2, deserializeAws_restJson1ListEnvironmentsCommandError(output, context)];
|
|
2781
3688
|
}
|
|
2782
3689
|
contents = {
|
|
2783
3690
|
$metadata: deserializeMetadata(output),
|
|
@@ -2790,7 +3697,7 @@ export var deserializeAws_restJson1ListDeploymentsCommand = function (output, co
|
|
|
2790
3697
|
case 1:
|
|
2791
3698
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2792
3699
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2793
|
-
contents.Items =
|
|
3700
|
+
contents.Items = deserializeAws_restJson1EnvironmentList(data.Items, context);
|
|
2794
3701
|
}
|
|
2795
3702
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2796
3703
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2799,7 +3706,7 @@ export var deserializeAws_restJson1ListDeploymentsCommand = function (output, co
|
|
|
2799
3706
|
}
|
|
2800
3707
|
});
|
|
2801
3708
|
}); };
|
|
2802
|
-
var
|
|
3709
|
+
var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2803
3710
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2804
3711
|
var _c;
|
|
2805
3712
|
return __generator(this, function (_d) {
|
|
@@ -2840,13 +3747,13 @@ var deserializeAws_restJson1ListDeploymentsCommandError = function (output, cont
|
|
|
2840
3747
|
}
|
|
2841
3748
|
});
|
|
2842
3749
|
}); };
|
|
2843
|
-
export var
|
|
3750
|
+
export var deserializeAws_restJson1ListExtensionAssociationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2844
3751
|
var contents, data, _a, _b;
|
|
2845
3752
|
return __generator(this, function (_c) {
|
|
2846
3753
|
switch (_c.label) {
|
|
2847
3754
|
case 0:
|
|
2848
3755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2849
|
-
return [2,
|
|
3756
|
+
return [2, deserializeAws_restJson1ListExtensionAssociationsCommandError(output, context)];
|
|
2850
3757
|
}
|
|
2851
3758
|
contents = {
|
|
2852
3759
|
$metadata: deserializeMetadata(output),
|
|
@@ -2859,7 +3766,7 @@ export var deserializeAws_restJson1ListDeploymentStrategiesCommand = function (o
|
|
|
2859
3766
|
case 1:
|
|
2860
3767
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2861
3768
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2862
|
-
contents.Items =
|
|
3769
|
+
contents.Items = deserializeAws_restJson1ExtensionAssociationSummaries(data.Items, context);
|
|
2863
3770
|
}
|
|
2864
3771
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2865
3772
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2868,7 +3775,7 @@ export var deserializeAws_restJson1ListDeploymentStrategiesCommand = function (o
|
|
|
2868
3775
|
}
|
|
2869
3776
|
});
|
|
2870
3777
|
}); };
|
|
2871
|
-
var
|
|
3778
|
+
var deserializeAws_restJson1ListExtensionAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2872
3779
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2873
3780
|
var _c;
|
|
2874
3781
|
return __generator(this, function (_d) {
|
|
@@ -2905,13 +3812,13 @@ var deserializeAws_restJson1ListDeploymentStrategiesCommandError = function (out
|
|
|
2905
3812
|
}
|
|
2906
3813
|
});
|
|
2907
3814
|
}); };
|
|
2908
|
-
export var
|
|
3815
|
+
export var deserializeAws_restJson1ListExtensionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2909
3816
|
var contents, data, _a, _b;
|
|
2910
3817
|
return __generator(this, function (_c) {
|
|
2911
3818
|
switch (_c.label) {
|
|
2912
3819
|
case 0:
|
|
2913
3820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2914
|
-
return [2,
|
|
3821
|
+
return [2, deserializeAws_restJson1ListExtensionsCommandError(output, context)];
|
|
2915
3822
|
}
|
|
2916
3823
|
contents = {
|
|
2917
3824
|
$metadata: deserializeMetadata(output),
|
|
@@ -2924,7 +3831,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
2924
3831
|
case 1:
|
|
2925
3832
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2926
3833
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2927
|
-
contents.Items =
|
|
3834
|
+
contents.Items = deserializeAws_restJson1ExtensionSummaries(data.Items, context);
|
|
2928
3835
|
}
|
|
2929
3836
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2930
3837
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2933,7 +3840,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
2933
3840
|
}
|
|
2934
3841
|
});
|
|
2935
3842
|
}); };
|
|
2936
|
-
var
|
|
3843
|
+
var deserializeAws_restJson1ListExtensionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2937
3844
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2938
3845
|
var _c;
|
|
2939
3846
|
return __generator(this, function (_d) {
|
|
@@ -2951,17 +3858,13 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
|
|
|
2951
3858
|
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
2952
3859
|
case "InternalServerException": return [3, 4];
|
|
2953
3860
|
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
2954
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
2955
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
2956
3861
|
}
|
|
2957
|
-
return [3,
|
|
3862
|
+
return [3, 6];
|
|
2958
3863
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2959
3864
|
case 3: throw _d.sent();
|
|
2960
3865
|
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2961
3866
|
case 5: throw _d.sent();
|
|
2962
|
-
case 6:
|
|
2963
|
-
case 7: throw _d.sent();
|
|
2964
|
-
case 8:
|
|
3867
|
+
case 6:
|
|
2965
3868
|
parsedBody = parsedOutput.body;
|
|
2966
3869
|
$metadata = deserializeMetadata(output);
|
|
2967
3870
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -3119,6 +4022,7 @@ export var deserializeAws_restJson1StartDeploymentCommand = function (output, co
|
|
|
3119
4022
|
contents = {
|
|
3120
4023
|
$metadata: deserializeMetadata(output),
|
|
3121
4024
|
ApplicationId: undefined,
|
|
4025
|
+
AppliedExtensions: undefined,
|
|
3122
4026
|
CompletedAt: undefined,
|
|
3123
4027
|
ConfigurationLocationUri: undefined,
|
|
3124
4028
|
ConfigurationName: undefined,
|
|
@@ -3145,6 +4049,9 @@ export var deserializeAws_restJson1StartDeploymentCommand = function (output, co
|
|
|
3145
4049
|
if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
|
|
3146
4050
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
3147
4051
|
}
|
|
4052
|
+
if (data.AppliedExtensions !== undefined && data.AppliedExtensions !== null) {
|
|
4053
|
+
contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
|
|
4054
|
+
}
|
|
3148
4055
|
if (data.CompletedAt !== undefined && data.CompletedAt !== null) {
|
|
3149
4056
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTime(data.CompletedAt));
|
|
3150
4057
|
}
|
|
@@ -3256,6 +4163,7 @@ export var deserializeAws_restJson1StopDeploymentCommand = function (output, con
|
|
|
3256
4163
|
contents = {
|
|
3257
4164
|
$metadata: deserializeMetadata(output),
|
|
3258
4165
|
ApplicationId: undefined,
|
|
4166
|
+
AppliedExtensions: undefined,
|
|
3259
4167
|
CompletedAt: undefined,
|
|
3260
4168
|
ConfigurationLocationUri: undefined,
|
|
3261
4169
|
ConfigurationName: undefined,
|
|
@@ -3282,6 +4190,9 @@ export var deserializeAws_restJson1StopDeploymentCommand = function (output, con
|
|
|
3282
4190
|
if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
|
|
3283
4191
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
3284
4192
|
}
|
|
4193
|
+
if (data.AppliedExtensions !== undefined && data.AppliedExtensions !== null) {
|
|
4194
|
+
contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
|
|
4195
|
+
}
|
|
3285
4196
|
if (data.CompletedAt !== undefined && data.CompletedAt !== null) {
|
|
3286
4197
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTime(data.CompletedAt));
|
|
3287
4198
|
}
|
|
@@ -3455,7 +4366,173 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3455
4366
|
}
|
|
3456
4367
|
});
|
|
3457
4368
|
}); };
|
|
3458
|
-
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4369
|
+
var deserializeAws_restJson1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4370
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4371
|
+
var _c;
|
|
4372
|
+
return __generator(this, function (_d) {
|
|
4373
|
+
switch (_d.label) {
|
|
4374
|
+
case 0:
|
|
4375
|
+
_a = [__assign({}, output)];
|
|
4376
|
+
_c = {};
|
|
4377
|
+
return [4, parseBody(output.body, context)];
|
|
4378
|
+
case 1:
|
|
4379
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4380
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4381
|
+
_b = errorCode;
|
|
4382
|
+
switch (_b) {
|
|
4383
|
+
case "BadRequestException": return [3, 2];
|
|
4384
|
+
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
4385
|
+
case "InternalServerException": return [3, 4];
|
|
4386
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
4387
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
4388
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
4389
|
+
}
|
|
4390
|
+
return [3, 8];
|
|
4391
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4392
|
+
case 3: throw _d.sent();
|
|
4393
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4394
|
+
case 5: throw _d.sent();
|
|
4395
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4396
|
+
case 7: throw _d.sent();
|
|
4397
|
+
case 8:
|
|
4398
|
+
parsedBody = parsedOutput.body;
|
|
4399
|
+
$metadata = deserializeMetadata(output);
|
|
4400
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4401
|
+
response = new __BaseException({
|
|
4402
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4403
|
+
$fault: "client",
|
|
4404
|
+
$metadata: $metadata,
|
|
4405
|
+
});
|
|
4406
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4407
|
+
}
|
|
4408
|
+
});
|
|
4409
|
+
}); };
|
|
4410
|
+
export var deserializeAws_restJson1UpdateApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4411
|
+
var contents, data, _a, _b;
|
|
4412
|
+
return __generator(this, function (_c) {
|
|
4413
|
+
switch (_c.label) {
|
|
4414
|
+
case 0:
|
|
4415
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4416
|
+
return [2, deserializeAws_restJson1UpdateApplicationCommandError(output, context)];
|
|
4417
|
+
}
|
|
4418
|
+
contents = {
|
|
4419
|
+
$metadata: deserializeMetadata(output),
|
|
4420
|
+
Description: undefined,
|
|
4421
|
+
Id: undefined,
|
|
4422
|
+
Name: undefined,
|
|
4423
|
+
};
|
|
4424
|
+
_a = __expectNonNull;
|
|
4425
|
+
_b = __expectObject;
|
|
4426
|
+
return [4, parseBody(output.body, context)];
|
|
4427
|
+
case 1:
|
|
4428
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4429
|
+
if (data.Description !== undefined && data.Description !== null) {
|
|
4430
|
+
contents.Description = __expectString(data.Description);
|
|
4431
|
+
}
|
|
4432
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
4433
|
+
contents.Id = __expectString(data.Id);
|
|
4434
|
+
}
|
|
4435
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
4436
|
+
contents.Name = __expectString(data.Name);
|
|
4437
|
+
}
|
|
4438
|
+
return [2, Promise.resolve(contents)];
|
|
4439
|
+
}
|
|
4440
|
+
});
|
|
4441
|
+
}); };
|
|
4442
|
+
var deserializeAws_restJson1UpdateApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4443
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
4444
|
+
var _c;
|
|
4445
|
+
return __generator(this, function (_d) {
|
|
4446
|
+
switch (_d.label) {
|
|
4447
|
+
case 0:
|
|
4448
|
+
_a = [__assign({}, output)];
|
|
4449
|
+
_c = {};
|
|
4450
|
+
return [4, parseBody(output.body, context)];
|
|
4451
|
+
case 1:
|
|
4452
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
4453
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4454
|
+
_b = errorCode;
|
|
4455
|
+
switch (_b) {
|
|
4456
|
+
case "BadRequestException": return [3, 2];
|
|
4457
|
+
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
4458
|
+
case "InternalServerException": return [3, 4];
|
|
4459
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
4460
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
4461
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
4462
|
+
}
|
|
4463
|
+
return [3, 8];
|
|
4464
|
+
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
4465
|
+
case 3: throw _d.sent();
|
|
4466
|
+
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
4467
|
+
case 5: throw _d.sent();
|
|
4468
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4469
|
+
case 7: throw _d.sent();
|
|
4470
|
+
case 8:
|
|
4471
|
+
parsedBody = parsedOutput.body;
|
|
4472
|
+
$metadata = deserializeMetadata(output);
|
|
4473
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4474
|
+
response = new __BaseException({
|
|
4475
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4476
|
+
$fault: "client",
|
|
4477
|
+
$metadata: $metadata,
|
|
4478
|
+
});
|
|
4479
|
+
throw __decorateServiceException(response, parsedBody);
|
|
4480
|
+
}
|
|
4481
|
+
});
|
|
4482
|
+
}); };
|
|
4483
|
+
export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4484
|
+
var contents, data, _a, _b;
|
|
4485
|
+
return __generator(this, function (_c) {
|
|
4486
|
+
switch (_c.label) {
|
|
4487
|
+
case 0:
|
|
4488
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4489
|
+
return [2, deserializeAws_restJson1UpdateConfigurationProfileCommandError(output, context)];
|
|
4490
|
+
}
|
|
4491
|
+
contents = {
|
|
4492
|
+
$metadata: deserializeMetadata(output),
|
|
4493
|
+
ApplicationId: undefined,
|
|
4494
|
+
Description: undefined,
|
|
4495
|
+
Id: undefined,
|
|
4496
|
+
LocationUri: undefined,
|
|
4497
|
+
Name: undefined,
|
|
4498
|
+
RetrievalRoleArn: undefined,
|
|
4499
|
+
Type: undefined,
|
|
4500
|
+
Validators: undefined,
|
|
4501
|
+
};
|
|
4502
|
+
_a = __expectNonNull;
|
|
4503
|
+
_b = __expectObject;
|
|
4504
|
+
return [4, parseBody(output.body, context)];
|
|
4505
|
+
case 1:
|
|
4506
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4507
|
+
if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
|
|
4508
|
+
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
4509
|
+
}
|
|
4510
|
+
if (data.Description !== undefined && data.Description !== null) {
|
|
4511
|
+
contents.Description = __expectString(data.Description);
|
|
4512
|
+
}
|
|
4513
|
+
if (data.Id !== undefined && data.Id !== null) {
|
|
4514
|
+
contents.Id = __expectString(data.Id);
|
|
4515
|
+
}
|
|
4516
|
+
if (data.LocationUri !== undefined && data.LocationUri !== null) {
|
|
4517
|
+
contents.LocationUri = __expectString(data.LocationUri);
|
|
4518
|
+
}
|
|
4519
|
+
if (data.Name !== undefined && data.Name !== null) {
|
|
4520
|
+
contents.Name = __expectString(data.Name);
|
|
4521
|
+
}
|
|
4522
|
+
if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
|
|
4523
|
+
contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
|
|
4524
|
+
}
|
|
4525
|
+
if (data.Type !== undefined && data.Type !== null) {
|
|
4526
|
+
contents.Type = __expectString(data.Type);
|
|
4527
|
+
}
|
|
4528
|
+
if (data.Validators !== undefined && data.Validators !== null) {
|
|
4529
|
+
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
4530
|
+
}
|
|
4531
|
+
return [2, Promise.resolve(contents)];
|
|
4532
|
+
}
|
|
4533
|
+
});
|
|
4534
|
+
}); };
|
|
4535
|
+
var deserializeAws_restJson1UpdateConfigurationProfileCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3459
4536
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3460
4537
|
var _c;
|
|
3461
4538
|
return __generator(this, function (_d) {
|
|
@@ -3496,39 +4573,59 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3496
4573
|
}
|
|
3497
4574
|
});
|
|
3498
4575
|
}); };
|
|
3499
|
-
export var
|
|
4576
|
+
export var deserializeAws_restJson1UpdateDeploymentStrategyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3500
4577
|
var contents, data, _a, _b;
|
|
3501
4578
|
return __generator(this, function (_c) {
|
|
3502
4579
|
switch (_c.label) {
|
|
3503
4580
|
case 0:
|
|
3504
4581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3505
|
-
return [2,
|
|
4582
|
+
return [2, deserializeAws_restJson1UpdateDeploymentStrategyCommandError(output, context)];
|
|
3506
4583
|
}
|
|
3507
4584
|
contents = {
|
|
3508
4585
|
$metadata: deserializeMetadata(output),
|
|
4586
|
+
DeploymentDurationInMinutes: undefined,
|
|
3509
4587
|
Description: undefined,
|
|
4588
|
+
FinalBakeTimeInMinutes: undefined,
|
|
4589
|
+
GrowthFactor: undefined,
|
|
4590
|
+
GrowthType: undefined,
|
|
3510
4591
|
Id: undefined,
|
|
3511
4592
|
Name: undefined,
|
|
4593
|
+
ReplicateTo: undefined,
|
|
3512
4594
|
};
|
|
3513
4595
|
_a = __expectNonNull;
|
|
3514
4596
|
_b = __expectObject;
|
|
3515
4597
|
return [4, parseBody(output.body, context)];
|
|
3516
4598
|
case 1:
|
|
3517
4599
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
4600
|
+
if (data.DeploymentDurationInMinutes !== undefined && data.DeploymentDurationInMinutes !== null) {
|
|
4601
|
+
contents.DeploymentDurationInMinutes = __expectInt32(data.DeploymentDurationInMinutes);
|
|
4602
|
+
}
|
|
3518
4603
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3519
4604
|
contents.Description = __expectString(data.Description);
|
|
3520
4605
|
}
|
|
4606
|
+
if (data.FinalBakeTimeInMinutes !== undefined && data.FinalBakeTimeInMinutes !== null) {
|
|
4607
|
+
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
4608
|
+
}
|
|
4609
|
+
if (data.GrowthFactor !== undefined && data.GrowthFactor !== null) {
|
|
4610
|
+
contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor);
|
|
4611
|
+
}
|
|
4612
|
+
if (data.GrowthType !== undefined && data.GrowthType !== null) {
|
|
4613
|
+
contents.GrowthType = __expectString(data.GrowthType);
|
|
4614
|
+
}
|
|
3521
4615
|
if (data.Id !== undefined && data.Id !== null) {
|
|
3522
4616
|
contents.Id = __expectString(data.Id);
|
|
3523
4617
|
}
|
|
3524
4618
|
if (data.Name !== undefined && data.Name !== null) {
|
|
3525
4619
|
contents.Name = __expectString(data.Name);
|
|
3526
4620
|
}
|
|
4621
|
+
if (data.ReplicateTo !== undefined && data.ReplicateTo !== null) {
|
|
4622
|
+
contents.ReplicateTo = __expectString(data.ReplicateTo);
|
|
4623
|
+
}
|
|
3527
4624
|
return [2, Promise.resolve(contents)];
|
|
3528
4625
|
}
|
|
3529
4626
|
});
|
|
3530
4627
|
}); };
|
|
3531
|
-
var
|
|
4628
|
+
var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3532
4629
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3533
4630
|
var _c;
|
|
3534
4631
|
return __generator(this, function (_d) {
|
|
@@ -3569,24 +4666,22 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
|
|
|
3569
4666
|
}
|
|
3570
4667
|
});
|
|
3571
4668
|
}); };
|
|
3572
|
-
export var
|
|
4669
|
+
export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3573
4670
|
var contents, data, _a, _b;
|
|
3574
4671
|
return __generator(this, function (_c) {
|
|
3575
4672
|
switch (_c.label) {
|
|
3576
4673
|
case 0:
|
|
3577
4674
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3578
|
-
return [2,
|
|
4675
|
+
return [2, deserializeAws_restJson1UpdateEnvironmentCommandError(output, context)];
|
|
3579
4676
|
}
|
|
3580
4677
|
contents = {
|
|
3581
4678
|
$metadata: deserializeMetadata(output),
|
|
3582
4679
|
ApplicationId: undefined,
|
|
3583
4680
|
Description: undefined,
|
|
3584
4681
|
Id: undefined,
|
|
3585
|
-
|
|
4682
|
+
Monitors: undefined,
|
|
3586
4683
|
Name: undefined,
|
|
3587
|
-
|
|
3588
|
-
Type: undefined,
|
|
3589
|
-
Validators: undefined,
|
|
4684
|
+
State: undefined,
|
|
3590
4685
|
};
|
|
3591
4686
|
_a = __expectNonNull;
|
|
3592
4687
|
_b = __expectObject;
|
|
@@ -3602,26 +4697,20 @@ export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function
|
|
|
3602
4697
|
if (data.Id !== undefined && data.Id !== null) {
|
|
3603
4698
|
contents.Id = __expectString(data.Id);
|
|
3604
4699
|
}
|
|
3605
|
-
if (data.
|
|
3606
|
-
contents.
|
|
4700
|
+
if (data.Monitors !== undefined && data.Monitors !== null) {
|
|
4701
|
+
contents.Monitors = deserializeAws_restJson1MonitorList(data.Monitors, context);
|
|
3607
4702
|
}
|
|
3608
4703
|
if (data.Name !== undefined && data.Name !== null) {
|
|
3609
4704
|
contents.Name = __expectString(data.Name);
|
|
3610
4705
|
}
|
|
3611
|
-
if (data.
|
|
3612
|
-
contents.
|
|
3613
|
-
}
|
|
3614
|
-
if (data.Type !== undefined && data.Type !== null) {
|
|
3615
|
-
contents.Type = __expectString(data.Type);
|
|
3616
|
-
}
|
|
3617
|
-
if (data.Validators !== undefined && data.Validators !== null) {
|
|
3618
|
-
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
4706
|
+
if (data.State !== undefined && data.State !== null) {
|
|
4707
|
+
contents.State = __expectString(data.State);
|
|
3619
4708
|
}
|
|
3620
4709
|
return [2, Promise.resolve(contents)];
|
|
3621
4710
|
}
|
|
3622
4711
|
});
|
|
3623
4712
|
}); };
|
|
3624
|
-
var
|
|
4713
|
+
var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3625
4714
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3626
4715
|
var _c;
|
|
3627
4716
|
return __generator(this, function (_d) {
|
|
@@ -3662,59 +4751,55 @@ var deserializeAws_restJson1UpdateConfigurationProfileCommandError = function (o
|
|
|
3662
4751
|
}
|
|
3663
4752
|
});
|
|
3664
4753
|
}); };
|
|
3665
|
-
export var
|
|
4754
|
+
export var deserializeAws_restJson1UpdateExtensionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3666
4755
|
var contents, data, _a, _b;
|
|
3667
4756
|
return __generator(this, function (_c) {
|
|
3668
4757
|
switch (_c.label) {
|
|
3669
4758
|
case 0:
|
|
3670
4759
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3671
|
-
return [2,
|
|
4760
|
+
return [2, deserializeAws_restJson1UpdateExtensionCommandError(output, context)];
|
|
3672
4761
|
}
|
|
3673
4762
|
contents = {
|
|
3674
4763
|
$metadata: deserializeMetadata(output),
|
|
3675
|
-
|
|
4764
|
+
Actions: undefined,
|
|
4765
|
+
Arn: undefined,
|
|
3676
4766
|
Description: undefined,
|
|
3677
|
-
FinalBakeTimeInMinutes: undefined,
|
|
3678
|
-
GrowthFactor: undefined,
|
|
3679
|
-
GrowthType: undefined,
|
|
3680
4767
|
Id: undefined,
|
|
3681
4768
|
Name: undefined,
|
|
3682
|
-
|
|
4769
|
+
Parameters: undefined,
|
|
4770
|
+
VersionNumber: undefined,
|
|
3683
4771
|
};
|
|
3684
4772
|
_a = __expectNonNull;
|
|
3685
4773
|
_b = __expectObject;
|
|
3686
4774
|
return [4, parseBody(output.body, context)];
|
|
3687
4775
|
case 1:
|
|
3688
4776
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3689
|
-
if (data.
|
|
3690
|
-
contents.
|
|
4777
|
+
if (data.Actions !== undefined && data.Actions !== null) {
|
|
4778
|
+
contents.Actions = deserializeAws_restJson1ActionsMap(data.Actions, context);
|
|
4779
|
+
}
|
|
4780
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
4781
|
+
contents.Arn = __expectString(data.Arn);
|
|
3691
4782
|
}
|
|
3692
4783
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3693
4784
|
contents.Description = __expectString(data.Description);
|
|
3694
4785
|
}
|
|
3695
|
-
if (data.FinalBakeTimeInMinutes !== undefined && data.FinalBakeTimeInMinutes !== null) {
|
|
3696
|
-
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
3697
|
-
}
|
|
3698
|
-
if (data.GrowthFactor !== undefined && data.GrowthFactor !== null) {
|
|
3699
|
-
contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor);
|
|
3700
|
-
}
|
|
3701
|
-
if (data.GrowthType !== undefined && data.GrowthType !== null) {
|
|
3702
|
-
contents.GrowthType = __expectString(data.GrowthType);
|
|
3703
|
-
}
|
|
3704
4786
|
if (data.Id !== undefined && data.Id !== null) {
|
|
3705
4787
|
contents.Id = __expectString(data.Id);
|
|
3706
4788
|
}
|
|
3707
4789
|
if (data.Name !== undefined && data.Name !== null) {
|
|
3708
4790
|
contents.Name = __expectString(data.Name);
|
|
3709
4791
|
}
|
|
3710
|
-
if (data.
|
|
3711
|
-
contents.
|
|
4792
|
+
if (data.Parameters !== undefined && data.Parameters !== null) {
|
|
4793
|
+
contents.Parameters = deserializeAws_restJson1ParameterMap(data.Parameters, context);
|
|
4794
|
+
}
|
|
4795
|
+
if (data.VersionNumber !== undefined && data.VersionNumber !== null) {
|
|
4796
|
+
contents.VersionNumber = __expectInt32(data.VersionNumber);
|
|
3712
4797
|
}
|
|
3713
4798
|
return [2, Promise.resolve(contents)];
|
|
3714
4799
|
}
|
|
3715
4800
|
});
|
|
3716
4801
|
}); };
|
|
3717
|
-
var
|
|
4802
|
+
var deserializeAws_restJson1UpdateExtensionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3718
4803
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3719
4804
|
var _c;
|
|
3720
4805
|
return __generator(this, function (_d) {
|
|
@@ -3730,19 +4815,23 @@ var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (out
|
|
|
3730
4815
|
switch (_b) {
|
|
3731
4816
|
case "BadRequestException": return [3, 2];
|
|
3732
4817
|
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
3733
|
-
case "
|
|
3734
|
-
case "com.amazonaws.appconfig#
|
|
3735
|
-
case "
|
|
3736
|
-
case "com.amazonaws.appconfig#
|
|
4818
|
+
case "ConflictException": return [3, 4];
|
|
4819
|
+
case "com.amazonaws.appconfig#ConflictException": return [3, 4];
|
|
4820
|
+
case "InternalServerException": return [3, 6];
|
|
4821
|
+
case "com.amazonaws.appconfig#InternalServerException": return [3, 6];
|
|
4822
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
4823
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 8];
|
|
3737
4824
|
}
|
|
3738
|
-
return [3,
|
|
4825
|
+
return [3, 10];
|
|
3739
4826
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3740
4827
|
case 3: throw _d.sent();
|
|
3741
|
-
case 4: return [4,
|
|
4828
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3742
4829
|
case 5: throw _d.sent();
|
|
3743
|
-
case 6: return [4,
|
|
4830
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3744
4831
|
case 7: throw _d.sent();
|
|
3745
|
-
case 8:
|
|
4832
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4833
|
+
case 9: throw _d.sent();
|
|
4834
|
+
case 10:
|
|
3746
4835
|
parsedBody = parsedOutput.body;
|
|
3747
4836
|
$metadata = deserializeMetadata(output);
|
|
3748
4837
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -3755,51 +4844,51 @@ var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (out
|
|
|
3755
4844
|
}
|
|
3756
4845
|
});
|
|
3757
4846
|
}); };
|
|
3758
|
-
export var
|
|
4847
|
+
export var deserializeAws_restJson1UpdateExtensionAssociationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3759
4848
|
var contents, data, _a, _b;
|
|
3760
4849
|
return __generator(this, function (_c) {
|
|
3761
4850
|
switch (_c.label) {
|
|
3762
4851
|
case 0:
|
|
3763
4852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3764
|
-
return [2,
|
|
4853
|
+
return [2, deserializeAws_restJson1UpdateExtensionAssociationCommandError(output, context)];
|
|
3765
4854
|
}
|
|
3766
4855
|
contents = {
|
|
3767
4856
|
$metadata: deserializeMetadata(output),
|
|
3768
|
-
|
|
3769
|
-
|
|
4857
|
+
Arn: undefined,
|
|
4858
|
+
ExtensionArn: undefined,
|
|
4859
|
+
ExtensionVersionNumber: undefined,
|
|
3770
4860
|
Id: undefined,
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
State: undefined,
|
|
4861
|
+
Parameters: undefined,
|
|
4862
|
+
ResourceArn: undefined,
|
|
3774
4863
|
};
|
|
3775
4864
|
_a = __expectNonNull;
|
|
3776
4865
|
_b = __expectObject;
|
|
3777
4866
|
return [4, parseBody(output.body, context)];
|
|
3778
4867
|
case 1:
|
|
3779
4868
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3780
|
-
if (data.
|
|
3781
|
-
contents.
|
|
4869
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
4870
|
+
contents.Arn = __expectString(data.Arn);
|
|
3782
4871
|
}
|
|
3783
|
-
if (data.
|
|
3784
|
-
contents.
|
|
4872
|
+
if (data.ExtensionArn !== undefined && data.ExtensionArn !== null) {
|
|
4873
|
+
contents.ExtensionArn = __expectString(data.ExtensionArn);
|
|
4874
|
+
}
|
|
4875
|
+
if (data.ExtensionVersionNumber !== undefined && data.ExtensionVersionNumber !== null) {
|
|
4876
|
+
contents.ExtensionVersionNumber = __expectInt32(data.ExtensionVersionNumber);
|
|
3785
4877
|
}
|
|
3786
4878
|
if (data.Id !== undefined && data.Id !== null) {
|
|
3787
4879
|
contents.Id = __expectString(data.Id);
|
|
3788
4880
|
}
|
|
3789
|
-
if (data.
|
|
3790
|
-
contents.
|
|
3791
|
-
}
|
|
3792
|
-
if (data.Name !== undefined && data.Name !== null) {
|
|
3793
|
-
contents.Name = __expectString(data.Name);
|
|
4881
|
+
if (data.Parameters !== undefined && data.Parameters !== null) {
|
|
4882
|
+
contents.Parameters = deserializeAws_restJson1ParameterValueMap(data.Parameters, context);
|
|
3794
4883
|
}
|
|
3795
|
-
if (data.
|
|
3796
|
-
contents.
|
|
4884
|
+
if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
|
|
4885
|
+
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
3797
4886
|
}
|
|
3798
4887
|
return [2, Promise.resolve(contents)];
|
|
3799
4888
|
}
|
|
3800
4889
|
});
|
|
3801
4890
|
}); };
|
|
3802
|
-
var
|
|
4891
|
+
var deserializeAws_restJson1UpdateExtensionAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3803
4892
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3804
4893
|
var _c;
|
|
3805
4894
|
return __generator(this, function (_d) {
|
|
@@ -3989,6 +5078,29 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
3989
5078
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
3990
5079
|
});
|
|
3991
5080
|
}); };
|
|
5081
|
+
var serializeAws_restJson1Action = function (input, context) {
|
|
5082
|
+
return __assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.Uri != null && { Uri: input.Uri }));
|
|
5083
|
+
};
|
|
5084
|
+
var serializeAws_restJson1ActionList = function (input, context) {
|
|
5085
|
+
return input
|
|
5086
|
+
.filter(function (e) { return e != null; })
|
|
5087
|
+
.map(function (entry) {
|
|
5088
|
+
if (entry === null) {
|
|
5089
|
+
return null;
|
|
5090
|
+
}
|
|
5091
|
+
return serializeAws_restJson1Action(entry, context);
|
|
5092
|
+
});
|
|
5093
|
+
};
|
|
5094
|
+
var serializeAws_restJson1ActionsMap = function (input, context) {
|
|
5095
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
5096
|
+
var _b;
|
|
5097
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
5098
|
+
if (value === null) {
|
|
5099
|
+
return acc;
|
|
5100
|
+
}
|
|
5101
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1ActionList(value, context), _b));
|
|
5102
|
+
}, {});
|
|
5103
|
+
};
|
|
3992
5104
|
var serializeAws_restJson1Monitor = function (input, context) {
|
|
3993
5105
|
return __assign(__assign({}, (input.AlarmArn != null && { AlarmArn: input.AlarmArn })), (input.AlarmRoleArn != null && { AlarmRoleArn: input.AlarmRoleArn }));
|
|
3994
5106
|
};
|
|
@@ -4002,6 +5114,29 @@ var serializeAws_restJson1MonitorList = function (input, context) {
|
|
|
4002
5114
|
return serializeAws_restJson1Monitor(entry, context);
|
|
4003
5115
|
});
|
|
4004
5116
|
};
|
|
5117
|
+
var serializeAws_restJson1Parameter = function (input, context) {
|
|
5118
|
+
return __assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Required != null && { Required: input.Required }));
|
|
5119
|
+
};
|
|
5120
|
+
var serializeAws_restJson1ParameterMap = function (input, context) {
|
|
5121
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
5122
|
+
var _b;
|
|
5123
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
5124
|
+
if (value === null) {
|
|
5125
|
+
return acc;
|
|
5126
|
+
}
|
|
5127
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1Parameter(value, context), _b));
|
|
5128
|
+
}, {});
|
|
5129
|
+
};
|
|
5130
|
+
var serializeAws_restJson1ParameterValueMap = function (input, context) {
|
|
5131
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
5132
|
+
var _b;
|
|
5133
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
5134
|
+
if (value === null) {
|
|
5135
|
+
return acc;
|
|
5136
|
+
}
|
|
5137
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = value, _b));
|
|
5138
|
+
}, {});
|
|
5139
|
+
};
|
|
4005
5140
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
4006
5141
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
4007
5142
|
var _b;
|
|
@@ -4025,6 +5160,57 @@ var serializeAws_restJson1ValidatorList = function (input, context) {
|
|
|
4025
5160
|
return serializeAws_restJson1Validator(entry, context);
|
|
4026
5161
|
});
|
|
4027
5162
|
};
|
|
5163
|
+
var deserializeAws_restJson1Action = function (output, context) {
|
|
5164
|
+
return {
|
|
5165
|
+
Description: __expectString(output.Description),
|
|
5166
|
+
Name: __expectString(output.Name),
|
|
5167
|
+
RoleArn: __expectString(output.RoleArn),
|
|
5168
|
+
Uri: __expectString(output.Uri),
|
|
5169
|
+
};
|
|
5170
|
+
};
|
|
5171
|
+
var deserializeAws_restJson1ActionInvocation = function (output, context) {
|
|
5172
|
+
return {
|
|
5173
|
+
ActionName: __expectString(output.ActionName),
|
|
5174
|
+
ErrorCode: __expectString(output.ErrorCode),
|
|
5175
|
+
ErrorMessage: __expectString(output.ErrorMessage),
|
|
5176
|
+
ExtensionIdentifier: __expectString(output.ExtensionIdentifier),
|
|
5177
|
+
InvocationId: __expectString(output.InvocationId),
|
|
5178
|
+
RoleArn: __expectString(output.RoleArn),
|
|
5179
|
+
Uri: __expectString(output.Uri),
|
|
5180
|
+
};
|
|
5181
|
+
};
|
|
5182
|
+
var deserializeAws_restJson1ActionInvocations = function (output, context) {
|
|
5183
|
+
var retVal = (output || [])
|
|
5184
|
+
.filter(function (e) { return e != null; })
|
|
5185
|
+
.map(function (entry) {
|
|
5186
|
+
if (entry === null) {
|
|
5187
|
+
return null;
|
|
5188
|
+
}
|
|
5189
|
+
return deserializeAws_restJson1ActionInvocation(entry, context);
|
|
5190
|
+
});
|
|
5191
|
+
return retVal;
|
|
5192
|
+
};
|
|
5193
|
+
var deserializeAws_restJson1ActionList = function (output, context) {
|
|
5194
|
+
var retVal = (output || [])
|
|
5195
|
+
.filter(function (e) { return e != null; })
|
|
5196
|
+
.map(function (entry) {
|
|
5197
|
+
if (entry === null) {
|
|
5198
|
+
return null;
|
|
5199
|
+
}
|
|
5200
|
+
return deserializeAws_restJson1Action(entry, context);
|
|
5201
|
+
});
|
|
5202
|
+
return retVal;
|
|
5203
|
+
};
|
|
5204
|
+
var deserializeAws_restJson1ActionsMap = function (output, context) {
|
|
5205
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
5206
|
+
var _b;
|
|
5207
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
5208
|
+
if (value === null) {
|
|
5209
|
+
return acc;
|
|
5210
|
+
}
|
|
5211
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ActionList(value, context), _b));
|
|
5212
|
+
}, {});
|
|
5213
|
+
};
|
|
4028
5214
|
var deserializeAws_restJson1Application = function (output, context) {
|
|
4029
5215
|
return {
|
|
4030
5216
|
Description: __expectString(output.Description),
|
|
@@ -4043,6 +5229,25 @@ var deserializeAws_restJson1ApplicationList = function (output, context) {
|
|
|
4043
5229
|
});
|
|
4044
5230
|
return retVal;
|
|
4045
5231
|
};
|
|
5232
|
+
var deserializeAws_restJson1AppliedExtension = function (output, context) {
|
|
5233
|
+
return {
|
|
5234
|
+
ExtensionAssociationId: __expectString(output.ExtensionAssociationId),
|
|
5235
|
+
ExtensionId: __expectString(output.ExtensionId),
|
|
5236
|
+
Parameters: output.Parameters != null ? deserializeAws_restJson1ParameterValueMap(output.Parameters, context) : undefined,
|
|
5237
|
+
VersionNumber: __expectInt32(output.VersionNumber),
|
|
5238
|
+
};
|
|
5239
|
+
};
|
|
5240
|
+
var deserializeAws_restJson1AppliedExtensions = function (output, context) {
|
|
5241
|
+
var retVal = (output || [])
|
|
5242
|
+
.filter(function (e) { return e != null; })
|
|
5243
|
+
.map(function (entry) {
|
|
5244
|
+
if (entry === null) {
|
|
5245
|
+
return null;
|
|
5246
|
+
}
|
|
5247
|
+
return deserializeAws_restJson1AppliedExtension(entry, context);
|
|
5248
|
+
});
|
|
5249
|
+
return retVal;
|
|
5250
|
+
};
|
|
4046
5251
|
var deserializeAws_restJson1BadRequestDetails = function (output, context) {
|
|
4047
5252
|
if (output.InvalidConfiguration !== undefined && output.InvalidConfiguration !== null) {
|
|
4048
5253
|
return {
|
|
@@ -4076,6 +5281,9 @@ var deserializeAws_restJson1ConfigurationProfileSummaryList = function (output,
|
|
|
4076
5281
|
};
|
|
4077
5282
|
var deserializeAws_restJson1DeploymentEvent = function (output, context) {
|
|
4078
5283
|
return {
|
|
5284
|
+
ActionInvocations: output.ActionInvocations != null
|
|
5285
|
+
? deserializeAws_restJson1ActionInvocations(output.ActionInvocations, context)
|
|
5286
|
+
: undefined,
|
|
4079
5287
|
Description: __expectString(output.Description),
|
|
4080
5288
|
EventType: __expectString(output.EventType),
|
|
4081
5289
|
OccurredAt: output.OccurredAt != null ? __expectNonNull(__parseRfc3339DateTime(output.OccurredAt)) : undefined,
|
|
@@ -4163,6 +5371,44 @@ var deserializeAws_restJson1EnvironmentList = function (output, context) {
|
|
|
4163
5371
|
});
|
|
4164
5372
|
return retVal;
|
|
4165
5373
|
};
|
|
5374
|
+
var deserializeAws_restJson1ExtensionAssociationSummaries = function (output, context) {
|
|
5375
|
+
var retVal = (output || [])
|
|
5376
|
+
.filter(function (e) { return e != null; })
|
|
5377
|
+
.map(function (entry) {
|
|
5378
|
+
if (entry === null) {
|
|
5379
|
+
return null;
|
|
5380
|
+
}
|
|
5381
|
+
return deserializeAws_restJson1ExtensionAssociationSummary(entry, context);
|
|
5382
|
+
});
|
|
5383
|
+
return retVal;
|
|
5384
|
+
};
|
|
5385
|
+
var deserializeAws_restJson1ExtensionAssociationSummary = function (output, context) {
|
|
5386
|
+
return {
|
|
5387
|
+
ExtensionArn: __expectString(output.ExtensionArn),
|
|
5388
|
+
Id: __expectString(output.Id),
|
|
5389
|
+
ResourceArn: __expectString(output.ResourceArn),
|
|
5390
|
+
};
|
|
5391
|
+
};
|
|
5392
|
+
var deserializeAws_restJson1ExtensionSummaries = function (output, context) {
|
|
5393
|
+
var retVal = (output || [])
|
|
5394
|
+
.filter(function (e) { return e != null; })
|
|
5395
|
+
.map(function (entry) {
|
|
5396
|
+
if (entry === null) {
|
|
5397
|
+
return null;
|
|
5398
|
+
}
|
|
5399
|
+
return deserializeAws_restJson1ExtensionSummary(entry, context);
|
|
5400
|
+
});
|
|
5401
|
+
return retVal;
|
|
5402
|
+
};
|
|
5403
|
+
var deserializeAws_restJson1ExtensionSummary = function (output, context) {
|
|
5404
|
+
return {
|
|
5405
|
+
Arn: __expectString(output.Arn),
|
|
5406
|
+
Description: __expectString(output.Description),
|
|
5407
|
+
Id: __expectString(output.Id),
|
|
5408
|
+
Name: __expectString(output.Name),
|
|
5409
|
+
VersionNumber: __expectInt32(output.VersionNumber),
|
|
5410
|
+
};
|
|
5411
|
+
};
|
|
4166
5412
|
var deserializeAws_restJson1HostedConfigurationVersionSummary = function (output, context) {
|
|
4167
5413
|
return {
|
|
4168
5414
|
ApplicationId: __expectString(output.ApplicationId),
|
|
@@ -4189,6 +5435,7 @@ var deserializeAws_restJson1InvalidConfigurationDetail = function (output, conte
|
|
|
4189
5435
|
Location: __expectString(output.Location),
|
|
4190
5436
|
Reason: __expectString(output.Reason),
|
|
4191
5437
|
Type: __expectString(output.Type),
|
|
5438
|
+
Value: __expectString(output.Value),
|
|
4192
5439
|
};
|
|
4193
5440
|
};
|
|
4194
5441
|
var deserializeAws_restJson1InvalidConfigurationDetailList = function (output, context) {
|
|
@@ -4219,6 +5466,32 @@ var deserializeAws_restJson1MonitorList = function (output, context) {
|
|
|
4219
5466
|
});
|
|
4220
5467
|
return retVal;
|
|
4221
5468
|
};
|
|
5469
|
+
var deserializeAws_restJson1Parameter = function (output, context) {
|
|
5470
|
+
return {
|
|
5471
|
+
Description: __expectString(output.Description),
|
|
5472
|
+
Required: __expectBoolean(output.Required),
|
|
5473
|
+
};
|
|
5474
|
+
};
|
|
5475
|
+
var deserializeAws_restJson1ParameterMap = function (output, context) {
|
|
5476
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
5477
|
+
var _b;
|
|
5478
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
5479
|
+
if (value === null) {
|
|
5480
|
+
return acc;
|
|
5481
|
+
}
|
|
5482
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1Parameter(value, context), _b));
|
|
5483
|
+
}, {});
|
|
5484
|
+
};
|
|
5485
|
+
var deserializeAws_restJson1ParameterValueMap = function (output, context) {
|
|
5486
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
5487
|
+
var _b;
|
|
5488
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
5489
|
+
if (value === null) {
|
|
5490
|
+
return acc;
|
|
5491
|
+
}
|
|
5492
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
5493
|
+
}, {});
|
|
5494
|
+
};
|
|
4222
5495
|
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
4223
5496
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
4224
5497
|
var _b;
|
|
@@ -4295,6 +5568,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
4295
5568
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
4296
5569
|
var sanitizeErrorCode = function (rawValue) {
|
|
4297
5570
|
var cleanValue = rawValue;
|
|
5571
|
+
if (typeof cleanValue === "number") {
|
|
5572
|
+
cleanValue = cleanValue.toString();
|
|
5573
|
+
}
|
|
4298
5574
|
if (cleanValue.indexOf(":") >= 0) {
|
|
4299
5575
|
cleanValue = cleanValue.split(":")[0];
|
|
4300
5576
|
}
|