@aws-sdk/client-imagebuilder 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 !== undefined &&
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 !== undefined &&
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 !== undefined && input.data !== null && { data: input.data }),
47
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
48
- ...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
49
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
50
- ...(input.platform !== undefined && input.platform !== null && { platform: input.platform }),
51
- ...(input.semanticVersion !== undefined &&
52
- input.semanticVersion !== null && { semanticVersion: input.semanticVersion }),
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 !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
58
- ...(input.uri !== undefined && input.uri !== null && { uri: 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 !== undefined &&
82
- input.components !== null && {
77
+ ...(input.components != null && {
83
78
  components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
84
79
  }),
85
- ...(input.containerType !== undefined && input.containerType !== null && { containerType: input.containerType }),
86
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
87
- ...(input.dockerfileTemplateData !== undefined &&
88
- input.dockerfileTemplateData !== null && { dockerfileTemplateData: input.dockerfileTemplateData }),
89
- ...(input.dockerfileTemplateUri !== undefined &&
90
- input.dockerfileTemplateUri !== null && { dockerfileTemplateUri: input.dockerfileTemplateUri }),
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 !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
98
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
99
- ...(input.parentImage !== undefined && input.parentImage !== null && { parentImage: input.parentImage }),
100
- ...(input.platformOverride !== undefined &&
101
- input.platformOverride !== null && { platformOverride: input.platformOverride }),
102
- ...(input.semanticVersion !== undefined &&
103
- input.semanticVersion !== null && { semanticVersion: input.semanticVersion }),
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 !== undefined &&
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 !== undefined && input.description !== null && { description: input.description }),
134
- ...(input.distributions !== undefined &&
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 !== undefined && input.name !== null && { name: input.name }),
139
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
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 !== undefined &&
163
- input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn }),
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 !== undefined &&
169
- input.enhancedImageMetadataEnabled !== null && {
152
+ ...(input.enhancedImageMetadataEnabled != null && {
170
153
  enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
171
154
  }),
172
- ...(input.imageRecipeArn !== undefined &&
173
- input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn }),
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 !== undefined &&
179
- input.infrastructureConfigurationArn !== null && {
159
+ ...(input.infrastructureConfigurationArn != null && {
180
160
  infrastructureConfigurationArn: input.infrastructureConfigurationArn,
181
161
  }),
182
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
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 !== undefined &&
206
- input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn }),
207
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
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 !== undefined &&
213
- input.enhancedImageMetadataEnabled !== null && {
190
+ ...(input.enhancedImageMetadataEnabled != null && {
214
191
  enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
215
192
  }),
216
- ...(input.imageRecipeArn !== undefined &&
217
- input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn }),
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 !== undefined &&
223
- input.infrastructureConfigurationArn !== null && {
197
+ ...(input.infrastructureConfigurationArn != null && {
224
198
  infrastructureConfigurationArn: input.infrastructureConfigurationArn,
225
199
  }),
226
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
227
- ...(input.schedule !== undefined &&
228
- input.schedule !== null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) }),
229
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
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 !== undefined &&
253
- input.additionalInstanceConfiguration !== null && {
225
+ ...(input.additionalInstanceConfiguration != null && {
254
226
  additionalInstanceConfiguration: serializeAws_restJson1AdditionalInstanceConfiguration(input.additionalInstanceConfiguration, context),
255
227
  }),
256
- ...(input.blockDeviceMappings !== undefined &&
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 !== undefined &&
262
- input.components !== null && {
232
+ ...(input.components != null && {
263
233
  components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
264
234
  }),
265
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
266
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
267
- ...(input.parentImage !== undefined && input.parentImage !== null && { parentImage: input.parentImage }),
268
- ...(input.semanticVersion !== undefined &&
269
- input.semanticVersion !== null && { semanticVersion: input.semanticVersion }),
270
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
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 !== undefined && input.description !== null && { description: input.description }),
296
- ...(input.instanceMetadataOptions !== undefined &&
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 !== undefined &&
301
- input.instanceProfileName !== null && { instanceProfileName: input.instanceProfileName }),
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 !== undefined && input.keyPair !== null && { keyPair: input.keyPair }),
307
- ...(input.logging !== undefined &&
308
- input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
309
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
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 !== undefined &&
315
- input.securityGroupIds !== null && {
277
+ ...(input.securityGroupIds != null && {
316
278
  securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
317
279
  }),
318
- ...(input.snsTopicArn !== undefined && input.snsTopicArn !== null && { snsTopicArn: input.snsTopicArn }),
319
- ...(input.subnetId !== undefined && input.subnetId !== null && { subnetId: input.subnetId }),
320
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
321
- ...(input.terminateInstanceOnFailure !== undefined &&
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 !== undefined &&
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 !== undefined && input.data !== null && { data: input.data }),
716
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
717
- ...(input.format !== undefined && input.format !== null && { format: input.format }),
718
- ...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
719
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
720
- ...(input.platform !== undefined && input.platform !== null && { platform: input.platform }),
721
- ...(input.semanticVersion !== undefined &&
722
- input.semanticVersion !== null && { semanticVersion: input.semanticVersion }),
723
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
724
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
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 !== undefined && input.description !== null && { description: input.description }),
749
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
750
- ...(input.osVersion !== undefined && input.osVersion !== null && { osVersion: input.osVersion }),
751
- ...(input.platform !== undefined && input.platform !== null && { platform: input.platform }),
752
- ...(input.semanticVersion !== undefined &&
753
- input.semanticVersion !== null && { semanticVersion: input.semanticVersion }),
754
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
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 !== undefined &&
778
- input.componentVersionArn !== null && { componentVersionArn: input.componentVersionArn }),
779
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
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 !== undefined && input.byName !== null && { byName: input.byName }),
802
- ...(input.filters !== undefined &&
803
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
804
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
805
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
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 !== undefined &&
828
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
829
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
830
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
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 !== undefined &&
853
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
854
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
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 !== undefined &&
877
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
878
- ...(input.imageVersionArn !== undefined &&
879
- input.imageVersionArn !== null && { imageVersionArn: input.imageVersionArn }),
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 !== undefined &&
903
- input.imageBuildVersionArn !== null && { imageBuildVersionArn: input.imageBuildVersionArn }),
904
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
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 !== undefined &&
927
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
928
- ...(input.imagePipelineArn !== undefined &&
929
- input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn }),
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 !== undefined &&
953
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
954
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
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 !== undefined &&
977
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
978
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
979
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
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 !== undefined && input.byName !== null && { byName: input.byName }),
1002
- ...(input.filters !== undefined &&
1003
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
1004
- ...(input.includeDeprecated !== undefined &&
1005
- input.includeDeprecated !== null && { includeDeprecated: input.includeDeprecated }),
1006
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
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 !== undefined &&
1030
- input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) }),
1031
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
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 !== undefined && input.componentArn !== null && { componentArn: input.componentArn }),
1080
- ...(input.policy !== undefined && input.policy !== null && { policy: 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 !== undefined &&
1102
- input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn }),
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 !== undefined && input.imageArn !== null && { imageArn: input.imageArn }),
1125
- ...(input.policy !== undefined && input.policy !== null && { policy: 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 !== undefined &&
1147
- input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn }),
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 !== undefined &&
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 !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
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 !== undefined && input.description !== null && { description: input.description }),
1257
- ...(input.distributionConfigurationArn !== undefined &&
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 !== undefined &&
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 !== undefined &&
1288
- input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn }),
1289
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
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 !== undefined &&
1295
- input.enhancedImageMetadataEnabled !== null && {
1230
+ ...(input.enhancedImageMetadataEnabled != null && {
1296
1231
  enhancedImageMetadataEnabled: input.enhancedImageMetadataEnabled,
1297
1232
  }),
1298
- ...(input.imagePipelineArn !== undefined &&
1299
- input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn }),
1300
- ...(input.imageRecipeArn !== undefined &&
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 !== undefined &&
1307
- input.infrastructureConfigurationArn !== null && {
1238
+ ...(input.infrastructureConfigurationArn != null && {
1308
1239
  infrastructureConfigurationArn: input.infrastructureConfigurationArn,
1309
1240
  }),
1310
- ...(input.schedule !== undefined &&
1311
- input.schedule !== null && { schedule: serializeAws_restJson1Schedule(input.schedule, context) }),
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 !== undefined && input.description !== null && { description: input.description }),
1336
- ...(input.infrastructureConfigurationArn !== undefined &&
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 !== undefined &&
1341
- input.instanceMetadataOptions !== null && {
1269
+ ...(input.instanceMetadataOptions != null && {
1342
1270
  instanceMetadataOptions: serializeAws_restJson1InstanceMetadataOptions(input.instanceMetadataOptions, context),
1343
1271
  }),
1344
- ...(input.instanceProfileName !== undefined &&
1345
- input.instanceProfileName !== null && { instanceProfileName: input.instanceProfileName }),
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 !== undefined && input.keyPair !== null && { keyPair: input.keyPair }),
1351
- ...(input.logging !== undefined &&
1352
- input.logging !== null && { logging: serializeAws_restJson1Logging(input.logging, context) }),
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 !== undefined &&
1358
- input.securityGroupIds !== null && {
1281
+ ...(input.securityGroupIds != null && {
1359
1282
  securityGroupIds: serializeAws_restJson1SecurityGroupIds(input.securityGroupIds, context),
1360
1283
  }),
1361
- ...(input.snsTopicArn !== undefined && input.snsTopicArn !== null && { snsTopicArn: input.snsTopicArn }),
1362
- ...(input.subnetId !== undefined && input.subnetId !== null && { subnetId: input.subnetId }),
1363
- ...(input.terminateInstanceOnFailure !== undefined &&
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,
@@ -4710,36 +4632,30 @@ const serializeAws_restJson1AccountList = (input, context) => {
4710
4632
  };
4711
4633
  const serializeAws_restJson1AdditionalInstanceConfiguration = (input, context) => {
4712
4634
  return {
4713
- ...(input.systemsManagerAgent !== undefined &&
4714
- input.systemsManagerAgent !== null && {
4635
+ ...(input.systemsManagerAgent != null && {
4715
4636
  systemsManagerAgent: serializeAws_restJson1SystemsManagerAgent(input.systemsManagerAgent, context),
4716
4637
  }),
4717
- ...(input.userDataOverride !== undefined &&
4718
- input.userDataOverride !== null && { userDataOverride: input.userDataOverride }),
4638
+ ...(input.userDataOverride != null && { userDataOverride: input.userDataOverride }),
4719
4639
  };
4720
4640
  };
4721
4641
  const serializeAws_restJson1AmiDistributionConfiguration = (input, context) => {
4722
4642
  return {
4723
- ...(input.amiTags !== undefined &&
4724
- input.amiTags !== null && { amiTags: serializeAws_restJson1TagMap(input.amiTags, context) }),
4725
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4726
- ...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
4727
- ...(input.launchPermission !== undefined &&
4728
- 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 && {
4729
4647
  launchPermission: serializeAws_restJson1LaunchPermissionConfiguration(input.launchPermission, context),
4730
4648
  }),
4731
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4732
- ...(input.targetAccountIds !== undefined &&
4733
- input.targetAccountIds !== null && {
4649
+ ...(input.name != null && { name: input.name }),
4650
+ ...(input.targetAccountIds != null && {
4734
4651
  targetAccountIds: serializeAws_restJson1AccountList(input.targetAccountIds, context),
4735
4652
  }),
4736
4653
  };
4737
4654
  };
4738
4655
  const serializeAws_restJson1ComponentConfiguration = (input, context) => {
4739
4656
  return {
4740
- ...(input.componentArn !== undefined && input.componentArn !== null && { componentArn: input.componentArn }),
4741
- ...(input.parameters !== undefined &&
4742
- input.parameters !== null && {
4657
+ ...(input.componentArn != null && { componentArn: input.componentArn }),
4658
+ ...(input.parameters != null && {
4743
4659
  parameters: serializeAws_restJson1ComponentParameterList(input.parameters, context),
4744
4660
  }),
4745
4661
  };
@@ -4756,9 +4672,8 @@ const serializeAws_restJson1ComponentConfigurationList = (input, context) => {
4756
4672
  };
4757
4673
  const serializeAws_restJson1ComponentParameter = (input, context) => {
4758
4674
  return {
4759
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4760
- ...(input.value !== undefined &&
4761
- 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) }),
4762
4677
  };
4763
4678
  };
4764
4679
  const serializeAws_restJson1ComponentParameterList = (input, context) => {
@@ -4783,42 +4698,34 @@ const serializeAws_restJson1ComponentParameterValueList = (input, context) => {
4783
4698
  };
4784
4699
  const serializeAws_restJson1ContainerDistributionConfiguration = (input, context) => {
4785
4700
  return {
4786
- ...(input.containerTags !== undefined &&
4787
- input.containerTags !== null && {
4701
+ ...(input.containerTags != null && {
4788
4702
  containerTags: serializeAws_restJson1StringList(input.containerTags, context),
4789
4703
  }),
4790
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
4791
- ...(input.targetRepository !== undefined &&
4792
- input.targetRepository !== null && {
4704
+ ...(input.description != null && { description: input.description }),
4705
+ ...(input.targetRepository != null && {
4793
4706
  targetRepository: serializeAws_restJson1TargetContainerRepository(input.targetRepository, context),
4794
4707
  }),
4795
4708
  };
4796
4709
  };
4797
4710
  const serializeAws_restJson1Distribution = (input, context) => {
4798
4711
  return {
4799
- ...(input.amiDistributionConfiguration !== undefined &&
4800
- input.amiDistributionConfiguration !== null && {
4712
+ ...(input.amiDistributionConfiguration != null && {
4801
4713
  amiDistributionConfiguration: serializeAws_restJson1AmiDistributionConfiguration(input.amiDistributionConfiguration, context),
4802
4714
  }),
4803
- ...(input.containerDistributionConfiguration !== undefined &&
4804
- input.containerDistributionConfiguration !== null && {
4715
+ ...(input.containerDistributionConfiguration != null && {
4805
4716
  containerDistributionConfiguration: serializeAws_restJson1ContainerDistributionConfiguration(input.containerDistributionConfiguration, context),
4806
4717
  }),
4807
- ...(input.fastLaunchConfigurations !== undefined &&
4808
- input.fastLaunchConfigurations !== null && {
4718
+ ...(input.fastLaunchConfigurations != null && {
4809
4719
  fastLaunchConfigurations: serializeAws_restJson1FastLaunchConfigurationList(input.fastLaunchConfigurations, context),
4810
4720
  }),
4811
- ...(input.launchTemplateConfigurations !== undefined &&
4812
- input.launchTemplateConfigurations !== null && {
4721
+ ...(input.launchTemplateConfigurations != null && {
4813
4722
  launchTemplateConfigurations: serializeAws_restJson1LaunchTemplateConfigurationList(input.launchTemplateConfigurations, context),
4814
4723
  }),
4815
- ...(input.licenseConfigurationArns !== undefined &&
4816
- input.licenseConfigurationArns !== null && {
4724
+ ...(input.licenseConfigurationArns != null && {
4817
4725
  licenseConfigurationArns: serializeAws_restJson1LicenseConfigurationArnList(input.licenseConfigurationArns, context),
4818
4726
  }),
4819
- ...(input.region !== undefined && input.region !== null && { region: input.region }),
4820
- ...(input.s3ExportConfiguration !== undefined &&
4821
- input.s3ExportConfiguration !== null && {
4727
+ ...(input.region != null && { region: input.region }),
4728
+ ...(input.s3ExportConfiguration != null && {
4822
4729
  s3ExportConfiguration: serializeAws_restJson1S3ExportConfiguration(input.s3ExportConfiguration, context),
4823
4730
  }),
4824
4731
  };
@@ -4835,29 +4742,25 @@ const serializeAws_restJson1DistributionList = (input, context) => {
4835
4742
  };
4836
4743
  const serializeAws_restJson1EbsInstanceBlockDeviceSpecification = (input, context) => {
4837
4744
  return {
4838
- ...(input.deleteOnTermination !== undefined &&
4839
- input.deleteOnTermination !== null && { deleteOnTermination: input.deleteOnTermination }),
4840
- ...(input.encrypted !== undefined && input.encrypted !== null && { encrypted: input.encrypted }),
4841
- ...(input.iops !== undefined && input.iops !== null && { iops: input.iops }),
4842
- ...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
4843
- ...(input.snapshotId !== undefined && input.snapshotId !== null && { snapshotId: input.snapshotId }),
4844
- ...(input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput }),
4845
- ...(input.volumeSize !== undefined && input.volumeSize !== null && { volumeSize: input.volumeSize }),
4846
- ...(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 }),
4847
4753
  };
4848
4754
  };
4849
4755
  const serializeAws_restJson1FastLaunchConfiguration = (input, context) => {
4850
4756
  return {
4851
- ...(input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId }),
4852
- ...(input.enabled !== undefined && input.enabled !== null && { enabled: input.enabled }),
4853
- ...(input.launchTemplate !== undefined &&
4854
- input.launchTemplate !== null && {
4757
+ ...(input.accountId != null && { accountId: input.accountId }),
4758
+ ...(input.enabled != null && { enabled: input.enabled }),
4759
+ ...(input.launchTemplate != null && {
4855
4760
  launchTemplate: serializeAws_restJson1FastLaunchLaunchTemplateSpecification(input.launchTemplate, context),
4856
4761
  }),
4857
- ...(input.maxParallelLaunches !== undefined &&
4858
- input.maxParallelLaunches !== null && { maxParallelLaunches: input.maxParallelLaunches }),
4859
- ...(input.snapshotConfiguration !== undefined &&
4860
- input.snapshotConfiguration !== null && {
4762
+ ...(input.maxParallelLaunches != null && { maxParallelLaunches: input.maxParallelLaunches }),
4763
+ ...(input.snapshotConfiguration != null && {
4861
4764
  snapshotConfiguration: serializeAws_restJson1FastLaunchSnapshotConfiguration(input.snapshotConfiguration, context),
4862
4765
  }),
4863
4766
  };
@@ -4874,25 +4777,20 @@ const serializeAws_restJson1FastLaunchConfigurationList = (input, context) => {
4874
4777
  };
4875
4778
  const serializeAws_restJson1FastLaunchLaunchTemplateSpecification = (input, context) => {
4876
4779
  return {
4877
- ...(input.launchTemplateId !== undefined &&
4878
- input.launchTemplateId !== null && { launchTemplateId: input.launchTemplateId }),
4879
- ...(input.launchTemplateName !== undefined &&
4880
- input.launchTemplateName !== null && { launchTemplateName: input.launchTemplateName }),
4881
- ...(input.launchTemplateVersion !== undefined &&
4882
- 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 }),
4883
4783
  };
4884
4784
  };
4885
4785
  const serializeAws_restJson1FastLaunchSnapshotConfiguration = (input, context) => {
4886
4786
  return {
4887
- ...(input.targetResourceCount !== undefined &&
4888
- input.targetResourceCount !== null && { targetResourceCount: input.targetResourceCount }),
4787
+ ...(input.targetResourceCount != null && { targetResourceCount: input.targetResourceCount }),
4889
4788
  };
4890
4789
  };
4891
4790
  const serializeAws_restJson1Filter = (input, context) => {
4892
4791
  return {
4893
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
4894
- ...(input.values !== undefined &&
4895
- 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) }),
4896
4794
  };
4897
4795
  };
4898
4796
  const serializeAws_restJson1FilterList = (input, context) => {
@@ -4917,19 +4815,16 @@ const serializeAws_restJson1FilterValues = (input, context) => {
4917
4815
  };
4918
4816
  const serializeAws_restJson1ImageTestsConfiguration = (input, context) => {
4919
4817
  return {
4920
- ...(input.imageTestsEnabled !== undefined &&
4921
- input.imageTestsEnabled !== null && { imageTestsEnabled: input.imageTestsEnabled }),
4922
- ...(input.timeoutMinutes !== undefined &&
4923
- input.timeoutMinutes !== null && { timeoutMinutes: input.timeoutMinutes }),
4818
+ ...(input.imageTestsEnabled != null && { imageTestsEnabled: input.imageTestsEnabled }),
4819
+ ...(input.timeoutMinutes != null && { timeoutMinutes: input.timeoutMinutes }),
4924
4820
  };
4925
4821
  };
4926
4822
  const serializeAws_restJson1InstanceBlockDeviceMapping = (input, context) => {
4927
4823
  return {
4928
- ...(input.deviceName !== undefined && input.deviceName !== null && { deviceName: input.deviceName }),
4929
- ...(input.ebs !== undefined &&
4930
- input.ebs !== null && { ebs: serializeAws_restJson1EbsInstanceBlockDeviceSpecification(input.ebs, context) }),
4931
- ...(input.noDevice !== undefined && input.noDevice !== null && { noDevice: input.noDevice }),
4932
- ...(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 }),
4933
4828
  };
4934
4829
  };
4935
4830
  const serializeAws_restJson1InstanceBlockDeviceMappings = (input, context) => {
@@ -4944,18 +4839,16 @@ const serializeAws_restJson1InstanceBlockDeviceMappings = (input, context) => {
4944
4839
  };
4945
4840
  const serializeAws_restJson1InstanceConfiguration = (input, context) => {
4946
4841
  return {
4947
- ...(input.blockDeviceMappings !== undefined &&
4948
- input.blockDeviceMappings !== null && {
4842
+ ...(input.blockDeviceMappings != null && {
4949
4843
  blockDeviceMappings: serializeAws_restJson1InstanceBlockDeviceMappings(input.blockDeviceMappings, context),
4950
4844
  }),
4951
- ...(input.image !== undefined && input.image !== null && { image: input.image }),
4845
+ ...(input.image != null && { image: input.image }),
4952
4846
  };
4953
4847
  };
4954
4848
  const serializeAws_restJson1InstanceMetadataOptions = (input, context) => {
4955
4849
  return {
4956
- ...(input.httpPutResponseHopLimit !== undefined &&
4957
- input.httpPutResponseHopLimit !== null && { httpPutResponseHopLimit: input.httpPutResponseHopLimit }),
4958
- ...(input.httpTokens !== undefined && input.httpTokens !== null && { httpTokens: input.httpTokens }),
4850
+ ...(input.httpPutResponseHopLimit != null && { httpPutResponseHopLimit: input.httpPutResponseHopLimit }),
4851
+ ...(input.httpTokens != null && { httpTokens: input.httpTokens }),
4959
4852
  };
4960
4853
  };
4961
4854
  const serializeAws_restJson1InstanceTypeList = (input, context) => {
@@ -4970,27 +4863,21 @@ const serializeAws_restJson1InstanceTypeList = (input, context) => {
4970
4863
  };
4971
4864
  const serializeAws_restJson1LaunchPermissionConfiguration = (input, context) => {
4972
4865
  return {
4973
- ...(input.organizationArns !== undefined &&
4974
- input.organizationArns !== null && {
4866
+ ...(input.organizationArns != null && {
4975
4867
  organizationArns: serializeAws_restJson1OrganizationArnList(input.organizationArns, context),
4976
4868
  }),
4977
- ...(input.organizationalUnitArns !== undefined &&
4978
- input.organizationalUnitArns !== null && {
4869
+ ...(input.organizationalUnitArns != null && {
4979
4870
  organizationalUnitArns: serializeAws_restJson1OrganizationalUnitArnList(input.organizationalUnitArns, context),
4980
4871
  }),
4981
- ...(input.userGroups !== undefined &&
4982
- input.userGroups !== null && { userGroups: serializeAws_restJson1StringList(input.userGroups, context) }),
4983
- ...(input.userIds !== undefined &&
4984
- 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) }),
4985
4874
  };
4986
4875
  };
4987
4876
  const serializeAws_restJson1LaunchTemplateConfiguration = (input, context) => {
4988
4877
  return {
4989
- ...(input.accountId !== undefined && input.accountId !== null && { accountId: input.accountId }),
4990
- ...(input.launchTemplateId !== undefined &&
4991
- input.launchTemplateId !== null && { launchTemplateId: input.launchTemplateId }),
4992
- ...(input.setDefaultVersion !== undefined &&
4993
- 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 }),
4994
4881
  };
4995
4882
  };
4996
4883
  const serializeAws_restJson1LaunchTemplateConfigurationList = (input, context) => {
@@ -5015,8 +4902,7 @@ const serializeAws_restJson1LicenseConfigurationArnList = (input, context) => {
5015
4902
  };
5016
4903
  const serializeAws_restJson1Logging = (input, context) => {
5017
4904
  return {
5018
- ...(input.s3Logs !== undefined &&
5019
- input.s3Logs !== null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }),
4905
+ ...(input.s3Logs != null && { s3Logs: serializeAws_restJson1S3Logs(input.s3Logs, context) }),
5020
4906
  };
5021
4907
  };
5022
4908
  const serializeAws_restJson1OrganizationalUnitArnList = (input, context) => {
@@ -5062,28 +4948,25 @@ const serializeAws_restJson1ResourceTagMap = (input, context) => {
5062
4948
  };
5063
4949
  const serializeAws_restJson1S3ExportConfiguration = (input, context) => {
5064
4950
  return {
5065
- ...(input.diskImageFormat !== undefined &&
5066
- input.diskImageFormat !== null && { diskImageFormat: input.diskImageFormat }),
5067
- ...(input.roleName !== undefined && input.roleName !== null && { roleName: input.roleName }),
5068
- ...(input.s3Bucket !== undefined && input.s3Bucket !== null && { s3Bucket: input.s3Bucket }),
5069
- ...(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 }),
5070
4955
  };
5071
4956
  };
5072
4957
  const serializeAws_restJson1S3Logs = (input, context) => {
5073
4958
  return {
5074
- ...(input.s3BucketName !== undefined && input.s3BucketName !== null && { s3BucketName: input.s3BucketName }),
5075
- ...(input.s3KeyPrefix !== undefined && input.s3KeyPrefix !== null && { s3KeyPrefix: input.s3KeyPrefix }),
4959
+ ...(input.s3BucketName != null && { s3BucketName: input.s3BucketName }),
4960
+ ...(input.s3KeyPrefix != null && { s3KeyPrefix: input.s3KeyPrefix }),
5076
4961
  };
5077
4962
  };
5078
4963
  const serializeAws_restJson1Schedule = (input, context) => {
5079
4964
  return {
5080
- ...(input.pipelineExecutionStartCondition !== undefined &&
5081
- input.pipelineExecutionStartCondition !== null && {
4965
+ ...(input.pipelineExecutionStartCondition != null && {
5082
4966
  pipelineExecutionStartCondition: input.pipelineExecutionStartCondition,
5083
4967
  }),
5084
- ...(input.scheduleExpression !== undefined &&
5085
- input.scheduleExpression !== null && { scheduleExpression: input.scheduleExpression }),
5086
- ...(input.timezone !== undefined && input.timezone !== null && { timezone: input.timezone }),
4968
+ ...(input.scheduleExpression != null && { scheduleExpression: input.scheduleExpression }),
4969
+ ...(input.timezone != null && { timezone: input.timezone }),
5087
4970
  };
5088
4971
  };
5089
4972
  const serializeAws_restJson1SecurityGroupIds = (input, context) => {
@@ -5108,8 +4991,7 @@ const serializeAws_restJson1StringList = (input, context) => {
5108
4991
  };
5109
4992
  const serializeAws_restJson1SystemsManagerAgent = (input, context) => {
5110
4993
  return {
5111
- ...(input.uninstallAfterBuild !== undefined &&
5112
- input.uninstallAfterBuild !== null && { uninstallAfterBuild: input.uninstallAfterBuild }),
4994
+ ...(input.uninstallAfterBuild != null && { uninstallAfterBuild: input.uninstallAfterBuild }),
5113
4995
  };
5114
4996
  };
5115
4997
  const serializeAws_restJson1TagMap = (input, context) => {
@@ -5125,9 +5007,8 @@ const serializeAws_restJson1TagMap = (input, context) => {
5125
5007
  };
5126
5008
  const serializeAws_restJson1TargetContainerRepository = (input, context) => {
5127
5009
  return {
5128
- ...(input.repositoryName !== undefined &&
5129
- input.repositoryName !== null && { repositoryName: input.repositoryName }),
5130
- ...(input.service !== undefined && input.service !== null && { service: input.service }),
5010
+ ...(input.repositoryName != null && { repositoryName: input.repositoryName }),
5011
+ ...(input.service != null && { service: input.service }),
5131
5012
  };
5132
5013
  };
5133
5014
  const deserializeAws_restJson1AccountList = (output, context) => {
@@ -5143,7 +5024,7 @@ const deserializeAws_restJson1AccountList = (output, context) => {
5143
5024
  };
5144
5025
  const deserializeAws_restJson1AdditionalInstanceConfiguration = (output, context) => {
5145
5026
  return {
5146
- systemsManagerAgent: output.systemsManagerAgent !== undefined && output.systemsManagerAgent !== null
5027
+ systemsManagerAgent: output.systemsManagerAgent != null
5147
5028
  ? deserializeAws_restJson1SystemsManagerAgent(output.systemsManagerAgent, context)
5148
5029
  : undefined,
5149
5030
  userDataOverride: (0, smithy_client_1.expectString)(output.userDataOverride),
@@ -5156,23 +5037,19 @@ const deserializeAws_restJson1Ami = (output, context) => {
5156
5037
  image: (0, smithy_client_1.expectString)(output.image),
5157
5038
  name: (0, smithy_client_1.expectString)(output.name),
5158
5039
  region: (0, smithy_client_1.expectString)(output.region),
5159
- state: output.state !== undefined && output.state !== null
5160
- ? deserializeAws_restJson1ImageState(output.state, context)
5161
- : undefined,
5040
+ state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
5162
5041
  };
5163
5042
  };
5164
5043
  const deserializeAws_restJson1AmiDistributionConfiguration = (output, context) => {
5165
5044
  return {
5166
- amiTags: output.amiTags !== undefined && output.amiTags !== null
5167
- ? deserializeAws_restJson1TagMap(output.amiTags, context)
5168
- : undefined,
5045
+ amiTags: output.amiTags != null ? deserializeAws_restJson1TagMap(output.amiTags, context) : undefined,
5169
5046
  description: (0, smithy_client_1.expectString)(output.description),
5170
5047
  kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
5171
- launchPermission: output.launchPermission !== undefined && output.launchPermission !== null
5048
+ launchPermission: output.launchPermission != null
5172
5049
  ? deserializeAws_restJson1LaunchPermissionConfiguration(output.launchPermission, context)
5173
5050
  : undefined,
5174
5051
  name: (0, smithy_client_1.expectString)(output.name),
5175
- targetAccountIds: output.targetAccountIds !== undefined && output.targetAccountIds !== null
5052
+ targetAccountIds: output.targetAccountIds != null
5176
5053
  ? deserializeAws_restJson1AccountList(output.targetAccountIds, context)
5177
5054
  : undefined,
5178
5055
  };
@@ -5199,19 +5076,15 @@ const deserializeAws_restJson1Component = (output, context) => {
5199
5076
  kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
5200
5077
  name: (0, smithy_client_1.expectString)(output.name),
5201
5078
  owner: (0, smithy_client_1.expectString)(output.owner),
5202
- parameters: output.parameters !== undefined && output.parameters !== null
5079
+ parameters: output.parameters != null
5203
5080
  ? deserializeAws_restJson1ComponentParameterDetailList(output.parameters, context)
5204
5081
  : undefined,
5205
5082
  platform: (0, smithy_client_1.expectString)(output.platform),
5206
- state: output.state !== undefined && output.state !== null
5207
- ? deserializeAws_restJson1ComponentState(output.state, context)
5208
- : undefined,
5209
- supportedOsVersions: output.supportedOsVersions !== undefined && output.supportedOsVersions !== null
5083
+ state: output.state != null ? deserializeAws_restJson1ComponentState(output.state, context) : undefined,
5084
+ supportedOsVersions: output.supportedOsVersions != null
5210
5085
  ? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
5211
5086
  : undefined,
5212
- tags: output.tags !== undefined && output.tags !== null
5213
- ? deserializeAws_restJson1TagMap(output.tags, context)
5214
- : undefined,
5087
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5215
5088
  type: (0, smithy_client_1.expectString)(output.type),
5216
5089
  version: (0, smithy_client_1.expectString)(output.version),
5217
5090
  };
@@ -5219,7 +5092,7 @@ const deserializeAws_restJson1Component = (output, context) => {
5219
5092
  const deserializeAws_restJson1ComponentConfiguration = (output, context) => {
5220
5093
  return {
5221
5094
  componentArn: (0, smithy_client_1.expectString)(output.componentArn),
5222
- parameters: output.parameters !== undefined && output.parameters !== null
5095
+ parameters: output.parameters != null
5223
5096
  ? deserializeAws_restJson1ComponentParameterList(output.parameters, context)
5224
5097
  : undefined,
5225
5098
  };
@@ -5238,14 +5111,12 @@ const deserializeAws_restJson1ComponentConfigurationList = (output, context) =>
5238
5111
  const deserializeAws_restJson1ComponentParameter = (output, context) => {
5239
5112
  return {
5240
5113
  name: (0, smithy_client_1.expectString)(output.name),
5241
- value: output.value !== undefined && output.value !== null
5242
- ? deserializeAws_restJson1ComponentParameterValueList(output.value, context)
5243
- : undefined,
5114
+ value: output.value != null ? deserializeAws_restJson1ComponentParameterValueList(output.value, context) : undefined,
5244
5115
  };
5245
5116
  };
5246
5117
  const deserializeAws_restJson1ComponentParameterDetail = (output, context) => {
5247
5118
  return {
5248
- defaultValue: output.defaultValue !== undefined && output.defaultValue !== null
5119
+ defaultValue: output.defaultValue != null
5249
5120
  ? deserializeAws_restJson1ComponentParameterValueList(output.defaultValue, context)
5250
5121
  : undefined,
5251
5122
  description: (0, smithy_client_1.expectString)(output.description),
@@ -5301,15 +5172,11 @@ const deserializeAws_restJson1ComponentSummary = (output, context) => {
5301
5172
  name: (0, smithy_client_1.expectString)(output.name),
5302
5173
  owner: (0, smithy_client_1.expectString)(output.owner),
5303
5174
  platform: (0, smithy_client_1.expectString)(output.platform),
5304
- state: output.state !== undefined && output.state !== null
5305
- ? deserializeAws_restJson1ComponentState(output.state, context)
5306
- : undefined,
5307
- supportedOsVersions: output.supportedOsVersions !== undefined && output.supportedOsVersions !== null
5175
+ state: output.state != null ? deserializeAws_restJson1ComponentState(output.state, context) : undefined,
5176
+ supportedOsVersions: output.supportedOsVersions != null
5308
5177
  ? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
5309
5178
  : undefined,
5310
- tags: output.tags !== undefined && output.tags !== null
5311
- ? deserializeAws_restJson1TagMap(output.tags, context)
5312
- : undefined,
5179
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5313
5180
  type: (0, smithy_client_1.expectString)(output.type),
5314
5181
  version: (0, smithy_client_1.expectString)(output.version),
5315
5182
  };
@@ -5333,7 +5200,7 @@ const deserializeAws_restJson1ComponentVersion = (output, context) => {
5333
5200
  name: (0, smithy_client_1.expectString)(output.name),
5334
5201
  owner: (0, smithy_client_1.expectString)(output.owner),
5335
5202
  platform: (0, smithy_client_1.expectString)(output.platform),
5336
- supportedOsVersions: output.supportedOsVersions !== undefined && output.supportedOsVersions !== null
5203
+ supportedOsVersions: output.supportedOsVersions != null
5337
5204
  ? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
5338
5205
  : undefined,
5339
5206
  type: (0, smithy_client_1.expectString)(output.type),
@@ -5353,19 +5220,15 @@ const deserializeAws_restJson1ComponentVersionList = (output, context) => {
5353
5220
  };
5354
5221
  const deserializeAws_restJson1Container = (output, context) => {
5355
5222
  return {
5356
- imageUris: output.imageUris !== undefined && output.imageUris !== null
5357
- ? deserializeAws_restJson1StringList(output.imageUris, context)
5358
- : undefined,
5223
+ imageUris: output.imageUris != null ? deserializeAws_restJson1StringList(output.imageUris, context) : undefined,
5359
5224
  region: (0, smithy_client_1.expectString)(output.region),
5360
5225
  };
5361
5226
  };
5362
5227
  const deserializeAws_restJson1ContainerDistributionConfiguration = (output, context) => {
5363
5228
  return {
5364
- containerTags: output.containerTags !== undefined && output.containerTags !== null
5365
- ? deserializeAws_restJson1StringList(output.containerTags, context)
5366
- : undefined,
5229
+ containerTags: output.containerTags != null ? deserializeAws_restJson1StringList(output.containerTags, context) : undefined,
5367
5230
  description: (0, smithy_client_1.expectString)(output.description),
5368
- targetRepository: output.targetRepository !== undefined && output.targetRepository !== null
5231
+ targetRepository: output.targetRepository != null
5369
5232
  ? deserializeAws_restJson1TargetContainerRepository(output.targetRepository, context)
5370
5233
  : undefined,
5371
5234
  };
@@ -5384,7 +5247,7 @@ const deserializeAws_restJson1ContainerList = (output, context) => {
5384
5247
  const deserializeAws_restJson1ContainerRecipe = (output, context) => {
5385
5248
  return {
5386
5249
  arn: (0, smithy_client_1.expectString)(output.arn),
5387
- components: output.components !== undefined && output.components !== null
5250
+ components: output.components != null
5388
5251
  ? deserializeAws_restJson1ComponentConfigurationList(output.components, context)
5389
5252
  : undefined,
5390
5253
  containerType: (0, smithy_client_1.expectString)(output.containerType),
@@ -5392,7 +5255,7 @@ const deserializeAws_restJson1ContainerRecipe = (output, context) => {
5392
5255
  description: (0, smithy_client_1.expectString)(output.description),
5393
5256
  dockerfileTemplateData: (0, smithy_client_1.expectString)(output.dockerfileTemplateData),
5394
5257
  encrypted: (0, smithy_client_1.expectBoolean)(output.encrypted),
5395
- instanceConfiguration: output.instanceConfiguration !== undefined && output.instanceConfiguration !== null
5258
+ instanceConfiguration: output.instanceConfiguration != null
5396
5259
  ? deserializeAws_restJson1InstanceConfiguration(output.instanceConfiguration, context)
5397
5260
  : undefined,
5398
5261
  kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
@@ -5400,10 +5263,8 @@ const deserializeAws_restJson1ContainerRecipe = (output, context) => {
5400
5263
  owner: (0, smithy_client_1.expectString)(output.owner),
5401
5264
  parentImage: (0, smithy_client_1.expectString)(output.parentImage),
5402
5265
  platform: (0, smithy_client_1.expectString)(output.platform),
5403
- tags: output.tags !== undefined && output.tags !== null
5404
- ? deserializeAws_restJson1TagMap(output.tags, context)
5405
- : undefined,
5406
- targetRepository: output.targetRepository !== undefined && output.targetRepository !== null
5266
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5267
+ targetRepository: output.targetRepository != null
5407
5268
  ? deserializeAws_restJson1TargetContainerRepository(output.targetRepository, context)
5408
5269
  : undefined,
5409
5270
  version: (0, smithy_client_1.expectString)(output.version),
@@ -5419,9 +5280,7 @@ const deserializeAws_restJson1ContainerRecipeSummary = (output, context) => {
5419
5280
  owner: (0, smithy_client_1.expectString)(output.owner),
5420
5281
  parentImage: (0, smithy_client_1.expectString)(output.parentImage),
5421
5282
  platform: (0, smithy_client_1.expectString)(output.platform),
5422
- tags: output.tags !== undefined && output.tags !== null
5423
- ? deserializeAws_restJson1TagMap(output.tags, context)
5424
- : undefined,
5283
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5425
5284
  };
5426
5285
  };
5427
5286
  const deserializeAws_restJson1ContainerRecipeSummaryList = (output, context) => {
@@ -5437,23 +5296,23 @@ const deserializeAws_restJson1ContainerRecipeSummaryList = (output, context) =>
5437
5296
  };
5438
5297
  const deserializeAws_restJson1Distribution = (output, context) => {
5439
5298
  return {
5440
- amiDistributionConfiguration: output.amiDistributionConfiguration !== undefined && output.amiDistributionConfiguration !== null
5299
+ amiDistributionConfiguration: output.amiDistributionConfiguration != null
5441
5300
  ? deserializeAws_restJson1AmiDistributionConfiguration(output.amiDistributionConfiguration, context)
5442
5301
  : undefined,
5443
- containerDistributionConfiguration: output.containerDistributionConfiguration !== undefined && output.containerDistributionConfiguration !== null
5302
+ containerDistributionConfiguration: output.containerDistributionConfiguration != null
5444
5303
  ? deserializeAws_restJson1ContainerDistributionConfiguration(output.containerDistributionConfiguration, context)
5445
5304
  : undefined,
5446
- fastLaunchConfigurations: output.fastLaunchConfigurations !== undefined && output.fastLaunchConfigurations !== null
5305
+ fastLaunchConfigurations: output.fastLaunchConfigurations != null
5447
5306
  ? deserializeAws_restJson1FastLaunchConfigurationList(output.fastLaunchConfigurations, context)
5448
5307
  : undefined,
5449
- launchTemplateConfigurations: output.launchTemplateConfigurations !== undefined && output.launchTemplateConfigurations !== null
5308
+ launchTemplateConfigurations: output.launchTemplateConfigurations != null
5450
5309
  ? deserializeAws_restJson1LaunchTemplateConfigurationList(output.launchTemplateConfigurations, context)
5451
5310
  : undefined,
5452
- licenseConfigurationArns: output.licenseConfigurationArns !== undefined && output.licenseConfigurationArns !== null
5311
+ licenseConfigurationArns: output.licenseConfigurationArns != null
5453
5312
  ? deserializeAws_restJson1LicenseConfigurationArnList(output.licenseConfigurationArns, context)
5454
5313
  : undefined,
5455
5314
  region: (0, smithy_client_1.expectString)(output.region),
5456
- s3ExportConfiguration: output.s3ExportConfiguration !== undefined && output.s3ExportConfiguration !== null
5315
+ s3ExportConfiguration: output.s3ExportConfiguration != null
5457
5316
  ? deserializeAws_restJson1S3ExportConfiguration(output.s3ExportConfiguration, context)
5458
5317
  : undefined,
5459
5318
  };
@@ -5464,13 +5323,11 @@ const deserializeAws_restJson1DistributionConfiguration = (output, context) => {
5464
5323
  dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5465
5324
  dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
5466
5325
  description: (0, smithy_client_1.expectString)(output.description),
5467
- distributions: output.distributions !== undefined && output.distributions !== null
5326
+ distributions: output.distributions != null
5468
5327
  ? deserializeAws_restJson1DistributionList(output.distributions, context)
5469
5328
  : undefined,
5470
5329
  name: (0, smithy_client_1.expectString)(output.name),
5471
- tags: output.tags !== undefined && output.tags !== null
5472
- ? deserializeAws_restJson1TagMap(output.tags, context)
5473
- : undefined,
5330
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5474
5331
  timeoutMinutes: (0, smithy_client_1.expectInt32)(output.timeoutMinutes),
5475
5332
  };
5476
5333
  };
@@ -5481,12 +5338,8 @@ const deserializeAws_restJson1DistributionConfigurationSummary = (output, contex
5481
5338
  dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
5482
5339
  description: (0, smithy_client_1.expectString)(output.description),
5483
5340
  name: (0, smithy_client_1.expectString)(output.name),
5484
- regions: output.regions !== undefined && output.regions !== null
5485
- ? deserializeAws_restJson1RegionList(output.regions, context)
5486
- : undefined,
5487
- tags: output.tags !== undefined && output.tags !== null
5488
- ? deserializeAws_restJson1TagMap(output.tags, context)
5489
- : undefined,
5341
+ regions: output.regions != null ? deserializeAws_restJson1RegionList(output.regions, context) : undefined,
5342
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5490
5343
  };
5491
5344
  };
5492
5345
  const deserializeAws_restJson1DistributionConfigurationSummaryList = (output, context) => {
@@ -5527,11 +5380,11 @@ const deserializeAws_restJson1FastLaunchConfiguration = (output, context) => {
5527
5380
  return {
5528
5381
  accountId: (0, smithy_client_1.expectString)(output.accountId),
5529
5382
  enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
5530
- launchTemplate: output.launchTemplate !== undefined && output.launchTemplate !== null
5383
+ launchTemplate: output.launchTemplate != null
5531
5384
  ? deserializeAws_restJson1FastLaunchLaunchTemplateSpecification(output.launchTemplate, context)
5532
5385
  : undefined,
5533
5386
  maxParallelLaunches: (0, smithy_client_1.expectInt32)(output.maxParallelLaunches),
5534
- snapshotConfiguration: output.snapshotConfiguration !== undefined && output.snapshotConfiguration !== null
5387
+ snapshotConfiguration: output.snapshotConfiguration != null
5535
5388
  ? deserializeAws_restJson1FastLaunchSnapshotConfiguration(output.snapshotConfiguration, context)
5536
5389
  : undefined,
5537
5390
  };
@@ -5563,37 +5416,31 @@ const deserializeAws_restJson1Image = (output, context) => {
5563
5416
  return {
5564
5417
  arn: (0, smithy_client_1.expectString)(output.arn),
5565
5418
  buildType: (0, smithy_client_1.expectString)(output.buildType),
5566
- containerRecipe: output.containerRecipe !== undefined && output.containerRecipe !== null
5419
+ containerRecipe: output.containerRecipe != null
5567
5420
  ? deserializeAws_restJson1ContainerRecipe(output.containerRecipe, context)
5568
5421
  : undefined,
5569
5422
  dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5570
- distributionConfiguration: output.distributionConfiguration !== undefined && output.distributionConfiguration !== null
5423
+ distributionConfiguration: output.distributionConfiguration != null
5571
5424
  ? deserializeAws_restJson1DistributionConfiguration(output.distributionConfiguration, context)
5572
5425
  : undefined,
5573
5426
  enhancedImageMetadataEnabled: (0, smithy_client_1.expectBoolean)(output.enhancedImageMetadataEnabled),
5574
- imageRecipe: output.imageRecipe !== undefined && output.imageRecipe !== null
5575
- ? deserializeAws_restJson1ImageRecipe(output.imageRecipe, context)
5576
- : undefined,
5577
- imageTestsConfiguration: output.imageTestsConfiguration !== undefined && output.imageTestsConfiguration !== null
5427
+ imageRecipe: output.imageRecipe != null ? deserializeAws_restJson1ImageRecipe(output.imageRecipe, context) : undefined,
5428
+ imageTestsConfiguration: output.imageTestsConfiguration != null
5578
5429
  ? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
5579
5430
  : undefined,
5580
- infrastructureConfiguration: output.infrastructureConfiguration !== undefined && output.infrastructureConfiguration !== null
5431
+ infrastructureConfiguration: output.infrastructureConfiguration != null
5581
5432
  ? deserializeAws_restJson1InfrastructureConfiguration(output.infrastructureConfiguration, context)
5582
5433
  : undefined,
5583
5434
  name: (0, smithy_client_1.expectString)(output.name),
5584
5435
  osVersion: (0, smithy_client_1.expectString)(output.osVersion),
5585
- outputResources: output.outputResources !== undefined && output.outputResources !== null
5436
+ outputResources: output.outputResources != null
5586
5437
  ? deserializeAws_restJson1OutputResources(output.outputResources, context)
5587
5438
  : undefined,
5588
5439
  platform: (0, smithy_client_1.expectString)(output.platform),
5589
5440
  sourcePipelineArn: (0, smithy_client_1.expectString)(output.sourcePipelineArn),
5590
5441
  sourcePipelineName: (0, smithy_client_1.expectString)(output.sourcePipelineName),
5591
- state: output.state !== undefined && output.state !== null
5592
- ? deserializeAws_restJson1ImageState(output.state, context)
5593
- : undefined,
5594
- tags: output.tags !== undefined && output.tags !== null
5595
- ? deserializeAws_restJson1TagMap(output.tags, context)
5596
- : undefined,
5442
+ state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
5443
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5597
5444
  type: (0, smithy_client_1.expectString)(output.type),
5598
5445
  version: (0, smithy_client_1.expectString)(output.version),
5599
5446
  };
@@ -5627,19 +5474,15 @@ const deserializeAws_restJson1ImagePipeline = (output, context) => {
5627
5474
  distributionConfigurationArn: (0, smithy_client_1.expectString)(output.distributionConfigurationArn),
5628
5475
  enhancedImageMetadataEnabled: (0, smithy_client_1.expectBoolean)(output.enhancedImageMetadataEnabled),
5629
5476
  imageRecipeArn: (0, smithy_client_1.expectString)(output.imageRecipeArn),
5630
- imageTestsConfiguration: output.imageTestsConfiguration !== undefined && output.imageTestsConfiguration !== null
5477
+ imageTestsConfiguration: output.imageTestsConfiguration != null
5631
5478
  ? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
5632
5479
  : undefined,
5633
5480
  infrastructureConfigurationArn: (0, smithy_client_1.expectString)(output.infrastructureConfigurationArn),
5634
5481
  name: (0, smithy_client_1.expectString)(output.name),
5635
5482
  platform: (0, smithy_client_1.expectString)(output.platform),
5636
- schedule: output.schedule !== undefined && output.schedule !== null
5637
- ? deserializeAws_restJson1Schedule(output.schedule, context)
5638
- : undefined,
5483
+ schedule: output.schedule != null ? deserializeAws_restJson1Schedule(output.schedule, context) : undefined,
5639
5484
  status: (0, smithy_client_1.expectString)(output.status),
5640
- tags: output.tags !== undefined && output.tags !== null
5641
- ? deserializeAws_restJson1TagMap(output.tags, context)
5642
- : undefined,
5485
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5643
5486
  };
5644
5487
  };
5645
5488
  const deserializeAws_restJson1ImagePipelineList = (output, context) => {
@@ -5655,14 +5498,14 @@ const deserializeAws_restJson1ImagePipelineList = (output, context) => {
5655
5498
  };
5656
5499
  const deserializeAws_restJson1ImageRecipe = (output, context) => {
5657
5500
  return {
5658
- additionalInstanceConfiguration: output.additionalInstanceConfiguration !== undefined && output.additionalInstanceConfiguration !== null
5501
+ additionalInstanceConfiguration: output.additionalInstanceConfiguration != null
5659
5502
  ? deserializeAws_restJson1AdditionalInstanceConfiguration(output.additionalInstanceConfiguration, context)
5660
5503
  : undefined,
5661
5504
  arn: (0, smithy_client_1.expectString)(output.arn),
5662
- blockDeviceMappings: output.blockDeviceMappings !== undefined && output.blockDeviceMappings !== null
5505
+ blockDeviceMappings: output.blockDeviceMappings != null
5663
5506
  ? deserializeAws_restJson1InstanceBlockDeviceMappings(output.blockDeviceMappings, context)
5664
5507
  : undefined,
5665
- components: output.components !== undefined && output.components !== null
5508
+ components: output.components != null
5666
5509
  ? deserializeAws_restJson1ComponentConfigurationList(output.components, context)
5667
5510
  : undefined,
5668
5511
  dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
@@ -5671,9 +5514,7 @@ const deserializeAws_restJson1ImageRecipe = (output, context) => {
5671
5514
  owner: (0, smithy_client_1.expectString)(output.owner),
5672
5515
  parentImage: (0, smithy_client_1.expectString)(output.parentImage),
5673
5516
  platform: (0, smithy_client_1.expectString)(output.platform),
5674
- tags: output.tags !== undefined && output.tags !== null
5675
- ? deserializeAws_restJson1TagMap(output.tags, context)
5676
- : undefined,
5517
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5677
5518
  type: (0, smithy_client_1.expectString)(output.type),
5678
5519
  version: (0, smithy_client_1.expectString)(output.version),
5679
5520
  workingDirectory: (0, smithy_client_1.expectString)(output.workingDirectory),
@@ -5687,9 +5528,7 @@ const deserializeAws_restJson1ImageRecipeSummary = (output, context) => {
5687
5528
  owner: (0, smithy_client_1.expectString)(output.owner),
5688
5529
  parentImage: (0, smithy_client_1.expectString)(output.parentImage),
5689
5530
  platform: (0, smithy_client_1.expectString)(output.platform),
5690
- tags: output.tags !== undefined && output.tags !== null
5691
- ? deserializeAws_restJson1TagMap(output.tags, context)
5692
- : undefined,
5531
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5693
5532
  };
5694
5533
  };
5695
5534
  const deserializeAws_restJson1ImageRecipeSummaryList = (output, context) => {
@@ -5716,17 +5555,13 @@ const deserializeAws_restJson1ImageSummary = (output, context) => {
5716
5555
  dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5717
5556
  name: (0, smithy_client_1.expectString)(output.name),
5718
5557
  osVersion: (0, smithy_client_1.expectString)(output.osVersion),
5719
- outputResources: output.outputResources !== undefined && output.outputResources !== null
5558
+ outputResources: output.outputResources != null
5720
5559
  ? deserializeAws_restJson1OutputResources(output.outputResources, context)
5721
5560
  : undefined,
5722
5561
  owner: (0, smithy_client_1.expectString)(output.owner),
5723
5562
  platform: (0, smithy_client_1.expectString)(output.platform),
5724
- state: output.state !== undefined && output.state !== null
5725
- ? deserializeAws_restJson1ImageState(output.state, context)
5726
- : undefined,
5727
- tags: output.tags !== undefined && output.tags !== null
5728
- ? deserializeAws_restJson1TagMap(output.tags, context)
5729
- : undefined,
5563
+ state: output.state != null ? deserializeAws_restJson1ImageState(output.state, context) : undefined,
5564
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5730
5565
  type: (0, smithy_client_1.expectString)(output.type),
5731
5566
  version: (0, smithy_client_1.expectString)(output.version),
5732
5567
  };
@@ -5778,29 +5613,23 @@ const deserializeAws_restJson1InfrastructureConfiguration = (output, context) =>
5778
5613
  dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5779
5614
  dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
5780
5615
  description: (0, smithy_client_1.expectString)(output.description),
5781
- instanceMetadataOptions: output.instanceMetadataOptions !== undefined && output.instanceMetadataOptions !== null
5616
+ instanceMetadataOptions: output.instanceMetadataOptions != null
5782
5617
  ? deserializeAws_restJson1InstanceMetadataOptions(output.instanceMetadataOptions, context)
5783
5618
  : undefined,
5784
5619
  instanceProfileName: (0, smithy_client_1.expectString)(output.instanceProfileName),
5785
- instanceTypes: output.instanceTypes !== undefined && output.instanceTypes !== null
5620
+ instanceTypes: output.instanceTypes != null
5786
5621
  ? deserializeAws_restJson1InstanceTypeList(output.instanceTypes, context)
5787
5622
  : undefined,
5788
5623
  keyPair: (0, smithy_client_1.expectString)(output.keyPair),
5789
- logging: output.logging !== undefined && output.logging !== null
5790
- ? deserializeAws_restJson1Logging(output.logging, context)
5791
- : undefined,
5624
+ logging: output.logging != null ? deserializeAws_restJson1Logging(output.logging, context) : undefined,
5792
5625
  name: (0, smithy_client_1.expectString)(output.name),
5793
- resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
5794
- ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context)
5795
- : undefined,
5796
- securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
5626
+ resourceTags: output.resourceTags != null ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context) : undefined,
5627
+ securityGroupIds: output.securityGroupIds != null
5797
5628
  ? deserializeAws_restJson1SecurityGroupIds(output.securityGroupIds, context)
5798
5629
  : undefined,
5799
5630
  snsTopicArn: (0, smithy_client_1.expectString)(output.snsTopicArn),
5800
5631
  subnetId: (0, smithy_client_1.expectString)(output.subnetId),
5801
- tags: output.tags !== undefined && output.tags !== null
5802
- ? deserializeAws_restJson1TagMap(output.tags, context)
5803
- : undefined,
5632
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5804
5633
  terminateInstanceOnFailure: (0, smithy_client_1.expectBoolean)(output.terminateInstanceOnFailure),
5805
5634
  };
5806
5635
  };
@@ -5811,16 +5640,12 @@ const deserializeAws_restJson1InfrastructureConfigurationSummary = (output, cont
5811
5640
  dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
5812
5641
  description: (0, smithy_client_1.expectString)(output.description),
5813
5642
  instanceProfileName: (0, smithy_client_1.expectString)(output.instanceProfileName),
5814
- instanceTypes: output.instanceTypes !== undefined && output.instanceTypes !== null
5643
+ instanceTypes: output.instanceTypes != null
5815
5644
  ? deserializeAws_restJson1InstanceTypeList(output.instanceTypes, context)
5816
5645
  : undefined,
5817
5646
  name: (0, smithy_client_1.expectString)(output.name),
5818
- resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
5819
- ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context)
5820
- : undefined,
5821
- tags: output.tags !== undefined && output.tags !== null
5822
- ? deserializeAws_restJson1TagMap(output.tags, context)
5823
- : undefined,
5647
+ resourceTags: output.resourceTags != null ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context) : undefined,
5648
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
5824
5649
  };
5825
5650
  };
5826
5651
  const deserializeAws_restJson1InfrastructureConfigurationSummaryList = (output, context) => {
@@ -5837,9 +5662,7 @@ const deserializeAws_restJson1InfrastructureConfigurationSummaryList = (output,
5837
5662
  const deserializeAws_restJson1InstanceBlockDeviceMapping = (output, context) => {
5838
5663
  return {
5839
5664
  deviceName: (0, smithy_client_1.expectString)(output.deviceName),
5840
- ebs: output.ebs !== undefined && output.ebs !== null
5841
- ? deserializeAws_restJson1EbsInstanceBlockDeviceSpecification(output.ebs, context)
5842
- : undefined,
5665
+ ebs: output.ebs != null ? deserializeAws_restJson1EbsInstanceBlockDeviceSpecification(output.ebs, context) : undefined,
5843
5666
  noDevice: (0, smithy_client_1.expectString)(output.noDevice),
5844
5667
  virtualName: (0, smithy_client_1.expectString)(output.virtualName),
5845
5668
  };
@@ -5857,7 +5680,7 @@ const deserializeAws_restJson1InstanceBlockDeviceMappings = (output, context) =>
5857
5680
  };
5858
5681
  const deserializeAws_restJson1InstanceConfiguration = (output, context) => {
5859
5682
  return {
5860
- blockDeviceMappings: output.blockDeviceMappings !== undefined && output.blockDeviceMappings !== null
5683
+ blockDeviceMappings: output.blockDeviceMappings != null
5861
5684
  ? deserializeAws_restJson1InstanceBlockDeviceMappings(output.blockDeviceMappings, context)
5862
5685
  : undefined,
5863
5686
  image: (0, smithy_client_1.expectString)(output.image),
@@ -5882,18 +5705,14 @@ const deserializeAws_restJson1InstanceTypeList = (output, context) => {
5882
5705
  };
5883
5706
  const deserializeAws_restJson1LaunchPermissionConfiguration = (output, context) => {
5884
5707
  return {
5885
- organizationArns: output.organizationArns !== undefined && output.organizationArns !== null
5708
+ organizationArns: output.organizationArns != null
5886
5709
  ? deserializeAws_restJson1OrganizationArnList(output.organizationArns, context)
5887
5710
  : undefined,
5888
- organizationalUnitArns: output.organizationalUnitArns !== undefined && output.organizationalUnitArns !== null
5711
+ organizationalUnitArns: output.organizationalUnitArns != null
5889
5712
  ? deserializeAws_restJson1OrganizationalUnitArnList(output.organizationalUnitArns, context)
5890
5713
  : undefined,
5891
- userGroups: output.userGroups !== undefined && output.userGroups !== null
5892
- ? deserializeAws_restJson1StringList(output.userGroups, context)
5893
- : undefined,
5894
- userIds: output.userIds !== undefined && output.userIds !== null
5895
- ? deserializeAws_restJson1AccountList(output.userIds, context)
5896
- : undefined,
5714
+ userGroups: output.userGroups != null ? deserializeAws_restJson1StringList(output.userGroups, context) : undefined,
5715
+ userIds: output.userIds != null ? deserializeAws_restJson1AccountList(output.userIds, context) : undefined,
5897
5716
  };
5898
5717
  };
5899
5718
  const deserializeAws_restJson1LaunchTemplateConfiguration = (output, context) => {
@@ -5927,9 +5746,7 @@ const deserializeAws_restJson1LicenseConfigurationArnList = (output, context) =>
5927
5746
  };
5928
5747
  const deserializeAws_restJson1Logging = (output, context) => {
5929
5748
  return {
5930
- s3Logs: output.s3Logs !== undefined && output.s3Logs !== null
5931
- ? deserializeAws_restJson1S3Logs(output.s3Logs, context)
5932
- : undefined,
5749
+ s3Logs: output.s3Logs != null ? deserializeAws_restJson1S3Logs(output.s3Logs, context) : undefined,
5933
5750
  };
5934
5751
  };
5935
5752
  const deserializeAws_restJson1OrganizationalUnitArnList = (output, context) => {
@@ -5967,12 +5784,8 @@ const deserializeAws_restJson1OsVersionList = (output, context) => {
5967
5784
  };
5968
5785
  const deserializeAws_restJson1OutputResources = (output, context) => {
5969
5786
  return {
5970
- amis: output.amis !== undefined && output.amis !== null
5971
- ? deserializeAws_restJson1AmiList(output.amis, context)
5972
- : undefined,
5973
- containers: output.containers !== undefined && output.containers !== null
5974
- ? deserializeAws_restJson1ContainerList(output.containers, context)
5975
- : undefined,
5787
+ amis: output.amis != null ? deserializeAws_restJson1AmiList(output.amis, context) : undefined,
5788
+ containers: output.containers != null ? deserializeAws_restJson1ContainerList(output.containers, context) : undefined,
5976
5789
  };
5977
5790
  };
5978
5791
  const deserializeAws_restJson1RegionList = (output, context) => {
@@ -6093,6 +5906,9 @@ const loadRestJsonErrorCode = (output, data) => {
6093
5906
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
6094
5907
  const sanitizeErrorCode = (rawValue) => {
6095
5908
  let cleanValue = rawValue;
5909
+ if (typeof cleanValue === "number") {
5910
+ cleanValue = cleanValue.toString();
5911
+ }
6096
5912
  if (cleanValue.indexOf(":") >= 0) {
6097
5913
  cleanValue = cleanValue.split(":")[0];
6098
5914
  }