@aws-sdk/client-imagebuilder 3.53.0 → 3.55.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.
Files changed (79) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/ImagebuilderClient.js +13 -13
  3. package/dist-cjs/commands/CancelImageCreationCommand.js +3 -3
  4. package/dist-cjs/commands/CreateComponentCommand.js +3 -3
  5. package/dist-cjs/commands/CreateContainerRecipeCommand.js +3 -3
  6. package/dist-cjs/commands/CreateDistributionConfigurationCommand.js +3 -3
  7. package/dist-cjs/commands/CreateImageCommand.js +3 -3
  8. package/dist-cjs/commands/CreateImagePipelineCommand.js +3 -3
  9. package/dist-cjs/commands/CreateImageRecipeCommand.js +3 -3
  10. package/dist-cjs/commands/CreateInfrastructureConfigurationCommand.js +3 -3
  11. package/dist-cjs/commands/DeleteComponentCommand.js +3 -3
  12. package/dist-cjs/commands/DeleteContainerRecipeCommand.js +3 -3
  13. package/dist-cjs/commands/DeleteDistributionConfigurationCommand.js +3 -3
  14. package/dist-cjs/commands/DeleteImageCommand.js +3 -3
  15. package/dist-cjs/commands/DeleteImagePipelineCommand.js +3 -3
  16. package/dist-cjs/commands/DeleteImageRecipeCommand.js +3 -3
  17. package/dist-cjs/commands/DeleteInfrastructureConfigurationCommand.js +3 -3
  18. package/dist-cjs/commands/GetComponentCommand.js +3 -3
  19. package/dist-cjs/commands/GetComponentPolicyCommand.js +3 -3
  20. package/dist-cjs/commands/GetContainerRecipeCommand.js +3 -3
  21. package/dist-cjs/commands/GetContainerRecipePolicyCommand.js +3 -3
  22. package/dist-cjs/commands/GetDistributionConfigurationCommand.js +3 -3
  23. package/dist-cjs/commands/GetImageCommand.js +3 -3
  24. package/dist-cjs/commands/GetImagePipelineCommand.js +3 -3
  25. package/dist-cjs/commands/GetImagePolicyCommand.js +3 -3
  26. package/dist-cjs/commands/GetImageRecipeCommand.js +3 -3
  27. package/dist-cjs/commands/GetImageRecipePolicyCommand.js +3 -3
  28. package/dist-cjs/commands/GetInfrastructureConfigurationCommand.js +3 -3
  29. package/dist-cjs/commands/ImportComponentCommand.js +3 -3
  30. package/dist-cjs/commands/ImportVmImageCommand.js +3 -3
  31. package/dist-cjs/commands/ListComponentBuildVersionsCommand.js +3 -3
  32. package/dist-cjs/commands/ListComponentsCommand.js +3 -3
  33. package/dist-cjs/commands/ListContainerRecipesCommand.js +3 -3
  34. package/dist-cjs/commands/ListDistributionConfigurationsCommand.js +3 -3
  35. package/dist-cjs/commands/ListImageBuildVersionsCommand.js +3 -3
  36. package/dist-cjs/commands/ListImagePackagesCommand.js +3 -3
  37. package/dist-cjs/commands/ListImagePipelineImagesCommand.js +3 -3
  38. package/dist-cjs/commands/ListImagePipelinesCommand.js +3 -3
  39. package/dist-cjs/commands/ListImageRecipesCommand.js +3 -3
  40. package/dist-cjs/commands/ListImagesCommand.js +3 -3
  41. package/dist-cjs/commands/ListInfrastructureConfigurationsCommand.js +3 -3
  42. package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
  43. package/dist-cjs/commands/PutComponentPolicyCommand.js +3 -3
  44. package/dist-cjs/commands/PutContainerRecipePolicyCommand.js +3 -3
  45. package/dist-cjs/commands/PutImagePolicyCommand.js +3 -3
  46. package/dist-cjs/commands/PutImageRecipePolicyCommand.js +3 -3
  47. package/dist-cjs/commands/StartImagePipelineExecutionCommand.js +3 -3
  48. package/dist-cjs/commands/TagResourceCommand.js +3 -3
  49. package/dist-cjs/commands/UntagResourceCommand.js +3 -3
  50. package/dist-cjs/commands/UpdateDistributionConfigurationCommand.js +3 -3
  51. package/dist-cjs/commands/UpdateImagePipelineCommand.js +3 -3
  52. package/dist-cjs/commands/UpdateInfrastructureConfigurationCommand.js +3 -3
  53. package/dist-cjs/endpoints.js +1 -1
  54. package/dist-cjs/protocols/Aws_restJson1.js +458 -458
  55. package/dist-cjs/runtimeConfig.browser.js +4 -4
  56. package/dist-cjs/runtimeConfig.js +9 -9
  57. package/dist-cjs/runtimeConfig.native.js +1 -1
  58. package/dist-es/Imagebuilder.js +50 -50
  59. package/dist-es/pagination/ListComponentBuildVersionsPaginator.js +4 -4
  60. package/dist-es/pagination/ListComponentsPaginator.js +4 -4
  61. package/dist-es/pagination/ListContainerRecipesPaginator.js +4 -4
  62. package/dist-es/pagination/ListDistributionConfigurationsPaginator.js +4 -4
  63. package/dist-es/pagination/ListImageBuildVersionsPaginator.js +4 -4
  64. package/dist-es/pagination/ListImagePackagesPaginator.js +4 -4
  65. package/dist-es/pagination/ListImagePipelineImagesPaginator.js +4 -4
  66. package/dist-es/pagination/ListImagePipelinesPaginator.js +4 -4
  67. package/dist-es/pagination/ListImageRecipesPaginator.js +4 -4
  68. package/dist-es/pagination/ListImagesPaginator.js +4 -4
  69. package/dist-es/pagination/ListInfrastructureConfigurationsPaginator.js +4 -4
  70. package/dist-es/protocols/Aws_restJson1.js +50 -50
  71. package/dist-types/ImagebuilderClient.d.ts +2 -2
  72. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  73. package/dist-types/runtimeConfig.d.ts +1 -1
  74. package/dist-types/runtimeConfig.native.d.ts +3 -3
  75. package/dist-types/ts3.4/ImagebuilderClient.d.ts +2 -2
  76. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  77. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  78. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  79. package/package.json +34 -34
@@ -16,7 +16,7 @@ const serializeAws_restJson1CancelImageCreationCommand = async (input, context)
16
16
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CancelImageCreation";
17
17
  let body;
18
18
  body = JSON.stringify({
19
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
19
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
20
20
  ...(input.imageBuildVersionArn !== undefined &&
21
21
  input.imageBuildVersionArn !== null && { imageBuildVersionArn: input.imageBuildVersionArn }),
22
22
  });
@@ -42,7 +42,7 @@ const serializeAws_restJson1CreateComponentCommand = async (input, context) => {
42
42
  body = JSON.stringify({
43
43
  ...(input.changeDescription !== undefined &&
44
44
  input.changeDescription !== null && { changeDescription: input.changeDescription }),
45
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
45
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
46
46
  ...(input.data !== undefined && input.data !== null && { data: input.data }),
47
47
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
48
48
  ...(input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId }),
@@ -77,7 +77,7 @@ const serializeAws_restJson1CreateContainerRecipeCommand = async (input, context
77
77
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateContainerRecipe";
78
78
  let body;
79
79
  body = JSON.stringify({
80
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
80
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
81
81
  ...(input.components !== undefined &&
82
82
  input.components !== null && {
83
83
  components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
@@ -129,7 +129,7 @@ const serializeAws_restJson1CreateDistributionConfigurationCommand = async (inpu
129
129
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateDistributionConfiguration";
130
130
  let body;
131
131
  body = JSON.stringify({
132
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
132
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
133
133
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
134
134
  ...(input.distributions !== undefined &&
135
135
  input.distributions !== null && {
@@ -158,7 +158,7 @@ const serializeAws_restJson1CreateImageCommand = async (input, context) => {
158
158
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImage";
159
159
  let body;
160
160
  body = JSON.stringify({
161
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
161
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
162
162
  ...(input.containerRecipeArn !== undefined &&
163
163
  input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn }),
164
164
  ...(input.distributionConfigurationArn !== undefined &&
@@ -201,7 +201,7 @@ const serializeAws_restJson1CreateImagePipelineCommand = async (input, context)
201
201
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateImagePipeline";
202
202
  let body;
203
203
  body = JSON.stringify({
204
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
204
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
205
205
  ...(input.containerRecipeArn !== undefined &&
206
206
  input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn }),
207
207
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
@@ -257,7 +257,7 @@ const serializeAws_restJson1CreateImageRecipeCommand = async (input, context) =>
257
257
  input.blockDeviceMappings !== null && {
258
258
  blockDeviceMappings: serializeAws_restJson1InstanceBlockDeviceMappings(input.blockDeviceMappings, context),
259
259
  }),
260
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
260
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
261
261
  ...(input.components !== undefined &&
262
262
  input.components !== null && {
263
263
  components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
@@ -291,7 +291,7 @@ const serializeAws_restJson1CreateInfrastructureConfigurationCommand = async (in
291
291
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/CreateInfrastructureConfiguration";
292
292
  let body;
293
293
  body = JSON.stringify({
294
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
294
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
295
295
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
296
296
  ...(input.instanceMetadataOptions !== undefined &&
297
297
  input.instanceMetadataOptions !== null && {
@@ -711,7 +711,7 @@ const serializeAws_restJson1ImportComponentCommand = async (input, context) => {
711
711
  body = JSON.stringify({
712
712
  ...(input.changeDescription !== undefined &&
713
713
  input.changeDescription !== null && { changeDescription: input.changeDescription }),
714
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
714
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
715
715
  ...(input.data !== undefined && input.data !== null && { data: input.data }),
716
716
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
717
717
  ...(input.format !== undefined && input.format !== null && { format: input.format }),
@@ -744,7 +744,7 @@ const serializeAws_restJson1ImportVmImageCommand = async (input, context) => {
744
744
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/ImportVmImage";
745
745
  let body;
746
746
  body = JSON.stringify({
747
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
747
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
748
748
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
749
749
  ...(input.name !== undefined && input.name !== null && { name: input.name }),
750
750
  ...(input.osVersion !== undefined && input.osVersion !== null && { osVersion: input.osVersion }),
@@ -1051,7 +1051,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
1051
1051
  if (labelValue.length <= 0) {
1052
1052
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
1053
1053
  }
1054
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1054
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1055
1055
  }
1056
1056
  else {
1057
1057
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -1167,7 +1167,7 @@ const serializeAws_restJson1StartImagePipelineExecutionCommand = async (input, c
1167
1167
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/StartImagePipelineExecution";
1168
1168
  let body;
1169
1169
  body = JSON.stringify({
1170
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1170
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1171
1171
  ...(input.imagePipelineArn !== undefined &&
1172
1172
  input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn }),
1173
1173
  });
@@ -1193,7 +1193,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1193
1193
  if (labelValue.length <= 0) {
1194
1194
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
1195
1195
  }
1196
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1196
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1197
1197
  }
1198
1198
  else {
1199
1199
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -1222,7 +1222,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
1222
1222
  if (labelValue.length <= 0) {
1223
1223
  throw new Error("Empty value provided for input HTTP label: resourceArn.");
1224
1224
  }
1225
- resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1225
+ resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1226
1226
  }
1227
1227
  else {
1228
1228
  throw new Error("No value provided for input HTTP label: resourceArn.");
@@ -1252,7 +1252,7 @@ const serializeAws_restJson1UpdateDistributionConfigurationCommand = async (inpu
1252
1252
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateDistributionConfiguration";
1253
1253
  let body;
1254
1254
  body = JSON.stringify({
1255
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1255
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1256
1256
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
1257
1257
  ...(input.distributionConfigurationArn !== undefined &&
1258
1258
  input.distributionConfigurationArn !== null && {
@@ -1283,7 +1283,7 @@ const serializeAws_restJson1UpdateImagePipelineCommand = async (input, context)
1283
1283
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateImagePipeline";
1284
1284
  let body;
1285
1285
  body = JSON.stringify({
1286
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1286
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1287
1287
  ...(input.containerRecipeArn !== undefined &&
1288
1288
  input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn }),
1289
1289
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
@@ -1331,7 +1331,7 @@ const serializeAws_restJson1UpdateInfrastructureConfigurationCommand = async (in
1331
1331
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateInfrastructureConfiguration";
1332
1332
  let body;
1333
1333
  body = JSON.stringify({
1334
- clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
1334
+ clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
1335
1335
  ...(input.description !== undefined && input.description !== null && { description: input.description }),
1336
1336
  ...(input.infrastructureConfigurationArn !== undefined &&
1337
1337
  input.infrastructureConfigurationArn !== null && {
@@ -1384,15 +1384,15 @@ const deserializeAws_restJson1CancelImageCreationCommand = async (output, contex
1384
1384
  imageBuildVersionArn: undefined,
1385
1385
  requestId: undefined,
1386
1386
  };
1387
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1387
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1388
1388
  if (data.clientToken !== undefined && data.clientToken !== null) {
1389
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
1389
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
1390
1390
  }
1391
1391
  if (data.imageBuildVersionArn !== undefined && data.imageBuildVersionArn !== null) {
1392
- contents.imageBuildVersionArn = smithy_client_1.expectString(data.imageBuildVersionArn);
1392
+ contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
1393
1393
  }
1394
1394
  if (data.requestId !== undefined && data.requestId !== null) {
1395
- contents.requestId = smithy_client_1.expectString(data.requestId);
1395
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
1396
1396
  }
1397
1397
  return Promise.resolve(contents);
1398
1398
  };
@@ -1437,7 +1437,7 @@ const deserializeAws_restJson1CancelImageCreationCommandError = async (output, c
1437
1437
  $fault: "client",
1438
1438
  $metadata: deserializeMetadata(output),
1439
1439
  });
1440
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1440
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1441
1441
  }
1442
1442
  };
1443
1443
  const deserializeAws_restJson1CreateComponentCommand = async (output, context) => {
@@ -1450,15 +1450,15 @@ const deserializeAws_restJson1CreateComponentCommand = async (output, context) =
1450
1450
  componentBuildVersionArn: undefined,
1451
1451
  requestId: undefined,
1452
1452
  };
1453
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1453
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1454
1454
  if (data.clientToken !== undefined && data.clientToken !== null) {
1455
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
1455
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
1456
1456
  }
1457
1457
  if (data.componentBuildVersionArn !== undefined && data.componentBuildVersionArn !== null) {
1458
- contents.componentBuildVersionArn = smithy_client_1.expectString(data.componentBuildVersionArn);
1458
+ contents.componentBuildVersionArn = (0, smithy_client_1.expectString)(data.componentBuildVersionArn);
1459
1459
  }
1460
1460
  if (data.requestId !== undefined && data.requestId !== null) {
1461
- contents.requestId = smithy_client_1.expectString(data.requestId);
1461
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
1462
1462
  }
1463
1463
  return Promise.resolve(contents);
1464
1464
  };
@@ -1512,7 +1512,7 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
1512
1512
  $fault: "client",
1513
1513
  $metadata: deserializeMetadata(output),
1514
1514
  });
1515
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1515
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1516
1516
  }
1517
1517
  };
1518
1518
  const deserializeAws_restJson1CreateContainerRecipeCommand = async (output, context) => {
@@ -1525,15 +1525,15 @@ const deserializeAws_restJson1CreateContainerRecipeCommand = async (output, cont
1525
1525
  containerRecipeArn: undefined,
1526
1526
  requestId: undefined,
1527
1527
  };
1528
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1528
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1529
1529
  if (data.clientToken !== undefined && data.clientToken !== null) {
1530
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
1530
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
1531
1531
  }
1532
1532
  if (data.containerRecipeArn !== undefined && data.containerRecipeArn !== null) {
1533
- contents.containerRecipeArn = smithy_client_1.expectString(data.containerRecipeArn);
1533
+ contents.containerRecipeArn = (0, smithy_client_1.expectString)(data.containerRecipeArn);
1534
1534
  }
1535
1535
  if (data.requestId !== undefined && data.requestId !== null) {
1536
- contents.requestId = smithy_client_1.expectString(data.requestId);
1536
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
1537
1537
  }
1538
1538
  return Promise.resolve(contents);
1539
1539
  };
@@ -1587,7 +1587,7 @@ const deserializeAws_restJson1CreateContainerRecipeCommandError = async (output,
1587
1587
  $fault: "client",
1588
1588
  $metadata: deserializeMetadata(output),
1589
1589
  });
1590
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1590
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1591
1591
  }
1592
1592
  };
1593
1593
  const deserializeAws_restJson1CreateDistributionConfigurationCommand = async (output, context) => {
@@ -1600,15 +1600,15 @@ const deserializeAws_restJson1CreateDistributionConfigurationCommand = async (ou
1600
1600
  distributionConfigurationArn: undefined,
1601
1601
  requestId: undefined,
1602
1602
  };
1603
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1603
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1604
1604
  if (data.clientToken !== undefined && data.clientToken !== null) {
1605
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
1605
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
1606
1606
  }
1607
1607
  if (data.distributionConfigurationArn !== undefined && data.distributionConfigurationArn !== null) {
1608
- contents.distributionConfigurationArn = smithy_client_1.expectString(data.distributionConfigurationArn);
1608
+ contents.distributionConfigurationArn = (0, smithy_client_1.expectString)(data.distributionConfigurationArn);
1609
1609
  }
1610
1610
  if (data.requestId !== undefined && data.requestId !== null) {
1611
- contents.requestId = smithy_client_1.expectString(data.requestId);
1611
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
1612
1612
  }
1613
1613
  return Promise.resolve(contents);
1614
1614
  };
@@ -1662,7 +1662,7 @@ const deserializeAws_restJson1CreateDistributionConfigurationCommandError = asyn
1662
1662
  $fault: "client",
1663
1663
  $metadata: deserializeMetadata(output),
1664
1664
  });
1665
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1665
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1666
1666
  }
1667
1667
  };
1668
1668
  const deserializeAws_restJson1CreateImageCommand = async (output, context) => {
@@ -1675,15 +1675,15 @@ const deserializeAws_restJson1CreateImageCommand = async (output, context) => {
1675
1675
  imageBuildVersionArn: undefined,
1676
1676
  requestId: undefined,
1677
1677
  };
1678
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1678
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1679
1679
  if (data.clientToken !== undefined && data.clientToken !== null) {
1680
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
1680
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
1681
1681
  }
1682
1682
  if (data.imageBuildVersionArn !== undefined && data.imageBuildVersionArn !== null) {
1683
- contents.imageBuildVersionArn = smithy_client_1.expectString(data.imageBuildVersionArn);
1683
+ contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
1684
1684
  }
1685
1685
  if (data.requestId !== undefined && data.requestId !== null) {
1686
- contents.requestId = smithy_client_1.expectString(data.requestId);
1686
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
1687
1687
  }
1688
1688
  return Promise.resolve(contents);
1689
1689
  };
@@ -1731,7 +1731,7 @@ const deserializeAws_restJson1CreateImageCommandError = async (output, context)
1731
1731
  $fault: "client",
1732
1732
  $metadata: deserializeMetadata(output),
1733
1733
  });
1734
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1734
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1735
1735
  }
1736
1736
  };
1737
1737
  const deserializeAws_restJson1CreateImagePipelineCommand = async (output, context) => {
@@ -1744,15 +1744,15 @@ const deserializeAws_restJson1CreateImagePipelineCommand = async (output, contex
1744
1744
  imagePipelineArn: undefined,
1745
1745
  requestId: undefined,
1746
1746
  };
1747
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1747
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1748
1748
  if (data.clientToken !== undefined && data.clientToken !== null) {
1749
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
1749
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
1750
1750
  }
1751
1751
  if (data.imagePipelineArn !== undefined && data.imagePipelineArn !== null) {
1752
- contents.imagePipelineArn = smithy_client_1.expectString(data.imagePipelineArn);
1752
+ contents.imagePipelineArn = (0, smithy_client_1.expectString)(data.imagePipelineArn);
1753
1753
  }
1754
1754
  if (data.requestId !== undefined && data.requestId !== null) {
1755
- contents.requestId = smithy_client_1.expectString(data.requestId);
1755
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
1756
1756
  }
1757
1757
  return Promise.resolve(contents);
1758
1758
  };
@@ -1803,7 +1803,7 @@ const deserializeAws_restJson1CreateImagePipelineCommandError = async (output, c
1803
1803
  $fault: "client",
1804
1804
  $metadata: deserializeMetadata(output),
1805
1805
  });
1806
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1806
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1807
1807
  }
1808
1808
  };
1809
1809
  const deserializeAws_restJson1CreateImageRecipeCommand = async (output, context) => {
@@ -1816,15 +1816,15 @@ const deserializeAws_restJson1CreateImageRecipeCommand = async (output, context)
1816
1816
  imageRecipeArn: undefined,
1817
1817
  requestId: undefined,
1818
1818
  };
1819
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1819
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1820
1820
  if (data.clientToken !== undefined && data.clientToken !== null) {
1821
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
1821
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
1822
1822
  }
1823
1823
  if (data.imageRecipeArn !== undefined && data.imageRecipeArn !== null) {
1824
- contents.imageRecipeArn = smithy_client_1.expectString(data.imageRecipeArn);
1824
+ contents.imageRecipeArn = (0, smithy_client_1.expectString)(data.imageRecipeArn);
1825
1825
  }
1826
1826
  if (data.requestId !== undefined && data.requestId !== null) {
1827
- contents.requestId = smithy_client_1.expectString(data.requestId);
1827
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
1828
1828
  }
1829
1829
  return Promise.resolve(contents);
1830
1830
  };
@@ -1878,7 +1878,7 @@ const deserializeAws_restJson1CreateImageRecipeCommandError = async (output, con
1878
1878
  $fault: "client",
1879
1879
  $metadata: deserializeMetadata(output),
1880
1880
  });
1881
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1881
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1882
1882
  }
1883
1883
  };
1884
1884
  const deserializeAws_restJson1CreateInfrastructureConfigurationCommand = async (output, context) => {
@@ -1891,15 +1891,15 @@ const deserializeAws_restJson1CreateInfrastructureConfigurationCommand = async (
1891
1891
  infrastructureConfigurationArn: undefined,
1892
1892
  requestId: undefined,
1893
1893
  };
1894
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1894
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1895
1895
  if (data.clientToken !== undefined && data.clientToken !== null) {
1896
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
1896
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
1897
1897
  }
1898
1898
  if (data.infrastructureConfigurationArn !== undefined && data.infrastructureConfigurationArn !== null) {
1899
- contents.infrastructureConfigurationArn = smithy_client_1.expectString(data.infrastructureConfigurationArn);
1899
+ contents.infrastructureConfigurationArn = (0, smithy_client_1.expectString)(data.infrastructureConfigurationArn);
1900
1900
  }
1901
1901
  if (data.requestId !== undefined && data.requestId !== null) {
1902
- contents.requestId = smithy_client_1.expectString(data.requestId);
1902
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
1903
1903
  }
1904
1904
  return Promise.resolve(contents);
1905
1905
  };
@@ -1950,7 +1950,7 @@ const deserializeAws_restJson1CreateInfrastructureConfigurationCommandError = as
1950
1950
  $fault: "client",
1951
1951
  $metadata: deserializeMetadata(output),
1952
1952
  });
1953
- throw smithy_client_1.decorateServiceException(response, parsedBody);
1953
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1954
1954
  }
1955
1955
  };
1956
1956
  const deserializeAws_restJson1DeleteComponentCommand = async (output, context) => {
@@ -1962,12 +1962,12 @@ const deserializeAws_restJson1DeleteComponentCommand = async (output, context) =
1962
1962
  componentBuildVersionArn: undefined,
1963
1963
  requestId: undefined,
1964
1964
  };
1965
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
1965
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1966
1966
  if (data.componentBuildVersionArn !== undefined && data.componentBuildVersionArn !== null) {
1967
- contents.componentBuildVersionArn = smithy_client_1.expectString(data.componentBuildVersionArn);
1967
+ contents.componentBuildVersionArn = (0, smithy_client_1.expectString)(data.componentBuildVersionArn);
1968
1968
  }
1969
1969
  if (data.requestId !== undefined && data.requestId !== null) {
1970
- contents.requestId = smithy_client_1.expectString(data.requestId);
1970
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
1971
1971
  }
1972
1972
  return Promise.resolve(contents);
1973
1973
  };
@@ -2009,7 +2009,7 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
2009
2009
  $fault: "client",
2010
2010
  $metadata: deserializeMetadata(output),
2011
2011
  });
2012
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2012
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2013
2013
  }
2014
2014
  };
2015
2015
  const deserializeAws_restJson1DeleteContainerRecipeCommand = async (output, context) => {
@@ -2021,12 +2021,12 @@ const deserializeAws_restJson1DeleteContainerRecipeCommand = async (output, cont
2021
2021
  containerRecipeArn: undefined,
2022
2022
  requestId: undefined,
2023
2023
  };
2024
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2024
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2025
2025
  if (data.containerRecipeArn !== undefined && data.containerRecipeArn !== null) {
2026
- contents.containerRecipeArn = smithy_client_1.expectString(data.containerRecipeArn);
2026
+ contents.containerRecipeArn = (0, smithy_client_1.expectString)(data.containerRecipeArn);
2027
2027
  }
2028
2028
  if (data.requestId !== undefined && data.requestId !== null) {
2029
- contents.requestId = smithy_client_1.expectString(data.requestId);
2029
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2030
2030
  }
2031
2031
  return Promise.resolve(contents);
2032
2032
  };
@@ -2068,7 +2068,7 @@ const deserializeAws_restJson1DeleteContainerRecipeCommandError = async (output,
2068
2068
  $fault: "client",
2069
2069
  $metadata: deserializeMetadata(output),
2070
2070
  });
2071
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2071
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2072
2072
  }
2073
2073
  };
2074
2074
  const deserializeAws_restJson1DeleteDistributionConfigurationCommand = async (output, context) => {
@@ -2080,12 +2080,12 @@ const deserializeAws_restJson1DeleteDistributionConfigurationCommand = async (ou
2080
2080
  distributionConfigurationArn: undefined,
2081
2081
  requestId: undefined,
2082
2082
  };
2083
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2083
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2084
2084
  if (data.distributionConfigurationArn !== undefined && data.distributionConfigurationArn !== null) {
2085
- contents.distributionConfigurationArn = smithy_client_1.expectString(data.distributionConfigurationArn);
2085
+ contents.distributionConfigurationArn = (0, smithy_client_1.expectString)(data.distributionConfigurationArn);
2086
2086
  }
2087
2087
  if (data.requestId !== undefined && data.requestId !== null) {
2088
- contents.requestId = smithy_client_1.expectString(data.requestId);
2088
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2089
2089
  }
2090
2090
  return Promise.resolve(contents);
2091
2091
  };
@@ -2127,7 +2127,7 @@ const deserializeAws_restJson1DeleteDistributionConfigurationCommandError = asyn
2127
2127
  $fault: "client",
2128
2128
  $metadata: deserializeMetadata(output),
2129
2129
  });
2130
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2130
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2131
2131
  }
2132
2132
  };
2133
2133
  const deserializeAws_restJson1DeleteImageCommand = async (output, context) => {
@@ -2139,12 +2139,12 @@ const deserializeAws_restJson1DeleteImageCommand = async (output, context) => {
2139
2139
  imageBuildVersionArn: undefined,
2140
2140
  requestId: undefined,
2141
2141
  };
2142
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2142
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2143
2143
  if (data.imageBuildVersionArn !== undefined && data.imageBuildVersionArn !== null) {
2144
- contents.imageBuildVersionArn = smithy_client_1.expectString(data.imageBuildVersionArn);
2144
+ contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
2145
2145
  }
2146
2146
  if (data.requestId !== undefined && data.requestId !== null) {
2147
- contents.requestId = smithy_client_1.expectString(data.requestId);
2147
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2148
2148
  }
2149
2149
  return Promise.resolve(contents);
2150
2150
  };
@@ -2186,7 +2186,7 @@ const deserializeAws_restJson1DeleteImageCommandError = async (output, context)
2186
2186
  $fault: "client",
2187
2187
  $metadata: deserializeMetadata(output),
2188
2188
  });
2189
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2189
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2190
2190
  }
2191
2191
  };
2192
2192
  const deserializeAws_restJson1DeleteImagePipelineCommand = async (output, context) => {
@@ -2198,12 +2198,12 @@ const deserializeAws_restJson1DeleteImagePipelineCommand = async (output, contex
2198
2198
  imagePipelineArn: undefined,
2199
2199
  requestId: undefined,
2200
2200
  };
2201
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2201
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2202
2202
  if (data.imagePipelineArn !== undefined && data.imagePipelineArn !== null) {
2203
- contents.imagePipelineArn = smithy_client_1.expectString(data.imagePipelineArn);
2203
+ contents.imagePipelineArn = (0, smithy_client_1.expectString)(data.imagePipelineArn);
2204
2204
  }
2205
2205
  if (data.requestId !== undefined && data.requestId !== null) {
2206
- contents.requestId = smithy_client_1.expectString(data.requestId);
2206
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2207
2207
  }
2208
2208
  return Promise.resolve(contents);
2209
2209
  };
@@ -2245,7 +2245,7 @@ const deserializeAws_restJson1DeleteImagePipelineCommandError = async (output, c
2245
2245
  $fault: "client",
2246
2246
  $metadata: deserializeMetadata(output),
2247
2247
  });
2248
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2248
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2249
2249
  }
2250
2250
  };
2251
2251
  const deserializeAws_restJson1DeleteImageRecipeCommand = async (output, context) => {
@@ -2257,12 +2257,12 @@ const deserializeAws_restJson1DeleteImageRecipeCommand = async (output, context)
2257
2257
  imageRecipeArn: undefined,
2258
2258
  requestId: undefined,
2259
2259
  };
2260
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2260
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2261
2261
  if (data.imageRecipeArn !== undefined && data.imageRecipeArn !== null) {
2262
- contents.imageRecipeArn = smithy_client_1.expectString(data.imageRecipeArn);
2262
+ contents.imageRecipeArn = (0, smithy_client_1.expectString)(data.imageRecipeArn);
2263
2263
  }
2264
2264
  if (data.requestId !== undefined && data.requestId !== null) {
2265
- contents.requestId = smithy_client_1.expectString(data.requestId);
2265
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2266
2266
  }
2267
2267
  return Promise.resolve(contents);
2268
2268
  };
@@ -2304,7 +2304,7 @@ const deserializeAws_restJson1DeleteImageRecipeCommandError = async (output, con
2304
2304
  $fault: "client",
2305
2305
  $metadata: deserializeMetadata(output),
2306
2306
  });
2307
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2307
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2308
2308
  }
2309
2309
  };
2310
2310
  const deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = async (output, context) => {
@@ -2316,12 +2316,12 @@ const deserializeAws_restJson1DeleteInfrastructureConfigurationCommand = async (
2316
2316
  infrastructureConfigurationArn: undefined,
2317
2317
  requestId: undefined,
2318
2318
  };
2319
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2319
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2320
2320
  if (data.infrastructureConfigurationArn !== undefined && data.infrastructureConfigurationArn !== null) {
2321
- contents.infrastructureConfigurationArn = smithy_client_1.expectString(data.infrastructureConfigurationArn);
2321
+ contents.infrastructureConfigurationArn = (0, smithy_client_1.expectString)(data.infrastructureConfigurationArn);
2322
2322
  }
2323
2323
  if (data.requestId !== undefined && data.requestId !== null) {
2324
- contents.requestId = smithy_client_1.expectString(data.requestId);
2324
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2325
2325
  }
2326
2326
  return Promise.resolve(contents);
2327
2327
  };
@@ -2363,7 +2363,7 @@ const deserializeAws_restJson1DeleteInfrastructureConfigurationCommandError = as
2363
2363
  $fault: "client",
2364
2364
  $metadata: deserializeMetadata(output),
2365
2365
  });
2366
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2366
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2367
2367
  }
2368
2368
  };
2369
2369
  const deserializeAws_restJson1GetComponentCommand = async (output, context) => {
@@ -2375,12 +2375,12 @@ const deserializeAws_restJson1GetComponentCommand = async (output, context) => {
2375
2375
  component: undefined,
2376
2376
  requestId: undefined,
2377
2377
  };
2378
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2378
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2379
2379
  if (data.component !== undefined && data.component !== null) {
2380
2380
  contents.component = deserializeAws_restJson1Component(data.component, context);
2381
2381
  }
2382
2382
  if (data.requestId !== undefined && data.requestId !== null) {
2383
- contents.requestId = smithy_client_1.expectString(data.requestId);
2383
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2384
2384
  }
2385
2385
  return Promise.resolve(contents);
2386
2386
  };
@@ -2419,7 +2419,7 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
2419
2419
  $fault: "client",
2420
2420
  $metadata: deserializeMetadata(output),
2421
2421
  });
2422
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2422
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2423
2423
  }
2424
2424
  };
2425
2425
  const deserializeAws_restJson1GetComponentPolicyCommand = async (output, context) => {
@@ -2431,12 +2431,12 @@ const deserializeAws_restJson1GetComponentPolicyCommand = async (output, context
2431
2431
  policy: undefined,
2432
2432
  requestId: undefined,
2433
2433
  };
2434
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2434
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2435
2435
  if (data.policy !== undefined && data.policy !== null) {
2436
- contents.policy = smithy_client_1.expectString(data.policy);
2436
+ contents.policy = (0, smithy_client_1.expectString)(data.policy);
2437
2437
  }
2438
2438
  if (data.requestId !== undefined && data.requestId !== null) {
2439
- contents.requestId = smithy_client_1.expectString(data.requestId);
2439
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2440
2440
  }
2441
2441
  return Promise.resolve(contents);
2442
2442
  };
@@ -2475,7 +2475,7 @@ const deserializeAws_restJson1GetComponentPolicyCommandError = async (output, co
2475
2475
  $fault: "client",
2476
2476
  $metadata: deserializeMetadata(output),
2477
2477
  });
2478
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2478
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2479
2479
  }
2480
2480
  };
2481
2481
  const deserializeAws_restJson1GetContainerRecipeCommand = async (output, context) => {
@@ -2487,12 +2487,12 @@ const deserializeAws_restJson1GetContainerRecipeCommand = async (output, context
2487
2487
  containerRecipe: undefined,
2488
2488
  requestId: undefined,
2489
2489
  };
2490
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2490
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2491
2491
  if (data.containerRecipe !== undefined && data.containerRecipe !== null) {
2492
2492
  contents.containerRecipe = deserializeAws_restJson1ContainerRecipe(data.containerRecipe, context);
2493
2493
  }
2494
2494
  if (data.requestId !== undefined && data.requestId !== null) {
2495
- contents.requestId = smithy_client_1.expectString(data.requestId);
2495
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2496
2496
  }
2497
2497
  return Promise.resolve(contents);
2498
2498
  };
@@ -2531,7 +2531,7 @@ const deserializeAws_restJson1GetContainerRecipeCommandError = async (output, co
2531
2531
  $fault: "client",
2532
2532
  $metadata: deserializeMetadata(output),
2533
2533
  });
2534
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2534
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2535
2535
  }
2536
2536
  };
2537
2537
  const deserializeAws_restJson1GetContainerRecipePolicyCommand = async (output, context) => {
@@ -2543,12 +2543,12 @@ const deserializeAws_restJson1GetContainerRecipePolicyCommand = async (output, c
2543
2543
  policy: undefined,
2544
2544
  requestId: undefined,
2545
2545
  };
2546
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2546
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2547
2547
  if (data.policy !== undefined && data.policy !== null) {
2548
- contents.policy = smithy_client_1.expectString(data.policy);
2548
+ contents.policy = (0, smithy_client_1.expectString)(data.policy);
2549
2549
  }
2550
2550
  if (data.requestId !== undefined && data.requestId !== null) {
2551
- contents.requestId = smithy_client_1.expectString(data.requestId);
2551
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2552
2552
  }
2553
2553
  return Promise.resolve(contents);
2554
2554
  };
@@ -2587,7 +2587,7 @@ const deserializeAws_restJson1GetContainerRecipePolicyCommandError = async (outp
2587
2587
  $fault: "client",
2588
2588
  $metadata: deserializeMetadata(output),
2589
2589
  });
2590
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2590
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2591
2591
  }
2592
2592
  };
2593
2593
  const deserializeAws_restJson1GetDistributionConfigurationCommand = async (output, context) => {
@@ -2599,12 +2599,12 @@ const deserializeAws_restJson1GetDistributionConfigurationCommand = async (outpu
2599
2599
  distributionConfiguration: undefined,
2600
2600
  requestId: undefined,
2601
2601
  };
2602
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2602
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2603
2603
  if (data.distributionConfiguration !== undefined && data.distributionConfiguration !== null) {
2604
2604
  contents.distributionConfiguration = deserializeAws_restJson1DistributionConfiguration(data.distributionConfiguration, context);
2605
2605
  }
2606
2606
  if (data.requestId !== undefined && data.requestId !== null) {
2607
- contents.requestId = smithy_client_1.expectString(data.requestId);
2607
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2608
2608
  }
2609
2609
  return Promise.resolve(contents);
2610
2610
  };
@@ -2643,7 +2643,7 @@ const deserializeAws_restJson1GetDistributionConfigurationCommandError = async (
2643
2643
  $fault: "client",
2644
2644
  $metadata: deserializeMetadata(output),
2645
2645
  });
2646
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2646
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2647
2647
  }
2648
2648
  };
2649
2649
  const deserializeAws_restJson1GetImageCommand = async (output, context) => {
@@ -2655,12 +2655,12 @@ const deserializeAws_restJson1GetImageCommand = async (output, context) => {
2655
2655
  image: undefined,
2656
2656
  requestId: undefined,
2657
2657
  };
2658
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2658
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2659
2659
  if (data.image !== undefined && data.image !== null) {
2660
2660
  contents.image = deserializeAws_restJson1Image(data.image, context);
2661
2661
  }
2662
2662
  if (data.requestId !== undefined && data.requestId !== null) {
2663
- contents.requestId = smithy_client_1.expectString(data.requestId);
2663
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2664
2664
  }
2665
2665
  return Promise.resolve(contents);
2666
2666
  };
@@ -2699,7 +2699,7 @@ const deserializeAws_restJson1GetImageCommandError = async (output, context) =>
2699
2699
  $fault: "client",
2700
2700
  $metadata: deserializeMetadata(output),
2701
2701
  });
2702
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2702
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2703
2703
  }
2704
2704
  };
2705
2705
  const deserializeAws_restJson1GetImagePipelineCommand = async (output, context) => {
@@ -2711,12 +2711,12 @@ const deserializeAws_restJson1GetImagePipelineCommand = async (output, context)
2711
2711
  imagePipeline: undefined,
2712
2712
  requestId: undefined,
2713
2713
  };
2714
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2714
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2715
2715
  if (data.imagePipeline !== undefined && data.imagePipeline !== null) {
2716
2716
  contents.imagePipeline = deserializeAws_restJson1ImagePipeline(data.imagePipeline, context);
2717
2717
  }
2718
2718
  if (data.requestId !== undefined && data.requestId !== null) {
2719
- contents.requestId = smithy_client_1.expectString(data.requestId);
2719
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2720
2720
  }
2721
2721
  return Promise.resolve(contents);
2722
2722
  };
@@ -2755,7 +2755,7 @@ const deserializeAws_restJson1GetImagePipelineCommandError = async (output, cont
2755
2755
  $fault: "client",
2756
2756
  $metadata: deserializeMetadata(output),
2757
2757
  });
2758
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2758
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2759
2759
  }
2760
2760
  };
2761
2761
  const deserializeAws_restJson1GetImagePolicyCommand = async (output, context) => {
@@ -2767,12 +2767,12 @@ const deserializeAws_restJson1GetImagePolicyCommand = async (output, context) =>
2767
2767
  policy: undefined,
2768
2768
  requestId: undefined,
2769
2769
  };
2770
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2770
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2771
2771
  if (data.policy !== undefined && data.policy !== null) {
2772
- contents.policy = smithy_client_1.expectString(data.policy);
2772
+ contents.policy = (0, smithy_client_1.expectString)(data.policy);
2773
2773
  }
2774
2774
  if (data.requestId !== undefined && data.requestId !== null) {
2775
- contents.requestId = smithy_client_1.expectString(data.requestId);
2775
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2776
2776
  }
2777
2777
  return Promise.resolve(contents);
2778
2778
  };
@@ -2811,7 +2811,7 @@ const deserializeAws_restJson1GetImagePolicyCommandError = async (output, contex
2811
2811
  $fault: "client",
2812
2812
  $metadata: deserializeMetadata(output),
2813
2813
  });
2814
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2814
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2815
2815
  }
2816
2816
  };
2817
2817
  const deserializeAws_restJson1GetImageRecipeCommand = async (output, context) => {
@@ -2823,12 +2823,12 @@ const deserializeAws_restJson1GetImageRecipeCommand = async (output, context) =>
2823
2823
  imageRecipe: undefined,
2824
2824
  requestId: undefined,
2825
2825
  };
2826
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2826
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2827
2827
  if (data.imageRecipe !== undefined && data.imageRecipe !== null) {
2828
2828
  contents.imageRecipe = deserializeAws_restJson1ImageRecipe(data.imageRecipe, context);
2829
2829
  }
2830
2830
  if (data.requestId !== undefined && data.requestId !== null) {
2831
- contents.requestId = smithy_client_1.expectString(data.requestId);
2831
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2832
2832
  }
2833
2833
  return Promise.resolve(contents);
2834
2834
  };
@@ -2867,7 +2867,7 @@ const deserializeAws_restJson1GetImageRecipeCommandError = async (output, contex
2867
2867
  $fault: "client",
2868
2868
  $metadata: deserializeMetadata(output),
2869
2869
  });
2870
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2870
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2871
2871
  }
2872
2872
  };
2873
2873
  const deserializeAws_restJson1GetImageRecipePolicyCommand = async (output, context) => {
@@ -2879,12 +2879,12 @@ const deserializeAws_restJson1GetImageRecipePolicyCommand = async (output, conte
2879
2879
  policy: undefined,
2880
2880
  requestId: undefined,
2881
2881
  };
2882
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2882
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2883
2883
  if (data.policy !== undefined && data.policy !== null) {
2884
- contents.policy = smithy_client_1.expectString(data.policy);
2884
+ contents.policy = (0, smithy_client_1.expectString)(data.policy);
2885
2885
  }
2886
2886
  if (data.requestId !== undefined && data.requestId !== null) {
2887
- contents.requestId = smithy_client_1.expectString(data.requestId);
2887
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2888
2888
  }
2889
2889
  return Promise.resolve(contents);
2890
2890
  };
@@ -2923,7 +2923,7 @@ const deserializeAws_restJson1GetImageRecipePolicyCommandError = async (output,
2923
2923
  $fault: "client",
2924
2924
  $metadata: deserializeMetadata(output),
2925
2925
  });
2926
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2926
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2927
2927
  }
2928
2928
  };
2929
2929
  const deserializeAws_restJson1GetInfrastructureConfigurationCommand = async (output, context) => {
@@ -2935,12 +2935,12 @@ const deserializeAws_restJson1GetInfrastructureConfigurationCommand = async (out
2935
2935
  infrastructureConfiguration: undefined,
2936
2936
  requestId: undefined,
2937
2937
  };
2938
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2938
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2939
2939
  if (data.infrastructureConfiguration !== undefined && data.infrastructureConfiguration !== null) {
2940
2940
  contents.infrastructureConfiguration = deserializeAws_restJson1InfrastructureConfiguration(data.infrastructureConfiguration, context);
2941
2941
  }
2942
2942
  if (data.requestId !== undefined && data.requestId !== null) {
2943
- contents.requestId = smithy_client_1.expectString(data.requestId);
2943
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
2944
2944
  }
2945
2945
  return Promise.resolve(contents);
2946
2946
  };
@@ -2979,7 +2979,7 @@ const deserializeAws_restJson1GetInfrastructureConfigurationCommandError = async
2979
2979
  $fault: "client",
2980
2980
  $metadata: deserializeMetadata(output),
2981
2981
  });
2982
- throw smithy_client_1.decorateServiceException(response, parsedBody);
2982
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
2983
2983
  }
2984
2984
  };
2985
2985
  const deserializeAws_restJson1ImportComponentCommand = async (output, context) => {
@@ -2992,15 +2992,15 @@ const deserializeAws_restJson1ImportComponentCommand = async (output, context) =
2992
2992
  componentBuildVersionArn: undefined,
2993
2993
  requestId: undefined,
2994
2994
  };
2995
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
2995
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2996
2996
  if (data.clientToken !== undefined && data.clientToken !== null) {
2997
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
2997
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
2998
2998
  }
2999
2999
  if (data.componentBuildVersionArn !== undefined && data.componentBuildVersionArn !== null) {
3000
- contents.componentBuildVersionArn = smithy_client_1.expectString(data.componentBuildVersionArn);
3000
+ contents.componentBuildVersionArn = (0, smithy_client_1.expectString)(data.componentBuildVersionArn);
3001
3001
  }
3002
3002
  if (data.requestId !== undefined && data.requestId !== null) {
3003
- contents.requestId = smithy_client_1.expectString(data.requestId);
3003
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3004
3004
  }
3005
3005
  return Promise.resolve(contents);
3006
3006
  };
@@ -3051,7 +3051,7 @@ const deserializeAws_restJson1ImportComponentCommandError = async (output, conte
3051
3051
  $fault: "client",
3052
3052
  $metadata: deserializeMetadata(output),
3053
3053
  });
3054
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3054
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3055
3055
  }
3056
3056
  };
3057
3057
  const deserializeAws_restJson1ImportVmImageCommand = async (output, context) => {
@@ -3064,15 +3064,15 @@ const deserializeAws_restJson1ImportVmImageCommand = async (output, context) =>
3064
3064
  imageArn: undefined,
3065
3065
  requestId: undefined,
3066
3066
  };
3067
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3067
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3068
3068
  if (data.clientToken !== undefined && data.clientToken !== null) {
3069
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
3069
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
3070
3070
  }
3071
3071
  if (data.imageArn !== undefined && data.imageArn !== null) {
3072
- contents.imageArn = smithy_client_1.expectString(data.imageArn);
3072
+ contents.imageArn = (0, smithy_client_1.expectString)(data.imageArn);
3073
3073
  }
3074
3074
  if (data.requestId !== undefined && data.requestId !== null) {
3075
- contents.requestId = smithy_client_1.expectString(data.requestId);
3075
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3076
3076
  }
3077
3077
  return Promise.resolve(contents);
3078
3078
  };
@@ -3102,7 +3102,7 @@ const deserializeAws_restJson1ImportVmImageCommandError = async (output, context
3102
3102
  $fault: "client",
3103
3103
  $metadata: deserializeMetadata(output),
3104
3104
  });
3105
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3105
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3106
3106
  }
3107
3107
  };
3108
3108
  const deserializeAws_restJson1ListComponentBuildVersionsCommand = async (output, context) => {
@@ -3115,15 +3115,15 @@ const deserializeAws_restJson1ListComponentBuildVersionsCommand = async (output,
3115
3115
  nextToken: undefined,
3116
3116
  requestId: undefined,
3117
3117
  };
3118
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3118
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3119
3119
  if (data.componentSummaryList !== undefined && data.componentSummaryList !== null) {
3120
3120
  contents.componentSummaryList = deserializeAws_restJson1ComponentSummaryList(data.componentSummaryList, context);
3121
3121
  }
3122
3122
  if (data.nextToken !== undefined && data.nextToken !== null) {
3123
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3123
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3124
3124
  }
3125
3125
  if (data.requestId !== undefined && data.requestId !== null) {
3126
- contents.requestId = smithy_client_1.expectString(data.requestId);
3126
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3127
3127
  }
3128
3128
  return Promise.resolve(contents);
3129
3129
  };
@@ -3165,7 +3165,7 @@ const deserializeAws_restJson1ListComponentBuildVersionsCommandError = async (ou
3165
3165
  $fault: "client",
3166
3166
  $metadata: deserializeMetadata(output),
3167
3167
  });
3168
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3168
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3169
3169
  }
3170
3170
  };
3171
3171
  const deserializeAws_restJson1ListComponentsCommand = async (output, context) => {
@@ -3178,15 +3178,15 @@ const deserializeAws_restJson1ListComponentsCommand = async (output, context) =>
3178
3178
  nextToken: undefined,
3179
3179
  requestId: undefined,
3180
3180
  };
3181
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3181
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3182
3182
  if (data.componentVersionList !== undefined && data.componentVersionList !== null) {
3183
3183
  contents.componentVersionList = deserializeAws_restJson1ComponentVersionList(data.componentVersionList, context);
3184
3184
  }
3185
3185
  if (data.nextToken !== undefined && data.nextToken !== null) {
3186
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3186
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3187
3187
  }
3188
3188
  if (data.requestId !== undefined && data.requestId !== null) {
3189
- contents.requestId = smithy_client_1.expectString(data.requestId);
3189
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3190
3190
  }
3191
3191
  return Promise.resolve(contents);
3192
3192
  };
@@ -3228,7 +3228,7 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
3228
3228
  $fault: "client",
3229
3229
  $metadata: deserializeMetadata(output),
3230
3230
  });
3231
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3231
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3232
3232
  }
3233
3233
  };
3234
3234
  const deserializeAws_restJson1ListContainerRecipesCommand = async (output, context) => {
@@ -3241,15 +3241,15 @@ const deserializeAws_restJson1ListContainerRecipesCommand = async (output, conte
3241
3241
  nextToken: undefined,
3242
3242
  requestId: undefined,
3243
3243
  };
3244
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3244
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3245
3245
  if (data.containerRecipeSummaryList !== undefined && data.containerRecipeSummaryList !== null) {
3246
3246
  contents.containerRecipeSummaryList = deserializeAws_restJson1ContainerRecipeSummaryList(data.containerRecipeSummaryList, context);
3247
3247
  }
3248
3248
  if (data.nextToken !== undefined && data.nextToken !== null) {
3249
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3249
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3250
3250
  }
3251
3251
  if (data.requestId !== undefined && data.requestId !== null) {
3252
- contents.requestId = smithy_client_1.expectString(data.requestId);
3252
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3253
3253
  }
3254
3254
  return Promise.resolve(contents);
3255
3255
  };
@@ -3291,7 +3291,7 @@ const deserializeAws_restJson1ListContainerRecipesCommandError = async (output,
3291
3291
  $fault: "client",
3292
3292
  $metadata: deserializeMetadata(output),
3293
3293
  });
3294
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3294
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3295
3295
  }
3296
3296
  };
3297
3297
  const deserializeAws_restJson1ListDistributionConfigurationsCommand = async (output, context) => {
@@ -3304,15 +3304,15 @@ const deserializeAws_restJson1ListDistributionConfigurationsCommand = async (out
3304
3304
  nextToken: undefined,
3305
3305
  requestId: undefined,
3306
3306
  };
3307
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3307
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3308
3308
  if (data.distributionConfigurationSummaryList !== undefined && data.distributionConfigurationSummaryList !== null) {
3309
3309
  contents.distributionConfigurationSummaryList = deserializeAws_restJson1DistributionConfigurationSummaryList(data.distributionConfigurationSummaryList, context);
3310
3310
  }
3311
3311
  if (data.nextToken !== undefined && data.nextToken !== null) {
3312
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3312
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3313
3313
  }
3314
3314
  if (data.requestId !== undefined && data.requestId !== null) {
3315
- contents.requestId = smithy_client_1.expectString(data.requestId);
3315
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3316
3316
  }
3317
3317
  return Promise.resolve(contents);
3318
3318
  };
@@ -3354,7 +3354,7 @@ const deserializeAws_restJson1ListDistributionConfigurationsCommandError = async
3354
3354
  $fault: "client",
3355
3355
  $metadata: deserializeMetadata(output),
3356
3356
  });
3357
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3357
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3358
3358
  }
3359
3359
  };
3360
3360
  const deserializeAws_restJson1ListImageBuildVersionsCommand = async (output, context) => {
@@ -3367,15 +3367,15 @@ const deserializeAws_restJson1ListImageBuildVersionsCommand = async (output, con
3367
3367
  nextToken: undefined,
3368
3368
  requestId: undefined,
3369
3369
  };
3370
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3370
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3371
3371
  if (data.imageSummaryList !== undefined && data.imageSummaryList !== null) {
3372
3372
  contents.imageSummaryList = deserializeAws_restJson1ImageSummaryList(data.imageSummaryList, context);
3373
3373
  }
3374
3374
  if (data.nextToken !== undefined && data.nextToken !== null) {
3375
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3375
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3376
3376
  }
3377
3377
  if (data.requestId !== undefined && data.requestId !== null) {
3378
- contents.requestId = smithy_client_1.expectString(data.requestId);
3378
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3379
3379
  }
3380
3380
  return Promise.resolve(contents);
3381
3381
  };
@@ -3417,7 +3417,7 @@ const deserializeAws_restJson1ListImageBuildVersionsCommandError = async (output
3417
3417
  $fault: "client",
3418
3418
  $metadata: deserializeMetadata(output),
3419
3419
  });
3420
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3420
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3421
3421
  }
3422
3422
  };
3423
3423
  const deserializeAws_restJson1ListImagePackagesCommand = async (output, context) => {
@@ -3430,15 +3430,15 @@ const deserializeAws_restJson1ListImagePackagesCommand = async (output, context)
3430
3430
  nextToken: undefined,
3431
3431
  requestId: undefined,
3432
3432
  };
3433
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3433
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3434
3434
  if (data.imagePackageList !== undefined && data.imagePackageList !== null) {
3435
3435
  contents.imagePackageList = deserializeAws_restJson1ImagePackageList(data.imagePackageList, context);
3436
3436
  }
3437
3437
  if (data.nextToken !== undefined && data.nextToken !== null) {
3438
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3438
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3439
3439
  }
3440
3440
  if (data.requestId !== undefined && data.requestId !== null) {
3441
- contents.requestId = smithy_client_1.expectString(data.requestId);
3441
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3442
3442
  }
3443
3443
  return Promise.resolve(contents);
3444
3444
  };
@@ -3483,7 +3483,7 @@ const deserializeAws_restJson1ListImagePackagesCommandError = async (output, con
3483
3483
  $fault: "client",
3484
3484
  $metadata: deserializeMetadata(output),
3485
3485
  });
3486
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3486
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3487
3487
  }
3488
3488
  };
3489
3489
  const deserializeAws_restJson1ListImagePipelineImagesCommand = async (output, context) => {
@@ -3496,15 +3496,15 @@ const deserializeAws_restJson1ListImagePipelineImagesCommand = async (output, co
3496
3496
  nextToken: undefined,
3497
3497
  requestId: undefined,
3498
3498
  };
3499
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3499
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3500
3500
  if (data.imageSummaryList !== undefined && data.imageSummaryList !== null) {
3501
3501
  contents.imageSummaryList = deserializeAws_restJson1ImageSummaryList(data.imageSummaryList, context);
3502
3502
  }
3503
3503
  if (data.nextToken !== undefined && data.nextToken !== null) {
3504
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3504
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3505
3505
  }
3506
3506
  if (data.requestId !== undefined && data.requestId !== null) {
3507
- contents.requestId = smithy_client_1.expectString(data.requestId);
3507
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3508
3508
  }
3509
3509
  return Promise.resolve(contents);
3510
3510
  };
@@ -3549,7 +3549,7 @@ const deserializeAws_restJson1ListImagePipelineImagesCommandError = async (outpu
3549
3549
  $fault: "client",
3550
3550
  $metadata: deserializeMetadata(output),
3551
3551
  });
3552
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3552
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3553
3553
  }
3554
3554
  };
3555
3555
  const deserializeAws_restJson1ListImagePipelinesCommand = async (output, context) => {
@@ -3562,15 +3562,15 @@ const deserializeAws_restJson1ListImagePipelinesCommand = async (output, context
3562
3562
  nextToken: undefined,
3563
3563
  requestId: undefined,
3564
3564
  };
3565
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3565
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3566
3566
  if (data.imagePipelineList !== undefined && data.imagePipelineList !== null) {
3567
3567
  contents.imagePipelineList = deserializeAws_restJson1ImagePipelineList(data.imagePipelineList, context);
3568
3568
  }
3569
3569
  if (data.nextToken !== undefined && data.nextToken !== null) {
3570
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3570
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3571
3571
  }
3572
3572
  if (data.requestId !== undefined && data.requestId !== null) {
3573
- contents.requestId = smithy_client_1.expectString(data.requestId);
3573
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3574
3574
  }
3575
3575
  return Promise.resolve(contents);
3576
3576
  };
@@ -3612,7 +3612,7 @@ const deserializeAws_restJson1ListImagePipelinesCommandError = async (output, co
3612
3612
  $fault: "client",
3613
3613
  $metadata: deserializeMetadata(output),
3614
3614
  });
3615
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3615
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3616
3616
  }
3617
3617
  };
3618
3618
  const deserializeAws_restJson1ListImageRecipesCommand = async (output, context) => {
@@ -3625,15 +3625,15 @@ const deserializeAws_restJson1ListImageRecipesCommand = async (output, context)
3625
3625
  nextToken: undefined,
3626
3626
  requestId: undefined,
3627
3627
  };
3628
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3628
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3629
3629
  if (data.imageRecipeSummaryList !== undefined && data.imageRecipeSummaryList !== null) {
3630
3630
  contents.imageRecipeSummaryList = deserializeAws_restJson1ImageRecipeSummaryList(data.imageRecipeSummaryList, context);
3631
3631
  }
3632
3632
  if (data.nextToken !== undefined && data.nextToken !== null) {
3633
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3633
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3634
3634
  }
3635
3635
  if (data.requestId !== undefined && data.requestId !== null) {
3636
- contents.requestId = smithy_client_1.expectString(data.requestId);
3636
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3637
3637
  }
3638
3638
  return Promise.resolve(contents);
3639
3639
  };
@@ -3675,7 +3675,7 @@ const deserializeAws_restJson1ListImageRecipesCommandError = async (output, cont
3675
3675
  $fault: "client",
3676
3676
  $metadata: deserializeMetadata(output),
3677
3677
  });
3678
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3678
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3679
3679
  }
3680
3680
  };
3681
3681
  const deserializeAws_restJson1ListImagesCommand = async (output, context) => {
@@ -3688,15 +3688,15 @@ const deserializeAws_restJson1ListImagesCommand = async (output, context) => {
3688
3688
  nextToken: undefined,
3689
3689
  requestId: undefined,
3690
3690
  };
3691
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3691
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3692
3692
  if (data.imageVersionList !== undefined && data.imageVersionList !== null) {
3693
3693
  contents.imageVersionList = deserializeAws_restJson1ImageVersionList(data.imageVersionList, context);
3694
3694
  }
3695
3695
  if (data.nextToken !== undefined && data.nextToken !== null) {
3696
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3696
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3697
3697
  }
3698
3698
  if (data.requestId !== undefined && data.requestId !== null) {
3699
- contents.requestId = smithy_client_1.expectString(data.requestId);
3699
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3700
3700
  }
3701
3701
  return Promise.resolve(contents);
3702
3702
  };
@@ -3738,7 +3738,7 @@ const deserializeAws_restJson1ListImagesCommandError = async (output, context) =
3738
3738
  $fault: "client",
3739
3739
  $metadata: deserializeMetadata(output),
3740
3740
  });
3741
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3741
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3742
3742
  }
3743
3743
  };
3744
3744
  const deserializeAws_restJson1ListInfrastructureConfigurationsCommand = async (output, context) => {
@@ -3751,16 +3751,16 @@ const deserializeAws_restJson1ListInfrastructureConfigurationsCommand = async (o
3751
3751
  nextToken: undefined,
3752
3752
  requestId: undefined,
3753
3753
  };
3754
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3754
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3755
3755
  if (data.infrastructureConfigurationSummaryList !== undefined &&
3756
3756
  data.infrastructureConfigurationSummaryList !== null) {
3757
3757
  contents.infrastructureConfigurationSummaryList = deserializeAws_restJson1InfrastructureConfigurationSummaryList(data.infrastructureConfigurationSummaryList, context);
3758
3758
  }
3759
3759
  if (data.nextToken !== undefined && data.nextToken !== null) {
3760
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
3760
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
3761
3761
  }
3762
3762
  if (data.requestId !== undefined && data.requestId !== null) {
3763
- contents.requestId = smithy_client_1.expectString(data.requestId);
3763
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3764
3764
  }
3765
3765
  return Promise.resolve(contents);
3766
3766
  };
@@ -3802,7 +3802,7 @@ const deserializeAws_restJson1ListInfrastructureConfigurationsCommandError = asy
3802
3802
  $fault: "client",
3803
3803
  $metadata: deserializeMetadata(output),
3804
3804
  });
3805
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3805
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3806
3806
  }
3807
3807
  };
3808
3808
  const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
@@ -3813,7 +3813,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
3813
3813
  $metadata: deserializeMetadata(output),
3814
3814
  tags: undefined,
3815
3815
  };
3816
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3816
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3817
3817
  if (data.tags !== undefined && data.tags !== null) {
3818
3818
  contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
3819
3819
  }
@@ -3845,7 +3845,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
3845
3845
  $fault: "client",
3846
3846
  $metadata: deserializeMetadata(output),
3847
3847
  });
3848
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3848
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3849
3849
  }
3850
3850
  };
3851
3851
  const deserializeAws_restJson1PutComponentPolicyCommand = async (output, context) => {
@@ -3857,12 +3857,12 @@ const deserializeAws_restJson1PutComponentPolicyCommand = async (output, context
3857
3857
  componentArn: undefined,
3858
3858
  requestId: undefined,
3859
3859
  };
3860
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3860
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3861
3861
  if (data.componentArn !== undefined && data.componentArn !== null) {
3862
- contents.componentArn = smithy_client_1.expectString(data.componentArn);
3862
+ contents.componentArn = (0, smithy_client_1.expectString)(data.componentArn);
3863
3863
  }
3864
3864
  if (data.requestId !== undefined && data.requestId !== null) {
3865
- contents.requestId = smithy_client_1.expectString(data.requestId);
3865
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3866
3866
  }
3867
3867
  return Promise.resolve(contents);
3868
3868
  };
@@ -3907,7 +3907,7 @@ const deserializeAws_restJson1PutComponentPolicyCommandError = async (output, co
3907
3907
  $fault: "client",
3908
3908
  $metadata: deserializeMetadata(output),
3909
3909
  });
3910
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3910
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3911
3911
  }
3912
3912
  };
3913
3913
  const deserializeAws_restJson1PutContainerRecipePolicyCommand = async (output, context) => {
@@ -3919,12 +3919,12 @@ const deserializeAws_restJson1PutContainerRecipePolicyCommand = async (output, c
3919
3919
  containerRecipeArn: undefined,
3920
3920
  requestId: undefined,
3921
3921
  };
3922
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3922
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3923
3923
  if (data.containerRecipeArn !== undefined && data.containerRecipeArn !== null) {
3924
- contents.containerRecipeArn = smithy_client_1.expectString(data.containerRecipeArn);
3924
+ contents.containerRecipeArn = (0, smithy_client_1.expectString)(data.containerRecipeArn);
3925
3925
  }
3926
3926
  if (data.requestId !== undefined && data.requestId !== null) {
3927
- contents.requestId = smithy_client_1.expectString(data.requestId);
3927
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3928
3928
  }
3929
3929
  return Promise.resolve(contents);
3930
3930
  };
@@ -3969,7 +3969,7 @@ const deserializeAws_restJson1PutContainerRecipePolicyCommandError = async (outp
3969
3969
  $fault: "client",
3970
3970
  $metadata: deserializeMetadata(output),
3971
3971
  });
3972
- throw smithy_client_1.decorateServiceException(response, parsedBody);
3972
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
3973
3973
  }
3974
3974
  };
3975
3975
  const deserializeAws_restJson1PutImagePolicyCommand = async (output, context) => {
@@ -3981,12 +3981,12 @@ const deserializeAws_restJson1PutImagePolicyCommand = async (output, context) =>
3981
3981
  imageArn: undefined,
3982
3982
  requestId: undefined,
3983
3983
  };
3984
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
3984
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3985
3985
  if (data.imageArn !== undefined && data.imageArn !== null) {
3986
- contents.imageArn = smithy_client_1.expectString(data.imageArn);
3986
+ contents.imageArn = (0, smithy_client_1.expectString)(data.imageArn);
3987
3987
  }
3988
3988
  if (data.requestId !== undefined && data.requestId !== null) {
3989
- contents.requestId = smithy_client_1.expectString(data.requestId);
3989
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
3990
3990
  }
3991
3991
  return Promise.resolve(contents);
3992
3992
  };
@@ -4031,7 +4031,7 @@ const deserializeAws_restJson1PutImagePolicyCommandError = async (output, contex
4031
4031
  $fault: "client",
4032
4032
  $metadata: deserializeMetadata(output),
4033
4033
  });
4034
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4034
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4035
4035
  }
4036
4036
  };
4037
4037
  const deserializeAws_restJson1PutImageRecipePolicyCommand = async (output, context) => {
@@ -4043,12 +4043,12 @@ const deserializeAws_restJson1PutImageRecipePolicyCommand = async (output, conte
4043
4043
  imageRecipeArn: undefined,
4044
4044
  requestId: undefined,
4045
4045
  };
4046
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4046
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4047
4047
  if (data.imageRecipeArn !== undefined && data.imageRecipeArn !== null) {
4048
- contents.imageRecipeArn = smithy_client_1.expectString(data.imageRecipeArn);
4048
+ contents.imageRecipeArn = (0, smithy_client_1.expectString)(data.imageRecipeArn);
4049
4049
  }
4050
4050
  if (data.requestId !== undefined && data.requestId !== null) {
4051
- contents.requestId = smithy_client_1.expectString(data.requestId);
4051
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
4052
4052
  }
4053
4053
  return Promise.resolve(contents);
4054
4054
  };
@@ -4093,7 +4093,7 @@ const deserializeAws_restJson1PutImageRecipePolicyCommandError = async (output,
4093
4093
  $fault: "client",
4094
4094
  $metadata: deserializeMetadata(output),
4095
4095
  });
4096
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4096
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4097
4097
  }
4098
4098
  };
4099
4099
  const deserializeAws_restJson1StartImagePipelineExecutionCommand = async (output, context) => {
@@ -4106,15 +4106,15 @@ const deserializeAws_restJson1StartImagePipelineExecutionCommand = async (output
4106
4106
  imageBuildVersionArn: undefined,
4107
4107
  requestId: undefined,
4108
4108
  };
4109
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4109
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4110
4110
  if (data.clientToken !== undefined && data.clientToken !== null) {
4111
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
4111
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
4112
4112
  }
4113
4113
  if (data.imageBuildVersionArn !== undefined && data.imageBuildVersionArn !== null) {
4114
- contents.imageBuildVersionArn = smithy_client_1.expectString(data.imageBuildVersionArn);
4114
+ contents.imageBuildVersionArn = (0, smithy_client_1.expectString)(data.imageBuildVersionArn);
4115
4115
  }
4116
4116
  if (data.requestId !== undefined && data.requestId !== null) {
4117
- contents.requestId = smithy_client_1.expectString(data.requestId);
4117
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
4118
4118
  }
4119
4119
  return Promise.resolve(contents);
4120
4120
  };
@@ -4162,7 +4162,7 @@ const deserializeAws_restJson1StartImagePipelineExecutionCommandError = async (o
4162
4162
  $fault: "client",
4163
4163
  $metadata: deserializeMetadata(output),
4164
4164
  });
4165
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4165
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4166
4166
  }
4167
4167
  };
4168
4168
  const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
@@ -4201,7 +4201,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
4201
4201
  $fault: "client",
4202
4202
  $metadata: deserializeMetadata(output),
4203
4203
  });
4204
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4204
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4205
4205
  }
4206
4206
  };
4207
4207
  const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
@@ -4240,7 +4240,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
4240
4240
  $fault: "client",
4241
4241
  $metadata: deserializeMetadata(output),
4242
4242
  });
4243
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4243
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4244
4244
  }
4245
4245
  };
4246
4246
  const deserializeAws_restJson1UpdateDistributionConfigurationCommand = async (output, context) => {
@@ -4253,15 +4253,15 @@ const deserializeAws_restJson1UpdateDistributionConfigurationCommand = async (ou
4253
4253
  distributionConfigurationArn: undefined,
4254
4254
  requestId: undefined,
4255
4255
  };
4256
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4256
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4257
4257
  if (data.clientToken !== undefined && data.clientToken !== null) {
4258
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
4258
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
4259
4259
  }
4260
4260
  if (data.distributionConfigurationArn !== undefined && data.distributionConfigurationArn !== null) {
4261
- contents.distributionConfigurationArn = smithy_client_1.expectString(data.distributionConfigurationArn);
4261
+ contents.distributionConfigurationArn = (0, smithy_client_1.expectString)(data.distributionConfigurationArn);
4262
4262
  }
4263
4263
  if (data.requestId !== undefined && data.requestId !== null) {
4264
- contents.requestId = smithy_client_1.expectString(data.requestId);
4264
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
4265
4265
  }
4266
4266
  return Promise.resolve(contents);
4267
4267
  };
@@ -4309,7 +4309,7 @@ const deserializeAws_restJson1UpdateDistributionConfigurationCommandError = asyn
4309
4309
  $fault: "client",
4310
4310
  $metadata: deserializeMetadata(output),
4311
4311
  });
4312
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4312
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4313
4313
  }
4314
4314
  };
4315
4315
  const deserializeAws_restJson1UpdateImagePipelineCommand = async (output, context) => {
@@ -4322,15 +4322,15 @@ const deserializeAws_restJson1UpdateImagePipelineCommand = async (output, contex
4322
4322
  imagePipelineArn: undefined,
4323
4323
  requestId: undefined,
4324
4324
  };
4325
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4325
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4326
4326
  if (data.clientToken !== undefined && data.clientToken !== null) {
4327
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
4327
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
4328
4328
  }
4329
4329
  if (data.imagePipelineArn !== undefined && data.imagePipelineArn !== null) {
4330
- contents.imagePipelineArn = smithy_client_1.expectString(data.imagePipelineArn);
4330
+ contents.imagePipelineArn = (0, smithy_client_1.expectString)(data.imagePipelineArn);
4331
4331
  }
4332
4332
  if (data.requestId !== undefined && data.requestId !== null) {
4333
- contents.requestId = smithy_client_1.expectString(data.requestId);
4333
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
4334
4334
  }
4335
4335
  return Promise.resolve(contents);
4336
4336
  };
@@ -4375,7 +4375,7 @@ const deserializeAws_restJson1UpdateImagePipelineCommandError = async (output, c
4375
4375
  $fault: "client",
4376
4376
  $metadata: deserializeMetadata(output),
4377
4377
  });
4378
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4378
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4379
4379
  }
4380
4380
  };
4381
4381
  const deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = async (output, context) => {
@@ -4388,15 +4388,15 @@ const deserializeAws_restJson1UpdateInfrastructureConfigurationCommand = async (
4388
4388
  infrastructureConfigurationArn: undefined,
4389
4389
  requestId: undefined,
4390
4390
  };
4391
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4391
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4392
4392
  if (data.clientToken !== undefined && data.clientToken !== null) {
4393
- contents.clientToken = smithy_client_1.expectString(data.clientToken);
4393
+ contents.clientToken = (0, smithy_client_1.expectString)(data.clientToken);
4394
4394
  }
4395
4395
  if (data.infrastructureConfigurationArn !== undefined && data.infrastructureConfigurationArn !== null) {
4396
- contents.infrastructureConfigurationArn = smithy_client_1.expectString(data.infrastructureConfigurationArn);
4396
+ contents.infrastructureConfigurationArn = (0, smithy_client_1.expectString)(data.infrastructureConfigurationArn);
4397
4397
  }
4398
4398
  if (data.requestId !== undefined && data.requestId !== null) {
4399
- contents.requestId = smithy_client_1.expectString(data.requestId);
4399
+ contents.requestId = (0, smithy_client_1.expectString)(data.requestId);
4400
4400
  }
4401
4401
  return Promise.resolve(contents);
4402
4402
  };
@@ -4441,212 +4441,212 @@ const deserializeAws_restJson1UpdateInfrastructureConfigurationCommandError = as
4441
4441
  $fault: "client",
4442
4442
  $metadata: deserializeMetadata(output),
4443
4443
  });
4444
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4444
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4445
4445
  }
4446
4446
  };
4447
4447
  const deserializeAws_restJson1CallRateLimitExceededExceptionResponse = async (parsedOutput, context) => {
4448
4448
  const contents = {};
4449
4449
  const data = parsedOutput.body;
4450
4450
  if (data.message !== undefined && data.message !== null) {
4451
- contents.message = smithy_client_1.expectString(data.message);
4451
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4452
4452
  }
4453
4453
  const exception = new models_0_1.CallRateLimitExceededException({
4454
4454
  $metadata: deserializeMetadata(parsedOutput),
4455
4455
  ...contents,
4456
4456
  });
4457
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4457
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4458
4458
  };
4459
4459
  const deserializeAws_restJson1ClientExceptionResponse = async (parsedOutput, context) => {
4460
4460
  const contents = {};
4461
4461
  const data = parsedOutput.body;
4462
4462
  if (data.message !== undefined && data.message !== null) {
4463
- contents.message = smithy_client_1.expectString(data.message);
4463
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4464
4464
  }
4465
4465
  const exception = new models_0_1.ClientException({
4466
4466
  $metadata: deserializeMetadata(parsedOutput),
4467
4467
  ...contents,
4468
4468
  });
4469
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4469
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4470
4470
  };
4471
4471
  const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
4472
4472
  const contents = {};
4473
4473
  const data = parsedOutput.body;
4474
4474
  if (data.message !== undefined && data.message !== null) {
4475
- contents.message = smithy_client_1.expectString(data.message);
4475
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4476
4476
  }
4477
4477
  const exception = new models_0_1.ForbiddenException({
4478
4478
  $metadata: deserializeMetadata(parsedOutput),
4479
4479
  ...contents,
4480
4480
  });
4481
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4481
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4482
4482
  };
4483
4483
  const deserializeAws_restJson1IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => {
4484
4484
  const contents = {};
4485
4485
  const data = parsedOutput.body;
4486
4486
  if (data.message !== undefined && data.message !== null) {
4487
- contents.message = smithy_client_1.expectString(data.message);
4487
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4488
4488
  }
4489
4489
  const exception = new models_0_1.IdempotentParameterMismatchException({
4490
4490
  $metadata: deserializeMetadata(parsedOutput),
4491
4491
  ...contents,
4492
4492
  });
4493
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4493
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4494
4494
  };
4495
4495
  const deserializeAws_restJson1InvalidPaginationTokenExceptionResponse = async (parsedOutput, context) => {
4496
4496
  const contents = {};
4497
4497
  const data = parsedOutput.body;
4498
4498
  if (data.message !== undefined && data.message !== null) {
4499
- contents.message = smithy_client_1.expectString(data.message);
4499
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4500
4500
  }
4501
4501
  const exception = new models_0_1.InvalidPaginationTokenException({
4502
4502
  $metadata: deserializeMetadata(parsedOutput),
4503
4503
  ...contents,
4504
4504
  });
4505
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4505
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4506
4506
  };
4507
4507
  const deserializeAws_restJson1InvalidParameterCombinationExceptionResponse = async (parsedOutput, context) => {
4508
4508
  const contents = {};
4509
4509
  const data = parsedOutput.body;
4510
4510
  if (data.message !== undefined && data.message !== null) {
4511
- contents.message = smithy_client_1.expectString(data.message);
4511
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4512
4512
  }
4513
4513
  const exception = new models_0_1.InvalidParameterCombinationException({
4514
4514
  $metadata: deserializeMetadata(parsedOutput),
4515
4515
  ...contents,
4516
4516
  });
4517
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4517
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4518
4518
  };
4519
4519
  const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
4520
4520
  const contents = {};
4521
4521
  const data = parsedOutput.body;
4522
4522
  if (data.message !== undefined && data.message !== null) {
4523
- contents.message = smithy_client_1.expectString(data.message);
4523
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4524
4524
  }
4525
4525
  const exception = new models_0_1.InvalidParameterException({
4526
4526
  $metadata: deserializeMetadata(parsedOutput),
4527
4527
  ...contents,
4528
4528
  });
4529
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4529
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4530
4530
  };
4531
4531
  const deserializeAws_restJson1InvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
4532
4532
  const contents = {};
4533
4533
  const data = parsedOutput.body;
4534
4534
  if (data.message !== undefined && data.message !== null) {
4535
- contents.message = smithy_client_1.expectString(data.message);
4535
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4536
4536
  }
4537
4537
  const exception = new models_0_1.InvalidParameterValueException({
4538
4538
  $metadata: deserializeMetadata(parsedOutput),
4539
4539
  ...contents,
4540
4540
  });
4541
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4541
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4542
4542
  };
4543
4543
  const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
4544
4544
  const contents = {};
4545
4545
  const data = parsedOutput.body;
4546
4546
  if (data.message !== undefined && data.message !== null) {
4547
- contents.message = smithy_client_1.expectString(data.message);
4547
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4548
4548
  }
4549
4549
  const exception = new models_0_1.InvalidRequestException({
4550
4550
  $metadata: deserializeMetadata(parsedOutput),
4551
4551
  ...contents,
4552
4552
  });
4553
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4553
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4554
4554
  };
4555
4555
  const deserializeAws_restJson1InvalidVersionNumberExceptionResponse = async (parsedOutput, context) => {
4556
4556
  const contents = {};
4557
4557
  const data = parsedOutput.body;
4558
4558
  if (data.message !== undefined && data.message !== null) {
4559
- contents.message = smithy_client_1.expectString(data.message);
4559
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4560
4560
  }
4561
4561
  const exception = new models_0_1.InvalidVersionNumberException({
4562
4562
  $metadata: deserializeMetadata(parsedOutput),
4563
4563
  ...contents,
4564
4564
  });
4565
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4565
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4566
4566
  };
4567
4567
  const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
4568
4568
  const contents = {};
4569
4569
  const data = parsedOutput.body;
4570
4570
  if (data.message !== undefined && data.message !== null) {
4571
- contents.message = smithy_client_1.expectString(data.message);
4571
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4572
4572
  }
4573
4573
  const exception = new models_0_1.ResourceAlreadyExistsException({
4574
4574
  $metadata: deserializeMetadata(parsedOutput),
4575
4575
  ...contents,
4576
4576
  });
4577
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4577
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4578
4578
  };
4579
4579
  const deserializeAws_restJson1ResourceDependencyExceptionResponse = async (parsedOutput, context) => {
4580
4580
  const contents = {};
4581
4581
  const data = parsedOutput.body;
4582
4582
  if (data.message !== undefined && data.message !== null) {
4583
- contents.message = smithy_client_1.expectString(data.message);
4583
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4584
4584
  }
4585
4585
  const exception = new models_0_1.ResourceDependencyException({
4586
4586
  $metadata: deserializeMetadata(parsedOutput),
4587
4587
  ...contents,
4588
4588
  });
4589
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4589
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4590
4590
  };
4591
4591
  const deserializeAws_restJson1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
4592
4592
  const contents = {};
4593
4593
  const data = parsedOutput.body;
4594
4594
  if (data.message !== undefined && data.message !== null) {
4595
- contents.message = smithy_client_1.expectString(data.message);
4595
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4596
4596
  }
4597
4597
  const exception = new models_0_1.ResourceInUseException({
4598
4598
  $metadata: deserializeMetadata(parsedOutput),
4599
4599
  ...contents,
4600
4600
  });
4601
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4601
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4602
4602
  };
4603
4603
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
4604
4604
  const contents = {};
4605
4605
  const data = parsedOutput.body;
4606
4606
  if (data.message !== undefined && data.message !== null) {
4607
- contents.message = smithy_client_1.expectString(data.message);
4607
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4608
4608
  }
4609
4609
  const exception = new models_0_1.ResourceNotFoundException({
4610
4610
  $metadata: deserializeMetadata(parsedOutput),
4611
4611
  ...contents,
4612
4612
  });
4613
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4613
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4614
4614
  };
4615
4615
  const deserializeAws_restJson1ServiceExceptionResponse = async (parsedOutput, context) => {
4616
4616
  const contents = {};
4617
4617
  const data = parsedOutput.body;
4618
4618
  if (data.message !== undefined && data.message !== null) {
4619
- contents.message = smithy_client_1.expectString(data.message);
4619
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4620
4620
  }
4621
4621
  const exception = new models_0_1.ServiceException({
4622
4622
  $metadata: deserializeMetadata(parsedOutput),
4623
4623
  ...contents,
4624
4624
  });
4625
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4625
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4626
4626
  };
4627
4627
  const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
4628
4628
  const contents = {};
4629
4629
  const data = parsedOutput.body;
4630
4630
  if (data.message !== undefined && data.message !== null) {
4631
- contents.message = smithy_client_1.expectString(data.message);
4631
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4632
4632
  }
4633
4633
  const exception = new models_0_1.ServiceQuotaExceededException({
4634
4634
  $metadata: deserializeMetadata(parsedOutput),
4635
4635
  ...contents,
4636
4636
  });
4637
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4637
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4638
4638
  };
4639
4639
  const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
4640
4640
  const contents = {};
4641
4641
  const data = parsedOutput.body;
4642
4642
  if (data.message !== undefined && data.message !== null) {
4643
- contents.message = smithy_client_1.expectString(data.message);
4643
+ contents.message = (0, smithy_client_1.expectString)(data.message);
4644
4644
  }
4645
4645
  const exception = new models_0_1.ServiceUnavailableException({
4646
4646
  $metadata: deserializeMetadata(parsedOutput),
4647
4647
  ...contents,
4648
4648
  });
4649
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
4649
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
4650
4650
  };
4651
4651
  const serializeAws_restJson1AccountList = (input, context) => {
4652
4652
  return input
@@ -5087,7 +5087,7 @@ const deserializeAws_restJson1AccountList = (output, context) => {
5087
5087
  if (entry === null) {
5088
5088
  return null;
5089
5089
  }
5090
- return smithy_client_1.expectString(entry);
5090
+ return (0, smithy_client_1.expectString)(entry);
5091
5091
  });
5092
5092
  return retVal;
5093
5093
  };
@@ -5096,16 +5096,16 @@ const deserializeAws_restJson1AdditionalInstanceConfiguration = (output, context
5096
5096
  systemsManagerAgent: output.systemsManagerAgent !== undefined && output.systemsManagerAgent !== null
5097
5097
  ? deserializeAws_restJson1SystemsManagerAgent(output.systemsManagerAgent, context)
5098
5098
  : undefined,
5099
- userDataOverride: smithy_client_1.expectString(output.userDataOverride),
5099
+ userDataOverride: (0, smithy_client_1.expectString)(output.userDataOverride),
5100
5100
  };
5101
5101
  };
5102
5102
  const deserializeAws_restJson1Ami = (output, context) => {
5103
5103
  return {
5104
- accountId: smithy_client_1.expectString(output.accountId),
5105
- description: smithy_client_1.expectString(output.description),
5106
- image: smithy_client_1.expectString(output.image),
5107
- name: smithy_client_1.expectString(output.name),
5108
- region: smithy_client_1.expectString(output.region),
5104
+ accountId: (0, smithy_client_1.expectString)(output.accountId),
5105
+ description: (0, smithy_client_1.expectString)(output.description),
5106
+ image: (0, smithy_client_1.expectString)(output.image),
5107
+ name: (0, smithy_client_1.expectString)(output.name),
5108
+ region: (0, smithy_client_1.expectString)(output.region),
5109
5109
  state: output.state !== undefined && output.state !== null
5110
5110
  ? deserializeAws_restJson1ImageState(output.state, context)
5111
5111
  : undefined,
@@ -5116,12 +5116,12 @@ const deserializeAws_restJson1AmiDistributionConfiguration = (output, context) =
5116
5116
  amiTags: output.amiTags !== undefined && output.amiTags !== null
5117
5117
  ? deserializeAws_restJson1TagMap(output.amiTags, context)
5118
5118
  : undefined,
5119
- description: smithy_client_1.expectString(output.description),
5120
- kmsKeyId: smithy_client_1.expectString(output.kmsKeyId),
5119
+ description: (0, smithy_client_1.expectString)(output.description),
5120
+ kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
5121
5121
  launchPermission: output.launchPermission !== undefined && output.launchPermission !== null
5122
5122
  ? deserializeAws_restJson1LaunchPermissionConfiguration(output.launchPermission, context)
5123
5123
  : undefined,
5124
- name: smithy_client_1.expectString(output.name),
5124
+ name: (0, smithy_client_1.expectString)(output.name),
5125
5125
  targetAccountIds: output.targetAccountIds !== undefined && output.targetAccountIds !== null
5126
5126
  ? deserializeAws_restJson1AccountList(output.targetAccountIds, context)
5127
5127
  : undefined,
@@ -5140,19 +5140,19 @@ const deserializeAws_restJson1AmiList = (output, context) => {
5140
5140
  };
5141
5141
  const deserializeAws_restJson1Component = (output, context) => {
5142
5142
  return {
5143
- arn: smithy_client_1.expectString(output.arn),
5144
- changeDescription: smithy_client_1.expectString(output.changeDescription),
5145
- data: smithy_client_1.expectString(output.data),
5146
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5147
- description: smithy_client_1.expectString(output.description),
5148
- encrypted: smithy_client_1.expectBoolean(output.encrypted),
5149
- kmsKeyId: smithy_client_1.expectString(output.kmsKeyId),
5150
- name: smithy_client_1.expectString(output.name),
5151
- owner: smithy_client_1.expectString(output.owner),
5143
+ arn: (0, smithy_client_1.expectString)(output.arn),
5144
+ changeDescription: (0, smithy_client_1.expectString)(output.changeDescription),
5145
+ data: (0, smithy_client_1.expectString)(output.data),
5146
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5147
+ description: (0, smithy_client_1.expectString)(output.description),
5148
+ encrypted: (0, smithy_client_1.expectBoolean)(output.encrypted),
5149
+ kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
5150
+ name: (0, smithy_client_1.expectString)(output.name),
5151
+ owner: (0, smithy_client_1.expectString)(output.owner),
5152
5152
  parameters: output.parameters !== undefined && output.parameters !== null
5153
5153
  ? deserializeAws_restJson1ComponentParameterDetailList(output.parameters, context)
5154
5154
  : undefined,
5155
- platform: smithy_client_1.expectString(output.platform),
5155
+ platform: (0, smithy_client_1.expectString)(output.platform),
5156
5156
  state: output.state !== undefined && output.state !== null
5157
5157
  ? deserializeAws_restJson1ComponentState(output.state, context)
5158
5158
  : undefined,
@@ -5162,13 +5162,13 @@ const deserializeAws_restJson1Component = (output, context) => {
5162
5162
  tags: output.tags !== undefined && output.tags !== null
5163
5163
  ? deserializeAws_restJson1TagMap(output.tags, context)
5164
5164
  : undefined,
5165
- type: smithy_client_1.expectString(output.type),
5166
- version: smithy_client_1.expectString(output.version),
5165
+ type: (0, smithy_client_1.expectString)(output.type),
5166
+ version: (0, smithy_client_1.expectString)(output.version),
5167
5167
  };
5168
5168
  };
5169
5169
  const deserializeAws_restJson1ComponentConfiguration = (output, context) => {
5170
5170
  return {
5171
- componentArn: smithy_client_1.expectString(output.componentArn),
5171
+ componentArn: (0, smithy_client_1.expectString)(output.componentArn),
5172
5172
  parameters: output.parameters !== undefined && output.parameters !== null
5173
5173
  ? deserializeAws_restJson1ComponentParameterList(output.parameters, context)
5174
5174
  : undefined,
@@ -5187,7 +5187,7 @@ const deserializeAws_restJson1ComponentConfigurationList = (output, context) =>
5187
5187
  };
5188
5188
  const deserializeAws_restJson1ComponentParameter = (output, context) => {
5189
5189
  return {
5190
- name: smithy_client_1.expectString(output.name),
5190
+ name: (0, smithy_client_1.expectString)(output.name),
5191
5191
  value: output.value !== undefined && output.value !== null
5192
5192
  ? deserializeAws_restJson1ComponentParameterValueList(output.value, context)
5193
5193
  : undefined,
@@ -5198,9 +5198,9 @@ const deserializeAws_restJson1ComponentParameterDetail = (output, context) => {
5198
5198
  defaultValue: output.defaultValue !== undefined && output.defaultValue !== null
5199
5199
  ? deserializeAws_restJson1ComponentParameterValueList(output.defaultValue, context)
5200
5200
  : undefined,
5201
- description: smithy_client_1.expectString(output.description),
5202
- name: smithy_client_1.expectString(output.name),
5203
- type: smithy_client_1.expectString(output.type),
5201
+ description: (0, smithy_client_1.expectString)(output.description),
5202
+ name: (0, smithy_client_1.expectString)(output.name),
5203
+ type: (0, smithy_client_1.expectString)(output.type),
5204
5204
  };
5205
5205
  };
5206
5206
  const deserializeAws_restJson1ComponentParameterDetailList = (output, context) => {
@@ -5232,25 +5232,25 @@ const deserializeAws_restJson1ComponentParameterValueList = (output, context) =>
5232
5232
  if (entry === null) {
5233
5233
  return null;
5234
5234
  }
5235
- return smithy_client_1.expectString(entry);
5235
+ return (0, smithy_client_1.expectString)(entry);
5236
5236
  });
5237
5237
  return retVal;
5238
5238
  };
5239
5239
  const deserializeAws_restJson1ComponentState = (output, context) => {
5240
5240
  return {
5241
- reason: smithy_client_1.expectString(output.reason),
5242
- status: smithy_client_1.expectString(output.status),
5241
+ reason: (0, smithy_client_1.expectString)(output.reason),
5242
+ status: (0, smithy_client_1.expectString)(output.status),
5243
5243
  };
5244
5244
  };
5245
5245
  const deserializeAws_restJson1ComponentSummary = (output, context) => {
5246
5246
  return {
5247
- arn: smithy_client_1.expectString(output.arn),
5248
- changeDescription: smithy_client_1.expectString(output.changeDescription),
5249
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5250
- description: smithy_client_1.expectString(output.description),
5251
- name: smithy_client_1.expectString(output.name),
5252
- owner: smithy_client_1.expectString(output.owner),
5253
- platform: smithy_client_1.expectString(output.platform),
5247
+ arn: (0, smithy_client_1.expectString)(output.arn),
5248
+ changeDescription: (0, smithy_client_1.expectString)(output.changeDescription),
5249
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5250
+ description: (0, smithy_client_1.expectString)(output.description),
5251
+ name: (0, smithy_client_1.expectString)(output.name),
5252
+ owner: (0, smithy_client_1.expectString)(output.owner),
5253
+ platform: (0, smithy_client_1.expectString)(output.platform),
5254
5254
  state: output.state !== undefined && output.state !== null
5255
5255
  ? deserializeAws_restJson1ComponentState(output.state, context)
5256
5256
  : undefined,
@@ -5260,8 +5260,8 @@ const deserializeAws_restJson1ComponentSummary = (output, context) => {
5260
5260
  tags: output.tags !== undefined && output.tags !== null
5261
5261
  ? deserializeAws_restJson1TagMap(output.tags, context)
5262
5262
  : undefined,
5263
- type: smithy_client_1.expectString(output.type),
5264
- version: smithy_client_1.expectString(output.version),
5263
+ type: (0, smithy_client_1.expectString)(output.type),
5264
+ version: (0, smithy_client_1.expectString)(output.version),
5265
5265
  };
5266
5266
  };
5267
5267
  const deserializeAws_restJson1ComponentSummaryList = (output, context) => {
@@ -5277,17 +5277,17 @@ const deserializeAws_restJson1ComponentSummaryList = (output, context) => {
5277
5277
  };
5278
5278
  const deserializeAws_restJson1ComponentVersion = (output, context) => {
5279
5279
  return {
5280
- arn: smithy_client_1.expectString(output.arn),
5281
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5282
- description: smithy_client_1.expectString(output.description),
5283
- name: smithy_client_1.expectString(output.name),
5284
- owner: smithy_client_1.expectString(output.owner),
5285
- platform: smithy_client_1.expectString(output.platform),
5280
+ arn: (0, smithy_client_1.expectString)(output.arn),
5281
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5282
+ description: (0, smithy_client_1.expectString)(output.description),
5283
+ name: (0, smithy_client_1.expectString)(output.name),
5284
+ owner: (0, smithy_client_1.expectString)(output.owner),
5285
+ platform: (0, smithy_client_1.expectString)(output.platform),
5286
5286
  supportedOsVersions: output.supportedOsVersions !== undefined && output.supportedOsVersions !== null
5287
5287
  ? deserializeAws_restJson1OsVersionList(output.supportedOsVersions, context)
5288
5288
  : undefined,
5289
- type: smithy_client_1.expectString(output.type),
5290
- version: smithy_client_1.expectString(output.version),
5289
+ type: (0, smithy_client_1.expectString)(output.type),
5290
+ version: (0, smithy_client_1.expectString)(output.version),
5291
5291
  };
5292
5292
  };
5293
5293
  const deserializeAws_restJson1ComponentVersionList = (output, context) => {
@@ -5306,7 +5306,7 @@ const deserializeAws_restJson1Container = (output, context) => {
5306
5306
  imageUris: output.imageUris !== undefined && output.imageUris !== null
5307
5307
  ? deserializeAws_restJson1StringList(output.imageUris, context)
5308
5308
  : undefined,
5309
- region: smithy_client_1.expectString(output.region),
5309
+ region: (0, smithy_client_1.expectString)(output.region),
5310
5310
  };
5311
5311
  };
5312
5312
  const deserializeAws_restJson1ContainerDistributionConfiguration = (output, context) => {
@@ -5314,7 +5314,7 @@ const deserializeAws_restJson1ContainerDistributionConfiguration = (output, cont
5314
5314
  containerTags: output.containerTags !== undefined && output.containerTags !== null
5315
5315
  ? deserializeAws_restJson1StringList(output.containerTags, context)
5316
5316
  : undefined,
5317
- description: smithy_client_1.expectString(output.description),
5317
+ description: (0, smithy_client_1.expectString)(output.description),
5318
5318
  targetRepository: output.targetRepository !== undefined && output.targetRepository !== null
5319
5319
  ? deserializeAws_restJson1TargetContainerRepository(output.targetRepository, context)
5320
5320
  : undefined,
@@ -5333,42 +5333,42 @@ const deserializeAws_restJson1ContainerList = (output, context) => {
5333
5333
  };
5334
5334
  const deserializeAws_restJson1ContainerRecipe = (output, context) => {
5335
5335
  return {
5336
- arn: smithy_client_1.expectString(output.arn),
5336
+ arn: (0, smithy_client_1.expectString)(output.arn),
5337
5337
  components: output.components !== undefined && output.components !== null
5338
5338
  ? deserializeAws_restJson1ComponentConfigurationList(output.components, context)
5339
5339
  : undefined,
5340
- containerType: smithy_client_1.expectString(output.containerType),
5341
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5342
- description: smithy_client_1.expectString(output.description),
5343
- dockerfileTemplateData: smithy_client_1.expectString(output.dockerfileTemplateData),
5344
- encrypted: smithy_client_1.expectBoolean(output.encrypted),
5340
+ containerType: (0, smithy_client_1.expectString)(output.containerType),
5341
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5342
+ description: (0, smithy_client_1.expectString)(output.description),
5343
+ dockerfileTemplateData: (0, smithy_client_1.expectString)(output.dockerfileTemplateData),
5344
+ encrypted: (0, smithy_client_1.expectBoolean)(output.encrypted),
5345
5345
  instanceConfiguration: output.instanceConfiguration !== undefined && output.instanceConfiguration !== null
5346
5346
  ? deserializeAws_restJson1InstanceConfiguration(output.instanceConfiguration, context)
5347
5347
  : undefined,
5348
- kmsKeyId: smithy_client_1.expectString(output.kmsKeyId),
5349
- name: smithy_client_1.expectString(output.name),
5350
- owner: smithy_client_1.expectString(output.owner),
5351
- parentImage: smithy_client_1.expectString(output.parentImage),
5352
- platform: smithy_client_1.expectString(output.platform),
5348
+ kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
5349
+ name: (0, smithy_client_1.expectString)(output.name),
5350
+ owner: (0, smithy_client_1.expectString)(output.owner),
5351
+ parentImage: (0, smithy_client_1.expectString)(output.parentImage),
5352
+ platform: (0, smithy_client_1.expectString)(output.platform),
5353
5353
  tags: output.tags !== undefined && output.tags !== null
5354
5354
  ? deserializeAws_restJson1TagMap(output.tags, context)
5355
5355
  : undefined,
5356
5356
  targetRepository: output.targetRepository !== undefined && output.targetRepository !== null
5357
5357
  ? deserializeAws_restJson1TargetContainerRepository(output.targetRepository, context)
5358
5358
  : undefined,
5359
- version: smithy_client_1.expectString(output.version),
5360
- workingDirectory: smithy_client_1.expectString(output.workingDirectory),
5359
+ version: (0, smithy_client_1.expectString)(output.version),
5360
+ workingDirectory: (0, smithy_client_1.expectString)(output.workingDirectory),
5361
5361
  };
5362
5362
  };
5363
5363
  const deserializeAws_restJson1ContainerRecipeSummary = (output, context) => {
5364
5364
  return {
5365
- arn: smithy_client_1.expectString(output.arn),
5366
- containerType: smithy_client_1.expectString(output.containerType),
5367
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5368
- name: smithy_client_1.expectString(output.name),
5369
- owner: smithy_client_1.expectString(output.owner),
5370
- parentImage: smithy_client_1.expectString(output.parentImage),
5371
- platform: smithy_client_1.expectString(output.platform),
5365
+ arn: (0, smithy_client_1.expectString)(output.arn),
5366
+ containerType: (0, smithy_client_1.expectString)(output.containerType),
5367
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5368
+ name: (0, smithy_client_1.expectString)(output.name),
5369
+ owner: (0, smithy_client_1.expectString)(output.owner),
5370
+ parentImage: (0, smithy_client_1.expectString)(output.parentImage),
5371
+ platform: (0, smithy_client_1.expectString)(output.platform),
5372
5372
  tags: output.tags !== undefined && output.tags !== null
5373
5373
  ? deserializeAws_restJson1TagMap(output.tags, context)
5374
5374
  : undefined,
@@ -5402,7 +5402,7 @@ const deserializeAws_restJson1Distribution = (output, context) => {
5402
5402
  licenseConfigurationArns: output.licenseConfigurationArns !== undefined && output.licenseConfigurationArns !== null
5403
5403
  ? deserializeAws_restJson1LicenseConfigurationArnList(output.licenseConfigurationArns, context)
5404
5404
  : undefined,
5405
- region: smithy_client_1.expectString(output.region),
5405
+ region: (0, smithy_client_1.expectString)(output.region),
5406
5406
  s3ExportConfiguration: output.s3ExportConfiguration !== undefined && output.s3ExportConfiguration !== null
5407
5407
  ? deserializeAws_restJson1S3ExportConfiguration(output.s3ExportConfiguration, context)
5408
5408
  : undefined,
@@ -5410,27 +5410,27 @@ const deserializeAws_restJson1Distribution = (output, context) => {
5410
5410
  };
5411
5411
  const deserializeAws_restJson1DistributionConfiguration = (output, context) => {
5412
5412
  return {
5413
- arn: smithy_client_1.expectString(output.arn),
5414
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5415
- dateUpdated: smithy_client_1.expectString(output.dateUpdated),
5416
- description: smithy_client_1.expectString(output.description),
5413
+ arn: (0, smithy_client_1.expectString)(output.arn),
5414
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5415
+ dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
5416
+ description: (0, smithy_client_1.expectString)(output.description),
5417
5417
  distributions: output.distributions !== undefined && output.distributions !== null
5418
5418
  ? deserializeAws_restJson1DistributionList(output.distributions, context)
5419
5419
  : undefined,
5420
- name: smithy_client_1.expectString(output.name),
5420
+ name: (0, smithy_client_1.expectString)(output.name),
5421
5421
  tags: output.tags !== undefined && output.tags !== null
5422
5422
  ? deserializeAws_restJson1TagMap(output.tags, context)
5423
5423
  : undefined,
5424
- timeoutMinutes: smithy_client_1.expectInt32(output.timeoutMinutes),
5424
+ timeoutMinutes: (0, smithy_client_1.expectInt32)(output.timeoutMinutes),
5425
5425
  };
5426
5426
  };
5427
5427
  const deserializeAws_restJson1DistributionConfigurationSummary = (output, context) => {
5428
5428
  return {
5429
- arn: smithy_client_1.expectString(output.arn),
5430
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5431
- dateUpdated: smithy_client_1.expectString(output.dateUpdated),
5432
- description: smithy_client_1.expectString(output.description),
5433
- name: smithy_client_1.expectString(output.name),
5429
+ arn: (0, smithy_client_1.expectString)(output.arn),
5430
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5431
+ dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
5432
+ description: (0, smithy_client_1.expectString)(output.description),
5433
+ name: (0, smithy_client_1.expectString)(output.name),
5434
5434
  regions: output.regions !== undefined && output.regions !== null
5435
5435
  ? deserializeAws_restJson1RegionList(output.regions, context)
5436
5436
  : undefined,
@@ -5463,24 +5463,24 @@ const deserializeAws_restJson1DistributionList = (output, context) => {
5463
5463
  };
5464
5464
  const deserializeAws_restJson1EbsInstanceBlockDeviceSpecification = (output, context) => {
5465
5465
  return {
5466
- deleteOnTermination: smithy_client_1.expectBoolean(output.deleteOnTermination),
5467
- encrypted: smithy_client_1.expectBoolean(output.encrypted),
5468
- iops: smithy_client_1.expectInt32(output.iops),
5469
- kmsKeyId: smithy_client_1.expectString(output.kmsKeyId),
5470
- snapshotId: smithy_client_1.expectString(output.snapshotId),
5471
- throughput: smithy_client_1.expectInt32(output.throughput),
5472
- volumeSize: smithy_client_1.expectInt32(output.volumeSize),
5473
- volumeType: smithy_client_1.expectString(output.volumeType),
5466
+ deleteOnTermination: (0, smithy_client_1.expectBoolean)(output.deleteOnTermination),
5467
+ encrypted: (0, smithy_client_1.expectBoolean)(output.encrypted),
5468
+ iops: (0, smithy_client_1.expectInt32)(output.iops),
5469
+ kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
5470
+ snapshotId: (0, smithy_client_1.expectString)(output.snapshotId),
5471
+ throughput: (0, smithy_client_1.expectInt32)(output.throughput),
5472
+ volumeSize: (0, smithy_client_1.expectInt32)(output.volumeSize),
5473
+ volumeType: (0, smithy_client_1.expectString)(output.volumeType),
5474
5474
  };
5475
5475
  };
5476
5476
  const deserializeAws_restJson1FastLaunchConfiguration = (output, context) => {
5477
5477
  return {
5478
- accountId: smithy_client_1.expectString(output.accountId),
5479
- enabled: smithy_client_1.expectBoolean(output.enabled),
5478
+ accountId: (0, smithy_client_1.expectString)(output.accountId),
5479
+ enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
5480
5480
  launchTemplate: output.launchTemplate !== undefined && output.launchTemplate !== null
5481
5481
  ? deserializeAws_restJson1FastLaunchLaunchTemplateSpecification(output.launchTemplate, context)
5482
5482
  : undefined,
5483
- maxParallelLaunches: smithy_client_1.expectInt32(output.maxParallelLaunches),
5483
+ maxParallelLaunches: (0, smithy_client_1.expectInt32)(output.maxParallelLaunches),
5484
5484
  snapshotConfiguration: output.snapshotConfiguration !== undefined && output.snapshotConfiguration !== null
5485
5485
  ? deserializeAws_restJson1FastLaunchSnapshotConfiguration(output.snapshotConfiguration, context)
5486
5486
  : undefined,
@@ -5499,28 +5499,28 @@ const deserializeAws_restJson1FastLaunchConfigurationList = (output, context) =>
5499
5499
  };
5500
5500
  const deserializeAws_restJson1FastLaunchLaunchTemplateSpecification = (output, context) => {
5501
5501
  return {
5502
- launchTemplateId: smithy_client_1.expectString(output.launchTemplateId),
5503
- launchTemplateName: smithy_client_1.expectString(output.launchTemplateName),
5504
- launchTemplateVersion: smithy_client_1.expectString(output.launchTemplateVersion),
5502
+ launchTemplateId: (0, smithy_client_1.expectString)(output.launchTemplateId),
5503
+ launchTemplateName: (0, smithy_client_1.expectString)(output.launchTemplateName),
5504
+ launchTemplateVersion: (0, smithy_client_1.expectString)(output.launchTemplateVersion),
5505
5505
  };
5506
5506
  };
5507
5507
  const deserializeAws_restJson1FastLaunchSnapshotConfiguration = (output, context) => {
5508
5508
  return {
5509
- targetResourceCount: smithy_client_1.expectInt32(output.targetResourceCount),
5509
+ targetResourceCount: (0, smithy_client_1.expectInt32)(output.targetResourceCount),
5510
5510
  };
5511
5511
  };
5512
5512
  const deserializeAws_restJson1Image = (output, context) => {
5513
5513
  return {
5514
- arn: smithy_client_1.expectString(output.arn),
5515
- buildType: smithy_client_1.expectString(output.buildType),
5514
+ arn: (0, smithy_client_1.expectString)(output.arn),
5515
+ buildType: (0, smithy_client_1.expectString)(output.buildType),
5516
5516
  containerRecipe: output.containerRecipe !== undefined && output.containerRecipe !== null
5517
5517
  ? deserializeAws_restJson1ContainerRecipe(output.containerRecipe, context)
5518
5518
  : undefined,
5519
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5519
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5520
5520
  distributionConfiguration: output.distributionConfiguration !== undefined && output.distributionConfiguration !== null
5521
5521
  ? deserializeAws_restJson1DistributionConfiguration(output.distributionConfiguration, context)
5522
5522
  : undefined,
5523
- enhancedImageMetadataEnabled: smithy_client_1.expectBoolean(output.enhancedImageMetadataEnabled),
5523
+ enhancedImageMetadataEnabled: (0, smithy_client_1.expectBoolean)(output.enhancedImageMetadataEnabled),
5524
5524
  imageRecipe: output.imageRecipe !== undefined && output.imageRecipe !== null
5525
5525
  ? deserializeAws_restJson1ImageRecipe(output.imageRecipe, context)
5526
5526
  : undefined,
@@ -5530,28 +5530,28 @@ const deserializeAws_restJson1Image = (output, context) => {
5530
5530
  infrastructureConfiguration: output.infrastructureConfiguration !== undefined && output.infrastructureConfiguration !== null
5531
5531
  ? deserializeAws_restJson1InfrastructureConfiguration(output.infrastructureConfiguration, context)
5532
5532
  : undefined,
5533
- name: smithy_client_1.expectString(output.name),
5534
- osVersion: smithy_client_1.expectString(output.osVersion),
5533
+ name: (0, smithy_client_1.expectString)(output.name),
5534
+ osVersion: (0, smithy_client_1.expectString)(output.osVersion),
5535
5535
  outputResources: output.outputResources !== undefined && output.outputResources !== null
5536
5536
  ? deserializeAws_restJson1OutputResources(output.outputResources, context)
5537
5537
  : undefined,
5538
- platform: smithy_client_1.expectString(output.platform),
5539
- sourcePipelineArn: smithy_client_1.expectString(output.sourcePipelineArn),
5540
- sourcePipelineName: smithy_client_1.expectString(output.sourcePipelineName),
5538
+ platform: (0, smithy_client_1.expectString)(output.platform),
5539
+ sourcePipelineArn: (0, smithy_client_1.expectString)(output.sourcePipelineArn),
5540
+ sourcePipelineName: (0, smithy_client_1.expectString)(output.sourcePipelineName),
5541
5541
  state: output.state !== undefined && output.state !== null
5542
5542
  ? deserializeAws_restJson1ImageState(output.state, context)
5543
5543
  : undefined,
5544
5544
  tags: output.tags !== undefined && output.tags !== null
5545
5545
  ? deserializeAws_restJson1TagMap(output.tags, context)
5546
5546
  : undefined,
5547
- type: smithy_client_1.expectString(output.type),
5548
- version: smithy_client_1.expectString(output.version),
5547
+ type: (0, smithy_client_1.expectString)(output.type),
5548
+ version: (0, smithy_client_1.expectString)(output.version),
5549
5549
  };
5550
5550
  };
5551
5551
  const deserializeAws_restJson1ImagePackage = (output, context) => {
5552
5552
  return {
5553
- packageName: smithy_client_1.expectString(output.packageName),
5554
- packageVersion: smithy_client_1.expectString(output.packageVersion),
5553
+ packageName: (0, smithy_client_1.expectString)(output.packageName),
5554
+ packageVersion: (0, smithy_client_1.expectString)(output.packageVersion),
5555
5555
  };
5556
5556
  };
5557
5557
  const deserializeAws_restJson1ImagePackageList = (output, context) => {
@@ -5567,26 +5567,26 @@ const deserializeAws_restJson1ImagePackageList = (output, context) => {
5567
5567
  };
5568
5568
  const deserializeAws_restJson1ImagePipeline = (output, context) => {
5569
5569
  return {
5570
- arn: smithy_client_1.expectString(output.arn),
5571
- containerRecipeArn: smithy_client_1.expectString(output.containerRecipeArn),
5572
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5573
- dateLastRun: smithy_client_1.expectString(output.dateLastRun),
5574
- dateNextRun: smithy_client_1.expectString(output.dateNextRun),
5575
- dateUpdated: smithy_client_1.expectString(output.dateUpdated),
5576
- description: smithy_client_1.expectString(output.description),
5577
- distributionConfigurationArn: smithy_client_1.expectString(output.distributionConfigurationArn),
5578
- enhancedImageMetadataEnabled: smithy_client_1.expectBoolean(output.enhancedImageMetadataEnabled),
5579
- imageRecipeArn: smithy_client_1.expectString(output.imageRecipeArn),
5570
+ arn: (0, smithy_client_1.expectString)(output.arn),
5571
+ containerRecipeArn: (0, smithy_client_1.expectString)(output.containerRecipeArn),
5572
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5573
+ dateLastRun: (0, smithy_client_1.expectString)(output.dateLastRun),
5574
+ dateNextRun: (0, smithy_client_1.expectString)(output.dateNextRun),
5575
+ dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
5576
+ description: (0, smithy_client_1.expectString)(output.description),
5577
+ distributionConfigurationArn: (0, smithy_client_1.expectString)(output.distributionConfigurationArn),
5578
+ enhancedImageMetadataEnabled: (0, smithy_client_1.expectBoolean)(output.enhancedImageMetadataEnabled),
5579
+ imageRecipeArn: (0, smithy_client_1.expectString)(output.imageRecipeArn),
5580
5580
  imageTestsConfiguration: output.imageTestsConfiguration !== undefined && output.imageTestsConfiguration !== null
5581
5581
  ? deserializeAws_restJson1ImageTestsConfiguration(output.imageTestsConfiguration, context)
5582
5582
  : undefined,
5583
- infrastructureConfigurationArn: smithy_client_1.expectString(output.infrastructureConfigurationArn),
5584
- name: smithy_client_1.expectString(output.name),
5585
- platform: smithy_client_1.expectString(output.platform),
5583
+ infrastructureConfigurationArn: (0, smithy_client_1.expectString)(output.infrastructureConfigurationArn),
5584
+ name: (0, smithy_client_1.expectString)(output.name),
5585
+ platform: (0, smithy_client_1.expectString)(output.platform),
5586
5586
  schedule: output.schedule !== undefined && output.schedule !== null
5587
5587
  ? deserializeAws_restJson1Schedule(output.schedule, context)
5588
5588
  : undefined,
5589
- status: smithy_client_1.expectString(output.status),
5589
+ status: (0, smithy_client_1.expectString)(output.status),
5590
5590
  tags: output.tags !== undefined && output.tags !== null
5591
5591
  ? deserializeAws_restJson1TagMap(output.tags, context)
5592
5592
  : undefined,
@@ -5608,35 +5608,35 @@ const deserializeAws_restJson1ImageRecipe = (output, context) => {
5608
5608
  additionalInstanceConfiguration: output.additionalInstanceConfiguration !== undefined && output.additionalInstanceConfiguration !== null
5609
5609
  ? deserializeAws_restJson1AdditionalInstanceConfiguration(output.additionalInstanceConfiguration, context)
5610
5610
  : undefined,
5611
- arn: smithy_client_1.expectString(output.arn),
5611
+ arn: (0, smithy_client_1.expectString)(output.arn),
5612
5612
  blockDeviceMappings: output.blockDeviceMappings !== undefined && output.blockDeviceMappings !== null
5613
5613
  ? deserializeAws_restJson1InstanceBlockDeviceMappings(output.blockDeviceMappings, context)
5614
5614
  : undefined,
5615
5615
  components: output.components !== undefined && output.components !== null
5616
5616
  ? deserializeAws_restJson1ComponentConfigurationList(output.components, context)
5617
5617
  : undefined,
5618
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5619
- description: smithy_client_1.expectString(output.description),
5620
- name: smithy_client_1.expectString(output.name),
5621
- owner: smithy_client_1.expectString(output.owner),
5622
- parentImage: smithy_client_1.expectString(output.parentImage),
5623
- platform: smithy_client_1.expectString(output.platform),
5618
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5619
+ description: (0, smithy_client_1.expectString)(output.description),
5620
+ name: (0, smithy_client_1.expectString)(output.name),
5621
+ owner: (0, smithy_client_1.expectString)(output.owner),
5622
+ parentImage: (0, smithy_client_1.expectString)(output.parentImage),
5623
+ platform: (0, smithy_client_1.expectString)(output.platform),
5624
5624
  tags: output.tags !== undefined && output.tags !== null
5625
5625
  ? deserializeAws_restJson1TagMap(output.tags, context)
5626
5626
  : undefined,
5627
- type: smithy_client_1.expectString(output.type),
5628
- version: smithy_client_1.expectString(output.version),
5629
- workingDirectory: smithy_client_1.expectString(output.workingDirectory),
5627
+ type: (0, smithy_client_1.expectString)(output.type),
5628
+ version: (0, smithy_client_1.expectString)(output.version),
5629
+ workingDirectory: (0, smithy_client_1.expectString)(output.workingDirectory),
5630
5630
  };
5631
5631
  };
5632
5632
  const deserializeAws_restJson1ImageRecipeSummary = (output, context) => {
5633
5633
  return {
5634
- arn: smithy_client_1.expectString(output.arn),
5635
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5636
- name: smithy_client_1.expectString(output.name),
5637
- owner: smithy_client_1.expectString(output.owner),
5638
- parentImage: smithy_client_1.expectString(output.parentImage),
5639
- platform: smithy_client_1.expectString(output.platform),
5634
+ arn: (0, smithy_client_1.expectString)(output.arn),
5635
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5636
+ name: (0, smithy_client_1.expectString)(output.name),
5637
+ owner: (0, smithy_client_1.expectString)(output.owner),
5638
+ parentImage: (0, smithy_client_1.expectString)(output.parentImage),
5639
+ platform: (0, smithy_client_1.expectString)(output.platform),
5640
5640
  tags: output.tags !== undefined && output.tags !== null
5641
5641
  ? deserializeAws_restJson1TagMap(output.tags, context)
5642
5642
  : undefined,
@@ -5655,30 +5655,30 @@ const deserializeAws_restJson1ImageRecipeSummaryList = (output, context) => {
5655
5655
  };
5656
5656
  const deserializeAws_restJson1ImageState = (output, context) => {
5657
5657
  return {
5658
- reason: smithy_client_1.expectString(output.reason),
5659
- status: smithy_client_1.expectString(output.status),
5658
+ reason: (0, smithy_client_1.expectString)(output.reason),
5659
+ status: (0, smithy_client_1.expectString)(output.status),
5660
5660
  };
5661
5661
  };
5662
5662
  const deserializeAws_restJson1ImageSummary = (output, context) => {
5663
5663
  return {
5664
- arn: smithy_client_1.expectString(output.arn),
5665
- buildType: smithy_client_1.expectString(output.buildType),
5666
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5667
- name: smithy_client_1.expectString(output.name),
5668
- osVersion: smithy_client_1.expectString(output.osVersion),
5664
+ arn: (0, smithy_client_1.expectString)(output.arn),
5665
+ buildType: (0, smithy_client_1.expectString)(output.buildType),
5666
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5667
+ name: (0, smithy_client_1.expectString)(output.name),
5668
+ osVersion: (0, smithy_client_1.expectString)(output.osVersion),
5669
5669
  outputResources: output.outputResources !== undefined && output.outputResources !== null
5670
5670
  ? deserializeAws_restJson1OutputResources(output.outputResources, context)
5671
5671
  : undefined,
5672
- owner: smithy_client_1.expectString(output.owner),
5673
- platform: smithy_client_1.expectString(output.platform),
5672
+ owner: (0, smithy_client_1.expectString)(output.owner),
5673
+ platform: (0, smithy_client_1.expectString)(output.platform),
5674
5674
  state: output.state !== undefined && output.state !== null
5675
5675
  ? deserializeAws_restJson1ImageState(output.state, context)
5676
5676
  : undefined,
5677
5677
  tags: output.tags !== undefined && output.tags !== null
5678
5678
  ? deserializeAws_restJson1TagMap(output.tags, context)
5679
5679
  : undefined,
5680
- type: smithy_client_1.expectString(output.type),
5681
- version: smithy_client_1.expectString(output.version),
5680
+ type: (0, smithy_client_1.expectString)(output.type),
5681
+ version: (0, smithy_client_1.expectString)(output.version),
5682
5682
  };
5683
5683
  };
5684
5684
  const deserializeAws_restJson1ImageSummaryList = (output, context) => {
@@ -5694,21 +5694,21 @@ const deserializeAws_restJson1ImageSummaryList = (output, context) => {
5694
5694
  };
5695
5695
  const deserializeAws_restJson1ImageTestsConfiguration = (output, context) => {
5696
5696
  return {
5697
- imageTestsEnabled: smithy_client_1.expectBoolean(output.imageTestsEnabled),
5698
- timeoutMinutes: smithy_client_1.expectInt32(output.timeoutMinutes),
5697
+ imageTestsEnabled: (0, smithy_client_1.expectBoolean)(output.imageTestsEnabled),
5698
+ timeoutMinutes: (0, smithy_client_1.expectInt32)(output.timeoutMinutes),
5699
5699
  };
5700
5700
  };
5701
5701
  const deserializeAws_restJson1ImageVersion = (output, context) => {
5702
5702
  return {
5703
- arn: smithy_client_1.expectString(output.arn),
5704
- buildType: smithy_client_1.expectString(output.buildType),
5705
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5706
- name: smithy_client_1.expectString(output.name),
5707
- osVersion: smithy_client_1.expectString(output.osVersion),
5708
- owner: smithy_client_1.expectString(output.owner),
5709
- platform: smithy_client_1.expectString(output.platform),
5710
- type: smithy_client_1.expectString(output.type),
5711
- version: smithy_client_1.expectString(output.version),
5703
+ arn: (0, smithy_client_1.expectString)(output.arn),
5704
+ buildType: (0, smithy_client_1.expectString)(output.buildType),
5705
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5706
+ name: (0, smithy_client_1.expectString)(output.name),
5707
+ osVersion: (0, smithy_client_1.expectString)(output.osVersion),
5708
+ owner: (0, smithy_client_1.expectString)(output.owner),
5709
+ platform: (0, smithy_client_1.expectString)(output.platform),
5710
+ type: (0, smithy_client_1.expectString)(output.type),
5711
+ version: (0, smithy_client_1.expectString)(output.version),
5712
5712
  };
5713
5713
  };
5714
5714
  const deserializeAws_restJson1ImageVersionList = (output, context) => {
@@ -5724,47 +5724,47 @@ const deserializeAws_restJson1ImageVersionList = (output, context) => {
5724
5724
  };
5725
5725
  const deserializeAws_restJson1InfrastructureConfiguration = (output, context) => {
5726
5726
  return {
5727
- arn: smithy_client_1.expectString(output.arn),
5728
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5729
- dateUpdated: smithy_client_1.expectString(output.dateUpdated),
5730
- description: smithy_client_1.expectString(output.description),
5727
+ arn: (0, smithy_client_1.expectString)(output.arn),
5728
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5729
+ dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
5730
+ description: (0, smithy_client_1.expectString)(output.description),
5731
5731
  instanceMetadataOptions: output.instanceMetadataOptions !== undefined && output.instanceMetadataOptions !== null
5732
5732
  ? deserializeAws_restJson1InstanceMetadataOptions(output.instanceMetadataOptions, context)
5733
5733
  : undefined,
5734
- instanceProfileName: smithy_client_1.expectString(output.instanceProfileName),
5734
+ instanceProfileName: (0, smithy_client_1.expectString)(output.instanceProfileName),
5735
5735
  instanceTypes: output.instanceTypes !== undefined && output.instanceTypes !== null
5736
5736
  ? deserializeAws_restJson1InstanceTypeList(output.instanceTypes, context)
5737
5737
  : undefined,
5738
- keyPair: smithy_client_1.expectString(output.keyPair),
5738
+ keyPair: (0, smithy_client_1.expectString)(output.keyPair),
5739
5739
  logging: output.logging !== undefined && output.logging !== null
5740
5740
  ? deserializeAws_restJson1Logging(output.logging, context)
5741
5741
  : undefined,
5742
- name: smithy_client_1.expectString(output.name),
5742
+ name: (0, smithy_client_1.expectString)(output.name),
5743
5743
  resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
5744
5744
  ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context)
5745
5745
  : undefined,
5746
5746
  securityGroupIds: output.securityGroupIds !== undefined && output.securityGroupIds !== null
5747
5747
  ? deserializeAws_restJson1SecurityGroupIds(output.securityGroupIds, context)
5748
5748
  : undefined,
5749
- snsTopicArn: smithy_client_1.expectString(output.snsTopicArn),
5750
- subnetId: smithy_client_1.expectString(output.subnetId),
5749
+ snsTopicArn: (0, smithy_client_1.expectString)(output.snsTopicArn),
5750
+ subnetId: (0, smithy_client_1.expectString)(output.subnetId),
5751
5751
  tags: output.tags !== undefined && output.tags !== null
5752
5752
  ? deserializeAws_restJson1TagMap(output.tags, context)
5753
5753
  : undefined,
5754
- terminateInstanceOnFailure: smithy_client_1.expectBoolean(output.terminateInstanceOnFailure),
5754
+ terminateInstanceOnFailure: (0, smithy_client_1.expectBoolean)(output.terminateInstanceOnFailure),
5755
5755
  };
5756
5756
  };
5757
5757
  const deserializeAws_restJson1InfrastructureConfigurationSummary = (output, context) => {
5758
5758
  return {
5759
- arn: smithy_client_1.expectString(output.arn),
5760
- dateCreated: smithy_client_1.expectString(output.dateCreated),
5761
- dateUpdated: smithy_client_1.expectString(output.dateUpdated),
5762
- description: smithy_client_1.expectString(output.description),
5763
- instanceProfileName: smithy_client_1.expectString(output.instanceProfileName),
5759
+ arn: (0, smithy_client_1.expectString)(output.arn),
5760
+ dateCreated: (0, smithy_client_1.expectString)(output.dateCreated),
5761
+ dateUpdated: (0, smithy_client_1.expectString)(output.dateUpdated),
5762
+ description: (0, smithy_client_1.expectString)(output.description),
5763
+ instanceProfileName: (0, smithy_client_1.expectString)(output.instanceProfileName),
5764
5764
  instanceTypes: output.instanceTypes !== undefined && output.instanceTypes !== null
5765
5765
  ? deserializeAws_restJson1InstanceTypeList(output.instanceTypes, context)
5766
5766
  : undefined,
5767
- name: smithy_client_1.expectString(output.name),
5767
+ name: (0, smithy_client_1.expectString)(output.name),
5768
5768
  resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
5769
5769
  ? deserializeAws_restJson1ResourceTagMap(output.resourceTags, context)
5770
5770
  : undefined,
@@ -5786,12 +5786,12 @@ const deserializeAws_restJson1InfrastructureConfigurationSummaryList = (output,
5786
5786
  };
5787
5787
  const deserializeAws_restJson1InstanceBlockDeviceMapping = (output, context) => {
5788
5788
  return {
5789
- deviceName: smithy_client_1.expectString(output.deviceName),
5789
+ deviceName: (0, smithy_client_1.expectString)(output.deviceName),
5790
5790
  ebs: output.ebs !== undefined && output.ebs !== null
5791
5791
  ? deserializeAws_restJson1EbsInstanceBlockDeviceSpecification(output.ebs, context)
5792
5792
  : undefined,
5793
- noDevice: smithy_client_1.expectString(output.noDevice),
5794
- virtualName: smithy_client_1.expectString(output.virtualName),
5793
+ noDevice: (0, smithy_client_1.expectString)(output.noDevice),
5794
+ virtualName: (0, smithy_client_1.expectString)(output.virtualName),
5795
5795
  };
5796
5796
  };
5797
5797
  const deserializeAws_restJson1InstanceBlockDeviceMappings = (output, context) => {
@@ -5810,13 +5810,13 @@ const deserializeAws_restJson1InstanceConfiguration = (output, context) => {
5810
5810
  blockDeviceMappings: output.blockDeviceMappings !== undefined && output.blockDeviceMappings !== null
5811
5811
  ? deserializeAws_restJson1InstanceBlockDeviceMappings(output.blockDeviceMappings, context)
5812
5812
  : undefined,
5813
- image: smithy_client_1.expectString(output.image),
5813
+ image: (0, smithy_client_1.expectString)(output.image),
5814
5814
  };
5815
5815
  };
5816
5816
  const deserializeAws_restJson1InstanceMetadataOptions = (output, context) => {
5817
5817
  return {
5818
- httpPutResponseHopLimit: smithy_client_1.expectInt32(output.httpPutResponseHopLimit),
5819
- httpTokens: smithy_client_1.expectString(output.httpTokens),
5818
+ httpPutResponseHopLimit: (0, smithy_client_1.expectInt32)(output.httpPutResponseHopLimit),
5819
+ httpTokens: (0, smithy_client_1.expectString)(output.httpTokens),
5820
5820
  };
5821
5821
  };
5822
5822
  const deserializeAws_restJson1InstanceTypeList = (output, context) => {
@@ -5826,7 +5826,7 @@ const deserializeAws_restJson1InstanceTypeList = (output, context) => {
5826
5826
  if (entry === null) {
5827
5827
  return null;
5828
5828
  }
5829
- return smithy_client_1.expectString(entry);
5829
+ return (0, smithy_client_1.expectString)(entry);
5830
5830
  });
5831
5831
  return retVal;
5832
5832
  };
@@ -5848,9 +5848,9 @@ const deserializeAws_restJson1LaunchPermissionConfiguration = (output, context)
5848
5848
  };
5849
5849
  const deserializeAws_restJson1LaunchTemplateConfiguration = (output, context) => {
5850
5850
  return {
5851
- accountId: smithy_client_1.expectString(output.accountId),
5852
- launchTemplateId: smithy_client_1.expectString(output.launchTemplateId),
5853
- setDefaultVersion: smithy_client_1.expectBoolean(output.setDefaultVersion),
5851
+ accountId: (0, smithy_client_1.expectString)(output.accountId),
5852
+ launchTemplateId: (0, smithy_client_1.expectString)(output.launchTemplateId),
5853
+ setDefaultVersion: (0, smithy_client_1.expectBoolean)(output.setDefaultVersion),
5854
5854
  };
5855
5855
  };
5856
5856
  const deserializeAws_restJson1LaunchTemplateConfigurationList = (output, context) => {
@@ -5871,7 +5871,7 @@ const deserializeAws_restJson1LicenseConfigurationArnList = (output, context) =>
5871
5871
  if (entry === null) {
5872
5872
  return null;
5873
5873
  }
5874
- return smithy_client_1.expectString(entry);
5874
+ return (0, smithy_client_1.expectString)(entry);
5875
5875
  });
5876
5876
  return retVal;
5877
5877
  };
@@ -5889,7 +5889,7 @@ const deserializeAws_restJson1OrganizationalUnitArnList = (output, context) => {
5889
5889
  if (entry === null) {
5890
5890
  return null;
5891
5891
  }
5892
- return smithy_client_1.expectString(entry);
5892
+ return (0, smithy_client_1.expectString)(entry);
5893
5893
  });
5894
5894
  return retVal;
5895
5895
  };
@@ -5900,7 +5900,7 @@ const deserializeAws_restJson1OrganizationArnList = (output, context) => {
5900
5900
  if (entry === null) {
5901
5901
  return null;
5902
5902
  }
5903
- return smithy_client_1.expectString(entry);
5903
+ return (0, smithy_client_1.expectString)(entry);
5904
5904
  });
5905
5905
  return retVal;
5906
5906
  };
@@ -5911,7 +5911,7 @@ const deserializeAws_restJson1OsVersionList = (output, context) => {
5911
5911
  if (entry === null) {
5912
5912
  return null;
5913
5913
  }
5914
- return smithy_client_1.expectString(entry);
5914
+ return (0, smithy_client_1.expectString)(entry);
5915
5915
  });
5916
5916
  return retVal;
5917
5917
  };
@@ -5932,7 +5932,7 @@ const deserializeAws_restJson1RegionList = (output, context) => {
5932
5932
  if (entry === null) {
5933
5933
  return null;
5934
5934
  }
5935
- return smithy_client_1.expectString(entry);
5935
+ return (0, smithy_client_1.expectString)(entry);
5936
5936
  });
5937
5937
  return retVal;
5938
5938
  };
@@ -5943,29 +5943,29 @@ const deserializeAws_restJson1ResourceTagMap = (output, context) => {
5943
5943
  }
5944
5944
  return {
5945
5945
  ...acc,
5946
- [key]: smithy_client_1.expectString(value),
5946
+ [key]: (0, smithy_client_1.expectString)(value),
5947
5947
  };
5948
5948
  }, {});
5949
5949
  };
5950
5950
  const deserializeAws_restJson1S3ExportConfiguration = (output, context) => {
5951
5951
  return {
5952
- diskImageFormat: smithy_client_1.expectString(output.diskImageFormat),
5953
- roleName: smithy_client_1.expectString(output.roleName),
5954
- s3Bucket: smithy_client_1.expectString(output.s3Bucket),
5955
- s3Prefix: smithy_client_1.expectString(output.s3Prefix),
5952
+ diskImageFormat: (0, smithy_client_1.expectString)(output.diskImageFormat),
5953
+ roleName: (0, smithy_client_1.expectString)(output.roleName),
5954
+ s3Bucket: (0, smithy_client_1.expectString)(output.s3Bucket),
5955
+ s3Prefix: (0, smithy_client_1.expectString)(output.s3Prefix),
5956
5956
  };
5957
5957
  };
5958
5958
  const deserializeAws_restJson1S3Logs = (output, context) => {
5959
5959
  return {
5960
- s3BucketName: smithy_client_1.expectString(output.s3BucketName),
5961
- s3KeyPrefix: smithy_client_1.expectString(output.s3KeyPrefix),
5960
+ s3BucketName: (0, smithy_client_1.expectString)(output.s3BucketName),
5961
+ s3KeyPrefix: (0, smithy_client_1.expectString)(output.s3KeyPrefix),
5962
5962
  };
5963
5963
  };
5964
5964
  const deserializeAws_restJson1Schedule = (output, context) => {
5965
5965
  return {
5966
- pipelineExecutionStartCondition: smithy_client_1.expectString(output.pipelineExecutionStartCondition),
5967
- scheduleExpression: smithy_client_1.expectString(output.scheduleExpression),
5968
- timezone: smithy_client_1.expectString(output.timezone),
5966
+ pipelineExecutionStartCondition: (0, smithy_client_1.expectString)(output.pipelineExecutionStartCondition),
5967
+ scheduleExpression: (0, smithy_client_1.expectString)(output.scheduleExpression),
5968
+ timezone: (0, smithy_client_1.expectString)(output.timezone),
5969
5969
  };
5970
5970
  };
5971
5971
  const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
@@ -5975,7 +5975,7 @@ const deserializeAws_restJson1SecurityGroupIds = (output, context) => {
5975
5975
  if (entry === null) {
5976
5976
  return null;
5977
5977
  }
5978
- return smithy_client_1.expectString(entry);
5978
+ return (0, smithy_client_1.expectString)(entry);
5979
5979
  });
5980
5980
  return retVal;
5981
5981
  };
@@ -5986,13 +5986,13 @@ const deserializeAws_restJson1StringList = (output, context) => {
5986
5986
  if (entry === null) {
5987
5987
  return null;
5988
5988
  }
5989
- return smithy_client_1.expectString(entry);
5989
+ return (0, smithy_client_1.expectString)(entry);
5990
5990
  });
5991
5991
  return retVal;
5992
5992
  };
5993
5993
  const deserializeAws_restJson1SystemsManagerAgent = (output, context) => {
5994
5994
  return {
5995
- uninstallAfterBuild: smithy_client_1.expectBoolean(output.uninstallAfterBuild),
5995
+ uninstallAfterBuild: (0, smithy_client_1.expectBoolean)(output.uninstallAfterBuild),
5996
5996
  };
5997
5997
  };
5998
5998
  const deserializeAws_restJson1TagMap = (output, context) => {
@@ -6002,14 +6002,14 @@ const deserializeAws_restJson1TagMap = (output, context) => {
6002
6002
  }
6003
6003
  return {
6004
6004
  ...acc,
6005
- [key]: smithy_client_1.expectString(value),
6005
+ [key]: (0, smithy_client_1.expectString)(value),
6006
6006
  };
6007
6007
  }, {});
6008
6008
  };
6009
6009
  const deserializeAws_restJson1TargetContainerRepository = (output, context) => {
6010
6010
  return {
6011
- repositoryName: smithy_client_1.expectString(output.repositoryName),
6012
- service: smithy_client_1.expectString(output.service),
6011
+ repositoryName: (0, smithy_client_1.expectString)(output.repositoryName),
6012
+ service: (0, smithy_client_1.expectString)(output.service),
6013
6013
  };
6014
6014
  };
6015
6015
  const deserializeMetadata = (output) => {