@aws-sdk/client-appconfig 3.303.0 → 3.309.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/dist-cjs/commands/CreateApplicationCommand.js +2 -2
- package/dist-cjs/commands/CreateConfigurationProfileCommand.js +2 -2
- package/dist-cjs/commands/CreateDeploymentStrategyCommand.js +2 -2
- package/dist-cjs/commands/CreateEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/CreateExtensionAssociationCommand.js +2 -2
- package/dist-cjs/commands/CreateExtensionCommand.js +2 -2
- package/dist-cjs/commands/CreateHostedConfigurationVersionCommand.js +2 -2
- package/dist-cjs/commands/DeleteApplicationCommand.js +2 -2
- package/dist-cjs/commands/DeleteConfigurationProfileCommand.js +2 -2
- package/dist-cjs/commands/DeleteDeploymentStrategyCommand.js +2 -2
- package/dist-cjs/commands/DeleteEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/DeleteExtensionAssociationCommand.js +2 -2
- package/dist-cjs/commands/DeleteExtensionCommand.js +2 -2
- package/dist-cjs/commands/DeleteHostedConfigurationVersionCommand.js +2 -2
- package/dist-cjs/commands/GetApplicationCommand.js +2 -2
- package/dist-cjs/commands/GetConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetConfigurationProfileCommand.js +2 -2
- package/dist-cjs/commands/GetDeploymentCommand.js +2 -2
- package/dist-cjs/commands/GetDeploymentStrategyCommand.js +2 -2
- package/dist-cjs/commands/GetEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/GetExtensionAssociationCommand.js +2 -2
- package/dist-cjs/commands/GetExtensionCommand.js +2 -2
- package/dist-cjs/commands/GetHostedConfigurationVersionCommand.js +2 -2
- package/dist-cjs/commands/ListApplicationsCommand.js +2 -2
- package/dist-cjs/commands/ListConfigurationProfilesCommand.js +2 -2
- package/dist-cjs/commands/ListDeploymentStrategiesCommand.js +2 -2
- package/dist-cjs/commands/ListDeploymentsCommand.js +2 -2
- package/dist-cjs/commands/ListEnvironmentsCommand.js +2 -2
- package/dist-cjs/commands/ListExtensionAssociationsCommand.js +2 -2
- package/dist-cjs/commands/ListExtensionsCommand.js +2 -2
- package/dist-cjs/commands/ListHostedConfigurationVersionsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/StartDeploymentCommand.js +2 -2
- package/dist-cjs/commands/StopDeploymentCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateApplicationCommand.js +2 -2
- package/dist-cjs/commands/UpdateConfigurationProfileCommand.js +2 -2
- package/dist-cjs/commands/UpdateDeploymentStrategyCommand.js +2 -2
- package/dist-cjs/commands/UpdateEnvironmentCommand.js +2 -2
- package/dist-cjs/commands/UpdateExtensionAssociationCommand.js +2 -2
- package/dist-cjs/commands/UpdateExtensionCommand.js +2 -2
- package/dist-cjs/commands/ValidateConfigurationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +522 -526
- package/dist-es/commands/CreateApplicationCommand.js +3 -3
- package/dist-es/commands/CreateConfigurationProfileCommand.js +3 -3
- package/dist-es/commands/CreateDeploymentStrategyCommand.js +3 -3
- package/dist-es/commands/CreateEnvironmentCommand.js +3 -3
- package/dist-es/commands/CreateExtensionAssociationCommand.js +3 -3
- package/dist-es/commands/CreateExtensionCommand.js +3 -3
- package/dist-es/commands/CreateHostedConfigurationVersionCommand.js +3 -3
- package/dist-es/commands/DeleteApplicationCommand.js +3 -3
- package/dist-es/commands/DeleteConfigurationProfileCommand.js +3 -3
- package/dist-es/commands/DeleteDeploymentStrategyCommand.js +3 -3
- package/dist-es/commands/DeleteEnvironmentCommand.js +3 -3
- package/dist-es/commands/DeleteExtensionAssociationCommand.js +3 -3
- package/dist-es/commands/DeleteExtensionCommand.js +3 -3
- package/dist-es/commands/DeleteHostedConfigurationVersionCommand.js +3 -3
- package/dist-es/commands/GetApplicationCommand.js +3 -3
- package/dist-es/commands/GetConfigurationCommand.js +3 -3
- package/dist-es/commands/GetConfigurationProfileCommand.js +3 -3
- package/dist-es/commands/GetDeploymentCommand.js +3 -3
- package/dist-es/commands/GetDeploymentStrategyCommand.js +3 -3
- package/dist-es/commands/GetEnvironmentCommand.js +3 -3
- package/dist-es/commands/GetExtensionAssociationCommand.js +3 -3
- package/dist-es/commands/GetExtensionCommand.js +3 -3
- package/dist-es/commands/GetHostedConfigurationVersionCommand.js +3 -3
- package/dist-es/commands/ListApplicationsCommand.js +3 -3
- package/dist-es/commands/ListConfigurationProfilesCommand.js +3 -3
- package/dist-es/commands/ListDeploymentStrategiesCommand.js +3 -3
- package/dist-es/commands/ListDeploymentsCommand.js +3 -3
- package/dist-es/commands/ListEnvironmentsCommand.js +3 -3
- package/dist-es/commands/ListExtensionAssociationsCommand.js +3 -3
- package/dist-es/commands/ListExtensionsCommand.js +3 -3
- package/dist-es/commands/ListHostedConfigurationVersionsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/StartDeploymentCommand.js +3 -3
- package/dist-es/commands/StopDeploymentCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateApplicationCommand.js +3 -3
- package/dist-es/commands/UpdateConfigurationProfileCommand.js +3 -3
- package/dist-es/commands/UpdateDeploymentStrategyCommand.js +3 -3
- package/dist-es/commands/UpdateEnvironmentCommand.js +3 -3
- package/dist-es/commands/UpdateExtensionAssociationCommand.js +3 -3
- package/dist-es/commands/UpdateExtensionCommand.js +3 -3
- package/dist-es/commands/ValidateConfigurationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +434 -438
- package/dist-types/protocols/Aws_restJson1.d.ts +344 -86
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +86 -86
- package/package.json +29 -29
|
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseFloat32 as __limitedParseFloat32, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AppConfigServiceException as __BaseException } from "../models/AppConfigServiceException";
|
|
4
4
|
import { BadRequestException, ConflictException, InternalServerException, PayloadTooLargeException, ResourceNotFoundException, ServiceQuotaExceededException, } from "../models/models_0";
|
|
5
|
-
export const
|
|
5
|
+
export const se_CreateApplicationCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
@@ -12,7 +12,7 @@ export const serializeAws_restJson1CreateApplicationCommand = async (input, cont
|
|
|
12
12
|
body = JSON.stringify({
|
|
13
13
|
...(input.Description != null && { Description: input.Description }),
|
|
14
14
|
...(input.Name != null && { Name: input.Name }),
|
|
15
|
-
...(input.Tags != null && { Tags:
|
|
15
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
16
16
|
});
|
|
17
17
|
return new __HttpRequest({
|
|
18
18
|
protocol,
|
|
@@ -24,7 +24,7 @@ export const serializeAws_restJson1CreateApplicationCommand = async (input, cont
|
|
|
24
24
|
body,
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
|
-
export const
|
|
27
|
+
export const se_CreateConfigurationProfileCommand = async (input, context) => {
|
|
28
28
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/json",
|
|
@@ -38,9 +38,9 @@ export const serializeAws_restJson1CreateConfigurationProfileCommand = async (in
|
|
|
38
38
|
...(input.LocationUri != null && { LocationUri: input.LocationUri }),
|
|
39
39
|
...(input.Name != null && { Name: input.Name }),
|
|
40
40
|
...(input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn }),
|
|
41
|
-
...(input.Tags != null && { Tags:
|
|
41
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
42
42
|
...(input.Type != null && { Type: input.Type }),
|
|
43
|
-
...(input.Validators != null && { Validators:
|
|
43
|
+
...(input.Validators != null && { Validators: se_ValidatorList(input.Validators, context) }),
|
|
44
44
|
});
|
|
45
45
|
return new __HttpRequest({
|
|
46
46
|
protocol,
|
|
@@ -52,7 +52,7 @@ export const serializeAws_restJson1CreateConfigurationProfileCommand = async (in
|
|
|
52
52
|
body,
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
-
export const
|
|
55
|
+
export const se_CreateDeploymentStrategyCommand = async (input, context) => {
|
|
56
56
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
57
|
const headers = {
|
|
58
58
|
"content-type": "application/json",
|
|
@@ -69,7 +69,7 @@ export const serializeAws_restJson1CreateDeploymentStrategyCommand = async (inpu
|
|
|
69
69
|
...(input.GrowthType != null && { GrowthType: input.GrowthType }),
|
|
70
70
|
...(input.Name != null && { Name: input.Name }),
|
|
71
71
|
...(input.ReplicateTo != null && { ReplicateTo: input.ReplicateTo }),
|
|
72
|
-
...(input.Tags != null && { Tags:
|
|
72
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
73
73
|
});
|
|
74
74
|
return new __HttpRequest({
|
|
75
75
|
protocol,
|
|
@@ -81,7 +81,7 @@ export const serializeAws_restJson1CreateDeploymentStrategyCommand = async (inpu
|
|
|
81
81
|
body,
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
|
-
export const
|
|
84
|
+
export const se_CreateEnvironmentCommand = async (input, context) => {
|
|
85
85
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
86
86
|
const headers = {
|
|
87
87
|
"content-type": "application/json",
|
|
@@ -92,9 +92,9 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
|
|
|
92
92
|
let body;
|
|
93
93
|
body = JSON.stringify({
|
|
94
94
|
...(input.Description != null && { Description: input.Description }),
|
|
95
|
-
...(input.Monitors != null && { Monitors:
|
|
95
|
+
...(input.Monitors != null && { Monitors: se_MonitorList(input.Monitors, context) }),
|
|
96
96
|
...(input.Name != null && { Name: input.Name }),
|
|
97
|
-
...(input.Tags != null && { Tags:
|
|
97
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
98
98
|
});
|
|
99
99
|
return new __HttpRequest({
|
|
100
100
|
protocol,
|
|
@@ -106,7 +106,7 @@ export const serializeAws_restJson1CreateEnvironmentCommand = async (input, cont
|
|
|
106
106
|
body,
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
export const
|
|
109
|
+
export const se_CreateExtensionCommand = async (input, context) => {
|
|
110
110
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
111
111
|
const headers = map({}, isSerializableHeaderValue, {
|
|
112
112
|
"content-type": "application/json",
|
|
@@ -118,11 +118,11 @@ export const serializeAws_restJson1CreateExtensionCommand = async (input, contex
|
|
|
118
118
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions";
|
|
119
119
|
let body;
|
|
120
120
|
body = JSON.stringify({
|
|
121
|
-
...(input.Actions != null && { Actions:
|
|
121
|
+
...(input.Actions != null && { Actions: se_ActionsMap(input.Actions, context) }),
|
|
122
122
|
...(input.Description != null && { Description: input.Description }),
|
|
123
123
|
...(input.Name != null && { Name: input.Name }),
|
|
124
|
-
...(input.Parameters != null && { Parameters:
|
|
125
|
-
...(input.Tags != null && { Tags:
|
|
124
|
+
...(input.Parameters != null && { Parameters: se_ParameterMap(input.Parameters, context) }),
|
|
125
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
126
126
|
});
|
|
127
127
|
return new __HttpRequest({
|
|
128
128
|
protocol,
|
|
@@ -134,7 +134,7 @@ export const serializeAws_restJson1CreateExtensionCommand = async (input, contex
|
|
|
134
134
|
body,
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
|
-
export const
|
|
137
|
+
export const se_CreateExtensionAssociationCommand = async (input, context) => {
|
|
138
138
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
139
139
|
const headers = {
|
|
140
140
|
"content-type": "application/json",
|
|
@@ -144,9 +144,9 @@ export const serializeAws_restJson1CreateExtensionAssociationCommand = async (in
|
|
|
144
144
|
body = JSON.stringify({
|
|
145
145
|
...(input.ExtensionIdentifier != null && { ExtensionIdentifier: input.ExtensionIdentifier }),
|
|
146
146
|
...(input.ExtensionVersionNumber != null && { ExtensionVersionNumber: input.ExtensionVersionNumber }),
|
|
147
|
-
...(input.Parameters != null && { Parameters:
|
|
147
|
+
...(input.Parameters != null && { Parameters: se_ParameterValueMap(input.Parameters, context) }),
|
|
148
148
|
...(input.ResourceIdentifier != null && { ResourceIdentifier: input.ResourceIdentifier }),
|
|
149
|
-
...(input.Tags != null && { Tags:
|
|
149
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
150
150
|
});
|
|
151
151
|
return new __HttpRequest({
|
|
152
152
|
protocol,
|
|
@@ -158,7 +158,7 @@ export const serializeAws_restJson1CreateExtensionAssociationCommand = async (in
|
|
|
158
158
|
body,
|
|
159
159
|
});
|
|
160
160
|
};
|
|
161
|
-
export const
|
|
161
|
+
export const se_CreateHostedConfigurationVersionCommand = async (input, context) => {
|
|
162
162
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
163
163
|
const headers = map({}, isSerializableHeaderValue, {
|
|
164
164
|
"content-type": input.ContentType || "application/octet-stream",
|
|
@@ -187,7 +187,7 @@ export const serializeAws_restJson1CreateHostedConfigurationVersionCommand = asy
|
|
|
187
187
|
body,
|
|
188
188
|
});
|
|
189
189
|
};
|
|
190
|
-
export const
|
|
190
|
+
export const se_DeleteApplicationCommand = async (input, context) => {
|
|
191
191
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
192
192
|
const headers = {};
|
|
193
193
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
|
|
@@ -203,7 +203,7 @@ export const serializeAws_restJson1DeleteApplicationCommand = async (input, cont
|
|
|
203
203
|
body,
|
|
204
204
|
});
|
|
205
205
|
};
|
|
206
|
-
export const
|
|
206
|
+
export const se_DeleteConfigurationProfileCommand = async (input, context) => {
|
|
207
207
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
208
208
|
const headers = {};
|
|
209
209
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -221,7 +221,7 @@ export const serializeAws_restJson1DeleteConfigurationProfileCommand = async (in
|
|
|
221
221
|
body,
|
|
222
222
|
});
|
|
223
223
|
};
|
|
224
|
-
export const
|
|
224
|
+
export const se_DeleteDeploymentStrategyCommand = async (input, context) => {
|
|
225
225
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
226
|
const headers = {};
|
|
227
227
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -238,7 +238,7 @@ export const serializeAws_restJson1DeleteDeploymentStrategyCommand = async (inpu
|
|
|
238
238
|
body,
|
|
239
239
|
});
|
|
240
240
|
};
|
|
241
|
-
export const
|
|
241
|
+
export const se_DeleteEnvironmentCommand = async (input, context) => {
|
|
242
242
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
243
243
|
const headers = {};
|
|
244
244
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -256,7 +256,7 @@ export const serializeAws_restJson1DeleteEnvironmentCommand = async (input, cont
|
|
|
256
256
|
body,
|
|
257
257
|
});
|
|
258
258
|
};
|
|
259
|
-
export const
|
|
259
|
+
export const se_DeleteExtensionCommand = async (input, context) => {
|
|
260
260
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
261
261
|
const headers = {};
|
|
262
262
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
|
|
@@ -276,7 +276,7 @@ export const serializeAws_restJson1DeleteExtensionCommand = async (input, contex
|
|
|
276
276
|
body,
|
|
277
277
|
});
|
|
278
278
|
};
|
|
279
|
-
export const
|
|
279
|
+
export const se_DeleteExtensionAssociationCommand = async (input, context) => {
|
|
280
280
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
281
281
|
const headers = {};
|
|
282
282
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -293,7 +293,7 @@ export const serializeAws_restJson1DeleteExtensionAssociationCommand = async (in
|
|
|
293
293
|
body,
|
|
294
294
|
});
|
|
295
295
|
};
|
|
296
|
-
export const
|
|
296
|
+
export const se_DeleteHostedConfigurationVersionCommand = async (input, context) => {
|
|
297
297
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
298
298
|
const headers = {};
|
|
299
299
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -312,7 +312,7 @@ export const serializeAws_restJson1DeleteHostedConfigurationVersionCommand = asy
|
|
|
312
312
|
body,
|
|
313
313
|
});
|
|
314
314
|
};
|
|
315
|
-
export const
|
|
315
|
+
export const se_GetApplicationCommand = async (input, context) => {
|
|
316
316
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
317
317
|
const headers = {};
|
|
318
318
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications/{ApplicationId}";
|
|
@@ -328,7 +328,7 @@ export const serializeAws_restJson1GetApplicationCommand = async (input, context
|
|
|
328
328
|
body,
|
|
329
329
|
});
|
|
330
330
|
};
|
|
331
|
-
export const
|
|
331
|
+
export const se_GetConfigurationCommand = async (input, context) => {
|
|
332
332
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
333
333
|
const headers = {};
|
|
334
334
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -352,7 +352,7 @@ export const serializeAws_restJson1GetConfigurationCommand = async (input, conte
|
|
|
352
352
|
body,
|
|
353
353
|
});
|
|
354
354
|
};
|
|
355
|
-
export const
|
|
355
|
+
export const se_GetConfigurationProfileCommand = async (input, context) => {
|
|
356
356
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
357
357
|
const headers = {};
|
|
358
358
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -370,7 +370,7 @@ export const serializeAws_restJson1GetConfigurationProfileCommand = async (input
|
|
|
370
370
|
body,
|
|
371
371
|
});
|
|
372
372
|
};
|
|
373
|
-
export const
|
|
373
|
+
export const se_GetDeploymentCommand = async (input, context) => {
|
|
374
374
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
375
375
|
const headers = {};
|
|
376
376
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -389,7 +389,7 @@ export const serializeAws_restJson1GetDeploymentCommand = async (input, context)
|
|
|
389
389
|
body,
|
|
390
390
|
});
|
|
391
391
|
};
|
|
392
|
-
export const
|
|
392
|
+
export const se_GetDeploymentStrategyCommand = async (input, context) => {
|
|
393
393
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
394
394
|
const headers = {};
|
|
395
395
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -406,7 +406,7 @@ export const serializeAws_restJson1GetDeploymentStrategyCommand = async (input,
|
|
|
406
406
|
body,
|
|
407
407
|
});
|
|
408
408
|
};
|
|
409
|
-
export const
|
|
409
|
+
export const se_GetEnvironmentCommand = async (input, context) => {
|
|
410
410
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
411
411
|
const headers = {};
|
|
412
412
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -424,7 +424,7 @@ export const serializeAws_restJson1GetEnvironmentCommand = async (input, context
|
|
|
424
424
|
body,
|
|
425
425
|
});
|
|
426
426
|
};
|
|
427
|
-
export const
|
|
427
|
+
export const se_GetExtensionCommand = async (input, context) => {
|
|
428
428
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
429
429
|
const headers = {};
|
|
430
430
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions/{ExtensionIdentifier}";
|
|
@@ -444,7 +444,7 @@ export const serializeAws_restJson1GetExtensionCommand = async (input, context)
|
|
|
444
444
|
body,
|
|
445
445
|
});
|
|
446
446
|
};
|
|
447
|
-
export const
|
|
447
|
+
export const se_GetExtensionAssociationCommand = async (input, context) => {
|
|
448
448
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
449
449
|
const headers = {};
|
|
450
450
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -461,7 +461,7 @@ export const serializeAws_restJson1GetExtensionAssociationCommand = async (input
|
|
|
461
461
|
body,
|
|
462
462
|
});
|
|
463
463
|
};
|
|
464
|
-
export const
|
|
464
|
+
export const se_GetHostedConfigurationVersionCommand = async (input, context) => {
|
|
465
465
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
466
466
|
const headers = {};
|
|
467
467
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -480,7 +480,7 @@ export const serializeAws_restJson1GetHostedConfigurationVersionCommand = async
|
|
|
480
480
|
body,
|
|
481
481
|
});
|
|
482
482
|
};
|
|
483
|
-
export const
|
|
483
|
+
export const se_ListApplicationsCommand = async (input, context) => {
|
|
484
484
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
485
485
|
const headers = {};
|
|
486
486
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/applications";
|
|
@@ -500,7 +500,7 @@ export const serializeAws_restJson1ListApplicationsCommand = async (input, conte
|
|
|
500
500
|
body,
|
|
501
501
|
});
|
|
502
502
|
};
|
|
503
|
-
export const
|
|
503
|
+
export const se_ListConfigurationProfilesCommand = async (input, context) => {
|
|
504
504
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
505
505
|
const headers = {};
|
|
506
506
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -523,7 +523,7 @@ export const serializeAws_restJson1ListConfigurationProfilesCommand = async (inp
|
|
|
523
523
|
body,
|
|
524
524
|
});
|
|
525
525
|
};
|
|
526
|
-
export const
|
|
526
|
+
export const se_ListDeploymentsCommand = async (input, context) => {
|
|
527
527
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
528
528
|
const headers = {};
|
|
529
529
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -546,7 +546,7 @@ export const serializeAws_restJson1ListDeploymentsCommand = async (input, contex
|
|
|
546
546
|
body,
|
|
547
547
|
});
|
|
548
548
|
};
|
|
549
|
-
export const
|
|
549
|
+
export const se_ListDeploymentStrategiesCommand = async (input, context) => {
|
|
550
550
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
551
551
|
const headers = {};
|
|
552
552
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/deploymentstrategies";
|
|
@@ -566,7 +566,7 @@ export const serializeAws_restJson1ListDeploymentStrategiesCommand = async (inpu
|
|
|
566
566
|
body,
|
|
567
567
|
});
|
|
568
568
|
};
|
|
569
|
-
export const
|
|
569
|
+
export const se_ListEnvironmentsCommand = async (input, context) => {
|
|
570
570
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
571
571
|
const headers = {};
|
|
572
572
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -588,7 +588,7 @@ export const serializeAws_restJson1ListEnvironmentsCommand = async (input, conte
|
|
|
588
588
|
body,
|
|
589
589
|
});
|
|
590
590
|
};
|
|
591
|
-
export const
|
|
591
|
+
export const se_ListExtensionAssociationsCommand = async (input, context) => {
|
|
592
592
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
593
593
|
const headers = {};
|
|
594
594
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensionassociations";
|
|
@@ -614,7 +614,7 @@ export const serializeAws_restJson1ListExtensionAssociationsCommand = async (inp
|
|
|
614
614
|
body,
|
|
615
615
|
});
|
|
616
616
|
};
|
|
617
|
-
export const
|
|
617
|
+
export const se_ListExtensionsCommand = async (input, context) => {
|
|
618
618
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
619
619
|
const headers = {};
|
|
620
620
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/extensions";
|
|
@@ -635,7 +635,7 @@ export const serializeAws_restJson1ListExtensionsCommand = async (input, context
|
|
|
635
635
|
body,
|
|
636
636
|
});
|
|
637
637
|
};
|
|
638
|
-
export const
|
|
638
|
+
export const se_ListHostedConfigurationVersionsCommand = async (input, context) => {
|
|
639
639
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
640
640
|
const headers = {};
|
|
641
641
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -659,7 +659,7 @@ export const serializeAws_restJson1ListHostedConfigurationVersionsCommand = asyn
|
|
|
659
659
|
body,
|
|
660
660
|
});
|
|
661
661
|
};
|
|
662
|
-
export const
|
|
662
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
663
663
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
664
664
|
const headers = {};
|
|
665
665
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -675,7 +675,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
675
675
|
body,
|
|
676
676
|
});
|
|
677
677
|
};
|
|
678
|
-
export const
|
|
678
|
+
export const se_StartDeploymentCommand = async (input, context) => {
|
|
679
679
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
680
680
|
const headers = {
|
|
681
681
|
"content-type": "application/json",
|
|
@@ -691,7 +691,7 @@ export const serializeAws_restJson1StartDeploymentCommand = async (input, contex
|
|
|
691
691
|
...(input.DeploymentStrategyId != null && { DeploymentStrategyId: input.DeploymentStrategyId }),
|
|
692
692
|
...(input.Description != null && { Description: input.Description }),
|
|
693
693
|
...(input.KmsKeyIdentifier != null && { KmsKeyIdentifier: input.KmsKeyIdentifier }),
|
|
694
|
-
...(input.Tags != null && { Tags:
|
|
694
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
695
695
|
});
|
|
696
696
|
return new __HttpRequest({
|
|
697
697
|
protocol,
|
|
@@ -703,7 +703,7 @@ export const serializeAws_restJson1StartDeploymentCommand = async (input, contex
|
|
|
703
703
|
body,
|
|
704
704
|
});
|
|
705
705
|
};
|
|
706
|
-
export const
|
|
706
|
+
export const se_StopDeploymentCommand = async (input, context) => {
|
|
707
707
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
708
708
|
const headers = {};
|
|
709
709
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -722,7 +722,7 @@ export const serializeAws_restJson1StopDeploymentCommand = async (input, context
|
|
|
722
722
|
body,
|
|
723
723
|
});
|
|
724
724
|
};
|
|
725
|
-
export const
|
|
725
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
726
726
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
727
727
|
const headers = {
|
|
728
728
|
"content-type": "application/json",
|
|
@@ -731,7 +731,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
731
731
|
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
732
732
|
let body;
|
|
733
733
|
body = JSON.stringify({
|
|
734
|
-
...(input.Tags != null && { Tags:
|
|
734
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
735
735
|
});
|
|
736
736
|
return new __HttpRequest({
|
|
737
737
|
protocol,
|
|
@@ -743,7 +743,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
743
743
|
body,
|
|
744
744
|
});
|
|
745
745
|
};
|
|
746
|
-
export const
|
|
746
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
747
747
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
748
748
|
const headers = {};
|
|
749
749
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
|
|
@@ -766,7 +766,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
766
766
|
body,
|
|
767
767
|
});
|
|
768
768
|
};
|
|
769
|
-
export const
|
|
769
|
+
export const se_UpdateApplicationCommand = async (input, context) => {
|
|
770
770
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
771
771
|
const headers = {
|
|
772
772
|
"content-type": "application/json",
|
|
@@ -788,7 +788,7 @@ export const serializeAws_restJson1UpdateApplicationCommand = async (input, cont
|
|
|
788
788
|
body,
|
|
789
789
|
});
|
|
790
790
|
};
|
|
791
|
-
export const
|
|
791
|
+
export const se_UpdateConfigurationProfileCommand = async (input, context) => {
|
|
792
792
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
793
793
|
const headers = {
|
|
794
794
|
"content-type": "application/json",
|
|
@@ -802,7 +802,7 @@ export const serializeAws_restJson1UpdateConfigurationProfileCommand = async (in
|
|
|
802
802
|
...(input.Description != null && { Description: input.Description }),
|
|
803
803
|
...(input.Name != null && { Name: input.Name }),
|
|
804
804
|
...(input.RetrievalRoleArn != null && { RetrievalRoleArn: input.RetrievalRoleArn }),
|
|
805
|
-
...(input.Validators != null && { Validators:
|
|
805
|
+
...(input.Validators != null && { Validators: se_ValidatorList(input.Validators, context) }),
|
|
806
806
|
});
|
|
807
807
|
return new __HttpRequest({
|
|
808
808
|
protocol,
|
|
@@ -814,7 +814,7 @@ export const serializeAws_restJson1UpdateConfigurationProfileCommand = async (in
|
|
|
814
814
|
body,
|
|
815
815
|
});
|
|
816
816
|
};
|
|
817
|
-
export const
|
|
817
|
+
export const se_UpdateDeploymentStrategyCommand = async (input, context) => {
|
|
818
818
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
819
819
|
const headers = {
|
|
820
820
|
"content-type": "application/json",
|
|
@@ -842,7 +842,7 @@ export const serializeAws_restJson1UpdateDeploymentStrategyCommand = async (inpu
|
|
|
842
842
|
body,
|
|
843
843
|
});
|
|
844
844
|
};
|
|
845
|
-
export const
|
|
845
|
+
export const se_UpdateEnvironmentCommand = async (input, context) => {
|
|
846
846
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
847
847
|
const headers = {
|
|
848
848
|
"content-type": "application/json",
|
|
@@ -854,7 +854,7 @@ export const serializeAws_restJson1UpdateEnvironmentCommand = async (input, cont
|
|
|
854
854
|
let body;
|
|
855
855
|
body = JSON.stringify({
|
|
856
856
|
...(input.Description != null && { Description: input.Description }),
|
|
857
|
-
...(input.Monitors != null && { Monitors:
|
|
857
|
+
...(input.Monitors != null && { Monitors: se_MonitorList(input.Monitors, context) }),
|
|
858
858
|
...(input.Name != null && { Name: input.Name }),
|
|
859
859
|
});
|
|
860
860
|
return new __HttpRequest({
|
|
@@ -867,7 +867,7 @@ export const serializeAws_restJson1UpdateEnvironmentCommand = async (input, cont
|
|
|
867
867
|
body,
|
|
868
868
|
});
|
|
869
869
|
};
|
|
870
|
-
export const
|
|
870
|
+
export const se_UpdateExtensionCommand = async (input, context) => {
|
|
871
871
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
872
872
|
const headers = {
|
|
873
873
|
"content-type": "application/json",
|
|
@@ -876,9 +876,9 @@ export const serializeAws_restJson1UpdateExtensionCommand = async (input, contex
|
|
|
876
876
|
resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionIdentifier", () => input.ExtensionIdentifier, "{ExtensionIdentifier}", false);
|
|
877
877
|
let body;
|
|
878
878
|
body = JSON.stringify({
|
|
879
|
-
...(input.Actions != null && { Actions:
|
|
879
|
+
...(input.Actions != null && { Actions: se_ActionsMap(input.Actions, context) }),
|
|
880
880
|
...(input.Description != null && { Description: input.Description }),
|
|
881
|
-
...(input.Parameters != null && { Parameters:
|
|
881
|
+
...(input.Parameters != null && { Parameters: se_ParameterMap(input.Parameters, context) }),
|
|
882
882
|
...(input.VersionNumber != null && { VersionNumber: input.VersionNumber }),
|
|
883
883
|
});
|
|
884
884
|
return new __HttpRequest({
|
|
@@ -891,7 +891,7 @@ export const serializeAws_restJson1UpdateExtensionCommand = async (input, contex
|
|
|
891
891
|
body,
|
|
892
892
|
});
|
|
893
893
|
};
|
|
894
|
-
export const
|
|
894
|
+
export const se_UpdateExtensionAssociationCommand = async (input, context) => {
|
|
895
895
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
896
896
|
const headers = {
|
|
897
897
|
"content-type": "application/json",
|
|
@@ -901,7 +901,7 @@ export const serializeAws_restJson1UpdateExtensionAssociationCommand = async (in
|
|
|
901
901
|
resolvedPath = __resolvedPath(resolvedPath, input, "ExtensionAssociationId", () => input.ExtensionAssociationId, "{ExtensionAssociationId}", false);
|
|
902
902
|
let body;
|
|
903
903
|
body = JSON.stringify({
|
|
904
|
-
...(input.Parameters != null && { Parameters:
|
|
904
|
+
...(input.Parameters != null && { Parameters: se_ParameterValueMap(input.Parameters, context) }),
|
|
905
905
|
});
|
|
906
906
|
return new __HttpRequest({
|
|
907
907
|
protocol,
|
|
@@ -913,7 +913,7 @@ export const serializeAws_restJson1UpdateExtensionAssociationCommand = async (in
|
|
|
913
913
|
body,
|
|
914
914
|
});
|
|
915
915
|
};
|
|
916
|
-
export const
|
|
916
|
+
export const se_ValidateConfigurationCommand = async (input, context) => {
|
|
917
917
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
918
918
|
const headers = {};
|
|
919
919
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -935,9 +935,9 @@ export const serializeAws_restJson1ValidateConfigurationCommand = async (input,
|
|
|
935
935
|
body,
|
|
936
936
|
});
|
|
937
937
|
};
|
|
938
|
-
export const
|
|
938
|
+
export const de_CreateApplicationCommand = async (output, context) => {
|
|
939
939
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
940
|
-
return
|
|
940
|
+
return de_CreateApplicationCommandError(output, context);
|
|
941
941
|
}
|
|
942
942
|
const contents = map({
|
|
943
943
|
$metadata: deserializeMetadata(output),
|
|
@@ -954,7 +954,7 @@ export const deserializeAws_restJson1CreateApplicationCommand = async (output, c
|
|
|
954
954
|
}
|
|
955
955
|
return contents;
|
|
956
956
|
};
|
|
957
|
-
const
|
|
957
|
+
const de_CreateApplicationCommandError = async (output, context) => {
|
|
958
958
|
const parsedOutput = {
|
|
959
959
|
...output,
|
|
960
960
|
body: await parseErrorBody(output.body, context),
|
|
@@ -963,10 +963,10 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
963
963
|
switch (errorCode) {
|
|
964
964
|
case "BadRequestException":
|
|
965
965
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
966
|
-
throw await
|
|
966
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
967
967
|
case "InternalServerException":
|
|
968
968
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
969
|
-
throw await
|
|
969
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
970
970
|
default:
|
|
971
971
|
const parsedBody = parsedOutput.body;
|
|
972
972
|
throwDefaultError({
|
|
@@ -977,9 +977,9 @@ const deserializeAws_restJson1CreateApplicationCommandError = async (output, con
|
|
|
977
977
|
});
|
|
978
978
|
}
|
|
979
979
|
};
|
|
980
|
-
export const
|
|
980
|
+
export const de_CreateConfigurationProfileCommand = async (output, context) => {
|
|
981
981
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
982
|
-
return
|
|
982
|
+
return de_CreateConfigurationProfileCommandError(output, context);
|
|
983
983
|
}
|
|
984
984
|
const contents = map({
|
|
985
985
|
$metadata: deserializeMetadata(output),
|
|
@@ -1007,11 +1007,11 @@ export const deserializeAws_restJson1CreateConfigurationProfileCommand = async (
|
|
|
1007
1007
|
contents.Type = __expectString(data.Type);
|
|
1008
1008
|
}
|
|
1009
1009
|
if (data.Validators != null) {
|
|
1010
|
-
contents.Validators =
|
|
1010
|
+
contents.Validators = de_ValidatorList(data.Validators, context);
|
|
1011
1011
|
}
|
|
1012
1012
|
return contents;
|
|
1013
1013
|
};
|
|
1014
|
-
const
|
|
1014
|
+
const de_CreateConfigurationProfileCommandError = async (output, context) => {
|
|
1015
1015
|
const parsedOutput = {
|
|
1016
1016
|
...output,
|
|
1017
1017
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1020,13 +1020,13 @@ const deserializeAws_restJson1CreateConfigurationProfileCommandError = async (ou
|
|
|
1020
1020
|
switch (errorCode) {
|
|
1021
1021
|
case "BadRequestException":
|
|
1022
1022
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1023
|
-
throw await
|
|
1023
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1024
1024
|
case "InternalServerException":
|
|
1025
1025
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1026
|
-
throw await
|
|
1026
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1027
1027
|
case "ResourceNotFoundException":
|
|
1028
1028
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1029
|
-
throw await
|
|
1029
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1030
1030
|
default:
|
|
1031
1031
|
const parsedBody = parsedOutput.body;
|
|
1032
1032
|
throwDefaultError({
|
|
@@ -1037,9 +1037,9 @@ const deserializeAws_restJson1CreateConfigurationProfileCommandError = async (ou
|
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
1039
|
};
|
|
1040
|
-
export const
|
|
1040
|
+
export const de_CreateDeploymentStrategyCommand = async (output, context) => {
|
|
1041
1041
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1042
|
-
return
|
|
1042
|
+
return de_CreateDeploymentStrategyCommandError(output, context);
|
|
1043
1043
|
}
|
|
1044
1044
|
const contents = map({
|
|
1045
1045
|
$metadata: deserializeMetadata(output),
|
|
@@ -1071,7 +1071,7 @@ export const deserializeAws_restJson1CreateDeploymentStrategyCommand = async (ou
|
|
|
1071
1071
|
}
|
|
1072
1072
|
return contents;
|
|
1073
1073
|
};
|
|
1074
|
-
const
|
|
1074
|
+
const de_CreateDeploymentStrategyCommandError = async (output, context) => {
|
|
1075
1075
|
const parsedOutput = {
|
|
1076
1076
|
...output,
|
|
1077
1077
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1080,10 +1080,10 @@ const deserializeAws_restJson1CreateDeploymentStrategyCommandError = async (outp
|
|
|
1080
1080
|
switch (errorCode) {
|
|
1081
1081
|
case "BadRequestException":
|
|
1082
1082
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1083
|
-
throw await
|
|
1083
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1084
1084
|
case "InternalServerException":
|
|
1085
1085
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1086
|
-
throw await
|
|
1086
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1087
1087
|
default:
|
|
1088
1088
|
const parsedBody = parsedOutput.body;
|
|
1089
1089
|
throwDefaultError({
|
|
@@ -1094,9 +1094,9 @@ const deserializeAws_restJson1CreateDeploymentStrategyCommandError = async (outp
|
|
|
1094
1094
|
});
|
|
1095
1095
|
}
|
|
1096
1096
|
};
|
|
1097
|
-
export const
|
|
1097
|
+
export const de_CreateEnvironmentCommand = async (output, context) => {
|
|
1098
1098
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1099
|
-
return
|
|
1099
|
+
return de_CreateEnvironmentCommandError(output, context);
|
|
1100
1100
|
}
|
|
1101
1101
|
const contents = map({
|
|
1102
1102
|
$metadata: deserializeMetadata(output),
|
|
@@ -1112,7 +1112,7 @@ export const deserializeAws_restJson1CreateEnvironmentCommand = async (output, c
|
|
|
1112
1112
|
contents.Id = __expectString(data.Id);
|
|
1113
1113
|
}
|
|
1114
1114
|
if (data.Monitors != null) {
|
|
1115
|
-
contents.Monitors =
|
|
1115
|
+
contents.Monitors = de_MonitorList(data.Monitors, context);
|
|
1116
1116
|
}
|
|
1117
1117
|
if (data.Name != null) {
|
|
1118
1118
|
contents.Name = __expectString(data.Name);
|
|
@@ -1122,7 +1122,7 @@ export const deserializeAws_restJson1CreateEnvironmentCommand = async (output, c
|
|
|
1122
1122
|
}
|
|
1123
1123
|
return contents;
|
|
1124
1124
|
};
|
|
1125
|
-
const
|
|
1125
|
+
const de_CreateEnvironmentCommandError = async (output, context) => {
|
|
1126
1126
|
const parsedOutput = {
|
|
1127
1127
|
...output,
|
|
1128
1128
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1131,13 +1131,13 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1131
1131
|
switch (errorCode) {
|
|
1132
1132
|
case "BadRequestException":
|
|
1133
1133
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1134
|
-
throw await
|
|
1134
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1135
1135
|
case "InternalServerException":
|
|
1136
1136
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1137
|
-
throw await
|
|
1137
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1138
1138
|
case "ResourceNotFoundException":
|
|
1139
1139
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1140
|
-
throw await
|
|
1140
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1141
1141
|
default:
|
|
1142
1142
|
const parsedBody = parsedOutput.body;
|
|
1143
1143
|
throwDefaultError({
|
|
@@ -1148,16 +1148,16 @@ const deserializeAws_restJson1CreateEnvironmentCommandError = async (output, con
|
|
|
1148
1148
|
});
|
|
1149
1149
|
}
|
|
1150
1150
|
};
|
|
1151
|
-
export const
|
|
1151
|
+
export const de_CreateExtensionCommand = async (output, context) => {
|
|
1152
1152
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1153
|
-
return
|
|
1153
|
+
return de_CreateExtensionCommandError(output, context);
|
|
1154
1154
|
}
|
|
1155
1155
|
const contents = map({
|
|
1156
1156
|
$metadata: deserializeMetadata(output),
|
|
1157
1157
|
});
|
|
1158
1158
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1159
1159
|
if (data.Actions != null) {
|
|
1160
|
-
contents.Actions =
|
|
1160
|
+
contents.Actions = de_ActionsMap(data.Actions, context);
|
|
1161
1161
|
}
|
|
1162
1162
|
if (data.Arn != null) {
|
|
1163
1163
|
contents.Arn = __expectString(data.Arn);
|
|
@@ -1172,14 +1172,14 @@ export const deserializeAws_restJson1CreateExtensionCommand = async (output, con
|
|
|
1172
1172
|
contents.Name = __expectString(data.Name);
|
|
1173
1173
|
}
|
|
1174
1174
|
if (data.Parameters != null) {
|
|
1175
|
-
contents.Parameters =
|
|
1175
|
+
contents.Parameters = de_ParameterMap(data.Parameters, context);
|
|
1176
1176
|
}
|
|
1177
1177
|
if (data.VersionNumber != null) {
|
|
1178
1178
|
contents.VersionNumber = __expectInt32(data.VersionNumber);
|
|
1179
1179
|
}
|
|
1180
1180
|
return contents;
|
|
1181
1181
|
};
|
|
1182
|
-
const
|
|
1182
|
+
const de_CreateExtensionCommandError = async (output, context) => {
|
|
1183
1183
|
const parsedOutput = {
|
|
1184
1184
|
...output,
|
|
1185
1185
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1188,16 +1188,16 @@ const deserializeAws_restJson1CreateExtensionCommandError = async (output, conte
|
|
|
1188
1188
|
switch (errorCode) {
|
|
1189
1189
|
case "BadRequestException":
|
|
1190
1190
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1191
|
-
throw await
|
|
1191
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1192
1192
|
case "ConflictException":
|
|
1193
1193
|
case "com.amazonaws.appconfig#ConflictException":
|
|
1194
|
-
throw await
|
|
1194
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1195
1195
|
case "InternalServerException":
|
|
1196
1196
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1197
|
-
throw await
|
|
1197
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1198
1198
|
case "ServiceQuotaExceededException":
|
|
1199
1199
|
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
1200
|
-
throw await
|
|
1200
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1201
1201
|
default:
|
|
1202
1202
|
const parsedBody = parsedOutput.body;
|
|
1203
1203
|
throwDefaultError({
|
|
@@ -1208,9 +1208,9 @@ const deserializeAws_restJson1CreateExtensionCommandError = async (output, conte
|
|
|
1208
1208
|
});
|
|
1209
1209
|
}
|
|
1210
1210
|
};
|
|
1211
|
-
export const
|
|
1211
|
+
export const de_CreateExtensionAssociationCommand = async (output, context) => {
|
|
1212
1212
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1213
|
-
return
|
|
1213
|
+
return de_CreateExtensionAssociationCommandError(output, context);
|
|
1214
1214
|
}
|
|
1215
1215
|
const contents = map({
|
|
1216
1216
|
$metadata: deserializeMetadata(output),
|
|
@@ -1229,14 +1229,14 @@ export const deserializeAws_restJson1CreateExtensionAssociationCommand = async (
|
|
|
1229
1229
|
contents.Id = __expectString(data.Id);
|
|
1230
1230
|
}
|
|
1231
1231
|
if (data.Parameters != null) {
|
|
1232
|
-
contents.Parameters =
|
|
1232
|
+
contents.Parameters = de_ParameterValueMap(data.Parameters, context);
|
|
1233
1233
|
}
|
|
1234
1234
|
if (data.ResourceArn != null) {
|
|
1235
1235
|
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
1236
1236
|
}
|
|
1237
1237
|
return contents;
|
|
1238
1238
|
};
|
|
1239
|
-
const
|
|
1239
|
+
const de_CreateExtensionAssociationCommandError = async (output, context) => {
|
|
1240
1240
|
const parsedOutput = {
|
|
1241
1241
|
...output,
|
|
1242
1242
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1245,16 +1245,16 @@ const deserializeAws_restJson1CreateExtensionAssociationCommandError = async (ou
|
|
|
1245
1245
|
switch (errorCode) {
|
|
1246
1246
|
case "BadRequestException":
|
|
1247
1247
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1248
|
-
throw await
|
|
1248
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1249
1249
|
case "InternalServerException":
|
|
1250
1250
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1251
|
-
throw await
|
|
1251
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1252
1252
|
case "ResourceNotFoundException":
|
|
1253
1253
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1254
|
-
throw await
|
|
1254
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1255
1255
|
case "ServiceQuotaExceededException":
|
|
1256
1256
|
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
1257
|
-
throw await
|
|
1257
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1258
1258
|
default:
|
|
1259
1259
|
const parsedBody = parsedOutput.body;
|
|
1260
1260
|
throwDefaultError({
|
|
@@ -1265,9 +1265,9 @@ const deserializeAws_restJson1CreateExtensionAssociationCommandError = async (ou
|
|
|
1265
1265
|
});
|
|
1266
1266
|
}
|
|
1267
1267
|
};
|
|
1268
|
-
export const
|
|
1268
|
+
export const de_CreateHostedConfigurationVersionCommand = async (output, context) => {
|
|
1269
1269
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1270
|
-
return
|
|
1270
|
+
return de_CreateHostedConfigurationVersionCommandError(output, context);
|
|
1271
1271
|
}
|
|
1272
1272
|
const contents = map({
|
|
1273
1273
|
$metadata: deserializeMetadata(output),
|
|
@@ -1285,7 +1285,7 @@ export const deserializeAws_restJson1CreateHostedConfigurationVersionCommand = a
|
|
|
1285
1285
|
contents.Content = data;
|
|
1286
1286
|
return contents;
|
|
1287
1287
|
};
|
|
1288
|
-
const
|
|
1288
|
+
const de_CreateHostedConfigurationVersionCommandError = async (output, context) => {
|
|
1289
1289
|
const parsedOutput = {
|
|
1290
1290
|
...output,
|
|
1291
1291
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1294,22 +1294,22 @@ const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = asy
|
|
|
1294
1294
|
switch (errorCode) {
|
|
1295
1295
|
case "BadRequestException":
|
|
1296
1296
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1297
|
-
throw await
|
|
1297
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1298
1298
|
case "ConflictException":
|
|
1299
1299
|
case "com.amazonaws.appconfig#ConflictException":
|
|
1300
|
-
throw await
|
|
1300
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1301
1301
|
case "InternalServerException":
|
|
1302
1302
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1303
|
-
throw await
|
|
1303
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1304
1304
|
case "PayloadTooLargeException":
|
|
1305
1305
|
case "com.amazonaws.appconfig#PayloadTooLargeException":
|
|
1306
|
-
throw await
|
|
1306
|
+
throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
|
|
1307
1307
|
case "ResourceNotFoundException":
|
|
1308
1308
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1309
|
-
throw await
|
|
1309
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1310
1310
|
case "ServiceQuotaExceededException":
|
|
1311
1311
|
case "com.amazonaws.appconfig#ServiceQuotaExceededException":
|
|
1312
|
-
throw await
|
|
1312
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1313
1313
|
default:
|
|
1314
1314
|
const parsedBody = parsedOutput.body;
|
|
1315
1315
|
throwDefaultError({
|
|
@@ -1320,9 +1320,9 @@ const deserializeAws_restJson1CreateHostedConfigurationVersionCommandError = asy
|
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
1322
|
};
|
|
1323
|
-
export const
|
|
1323
|
+
export const de_DeleteApplicationCommand = async (output, context) => {
|
|
1324
1324
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1325
|
-
return
|
|
1325
|
+
return de_DeleteApplicationCommandError(output, context);
|
|
1326
1326
|
}
|
|
1327
1327
|
const contents = map({
|
|
1328
1328
|
$metadata: deserializeMetadata(output),
|
|
@@ -1330,7 +1330,7 @@ export const deserializeAws_restJson1DeleteApplicationCommand = async (output, c
|
|
|
1330
1330
|
await collectBody(output.body, context);
|
|
1331
1331
|
return contents;
|
|
1332
1332
|
};
|
|
1333
|
-
const
|
|
1333
|
+
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
1334
1334
|
const parsedOutput = {
|
|
1335
1335
|
...output,
|
|
1336
1336
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1339,13 +1339,13 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1339
1339
|
switch (errorCode) {
|
|
1340
1340
|
case "BadRequestException":
|
|
1341
1341
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1342
|
-
throw await
|
|
1342
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1343
1343
|
case "InternalServerException":
|
|
1344
1344
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1345
|
-
throw await
|
|
1345
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1346
1346
|
case "ResourceNotFoundException":
|
|
1347
1347
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1348
|
-
throw await
|
|
1348
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1349
1349
|
default:
|
|
1350
1350
|
const parsedBody = parsedOutput.body;
|
|
1351
1351
|
throwDefaultError({
|
|
@@ -1356,9 +1356,9 @@ const deserializeAws_restJson1DeleteApplicationCommandError = async (output, con
|
|
|
1356
1356
|
});
|
|
1357
1357
|
}
|
|
1358
1358
|
};
|
|
1359
|
-
export const
|
|
1359
|
+
export const de_DeleteConfigurationProfileCommand = async (output, context) => {
|
|
1360
1360
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1361
|
-
return
|
|
1361
|
+
return de_DeleteConfigurationProfileCommandError(output, context);
|
|
1362
1362
|
}
|
|
1363
1363
|
const contents = map({
|
|
1364
1364
|
$metadata: deserializeMetadata(output),
|
|
@@ -1366,7 +1366,7 @@ export const deserializeAws_restJson1DeleteConfigurationProfileCommand = async (
|
|
|
1366
1366
|
await collectBody(output.body, context);
|
|
1367
1367
|
return contents;
|
|
1368
1368
|
};
|
|
1369
|
-
const
|
|
1369
|
+
const de_DeleteConfigurationProfileCommandError = async (output, context) => {
|
|
1370
1370
|
const parsedOutput = {
|
|
1371
1371
|
...output,
|
|
1372
1372
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1375,16 +1375,16 @@ const deserializeAws_restJson1DeleteConfigurationProfileCommandError = async (ou
|
|
|
1375
1375
|
switch (errorCode) {
|
|
1376
1376
|
case "BadRequestException":
|
|
1377
1377
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1378
|
-
throw await
|
|
1378
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1379
1379
|
case "ConflictException":
|
|
1380
1380
|
case "com.amazonaws.appconfig#ConflictException":
|
|
1381
|
-
throw await
|
|
1381
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1382
1382
|
case "InternalServerException":
|
|
1383
1383
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1384
|
-
throw await
|
|
1384
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1385
1385
|
case "ResourceNotFoundException":
|
|
1386
1386
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1387
|
-
throw await
|
|
1387
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1388
1388
|
default:
|
|
1389
1389
|
const parsedBody = parsedOutput.body;
|
|
1390
1390
|
throwDefaultError({
|
|
@@ -1395,9 +1395,9 @@ const deserializeAws_restJson1DeleteConfigurationProfileCommandError = async (ou
|
|
|
1395
1395
|
});
|
|
1396
1396
|
}
|
|
1397
1397
|
};
|
|
1398
|
-
export const
|
|
1398
|
+
export const de_DeleteDeploymentStrategyCommand = async (output, context) => {
|
|
1399
1399
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
1400
|
+
return de_DeleteDeploymentStrategyCommandError(output, context);
|
|
1401
1401
|
}
|
|
1402
1402
|
const contents = map({
|
|
1403
1403
|
$metadata: deserializeMetadata(output),
|
|
@@ -1405,7 +1405,7 @@ export const deserializeAws_restJson1DeleteDeploymentStrategyCommand = async (ou
|
|
|
1405
1405
|
await collectBody(output.body, context);
|
|
1406
1406
|
return contents;
|
|
1407
1407
|
};
|
|
1408
|
-
const
|
|
1408
|
+
const de_DeleteDeploymentStrategyCommandError = async (output, context) => {
|
|
1409
1409
|
const parsedOutput = {
|
|
1410
1410
|
...output,
|
|
1411
1411
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1414,13 +1414,13 @@ const deserializeAws_restJson1DeleteDeploymentStrategyCommandError = async (outp
|
|
|
1414
1414
|
switch (errorCode) {
|
|
1415
1415
|
case "BadRequestException":
|
|
1416
1416
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1417
|
-
throw await
|
|
1417
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1418
1418
|
case "InternalServerException":
|
|
1419
1419
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1420
|
-
throw await
|
|
1420
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1421
1421
|
case "ResourceNotFoundException":
|
|
1422
1422
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1423
|
-
throw await
|
|
1423
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1424
1424
|
default:
|
|
1425
1425
|
const parsedBody = parsedOutput.body;
|
|
1426
1426
|
throwDefaultError({
|
|
@@ -1431,9 +1431,9 @@ const deserializeAws_restJson1DeleteDeploymentStrategyCommandError = async (outp
|
|
|
1431
1431
|
});
|
|
1432
1432
|
}
|
|
1433
1433
|
};
|
|
1434
|
-
export const
|
|
1434
|
+
export const de_DeleteEnvironmentCommand = async (output, context) => {
|
|
1435
1435
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1436
|
-
return
|
|
1436
|
+
return de_DeleteEnvironmentCommandError(output, context);
|
|
1437
1437
|
}
|
|
1438
1438
|
const contents = map({
|
|
1439
1439
|
$metadata: deserializeMetadata(output),
|
|
@@ -1441,7 +1441,7 @@ export const deserializeAws_restJson1DeleteEnvironmentCommand = async (output, c
|
|
|
1441
1441
|
await collectBody(output.body, context);
|
|
1442
1442
|
return contents;
|
|
1443
1443
|
};
|
|
1444
|
-
const
|
|
1444
|
+
const de_DeleteEnvironmentCommandError = async (output, context) => {
|
|
1445
1445
|
const parsedOutput = {
|
|
1446
1446
|
...output,
|
|
1447
1447
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1450,16 +1450,16 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1450
1450
|
switch (errorCode) {
|
|
1451
1451
|
case "BadRequestException":
|
|
1452
1452
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1453
|
-
throw await
|
|
1453
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1454
1454
|
case "ConflictException":
|
|
1455
1455
|
case "com.amazonaws.appconfig#ConflictException":
|
|
1456
|
-
throw await
|
|
1456
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1457
1457
|
case "InternalServerException":
|
|
1458
1458
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1459
|
-
throw await
|
|
1459
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1460
1460
|
case "ResourceNotFoundException":
|
|
1461
1461
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1462
|
-
throw await
|
|
1462
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1463
1463
|
default:
|
|
1464
1464
|
const parsedBody = parsedOutput.body;
|
|
1465
1465
|
throwDefaultError({
|
|
@@ -1470,9 +1470,9 @@ const deserializeAws_restJson1DeleteEnvironmentCommandError = async (output, con
|
|
|
1470
1470
|
});
|
|
1471
1471
|
}
|
|
1472
1472
|
};
|
|
1473
|
-
export const
|
|
1473
|
+
export const de_DeleteExtensionCommand = async (output, context) => {
|
|
1474
1474
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1475
|
-
return
|
|
1475
|
+
return de_DeleteExtensionCommandError(output, context);
|
|
1476
1476
|
}
|
|
1477
1477
|
const contents = map({
|
|
1478
1478
|
$metadata: deserializeMetadata(output),
|
|
@@ -1480,7 +1480,7 @@ export const deserializeAws_restJson1DeleteExtensionCommand = async (output, con
|
|
|
1480
1480
|
await collectBody(output.body, context);
|
|
1481
1481
|
return contents;
|
|
1482
1482
|
};
|
|
1483
|
-
const
|
|
1483
|
+
const de_DeleteExtensionCommandError = async (output, context) => {
|
|
1484
1484
|
const parsedOutput = {
|
|
1485
1485
|
...output,
|
|
1486
1486
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1489,13 +1489,13 @@ const deserializeAws_restJson1DeleteExtensionCommandError = async (output, conte
|
|
|
1489
1489
|
switch (errorCode) {
|
|
1490
1490
|
case "BadRequestException":
|
|
1491
1491
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1492
|
-
throw await
|
|
1492
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1493
1493
|
case "InternalServerException":
|
|
1494
1494
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1495
|
-
throw await
|
|
1495
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1496
1496
|
case "ResourceNotFoundException":
|
|
1497
1497
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1498
|
-
throw await
|
|
1498
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1499
1499
|
default:
|
|
1500
1500
|
const parsedBody = parsedOutput.body;
|
|
1501
1501
|
throwDefaultError({
|
|
@@ -1506,9 +1506,9 @@ const deserializeAws_restJson1DeleteExtensionCommandError = async (output, conte
|
|
|
1506
1506
|
});
|
|
1507
1507
|
}
|
|
1508
1508
|
};
|
|
1509
|
-
export const
|
|
1509
|
+
export const de_DeleteExtensionAssociationCommand = async (output, context) => {
|
|
1510
1510
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1511
|
-
return
|
|
1511
|
+
return de_DeleteExtensionAssociationCommandError(output, context);
|
|
1512
1512
|
}
|
|
1513
1513
|
const contents = map({
|
|
1514
1514
|
$metadata: deserializeMetadata(output),
|
|
@@ -1516,7 +1516,7 @@ export const deserializeAws_restJson1DeleteExtensionAssociationCommand = async (
|
|
|
1516
1516
|
await collectBody(output.body, context);
|
|
1517
1517
|
return contents;
|
|
1518
1518
|
};
|
|
1519
|
-
const
|
|
1519
|
+
const de_DeleteExtensionAssociationCommandError = async (output, context) => {
|
|
1520
1520
|
const parsedOutput = {
|
|
1521
1521
|
...output,
|
|
1522
1522
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1525,13 +1525,13 @@ const deserializeAws_restJson1DeleteExtensionAssociationCommandError = async (ou
|
|
|
1525
1525
|
switch (errorCode) {
|
|
1526
1526
|
case "BadRequestException":
|
|
1527
1527
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1528
|
-
throw await
|
|
1528
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1529
1529
|
case "InternalServerException":
|
|
1530
1530
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1531
|
-
throw await
|
|
1531
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1532
1532
|
case "ResourceNotFoundException":
|
|
1533
1533
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1534
|
-
throw await
|
|
1534
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1535
1535
|
default:
|
|
1536
1536
|
const parsedBody = parsedOutput.body;
|
|
1537
1537
|
throwDefaultError({
|
|
@@ -1542,9 +1542,9 @@ const deserializeAws_restJson1DeleteExtensionAssociationCommandError = async (ou
|
|
|
1542
1542
|
});
|
|
1543
1543
|
}
|
|
1544
1544
|
};
|
|
1545
|
-
export const
|
|
1545
|
+
export const de_DeleteHostedConfigurationVersionCommand = async (output, context) => {
|
|
1546
1546
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1547
|
-
return
|
|
1547
|
+
return de_DeleteHostedConfigurationVersionCommandError(output, context);
|
|
1548
1548
|
}
|
|
1549
1549
|
const contents = map({
|
|
1550
1550
|
$metadata: deserializeMetadata(output),
|
|
@@ -1552,7 +1552,7 @@ export const deserializeAws_restJson1DeleteHostedConfigurationVersionCommand = a
|
|
|
1552
1552
|
await collectBody(output.body, context);
|
|
1553
1553
|
return contents;
|
|
1554
1554
|
};
|
|
1555
|
-
const
|
|
1555
|
+
const de_DeleteHostedConfigurationVersionCommandError = async (output, context) => {
|
|
1556
1556
|
const parsedOutput = {
|
|
1557
1557
|
...output,
|
|
1558
1558
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1561,13 +1561,13 @@ const deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = asy
|
|
|
1561
1561
|
switch (errorCode) {
|
|
1562
1562
|
case "BadRequestException":
|
|
1563
1563
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1564
|
-
throw await
|
|
1564
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1565
1565
|
case "InternalServerException":
|
|
1566
1566
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1567
|
-
throw await
|
|
1567
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1568
1568
|
case "ResourceNotFoundException":
|
|
1569
1569
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1570
|
-
throw await
|
|
1570
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1571
1571
|
default:
|
|
1572
1572
|
const parsedBody = parsedOutput.body;
|
|
1573
1573
|
throwDefaultError({
|
|
@@ -1578,9 +1578,9 @@ const deserializeAws_restJson1DeleteHostedConfigurationVersionCommandError = asy
|
|
|
1578
1578
|
});
|
|
1579
1579
|
}
|
|
1580
1580
|
};
|
|
1581
|
-
export const
|
|
1581
|
+
export const de_GetApplicationCommand = async (output, context) => {
|
|
1582
1582
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1583
|
-
return
|
|
1583
|
+
return de_GetApplicationCommandError(output, context);
|
|
1584
1584
|
}
|
|
1585
1585
|
const contents = map({
|
|
1586
1586
|
$metadata: deserializeMetadata(output),
|
|
@@ -1597,7 +1597,7 @@ export const deserializeAws_restJson1GetApplicationCommand = async (output, cont
|
|
|
1597
1597
|
}
|
|
1598
1598
|
return contents;
|
|
1599
1599
|
};
|
|
1600
|
-
const
|
|
1600
|
+
const de_GetApplicationCommandError = async (output, context) => {
|
|
1601
1601
|
const parsedOutput = {
|
|
1602
1602
|
...output,
|
|
1603
1603
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1606,13 +1606,13 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1606
1606
|
switch (errorCode) {
|
|
1607
1607
|
case "BadRequestException":
|
|
1608
1608
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1609
|
-
throw await
|
|
1609
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1610
1610
|
case "InternalServerException":
|
|
1611
1611
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1612
|
-
throw await
|
|
1612
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1613
1613
|
case "ResourceNotFoundException":
|
|
1614
1614
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1615
|
-
throw await
|
|
1615
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1616
1616
|
default:
|
|
1617
1617
|
const parsedBody = parsedOutput.body;
|
|
1618
1618
|
throwDefaultError({
|
|
@@ -1623,9 +1623,9 @@ const deserializeAws_restJson1GetApplicationCommandError = async (output, contex
|
|
|
1623
1623
|
});
|
|
1624
1624
|
}
|
|
1625
1625
|
};
|
|
1626
|
-
export const
|
|
1626
|
+
export const de_GetConfigurationCommand = async (output, context) => {
|
|
1627
1627
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1628
|
-
return
|
|
1628
|
+
return de_GetConfigurationCommandError(output, context);
|
|
1629
1629
|
}
|
|
1630
1630
|
const contents = map({
|
|
1631
1631
|
$metadata: deserializeMetadata(output),
|
|
@@ -1636,7 +1636,7 @@ export const deserializeAws_restJson1GetConfigurationCommand = async (output, co
|
|
|
1636
1636
|
contents.Content = data;
|
|
1637
1637
|
return contents;
|
|
1638
1638
|
};
|
|
1639
|
-
const
|
|
1639
|
+
const de_GetConfigurationCommandError = async (output, context) => {
|
|
1640
1640
|
const parsedOutput = {
|
|
1641
1641
|
...output,
|
|
1642
1642
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1645,13 +1645,13 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1645
1645
|
switch (errorCode) {
|
|
1646
1646
|
case "BadRequestException":
|
|
1647
1647
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1648
|
-
throw await
|
|
1648
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1649
1649
|
case "InternalServerException":
|
|
1650
1650
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1651
|
-
throw await
|
|
1651
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1652
1652
|
case "ResourceNotFoundException":
|
|
1653
1653
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1654
|
-
throw await
|
|
1654
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1655
1655
|
default:
|
|
1656
1656
|
const parsedBody = parsedOutput.body;
|
|
1657
1657
|
throwDefaultError({
|
|
@@ -1662,9 +1662,9 @@ const deserializeAws_restJson1GetConfigurationCommandError = async (output, cont
|
|
|
1662
1662
|
});
|
|
1663
1663
|
}
|
|
1664
1664
|
};
|
|
1665
|
-
export const
|
|
1665
|
+
export const de_GetConfigurationProfileCommand = async (output, context) => {
|
|
1666
1666
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1667
|
-
return
|
|
1667
|
+
return de_GetConfigurationProfileCommandError(output, context);
|
|
1668
1668
|
}
|
|
1669
1669
|
const contents = map({
|
|
1670
1670
|
$metadata: deserializeMetadata(output),
|
|
@@ -1692,11 +1692,11 @@ export const deserializeAws_restJson1GetConfigurationProfileCommand = async (out
|
|
|
1692
1692
|
contents.Type = __expectString(data.Type);
|
|
1693
1693
|
}
|
|
1694
1694
|
if (data.Validators != null) {
|
|
1695
|
-
contents.Validators =
|
|
1695
|
+
contents.Validators = de_ValidatorList(data.Validators, context);
|
|
1696
1696
|
}
|
|
1697
1697
|
return contents;
|
|
1698
1698
|
};
|
|
1699
|
-
const
|
|
1699
|
+
const de_GetConfigurationProfileCommandError = async (output, context) => {
|
|
1700
1700
|
const parsedOutput = {
|
|
1701
1701
|
...output,
|
|
1702
1702
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1705,13 +1705,13 @@ const deserializeAws_restJson1GetConfigurationProfileCommandError = async (outpu
|
|
|
1705
1705
|
switch (errorCode) {
|
|
1706
1706
|
case "BadRequestException":
|
|
1707
1707
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1708
|
-
throw await
|
|
1708
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1709
1709
|
case "InternalServerException":
|
|
1710
1710
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1711
|
-
throw await
|
|
1711
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1712
1712
|
case "ResourceNotFoundException":
|
|
1713
1713
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1714
|
-
throw await
|
|
1714
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1715
1715
|
default:
|
|
1716
1716
|
const parsedBody = parsedOutput.body;
|
|
1717
1717
|
throwDefaultError({
|
|
@@ -1722,9 +1722,9 @@ const deserializeAws_restJson1GetConfigurationProfileCommandError = async (outpu
|
|
|
1722
1722
|
});
|
|
1723
1723
|
}
|
|
1724
1724
|
};
|
|
1725
|
-
export const
|
|
1725
|
+
export const de_GetDeploymentCommand = async (output, context) => {
|
|
1726
1726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1727
|
-
return
|
|
1727
|
+
return de_GetDeploymentCommandError(output, context);
|
|
1728
1728
|
}
|
|
1729
1729
|
const contents = map({
|
|
1730
1730
|
$metadata: deserializeMetadata(output),
|
|
@@ -1734,7 +1734,7 @@ export const deserializeAws_restJson1GetDeploymentCommand = async (output, conte
|
|
|
1734
1734
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
1735
1735
|
}
|
|
1736
1736
|
if (data.AppliedExtensions != null) {
|
|
1737
|
-
contents.AppliedExtensions =
|
|
1737
|
+
contents.AppliedExtensions = de_AppliedExtensions(data.AppliedExtensions, context);
|
|
1738
1738
|
}
|
|
1739
1739
|
if (data.CompletedAt != null) {
|
|
1740
1740
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CompletedAt));
|
|
@@ -1767,7 +1767,7 @@ export const deserializeAws_restJson1GetDeploymentCommand = async (output, conte
|
|
|
1767
1767
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
1768
1768
|
}
|
|
1769
1769
|
if (data.EventLog != null) {
|
|
1770
|
-
contents.EventLog =
|
|
1770
|
+
contents.EventLog = de_DeploymentEvents(data.EventLog, context);
|
|
1771
1771
|
}
|
|
1772
1772
|
if (data.FinalBakeTimeInMinutes != null) {
|
|
1773
1773
|
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
@@ -1795,7 +1795,7 @@ export const deserializeAws_restJson1GetDeploymentCommand = async (output, conte
|
|
|
1795
1795
|
}
|
|
1796
1796
|
return contents;
|
|
1797
1797
|
};
|
|
1798
|
-
const
|
|
1798
|
+
const de_GetDeploymentCommandError = async (output, context) => {
|
|
1799
1799
|
const parsedOutput = {
|
|
1800
1800
|
...output,
|
|
1801
1801
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1804,13 +1804,13 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1804
1804
|
switch (errorCode) {
|
|
1805
1805
|
case "BadRequestException":
|
|
1806
1806
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1807
|
-
throw await
|
|
1807
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1808
1808
|
case "InternalServerException":
|
|
1809
1809
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1810
|
-
throw await
|
|
1810
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1811
1811
|
case "ResourceNotFoundException":
|
|
1812
1812
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1813
|
-
throw await
|
|
1813
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1814
1814
|
default:
|
|
1815
1815
|
const parsedBody = parsedOutput.body;
|
|
1816
1816
|
throwDefaultError({
|
|
@@ -1821,9 +1821,9 @@ const deserializeAws_restJson1GetDeploymentCommandError = async (output, context
|
|
|
1821
1821
|
});
|
|
1822
1822
|
}
|
|
1823
1823
|
};
|
|
1824
|
-
export const
|
|
1824
|
+
export const de_GetDeploymentStrategyCommand = async (output, context) => {
|
|
1825
1825
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1826
|
-
return
|
|
1826
|
+
return de_GetDeploymentStrategyCommandError(output, context);
|
|
1827
1827
|
}
|
|
1828
1828
|
const contents = map({
|
|
1829
1829
|
$metadata: deserializeMetadata(output),
|
|
@@ -1855,7 +1855,7 @@ export const deserializeAws_restJson1GetDeploymentStrategyCommand = async (outpu
|
|
|
1855
1855
|
}
|
|
1856
1856
|
return contents;
|
|
1857
1857
|
};
|
|
1858
|
-
const
|
|
1858
|
+
const de_GetDeploymentStrategyCommandError = async (output, context) => {
|
|
1859
1859
|
const parsedOutput = {
|
|
1860
1860
|
...output,
|
|
1861
1861
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1864,13 +1864,13 @@ const deserializeAws_restJson1GetDeploymentStrategyCommandError = async (output,
|
|
|
1864
1864
|
switch (errorCode) {
|
|
1865
1865
|
case "BadRequestException":
|
|
1866
1866
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1867
|
-
throw await
|
|
1867
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1868
1868
|
case "InternalServerException":
|
|
1869
1869
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1870
|
-
throw await
|
|
1870
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1871
1871
|
case "ResourceNotFoundException":
|
|
1872
1872
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1873
|
-
throw await
|
|
1873
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1874
1874
|
default:
|
|
1875
1875
|
const parsedBody = parsedOutput.body;
|
|
1876
1876
|
throwDefaultError({
|
|
@@ -1881,9 +1881,9 @@ const deserializeAws_restJson1GetDeploymentStrategyCommandError = async (output,
|
|
|
1881
1881
|
});
|
|
1882
1882
|
}
|
|
1883
1883
|
};
|
|
1884
|
-
export const
|
|
1884
|
+
export const de_GetEnvironmentCommand = async (output, context) => {
|
|
1885
1885
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1886
|
-
return
|
|
1886
|
+
return de_GetEnvironmentCommandError(output, context);
|
|
1887
1887
|
}
|
|
1888
1888
|
const contents = map({
|
|
1889
1889
|
$metadata: deserializeMetadata(output),
|
|
@@ -1899,7 +1899,7 @@ export const deserializeAws_restJson1GetEnvironmentCommand = async (output, cont
|
|
|
1899
1899
|
contents.Id = __expectString(data.Id);
|
|
1900
1900
|
}
|
|
1901
1901
|
if (data.Monitors != null) {
|
|
1902
|
-
contents.Monitors =
|
|
1902
|
+
contents.Monitors = de_MonitorList(data.Monitors, context);
|
|
1903
1903
|
}
|
|
1904
1904
|
if (data.Name != null) {
|
|
1905
1905
|
contents.Name = __expectString(data.Name);
|
|
@@ -1909,7 +1909,7 @@ export const deserializeAws_restJson1GetEnvironmentCommand = async (output, cont
|
|
|
1909
1909
|
}
|
|
1910
1910
|
return contents;
|
|
1911
1911
|
};
|
|
1912
|
-
const
|
|
1912
|
+
const de_GetEnvironmentCommandError = async (output, context) => {
|
|
1913
1913
|
const parsedOutput = {
|
|
1914
1914
|
...output,
|
|
1915
1915
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1918,13 +1918,13 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
1918
1918
|
switch (errorCode) {
|
|
1919
1919
|
case "BadRequestException":
|
|
1920
1920
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1921
|
-
throw await
|
|
1921
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1922
1922
|
case "InternalServerException":
|
|
1923
1923
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1924
|
-
throw await
|
|
1924
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1925
1925
|
case "ResourceNotFoundException":
|
|
1926
1926
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1927
|
-
throw await
|
|
1927
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1928
1928
|
default:
|
|
1929
1929
|
const parsedBody = parsedOutput.body;
|
|
1930
1930
|
throwDefaultError({
|
|
@@ -1935,16 +1935,16 @@ const deserializeAws_restJson1GetEnvironmentCommandError = async (output, contex
|
|
|
1935
1935
|
});
|
|
1936
1936
|
}
|
|
1937
1937
|
};
|
|
1938
|
-
export const
|
|
1938
|
+
export const de_GetExtensionCommand = async (output, context) => {
|
|
1939
1939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1940
|
-
return
|
|
1940
|
+
return de_GetExtensionCommandError(output, context);
|
|
1941
1941
|
}
|
|
1942
1942
|
const contents = map({
|
|
1943
1943
|
$metadata: deserializeMetadata(output),
|
|
1944
1944
|
});
|
|
1945
1945
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1946
1946
|
if (data.Actions != null) {
|
|
1947
|
-
contents.Actions =
|
|
1947
|
+
contents.Actions = de_ActionsMap(data.Actions, context);
|
|
1948
1948
|
}
|
|
1949
1949
|
if (data.Arn != null) {
|
|
1950
1950
|
contents.Arn = __expectString(data.Arn);
|
|
@@ -1959,14 +1959,14 @@ export const deserializeAws_restJson1GetExtensionCommand = async (output, contex
|
|
|
1959
1959
|
contents.Name = __expectString(data.Name);
|
|
1960
1960
|
}
|
|
1961
1961
|
if (data.Parameters != null) {
|
|
1962
|
-
contents.Parameters =
|
|
1962
|
+
contents.Parameters = de_ParameterMap(data.Parameters, context);
|
|
1963
1963
|
}
|
|
1964
1964
|
if (data.VersionNumber != null) {
|
|
1965
1965
|
contents.VersionNumber = __expectInt32(data.VersionNumber);
|
|
1966
1966
|
}
|
|
1967
1967
|
return contents;
|
|
1968
1968
|
};
|
|
1969
|
-
const
|
|
1969
|
+
const de_GetExtensionCommandError = async (output, context) => {
|
|
1970
1970
|
const parsedOutput = {
|
|
1971
1971
|
...output,
|
|
1972
1972
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1975,13 +1975,13 @@ const deserializeAws_restJson1GetExtensionCommandError = async (output, context)
|
|
|
1975
1975
|
switch (errorCode) {
|
|
1976
1976
|
case "BadRequestException":
|
|
1977
1977
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
1978
|
-
throw await
|
|
1978
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1979
1979
|
case "InternalServerException":
|
|
1980
1980
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
1981
|
-
throw await
|
|
1981
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1982
1982
|
case "ResourceNotFoundException":
|
|
1983
1983
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
1984
|
-
throw await
|
|
1984
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1985
1985
|
default:
|
|
1986
1986
|
const parsedBody = parsedOutput.body;
|
|
1987
1987
|
throwDefaultError({
|
|
@@ -1992,9 +1992,9 @@ const deserializeAws_restJson1GetExtensionCommandError = async (output, context)
|
|
|
1992
1992
|
});
|
|
1993
1993
|
}
|
|
1994
1994
|
};
|
|
1995
|
-
export const
|
|
1995
|
+
export const de_GetExtensionAssociationCommand = async (output, context) => {
|
|
1996
1996
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1997
|
-
return
|
|
1997
|
+
return de_GetExtensionAssociationCommandError(output, context);
|
|
1998
1998
|
}
|
|
1999
1999
|
const contents = map({
|
|
2000
2000
|
$metadata: deserializeMetadata(output),
|
|
@@ -2013,14 +2013,14 @@ export const deserializeAws_restJson1GetExtensionAssociationCommand = async (out
|
|
|
2013
2013
|
contents.Id = __expectString(data.Id);
|
|
2014
2014
|
}
|
|
2015
2015
|
if (data.Parameters != null) {
|
|
2016
|
-
contents.Parameters =
|
|
2016
|
+
contents.Parameters = de_ParameterValueMap(data.Parameters, context);
|
|
2017
2017
|
}
|
|
2018
2018
|
if (data.ResourceArn != null) {
|
|
2019
2019
|
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
2020
2020
|
}
|
|
2021
2021
|
return contents;
|
|
2022
2022
|
};
|
|
2023
|
-
const
|
|
2023
|
+
const de_GetExtensionAssociationCommandError = async (output, context) => {
|
|
2024
2024
|
const parsedOutput = {
|
|
2025
2025
|
...output,
|
|
2026
2026
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2029,13 +2029,13 @@ const deserializeAws_restJson1GetExtensionAssociationCommandError = async (outpu
|
|
|
2029
2029
|
switch (errorCode) {
|
|
2030
2030
|
case "BadRequestException":
|
|
2031
2031
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2032
|
-
throw await
|
|
2032
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2033
2033
|
case "InternalServerException":
|
|
2034
2034
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2035
|
-
throw await
|
|
2035
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2036
2036
|
case "ResourceNotFoundException":
|
|
2037
2037
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2038
|
-
throw await
|
|
2038
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2039
2039
|
default:
|
|
2040
2040
|
const parsedBody = parsedOutput.body;
|
|
2041
2041
|
throwDefaultError({
|
|
@@ -2046,9 +2046,9 @@ const deserializeAws_restJson1GetExtensionAssociationCommandError = async (outpu
|
|
|
2046
2046
|
});
|
|
2047
2047
|
}
|
|
2048
2048
|
};
|
|
2049
|
-
export const
|
|
2049
|
+
export const de_GetHostedConfigurationVersionCommand = async (output, context) => {
|
|
2050
2050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2051
|
-
return
|
|
2051
|
+
return de_GetHostedConfigurationVersionCommandError(output, context);
|
|
2052
2052
|
}
|
|
2053
2053
|
const contents = map({
|
|
2054
2054
|
$metadata: deserializeMetadata(output),
|
|
@@ -2066,7 +2066,7 @@ export const deserializeAws_restJson1GetHostedConfigurationVersionCommand = asyn
|
|
|
2066
2066
|
contents.Content = data;
|
|
2067
2067
|
return contents;
|
|
2068
2068
|
};
|
|
2069
|
-
const
|
|
2069
|
+
const de_GetHostedConfigurationVersionCommandError = async (output, context) => {
|
|
2070
2070
|
const parsedOutput = {
|
|
2071
2071
|
...output,
|
|
2072
2072
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2075,13 +2075,13 @@ const deserializeAws_restJson1GetHostedConfigurationVersionCommandError = async
|
|
|
2075
2075
|
switch (errorCode) {
|
|
2076
2076
|
case "BadRequestException":
|
|
2077
2077
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2078
|
-
throw await
|
|
2078
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2079
2079
|
case "InternalServerException":
|
|
2080
2080
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2081
|
-
throw await
|
|
2081
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2082
2082
|
case "ResourceNotFoundException":
|
|
2083
2083
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2084
|
-
throw await
|
|
2084
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2085
2085
|
default:
|
|
2086
2086
|
const parsedBody = parsedOutput.body;
|
|
2087
2087
|
throwDefaultError({
|
|
@@ -2092,23 +2092,23 @@ const deserializeAws_restJson1GetHostedConfigurationVersionCommandError = async
|
|
|
2092
2092
|
});
|
|
2093
2093
|
}
|
|
2094
2094
|
};
|
|
2095
|
-
export const
|
|
2095
|
+
export const de_ListApplicationsCommand = async (output, context) => {
|
|
2096
2096
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2097
|
-
return
|
|
2097
|
+
return de_ListApplicationsCommandError(output, context);
|
|
2098
2098
|
}
|
|
2099
2099
|
const contents = map({
|
|
2100
2100
|
$metadata: deserializeMetadata(output),
|
|
2101
2101
|
});
|
|
2102
2102
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2103
2103
|
if (data.Items != null) {
|
|
2104
|
-
contents.Items =
|
|
2104
|
+
contents.Items = de_ApplicationList(data.Items, context);
|
|
2105
2105
|
}
|
|
2106
2106
|
if (data.NextToken != null) {
|
|
2107
2107
|
contents.NextToken = __expectString(data.NextToken);
|
|
2108
2108
|
}
|
|
2109
2109
|
return contents;
|
|
2110
2110
|
};
|
|
2111
|
-
const
|
|
2111
|
+
const de_ListApplicationsCommandError = async (output, context) => {
|
|
2112
2112
|
const parsedOutput = {
|
|
2113
2113
|
...output,
|
|
2114
2114
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2117,10 +2117,10 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2117
2117
|
switch (errorCode) {
|
|
2118
2118
|
case "BadRequestException":
|
|
2119
2119
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2120
|
-
throw await
|
|
2120
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2121
2121
|
case "InternalServerException":
|
|
2122
2122
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2123
|
-
throw await
|
|
2123
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2124
2124
|
default:
|
|
2125
2125
|
const parsedBody = parsedOutput.body;
|
|
2126
2126
|
throwDefaultError({
|
|
@@ -2131,23 +2131,23 @@ const deserializeAws_restJson1ListApplicationsCommandError = async (output, cont
|
|
|
2131
2131
|
});
|
|
2132
2132
|
}
|
|
2133
2133
|
};
|
|
2134
|
-
export const
|
|
2134
|
+
export const de_ListConfigurationProfilesCommand = async (output, context) => {
|
|
2135
2135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2136
|
-
return
|
|
2136
|
+
return de_ListConfigurationProfilesCommandError(output, context);
|
|
2137
2137
|
}
|
|
2138
2138
|
const contents = map({
|
|
2139
2139
|
$metadata: deserializeMetadata(output),
|
|
2140
2140
|
});
|
|
2141
2141
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2142
2142
|
if (data.Items != null) {
|
|
2143
|
-
contents.Items =
|
|
2143
|
+
contents.Items = de_ConfigurationProfileSummaryList(data.Items, context);
|
|
2144
2144
|
}
|
|
2145
2145
|
if (data.NextToken != null) {
|
|
2146
2146
|
contents.NextToken = __expectString(data.NextToken);
|
|
2147
2147
|
}
|
|
2148
2148
|
return contents;
|
|
2149
2149
|
};
|
|
2150
|
-
const
|
|
2150
|
+
const de_ListConfigurationProfilesCommandError = async (output, context) => {
|
|
2151
2151
|
const parsedOutput = {
|
|
2152
2152
|
...output,
|
|
2153
2153
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2156,13 +2156,13 @@ const deserializeAws_restJson1ListConfigurationProfilesCommandError = async (out
|
|
|
2156
2156
|
switch (errorCode) {
|
|
2157
2157
|
case "BadRequestException":
|
|
2158
2158
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2159
|
-
throw await
|
|
2159
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2160
2160
|
case "InternalServerException":
|
|
2161
2161
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2162
|
-
throw await
|
|
2162
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2163
2163
|
case "ResourceNotFoundException":
|
|
2164
2164
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2165
|
-
throw await
|
|
2165
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2166
2166
|
default:
|
|
2167
2167
|
const parsedBody = parsedOutput.body;
|
|
2168
2168
|
throwDefaultError({
|
|
@@ -2173,23 +2173,23 @@ const deserializeAws_restJson1ListConfigurationProfilesCommandError = async (out
|
|
|
2173
2173
|
});
|
|
2174
2174
|
}
|
|
2175
2175
|
};
|
|
2176
|
-
export const
|
|
2176
|
+
export const de_ListDeploymentsCommand = async (output, context) => {
|
|
2177
2177
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2178
|
-
return
|
|
2178
|
+
return de_ListDeploymentsCommandError(output, context);
|
|
2179
2179
|
}
|
|
2180
2180
|
const contents = map({
|
|
2181
2181
|
$metadata: deserializeMetadata(output),
|
|
2182
2182
|
});
|
|
2183
2183
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2184
2184
|
if (data.Items != null) {
|
|
2185
|
-
contents.Items =
|
|
2185
|
+
contents.Items = de_DeploymentList(data.Items, context);
|
|
2186
2186
|
}
|
|
2187
2187
|
if (data.NextToken != null) {
|
|
2188
2188
|
contents.NextToken = __expectString(data.NextToken);
|
|
2189
2189
|
}
|
|
2190
2190
|
return contents;
|
|
2191
2191
|
};
|
|
2192
|
-
const
|
|
2192
|
+
const de_ListDeploymentsCommandError = async (output, context) => {
|
|
2193
2193
|
const parsedOutput = {
|
|
2194
2194
|
...output,
|
|
2195
2195
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2198,13 +2198,13 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2198
2198
|
switch (errorCode) {
|
|
2199
2199
|
case "BadRequestException":
|
|
2200
2200
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2201
|
-
throw await
|
|
2201
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2202
2202
|
case "InternalServerException":
|
|
2203
2203
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2204
|
-
throw await
|
|
2204
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2205
2205
|
case "ResourceNotFoundException":
|
|
2206
2206
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2207
|
-
throw await
|
|
2207
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2208
2208
|
default:
|
|
2209
2209
|
const parsedBody = parsedOutput.body;
|
|
2210
2210
|
throwDefaultError({
|
|
@@ -2215,23 +2215,23 @@ const deserializeAws_restJson1ListDeploymentsCommandError = async (output, conte
|
|
|
2215
2215
|
});
|
|
2216
2216
|
}
|
|
2217
2217
|
};
|
|
2218
|
-
export const
|
|
2218
|
+
export const de_ListDeploymentStrategiesCommand = async (output, context) => {
|
|
2219
2219
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2220
|
-
return
|
|
2220
|
+
return de_ListDeploymentStrategiesCommandError(output, context);
|
|
2221
2221
|
}
|
|
2222
2222
|
const contents = map({
|
|
2223
2223
|
$metadata: deserializeMetadata(output),
|
|
2224
2224
|
});
|
|
2225
2225
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2226
2226
|
if (data.Items != null) {
|
|
2227
|
-
contents.Items =
|
|
2227
|
+
contents.Items = de_DeploymentStrategyList(data.Items, context);
|
|
2228
2228
|
}
|
|
2229
2229
|
if (data.NextToken != null) {
|
|
2230
2230
|
contents.NextToken = __expectString(data.NextToken);
|
|
2231
2231
|
}
|
|
2232
2232
|
return contents;
|
|
2233
2233
|
};
|
|
2234
|
-
const
|
|
2234
|
+
const de_ListDeploymentStrategiesCommandError = async (output, context) => {
|
|
2235
2235
|
const parsedOutput = {
|
|
2236
2236
|
...output,
|
|
2237
2237
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2240,10 +2240,10 @@ const deserializeAws_restJson1ListDeploymentStrategiesCommandError = async (outp
|
|
|
2240
2240
|
switch (errorCode) {
|
|
2241
2241
|
case "BadRequestException":
|
|
2242
2242
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2243
|
-
throw await
|
|
2243
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2244
2244
|
case "InternalServerException":
|
|
2245
2245
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2246
|
-
throw await
|
|
2246
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2247
2247
|
default:
|
|
2248
2248
|
const parsedBody = parsedOutput.body;
|
|
2249
2249
|
throwDefaultError({
|
|
@@ -2254,23 +2254,23 @@ const deserializeAws_restJson1ListDeploymentStrategiesCommandError = async (outp
|
|
|
2254
2254
|
});
|
|
2255
2255
|
}
|
|
2256
2256
|
};
|
|
2257
|
-
export const
|
|
2257
|
+
export const de_ListEnvironmentsCommand = async (output, context) => {
|
|
2258
2258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2259
|
-
return
|
|
2259
|
+
return de_ListEnvironmentsCommandError(output, context);
|
|
2260
2260
|
}
|
|
2261
2261
|
const contents = map({
|
|
2262
2262
|
$metadata: deserializeMetadata(output),
|
|
2263
2263
|
});
|
|
2264
2264
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2265
2265
|
if (data.Items != null) {
|
|
2266
|
-
contents.Items =
|
|
2266
|
+
contents.Items = de_EnvironmentList(data.Items, context);
|
|
2267
2267
|
}
|
|
2268
2268
|
if (data.NextToken != null) {
|
|
2269
2269
|
contents.NextToken = __expectString(data.NextToken);
|
|
2270
2270
|
}
|
|
2271
2271
|
return contents;
|
|
2272
2272
|
};
|
|
2273
|
-
const
|
|
2273
|
+
const de_ListEnvironmentsCommandError = async (output, context) => {
|
|
2274
2274
|
const parsedOutput = {
|
|
2275
2275
|
...output,
|
|
2276
2276
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2279,13 +2279,13 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2279
2279
|
switch (errorCode) {
|
|
2280
2280
|
case "BadRequestException":
|
|
2281
2281
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2282
|
-
throw await
|
|
2282
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2283
2283
|
case "InternalServerException":
|
|
2284
2284
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2285
|
-
throw await
|
|
2285
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2286
2286
|
case "ResourceNotFoundException":
|
|
2287
2287
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2288
|
-
throw await
|
|
2288
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2289
2289
|
default:
|
|
2290
2290
|
const parsedBody = parsedOutput.body;
|
|
2291
2291
|
throwDefaultError({
|
|
@@ -2296,23 +2296,23 @@ const deserializeAws_restJson1ListEnvironmentsCommandError = async (output, cont
|
|
|
2296
2296
|
});
|
|
2297
2297
|
}
|
|
2298
2298
|
};
|
|
2299
|
-
export const
|
|
2299
|
+
export const de_ListExtensionAssociationsCommand = async (output, context) => {
|
|
2300
2300
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2301
|
-
return
|
|
2301
|
+
return de_ListExtensionAssociationsCommandError(output, context);
|
|
2302
2302
|
}
|
|
2303
2303
|
const contents = map({
|
|
2304
2304
|
$metadata: deserializeMetadata(output),
|
|
2305
2305
|
});
|
|
2306
2306
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2307
2307
|
if (data.Items != null) {
|
|
2308
|
-
contents.Items =
|
|
2308
|
+
contents.Items = de_ExtensionAssociationSummaries(data.Items, context);
|
|
2309
2309
|
}
|
|
2310
2310
|
if (data.NextToken != null) {
|
|
2311
2311
|
contents.NextToken = __expectString(data.NextToken);
|
|
2312
2312
|
}
|
|
2313
2313
|
return contents;
|
|
2314
2314
|
};
|
|
2315
|
-
const
|
|
2315
|
+
const de_ListExtensionAssociationsCommandError = async (output, context) => {
|
|
2316
2316
|
const parsedOutput = {
|
|
2317
2317
|
...output,
|
|
2318
2318
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2321,10 +2321,10 @@ const deserializeAws_restJson1ListExtensionAssociationsCommandError = async (out
|
|
|
2321
2321
|
switch (errorCode) {
|
|
2322
2322
|
case "BadRequestException":
|
|
2323
2323
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2324
|
-
throw await
|
|
2324
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2325
2325
|
case "InternalServerException":
|
|
2326
2326
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2327
|
-
throw await
|
|
2327
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2328
2328
|
default:
|
|
2329
2329
|
const parsedBody = parsedOutput.body;
|
|
2330
2330
|
throwDefaultError({
|
|
@@ -2335,23 +2335,23 @@ const deserializeAws_restJson1ListExtensionAssociationsCommandError = async (out
|
|
|
2335
2335
|
});
|
|
2336
2336
|
}
|
|
2337
2337
|
};
|
|
2338
|
-
export const
|
|
2338
|
+
export const de_ListExtensionsCommand = async (output, context) => {
|
|
2339
2339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2340
|
-
return
|
|
2340
|
+
return de_ListExtensionsCommandError(output, context);
|
|
2341
2341
|
}
|
|
2342
2342
|
const contents = map({
|
|
2343
2343
|
$metadata: deserializeMetadata(output),
|
|
2344
2344
|
});
|
|
2345
2345
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2346
2346
|
if (data.Items != null) {
|
|
2347
|
-
contents.Items =
|
|
2347
|
+
contents.Items = de_ExtensionSummaries(data.Items, context);
|
|
2348
2348
|
}
|
|
2349
2349
|
if (data.NextToken != null) {
|
|
2350
2350
|
contents.NextToken = __expectString(data.NextToken);
|
|
2351
2351
|
}
|
|
2352
2352
|
return contents;
|
|
2353
2353
|
};
|
|
2354
|
-
const
|
|
2354
|
+
const de_ListExtensionsCommandError = async (output, context) => {
|
|
2355
2355
|
const parsedOutput = {
|
|
2356
2356
|
...output,
|
|
2357
2357
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2360,10 +2360,10 @@ const deserializeAws_restJson1ListExtensionsCommandError = async (output, contex
|
|
|
2360
2360
|
switch (errorCode) {
|
|
2361
2361
|
case "BadRequestException":
|
|
2362
2362
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2363
|
-
throw await
|
|
2363
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2364
2364
|
case "InternalServerException":
|
|
2365
2365
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2366
|
-
throw await
|
|
2366
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2367
2367
|
default:
|
|
2368
2368
|
const parsedBody = parsedOutput.body;
|
|
2369
2369
|
throwDefaultError({
|
|
@@ -2374,23 +2374,23 @@ const deserializeAws_restJson1ListExtensionsCommandError = async (output, contex
|
|
|
2374
2374
|
});
|
|
2375
2375
|
}
|
|
2376
2376
|
};
|
|
2377
|
-
export const
|
|
2377
|
+
export const de_ListHostedConfigurationVersionsCommand = async (output, context) => {
|
|
2378
2378
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2379
|
-
return
|
|
2379
|
+
return de_ListHostedConfigurationVersionsCommandError(output, context);
|
|
2380
2380
|
}
|
|
2381
2381
|
const contents = map({
|
|
2382
2382
|
$metadata: deserializeMetadata(output),
|
|
2383
2383
|
});
|
|
2384
2384
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2385
2385
|
if (data.Items != null) {
|
|
2386
|
-
contents.Items =
|
|
2386
|
+
contents.Items = de_HostedConfigurationVersionSummaryList(data.Items, context);
|
|
2387
2387
|
}
|
|
2388
2388
|
if (data.NextToken != null) {
|
|
2389
2389
|
contents.NextToken = __expectString(data.NextToken);
|
|
2390
2390
|
}
|
|
2391
2391
|
return contents;
|
|
2392
2392
|
};
|
|
2393
|
-
const
|
|
2393
|
+
const de_ListHostedConfigurationVersionsCommandError = async (output, context) => {
|
|
2394
2394
|
const parsedOutput = {
|
|
2395
2395
|
...output,
|
|
2396
2396
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2399,13 +2399,13 @@ const deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = asyn
|
|
|
2399
2399
|
switch (errorCode) {
|
|
2400
2400
|
case "BadRequestException":
|
|
2401
2401
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2402
|
-
throw await
|
|
2402
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2403
2403
|
case "InternalServerException":
|
|
2404
2404
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2405
|
-
throw await
|
|
2405
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2406
2406
|
case "ResourceNotFoundException":
|
|
2407
2407
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2408
|
-
throw await
|
|
2408
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2409
2409
|
default:
|
|
2410
2410
|
const parsedBody = parsedOutput.body;
|
|
2411
2411
|
throwDefaultError({
|
|
@@ -2416,20 +2416,20 @@ const deserializeAws_restJson1ListHostedConfigurationVersionsCommandError = asyn
|
|
|
2416
2416
|
});
|
|
2417
2417
|
}
|
|
2418
2418
|
};
|
|
2419
|
-
export const
|
|
2419
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2420
2420
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2421
|
-
return
|
|
2421
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2422
2422
|
}
|
|
2423
2423
|
const contents = map({
|
|
2424
2424
|
$metadata: deserializeMetadata(output),
|
|
2425
2425
|
});
|
|
2426
2426
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2427
2427
|
if (data.Tags != null) {
|
|
2428
|
-
contents.Tags =
|
|
2428
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
2429
2429
|
}
|
|
2430
2430
|
return contents;
|
|
2431
2431
|
};
|
|
2432
|
-
const
|
|
2432
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2433
2433
|
const parsedOutput = {
|
|
2434
2434
|
...output,
|
|
2435
2435
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2438,13 +2438,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2438
2438
|
switch (errorCode) {
|
|
2439
2439
|
case "BadRequestException":
|
|
2440
2440
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2441
|
-
throw await
|
|
2441
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2442
2442
|
case "InternalServerException":
|
|
2443
2443
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2444
|
-
throw await
|
|
2444
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2445
2445
|
case "ResourceNotFoundException":
|
|
2446
2446
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2447
|
-
throw await
|
|
2447
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2448
2448
|
default:
|
|
2449
2449
|
const parsedBody = parsedOutput.body;
|
|
2450
2450
|
throwDefaultError({
|
|
@@ -2455,9 +2455,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2455
2455
|
});
|
|
2456
2456
|
}
|
|
2457
2457
|
};
|
|
2458
|
-
export const
|
|
2458
|
+
export const de_StartDeploymentCommand = async (output, context) => {
|
|
2459
2459
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2460
|
-
return
|
|
2460
|
+
return de_StartDeploymentCommandError(output, context);
|
|
2461
2461
|
}
|
|
2462
2462
|
const contents = map({
|
|
2463
2463
|
$metadata: deserializeMetadata(output),
|
|
@@ -2467,7 +2467,7 @@ export const deserializeAws_restJson1StartDeploymentCommand = async (output, con
|
|
|
2467
2467
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2468
2468
|
}
|
|
2469
2469
|
if (data.AppliedExtensions != null) {
|
|
2470
|
-
contents.AppliedExtensions =
|
|
2470
|
+
contents.AppliedExtensions = de_AppliedExtensions(data.AppliedExtensions, context);
|
|
2471
2471
|
}
|
|
2472
2472
|
if (data.CompletedAt != null) {
|
|
2473
2473
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CompletedAt));
|
|
@@ -2500,7 +2500,7 @@ export const deserializeAws_restJson1StartDeploymentCommand = async (output, con
|
|
|
2500
2500
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
2501
2501
|
}
|
|
2502
2502
|
if (data.EventLog != null) {
|
|
2503
|
-
contents.EventLog =
|
|
2503
|
+
contents.EventLog = de_DeploymentEvents(data.EventLog, context);
|
|
2504
2504
|
}
|
|
2505
2505
|
if (data.FinalBakeTimeInMinutes != null) {
|
|
2506
2506
|
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
@@ -2528,7 +2528,7 @@ export const deserializeAws_restJson1StartDeploymentCommand = async (output, con
|
|
|
2528
2528
|
}
|
|
2529
2529
|
return contents;
|
|
2530
2530
|
};
|
|
2531
|
-
const
|
|
2531
|
+
const de_StartDeploymentCommandError = async (output, context) => {
|
|
2532
2532
|
const parsedOutput = {
|
|
2533
2533
|
...output,
|
|
2534
2534
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2537,16 +2537,16 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
2537
2537
|
switch (errorCode) {
|
|
2538
2538
|
case "BadRequestException":
|
|
2539
2539
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2540
|
-
throw await
|
|
2540
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2541
2541
|
case "ConflictException":
|
|
2542
2542
|
case "com.amazonaws.appconfig#ConflictException":
|
|
2543
|
-
throw await
|
|
2543
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2544
2544
|
case "InternalServerException":
|
|
2545
2545
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2546
|
-
throw await
|
|
2546
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2547
2547
|
case "ResourceNotFoundException":
|
|
2548
2548
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2549
|
-
throw await
|
|
2549
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2550
2550
|
default:
|
|
2551
2551
|
const parsedBody = parsedOutput.body;
|
|
2552
2552
|
throwDefaultError({
|
|
@@ -2557,9 +2557,9 @@ const deserializeAws_restJson1StartDeploymentCommandError = async (output, conte
|
|
|
2557
2557
|
});
|
|
2558
2558
|
}
|
|
2559
2559
|
};
|
|
2560
|
-
export const
|
|
2560
|
+
export const de_StopDeploymentCommand = async (output, context) => {
|
|
2561
2561
|
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
2562
|
-
return
|
|
2562
|
+
return de_StopDeploymentCommandError(output, context);
|
|
2563
2563
|
}
|
|
2564
2564
|
const contents = map({
|
|
2565
2565
|
$metadata: deserializeMetadata(output),
|
|
@@ -2569,7 +2569,7 @@ export const deserializeAws_restJson1StopDeploymentCommand = async (output, cont
|
|
|
2569
2569
|
contents.ApplicationId = __expectString(data.ApplicationId);
|
|
2570
2570
|
}
|
|
2571
2571
|
if (data.AppliedExtensions != null) {
|
|
2572
|
-
contents.AppliedExtensions =
|
|
2572
|
+
contents.AppliedExtensions = de_AppliedExtensions(data.AppliedExtensions, context);
|
|
2573
2573
|
}
|
|
2574
2574
|
if (data.CompletedAt != null) {
|
|
2575
2575
|
contents.CompletedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.CompletedAt));
|
|
@@ -2602,7 +2602,7 @@ export const deserializeAws_restJson1StopDeploymentCommand = async (output, cont
|
|
|
2602
2602
|
contents.EnvironmentId = __expectString(data.EnvironmentId);
|
|
2603
2603
|
}
|
|
2604
2604
|
if (data.EventLog != null) {
|
|
2605
|
-
contents.EventLog =
|
|
2605
|
+
contents.EventLog = de_DeploymentEvents(data.EventLog, context);
|
|
2606
2606
|
}
|
|
2607
2607
|
if (data.FinalBakeTimeInMinutes != null) {
|
|
2608
2608
|
contents.FinalBakeTimeInMinutes = __expectInt32(data.FinalBakeTimeInMinutes);
|
|
@@ -2630,7 +2630,7 @@ export const deserializeAws_restJson1StopDeploymentCommand = async (output, cont
|
|
|
2630
2630
|
}
|
|
2631
2631
|
return contents;
|
|
2632
2632
|
};
|
|
2633
|
-
const
|
|
2633
|
+
const de_StopDeploymentCommandError = async (output, context) => {
|
|
2634
2634
|
const parsedOutput = {
|
|
2635
2635
|
...output,
|
|
2636
2636
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2639,13 +2639,13 @@ const deserializeAws_restJson1StopDeploymentCommandError = async (output, contex
|
|
|
2639
2639
|
switch (errorCode) {
|
|
2640
2640
|
case "BadRequestException":
|
|
2641
2641
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2642
|
-
throw await
|
|
2642
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2643
2643
|
case "InternalServerException":
|
|
2644
2644
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2645
|
-
throw await
|
|
2645
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2646
2646
|
case "ResourceNotFoundException":
|
|
2647
2647
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2648
|
-
throw await
|
|
2648
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2649
2649
|
default:
|
|
2650
2650
|
const parsedBody = parsedOutput.body;
|
|
2651
2651
|
throwDefaultError({
|
|
@@ -2656,9 +2656,9 @@ const deserializeAws_restJson1StopDeploymentCommandError = async (output, contex
|
|
|
2656
2656
|
});
|
|
2657
2657
|
}
|
|
2658
2658
|
};
|
|
2659
|
-
export const
|
|
2659
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
2660
2660
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2661
|
-
return
|
|
2661
|
+
return de_TagResourceCommandError(output, context);
|
|
2662
2662
|
}
|
|
2663
2663
|
const contents = map({
|
|
2664
2664
|
$metadata: deserializeMetadata(output),
|
|
@@ -2666,7 +2666,7 @@ export const deserializeAws_restJson1TagResourceCommand = async (output, context
|
|
|
2666
2666
|
await collectBody(output.body, context);
|
|
2667
2667
|
return contents;
|
|
2668
2668
|
};
|
|
2669
|
-
const
|
|
2669
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2670
2670
|
const parsedOutput = {
|
|
2671
2671
|
...output,
|
|
2672
2672
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2675,13 +2675,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2675
2675
|
switch (errorCode) {
|
|
2676
2676
|
case "BadRequestException":
|
|
2677
2677
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2678
|
-
throw await
|
|
2678
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2679
2679
|
case "InternalServerException":
|
|
2680
2680
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2681
|
-
throw await
|
|
2681
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2682
2682
|
case "ResourceNotFoundException":
|
|
2683
2683
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2684
|
-
throw await
|
|
2684
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2685
2685
|
default:
|
|
2686
2686
|
const parsedBody = parsedOutput.body;
|
|
2687
2687
|
throwDefaultError({
|
|
@@ -2692,9 +2692,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2692
2692
|
});
|
|
2693
2693
|
}
|
|
2694
2694
|
};
|
|
2695
|
-
export const
|
|
2695
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
2696
2696
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2697
|
-
return
|
|
2697
|
+
return de_UntagResourceCommandError(output, context);
|
|
2698
2698
|
}
|
|
2699
2699
|
const contents = map({
|
|
2700
2700
|
$metadata: deserializeMetadata(output),
|
|
@@ -2702,7 +2702,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
2702
2702
|
await collectBody(output.body, context);
|
|
2703
2703
|
return contents;
|
|
2704
2704
|
};
|
|
2705
|
-
const
|
|
2705
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2706
2706
|
const parsedOutput = {
|
|
2707
2707
|
...output,
|
|
2708
2708
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2711,13 +2711,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2711
2711
|
switch (errorCode) {
|
|
2712
2712
|
case "BadRequestException":
|
|
2713
2713
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2714
|
-
throw await
|
|
2714
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2715
2715
|
case "InternalServerException":
|
|
2716
2716
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2717
|
-
throw await
|
|
2717
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2718
2718
|
case "ResourceNotFoundException":
|
|
2719
2719
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2720
|
-
throw await
|
|
2720
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2721
2721
|
default:
|
|
2722
2722
|
const parsedBody = parsedOutput.body;
|
|
2723
2723
|
throwDefaultError({
|
|
@@ -2728,9 +2728,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2728
2728
|
});
|
|
2729
2729
|
}
|
|
2730
2730
|
};
|
|
2731
|
-
export const
|
|
2731
|
+
export const de_UpdateApplicationCommand = async (output, context) => {
|
|
2732
2732
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2733
|
-
return
|
|
2733
|
+
return de_UpdateApplicationCommandError(output, context);
|
|
2734
2734
|
}
|
|
2735
2735
|
const contents = map({
|
|
2736
2736
|
$metadata: deserializeMetadata(output),
|
|
@@ -2747,7 +2747,7 @@ export const deserializeAws_restJson1UpdateApplicationCommand = async (output, c
|
|
|
2747
2747
|
}
|
|
2748
2748
|
return contents;
|
|
2749
2749
|
};
|
|
2750
|
-
const
|
|
2750
|
+
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
2751
2751
|
const parsedOutput = {
|
|
2752
2752
|
...output,
|
|
2753
2753
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2756,13 +2756,13 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2756
2756
|
switch (errorCode) {
|
|
2757
2757
|
case "BadRequestException":
|
|
2758
2758
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2759
|
-
throw await
|
|
2759
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2760
2760
|
case "InternalServerException":
|
|
2761
2761
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2762
|
-
throw await
|
|
2762
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2763
2763
|
case "ResourceNotFoundException":
|
|
2764
2764
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2765
|
-
throw await
|
|
2765
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2766
2766
|
default:
|
|
2767
2767
|
const parsedBody = parsedOutput.body;
|
|
2768
2768
|
throwDefaultError({
|
|
@@ -2773,9 +2773,9 @@ const deserializeAws_restJson1UpdateApplicationCommandError = async (output, con
|
|
|
2773
2773
|
});
|
|
2774
2774
|
}
|
|
2775
2775
|
};
|
|
2776
|
-
export const
|
|
2776
|
+
export const de_UpdateConfigurationProfileCommand = async (output, context) => {
|
|
2777
2777
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2778
|
-
return
|
|
2778
|
+
return de_UpdateConfigurationProfileCommandError(output, context);
|
|
2779
2779
|
}
|
|
2780
2780
|
const contents = map({
|
|
2781
2781
|
$metadata: deserializeMetadata(output),
|
|
@@ -2803,11 +2803,11 @@ export const deserializeAws_restJson1UpdateConfigurationProfileCommand = async (
|
|
|
2803
2803
|
contents.Type = __expectString(data.Type);
|
|
2804
2804
|
}
|
|
2805
2805
|
if (data.Validators != null) {
|
|
2806
|
-
contents.Validators =
|
|
2806
|
+
contents.Validators = de_ValidatorList(data.Validators, context);
|
|
2807
2807
|
}
|
|
2808
2808
|
return contents;
|
|
2809
2809
|
};
|
|
2810
|
-
const
|
|
2810
|
+
const de_UpdateConfigurationProfileCommandError = async (output, context) => {
|
|
2811
2811
|
const parsedOutput = {
|
|
2812
2812
|
...output,
|
|
2813
2813
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2816,13 +2816,13 @@ const deserializeAws_restJson1UpdateConfigurationProfileCommandError = async (ou
|
|
|
2816
2816
|
switch (errorCode) {
|
|
2817
2817
|
case "BadRequestException":
|
|
2818
2818
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2819
|
-
throw await
|
|
2819
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2820
2820
|
case "InternalServerException":
|
|
2821
2821
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2822
|
-
throw await
|
|
2822
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2823
2823
|
case "ResourceNotFoundException":
|
|
2824
2824
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2825
|
-
throw await
|
|
2825
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2826
2826
|
default:
|
|
2827
2827
|
const parsedBody = parsedOutput.body;
|
|
2828
2828
|
throwDefaultError({
|
|
@@ -2833,9 +2833,9 @@ const deserializeAws_restJson1UpdateConfigurationProfileCommandError = async (ou
|
|
|
2833
2833
|
});
|
|
2834
2834
|
}
|
|
2835
2835
|
};
|
|
2836
|
-
export const
|
|
2836
|
+
export const de_UpdateDeploymentStrategyCommand = async (output, context) => {
|
|
2837
2837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2838
|
-
return
|
|
2838
|
+
return de_UpdateDeploymentStrategyCommandError(output, context);
|
|
2839
2839
|
}
|
|
2840
2840
|
const contents = map({
|
|
2841
2841
|
$metadata: deserializeMetadata(output),
|
|
@@ -2867,7 +2867,7 @@ export const deserializeAws_restJson1UpdateDeploymentStrategyCommand = async (ou
|
|
|
2867
2867
|
}
|
|
2868
2868
|
return contents;
|
|
2869
2869
|
};
|
|
2870
|
-
const
|
|
2870
|
+
const de_UpdateDeploymentStrategyCommandError = async (output, context) => {
|
|
2871
2871
|
const parsedOutput = {
|
|
2872
2872
|
...output,
|
|
2873
2873
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2876,13 +2876,13 @@ const deserializeAws_restJson1UpdateDeploymentStrategyCommandError = async (outp
|
|
|
2876
2876
|
switch (errorCode) {
|
|
2877
2877
|
case "BadRequestException":
|
|
2878
2878
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2879
|
-
throw await
|
|
2879
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2880
2880
|
case "InternalServerException":
|
|
2881
2881
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2882
|
-
throw await
|
|
2882
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2883
2883
|
case "ResourceNotFoundException":
|
|
2884
2884
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2885
|
-
throw await
|
|
2885
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2886
2886
|
default:
|
|
2887
2887
|
const parsedBody = parsedOutput.body;
|
|
2888
2888
|
throwDefaultError({
|
|
@@ -2893,9 +2893,9 @@ const deserializeAws_restJson1UpdateDeploymentStrategyCommandError = async (outp
|
|
|
2893
2893
|
});
|
|
2894
2894
|
}
|
|
2895
2895
|
};
|
|
2896
|
-
export const
|
|
2896
|
+
export const de_UpdateEnvironmentCommand = async (output, context) => {
|
|
2897
2897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2898
|
-
return
|
|
2898
|
+
return de_UpdateEnvironmentCommandError(output, context);
|
|
2899
2899
|
}
|
|
2900
2900
|
const contents = map({
|
|
2901
2901
|
$metadata: deserializeMetadata(output),
|
|
@@ -2911,7 +2911,7 @@ export const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, c
|
|
|
2911
2911
|
contents.Id = __expectString(data.Id);
|
|
2912
2912
|
}
|
|
2913
2913
|
if (data.Monitors != null) {
|
|
2914
|
-
contents.Monitors =
|
|
2914
|
+
contents.Monitors = de_MonitorList(data.Monitors, context);
|
|
2915
2915
|
}
|
|
2916
2916
|
if (data.Name != null) {
|
|
2917
2917
|
contents.Name = __expectString(data.Name);
|
|
@@ -2921,7 +2921,7 @@ export const deserializeAws_restJson1UpdateEnvironmentCommand = async (output, c
|
|
|
2921
2921
|
}
|
|
2922
2922
|
return contents;
|
|
2923
2923
|
};
|
|
2924
|
-
const
|
|
2924
|
+
const de_UpdateEnvironmentCommandError = async (output, context) => {
|
|
2925
2925
|
const parsedOutput = {
|
|
2926
2926
|
...output,
|
|
2927
2927
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2930,13 +2930,13 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
2930
2930
|
switch (errorCode) {
|
|
2931
2931
|
case "BadRequestException":
|
|
2932
2932
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2933
|
-
throw await
|
|
2933
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2934
2934
|
case "InternalServerException":
|
|
2935
2935
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2936
|
-
throw await
|
|
2936
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2937
2937
|
case "ResourceNotFoundException":
|
|
2938
2938
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2939
|
-
throw await
|
|
2939
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2940
2940
|
default:
|
|
2941
2941
|
const parsedBody = parsedOutput.body;
|
|
2942
2942
|
throwDefaultError({
|
|
@@ -2947,16 +2947,16 @@ const deserializeAws_restJson1UpdateEnvironmentCommandError = async (output, con
|
|
|
2947
2947
|
});
|
|
2948
2948
|
}
|
|
2949
2949
|
};
|
|
2950
|
-
export const
|
|
2950
|
+
export const de_UpdateExtensionCommand = async (output, context) => {
|
|
2951
2951
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2952
|
-
return
|
|
2952
|
+
return de_UpdateExtensionCommandError(output, context);
|
|
2953
2953
|
}
|
|
2954
2954
|
const contents = map({
|
|
2955
2955
|
$metadata: deserializeMetadata(output),
|
|
2956
2956
|
});
|
|
2957
2957
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2958
2958
|
if (data.Actions != null) {
|
|
2959
|
-
contents.Actions =
|
|
2959
|
+
contents.Actions = de_ActionsMap(data.Actions, context);
|
|
2960
2960
|
}
|
|
2961
2961
|
if (data.Arn != null) {
|
|
2962
2962
|
contents.Arn = __expectString(data.Arn);
|
|
@@ -2971,14 +2971,14 @@ export const deserializeAws_restJson1UpdateExtensionCommand = async (output, con
|
|
|
2971
2971
|
contents.Name = __expectString(data.Name);
|
|
2972
2972
|
}
|
|
2973
2973
|
if (data.Parameters != null) {
|
|
2974
|
-
contents.Parameters =
|
|
2974
|
+
contents.Parameters = de_ParameterMap(data.Parameters, context);
|
|
2975
2975
|
}
|
|
2976
2976
|
if (data.VersionNumber != null) {
|
|
2977
2977
|
contents.VersionNumber = __expectInt32(data.VersionNumber);
|
|
2978
2978
|
}
|
|
2979
2979
|
return contents;
|
|
2980
2980
|
};
|
|
2981
|
-
const
|
|
2981
|
+
const de_UpdateExtensionCommandError = async (output, context) => {
|
|
2982
2982
|
const parsedOutput = {
|
|
2983
2983
|
...output,
|
|
2984
2984
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2987,16 +2987,16 @@ const deserializeAws_restJson1UpdateExtensionCommandError = async (output, conte
|
|
|
2987
2987
|
switch (errorCode) {
|
|
2988
2988
|
case "BadRequestException":
|
|
2989
2989
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
2990
|
-
throw await
|
|
2990
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2991
2991
|
case "ConflictException":
|
|
2992
2992
|
case "com.amazonaws.appconfig#ConflictException":
|
|
2993
|
-
throw await
|
|
2993
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2994
2994
|
case "InternalServerException":
|
|
2995
2995
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
2996
|
-
throw await
|
|
2996
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2997
2997
|
case "ResourceNotFoundException":
|
|
2998
2998
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
2999
|
-
throw await
|
|
2999
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3000
3000
|
default:
|
|
3001
3001
|
const parsedBody = parsedOutput.body;
|
|
3002
3002
|
throwDefaultError({
|
|
@@ -3007,9 +3007,9 @@ const deserializeAws_restJson1UpdateExtensionCommandError = async (output, conte
|
|
|
3007
3007
|
});
|
|
3008
3008
|
}
|
|
3009
3009
|
};
|
|
3010
|
-
export const
|
|
3010
|
+
export const de_UpdateExtensionAssociationCommand = async (output, context) => {
|
|
3011
3011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3012
|
-
return
|
|
3012
|
+
return de_UpdateExtensionAssociationCommandError(output, context);
|
|
3013
3013
|
}
|
|
3014
3014
|
const contents = map({
|
|
3015
3015
|
$metadata: deserializeMetadata(output),
|
|
@@ -3028,14 +3028,14 @@ export const deserializeAws_restJson1UpdateExtensionAssociationCommand = async (
|
|
|
3028
3028
|
contents.Id = __expectString(data.Id);
|
|
3029
3029
|
}
|
|
3030
3030
|
if (data.Parameters != null) {
|
|
3031
|
-
contents.Parameters =
|
|
3031
|
+
contents.Parameters = de_ParameterValueMap(data.Parameters, context);
|
|
3032
3032
|
}
|
|
3033
3033
|
if (data.ResourceArn != null) {
|
|
3034
3034
|
contents.ResourceArn = __expectString(data.ResourceArn);
|
|
3035
3035
|
}
|
|
3036
3036
|
return contents;
|
|
3037
3037
|
};
|
|
3038
|
-
const
|
|
3038
|
+
const de_UpdateExtensionAssociationCommandError = async (output, context) => {
|
|
3039
3039
|
const parsedOutput = {
|
|
3040
3040
|
...output,
|
|
3041
3041
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3044,13 +3044,13 @@ const deserializeAws_restJson1UpdateExtensionAssociationCommandError = async (ou
|
|
|
3044
3044
|
switch (errorCode) {
|
|
3045
3045
|
case "BadRequestException":
|
|
3046
3046
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3047
|
-
throw await
|
|
3047
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3048
3048
|
case "InternalServerException":
|
|
3049
3049
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3050
|
-
throw await
|
|
3050
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3051
3051
|
case "ResourceNotFoundException":
|
|
3052
3052
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3053
|
-
throw await
|
|
3053
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3054
3054
|
default:
|
|
3055
3055
|
const parsedBody = parsedOutput.body;
|
|
3056
3056
|
throwDefaultError({
|
|
@@ -3061,9 +3061,9 @@ const deserializeAws_restJson1UpdateExtensionAssociationCommandError = async (ou
|
|
|
3061
3061
|
});
|
|
3062
3062
|
}
|
|
3063
3063
|
};
|
|
3064
|
-
export const
|
|
3064
|
+
export const de_ValidateConfigurationCommand = async (output, context) => {
|
|
3065
3065
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3066
|
-
return
|
|
3066
|
+
return de_ValidateConfigurationCommandError(output, context);
|
|
3067
3067
|
}
|
|
3068
3068
|
const contents = map({
|
|
3069
3069
|
$metadata: deserializeMetadata(output),
|
|
@@ -3071,7 +3071,7 @@ export const deserializeAws_restJson1ValidateConfigurationCommand = async (outpu
|
|
|
3071
3071
|
await collectBody(output.body, context);
|
|
3072
3072
|
return contents;
|
|
3073
3073
|
};
|
|
3074
|
-
const
|
|
3074
|
+
const de_ValidateConfigurationCommandError = async (output, context) => {
|
|
3075
3075
|
const parsedOutput = {
|
|
3076
3076
|
...output,
|
|
3077
3077
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3080,13 +3080,13 @@ const deserializeAws_restJson1ValidateConfigurationCommandError = async (output,
|
|
|
3080
3080
|
switch (errorCode) {
|
|
3081
3081
|
case "BadRequestException":
|
|
3082
3082
|
case "com.amazonaws.appconfig#BadRequestException":
|
|
3083
|
-
throw await
|
|
3083
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
3084
3084
|
case "InternalServerException":
|
|
3085
3085
|
case "com.amazonaws.appconfig#InternalServerException":
|
|
3086
|
-
throw await
|
|
3086
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3087
3087
|
case "ResourceNotFoundException":
|
|
3088
3088
|
case "com.amazonaws.appconfig#ResourceNotFoundException":
|
|
3089
|
-
throw await
|
|
3089
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3090
3090
|
default:
|
|
3091
3091
|
const parsedBody = parsedOutput.body;
|
|
3092
3092
|
throwDefaultError({
|
|
@@ -3098,11 +3098,11 @@ const deserializeAws_restJson1ValidateConfigurationCommandError = async (output,
|
|
|
3098
3098
|
}
|
|
3099
3099
|
};
|
|
3100
3100
|
const map = __map;
|
|
3101
|
-
const
|
|
3101
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3102
3102
|
const contents = map({});
|
|
3103
3103
|
const data = parsedOutput.body;
|
|
3104
3104
|
if (data.Details != null) {
|
|
3105
|
-
contents.Details =
|
|
3105
|
+
contents.Details = de_BadRequestDetails(__expectUnion(data.Details), context);
|
|
3106
3106
|
}
|
|
3107
3107
|
if (data.Message != null) {
|
|
3108
3108
|
contents.Message = __expectString(data.Message);
|
|
@@ -3116,7 +3116,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
3116
3116
|
});
|
|
3117
3117
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3118
3118
|
};
|
|
3119
|
-
const
|
|
3119
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3120
3120
|
const contents = map({});
|
|
3121
3121
|
const data = parsedOutput.body;
|
|
3122
3122
|
if (data.Message != null) {
|
|
@@ -3128,7 +3128,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
3128
3128
|
});
|
|
3129
3129
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3130
3130
|
};
|
|
3131
|
-
const
|
|
3131
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3132
3132
|
const contents = map({});
|
|
3133
3133
|
const data = parsedOutput.body;
|
|
3134
3134
|
if (data.Message != null) {
|
|
@@ -3140,7 +3140,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3140
3140
|
});
|
|
3141
3141
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3142
3142
|
};
|
|
3143
|
-
const
|
|
3143
|
+
const de_PayloadTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
3144
3144
|
const contents = map({});
|
|
3145
3145
|
const data = parsedOutput.body;
|
|
3146
3146
|
if (data.Limit != null) {
|
|
@@ -3161,7 +3161,7 @@ const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async (parsedOu
|
|
|
3161
3161
|
});
|
|
3162
3162
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3163
3163
|
};
|
|
3164
|
-
const
|
|
3164
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3165
3165
|
const contents = map({});
|
|
3166
3166
|
const data = parsedOutput.body;
|
|
3167
3167
|
if (data.Message != null) {
|
|
@@ -3176,7 +3176,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3176
3176
|
});
|
|
3177
3177
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3178
3178
|
};
|
|
3179
|
-
const
|
|
3179
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3180
3180
|
const contents = map({});
|
|
3181
3181
|
const data = parsedOutput.body;
|
|
3182
3182
|
if (data.Message != null) {
|
|
@@ -3188,7 +3188,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
3188
3188
|
});
|
|
3189
3189
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3190
3190
|
};
|
|
3191
|
-
const
|
|
3191
|
+
const se_Action = (input, context) => {
|
|
3192
3192
|
return {
|
|
3193
3193
|
...(input.Description != null && { Description: input.Description }),
|
|
3194
3194
|
...(input.Name != null && { Name: input.Name }),
|
|
@@ -3196,51 +3196,51 @@ const serializeAws_restJson1Action = (input, context) => {
|
|
|
3196
3196
|
...(input.Uri != null && { Uri: input.Uri }),
|
|
3197
3197
|
};
|
|
3198
3198
|
};
|
|
3199
|
-
const
|
|
3199
|
+
const se_ActionList = (input, context) => {
|
|
3200
3200
|
return input
|
|
3201
3201
|
.filter((e) => e != null)
|
|
3202
3202
|
.map((entry) => {
|
|
3203
|
-
return
|
|
3203
|
+
return se_Action(entry, context);
|
|
3204
3204
|
});
|
|
3205
3205
|
};
|
|
3206
|
-
const
|
|
3206
|
+
const se_ActionsMap = (input, context) => {
|
|
3207
3207
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3208
3208
|
if (value === null) {
|
|
3209
3209
|
return acc;
|
|
3210
3210
|
}
|
|
3211
|
-
acc[key] =
|
|
3211
|
+
acc[key] = se_ActionList(value, context);
|
|
3212
3212
|
return acc;
|
|
3213
3213
|
}, {});
|
|
3214
3214
|
};
|
|
3215
|
-
const
|
|
3215
|
+
const se_Monitor = (input, context) => {
|
|
3216
3216
|
return {
|
|
3217
3217
|
...(input.AlarmArn != null && { AlarmArn: input.AlarmArn }),
|
|
3218
3218
|
...(input.AlarmRoleArn != null && { AlarmRoleArn: input.AlarmRoleArn }),
|
|
3219
3219
|
};
|
|
3220
3220
|
};
|
|
3221
|
-
const
|
|
3221
|
+
const se_MonitorList = (input, context) => {
|
|
3222
3222
|
return input
|
|
3223
3223
|
.filter((e) => e != null)
|
|
3224
3224
|
.map((entry) => {
|
|
3225
|
-
return
|
|
3225
|
+
return se_Monitor(entry, context);
|
|
3226
3226
|
});
|
|
3227
3227
|
};
|
|
3228
|
-
const
|
|
3228
|
+
const se_Parameter = (input, context) => {
|
|
3229
3229
|
return {
|
|
3230
3230
|
...(input.Description != null && { Description: input.Description }),
|
|
3231
3231
|
...(input.Required != null && { Required: input.Required }),
|
|
3232
3232
|
};
|
|
3233
3233
|
};
|
|
3234
|
-
const
|
|
3234
|
+
const se_ParameterMap = (input, context) => {
|
|
3235
3235
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3236
3236
|
if (value === null) {
|
|
3237
3237
|
return acc;
|
|
3238
3238
|
}
|
|
3239
|
-
acc[key] =
|
|
3239
|
+
acc[key] = se_Parameter(value, context);
|
|
3240
3240
|
return acc;
|
|
3241
3241
|
}, {});
|
|
3242
3242
|
};
|
|
3243
|
-
const
|
|
3243
|
+
const se_ParameterValueMap = (input, context) => {
|
|
3244
3244
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3245
3245
|
if (value === null) {
|
|
3246
3246
|
return acc;
|
|
@@ -3249,7 +3249,7 @@ const serializeAws_restJson1ParameterValueMap = (input, context) => {
|
|
|
3249
3249
|
return acc;
|
|
3250
3250
|
}, {});
|
|
3251
3251
|
};
|
|
3252
|
-
const
|
|
3252
|
+
const se_TagMap = (input, context) => {
|
|
3253
3253
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3254
3254
|
if (value === null) {
|
|
3255
3255
|
return acc;
|
|
@@ -3258,20 +3258,20 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3258
3258
|
return acc;
|
|
3259
3259
|
}, {});
|
|
3260
3260
|
};
|
|
3261
|
-
const
|
|
3261
|
+
const se_Validator = (input, context) => {
|
|
3262
3262
|
return {
|
|
3263
3263
|
...(input.Content != null && { Content: input.Content }),
|
|
3264
3264
|
...(input.Type != null && { Type: input.Type }),
|
|
3265
3265
|
};
|
|
3266
3266
|
};
|
|
3267
|
-
const
|
|
3267
|
+
const se_ValidatorList = (input, context) => {
|
|
3268
3268
|
return input
|
|
3269
3269
|
.filter((e) => e != null)
|
|
3270
3270
|
.map((entry) => {
|
|
3271
|
-
return
|
|
3271
|
+
return se_Validator(entry, context);
|
|
3272
3272
|
});
|
|
3273
3273
|
};
|
|
3274
|
-
const
|
|
3274
|
+
const de_Action = (output, context) => {
|
|
3275
3275
|
return {
|
|
3276
3276
|
Description: __expectString(output.Description),
|
|
3277
3277
|
Name: __expectString(output.Name),
|
|
@@ -3279,7 +3279,7 @@ const deserializeAws_restJson1Action = (output, context) => {
|
|
|
3279
3279
|
Uri: __expectString(output.Uri),
|
|
3280
3280
|
};
|
|
3281
3281
|
};
|
|
3282
|
-
const
|
|
3282
|
+
const de_ActionInvocation = (output, context) => {
|
|
3283
3283
|
return {
|
|
3284
3284
|
ActionName: __expectString(output.ActionName),
|
|
3285
3285
|
ErrorCode: __expectString(output.ErrorCode),
|
|
@@ -3290,139 +3290,135 @@ const deserializeAws_restJson1ActionInvocation = (output, context) => {
|
|
|
3290
3290
|
Uri: __expectString(output.Uri),
|
|
3291
3291
|
};
|
|
3292
3292
|
};
|
|
3293
|
-
const
|
|
3293
|
+
const de_ActionInvocations = (output, context) => {
|
|
3294
3294
|
const retVal = (output || [])
|
|
3295
3295
|
.filter((e) => e != null)
|
|
3296
3296
|
.map((entry) => {
|
|
3297
3297
|
if (entry === null) {
|
|
3298
3298
|
return null;
|
|
3299
3299
|
}
|
|
3300
|
-
return
|
|
3300
|
+
return de_ActionInvocation(entry, context);
|
|
3301
3301
|
});
|
|
3302
3302
|
return retVal;
|
|
3303
3303
|
};
|
|
3304
|
-
const
|
|
3304
|
+
const de_ActionList = (output, context) => {
|
|
3305
3305
|
const retVal = (output || [])
|
|
3306
3306
|
.filter((e) => e != null)
|
|
3307
3307
|
.map((entry) => {
|
|
3308
3308
|
if (entry === null) {
|
|
3309
3309
|
return null;
|
|
3310
3310
|
}
|
|
3311
|
-
return
|
|
3311
|
+
return de_Action(entry, context);
|
|
3312
3312
|
});
|
|
3313
3313
|
return retVal;
|
|
3314
3314
|
};
|
|
3315
|
-
const
|
|
3315
|
+
const de_ActionsMap = (output, context) => {
|
|
3316
3316
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3317
3317
|
if (value === null) {
|
|
3318
3318
|
return acc;
|
|
3319
3319
|
}
|
|
3320
|
-
acc[key] =
|
|
3320
|
+
acc[key] = de_ActionList(value, context);
|
|
3321
3321
|
return acc;
|
|
3322
3322
|
}, {});
|
|
3323
3323
|
};
|
|
3324
|
-
const
|
|
3324
|
+
const de_Application = (output, context) => {
|
|
3325
3325
|
return {
|
|
3326
3326
|
Description: __expectString(output.Description),
|
|
3327
3327
|
Id: __expectString(output.Id),
|
|
3328
3328
|
Name: __expectString(output.Name),
|
|
3329
3329
|
};
|
|
3330
3330
|
};
|
|
3331
|
-
const
|
|
3331
|
+
const de_ApplicationList = (output, context) => {
|
|
3332
3332
|
const retVal = (output || [])
|
|
3333
3333
|
.filter((e) => e != null)
|
|
3334
3334
|
.map((entry) => {
|
|
3335
3335
|
if (entry === null) {
|
|
3336
3336
|
return null;
|
|
3337
3337
|
}
|
|
3338
|
-
return
|
|
3338
|
+
return de_Application(entry, context);
|
|
3339
3339
|
});
|
|
3340
3340
|
return retVal;
|
|
3341
3341
|
};
|
|
3342
|
-
const
|
|
3342
|
+
const de_AppliedExtension = (output, context) => {
|
|
3343
3343
|
return {
|
|
3344
3344
|
ExtensionAssociationId: __expectString(output.ExtensionAssociationId),
|
|
3345
3345
|
ExtensionId: __expectString(output.ExtensionId),
|
|
3346
|
-
Parameters: output.Parameters != null ?
|
|
3346
|
+
Parameters: output.Parameters != null ? de_ParameterValueMap(output.Parameters, context) : undefined,
|
|
3347
3347
|
VersionNumber: __expectInt32(output.VersionNumber),
|
|
3348
3348
|
};
|
|
3349
3349
|
};
|
|
3350
|
-
const
|
|
3350
|
+
const de_AppliedExtensions = (output, context) => {
|
|
3351
3351
|
const retVal = (output || [])
|
|
3352
3352
|
.filter((e) => e != null)
|
|
3353
3353
|
.map((entry) => {
|
|
3354
3354
|
if (entry === null) {
|
|
3355
3355
|
return null;
|
|
3356
3356
|
}
|
|
3357
|
-
return
|
|
3357
|
+
return de_AppliedExtension(entry, context);
|
|
3358
3358
|
});
|
|
3359
3359
|
return retVal;
|
|
3360
3360
|
};
|
|
3361
|
-
const
|
|
3361
|
+
const de_BadRequestDetails = (output, context) => {
|
|
3362
3362
|
if (output.InvalidConfiguration != null) {
|
|
3363
3363
|
return {
|
|
3364
|
-
InvalidConfiguration:
|
|
3364
|
+
InvalidConfiguration: de_InvalidConfigurationDetailList(output.InvalidConfiguration, context),
|
|
3365
3365
|
};
|
|
3366
3366
|
}
|
|
3367
3367
|
return { $unknown: Object.entries(output)[0] };
|
|
3368
3368
|
};
|
|
3369
|
-
const
|
|
3369
|
+
const de_ConfigurationProfileSummary = (output, context) => {
|
|
3370
3370
|
return {
|
|
3371
3371
|
ApplicationId: __expectString(output.ApplicationId),
|
|
3372
3372
|
Id: __expectString(output.Id),
|
|
3373
3373
|
LocationUri: __expectString(output.LocationUri),
|
|
3374
3374
|
Name: __expectString(output.Name),
|
|
3375
3375
|
Type: __expectString(output.Type),
|
|
3376
|
-
ValidatorTypes: output.ValidatorTypes != null
|
|
3377
|
-
? deserializeAws_restJson1ValidatorTypeList(output.ValidatorTypes, context)
|
|
3378
|
-
: undefined,
|
|
3376
|
+
ValidatorTypes: output.ValidatorTypes != null ? de_ValidatorTypeList(output.ValidatorTypes, context) : undefined,
|
|
3379
3377
|
};
|
|
3380
3378
|
};
|
|
3381
|
-
const
|
|
3379
|
+
const de_ConfigurationProfileSummaryList = (output, context) => {
|
|
3382
3380
|
const retVal = (output || [])
|
|
3383
3381
|
.filter((e) => e != null)
|
|
3384
3382
|
.map((entry) => {
|
|
3385
3383
|
if (entry === null) {
|
|
3386
3384
|
return null;
|
|
3387
3385
|
}
|
|
3388
|
-
return
|
|
3386
|
+
return de_ConfigurationProfileSummary(entry, context);
|
|
3389
3387
|
});
|
|
3390
3388
|
return retVal;
|
|
3391
3389
|
};
|
|
3392
|
-
const
|
|
3390
|
+
const de_DeploymentEvent = (output, context) => {
|
|
3393
3391
|
return {
|
|
3394
|
-
ActionInvocations: output.ActionInvocations != null
|
|
3395
|
-
? deserializeAws_restJson1ActionInvocations(output.ActionInvocations, context)
|
|
3396
|
-
: undefined,
|
|
3392
|
+
ActionInvocations: output.ActionInvocations != null ? de_ActionInvocations(output.ActionInvocations, context) : undefined,
|
|
3397
3393
|
Description: __expectString(output.Description),
|
|
3398
3394
|
EventType: __expectString(output.EventType),
|
|
3399
3395
|
OccurredAt: output.OccurredAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.OccurredAt)) : undefined,
|
|
3400
3396
|
TriggeredBy: __expectString(output.TriggeredBy),
|
|
3401
3397
|
};
|
|
3402
3398
|
};
|
|
3403
|
-
const
|
|
3399
|
+
const de_DeploymentEvents = (output, context) => {
|
|
3404
3400
|
const retVal = (output || [])
|
|
3405
3401
|
.filter((e) => e != null)
|
|
3406
3402
|
.map((entry) => {
|
|
3407
3403
|
if (entry === null) {
|
|
3408
3404
|
return null;
|
|
3409
3405
|
}
|
|
3410
|
-
return
|
|
3406
|
+
return de_DeploymentEvent(entry, context);
|
|
3411
3407
|
});
|
|
3412
3408
|
return retVal;
|
|
3413
3409
|
};
|
|
3414
|
-
const
|
|
3410
|
+
const de_DeploymentList = (output, context) => {
|
|
3415
3411
|
const retVal = (output || [])
|
|
3416
3412
|
.filter((e) => e != null)
|
|
3417
3413
|
.map((entry) => {
|
|
3418
3414
|
if (entry === null) {
|
|
3419
3415
|
return null;
|
|
3420
3416
|
}
|
|
3421
|
-
return
|
|
3417
|
+
return de_DeploymentSummary(entry, context);
|
|
3422
3418
|
});
|
|
3423
3419
|
return retVal;
|
|
3424
3420
|
};
|
|
3425
|
-
const
|
|
3421
|
+
const de_DeploymentStrategy = (output, context) => {
|
|
3426
3422
|
return {
|
|
3427
3423
|
DeploymentDurationInMinutes: __expectInt32(output.DeploymentDurationInMinutes),
|
|
3428
3424
|
Description: __expectString(output.Description),
|
|
@@ -3434,18 +3430,18 @@ const deserializeAws_restJson1DeploymentStrategy = (output, context) => {
|
|
|
3434
3430
|
ReplicateTo: __expectString(output.ReplicateTo),
|
|
3435
3431
|
};
|
|
3436
3432
|
};
|
|
3437
|
-
const
|
|
3433
|
+
const de_DeploymentStrategyList = (output, context) => {
|
|
3438
3434
|
const retVal = (output || [])
|
|
3439
3435
|
.filter((e) => e != null)
|
|
3440
3436
|
.map((entry) => {
|
|
3441
3437
|
if (entry === null) {
|
|
3442
3438
|
return null;
|
|
3443
3439
|
}
|
|
3444
|
-
return
|
|
3440
|
+
return de_DeploymentStrategy(entry, context);
|
|
3445
3441
|
});
|
|
3446
3442
|
return retVal;
|
|
3447
3443
|
};
|
|
3448
|
-
const
|
|
3444
|
+
const de_DeploymentSummary = (output, context) => {
|
|
3449
3445
|
return {
|
|
3450
3446
|
CompletedAt: output.CompletedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.CompletedAt)) : undefined,
|
|
3451
3447
|
ConfigurationName: __expectString(output.ConfigurationName),
|
|
@@ -3460,57 +3456,57 @@ const deserializeAws_restJson1DeploymentSummary = (output, context) => {
|
|
|
3460
3456
|
State: __expectString(output.State),
|
|
3461
3457
|
};
|
|
3462
3458
|
};
|
|
3463
|
-
const
|
|
3459
|
+
const de_Environment = (output, context) => {
|
|
3464
3460
|
return {
|
|
3465
3461
|
ApplicationId: __expectString(output.ApplicationId),
|
|
3466
3462
|
Description: __expectString(output.Description),
|
|
3467
3463
|
Id: __expectString(output.Id),
|
|
3468
|
-
Monitors: output.Monitors != null ?
|
|
3464
|
+
Monitors: output.Monitors != null ? de_MonitorList(output.Monitors, context) : undefined,
|
|
3469
3465
|
Name: __expectString(output.Name),
|
|
3470
3466
|
State: __expectString(output.State),
|
|
3471
3467
|
};
|
|
3472
3468
|
};
|
|
3473
|
-
const
|
|
3469
|
+
const de_EnvironmentList = (output, context) => {
|
|
3474
3470
|
const retVal = (output || [])
|
|
3475
3471
|
.filter((e) => e != null)
|
|
3476
3472
|
.map((entry) => {
|
|
3477
3473
|
if (entry === null) {
|
|
3478
3474
|
return null;
|
|
3479
3475
|
}
|
|
3480
|
-
return
|
|
3476
|
+
return de_Environment(entry, context);
|
|
3481
3477
|
});
|
|
3482
3478
|
return retVal;
|
|
3483
3479
|
};
|
|
3484
|
-
const
|
|
3480
|
+
const de_ExtensionAssociationSummaries = (output, context) => {
|
|
3485
3481
|
const retVal = (output || [])
|
|
3486
3482
|
.filter((e) => e != null)
|
|
3487
3483
|
.map((entry) => {
|
|
3488
3484
|
if (entry === null) {
|
|
3489
3485
|
return null;
|
|
3490
3486
|
}
|
|
3491
|
-
return
|
|
3487
|
+
return de_ExtensionAssociationSummary(entry, context);
|
|
3492
3488
|
});
|
|
3493
3489
|
return retVal;
|
|
3494
3490
|
};
|
|
3495
|
-
const
|
|
3491
|
+
const de_ExtensionAssociationSummary = (output, context) => {
|
|
3496
3492
|
return {
|
|
3497
3493
|
ExtensionArn: __expectString(output.ExtensionArn),
|
|
3498
3494
|
Id: __expectString(output.Id),
|
|
3499
3495
|
ResourceArn: __expectString(output.ResourceArn),
|
|
3500
3496
|
};
|
|
3501
3497
|
};
|
|
3502
|
-
const
|
|
3498
|
+
const de_ExtensionSummaries = (output, context) => {
|
|
3503
3499
|
const retVal = (output || [])
|
|
3504
3500
|
.filter((e) => e != null)
|
|
3505
3501
|
.map((entry) => {
|
|
3506
3502
|
if (entry === null) {
|
|
3507
3503
|
return null;
|
|
3508
3504
|
}
|
|
3509
|
-
return
|
|
3505
|
+
return de_ExtensionSummary(entry, context);
|
|
3510
3506
|
});
|
|
3511
3507
|
return retVal;
|
|
3512
3508
|
};
|
|
3513
|
-
const
|
|
3509
|
+
const de_ExtensionSummary = (output, context) => {
|
|
3514
3510
|
return {
|
|
3515
3511
|
Arn: __expectString(output.Arn),
|
|
3516
3512
|
Description: __expectString(output.Description),
|
|
@@ -3519,7 +3515,7 @@ const deserializeAws_restJson1ExtensionSummary = (output, context) => {
|
|
|
3519
3515
|
VersionNumber: __expectInt32(output.VersionNumber),
|
|
3520
3516
|
};
|
|
3521
3517
|
};
|
|
3522
|
-
const
|
|
3518
|
+
const de_HostedConfigurationVersionSummary = (output, context) => {
|
|
3523
3519
|
return {
|
|
3524
3520
|
ApplicationId: __expectString(output.ApplicationId),
|
|
3525
3521
|
ConfigurationProfileId: __expectString(output.ConfigurationProfileId),
|
|
@@ -3529,18 +3525,18 @@ const deserializeAws_restJson1HostedConfigurationVersionSummary = (output, conte
|
|
|
3529
3525
|
VersionNumber: __expectInt32(output.VersionNumber),
|
|
3530
3526
|
};
|
|
3531
3527
|
};
|
|
3532
|
-
const
|
|
3528
|
+
const de_HostedConfigurationVersionSummaryList = (output, context) => {
|
|
3533
3529
|
const retVal = (output || [])
|
|
3534
3530
|
.filter((e) => e != null)
|
|
3535
3531
|
.map((entry) => {
|
|
3536
3532
|
if (entry === null) {
|
|
3537
3533
|
return null;
|
|
3538
3534
|
}
|
|
3539
|
-
return
|
|
3535
|
+
return de_HostedConfigurationVersionSummary(entry, context);
|
|
3540
3536
|
});
|
|
3541
3537
|
return retVal;
|
|
3542
3538
|
};
|
|
3543
|
-
const
|
|
3539
|
+
const de_InvalidConfigurationDetail = (output, context) => {
|
|
3544
3540
|
return {
|
|
3545
3541
|
Constraint: __expectString(output.Constraint),
|
|
3546
3542
|
Location: __expectString(output.Location),
|
|
@@ -3549,50 +3545,50 @@ const deserializeAws_restJson1InvalidConfigurationDetail = (output, context) =>
|
|
|
3549
3545
|
Value: __expectString(output.Value),
|
|
3550
3546
|
};
|
|
3551
3547
|
};
|
|
3552
|
-
const
|
|
3548
|
+
const de_InvalidConfigurationDetailList = (output, context) => {
|
|
3553
3549
|
const retVal = (output || [])
|
|
3554
3550
|
.filter((e) => e != null)
|
|
3555
3551
|
.map((entry) => {
|
|
3556
3552
|
if (entry === null) {
|
|
3557
3553
|
return null;
|
|
3558
3554
|
}
|
|
3559
|
-
return
|
|
3555
|
+
return de_InvalidConfigurationDetail(entry, context);
|
|
3560
3556
|
});
|
|
3561
3557
|
return retVal;
|
|
3562
3558
|
};
|
|
3563
|
-
const
|
|
3559
|
+
const de_Monitor = (output, context) => {
|
|
3564
3560
|
return {
|
|
3565
3561
|
AlarmArn: __expectString(output.AlarmArn),
|
|
3566
3562
|
AlarmRoleArn: __expectString(output.AlarmRoleArn),
|
|
3567
3563
|
};
|
|
3568
3564
|
};
|
|
3569
|
-
const
|
|
3565
|
+
const de_MonitorList = (output, context) => {
|
|
3570
3566
|
const retVal = (output || [])
|
|
3571
3567
|
.filter((e) => e != null)
|
|
3572
3568
|
.map((entry) => {
|
|
3573
3569
|
if (entry === null) {
|
|
3574
3570
|
return null;
|
|
3575
3571
|
}
|
|
3576
|
-
return
|
|
3572
|
+
return de_Monitor(entry, context);
|
|
3577
3573
|
});
|
|
3578
3574
|
return retVal;
|
|
3579
3575
|
};
|
|
3580
|
-
const
|
|
3576
|
+
const de_Parameter = (output, context) => {
|
|
3581
3577
|
return {
|
|
3582
3578
|
Description: __expectString(output.Description),
|
|
3583
3579
|
Required: __expectBoolean(output.Required),
|
|
3584
3580
|
};
|
|
3585
3581
|
};
|
|
3586
|
-
const
|
|
3582
|
+
const de_ParameterMap = (output, context) => {
|
|
3587
3583
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3588
3584
|
if (value === null) {
|
|
3589
3585
|
return acc;
|
|
3590
3586
|
}
|
|
3591
|
-
acc[key] =
|
|
3587
|
+
acc[key] = de_Parameter(value, context);
|
|
3592
3588
|
return acc;
|
|
3593
3589
|
}, {});
|
|
3594
3590
|
};
|
|
3595
|
-
const
|
|
3591
|
+
const de_ParameterValueMap = (output, context) => {
|
|
3596
3592
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3597
3593
|
if (value === null) {
|
|
3598
3594
|
return acc;
|
|
@@ -3601,7 +3597,7 @@ const deserializeAws_restJson1ParameterValueMap = (output, context) => {
|
|
|
3601
3597
|
return acc;
|
|
3602
3598
|
}, {});
|
|
3603
3599
|
};
|
|
3604
|
-
const
|
|
3600
|
+
const de_TagMap = (output, context) => {
|
|
3605
3601
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3606
3602
|
if (value === null) {
|
|
3607
3603
|
return acc;
|
|
@@ -3610,24 +3606,24 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3610
3606
|
return acc;
|
|
3611
3607
|
}, {});
|
|
3612
3608
|
};
|
|
3613
|
-
const
|
|
3609
|
+
const de_Validator = (output, context) => {
|
|
3614
3610
|
return {
|
|
3615
3611
|
Content: __expectString(output.Content),
|
|
3616
3612
|
Type: __expectString(output.Type),
|
|
3617
3613
|
};
|
|
3618
3614
|
};
|
|
3619
|
-
const
|
|
3615
|
+
const de_ValidatorList = (output, context) => {
|
|
3620
3616
|
const retVal = (output || [])
|
|
3621
3617
|
.filter((e) => e != null)
|
|
3622
3618
|
.map((entry) => {
|
|
3623
3619
|
if (entry === null) {
|
|
3624
3620
|
return null;
|
|
3625
3621
|
}
|
|
3626
|
-
return
|
|
3622
|
+
return de_Validator(entry, context);
|
|
3627
3623
|
});
|
|
3628
3624
|
return retVal;
|
|
3629
3625
|
};
|
|
3630
|
-
const
|
|
3626
|
+
const de_ValidatorTypeList = (output, context) => {
|
|
3631
3627
|
const retVal = (output || [])
|
|
3632
3628
|
.filter((e) => e != null)
|
|
3633
3629
|
.map((entry) => {
|