@aws-sdk/client-imagebuilder 3.118.0 → 3.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +559 -697
- package/dist-es/protocols/Aws_restJson1.js +419 -557
- package/package.json +26 -26
|
@@ -17,8 +17,7 @@ const serializeAws_restJson1CancelImageCreationCommand = async (input, context)
|
|
|
17
17
|
let body;
|
|
18
18
|
body = JSON.stringify({
|
|
19
19
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
20
|
-
...(input.imageBuildVersionArn
|
|
21
|
-
input.imageBuildVersionArn !== null && { imageBuildVersionArn: input.imageBuildVersionArn }),
|
|
20
|
+
...(input.imageBuildVersionArn != null && { imageBuildVersionArn: input.imageBuildVersionArn }),
|
|
22
21
|
});
|
|
23
22
|
return new protocol_http_1.HttpRequest({
|
|
24
23
|
protocol,
|
|
@@ -40,22 +39,19 @@ const serializeAws_restJson1CreateComponentCommand = async (input, context) => {
|
|
|
40
39
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateComponent";
|
|
41
40
|
let body;
|
|
42
41
|
body = JSON.stringify({
|
|
43
|
-
...(input.changeDescription
|
|
44
|
-
input.changeDescription !== null && { changeDescription: input.changeDescription }),
|
|
42
|
+
...(input.changeDescription != null && { changeDescription: input.changeDescription }),
|
|
45
43
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
46
|
-
...(input.data
|
|
47
|
-
...(input.description
|
|
48
|
-
...(input.kmsKeyId
|
|
49
|
-
...(input.name
|
|
50
|
-
...(input.platform
|
|
51
|
-
...(input.semanticVersion
|
|
52
|
-
|
|
53
|
-
...(input.supportedOsVersions !== undefined &&
|
|
54
|
-
input.supportedOsVersions !== null && {
|
|
44
|
+
...(input.data != null && { data: input.data }),
|
|
45
|
+
...(input.description != null && { description: input.description }),
|
|
46
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
47
|
+
...(input.name != null && { name: input.name }),
|
|
48
|
+
...(input.platform != null && { platform: input.platform }),
|
|
49
|
+
...(input.semanticVersion != null && { semanticVersion: input.semanticVersion }),
|
|
50
|
+
...(input.supportedOsVersions != null && {
|
|
55
51
|
supportedOsVersions: serializeAws_restJson1OsVersionList(input.supportedOsVersions, context),
|
|
56
52
|
}),
|
|
57
|
-
...(input.tags
|
|
58
|
-
...(input.uri
|
|
53
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
54
|
+
...(input.uri != null && { uri: input.uri }),
|
|
59
55
|
});
|
|
60
56
|
return new protocol_http_1.HttpRequest({
|
|
61
57
|
protocol,
|
|
@@ -78,36 +74,27 @@ const serializeAws_restJson1CreateContainerRecipeCommand = async (input, context
|
|
|
78
74
|
let body;
|
|
79
75
|
body = JSON.stringify({
|
|
80
76
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
81
|
-
...(input.components
|
|
82
|
-
input.components !== null && {
|
|
77
|
+
...(input.components != null && {
|
|
83
78
|
components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
|
|
84
79
|
}),
|
|
85
|
-
...(input.containerType
|
|
86
|
-
...(input.description
|
|
87
|
-
...(input.dockerfileTemplateData
|
|
88
|
-
|
|
89
|
-
...(input.
|
|
90
|
-
|
|
91
|
-
...(input.imageOsVersionOverride !== undefined &&
|
|
92
|
-
input.imageOsVersionOverride !== null && { imageOsVersionOverride: input.imageOsVersionOverride }),
|
|
93
|
-
...(input.instanceConfiguration !== undefined &&
|
|
94
|
-
input.instanceConfiguration !== null && {
|
|
80
|
+
...(input.containerType != null && { containerType: input.containerType }),
|
|
81
|
+
...(input.description != null && { description: input.description }),
|
|
82
|
+
...(input.dockerfileTemplateData != null && { dockerfileTemplateData: input.dockerfileTemplateData }),
|
|
83
|
+
...(input.dockerfileTemplateUri != null && { dockerfileTemplateUri: input.dockerfileTemplateUri }),
|
|
84
|
+
...(input.imageOsVersionOverride != null && { imageOsVersionOverride: input.imageOsVersionOverride }),
|
|
85
|
+
...(input.instanceConfiguration != null && {
|
|
95
86
|
instanceConfiguration: serializeAws_restJson1InstanceConfiguration(input.instanceConfiguration, context),
|
|
96
87
|
}),
|
|
97
|
-
...(input.kmsKeyId
|
|
98
|
-
...(input.name
|
|
99
|
-
...(input.parentImage
|
|
100
|
-
...(input.platformOverride
|
|
101
|
-
|
|
102
|
-
...(input.
|
|
103
|
-
|
|
104
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
105
|
-
...(input.targetRepository !== undefined &&
|
|
106
|
-
input.targetRepository !== null && {
|
|
88
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
89
|
+
...(input.name != null && { name: input.name }),
|
|
90
|
+
...(input.parentImage != null && { parentImage: input.parentImage }),
|
|
91
|
+
...(input.platformOverride != null && { platformOverride: input.platformOverride }),
|
|
92
|
+
...(input.semanticVersion != null && { semanticVersion: input.semanticVersion }),
|
|
93
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
94
|
+
...(input.targetRepository != null && {
|
|
107
95
|
targetRepository: serializeAws_restJson1TargetContainerRepository(input.targetRepository, context),
|
|
108
96
|
}),
|
|
109
|
-
...(input.workingDirectory
|
|
110
|
-
input.workingDirectory !== null && { workingDirectory: input.workingDirectory }),
|
|
97
|
+
...(input.workingDirectory != null && { workingDirectory: input.workingDirectory }),
|
|
111
98
|
});
|
|
112
99
|
return new protocol_http_1.HttpRequest({
|
|
113
100
|
protocol,
|
|
@@ -130,13 +117,12 @@ const serializeAws_restJson1CreateDistributionConfigurationCommand = async (inpu
|
|
|
130
117
|
let body;
|
|
131
118
|
body = JSON.stringify({
|
|
132
119
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
133
|
-
...(input.description
|
|
134
|
-
...(input.distributions
|
|
135
|
-
input.distributions !== null && {
|
|
120
|
+
...(input.description != null && { description: input.description }),
|
|
121
|
+
...(input.distributions != null && {
|
|
136
122
|
distributions: serializeAws_restJson1DistributionList(input.distributions, context),
|
|
137
123
|
}),
|
|
138
|
-
...(input.name
|
|
139
|
-
...(input.tags
|
|
124
|
+
...(input.name != null && { name: input.name }),
|
|
125
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
140
126
|
});
|
|
141
127
|
return new protocol_http_1.HttpRequest({
|
|
142
128
|
protocol,
|
|
@@ -159,27 +145,21 @@ const serializeAws_restJson1CreateImageCommand = async (input, context) => {
|
|
|
159
145
|
let body;
|
|
160
146
|
body = JSON.stringify({
|
|
161
147
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
162
|
-
...(input.containerRecipeArn
|
|
163
|
-
|
|
164
|
-
...(input.distributionConfigurationArn !== undefined &&
|
|
165
|
-
input.distributionConfigurationArn !== null && {
|
|
148
|
+
...(input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn }),
|
|
149
|
+
...(input.distributionConfigurationArn != null && {
|
|
166
150
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
167
151
|
}),
|
|
168
|
-
...(input.enhancedImageMetadataEnabled
|
|
169
|
-
input.enhancedImageMetadataEnabled !== null && {
|
|
152
|
+
...(input.enhancedImageMetadataEnabled != null && {
|
|
170
153
|
enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
|
|
171
154
|
}),
|
|
172
|
-
...(input.imageRecipeArn
|
|
173
|
-
|
|
174
|
-
...(input.imageTestsConfiguration !== undefined &&
|
|
175
|
-
input.imageTestsConfiguration !== null && {
|
|
155
|
+
...(input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn }),
|
|
156
|
+
...(input.imageTestsConfiguration != null && {
|
|
176
157
|
imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
|
|
177
158
|
}),
|
|
178
|
-
...(input.infrastructureConfigurationArn
|
|
179
|
-
input.infrastructureConfigurationArn !== null && {
|
|
159
|
+
...(input.infrastructureConfigurationArn != null && {
|
|
180
160
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
181
161
|
}),
|
|
182
|
-
...(input.tags
|
|
162
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
183
163
|
});
|
|
184
164
|
return new protocol_http_1.HttpRequest({
|
|
185
165
|
protocol,
|
|
@@ -202,32 +182,25 @@ const serializeAws_restJson1CreateImagePipelineCommand = async (input, context)
|
|
|
202
182
|
let body;
|
|
203
183
|
body = JSON.stringify({
|
|
204
184
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
205
|
-
...(input.containerRecipeArn
|
|
206
|
-
|
|
207
|
-
...(input.
|
|
208
|
-
...(input.distributionConfigurationArn !== undefined &&
|
|
209
|
-
input.distributionConfigurationArn !== null && {
|
|
185
|
+
...(input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn }),
|
|
186
|
+
...(input.description != null && { description: input.description }),
|
|
187
|
+
...(input.distributionConfigurationArn != null && {
|
|
210
188
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
211
189
|
}),
|
|
212
|
-
...(input.enhancedImageMetadataEnabled
|
|
213
|
-
input.enhancedImageMetadataEnabled !== null && {
|
|
190
|
+
...(input.enhancedImageMetadataEnabled != null && {
|
|
214
191
|
enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
|
|
215
192
|
}),
|
|
216
|
-
...(input.imageRecipeArn
|
|
217
|
-
|
|
218
|
-
...(input.imageTestsConfiguration !== undefined &&
|
|
219
|
-
input.imageTestsConfiguration !== null && {
|
|
193
|
+
...(input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn }),
|
|
194
|
+
...(input.imageTestsConfiguration != null && {
|
|
220
195
|
imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
|
|
221
196
|
}),
|
|
222
|
-
...(input.infrastructureConfigurationArn
|
|
223
|
-
input.infrastructureConfigurationArn !== null && {
|
|
197
|
+
...(input.infrastructureConfigurationArn != null && {
|
|
224
198
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
225
199
|
}),
|
|
226
|
-
...(input.name
|
|
227
|
-
...(input.schedule
|
|
228
|
-
|
|
229
|
-
...(input.
|
|
230
|
-
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
200
|
+
...(input.name != null && { name: input.name }),
|
|
201
|
+
...(input.schedule != null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) }),
|
|
202
|
+
...(input.status != null && { status: input.status }),
|
|
203
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
231
204
|
});
|
|
232
205
|
return new protocol_http_1.HttpRequest({
|
|
233
206
|
protocol,
|
|
@@ -249,27 +222,22 @@ const serializeAws_restJson1CreateImageRecipeCommand = async (input, context) =>
|
|
|
249
222
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImageRecipe";
|
|
250
223
|
let body;
|
|
251
224
|
body = JSON.stringify({
|
|
252
|
-
...(input.additionalInstanceConfiguration
|
|
253
|
-
input.additionalInstanceConfiguration !== null && {
|
|
225
|
+
...(input.additionalInstanceConfiguration != null && {
|
|
254
226
|
additionalInstanceConfiguration: serializeAws_restJson1AdditionalInstanceConfiguration(input.additionalInstanceConfiguration, context),
|
|
255
227
|
}),
|
|
256
|
-
...(input.blockDeviceMappings
|
|
257
|
-
input.blockDeviceMappings !== null && {
|
|
228
|
+
...(input.blockDeviceMappings != null && {
|
|
258
229
|
blockDeviceMappings: serializeAws_restJson1InstanceBlockDeviceMappings(input.blockDeviceMappings, context),
|
|
259
230
|
}),
|
|
260
231
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
261
|
-
...(input.components
|
|
262
|
-
input.components !== null && {
|
|
232
|
+
...(input.components != null && {
|
|
263
233
|
components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
|
|
264
234
|
}),
|
|
265
|
-
...(input.description
|
|
266
|
-
...(input.name
|
|
267
|
-
...(input.parentImage
|
|
268
|
-
...(input.semanticVersion
|
|
269
|
-
|
|
270
|
-
...(input.
|
|
271
|
-
...(input.workingDirectory !== undefined &&
|
|
272
|
-
input.workingDirectory !== null && { workingDirectory: input.workingDirectory }),
|
|
235
|
+
...(input.description != null && { description: input.description }),
|
|
236
|
+
...(input.name != null && { name: input.name }),
|
|
237
|
+
...(input.parentImage != null && { parentImage: input.parentImage }),
|
|
238
|
+
...(input.semanticVersion != null && { semanticVersion: input.semanticVersion }),
|
|
239
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
240
|
+
...(input.workingDirectory != null && { workingDirectory: input.workingDirectory }),
|
|
273
241
|
});
|
|
274
242
|
return new protocol_http_1.HttpRequest({
|
|
275
243
|
protocol,
|
|
@@ -292,34 +260,27 @@ const serializeAws_restJson1CreateInfrastructureConfigurationCommand = async (in
|
|
|
292
260
|
let body;
|
|
293
261
|
body = JSON.stringify({
|
|
294
262
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
295
|
-
...(input.description
|
|
296
|
-
...(input.instanceMetadataOptions
|
|
297
|
-
input.instanceMetadataOptions !== null && {
|
|
263
|
+
...(input.description != null && { description: input.description }),
|
|
264
|
+
...(input.instanceMetadataOptions != null && {
|
|
298
265
|
instanceMetadataOptions: serializeAws_restJson1InstanceMetadataOptions(input.instanceMetadataOptions, context),
|
|
299
266
|
}),
|
|
300
|
-
...(input.instanceProfileName
|
|
301
|
-
|
|
302
|
-
...(input.instanceTypes !== undefined &&
|
|
303
|
-
input.instanceTypes !== null && {
|
|
267
|
+
...(input.instanceProfileName != null && { instanceProfileName: input.instanceProfileName }),
|
|
268
|
+
...(input.instanceTypes != null && {
|
|
304
269
|
instanceTypes: serializeAws_restJson1InstanceTypeList(input.instanceTypes, context),
|
|
305
270
|
}),
|
|
306
|
-
...(input.keyPair
|
|
307
|
-
...(input.logging
|
|
308
|
-
|
|
309
|
-
...(input.
|
|
310
|
-
...(input.resourceTags !== undefined &&
|
|
311
|
-
input.resourceTags !== null && {
|
|
271
|
+
...(input.keyPair != null && { keyPair: input.keyPair }),
|
|
272
|
+
...(input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
|
|
273
|
+
...(input.name != null && { name: input.name }),
|
|
274
|
+
...(input.resourceTags != null && {
|
|
312
275
|
resourceTags: serializeAws_restJson1ResourceTagMap(input.resourceTags, context),
|
|
313
276
|
}),
|
|
314
|
-
...(input.securityGroupIds
|
|
315
|
-
input.securityGroupIds !== null && {
|
|
277
|
+
...(input.securityGroupIds != null && {
|
|
316
278
|
securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
|
|
317
279
|
}),
|
|
318
|
-
...(input.snsTopicArn
|
|
319
|
-
...(input.subnetId
|
|
320
|
-
...(input.tags
|
|
321
|
-
...(input.terminateInstanceOnFailure
|
|
322
|
-
input.terminateInstanceOnFailure !== null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure }),
|
|
280
|
+
...(input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn }),
|
|
281
|
+
...(input.subnetId != null && { subnetId: input.subnetId }),
|
|
282
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
283
|
+
...(input.terminateInstanceOnFailure != null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure }),
|
|
323
284
|
});
|
|
324
285
|
return new protocol_http_1.HttpRequest({
|
|
325
286
|
protocol,
|
|
@@ -709,20 +670,18 @@ const serializeAws_restJson1ImportComponentCommand = async (input, context) => {
|
|
|
709
670
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ImportComponent";
|
|
710
671
|
let body;
|
|
711
672
|
body = JSON.stringify({
|
|
712
|
-
...(input.changeDescription
|
|
713
|
-
input.changeDescription !== null && { changeDescription: input.changeDescription }),
|
|
673
|
+
...(input.changeDescription != null && { changeDescription: input.changeDescription }),
|
|
714
674
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
715
|
-
...(input.data
|
|
716
|
-
...(input.description
|
|
717
|
-
...(input.format
|
|
718
|
-
...(input.kmsKeyId
|
|
719
|
-
...(input.name
|
|
720
|
-
...(input.platform
|
|
721
|
-
...(input.semanticVersion
|
|
722
|
-
|
|
723
|
-
...(input.
|
|
724
|
-
...(input.
|
|
725
|
-
...(input.uri !== undefined && input.uri !== null && { uri: input.uri }),
|
|
675
|
+
...(input.data != null && { data: input.data }),
|
|
676
|
+
...(input.description != null && { description: input.description }),
|
|
677
|
+
...(input.format != null && { format: input.format }),
|
|
678
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
679
|
+
...(input.name != null && { name: input.name }),
|
|
680
|
+
...(input.platform != null && { platform: input.platform }),
|
|
681
|
+
...(input.semanticVersion != null && { semanticVersion: input.semanticVersion }),
|
|
682
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
683
|
+
...(input.type != null && { type: input.type }),
|
|
684
|
+
...(input.uri != null && { uri: input.uri }),
|
|
726
685
|
});
|
|
727
686
|
return new protocol_http_1.HttpRequest({
|
|
728
687
|
protocol,
|
|
@@ -745,15 +704,13 @@ const serializeAws_restJson1ImportVmImageCommand = async (input, context) => {
|
|
|
745
704
|
let body;
|
|
746
705
|
body = JSON.stringify({
|
|
747
706
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
748
|
-
...(input.description
|
|
749
|
-
...(input.name
|
|
750
|
-
...(input.osVersion
|
|
751
|
-
...(input.platform
|
|
752
|
-
...(input.semanticVersion
|
|
753
|
-
|
|
754
|
-
...(input.
|
|
755
|
-
...(input.vmImportTaskId !== undefined &&
|
|
756
|
-
input.vmImportTaskId !== null && { vmImportTaskId: input.vmImportTaskId }),
|
|
707
|
+
...(input.description != null && { description: input.description }),
|
|
708
|
+
...(input.name != null && { name: input.name }),
|
|
709
|
+
...(input.osVersion != null && { osVersion: input.osVersion }),
|
|
710
|
+
...(input.platform != null && { platform: input.platform }),
|
|
711
|
+
...(input.semanticVersion != null && { semanticVersion: input.semanticVersion }),
|
|
712
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
713
|
+
...(input.vmImportTaskId != null && { vmImportTaskId: input.vmImportTaskId }),
|
|
757
714
|
});
|
|
758
715
|
return new protocol_http_1.HttpRequest({
|
|
759
716
|
protocol,
|
|
@@ -774,10 +731,9 @@ const serializeAws_restJson1ListComponentBuildVersionsCommand = async (input, co
|
|
|
774
731
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListComponentBuildVersions";
|
|
775
732
|
let body;
|
|
776
733
|
body = JSON.stringify({
|
|
777
|
-
...(input.componentVersionArn
|
|
778
|
-
|
|
779
|
-
...(input.
|
|
780
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
734
|
+
...(input.componentVersionArn != null && { componentVersionArn: input.componentVersionArn }),
|
|
735
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
736
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
781
737
|
});
|
|
782
738
|
return new protocol_http_1.HttpRequest({
|
|
783
739
|
protocol,
|
|
@@ -798,12 +754,11 @@ const serializeAws_restJson1ListComponentsCommand = async (input, context) => {
|
|
|
798
754
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListComponents";
|
|
799
755
|
let body;
|
|
800
756
|
body = JSON.stringify({
|
|
801
|
-
...(input.byName
|
|
802
|
-
...(input.filters
|
|
803
|
-
|
|
804
|
-
...(input.
|
|
805
|
-
...(input.
|
|
806
|
-
...(input.owner !== undefined && input.owner !== null && { owner: input.owner }),
|
|
757
|
+
...(input.byName != null && { byName: input.byName }),
|
|
758
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
759
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
760
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
761
|
+
...(input.owner != null && { owner: input.owner }),
|
|
807
762
|
});
|
|
808
763
|
return new protocol_http_1.HttpRequest({
|
|
809
764
|
protocol,
|
|
@@ -824,11 +779,10 @@ const serializeAws_restJson1ListContainerRecipesCommand = async (input, context)
|
|
|
824
779
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListContainerRecipes";
|
|
825
780
|
let body;
|
|
826
781
|
body = JSON.stringify({
|
|
827
|
-
...(input.filters
|
|
828
|
-
|
|
829
|
-
...(input.
|
|
830
|
-
...(input.
|
|
831
|
-
...(input.owner !== undefined && input.owner !== null && { owner: input.owner }),
|
|
782
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
783
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
784
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
785
|
+
...(input.owner != null && { owner: input.owner }),
|
|
832
786
|
});
|
|
833
787
|
return new protocol_http_1.HttpRequest({
|
|
834
788
|
protocol,
|
|
@@ -849,10 +803,9 @@ const serializeAws_restJson1ListDistributionConfigurationsCommand = async (input
|
|
|
849
803
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListDistributionConfigurations";
|
|
850
804
|
let body;
|
|
851
805
|
body = JSON.stringify({
|
|
852
|
-
...(input.filters
|
|
853
|
-
|
|
854
|
-
...(input.
|
|
855
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
806
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
807
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
808
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
856
809
|
});
|
|
857
810
|
return new protocol_http_1.HttpRequest({
|
|
858
811
|
protocol,
|
|
@@ -873,12 +826,10 @@ const serializeAws_restJson1ListImageBuildVersionsCommand = async (input, contex
|
|
|
873
826
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageBuildVersions";
|
|
874
827
|
let body;
|
|
875
828
|
body = JSON.stringify({
|
|
876
|
-
...(input.filters
|
|
877
|
-
|
|
878
|
-
...(input.
|
|
879
|
-
|
|
880
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
881
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
829
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
830
|
+
...(input.imageVersionArn != null && { imageVersionArn: input.imageVersionArn }),
|
|
831
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
832
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
882
833
|
});
|
|
883
834
|
return new protocol_http_1.HttpRequest({
|
|
884
835
|
protocol,
|
|
@@ -899,10 +850,9 @@ const serializeAws_restJson1ListImagePackagesCommand = async (input, context) =>
|
|
|
899
850
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListImagePackages";
|
|
900
851
|
let body;
|
|
901
852
|
body = JSON.stringify({
|
|
902
|
-
...(input.imageBuildVersionArn
|
|
903
|
-
|
|
904
|
-
...(input.
|
|
905
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
853
|
+
...(input.imageBuildVersionArn != null && { imageBuildVersionArn: input.imageBuildVersionArn }),
|
|
854
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
855
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
906
856
|
});
|
|
907
857
|
return new protocol_http_1.HttpRequest({
|
|
908
858
|
protocol,
|
|
@@ -923,12 +873,10 @@ const serializeAws_restJson1ListImagePipelineImagesCommand = async (input, conte
|
|
|
923
873
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListImagePipelineImages";
|
|
924
874
|
let body;
|
|
925
875
|
body = JSON.stringify({
|
|
926
|
-
...(input.filters
|
|
927
|
-
|
|
928
|
-
...(input.
|
|
929
|
-
|
|
930
|
-
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
931
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
876
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
877
|
+
...(input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn }),
|
|
878
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
879
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
932
880
|
});
|
|
933
881
|
return new protocol_http_1.HttpRequest({
|
|
934
882
|
protocol,
|
|
@@ -949,10 +897,9 @@ const serializeAws_restJson1ListImagePipelinesCommand = async (input, context) =
|
|
|
949
897
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListImagePipelines";
|
|
950
898
|
let body;
|
|
951
899
|
body = JSON.stringify({
|
|
952
|
-
...(input.filters
|
|
953
|
-
|
|
954
|
-
...(input.
|
|
955
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
900
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
901
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
902
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
956
903
|
});
|
|
957
904
|
return new protocol_http_1.HttpRequest({
|
|
958
905
|
protocol,
|
|
@@ -973,11 +920,10 @@ const serializeAws_restJson1ListImageRecipesCommand = async (input, context) =>
|
|
|
973
920
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListImageRecipes";
|
|
974
921
|
let body;
|
|
975
922
|
body = JSON.stringify({
|
|
976
|
-
...(input.filters
|
|
977
|
-
|
|
978
|
-
...(input.
|
|
979
|
-
...(input.
|
|
980
|
-
...(input.owner !== undefined && input.owner !== null && { owner: input.owner }),
|
|
923
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
924
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
925
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
926
|
+
...(input.owner != null && { owner: input.owner }),
|
|
981
927
|
});
|
|
982
928
|
return new protocol_http_1.HttpRequest({
|
|
983
929
|
protocol,
|
|
@@ -998,14 +944,12 @@ const serializeAws_restJson1ListImagesCommand = async (input, context) => {
|
|
|
998
944
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListImages";
|
|
999
945
|
let body;
|
|
1000
946
|
body = JSON.stringify({
|
|
1001
|
-
...(input.byName
|
|
1002
|
-
...(input.filters
|
|
1003
|
-
|
|
1004
|
-
...(input.
|
|
1005
|
-
|
|
1006
|
-
...(input.
|
|
1007
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
1008
|
-
...(input.owner !== undefined && input.owner !== null && { owner: input.owner }),
|
|
947
|
+
...(input.byName != null && { byName: input.byName }),
|
|
948
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
949
|
+
...(input.includeDeprecated != null && { includeDeprecated: input.includeDeprecated }),
|
|
950
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
951
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
952
|
+
...(input.owner != null && { owner: input.owner }),
|
|
1009
953
|
});
|
|
1010
954
|
return new protocol_http_1.HttpRequest({
|
|
1011
955
|
protocol,
|
|
@@ -1026,10 +970,9 @@ const serializeAws_restJson1ListInfrastructureConfigurationsCommand = async (inp
|
|
|
1026
970
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ListInfrastructureConfigurations";
|
|
1027
971
|
let body;
|
|
1028
972
|
body = JSON.stringify({
|
|
1029
|
-
...(input.filters
|
|
1030
|
-
|
|
1031
|
-
...(input.
|
|
1032
|
-
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
973
|
+
...(input.filters != null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
|
|
974
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
975
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1033
976
|
});
|
|
1034
977
|
return new protocol_http_1.HttpRequest({
|
|
1035
978
|
protocol,
|
|
@@ -1076,8 +1019,8 @@ const serializeAws_restJson1PutComponentPolicyCommand = async (input, context) =
|
|
|
1076
1019
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/PutComponentPolicy";
|
|
1077
1020
|
let body;
|
|
1078
1021
|
body = JSON.stringify({
|
|
1079
|
-
...(input.componentArn
|
|
1080
|
-
...(input.policy
|
|
1022
|
+
...(input.componentArn != null && { componentArn: input.componentArn }),
|
|
1023
|
+
...(input.policy != null && { policy: input.policy }),
|
|
1081
1024
|
});
|
|
1082
1025
|
return new protocol_http_1.HttpRequest({
|
|
1083
1026
|
protocol,
|
|
@@ -1098,9 +1041,8 @@ const serializeAws_restJson1PutContainerRecipePolicyCommand = async (input, cont
|
|
|
1098
1041
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/PutContainerRecipePolicy";
|
|
1099
1042
|
let body;
|
|
1100
1043
|
body = JSON.stringify({
|
|
1101
|
-
...(input.containerRecipeArn
|
|
1102
|
-
|
|
1103
|
-
...(input.policy !== undefined && input.policy !== null && { policy: input.policy }),
|
|
1044
|
+
...(input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn }),
|
|
1045
|
+
...(input.policy != null && { policy: input.policy }),
|
|
1104
1046
|
});
|
|
1105
1047
|
return new protocol_http_1.HttpRequest({
|
|
1106
1048
|
protocol,
|
|
@@ -1121,8 +1063,8 @@ const serializeAws_restJson1PutImagePolicyCommand = async (input, context) => {
|
|
|
1121
1063
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/PutImagePolicy";
|
|
1122
1064
|
let body;
|
|
1123
1065
|
body = JSON.stringify({
|
|
1124
|
-
...(input.imageArn
|
|
1125
|
-
...(input.policy
|
|
1066
|
+
...(input.imageArn != null && { imageArn: input.imageArn }),
|
|
1067
|
+
...(input.policy != null && { policy: input.policy }),
|
|
1126
1068
|
});
|
|
1127
1069
|
return new protocol_http_1.HttpRequest({
|
|
1128
1070
|
protocol,
|
|
@@ -1143,9 +1085,8 @@ const serializeAws_restJson1PutImageRecipePolicyCommand = async (input, context)
|
|
|
1143
1085
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/PutImageRecipePolicy";
|
|
1144
1086
|
let body;
|
|
1145
1087
|
body = JSON.stringify({
|
|
1146
|
-
...(input.imageRecipeArn
|
|
1147
|
-
|
|
1148
|
-
...(input.policy !== undefined && input.policy !== null && { policy: input.policy }),
|
|
1088
|
+
...(input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn }),
|
|
1089
|
+
...(input.policy != null && { policy: input.policy }),
|
|
1149
1090
|
});
|
|
1150
1091
|
return new protocol_http_1.HttpRequest({
|
|
1151
1092
|
protocol,
|
|
@@ -1168,8 +1109,7 @@ const serializeAws_restJson1StartImagePipelineExecutionCommand = async (input, c
|
|
|
1168
1109
|
let body;
|
|
1169
1110
|
body = JSON.stringify({
|
|
1170
1111
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1171
|
-
...(input.imagePipelineArn
|
|
1172
|
-
input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn }),
|
|
1112
|
+
...(input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn }),
|
|
1173
1113
|
});
|
|
1174
1114
|
return new protocol_http_1.HttpRequest({
|
|
1175
1115
|
protocol,
|
|
@@ -1200,7 +1140,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
1200
1140
|
}
|
|
1201
1141
|
let body;
|
|
1202
1142
|
body = JSON.stringify({
|
|
1203
|
-
...(input.tags
|
|
1143
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
1204
1144
|
});
|
|
1205
1145
|
return new protocol_http_1.HttpRequest({
|
|
1206
1146
|
protocol,
|
|
@@ -1253,13 +1193,11 @@ const serializeAws_restJson1UpdateDistributionConfigurationCommand = async (inpu
|
|
|
1253
1193
|
let body;
|
|
1254
1194
|
body = JSON.stringify({
|
|
1255
1195
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1256
|
-
...(input.description
|
|
1257
|
-
...(input.distributionConfigurationArn
|
|
1258
|
-
input.distributionConfigurationArn !== null && {
|
|
1196
|
+
...(input.description != null && { description: input.description }),
|
|
1197
|
+
...(input.distributionConfigurationArn != null && {
|
|
1259
1198
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
1260
1199
|
}),
|
|
1261
|
-
...(input.distributions
|
|
1262
|
-
input.distributions !== null && {
|
|
1200
|
+
...(input.distributions != null && {
|
|
1263
1201
|
distributions: serializeAws_restJson1DistributionList(input.distributions, context),
|
|
1264
1202
|
}),
|
|
1265
1203
|
});
|
|
@@ -1284,32 +1222,24 @@ const serializeAws_restJson1UpdateImagePipelineCommand = async (input, context)
|
|
|
1284
1222
|
let body;
|
|
1285
1223
|
body = JSON.stringify({
|
|
1286
1224
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1287
|
-
...(input.containerRecipeArn
|
|
1288
|
-
|
|
1289
|
-
...(input.
|
|
1290
|
-
...(input.distributionConfigurationArn !== undefined &&
|
|
1291
|
-
input.distributionConfigurationArn !== null && {
|
|
1225
|
+
...(input.containerRecipeArn != null && { containerRecipeArn: input.containerRecipeArn }),
|
|
1226
|
+
...(input.description != null && { description: input.description }),
|
|
1227
|
+
...(input.distributionConfigurationArn != null && {
|
|
1292
1228
|
distributionConfigurationArn: input.distributionConfigurationArn,
|
|
1293
1229
|
}),
|
|
1294
|
-
...(input.enhancedImageMetadataEnabled
|
|
1295
|
-
input.enhancedImageMetadataEnabled !== null && {
|
|
1230
|
+
...(input.enhancedImageMetadataEnabled != null && {
|
|
1296
1231
|
enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
|
|
1297
1232
|
}),
|
|
1298
|
-
...(input.imagePipelineArn
|
|
1299
|
-
|
|
1300
|
-
...(input.
|
|
1301
|
-
input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn }),
|
|
1302
|
-
...(input.imageTestsConfiguration !== undefined &&
|
|
1303
|
-
input.imageTestsConfiguration !== null && {
|
|
1233
|
+
...(input.imagePipelineArn != null && { imagePipelineArn: input.imagePipelineArn }),
|
|
1234
|
+
...(input.imageRecipeArn != null && { imageRecipeArn: input.imageRecipeArn }),
|
|
1235
|
+
...(input.imageTestsConfiguration != null && {
|
|
1304
1236
|
imageTestsConfiguration: serializeAws_restJson1ImageTestsConfiguration(input.imageTestsConfiguration, context),
|
|
1305
1237
|
}),
|
|
1306
|
-
...(input.infrastructureConfigurationArn
|
|
1307
|
-
input.infrastructureConfigurationArn !== null && {
|
|
1238
|
+
...(input.infrastructureConfigurationArn != null && {
|
|
1308
1239
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
1309
1240
|
}),
|
|
1310
|
-
...(input.schedule
|
|
1311
|
-
|
|
1312
|
-
...(input.status !== undefined && input.status !== null && { status: input.status }),
|
|
1241
|
+
...(input.schedule != null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) }),
|
|
1242
|
+
...(input.status != null && { status: input.status }),
|
|
1313
1243
|
});
|
|
1314
1244
|
return new protocol_http_1.HttpRequest({
|
|
1315
1245
|
protocol,
|
|
@@ -1332,36 +1262,28 @@ const serializeAws_restJson1UpdateInfrastructureConfigurationCommand = async (in
|
|
|
1332
1262
|
let body;
|
|
1333
1263
|
body = JSON.stringify({
|
|
1334
1264
|
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1335
|
-
...(input.description
|
|
1336
|
-
...(input.infrastructureConfigurationArn
|
|
1337
|
-
input.infrastructureConfigurationArn !== null && {
|
|
1265
|
+
...(input.description != null && { description: input.description }),
|
|
1266
|
+
...(input.infrastructureConfigurationArn != null && {
|
|
1338
1267
|
infrastructureConfigurationArn: input.infrastructureConfigurationArn,
|
|
1339
1268
|
}),
|
|
1340
|
-
...(input.instanceMetadataOptions
|
|
1341
|
-
input.instanceMetadataOptions !== null && {
|
|
1269
|
+
...(input.instanceMetadataOptions != null && {
|
|
1342
1270
|
instanceMetadataOptions: serializeAws_restJson1InstanceMetadataOptions(input.instanceMetadataOptions, context),
|
|
1343
1271
|
}),
|
|
1344
|
-
...(input.instanceProfileName
|
|
1345
|
-
|
|
1346
|
-
...(input.instanceTypes !== undefined &&
|
|
1347
|
-
input.instanceTypes !== null && {
|
|
1272
|
+
...(input.instanceProfileName != null && { instanceProfileName: input.instanceProfileName }),
|
|
1273
|
+
...(input.instanceTypes != null && {
|
|
1348
1274
|
instanceTypes: serializeAws_restJson1InstanceTypeList(input.instanceTypes, context),
|
|
1349
1275
|
}),
|
|
1350
|
-
...(input.keyPair
|
|
1351
|
-
...(input.logging
|
|
1352
|
-
|
|
1353
|
-
...(input.resourceTags !== undefined &&
|
|
1354
|
-
input.resourceTags !== null && {
|
|
1276
|
+
...(input.keyPair != null && { keyPair: input.keyPair }),
|
|
1277
|
+
...(input.logging != null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
|
|
1278
|
+
...(input.resourceTags != null && {
|
|
1355
1279
|
resourceTags: serializeAws_restJson1ResourceTagMap(input.resourceTags, context),
|
|
1356
1280
|
}),
|
|
1357
|
-
...(input.securityGroupIds
|
|
1358
|
-
input.securityGroupIds !== null && {
|
|
1281
|
+
...(input.securityGroupIds != null && {
|
|
1359
1282
|
securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
|
|
1360
1283
|
}),
|
|
1361
|
-
...(input.snsTopicArn
|
|
1362
|
-
...(input.subnetId
|
|
1363
|
-
...(input.terminateInstanceOnFailure
|
|
1364
|
-
input.terminateInstanceOnFailure !== null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure }),
|
|
1284
|
+
...(input.snsTopicArn != null && { snsTopicArn: input.snsTopicArn }),
|
|
1285
|
+
...(input.subnetId != null && { subnetId: input.subnetId }),
|
|
1286
|
+
...(input.terminateInstanceOnFailure != null && { terminateInstanceOnFailure: input.terminateInstanceOnFailure }),
|
|
1365
1287
|
});
|
|
1366
1288
|
return new protocol_http_1.HttpRequest({
|
|
1367
1289
|
protocol,
|
|
@@ -1403,8 +1325,7 @@ const deserializeAws_restJson1CancelImageCreationCommandError = async (output, c
|
|
|
1403
1325
|
body: await parseBody(output.body, context),
|
|
1404
1326
|
};
|
|
1405
1327
|
let response;
|
|
1406
|
-
|
|
1407
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1328
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
1329
|
switch (errorCode) {
|
|
1409
1330
|
case "CallRateLimitExceededException":
|
|
1410
1331
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -1432,10 +1353,12 @@ const deserializeAws_restJson1CancelImageCreationCommandError = async (output, c
|
|
|
1432
1353
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1433
1354
|
default:
|
|
1434
1355
|
const parsedBody = parsedOutput.body;
|
|
1356
|
+
const $metadata = deserializeMetadata(output);
|
|
1357
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1435
1358
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
1436
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1359
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1437
1360
|
$fault: "client",
|
|
1438
|
-
$metadata
|
|
1361
|
+
$metadata,
|
|
1439
1362
|
});
|
|
1440
1363
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1441
1364
|
}
|
|
@@ -1469,8 +1392,7 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
|
|
|
1469
1392
|
body: await parseBody(output.body, context),
|
|
1470
1393
|
};
|
|
1471
1394
|
let response;
|
|
1472
|
-
|
|
1473
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1395
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
1396
|
switch (errorCode) {
|
|
1475
1397
|
case "CallRateLimitExceededException":
|
|
1476
1398
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -1507,10 +1429,12 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
|
|
|
1507
1429
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1508
1430
|
default:
|
|
1509
1431
|
const parsedBody = parsedOutput.body;
|
|
1432
|
+
const $metadata = deserializeMetadata(output);
|
|
1433
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1510
1434
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
1511
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1435
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1512
1436
|
$fault: "client",
|
|
1513
|
-
$metadata
|
|
1437
|
+
$metadata,
|
|
1514
1438
|
});
|
|
1515
1439
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1516
1440
|
}
|
|
@@ -1544,8 +1468,7 @@ const deserializeAws_restJson1CreateContainerRecipeCommandError = async (output,
|
|
|
1544
1468
|
body: await parseBody(output.body, context),
|
|
1545
1469
|
};
|
|
1546
1470
|
let response;
|
|
1547
|
-
|
|
1548
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1471
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1549
1472
|
switch (errorCode) {
|
|
1550
1473
|
case "CallRateLimitExceededException":
|
|
1551
1474
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -1582,10 +1505,12 @@ const deserializeAws_restJson1CreateContainerRecipeCommandError = async (output,
|
|
|
1582
1505
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1583
1506
|
default:
|
|
1584
1507
|
const parsedBody = parsedOutput.body;
|
|
1508
|
+
const $metadata = deserializeMetadata(output);
|
|
1509
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1585
1510
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
1586
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1511
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1587
1512
|
$fault: "client",
|
|
1588
|
-
$metadata
|
|
1513
|
+
$metadata,
|
|
1589
1514
|
});
|
|
1590
1515
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1591
1516
|
}
|
|
@@ -1619,8 +1544,7 @@ const deserializeAws_restJson1CreateDistributionConfigurationCommandError = asyn
|
|
|
1619
1544
|
body: await parseBody(output.body, context),
|
|
1620
1545
|
};
|
|
1621
1546
|
let response;
|
|
1622
|
-
|
|
1623
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1547
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1624
1548
|
switch (errorCode) {
|
|
1625
1549
|
case "CallRateLimitExceededException":
|
|
1626
1550
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -1657,10 +1581,12 @@ const deserializeAws_restJson1CreateDistributionConfigurationCommandError = asyn
|
|
|
1657
1581
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1658
1582
|
default:
|
|
1659
1583
|
const parsedBody = parsedOutput.body;
|
|
1584
|
+
const $metadata = deserializeMetadata(output);
|
|
1585
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1660
1586
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
1661
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1587
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1662
1588
|
$fault: "client",
|
|
1663
|
-
$metadata
|
|
1589
|
+
$metadata,
|
|
1664
1590
|
});
|
|
1665
1591
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1666
1592
|
}
|
|
@@ -1694,8 +1620,7 @@ const deserializeAws_restJson1CreateImageCommandError = async (output, context)
|
|
|
1694
1620
|
body: await parseBody(output.body, context),
|
|
1695
1621
|
};
|
|
1696
1622
|
let response;
|
|
1697
|
-
|
|
1698
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1623
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
1624
|
switch (errorCode) {
|
|
1700
1625
|
case "CallRateLimitExceededException":
|
|
1701
1626
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -1726,10 +1651,12 @@ const deserializeAws_restJson1CreateImageCommandError = async (output, context)
|
|
|
1726
1651
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1727
1652
|
default:
|
|
1728
1653
|
const parsedBody = parsedOutput.body;
|
|
1654
|
+
const $metadata = deserializeMetadata(output);
|
|
1655
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1729
1656
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
1730
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1657
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1731
1658
|
$fault: "client",
|
|
1732
|
-
$metadata
|
|
1659
|
+
$metadata,
|
|
1733
1660
|
});
|
|
1734
1661
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1735
1662
|
}
|
|
@@ -1763,8 +1690,7 @@ const deserializeAws_restJson1CreateImagePipelineCommandError = async (output, c
|
|
|
1763
1690
|
body: await parseBody(output.body, context),
|
|
1764
1691
|
};
|
|
1765
1692
|
let response;
|
|
1766
|
-
|
|
1767
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1693
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1768
1694
|
switch (errorCode) {
|
|
1769
1695
|
case "CallRateLimitExceededException":
|
|
1770
1696
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -1798,10 +1724,12 @@ const deserializeAws_restJson1CreateImagePipelineCommandError = async (output, c
|
|
|
1798
1724
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1799
1725
|
default:
|
|
1800
1726
|
const parsedBody = parsedOutput.body;
|
|
1727
|
+
const $metadata = deserializeMetadata(output);
|
|
1728
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1801
1729
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
1802
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1730
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1803
1731
|
$fault: "client",
|
|
1804
|
-
$metadata
|
|
1732
|
+
$metadata,
|
|
1805
1733
|
});
|
|
1806
1734
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1807
1735
|
}
|
|
@@ -1835,8 +1763,7 @@ const deserializeAws_restJson1CreateImageRecipeCommandError = async (output, con
|
|
|
1835
1763
|
body: await parseBody(output.body, context),
|
|
1836
1764
|
};
|
|
1837
1765
|
let response;
|
|
1838
|
-
|
|
1839
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1766
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1840
1767
|
switch (errorCode) {
|
|
1841
1768
|
case "CallRateLimitExceededException":
|
|
1842
1769
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -1873,10 +1800,12 @@ const deserializeAws_restJson1CreateImageRecipeCommandError = async (output, con
|
|
|
1873
1800
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1874
1801
|
default:
|
|
1875
1802
|
const parsedBody = parsedOutput.body;
|
|
1803
|
+
const $metadata = deserializeMetadata(output);
|
|
1804
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1876
1805
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
1877
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1806
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1878
1807
|
$fault: "client",
|
|
1879
|
-
$metadata
|
|
1808
|
+
$metadata,
|
|
1880
1809
|
});
|
|
1881
1810
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1882
1811
|
}
|
|
@@ -1910,8 +1839,7 @@ const deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = as
|
|
|
1910
1839
|
body: await parseBody(output.body, context),
|
|
1911
1840
|
};
|
|
1912
1841
|
let response;
|
|
1913
|
-
|
|
1914
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1842
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1915
1843
|
switch (errorCode) {
|
|
1916
1844
|
case "CallRateLimitExceededException":
|
|
1917
1845
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -1945,10 +1873,12 @@ const deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = as
|
|
|
1945
1873
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1946
1874
|
default:
|
|
1947
1875
|
const parsedBody = parsedOutput.body;
|
|
1876
|
+
const $metadata = deserializeMetadata(output);
|
|
1877
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1948
1878
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
1949
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1879
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1950
1880
|
$fault: "client",
|
|
1951
|
-
$metadata
|
|
1881
|
+
$metadata,
|
|
1952
1882
|
});
|
|
1953
1883
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1954
1884
|
}
|
|
@@ -1978,8 +1908,7 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
1978
1908
|
body: await parseBody(output.body, context),
|
|
1979
1909
|
};
|
|
1980
1910
|
let response;
|
|
1981
|
-
|
|
1982
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1983
1912
|
switch (errorCode) {
|
|
1984
1913
|
case "CallRateLimitExceededException":
|
|
1985
1914
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2004,10 +1933,12 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
2004
1933
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2005
1934
|
default:
|
|
2006
1935
|
const parsedBody = parsedOutput.body;
|
|
1936
|
+
const $metadata = deserializeMetadata(output);
|
|
1937
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2007
1938
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2008
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1939
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2009
1940
|
$fault: "client",
|
|
2010
|
-
$metadata
|
|
1941
|
+
$metadata,
|
|
2011
1942
|
});
|
|
2012
1943
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2013
1944
|
}
|
|
@@ -2037,8 +1968,7 @@ const deserializeAws_restJson1DeleteContainerRecipeCommandError = async (output,
|
|
|
2037
1968
|
body: await parseBody(output.body, context),
|
|
2038
1969
|
};
|
|
2039
1970
|
let response;
|
|
2040
|
-
|
|
2041
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2042
1972
|
switch (errorCode) {
|
|
2043
1973
|
case "CallRateLimitExceededException":
|
|
2044
1974
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2063,10 +1993,12 @@ const deserializeAws_restJson1DeleteContainerRecipeCommandError = async (output,
|
|
|
2063
1993
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2064
1994
|
default:
|
|
2065
1995
|
const parsedBody = parsedOutput.body;
|
|
1996
|
+
const $metadata = deserializeMetadata(output);
|
|
1997
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2066
1998
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2067
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1999
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2068
2000
|
$fault: "client",
|
|
2069
|
-
$metadata
|
|
2001
|
+
$metadata,
|
|
2070
2002
|
});
|
|
2071
2003
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2072
2004
|
}
|
|
@@ -2096,8 +2028,7 @@ const deserializeAws_restJson1DeleteDistributionConfigurationCommandError = asyn
|
|
|
2096
2028
|
body: await parseBody(output.body, context),
|
|
2097
2029
|
};
|
|
2098
2030
|
let response;
|
|
2099
|
-
|
|
2100
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2031
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2101
2032
|
switch (errorCode) {
|
|
2102
2033
|
case "CallRateLimitExceededException":
|
|
2103
2034
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2122,10 +2053,12 @@ const deserializeAws_restJson1DeleteDistributionConfigurationCommandError = asyn
|
|
|
2122
2053
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2123
2054
|
default:
|
|
2124
2055
|
const parsedBody = parsedOutput.body;
|
|
2056
|
+
const $metadata = deserializeMetadata(output);
|
|
2057
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2125
2058
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2126
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2059
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2127
2060
|
$fault: "client",
|
|
2128
|
-
$metadata
|
|
2061
|
+
$metadata,
|
|
2129
2062
|
});
|
|
2130
2063
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2131
2064
|
}
|
|
@@ -2155,8 +2088,7 @@ const deserializeAws_restJson1DeleteImageCommandError = async (output, context)
|
|
|
2155
2088
|
body: await parseBody(output.body, context),
|
|
2156
2089
|
};
|
|
2157
2090
|
let response;
|
|
2158
|
-
|
|
2159
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2091
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2160
2092
|
switch (errorCode) {
|
|
2161
2093
|
case "CallRateLimitExceededException":
|
|
2162
2094
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2181,10 +2113,12 @@ const deserializeAws_restJson1DeleteImageCommandError = async (output, context)
|
|
|
2181
2113
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2182
2114
|
default:
|
|
2183
2115
|
const parsedBody = parsedOutput.body;
|
|
2116
|
+
const $metadata = deserializeMetadata(output);
|
|
2117
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2184
2118
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2185
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2119
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2186
2120
|
$fault: "client",
|
|
2187
|
-
$metadata
|
|
2121
|
+
$metadata,
|
|
2188
2122
|
});
|
|
2189
2123
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2190
2124
|
}
|
|
@@ -2214,8 +2148,7 @@ const deserializeAws_restJson1DeleteImagePipelineCommandError = async (output, c
|
|
|
2214
2148
|
body: await parseBody(output.body, context),
|
|
2215
2149
|
};
|
|
2216
2150
|
let response;
|
|
2217
|
-
|
|
2218
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2219
2152
|
switch (errorCode) {
|
|
2220
2153
|
case "CallRateLimitExceededException":
|
|
2221
2154
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2240,10 +2173,12 @@ const deserializeAws_restJson1DeleteImagePipelineCommandError = async (output, c
|
|
|
2240
2173
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2241
2174
|
default:
|
|
2242
2175
|
const parsedBody = parsedOutput.body;
|
|
2176
|
+
const $metadata = deserializeMetadata(output);
|
|
2177
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2243
2178
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2244
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2179
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2245
2180
|
$fault: "client",
|
|
2246
|
-
$metadata
|
|
2181
|
+
$metadata,
|
|
2247
2182
|
});
|
|
2248
2183
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2249
2184
|
}
|
|
@@ -2273,8 +2208,7 @@ const deserializeAws_restJson1DeleteImageRecipeCommandError = async (output, con
|
|
|
2273
2208
|
body: await parseBody(output.body, context),
|
|
2274
2209
|
};
|
|
2275
2210
|
let response;
|
|
2276
|
-
|
|
2277
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2211
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
2212
|
switch (errorCode) {
|
|
2279
2213
|
case "CallRateLimitExceededException":
|
|
2280
2214
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2299,10 +2233,12 @@ const deserializeAws_restJson1DeleteImageRecipeCommandError = async (output, con
|
|
|
2299
2233
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2300
2234
|
default:
|
|
2301
2235
|
const parsedBody = parsedOutput.body;
|
|
2236
|
+
const $metadata = deserializeMetadata(output);
|
|
2237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2302
2238
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2303
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2304
2240
|
$fault: "client",
|
|
2305
|
-
$metadata
|
|
2241
|
+
$metadata,
|
|
2306
2242
|
});
|
|
2307
2243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2308
2244
|
}
|
|
@@ -2332,8 +2268,7 @@ const deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = as
|
|
|
2332
2268
|
body: await parseBody(output.body, context),
|
|
2333
2269
|
};
|
|
2334
2270
|
let response;
|
|
2335
|
-
|
|
2336
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2271
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2337
2272
|
switch (errorCode) {
|
|
2338
2273
|
case "CallRateLimitExceededException":
|
|
2339
2274
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2358,10 +2293,12 @@ const deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = as
|
|
|
2358
2293
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2359
2294
|
default:
|
|
2360
2295
|
const parsedBody = parsedOutput.body;
|
|
2296
|
+
const $metadata = deserializeMetadata(output);
|
|
2297
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2361
2298
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2362
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2299
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2363
2300
|
$fault: "client",
|
|
2364
|
-
$metadata
|
|
2301
|
+
$metadata,
|
|
2365
2302
|
});
|
|
2366
2303
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2367
2304
|
}
|
|
@@ -2391,8 +2328,7 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
2391
2328
|
body: await parseBody(output.body, context),
|
|
2392
2329
|
};
|
|
2393
2330
|
let response;
|
|
2394
|
-
|
|
2395
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2331
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2396
2332
|
switch (errorCode) {
|
|
2397
2333
|
case "CallRateLimitExceededException":
|
|
2398
2334
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2414,10 +2350,12 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
2414
2350
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2415
2351
|
default:
|
|
2416
2352
|
const parsedBody = parsedOutput.body;
|
|
2353
|
+
const $metadata = deserializeMetadata(output);
|
|
2354
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2417
2355
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2418
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2356
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2419
2357
|
$fault: "client",
|
|
2420
|
-
$metadata
|
|
2358
|
+
$metadata,
|
|
2421
2359
|
});
|
|
2422
2360
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2423
2361
|
}
|
|
@@ -2447,8 +2385,7 @@ const deserializeAws_restJson1GetComponentPolicyCommandError = async (output, co
|
|
|
2447
2385
|
body: await parseBody(output.body, context),
|
|
2448
2386
|
};
|
|
2449
2387
|
let response;
|
|
2450
|
-
|
|
2451
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2388
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2452
2389
|
switch (errorCode) {
|
|
2453
2390
|
case "CallRateLimitExceededException":
|
|
2454
2391
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2470,10 +2407,12 @@ const deserializeAws_restJson1GetComponentPolicyCommandError = async (output, co
|
|
|
2470
2407
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2471
2408
|
default:
|
|
2472
2409
|
const parsedBody = parsedOutput.body;
|
|
2410
|
+
const $metadata = deserializeMetadata(output);
|
|
2411
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2473
2412
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2474
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2413
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2475
2414
|
$fault: "client",
|
|
2476
|
-
$metadata
|
|
2415
|
+
$metadata,
|
|
2477
2416
|
});
|
|
2478
2417
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2479
2418
|
}
|
|
@@ -2503,8 +2442,7 @@ const deserializeAws_restJson1GetContainerRecipeCommandError = async (output, co
|
|
|
2503
2442
|
body: await parseBody(output.body, context),
|
|
2504
2443
|
};
|
|
2505
2444
|
let response;
|
|
2506
|
-
|
|
2507
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2445
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2508
2446
|
switch (errorCode) {
|
|
2509
2447
|
case "CallRateLimitExceededException":
|
|
2510
2448
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2526,10 +2464,12 @@ const deserializeAws_restJson1GetContainerRecipeCommandError = async (output, co
|
|
|
2526
2464
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2527
2465
|
default:
|
|
2528
2466
|
const parsedBody = parsedOutput.body;
|
|
2467
|
+
const $metadata = deserializeMetadata(output);
|
|
2468
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2529
2469
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2530
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2470
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2531
2471
|
$fault: "client",
|
|
2532
|
-
$metadata
|
|
2472
|
+
$metadata,
|
|
2533
2473
|
});
|
|
2534
2474
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2535
2475
|
}
|
|
@@ -2559,8 +2499,7 @@ const deserializeAws_restJson1GetContainerRecipePolicyCommandError = async (outp
|
|
|
2559
2499
|
body: await parseBody(output.body, context),
|
|
2560
2500
|
};
|
|
2561
2501
|
let response;
|
|
2562
|
-
|
|
2563
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2502
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2564
2503
|
switch (errorCode) {
|
|
2565
2504
|
case "CallRateLimitExceededException":
|
|
2566
2505
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2582,10 +2521,12 @@ const deserializeAws_restJson1GetContainerRecipePolicyCommandError = async (outp
|
|
|
2582
2521
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2583
2522
|
default:
|
|
2584
2523
|
const parsedBody = parsedOutput.body;
|
|
2524
|
+
const $metadata = deserializeMetadata(output);
|
|
2525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2585
2526
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2586
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2587
2528
|
$fault: "client",
|
|
2588
|
-
$metadata
|
|
2529
|
+
$metadata,
|
|
2589
2530
|
});
|
|
2590
2531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2591
2532
|
}
|
|
@@ -2615,8 +2556,7 @@ const deserializeAws_restJson1GetDistributionConfigurationCommandError = async (
|
|
|
2615
2556
|
body: await parseBody(output.body, context),
|
|
2616
2557
|
};
|
|
2617
2558
|
let response;
|
|
2618
|
-
|
|
2619
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2559
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2620
2560
|
switch (errorCode) {
|
|
2621
2561
|
case "CallRateLimitExceededException":
|
|
2622
2562
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2638,10 +2578,12 @@ const deserializeAws_restJson1GetDistributionConfigurationCommandError = async (
|
|
|
2638
2578
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2639
2579
|
default:
|
|
2640
2580
|
const parsedBody = parsedOutput.body;
|
|
2581
|
+
const $metadata = deserializeMetadata(output);
|
|
2582
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2641
2583
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2642
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2584
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2643
2585
|
$fault: "client",
|
|
2644
|
-
$metadata
|
|
2586
|
+
$metadata,
|
|
2645
2587
|
});
|
|
2646
2588
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2647
2589
|
}
|
|
@@ -2671,8 +2613,7 @@ const deserializeAws_restJson1GetImageCommandError = async (output, context) =>
|
|
|
2671
2613
|
body: await parseBody(output.body, context),
|
|
2672
2614
|
};
|
|
2673
2615
|
let response;
|
|
2674
|
-
|
|
2675
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2616
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2676
2617
|
switch (errorCode) {
|
|
2677
2618
|
case "CallRateLimitExceededException":
|
|
2678
2619
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2694,10 +2635,12 @@ const deserializeAws_restJson1GetImageCommandError = async (output, context) =>
|
|
|
2694
2635
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2695
2636
|
default:
|
|
2696
2637
|
const parsedBody = parsedOutput.body;
|
|
2638
|
+
const $metadata = deserializeMetadata(output);
|
|
2639
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2697
2640
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2698
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2641
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2699
2642
|
$fault: "client",
|
|
2700
|
-
$metadata
|
|
2643
|
+
$metadata,
|
|
2701
2644
|
});
|
|
2702
2645
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2703
2646
|
}
|
|
@@ -2727,8 +2670,7 @@ const deserializeAws_restJson1GetImagePipelineCommandError = async (output, cont
|
|
|
2727
2670
|
body: await parseBody(output.body, context),
|
|
2728
2671
|
};
|
|
2729
2672
|
let response;
|
|
2730
|
-
|
|
2731
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2673
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2732
2674
|
switch (errorCode) {
|
|
2733
2675
|
case "CallRateLimitExceededException":
|
|
2734
2676
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2750,10 +2692,12 @@ const deserializeAws_restJson1GetImagePipelineCommandError = async (output, cont
|
|
|
2750
2692
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2751
2693
|
default:
|
|
2752
2694
|
const parsedBody = parsedOutput.body;
|
|
2695
|
+
const $metadata = deserializeMetadata(output);
|
|
2696
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2753
2697
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2754
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2698
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2755
2699
|
$fault: "client",
|
|
2756
|
-
$metadata
|
|
2700
|
+
$metadata,
|
|
2757
2701
|
});
|
|
2758
2702
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2759
2703
|
}
|
|
@@ -2783,8 +2727,7 @@ const deserializeAws_restJson1GetImagePolicyCommandError = async (output, contex
|
|
|
2783
2727
|
body: await parseBody(output.body, context),
|
|
2784
2728
|
};
|
|
2785
2729
|
let response;
|
|
2786
|
-
|
|
2787
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2730
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2788
2731
|
switch (errorCode) {
|
|
2789
2732
|
case "CallRateLimitExceededException":
|
|
2790
2733
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2806,10 +2749,12 @@ const deserializeAws_restJson1GetImagePolicyCommandError = async (output, contex
|
|
|
2806
2749
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2807
2750
|
default:
|
|
2808
2751
|
const parsedBody = parsedOutput.body;
|
|
2752
|
+
const $metadata = deserializeMetadata(output);
|
|
2753
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2809
2754
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2810
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2755
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2811
2756
|
$fault: "client",
|
|
2812
|
-
$metadata
|
|
2757
|
+
$metadata,
|
|
2813
2758
|
});
|
|
2814
2759
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2815
2760
|
}
|
|
@@ -2839,8 +2784,7 @@ const deserializeAws_restJson1GetImageRecipeCommandError = async (output, contex
|
|
|
2839
2784
|
body: await parseBody(output.body, context),
|
|
2840
2785
|
};
|
|
2841
2786
|
let response;
|
|
2842
|
-
|
|
2843
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2787
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
2788
|
switch (errorCode) {
|
|
2845
2789
|
case "CallRateLimitExceededException":
|
|
2846
2790
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2862,10 +2806,12 @@ const deserializeAws_restJson1GetImageRecipeCommandError = async (output, contex
|
|
|
2862
2806
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2863
2807
|
default:
|
|
2864
2808
|
const parsedBody = parsedOutput.body;
|
|
2809
|
+
const $metadata = deserializeMetadata(output);
|
|
2810
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2865
2811
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2866
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2812
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2867
2813
|
$fault: "client",
|
|
2868
|
-
$metadata
|
|
2814
|
+
$metadata,
|
|
2869
2815
|
});
|
|
2870
2816
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2871
2817
|
}
|
|
@@ -2895,8 +2841,7 @@ const deserializeAws_restJson1GetImageRecipePolicyCommandError = async (output,
|
|
|
2895
2841
|
body: await parseBody(output.body, context),
|
|
2896
2842
|
};
|
|
2897
2843
|
let response;
|
|
2898
|
-
|
|
2899
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2844
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2900
2845
|
switch (errorCode) {
|
|
2901
2846
|
case "CallRateLimitExceededException":
|
|
2902
2847
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2918,10 +2863,12 @@ const deserializeAws_restJson1GetImageRecipePolicyCommandError = async (output,
|
|
|
2918
2863
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2919
2864
|
default:
|
|
2920
2865
|
const parsedBody = parsedOutput.body;
|
|
2866
|
+
const $metadata = deserializeMetadata(output);
|
|
2867
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2921
2868
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2922
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2869
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2923
2870
|
$fault: "client",
|
|
2924
|
-
$metadata
|
|
2871
|
+
$metadata,
|
|
2925
2872
|
});
|
|
2926
2873
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2927
2874
|
}
|
|
@@ -2951,8 +2898,7 @@ const deserializeAws_restJson1GetInfrastructureConfigurationCommandError = async
|
|
|
2951
2898
|
body: await parseBody(output.body, context),
|
|
2952
2899
|
};
|
|
2953
2900
|
let response;
|
|
2954
|
-
|
|
2955
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2901
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2956
2902
|
switch (errorCode) {
|
|
2957
2903
|
case "CallRateLimitExceededException":
|
|
2958
2904
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -2974,10 +2920,12 @@ const deserializeAws_restJson1GetInfrastructureConfigurationCommandError = async
|
|
|
2974
2920
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2975
2921
|
default:
|
|
2976
2922
|
const parsedBody = parsedOutput.body;
|
|
2923
|
+
const $metadata = deserializeMetadata(output);
|
|
2924
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
2977
2925
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
2978
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2926
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
2979
2927
|
$fault: "client",
|
|
2980
|
-
$metadata
|
|
2928
|
+
$metadata,
|
|
2981
2929
|
});
|
|
2982
2930
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2983
2931
|
}
|
|
@@ -3011,8 +2959,7 @@ const deserializeAws_restJson1ImportComponentCommandError = async (output, conte
|
|
|
3011
2959
|
body: await parseBody(output.body, context),
|
|
3012
2960
|
};
|
|
3013
2961
|
let response;
|
|
3014
|
-
|
|
3015
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2962
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3016
2963
|
switch (errorCode) {
|
|
3017
2964
|
case "CallRateLimitExceededException":
|
|
3018
2965
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3046,10 +2993,12 @@ const deserializeAws_restJson1ImportComponentCommandError = async (output, conte
|
|
|
3046
2993
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3047
2994
|
default:
|
|
3048
2995
|
const parsedBody = parsedOutput.body;
|
|
2996
|
+
const $metadata = deserializeMetadata(output);
|
|
2997
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3049
2998
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3050
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2999
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3051
3000
|
$fault: "client",
|
|
3052
|
-
$metadata
|
|
3001
|
+
$metadata,
|
|
3053
3002
|
});
|
|
3054
3003
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3055
3004
|
}
|
|
@@ -3083,8 +3032,7 @@ const deserializeAws_restJson1ImportVmImageCommandError = async (output, context
|
|
|
3083
3032
|
body: await parseBody(output.body, context),
|
|
3084
3033
|
};
|
|
3085
3034
|
let response;
|
|
3086
|
-
|
|
3087
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3035
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3088
3036
|
switch (errorCode) {
|
|
3089
3037
|
case "ClientException":
|
|
3090
3038
|
case "com.amazonaws.imagebuilder#ClientException":
|
|
@@ -3097,10 +3045,12 @@ const deserializeAws_restJson1ImportVmImageCommandError = async (output, context
|
|
|
3097
3045
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3098
3046
|
default:
|
|
3099
3047
|
const parsedBody = parsedOutput.body;
|
|
3048
|
+
const $metadata = deserializeMetadata(output);
|
|
3049
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3100
3050
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3101
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3051
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3102
3052
|
$fault: "client",
|
|
3103
|
-
$metadata
|
|
3053
|
+
$metadata,
|
|
3104
3054
|
});
|
|
3105
3055
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3106
3056
|
}
|
|
@@ -3134,8 +3084,7 @@ const deserializeAws_restJson1ListComponentBuildVersionsCommandError = async (ou
|
|
|
3134
3084
|
body: await parseBody(output.body, context),
|
|
3135
3085
|
};
|
|
3136
3086
|
let response;
|
|
3137
|
-
|
|
3138
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3087
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3139
3088
|
switch (errorCode) {
|
|
3140
3089
|
case "CallRateLimitExceededException":
|
|
3141
3090
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3160,10 +3109,12 @@ const deserializeAws_restJson1ListComponentBuildVersionsCommandError = async (ou
|
|
|
3160
3109
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3161
3110
|
default:
|
|
3162
3111
|
const parsedBody = parsedOutput.body;
|
|
3112
|
+
const $metadata = deserializeMetadata(output);
|
|
3113
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3163
3114
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3164
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3115
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3165
3116
|
$fault: "client",
|
|
3166
|
-
$metadata
|
|
3117
|
+
$metadata,
|
|
3167
3118
|
});
|
|
3168
3119
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3169
3120
|
}
|
|
@@ -3197,8 +3148,7 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
3197
3148
|
body: await parseBody(output.body, context),
|
|
3198
3149
|
};
|
|
3199
3150
|
let response;
|
|
3200
|
-
|
|
3201
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3151
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3202
3152
|
switch (errorCode) {
|
|
3203
3153
|
case "CallRateLimitExceededException":
|
|
3204
3154
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3223,10 +3173,12 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
3223
3173
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3224
3174
|
default:
|
|
3225
3175
|
const parsedBody = parsedOutput.body;
|
|
3176
|
+
const $metadata = deserializeMetadata(output);
|
|
3177
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3226
3178
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3227
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3179
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3228
3180
|
$fault: "client",
|
|
3229
|
-
$metadata
|
|
3181
|
+
$metadata,
|
|
3230
3182
|
});
|
|
3231
3183
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3232
3184
|
}
|
|
@@ -3260,8 +3212,7 @@ const deserializeAws_restJson1ListContainerRecipesCommandError = async (output,
|
|
|
3260
3212
|
body: await parseBody(output.body, context),
|
|
3261
3213
|
};
|
|
3262
3214
|
let response;
|
|
3263
|
-
|
|
3264
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3215
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3265
3216
|
switch (errorCode) {
|
|
3266
3217
|
case "CallRateLimitExceededException":
|
|
3267
3218
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3286,10 +3237,12 @@ const deserializeAws_restJson1ListContainerRecipesCommandError = async (output,
|
|
|
3286
3237
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3287
3238
|
default:
|
|
3288
3239
|
const parsedBody = parsedOutput.body;
|
|
3240
|
+
const $metadata = deserializeMetadata(output);
|
|
3241
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3289
3242
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3290
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3243
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3291
3244
|
$fault: "client",
|
|
3292
|
-
$metadata
|
|
3245
|
+
$metadata,
|
|
3293
3246
|
});
|
|
3294
3247
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3295
3248
|
}
|
|
@@ -3323,8 +3276,7 @@ const deserializeAws_restJson1ListDistributionConfigurationsCommandError = async
|
|
|
3323
3276
|
body: await parseBody(output.body, context),
|
|
3324
3277
|
};
|
|
3325
3278
|
let response;
|
|
3326
|
-
|
|
3327
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3279
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3328
3280
|
switch (errorCode) {
|
|
3329
3281
|
case "CallRateLimitExceededException":
|
|
3330
3282
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3349,10 +3301,12 @@ const deserializeAws_restJson1ListDistributionConfigurationsCommandError = async
|
|
|
3349
3301
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3350
3302
|
default:
|
|
3351
3303
|
const parsedBody = parsedOutput.body;
|
|
3304
|
+
const $metadata = deserializeMetadata(output);
|
|
3305
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3352
3306
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3353
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3307
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3354
3308
|
$fault: "client",
|
|
3355
|
-
$metadata
|
|
3309
|
+
$metadata,
|
|
3356
3310
|
});
|
|
3357
3311
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3358
3312
|
}
|
|
@@ -3386,8 +3340,7 @@ const deserializeAws_restJson1ListImageBuildVersionsCommandError = async (output
|
|
|
3386
3340
|
body: await parseBody(output.body, context),
|
|
3387
3341
|
};
|
|
3388
3342
|
let response;
|
|
3389
|
-
|
|
3390
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3343
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3391
3344
|
switch (errorCode) {
|
|
3392
3345
|
case "CallRateLimitExceededException":
|
|
3393
3346
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3412,10 +3365,12 @@ const deserializeAws_restJson1ListImageBuildVersionsCommandError = async (output
|
|
|
3412
3365
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3413
3366
|
default:
|
|
3414
3367
|
const parsedBody = parsedOutput.body;
|
|
3368
|
+
const $metadata = deserializeMetadata(output);
|
|
3369
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3415
3370
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3416
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3371
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3417
3372
|
$fault: "client",
|
|
3418
|
-
$metadata
|
|
3373
|
+
$metadata,
|
|
3419
3374
|
});
|
|
3420
3375
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3421
3376
|
}
|
|
@@ -3449,8 +3404,7 @@ const deserializeAws_restJson1ListImagePackagesCommandError = async (output, con
|
|
|
3449
3404
|
body: await parseBody(output.body, context),
|
|
3450
3405
|
};
|
|
3451
3406
|
let response;
|
|
3452
|
-
|
|
3453
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3454
3408
|
switch (errorCode) {
|
|
3455
3409
|
case "CallRateLimitExceededException":
|
|
3456
3410
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3478,10 +3432,12 @@ const deserializeAws_restJson1ListImagePackagesCommandError = async (output, con
|
|
|
3478
3432
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3479
3433
|
default:
|
|
3480
3434
|
const parsedBody = parsedOutput.body;
|
|
3435
|
+
const $metadata = deserializeMetadata(output);
|
|
3436
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3481
3437
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3482
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3438
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3483
3439
|
$fault: "client",
|
|
3484
|
-
$metadata
|
|
3440
|
+
$metadata,
|
|
3485
3441
|
});
|
|
3486
3442
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3487
3443
|
}
|
|
@@ -3515,8 +3471,7 @@ const deserializeAws_restJson1ListImagePipelineImagesCommandError = async (outpu
|
|
|
3515
3471
|
body: await parseBody(output.body, context),
|
|
3516
3472
|
};
|
|
3517
3473
|
let response;
|
|
3518
|
-
|
|
3519
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3474
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3520
3475
|
switch (errorCode) {
|
|
3521
3476
|
case "CallRateLimitExceededException":
|
|
3522
3477
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3544,10 +3499,12 @@ const deserializeAws_restJson1ListImagePipelineImagesCommandError = async (outpu
|
|
|
3544
3499
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3545
3500
|
default:
|
|
3546
3501
|
const parsedBody = parsedOutput.body;
|
|
3502
|
+
const $metadata = deserializeMetadata(output);
|
|
3503
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3547
3504
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3548
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3505
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3549
3506
|
$fault: "client",
|
|
3550
|
-
$metadata
|
|
3507
|
+
$metadata,
|
|
3551
3508
|
});
|
|
3552
3509
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3553
3510
|
}
|
|
@@ -3581,8 +3538,7 @@ const deserializeAws_restJson1ListImagePipelinesCommandError = async (output, co
|
|
|
3581
3538
|
body: await parseBody(output.body, context),
|
|
3582
3539
|
};
|
|
3583
3540
|
let response;
|
|
3584
|
-
|
|
3585
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3541
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3586
3542
|
switch (errorCode) {
|
|
3587
3543
|
case "CallRateLimitExceededException":
|
|
3588
3544
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3607,10 +3563,12 @@ const deserializeAws_restJson1ListImagePipelinesCommandError = async (output, co
|
|
|
3607
3563
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3608
3564
|
default:
|
|
3609
3565
|
const parsedBody = parsedOutput.body;
|
|
3566
|
+
const $metadata = deserializeMetadata(output);
|
|
3567
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3610
3568
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3611
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3569
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3612
3570
|
$fault: "client",
|
|
3613
|
-
$metadata
|
|
3571
|
+
$metadata,
|
|
3614
3572
|
});
|
|
3615
3573
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3616
3574
|
}
|
|
@@ -3644,8 +3602,7 @@ const deserializeAws_restJson1ListImageRecipesCommandError = async (output, cont
|
|
|
3644
3602
|
body: await parseBody(output.body, context),
|
|
3645
3603
|
};
|
|
3646
3604
|
let response;
|
|
3647
|
-
|
|
3648
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3605
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3649
3606
|
switch (errorCode) {
|
|
3650
3607
|
case "CallRateLimitExceededException":
|
|
3651
3608
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3670,10 +3627,12 @@ const deserializeAws_restJson1ListImageRecipesCommandError = async (output, cont
|
|
|
3670
3627
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3671
3628
|
default:
|
|
3672
3629
|
const parsedBody = parsedOutput.body;
|
|
3630
|
+
const $metadata = deserializeMetadata(output);
|
|
3631
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3673
3632
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3674
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3633
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3675
3634
|
$fault: "client",
|
|
3676
|
-
$metadata
|
|
3635
|
+
$metadata,
|
|
3677
3636
|
});
|
|
3678
3637
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3679
3638
|
}
|
|
@@ -3707,8 +3666,7 @@ const deserializeAws_restJson1ListImagesCommandError = async (output, context) =
|
|
|
3707
3666
|
body: await parseBody(output.body, context),
|
|
3708
3667
|
};
|
|
3709
3668
|
let response;
|
|
3710
|
-
|
|
3711
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3669
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3712
3670
|
switch (errorCode) {
|
|
3713
3671
|
case "CallRateLimitExceededException":
|
|
3714
3672
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3733,10 +3691,12 @@ const deserializeAws_restJson1ListImagesCommandError = async (output, context) =
|
|
|
3733
3691
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3734
3692
|
default:
|
|
3735
3693
|
const parsedBody = parsedOutput.body;
|
|
3694
|
+
const $metadata = deserializeMetadata(output);
|
|
3695
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3736
3696
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3737
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3697
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3738
3698
|
$fault: "client",
|
|
3739
|
-
$metadata
|
|
3699
|
+
$metadata,
|
|
3740
3700
|
});
|
|
3741
3701
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3742
3702
|
}
|
|
@@ -3771,8 +3731,7 @@ const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = asy
|
|
|
3771
3731
|
body: await parseBody(output.body, context),
|
|
3772
3732
|
};
|
|
3773
3733
|
let response;
|
|
3774
|
-
|
|
3775
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3734
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3776
3735
|
switch (errorCode) {
|
|
3777
3736
|
case "CallRateLimitExceededException":
|
|
3778
3737
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3797,10 +3756,12 @@ const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = asy
|
|
|
3797
3756
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3798
3757
|
default:
|
|
3799
3758
|
const parsedBody = parsedOutput.body;
|
|
3759
|
+
const $metadata = deserializeMetadata(output);
|
|
3760
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3800
3761
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3801
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3762
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3802
3763
|
$fault: "client",
|
|
3803
|
-
$metadata
|
|
3764
|
+
$metadata,
|
|
3804
3765
|
});
|
|
3805
3766
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3806
3767
|
}
|
|
@@ -3826,8 +3787,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3826
3787
|
body: await parseBody(output.body, context),
|
|
3827
3788
|
};
|
|
3828
3789
|
let response;
|
|
3829
|
-
|
|
3830
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3790
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3831
3791
|
switch (errorCode) {
|
|
3832
3792
|
case "InvalidParameterException":
|
|
3833
3793
|
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
@@ -3840,10 +3800,12 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
3840
3800
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
3841
3801
|
default:
|
|
3842
3802
|
const parsedBody = parsedOutput.body;
|
|
3803
|
+
const $metadata = deserializeMetadata(output);
|
|
3804
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3843
3805
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3844
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3806
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3845
3807
|
$fault: "client",
|
|
3846
|
-
$metadata
|
|
3808
|
+
$metadata,
|
|
3847
3809
|
});
|
|
3848
3810
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3849
3811
|
}
|
|
@@ -3873,8 +3835,7 @@ const deserializeAws_restJson1PutComponentPolicyCommandError = async (output, co
|
|
|
3873
3835
|
body: await parseBody(output.body, context),
|
|
3874
3836
|
};
|
|
3875
3837
|
let response;
|
|
3876
|
-
|
|
3877
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3838
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3878
3839
|
switch (errorCode) {
|
|
3879
3840
|
case "CallRateLimitExceededException":
|
|
3880
3841
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3902,10 +3863,12 @@ const deserializeAws_restJson1PutComponentPolicyCommandError = async (output, co
|
|
|
3902
3863
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3903
3864
|
default:
|
|
3904
3865
|
const parsedBody = parsedOutput.body;
|
|
3866
|
+
const $metadata = deserializeMetadata(output);
|
|
3867
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3905
3868
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3906
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3869
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3907
3870
|
$fault: "client",
|
|
3908
|
-
$metadata
|
|
3871
|
+
$metadata,
|
|
3909
3872
|
});
|
|
3910
3873
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3911
3874
|
}
|
|
@@ -3935,8 +3898,7 @@ const deserializeAws_restJson1PutContainerRecipePolicyCommandError = async (outp
|
|
|
3935
3898
|
body: await parseBody(output.body, context),
|
|
3936
3899
|
};
|
|
3937
3900
|
let response;
|
|
3938
|
-
|
|
3939
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3901
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3940
3902
|
switch (errorCode) {
|
|
3941
3903
|
case "CallRateLimitExceededException":
|
|
3942
3904
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -3964,10 +3926,12 @@ const deserializeAws_restJson1PutContainerRecipePolicyCommandError = async (outp
|
|
|
3964
3926
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3965
3927
|
default:
|
|
3966
3928
|
const parsedBody = parsedOutput.body;
|
|
3929
|
+
const $metadata = deserializeMetadata(output);
|
|
3930
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
3967
3931
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
3968
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3932
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
3969
3933
|
$fault: "client",
|
|
3970
|
-
$metadata
|
|
3934
|
+
$metadata,
|
|
3971
3935
|
});
|
|
3972
3936
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
3973
3937
|
}
|
|
@@ -3997,8 +3961,7 @@ const deserializeAws_restJson1PutImagePolicyCommandError = async (output, contex
|
|
|
3997
3961
|
body: await parseBody(output.body, context),
|
|
3998
3962
|
};
|
|
3999
3963
|
let response;
|
|
4000
|
-
|
|
4001
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3964
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4002
3965
|
switch (errorCode) {
|
|
4003
3966
|
case "CallRateLimitExceededException":
|
|
4004
3967
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -4026,10 +3989,12 @@ const deserializeAws_restJson1PutImagePolicyCommandError = async (output, contex
|
|
|
4026
3989
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4027
3990
|
default:
|
|
4028
3991
|
const parsedBody = parsedOutput.body;
|
|
3992
|
+
const $metadata = deserializeMetadata(output);
|
|
3993
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4029
3994
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
4030
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3995
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4031
3996
|
$fault: "client",
|
|
4032
|
-
$metadata
|
|
3997
|
+
$metadata,
|
|
4033
3998
|
});
|
|
4034
3999
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4035
4000
|
}
|
|
@@ -4059,8 +4024,7 @@ const deserializeAws_restJson1PutImageRecipePolicyCommandError = async (output,
|
|
|
4059
4024
|
body: await parseBody(output.body, context),
|
|
4060
4025
|
};
|
|
4061
4026
|
let response;
|
|
4062
|
-
|
|
4063
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4027
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4064
4028
|
switch (errorCode) {
|
|
4065
4029
|
case "CallRateLimitExceededException":
|
|
4066
4030
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -4088,10 +4052,12 @@ const deserializeAws_restJson1PutImageRecipePolicyCommandError = async (output,
|
|
|
4088
4052
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4089
4053
|
default:
|
|
4090
4054
|
const parsedBody = parsedOutput.body;
|
|
4055
|
+
const $metadata = deserializeMetadata(output);
|
|
4056
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4091
4057
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
4092
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4058
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4093
4059
|
$fault: "client",
|
|
4094
|
-
$metadata
|
|
4060
|
+
$metadata,
|
|
4095
4061
|
});
|
|
4096
4062
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4097
4063
|
}
|
|
@@ -4125,8 +4091,7 @@ const deserializeAws_restJson1StartImagePipelineExecutionCommandError = async (o
|
|
|
4125
4091
|
body: await parseBody(output.body, context),
|
|
4126
4092
|
};
|
|
4127
4093
|
let response;
|
|
4128
|
-
|
|
4129
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4094
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4130
4095
|
switch (errorCode) {
|
|
4131
4096
|
case "CallRateLimitExceededException":
|
|
4132
4097
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -4157,10 +4122,12 @@ const deserializeAws_restJson1StartImagePipelineExecutionCommandError = async (o
|
|
|
4157
4122
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4158
4123
|
default:
|
|
4159
4124
|
const parsedBody = parsedOutput.body;
|
|
4125
|
+
const $metadata = deserializeMetadata(output);
|
|
4126
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4160
4127
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
4161
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4128
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4162
4129
|
$fault: "client",
|
|
4163
|
-
$metadata
|
|
4130
|
+
$metadata,
|
|
4164
4131
|
});
|
|
4165
4132
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4166
4133
|
}
|
|
@@ -4182,8 +4149,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4182
4149
|
body: await parseBody(output.body, context),
|
|
4183
4150
|
};
|
|
4184
4151
|
let response;
|
|
4185
|
-
|
|
4186
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4152
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4187
4153
|
switch (errorCode) {
|
|
4188
4154
|
case "InvalidParameterException":
|
|
4189
4155
|
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
@@ -4196,10 +4162,12 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
4196
4162
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
4197
4163
|
default:
|
|
4198
4164
|
const parsedBody = parsedOutput.body;
|
|
4165
|
+
const $metadata = deserializeMetadata(output);
|
|
4166
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4199
4167
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
4200
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4168
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4201
4169
|
$fault: "client",
|
|
4202
|
-
$metadata
|
|
4170
|
+
$metadata,
|
|
4203
4171
|
});
|
|
4204
4172
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4205
4173
|
}
|
|
@@ -4221,8 +4189,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4221
4189
|
body: await parseBody(output.body, context),
|
|
4222
4190
|
};
|
|
4223
4191
|
let response;
|
|
4224
|
-
|
|
4225
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4192
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4226
4193
|
switch (errorCode) {
|
|
4227
4194
|
case "InvalidParameterException":
|
|
4228
4195
|
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
@@ -4235,10 +4202,12 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
4235
4202
|
throw await deserializeAws_restJson1ServiceExceptionResponse(parsedOutput, context);
|
|
4236
4203
|
default:
|
|
4237
4204
|
const parsedBody = parsedOutput.body;
|
|
4205
|
+
const $metadata = deserializeMetadata(output);
|
|
4206
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4238
4207
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
4239
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4208
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4240
4209
|
$fault: "client",
|
|
4241
|
-
$metadata
|
|
4210
|
+
$metadata,
|
|
4242
4211
|
});
|
|
4243
4212
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4244
4213
|
}
|
|
@@ -4272,8 +4241,7 @@ const deserializeAws_restJson1UpdateDistributionConfigurationCommandError = asyn
|
|
|
4272
4241
|
body: await parseBody(output.body, context),
|
|
4273
4242
|
};
|
|
4274
4243
|
let response;
|
|
4275
|
-
|
|
4276
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4244
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4277
4245
|
switch (errorCode) {
|
|
4278
4246
|
case "CallRateLimitExceededException":
|
|
4279
4247
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -4304,10 +4272,12 @@ const deserializeAws_restJson1UpdateDistributionConfigurationCommandError = asyn
|
|
|
4304
4272
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4305
4273
|
default:
|
|
4306
4274
|
const parsedBody = parsedOutput.body;
|
|
4275
|
+
const $metadata = deserializeMetadata(output);
|
|
4276
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4307
4277
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
4308
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4278
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4309
4279
|
$fault: "client",
|
|
4310
|
-
$metadata
|
|
4280
|
+
$metadata,
|
|
4311
4281
|
});
|
|
4312
4282
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4313
4283
|
}
|
|
@@ -4341,8 +4311,7 @@ const deserializeAws_restJson1UpdateImagePipelineCommandError = async (output, c
|
|
|
4341
4311
|
body: await parseBody(output.body, context),
|
|
4342
4312
|
};
|
|
4343
4313
|
let response;
|
|
4344
|
-
|
|
4345
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4314
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4346
4315
|
switch (errorCode) {
|
|
4347
4316
|
case "CallRateLimitExceededException":
|
|
4348
4317
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -4370,10 +4339,12 @@ const deserializeAws_restJson1UpdateImagePipelineCommandError = async (output, c
|
|
|
4370
4339
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4371
4340
|
default:
|
|
4372
4341
|
const parsedBody = parsedOutput.body;
|
|
4342
|
+
const $metadata = deserializeMetadata(output);
|
|
4343
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4373
4344
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
4374
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4345
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4375
4346
|
$fault: "client",
|
|
4376
|
-
$metadata
|
|
4347
|
+
$metadata,
|
|
4377
4348
|
});
|
|
4378
4349
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4379
4350
|
}
|
|
@@ -4407,8 +4378,7 @@ const deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = as
|
|
|
4407
4378
|
body: await parseBody(output.body, context),
|
|
4408
4379
|
};
|
|
4409
4380
|
let response;
|
|
4410
|
-
|
|
4411
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4381
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4412
4382
|
switch (errorCode) {
|
|
4413
4383
|
case "CallRateLimitExceededException":
|
|
4414
4384
|
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
@@ -4436,10 +4406,12 @@ const deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = as
|
|
|
4436
4406
|
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4437
4407
|
default:
|
|
4438
4408
|
const parsedBody = parsedOutput.body;
|
|
4409
|
+
const $metadata = deserializeMetadata(output);
|
|
4410
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
4439
4411
|
response = new ImagebuilderServiceException_1.ImagebuilderServiceException({
|
|
4440
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4412
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
4441
4413
|
$fault: "client",
|
|
4442
|
-
$metadata
|
|
4414
|
+
$metadata,
|
|
4443
4415
|
});
|
|
4444
4416
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
4445
4417
|
}
|
|
@@ -4660,36 +4632,30 @@ const serializeAws_restJson1AccountList = (input, context) => {
|
|
|
4660
4632
|
};
|
|
4661
4633
|
const serializeAws_restJson1AdditionalInstanceConfiguration = (input, context) => {
|
|
4662
4634
|
return {
|
|
4663
|
-
...(input.systemsManagerAgent
|
|
4664
|
-
input.systemsManagerAgent !== null && {
|
|
4635
|
+
...(input.systemsManagerAgent != null && {
|
|
4665
4636
|
systemsManagerAgent: serializeAws_restJson1SystemsManagerAgent(input.systemsManagerAgent, context),
|
|
4666
4637
|
}),
|
|
4667
|
-
...(input.userDataOverride
|
|
4668
|
-
input.userDataOverride !== null && { userDataOverride: input.userDataOverride }),
|
|
4638
|
+
...(input.userDataOverride != null && { userDataOverride: input.userDataOverride }),
|
|
4669
4639
|
};
|
|
4670
4640
|
};
|
|
4671
4641
|
const serializeAws_restJson1AmiDistributionConfiguration = (input, context) => {
|
|
4672
4642
|
return {
|
|
4673
|
-
...(input.amiTags
|
|
4674
|
-
|
|
4675
|
-
...(input.
|
|
4676
|
-
...(input.
|
|
4677
|
-
...(input.launchPermission !== undefined &&
|
|
4678
|
-
input.launchPermission !== null && {
|
|
4643
|
+
...(input.amiTags != null && { amiTags: serializeAws_restJson1TagMap(input.amiTags, context) }),
|
|
4644
|
+
...(input.description != null && { description: input.description }),
|
|
4645
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
4646
|
+
...(input.launchPermission != null && {
|
|
4679
4647
|
launchPermission: serializeAws_restJson1LaunchPermissionConfiguration(input.launchPermission, context),
|
|
4680
4648
|
}),
|
|
4681
|
-
...(input.name
|
|
4682
|
-
...(input.targetAccountIds
|
|
4683
|
-
input.targetAccountIds !== null && {
|
|
4649
|
+
...(input.name != null && { name: input.name }),
|
|
4650
|
+
...(input.targetAccountIds != null && {
|
|
4684
4651
|
targetAccountIds: serializeAws_restJson1AccountList(input.targetAccountIds, context),
|
|
4685
4652
|
}),
|
|
4686
4653
|
};
|
|
4687
4654
|
};
|
|
4688
4655
|
const serializeAws_restJson1ComponentConfiguration = (input, context) => {
|
|
4689
4656
|
return {
|
|
4690
|
-
...(input.componentArn
|
|
4691
|
-
...(input.parameters
|
|
4692
|
-
input.parameters !== null && {
|
|
4657
|
+
...(input.componentArn != null && { componentArn: input.componentArn }),
|
|
4658
|
+
...(input.parameters != null && {
|
|
4693
4659
|
parameters: serializeAws_restJson1ComponentParameterList(input.parameters, context),
|
|
4694
4660
|
}),
|
|
4695
4661
|
};
|
|
@@ -4706,9 +4672,8 @@ const serializeAws_restJson1ComponentConfigurationList = (input, context) => {
|
|
|
4706
4672
|
};
|
|
4707
4673
|
const serializeAws_restJson1ComponentParameter = (input, context) => {
|
|
4708
4674
|
return {
|
|
4709
|
-
...(input.name
|
|
4710
|
-
...(input.value
|
|
4711
|
-
input.value !== null && { value: serializeAws_restJson1ComponentParameterValueList(input.value, context) }),
|
|
4675
|
+
...(input.name != null && { name: input.name }),
|
|
4676
|
+
...(input.value != null && { value: serializeAws_restJson1ComponentParameterValueList(input.value, context) }),
|
|
4712
4677
|
};
|
|
4713
4678
|
};
|
|
4714
4679
|
const serializeAws_restJson1ComponentParameterList = (input, context) => {
|
|
@@ -4733,42 +4698,34 @@ const serializeAws_restJson1ComponentParameterValueList = (input, context) => {
|
|
|
4733
4698
|
};
|
|
4734
4699
|
const serializeAws_restJson1ContainerDistributionConfiguration = (input, context) => {
|
|
4735
4700
|
return {
|
|
4736
|
-
...(input.containerTags
|
|
4737
|
-
input.containerTags !== null && {
|
|
4701
|
+
...(input.containerTags != null && {
|
|
4738
4702
|
containerTags: serializeAws_restJson1StringList(input.containerTags, context),
|
|
4739
4703
|
}),
|
|
4740
|
-
...(input.description
|
|
4741
|
-
...(input.targetRepository
|
|
4742
|
-
input.targetRepository !== null && {
|
|
4704
|
+
...(input.description != null && { description: input.description }),
|
|
4705
|
+
...(input.targetRepository != null && {
|
|
4743
4706
|
targetRepository: serializeAws_restJson1TargetContainerRepository(input.targetRepository, context),
|
|
4744
4707
|
}),
|
|
4745
4708
|
};
|
|
4746
4709
|
};
|
|
4747
4710
|
const serializeAws_restJson1Distribution = (input, context) => {
|
|
4748
4711
|
return {
|
|
4749
|
-
...(input.amiDistributionConfiguration
|
|
4750
|
-
input.amiDistributionConfiguration !== null && {
|
|
4712
|
+
...(input.amiDistributionConfiguration != null && {
|
|
4751
4713
|
amiDistributionConfiguration: serializeAws_restJson1AmiDistributionConfiguration(input.amiDistributionConfiguration, context),
|
|
4752
4714
|
}),
|
|
4753
|
-
...(input.containerDistributionConfiguration
|
|
4754
|
-
input.containerDistributionConfiguration !== null && {
|
|
4715
|
+
...(input.containerDistributionConfiguration != null && {
|
|
4755
4716
|
containerDistributionConfiguration: serializeAws_restJson1ContainerDistributionConfiguration(input.containerDistributionConfiguration, context),
|
|
4756
4717
|
}),
|
|
4757
|
-
...(input.fastLaunchConfigurations
|
|
4758
|
-
input.fastLaunchConfigurations !== null && {
|
|
4718
|
+
...(input.fastLaunchConfigurations != null && {
|
|
4759
4719
|
fastLaunchConfigurations: serializeAws_restJson1FastLaunchConfigurationList(input.fastLaunchConfigurations, context),
|
|
4760
4720
|
}),
|
|
4761
|
-
...(input.launchTemplateConfigurations
|
|
4762
|
-
input.launchTemplateConfigurations !== null && {
|
|
4721
|
+
...(input.launchTemplateConfigurations != null && {
|
|
4763
4722
|
launchTemplateConfigurations: serializeAws_restJson1LaunchTemplateConfigurationList(input.launchTemplateConfigurations, context),
|
|
4764
4723
|
}),
|
|
4765
|
-
...(input.licenseConfigurationArns
|
|
4766
|
-
input.licenseConfigurationArns !== null && {
|
|
4724
|
+
...(input.licenseConfigurationArns != null && {
|
|
4767
4725
|
licenseConfigurationArns: serializeAws_restJson1LicenseConfigurationArnList(input.licenseConfigurationArns, context),
|
|
4768
4726
|
}),
|
|
4769
|
-
...(input.region
|
|
4770
|
-
...(input.s3ExportConfiguration
|
|
4771
|
-
input.s3ExportConfiguration !== null && {
|
|
4727
|
+
...(input.region != null && { region: input.region }),
|
|
4728
|
+
...(input.s3ExportConfiguration != null && {
|
|
4772
4729
|
s3ExportConfiguration: serializeAws_restJson1S3ExportConfiguration(input.s3ExportConfiguration, context),
|
|
4773
4730
|
}),
|
|
4774
4731
|
};
|
|
@@ -4785,29 +4742,25 @@ const serializeAws_restJson1DistributionList = (input, context) => {
|
|
|
4785
4742
|
};
|
|
4786
4743
|
const serializeAws_restJson1EbsInstanceBlockDeviceSpecification = (input, context) => {
|
|
4787
4744
|
return {
|
|
4788
|
-
...(input.deleteOnTermination
|
|
4789
|
-
|
|
4790
|
-
...(input.
|
|
4791
|
-
...(input.
|
|
4792
|
-
...(input.
|
|
4793
|
-
...(input.
|
|
4794
|
-
...(input.
|
|
4795
|
-
...(input.
|
|
4796
|
-
...(input.volumeType !== undefined && input.volumeType !== null && { volumeType: input.volumeType }),
|
|
4745
|
+
...(input.deleteOnTermination != null && { deleteOnTermination: input.deleteOnTermination }),
|
|
4746
|
+
...(input.encrypted != null && { encrypted: input.encrypted }),
|
|
4747
|
+
...(input.iops != null && { iops: input.iops }),
|
|
4748
|
+
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
4749
|
+
...(input.snapshotId != null && { snapshotId: input.snapshotId }),
|
|
4750
|
+
...(input.throughput != null && { throughput: input.throughput }),
|
|
4751
|
+
...(input.volumeSize != null && { volumeSize: input.volumeSize }),
|
|
4752
|
+
...(input.volumeType != null && { volumeType: input.volumeType }),
|
|
4797
4753
|
};
|
|
4798
4754
|
};
|
|
4799
4755
|
const serializeAws_restJson1FastLaunchConfiguration = (input, context) => {
|
|
4800
4756
|
return {
|
|
4801
|
-
...(input.accountId
|
|
4802
|
-
...(input.enabled
|
|
4803
|
-
...(input.launchTemplate
|
|
4804
|
-
input.launchTemplate !== null && {
|
|
4757
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
4758
|
+
...(input.enabled != null && { enabled: input.enabled }),
|
|
4759
|
+
...(input.launchTemplate != null && {
|
|
4805
4760
|
launchTemplate: serializeAws_restJson1FastLaunchLaunchTemplateSpecification(input.launchTemplate, context),
|
|
4806
4761
|
}),
|
|
4807
|
-
...(input.maxParallelLaunches
|
|
4808
|
-
|
|
4809
|
-
...(input.snapshotConfiguration !== undefined &&
|
|
4810
|
-
input.snapshotConfiguration !== null && {
|
|
4762
|
+
...(input.maxParallelLaunches != null && { maxParallelLaunches: input.maxParallelLaunches }),
|
|
4763
|
+
...(input.snapshotConfiguration != null && {
|
|
4811
4764
|
snapshotConfiguration: serializeAws_restJson1FastLaunchSnapshotConfiguration(input.snapshotConfiguration, context),
|
|
4812
4765
|
}),
|
|
4813
4766
|
};
|
|
@@ -4824,25 +4777,20 @@ const serializeAws_restJson1FastLaunchConfigurationList = (input, context) => {
|
|
|
4824
4777
|
};
|
|
4825
4778
|
const serializeAws_restJson1FastLaunchLaunchTemplateSpecification = (input, context) => {
|
|
4826
4779
|
return {
|
|
4827
|
-
...(input.launchTemplateId
|
|
4828
|
-
|
|
4829
|
-
...(input.
|
|
4830
|
-
input.launchTemplateName !== null && { launchTemplateName: input.launchTemplateName }),
|
|
4831
|
-
...(input.launchTemplateVersion !== undefined &&
|
|
4832
|
-
input.launchTemplateVersion !== null && { launchTemplateVersion: input.launchTemplateVersion }),
|
|
4780
|
+
...(input.launchTemplateId != null && { launchTemplateId: input.launchTemplateId }),
|
|
4781
|
+
...(input.launchTemplateName != null && { launchTemplateName: input.launchTemplateName }),
|
|
4782
|
+
...(input.launchTemplateVersion != null && { launchTemplateVersion: input.launchTemplateVersion }),
|
|
4833
4783
|
};
|
|
4834
4784
|
};
|
|
4835
4785
|
const serializeAws_restJson1FastLaunchSnapshotConfiguration = (input, context) => {
|
|
4836
4786
|
return {
|
|
4837
|
-
...(input.targetResourceCount
|
|
4838
|
-
input.targetResourceCount !== null && { targetResourceCount: input.targetResourceCount }),
|
|
4787
|
+
...(input.targetResourceCount != null && { targetResourceCount: input.targetResourceCount }),
|
|
4839
4788
|
};
|
|
4840
4789
|
};
|
|
4841
4790
|
const serializeAws_restJson1Filter = (input, context) => {
|
|
4842
4791
|
return {
|
|
4843
|
-
...(input.name
|
|
4844
|
-
...(input.values
|
|
4845
|
-
input.values !== null && { values: serializeAws_restJson1FilterValues(input.values, context) }),
|
|
4792
|
+
...(input.name != null && { name: input.name }),
|
|
4793
|
+
...(input.values != null && { values: serializeAws_restJson1FilterValues(input.values, context) }),
|
|
4846
4794
|
};
|
|
4847
4795
|
};
|
|
4848
4796
|
const serializeAws_restJson1FilterList = (input, context) => {
|
|
@@ -4867,19 +4815,16 @@ const serializeAws_restJson1FilterValues = (input, context) => {
|
|
|
4867
4815
|
};
|
|
4868
4816
|
const serializeAws_restJson1ImageTestsConfiguration = (input, context) => {
|
|
4869
4817
|
return {
|
|
4870
|
-
...(input.imageTestsEnabled
|
|
4871
|
-
|
|
4872
|
-
...(input.timeoutMinutes !== undefined &&
|
|
4873
|
-
input.timeoutMinutes !== null && { timeoutMinutes: input.timeoutMinutes }),
|
|
4818
|
+
...(input.imageTestsEnabled != null && { imageTestsEnabled: input.imageTestsEnabled }),
|
|
4819
|
+
...(input.timeoutMinutes != null && { timeoutMinutes: input.timeoutMinutes }),
|
|
4874
4820
|
};
|
|
4875
4821
|
};
|
|
4876
4822
|
const serializeAws_restJson1InstanceBlockDeviceMapping = (input, context) => {
|
|
4877
4823
|
return {
|
|
4878
|
-
...(input.deviceName
|
|
4879
|
-
...(input.ebs
|
|
4880
|
-
|
|
4881
|
-
...(input.
|
|
4882
|
-
...(input.virtualName !== undefined && input.virtualName !== null && { virtualName: input.virtualName }),
|
|
4824
|
+
...(input.deviceName != null && { deviceName: input.deviceName }),
|
|
4825
|
+
...(input.ebs != null && { ebs: serializeAws_restJson1EbsInstanceBlockDeviceSpecification(input.ebs, context) }),
|
|
4826
|
+
...(input.noDevice != null && { noDevice: input.noDevice }),
|
|
4827
|
+
...(input.virtualName != null && { virtualName: input.virtualName }),
|
|
4883
4828
|
};
|
|
4884
4829
|
};
|
|
4885
4830
|
const serializeAws_restJson1InstanceBlockDeviceMappings = (input, context) => {
|
|
@@ -4894,18 +4839,16 @@ const serializeAws_restJson1InstanceBlockDeviceMappings = (input, context) => {
|
|
|
4894
4839
|
};
|
|
4895
4840
|
const serializeAws_restJson1InstanceConfiguration = (input, context) => {
|
|
4896
4841
|
return {
|
|
4897
|
-
...(input.blockDeviceMappings
|
|
4898
|
-
input.blockDeviceMappings !== null && {
|
|
4842
|
+
...(input.blockDeviceMappings != null && {
|
|
4899
4843
|
blockDeviceMappings: serializeAws_restJson1InstanceBlockDeviceMappings(input.blockDeviceMappings, context),
|
|
4900
4844
|
}),
|
|
4901
|
-
...(input.image
|
|
4845
|
+
...(input.image != null && { image: input.image }),
|
|
4902
4846
|
};
|
|
4903
4847
|
};
|
|
4904
4848
|
const serializeAws_restJson1InstanceMetadataOptions = (input, context) => {
|
|
4905
4849
|
return {
|
|
4906
|
-
...(input.httpPutResponseHopLimit
|
|
4907
|
-
|
|
4908
|
-
...(input.httpTokens !== undefined && input.httpTokens !== null && { httpTokens: input.httpTokens }),
|
|
4850
|
+
...(input.httpPutResponseHopLimit != null && { httpPutResponseHopLimit: input.httpPutResponseHopLimit }),
|
|
4851
|
+
...(input.httpTokens != null && { httpTokens: input.httpTokens }),
|
|
4909
4852
|
};
|
|
4910
4853
|
};
|
|
4911
4854
|
const serializeAws_restJson1InstanceTypeList = (input, context) => {
|
|
@@ -4920,27 +4863,21 @@ const serializeAws_restJson1InstanceTypeList = (input, context) => {
|
|
|
4920
4863
|
};
|
|
4921
4864
|
const serializeAws_restJson1LaunchPermissionConfiguration = (input, context) => {
|
|
4922
4865
|
return {
|
|
4923
|
-
...(input.organizationArns
|
|
4924
|
-
input.organizationArns !== null && {
|
|
4866
|
+
...(input.organizationArns != null && {
|
|
4925
4867
|
organizationArns: serializeAws_restJson1OrganizationArnList(input.organizationArns, context),
|
|
4926
4868
|
}),
|
|
4927
|
-
...(input.organizationalUnitArns
|
|
4928
|
-
input.organizationalUnitArns !== null && {
|
|
4869
|
+
...(input.organizationalUnitArns != null && {
|
|
4929
4870
|
organizationalUnitArns: serializeAws_restJson1OrganizationalUnitArnList(input.organizationalUnitArns, context),
|
|
4930
4871
|
}),
|
|
4931
|
-
...(input.userGroups
|
|
4932
|
-
|
|
4933
|
-
...(input.userIds !== undefined &&
|
|
4934
|
-
input.userIds !== null && { userIds: serializeAws_restJson1AccountList(input.userIds, context) }),
|
|
4872
|
+
...(input.userGroups != null && { userGroups: serializeAws_restJson1StringList(input.userGroups, context) }),
|
|
4873
|
+
...(input.userIds != null && { userIds: serializeAws_restJson1AccountList(input.userIds, context) }),
|
|
4935
4874
|
};
|
|
4936
4875
|
};
|
|
4937
4876
|
const serializeAws_restJson1LaunchTemplateConfiguration = (input, context) => {
|
|
4938
4877
|
return {
|
|
4939
|
-
...(input.accountId
|
|
4940
|
-
...(input.launchTemplateId
|
|
4941
|
-
|
|
4942
|
-
...(input.setDefaultVersion !== undefined &&
|
|
4943
|
-
input.setDefaultVersion !== null && { setDefaultVersion: input.setDefaultVersion }),
|
|
4878
|
+
...(input.accountId != null && { accountId: input.accountId }),
|
|
4879
|
+
...(input.launchTemplateId != null && { launchTemplateId: input.launchTemplateId }),
|
|
4880
|
+
...(input.setDefaultVersion != null && { setDefaultVersion: input.setDefaultVersion }),
|
|
4944
4881
|
};
|
|
4945
4882
|
};
|
|
4946
4883
|
const serializeAws_restJson1LaunchTemplateConfigurationList = (input, context) => {
|
|
@@ -4965,8 +4902,7 @@ const serializeAws_restJson1LicenseConfigurationArnList = (input, context) => {
|
|
|
4965
4902
|
};
|
|
4966
4903
|
const serializeAws_restJson1Logging = (input, context) => {
|
|
4967
4904
|
return {
|
|
4968
|
-
...(input.s3Logs
|
|
4969
|
-
input.s3Logs !== null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }),
|
|
4905
|
+
...(input.s3Logs != null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }),
|
|
4970
4906
|
};
|
|
4971
4907
|
};
|
|
4972
4908
|
const serializeAws_restJson1OrganizationalUnitArnList = (input, context) => {
|
|
@@ -5012,28 +4948,25 @@ const serializeAws_restJson1ResourceTagMap = (input, context) => {
|
|
|
5012
4948
|
};
|
|
5013
4949
|
const serializeAws_restJson1S3ExportConfiguration = (input, context) => {
|
|
5014
4950
|
return {
|
|
5015
|
-
...(input.diskImageFormat
|
|
5016
|
-
|
|
5017
|
-
...(input.
|
|
5018
|
-
...(input.
|
|
5019
|
-
...(input.s3Prefix !== undefined && input.s3Prefix !== null && { s3Prefix: input.s3Prefix }),
|
|
4951
|
+
...(input.diskImageFormat != null && { diskImageFormat: input.diskImageFormat }),
|
|
4952
|
+
...(input.roleName != null && { roleName: input.roleName }),
|
|
4953
|
+
...(input.s3Bucket != null && { s3Bucket: input.s3Bucket }),
|
|
4954
|
+
...(input.s3Prefix != null && { s3Prefix: input.s3Prefix }),
|
|
5020
4955
|
};
|
|
5021
4956
|
};
|
|
5022
4957
|
const serializeAws_restJson1S3Logs = (input, context) => {
|
|
5023
4958
|
return {
|
|
5024
|
-
...(input.s3BucketName
|
|
5025
|
-
...(input.s3KeyPrefix
|
|
4959
|
+
...(input.s3BucketName != null && { s3BucketName: input.s3BucketName }),
|
|
4960
|
+
...(input.s3KeyPrefix != null && { s3KeyPrefix: input.s3KeyPrefix }),
|
|
5026
4961
|
};
|
|
5027
4962
|
};
|
|
5028
4963
|
const serializeAws_restJson1Schedule = (input, context) => {
|
|
5029
4964
|
return {
|
|
5030
|
-
...(input.pipelineExecutionStartCondition
|
|
5031
|
-
input.pipelineExecutionStartCondition !== null && {
|
|
4965
|
+
...(input.pipelineExecutionStartCondition != null && {
|
|
5032
4966
|
pipelineExecutionStartCondition: input.pipelineExecutionStartCondition,
|
|
5033
4967
|
}),
|
|
5034
|
-
...(input.scheduleExpression
|
|
5035
|
-
|
|
5036
|
-
...(input.timezone !== undefined && input.timezone !== null && { timezone: input.timezone }),
|
|
4968
|
+
...(input.scheduleExpression != null && { scheduleExpression: input.scheduleExpression }),
|
|
4969
|
+
...(input.timezone != null && { timezone: input.timezone }),
|
|
5037
4970
|
};
|
|
5038
4971
|
};
|
|
5039
4972
|
const serializeAws_restJson1SecurityGroupIds = (input, context) => {
|
|
@@ -5058,8 +4991,7 @@ const serializeAws_restJson1StringList = (input, context) => {
|
|
|
5058
4991
|
};
|
|
5059
4992
|
const serializeAws_restJson1SystemsManagerAgent = (input, context) => {
|
|
5060
4993
|
return {
|
|
5061
|
-
...(input.uninstallAfterBuild
|
|
5062
|
-
input.uninstallAfterBuild !== null && { uninstallAfterBuild: input.uninstallAfterBuild }),
|
|
4994
|
+
...(input.uninstallAfterBuild != null && { uninstallAfterBuild: input.uninstallAfterBuild }),
|
|
5063
4995
|
};
|
|
5064
4996
|
};
|
|
5065
4997
|
const serializeAws_restJson1TagMap = (input, context) => {
|
|
@@ -5075,9 +5007,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
5075
5007
|
};
|
|
5076
5008
|
const serializeAws_restJson1TargetContainerRepository = (input, context) => {
|
|
5077
5009
|
return {
|
|
5078
|
-
...(input.repositoryName
|
|
5079
|
-
|
|
5080
|
-
...(input.service !== undefined && input.service !== null && { service: input.service }),
|
|
5010
|
+
...(input.repositoryName != null && { repositoryName: input.repositoryName }),
|
|
5011
|
+
...(input.service != null && { service: input.service }),
|
|
5081
5012
|
};
|
|
5082
5013
|
};
|
|
5083
5014
|
const deserializeAws_restJson1AccountList = (output, context) => {
|
|
@@ -5093,7 +5024,7 @@ const deserializeAws_restJson1AccountList = (output, context) => {
|
|
|
5093
5024
|
};
|
|
5094
5025
|
const deserializeAws_restJson1AdditionalInstanceConfiguration = (output, context) => {
|
|
5095
5026
|
return {
|
|
5096
|
-
systemsManagerAgent: output.systemsManagerAgent
|
|
5027
|
+
systemsManagerAgent: output.systemsManagerAgent != null
|
|
5097
5028
|
? deserializeAws_restJson1SystemsManagerAgent(output.systemsManagerAgent, context)
|
|
5098
5029
|
: undefined,
|
|
5099
5030
|
userDataOverride: (0, smithy_client_1.expectString)(output.userDataOverride),
|
|
@@ -5106,23 +5037,19 @@ const deserializeAws_restJson1Ami = (output, context) => {
|
|
|
5106
5037
|
image: (0, smithy_client_1.expectString)(output.image),
|
|
5107
5038
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5108
5039
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
5109
|
-
state: output.state
|
|
5110
|
-
? deserializeAws_restJson1ImageState(output.state, context)
|
|
5111
|
-
: undefined,
|
|
5040
|
+
state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
|
|
5112
5041
|
};
|
|
5113
5042
|
};
|
|
5114
5043
|
const deserializeAws_restJson1AmiDistributionConfiguration = (output, context) => {
|
|
5115
5044
|
return {
|
|
5116
|
-
amiTags: output.amiTags
|
|
5117
|
-
? deserializeAws_restJson1TagMap(output.amiTags, context)
|
|
5118
|
-
: undefined,
|
|
5045
|
+
amiTags: output.amiTags != null ? deserializeAws_restJson1TagMap(output.amiTags, context) : undefined,
|
|
5119
5046
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5120
5047
|
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
5121
|
-
launchPermission: output.launchPermission
|
|
5048
|
+
launchPermission: output.launchPermission != null
|
|
5122
5049
|
? deserializeAws_restJson1LaunchPermissionConfiguration(output.launchPermission, context)
|
|
5123
5050
|
: undefined,
|
|
5124
5051
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5125
|
-
targetAccountIds: output.targetAccountIds
|
|
5052
|
+
targetAccountIds: output.targetAccountIds != null
|
|
5126
5053
|
? deserializeAws_restJson1AccountList(output.targetAccountIds, context)
|
|
5127
5054
|
: undefined,
|
|
5128
5055
|
};
|
|
@@ -5149,19 +5076,15 @@ const deserializeAws_restJson1Component = (output, context) => {
|
|
|
5149
5076
|
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
5150
5077
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5151
5078
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
5152
|
-
parameters: output.parameters
|
|
5079
|
+
parameters: output.parameters != null
|
|
5153
5080
|
? deserializeAws_restJson1ComponentParameterDetailList(output.parameters, context)
|
|
5154
5081
|
: undefined,
|
|
5155
5082
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5156
|
-
state: output.state
|
|
5157
|
-
|
|
5158
|
-
: undefined,
|
|
5159
|
-
supportedOsVersions: output.supportedOsVersions !== undefined && output.supportedOsVersions !== null
|
|
5083
|
+
state: output.state != null ? deserializeAws_restJson1ComponentState(output.state, context) : undefined,
|
|
5084
|
+
supportedOsVersions: output.supportedOsVersions != null
|
|
5160
5085
|
? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
|
|
5161
5086
|
: undefined,
|
|
5162
|
-
tags: output.tags
|
|
5163
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5164
|
-
: undefined,
|
|
5087
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5165
5088
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5166
5089
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
5167
5090
|
};
|
|
@@ -5169,7 +5092,7 @@ const deserializeAws_restJson1Component = (output, context) => {
|
|
|
5169
5092
|
const deserializeAws_restJson1ComponentConfiguration = (output, context) => {
|
|
5170
5093
|
return {
|
|
5171
5094
|
componentArn: (0, smithy_client_1.expectString)(output.componentArn),
|
|
5172
|
-
parameters: output.parameters
|
|
5095
|
+
parameters: output.parameters != null
|
|
5173
5096
|
? deserializeAws_restJson1ComponentParameterList(output.parameters, context)
|
|
5174
5097
|
: undefined,
|
|
5175
5098
|
};
|
|
@@ -5188,14 +5111,12 @@ const deserializeAws_restJson1ComponentConfigurationList = (output, context) =>
|
|
|
5188
5111
|
const deserializeAws_restJson1ComponentParameter = (output, context) => {
|
|
5189
5112
|
return {
|
|
5190
5113
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5191
|
-
value: output.value
|
|
5192
|
-
? deserializeAws_restJson1ComponentParameterValueList(output.value, context)
|
|
5193
|
-
: undefined,
|
|
5114
|
+
value: output.value != null ? deserializeAws_restJson1ComponentParameterValueList(output.value, context) : undefined,
|
|
5194
5115
|
};
|
|
5195
5116
|
};
|
|
5196
5117
|
const deserializeAws_restJson1ComponentParameterDetail = (output, context) => {
|
|
5197
5118
|
return {
|
|
5198
|
-
defaultValue: output.defaultValue
|
|
5119
|
+
defaultValue: output.defaultValue != null
|
|
5199
5120
|
? deserializeAws_restJson1ComponentParameterValueList(output.defaultValue, context)
|
|
5200
5121
|
: undefined,
|
|
5201
5122
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
@@ -5251,15 +5172,11 @@ const deserializeAws_restJson1ComponentSummary = (output, context) => {
|
|
|
5251
5172
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5252
5173
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
5253
5174
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5254
|
-
state: output.state
|
|
5255
|
-
|
|
5256
|
-
: undefined,
|
|
5257
|
-
supportedOsVersions: output.supportedOsVersions !== undefined && output.supportedOsVersions !== null
|
|
5175
|
+
state: output.state != null ? deserializeAws_restJson1ComponentState(output.state, context) : undefined,
|
|
5176
|
+
supportedOsVersions: output.supportedOsVersions != null
|
|
5258
5177
|
? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
|
|
5259
5178
|
: undefined,
|
|
5260
|
-
tags: output.tags
|
|
5261
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5262
|
-
: undefined,
|
|
5179
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5263
5180
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5264
5181
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
5265
5182
|
};
|
|
@@ -5283,7 +5200,7 @@ const deserializeAws_restJson1ComponentVersion = (output, context) => {
|
|
|
5283
5200
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5284
5201
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
5285
5202
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5286
|
-
supportedOsVersions: output.supportedOsVersions
|
|
5203
|
+
supportedOsVersions: output.supportedOsVersions != null
|
|
5287
5204
|
? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
|
|
5288
5205
|
: undefined,
|
|
5289
5206
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
@@ -5303,19 +5220,15 @@ const deserializeAws_restJson1ComponentVersionList = (output, context) => {
|
|
|
5303
5220
|
};
|
|
5304
5221
|
const deserializeAws_restJson1Container = (output, context) => {
|
|
5305
5222
|
return {
|
|
5306
|
-
imageUris: output.imageUris
|
|
5307
|
-
? deserializeAws_restJson1StringList(output.imageUris, context)
|
|
5308
|
-
: undefined,
|
|
5223
|
+
imageUris: output.imageUris != null ? deserializeAws_restJson1StringList(output.imageUris, context) : undefined,
|
|
5309
5224
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
5310
5225
|
};
|
|
5311
5226
|
};
|
|
5312
5227
|
const deserializeAws_restJson1ContainerDistributionConfiguration = (output, context) => {
|
|
5313
5228
|
return {
|
|
5314
|
-
containerTags: output.containerTags
|
|
5315
|
-
? deserializeAws_restJson1StringList(output.containerTags, context)
|
|
5316
|
-
: undefined,
|
|
5229
|
+
containerTags: output.containerTags != null ? deserializeAws_restJson1StringList(output.containerTags, context) : undefined,
|
|
5317
5230
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5318
|
-
targetRepository: output.targetRepository
|
|
5231
|
+
targetRepository: output.targetRepository != null
|
|
5319
5232
|
? deserializeAws_restJson1TargetContainerRepository(output.targetRepository, context)
|
|
5320
5233
|
: undefined,
|
|
5321
5234
|
};
|
|
@@ -5334,7 +5247,7 @@ const deserializeAws_restJson1ContainerList = (output, context) => {
|
|
|
5334
5247
|
const deserializeAws_restJson1ContainerRecipe = (output, context) => {
|
|
5335
5248
|
return {
|
|
5336
5249
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5337
|
-
components: output.components
|
|
5250
|
+
components: output.components != null
|
|
5338
5251
|
? deserializeAws_restJson1ComponentConfigurationList(output.components, context)
|
|
5339
5252
|
: undefined,
|
|
5340
5253
|
containerType: (0, smithy_client_1.expectString)(output.containerType),
|
|
@@ -5342,7 +5255,7 @@ const deserializeAws_restJson1ContainerRecipe = (output, context) => {
|
|
|
5342
5255
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5343
5256
|
dockerfileTemplateData: (0, smithy_client_1.expectString)(output.dockerfileTemplateData),
|
|
5344
5257
|
encrypted: (0, smithy_client_1.expectBoolean)(output.encrypted),
|
|
5345
|
-
instanceConfiguration: output.instanceConfiguration
|
|
5258
|
+
instanceConfiguration: output.instanceConfiguration != null
|
|
5346
5259
|
? deserializeAws_restJson1InstanceConfiguration(output.instanceConfiguration, context)
|
|
5347
5260
|
: undefined,
|
|
5348
5261
|
kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
|
|
@@ -5350,10 +5263,8 @@ const deserializeAws_restJson1ContainerRecipe = (output, context) => {
|
|
|
5350
5263
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
5351
5264
|
parentImage: (0, smithy_client_1.expectString)(output.parentImage),
|
|
5352
5265
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5353
|
-
tags: output.tags
|
|
5354
|
-
|
|
5355
|
-
: undefined,
|
|
5356
|
-
targetRepository: output.targetRepository !== undefined && output.targetRepository !== null
|
|
5266
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5267
|
+
targetRepository: output.targetRepository != null
|
|
5357
5268
|
? deserializeAws_restJson1TargetContainerRepository(output.targetRepository, context)
|
|
5358
5269
|
: undefined,
|
|
5359
5270
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
@@ -5369,9 +5280,7 @@ const deserializeAws_restJson1ContainerRecipeSummary = (output, context) => {
|
|
|
5369
5280
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
5370
5281
|
parentImage: (0, smithy_client_1.expectString)(output.parentImage),
|
|
5371
5282
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5372
|
-
tags: output.tags
|
|
5373
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5374
|
-
: undefined,
|
|
5283
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5375
5284
|
};
|
|
5376
5285
|
};
|
|
5377
5286
|
const deserializeAws_restJson1ContainerRecipeSummaryList = (output, context) => {
|
|
@@ -5387,23 +5296,23 @@ const deserializeAws_restJson1ContainerRecipeSummaryList = (output, context) =>
|
|
|
5387
5296
|
};
|
|
5388
5297
|
const deserializeAws_restJson1Distribution = (output, context) => {
|
|
5389
5298
|
return {
|
|
5390
|
-
amiDistributionConfiguration: output.amiDistributionConfiguration
|
|
5299
|
+
amiDistributionConfiguration: output.amiDistributionConfiguration != null
|
|
5391
5300
|
? deserializeAws_restJson1AmiDistributionConfiguration(output.amiDistributionConfiguration, context)
|
|
5392
5301
|
: undefined,
|
|
5393
|
-
containerDistributionConfiguration: output.containerDistributionConfiguration
|
|
5302
|
+
containerDistributionConfiguration: output.containerDistributionConfiguration != null
|
|
5394
5303
|
? deserializeAws_restJson1ContainerDistributionConfiguration(output.containerDistributionConfiguration, context)
|
|
5395
5304
|
: undefined,
|
|
5396
|
-
fastLaunchConfigurations: output.fastLaunchConfigurations
|
|
5305
|
+
fastLaunchConfigurations: output.fastLaunchConfigurations != null
|
|
5397
5306
|
? deserializeAws_restJson1FastLaunchConfigurationList(output.fastLaunchConfigurations, context)
|
|
5398
5307
|
: undefined,
|
|
5399
|
-
launchTemplateConfigurations: output.launchTemplateConfigurations
|
|
5308
|
+
launchTemplateConfigurations: output.launchTemplateConfigurations != null
|
|
5400
5309
|
? deserializeAws_restJson1LaunchTemplateConfigurationList(output.launchTemplateConfigurations, context)
|
|
5401
5310
|
: undefined,
|
|
5402
|
-
licenseConfigurationArns: output.licenseConfigurationArns
|
|
5311
|
+
licenseConfigurationArns: output.licenseConfigurationArns != null
|
|
5403
5312
|
? deserializeAws_restJson1LicenseConfigurationArnList(output.licenseConfigurationArns, context)
|
|
5404
5313
|
: undefined,
|
|
5405
5314
|
region: (0, smithy_client_1.expectString)(output.region),
|
|
5406
|
-
s3ExportConfiguration: output.s3ExportConfiguration
|
|
5315
|
+
s3ExportConfiguration: output.s3ExportConfiguration != null
|
|
5407
5316
|
? deserializeAws_restJson1S3ExportConfiguration(output.s3ExportConfiguration, context)
|
|
5408
5317
|
: undefined,
|
|
5409
5318
|
};
|
|
@@ -5414,13 +5323,11 @@ const deserializeAws_restJson1DistributionConfiguration = (output, context) => {
|
|
|
5414
5323
|
dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
|
|
5415
5324
|
dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
|
|
5416
5325
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5417
|
-
distributions: output.distributions
|
|
5326
|
+
distributions: output.distributions != null
|
|
5418
5327
|
? deserializeAws_restJson1DistributionList(output.distributions, context)
|
|
5419
5328
|
: undefined,
|
|
5420
5329
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5421
|
-
tags: output.tags
|
|
5422
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5423
|
-
: undefined,
|
|
5330
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5424
5331
|
timeoutMinutes: (0, smithy_client_1.expectInt32)(output.timeoutMinutes),
|
|
5425
5332
|
};
|
|
5426
5333
|
};
|
|
@@ -5431,12 +5338,8 @@ const deserializeAws_restJson1DistributionConfigurationSummary = (output, contex
|
|
|
5431
5338
|
dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
|
|
5432
5339
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5433
5340
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5434
|
-
regions: output.regions
|
|
5435
|
-
|
|
5436
|
-
: undefined,
|
|
5437
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
5438
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5439
|
-
: undefined,
|
|
5341
|
+
regions: output.regions != null ? deserializeAws_restJson1RegionList(output.regions, context) : undefined,
|
|
5342
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5440
5343
|
};
|
|
5441
5344
|
};
|
|
5442
5345
|
const deserializeAws_restJson1DistributionConfigurationSummaryList = (output, context) => {
|
|
@@ -5477,11 +5380,11 @@ const deserializeAws_restJson1FastLaunchConfiguration = (output, context) => {
|
|
|
5477
5380
|
return {
|
|
5478
5381
|
accountId: (0, smithy_client_1.expectString)(output.accountId),
|
|
5479
5382
|
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
5480
|
-
launchTemplate: output.launchTemplate
|
|
5383
|
+
launchTemplate: output.launchTemplate != null
|
|
5481
5384
|
? deserializeAws_restJson1FastLaunchLaunchTemplateSpecification(output.launchTemplate, context)
|
|
5482
5385
|
: undefined,
|
|
5483
5386
|
maxParallelLaunches: (0, smithy_client_1.expectInt32)(output.maxParallelLaunches),
|
|
5484
|
-
snapshotConfiguration: output.snapshotConfiguration
|
|
5387
|
+
snapshotConfiguration: output.snapshotConfiguration != null
|
|
5485
5388
|
? deserializeAws_restJson1FastLaunchSnapshotConfiguration(output.snapshotConfiguration, context)
|
|
5486
5389
|
: undefined,
|
|
5487
5390
|
};
|
|
@@ -5513,37 +5416,31 @@ const deserializeAws_restJson1Image = (output, context) => {
|
|
|
5513
5416
|
return {
|
|
5514
5417
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5515
5418
|
buildType: (0, smithy_client_1.expectString)(output.buildType),
|
|
5516
|
-
containerRecipe: output.containerRecipe
|
|
5419
|
+
containerRecipe: output.containerRecipe != null
|
|
5517
5420
|
? deserializeAws_restJson1ContainerRecipe(output.containerRecipe, context)
|
|
5518
5421
|
: undefined,
|
|
5519
5422
|
dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
|
|
5520
|
-
distributionConfiguration: output.distributionConfiguration
|
|
5423
|
+
distributionConfiguration: output.distributionConfiguration != null
|
|
5521
5424
|
? deserializeAws_restJson1DistributionConfiguration(output.distributionConfiguration, context)
|
|
5522
5425
|
: undefined,
|
|
5523
5426
|
enhancedImageMetadataEnabled: (0, smithy_client_1.expectBoolean)(output.enhancedImageMetadataEnabled),
|
|
5524
|
-
imageRecipe: output.imageRecipe
|
|
5525
|
-
|
|
5526
|
-
: undefined,
|
|
5527
|
-
imageTestsConfiguration: output.imageTestsConfiguration !== undefined && output.imageTestsConfiguration !== null
|
|
5427
|
+
imageRecipe: output.imageRecipe != null ? deserializeAws_restJson1ImageRecipe(output.imageRecipe, context) : undefined,
|
|
5428
|
+
imageTestsConfiguration: output.imageTestsConfiguration != null
|
|
5528
5429
|
? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
|
|
5529
5430
|
: undefined,
|
|
5530
|
-
infrastructureConfiguration: output.infrastructureConfiguration
|
|
5431
|
+
infrastructureConfiguration: output.infrastructureConfiguration != null
|
|
5531
5432
|
? deserializeAws_restJson1InfrastructureConfiguration(output.infrastructureConfiguration, context)
|
|
5532
5433
|
: undefined,
|
|
5533
5434
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5534
5435
|
osVersion: (0, smithy_client_1.expectString)(output.osVersion),
|
|
5535
|
-
outputResources: output.outputResources
|
|
5436
|
+
outputResources: output.outputResources != null
|
|
5536
5437
|
? deserializeAws_restJson1OutputResources(output.outputResources, context)
|
|
5537
5438
|
: undefined,
|
|
5538
5439
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5539
5440
|
sourcePipelineArn: (0, smithy_client_1.expectString)(output.sourcePipelineArn),
|
|
5540
5441
|
sourcePipelineName: (0, smithy_client_1.expectString)(output.sourcePipelineName),
|
|
5541
|
-
state: output.state
|
|
5542
|
-
|
|
5543
|
-
: undefined,
|
|
5544
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
5545
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5546
|
-
: undefined,
|
|
5442
|
+
state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
|
|
5443
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5547
5444
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5548
5445
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
5549
5446
|
};
|
|
@@ -5577,19 +5474,15 @@ const deserializeAws_restJson1ImagePipeline = (output, context) => {
|
|
|
5577
5474
|
distributionConfigurationArn: (0, smithy_client_1.expectString)(output.distributionConfigurationArn),
|
|
5578
5475
|
enhancedImageMetadataEnabled: (0, smithy_client_1.expectBoolean)(output.enhancedImageMetadataEnabled),
|
|
5579
5476
|
imageRecipeArn: (0, smithy_client_1.expectString)(output.imageRecipeArn),
|
|
5580
|
-
imageTestsConfiguration: output.imageTestsConfiguration
|
|
5477
|
+
imageTestsConfiguration: output.imageTestsConfiguration != null
|
|
5581
5478
|
? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
|
|
5582
5479
|
: undefined,
|
|
5583
5480
|
infrastructureConfigurationArn: (0, smithy_client_1.expectString)(output.infrastructureConfigurationArn),
|
|
5584
5481
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5585
5482
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5586
|
-
schedule: output.schedule
|
|
5587
|
-
? deserializeAws_restJson1Schedule(output.schedule, context)
|
|
5588
|
-
: undefined,
|
|
5483
|
+
schedule: output.schedule != null ? deserializeAws_restJson1Schedule(output.schedule, context) : undefined,
|
|
5589
5484
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
5590
|
-
tags: output.tags
|
|
5591
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5592
|
-
: undefined,
|
|
5485
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5593
5486
|
};
|
|
5594
5487
|
};
|
|
5595
5488
|
const deserializeAws_restJson1ImagePipelineList = (output, context) => {
|
|
@@ -5605,14 +5498,14 @@ const deserializeAws_restJson1ImagePipelineList = (output, context) => {
|
|
|
5605
5498
|
};
|
|
5606
5499
|
const deserializeAws_restJson1ImageRecipe = (output, context) => {
|
|
5607
5500
|
return {
|
|
5608
|
-
additionalInstanceConfiguration: output.additionalInstanceConfiguration
|
|
5501
|
+
additionalInstanceConfiguration: output.additionalInstanceConfiguration != null
|
|
5609
5502
|
? deserializeAws_restJson1AdditionalInstanceConfiguration(output.additionalInstanceConfiguration, context)
|
|
5610
5503
|
: undefined,
|
|
5611
5504
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5612
|
-
blockDeviceMappings: output.blockDeviceMappings
|
|
5505
|
+
blockDeviceMappings: output.blockDeviceMappings != null
|
|
5613
5506
|
? deserializeAws_restJson1InstanceBlockDeviceMappings(output.blockDeviceMappings, context)
|
|
5614
5507
|
: undefined,
|
|
5615
|
-
components: output.components
|
|
5508
|
+
components: output.components != null
|
|
5616
5509
|
? deserializeAws_restJson1ComponentConfigurationList(output.components, context)
|
|
5617
5510
|
: undefined,
|
|
5618
5511
|
dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
|
|
@@ -5621,9 +5514,7 @@ const deserializeAws_restJson1ImageRecipe = (output, context) => {
|
|
|
5621
5514
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
5622
5515
|
parentImage: (0, smithy_client_1.expectString)(output.parentImage),
|
|
5623
5516
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5624
|
-
tags: output.tags
|
|
5625
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5626
|
-
: undefined,
|
|
5517
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5627
5518
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5628
5519
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
5629
5520
|
workingDirectory: (0, smithy_client_1.expectString)(output.workingDirectory),
|
|
@@ -5637,9 +5528,7 @@ const deserializeAws_restJson1ImageRecipeSummary = (output, context) => {
|
|
|
5637
5528
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
5638
5529
|
parentImage: (0, smithy_client_1.expectString)(output.parentImage),
|
|
5639
5530
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5640
|
-
tags: output.tags
|
|
5641
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5642
|
-
: undefined,
|
|
5531
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5643
5532
|
};
|
|
5644
5533
|
};
|
|
5645
5534
|
const deserializeAws_restJson1ImageRecipeSummaryList = (output, context) => {
|
|
@@ -5666,17 +5555,13 @@ const deserializeAws_restJson1ImageSummary = (output, context) => {
|
|
|
5666
5555
|
dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
|
|
5667
5556
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5668
5557
|
osVersion: (0, smithy_client_1.expectString)(output.osVersion),
|
|
5669
|
-
outputResources: output.outputResources
|
|
5558
|
+
outputResources: output.outputResources != null
|
|
5670
5559
|
? deserializeAws_restJson1OutputResources(output.outputResources, context)
|
|
5671
5560
|
: undefined,
|
|
5672
5561
|
owner: (0, smithy_client_1.expectString)(output.owner),
|
|
5673
5562
|
platform: (0, smithy_client_1.expectString)(output.platform),
|
|
5674
|
-
state: output.state
|
|
5675
|
-
|
|
5676
|
-
: undefined,
|
|
5677
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
5678
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5679
|
-
: undefined,
|
|
5563
|
+
state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
|
|
5564
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5680
5565
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
5681
5566
|
version: (0, smithy_client_1.expectString)(output.version),
|
|
5682
5567
|
};
|
|
@@ -5728,29 +5613,23 @@ const deserializeAws_restJson1InfrastructureConfiguration = (output, context) =>
|
|
|
5728
5613
|
dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
|
|
5729
5614
|
dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
|
|
5730
5615
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5731
|
-
instanceMetadataOptions: output.instanceMetadataOptions
|
|
5616
|
+
instanceMetadataOptions: output.instanceMetadataOptions != null
|
|
5732
5617
|
? deserializeAws_restJson1InstanceMetadataOptions(output.instanceMetadataOptions, context)
|
|
5733
5618
|
: undefined,
|
|
5734
5619
|
instanceProfileName: (0, smithy_client_1.expectString)(output.instanceProfileName),
|
|
5735
|
-
instanceTypes: output.instanceTypes
|
|
5620
|
+
instanceTypes: output.instanceTypes != null
|
|
5736
5621
|
? deserializeAws_restJson1InstanceTypeList(output.instanceTypes, context)
|
|
5737
5622
|
: undefined,
|
|
5738
5623
|
keyPair: (0, smithy_client_1.expectString)(output.keyPair),
|
|
5739
|
-
logging: output.logging
|
|
5740
|
-
? deserializeAws_restJson1Logging(output.logging, context)
|
|
5741
|
-
: undefined,
|
|
5624
|
+
logging: output.logging != null ? deserializeAws_restJson1Logging(output.logging, context) : undefined,
|
|
5742
5625
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5743
|
-
resourceTags: output.resourceTags
|
|
5744
|
-
|
|
5745
|
-
: undefined,
|
|
5746
|
-
securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
|
|
5626
|
+
resourceTags: output.resourceTags != null ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context) : undefined,
|
|
5627
|
+
securityGroupIds: output.securityGroupIds != null
|
|
5747
5628
|
? deserializeAws_restJson1SecurityGroupIds(output.securityGroupIds, context)
|
|
5748
5629
|
: undefined,
|
|
5749
5630
|
snsTopicArn: (0, smithy_client_1.expectString)(output.snsTopicArn),
|
|
5750
5631
|
subnetId: (0, smithy_client_1.expectString)(output.subnetId),
|
|
5751
|
-
tags: output.tags
|
|
5752
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5753
|
-
: undefined,
|
|
5632
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5754
5633
|
terminateInstanceOnFailure: (0, smithy_client_1.expectBoolean)(output.terminateInstanceOnFailure),
|
|
5755
5634
|
};
|
|
5756
5635
|
};
|
|
@@ -5761,16 +5640,12 @@ const deserializeAws_restJson1InfrastructureConfigurationSummary = (output, cont
|
|
|
5761
5640
|
dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
|
|
5762
5641
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
5763
5642
|
instanceProfileName: (0, smithy_client_1.expectString)(output.instanceProfileName),
|
|
5764
|
-
instanceTypes: output.instanceTypes
|
|
5643
|
+
instanceTypes: output.instanceTypes != null
|
|
5765
5644
|
? deserializeAws_restJson1InstanceTypeList(output.instanceTypes, context)
|
|
5766
5645
|
: undefined,
|
|
5767
5646
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
5768
|
-
resourceTags: output.resourceTags
|
|
5769
|
-
|
|
5770
|
-
: undefined,
|
|
5771
|
-
tags: output.tags !== undefined && output.tags !== null
|
|
5772
|
-
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
5773
|
-
: undefined,
|
|
5647
|
+
resourceTags: output.resourceTags != null ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context) : undefined,
|
|
5648
|
+
tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
|
|
5774
5649
|
};
|
|
5775
5650
|
};
|
|
5776
5651
|
const deserializeAws_restJson1InfrastructureConfigurationSummaryList = (output, context) => {
|
|
@@ -5787,9 +5662,7 @@ const deserializeAws_restJson1InfrastructureConfigurationSummaryList = (output,
|
|
|
5787
5662
|
const deserializeAws_restJson1InstanceBlockDeviceMapping = (output, context) => {
|
|
5788
5663
|
return {
|
|
5789
5664
|
deviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
5790
|
-
ebs: output.ebs
|
|
5791
|
-
? deserializeAws_restJson1EbsInstanceBlockDeviceSpecification(output.ebs, context)
|
|
5792
|
-
: undefined,
|
|
5665
|
+
ebs: output.ebs != null ? deserializeAws_restJson1EbsInstanceBlockDeviceSpecification(output.ebs, context) : undefined,
|
|
5793
5666
|
noDevice: (0, smithy_client_1.expectString)(output.noDevice),
|
|
5794
5667
|
virtualName: (0, smithy_client_1.expectString)(output.virtualName),
|
|
5795
5668
|
};
|
|
@@ -5807,7 +5680,7 @@ const deserializeAws_restJson1InstanceBlockDeviceMappings = (output, context) =>
|
|
|
5807
5680
|
};
|
|
5808
5681
|
const deserializeAws_restJson1InstanceConfiguration = (output, context) => {
|
|
5809
5682
|
return {
|
|
5810
|
-
blockDeviceMappings: output.blockDeviceMappings
|
|
5683
|
+
blockDeviceMappings: output.blockDeviceMappings != null
|
|
5811
5684
|
? deserializeAws_restJson1InstanceBlockDeviceMappings(output.blockDeviceMappings, context)
|
|
5812
5685
|
: undefined,
|
|
5813
5686
|
image: (0, smithy_client_1.expectString)(output.image),
|
|
@@ -5832,18 +5705,14 @@ const deserializeAws_restJson1InstanceTypeList = (output, context) => {
|
|
|
5832
5705
|
};
|
|
5833
5706
|
const deserializeAws_restJson1LaunchPermissionConfiguration = (output, context) => {
|
|
5834
5707
|
return {
|
|
5835
|
-
organizationArns: output.organizationArns
|
|
5708
|
+
organizationArns: output.organizationArns != null
|
|
5836
5709
|
? deserializeAws_restJson1OrganizationArnList(output.organizationArns, context)
|
|
5837
5710
|
: undefined,
|
|
5838
|
-
organizationalUnitArns: output.organizationalUnitArns
|
|
5711
|
+
organizationalUnitArns: output.organizationalUnitArns != null
|
|
5839
5712
|
? deserializeAws_restJson1OrganizationalUnitArnList(output.organizationalUnitArns, context)
|
|
5840
5713
|
: undefined,
|
|
5841
|
-
userGroups: output.userGroups
|
|
5842
|
-
|
|
5843
|
-
: undefined,
|
|
5844
|
-
userIds: output.userIds !== undefined && output.userIds !== null
|
|
5845
|
-
? deserializeAws_restJson1AccountList(output.userIds, context)
|
|
5846
|
-
: undefined,
|
|
5714
|
+
userGroups: output.userGroups != null ? deserializeAws_restJson1StringList(output.userGroups, context) : undefined,
|
|
5715
|
+
userIds: output.userIds != null ? deserializeAws_restJson1AccountList(output.userIds, context) : undefined,
|
|
5847
5716
|
};
|
|
5848
5717
|
};
|
|
5849
5718
|
const deserializeAws_restJson1LaunchTemplateConfiguration = (output, context) => {
|
|
@@ -5877,9 +5746,7 @@ const deserializeAws_restJson1LicenseConfigurationArnList = (output, context) =>
|
|
|
5877
5746
|
};
|
|
5878
5747
|
const deserializeAws_restJson1Logging = (output, context) => {
|
|
5879
5748
|
return {
|
|
5880
|
-
s3Logs: output.s3Logs
|
|
5881
|
-
? deserializeAws_restJson1S3Logs(output.s3Logs, context)
|
|
5882
|
-
: undefined,
|
|
5749
|
+
s3Logs: output.s3Logs != null ? deserializeAws_restJson1S3Logs(output.s3Logs, context) : undefined,
|
|
5883
5750
|
};
|
|
5884
5751
|
};
|
|
5885
5752
|
const deserializeAws_restJson1OrganizationalUnitArnList = (output, context) => {
|
|
@@ -5917,12 +5784,8 @@ const deserializeAws_restJson1OsVersionList = (output, context) => {
|
|
|
5917
5784
|
};
|
|
5918
5785
|
const deserializeAws_restJson1OutputResources = (output, context) => {
|
|
5919
5786
|
return {
|
|
5920
|
-
amis: output.amis
|
|
5921
|
-
|
|
5922
|
-
: undefined,
|
|
5923
|
-
containers: output.containers !== undefined && output.containers !== null
|
|
5924
|
-
? deserializeAws_restJson1ContainerList(output.containers, context)
|
|
5925
|
-
: undefined,
|
|
5787
|
+
amis: output.amis != null ? deserializeAws_restJson1AmiList(output.amis, context) : undefined,
|
|
5788
|
+
containers: output.containers != null ? deserializeAws_restJson1ContainerList(output.containers, context) : undefined,
|
|
5926
5789
|
};
|
|
5927
5790
|
};
|
|
5928
5791
|
const deserializeAws_restJson1RegionList = (output, context) => {
|
|
@@ -6061,5 +5924,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
6061
5924
|
if (data["__type"] !== undefined) {
|
|
6062
5925
|
return sanitizeErrorCode(data["__type"]);
|
|
6063
5926
|
}
|
|
6064
|
-
return "";
|
|
6065
5927
|
};
|