@aws-sdk/client-acm-pca 3.42.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,53 @@
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
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
46
+
47
+ **Note:** Version bump only for package @aws-sdk/client-acm-pca
48
+
49
+
50
+
51
+
52
+
6
53
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
54
 
8
55
 
@@ -5,10 +5,6 @@ const config_resolver_1 = require("@aws-sdk/config-resolver");
5
5
  const regionHash = {
6
6
  "ca-central-1": {
7
7
  variants: [
8
- {
9
- hostname: "acm-pca.ca-central-1.amazonaws.com",
10
- tags: [],
11
- },
12
8
  {
13
9
  hostname: "acm-pca-fips.ca-central-1.amazonaws.com",
14
10
  tags: ["fips"],
@@ -17,10 +13,6 @@ const regionHash = {
17
13
  },
18
14
  "us-east-1": {
19
15
  variants: [
20
- {
21
- hostname: "acm-pca.us-east-1.amazonaws.com",
22
- tags: [],
23
- },
24
16
  {
25
17
  hostname: "acm-pca-fips.us-east-1.amazonaws.com",
26
18
  tags: ["fips"],
@@ -29,10 +21,6 @@ const regionHash = {
29
21
  },
30
22
  "us-east-2": {
31
23
  variants: [
32
- {
33
- hostname: "acm-pca.us-east-2.amazonaws.com",
34
- tags: [],
35
- },
36
24
  {
37
25
  hostname: "acm-pca-fips.us-east-2.amazonaws.com",
38
26
  tags: ["fips"],
@@ -41,10 +29,6 @@ const regionHash = {
41
29
  },
42
30
  "us-gov-east-1": {
43
31
  variants: [
44
- {
45
- hostname: "acm-pca.us-gov-east-1.amazonaws.com",
46
- tags: [],
47
- },
48
32
  {
49
33
  hostname: "acm-pca.us-gov-east-1.amazonaws.com",
50
34
  tags: ["fips"],
@@ -53,10 +37,6 @@ const regionHash = {
53
37
  },
54
38
  "us-gov-west-1": {
55
39
  variants: [
56
- {
57
- hostname: "acm-pca.us-gov-west-1.amazonaws.com",
58
- tags: [],
59
- },
60
40
  {
61
41
  hostname: "acm-pca.us-gov-west-1.amazonaws.com",
62
42
  tags: ["fips"],
@@ -65,10 +45,6 @@ const regionHash = {
65
45
  },
66
46
  "us-west-1": {
67
47
  variants: [
68
- {
69
- hostname: "acm-pca.us-west-1.amazonaws.com",
70
- tags: [],
71
- },
72
48
  {
73
49
  hostname: "acm-pca-fips.us-west-1.amazonaws.com",
74
50
  tags: ["fips"],
@@ -77,10 +53,6 @@ const regionHash = {
77
53
  },
78
54
  "us-west-2": {
79
55
  variants: [
80
- {
81
- hostname: "acm-pca.us-west-2.amazonaws.com",
82
- tags: [],
83
- },
84
56
  {
85
57
  hostname: "acm-pca-fips.us-west-2.amazonaws.com",
86
58
  tags: ["fips"],
@@ -99,6 +71,7 @@ const partitionHash = {
99
71
  "ap-south-1",
100
72
  "ap-southeast-1",
101
73
  "ap-southeast-2",
74
+ "ap-southeast-3",
102
75
  "ca-central-1",
103
76
  "eu-central-1",
104
77
  "eu-north-1",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetCertificateRequest = exports.DescribeCertificateAuthorityAuditReportResponse = exports.AuditReportStatus = exports.DescribeCertificateAuthorityAuditReportRequest = exports.DescribeCertificateAuthorityResponse = exports.CertificateAuthority = exports.CertificateAuthorityStatus = exports.FailureReason = exports.DescribeCertificateAuthorityRequest = exports.LockoutPreventedException = exports.DeletePolicyRequest = exports.DeletePermissionRequest = exports.DeleteCertificateAuthorityRequest = exports.ConcurrentModificationException = exports.PermissionAlreadyExistsException = exports.CreatePermissionRequest = exports.ActionType = exports.ResourceNotFoundException = exports.RequestInProgressException = exports.RequestFailedException = exports.InvalidStateException = exports.InvalidArnException = exports.CreateCertificateAuthorityAuditReportResponse = exports.CreateCertificateAuthorityAuditReportRequest = exports.AuditReportResponseFormat = exports.LimitExceededException = exports.InvalidTagException = exports.InvalidPolicyException = exports.InvalidArgsException = exports.CreateCertificateAuthorityResponse = exports.CreateCertificateAuthorityRequest = exports.Tag = exports.RevocationConfiguration = exports.OcspConfiguration = exports.CrlConfiguration = exports.S3ObjectAcl = exports.KeyStorageSecurityStandard = exports.CertificateAuthorityType = exports.CertificateAuthorityConfiguration = exports.SigningAlgorithm = exports.KeyAlgorithm = exports.CsrExtensions = exports.KeyUsage = exports.AccessDescription = exports.AccessMethod = exports.AccessMethodType = exports.GeneralName = exports.OtherName = exports.EdiPartyName = exports.ASN1Subject = void 0;
4
- exports.UpdateCertificateAuthorityRequest = exports.UntagCertificateAuthorityRequest = exports.TooManyTagsException = exports.TagCertificateAuthorityRequest = exports.RevokeCertificateRequest = exports.RevocationReason = exports.RequestAlreadyProcessedException = exports.RestoreCertificateAuthorityRequest = exports.PutPolicyRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListPermissionsResponse = exports.Permission = exports.ListPermissionsRequest = exports.ListCertificateAuthoritiesResponse = exports.ListCertificateAuthoritiesRequest = exports.ResourceOwner = exports.InvalidNextTokenException = exports.MalformedCSRException = exports.IssueCertificateResponse = exports.IssueCertificateRequest = exports.Validity = exports.ValidityPeriodType = exports.ApiPassthrough = exports.Extensions = exports.ExtendedKeyUsage = exports.ExtendedKeyUsageType = exports.PolicyInformation = exports.PolicyQualifierInfo = exports.Qualifier = exports.PolicyQualifierId = exports.MalformedCertificateException = exports.InvalidRequestException = exports.ImportCertificateAuthorityCertificateRequest = exports.CertificateMismatchException = exports.GetPolicyResponse = exports.GetPolicyRequest = exports.GetCertificateAuthorityCsrResponse = exports.GetCertificateAuthorityCsrRequest = exports.GetCertificateAuthorityCertificateResponse = exports.GetCertificateAuthorityCertificateRequest = exports.GetCertificateResponse = void 0;
3
+ exports.PolicyInformation = exports.PolicyQualifierInfo = exports.Qualifier = exports.PolicyQualifierId = exports.ImportCertificateAuthorityCertificateRequest = exports.GetPolicyResponse = exports.GetPolicyRequest = exports.GetCertificateAuthorityCsrResponse = exports.GetCertificateAuthorityCsrRequest = exports.GetCertificateAuthorityCertificateResponse = exports.GetCertificateAuthorityCertificateRequest = exports.GetCertificateResponse = exports.GetCertificateRequest = exports.DescribeCertificateAuthorityAuditReportResponse = exports.AuditReportStatus = exports.DescribeCertificateAuthorityAuditReportRequest = exports.DescribeCertificateAuthorityResponse = exports.CertificateAuthority = exports.CertificateAuthorityStatus = exports.FailureReason = exports.DescribeCertificateAuthorityRequest = exports.DeletePolicyRequest = exports.DeletePermissionRequest = exports.DeleteCertificateAuthorityRequest = exports.CreatePermissionRequest = exports.ActionType = exports.CreateCertificateAuthorityAuditReportResponse = exports.CreateCertificateAuthorityAuditReportRequest = exports.AuditReportResponseFormat = exports.CreateCertificateAuthorityResponse = exports.CreateCertificateAuthorityRequest = exports.Tag = exports.RevocationConfiguration = exports.OcspConfiguration = exports.CrlConfiguration = exports.S3ObjectAcl = exports.KeyStorageSecurityStandard = exports.CertificateAuthorityType = exports.CertificateAuthorityConfiguration = exports.SigningAlgorithm = exports.KeyAlgorithm = exports.CsrExtensions = exports.KeyUsage = exports.AccessDescription = exports.AccessMethod = exports.AccessMethodType = exports.GeneralName = exports.OtherName = exports.EdiPartyName = exports.ASN1Subject = void 0;
4
+ exports.UpdateCertificateAuthorityRequest = exports.UntagCertificateAuthorityRequest = exports.TagCertificateAuthorityRequest = exports.RevokeCertificateRequest = exports.RevocationReason = exports.RestoreCertificateAuthorityRequest = exports.PutPolicyRequest = exports.ListTagsResponse = exports.ListTagsRequest = exports.ListPermissionsResponse = exports.Permission = exports.ListPermissionsRequest = exports.ListCertificateAuthoritiesResponse = exports.ListCertificateAuthoritiesRequest = exports.ResourceOwner = exports.IssueCertificateResponse = exports.IssueCertificateRequest = exports.Validity = exports.ValidityPeriodType = exports.ApiPassthrough = exports.Extensions = exports.ExtendedKeyUsage = exports.ExtendedKeyUsageType = void 0;
5
5
  var ASN1Subject;
6
6
  (function (ASN1Subject) {
7
7
  ASN1Subject.filterSensitiveLog = (obj) => ({
@@ -129,30 +129,6 @@ var CreateCertificateAuthorityResponse;
129
129
  ...obj,
130
130
  });
131
131
  })(CreateCertificateAuthorityResponse = exports.CreateCertificateAuthorityResponse || (exports.CreateCertificateAuthorityResponse = {}));
132
- var InvalidArgsException;
133
- (function (InvalidArgsException) {
134
- InvalidArgsException.filterSensitiveLog = (obj) => ({
135
- ...obj,
136
- });
137
- })(InvalidArgsException = exports.InvalidArgsException || (exports.InvalidArgsException = {}));
138
- var InvalidPolicyException;
139
- (function (InvalidPolicyException) {
140
- InvalidPolicyException.filterSensitiveLog = (obj) => ({
141
- ...obj,
142
- });
143
- })(InvalidPolicyException = exports.InvalidPolicyException || (exports.InvalidPolicyException = {}));
144
- var InvalidTagException;
145
- (function (InvalidTagException) {
146
- InvalidTagException.filterSensitiveLog = (obj) => ({
147
- ...obj,
148
- });
149
- })(InvalidTagException = exports.InvalidTagException || (exports.InvalidTagException = {}));
150
- var LimitExceededException;
151
- (function (LimitExceededException) {
152
- LimitExceededException.filterSensitiveLog = (obj) => ({
153
- ...obj,
154
- });
155
- })(LimitExceededException = exports.LimitExceededException || (exports.LimitExceededException = {}));
156
132
  var AuditReportResponseFormat;
157
133
  (function (AuditReportResponseFormat) {
158
134
  AuditReportResponseFormat["CSV"] = "CSV";
@@ -170,36 +146,6 @@ var CreateCertificateAuthorityAuditReportResponse;
170
146
  ...obj,
171
147
  });
172
148
  })(CreateCertificateAuthorityAuditReportResponse = exports.CreateCertificateAuthorityAuditReportResponse || (exports.CreateCertificateAuthorityAuditReportResponse = {}));
173
- var InvalidArnException;
174
- (function (InvalidArnException) {
175
- InvalidArnException.filterSensitiveLog = (obj) => ({
176
- ...obj,
177
- });
178
- })(InvalidArnException = exports.InvalidArnException || (exports.InvalidArnException = {}));
179
- var InvalidStateException;
180
- (function (InvalidStateException) {
181
- InvalidStateException.filterSensitiveLog = (obj) => ({
182
- ...obj,
183
- });
184
- })(InvalidStateException = exports.InvalidStateException || (exports.InvalidStateException = {}));
185
- var RequestFailedException;
186
- (function (RequestFailedException) {
187
- RequestFailedException.filterSensitiveLog = (obj) => ({
188
- ...obj,
189
- });
190
- })(RequestFailedException = exports.RequestFailedException || (exports.RequestFailedException = {}));
191
- var RequestInProgressException;
192
- (function (RequestInProgressException) {
193
- RequestInProgressException.filterSensitiveLog = (obj) => ({
194
- ...obj,
195
- });
196
- })(RequestInProgressException = exports.RequestInProgressException || (exports.RequestInProgressException = {}));
197
- var ResourceNotFoundException;
198
- (function (ResourceNotFoundException) {
199
- ResourceNotFoundException.filterSensitiveLog = (obj) => ({
200
- ...obj,
201
- });
202
- })(ResourceNotFoundException = exports.ResourceNotFoundException || (exports.ResourceNotFoundException = {}));
203
149
  var ActionType;
204
150
  (function (ActionType) {
205
151
  ActionType["GetCertificate"] = "GetCertificate";
@@ -212,18 +158,6 @@ var CreatePermissionRequest;
212
158
  ...obj,
213
159
  });
214
160
  })(CreatePermissionRequest = exports.CreatePermissionRequest || (exports.CreatePermissionRequest = {}));
215
- var PermissionAlreadyExistsException;
216
- (function (PermissionAlreadyExistsException) {
217
- PermissionAlreadyExistsException.filterSensitiveLog = (obj) => ({
218
- ...obj,
219
- });
220
- })(PermissionAlreadyExistsException = exports.PermissionAlreadyExistsException || (exports.PermissionAlreadyExistsException = {}));
221
- var ConcurrentModificationException;
222
- (function (ConcurrentModificationException) {
223
- ConcurrentModificationException.filterSensitiveLog = (obj) => ({
224
- ...obj,
225
- });
226
- })(ConcurrentModificationException = exports.ConcurrentModificationException || (exports.ConcurrentModificationException = {}));
227
161
  var DeleteCertificateAuthorityRequest;
228
162
  (function (DeleteCertificateAuthorityRequest) {
229
163
  DeleteCertificateAuthorityRequest.filterSensitiveLog = (obj) => ({
@@ -242,12 +176,6 @@ var DeletePolicyRequest;
242
176
  ...obj,
243
177
  });
244
178
  })(DeletePolicyRequest = exports.DeletePolicyRequest || (exports.DeletePolicyRequest = {}));
245
- var LockoutPreventedException;
246
- (function (LockoutPreventedException) {
247
- LockoutPreventedException.filterSensitiveLog = (obj) => ({
248
- ...obj,
249
- });
250
- })(LockoutPreventedException = exports.LockoutPreventedException || (exports.LockoutPreventedException = {}));
251
179
  var DescribeCertificateAuthorityRequest;
252
180
  (function (DescribeCertificateAuthorityRequest) {
253
181
  DescribeCertificateAuthorityRequest.filterSensitiveLog = (obj) => ({
@@ -348,30 +276,12 @@ var GetPolicyResponse;
348
276
  ...obj,
349
277
  });
350
278
  })(GetPolicyResponse = exports.GetPolicyResponse || (exports.GetPolicyResponse = {}));
351
- var CertificateMismatchException;
352
- (function (CertificateMismatchException) {
353
- CertificateMismatchException.filterSensitiveLog = (obj) => ({
354
- ...obj,
355
- });
356
- })(CertificateMismatchException = exports.CertificateMismatchException || (exports.CertificateMismatchException = {}));
357
279
  var ImportCertificateAuthorityCertificateRequest;
358
280
  (function (ImportCertificateAuthorityCertificateRequest) {
359
281
  ImportCertificateAuthorityCertificateRequest.filterSensitiveLog = (obj) => ({
360
282
  ...obj,
361
283
  });
362
284
  })(ImportCertificateAuthorityCertificateRequest = exports.ImportCertificateAuthorityCertificateRequest || (exports.ImportCertificateAuthorityCertificateRequest = {}));
363
- var InvalidRequestException;
364
- (function (InvalidRequestException) {
365
- InvalidRequestException.filterSensitiveLog = (obj) => ({
366
- ...obj,
367
- });
368
- })(InvalidRequestException = exports.InvalidRequestException || (exports.InvalidRequestException = {}));
369
- var MalformedCertificateException;
370
- (function (MalformedCertificateException) {
371
- MalformedCertificateException.filterSensitiveLog = (obj) => ({
372
- ...obj,
373
- });
374
- })(MalformedCertificateException = exports.MalformedCertificateException || (exports.MalformedCertificateException = {}));
375
285
  var PolicyQualifierId;
376
286
  (function (PolicyQualifierId) {
377
287
  PolicyQualifierId["CPS"] = "CPS";
@@ -450,18 +360,6 @@ var IssueCertificateResponse;
450
360
  ...obj,
451
361
  });
452
362
  })(IssueCertificateResponse = exports.IssueCertificateResponse || (exports.IssueCertificateResponse = {}));
453
- var MalformedCSRException;
454
- (function (MalformedCSRException) {
455
- MalformedCSRException.filterSensitiveLog = (obj) => ({
456
- ...obj,
457
- });
458
- })(MalformedCSRException = exports.MalformedCSRException || (exports.MalformedCSRException = {}));
459
- var InvalidNextTokenException;
460
- (function (InvalidNextTokenException) {
461
- InvalidNextTokenException.filterSensitiveLog = (obj) => ({
462
- ...obj,
463
- });
464
- })(InvalidNextTokenException = exports.InvalidNextTokenException || (exports.InvalidNextTokenException = {}));
465
363
  var ResourceOwner;
466
364
  (function (ResourceOwner) {
467
365
  ResourceOwner["OTHER_ACCOUNTS"] = "OTHER_ACCOUNTS";
@@ -521,12 +419,6 @@ var RestoreCertificateAuthorityRequest;
521
419
  ...obj,
522
420
  });
523
421
  })(RestoreCertificateAuthorityRequest = exports.RestoreCertificateAuthorityRequest || (exports.RestoreCertificateAuthorityRequest = {}));
524
- var RequestAlreadyProcessedException;
525
- (function (RequestAlreadyProcessedException) {
526
- RequestAlreadyProcessedException.filterSensitiveLog = (obj) => ({
527
- ...obj,
528
- });
529
- })(RequestAlreadyProcessedException = exports.RequestAlreadyProcessedException || (exports.RequestAlreadyProcessedException = {}));
530
422
  var RevocationReason;
531
423
  (function (RevocationReason) {
532
424
  RevocationReason["AFFILIATION_CHANGED"] = "AFFILIATION_CHANGED";
@@ -550,12 +442,6 @@ var TagCertificateAuthorityRequest;
550
442
  ...obj,
551
443
  });
552
444
  })(TagCertificateAuthorityRequest = exports.TagCertificateAuthorityRequest || (exports.TagCertificateAuthorityRequest = {}));
553
- var TooManyTagsException;
554
- (function (TooManyTagsException) {
555
- TooManyTagsException.filterSensitiveLog = (obj) => ({
556
- ...obj,
557
- });
558
- })(TooManyTagsException = exports.TooManyTagsException || (exports.TooManyTagsException = {}));
559
445
  var UntagCertificateAuthorityRequest;
560
446
  (function (UntagCertificateAuthorityRequest) {
561
447
  UntagCertificateAuthorityRequest.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)),
@@ -16,14 +16,17 @@ 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
18
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
+ const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
19
20
  const getRuntimeConfig = (config) => {
20
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
+ const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
23
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
24
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
25
  return {
24
26
  ...clientSharedValues,
25
27
  ...config,
26
28
  runtime: "node",
29
+ defaultsMode,
27
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
28
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
29
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
@@ -31,8 +34,11 @@ const getRuntimeConfig = (config) => {
31
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 }),
32
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),
33
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),
34
- requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(),
35
- 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
+ }),
36
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
37
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
38
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),
@@ -3,10 +3,6 @@ import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
4
  "ca-central-1": {
5
5
  variants: [
6
- {
7
- hostname: "acm-pca.ca-central-1.amazonaws.com",
8
- tags: [],
9
- },
10
6
  {
11
7
  hostname: "acm-pca-fips.ca-central-1.amazonaws.com",
12
8
  tags: ["fips"],
@@ -15,10 +11,6 @@ var regionHash = {
15
11
  },
16
12
  "us-east-1": {
17
13
  variants: [
18
- {
19
- hostname: "acm-pca.us-east-1.amazonaws.com",
20
- tags: [],
21
- },
22
14
  {
23
15
  hostname: "acm-pca-fips.us-east-1.amazonaws.com",
24
16
  tags: ["fips"],
@@ -27,10 +19,6 @@ var regionHash = {
27
19
  },
28
20
  "us-east-2": {
29
21
  variants: [
30
- {
31
- hostname: "acm-pca.us-east-2.amazonaws.com",
32
- tags: [],
33
- },
34
22
  {
35
23
  hostname: "acm-pca-fips.us-east-2.amazonaws.com",
36
24
  tags: ["fips"],
@@ -39,10 +27,6 @@ var regionHash = {
39
27
  },
40
28
  "us-gov-east-1": {
41
29
  variants: [
42
- {
43
- hostname: "acm-pca.us-gov-east-1.amazonaws.com",
44
- tags: [],
45
- },
46
30
  {
47
31
  hostname: "acm-pca.us-gov-east-1.amazonaws.com",
48
32
  tags: ["fips"],
@@ -51,10 +35,6 @@ var regionHash = {
51
35
  },
52
36
  "us-gov-west-1": {
53
37
  variants: [
54
- {
55
- hostname: "acm-pca.us-gov-west-1.amazonaws.com",
56
- tags: [],
57
- },
58
38
  {
59
39
  hostname: "acm-pca.us-gov-west-1.amazonaws.com",
60
40
  tags: ["fips"],
@@ -63,10 +43,6 @@ var regionHash = {
63
43
  },
64
44
  "us-west-1": {
65
45
  variants: [
66
- {
67
- hostname: "acm-pca.us-west-1.amazonaws.com",
68
- tags: [],
69
- },
70
46
  {
71
47
  hostname: "acm-pca-fips.us-west-1.amazonaws.com",
72
48
  tags: ["fips"],
@@ -75,10 +51,6 @@ var regionHash = {
75
51
  },
76
52
  "us-west-2": {
77
53
  variants: [
78
- {
79
- hostname: "acm-pca.us-west-2.amazonaws.com",
80
- tags: [],
81
- },
82
54
  {
83
55
  hostname: "acm-pca-fips.us-west-2.amazonaws.com",
84
56
  tags: ["fips"],
@@ -97,6 +69,7 @@ var partitionHash = {
97
69
  "ap-south-1",
98
70
  "ap-southeast-1",
99
71
  "ap-southeast-2",
72
+ "ap-southeast-3",
100
73
  "ca-central-1",
101
74
  "eu-central-1",
102
75
  "eu-north-1",
@@ -96,22 +96,6 @@ export var CreateCertificateAuthorityResponse;
96
96
  (function (CreateCertificateAuthorityResponse) {
97
97
  CreateCertificateAuthorityResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
98
98
  })(CreateCertificateAuthorityResponse || (CreateCertificateAuthorityResponse = {}));
99
- export var InvalidArgsException;
100
- (function (InvalidArgsException) {
101
- InvalidArgsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
102
- })(InvalidArgsException || (InvalidArgsException = {}));
103
- export var InvalidPolicyException;
104
- (function (InvalidPolicyException) {
105
- InvalidPolicyException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
106
- })(InvalidPolicyException || (InvalidPolicyException = {}));
107
- export var InvalidTagException;
108
- (function (InvalidTagException) {
109
- InvalidTagException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
110
- })(InvalidTagException || (InvalidTagException = {}));
111
- export var LimitExceededException;
112
- (function (LimitExceededException) {
113
- LimitExceededException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
114
- })(LimitExceededException || (LimitExceededException = {}));
115
99
  export var AuditReportResponseFormat;
116
100
  (function (AuditReportResponseFormat) {
117
101
  AuditReportResponseFormat["CSV"] = "CSV";
@@ -125,26 +109,6 @@ export var CreateCertificateAuthorityAuditReportResponse;
125
109
  (function (CreateCertificateAuthorityAuditReportResponse) {
126
110
  CreateCertificateAuthorityAuditReportResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
127
111
  })(CreateCertificateAuthorityAuditReportResponse || (CreateCertificateAuthorityAuditReportResponse = {}));
128
- export var InvalidArnException;
129
- (function (InvalidArnException) {
130
- InvalidArnException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
131
- })(InvalidArnException || (InvalidArnException = {}));
132
- export var InvalidStateException;
133
- (function (InvalidStateException) {
134
- InvalidStateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
135
- })(InvalidStateException || (InvalidStateException = {}));
136
- export var RequestFailedException;
137
- (function (RequestFailedException) {
138
- RequestFailedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
139
- })(RequestFailedException || (RequestFailedException = {}));
140
- export var RequestInProgressException;
141
- (function (RequestInProgressException) {
142
- RequestInProgressException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
143
- })(RequestInProgressException || (RequestInProgressException = {}));
144
- export var ResourceNotFoundException;
145
- (function (ResourceNotFoundException) {
146
- ResourceNotFoundException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
147
- })(ResourceNotFoundException || (ResourceNotFoundException = {}));
148
112
  export var ActionType;
149
113
  (function (ActionType) {
150
114
  ActionType["GetCertificate"] = "GetCertificate";
@@ -155,14 +119,6 @@ export var CreatePermissionRequest;
155
119
  (function (CreatePermissionRequest) {
156
120
  CreatePermissionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
157
121
  })(CreatePermissionRequest || (CreatePermissionRequest = {}));
158
- export var PermissionAlreadyExistsException;
159
- (function (PermissionAlreadyExistsException) {
160
- PermissionAlreadyExistsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
161
- })(PermissionAlreadyExistsException || (PermissionAlreadyExistsException = {}));
162
- export var ConcurrentModificationException;
163
- (function (ConcurrentModificationException) {
164
- ConcurrentModificationException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
165
- })(ConcurrentModificationException || (ConcurrentModificationException = {}));
166
122
  export var DeleteCertificateAuthorityRequest;
167
123
  (function (DeleteCertificateAuthorityRequest) {
168
124
  DeleteCertificateAuthorityRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -175,10 +131,6 @@ export var DeletePolicyRequest;
175
131
  (function (DeletePolicyRequest) {
176
132
  DeletePolicyRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
177
133
  })(DeletePolicyRequest || (DeletePolicyRequest = {}));
178
- export var LockoutPreventedException;
179
- (function (LockoutPreventedException) {
180
- LockoutPreventedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
181
- })(LockoutPreventedException || (LockoutPreventedException = {}));
182
134
  export var DescribeCertificateAuthorityRequest;
183
135
  (function (DescribeCertificateAuthorityRequest) {
184
136
  DescribeCertificateAuthorityRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -253,22 +205,10 @@ export var GetPolicyResponse;
253
205
  (function (GetPolicyResponse) {
254
206
  GetPolicyResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
255
207
  })(GetPolicyResponse || (GetPolicyResponse = {}));
256
- export var CertificateMismatchException;
257
- (function (CertificateMismatchException) {
258
- CertificateMismatchException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
259
- })(CertificateMismatchException || (CertificateMismatchException = {}));
260
208
  export var ImportCertificateAuthorityCertificateRequest;
261
209
  (function (ImportCertificateAuthorityCertificateRequest) {
262
210
  ImportCertificateAuthorityCertificateRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
263
211
  })(ImportCertificateAuthorityCertificateRequest || (ImportCertificateAuthorityCertificateRequest = {}));
264
- export var InvalidRequestException;
265
- (function (InvalidRequestException) {
266
- InvalidRequestException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
267
- })(InvalidRequestException || (InvalidRequestException = {}));
268
- export var MalformedCertificateException;
269
- (function (MalformedCertificateException) {
270
- MalformedCertificateException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
271
- })(MalformedCertificateException || (MalformedCertificateException = {}));
272
212
  export var PolicyQualifierId;
273
213
  (function (PolicyQualifierId) {
274
214
  PolicyQualifierId["CPS"] = "CPS";
@@ -329,14 +269,6 @@ export var IssueCertificateResponse;
329
269
  (function (IssueCertificateResponse) {
330
270
  IssueCertificateResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
331
271
  })(IssueCertificateResponse || (IssueCertificateResponse = {}));
332
- export var MalformedCSRException;
333
- (function (MalformedCSRException) {
334
- MalformedCSRException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
335
- })(MalformedCSRException || (MalformedCSRException = {}));
336
- export var InvalidNextTokenException;
337
- (function (InvalidNextTokenException) {
338
- InvalidNextTokenException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
339
- })(InvalidNextTokenException || (InvalidNextTokenException = {}));
340
272
  export var ResourceOwner;
341
273
  (function (ResourceOwner) {
342
274
  ResourceOwner["OTHER_ACCOUNTS"] = "OTHER_ACCOUNTS";
@@ -378,10 +310,6 @@ export var RestoreCertificateAuthorityRequest;
378
310
  (function (RestoreCertificateAuthorityRequest) {
379
311
  RestoreCertificateAuthorityRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
380
312
  })(RestoreCertificateAuthorityRequest || (RestoreCertificateAuthorityRequest = {}));
381
- export var RequestAlreadyProcessedException;
382
- (function (RequestAlreadyProcessedException) {
383
- RequestAlreadyProcessedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
384
- })(RequestAlreadyProcessedException || (RequestAlreadyProcessedException = {}));
385
313
  export var RevocationReason;
386
314
  (function (RevocationReason) {
387
315
  RevocationReason["AFFILIATION_CHANGED"] = "AFFILIATION_CHANGED";
@@ -401,10 +329,6 @@ export var TagCertificateAuthorityRequest;
401
329
  (function (TagCertificateAuthorityRequest) {
402
330
  TagCertificateAuthorityRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
403
331
  })(TagCertificateAuthorityRequest || (TagCertificateAuthorityRequest = {}));
404
- export var TooManyTagsException;
405
- (function (TooManyTagsException) {
406
- TooManyTagsException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
407
- })(TooManyTagsException || (TooManyTagsException = {}));
408
332
  export var UntagCertificateAuthorityRequest;
409
333
  (function (UntagCertificateAuthorityRequest) {
410
334
  UntagCertificateAuthorityRequest.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
  };