@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
@@ -15,7 +15,7 @@ export var serializeAws_restJson1CancelImageCreationCommand = function (input, c
15
15
  headers = {
16
16
  "content-type": "application/json",
17
17
  };
18
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CancelImageCreation";
18
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CancelImageCreation";
19
19
  body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.imageBuildVersionArn !== undefined &&
20
20
  input.imageBuildVersionArn !== null && { imageBuildVersionArn: input.imageBuildVersionArn })));
21
21
  return [2, new __HttpRequest({
@@ -41,7 +41,7 @@ export var serializeAws_restJson1CreateComponentCommand = function (input, conte
41
41
  headers = {
42
42
  "content-type": "application/json",
43
43
  };
44
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateComponent";
44
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateComponent";
45
45
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.changeDescription !== undefined &&
46
46
  input.changeDescription !== null && { changeDescription: input.changeDescription })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.data !== undefined && input.data !== null && { data: input.data })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.platform !== undefined && input.platform !== null && { platform: input.platform })), (input.semanticVersion !== undefined &&
47
47
  input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.supportedOsVersions !== undefined &&
@@ -71,7 +71,7 @@ export var serializeAws_restJson1CreateContainerRecipeCommand = function (input,
71
71
  headers = {
72
72
  "content-type": "application/json",
73
73
  };
74
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateContainerRecipe";
74
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateContainerRecipe";
75
75
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.components !== undefined &&
76
76
  input.components !== null && {
77
77
  components: serializeAws_restJson1ComponentConfigurationList(input.components, context),
@@ -111,7 +111,7 @@ export var serializeAws_restJson1CreateDistributionConfigurationCommand = functi
111
111
  headers = {
112
112
  "content-type": "application/json",
113
113
  };
114
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateDistributionConfiguration";
114
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateDistributionConfiguration";
115
115
  body = JSON.stringify(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.distributions !== undefined &&
116
116
  input.distributions !== null && {
117
117
  distributions: serializeAws_restJson1DistributionList(input.distributions, context),
@@ -139,7 +139,7 @@ export var serializeAws_restJson1CreateImageCommand = function (input, context)
139
139
  headers = {
140
140
  "content-type": "application/json",
141
141
  };
142
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImage";
142
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImage";
143
143
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn !== undefined &&
144
144
  input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.distributionConfigurationArn !== undefined &&
145
145
  input.distributionConfigurationArn !== null && {
@@ -178,7 +178,7 @@ export var serializeAws_restJson1CreateImagePipelineCommand = function (input, c
178
178
  headers = {
179
179
  "content-type": "application/json",
180
180
  };
181
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImagePipeline";
181
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImagePipeline";
182
182
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn !== undefined &&
183
183
  input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.distributionConfigurationArn !== undefined &&
184
184
  input.distributionConfigurationArn !== null && {
@@ -218,7 +218,7 @@ export var serializeAws_restJson1CreateImageRecipeCommand = function (input, con
218
218
  headers = {
219
219
  "content-type": "application/json",
220
220
  };
221
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImageRecipe";
221
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateImageRecipe";
222
222
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.additionalInstanceConfiguration !== undefined &&
223
223
  input.additionalInstanceConfiguration !== null && {
224
224
  additionalInstanceConfiguration: serializeAws_restJson1AdditionalInstanceConfiguration(input.additionalInstanceConfiguration, context),
@@ -254,7 +254,7 @@ export var serializeAws_restJson1CreateInfrastructureConfigurationCommand = func
254
254
  headers = {
255
255
  "content-type": "application/json",
256
256
  };
257
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateInfrastructureConfiguration";
257
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/CreateInfrastructureConfiguration";
258
258
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.instanceMetadataOptions !== undefined &&
259
259
  input.instanceMetadataOptions !== null && {
260
260
  instanceMetadataOptions: serializeAws_restJson1InstanceMetadataOptions(input.instanceMetadataOptions, context),
@@ -291,7 +291,7 @@ export var serializeAws_restJson1DeleteComponentCommand = function (input, conte
291
291
  case 1:
292
292
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
293
293
  headers = {};
294
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteComponent";
294
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteComponent";
295
295
  query = __assign({}, (input.componentBuildVersionArn !== undefined && { componentBuildVersionArn: input.componentBuildVersionArn }));
296
296
  return [2, new __HttpRequest({
297
297
  protocol: protocol,
@@ -314,7 +314,7 @@ export var serializeAws_restJson1DeleteContainerRecipeCommand = function (input,
314
314
  case 1:
315
315
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
316
316
  headers = {};
317
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteContainerRecipe";
317
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteContainerRecipe";
318
318
  query = __assign({}, (input.containerRecipeArn !== undefined && { containerRecipeArn: input.containerRecipeArn }));
319
319
  return [2, new __HttpRequest({
320
320
  protocol: protocol,
@@ -337,7 +337,7 @@ export var serializeAws_restJson1DeleteDistributionConfigurationCommand = functi
337
337
  case 1:
338
338
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
339
339
  headers = {};
340
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteDistributionConfiguration";
340
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteDistributionConfiguration";
341
341
  query = __assign({}, (input.distributionConfigurationArn !== undefined && {
342
342
  distributionConfigurationArn: input.distributionConfigurationArn,
343
343
  }));
@@ -362,7 +362,7 @@ export var serializeAws_restJson1DeleteImageCommand = function (input, context)
362
362
  case 1:
363
363
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
364
364
  headers = {};
365
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteImage";
365
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteImage";
366
366
  query = __assign({}, (input.imageBuildVersionArn !== undefined && { imageBuildVersionArn: input.imageBuildVersionArn }));
367
367
  return [2, new __HttpRequest({
368
368
  protocol: protocol,
@@ -385,7 +385,7 @@ export var serializeAws_restJson1DeleteImagePipelineCommand = function (input, c
385
385
  case 1:
386
386
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
387
387
  headers = {};
388
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteImagePipeline";
388
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteImagePipeline";
389
389
  query = __assign({}, (input.imagePipelineArn !== undefined && { imagePipelineArn: input.imagePipelineArn }));
390
390
  return [2, new __HttpRequest({
391
391
  protocol: protocol,
@@ -408,7 +408,7 @@ export var serializeAws_restJson1DeleteImageRecipeCommand = function (input, con
408
408
  case 1:
409
409
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
410
410
  headers = {};
411
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteImageRecipe";
411
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteImageRecipe";
412
412
  query = __assign({}, (input.imageRecipeArn !== undefined && { imageRecipeArn: input.imageRecipeArn }));
413
413
  return [2, new __HttpRequest({
414
414
  protocol: protocol,
@@ -431,7 +431,7 @@ export var serializeAws_restJson1DeleteInfrastructureConfigurationCommand = func
431
431
  case 1:
432
432
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
433
433
  headers = {};
434
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteInfrastructureConfiguration";
434
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/DeleteInfrastructureConfiguration";
435
435
  query = __assign({}, (input.infrastructureConfigurationArn !== undefined && {
436
436
  infrastructureConfigurationArn: input.infrastructureConfigurationArn,
437
437
  }));
@@ -456,7 +456,7 @@ export var serializeAws_restJson1GetComponentCommand = function (input, context)
456
456
  case 1:
457
457
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
458
458
  headers = {};
459
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetComponent";
459
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetComponent";
460
460
  query = __assign({}, (input.componentBuildVersionArn !== undefined && { componentBuildVersionArn: input.componentBuildVersionArn }));
461
461
  return [2, new __HttpRequest({
462
462
  protocol: protocol,
@@ -479,7 +479,7 @@ export var serializeAws_restJson1GetComponentPolicyCommand = function (input, co
479
479
  case 1:
480
480
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
481
481
  headers = {};
482
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetComponentPolicy";
482
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetComponentPolicy";
483
483
  query = __assign({}, (input.componentArn !== undefined && { componentArn: input.componentArn }));
484
484
  return [2, new __HttpRequest({
485
485
  protocol: protocol,
@@ -502,7 +502,7 @@ export var serializeAws_restJson1GetContainerRecipeCommand = function (input, co
502
502
  case 1:
503
503
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
504
504
  headers = {};
505
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetContainerRecipe";
505
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetContainerRecipe";
506
506
  query = __assign({}, (input.containerRecipeArn !== undefined && { containerRecipeArn: input.containerRecipeArn }));
507
507
  return [2, new __HttpRequest({
508
508
  protocol: protocol,
@@ -525,7 +525,7 @@ export var serializeAws_restJson1GetContainerRecipePolicyCommand = function (inp
525
525
  case 1:
526
526
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
527
527
  headers = {};
528
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetContainerRecipePolicy";
528
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetContainerRecipePolicy";
529
529
  query = __assign({}, (input.containerRecipeArn !== undefined && { containerRecipeArn: input.containerRecipeArn }));
530
530
  return [2, new __HttpRequest({
531
531
  protocol: protocol,
@@ -548,7 +548,7 @@ export var serializeAws_restJson1GetDistributionConfigurationCommand = function
548
548
  case 1:
549
549
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
550
550
  headers = {};
551
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetDistributionConfiguration";
551
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetDistributionConfiguration";
552
552
  query = __assign({}, (input.distributionConfigurationArn !== undefined && {
553
553
  distributionConfigurationArn: input.distributionConfigurationArn,
554
554
  }));
@@ -573,7 +573,7 @@ export var serializeAws_restJson1GetImageCommand = function (input, context) { r
573
573
  case 1:
574
574
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
575
575
  headers = {};
576
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImage";
576
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImage";
577
577
  query = __assign({}, (input.imageBuildVersionArn !== undefined && { imageBuildVersionArn: input.imageBuildVersionArn }));
578
578
  return [2, new __HttpRequest({
579
579
  protocol: protocol,
@@ -596,7 +596,7 @@ export var serializeAws_restJson1GetImagePipelineCommand = function (input, cont
596
596
  case 1:
597
597
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
598
598
  headers = {};
599
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImagePipeline";
599
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImagePipeline";
600
600
  query = __assign({}, (input.imagePipelineArn !== undefined && { imagePipelineArn: input.imagePipelineArn }));
601
601
  return [2, new __HttpRequest({
602
602
  protocol: protocol,
@@ -619,7 +619,7 @@ export var serializeAws_restJson1GetImagePolicyCommand = function (input, contex
619
619
  case 1:
620
620
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
621
621
  headers = {};
622
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImagePolicy";
622
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImagePolicy";
623
623
  query = __assign({}, (input.imageArn !== undefined && { imageArn: input.imageArn }));
624
624
  return [2, new __HttpRequest({
625
625
  protocol: protocol,
@@ -642,7 +642,7 @@ export var serializeAws_restJson1GetImageRecipeCommand = function (input, contex
642
642
  case 1:
643
643
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
644
644
  headers = {};
645
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImageRecipe";
645
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImageRecipe";
646
646
  query = __assign({}, (input.imageRecipeArn !== undefined && { imageRecipeArn: input.imageRecipeArn }));
647
647
  return [2, new __HttpRequest({
648
648
  protocol: protocol,
@@ -665,7 +665,7 @@ export var serializeAws_restJson1GetImageRecipePolicyCommand = function (input,
665
665
  case 1:
666
666
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
667
667
  headers = {};
668
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImageRecipePolicy";
668
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetImageRecipePolicy";
669
669
  query = __assign({}, (input.imageRecipeArn !== undefined && { imageRecipeArn: input.imageRecipeArn }));
670
670
  return [2, new __HttpRequest({
671
671
  protocol: protocol,
@@ -688,7 +688,7 @@ export var serializeAws_restJson1GetInfrastructureConfigurationCommand = functio
688
688
  case 1:
689
689
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
690
690
  headers = {};
691
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetInfrastructureConfiguration";
691
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/GetInfrastructureConfiguration";
692
692
  query = __assign({}, (input.infrastructureConfigurationArn !== undefined && {
693
693
  infrastructureConfigurationArn: input.infrastructureConfigurationArn,
694
694
  }));
@@ -716,7 +716,7 @@ export var serializeAws_restJson1ImportComponentCommand = function (input, conte
716
716
  headers = {
717
717
  "content-type": "application/json",
718
718
  };
719
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportComponent";
719
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportComponent";
720
720
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.changeDescription !== undefined &&
721
721
  input.changeDescription !== null && { changeDescription: input.changeDescription })), { clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.data !== undefined && input.data !== null && { data: input.data })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.format !== undefined && input.format !== null && { format: input.format })), (input.kmsKeyId !== undefined && input.kmsKeyId !== null && { kmsKeyId: input.kmsKeyId })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.platform !== undefined && input.platform !== null && { platform: input.platform })), (input.semanticVersion !== undefined &&
722
722
  input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.uri !== undefined && input.uri !== null && { uri: input.uri })));
@@ -743,7 +743,7 @@ export var serializeAws_restJson1ImportVmImageCommand = function (input, context
743
743
  headers = {
744
744
  "content-type": "application/json",
745
745
  };
746
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportVmImage";
746
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ImportVmImage";
747
747
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.osVersion !== undefined && input.osVersion !== null && { osVersion: input.osVersion })), (input.platform !== undefined && input.platform !== null && { platform: input.platform })), (input.semanticVersion !== undefined &&
748
748
  input.semanticVersion !== null && { semanticVersion: input.semanticVersion })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) })), (input.vmImportTaskId !== undefined &&
749
749
  input.vmImportTaskId !== null && { vmImportTaskId: input.vmImportTaskId })));
@@ -769,7 +769,7 @@ export var serializeAws_restJson1ListComponentBuildVersionsCommand = function (i
769
769
  headers = {
770
770
  "content-type": "application/json",
771
771
  };
772
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListComponentBuildVersions";
772
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListComponentBuildVersions";
773
773
  body = JSON.stringify(__assign(__assign(__assign({}, (input.componentVersionArn !== undefined &&
774
774
  input.componentVersionArn !== null && { componentVersionArn: input.componentVersionArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
775
775
  return [2, new __HttpRequest({
@@ -794,7 +794,7 @@ export var serializeAws_restJson1ListComponentsCommand = function (input, contex
794
794
  headers = {
795
795
  "content-type": "application/json",
796
796
  };
797
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListComponents";
797
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListComponents";
798
798
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.byName !== undefined && input.byName !== null && { byName: input.byName })), (input.filters !== undefined &&
799
799
  input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
800
800
  return [2, new __HttpRequest({
@@ -819,7 +819,7 @@ export var serializeAws_restJson1ListContainerRecipesCommand = function (input,
819
819
  headers = {
820
820
  "content-type": "application/json",
821
821
  };
822
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListContainerRecipes";
822
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListContainerRecipes";
823
823
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
824
824
  input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
825
825
  return [2, new __HttpRequest({
@@ -844,7 +844,7 @@ export var serializeAws_restJson1ListDistributionConfigurationsCommand = functio
844
844
  headers = {
845
845
  "content-type": "application/json",
846
846
  };
847
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListDistributionConfigurations";
847
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListDistributionConfigurations";
848
848
  body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
849
849
  input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
850
850
  return [2, new __HttpRequest({
@@ -869,7 +869,7 @@ export var serializeAws_restJson1ListImageBuildVersionsCommand = function (input
869
869
  headers = {
870
870
  "content-type": "application/json",
871
871
  };
872
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImageBuildVersions";
872
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImageBuildVersions";
873
873
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
874
874
  input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.imageVersionArn !== undefined &&
875
875
  input.imageVersionArn !== null && { imageVersionArn: input.imageVersionArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
@@ -895,7 +895,7 @@ export var serializeAws_restJson1ListImagePackagesCommand = function (input, con
895
895
  headers = {
896
896
  "content-type": "application/json",
897
897
  };
898
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePackages";
898
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePackages";
899
899
  body = JSON.stringify(__assign(__assign(__assign({}, (input.imageBuildVersionArn !== undefined &&
900
900
  input.imageBuildVersionArn !== null && { imageBuildVersionArn: input.imageBuildVersionArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
901
901
  return [2, new __HttpRequest({
@@ -920,7 +920,7 @@ export var serializeAws_restJson1ListImagePipelineImagesCommand = function (inpu
920
920
  headers = {
921
921
  "content-type": "application/json",
922
922
  };
923
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePipelineImages";
923
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePipelineImages";
924
924
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
925
925
  input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.imagePipelineArn !== undefined &&
926
926
  input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
@@ -946,7 +946,7 @@ export var serializeAws_restJson1ListImagePipelinesCommand = function (input, co
946
946
  headers = {
947
947
  "content-type": "application/json",
948
948
  };
949
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePipelines";
949
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImagePipelines";
950
950
  body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
951
951
  input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
952
952
  return [2, new __HttpRequest({
@@ -971,7 +971,7 @@ export var serializeAws_restJson1ListImageRecipesCommand = function (input, cont
971
971
  headers = {
972
972
  "content-type": "application/json",
973
973
  };
974
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImageRecipes";
974
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImageRecipes";
975
975
  body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.filters !== undefined &&
976
976
  input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
977
977
  return [2, new __HttpRequest({
@@ -996,7 +996,7 @@ export var serializeAws_restJson1ListImagesCommand = function (input, context) {
996
996
  headers = {
997
997
  "content-type": "application/json",
998
998
  };
999
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImages";
999
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListImages";
1000
1000
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.byName !== undefined && input.byName !== null && { byName: input.byName })), (input.filters !== undefined &&
1001
1001
  input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.includeDeprecated !== undefined &&
1002
1002
  input.includeDeprecated !== null && { includeDeprecated: input.includeDeprecated })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.owner !== undefined && input.owner !== null && { owner: input.owner })));
@@ -1022,7 +1022,7 @@ export var serializeAws_restJson1ListInfrastructureConfigurationsCommand = funct
1022
1022
  headers = {
1023
1023
  "content-type": "application/json",
1024
1024
  };
1025
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListInfrastructureConfigurations";
1025
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/ListInfrastructureConfigurations";
1026
1026
  body = JSON.stringify(__assign(__assign(__assign({}, (input.filters !== undefined &&
1027
1027
  input.filters !== null && { filters: serializeAws_restJson1FilterList(input.filters, context) })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })));
1028
1028
  return [2, new __HttpRequest({
@@ -1045,7 +1045,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
1045
1045
  case 1:
1046
1046
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1047
1047
  headers = {};
1048
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
1048
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
1049
1049
  if (input.resourceArn !== undefined) {
1050
1050
  labelValue = input.resourceArn;
1051
1051
  if (labelValue.length <= 0) {
@@ -1078,7 +1078,7 @@ export var serializeAws_restJson1PutComponentPolicyCommand = function (input, co
1078
1078
  headers = {
1079
1079
  "content-type": "application/json",
1080
1080
  };
1081
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutComponentPolicy";
1081
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutComponentPolicy";
1082
1082
  body = JSON.stringify(__assign(__assign({}, (input.componentArn !== undefined && input.componentArn !== null && { componentArn: input.componentArn })), (input.policy !== undefined && input.policy !== null && { policy: input.policy })));
1083
1083
  return [2, new __HttpRequest({
1084
1084
  protocol: protocol,
@@ -1102,7 +1102,7 @@ export var serializeAws_restJson1PutContainerRecipePolicyCommand = function (inp
1102
1102
  headers = {
1103
1103
  "content-type": "application/json",
1104
1104
  };
1105
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutContainerRecipePolicy";
1105
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutContainerRecipePolicy";
1106
1106
  body = JSON.stringify(__assign(__assign({}, (input.containerRecipeArn !== undefined &&
1107
1107
  input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.policy !== undefined && input.policy !== null && { policy: input.policy })));
1108
1108
  return [2, new __HttpRequest({
@@ -1127,7 +1127,7 @@ export var serializeAws_restJson1PutImagePolicyCommand = function (input, contex
1127
1127
  headers = {
1128
1128
  "content-type": "application/json",
1129
1129
  };
1130
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutImagePolicy";
1130
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutImagePolicy";
1131
1131
  body = JSON.stringify(__assign(__assign({}, (input.imageArn !== undefined && input.imageArn !== null && { imageArn: input.imageArn })), (input.policy !== undefined && input.policy !== null && { policy: input.policy })));
1132
1132
  return [2, new __HttpRequest({
1133
1133
  protocol: protocol,
@@ -1151,7 +1151,7 @@ export var serializeAws_restJson1PutImageRecipePolicyCommand = function (input,
1151
1151
  headers = {
1152
1152
  "content-type": "application/json",
1153
1153
  };
1154
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutImageRecipePolicy";
1154
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/PutImageRecipePolicy";
1155
1155
  body = JSON.stringify(__assign(__assign({}, (input.imageRecipeArn !== undefined &&
1156
1156
  input.imageRecipeArn !== null && { imageRecipeArn: input.imageRecipeArn })), (input.policy !== undefined && input.policy !== null && { policy: input.policy })));
1157
1157
  return [2, new __HttpRequest({
@@ -1177,7 +1177,7 @@ export var serializeAws_restJson1StartImagePipelineExecutionCommand = function (
1177
1177
  headers = {
1178
1178
  "content-type": "application/json",
1179
1179
  };
1180
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartImagePipelineExecution";
1180
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/StartImagePipelineExecution";
1181
1181
  body = JSON.stringify(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.imagePipelineArn !== undefined &&
1182
1182
  input.imagePipelineArn !== null && { imagePipelineArn: input.imagePipelineArn })));
1183
1183
  return [2, new __HttpRequest({
@@ -1202,7 +1202,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
1202
1202
  headers = {
1203
1203
  "content-type": "application/json",
1204
1204
  };
1205
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
1205
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
1206
1206
  if (input.resourceArn !== undefined) {
1207
1207
  labelValue = input.resourceArn;
1208
1208
  if (labelValue.length <= 0) {
@@ -1234,7 +1234,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
1234
1234
  case 1:
1235
1235
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
1236
1236
  headers = {};
1237
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
1237
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tags/{resourceArn}";
1238
1238
  if (input.resourceArn !== undefined) {
1239
1239
  labelValue = input.resourceArn;
1240
1240
  if (labelValue.length <= 0) {
@@ -1270,7 +1270,7 @@ export var serializeAws_restJson1UpdateDistributionConfigurationCommand = functi
1270
1270
  headers = {
1271
1271
  "content-type": "application/json",
1272
1272
  };
1273
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateDistributionConfiguration";
1273
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateDistributionConfiguration";
1274
1274
  body = JSON.stringify(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.distributionConfigurationArn !== undefined &&
1275
1275
  input.distributionConfigurationArn !== null && {
1276
1276
  distributionConfigurationArn: input.distributionConfigurationArn,
@@ -1301,7 +1301,7 @@ export var serializeAws_restJson1UpdateImagePipelineCommand = function (input, c
1301
1301
  headers = {
1302
1302
  "content-type": "application/json",
1303
1303
  };
1304
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateImagePipeline";
1304
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateImagePipeline";
1305
1305
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.containerRecipeArn !== undefined &&
1306
1306
  input.containerRecipeArn !== null && { containerRecipeArn: input.containerRecipeArn })), (input.description !== undefined && input.description !== null && { description: input.description })), (input.distributionConfigurationArn !== undefined &&
1307
1307
  input.distributionConfigurationArn !== null && {
@@ -1342,7 +1342,7 @@ export var serializeAws_restJson1UpdateInfrastructureConfigurationCommand = func
1342
1342
  headers = {
1343
1343
  "content-type": "application/json",
1344
1344
  };
1345
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateInfrastructureConfiguration";
1345
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/UpdateInfrastructureConfiguration";
1346
1346
  body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ clientToken: (_c = input.clientToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.description !== undefined && input.description !== null && { description: input.description })), (input.infrastructureConfigurationArn !== undefined &&
1347
1347
  input.infrastructureConfigurationArn !== null && {
1348
1348
  infrastructureConfigurationArn: input.infrastructureConfigurationArn,
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CancelImageCreationCommandInput, CancelImageCreationCommandOutput } from "./commands/CancelImageCreationCommand";
10
10
  import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
11
11
  import { CreateContainerRecipeCommandInput, CreateContainerRecipeCommandOutput } from "./commands/CreateContainerRecipeCommand";
@@ -78,7 +78,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
78
78
  * A function that can calculate the length of a request body.
79
79
  * @internal
80
80
  */
81
- bodyLengthChecker?: (body: any) => number | undefined;
81
+ bodyLengthChecker?: __BodyLengthCalculator;
82
82
  /**
83
83
  * A function that converts a stream into an array of bytes.
84
84
  * @internal
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { CancelImageCreationCommandInput, CancelImageCreationCommandOutput } from "./commands/CancelImageCreationCommand";
10
10
  import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
11
11
  import { CreateContainerRecipeCommandInput, CreateContainerRecipeCommandOutput } from "./commands/CreateContainerRecipeCommand";
@@ -66,7 +66,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
66
66
 
67
67
  urlParser?: __UrlParser;
68
68
 
69
- bodyLengthChecker?: (body: any) => number | undefined;
69
+ bodyLengthChecker?: __BodyLengthCalculator;
70
70
 
71
71
  streamCollector?: __StreamCollector;
72
72
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;