@aws-sdk/client-appconfig 3.121.0 → 3.129.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 +30 -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 +1162 -115
- 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 +1507 -253
- 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 +26 -26
|
@@ -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 () {
|
|
@@ -14,7 +14,7 @@ export var serializeAws_restJson1CreateApplicationCommand = function (input, con
|
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
16
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/applications";
|
|
17
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
17
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
18
18
|
return [2, new __HttpRequest({
|
|
19
19
|
protocol: protocol,
|
|
20
20
|
hostname: hostname,
|
|
@@ -49,9 +49,7 @@ export var serializeAws_restJson1CreateConfigurationProfileCommand = function (i
|
|
|
49
49
|
else {
|
|
50
50
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
51
51
|
}
|
|
52
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description
|
|
53
|
-
input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })), (input.Validators !== undefined &&
|
|
54
|
-
input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
52
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.LocationUri != null && { LocationUri: input.LocationUri })), (input.Name != null && { Name: input.Name })), (input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })), (input.Type != null && { Type: input.Type })), (input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
55
53
|
return [2, new __HttpRequest({
|
|
56
54
|
protocol: protocol,
|
|
57
55
|
hostname: hostname,
|
|
@@ -75,10 +73,9 @@ export var serializeAws_restJson1CreateDeploymentStrategyCommand = function (inp
|
|
|
75
73
|
"content-type": "application/json",
|
|
76
74
|
};
|
|
77
75
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deploymentstrategies";
|
|
78
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeploymentDurationInMinutes
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
input.GrowthFactor !== null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType !== undefined && input.GrowthType !== null && { GrowthType: input.GrowthType })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.ReplicateTo !== undefined && input.ReplicateTo !== null && { ReplicateTo: input.ReplicateTo })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
76
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DeploymentDurationInMinutes != null && {
|
|
77
|
+
DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
|
|
78
|
+
})), (input.Description != null && { Description: input.Description })), (input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes })), (input.GrowthFactor != null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType != null && { GrowthType: input.GrowthType })), (input.Name != null && { Name: input.Name })), (input.ReplicateTo != null && { ReplicateTo: input.ReplicateTo })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
82
79
|
return [2, new __HttpRequest({
|
|
83
80
|
protocol: protocol,
|
|
84
81
|
hostname: hostname,
|
|
@@ -113,8 +110,55 @@ export var serializeAws_restJson1CreateEnvironmentCommand = function (input, con
|
|
|
113
110
|
else {
|
|
114
111
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
115
112
|
}
|
|
116
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
117
|
-
|
|
113
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
114
|
+
return [2, new __HttpRequest({
|
|
115
|
+
protocol: protocol,
|
|
116
|
+
hostname: hostname,
|
|
117
|
+
port: port,
|
|
118
|
+
method: "POST",
|
|
119
|
+
headers: headers,
|
|
120
|
+
path: resolvedPath,
|
|
121
|
+
body: body,
|
|
122
|
+
})];
|
|
123
|
+
}
|
|
124
|
+
});
|
|
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) })));
|
|
118
162
|
return [2, new __HttpRequest({
|
|
119
163
|
protocol: protocol,
|
|
120
164
|
hostname: hostname,
|
|
@@ -321,6 +365,71 @@ export var serializeAws_restJson1DeleteEnvironmentCommand = function (input, con
|
|
|
321
365
|
}
|
|
322
366
|
});
|
|
323
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
|
+
}); };
|
|
324
433
|
export var serializeAws_restJson1DeleteHostedConfigurationVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
325
434
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
326
435
|
return __generator(this, function (_c) {
|
|
@@ -628,6 +737,71 @@ export var serializeAws_restJson1GetEnvironmentCommand = function (input, contex
|
|
|
628
737
|
}
|
|
629
738
|
});
|
|
630
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
|
+
}); };
|
|
631
805
|
export var serializeAws_restJson1GetHostedConfigurationVersionCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
632
806
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, labelValue, body;
|
|
633
807
|
return __generator(this, function (_c) {
|
|
@@ -838,6 +1012,54 @@ export var serializeAws_restJson1ListEnvironmentsCommand = function (input, cont
|
|
|
838
1012
|
}
|
|
839
1013
|
});
|
|
840
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
|
+
}); };
|
|
841
1063
|
export var serializeAws_restJson1ListHostedConfigurationVersionsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
842
1064
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
843
1065
|
return __generator(this, function (_c) {
|
|
@@ -945,10 +1167,7 @@ export var serializeAws_restJson1StartDeploymentCommand = function (input, conte
|
|
|
945
1167
|
else {
|
|
946
1168
|
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
947
1169
|
}
|
|
948
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationProfileId
|
|
949
|
-
input.ConfigurationProfileId !== null && { ConfigurationProfileId: input.ConfigurationProfileId })), (input.ConfigurationVersion !== undefined &&
|
|
950
|
-
input.ConfigurationVersion !== null && { ConfigurationVersion: input.ConfigurationVersion })), (input.DeploymentStrategyId !== undefined &&
|
|
951
|
-
input.DeploymentStrategyId !== null && { DeploymentStrategyId: input.DeploymentStrategyId })), (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
1170
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationProfileId != null && { ConfigurationProfileId: input.ConfigurationProfileId })), (input.ConfigurationVersion != null && { ConfigurationVersion: input.ConfigurationVersion })), (input.DeploymentStrategyId != null && { DeploymentStrategyId: input.DeploymentStrategyId })), (input.Description != null && { Description: input.Description })), (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
952
1171
|
return [2, new __HttpRequest({
|
|
953
1172
|
protocol: protocol,
|
|
954
1173
|
hostname: hostname,
|
|
@@ -1034,7 +1253,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1034
1253
|
else {
|
|
1035
1254
|
throw new Error("No value provided for input HTTP label: ResourceArn.");
|
|
1036
1255
|
}
|
|
1037
|
-
body = JSON.stringify(__assign({}, (input.Tags
|
|
1256
|
+
body = JSON.stringify(__assign({}, (input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) })));
|
|
1038
1257
|
return [2, new __HttpRequest({
|
|
1039
1258
|
protocol: protocol,
|
|
1040
1259
|
hostname: hostname,
|
|
@@ -1101,7 +1320,7 @@ export var serializeAws_restJson1UpdateApplicationCommand = function (input, con
|
|
|
1101
1320
|
else {
|
|
1102
1321
|
throw new Error("No value provided for input HTTP label: ApplicationId.");
|
|
1103
1322
|
}
|
|
1104
|
-
body = JSON.stringify(__assign(__assign({}, (input.Description
|
|
1323
|
+
body = JSON.stringify(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })));
|
|
1105
1324
|
return [2, new __HttpRequest({
|
|
1106
1325
|
protocol: protocol,
|
|
1107
1326
|
hostname: hostname,
|
|
@@ -1146,9 +1365,7 @@ export var serializeAws_restJson1UpdateConfigurationProfileCommand = function (i
|
|
|
1146
1365
|
else {
|
|
1147
1366
|
throw new Error("No value provided for input HTTP label: ConfigurationProfileId.");
|
|
1148
1367
|
}
|
|
1149
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description
|
|
1150
|
-
input.RetrievalRoleArn !== null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Validators !== undefined &&
|
|
1151
|
-
input.Validators !== null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
1368
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn })), (input.Validators != null && { Validators: serializeAws_restJson1ValidatorList(input.Validators, context) })));
|
|
1152
1369
|
return [2, new __HttpRequest({
|
|
1153
1370
|
protocol: protocol,
|
|
1154
1371
|
hostname: hostname,
|
|
@@ -1183,10 +1400,9 @@ export var serializeAws_restJson1UpdateDeploymentStrategyCommand = function (inp
|
|
|
1183
1400
|
else {
|
|
1184
1401
|
throw new Error("No value provided for input HTTP label: DeploymentStrategyId.");
|
|
1185
1402
|
}
|
|
1186
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.DeploymentDurationInMinutes
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
input.GrowthFactor !== null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType !== undefined && input.GrowthType !== null && { GrowthType: input.GrowthType })));
|
|
1403
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.DeploymentDurationInMinutes != null && {
|
|
1404
|
+
DeploymentDurationInMinutes: input.DeploymentDurationInMinutes,
|
|
1405
|
+
})), (input.Description != null && { Description: input.Description })), (input.FinalBakeTimeInMinutes != null && { FinalBakeTimeInMinutes: input.FinalBakeTimeInMinutes })), (input.GrowthFactor != null && { GrowthFactor: __serializeFloat(input.GrowthFactor) })), (input.GrowthType != null && { GrowthType: input.GrowthType })));
|
|
1190
1406
|
return [2, new __HttpRequest({
|
|
1191
1407
|
protocol: protocol,
|
|
1192
1408
|
hostname: hostname,
|
|
@@ -1231,8 +1447,76 @@ export var serializeAws_restJson1UpdateEnvironmentCommand = function (input, con
|
|
|
1231
1447
|
else {
|
|
1232
1448
|
throw new Error("No value provided for input HTTP label: EnvironmentId.");
|
|
1233
1449
|
}
|
|
1234
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description
|
|
1235
|
-
|
|
1450
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Monitors != null && { Monitors: serializeAws_restJson1MonitorList(input.Monitors, context) })), (input.Name != null && { Name: input.Name })));
|
|
1451
|
+
return [2, new __HttpRequest({
|
|
1452
|
+
protocol: protocol,
|
|
1453
|
+
hostname: hostname,
|
|
1454
|
+
port: port,
|
|
1455
|
+
method: "PATCH",
|
|
1456
|
+
headers: headers,
|
|
1457
|
+
path: resolvedPath,
|
|
1458
|
+
body: body,
|
|
1459
|
+
})];
|
|
1460
|
+
}
|
|
1461
|
+
});
|
|
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) })));
|
|
1236
1520
|
return [2, new __HttpRequest({
|
|
1237
1521
|
protocol: protocol,
|
|
1238
1522
|
hostname: hostname,
|
|
@@ -1625,27 +1909,209 @@ var deserializeAws_restJson1CreateEnvironmentCommandError = function (output, co
|
|
|
1625
1909
|
}
|
|
1626
1910
|
});
|
|
1627
1911
|
}); };
|
|
1628
|
-
export var
|
|
1629
|
-
var contents, data;
|
|
1630
|
-
return __generator(this, function (
|
|
1631
|
-
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) {
|
|
1632
1916
|
case 0:
|
|
1633
1917
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1634
|
-
return [2,
|
|
1918
|
+
return [2, deserializeAws_restJson1CreateExtensionCommandError(output, context)];
|
|
1635
1919
|
}
|
|
1636
1920
|
contents = {
|
|
1637
1921
|
$metadata: deserializeMetadata(output),
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
Content: undefined,
|
|
1641
|
-
ContentType: undefined,
|
|
1922
|
+
Actions: undefined,
|
|
1923
|
+
Arn: undefined,
|
|
1642
1924
|
Description: undefined,
|
|
1925
|
+
Id: undefined,
|
|
1926
|
+
Name: undefined,
|
|
1927
|
+
Parameters: undefined,
|
|
1643
1928
|
VersionNumber: undefined,
|
|
1644
1929
|
};
|
|
1645
|
-
|
|
1646
|
-
|
|
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);
|
|
1647
1937
|
}
|
|
1648
|
-
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) {
|
|
1649
2115
|
contents.ConfigurationProfileId = output.headers["configuration-profile-id"];
|
|
1650
2116
|
}
|
|
1651
2117
|
if (output.headers["version-number"] !== undefined) {
|
|
@@ -1962,13 +2428,13 @@ var deserializeAws_restJson1DeleteEnvironmentCommandError = function (output, co
|
|
|
1962
2428
|
}
|
|
1963
2429
|
});
|
|
1964
2430
|
}); };
|
|
1965
|
-
export var
|
|
2431
|
+
export var deserializeAws_restJson1DeleteExtensionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1966
2432
|
var contents;
|
|
1967
2433
|
return __generator(this, function (_a) {
|
|
1968
2434
|
switch (_a.label) {
|
|
1969
2435
|
case 0:
|
|
1970
2436
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1971
|
-
return [2,
|
|
2437
|
+
return [2, deserializeAws_restJson1DeleteExtensionCommandError(output, context)];
|
|
1972
2438
|
}
|
|
1973
2439
|
contents = {
|
|
1974
2440
|
$metadata: deserializeMetadata(output),
|
|
@@ -1980,7 +2446,7 @@ export var deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = fun
|
|
|
1980
2446
|
}
|
|
1981
2447
|
});
|
|
1982
2448
|
}); };
|
|
1983
|
-
var
|
|
2449
|
+
var deserializeAws_restJson1DeleteExtensionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1984
2450
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1985
2451
|
var _c;
|
|
1986
2452
|
return __generator(this, function (_d) {
|
|
@@ -2021,39 +2487,25 @@ var deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = funct
|
|
|
2021
2487
|
}
|
|
2022
2488
|
});
|
|
2023
2489
|
}); };
|
|
2024
|
-
export var
|
|
2025
|
-
var contents
|
|
2026
|
-
return __generator(this, function (
|
|
2027
|
-
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) {
|
|
2028
2494
|
case 0:
|
|
2029
|
-
if (output.statusCode !==
|
|
2030
|
-
return [2,
|
|
2495
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2496
|
+
return [2, deserializeAws_restJson1DeleteExtensionAssociationCommandError(output, context)];
|
|
2031
2497
|
}
|
|
2032
2498
|
contents = {
|
|
2033
2499
|
$metadata: deserializeMetadata(output),
|
|
2034
|
-
Description: undefined,
|
|
2035
|
-
Id: undefined,
|
|
2036
|
-
Name: undefined,
|
|
2037
2500
|
};
|
|
2038
|
-
|
|
2039
|
-
_b = __expectObject;
|
|
2040
|
-
return [4, parseBody(output.body, context)];
|
|
2501
|
+
return [4, collectBody(output.body, context)];
|
|
2041
2502
|
case 1:
|
|
2042
|
-
|
|
2043
|
-
if (data.Description !== undefined && data.Description !== null) {
|
|
2044
|
-
contents.Description = __expectString(data.Description);
|
|
2045
|
-
}
|
|
2046
|
-
if (data.Id !== undefined && data.Id !== null) {
|
|
2047
|
-
contents.Id = __expectString(data.Id);
|
|
2048
|
-
}
|
|
2049
|
-
if (data.Name !== undefined && data.Name !== null) {
|
|
2050
|
-
contents.Name = __expectString(data.Name);
|
|
2051
|
-
}
|
|
2503
|
+
_a.sent();
|
|
2052
2504
|
return [2, Promise.resolve(contents)];
|
|
2053
2505
|
}
|
|
2054
2506
|
});
|
|
2055
2507
|
}); };
|
|
2056
|
-
var
|
|
2508
|
+
var deserializeAws_restJson1DeleteExtensionAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2057
2509
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2058
2510
|
var _c;
|
|
2059
2511
|
return __generator(this, function (_d) {
|
|
@@ -2094,35 +2546,25 @@ var deserializeAws_restJson1GetApplicationCommandError = function (output, conte
|
|
|
2094
2546
|
}
|
|
2095
2547
|
});
|
|
2096
2548
|
}); };
|
|
2097
|
-
export var
|
|
2098
|
-
var contents
|
|
2549
|
+
export var deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2550
|
+
var contents;
|
|
2099
2551
|
return __generator(this, function (_a) {
|
|
2100
2552
|
switch (_a.label) {
|
|
2101
2553
|
case 0:
|
|
2102
|
-
if (output.statusCode !==
|
|
2103
|
-
return [2,
|
|
2554
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2555
|
+
return [2, deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError(output, context)];
|
|
2104
2556
|
}
|
|
2105
2557
|
contents = {
|
|
2106
2558
|
$metadata: deserializeMetadata(output),
|
|
2107
|
-
ConfigurationVersion: undefined,
|
|
2108
|
-
Content: undefined,
|
|
2109
|
-
ContentType: undefined,
|
|
2110
2559
|
};
|
|
2111
|
-
if (output.headers["configuration-version"] !== undefined) {
|
|
2112
|
-
contents.ConfigurationVersion = output.headers["configuration-version"];
|
|
2113
|
-
}
|
|
2114
|
-
if (output.headers["content-type"] !== undefined) {
|
|
2115
|
-
contents.ContentType = output.headers["content-type"];
|
|
2116
|
-
}
|
|
2117
2560
|
return [4, collectBody(output.body, context)];
|
|
2118
2561
|
case 1:
|
|
2119
|
-
|
|
2120
|
-
contents.Content = data;
|
|
2562
|
+
_a.sent();
|
|
2121
2563
|
return [2, Promise.resolve(contents)];
|
|
2122
2564
|
}
|
|
2123
2565
|
});
|
|
2124
2566
|
}); };
|
|
2125
|
-
var
|
|
2567
|
+
var deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2126
2568
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2127
2569
|
var _c;
|
|
2128
2570
|
return __generator(this, function (_d) {
|
|
@@ -2163,59 +2605,39 @@ var deserializeAws_restJson1GetConfigurationCommandError = function (output, con
|
|
|
2163
2605
|
}
|
|
2164
2606
|
});
|
|
2165
2607
|
}); };
|
|
2166
|
-
export var
|
|
2608
|
+
export var deserializeAws_restJson1GetApplicationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2167
2609
|
var contents, data, _a, _b;
|
|
2168
2610
|
return __generator(this, function (_c) {
|
|
2169
2611
|
switch (_c.label) {
|
|
2170
2612
|
case 0:
|
|
2171
2613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2172
|
-
return [2,
|
|
2614
|
+
return [2, deserializeAws_restJson1GetApplicationCommandError(output, context)];
|
|
2173
2615
|
}
|
|
2174
2616
|
contents = {
|
|
2175
2617
|
$metadata: deserializeMetadata(output),
|
|
2176
|
-
ApplicationId: undefined,
|
|
2177
2618
|
Description: undefined,
|
|
2178
2619
|
Id: undefined,
|
|
2179
|
-
LocationUri: undefined,
|
|
2180
2620
|
Name: undefined,
|
|
2181
|
-
RetrievalRoleArn: undefined,
|
|
2182
|
-
Type: undefined,
|
|
2183
|
-
Validators: undefined,
|
|
2184
2621
|
};
|
|
2185
2622
|
_a = __expectNonNull;
|
|
2186
2623
|
_b = __expectObject;
|
|
2187
2624
|
return [4, parseBody(output.body, context)];
|
|
2188
2625
|
case 1:
|
|
2189
2626
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2190
|
-
if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
|
|
2191
|
-
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2192
|
-
}
|
|
2193
2627
|
if (data.Description !== undefined && data.Description !== null) {
|
|
2194
2628
|
contents.Description = __expectString(data.Description);
|
|
2195
2629
|
}
|
|
2196
2630
|
if (data.Id !== undefined && data.Id !== null) {
|
|
2197
2631
|
contents.Id = __expectString(data.Id);
|
|
2198
2632
|
}
|
|
2199
|
-
if (data.LocationUri !== undefined && data.LocationUri !== null) {
|
|
2200
|
-
contents.LocationUri = __expectString(data.LocationUri);
|
|
2201
|
-
}
|
|
2202
2633
|
if (data.Name !== undefined && data.Name !== null) {
|
|
2203
2634
|
contents.Name = __expectString(data.Name);
|
|
2204
2635
|
}
|
|
2205
|
-
if (data.RetrievalRoleArn !== undefined && data.RetrievalRoleArn !== null) {
|
|
2206
|
-
contents.RetrievalRoleArn = __expectString(data.RetrievalRoleArn);
|
|
2207
|
-
}
|
|
2208
|
-
if (data.Type !== undefined && data.Type !== null) {
|
|
2209
|
-
contents.Type = __expectString(data.Type);
|
|
2210
|
-
}
|
|
2211
|
-
if (data.Validators !== undefined && data.Validators !== null) {
|
|
2212
|
-
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
2213
|
-
}
|
|
2214
2636
|
return [2, Promise.resolve(contents)];
|
|
2215
2637
|
}
|
|
2216
2638
|
});
|
|
2217
2639
|
}); };
|
|
2218
|
-
var
|
|
2640
|
+
var deserializeAws_restJson1GetApplicationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2219
2641
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2220
2642
|
var _c;
|
|
2221
2643
|
return __generator(this, function (_d) {
|
|
@@ -2256,36 +2678,199 @@ var deserializeAws_restJson1GetConfigurationProfileCommandError = function (outp
|
|
|
2256
2678
|
}
|
|
2257
2679
|
});
|
|
2258
2680
|
}); };
|
|
2259
|
-
export var
|
|
2260
|
-
var contents, data
|
|
2261
|
-
return __generator(this, function (
|
|
2262
|
-
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) {
|
|
2263
2685
|
case 0:
|
|
2264
2686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2265
|
-
return [2,
|
|
2687
|
+
return [2, deserializeAws_restJson1GetConfigurationCommandError(output, context)];
|
|
2266
2688
|
}
|
|
2267
2689
|
contents = {
|
|
2268
2690
|
$metadata: deserializeMetadata(output),
|
|
2269
|
-
ApplicationId: undefined,
|
|
2270
|
-
CompletedAt: undefined,
|
|
2271
|
-
ConfigurationLocationUri: undefined,
|
|
2272
|
-
ConfigurationName: undefined,
|
|
2273
|
-
ConfigurationProfileId: undefined,
|
|
2274
2691
|
ConfigurationVersion: undefined,
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
DeploymentStrategyId: undefined,
|
|
2278
|
-
Description: undefined,
|
|
2279
|
-
EnvironmentId: undefined,
|
|
2280
|
-
EventLog: undefined,
|
|
2281
|
-
FinalBakeTimeInMinutes: undefined,
|
|
2282
|
-
GrowthFactor: undefined,
|
|
2283
|
-
GrowthType: undefined,
|
|
2284
|
-
PercentageComplete: undefined,
|
|
2285
|
-
StartedAt: undefined,
|
|
2286
|
-
State: undefined,
|
|
2692
|
+
Content: undefined,
|
|
2693
|
+
ContentType: undefined,
|
|
2287
2694
|
};
|
|
2288
|
-
|
|
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;
|
|
2289
2874
|
_b = __expectObject;
|
|
2290
2875
|
return [4, parseBody(output.body, context)];
|
|
2291
2876
|
case 1:
|
|
@@ -2293,6 +2878,9 @@ export var deserializeAws_restJson1GetDeploymentCommand = function (output, cont
|
|
|
2293
2878
|
if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
|
|
2294
2879
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2295
2880
|
}
|
|
2881
|
+
if (data.AppliedExtensions !== undefined && data.AppliedExtensions !== null) {
|
|
2882
|
+
contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
|
|
2883
|
+
}
|
|
2296
2884
|
if (data.CompletedAt !== undefined && data.CompletedAt !== null) {
|
|
2297
2885
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTime(data.CompletedAt));
|
|
2298
2886
|
}
|
|
@@ -2567,6 +3155,180 @@ var deserializeAws_restJson1GetEnvironmentCommandError = function (output, conte
|
|
|
2567
3155
|
}
|
|
2568
3156
|
});
|
|
2569
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
|
+
}); };
|
|
2570
3332
|
export var deserializeAws_restJson1GetHostedConfigurationVersionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2571
3333
|
var contents, data;
|
|
2572
3334
|
return __generator(this, function (_a) {
|
|
@@ -2593,21 +3355,155 @@ export var deserializeAws_restJson1GetHostedConfigurationVersionCommand = functi
|
|
|
2593
3355
|
if (output.headers["version-number"] !== undefined) {
|
|
2594
3356
|
contents.VersionNumber = __strictParseInt32(output.headers["version-number"]);
|
|
2595
3357
|
}
|
|
2596
|
-
if (output.headers["description"] !== undefined) {
|
|
2597
|
-
contents.Description = output.headers["description"];
|
|
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,
|
|
3490
|
+
};
|
|
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);
|
|
2598
3498
|
}
|
|
2599
|
-
if (
|
|
2600
|
-
contents.
|
|
3499
|
+
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
3500
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2601
3501
|
}
|
|
2602
|
-
return [4, collectBody(output.body, context)];
|
|
2603
|
-
case 1:
|
|
2604
|
-
data = _a.sent();
|
|
2605
|
-
contents.Content = data;
|
|
2606
3502
|
return [2, Promise.resolve(contents)];
|
|
2607
3503
|
}
|
|
2608
3504
|
});
|
|
2609
3505
|
}); };
|
|
2610
|
-
var
|
|
3506
|
+
var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2611
3507
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2612
3508
|
var _c;
|
|
2613
3509
|
return __generator(this, function (_d) {
|
|
@@ -2648,13 +3544,13 @@ var deserializeAws_restJson1GetHostedConfigurationVersionCommandError = function
|
|
|
2648
3544
|
}
|
|
2649
3545
|
});
|
|
2650
3546
|
}); };
|
|
2651
|
-
export var
|
|
3547
|
+
export var deserializeAws_restJson1ListDeploymentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2652
3548
|
var contents, data, _a, _b;
|
|
2653
3549
|
return __generator(this, function (_c) {
|
|
2654
3550
|
switch (_c.label) {
|
|
2655
3551
|
case 0:
|
|
2656
3552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2657
|
-
return [2,
|
|
3553
|
+
return [2, deserializeAws_restJson1ListDeploymentsCommandError(output, context)];
|
|
2658
3554
|
}
|
|
2659
3555
|
contents = {
|
|
2660
3556
|
$metadata: deserializeMetadata(output),
|
|
@@ -2667,7 +3563,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
2667
3563
|
case 1:
|
|
2668
3564
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2669
3565
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2670
|
-
contents.Items =
|
|
3566
|
+
contents.Items = deserializeAws_restJson1DeploymentList(data.Items, context);
|
|
2671
3567
|
}
|
|
2672
3568
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2673
3569
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2676,7 +3572,7 @@ export var deserializeAws_restJson1ListApplicationsCommand = function (output, c
|
|
|
2676
3572
|
}
|
|
2677
3573
|
});
|
|
2678
3574
|
}); };
|
|
2679
|
-
var
|
|
3575
|
+
var deserializeAws_restJson1ListDeploymentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2680
3576
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2681
3577
|
var _c;
|
|
2682
3578
|
return __generator(this, function (_d) {
|
|
@@ -2694,13 +3590,17 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
2694
3590
|
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
2695
3591
|
case "InternalServerException": return [3, 4];
|
|
2696
3592
|
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
3593
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
3594
|
+
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
2697
3595
|
}
|
|
2698
|
-
return [3,
|
|
3596
|
+
return [3, 8];
|
|
2699
3597
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2700
3598
|
case 3: throw _d.sent();
|
|
2701
3599
|
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2702
3600
|
case 5: throw _d.sent();
|
|
2703
|
-
case 6:
|
|
3601
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3602
|
+
case 7: throw _d.sent();
|
|
3603
|
+
case 8:
|
|
2704
3604
|
parsedBody = parsedOutput.body;
|
|
2705
3605
|
$metadata = deserializeMetadata(output);
|
|
2706
3606
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -2713,13 +3613,13 @@ var deserializeAws_restJson1ListApplicationsCommandError = function (output, con
|
|
|
2713
3613
|
}
|
|
2714
3614
|
});
|
|
2715
3615
|
}); };
|
|
2716
|
-
export var
|
|
3616
|
+
export var deserializeAws_restJson1ListDeploymentStrategiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2717
3617
|
var contents, data, _a, _b;
|
|
2718
3618
|
return __generator(this, function (_c) {
|
|
2719
3619
|
switch (_c.label) {
|
|
2720
3620
|
case 0:
|
|
2721
3621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2722
|
-
return [2,
|
|
3622
|
+
return [2, deserializeAws_restJson1ListDeploymentStrategiesCommandError(output, context)];
|
|
2723
3623
|
}
|
|
2724
3624
|
contents = {
|
|
2725
3625
|
$metadata: deserializeMetadata(output),
|
|
@@ -2732,7 +3632,7 @@ export var deserializeAws_restJson1ListConfigurationProfilesCommand = function (
|
|
|
2732
3632
|
case 1:
|
|
2733
3633
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2734
3634
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2735
|
-
contents.Items =
|
|
3635
|
+
contents.Items = deserializeAws_restJson1DeploymentStrategyList(data.Items, context);
|
|
2736
3636
|
}
|
|
2737
3637
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2738
3638
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2741,7 +3641,7 @@ export var deserializeAws_restJson1ListConfigurationProfilesCommand = function (
|
|
|
2741
3641
|
}
|
|
2742
3642
|
});
|
|
2743
3643
|
}); };
|
|
2744
|
-
var
|
|
3644
|
+
var deserializeAws_restJson1ListDeploymentStrategiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2745
3645
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2746
3646
|
var _c;
|
|
2747
3647
|
return __generator(this, function (_d) {
|
|
@@ -2759,17 +3659,13 @@ var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (ou
|
|
|
2759
3659
|
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
2760
3660
|
case "InternalServerException": return [3, 4];
|
|
2761
3661
|
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
2762
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
2763
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
2764
3662
|
}
|
|
2765
|
-
return [3,
|
|
3663
|
+
return [3, 6];
|
|
2766
3664
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2767
3665
|
case 3: throw _d.sent();
|
|
2768
3666
|
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2769
3667
|
case 5: throw _d.sent();
|
|
2770
|
-
case 6:
|
|
2771
|
-
case 7: throw _d.sent();
|
|
2772
|
-
case 8:
|
|
3668
|
+
case 6:
|
|
2773
3669
|
parsedBody = parsedOutput.body;
|
|
2774
3670
|
$metadata = deserializeMetadata(output);
|
|
2775
3671
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -2782,13 +3678,13 @@ var deserializeAws_restJson1ListConfigurationProfilesCommandError = function (ou
|
|
|
2782
3678
|
}
|
|
2783
3679
|
});
|
|
2784
3680
|
}); };
|
|
2785
|
-
export var
|
|
3681
|
+
export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2786
3682
|
var contents, data, _a, _b;
|
|
2787
3683
|
return __generator(this, function (_c) {
|
|
2788
3684
|
switch (_c.label) {
|
|
2789
3685
|
case 0:
|
|
2790
3686
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2791
|
-
return [2,
|
|
3687
|
+
return [2, deserializeAws_restJson1ListEnvironmentsCommandError(output, context)];
|
|
2792
3688
|
}
|
|
2793
3689
|
contents = {
|
|
2794
3690
|
$metadata: deserializeMetadata(output),
|
|
@@ -2801,7 +3697,7 @@ export var deserializeAws_restJson1ListDeploymentsCommand = function (output, co
|
|
|
2801
3697
|
case 1:
|
|
2802
3698
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2803
3699
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2804
|
-
contents.Items =
|
|
3700
|
+
contents.Items = deserializeAws_restJson1EnvironmentList(data.Items, context);
|
|
2805
3701
|
}
|
|
2806
3702
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2807
3703
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2810,7 +3706,7 @@ export var deserializeAws_restJson1ListDeploymentsCommand = function (output, co
|
|
|
2810
3706
|
}
|
|
2811
3707
|
});
|
|
2812
3708
|
}); };
|
|
2813
|
-
var
|
|
3709
|
+
var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2814
3710
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2815
3711
|
var _c;
|
|
2816
3712
|
return __generator(this, function (_d) {
|
|
@@ -2851,13 +3747,13 @@ var deserializeAws_restJson1ListDeploymentsCommandError = function (output, cont
|
|
|
2851
3747
|
}
|
|
2852
3748
|
});
|
|
2853
3749
|
}); };
|
|
2854
|
-
export var
|
|
3750
|
+
export var deserializeAws_restJson1ListExtensionAssociationsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2855
3751
|
var contents, data, _a, _b;
|
|
2856
3752
|
return __generator(this, function (_c) {
|
|
2857
3753
|
switch (_c.label) {
|
|
2858
3754
|
case 0:
|
|
2859
3755
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2860
|
-
return [2,
|
|
3756
|
+
return [2, deserializeAws_restJson1ListExtensionAssociationsCommandError(output, context)];
|
|
2861
3757
|
}
|
|
2862
3758
|
contents = {
|
|
2863
3759
|
$metadata: deserializeMetadata(output),
|
|
@@ -2870,7 +3766,7 @@ export var deserializeAws_restJson1ListDeploymentStrategiesCommand = function (o
|
|
|
2870
3766
|
case 1:
|
|
2871
3767
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2872
3768
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2873
|
-
contents.Items =
|
|
3769
|
+
contents.Items = deserializeAws_restJson1ExtensionAssociationSummaries(data.Items, context);
|
|
2874
3770
|
}
|
|
2875
3771
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2876
3772
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2879,7 +3775,7 @@ export var deserializeAws_restJson1ListDeploymentStrategiesCommand = function (o
|
|
|
2879
3775
|
}
|
|
2880
3776
|
});
|
|
2881
3777
|
}); };
|
|
2882
|
-
var
|
|
3778
|
+
var deserializeAws_restJson1ListExtensionAssociationsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2883
3779
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2884
3780
|
var _c;
|
|
2885
3781
|
return __generator(this, function (_d) {
|
|
@@ -2916,13 +3812,13 @@ var deserializeAws_restJson1ListDeploymentStrategiesCommandError = function (out
|
|
|
2916
3812
|
}
|
|
2917
3813
|
});
|
|
2918
3814
|
}); };
|
|
2919
|
-
export var
|
|
3815
|
+
export var deserializeAws_restJson1ListExtensionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2920
3816
|
var contents, data, _a, _b;
|
|
2921
3817
|
return __generator(this, function (_c) {
|
|
2922
3818
|
switch (_c.label) {
|
|
2923
3819
|
case 0:
|
|
2924
3820
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2925
|
-
return [2,
|
|
3821
|
+
return [2, deserializeAws_restJson1ListExtensionsCommandError(output, context)];
|
|
2926
3822
|
}
|
|
2927
3823
|
contents = {
|
|
2928
3824
|
$metadata: deserializeMetadata(output),
|
|
@@ -2935,7 +3831,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
2935
3831
|
case 1:
|
|
2936
3832
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
2937
3833
|
if (data.Items !== undefined && data.Items !== null) {
|
|
2938
|
-
contents.Items =
|
|
3834
|
+
contents.Items = deserializeAws_restJson1ExtensionSummaries(data.Items, context);
|
|
2939
3835
|
}
|
|
2940
3836
|
if (data.NextToken !== undefined && data.NextToken !== null) {
|
|
2941
3837
|
contents.NextToken = __expectString(data.NextToken);
|
|
@@ -2944,7 +3840,7 @@ export var deserializeAws_restJson1ListEnvironmentsCommand = function (output, c
|
|
|
2944
3840
|
}
|
|
2945
3841
|
});
|
|
2946
3842
|
}); };
|
|
2947
|
-
var
|
|
3843
|
+
var deserializeAws_restJson1ListExtensionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2948
3844
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
2949
3845
|
var _c;
|
|
2950
3846
|
return __generator(this, function (_d) {
|
|
@@ -2962,17 +3858,13 @@ var deserializeAws_restJson1ListEnvironmentsCommandError = function (output, con
|
|
|
2962
3858
|
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
2963
3859
|
case "InternalServerException": return [3, 4];
|
|
2964
3860
|
case "com.amazonaws.appconfig#InternalServerException": return [3, 4];
|
|
2965
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
2966
|
-
case "com.amazonaws.appconfig#ResourceNotFoundException": return [3, 6];
|
|
2967
3861
|
}
|
|
2968
|
-
return [3,
|
|
3862
|
+
return [3, 6];
|
|
2969
3863
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
2970
3864
|
case 3: throw _d.sent();
|
|
2971
3865
|
case 4: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2972
3866
|
case 5: throw _d.sent();
|
|
2973
|
-
case 6:
|
|
2974
|
-
case 7: throw _d.sent();
|
|
2975
|
-
case 8:
|
|
3867
|
+
case 6:
|
|
2976
3868
|
parsedBody = parsedOutput.body;
|
|
2977
3869
|
$metadata = deserializeMetadata(output);
|
|
2978
3870
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -3130,6 +4022,7 @@ export var deserializeAws_restJson1StartDeploymentCommand = function (output, co
|
|
|
3130
4022
|
contents = {
|
|
3131
4023
|
$metadata: deserializeMetadata(output),
|
|
3132
4024
|
ApplicationId: undefined,
|
|
4025
|
+
AppliedExtensions: undefined,
|
|
3133
4026
|
CompletedAt: undefined,
|
|
3134
4027
|
ConfigurationLocationUri: undefined,
|
|
3135
4028
|
ConfigurationName: undefined,
|
|
@@ -3156,6 +4049,9 @@ export var deserializeAws_restJson1StartDeploymentCommand = function (output, co
|
|
|
3156
4049
|
if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
|
|
3157
4050
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
3158
4051
|
}
|
|
4052
|
+
if (data.AppliedExtensions !== undefined && data.AppliedExtensions !== null) {
|
|
4053
|
+
contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
|
|
4054
|
+
}
|
|
3159
4055
|
if (data.CompletedAt !== undefined && data.CompletedAt !== null) {
|
|
3160
4056
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTime(data.CompletedAt));
|
|
3161
4057
|
}
|
|
@@ -3267,6 +4163,7 @@ export var deserializeAws_restJson1StopDeploymentCommand = function (output, con
|
|
|
3267
4163
|
contents = {
|
|
3268
4164
|
$metadata: deserializeMetadata(output),
|
|
3269
4165
|
ApplicationId: undefined,
|
|
4166
|
+
AppliedExtensions: undefined,
|
|
3270
4167
|
CompletedAt: undefined,
|
|
3271
4168
|
ConfigurationLocationUri: undefined,
|
|
3272
4169
|
ConfigurationName: undefined,
|
|
@@ -3293,6 +4190,9 @@ export var deserializeAws_restJson1StopDeploymentCommand = function (output, con
|
|
|
3293
4190
|
if (data.ApplicationId !== undefined && data.ApplicationId !== null) {
|
|
3294
4191
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
3295
4192
|
}
|
|
4193
|
+
if (data.AppliedExtensions !== undefined && data.AppliedExtensions !== null) {
|
|
4194
|
+
contents.AppliedExtensions = deserializeAws_restJson1AppliedExtensions(data.AppliedExtensions, context);
|
|
4195
|
+
}
|
|
3296
4196
|
if (data.CompletedAt !== undefined && data.CompletedAt !== null) {
|
|
3297
4197
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTime(data.CompletedAt));
|
|
3298
4198
|
}
|
|
@@ -3466,7 +4366,173 @@ export var deserializeAws_restJson1UntagResourceCommand = function (output, cont
|
|
|
3466
4366
|
}
|
|
3467
4367
|
});
|
|
3468
4368
|
}); };
|
|
3469
|
-
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 () {
|
|
3470
4536
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3471
4537
|
var _c;
|
|
3472
4538
|
return __generator(this, function (_d) {
|
|
@@ -3507,39 +4573,59 @@ var deserializeAws_restJson1UntagResourceCommandError = function (output, contex
|
|
|
3507
4573
|
}
|
|
3508
4574
|
});
|
|
3509
4575
|
}); };
|
|
3510
|
-
export var
|
|
4576
|
+
export var deserializeAws_restJson1UpdateDeploymentStrategyCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3511
4577
|
var contents, data, _a, _b;
|
|
3512
4578
|
return __generator(this, function (_c) {
|
|
3513
4579
|
switch (_c.label) {
|
|
3514
4580
|
case 0:
|
|
3515
4581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3516
|
-
return [2,
|
|
4582
|
+
return [2, deserializeAws_restJson1UpdateDeploymentStrategyCommandError(output, context)];
|
|
3517
4583
|
}
|
|
3518
4584
|
contents = {
|
|
3519
4585
|
$metadata: deserializeMetadata(output),
|
|
4586
|
+
DeploymentDurationInMinutes: undefined,
|
|
3520
4587
|
Description: undefined,
|
|
4588
|
+
FinalBakeTimeInMinutes: undefined,
|
|
4589
|
+
GrowthFactor: undefined,
|
|
4590
|
+
GrowthType: undefined,
|
|
3521
4591
|
Id: undefined,
|
|
3522
4592
|
Name: undefined,
|
|
4593
|
+
ReplicateTo: undefined,
|
|
3523
4594
|
};
|
|
3524
4595
|
_a = __expectNonNull;
|
|
3525
4596
|
_b = __expectObject;
|
|
3526
4597
|
return [4, parseBody(output.body, context)];
|
|
3527
4598
|
case 1:
|
|
3528
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
|
+
}
|
|
3529
4603
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3530
4604
|
contents.Description = __expectString(data.Description);
|
|
3531
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
|
+
}
|
|
3532
4615
|
if (data.Id !== undefined && data.Id !== null) {
|
|
3533
4616
|
contents.Id = __expectString(data.Id);
|
|
3534
4617
|
}
|
|
3535
4618
|
if (data.Name !== undefined && data.Name !== null) {
|
|
3536
4619
|
contents.Name = __expectString(data.Name);
|
|
3537
4620
|
}
|
|
4621
|
+
if (data.ReplicateTo !== undefined && data.ReplicateTo !== null) {
|
|
4622
|
+
contents.ReplicateTo = __expectString(data.ReplicateTo);
|
|
4623
|
+
}
|
|
3538
4624
|
return [2, Promise.resolve(contents)];
|
|
3539
4625
|
}
|
|
3540
4626
|
});
|
|
3541
4627
|
}); };
|
|
3542
|
-
var
|
|
4628
|
+
var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3543
4629
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3544
4630
|
var _c;
|
|
3545
4631
|
return __generator(this, function (_d) {
|
|
@@ -3580,24 +4666,22 @@ var deserializeAws_restJson1UpdateApplicationCommandError = function (output, co
|
|
|
3580
4666
|
}
|
|
3581
4667
|
});
|
|
3582
4668
|
}); };
|
|
3583
|
-
export var
|
|
4669
|
+
export var deserializeAws_restJson1UpdateEnvironmentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3584
4670
|
var contents, data, _a, _b;
|
|
3585
4671
|
return __generator(this, function (_c) {
|
|
3586
4672
|
switch (_c.label) {
|
|
3587
4673
|
case 0:
|
|
3588
4674
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3589
|
-
return [2,
|
|
4675
|
+
return [2, deserializeAws_restJson1UpdateEnvironmentCommandError(output, context)];
|
|
3590
4676
|
}
|
|
3591
4677
|
contents = {
|
|
3592
4678
|
$metadata: deserializeMetadata(output),
|
|
3593
4679
|
ApplicationId: undefined,
|
|
3594
4680
|
Description: undefined,
|
|
3595
4681
|
Id: undefined,
|
|
3596
|
-
|
|
4682
|
+
Monitors: undefined,
|
|
3597
4683
|
Name: undefined,
|
|
3598
|
-
|
|
3599
|
-
Type: undefined,
|
|
3600
|
-
Validators: undefined,
|
|
4684
|
+
State: undefined,
|
|
3601
4685
|
};
|
|
3602
4686
|
_a = __expectNonNull;
|
|
3603
4687
|
_b = __expectObject;
|
|
@@ -3613,26 +4697,20 @@ export var deserializeAws_restJson1UpdateConfigurationProfileCommand = function
|
|
|
3613
4697
|
if (data.Id !== undefined && data.Id !== null) {
|
|
3614
4698
|
contents.Id = __expectString(data.Id);
|
|
3615
4699
|
}
|
|
3616
|
-
if (data.
|
|
3617
|
-
contents.
|
|
4700
|
+
if (data.Monitors !== undefined && data.Monitors !== null) {
|
|
4701
|
+
contents.Monitors = deserializeAws_restJson1MonitorList(data.Monitors, context);
|
|
3618
4702
|
}
|
|
3619
4703
|
if (data.Name !== undefined && data.Name !== null) {
|
|
3620
4704
|
contents.Name = __expectString(data.Name);
|
|
3621
4705
|
}
|
|
3622
|
-
if (data.
|
|
3623
|
-
contents.
|
|
3624
|
-
}
|
|
3625
|
-
if (data.Type !== undefined && data.Type !== null) {
|
|
3626
|
-
contents.Type = __expectString(data.Type);
|
|
3627
|
-
}
|
|
3628
|
-
if (data.Validators !== undefined && data.Validators !== null) {
|
|
3629
|
-
contents.Validators = deserializeAws_restJson1ValidatorList(data.Validators, context);
|
|
4706
|
+
if (data.State !== undefined && data.State !== null) {
|
|
4707
|
+
contents.State = __expectString(data.State);
|
|
3630
4708
|
}
|
|
3631
4709
|
return [2, Promise.resolve(contents)];
|
|
3632
4710
|
}
|
|
3633
4711
|
});
|
|
3634
4712
|
}); };
|
|
3635
|
-
var
|
|
4713
|
+
var deserializeAws_restJson1UpdateEnvironmentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3636
4714
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3637
4715
|
var _c;
|
|
3638
4716
|
return __generator(this, function (_d) {
|
|
@@ -3673,59 +4751,55 @@ var deserializeAws_restJson1UpdateConfigurationProfileCommandError = function (o
|
|
|
3673
4751
|
}
|
|
3674
4752
|
});
|
|
3675
4753
|
}); };
|
|
3676
|
-
export var
|
|
4754
|
+
export var deserializeAws_restJson1UpdateExtensionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3677
4755
|
var contents, data, _a, _b;
|
|
3678
4756
|
return __generator(this, function (_c) {
|
|
3679
4757
|
switch (_c.label) {
|
|
3680
4758
|
case 0:
|
|
3681
4759
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3682
|
-
return [2,
|
|
4760
|
+
return [2, deserializeAws_restJson1UpdateExtensionCommandError(output, context)];
|
|
3683
4761
|
}
|
|
3684
4762
|
contents = {
|
|
3685
4763
|
$metadata: deserializeMetadata(output),
|
|
3686
|
-
|
|
4764
|
+
Actions: undefined,
|
|
4765
|
+
Arn: undefined,
|
|
3687
4766
|
Description: undefined,
|
|
3688
|
-
FinalBakeTimeInMinutes: undefined,
|
|
3689
|
-
GrowthFactor: undefined,
|
|
3690
|
-
GrowthType: undefined,
|
|
3691
4767
|
Id: undefined,
|
|
3692
4768
|
Name: undefined,
|
|
3693
|
-
|
|
4769
|
+
Parameters: undefined,
|
|
4770
|
+
VersionNumber: undefined,
|
|
3694
4771
|
};
|
|
3695
4772
|
_a = __expectNonNull;
|
|
3696
4773
|
_b = __expectObject;
|
|
3697
4774
|
return [4, parseBody(output.body, context)];
|
|
3698
4775
|
case 1:
|
|
3699
4776
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3700
|
-
if (data.
|
|
3701
|
-
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);
|
|
3702
4782
|
}
|
|
3703
4783
|
if (data.Description !== undefined && data.Description !== null) {
|
|
3704
4784
|
contents.Description = __expectString(data.Description);
|
|
3705
4785
|
}
|
|
3706
|
-
if (data.FinalBakeTimeInMinutes !== undefined && data.FinalBakeTimeInMinutes !== null) {
|
|
3707
|
-
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
3708
|
-
}
|
|
3709
|
-
if (data.GrowthFactor !== undefined && data.GrowthFactor !== null) {
|
|
3710
|
-
contents.GrowthFactor = __limitedParseFloat32(data.GrowthFactor);
|
|
3711
|
-
}
|
|
3712
|
-
if (data.GrowthType !== undefined && data.GrowthType !== null) {
|
|
3713
|
-
contents.GrowthType = __expectString(data.GrowthType);
|
|
3714
|
-
}
|
|
3715
4786
|
if (data.Id !== undefined && data.Id !== null) {
|
|
3716
4787
|
contents.Id = __expectString(data.Id);
|
|
3717
4788
|
}
|
|
3718
4789
|
if (data.Name !== undefined && data.Name !== null) {
|
|
3719
4790
|
contents.Name = __expectString(data.Name);
|
|
3720
4791
|
}
|
|
3721
|
-
if (data.
|
|
3722
|
-
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);
|
|
3723
4797
|
}
|
|
3724
4798
|
return [2, Promise.resolve(contents)];
|
|
3725
4799
|
}
|
|
3726
4800
|
});
|
|
3727
4801
|
}); };
|
|
3728
|
-
var
|
|
4802
|
+
var deserializeAws_restJson1UpdateExtensionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3729
4803
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3730
4804
|
var _c;
|
|
3731
4805
|
return __generator(this, function (_d) {
|
|
@@ -3741,19 +4815,23 @@ var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (out
|
|
|
3741
4815
|
switch (_b) {
|
|
3742
4816
|
case "BadRequestException": return [3, 2];
|
|
3743
4817
|
case "com.amazonaws.appconfig#BadRequestException": return [3, 2];
|
|
3744
|
-
case "
|
|
3745
|
-
case "com.amazonaws.appconfig#
|
|
3746
|
-
case "
|
|
3747
|
-
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];
|
|
3748
4824
|
}
|
|
3749
|
-
return [3,
|
|
4825
|
+
return [3, 10];
|
|
3750
4826
|
case 2: return [4, deserializeAws_restJson1BadRequestExceptionResponse(parsedOutput, context)];
|
|
3751
4827
|
case 3: throw _d.sent();
|
|
3752
|
-
case 4: return [4,
|
|
4828
|
+
case 4: return [4, deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)];
|
|
3753
4829
|
case 5: throw _d.sent();
|
|
3754
|
-
case 6: return [4,
|
|
4830
|
+
case 6: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
3755
4831
|
case 7: throw _d.sent();
|
|
3756
|
-
case 8:
|
|
4832
|
+
case 8: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4833
|
+
case 9: throw _d.sent();
|
|
4834
|
+
case 10:
|
|
3757
4835
|
parsedBody = parsedOutput.body;
|
|
3758
4836
|
$metadata = deserializeMetadata(output);
|
|
3759
4837
|
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
@@ -3766,51 +4844,51 @@ var deserializeAws_restJson1UpdateDeploymentStrategyCommandError = function (out
|
|
|
3766
4844
|
}
|
|
3767
4845
|
});
|
|
3768
4846
|
}); };
|
|
3769
|
-
export var
|
|
4847
|
+
export var deserializeAws_restJson1UpdateExtensionAssociationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3770
4848
|
var contents, data, _a, _b;
|
|
3771
4849
|
return __generator(this, function (_c) {
|
|
3772
4850
|
switch (_c.label) {
|
|
3773
4851
|
case 0:
|
|
3774
4852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3775
|
-
return [2,
|
|
4853
|
+
return [2, deserializeAws_restJson1UpdateExtensionAssociationCommandError(output, context)];
|
|
3776
4854
|
}
|
|
3777
4855
|
contents = {
|
|
3778
4856
|
$metadata: deserializeMetadata(output),
|
|
3779
|
-
|
|
3780
|
-
|
|
4857
|
+
Arn: undefined,
|
|
4858
|
+
ExtensionArn: undefined,
|
|
4859
|
+
ExtensionVersionNumber: undefined,
|
|
3781
4860
|
Id: undefined,
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
State: undefined,
|
|
4861
|
+
Parameters: undefined,
|
|
4862
|
+
ResourceArn: undefined,
|
|
3785
4863
|
};
|
|
3786
4864
|
_a = __expectNonNull;
|
|
3787
4865
|
_b = __expectObject;
|
|
3788
4866
|
return [4, parseBody(output.body, context)];
|
|
3789
4867
|
case 1:
|
|
3790
4868
|
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
3791
|
-
if (data.
|
|
3792
|
-
contents.
|
|
4869
|
+
if (data.Arn !== undefined && data.Arn !== null) {
|
|
4870
|
+
contents.Arn = __expectString(data.Arn);
|
|
3793
4871
|
}
|
|
3794
|
-
if (data.
|
|
3795
|
-
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);
|
|
3796
4877
|
}
|
|
3797
4878
|
if (data.Id !== undefined && data.Id !== null) {
|
|
3798
4879
|
contents.Id = __expectString(data.Id);
|
|
3799
4880
|
}
|
|
3800
|
-
if (data.
|
|
3801
|
-
contents.
|
|
3802
|
-
}
|
|
3803
|
-
if (data.Name !== undefined && data.Name !== null) {
|
|
3804
|
-
contents.Name = __expectString(data.Name);
|
|
4881
|
+
if (data.Parameters !== undefined && data.Parameters !== null) {
|
|
4882
|
+
contents.Parameters = deserializeAws_restJson1ParameterValueMap(data.Parameters, context);
|
|
3805
4883
|
}
|
|
3806
|
-
if (data.
|
|
3807
|
-
contents.
|
|
4884
|
+
if (data.ResourceArn !== undefined && data.ResourceArn !== null) {
|
|
4885
|
+
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
3808
4886
|
}
|
|
3809
4887
|
return [2, Promise.resolve(contents)];
|
|
3810
4888
|
}
|
|
3811
4889
|
});
|
|
3812
4890
|
}); };
|
|
3813
|
-
var
|
|
4891
|
+
var deserializeAws_restJson1UpdateExtensionAssociationCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3814
4892
|
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
3815
4893
|
var _c;
|
|
3816
4894
|
return __generator(this, function (_d) {
|
|
@@ -4000,8 +5078,31 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
4000
5078
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
4001
5079
|
});
|
|
4002
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
|
+
};
|
|
4003
5104
|
var serializeAws_restJson1Monitor = function (input, context) {
|
|
4004
|
-
return __assign(__assign({}, (input.AlarmArn
|
|
5105
|
+
return __assign(__assign({}, (input.AlarmArn != null && { AlarmArn: input.AlarmArn })), (input.AlarmRoleArn != null && { AlarmRoleArn: input.AlarmRoleArn }));
|
|
4005
5106
|
};
|
|
4006
5107
|
var serializeAws_restJson1MonitorList = function (input, context) {
|
|
4007
5108
|
return input
|
|
@@ -4013,6 +5114,29 @@ var serializeAws_restJson1MonitorList = function (input, context) {
|
|
|
4013
5114
|
return serializeAws_restJson1Monitor(entry, context);
|
|
4014
5115
|
});
|
|
4015
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
|
+
};
|
|
4016
5140
|
var serializeAws_restJson1TagMap = function (input, context) {
|
|
4017
5141
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
4018
5142
|
var _b;
|
|
@@ -4024,7 +5148,7 @@ var serializeAws_restJson1TagMap = function (input, context) {
|
|
|
4024
5148
|
}, {});
|
|
4025
5149
|
};
|
|
4026
5150
|
var serializeAws_restJson1Validator = function (input, context) {
|
|
4027
|
-
return __assign(__assign({}, (input.Content
|
|
5151
|
+
return __assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Type != null && { Type: input.Type }));
|
|
4028
5152
|
};
|
|
4029
5153
|
var serializeAws_restJson1ValidatorList = function (input, context) {
|
|
4030
5154
|
return input
|
|
@@ -4036,6 +5160,57 @@ var serializeAws_restJson1ValidatorList = function (input, context) {
|
|
|
4036
5160
|
return serializeAws_restJson1Validator(entry, context);
|
|
4037
5161
|
});
|
|
4038
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
|
+
};
|
|
4039
5214
|
var deserializeAws_restJson1Application = function (output, context) {
|
|
4040
5215
|
return {
|
|
4041
5216
|
Description: __expectString(output.Description),
|
|
@@ -4054,6 +5229,25 @@ var deserializeAws_restJson1ApplicationList = function (output, context) {
|
|
|
4054
5229
|
});
|
|
4055
5230
|
return retVal;
|
|
4056
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
|
+
};
|
|
4057
5251
|
var deserializeAws_restJson1BadRequestDetails = function (output, context) {
|
|
4058
5252
|
if (output.InvalidConfiguration !== undefined && output.InvalidConfiguration !== null) {
|
|
4059
5253
|
return {
|
|
@@ -4069,7 +5263,7 @@ var deserializeAws_restJson1ConfigurationProfileSummary = function (output, cont
|
|
|
4069
5263
|
LocationUri: __expectString(output.LocationUri),
|
|
4070
5264
|
Name: __expectString(output.Name),
|
|
4071
5265
|
Type: __expectString(output.Type),
|
|
4072
|
-
ValidatorTypes: output.ValidatorTypes
|
|
5266
|
+
ValidatorTypes: output.ValidatorTypes != null
|
|
4073
5267
|
? deserializeAws_restJson1ValidatorTypeList(output.ValidatorTypes, context)
|
|
4074
5268
|
: undefined,
|
|
4075
5269
|
};
|
|
@@ -4087,11 +5281,12 @@ var deserializeAws_restJson1ConfigurationProfileSummaryList = function (output,
|
|
|
4087
5281
|
};
|
|
4088
5282
|
var deserializeAws_restJson1DeploymentEvent = function (output, context) {
|
|
4089
5283
|
return {
|
|
5284
|
+
ActionInvocations: output.ActionInvocations != null
|
|
5285
|
+
? deserializeAws_restJson1ActionInvocations(output.ActionInvocations, context)
|
|
5286
|
+
: undefined,
|
|
4090
5287
|
Description: __expectString(output.Description),
|
|
4091
5288
|
EventType: __expectString(output.EventType),
|
|
4092
|
-
OccurredAt: output.OccurredAt
|
|
4093
|
-
? __expectNonNull(__parseRfc3339DateTime(output.OccurredAt))
|
|
4094
|
-
: undefined,
|
|
5289
|
+
OccurredAt: output.OccurredAt != null ? __expectNonNull(__parseRfc3339DateTime(output.OccurredAt)) : undefined,
|
|
4095
5290
|
TriggeredBy: __expectString(output.TriggeredBy),
|
|
4096
5291
|
};
|
|
4097
5292
|
};
|
|
@@ -4142,9 +5337,7 @@ var deserializeAws_restJson1DeploymentStrategyList = function (output, context)
|
|
|
4142
5337
|
};
|
|
4143
5338
|
var deserializeAws_restJson1DeploymentSummary = function (output, context) {
|
|
4144
5339
|
return {
|
|
4145
|
-
CompletedAt: output.CompletedAt
|
|
4146
|
-
? __expectNonNull(__parseRfc3339DateTime(output.CompletedAt))
|
|
4147
|
-
: undefined,
|
|
5340
|
+
CompletedAt: output.CompletedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.CompletedAt)) : undefined,
|
|
4148
5341
|
ConfigurationName: __expectString(output.ConfigurationName),
|
|
4149
5342
|
ConfigurationVersion: __expectString(output.ConfigurationVersion),
|
|
4150
5343
|
DeploymentDurationInMinutes: __expectInt32(output.DeploymentDurationInMinutes),
|
|
@@ -4153,9 +5346,7 @@ var deserializeAws_restJson1DeploymentSummary = function (output, context) {
|
|
|
4153
5346
|
GrowthFactor: __limitedParseFloat32(output.GrowthFactor),
|
|
4154
5347
|
GrowthType: __expectString(output.GrowthType),
|
|
4155
5348
|
PercentageComplete: __limitedParseFloat32(output.PercentageComplete),
|
|
4156
|
-
StartedAt: output.StartedAt
|
|
4157
|
-
? __expectNonNull(__parseRfc3339DateTime(output.StartedAt))
|
|
4158
|
-
: undefined,
|
|
5349
|
+
StartedAt: output.StartedAt != null ? __expectNonNull(__parseRfc3339DateTime(output.StartedAt)) : undefined,
|
|
4159
5350
|
State: __expectString(output.State),
|
|
4160
5351
|
};
|
|
4161
5352
|
};
|
|
@@ -4164,9 +5355,7 @@ var deserializeAws_restJson1Environment = function (output, context) {
|
|
|
4164
5355
|
ApplicationId: __expectString(output.ApplicationId),
|
|
4165
5356
|
Description: __expectString(output.Description),
|
|
4166
5357
|
Id: __expectString(output.Id),
|
|
4167
|
-
Monitors: output.Monitors
|
|
4168
|
-
? deserializeAws_restJson1MonitorList(output.Monitors, context)
|
|
4169
|
-
: undefined,
|
|
5358
|
+
Monitors: output.Monitors != null ? deserializeAws_restJson1MonitorList(output.Monitors, context) : undefined,
|
|
4170
5359
|
Name: __expectString(output.Name),
|
|
4171
5360
|
State: __expectString(output.State),
|
|
4172
5361
|
};
|
|
@@ -4182,6 +5371,44 @@ var deserializeAws_restJson1EnvironmentList = function (output, context) {
|
|
|
4182
5371
|
});
|
|
4183
5372
|
return retVal;
|
|
4184
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
|
+
};
|
|
4185
5412
|
var deserializeAws_restJson1HostedConfigurationVersionSummary = function (output, context) {
|
|
4186
5413
|
return {
|
|
4187
5414
|
ApplicationId: __expectString(output.ApplicationId),
|
|
@@ -4208,6 +5435,7 @@ var deserializeAws_restJson1InvalidConfigurationDetail = function (output, conte
|
|
|
4208
5435
|
Location: __expectString(output.Location),
|
|
4209
5436
|
Reason: __expectString(output.Reason),
|
|
4210
5437
|
Type: __expectString(output.Type),
|
|
5438
|
+
Value: __expectString(output.Value),
|
|
4211
5439
|
};
|
|
4212
5440
|
};
|
|
4213
5441
|
var deserializeAws_restJson1InvalidConfigurationDetailList = function (output, context) {
|
|
@@ -4238,6 +5466,32 @@ var deserializeAws_restJson1MonitorList = function (output, context) {
|
|
|
4238
5466
|
});
|
|
4239
5467
|
return retVal;
|
|
4240
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
|
+
};
|
|
4241
5495
|
var deserializeAws_restJson1TagMap = function (output, context) {
|
|
4242
5496
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
4243
5497
|
var _b;
|