@aws-sdk/client-cloudformation 3.39.0 → 3.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +11 -11
  3. package/dist-cjs/endpoints.js +130 -19
  4. package/dist-cjs/models/models_0.js +10 -4
  5. package/dist-cjs/protocols/Aws_query.js +48 -0
  6. package/dist-cjs/runtimeConfig.browser.js +6 -3
  7. package/dist-cjs/runtimeConfig.js +5 -3
  8. package/dist-es/endpoints.js +130 -19
  9. package/dist-es/models/models_0.js +4 -0
  10. package/dist-es/protocols/Aws_query.js +51 -0
  11. package/dist-es/runtimeConfig.browser.js +3 -2
  12. package/dist-es/runtimeConfig.js +3 -3
  13. package/dist-types/CloudFormation.d.ts +114 -117
  14. package/dist-types/CloudFormationClient.d.ts +19 -11
  15. package/dist-types/commands/ActivateTypeCommand.d.ts +1 -1
  16. package/dist-types/commands/BatchDescribeTypeConfigurationsCommand.d.ts +1 -1
  17. package/dist-types/commands/CancelUpdateStackCommand.d.ts +3 -3
  18. package/dist-types/commands/ContinueUpdateRollbackCommand.d.ts +6 -7
  19. package/dist-types/commands/CreateChangeSetCommand.d.ts +9 -8
  20. package/dist-types/commands/CreateStackCommand.d.ts +3 -3
  21. package/dist-types/commands/CreateStackInstancesCommand.d.ts +4 -2
  22. package/dist-types/commands/CreateStackSetCommand.d.ts +1 -1
  23. package/dist-types/commands/DeactivateTypeCommand.d.ts +1 -1
  24. package/dist-types/commands/DeleteChangeSetCommand.d.ts +3 -3
  25. package/dist-types/commands/DeleteStackCommand.d.ts +4 -4
  26. package/dist-types/commands/DeleteStackInstancesCommand.d.ts +1 -1
  27. package/dist-types/commands/DeleteStackSetCommand.d.ts +1 -1
  28. package/dist-types/commands/DeregisterTypeCommand.d.ts +1 -1
  29. package/dist-types/commands/DescribeAccountLimitsCommand.d.ts +2 -3
  30. package/dist-types/commands/DescribeChangeSetCommand.d.ts +1 -1
  31. package/dist-types/commands/DescribePublisherCommand.d.ts +1 -1
  32. package/dist-types/commands/DescribeStackDriftDetectionStatusCommand.d.ts +1 -1
  33. package/dist-types/commands/DescribeStackEventsCommand.d.ts +4 -3
  34. package/dist-types/commands/DescribeStackInstanceCommand.d.ts +2 -3
  35. package/dist-types/commands/DescribeStackResourceCommand.d.ts +3 -3
  36. package/dist-types/commands/DescribeStackResourceDriftsCommand.d.ts +4 -4
  37. package/dist-types/commands/DescribeStackResourcesCommand.d.ts +9 -10
  38. package/dist-types/commands/DescribeStackSetCommand.d.ts +1 -1
  39. package/dist-types/commands/DescribeStackSetOperationCommand.d.ts +1 -1
  40. package/dist-types/commands/DescribeStacksCommand.d.ts +4 -5
  41. package/dist-types/commands/DescribeTypeCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeTypeRegistrationCommand.d.ts +1 -1
  43. package/dist-types/commands/DetectStackDriftCommand.d.ts +7 -7
  44. package/dist-types/commands/DetectStackResourceDriftCommand.d.ts +3 -3
  45. package/dist-types/commands/DetectStackSetDriftCommand.d.ts +1 -1
  46. package/dist-types/commands/EstimateTemplateCostCommand.d.ts +3 -4
  47. package/dist-types/commands/ExecuteChangeSetCommand.d.ts +3 -3
  48. package/dist-types/commands/GetStackPolicyCommand.d.ts +3 -3
  49. package/dist-types/commands/GetTemplateCommand.d.ts +5 -5
  50. package/dist-types/commands/GetTemplateSummaryCommand.d.ts +3 -3
  51. package/dist-types/commands/ImportStacksToStackSetCommand.d.ts +7 -9
  52. package/dist-types/commands/ListChangeSetsCommand.d.ts +2 -3
  53. package/dist-types/commands/ListExportsCommand.d.ts +1 -1
  54. package/dist-types/commands/ListImportsCommand.d.ts +1 -1
  55. package/dist-types/commands/ListStackInstancesCommand.d.ts +3 -4
  56. package/dist-types/commands/ListStackResourcesCommand.d.ts +1 -1
  57. package/dist-types/commands/ListStackSetOperationResultsCommand.d.ts +1 -1
  58. package/dist-types/commands/ListStackSetOperationsCommand.d.ts +1 -1
  59. package/dist-types/commands/ListStackSetsCommand.d.ts +2 -3
  60. package/dist-types/commands/ListStacksCommand.d.ts +1 -1
  61. package/dist-types/commands/ListTypeRegistrationsCommand.d.ts +1 -1
  62. package/dist-types/commands/ListTypeVersionsCommand.d.ts +1 -1
  63. package/dist-types/commands/ListTypesCommand.d.ts +1 -1
  64. package/dist-types/commands/PublishTypeCommand.d.ts +1 -1
  65. package/dist-types/commands/RecordHandlerProgressCommand.d.ts +1 -1
  66. package/dist-types/commands/RegisterPublisherCommand.d.ts +1 -1
  67. package/dist-types/commands/RegisterTypeCommand.d.ts +1 -1
  68. package/dist-types/commands/RollbackStackCommand.d.ts +9 -4
  69. package/dist-types/commands/SetStackPolicyCommand.d.ts +1 -1
  70. package/dist-types/commands/SetTypeConfigurationCommand.d.ts +1 -1
  71. package/dist-types/commands/SetTypeDefaultVersionCommand.d.ts +1 -1
  72. package/dist-types/commands/SignalResourceCommand.d.ts +4 -5
  73. package/dist-types/commands/StopStackSetOperationCommand.d.ts +1 -1
  74. package/dist-types/commands/TestTypeCommand.d.ts +1 -1
  75. package/dist-types/commands/UpdateStackCommand.d.ts +5 -5
  76. package/dist-types/commands/UpdateStackInstancesCommand.d.ts +7 -7
  77. package/dist-types/commands/UpdateStackSetCommand.d.ts +3 -3
  78. package/dist-types/commands/UpdateTerminationProtectionCommand.d.ts +3 -3
  79. package/dist-types/commands/ValidateTemplateCommand.d.ts +3 -3
  80. package/dist-types/models/models_0.d.ts +657 -635
  81. package/dist-types/runtimeConfig.browser.d.ts +2 -0
  82. package/dist-types/runtimeConfig.d.ts +2 -0
  83. package/dist-types/runtimeConfig.native.d.ts +2 -0
  84. package/dist-types/ts3.4/CloudFormationClient.d.ts +4 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +22 -1
  86. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
  87. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
  88. package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
  89. package/package.json +24 -24
@@ -1,29 +1,71 @@
1
1
  import { __assign, __awaiter, __generator } from "tslib";
2
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
3
3
  var regionHash = {
4
- "us-east-1-fips": {
5
- hostname: "cloudformation-fips.us-east-1.amazonaws.com",
6
- signingRegion: "us-east-1",
4
+ "us-east-1": {
5
+ variants: [
6
+ {
7
+ hostname: "cloudformation.us-east-1.amazonaws.com",
8
+ tags: [],
9
+ },
10
+ {
11
+ hostname: "cloudformation-fips.us-east-1.amazonaws.com",
12
+ tags: ["fips"],
13
+ },
14
+ ],
7
15
  },
8
- "us-east-2-fips": {
9
- hostname: "cloudformation-fips.us-east-2.amazonaws.com",
10
- signingRegion: "us-east-2",
16
+ "us-east-2": {
17
+ variants: [
18
+ {
19
+ hostname: "cloudformation.us-east-2.amazonaws.com",
20
+ tags: [],
21
+ },
22
+ {
23
+ hostname: "cloudformation-fips.us-east-2.amazonaws.com",
24
+ tags: ["fips"],
25
+ },
26
+ ],
11
27
  },
12
28
  "us-gov-east-1": {
13
- hostname: "cloudformation.us-gov-east-1.amazonaws.com",
29
+ variants: [
30
+ {
31
+ hostname: "cloudformation.us-gov-east-1.amazonaws.com",
32
+ tags: [],
33
+ },
34
+ ],
14
35
  signingRegion: "us-gov-east-1",
15
36
  },
16
37
  "us-gov-west-1": {
17
- hostname: "cloudformation.us-gov-west-1.amazonaws.com",
38
+ variants: [
39
+ {
40
+ hostname: "cloudformation.us-gov-west-1.amazonaws.com",
41
+ tags: [],
42
+ },
43
+ ],
18
44
  signingRegion: "us-gov-west-1",
19
45
  },
20
- "us-west-1-fips": {
21
- hostname: "cloudformation-fips.us-west-1.amazonaws.com",
22
- signingRegion: "us-west-1",
46
+ "us-west-1": {
47
+ variants: [
48
+ {
49
+ hostname: "cloudformation.us-west-1.amazonaws.com",
50
+ tags: [],
51
+ },
52
+ {
53
+ hostname: "cloudformation-fips.us-west-1.amazonaws.com",
54
+ tags: ["fips"],
55
+ },
56
+ ],
23
57
  },
24
- "us-west-2-fips": {
25
- hostname: "cloudformation-fips.us-west-2.amazonaws.com",
26
- signingRegion: "us-west-2",
58
+ "us-west-2": {
59
+ variants: [
60
+ {
61
+ hostname: "cloudformation.us-west-2.amazonaws.com",
62
+ tags: [],
63
+ },
64
+ {
65
+ hostname: "cloudformation-fips.us-west-2.amazonaws.com",
66
+ tags: ["fips"],
67
+ },
68
+ ],
27
69
  },
28
70
  };
29
71
  var partitionHash = {
@@ -56,27 +98,96 @@ var partitionHash = {
56
98
  "us-west-2-fips",
57
99
  ],
58
100
  regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
59
- hostname: "cloudformation.{region}.amazonaws.com",
101
+ variants: [
102
+ {
103
+ hostname: "cloudformation.{region}.amazonaws.com",
104
+ tags: [],
105
+ },
106
+ {
107
+ hostname: "cloudformation-fips.{region}.amazonaws.com",
108
+ tags: ["fips"],
109
+ },
110
+ {
111
+ hostname: "cloudformation-fips.{region}.api.aws",
112
+ tags: ["dualstack", "fips"],
113
+ },
114
+ {
115
+ hostname: "cloudformation.{region}.api.aws",
116
+ tags: ["dualstack"],
117
+ },
118
+ ],
60
119
  },
61
120
  "aws-cn": {
62
121
  regions: ["cn-north-1", "cn-northwest-1"],
63
122
  regionRegex: "^cn\\-\\w+\\-\\d+$",
64
- hostname: "cloudformation.{region}.amazonaws.com.cn",
123
+ variants: [
124
+ {
125
+ hostname: "cloudformation.{region}.amazonaws.com.cn",
126
+ tags: [],
127
+ },
128
+ {
129
+ hostname: "cloudformation-fips.{region}.amazonaws.com.cn",
130
+ tags: ["fips"],
131
+ },
132
+ {
133
+ hostname: "cloudformation-fips.{region}.api.amazonwebservices.com.cn",
134
+ tags: ["dualstack", "fips"],
135
+ },
136
+ {
137
+ hostname: "cloudformation.{region}.api.amazonwebservices.com.cn",
138
+ tags: ["dualstack"],
139
+ },
140
+ ],
65
141
  },
66
142
  "aws-iso": {
67
143
  regions: ["us-iso-east-1", "us-iso-west-1"],
68
144
  regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
69
- hostname: "cloudformation.{region}.c2s.ic.gov",
145
+ variants: [
146
+ {
147
+ hostname: "cloudformation.{region}.c2s.ic.gov",
148
+ tags: [],
149
+ },
150
+ {
151
+ hostname: "cloudformation-fips.{region}.c2s.ic.gov",
152
+ tags: ["fips"],
153
+ },
154
+ ],
70
155
  },
71
156
  "aws-iso-b": {
72
157
  regions: ["us-isob-east-1"],
73
158
  regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
74
- hostname: "cloudformation.{region}.sc2s.sgov.gov",
159
+ variants: [
160
+ {
161
+ hostname: "cloudformation.{region}.sc2s.sgov.gov",
162
+ tags: [],
163
+ },
164
+ {
165
+ hostname: "cloudformation-fips.{region}.sc2s.sgov.gov",
166
+ tags: ["fips"],
167
+ },
168
+ ],
75
169
  },
76
170
  "aws-us-gov": {
77
171
  regions: ["us-gov-east-1", "us-gov-west-1"],
78
172
  regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
79
- hostname: "cloudformation.{region}.amazonaws.com",
173
+ variants: [
174
+ {
175
+ hostname: "cloudformation.{region}.amazonaws.com",
176
+ tags: [],
177
+ },
178
+ {
179
+ hostname: "cloudformation-fips.{region}.amazonaws.com",
180
+ tags: ["fips"],
181
+ },
182
+ {
183
+ hostname: "cloudformation-fips.{region}.api.aws",
184
+ tags: ["dualstack", "fips"],
185
+ },
186
+ {
187
+ hostname: "cloudformation.{region}.api.aws",
188
+ tags: ["dualstack"],
189
+ },
190
+ ],
80
191
  },
81
192
  };
82
193
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
@@ -298,6 +298,10 @@ export var CreatedButModifiedException;
298
298
  (function (CreatedButModifiedException) {
299
299
  CreatedButModifiedException.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
300
300
  })(CreatedButModifiedException || (CreatedButModifiedException = {}));
301
+ export var ManagedExecution;
302
+ (function (ManagedExecution) {
303
+ ManagedExecution.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
304
+ })(ManagedExecution || (ManagedExecution = {}));
301
305
  export var CreateStackSetInput;
302
306
  (function (CreateStackSetInput) {
303
307
  CreateStackSetInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -5108,6 +5108,14 @@ var serializeAws_queryCreateStackSetInput = function (input, context) {
5108
5108
  if (input.ClientRequestToken !== undefined && input.ClientRequestToken !== null) {
5109
5109
  entries["ClientRequestToken"] = input.ClientRequestToken;
5110
5110
  }
5111
+ if (input.ManagedExecution !== undefined && input.ManagedExecution !== null) {
5112
+ var memberEntries = serializeAws_queryManagedExecution(input.ManagedExecution, context);
5113
+ Object.entries(memberEntries).forEach(function (_a) {
5114
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
5115
+ var loc = "ManagedExecution." + key;
5116
+ entries[loc] = value;
5117
+ });
5118
+ }
5111
5119
  return entries;
5112
5120
  };
5113
5121
  var serializeAws_queryDeactivateTypeInput = function (input, context) {
@@ -5555,6 +5563,17 @@ var serializeAws_queryImportStacksToStackSetInput = function (input, context) {
5555
5563
  entries[loc] = value;
5556
5564
  });
5557
5565
  }
5566
+ if (input.StackIdsUrl !== undefined && input.StackIdsUrl !== null) {
5567
+ entries["StackIdsUrl"] = input.StackIdsUrl;
5568
+ }
5569
+ if (input.OrganizationalUnitIds !== undefined && input.OrganizationalUnitIds !== null) {
5570
+ var memberEntries = serializeAws_queryOrganizationalUnitIdList(input.OrganizationalUnitIds, context);
5571
+ Object.entries(memberEntries).forEach(function (_a) {
5572
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
5573
+ var loc = "OrganizationalUnitIds." + key;
5574
+ entries[loc] = value;
5575
+ });
5576
+ }
5558
5577
  if (input.OperationPreferences !== undefined && input.OperationPreferences !== null) {
5559
5578
  var memberEntries = serializeAws_queryStackSetOperationPreferences(input.OperationPreferences, context);
5560
5579
  Object.entries(memberEntries).forEach(function (_a) {
@@ -5817,6 +5836,13 @@ var serializeAws_queryLogicalResourceIds = function (input, context) {
5817
5836
  }
5818
5837
  return entries;
5819
5838
  };
5839
+ var serializeAws_queryManagedExecution = function (input, context) {
5840
+ var entries = {};
5841
+ if (input.Active !== undefined && input.Active !== null) {
5842
+ entries["Active"] = input.Active;
5843
+ }
5844
+ return entries;
5845
+ };
5820
5846
  var serializeAws_queryNotificationARNs = function (input, context) {
5821
5847
  var e_4, _a;
5822
5848
  var entries = {};
@@ -6763,6 +6789,14 @@ var serializeAws_queryUpdateStackSetInput = function (input, context) {
6763
6789
  if (input.CallAs !== undefined && input.CallAs !== null) {
6764
6790
  entries["CallAs"] = input.CallAs;
6765
6791
  }
6792
+ if (input.ManagedExecution !== undefined && input.ManagedExecution !== null) {
6793
+ var memberEntries = serializeAws_queryManagedExecution(input.ManagedExecution, context);
6794
+ Object.entries(memberEntries).forEach(function (_a) {
6795
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
6796
+ var loc = "ManagedExecution." + key;
6797
+ entries[loc] = value;
6798
+ });
6799
+ }
6766
6800
  return entries;
6767
6801
  };
6768
6802
  var serializeAws_queryUpdateTerminationProtectionInput = function (input, context) {
@@ -7968,6 +8002,15 @@ var deserializeAws_queryLogicalResourceIds = function (output, context) {
7968
8002
  return __expectString(entry);
7969
8003
  });
7970
8004
  };
8005
+ var deserializeAws_queryManagedExecution = function (output, context) {
8006
+ var contents = {
8007
+ Active: undefined,
8008
+ };
8009
+ if (output["Active"] !== undefined) {
8010
+ contents.Active = __parseBoolean(output["Active"]);
8011
+ }
8012
+ return contents;
8013
+ };
7971
8014
  var deserializeAws_queryModuleInfo = function (output, context) {
7972
8015
  var contents = {
7973
8016
  TypeHierarchy: undefined,
@@ -9122,6 +9165,7 @@ var deserializeAws_queryStackSet = function (output, context) {
9122
9165
  AutoDeployment: undefined,
9123
9166
  PermissionModel: undefined,
9124
9167
  OrganizationalUnitIds: undefined,
9168
+ ManagedExecution: undefined,
9125
9169
  };
9126
9170
  if (output["StackSetName"] !== undefined) {
9127
9171
  contents.StackSetName = __expectString(output["StackSetName"]);
@@ -9180,6 +9224,9 @@ var deserializeAws_queryStackSet = function (output, context) {
9180
9224
  if (output["OrganizationalUnitIds"] !== undefined && output["OrganizationalUnitIds"]["member"] !== undefined) {
9181
9225
  contents.OrganizationalUnitIds = deserializeAws_queryOrganizationalUnitIdList(__getArrayIfSingleItem(output["OrganizationalUnitIds"]["member"]), context);
9182
9226
  }
9227
+ if (output["ManagedExecution"] !== undefined) {
9228
+ contents.ManagedExecution = deserializeAws_queryManagedExecution(output["ManagedExecution"], context);
9229
+ }
9183
9230
  return contents;
9184
9231
  };
9185
9232
  var deserializeAws_queryStackSetDriftDetectionDetails = function (output, context) {
@@ -9416,6 +9463,7 @@ var deserializeAws_queryStackSetSummary = function (output, context) {
9416
9463
  PermissionModel: undefined,
9417
9464
  DriftStatus: undefined,
9418
9465
  LastDriftCheckTimestamp: undefined,
9466
+ ManagedExecution: undefined,
9419
9467
  };
9420
9468
  if (output["StackSetName"] !== undefined) {
9421
9469
  contents.StackSetName = __expectString(output["StackSetName"]);
@@ -9441,6 +9489,9 @@ var deserializeAws_queryStackSetSummary = function (output, context) {
9441
9489
  if (output["LastDriftCheckTimestamp"] !== undefined) {
9442
9490
  contents.LastDriftCheckTimestamp = __expectNonNull(__parseRfc3339DateTime(output["LastDriftCheckTimestamp"]));
9443
9491
  }
9492
+ if (output["ManagedExecution"] !== undefined) {
9493
+ contents.ManagedExecution = deserializeAws_queryManagedExecution(output["ManagedExecution"], context);
9494
+ }
9444
9495
  return contents;
9445
9496
  };
9446
9497
  var deserializeAws_queryStackSummaries = function (output, context) {
@@ -1,6 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
4
5
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
6
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
@@ -10,7 +11,7 @@ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
11
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
11
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
13
  export var getRuntimeConfig = function (config) {
13
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
14
15
  var clientSharedValues = getSharedRuntimeConfig(config);
15
- 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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
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 });
16
17
  };
@@ -1,7 +1,7 @@
1
1
  import { __assign } from "tslib";
2
2
  import packageInfo from "../package.json";
3
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
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
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
@@ -14,8 +14,8 @@ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
15
  import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
17
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
- 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, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
20
+ 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 });
21
21
  };