@aws-sdk/client-compute-optimizer-automation 3.938.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 (173) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +392 -0
  3. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  4. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  5. package/dist-cjs/endpoint/ruleset.js +7 -0
  6. package/dist-cjs/index.js +1668 -0
  7. package/dist-cjs/runtimeConfig.browser.js +39 -0
  8. package/dist-cjs/runtimeConfig.js +56 -0
  9. package/dist-cjs/runtimeConfig.native.js +15 -0
  10. package/dist-cjs/runtimeConfig.shared.js +41 -0
  11. package/dist-es/ComputeOptimizerAutomation.js +53 -0
  12. package/dist-es/ComputeOptimizerAutomationClient.js +50 -0
  13. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  14. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  15. package/dist-es/commands/AssociateAccountsCommand.js +16 -0
  16. package/dist-es/commands/CreateAutomationRuleCommand.js +16 -0
  17. package/dist-es/commands/DeleteAutomationRuleCommand.js +16 -0
  18. package/dist-es/commands/DisassociateAccountsCommand.js +16 -0
  19. package/dist-es/commands/GetAutomationEventCommand.js +16 -0
  20. package/dist-es/commands/GetAutomationRuleCommand.js +16 -0
  21. package/dist-es/commands/GetEnrollmentConfigurationCommand.js +16 -0
  22. package/dist-es/commands/ListAccountsCommand.js +16 -0
  23. package/dist-es/commands/ListAutomationEventStepsCommand.js +16 -0
  24. package/dist-es/commands/ListAutomationEventSummariesCommand.js +16 -0
  25. package/dist-es/commands/ListAutomationEventsCommand.js +16 -0
  26. package/dist-es/commands/ListAutomationRulePreviewCommand.js +16 -0
  27. package/dist-es/commands/ListAutomationRulePreviewSummariesCommand.js +16 -0
  28. package/dist-es/commands/ListAutomationRulesCommand.js +16 -0
  29. package/dist-es/commands/ListRecommendedActionSummariesCommand.js +16 -0
  30. package/dist-es/commands/ListRecommendedActionsCommand.js +16 -0
  31. package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
  32. package/dist-es/commands/RollbackAutomationEventCommand.js +16 -0
  33. package/dist-es/commands/StartAutomationEventCommand.js +16 -0
  34. package/dist-es/commands/TagResourceCommand.js +16 -0
  35. package/dist-es/commands/UntagResourceCommand.js +16 -0
  36. package/dist-es/commands/UpdateAutomationRuleCommand.js +16 -0
  37. package/dist-es/commands/UpdateEnrollmentConfigurationCommand.js +16 -0
  38. package/dist-es/commands/index.js +23 -0
  39. package/dist-es/endpoint/EndpointParameters.js +13 -0
  40. package/dist-es/endpoint/endpointResolver.js +14 -0
  41. package/dist-es/endpoint/ruleset.js +4 -0
  42. package/dist-es/extensionConfiguration.js +1 -0
  43. package/dist-es/index.js +7 -0
  44. package/dist-es/models/ComputeOptimizerAutomationServiceException.js +8 -0
  45. package/dist-es/models/enums.js +74 -0
  46. package/dist-es/models/errors.js +145 -0
  47. package/dist-es/models/models_0.js +28 -0
  48. package/dist-es/pagination/Interfaces.js +1 -0
  49. package/dist-es/pagination/ListAccountsPaginator.js +4 -0
  50. package/dist-es/pagination/ListAutomationEventStepsPaginator.js +4 -0
  51. package/dist-es/pagination/ListAutomationEventSummariesPaginator.js +4 -0
  52. package/dist-es/pagination/ListAutomationEventsPaginator.js +4 -0
  53. package/dist-es/pagination/ListAutomationRulePreviewPaginator.js +4 -0
  54. package/dist-es/pagination/ListAutomationRulePreviewSummariesPaginator.js +4 -0
  55. package/dist-es/pagination/ListAutomationRulesPaginator.js +4 -0
  56. package/dist-es/pagination/ListRecommendedActionSummariesPaginator.js +4 -0
  57. package/dist-es/pagination/ListRecommendedActionsPaginator.js +4 -0
  58. package/dist-es/pagination/index.js +10 -0
  59. package/dist-es/runtimeConfig.browser.js +34 -0
  60. package/dist-es/runtimeConfig.js +51 -0
  61. package/dist-es/runtimeConfig.native.js +11 -0
  62. package/dist-es/runtimeConfig.shared.js +37 -0
  63. package/dist-es/runtimeExtensions.js +9 -0
  64. package/dist-es/schemas/schemas_0.js +950 -0
  65. package/dist-types/ComputeOptimizerAutomation.d.ts +178 -0
  66. package/dist-types/ComputeOptimizerAutomationClient.d.ts +219 -0
  67. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  68. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  69. package/dist-types/commands/AssociateAccountsCommand.d.ts +112 -0
  70. package/dist-types/commands/CreateAutomationRuleCommand.d.ts +294 -0
  71. package/dist-types/commands/DeleteAutomationRuleCommand.d.ts +104 -0
  72. package/dist-types/commands/DisassociateAccountsCommand.d.ts +112 -0
  73. package/dist-types/commands/GetAutomationEventCommand.d.ts +117 -0
  74. package/dist-types/commands/GetAutomationRuleCommand.d.ts +195 -0
  75. package/dist-types/commands/GetEnrollmentConfigurationCommand.d.ts +99 -0
  76. package/dist-types/commands/ListAccountsCommand.d.ts +108 -0
  77. package/dist-types/commands/ListAutomationEventStepsCommand.d.ts +117 -0
  78. package/dist-types/commands/ListAutomationEventSummariesCommand.d.ts +130 -0
  79. package/dist-types/commands/ListAutomationEventsCommand.d.ts +130 -0
  80. package/dist-types/commands/ListAutomationRulePreviewCommand.d.ts +219 -0
  81. package/dist-types/commands/ListAutomationRulePreviewSummariesCommand.d.ts +186 -0
  82. package/dist-types/commands/ListAutomationRulesCommand.d.ts +133 -0
  83. package/dist-types/commands/ListRecommendedActionSummariesCommand.d.ts +118 -0
  84. package/dist-types/commands/ListRecommendedActionsCommand.d.ts +151 -0
  85. package/dist-types/commands/ListTagsForResourceCommand.d.ts +103 -0
  86. package/dist-types/commands/RollbackAutomationEventCommand.d.ts +106 -0
  87. package/dist-types/commands/StartAutomationEventCommand.d.ts +110 -0
  88. package/dist-types/commands/TagResourceCommand.d.ts +110 -0
  89. package/dist-types/commands/UntagResourceCommand.d.ts +107 -0
  90. package/dist-types/commands/UpdateAutomationRuleCommand.d.ts +281 -0
  91. package/dist-types/commands/UpdateEnrollmentConfigurationCommand.d.ts +110 -0
  92. package/dist-types/commands/index.d.ts +23 -0
  93. package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
  94. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  95. package/dist-types/endpoint/ruleset.d.ts +2 -0
  96. package/dist-types/extensionConfiguration.d.ts +9 -0
  97. package/dist-types/index.d.ts +16 -0
  98. package/dist-types/models/ComputeOptimizerAutomationServiceException.d.ts +14 -0
  99. package/dist-types/models/enums.d.ts +178 -0
  100. package/dist-types/models/errors.d.ts +146 -0
  101. package/dist-types/models/models_0.d.ts +2028 -0
  102. package/dist-types/pagination/Interfaces.d.ts +8 -0
  103. package/dist-types/pagination/ListAccountsPaginator.d.ts +7 -0
  104. package/dist-types/pagination/ListAutomationEventStepsPaginator.d.ts +7 -0
  105. package/dist-types/pagination/ListAutomationEventSummariesPaginator.d.ts +7 -0
  106. package/dist-types/pagination/ListAutomationEventsPaginator.d.ts +7 -0
  107. package/dist-types/pagination/ListAutomationRulePreviewPaginator.d.ts +7 -0
  108. package/dist-types/pagination/ListAutomationRulePreviewSummariesPaginator.d.ts +7 -0
  109. package/dist-types/pagination/ListAutomationRulesPaginator.d.ts +7 -0
  110. package/dist-types/pagination/ListRecommendedActionSummariesPaginator.d.ts +7 -0
  111. package/dist-types/pagination/ListRecommendedActionsPaginator.d.ts +7 -0
  112. package/dist-types/pagination/index.d.ts +10 -0
  113. package/dist-types/runtimeConfig.browser.d.ts +51 -0
  114. package/dist-types/runtimeConfig.d.ts +51 -0
  115. package/dist-types/runtimeConfig.native.d.ts +50 -0
  116. package/dist-types/runtimeConfig.shared.d.ts +22 -0
  117. package/dist-types/runtimeExtensions.d.ts +17 -0
  118. package/dist-types/schemas/schemas_0.d.ts +141 -0
  119. package/dist-types/ts3.4/ComputeOptimizerAutomation.d.ts +411 -0
  120. package/dist-types/ts3.4/ComputeOptimizerAutomationClient.d.ts +264 -0
  121. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  122. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  123. package/dist-types/ts3.4/commands/AssociateAccountsCommand.d.ts +51 -0
  124. package/dist-types/ts3.4/commands/CreateAutomationRuleCommand.d.ts +51 -0
  125. package/dist-types/ts3.4/commands/DeleteAutomationRuleCommand.d.ts +51 -0
  126. package/dist-types/ts3.4/commands/DisassociateAccountsCommand.d.ts +51 -0
  127. package/dist-types/ts3.4/commands/GetAutomationEventCommand.d.ts +51 -0
  128. package/dist-types/ts3.4/commands/GetAutomationRuleCommand.d.ts +51 -0
  129. package/dist-types/ts3.4/commands/GetEnrollmentConfigurationCommand.d.ts +51 -0
  130. package/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +47 -0
  131. package/dist-types/ts3.4/commands/ListAutomationEventStepsCommand.d.ts +51 -0
  132. package/dist-types/ts3.4/commands/ListAutomationEventSummariesCommand.d.ts +51 -0
  133. package/dist-types/ts3.4/commands/ListAutomationEventsCommand.d.ts +51 -0
  134. package/dist-types/ts3.4/commands/ListAutomationRulePreviewCommand.d.ts +51 -0
  135. package/dist-types/ts3.4/commands/ListAutomationRulePreviewSummariesCommand.d.ts +51 -0
  136. package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +51 -0
  137. package/dist-types/ts3.4/commands/ListRecommendedActionSummariesCommand.d.ts +51 -0
  138. package/dist-types/ts3.4/commands/ListRecommendedActionsCommand.d.ts +51 -0
  139. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  140. package/dist-types/ts3.4/commands/RollbackAutomationEventCommand.d.ts +51 -0
  141. package/dist-types/ts3.4/commands/StartAutomationEventCommand.d.ts +51 -0
  142. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  143. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  144. package/dist-types/ts3.4/commands/UpdateAutomationRuleCommand.d.ts +51 -0
  145. package/dist-types/ts3.4/commands/UpdateEnrollmentConfigurationCommand.d.ts +51 -0
  146. package/dist-types/ts3.4/commands/index.d.ts +23 -0
  147. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
  148. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  149. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  150. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  151. package/dist-types/ts3.4/index.d.ts +11 -0
  152. package/dist-types/ts3.4/models/ComputeOptimizerAutomationServiceException.d.ts +9 -0
  153. package/dist-types/ts3.4/models/enums.d.ts +93 -0
  154. package/dist-types/ts3.4/models/errors.d.ts +87 -0
  155. package/dist-types/ts3.4/models/models_0.d.ts +520 -0
  156. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  157. package/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +11 -0
  158. package/dist-types/ts3.4/pagination/ListAutomationEventStepsPaginator.d.ts +11 -0
  159. package/dist-types/ts3.4/pagination/ListAutomationEventSummariesPaginator.d.ts +11 -0
  160. package/dist-types/ts3.4/pagination/ListAutomationEventsPaginator.d.ts +11 -0
  161. package/dist-types/ts3.4/pagination/ListAutomationRulePreviewPaginator.d.ts +11 -0
  162. package/dist-types/ts3.4/pagination/ListAutomationRulePreviewSummariesPaginator.d.ts +11 -0
  163. package/dist-types/ts3.4/pagination/ListAutomationRulesPaginator.d.ts +11 -0
  164. package/dist-types/ts3.4/pagination/ListRecommendedActionSummariesPaginator.d.ts +11 -0
  165. package/dist-types/ts3.4/pagination/ListRecommendedActionsPaginator.d.ts +11 -0
  166. package/dist-types/ts3.4/pagination/index.d.ts +10 -0
  167. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +98 -0
  168. package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
  169. package/dist-types/ts3.4/runtimeConfig.native.d.ts +102 -0
  170. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
  171. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  172. package/dist-types/ts3.4/schemas/schemas_0.d.ts +146 -0
  173. package/package.json +99 -0
@@ -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 { RollbackAutomationEvent } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class RollbackAutomationEventCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ComputeOptimizerAutomationService", "RollbackAutomationEvent", {})
13
+ .n("ComputeOptimizerAutomationClient", "RollbackAutomationEventCommand")
14
+ .sc(RollbackAutomationEvent)
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 { StartAutomationEvent } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class StartAutomationEventCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ComputeOptimizerAutomationService", "StartAutomationEvent", {})
13
+ .n("ComputeOptimizerAutomationClient", "StartAutomationEventCommand")
14
+ .sc(StartAutomationEvent)
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 { TagResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class TagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ComputeOptimizerAutomationService", "TagResource", {})
13
+ .n("ComputeOptimizerAutomationClient", "TagResourceCommand")
14
+ .sc(TagResource)
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 { UntagResource } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UntagResourceCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ComputeOptimizerAutomationService", "UntagResource", {})
13
+ .n("ComputeOptimizerAutomationClient", "UntagResourceCommand")
14
+ .sc(UntagResource)
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 { UpdateAutomationRule } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateAutomationRuleCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ComputeOptimizerAutomationService", "UpdateAutomationRule", {})
13
+ .n("ComputeOptimizerAutomationClient", "UpdateAutomationRuleCommand")
14
+ .sc(UpdateAutomationRule)
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 { UpdateEnrollmentConfiguration } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class UpdateEnrollmentConfigurationCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("ComputeOptimizerAutomationService", "UpdateEnrollmentConfiguration", {})
13
+ .n("ComputeOptimizerAutomationClient", "UpdateEnrollmentConfigurationCommand")
14
+ .sc(UpdateEnrollmentConfiguration)
15
+ .build() {
16
+ }
@@ -0,0 +1,23 @@
1
+ export * from "./AssociateAccountsCommand";
2
+ export * from "./CreateAutomationRuleCommand";
3
+ export * from "./DeleteAutomationRuleCommand";
4
+ export * from "./DisassociateAccountsCommand";
5
+ export * from "./GetAutomationEventCommand";
6
+ export * from "./GetAutomationRuleCommand";
7
+ export * from "./GetEnrollmentConfigurationCommand";
8
+ export * from "./ListAccountsCommand";
9
+ export * from "./ListAutomationEventStepsCommand";
10
+ export * from "./ListAutomationEventSummariesCommand";
11
+ export * from "./ListAutomationEventsCommand";
12
+ export * from "./ListAutomationRulePreviewCommand";
13
+ export * from "./ListAutomationRulePreviewSummariesCommand";
14
+ export * from "./ListAutomationRulesCommand";
15
+ export * from "./ListRecommendedActionSummariesCommand";
16
+ export * from "./ListRecommendedActionsCommand";
17
+ export * from "./ListTagsForResourceCommand";
18
+ export * from "./RollbackAutomationEventCommand";
19
+ export * from "./StartAutomationEventCommand";
20
+ export * from "./TagResourceCommand";
21
+ export * from "./UntagResourceCommand";
22
+ export * from "./UpdateAutomationRuleCommand";
23
+ export * from "./UpdateEnrollmentConfigurationCommand";
@@ -0,0 +1,13 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return Object.assign(options, {
3
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
4
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
5
+ defaultSigningName: "aco-automation",
6
+ });
7
+ };
8
+ export const commonParams = {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
@@ -0,0 +1,14 @@
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, EndpointCache, resolveEndpoint } from "@smithy/util-endpoints";
3
+ import { ruleSet } from "./ruleset";
4
+ const cache = new EndpointCache({
5
+ size: 50,
6
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
7
+ });
8
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
9
+ return cache.get(endpointParams, () => resolveEndpoint(ruleSet, {
10
+ endpointParams: endpointParams,
11
+ logger: context.logger,
12
+ }));
13
+ };
14
+ customEndpointFunctions.aws = awsEndpointFunctions;
@@ -0,0 +1,4 @@
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = { [s]: false, "type": "string" }, i = { [s]: true, "default": false, "type": "boolean" }, j = { [v]: "Endpoint" }, k = { [t]: c, [u]: [{ [v]: "UseFIPS" }, true] }, l = { [t]: c, [u]: [{ [v]: "UseDualStack" }, true] }, m = {}, n = { [t]: "getAttr", [u]: [{ [v]: g }, "supportsFIPS"] }, o = { [t]: c, [u]: [true, { [t]: "getAttr", [u]: [{ [v]: g }, "supportsDualStack"] }] }, p = [k], q = [l], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [t]: b, [u]: [j] }], rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: j, properties: m, headers: m }, type: e }], type: f }], type: f }, { rules: [{ conditions: [{ [t]: b, [u]: r }], rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: g }], rules: [{ conditions: [k, l], rules: [{ conditions: [{ [t]: c, [u]: [a, n] }, o], rules: [{ rules: [{ endpoint: { url: "https://aco-automation-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: p, rules: [{ conditions: [{ [t]: c, [u]: [n, a] }], rules: [{ rules: [{ endpoint: { url: "https://aco-automation-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: q, rules: [{ conditions: [o], rules: [{ rules: [{ endpoint: { url: "https://aco-automation.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { rules: [{ endpoint: { url: "https://aco-automation.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: e }], type: f }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }], type: f }] };
4
+ export const ruleSet = _data;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export * from "./ComputeOptimizerAutomationClient";
2
+ export * from "./ComputeOptimizerAutomation";
3
+ export * from "./commands";
4
+ export * from "./pagination";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
7
+ export { ComputeOptimizerAutomationServiceException } from "./models/ComputeOptimizerAutomationServiceException";
@@ -0,0 +1,8 @@
1
+ import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
2
+ export { __ServiceException };
3
+ export class ComputeOptimizerAutomationServiceException extends __ServiceException {
4
+ constructor(options) {
5
+ super(options);
6
+ Object.setPrototypeOf(this, ComputeOptimizerAutomationServiceException.prototype);
7
+ }
8
+ }
@@ -0,0 +1,74 @@
1
+ export const OrganizationRuleMode = {
2
+ ANY_ALLOWED: "AnyAllowed",
3
+ NONE_ALLOWED: "NoneAllowed",
4
+ };
5
+ export const EnrollmentStatus = {
6
+ ACTIVE: "Active",
7
+ FAILED: "Failed",
8
+ INACTIVE: "Inactive",
9
+ PENDING: "Pending",
10
+ };
11
+ export const SavingsEstimationMode = {
12
+ AFTER_DISCOUNT: "AfterDiscount",
13
+ BEFORE_DISCOUNT: "BeforeDiscount",
14
+ };
15
+ export const EventStatus = {
16
+ CANCELLED: "Cancelled",
17
+ COMPLETE: "Complete",
18
+ FAILED: "Failed",
19
+ IN_PROGRESS: "InProgress",
20
+ READY: "Ready",
21
+ ROLLBACK_COMPLETE: "RollbackComplete",
22
+ ROLLBACK_FAILED: "RollbackFailed",
23
+ ROLLBACK_IN_PROGRESS: "RollbackInProgress",
24
+ ROLLBACK_READY: "RollbackReady",
25
+ };
26
+ export const EventType = {
27
+ SNAPSHOT_AND_DELETE_UNATTACHED_EBS_VOLUME: "SnapshotAndDeleteUnattachedEbsVolume",
28
+ UPGRADE_EBS_VOLUME_TYPE: "UpgradeEbsVolumeType",
29
+ };
30
+ export const ResourceType = {
31
+ EBS_VOLUME: "EbsVolume",
32
+ };
33
+ export const StepStatus = {
34
+ COMPLETE: "Complete",
35
+ FAILED: "Failed",
36
+ IN_PROGRESS: "InProgress",
37
+ READY: "Ready",
38
+ };
39
+ export const StepType = {
40
+ CREATE_EBS_SNAPSHOT: "CreateEbsSnapshot",
41
+ CREATE_EBS_VOLUME: "CreateEbsVolume",
42
+ DELETE_EBS_VOLUME: "DeleteEbsVolume",
43
+ MODIFY_EBS_VOLUME: "ModifyEbsVolume",
44
+ };
45
+ export const RuleApplyOrder = {
46
+ AFTER_ACCOUNT_RULES: "AfterAccountRules",
47
+ BEFORE_ACCOUNT_RULES: "BeforeAccountRules",
48
+ };
49
+ export const RecommendedActionType = {
50
+ SNAPSHOT_AND_DELETE_UNATTACHED_EBS_VOLUME: "SnapshotAndDeleteUnattachedEbsVolume",
51
+ UPGRADE_EBS_VOLUME_TYPE: "UpgradeEbsVolumeType",
52
+ };
53
+ export const RuleType = {
54
+ ACCOUNT_RULE: "AccountRule",
55
+ ORGANIZATIONAL_RULE: "OrganizationRule",
56
+ };
57
+ export const RuleStatus = {
58
+ ACTIVE: "Active",
59
+ INACTIVE: "Inactive",
60
+ };
61
+ export const ComparisonOperator = {
62
+ NUMERIC_EQUALS: "NumericEquals",
63
+ NUMERIC_GREATER_THAN: "NumericGreaterThan",
64
+ NUMERIC_GREATER_THAN_EQUALS: "NumericGreaterThanEquals",
65
+ NUMERIC_LESS_THAN: "NumericLessThan",
66
+ NUMERIC_LESS_THAN_EQUALS: "NumericLessThanEquals",
67
+ NUMERIC_NOT_EQUALS: "NumericNotEquals",
68
+ STRING_EQUALS: "StringEquals",
69
+ STRING_EQUALS_IGNORE_CASE: "StringEqualsIgnoreCase",
70
+ STRING_LIKE: "StringLike",
71
+ STRING_NOT_EQUALS: "StringNotEquals",
72
+ STRING_NOT_EQUALS_IGNORE_CASE: "StringNotEqualsIgnoreCase",
73
+ STRING_NOT_LIKE: "StringNotLike",
74
+ };
@@ -0,0 +1,145 @@
1
+ import { ComputeOptimizerAutomationServiceException as __BaseException } from "./ComputeOptimizerAutomationServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class ForbiddenException extends __BaseException {
15
+ name = "ForbiddenException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "ForbiddenException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
24
+ }
25
+ }
26
+ export class IdempotencyTokenInUseException extends __BaseException {
27
+ name = "IdempotencyTokenInUseException";
28
+ $fault = "client";
29
+ constructor(opts) {
30
+ super({
31
+ name: "IdempotencyTokenInUseException",
32
+ $fault: "client",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, IdempotencyTokenInUseException.prototype);
36
+ }
37
+ }
38
+ export class IdempotentParameterMismatchException extends __BaseException {
39
+ name = "IdempotentParameterMismatchException";
40
+ $fault = "client";
41
+ constructor(opts) {
42
+ super({
43
+ name: "IdempotentParameterMismatchException",
44
+ $fault: "client",
45
+ ...opts,
46
+ });
47
+ Object.setPrototypeOf(this, IdempotentParameterMismatchException.prototype);
48
+ }
49
+ }
50
+ export class InternalServerException extends __BaseException {
51
+ name = "InternalServerException";
52
+ $fault = "server";
53
+ constructor(opts) {
54
+ super({
55
+ name: "InternalServerException",
56
+ $fault: "server",
57
+ ...opts,
58
+ });
59
+ Object.setPrototypeOf(this, InternalServerException.prototype);
60
+ }
61
+ }
62
+ export class InvalidParameterValueException extends __BaseException {
63
+ name = "InvalidParameterValueException";
64
+ $fault = "client";
65
+ constructor(opts) {
66
+ super({
67
+ name: "InvalidParameterValueException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ Object.setPrototypeOf(this, InvalidParameterValueException.prototype);
72
+ }
73
+ }
74
+ export class NotManagementAccountException extends __BaseException {
75
+ name = "NotManagementAccountException";
76
+ $fault = "client";
77
+ constructor(opts) {
78
+ super({
79
+ name: "NotManagementAccountException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, NotManagementAccountException.prototype);
84
+ }
85
+ }
86
+ export class OptInRequiredException extends __BaseException {
87
+ name = "OptInRequiredException";
88
+ $fault = "client";
89
+ constructor(opts) {
90
+ super({
91
+ name: "OptInRequiredException",
92
+ $fault: "client",
93
+ ...opts,
94
+ });
95
+ Object.setPrototypeOf(this, OptInRequiredException.prototype);
96
+ }
97
+ }
98
+ export class ServiceUnavailableException extends __BaseException {
99
+ name = "ServiceUnavailableException";
100
+ $fault = "server";
101
+ constructor(opts) {
102
+ super({
103
+ name: "ServiceUnavailableException",
104
+ $fault: "server",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
108
+ }
109
+ }
110
+ export class ThrottlingException extends __BaseException {
111
+ name = "ThrottlingException";
112
+ $fault = "client";
113
+ constructor(opts) {
114
+ super({
115
+ name: "ThrottlingException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
120
+ }
121
+ }
122
+ export class ResourceNotFoundException extends __BaseException {
123
+ name = "ResourceNotFoundException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "ResourceNotFoundException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
132
+ }
133
+ }
134
+ export class ServiceQuotaExceededException extends __BaseException {
135
+ name = "ServiceQuotaExceededException";
136
+ $fault = "client";
137
+ constructor(opts) {
138
+ super({
139
+ name: "ServiceQuotaExceededException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
144
+ }
145
+ }
@@ -0,0 +1,28 @@
1
+ export const AutomationEventFilterName = {
2
+ ACCOUNT_ID: "AccountId",
3
+ EVENT_STATUS: "EventStatus",
4
+ EVENT_TYPE: "EventType",
5
+ RESOURCE_TYPE: "ResourceType",
6
+ };
7
+ export const SummaryDimensionKey = {
8
+ EVENT_STATUS: "EventStatus",
9
+ };
10
+ export const AutomationRuleFilterName = {
11
+ ACCOUNT_ID: "AccountId",
12
+ NAME: "Name",
13
+ ORGANIZATION_CONFIGURATION_RULE_APPLY_ORDER: "OrganizationConfigurationRuleApplyOrder",
14
+ RECOMMENDED_ACTION_TYPE: "RecommendedActionType",
15
+ RULE_TYPE: "RuleType",
16
+ STATUS: "Status",
17
+ };
18
+ export const RecommendedActionFilterName = {
19
+ ACCOUNT_ID: "AccountId",
20
+ CURRENT_RESOURCE_DETAILS_EBS_VOLUME_TYPE: "CurrentResourceDetailsEbsVolumeType",
21
+ LOOK_BACK_PERIOD_IN_DAYS: "LookBackPeriodInDays",
22
+ RECOMMENDED_ACTION_TYPE: "RecommendedActionType",
23
+ RESOURCE_ID: "ResourceId",
24
+ RESOURCE_TAGS_KEY: "ResourceTagsKey",
25
+ RESOURCE_TAGS_VALUE: "ResourceTagsValue",
26
+ RESOURCE_TYPE: "ResourceType",
27
+ RESTART_NEEDED: "RestartNeeded",
28
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAccountsCommand, } from "../commands/ListAccountsCommand";
3
+ import { ComputeOptimizerAutomationClient } from "../ComputeOptimizerAutomationClient";
4
+ export const paginateListAccounts = createPaginator(ComputeOptimizerAutomationClient, ListAccountsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAutomationEventStepsCommand, } from "../commands/ListAutomationEventStepsCommand";
3
+ import { ComputeOptimizerAutomationClient } from "../ComputeOptimizerAutomationClient";
4
+ export const paginateListAutomationEventSteps = createPaginator(ComputeOptimizerAutomationClient, ListAutomationEventStepsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAutomationEventSummariesCommand, } from "../commands/ListAutomationEventSummariesCommand";
3
+ import { ComputeOptimizerAutomationClient } from "../ComputeOptimizerAutomationClient";
4
+ export const paginateListAutomationEventSummaries = createPaginator(ComputeOptimizerAutomationClient, ListAutomationEventSummariesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAutomationEventsCommand, } from "../commands/ListAutomationEventsCommand";
3
+ import { ComputeOptimizerAutomationClient } from "../ComputeOptimizerAutomationClient";
4
+ export const paginateListAutomationEvents = createPaginator(ComputeOptimizerAutomationClient, ListAutomationEventsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAutomationRulePreviewCommand, } from "../commands/ListAutomationRulePreviewCommand";
3
+ import { ComputeOptimizerAutomationClient } from "../ComputeOptimizerAutomationClient";
4
+ export const paginateListAutomationRulePreview = createPaginator(ComputeOptimizerAutomationClient, ListAutomationRulePreviewCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAutomationRulePreviewSummariesCommand, } from "../commands/ListAutomationRulePreviewSummariesCommand";
3
+ import { ComputeOptimizerAutomationClient } from "../ComputeOptimizerAutomationClient";
4
+ export const paginateListAutomationRulePreviewSummaries = createPaginator(ComputeOptimizerAutomationClient, ListAutomationRulePreviewSummariesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAutomationRulesCommand, } from "../commands/ListAutomationRulesCommand";
3
+ import { ComputeOptimizerAutomationClient } from "../ComputeOptimizerAutomationClient";
4
+ export const paginateListAutomationRules = createPaginator(ComputeOptimizerAutomationClient, ListAutomationRulesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListRecommendedActionSummariesCommand, } from "../commands/ListRecommendedActionSummariesCommand";
3
+ import { ComputeOptimizerAutomationClient } from "../ComputeOptimizerAutomationClient";
4
+ export const paginateListRecommendedActionSummaries = createPaginator(ComputeOptimizerAutomationClient, ListRecommendedActionSummariesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListRecommendedActionsCommand, } from "../commands/ListRecommendedActionsCommand";
3
+ import { ComputeOptimizerAutomationClient } from "../ComputeOptimizerAutomationClient";
4
+ export const paginateListRecommendedActions = createPaginator(ComputeOptimizerAutomationClient, ListRecommendedActionsCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,10 @@
1
+ export * from "./Interfaces";
2
+ export * from "./ListAccountsPaginator";
3
+ export * from "./ListAutomationEventStepsPaginator";
4
+ export * from "./ListAutomationEventSummariesPaginator";
5
+ export * from "./ListAutomationEventsPaginator";
6
+ export * from "./ListAutomationRulePreviewPaginator";
7
+ export * from "./ListAutomationRulePreviewSummariesPaginator";
8
+ export * from "./ListAutomationRulesPaginator";
9
+ export * from "./ListRecommendedActionSummariesPaginator";
10
+ export * from "./ListRecommendedActionsPaginator";
@@ -0,0 +1,34 @@
1
+ import packageInfo from "../package.json";
2
+ import { Sha256 } from "@aws-crypto/sha256-browser";
3
+ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
+ import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { calculateBodyLength } from "@smithy/util-body-length-browser";
8
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
+ export const getRuntimeConfig = (config) => {
13
+ const defaultsMode = resolveDefaultsModeConfig(config);
14
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
15
+ const clientSharedValues = getSharedRuntimeConfig(config);
16
+ return {
17
+ ...clientSharedValues,
18
+ ...config,
19
+ runtime: "browser",
20
+ defaultsMode,
21
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
22
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
23
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
24
+ createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
25
+ maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
26
+ region: config?.region ?? invalidProvider("Region is missing"),
27
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
28
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
29
+ sha256: config?.sha256 ?? Sha256,
30
+ streamCollector: config?.streamCollector ?? streamCollector,
31
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
32
+ useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
33
+ };
34
+ };
@@ -0,0 +1,51 @@
1
+ import packageInfo from "../package.json";
2
+ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core";
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";
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
+ import { Hash } from "@smithy/hash-node";
7
+ import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
+ import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { calculateBodyLength } from "@smithy/util-body-length-node";
11
+ import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
+ import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
16
+ export const getRuntimeConfig = (config) => {
17
+ emitWarningIfUnsupportedVersion(process.version);
18
+ const defaultsMode = resolveDefaultsModeConfig(config);
19
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
20
+ const clientSharedValues = getSharedRuntimeConfig(config);
21
+ awsCheckVersion(process.version);
22
+ const loaderConfig = {
23
+ profile: config?.profile,
24
+ logger: clientSharedValues.logger,
25
+ };
26
+ return {
27
+ ...clientSharedValues,
28
+ ...config,
29
+ runtime: "node",
30
+ defaultsMode,
31
+ authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
32
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
33
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
34
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ??
35
+ createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
36
+ maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
37
+ region: config?.region ??
38
+ loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
39
+ requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
40
+ retryMode: config?.retryMode ??
41
+ loadNodeConfig({
42
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
43
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
44
+ }, config),
45
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
46
+ streamCollector: config?.streamCollector ?? streamCollector,
47
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
48
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
49
+ userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
50
+ };
51
+ };
@@ -0,0 +1,11 @@
1
+ import { Sha256 } from "@aws-crypto/sha256-js";
2
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
+ export const getRuntimeConfig = (config) => {
4
+ const browserDefaults = getBrowserRuntimeConfig(config);
5
+ return {
6
+ ...browserDefaults,
7
+ ...config,
8
+ runtime: "react-native",
9
+ sha256: config?.sha256 ?? Sha256,
10
+ };
11
+ };