@aws-sdk/client-quicksight 3.957.0 → 3.960.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 (56) hide show
  1. package/README.md +26 -229
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
  3. package/dist-cjs/index.js +6544 -10649
  4. package/dist-cjs/runtimeConfig.browser.js +1 -2
  5. package/dist-cjs/runtimeConfig.js +2 -4
  6. package/dist-es/QuickSight.js +8 -0
  7. package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
  8. package/dist-es/commands/DescribeSelfUpgradeConfigurationCommand.js +16 -0
  9. package/dist-es/commands/ListSelfUpgradesCommand.js +16 -0
  10. package/dist-es/commands/UpdateSelfUpgradeCommand.js +16 -0
  11. package/dist-es/commands/UpdateSelfUpgradeConfigurationCommand.js +16 -0
  12. package/dist-es/commands/index.js +4 -0
  13. package/dist-es/models/enums.js +16 -0
  14. package/dist-es/models/errors.js +16 -0
  15. package/dist-es/pagination/index.js +6 -6
  16. package/dist-es/runtimeConfig.browser.js +1 -2
  17. package/dist-es/runtimeConfig.js +4 -6
  18. package/dist-es/schemas/schemas_0.js +6252 -10460
  19. package/dist-types/QuickSight.d.ts +28 -0
  20. package/dist-types/QuickSightClient.d.ts +6 -2
  21. package/dist-types/commands/CreateCustomPermissionsCommand.d.ts +1 -0
  22. package/dist-types/commands/DescribeCustomPermissionsCommand.d.ts +1 -0
  23. package/dist-types/commands/DescribeSelfUpgradeConfigurationCommand.d.ts +106 -0
  24. package/dist-types/commands/DescribeTemplateDefinitionCommand.d.ts +2 -1
  25. package/dist-types/commands/DescribeTemplatePermissionsCommand.d.ts +1 -1
  26. package/dist-types/commands/ListCustomPermissionsCommand.d.ts +1 -0
  27. package/dist-types/commands/ListSelfUpgradesCommand.d.ts +122 -0
  28. package/dist-types/commands/StartDashboardSnapshotJobCommand.d.ts +2 -2
  29. package/dist-types/commands/UpdateCustomPermissionsCommand.d.ts +1 -0
  30. package/dist-types/commands/UpdateSelfUpgradeCommand.d.ts +119 -0
  31. package/dist-types/commands/UpdateSelfUpgradeConfigurationCommand.d.ts +104 -0
  32. package/dist-types/commands/index.d.ts +4 -0
  33. package/dist-types/models/enums.d.ts +40 -0
  34. package/dist-types/models/errors.d.ts +18 -0
  35. package/dist-types/models/models_2.d.ts +5 -0
  36. package/dist-types/models/models_3.d.ts +57 -129
  37. package/dist-types/models/models_4.d.ts +312 -3
  38. package/dist-types/pagination/index.d.ts +6 -6
  39. package/dist-types/schemas/schemas_0.d.ts +15 -0
  40. package/dist-types/ts3.4/QuickSight.d.ts +68 -0
  41. package/dist-types/ts3.4/QuickSightClient.d.ts +24 -0
  42. package/dist-types/ts3.4/commands/DescribeSelfUpgradeConfigurationCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/DescribeTemplateDefinitionCommand.d.ts +2 -4
  44. package/dist-types/ts3.4/commands/DescribeTemplatePermissionsCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/ListSelfUpgradesCommand.d.ts +50 -0
  46. package/dist-types/ts3.4/commands/UpdateSelfUpgradeCommand.d.ts +51 -0
  47. package/dist-types/ts3.4/commands/UpdateSelfUpgradeConfigurationCommand.d.ts +51 -0
  48. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  49. package/dist-types/ts3.4/models/enums.d.ts +22 -0
  50. package/dist-types/ts3.4/models/errors.d.ts +9 -0
  51. package/dist-types/ts3.4/models/models_2.d.ts +1 -0
  52. package/dist-types/ts3.4/models/models_3.d.ts +13 -21
  53. package/dist-types/ts3.4/models/models_4.d.ts +68 -0
  54. package/dist-types/ts3.4/pagination/index.d.ts +6 -6
  55. package/dist-types/ts3.4/schemas/schemas_0.d.ts +15 -0
  56. package/package.json +2 -2
@@ -24,8 +24,7 @@ const getRuntimeConfig = (config) => {
24
24
  defaultsMode,
25
25
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
26
26
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
27
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
28
- (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
27
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
29
28
  maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
30
29
  region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
31
30
  requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -34,11 +34,9 @@ const getRuntimeConfig = (config) => {
34
34
  authSchemePreference: config?.authSchemePreference ?? (0, node_config_provider_1.loadConfig)(core_1.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
35
35
  bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
36
36
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credential_provider_node_1.defaultProvider,
37
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
38
- (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
37
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
39
38
  maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
40
- region: config?.region ??
41
- (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
39
+ region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, { ...config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
42
40
  requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
43
41
  retryMode: config?.retryMode ??
44
42
  (0, node_config_provider_1.loadConfig)({
@@ -101,6 +101,7 @@ import { DescribeQPersonalizationConfigurationCommand, } from "./commands/Descri
101
101
  import { DescribeQuickSightQSearchConfigurationCommand, } from "./commands/DescribeQuickSightQSearchConfigurationCommand";
102
102
  import { DescribeRefreshScheduleCommand, } from "./commands/DescribeRefreshScheduleCommand";
103
103
  import { DescribeRoleCustomPermissionCommand, } from "./commands/DescribeRoleCustomPermissionCommand";
104
+ import { DescribeSelfUpgradeConfigurationCommand, } from "./commands/DescribeSelfUpgradeConfigurationCommand";
104
105
  import { DescribeTemplateAliasCommand, } from "./commands/DescribeTemplateAliasCommand";
105
106
  import { DescribeTemplateCommand, } from "./commands/DescribeTemplateCommand";
106
107
  import { DescribeTemplateDefinitionCommand, } from "./commands/DescribeTemplateDefinitionCommand";
@@ -145,6 +146,7 @@ import { ListIngestionsCommand, } from "./commands/ListIngestionsCommand";
145
146
  import { ListNamespacesCommand, } from "./commands/ListNamespacesCommand";
146
147
  import { ListRefreshSchedulesCommand, } from "./commands/ListRefreshSchedulesCommand";
147
148
  import { ListRoleMembershipsCommand, } from "./commands/ListRoleMembershipsCommand";
149
+ import { ListSelfUpgradesCommand, } from "./commands/ListSelfUpgradesCommand";
148
150
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
149
151
  import { ListTemplateAliasesCommand, } from "./commands/ListTemplateAliasesCommand";
150
152
  import { ListTemplatesCommand, } from "./commands/ListTemplatesCommand";
@@ -212,6 +214,8 @@ import { UpdateQPersonalizationConfigurationCommand, } from "./commands/UpdateQP
212
214
  import { UpdateQuickSightQSearchConfigurationCommand, } from "./commands/UpdateQuickSightQSearchConfigurationCommand";
213
215
  import { UpdateRefreshScheduleCommand, } from "./commands/UpdateRefreshScheduleCommand";
214
216
  import { UpdateRoleCustomPermissionCommand, } from "./commands/UpdateRoleCustomPermissionCommand";
217
+ import { UpdateSelfUpgradeCommand, } from "./commands/UpdateSelfUpgradeCommand";
218
+ import { UpdateSelfUpgradeConfigurationCommand, } from "./commands/UpdateSelfUpgradeConfigurationCommand";
215
219
  import { UpdateSPICECapacityConfigurationCommand, } from "./commands/UpdateSPICECapacityConfigurationCommand";
216
220
  import { UpdateTemplateAliasCommand, } from "./commands/UpdateTemplateAliasCommand";
217
221
  import { UpdateTemplateCommand, } from "./commands/UpdateTemplateCommand";
@@ -329,6 +333,7 @@ const commands = {
329
333
  DescribeQuickSightQSearchConfigurationCommand,
330
334
  DescribeRefreshScheduleCommand,
331
335
  DescribeRoleCustomPermissionCommand,
336
+ DescribeSelfUpgradeConfigurationCommand,
332
337
  DescribeTemplateCommand,
333
338
  DescribeTemplateAliasCommand,
334
339
  DescribeTemplateDefinitionCommand,
@@ -373,6 +378,7 @@ const commands = {
373
378
  ListNamespacesCommand,
374
379
  ListRefreshSchedulesCommand,
375
380
  ListRoleMembershipsCommand,
381
+ ListSelfUpgradesCommand,
376
382
  ListTagsForResourceCommand,
377
383
  ListTemplateAliasesCommand,
378
384
  ListTemplatesCommand,
@@ -440,6 +446,8 @@ const commands = {
440
446
  UpdateQuickSightQSearchConfigurationCommand,
441
447
  UpdateRefreshScheduleCommand,
442
448
  UpdateRoleCustomPermissionCommand,
449
+ UpdateSelfUpgradeCommand,
450
+ UpdateSelfUpgradeConfigurationCommand,
443
451
  UpdateSPICECapacityConfigurationCommand,
444
452
  UpdateTemplateCommand,
445
453
  UpdateTemplateAliasCommand,
@@ -3,10 +3,9 @@ import { getSmithyContext, normalizeProvider } from "@smithy/util-middleware";
3
3
  export const defaultQuickSightHttpAuthSchemeParametersProvider = async (config, context, input) => {
4
4
  return {
5
5
  operation: getSmithyContext(context).operation,
6
- region: (await normalizeProvider(config.region)()) ||
7
- (() => {
8
- throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
9
- })(),
6
+ region: await normalizeProvider(config.region)() || (() => {
7
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
8
+ })(),
10
9
  };
11
10
  };
12
11
  function createAwsAuthSigv4HttpAuthOption(authParameters) {
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { DescribeSelfUpgradeConfiguration$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class DescribeSelfUpgradeConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("QuickSight_20180401", "DescribeSelfUpgradeConfiguration", {})
13
+ .n("QuickSightClient", "DescribeSelfUpgradeConfigurationCommand")
14
+ .sc(DescribeSelfUpgradeConfiguration$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListSelfUpgrades$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListSelfUpgradesCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("QuickSight_20180401", "ListSelfUpgrades", {})
13
+ .n("QuickSightClient", "ListSelfUpgradesCommand")
14
+ .sc(ListSelfUpgrades$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateSelfUpgrade$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateSelfUpgradeCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("QuickSight_20180401", "UpdateSelfUpgrade", {})
13
+ .n("QuickSightClient", "UpdateSelfUpgradeCommand")
14
+ .sc(UpdateSelfUpgrade$)
15
+ .build() {
16
+ }
@@ -0,0 +1,16 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { UpdateSelfUpgradeConfiguration$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateSelfUpgradeConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("QuickSight_20180401", "UpdateSelfUpgradeConfiguration", {})
13
+ .n("QuickSightClient", "UpdateSelfUpgradeConfigurationCommand")
14
+ .sc(UpdateSelfUpgradeConfiguration$)
15
+ .build() {
16
+ }
@@ -100,6 +100,7 @@ export * from "./DescribeQPersonalizationConfigurationCommand";
100
100
  export * from "./DescribeQuickSightQSearchConfigurationCommand";
101
101
  export * from "./DescribeRefreshScheduleCommand";
102
102
  export * from "./DescribeRoleCustomPermissionCommand";
103
+ export * from "./DescribeSelfUpgradeConfigurationCommand";
103
104
  export * from "./DescribeTemplateAliasCommand";
104
105
  export * from "./DescribeTemplateCommand";
105
106
  export * from "./DescribeTemplateDefinitionCommand";
@@ -144,6 +145,7 @@ export * from "./ListIngestionsCommand";
144
145
  export * from "./ListNamespacesCommand";
145
146
  export * from "./ListRefreshSchedulesCommand";
146
147
  export * from "./ListRoleMembershipsCommand";
148
+ export * from "./ListSelfUpgradesCommand";
147
149
  export * from "./ListTagsForResourceCommand";
148
150
  export * from "./ListTemplateAliasesCommand";
149
151
  export * from "./ListTemplateVersionsCommand";
@@ -212,6 +214,8 @@ export * from "./UpdateQuickSightQSearchConfigurationCommand";
212
214
  export * from "./UpdateRefreshScheduleCommand";
213
215
  export * from "./UpdateRoleCustomPermissionCommand";
214
216
  export * from "./UpdateSPICECapacityConfigurationCommand";
217
+ export * from "./UpdateSelfUpgradeCommand";
218
+ export * from "./UpdateSelfUpgradeConfigurationCommand";
215
219
  export * from "./UpdateTemplateAliasCommand";
216
220
  export * from "./UpdateTemplateCommand";
217
221
  export * from "./UpdateTemplatePermissionsCommand";
@@ -1539,6 +1539,10 @@ export const QSearchStatus = {
1539
1539
  DISABLED: "DISABLED",
1540
1540
  ENABLED: "ENABLED",
1541
1541
  };
1542
+ export const SelfUpgradeStatus = {
1543
+ ADMIN_APPROVAL: "ADMIN_APPROVAL",
1544
+ AUTO_APPROVAL: "AUTO_APPROVAL",
1545
+ };
1542
1546
  export const TemplateErrorType = {
1543
1547
  ACCESS_DENIED: "ACCESS_DENIED",
1544
1548
  DATA_SET_NOT_FOUND: "DATA_SET_NOT_FOUND",
@@ -1632,6 +1636,13 @@ export const IncludeQuickSightQIndex = {
1632
1636
  EXCLUDE: "EXCLUDE",
1633
1637
  INCLUDE: "INCLUDE",
1634
1638
  };
1639
+ export const SelfUpgradeRequestStatus = {
1640
+ APPROVED: "APPROVED",
1641
+ DENIED: "DENIED",
1642
+ PENDING: "PENDING",
1643
+ UPDATE_FAILED: "UPDATE_FAILED",
1644
+ VERIFY_FAILED: "VERIFY_FAILED",
1645
+ };
1635
1646
  export const QAResultType = {
1636
1647
  DASHBOARD_VISUAL: "DASHBOARD_VISUAL",
1637
1648
  GENERATED_ANSWER: "GENERATED_ANSWER",
@@ -1658,3 +1669,8 @@ export const TopicFilterOperator = {
1658
1669
  StringEquals: "StringEquals",
1659
1670
  StringLike: "StringLike",
1660
1671
  };
1672
+ export const SelfUpgradeAdminAction = {
1673
+ APPROVE: "APPROVE",
1674
+ DENY: "DENY",
1675
+ VERIFY: "VERIFY",
1676
+ };
@@ -277,6 +277,22 @@ export class InvalidNextTokenException extends __BaseException {
277
277
  this.RequestId = opts.RequestId;
278
278
  }
279
279
  }
280
+ export class InvalidParameterException extends __BaseException {
281
+ name = "InvalidParameterException";
282
+ $fault = "client";
283
+ Message;
284
+ RequestId;
285
+ constructor(opts) {
286
+ super({
287
+ name: "InvalidParameterException",
288
+ $fault: "client",
289
+ ...opts,
290
+ });
291
+ Object.setPrototypeOf(this, InvalidParameterException.prototype);
292
+ this.Message = opts.Message;
293
+ this.RequestId = opts.RequestId;
294
+ }
295
+ }
280
296
  export class DomainNotWhitelistedException extends __BaseException {
281
297
  name = "DomainNotWhitelistedException";
282
298
  $fault = "client";
@@ -1,32 +1,32 @@
1
+ export * from "./Interfaces";
1
2
  export * from "./DescribeFolderPermissionsPaginator";
2
3
  export * from "./DescribeFolderResolvedPermissionsPaginator";
3
- export * from "./Interfaces";
4
4
  export * from "./ListActionConnectorsPaginator";
5
5
  export * from "./ListAnalysesPaginator";
6
6
  export * from "./ListAssetBundleExportJobsPaginator";
7
7
  export * from "./ListAssetBundleImportJobsPaginator";
8
8
  export * from "./ListBrandsPaginator";
9
9
  export * from "./ListCustomPermissionsPaginator";
10
- export * from "./ListDashboardVersionsPaginator";
11
10
  export * from "./ListDashboardsPaginator";
11
+ export * from "./ListDashboardVersionsPaginator";
12
12
  export * from "./ListDataSetsPaginator";
13
13
  export * from "./ListDataSourcesPaginator";
14
14
  export * from "./ListFlowsPaginator";
15
15
  export * from "./ListFolderMembersPaginator";
16
- export * from "./ListFoldersForResourcePaginator";
17
16
  export * from "./ListFoldersPaginator";
17
+ export * from "./ListFoldersForResourcePaginator";
18
18
  export * from "./ListGroupMembershipsPaginator";
19
19
  export * from "./ListGroupsPaginator";
20
- export * from "./ListIAMPolicyAssignmentsForUserPaginator";
21
20
  export * from "./ListIAMPolicyAssignmentsPaginator";
21
+ export * from "./ListIAMPolicyAssignmentsForUserPaginator";
22
22
  export * from "./ListIngestionsPaginator";
23
23
  export * from "./ListNamespacesPaginator";
24
24
  export * from "./ListRoleMembershipsPaginator";
25
25
  export * from "./ListTemplateAliasesPaginator";
26
- export * from "./ListTemplateVersionsPaginator";
27
26
  export * from "./ListTemplatesPaginator";
28
- export * from "./ListThemeVersionsPaginator";
27
+ export * from "./ListTemplateVersionsPaginator";
29
28
  export * from "./ListThemesPaginator";
29
+ export * from "./ListThemeVersionsPaginator";
30
30
  export * from "./ListTopicsPaginator";
31
31
  export * from "./ListUserGroupsPaginator";
32
32
  export * from "./ListUsersPaginator";
@@ -20,8 +20,7 @@ export const getRuntimeConfig = (config) => {
20
20
  defaultsMode,
21
21
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
22
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
24
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
25
  region: config?.region ?? invalidProvider("Region is missing"),
27
26
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -1,7 +1,7 @@
1
1
  import packageInfo from "../package.json";
2
- import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
2
+ import { emitWarningIfUnsupportedVersion as awsCheckVersion, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core";
3
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
4
- import { NODE_APP_ID_CONFIG_OPTIONS, createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-node";
4
+ import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
5
5
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
6
6
  import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
@@ -30,11 +30,9 @@ export const getRuntimeConfig = (config) => {
30
30
  authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
31
31
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
32
32
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
33
- defaultUserAgentProvider: config?.defaultUserAgentProvider ??
34
- createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
33
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
35
34
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
36
- region: config?.region ??
37
- loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
35
+ region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
38
36
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
39
37
  retryMode: config?.retryMode ??
40
38
  loadNodeConfig({