@aws-sdk/client-compute-optimizer 3.1044.0 → 3.1046.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/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
- package/dist-cjs/endpoint/bdd.js +2 -2
- package/dist-cjs/endpoint/endpointResolver.js +4 -4
- package/dist-cjs/index.js +72 -73
- package/dist-cjs/models/ComputeOptimizerServiceException.js +3 -3
- package/dist-cjs/runtimeConfig.browser.js +12 -14
- package/dist-cjs/runtimeConfig.js +18 -22
- package/dist-cjs/runtimeConfig.shared.js +9 -10
- package/dist-es/ComputeOptimizer.js +1 -1
- package/dist-es/ComputeOptimizerClient.js +5 -5
- package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
- package/dist-es/commands/DeleteRecommendationPreferencesCommand.js +2 -2
- package/dist-es/commands/DescribeRecommendationExportJobsCommand.js +2 -2
- package/dist-es/commands/ExportAutoScalingGroupRecommendationsCommand.js +2 -2
- package/dist-es/commands/ExportEBSVolumeRecommendationsCommand.js +2 -2
- package/dist-es/commands/ExportEC2InstanceRecommendationsCommand.js +2 -2
- package/dist-es/commands/ExportECSServiceRecommendationsCommand.js +2 -2
- package/dist-es/commands/ExportIdleRecommendationsCommand.js +2 -2
- package/dist-es/commands/ExportLambdaFunctionRecommendationsCommand.js +2 -2
- package/dist-es/commands/ExportLicenseRecommendationsCommand.js +2 -2
- package/dist-es/commands/ExportRDSDatabaseRecommendationsCommand.js +2 -2
- package/dist-es/commands/GetAutoScalingGroupRecommendationsCommand.js +2 -2
- package/dist-es/commands/GetEBSVolumeRecommendationsCommand.js +2 -2
- package/dist-es/commands/GetEC2InstanceRecommendationsCommand.js +2 -2
- package/dist-es/commands/GetEC2RecommendationProjectedMetricsCommand.js +2 -2
- package/dist-es/commands/GetECSServiceRecommendationProjectedMetricsCommand.js +2 -2
- package/dist-es/commands/GetECSServiceRecommendationsCommand.js +2 -2
- package/dist-es/commands/GetEffectiveRecommendationPreferencesCommand.js +2 -2
- package/dist-es/commands/GetEnrollmentStatusCommand.js +2 -2
- package/dist-es/commands/GetEnrollmentStatusesForOrganizationCommand.js +2 -2
- package/dist-es/commands/GetIdleRecommendationsCommand.js +2 -2
- package/dist-es/commands/GetLambdaFunctionRecommendationsCommand.js +2 -2
- package/dist-es/commands/GetLicenseRecommendationsCommand.js +2 -2
- package/dist-es/commands/GetRDSDatabaseRecommendationProjectedMetricsCommand.js +2 -2
- package/dist-es/commands/GetRDSDatabaseRecommendationsCommand.js +2 -2
- package/dist-es/commands/GetRecommendationPreferencesCommand.js +2 -2
- package/dist-es/commands/GetRecommendationSummariesCommand.js +2 -2
- package/dist-es/commands/PutRecommendationPreferencesCommand.js +2 -2
- package/dist-es/commands/UpdateEnrollmentStatusCommand.js +2 -2
- package/dist-es/endpoint/bdd.js +1 -1
- package/dist-es/endpoint/endpointResolver.js +1 -1
- package/dist-es/models/ComputeOptimizerServiceException.js +1 -1
- package/dist-es/runtimeConfig.browser.js +4 -6
- package/dist-es/runtimeConfig.js +4 -8
- package/dist-es/runtimeConfig.shared.js +3 -4
- package/dist-es/runtimeExtensions.js +2 -2
- package/dist-types/ComputeOptimizerClient.d.ts +5 -5
- package/dist-types/commands/DeleteRecommendationPreferencesCommand.d.ts +6 -4
- package/dist-types/commands/DescribeRecommendationExportJobsCommand.d.ts +6 -4
- package/dist-types/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/ExportEBSVolumeRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/ExportEC2InstanceRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/ExportECSServiceRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/ExportIdleRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/ExportLicenseRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/ExportRDSDatabaseRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/GetEBSVolumeRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/GetEC2InstanceRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +6 -4
- package/dist-types/commands/GetECSServiceRecommendationProjectedMetricsCommand.d.ts +6 -4
- package/dist-types/commands/GetECSServiceRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +6 -4
- package/dist-types/commands/GetEnrollmentStatusCommand.d.ts +6 -4
- package/dist-types/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +6 -4
- package/dist-types/commands/GetIdleRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/GetLambdaFunctionRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/GetLicenseRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/GetRDSDatabaseRecommendationProjectedMetricsCommand.d.ts +6 -4
- package/dist-types/commands/GetRDSDatabaseRecommendationsCommand.d.ts +6 -4
- package/dist-types/commands/GetRecommendationPreferencesCommand.d.ts +6 -4
- package/dist-types/commands/GetRecommendationSummariesCommand.d.ts +6 -4
- package/dist-types/commands/PutRecommendationPreferencesCommand.d.ts +6 -4
- package/dist-types/commands/UpdateEnrollmentStatusCommand.d.ts +6 -4
- package/dist-types/endpoint/bdd.d.ts +1 -1
- package/dist-types/extensionConfiguration.d.ts +1 -1
- package/dist-types/models/ComputeOptimizerServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/ComputeOptimizerClient.d.ts +8 -14
- package/dist-types/ts3.4/commands/DeleteRecommendationPreferencesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/DescribeRecommendationExportJobsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ExportAutoScalingGroupRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ExportEBSVolumeRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ExportEC2InstanceRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ExportECSServiceRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ExportIdleRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ExportLambdaFunctionRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ExportLicenseRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/ExportRDSDatabaseRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetAutoScalingGroupRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEBSVolumeRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEC2InstanceRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEC2RecommendationProjectedMetricsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetECSServiceRecommendationProjectedMetricsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetECSServiceRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEffectiveRecommendationPreferencesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEnrollmentStatusCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetEnrollmentStatusesForOrganizationCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetIdleRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetLambdaFunctionRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetLicenseRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetRDSDatabaseRecommendationProjectedMetricsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetRDSDatabaseRecommendationsCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetRecommendationPreferencesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/GetRecommendationSummariesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/PutRecommendationPreferencesCommand.d.ts +6 -4
- package/dist-types/ts3.4/commands/UpdateEnrollmentStatusCommand.d.ts +6 -4
- package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/ComputeOptimizerServiceException.d.ts +1 -1
- package/dist-types/ts3.4/models/errors.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +13 -34
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveHttpAuthSchemeConfig = exports.defaultComputeOptimizerHttpAuthSchemeProvider = exports.defaultComputeOptimizerHttpAuthSchemeParametersProvider = void 0;
|
|
4
4
|
const httpAuthSchemes_1 = require("@aws-sdk/core/httpAuthSchemes");
|
|
5
|
-
const
|
|
5
|
+
const client_1 = require("@smithy/core/client");
|
|
6
6
|
const defaultComputeOptimizerHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
7
7
|
return {
|
|
8
|
-
operation: (0,
|
|
9
|
-
region: await (0,
|
|
8
|
+
operation: (0, client_1.getSmithyContext)(context).operation,
|
|
9
|
+
region: await (0, client_1.normalizeProvider)(config.region)() || (() => {
|
|
10
10
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
11
11
|
})(),
|
|
12
12
|
};
|
|
@@ -40,7 +40,7 @@ exports.defaultComputeOptimizerHttpAuthSchemeProvider = defaultComputeOptimizerH
|
|
|
40
40
|
const resolveHttpAuthSchemeConfig = (config) => {
|
|
41
41
|
const config_0 = (0, httpAuthSchemes_1.resolveAwsSdkSigV4Config)(config);
|
|
42
42
|
return Object.assign(config_0, {
|
|
43
|
-
authSchemePreference: (0,
|
|
43
|
+
authSchemePreference: (0, client_1.normalizeProvider)(config.authSchemePreference ?? []),
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
|
package/dist-cjs/endpoint/bdd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bdd = void 0;
|
|
4
|
-
const
|
|
4
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
5
5
|
const k = "ref";
|
|
6
6
|
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
|
|
7
7
|
const _data = {
|
|
@@ -46,4 +46,4 @@ const nodes = new Int32Array([
|
|
|
46
46
|
3, r + 1, 13,
|
|
47
47
|
4, r + 2, r + 3,
|
|
48
48
|
]);
|
|
49
|
-
exports.bdd =
|
|
49
|
+
exports.bdd = endpoints_1.BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultEndpointResolver = void 0;
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
|
-
const
|
|
5
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
6
6
|
const bdd_1 = require("./bdd");
|
|
7
|
-
const cache = new
|
|
7
|
+
const cache = new endpoints_1.EndpointCache({
|
|
8
8
|
size: 50,
|
|
9
9
|
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
10
|
});
|
|
11
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
12
|
-
return cache.get(endpointParams, () => (0,
|
|
12
|
+
return cache.get(endpointParams, () => (0, endpoints_1.decideEndpoint)(bdd_1.bdd, {
|
|
13
13
|
endpointParams: endpointParams,
|
|
14
14
|
logger: context.logger,
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
18
|
-
|
|
18
|
+
endpoints_1.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|
package/dist-cjs/index.js
CHANGED
|
@@ -4,17 +4,16 @@ var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
|
4
4
|
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
5
|
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
-
var configResolver = require('@smithy/config-resolver');
|
|
8
7
|
var core = require('@smithy/core');
|
|
8
|
+
var client = require('@smithy/core/client');
|
|
9
|
+
var config = require('@smithy/core/config');
|
|
10
|
+
var endpoints = require('@smithy/core/endpoints');
|
|
11
|
+
var protocols = require('@smithy/core/protocols');
|
|
12
|
+
var retry = require('@smithy/core/retry');
|
|
9
13
|
var schema = require('@smithy/core/schema');
|
|
10
|
-
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
11
|
-
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
12
|
-
var middlewareRetry = require('@smithy/middleware-retry');
|
|
13
|
-
var smithyClient = require('@smithy/smithy-client');
|
|
14
14
|
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
15
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
16
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
17
|
-
var protocolHttp = require('@smithy/protocol-http');
|
|
18
17
|
var schemas_0 = require('./schemas/schemas_0');
|
|
19
18
|
var errors = require('./models/errors');
|
|
20
19
|
var ComputeOptimizerServiceException = require('./models/ComputeOptimizerServiceException');
|
|
@@ -73,12 +72,12 @@ const resolveHttpAuthRuntimeConfig = (config) => {
|
|
|
73
72
|
};
|
|
74
73
|
|
|
75
74
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
76
|
-
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig),
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
77
76
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
78
|
-
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
79
78
|
};
|
|
80
79
|
|
|
81
|
-
class ComputeOptimizerClient extends
|
|
80
|
+
class ComputeOptimizerClient extends client.Client {
|
|
82
81
|
config;
|
|
83
82
|
constructor(...[configuration]) {
|
|
84
83
|
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
@@ -86,17 +85,17 @@ class ComputeOptimizerClient extends smithyClient.Client {
|
|
|
86
85
|
this.initConfig = _config_0;
|
|
87
86
|
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
88
87
|
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
89
|
-
const _config_3 =
|
|
90
|
-
const _config_4 =
|
|
88
|
+
const _config_3 = retry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = config.resolveRegionConfig(_config_3);
|
|
91
90
|
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
92
|
-
const _config_6 =
|
|
91
|
+
const _config_6 = endpoints.resolveEndpointConfig(_config_5);
|
|
93
92
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
94
93
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
95
94
|
this.config = _config_8;
|
|
96
95
|
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
97
96
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
98
|
-
this.middlewareStack.use(
|
|
99
|
-
this.middlewareStack.use(
|
|
97
|
+
this.middlewareStack.use(retry.getRetryPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));
|
|
100
99
|
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
101
100
|
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
102
101
|
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
@@ -113,11 +112,11 @@ class ComputeOptimizerClient extends smithyClient.Client {
|
|
|
113
112
|
}
|
|
114
113
|
}
|
|
115
114
|
|
|
116
|
-
class DeleteRecommendationPreferencesCommand extends
|
|
115
|
+
class DeleteRecommendationPreferencesCommand extends client.Command
|
|
117
116
|
.classBuilder()
|
|
118
117
|
.ep(commonParams)
|
|
119
118
|
.m(function (Command, cs, config, o) {
|
|
120
|
-
return [
|
|
119
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
121
120
|
})
|
|
122
121
|
.s("ComputeOptimizerService", "DeleteRecommendationPreferences", {})
|
|
123
122
|
.n("ComputeOptimizerClient", "DeleteRecommendationPreferencesCommand")
|
|
@@ -125,11 +124,11 @@ class DeleteRecommendationPreferencesCommand extends smithyClient.Command
|
|
|
125
124
|
.build() {
|
|
126
125
|
}
|
|
127
126
|
|
|
128
|
-
class DescribeRecommendationExportJobsCommand extends
|
|
127
|
+
class DescribeRecommendationExportJobsCommand extends client.Command
|
|
129
128
|
.classBuilder()
|
|
130
129
|
.ep(commonParams)
|
|
131
130
|
.m(function (Command, cs, config, o) {
|
|
132
|
-
return [
|
|
131
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
133
132
|
})
|
|
134
133
|
.s("ComputeOptimizerService", "DescribeRecommendationExportJobs", {})
|
|
135
134
|
.n("ComputeOptimizerClient", "DescribeRecommendationExportJobsCommand")
|
|
@@ -137,11 +136,11 @@ class DescribeRecommendationExportJobsCommand extends smithyClient.Command
|
|
|
137
136
|
.build() {
|
|
138
137
|
}
|
|
139
138
|
|
|
140
|
-
class ExportAutoScalingGroupRecommendationsCommand extends
|
|
139
|
+
class ExportAutoScalingGroupRecommendationsCommand extends client.Command
|
|
141
140
|
.classBuilder()
|
|
142
141
|
.ep(commonParams)
|
|
143
142
|
.m(function (Command, cs, config, o) {
|
|
144
|
-
return [
|
|
143
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
145
144
|
})
|
|
146
145
|
.s("ComputeOptimizerService", "ExportAutoScalingGroupRecommendations", {})
|
|
147
146
|
.n("ComputeOptimizerClient", "ExportAutoScalingGroupRecommendationsCommand")
|
|
@@ -149,11 +148,11 @@ class ExportAutoScalingGroupRecommendationsCommand extends smithyClient.Command
|
|
|
149
148
|
.build() {
|
|
150
149
|
}
|
|
151
150
|
|
|
152
|
-
class ExportEBSVolumeRecommendationsCommand extends
|
|
151
|
+
class ExportEBSVolumeRecommendationsCommand extends client.Command
|
|
153
152
|
.classBuilder()
|
|
154
153
|
.ep(commonParams)
|
|
155
154
|
.m(function (Command, cs, config, o) {
|
|
156
|
-
return [
|
|
155
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
157
156
|
})
|
|
158
157
|
.s("ComputeOptimizerService", "ExportEBSVolumeRecommendations", {})
|
|
159
158
|
.n("ComputeOptimizerClient", "ExportEBSVolumeRecommendationsCommand")
|
|
@@ -161,11 +160,11 @@ class ExportEBSVolumeRecommendationsCommand extends smithyClient.Command
|
|
|
161
160
|
.build() {
|
|
162
161
|
}
|
|
163
162
|
|
|
164
|
-
class ExportEC2InstanceRecommendationsCommand extends
|
|
163
|
+
class ExportEC2InstanceRecommendationsCommand extends client.Command
|
|
165
164
|
.classBuilder()
|
|
166
165
|
.ep(commonParams)
|
|
167
166
|
.m(function (Command, cs, config, o) {
|
|
168
|
-
return [
|
|
167
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
169
168
|
})
|
|
170
169
|
.s("ComputeOptimizerService", "ExportEC2InstanceRecommendations", {})
|
|
171
170
|
.n("ComputeOptimizerClient", "ExportEC2InstanceRecommendationsCommand")
|
|
@@ -173,11 +172,11 @@ class ExportEC2InstanceRecommendationsCommand extends smithyClient.Command
|
|
|
173
172
|
.build() {
|
|
174
173
|
}
|
|
175
174
|
|
|
176
|
-
class ExportECSServiceRecommendationsCommand extends
|
|
175
|
+
class ExportECSServiceRecommendationsCommand extends client.Command
|
|
177
176
|
.classBuilder()
|
|
178
177
|
.ep(commonParams)
|
|
179
178
|
.m(function (Command, cs, config, o) {
|
|
180
|
-
return [
|
|
179
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
181
180
|
})
|
|
182
181
|
.s("ComputeOptimizerService", "ExportECSServiceRecommendations", {})
|
|
183
182
|
.n("ComputeOptimizerClient", "ExportECSServiceRecommendationsCommand")
|
|
@@ -185,11 +184,11 @@ class ExportECSServiceRecommendationsCommand extends smithyClient.Command
|
|
|
185
184
|
.build() {
|
|
186
185
|
}
|
|
187
186
|
|
|
188
|
-
class ExportIdleRecommendationsCommand extends
|
|
187
|
+
class ExportIdleRecommendationsCommand extends client.Command
|
|
189
188
|
.classBuilder()
|
|
190
189
|
.ep(commonParams)
|
|
191
190
|
.m(function (Command, cs, config, o) {
|
|
192
|
-
return [
|
|
191
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
193
192
|
})
|
|
194
193
|
.s("ComputeOptimizerService", "ExportIdleRecommendations", {})
|
|
195
194
|
.n("ComputeOptimizerClient", "ExportIdleRecommendationsCommand")
|
|
@@ -197,11 +196,11 @@ class ExportIdleRecommendationsCommand extends smithyClient.Command
|
|
|
197
196
|
.build() {
|
|
198
197
|
}
|
|
199
198
|
|
|
200
|
-
class ExportLambdaFunctionRecommendationsCommand extends
|
|
199
|
+
class ExportLambdaFunctionRecommendationsCommand extends client.Command
|
|
201
200
|
.classBuilder()
|
|
202
201
|
.ep(commonParams)
|
|
203
202
|
.m(function (Command, cs, config, o) {
|
|
204
|
-
return [
|
|
203
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
205
204
|
})
|
|
206
205
|
.s("ComputeOptimizerService", "ExportLambdaFunctionRecommendations", {})
|
|
207
206
|
.n("ComputeOptimizerClient", "ExportLambdaFunctionRecommendationsCommand")
|
|
@@ -209,11 +208,11 @@ class ExportLambdaFunctionRecommendationsCommand extends smithyClient.Command
|
|
|
209
208
|
.build() {
|
|
210
209
|
}
|
|
211
210
|
|
|
212
|
-
class ExportLicenseRecommendationsCommand extends
|
|
211
|
+
class ExportLicenseRecommendationsCommand extends client.Command
|
|
213
212
|
.classBuilder()
|
|
214
213
|
.ep(commonParams)
|
|
215
214
|
.m(function (Command, cs, config, o) {
|
|
216
|
-
return [
|
|
215
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
217
216
|
})
|
|
218
217
|
.s("ComputeOptimizerService", "ExportLicenseRecommendations", {})
|
|
219
218
|
.n("ComputeOptimizerClient", "ExportLicenseRecommendationsCommand")
|
|
@@ -221,11 +220,11 @@ class ExportLicenseRecommendationsCommand extends smithyClient.Command
|
|
|
221
220
|
.build() {
|
|
222
221
|
}
|
|
223
222
|
|
|
224
|
-
class ExportRDSDatabaseRecommendationsCommand extends
|
|
223
|
+
class ExportRDSDatabaseRecommendationsCommand extends client.Command
|
|
225
224
|
.classBuilder()
|
|
226
225
|
.ep(commonParams)
|
|
227
226
|
.m(function (Command, cs, config, o) {
|
|
228
|
-
return [
|
|
227
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
229
228
|
})
|
|
230
229
|
.s("ComputeOptimizerService", "ExportRDSDatabaseRecommendations", {})
|
|
231
230
|
.n("ComputeOptimizerClient", "ExportRDSDatabaseRecommendationsCommand")
|
|
@@ -233,11 +232,11 @@ class ExportRDSDatabaseRecommendationsCommand extends smithyClient.Command
|
|
|
233
232
|
.build() {
|
|
234
233
|
}
|
|
235
234
|
|
|
236
|
-
class GetAutoScalingGroupRecommendationsCommand extends
|
|
235
|
+
class GetAutoScalingGroupRecommendationsCommand extends client.Command
|
|
237
236
|
.classBuilder()
|
|
238
237
|
.ep(commonParams)
|
|
239
238
|
.m(function (Command, cs, config, o) {
|
|
240
|
-
return [
|
|
239
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
241
240
|
})
|
|
242
241
|
.s("ComputeOptimizerService", "GetAutoScalingGroupRecommendations", {})
|
|
243
242
|
.n("ComputeOptimizerClient", "GetAutoScalingGroupRecommendationsCommand")
|
|
@@ -245,11 +244,11 @@ class GetAutoScalingGroupRecommendationsCommand extends smithyClient.Command
|
|
|
245
244
|
.build() {
|
|
246
245
|
}
|
|
247
246
|
|
|
248
|
-
class GetEBSVolumeRecommendationsCommand extends
|
|
247
|
+
class GetEBSVolumeRecommendationsCommand extends client.Command
|
|
249
248
|
.classBuilder()
|
|
250
249
|
.ep(commonParams)
|
|
251
250
|
.m(function (Command, cs, config, o) {
|
|
252
|
-
return [
|
|
251
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
253
252
|
})
|
|
254
253
|
.s("ComputeOptimizerService", "GetEBSVolumeRecommendations", {})
|
|
255
254
|
.n("ComputeOptimizerClient", "GetEBSVolumeRecommendationsCommand")
|
|
@@ -257,11 +256,11 @@ class GetEBSVolumeRecommendationsCommand extends smithyClient.Command
|
|
|
257
256
|
.build() {
|
|
258
257
|
}
|
|
259
258
|
|
|
260
|
-
class GetEC2InstanceRecommendationsCommand extends
|
|
259
|
+
class GetEC2InstanceRecommendationsCommand extends client.Command
|
|
261
260
|
.classBuilder()
|
|
262
261
|
.ep(commonParams)
|
|
263
262
|
.m(function (Command, cs, config, o) {
|
|
264
|
-
return [
|
|
263
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
265
264
|
})
|
|
266
265
|
.s("ComputeOptimizerService", "GetEC2InstanceRecommendations", {})
|
|
267
266
|
.n("ComputeOptimizerClient", "GetEC2InstanceRecommendationsCommand")
|
|
@@ -269,11 +268,11 @@ class GetEC2InstanceRecommendationsCommand extends smithyClient.Command
|
|
|
269
268
|
.build() {
|
|
270
269
|
}
|
|
271
270
|
|
|
272
|
-
class GetEC2RecommendationProjectedMetricsCommand extends
|
|
271
|
+
class GetEC2RecommendationProjectedMetricsCommand extends client.Command
|
|
273
272
|
.classBuilder()
|
|
274
273
|
.ep(commonParams)
|
|
275
274
|
.m(function (Command, cs, config, o) {
|
|
276
|
-
return [
|
|
275
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
277
276
|
})
|
|
278
277
|
.s("ComputeOptimizerService", "GetEC2RecommendationProjectedMetrics", {})
|
|
279
278
|
.n("ComputeOptimizerClient", "GetEC2RecommendationProjectedMetricsCommand")
|
|
@@ -281,11 +280,11 @@ class GetEC2RecommendationProjectedMetricsCommand extends smithyClient.Command
|
|
|
281
280
|
.build() {
|
|
282
281
|
}
|
|
283
282
|
|
|
284
|
-
class GetECSServiceRecommendationProjectedMetricsCommand extends
|
|
283
|
+
class GetECSServiceRecommendationProjectedMetricsCommand extends client.Command
|
|
285
284
|
.classBuilder()
|
|
286
285
|
.ep(commonParams)
|
|
287
286
|
.m(function (Command, cs, config, o) {
|
|
288
|
-
return [
|
|
287
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
289
288
|
})
|
|
290
289
|
.s("ComputeOptimizerService", "GetECSServiceRecommendationProjectedMetrics", {})
|
|
291
290
|
.n("ComputeOptimizerClient", "GetECSServiceRecommendationProjectedMetricsCommand")
|
|
@@ -293,11 +292,11 @@ class GetECSServiceRecommendationProjectedMetricsCommand extends smithyClient.Co
|
|
|
293
292
|
.build() {
|
|
294
293
|
}
|
|
295
294
|
|
|
296
|
-
class GetECSServiceRecommendationsCommand extends
|
|
295
|
+
class GetECSServiceRecommendationsCommand extends client.Command
|
|
297
296
|
.classBuilder()
|
|
298
297
|
.ep(commonParams)
|
|
299
298
|
.m(function (Command, cs, config, o) {
|
|
300
|
-
return [
|
|
299
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
301
300
|
})
|
|
302
301
|
.s("ComputeOptimizerService", "GetECSServiceRecommendations", {})
|
|
303
302
|
.n("ComputeOptimizerClient", "GetECSServiceRecommendationsCommand")
|
|
@@ -305,11 +304,11 @@ class GetECSServiceRecommendationsCommand extends smithyClient.Command
|
|
|
305
304
|
.build() {
|
|
306
305
|
}
|
|
307
306
|
|
|
308
|
-
class GetEffectiveRecommendationPreferencesCommand extends
|
|
307
|
+
class GetEffectiveRecommendationPreferencesCommand extends client.Command
|
|
309
308
|
.classBuilder()
|
|
310
309
|
.ep(commonParams)
|
|
311
310
|
.m(function (Command, cs, config, o) {
|
|
312
|
-
return [
|
|
311
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
313
312
|
})
|
|
314
313
|
.s("ComputeOptimizerService", "GetEffectiveRecommendationPreferences", {})
|
|
315
314
|
.n("ComputeOptimizerClient", "GetEffectiveRecommendationPreferencesCommand")
|
|
@@ -317,11 +316,11 @@ class GetEffectiveRecommendationPreferencesCommand extends smithyClient.Command
|
|
|
317
316
|
.build() {
|
|
318
317
|
}
|
|
319
318
|
|
|
320
|
-
class GetEnrollmentStatusCommand extends
|
|
319
|
+
class GetEnrollmentStatusCommand extends client.Command
|
|
321
320
|
.classBuilder()
|
|
322
321
|
.ep(commonParams)
|
|
323
322
|
.m(function (Command, cs, config, o) {
|
|
324
|
-
return [
|
|
323
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
325
324
|
})
|
|
326
325
|
.s("ComputeOptimizerService", "GetEnrollmentStatus", {})
|
|
327
326
|
.n("ComputeOptimizerClient", "GetEnrollmentStatusCommand")
|
|
@@ -329,11 +328,11 @@ class GetEnrollmentStatusCommand extends smithyClient.Command
|
|
|
329
328
|
.build() {
|
|
330
329
|
}
|
|
331
330
|
|
|
332
|
-
class GetEnrollmentStatusesForOrganizationCommand extends
|
|
331
|
+
class GetEnrollmentStatusesForOrganizationCommand extends client.Command
|
|
333
332
|
.classBuilder()
|
|
334
333
|
.ep(commonParams)
|
|
335
334
|
.m(function (Command, cs, config, o) {
|
|
336
|
-
return [
|
|
335
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
337
336
|
})
|
|
338
337
|
.s("ComputeOptimizerService", "GetEnrollmentStatusesForOrganization", {})
|
|
339
338
|
.n("ComputeOptimizerClient", "GetEnrollmentStatusesForOrganizationCommand")
|
|
@@ -341,11 +340,11 @@ class GetEnrollmentStatusesForOrganizationCommand extends smithyClient.Command
|
|
|
341
340
|
.build() {
|
|
342
341
|
}
|
|
343
342
|
|
|
344
|
-
class GetIdleRecommendationsCommand extends
|
|
343
|
+
class GetIdleRecommendationsCommand extends client.Command
|
|
345
344
|
.classBuilder()
|
|
346
345
|
.ep(commonParams)
|
|
347
346
|
.m(function (Command, cs, config, o) {
|
|
348
|
-
return [
|
|
347
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
349
348
|
})
|
|
350
349
|
.s("ComputeOptimizerService", "GetIdleRecommendations", {})
|
|
351
350
|
.n("ComputeOptimizerClient", "GetIdleRecommendationsCommand")
|
|
@@ -353,11 +352,11 @@ class GetIdleRecommendationsCommand extends smithyClient.Command
|
|
|
353
352
|
.build() {
|
|
354
353
|
}
|
|
355
354
|
|
|
356
|
-
class GetLambdaFunctionRecommendationsCommand extends
|
|
355
|
+
class GetLambdaFunctionRecommendationsCommand extends client.Command
|
|
357
356
|
.classBuilder()
|
|
358
357
|
.ep(commonParams)
|
|
359
358
|
.m(function (Command, cs, config, o) {
|
|
360
|
-
return [
|
|
359
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
361
360
|
})
|
|
362
361
|
.s("ComputeOptimizerService", "GetLambdaFunctionRecommendations", {})
|
|
363
362
|
.n("ComputeOptimizerClient", "GetLambdaFunctionRecommendationsCommand")
|
|
@@ -365,11 +364,11 @@ class GetLambdaFunctionRecommendationsCommand extends smithyClient.Command
|
|
|
365
364
|
.build() {
|
|
366
365
|
}
|
|
367
366
|
|
|
368
|
-
class GetLicenseRecommendationsCommand extends
|
|
367
|
+
class GetLicenseRecommendationsCommand extends client.Command
|
|
369
368
|
.classBuilder()
|
|
370
369
|
.ep(commonParams)
|
|
371
370
|
.m(function (Command, cs, config, o) {
|
|
372
|
-
return [
|
|
371
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
373
372
|
})
|
|
374
373
|
.s("ComputeOptimizerService", "GetLicenseRecommendations", {})
|
|
375
374
|
.n("ComputeOptimizerClient", "GetLicenseRecommendationsCommand")
|
|
@@ -377,11 +376,11 @@ class GetLicenseRecommendationsCommand extends smithyClient.Command
|
|
|
377
376
|
.build() {
|
|
378
377
|
}
|
|
379
378
|
|
|
380
|
-
class GetRDSDatabaseRecommendationProjectedMetricsCommand extends
|
|
379
|
+
class GetRDSDatabaseRecommendationProjectedMetricsCommand extends client.Command
|
|
381
380
|
.classBuilder()
|
|
382
381
|
.ep(commonParams)
|
|
383
382
|
.m(function (Command, cs, config, o) {
|
|
384
|
-
return [
|
|
383
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
385
384
|
})
|
|
386
385
|
.s("ComputeOptimizerService", "GetRDSDatabaseRecommendationProjectedMetrics", {})
|
|
387
386
|
.n("ComputeOptimizerClient", "GetRDSDatabaseRecommendationProjectedMetricsCommand")
|
|
@@ -389,11 +388,11 @@ class GetRDSDatabaseRecommendationProjectedMetricsCommand extends smithyClient.C
|
|
|
389
388
|
.build() {
|
|
390
389
|
}
|
|
391
390
|
|
|
392
|
-
class GetRDSDatabaseRecommendationsCommand extends
|
|
391
|
+
class GetRDSDatabaseRecommendationsCommand extends client.Command
|
|
393
392
|
.classBuilder()
|
|
394
393
|
.ep(commonParams)
|
|
395
394
|
.m(function (Command, cs, config, o) {
|
|
396
|
-
return [
|
|
395
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
397
396
|
})
|
|
398
397
|
.s("ComputeOptimizerService", "GetRDSDatabaseRecommendations", {})
|
|
399
398
|
.n("ComputeOptimizerClient", "GetRDSDatabaseRecommendationsCommand")
|
|
@@ -401,11 +400,11 @@ class GetRDSDatabaseRecommendationsCommand extends smithyClient.Command
|
|
|
401
400
|
.build() {
|
|
402
401
|
}
|
|
403
402
|
|
|
404
|
-
class GetRecommendationPreferencesCommand extends
|
|
403
|
+
class GetRecommendationPreferencesCommand extends client.Command
|
|
405
404
|
.classBuilder()
|
|
406
405
|
.ep(commonParams)
|
|
407
406
|
.m(function (Command, cs, config, o) {
|
|
408
|
-
return [
|
|
407
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
409
408
|
})
|
|
410
409
|
.s("ComputeOptimizerService", "GetRecommendationPreferences", {})
|
|
411
410
|
.n("ComputeOptimizerClient", "GetRecommendationPreferencesCommand")
|
|
@@ -413,11 +412,11 @@ class GetRecommendationPreferencesCommand extends smithyClient.Command
|
|
|
413
412
|
.build() {
|
|
414
413
|
}
|
|
415
414
|
|
|
416
|
-
class GetRecommendationSummariesCommand extends
|
|
415
|
+
class GetRecommendationSummariesCommand extends client.Command
|
|
417
416
|
.classBuilder()
|
|
418
417
|
.ep(commonParams)
|
|
419
418
|
.m(function (Command, cs, config, o) {
|
|
420
|
-
return [
|
|
419
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
421
420
|
})
|
|
422
421
|
.s("ComputeOptimizerService", "GetRecommendationSummaries", {})
|
|
423
422
|
.n("ComputeOptimizerClient", "GetRecommendationSummariesCommand")
|
|
@@ -425,11 +424,11 @@ class GetRecommendationSummariesCommand extends smithyClient.Command
|
|
|
425
424
|
.build() {
|
|
426
425
|
}
|
|
427
426
|
|
|
428
|
-
class PutRecommendationPreferencesCommand extends
|
|
427
|
+
class PutRecommendationPreferencesCommand extends client.Command
|
|
429
428
|
.classBuilder()
|
|
430
429
|
.ep(commonParams)
|
|
431
430
|
.m(function (Command, cs, config, o) {
|
|
432
|
-
return [
|
|
431
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
433
432
|
})
|
|
434
433
|
.s("ComputeOptimizerService", "PutRecommendationPreferences", {})
|
|
435
434
|
.n("ComputeOptimizerClient", "PutRecommendationPreferencesCommand")
|
|
@@ -437,11 +436,11 @@ class PutRecommendationPreferencesCommand extends smithyClient.Command
|
|
|
437
436
|
.build() {
|
|
438
437
|
}
|
|
439
438
|
|
|
440
|
-
class UpdateEnrollmentStatusCommand extends
|
|
439
|
+
class UpdateEnrollmentStatusCommand extends client.Command
|
|
441
440
|
.classBuilder()
|
|
442
441
|
.ep(commonParams)
|
|
443
442
|
.m(function (Command, cs, config, o) {
|
|
444
|
-
return [
|
|
443
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
445
444
|
})
|
|
446
445
|
.s("ComputeOptimizerService", "UpdateEnrollmentStatus", {})
|
|
447
446
|
.n("ComputeOptimizerClient", "UpdateEnrollmentStatusCommand")
|
|
@@ -498,7 +497,7 @@ const paginators = {
|
|
|
498
497
|
};
|
|
499
498
|
class ComputeOptimizer extends ComputeOptimizerClient {
|
|
500
499
|
}
|
|
501
|
-
|
|
500
|
+
client.createAggregatedClient(commands, ComputeOptimizer, { paginators });
|
|
502
501
|
|
|
503
502
|
const Status = {
|
|
504
503
|
ACTIVE: "Active",
|
|
@@ -1370,8 +1369,8 @@ const FindingReasonCode = {
|
|
|
1370
1369
|
MEMORY_UNDER_PROVISIONED: "MemoryUnderprovisioned",
|
|
1371
1370
|
};
|
|
1372
1371
|
|
|
1373
|
-
exports.$Command =
|
|
1374
|
-
exports.__Client =
|
|
1372
|
+
exports.$Command = client.Command;
|
|
1373
|
+
exports.__Client = client.Client;
|
|
1375
1374
|
exports.ComputeOptimizerServiceException = ComputeOptimizerServiceException.ComputeOptimizerServiceException;
|
|
1376
1375
|
exports.AllocationStrategy = AllocationStrategy;
|
|
1377
1376
|
exports.AsgType = AsgType;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ComputeOptimizerServiceException = exports.__ServiceException = void 0;
|
|
4
|
-
const
|
|
5
|
-
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return
|
|
6
|
-
class ComputeOptimizerServiceException extends
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return client_1.ServiceException; } });
|
|
6
|
+
class ComputeOptimizerServiceException extends client_1.ServiceException {
|
|
7
7
|
constructor(options) {
|
|
8
8
|
super(options);
|
|
9
9
|
Object.setPrototypeOf(this, ComputeOptimizerServiceException.prototype);
|
|
@@ -5,34 +5,32 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const package_json_1 = tslib_1.__importDefault(require("../package.json"));
|
|
6
6
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
7
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
8
|
-
const
|
|
8
|
+
const client_1 = require("@smithy/core/client");
|
|
9
|
+
const config_1 = require("@smithy/core/config");
|
|
10
|
+
const retry_1 = require("@smithy/core/retry");
|
|
11
|
+
const serde_1 = require("@smithy/core/serde");
|
|
9
12
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
|
-
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
12
|
-
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
13
|
-
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
14
|
-
const util_retry_1 = require("@smithy/util-retry");
|
|
15
13
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
14
|
const getRuntimeConfig = (config) => {
|
|
17
|
-
const defaultsMode = (0,
|
|
18
|
-
const defaultConfigProvider = () => defaultsMode().then(
|
|
15
|
+
const defaultsMode = (0, config_1.resolveDefaultsModeConfig)(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(client_1.loadConfigsForDefaultMode);
|
|
19
17
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
20
18
|
return {
|
|
21
19
|
...clientSharedValues,
|
|
22
20
|
...config,
|
|
23
21
|
runtime: "browser",
|
|
24
22
|
defaultsMode,
|
|
25
|
-
bodyLengthChecker: config?.bodyLengthChecker ??
|
|
23
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? serde_1.calculateBodyLength,
|
|
26
24
|
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
27
25
|
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.createDefaultUserAgentProvider)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
28
|
-
maxAttempts: config?.maxAttempts ??
|
|
29
|
-
region: config?.region ?? (0,
|
|
26
|
+
maxAttempts: config?.maxAttempts ?? retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
27
|
+
region: config?.region ?? (0, client_1.invalidProvider)("Region is missing"),
|
|
30
28
|
requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
31
|
-
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode ||
|
|
29
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || retry_1.DEFAULT_RETRY_MODE),
|
|
32
30
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
33
31
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
34
|
-
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(
|
|
35
|
-
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(
|
|
32
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
33
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_1.DEFAULT_USE_FIPS_ENDPOINT)),
|
|
36
34
|
};
|
|
37
35
|
};
|
|
38
36
|
exports.getRuntimeConfig = getRuntimeConfig;
|