@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.
- package/LICENSE +201 -0
- package/README.md +392 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/index.js +1668 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +56 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +41 -0
- package/dist-es/ComputeOptimizerAutomation.js +53 -0
- package/dist-es/ComputeOptimizerAutomationClient.js +50 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AssociateAccountsCommand.js +16 -0
- package/dist-es/commands/CreateAutomationRuleCommand.js +16 -0
- package/dist-es/commands/DeleteAutomationRuleCommand.js +16 -0
- package/dist-es/commands/DisassociateAccountsCommand.js +16 -0
- package/dist-es/commands/GetAutomationEventCommand.js +16 -0
- package/dist-es/commands/GetAutomationRuleCommand.js +16 -0
- package/dist-es/commands/GetEnrollmentConfigurationCommand.js +16 -0
- package/dist-es/commands/ListAccountsCommand.js +16 -0
- package/dist-es/commands/ListAutomationEventStepsCommand.js +16 -0
- package/dist-es/commands/ListAutomationEventSummariesCommand.js +16 -0
- package/dist-es/commands/ListAutomationEventsCommand.js +16 -0
- package/dist-es/commands/ListAutomationRulePreviewCommand.js +16 -0
- package/dist-es/commands/ListAutomationRulePreviewSummariesCommand.js +16 -0
- package/dist-es/commands/ListAutomationRulesCommand.js +16 -0
- package/dist-es/commands/ListRecommendedActionSummariesCommand.js +16 -0
- package/dist-es/commands/ListRecommendedActionsCommand.js +16 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +16 -0
- package/dist-es/commands/RollbackAutomationEventCommand.js +16 -0
- package/dist-es/commands/StartAutomationEventCommand.js +16 -0
- package/dist-es/commands/TagResourceCommand.js +16 -0
- package/dist-es/commands/UntagResourceCommand.js +16 -0
- package/dist-es/commands/UpdateAutomationRuleCommand.js +16 -0
- package/dist-es/commands/UpdateEnrollmentConfigurationCommand.js +16 -0
- package/dist-es/commands/index.js +23 -0
- package/dist-es/endpoint/EndpointParameters.js +13 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/ComputeOptimizerAutomationServiceException.js +8 -0
- package/dist-es/models/enums.js +74 -0
- package/dist-es/models/errors.js +145 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAccountsPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationEventStepsPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationEventSummariesPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationEventsPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationRulePreviewPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationRulePreviewSummariesPaginator.js +4 -0
- package/dist-es/pagination/ListAutomationRulesPaginator.js +4 -0
- package/dist-es/pagination/ListRecommendedActionSummariesPaginator.js +4 -0
- package/dist-es/pagination/ListRecommendedActionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +10 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +51 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +37 -0
- package/dist-es/runtimeExtensions.js +9 -0
- package/dist-es/schemas/schemas_0.js +950 -0
- package/dist-types/ComputeOptimizerAutomation.d.ts +178 -0
- package/dist-types/ComputeOptimizerAutomationClient.d.ts +219 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
- package/dist-types/commands/AssociateAccountsCommand.d.ts +112 -0
- package/dist-types/commands/CreateAutomationRuleCommand.d.ts +294 -0
- package/dist-types/commands/DeleteAutomationRuleCommand.d.ts +104 -0
- package/dist-types/commands/DisassociateAccountsCommand.d.ts +112 -0
- package/dist-types/commands/GetAutomationEventCommand.d.ts +117 -0
- package/dist-types/commands/GetAutomationRuleCommand.d.ts +195 -0
- package/dist-types/commands/GetEnrollmentConfigurationCommand.d.ts +99 -0
- package/dist-types/commands/ListAccountsCommand.d.ts +108 -0
- package/dist-types/commands/ListAutomationEventStepsCommand.d.ts +117 -0
- package/dist-types/commands/ListAutomationEventSummariesCommand.d.ts +130 -0
- package/dist-types/commands/ListAutomationEventsCommand.d.ts +130 -0
- package/dist-types/commands/ListAutomationRulePreviewCommand.d.ts +219 -0
- package/dist-types/commands/ListAutomationRulePreviewSummariesCommand.d.ts +186 -0
- package/dist-types/commands/ListAutomationRulesCommand.d.ts +133 -0
- package/dist-types/commands/ListRecommendedActionSummariesCommand.d.ts +118 -0
- package/dist-types/commands/ListRecommendedActionsCommand.d.ts +151 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +103 -0
- package/dist-types/commands/RollbackAutomationEventCommand.d.ts +106 -0
- package/dist-types/commands/StartAutomationEventCommand.d.ts +110 -0
- package/dist-types/commands/TagResourceCommand.d.ts +110 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +107 -0
- package/dist-types/commands/UpdateAutomationRuleCommand.d.ts +281 -0
- package/dist-types/commands/UpdateEnrollmentConfigurationCommand.d.ts +110 -0
- package/dist-types/commands/index.d.ts +23 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +38 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/ComputeOptimizerAutomationServiceException.d.ts +14 -0
- package/dist-types/models/enums.d.ts +178 -0
- package/dist-types/models/errors.d.ts +146 -0
- package/dist-types/models/models_0.d.ts +2028 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListAccountsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationEventStepsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationEventSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationRulePreviewPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationRulePreviewSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListAutomationRulesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRecommendedActionSummariesPaginator.d.ts +7 -0
- package/dist-types/pagination/ListRecommendedActionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +10 -0
- package/dist-types/runtimeConfig.browser.d.ts +51 -0
- package/dist-types/runtimeConfig.d.ts +51 -0
- package/dist-types/runtimeConfig.native.d.ts +50 -0
- package/dist-types/runtimeConfig.shared.d.ts +22 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/schemas/schemas_0.d.ts +141 -0
- package/dist-types/ts3.4/ComputeOptimizerAutomation.d.ts +411 -0
- package/dist-types/ts3.4/ComputeOptimizerAutomationClient.d.ts +264 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
- package/dist-types/ts3.4/commands/AssociateAccountsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/CreateAutomationRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteAutomationRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DisassociateAccountsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomationEventCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetAutomationRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetEnrollmentConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListAutomationEventStepsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationEventSummariesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationEventsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationRulePreviewCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationRulePreviewSummariesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListAutomationRulesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRecommendedActionSummariesCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListRecommendedActionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RollbackAutomationEventCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/StartAutomationEventCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateAutomationRuleCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateEnrollmentConfigurationCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +11 -0
- package/dist-types/ts3.4/models/ComputeOptimizerAutomationServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/enums.d.ts +93 -0
- package/dist-types/ts3.4/models/errors.d.ts +87 -0
- package/dist-types/ts3.4/models/models_0.d.ts +520 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationEventStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationEventSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationRulePreviewPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationRulePreviewSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListAutomationRulesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecommendedActionSummariesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListRecommendedActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +10 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +98 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +102 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +27 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +146 -0
- package/package.json +99 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AwsSdkSigV4Signer } from "@aws-sdk/core";
|
|
2
|
+
import { AwsJson1_0Protocol } from "@aws-sdk/core/protocols";
|
|
3
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
4
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
5
|
+
import { fromBase64, toBase64 } from "@smithy/util-base64";
|
|
6
|
+
import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
|
|
7
|
+
import { defaultComputeOptimizerAutomationHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
8
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
9
|
+
export const getRuntimeConfig = (config) => {
|
|
10
|
+
return {
|
|
11
|
+
apiVersion: "2025-09-22",
|
|
12
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
13
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
14
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
15
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
16
|
+
extensions: config?.extensions ?? [],
|
|
17
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultComputeOptimizerAutomationHttpAuthSchemeProvider,
|
|
18
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
19
|
+
{
|
|
20
|
+
schemeId: "aws.auth#sigv4",
|
|
21
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
22
|
+
signer: new AwsSdkSigV4Signer(),
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
26
|
+
protocol: config?.protocol ??
|
|
27
|
+
new AwsJson1_0Protocol({
|
|
28
|
+
defaultNamespace: "com.amazonaws.computeoptimizerautomation",
|
|
29
|
+
serviceTarget: "ComputeOptimizerAutomationService",
|
|
30
|
+
awsQueryCompatible: false,
|
|
31
|
+
}),
|
|
32
|
+
serviceId: config?.serviceId ?? "Compute Optimizer Automation",
|
|
33
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
34
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
35
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
4
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
7
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
|
+
return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
9
|
+
};
|