@aws-sdk/client-imagebuilder 3.46.0 → 3.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
7
18
 
8
19
 
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DiskImageFormat = exports.LaunchTemplateConfiguration = exports.ResourceAlreadyExistsException = exports.CreateContainerRecipeResponse = exports.CreateContainerRecipeRequest = exports.ServiceQuotaExceededException = exports.InvalidVersionNumberException = exports.InvalidParameterCombinationException = exports.CreateComponentResponse = exports.CreateComponentRequest = exports.ContainerRecipeSummary = exports.ContainerRecipe = exports.InstanceConfiguration = exports.InstanceBlockDeviceMapping = exports.EbsInstanceBlockDeviceSpecification = exports.EbsVolumeType = exports.ContainerType = exports.ContainerDistributionConfiguration = exports.TargetContainerRepository = exports.ContainerRepositoryService = exports.Container = exports.ComponentVersion = exports.ComponentSummary = exports.ComponentFormat = exports.ComponentConfiguration = exports.ComponentParameter = exports.Component = exports.ComponentType = exports.ComponentState = exports.ComponentStatus = exports.Platform = exports.ComponentParameterDetail = exports.ServiceUnavailableException = exports.ServiceException = exports.ResourceInUseException = exports.InvalidRequestException = exports.IdempotentParameterMismatchException = exports.ForbiddenException = exports.ClientException = exports.CancelImageCreationResponse = exports.CancelImageCreationRequest = exports.CallRateLimitExceededException = exports.BuildType = exports.AmiDistributionConfiguration = exports.LaunchPermissionConfiguration = exports.Ami = exports.ImageState = exports.ImageStatus = exports.AdditionalInstanceConfiguration = exports.SystemsManagerAgent = void 0;
4
- exports.ImageType = exports.GetImageRequest = exports.GetDistributionConfigurationResponse = exports.GetDistributionConfigurationRequest = exports.GetContainerRecipePolicyResponse = exports.GetContainerRecipePolicyRequest = exports.GetContainerRecipeResponse = exports.GetContainerRecipeRequest = exports.ResourceNotFoundException = exports.GetComponentPolicyResponse = exports.GetComponentPolicyRequest = exports.GetComponentResponse = exports.GetComponentRequest = exports.Filter = exports.DistributionConfigurationSummary = exports.DistributionConfiguration = exports.DeleteInfrastructureConfigurationResponse = exports.DeleteInfrastructureConfigurationRequest = exports.DeleteImageRecipeResponse = exports.DeleteImageRecipeRequest = exports.DeleteImagePipelineResponse = exports.DeleteImagePipelineRequest = exports.DeleteImageResponse = exports.DeleteImageRequest = exports.DeleteDistributionConfigurationResponse = exports.DeleteDistributionConfigurationRequest = exports.DeleteContainerRecipeResponse = exports.DeleteContainerRecipeRequest = exports.ResourceDependencyException = exports.DeleteComponentResponse = exports.DeleteComponentRequest = exports.CreateInfrastructureConfigurationResponse = exports.CreateInfrastructureConfigurationRequest = exports.Logging = exports.S3Logs = exports.InstanceMetadataOptions = exports.CreateImageRecipeResponse = exports.CreateImageRecipeRequest = exports.CreateImagePipelineResponse = exports.CreateImagePipelineRequest = exports.PipelineStatus = exports.Schedule = exports.PipelineExecutionStartCondition = exports.CreateImageResponse = exports.CreateImageRequest = exports.ImageTestsConfiguration = exports.CreateDistributionConfigurationResponse = exports.CreateDistributionConfigurationRequest = exports.Distribution = exports.S3ExportConfiguration = void 0;
5
- exports.InvalidParameterException = exports.ListInfrastructureConfigurationsResponse = exports.InfrastructureConfigurationSummary = exports.ListInfrastructureConfigurationsRequest = exports.ListImagesResponse = exports.ImageVersion = exports.ListImagesRequest = exports.ListImageRecipesResponse = exports.ImageRecipeSummary = exports.ListImageRecipesRequest = exports.ListImagePipelinesResponse = exports.ListImagePipelinesRequest = exports.ListImagePipelineImagesResponse = exports.ListImagePipelineImagesRequest = exports.ListImagePackagesResponse = exports.ImagePackage = exports.ListImagePackagesRequest = exports.ListImageBuildVersionsResponse = exports.ImageSummary = exports.ListImageBuildVersionsRequest = exports.ListDistributionConfigurationsResponse = exports.ListDistributionConfigurationsRequest = exports.ListContainerRecipesResponse = exports.ListContainerRecipesRequest = exports.ListComponentsResponse = exports.ListComponentsRequest = exports.Ownership = exports.ListComponentBuildVersionsResponse = exports.ListComponentBuildVersionsRequest = exports.InvalidPaginationTokenException = exports.ImportVmImageResponse = exports.ImportVmImageRequest = exports.ImportComponentResponse = exports.ImportComponentRequest = exports.GetInfrastructureConfigurationResponse = exports.GetInfrastructureConfigurationRequest = exports.GetImageRecipePolicyResponse = exports.GetImageRecipePolicyRequest = exports.GetImageRecipeResponse = exports.GetImageRecipeRequest = exports.GetImagePolicyResponse = exports.GetImagePolicyRequest = exports.GetImagePipelineResponse = exports.ImagePipeline = exports.GetImagePipelineRequest = exports.GetImageResponse = exports.Image = exports.OutputResources = exports.InfrastructureConfiguration = exports.ImageRecipe = void 0;
6
- exports.UpdateInfrastructureConfigurationResponse = exports.UpdateInfrastructureConfigurationRequest = exports.UpdateImagePipelineResponse = exports.UpdateImagePipelineRequest = exports.UpdateDistributionConfigurationResponse = exports.UpdateDistributionConfigurationRequest = exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartImagePipelineExecutionResponse = exports.StartImagePipelineExecutionRequest = exports.PutImageRecipePolicyResponse = exports.PutImageRecipePolicyRequest = exports.PutImagePolicyResponse = exports.PutImagePolicyRequest = exports.PutContainerRecipePolicyResponse = exports.PutContainerRecipePolicyRequest = exports.PutComponentPolicyResponse = exports.PutComponentPolicyRequest = exports.InvalidParameterValueException = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = void 0;
3
+ exports.CreateImagePipelineResponse = exports.CreateImagePipelineRequest = exports.PipelineStatus = exports.Schedule = exports.PipelineExecutionStartCondition = exports.CreateImageResponse = exports.CreateImageRequest = exports.ImageTestsConfiguration = exports.CreateDistributionConfigurationResponse = exports.CreateDistributionConfigurationRequest = exports.Distribution = exports.S3ExportConfiguration = exports.DiskImageFormat = exports.LaunchTemplateConfiguration = exports.CreateContainerRecipeResponse = exports.CreateContainerRecipeRequest = exports.CreateComponentResponse = exports.CreateComponentRequest = exports.ContainerRecipeSummary = exports.ContainerRecipe = exports.InstanceConfiguration = exports.InstanceBlockDeviceMapping = exports.EbsInstanceBlockDeviceSpecification = exports.EbsVolumeType = exports.ContainerType = exports.ContainerDistributionConfiguration = exports.TargetContainerRepository = exports.ContainerRepositoryService = exports.Container = exports.ComponentVersion = exports.ComponentSummary = exports.ComponentFormat = exports.ComponentConfiguration = exports.ComponentParameter = exports.Component = exports.ComponentType = exports.ComponentState = exports.ComponentStatus = exports.Platform = exports.ComponentParameterDetail = exports.CancelImageCreationResponse = exports.CancelImageCreationRequest = exports.BuildType = exports.AmiDistributionConfiguration = exports.LaunchPermissionConfiguration = exports.Ami = exports.ImageState = exports.ImageStatus = exports.AdditionalInstanceConfiguration = exports.SystemsManagerAgent = void 0;
4
+ exports.GetImageRecipePolicyResponse = exports.GetImageRecipePolicyRequest = exports.GetImageRecipeResponse = exports.GetImageRecipeRequest = exports.GetImagePolicyResponse = exports.GetImagePolicyRequest = exports.GetImagePipelineResponse = exports.ImagePipeline = exports.GetImagePipelineRequest = exports.GetImageResponse = exports.Image = exports.OutputResources = exports.InfrastructureConfiguration = exports.ImageRecipe = exports.ImageType = exports.GetImageRequest = exports.GetDistributionConfigurationResponse = exports.GetDistributionConfigurationRequest = exports.GetContainerRecipePolicyResponse = exports.GetContainerRecipePolicyRequest = exports.GetContainerRecipeResponse = exports.GetContainerRecipeRequest = exports.GetComponentPolicyResponse = exports.GetComponentPolicyRequest = exports.GetComponentResponse = exports.GetComponentRequest = exports.Filter = exports.DistributionConfigurationSummary = exports.DistributionConfiguration = exports.DeleteInfrastructureConfigurationResponse = exports.DeleteInfrastructureConfigurationRequest = exports.DeleteImageRecipeResponse = exports.DeleteImageRecipeRequest = exports.DeleteImagePipelineResponse = exports.DeleteImagePipelineRequest = exports.DeleteImageResponse = exports.DeleteImageRequest = exports.DeleteDistributionConfigurationResponse = exports.DeleteDistributionConfigurationRequest = exports.DeleteContainerRecipeResponse = exports.DeleteContainerRecipeRequest = exports.DeleteComponentResponse = exports.DeleteComponentRequest = exports.CreateInfrastructureConfigurationResponse = exports.CreateInfrastructureConfigurationRequest = exports.Logging = exports.S3Logs = exports.InstanceMetadataOptions = exports.CreateImageRecipeResponse = exports.CreateImageRecipeRequest = void 0;
5
+ exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.StartImagePipelineExecutionResponse = exports.StartImagePipelineExecutionRequest = exports.PutImageRecipePolicyResponse = exports.PutImageRecipePolicyRequest = exports.PutImagePolicyResponse = exports.PutImagePolicyRequest = exports.PutContainerRecipePolicyResponse = exports.PutContainerRecipePolicyRequest = exports.PutComponentPolicyResponse = exports.PutComponentPolicyRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListInfrastructureConfigurationsResponse = exports.InfrastructureConfigurationSummary = exports.ListInfrastructureConfigurationsRequest = exports.ListImagesResponse = exports.ImageVersion = exports.ListImagesRequest = exports.ListImageRecipesResponse = exports.ImageRecipeSummary = exports.ListImageRecipesRequest = exports.ListImagePipelinesResponse = exports.ListImagePipelinesRequest = exports.ListImagePipelineImagesResponse = exports.ListImagePipelineImagesRequest = exports.ListImagePackagesResponse = exports.ImagePackage = exports.ListImagePackagesRequest = exports.ListImageBuildVersionsResponse = exports.ImageSummary = exports.ListImageBuildVersionsRequest = exports.ListDistributionConfigurationsResponse = exports.ListDistributionConfigurationsRequest = exports.ListContainerRecipesResponse = exports.ListContainerRecipesRequest = exports.ListComponentsResponse = exports.ListComponentsRequest = exports.Ownership = exports.ListComponentBuildVersionsResponse = exports.ListComponentBuildVersionsRequest = exports.ImportVmImageResponse = exports.ImportVmImageRequest = exports.ImportComponentResponse = exports.ImportComponentRequest = exports.GetInfrastructureConfigurationResponse = exports.GetInfrastructureConfigurationRequest = void 0;
6
+ exports.UpdateInfrastructureConfigurationResponse = exports.UpdateInfrastructureConfigurationRequest = exports.UpdateImagePipelineResponse = exports.UpdateImagePipelineRequest = exports.UpdateDistributionConfigurationResponse = exports.UpdateDistributionConfigurationRequest = void 0;
7
7
  var SystemsManagerAgent;
8
8
  (function (SystemsManagerAgent) {
9
9
  SystemsManagerAgent.filterSensitiveLog = (obj) => ({
@@ -60,12 +60,6 @@ var BuildType;
60
60
  BuildType["SCHEDULED"] = "SCHEDULED";
61
61
  BuildType["USER_INITIATED"] = "USER_INITIATED";
62
62
  })(BuildType = exports.BuildType || (exports.BuildType = {}));
63
- var CallRateLimitExceededException;
64
- (function (CallRateLimitExceededException) {
65
- CallRateLimitExceededException.filterSensitiveLog = (obj) => ({
66
- ...obj,
67
- });
68
- })(CallRateLimitExceededException = exports.CallRateLimitExceededException || (exports.CallRateLimitExceededException = {}));
69
63
  var CancelImageCreationRequest;
70
64
  (function (CancelImageCreationRequest) {
71
65
  CancelImageCreationRequest.filterSensitiveLog = (obj) => ({
@@ -78,48 +72,6 @@ var CancelImageCreationResponse;
78
72
  ...obj,
79
73
  });
80
74
  })(CancelImageCreationResponse = exports.CancelImageCreationResponse || (exports.CancelImageCreationResponse = {}));
81
- var ClientException;
82
- (function (ClientException) {
83
- ClientException.filterSensitiveLog = (obj) => ({
84
- ...obj,
85
- });
86
- })(ClientException = exports.ClientException || (exports.ClientException = {}));
87
- var ForbiddenException;
88
- (function (ForbiddenException) {
89
- ForbiddenException.filterSensitiveLog = (obj) => ({
90
- ...obj,
91
- });
92
- })(ForbiddenException = exports.ForbiddenException || (exports.ForbiddenException = {}));
93
- var IdempotentParameterMismatchException;
94
- (function (IdempotentParameterMismatchException) {
95
- IdempotentParameterMismatchException.filterSensitiveLog = (obj) => ({
96
- ...obj,
97
- });
98
- })(IdempotentParameterMismatchException = exports.IdempotentParameterMismatchException || (exports.IdempotentParameterMismatchException = {}));
99
- var InvalidRequestException;
100
- (function (InvalidRequestException) {
101
- InvalidRequestException.filterSensitiveLog = (obj) => ({
102
- ...obj,
103
- });
104
- })(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
105
- var ResourceInUseException;
106
- (function (ResourceInUseException) {
107
- ResourceInUseException.filterSensitiveLog = (obj) => ({
108
- ...obj,
109
- });
110
- })(ResourceInUseException = exports.ResourceInUseException || (exports.ResourceInUseException = {}));
111
- var ServiceException;
112
- (function (ServiceException) {
113
- ServiceException.filterSensitiveLog = (obj) => ({
114
- ...obj,
115
- });
116
- })(ServiceException = exports.ServiceException || (exports.ServiceException = {}));
117
- var ServiceUnavailableException;
118
- (function (ServiceUnavailableException) {
119
- ServiceUnavailableException.filterSensitiveLog = (obj) => ({
120
- ...obj,
121
- });
122
- })(ServiceUnavailableException = exports.ServiceUnavailableException || (exports.ServiceUnavailableException = {}));
123
75
  var ComponentParameterDetail;
124
76
  (function (ComponentParameterDetail) {
125
77
  ComponentParameterDetail.filterSensitiveLog = (obj) => ({
@@ -258,24 +210,6 @@ var CreateComponentResponse;
258
210
  ...obj,
259
211
  });
260
212
  })(CreateComponentResponse = exports.CreateComponentResponse || (exports.CreateComponentResponse = {}));
261
- var InvalidParameterCombinationException;
262
- (function (InvalidParameterCombinationException) {
263
- InvalidParameterCombinationException.filterSensitiveLog = (obj) => ({
264
- ...obj,
265
- });
266
- })(InvalidParameterCombinationException = exports.InvalidParameterCombinationException || (exports.InvalidParameterCombinationException = {}));
267
- var InvalidVersionNumberException;
268
- (function (InvalidVersionNumberException) {
269
- InvalidVersionNumberException.filterSensitiveLog = (obj) => ({
270
- ...obj,
271
- });
272
- })(InvalidVersionNumberException = exports.InvalidVersionNumberException || (exports.InvalidVersionNumberException = {}));
273
- var ServiceQuotaExceededException;
274
- (function (ServiceQuotaExceededException) {
275
- ServiceQuotaExceededException.filterSensitiveLog = (obj) => ({
276
- ...obj,
277
- });
278
- })(ServiceQuotaExceededException = exports.ServiceQuotaExceededException || (exports.ServiceQuotaExceededException = {}));
279
213
  var CreateContainerRecipeRequest;
280
214
  (function (CreateContainerRecipeRequest) {
281
215
  CreateContainerRecipeRequest.filterSensitiveLog = (obj) => ({
@@ -288,12 +222,6 @@ var CreateContainerRecipeResponse;
288
222
  ...obj,
289
223
  });
290
224
  })(CreateContainerRecipeResponse = exports.CreateContainerRecipeResponse || (exports.CreateContainerRecipeResponse = {}));
291
- var ResourceAlreadyExistsException;
292
- (function (ResourceAlreadyExistsException) {
293
- ResourceAlreadyExistsException.filterSensitiveLog = (obj) => ({
294
- ...obj,
295
- });
296
- })(ResourceAlreadyExistsException = exports.ResourceAlreadyExistsException || (exports.ResourceAlreadyExistsException = {}));
297
225
  var LaunchTemplateConfiguration;
298
226
  (function (LaunchTemplateConfiguration) {
299
227
  LaunchTemplateConfiguration.filterSensitiveLog = (obj) => ({
@@ -430,12 +358,6 @@ var DeleteComponentResponse;
430
358
  ...obj,
431
359
  });
432
360
  })(DeleteComponentResponse = exports.DeleteComponentResponse || (exports.DeleteComponentResponse = {}));
433
- var ResourceDependencyException;
434
- (function (ResourceDependencyException) {
435
- ResourceDependencyException.filterSensitiveLog = (obj) => ({
436
- ...obj,
437
- });
438
- })(ResourceDependencyException = exports.ResourceDependencyException || (exports.ResourceDependencyException = {}));
439
361
  var DeleteContainerRecipeRequest;
440
362
  (function (DeleteContainerRecipeRequest) {
441
363
  DeleteContainerRecipeRequest.filterSensitiveLog = (obj) => ({
@@ -550,12 +472,6 @@ var GetComponentPolicyResponse;
550
472
  ...obj,
551
473
  });
552
474
  })(GetComponentPolicyResponse = exports.GetComponentPolicyResponse || (exports.GetComponentPolicyResponse = {}));
553
- var ResourceNotFoundException;
554
- (function (ResourceNotFoundException) {
555
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
556
- ...obj,
557
- });
558
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
559
475
  var GetContainerRecipeRequest;
560
476
  (function (GetContainerRecipeRequest) {
561
477
  GetContainerRecipeRequest.filterSensitiveLog = (obj) => ({
@@ -723,12 +639,6 @@ var ImportVmImageResponse;
723
639
  ...obj,
724
640
  });
725
641
  })(ImportVmImageResponse = exports.ImportVmImageResponse || (exports.ImportVmImageResponse = {}));
726
- var InvalidPaginationTokenException;
727
- (function (InvalidPaginationTokenException) {
728
- InvalidPaginationTokenException.filterSensitiveLog = (obj) => ({
729
- ...obj,
730
- });
731
- })(InvalidPaginationTokenException = exports.InvalidPaginationTokenException || (exports.InvalidPaginationTokenException = {}));
732
642
  var ListComponentBuildVersionsRequest;
733
643
  (function (ListComponentBuildVersionsRequest) {
734
644
  ListComponentBuildVersionsRequest.filterSensitiveLog = (obj) => ({
@@ -897,12 +807,6 @@ var ListInfrastructureConfigurationsResponse;
897
807
  ...obj,
898
808
  });
899
809
  })(ListInfrastructureConfigurationsResponse = exports.ListInfrastructureConfigurationsResponse || (exports.ListInfrastructureConfigurationsResponse = {}));
900
- var InvalidParameterException;
901
- (function (InvalidParameterException) {
902
- InvalidParameterException.filterSensitiveLog = (obj) => ({
903
- ...obj,
904
- });
905
- })(InvalidParameterException = exports.InvalidParameterException || (exports.InvalidParameterException = {}));
906
810
  var ListTagsForResourceRequest;
907
811
  (function (ListTagsForResourceRequest) {
908
812
  ListTagsForResourceRequest.filterSensitiveLog = (obj) => ({
@@ -915,12 +819,6 @@ var ListTagsForResourceResponse;
915
819
  ...obj,
916
820
  });
917
821
  })(ListTagsForResourceResponse = exports.ListTagsForResourceResponse || (exports.ListTagsForResourceResponse = {}));
918
- var InvalidParameterValueException;
919
- (function (InvalidParameterValueException) {
920
- InvalidParameterValueException.filterSensitiveLog = (obj) => ({
921
- ...obj,
922
- });
923
- })(InvalidParameterValueException = exports.InvalidParameterValueException || (exports.InvalidParameterValueException = {}));
924
822
  var PutComponentPolicyRequest;
925
823
  (function (PutComponentPolicyRequest) {
926
824
  PutComponentPolicyRequest.filterSensitiveLog = (obj) => ({
@@ -13,13 +13,18 @@ const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
13
13
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
14
14
  const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
15
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
16
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
+ const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
16
18
  const getRuntimeConfig = (config) => {
17
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
21
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
18
22
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
19
23
  return {
20
24
  ...clientSharedValues,
21
25
  ...config,
22
26
  runtime: "browser",
27
+ defaultsMode,
23
28
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64,
24
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
25
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
@@ -27,8 +32,8 @@ const getRuntimeConfig = (config) => {
27
32
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
28
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
29
34
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
30
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(),
31
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)),
35
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
32
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
33
38
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
34
39
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
@@ -15,13 +15,18 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
18
20
  const getRuntimeConfig = (config) => {
19
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
20
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
21
25
  return {
22
26
  ...clientSharedValues,
23
27
  ...config,
24
28
  runtime: "node",
29
+ defaultsMode,
25
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
26
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
27
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -29,8 +34,11 @@ const getRuntimeConfig = (config) => {
29
34
  defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
30
35
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
31
36
  region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
32
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
33
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS),
37
+ requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
39
+ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
+ default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
+ }),
34
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
35
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
36
44
  useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
@@ -43,10 +43,6 @@ export var BuildType;
43
43
  BuildType["SCHEDULED"] = "SCHEDULED";
44
44
  BuildType["USER_INITIATED"] = "USER_INITIATED";
45
45
  })(BuildType || (BuildType = {}));
46
- export var CallRateLimitExceededException;
47
- (function (CallRateLimitExceededException) {
48
- CallRateLimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
49
- })(CallRateLimitExceededException || (CallRateLimitExceededException = {}));
50
46
  export var CancelImageCreationRequest;
51
47
  (function (CancelImageCreationRequest) {
52
48
  CancelImageCreationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -55,34 +51,6 @@ export var CancelImageCreationResponse;
55
51
  (function (CancelImageCreationResponse) {
56
52
  CancelImageCreationResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
57
53
  })(CancelImageCreationResponse || (CancelImageCreationResponse = {}));
58
- export var ClientException;
59
- (function (ClientException) {
60
- ClientException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
61
- })(ClientException || (ClientException = {}));
62
- export var ForbiddenException;
63
- (function (ForbiddenException) {
64
- ForbiddenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
65
- })(ForbiddenException || (ForbiddenException = {}));
66
- export var IdempotentParameterMismatchException;
67
- (function (IdempotentParameterMismatchException) {
68
- IdempotentParameterMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
69
- })(IdempotentParameterMismatchException || (IdempotentParameterMismatchException = {}));
70
- export var InvalidRequestException;
71
- (function (InvalidRequestException) {
72
- InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
73
- })(InvalidRequestException || (InvalidRequestException = {}));
74
- export var ResourceInUseException;
75
- (function (ResourceInUseException) {
76
- ResourceInUseException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
77
- })(ResourceInUseException || (ResourceInUseException = {}));
78
- export var ServiceException;
79
- (function (ServiceException) {
80
- ServiceException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
81
- })(ServiceException || (ServiceException = {}));
82
- export var ServiceUnavailableException;
83
- (function (ServiceUnavailableException) {
84
- ServiceUnavailableException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
85
- })(ServiceUnavailableException || (ServiceUnavailableException = {}));
86
54
  export var ComponentParameterDetail;
87
55
  (function (ComponentParameterDetail) {
88
56
  ComponentParameterDetail.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -187,18 +155,6 @@ export var CreateComponentResponse;
187
155
  (function (CreateComponentResponse) {
188
156
  CreateComponentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
189
157
  })(CreateComponentResponse || (CreateComponentResponse = {}));
190
- export var InvalidParameterCombinationException;
191
- (function (InvalidParameterCombinationException) {
192
- InvalidParameterCombinationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
193
- })(InvalidParameterCombinationException || (InvalidParameterCombinationException = {}));
194
- export var InvalidVersionNumberException;
195
- (function (InvalidVersionNumberException) {
196
- InvalidVersionNumberException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
197
- })(InvalidVersionNumberException || (InvalidVersionNumberException = {}));
198
- export var ServiceQuotaExceededException;
199
- (function (ServiceQuotaExceededException) {
200
- ServiceQuotaExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
201
- })(ServiceQuotaExceededException || (ServiceQuotaExceededException = {}));
202
158
  export var CreateContainerRecipeRequest;
203
159
  (function (CreateContainerRecipeRequest) {
204
160
  CreateContainerRecipeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -207,10 +163,6 @@ export var CreateContainerRecipeResponse;
207
163
  (function (CreateContainerRecipeResponse) {
208
164
  CreateContainerRecipeResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
209
165
  })(CreateContainerRecipeResponse || (CreateContainerRecipeResponse = {}));
210
- export var ResourceAlreadyExistsException;
211
- (function (ResourceAlreadyExistsException) {
212
- ResourceAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
213
- })(ResourceAlreadyExistsException || (ResourceAlreadyExistsException = {}));
214
166
  export var LaunchTemplateConfiguration;
215
167
  (function (LaunchTemplateConfiguration) {
216
168
  LaunchTemplateConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -307,10 +259,6 @@ export var DeleteComponentResponse;
307
259
  (function (DeleteComponentResponse) {
308
260
  DeleteComponentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
309
261
  })(DeleteComponentResponse || (DeleteComponentResponse = {}));
310
- export var ResourceDependencyException;
311
- (function (ResourceDependencyException) {
312
- ResourceDependencyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
313
- })(ResourceDependencyException || (ResourceDependencyException = {}));
314
262
  export var DeleteContainerRecipeRequest;
315
263
  (function (DeleteContainerRecipeRequest) {
316
264
  DeleteContainerRecipeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -387,10 +335,6 @@ export var GetComponentPolicyResponse;
387
335
  (function (GetComponentPolicyResponse) {
388
336
  GetComponentPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
389
337
  })(GetComponentPolicyResponse || (GetComponentPolicyResponse = {}));
390
- export var ResourceNotFoundException;
391
- (function (ResourceNotFoundException) {
392
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
393
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
394
338
  export var GetContainerRecipeRequest;
395
339
  (function (GetContainerRecipeRequest) {
396
340
  GetContainerRecipeRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -504,10 +448,6 @@ export var ImportVmImageResponse;
504
448
  (function (ImportVmImageResponse) {
505
449
  ImportVmImageResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
506
450
  })(ImportVmImageResponse || (ImportVmImageResponse = {}));
507
- export var InvalidPaginationTokenException;
508
- (function (InvalidPaginationTokenException) {
509
- InvalidPaginationTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
510
- })(InvalidPaginationTokenException || (InvalidPaginationTokenException = {}));
511
451
  export var ListComponentBuildVersionsRequest;
512
452
  (function (ListComponentBuildVersionsRequest) {
513
453
  ListComponentBuildVersionsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -622,10 +562,6 @@ export var ListInfrastructureConfigurationsResponse;
622
562
  (function (ListInfrastructureConfigurationsResponse) {
623
563
  ListInfrastructureConfigurationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
624
564
  })(ListInfrastructureConfigurationsResponse || (ListInfrastructureConfigurationsResponse = {}));
625
- export var InvalidParameterException;
626
- (function (InvalidParameterException) {
627
- InvalidParameterException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
628
- })(InvalidParameterException || (InvalidParameterException = {}));
629
565
  export var ListTagsForResourceRequest;
630
566
  (function (ListTagsForResourceRequest) {
631
567
  ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -634,10 +570,6 @@ export var ListTagsForResourceResponse;
634
570
  (function (ListTagsForResourceResponse) {
635
571
  ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
636
572
  })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
637
- export var InvalidParameterValueException;
638
- (function (InvalidParameterValueException) {
639
- InvalidParameterValueException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
640
- })(InvalidParameterValueException || (InvalidParameterValueException = {}));
641
573
  export var PutComponentPolicyRequest;
642
574
  (function (PutComponentPolicyRequest) {
643
575
  PutComponentPolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -1,8 +1,8 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
- import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
8
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
@@ -10,8 +10,17 @@ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
10
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
13
15
  export var getRuntimeConfig = function (config) {
14
16
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
15
19
  var clientSharedValues = getSharedRuntimeConfig(config);
16
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
17
26
  };
@@ -1,19 +1,28 @@
1
- import { __assign } from "tslib";
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
6
  import { Hash } from "@aws-sdk/hash-node";
7
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
- import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
15
17
  export var getRuntimeConfig = function (config) {
16
18
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
19
+ var defaultsMode = resolveDefaultsModeConfig(config);
20
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
17
21
  var clientSharedValues = getSharedRuntimeConfig(config);
18
- return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
22
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
23
+ switch (_a.label) {
24
+ case 0: return [4, defaultConfigProvider()];
25
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
26
+ }
27
+ }); }); } })), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
19
28
  };
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
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";
9
9
  import { CancelImageCreationCommandInput, CancelImageCreationCommandOutput } from "./commands/CancelImageCreationCommand";
10
10
  import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
@@ -158,6 +158,10 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
158
158
  * @internal
159
159
  */
160
160
  defaultUserAgentProvider?: Provider<__UserAgent>;
161
+ /**
162
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
163
+ */
164
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
161
165
  }
162
166
  declare type ImagebuilderClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
163
167
  /**
@@ -197,12 +197,6 @@ export interface CallRateLimitExceededException extends __SmithyException, $Meta
197
197
  $fault: "client";
198
198
  message?: string;
199
199
  }
200
- export declare namespace CallRateLimitExceededException {
201
- /**
202
- * @internal
203
- */
204
- const filterSensitiveLog: (obj: CallRateLimitExceededException) => any;
205
- }
206
200
  export interface CancelImageCreationRequest {
207
201
  /**
208
202
  * <p>The Amazon Resource Name (ARN) of the image whose creation you want to cancel.</p>
@@ -251,12 +245,6 @@ export interface ClientException extends __SmithyException, $MetadataBearer {
251
245
  $fault: "client";
252
246
  message?: string;
253
247
  }
254
- export declare namespace ClientException {
255
- /**
256
- * @internal
257
- */
258
- const filterSensitiveLog: (obj: ClientException) => any;
259
- }
260
248
  /**
261
249
  * <p>You are not authorized to perform the requested operation.</p>
262
250
  */
@@ -265,12 +253,6 @@ export interface ForbiddenException extends __SmithyException, $MetadataBearer {
265
253
  $fault: "client";
266
254
  message?: string;
267
255
  }
268
- export declare namespace ForbiddenException {
269
- /**
270
- * @internal
271
- */
272
- const filterSensitiveLog: (obj: ForbiddenException) => any;
273
- }
274
256
  /**
275
257
  * <p>You have specified a client token for an operation using parameter values that differ from
276
258
  * a previous request that used the same client token.</p>
@@ -280,12 +262,6 @@ export interface IdempotentParameterMismatchException extends __SmithyException,
280
262
  $fault: "client";
281
263
  message?: string;
282
264
  }
283
- export declare namespace IdempotentParameterMismatchException {
284
- /**
285
- * @internal
286
- */
287
- const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
288
- }
289
265
  /**
290
266
  * <p>You have made a request for an action that is not supported by the service.</p>
291
267
  */
@@ -294,12 +270,6 @@ export interface InvalidRequestException extends __SmithyException, $MetadataBea
294
270
  $fault: "client";
295
271
  message?: string;
296
272
  }
297
- export declare namespace InvalidRequestException {
298
- /**
299
- * @internal
300
- */
301
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
302
- }
303
273
  /**
304
274
  * <p>The resource that you are trying to operate on is currently in use. Review the message
305
275
  * details and retry later.</p>
@@ -309,12 +279,6 @@ export interface ResourceInUseException extends __SmithyException, $MetadataBear
309
279
  $fault: "client";
310
280
  message?: string;
311
281
  }
312
- export declare namespace ResourceInUseException {
313
- /**
314
- * @internal
315
- */
316
- const filterSensitiveLog: (obj: ResourceInUseException) => any;
317
- }
318
282
  /**
319
283
  * <p>This exception is thrown when the service encounters an unrecoverable exception.</p>
320
284
  */
@@ -323,12 +287,6 @@ export interface ServiceException extends __SmithyException, $MetadataBearer {
323
287
  $fault: "server";
324
288
  message?: string;
325
289
  }
326
- export declare namespace ServiceException {
327
- /**
328
- * @internal
329
- */
330
- const filterSensitiveLog: (obj: ServiceException) => any;
331
- }
332
290
  /**
333
291
  * <p>The service is unable to process your request at this time.</p>
334
292
  */
@@ -337,12 +295,6 @@ export interface ServiceUnavailableException extends __SmithyException, $Metadat
337
295
  $fault: "server";
338
296
  message?: string;
339
297
  }
340
- export declare namespace ServiceUnavailableException {
341
- /**
342
- * @internal
343
- */
344
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
345
- }
346
298
  /**
347
299
  * <p>Defines a parameter that is used to provide configuration details for the component.</p>
348
300
  */
@@ -1100,12 +1052,6 @@ export interface InvalidParameterCombinationException extends __SmithyException,
1100
1052
  $fault: "client";
1101
1053
  message?: string;
1102
1054
  }
1103
- export declare namespace InvalidParameterCombinationException {
1104
- /**
1105
- * @internal
1106
- */
1107
- const filterSensitiveLog: (obj: InvalidParameterCombinationException) => any;
1108
- }
1109
1055
  /**
1110
1056
  * <p>Your version number is out of bounds or does not follow the required syntax.</p>
1111
1057
  */
@@ -1114,12 +1060,6 @@ export interface InvalidVersionNumberException extends __SmithyException, $Metad
1114
1060
  $fault: "client";
1115
1061
  message?: string;
1116
1062
  }
1117
- export declare namespace InvalidVersionNumberException {
1118
- /**
1119
- * @internal
1120
- */
1121
- const filterSensitiveLog: (obj: InvalidVersionNumberException) => any;
1122
- }
1123
1063
  /**
1124
1064
  * <p>You have exceeded the number of permitted resources or operations for this service. For service quotas, see <a href="https://docs.aws.amazon.com/general/latest/gr/imagebuilder.html#limits_imagebuilder">EC2 Image Builder endpoints and quotas</a>.</p>
1125
1065
  */
@@ -1128,12 +1068,6 @@ export interface ServiceQuotaExceededException extends __SmithyException, $Metad
1128
1068
  $fault: "client";
1129
1069
  message?: string;
1130
1070
  }
1131
- export declare namespace ServiceQuotaExceededException {
1132
- /**
1133
- * @internal
1134
- */
1135
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
1136
- }
1137
1071
  export interface CreateContainerRecipeRequest {
1138
1072
  /**
1139
1073
  * <p>The type of container to create.</p>
@@ -1248,12 +1182,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
1248
1182
  $fault: "client";
1249
1183
  message?: string;
1250
1184
  }
1251
- export declare namespace ResourceAlreadyExistsException {
1252
- /**
1253
- * @internal
1254
- */
1255
- const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
1256
- }
1257
1185
  /**
1258
1186
  * <p>Identifies an Amazon EC2 launch template to use for a specific account.</p>
1259
1187
  */
@@ -1939,12 +1867,6 @@ export interface ResourceDependencyException extends __SmithyException, $Metadat
1939
1867
  $fault: "client";
1940
1868
  message?: string;
1941
1869
  }
1942
- export declare namespace ResourceDependencyException {
1943
- /**
1944
- * @internal
1945
- */
1946
- const filterSensitiveLog: (obj: ResourceDependencyException) => any;
1947
- }
1948
1870
  export interface DeleteContainerRecipeRequest {
1949
1871
  /**
1950
1872
  * <p>The Amazon Resource Name (ARN) of the container recipe to delete.</p>
@@ -2286,12 +2208,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
2286
2208
  $fault: "client";
2287
2209
  message?: string;
2288
2210
  }
2289
- export declare namespace ResourceNotFoundException {
2290
- /**
2291
- * @internal
2292
- */
2293
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
2294
- }
2295
2211
  export interface GetContainerRecipeRequest {
2296
2212
  /**
2297
2213
  * <p>The Amazon Resource Name (ARN) of the container recipe to retrieve.</p>
@@ -3146,12 +3062,6 @@ export interface InvalidPaginationTokenException extends __SmithyException, $Met
3146
3062
  $fault: "client";
3147
3063
  message?: string;
3148
3064
  }
3149
- export declare namespace InvalidPaginationTokenException {
3150
- /**
3151
- * @internal
3152
- */
3153
- const filterSensitiveLog: (obj: InvalidPaginationTokenException) => any;
3154
- }
3155
3065
  export interface ListComponentBuildVersionsRequest {
3156
3066
  /**
3157
3067
  * <p>The component version Amazon Resource Name (ARN) whose versions you want to list.</p>
@@ -4150,12 +4060,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
4150
4060
  $fault: "client";
4151
4061
  message?: string;
4152
4062
  }
4153
- export declare namespace InvalidParameterException {
4154
- /**
4155
- * @internal
4156
- */
4157
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
4158
- }
4159
4063
  export interface ListTagsForResourceRequest {
4160
4064
  /**
4161
4065
  * <p>The Amazon Resource Name (ARN) of the resource whose tags you want to retrieve.</p>
@@ -4190,12 +4094,6 @@ export interface InvalidParameterValueException extends __SmithyException, $Meta
4190
4094
  $fault: "client";
4191
4095
  message?: string;
4192
4096
  }
4193
- export declare namespace InvalidParameterValueException {
4194
- /**
4195
- * @internal
4196
- */
4197
- const filterSensitiveLog: (obj: InvalidParameterValueException) => any;
4198
- }
4199
4097
  export interface PutComponentPolicyRequest {
4200
4098
  /**
4201
4099
  * <p>The Amazon Resource Name (ARN) of the component that this policy should be applied to.</p>
@@ -1,10 +1,11 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { ImagebuilderClientConfig } from "./ImagebuilderClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
@@ -12,7 +13,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<any>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,18 +1,19 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { ImagebuilderClientConfig } from "./ImagebuilderClient";
3
3
  /**
4
4
  * @internal
5
5
  */
6
6
  export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
7
7
  runtime: string;
8
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
8
9
  base64Decoder: import("@aws-sdk/types").Decoder;
9
10
  base64Encoder: import("@aws-sdk/types").Encoder;
10
11
  bodyLengthChecker: (body: any) => number | undefined;
11
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
12
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
12
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
13
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
14
15
  region: string | import("@aws-sdk/types").Provider<string>;
15
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
16
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
16
17
  retryMode: string | import("@aws-sdk/types").Provider<string>;
17
18
  sha256: import("@aws-sdk/types").HashConstructor;
18
19
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -25,6 +25,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
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
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
29
30
  tls?: boolean | undefined;
30
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -4,7 +4,7 @@ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry
4
4
  import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
- import { Client as __Client, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
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";
9
9
  import { CancelImageCreationCommandInput, CancelImageCreationCommandOutput } from "./commands/CancelImageCreationCommand";
10
10
  import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
@@ -101,6 +101,8 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
101
101
  regionInfoProvider?: RegionInfoProvider;
102
102
 
103
103
  defaultUserAgentProvider?: Provider<__UserAgent>;
104
+
105
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
104
106
  }
105
107
  declare type ImagebuilderClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
106
108
 
@@ -109,10 +109,6 @@ export interface CallRateLimitExceededException extends __SmithyException, $Meta
109
109
  $fault: "client";
110
110
  message?: string;
111
111
  }
112
- export declare namespace CallRateLimitExceededException {
113
-
114
- const filterSensitiveLog: (obj: CallRateLimitExceededException) => any;
115
- }
116
112
  export interface CancelImageCreationRequest {
117
113
 
118
114
  imageBuildVersionArn: string | undefined;
@@ -141,70 +137,42 @@ export interface ClientException extends __SmithyException, $MetadataBearer {
141
137
  $fault: "client";
142
138
  message?: string;
143
139
  }
144
- export declare namespace ClientException {
145
-
146
- const filterSensitiveLog: (obj: ClientException) => any;
147
- }
148
140
 
149
141
  export interface ForbiddenException extends __SmithyException, $MetadataBearer {
150
142
  name: "ForbiddenException";
151
143
  $fault: "client";
152
144
  message?: string;
153
145
  }
154
- export declare namespace ForbiddenException {
155
-
156
- const filterSensitiveLog: (obj: ForbiddenException) => any;
157
- }
158
146
 
159
147
  export interface IdempotentParameterMismatchException extends __SmithyException, $MetadataBearer {
160
148
  name: "IdempotentParameterMismatchException";
161
149
  $fault: "client";
162
150
  message?: string;
163
151
  }
164
- export declare namespace IdempotentParameterMismatchException {
165
-
166
- const filterSensitiveLog: (obj: IdempotentParameterMismatchException) => any;
167
- }
168
152
 
169
153
  export interface InvalidRequestException extends __SmithyException, $MetadataBearer {
170
154
  name: "InvalidRequestException";
171
155
  $fault: "client";
172
156
  message?: string;
173
157
  }
174
- export declare namespace InvalidRequestException {
175
-
176
- const filterSensitiveLog: (obj: InvalidRequestException) => any;
177
- }
178
158
 
179
159
  export interface ResourceInUseException extends __SmithyException, $MetadataBearer {
180
160
  name: "ResourceInUseException";
181
161
  $fault: "client";
182
162
  message?: string;
183
163
  }
184
- export declare namespace ResourceInUseException {
185
-
186
- const filterSensitiveLog: (obj: ResourceInUseException) => any;
187
- }
188
164
 
189
165
  export interface ServiceException extends __SmithyException, $MetadataBearer {
190
166
  name: "ServiceException";
191
167
  $fault: "server";
192
168
  message?: string;
193
169
  }
194
- export declare namespace ServiceException {
195
-
196
- const filterSensitiveLog: (obj: ServiceException) => any;
197
- }
198
170
 
199
171
  export interface ServiceUnavailableException extends __SmithyException, $MetadataBearer {
200
172
  name: "ServiceUnavailableException";
201
173
  $fault: "server";
202
174
  message?: string;
203
175
  }
204
- export declare namespace ServiceUnavailableException {
205
-
206
- const filterSensitiveLog: (obj: ServiceUnavailableException) => any;
207
- }
208
176
 
209
177
  export interface ComponentParameterDetail {
210
178
 
@@ -581,30 +549,18 @@ export interface InvalidParameterCombinationException extends __SmithyException,
581
549
  $fault: "client";
582
550
  message?: string;
583
551
  }
584
- export declare namespace InvalidParameterCombinationException {
585
-
586
- const filterSensitiveLog: (obj: InvalidParameterCombinationException) => any;
587
- }
588
552
 
589
553
  export interface InvalidVersionNumberException extends __SmithyException, $MetadataBearer {
590
554
  name: "InvalidVersionNumberException";
591
555
  $fault: "client";
592
556
  message?: string;
593
557
  }
594
- export declare namespace InvalidVersionNumberException {
595
-
596
- const filterSensitiveLog: (obj: InvalidVersionNumberException) => any;
597
- }
598
558
 
599
559
  export interface ServiceQuotaExceededException extends __SmithyException, $MetadataBearer {
600
560
  name: "ServiceQuotaExceededException";
601
561
  $fault: "client";
602
562
  message?: string;
603
563
  }
604
- export declare namespace ServiceQuotaExceededException {
605
-
606
- const filterSensitiveLog: (obj: ServiceQuotaExceededException) => any;
607
- }
608
564
  export interface CreateContainerRecipeRequest {
609
565
 
610
566
  containerType: ContainerType | string | undefined;
@@ -663,10 +619,6 @@ export interface ResourceAlreadyExistsException extends __SmithyException, $Meta
663
619
  $fault: "client";
664
620
  message?: string;
665
621
  }
666
- export declare namespace ResourceAlreadyExistsException {
667
-
668
- const filterSensitiveLog: (obj: ResourceAlreadyExistsException) => any;
669
- }
670
622
 
671
623
  export interface LaunchTemplateConfiguration {
672
624
 
@@ -1006,10 +958,6 @@ export interface ResourceDependencyException extends __SmithyException, $Metadat
1006
958
  $fault: "client";
1007
959
  message?: string;
1008
960
  }
1009
- export declare namespace ResourceDependencyException {
1010
-
1011
- const filterSensitiveLog: (obj: ResourceDependencyException) => any;
1012
- }
1013
961
  export interface DeleteContainerRecipeRequest {
1014
962
 
1015
963
  containerRecipeArn: string | undefined;
@@ -1219,10 +1167,6 @@ export interface ResourceNotFoundException extends __SmithyException, $MetadataB
1219
1167
  $fault: "client";
1220
1168
  message?: string;
1221
1169
  }
1222
- export declare namespace ResourceNotFoundException {
1223
-
1224
- const filterSensitiveLog: (obj: ResourceNotFoundException) => any;
1225
- }
1226
1170
  export interface GetContainerRecipeRequest {
1227
1171
 
1228
1172
  containerRecipeArn: string | undefined;
@@ -1658,10 +1602,6 @@ export interface InvalidPaginationTokenException extends __SmithyException, $Met
1658
1602
  $fault: "client";
1659
1603
  message?: string;
1660
1604
  }
1661
- export declare namespace InvalidPaginationTokenException {
1662
-
1663
- const filterSensitiveLog: (obj: InvalidPaginationTokenException) => any;
1664
- }
1665
1605
  export interface ListComponentBuildVersionsRequest {
1666
1606
 
1667
1607
  componentVersionArn: string | undefined;
@@ -2076,10 +2016,6 @@ export interface InvalidParameterException extends __SmithyException, $MetadataB
2076
2016
  $fault: "client";
2077
2017
  message?: string;
2078
2018
  }
2079
- export declare namespace InvalidParameterException {
2080
-
2081
- const filterSensitiveLog: (obj: InvalidParameterException) => any;
2082
- }
2083
2019
  export interface ListTagsForResourceRequest {
2084
2020
 
2085
2021
  resourceArn: string | undefined;
@@ -2104,10 +2040,6 @@ export interface InvalidParameterValueException extends __SmithyException, $Meta
2104
2040
  $fault: "client";
2105
2041
  message?: string;
2106
2042
  }
2107
- export declare namespace InvalidParameterValueException {
2108
-
2109
- const filterSensitiveLog: (obj: InvalidParameterValueException) => any;
2110
- }
2111
2043
  export interface PutComponentPolicyRequest {
2112
2044
 
2113
2045
  componentArn: string | undefined;
@@ -1,8 +1,9 @@
1
- import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";
1
+ import { FetchHttpHandler as RequestHandler } from "@aws-sdk/fetch-http-handler";
2
2
  import { ImagebuilderClientConfig } from "./ImagebuilderClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
@@ -10,7 +11,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<any>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -1,16 +1,17 @@
1
- import { NodeHttpHandler } from "@aws-sdk/node-http-handler";
1
+ import { NodeHttpHandler as RequestHandler } from "@aws-sdk/node-http-handler";
2
2
  import { ImagebuilderClientConfig } from "./ImagebuilderClient";
3
3
 
4
4
  export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
5
5
  runtime: string;
6
+ defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
6
7
  base64Decoder: import("@aws-sdk/types").Decoder;
7
8
  base64Encoder: import("@aws-sdk/types").Encoder;
8
9
  bodyLengthChecker: (body: any) => number | undefined;
9
- credentialDefaultProvider: import("@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers").DefaultCredentialProvider;
10
+ credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
10
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
11
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
12
13
  region: string | import("@aws-sdk/types").Provider<string>;
13
- requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler;
14
+ requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | RequestHandler;
14
15
  retryMode: string | import("@aws-sdk/types").Provider<string>;
15
16
  sha256: import("@aws-sdk/types").HashConstructor;
16
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
@@ -23,6 +23,7 @@ export declare const getRuntimeConfig: (config: ImagebuilderClientConfig) => {
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
+ 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>;
26
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
27
28
  tls?: boolean | undefined;
28
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
package/package.json CHANGED
@@ -1,17 +1,15 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-imagebuilder",
3
3
  "description": "AWS SDK for JavaScript Imagebuilder Client for Node.js, Browser and React Native",
4
- "version": "3.46.0",
4
+ "version": "3.47.0",
5
5
  "scripts": {
6
6
  "build": "yarn build:cjs && yarn build:es && yarn build:types",
7
- "build:cjs": "tsc -p tsconfig.json",
7
+ "build:cjs": "tsc -p tsconfig.cjs.json",
8
8
  "build:docs": "typedoc",
9
9
  "build:es": "tsc -p tsconfig.es.json",
10
10
  "build:types": "tsc -p tsconfig.types.json",
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
- "clean": "yarn clean:dist && yarn clean:docs",
13
- "clean:dist": "rimraf ./dist-*",
14
- "clean:docs": "rimraf ./docs"
12
+ "clean": "rimraf ./dist-*"
15
13
  },
16
14
  "main": "./dist-cjs/index.js",
17
15
  "types": "./dist-types/index.d.ts",
@@ -20,39 +18,41 @@
20
18
  "dependencies": {
21
19
  "@aws-crypto/sha256-browser": "2.0.0",
22
20
  "@aws-crypto/sha256-js": "2.0.0",
23
- "@aws-sdk/client-sts": "3.46.0",
24
- "@aws-sdk/config-resolver": "3.46.0",
25
- "@aws-sdk/credential-provider-node": "3.46.0",
26
- "@aws-sdk/fetch-http-handler": "3.46.0",
27
- "@aws-sdk/hash-node": "3.46.0",
28
- "@aws-sdk/invalid-dependency": "3.46.0",
29
- "@aws-sdk/middleware-content-length": "3.46.0",
30
- "@aws-sdk/middleware-host-header": "3.46.0",
31
- "@aws-sdk/middleware-logger": "3.46.0",
32
- "@aws-sdk/middleware-retry": "3.46.0",
33
- "@aws-sdk/middleware-serde": "3.46.0",
34
- "@aws-sdk/middleware-signing": "3.46.0",
35
- "@aws-sdk/middleware-stack": "3.46.0",
36
- "@aws-sdk/middleware-user-agent": "3.46.0",
37
- "@aws-sdk/node-config-provider": "3.46.0",
38
- "@aws-sdk/node-http-handler": "3.46.0",
39
- "@aws-sdk/protocol-http": "3.46.0",
40
- "@aws-sdk/smithy-client": "3.46.0",
41
- "@aws-sdk/types": "3.46.0",
42
- "@aws-sdk/url-parser": "3.46.0",
43
- "@aws-sdk/util-base64-browser": "3.46.0",
44
- "@aws-sdk/util-base64-node": "3.46.0",
45
- "@aws-sdk/util-body-length-browser": "3.46.0",
46
- "@aws-sdk/util-body-length-node": "3.46.0",
47
- "@aws-sdk/util-user-agent-browser": "3.46.0",
48
- "@aws-sdk/util-user-agent-node": "3.46.0",
49
- "@aws-sdk/util-utf8-browser": "3.46.0",
50
- "@aws-sdk/util-utf8-node": "3.46.0",
21
+ "@aws-sdk/client-sts": "3.47.0",
22
+ "@aws-sdk/config-resolver": "3.47.0",
23
+ "@aws-sdk/credential-provider-node": "3.47.0",
24
+ "@aws-sdk/fetch-http-handler": "3.47.0",
25
+ "@aws-sdk/hash-node": "3.47.0",
26
+ "@aws-sdk/invalid-dependency": "3.47.0",
27
+ "@aws-sdk/middleware-content-length": "3.47.0",
28
+ "@aws-sdk/middleware-host-header": "3.47.0",
29
+ "@aws-sdk/middleware-logger": "3.47.0",
30
+ "@aws-sdk/middleware-retry": "3.47.0",
31
+ "@aws-sdk/middleware-serde": "3.47.0",
32
+ "@aws-sdk/middleware-signing": "3.47.0",
33
+ "@aws-sdk/middleware-stack": "3.47.0",
34
+ "@aws-sdk/middleware-user-agent": "3.47.0",
35
+ "@aws-sdk/node-config-provider": "3.47.0",
36
+ "@aws-sdk/node-http-handler": "3.47.0",
37
+ "@aws-sdk/protocol-http": "3.47.0",
38
+ "@aws-sdk/smithy-client": "3.47.0",
39
+ "@aws-sdk/types": "3.47.0",
40
+ "@aws-sdk/url-parser": "3.47.0",
41
+ "@aws-sdk/util-base64-browser": "3.47.0",
42
+ "@aws-sdk/util-base64-node": "3.47.0",
43
+ "@aws-sdk/util-body-length-browser": "3.47.0",
44
+ "@aws-sdk/util-body-length-node": "3.47.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.47.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.47.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.47.0",
48
+ "@aws-sdk/util-user-agent-node": "3.47.0",
49
+ "@aws-sdk/util-utf8-browser": "3.47.0",
50
+ "@aws-sdk/util-utf8-node": "3.47.0",
51
51
  "tslib": "^2.3.0",
52
52
  "uuid": "^8.3.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@aws-sdk/service-client-documentation-generator": "3.46.0",
55
+ "@aws-sdk/service-client-documentation-generator": "3.47.0",
56
56
  "@types/node": "^12.7.5",
57
57
  "@types/uuid": "^8.3.0"
58
58
  },