@aws-sdk/client-auto-scaling-plans 3.1074.0 → 3.1076.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/index.js +638 -15
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +7 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +7 -1
- package/package.json +8 -8
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -52
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/AutoScalingPlansServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -85
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -351
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
|
|
17
|
+
const defaultAutoScalingPlansHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
18
|
+
return {
|
|
19
|
+
operation: getSmithyContext(context).operation,
|
|
20
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
21
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
22
|
+
})(),
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
26
|
+
return {
|
|
27
|
+
schemeId: "aws.auth#sigv4",
|
|
28
|
+
signingProperties: {
|
|
29
|
+
name: "autoscaling-plans",
|
|
30
|
+
region: authParameters.region,
|
|
31
|
+
},
|
|
32
|
+
propertiesExtractor: (config, context) => ({
|
|
33
|
+
signingProperties: {
|
|
34
|
+
config,
|
|
35
|
+
context,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
const defaultAutoScalingPlansHttpAuthSchemeProvider = (authParameters) => {
|
|
41
|
+
const options = [];
|
|
42
|
+
switch (authParameters.operation) {
|
|
43
|
+
default: {
|
|
44
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return options;
|
|
48
|
+
};
|
|
49
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
50
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
51
|
+
return Object.assign(config_0, {
|
|
52
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
53
|
+
});
|
|
54
|
+
};
|
|
19
55
|
|
|
20
56
|
const resolveClientEndpointParameters = (options) => {
|
|
21
57
|
return Object.assign(options, {
|
|
@@ -31,6 +67,547 @@ const commonParams = {
|
|
|
31
67
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
68
|
};
|
|
33
69
|
|
|
70
|
+
var version = "3.1075.0";
|
|
71
|
+
var packageInfo = {
|
|
72
|
+
version: version};
|
|
73
|
+
|
|
74
|
+
const m = "ref";
|
|
75
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [m]: "Endpoint" }, i = { [m]: d }, j = { [m]: "Region" }, k = {}, l = [j];
|
|
76
|
+
const _data = {
|
|
77
|
+
conditions: [
|
|
78
|
+
[c, [h]],
|
|
79
|
+
[c, l],
|
|
80
|
+
["aws.partition", l, d],
|
|
81
|
+
[e, [{ [m]: "UseFIPS" }, b]],
|
|
82
|
+
[e, [{ [m]: "UseDualStack" }, b]],
|
|
83
|
+
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
85
|
+
[g, [j, "us-gov-east-1"]],
|
|
86
|
+
[g, [j, "us-gov-west-1"]]
|
|
87
|
+
],
|
|
88
|
+
results: [
|
|
89
|
+
[a],
|
|
90
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
91
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
92
|
+
[h, k],
|
|
93
|
+
["https://autoscaling-plans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
94
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
95
|
+
["https://autoscaling-plans.us-gov-east-1.amazonaws.com", k],
|
|
96
|
+
["https://autoscaling-plans.us-gov-west-1.amazonaws.com", k],
|
|
97
|
+
["https://autoscaling-plans-fips.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
98
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
99
|
+
["https://autoscaling-plans.{Region}.{PartitionResult#dualStackDnsSuffix}", k],
|
|
100
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
101
|
+
["https://autoscaling-plans.{Region}.{PartitionResult#dnsSuffix}", k],
|
|
102
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
103
|
+
]
|
|
104
|
+
};
|
|
105
|
+
const root = 2;
|
|
106
|
+
const r = 100_000_000;
|
|
107
|
+
const nodes = new Int32Array([
|
|
108
|
+
-1, 1, -1,
|
|
109
|
+
0, 14, 3,
|
|
110
|
+
1, 4, r + 13,
|
|
111
|
+
2, 5, r + 13,
|
|
112
|
+
3, 8, 6,
|
|
113
|
+
4, 7, r + 12,
|
|
114
|
+
5, r + 10, r + 11,
|
|
115
|
+
4, 12, 9,
|
|
116
|
+
6, 10, r + 9,
|
|
117
|
+
7, r + 6, 11,
|
|
118
|
+
8, r + 7, r + 8,
|
|
119
|
+
5, 13, r + 5,
|
|
120
|
+
6, r + 4, r + 5,
|
|
121
|
+
3, r + 1, 15,
|
|
122
|
+
4, r + 2, r + 3,
|
|
123
|
+
]);
|
|
124
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
125
|
+
|
|
126
|
+
const cache = new EndpointCache({
|
|
127
|
+
size: 50,
|
|
128
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
129
|
+
});
|
|
130
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
131
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
132
|
+
endpointParams: endpointParams,
|
|
133
|
+
logger: context.logger,
|
|
134
|
+
}));
|
|
135
|
+
};
|
|
136
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
137
|
+
|
|
138
|
+
class AutoScalingPlansServiceException extends ServiceException {
|
|
139
|
+
constructor(options) {
|
|
140
|
+
super(options);
|
|
141
|
+
Object.setPrototypeOf(this, AutoScalingPlansServiceException.prototype);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
class ConcurrentUpdateException extends AutoScalingPlansServiceException {
|
|
146
|
+
name = "ConcurrentUpdateException";
|
|
147
|
+
$fault = "server";
|
|
148
|
+
Message;
|
|
149
|
+
constructor(opts) {
|
|
150
|
+
super({
|
|
151
|
+
name: "ConcurrentUpdateException",
|
|
152
|
+
$fault: "server",
|
|
153
|
+
...opts,
|
|
154
|
+
});
|
|
155
|
+
Object.setPrototypeOf(this, ConcurrentUpdateException.prototype);
|
|
156
|
+
this.Message = opts.Message;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
class InternalServiceException extends AutoScalingPlansServiceException {
|
|
160
|
+
name = "InternalServiceException";
|
|
161
|
+
$fault = "server";
|
|
162
|
+
Message;
|
|
163
|
+
constructor(opts) {
|
|
164
|
+
super({
|
|
165
|
+
name: "InternalServiceException",
|
|
166
|
+
$fault: "server",
|
|
167
|
+
...opts,
|
|
168
|
+
});
|
|
169
|
+
Object.setPrototypeOf(this, InternalServiceException.prototype);
|
|
170
|
+
this.Message = opts.Message;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
class LimitExceededException extends AutoScalingPlansServiceException {
|
|
174
|
+
name = "LimitExceededException";
|
|
175
|
+
$fault = "client";
|
|
176
|
+
Message;
|
|
177
|
+
constructor(opts) {
|
|
178
|
+
super({
|
|
179
|
+
name: "LimitExceededException",
|
|
180
|
+
$fault: "client",
|
|
181
|
+
...opts,
|
|
182
|
+
});
|
|
183
|
+
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
184
|
+
this.Message = opts.Message;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
class ValidationException extends AutoScalingPlansServiceException {
|
|
188
|
+
name = "ValidationException";
|
|
189
|
+
$fault = "client";
|
|
190
|
+
Message;
|
|
191
|
+
constructor(opts) {
|
|
192
|
+
super({
|
|
193
|
+
name: "ValidationException",
|
|
194
|
+
$fault: "client",
|
|
195
|
+
...opts,
|
|
196
|
+
});
|
|
197
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
198
|
+
this.Message = opts.Message;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
class ObjectNotFoundException extends AutoScalingPlansServiceException {
|
|
202
|
+
name = "ObjectNotFoundException";
|
|
203
|
+
$fault = "client";
|
|
204
|
+
Message;
|
|
205
|
+
constructor(opts) {
|
|
206
|
+
super({
|
|
207
|
+
name: "ObjectNotFoundException",
|
|
208
|
+
$fault: "client",
|
|
209
|
+
...opts,
|
|
210
|
+
});
|
|
211
|
+
Object.setPrototypeOf(this, ObjectNotFoundException.prototype);
|
|
212
|
+
this.Message = opts.Message;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
class InvalidNextTokenException extends AutoScalingPlansServiceException {
|
|
216
|
+
name = "InvalidNextTokenException";
|
|
217
|
+
$fault = "client";
|
|
218
|
+
Message;
|
|
219
|
+
constructor(opts) {
|
|
220
|
+
super({
|
|
221
|
+
name: "InvalidNextTokenException",
|
|
222
|
+
$fault: "client",
|
|
223
|
+
...opts,
|
|
224
|
+
});
|
|
225
|
+
Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
|
|
226
|
+
this.Message = opts.Message;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
const _AS = "ApplicationSource";
|
|
231
|
+
const _ASp = "ApplicationSources";
|
|
232
|
+
const _CFSARN = "CloudFormationStackARN";
|
|
233
|
+
const _CLMS = "CustomizedLoadMetricSpecification";
|
|
234
|
+
const _CSMS = "CustomizedScalingMetricSpecification";
|
|
235
|
+
const _CSP = "CreateScalingPlan";
|
|
236
|
+
const _CSPR = "CreateScalingPlanRequest";
|
|
237
|
+
const _CSPRr = "CreateScalingPlanResponse";
|
|
238
|
+
const _CT = "CreationTime";
|
|
239
|
+
const _CUE = "ConcurrentUpdateException";
|
|
240
|
+
const _D = "Dimensions";
|
|
241
|
+
const _DDS = "DisableDynamicScaling";
|
|
242
|
+
const _DSI = "DisableScaleIn";
|
|
243
|
+
const _DSP = "DeleteScalingPlan";
|
|
244
|
+
const _DSPR = "DeleteScalingPlanRequest";
|
|
245
|
+
const _DSPRR = "DescribeScalingPlanResourcesRequest";
|
|
246
|
+
const _DSPRRe = "DescribeScalingPlanResourcesResponse";
|
|
247
|
+
const _DSPRe = "DeleteScalingPlanResponse";
|
|
248
|
+
const _DSPRes = "DescribeScalingPlansRequest";
|
|
249
|
+
const _DSPResc = "DescribeScalingPlansResponse";
|
|
250
|
+
const _DSPRescr = "DescribeScalingPlanResources";
|
|
251
|
+
const _DSPe = "DescribeScalingPlans";
|
|
252
|
+
const _Da = "Datapoint";
|
|
253
|
+
const _Dat = "Datapoints";
|
|
254
|
+
const _EIW = "EstimatedInstanceWarmup";
|
|
255
|
+
const _ET = "EndTime";
|
|
256
|
+
const _FDT = "ForecastDataType";
|
|
257
|
+
const _GSPRFD = "GetScalingPlanResourceForecastData";
|
|
258
|
+
const _GSPRFDR = "GetScalingPlanResourceForecastDataRequest";
|
|
259
|
+
const _GSPRFDRe = "GetScalingPlanResourceForecastDataResponse";
|
|
260
|
+
const _INTE = "InvalidNextTokenException";
|
|
261
|
+
const _ISE = "InternalServiceException";
|
|
262
|
+
const _K = "Key";
|
|
263
|
+
const _LEE = "LimitExceededException";
|
|
264
|
+
const _M = "Message";
|
|
265
|
+
const _MC = "MinCapacity";
|
|
266
|
+
const _MCa = "MaxCapacity";
|
|
267
|
+
const _MD = "MetricDimension";
|
|
268
|
+
const _MDe = "MetricDimensions";
|
|
269
|
+
const _MN = "MetricName";
|
|
270
|
+
const _MR = "MaxResults";
|
|
271
|
+
const _N = "Namespace";
|
|
272
|
+
const _NT = "NextToken";
|
|
273
|
+
const _Na = "Name";
|
|
274
|
+
const _ONFE = "ObjectNotFoundException";
|
|
275
|
+
const _PLMS = "PredefinedLoadMetricSpecification";
|
|
276
|
+
const _PLMT = "PredefinedLoadMetricType";
|
|
277
|
+
const _PN = "PolicyName";
|
|
278
|
+
const _PSM = "PredictiveScalingMode";
|
|
279
|
+
const _PSMCB = "PredictiveScalingMaxCapacityBehavior";
|
|
280
|
+
const _PSMCBr = "PredictiveScalingMaxCapacityBuffer";
|
|
281
|
+
const _PSMS = "PredefinedScalingMetricSpecification";
|
|
282
|
+
const _PSMT = "PredefinedScalingMetricType";
|
|
283
|
+
const _PT = "PolicyType";
|
|
284
|
+
const _RI = "ResourceId";
|
|
285
|
+
const _RL = "ResourceLabel";
|
|
286
|
+
const _S = "Statistic";
|
|
287
|
+
const _SABT = "ScheduledActionBufferTime";
|
|
288
|
+
const _SC = "StatusCode";
|
|
289
|
+
const _SD = "ScalableDimension";
|
|
290
|
+
const _SI = "ScalingInstructions";
|
|
291
|
+
const _SIC = "ScaleInCooldown";
|
|
292
|
+
const _SIc = "ScalingInstruction";
|
|
293
|
+
const _SM = "StatusMessage";
|
|
294
|
+
const _SN = "ServiceNamespace";
|
|
295
|
+
const _SOC = "ScaleOutCooldown";
|
|
296
|
+
const _SP = "ScalingPlans";
|
|
297
|
+
const _SPN = "ScalingPlanName";
|
|
298
|
+
const _SPNc = "ScalingPlanNames";
|
|
299
|
+
const _SPR = "ScalingPlanResources";
|
|
300
|
+
const _SPRc = "ScalingPlanResource";
|
|
301
|
+
const _SPUB = "ScalingPolicyUpdateBehavior";
|
|
302
|
+
const _SPV = "ScalingPlanVersion";
|
|
303
|
+
const _SPc = "ScalingPlan";
|
|
304
|
+
const _SPca = "ScalingPolicies";
|
|
305
|
+
const _SPcal = "ScalingPolicy";
|
|
306
|
+
const _SSC = "ScalingStatusCode";
|
|
307
|
+
const _SSM = "ScalingStatusMessage";
|
|
308
|
+
const _SST = "StatusStartTime";
|
|
309
|
+
const _ST = "StartTime";
|
|
310
|
+
const _T = "Timestamp";
|
|
311
|
+
const _TF = "TagFilters";
|
|
312
|
+
const _TFa = "TagFilter";
|
|
313
|
+
const _TTC = "TargetTrackingConfigurations";
|
|
314
|
+
const _TTCa = "TargetTrackingConfiguration";
|
|
315
|
+
const _TV = "TargetValue";
|
|
316
|
+
const _U = "Unit";
|
|
317
|
+
const _USP = "UpdateScalingPlan";
|
|
318
|
+
const _USPR = "UpdateScalingPlanRequest";
|
|
319
|
+
const _USPRp = "UpdateScalingPlanResponse";
|
|
320
|
+
const _V = "Value";
|
|
321
|
+
const _VE = "ValidationException";
|
|
322
|
+
const _Va = "Values";
|
|
323
|
+
const _aQE = "awsQueryError";
|
|
324
|
+
const _c = "client";
|
|
325
|
+
const _e = "error";
|
|
326
|
+
const _hE = "httpError";
|
|
327
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.autoscalingplans";
|
|
328
|
+
const _se = "server";
|
|
329
|
+
const n0 = "com.amazonaws.autoscalingplans";
|
|
330
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
331
|
+
var AutoScalingPlansServiceException$ = [-3, _s, "AutoScalingPlansServiceException", 0, [], []];
|
|
332
|
+
_s_registry.registerError(AutoScalingPlansServiceException$, AutoScalingPlansServiceException);
|
|
333
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
334
|
+
var ConcurrentUpdateException$ = [-3, n0, _CUE,
|
|
335
|
+
{ [_aQE]: [`ConcurrentUpdateException`, 500], [_e]: _se, [_hE]: 500 },
|
|
336
|
+
[_M],
|
|
337
|
+
[0]
|
|
338
|
+
];
|
|
339
|
+
n0_registry.registerError(ConcurrentUpdateException$, ConcurrentUpdateException);
|
|
340
|
+
var InternalServiceException$ = [-3, n0, _ISE,
|
|
341
|
+
{ [_aQE]: [`InternalServiceException`, 500], [_e]: _se, [_hE]: 500 },
|
|
342
|
+
[_M],
|
|
343
|
+
[0]
|
|
344
|
+
];
|
|
345
|
+
n0_registry.registerError(InternalServiceException$, InternalServiceException);
|
|
346
|
+
var InvalidNextTokenException$ = [-3, n0, _INTE,
|
|
347
|
+
{ [_aQE]: [`InvalidNextTokenException`, 400], [_e]: _c, [_hE]: 400 },
|
|
348
|
+
[_M],
|
|
349
|
+
[0]
|
|
350
|
+
];
|
|
351
|
+
n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
|
|
352
|
+
var LimitExceededException$ = [-3, n0, _LEE,
|
|
353
|
+
{ [_aQE]: [`LimitExceededException`, 400], [_e]: _c, [_hE]: 400 },
|
|
354
|
+
[_M],
|
|
355
|
+
[0]
|
|
356
|
+
];
|
|
357
|
+
n0_registry.registerError(LimitExceededException$, LimitExceededException);
|
|
358
|
+
var ObjectNotFoundException$ = [-3, n0, _ONFE,
|
|
359
|
+
{ [_aQE]: [`ObjectNotFoundException`, 400], [_e]: _c, [_hE]: 400 },
|
|
360
|
+
[_M],
|
|
361
|
+
[0]
|
|
362
|
+
];
|
|
363
|
+
n0_registry.registerError(ObjectNotFoundException$, ObjectNotFoundException);
|
|
364
|
+
var ValidationException$ = [-3, n0, _VE,
|
|
365
|
+
{ [_aQE]: [`ValidationException`, 400], [_e]: _c, [_hE]: 400 },
|
|
366
|
+
[_M],
|
|
367
|
+
[0]
|
|
368
|
+
];
|
|
369
|
+
n0_registry.registerError(ValidationException$, ValidationException);
|
|
370
|
+
const errorTypeRegistries = [
|
|
371
|
+
_s_registry,
|
|
372
|
+
n0_registry,
|
|
373
|
+
];
|
|
374
|
+
var ApplicationSource$ = [3, n0, _AS,
|
|
375
|
+
0,
|
|
376
|
+
[_CFSARN, _TF],
|
|
377
|
+
[0, () => TagFilters]
|
|
378
|
+
];
|
|
379
|
+
var CreateScalingPlanRequest$ = [3, n0, _CSPR,
|
|
380
|
+
0,
|
|
381
|
+
[_SPN, _AS, _SI],
|
|
382
|
+
[0, () => ApplicationSource$, () => ScalingInstructions], 3
|
|
383
|
+
];
|
|
384
|
+
var CreateScalingPlanResponse$ = [3, n0, _CSPRr,
|
|
385
|
+
0,
|
|
386
|
+
[_SPV],
|
|
387
|
+
[1], 1
|
|
388
|
+
];
|
|
389
|
+
var CustomizedLoadMetricSpecification$ = [3, n0, _CLMS,
|
|
390
|
+
0,
|
|
391
|
+
[_MN, _N, _S, _D, _U],
|
|
392
|
+
[0, 0, 0, () => MetricDimensions, 0], 3
|
|
393
|
+
];
|
|
394
|
+
var CustomizedScalingMetricSpecification$ = [3, n0, _CSMS,
|
|
395
|
+
0,
|
|
396
|
+
[_MN, _N, _S, _D, _U],
|
|
397
|
+
[0, 0, 0, () => MetricDimensions, 0], 3
|
|
398
|
+
];
|
|
399
|
+
var Datapoint$ = [3, n0, _Da,
|
|
400
|
+
0,
|
|
401
|
+
[_T, _V],
|
|
402
|
+
[4, 1]
|
|
403
|
+
];
|
|
404
|
+
var DeleteScalingPlanRequest$ = [3, n0, _DSPR,
|
|
405
|
+
0,
|
|
406
|
+
[_SPN, _SPV],
|
|
407
|
+
[0, 1], 2
|
|
408
|
+
];
|
|
409
|
+
var DeleteScalingPlanResponse$ = [3, n0, _DSPRe,
|
|
410
|
+
0,
|
|
411
|
+
[],
|
|
412
|
+
[]
|
|
413
|
+
];
|
|
414
|
+
var DescribeScalingPlanResourcesRequest$ = [3, n0, _DSPRR,
|
|
415
|
+
0,
|
|
416
|
+
[_SPN, _SPV, _MR, _NT],
|
|
417
|
+
[0, 1, 1, 0], 2
|
|
418
|
+
];
|
|
419
|
+
var DescribeScalingPlanResourcesResponse$ = [3, n0, _DSPRRe,
|
|
420
|
+
0,
|
|
421
|
+
[_SPR, _NT],
|
|
422
|
+
[() => ScalingPlanResources, 0]
|
|
423
|
+
];
|
|
424
|
+
var DescribeScalingPlansRequest$ = [3, n0, _DSPRes,
|
|
425
|
+
0,
|
|
426
|
+
[_SPNc, _SPV, _ASp, _MR, _NT],
|
|
427
|
+
[64 | 0, 1, () => ApplicationSources, 1, 0]
|
|
428
|
+
];
|
|
429
|
+
var DescribeScalingPlansResponse$ = [3, n0, _DSPResc,
|
|
430
|
+
0,
|
|
431
|
+
[_SP, _NT],
|
|
432
|
+
[() => ScalingPlans, 0]
|
|
433
|
+
];
|
|
434
|
+
var GetScalingPlanResourceForecastDataRequest$ = [3, n0, _GSPRFDR,
|
|
435
|
+
0,
|
|
436
|
+
[_SPN, _SPV, _SN, _RI, _SD, _FDT, _ST, _ET],
|
|
437
|
+
[0, 1, 0, 0, 0, 0, 4, 4], 8
|
|
438
|
+
];
|
|
439
|
+
var GetScalingPlanResourceForecastDataResponse$ = [3, n0, _GSPRFDRe,
|
|
440
|
+
0,
|
|
441
|
+
[_Dat],
|
|
442
|
+
[() => Datapoints], 1
|
|
443
|
+
];
|
|
444
|
+
var MetricDimension$ = [3, n0, _MD,
|
|
445
|
+
0,
|
|
446
|
+
[_Na, _V],
|
|
447
|
+
[0, 0], 2
|
|
448
|
+
];
|
|
449
|
+
var PredefinedLoadMetricSpecification$ = [3, n0, _PLMS,
|
|
450
|
+
0,
|
|
451
|
+
[_PLMT, _RL],
|
|
452
|
+
[0, 0], 1
|
|
453
|
+
];
|
|
454
|
+
var PredefinedScalingMetricSpecification$ = [3, n0, _PSMS,
|
|
455
|
+
0,
|
|
456
|
+
[_PSMT, _RL],
|
|
457
|
+
[0, 0], 1
|
|
458
|
+
];
|
|
459
|
+
var ScalingInstruction$ = [3, n0, _SIc,
|
|
460
|
+
0,
|
|
461
|
+
[_SN, _RI, _SD, _MC, _MCa, _TTC, _PLMS, _CLMS, _SABT, _PSMCB, _PSMCBr, _PSM, _SPUB, _DDS],
|
|
462
|
+
[0, 0, 0, 1, 1, () => TargetTrackingConfigurations, () => PredefinedLoadMetricSpecification$, () => CustomizedLoadMetricSpecification$, 1, 0, 1, 0, 0, 2], 6
|
|
463
|
+
];
|
|
464
|
+
var ScalingPlan$ = [3, n0, _SPc,
|
|
465
|
+
0,
|
|
466
|
+
[_SPN, _SPV, _AS, _SI, _SC, _SM, _SST, _CT],
|
|
467
|
+
[0, 1, () => ApplicationSource$, () => ScalingInstructions, 0, 0, 4, 4], 5
|
|
468
|
+
];
|
|
469
|
+
var ScalingPlanResource$ = [3, n0, _SPRc,
|
|
470
|
+
0,
|
|
471
|
+
[_SPN, _SPV, _SN, _RI, _SD, _SSC, _SPca, _SSM],
|
|
472
|
+
[0, 1, 0, 0, 0, 0, () => ScalingPolicies, 0], 6
|
|
473
|
+
];
|
|
474
|
+
var ScalingPolicy$ = [3, n0, _SPcal,
|
|
475
|
+
0,
|
|
476
|
+
[_PN, _PT, _TTCa],
|
|
477
|
+
[0, 0, () => TargetTrackingConfiguration$], 2
|
|
478
|
+
];
|
|
479
|
+
var TagFilter$ = [3, n0, _TFa,
|
|
480
|
+
0,
|
|
481
|
+
[_K, _Va],
|
|
482
|
+
[0, 64 | 0]
|
|
483
|
+
];
|
|
484
|
+
var TargetTrackingConfiguration$ = [3, n0, _TTCa,
|
|
485
|
+
0,
|
|
486
|
+
[_TV, _PSMS, _CSMS, _DSI, _SOC, _SIC, _EIW],
|
|
487
|
+
[1, () => PredefinedScalingMetricSpecification$, () => CustomizedScalingMetricSpecification$, 2, 1, 1, 1], 1
|
|
488
|
+
];
|
|
489
|
+
var UpdateScalingPlanRequest$ = [3, n0, _USPR,
|
|
490
|
+
0,
|
|
491
|
+
[_SPN, _SPV, _AS, _SI],
|
|
492
|
+
[0, 1, () => ApplicationSource$, () => ScalingInstructions], 2
|
|
493
|
+
];
|
|
494
|
+
var UpdateScalingPlanResponse$ = [3, n0, _USPRp,
|
|
495
|
+
0,
|
|
496
|
+
[],
|
|
497
|
+
[]
|
|
498
|
+
];
|
|
499
|
+
var ApplicationSources = [1, n0, _ASp,
|
|
500
|
+
0, () => ApplicationSource$
|
|
501
|
+
];
|
|
502
|
+
var Datapoints = [1, n0, _Dat,
|
|
503
|
+
0, () => Datapoint$
|
|
504
|
+
];
|
|
505
|
+
var MetricDimensions = [1, n0, _MDe,
|
|
506
|
+
0, () => MetricDimension$
|
|
507
|
+
];
|
|
508
|
+
var ScalingInstructions = [1, n0, _SI,
|
|
509
|
+
0, () => ScalingInstruction$
|
|
510
|
+
];
|
|
511
|
+
var ScalingPlanResources = [1, n0, _SPR,
|
|
512
|
+
0, () => ScalingPlanResource$
|
|
513
|
+
];
|
|
514
|
+
var ScalingPlans = [1, n0, _SP,
|
|
515
|
+
0, () => ScalingPlan$
|
|
516
|
+
];
|
|
517
|
+
var ScalingPolicies = [1, n0, _SPca,
|
|
518
|
+
0, () => ScalingPolicy$
|
|
519
|
+
];
|
|
520
|
+
var TagFilters = [1, n0, _TF,
|
|
521
|
+
0, () => TagFilter$
|
|
522
|
+
];
|
|
523
|
+
var TargetTrackingConfigurations = [1, n0, _TTC,
|
|
524
|
+
0, () => TargetTrackingConfiguration$
|
|
525
|
+
];
|
|
526
|
+
var CreateScalingPlan$ = [9, n0, _CSP,
|
|
527
|
+
0, () => CreateScalingPlanRequest$, () => CreateScalingPlanResponse$
|
|
528
|
+
];
|
|
529
|
+
var DeleteScalingPlan$ = [9, n0, _DSP,
|
|
530
|
+
0, () => DeleteScalingPlanRequest$, () => DeleteScalingPlanResponse$
|
|
531
|
+
];
|
|
532
|
+
var DescribeScalingPlanResources$ = [9, n0, _DSPRescr,
|
|
533
|
+
0, () => DescribeScalingPlanResourcesRequest$, () => DescribeScalingPlanResourcesResponse$
|
|
534
|
+
];
|
|
535
|
+
var DescribeScalingPlans$ = [9, n0, _DSPe,
|
|
536
|
+
0, () => DescribeScalingPlansRequest$, () => DescribeScalingPlansResponse$
|
|
537
|
+
];
|
|
538
|
+
var GetScalingPlanResourceForecastData$ = [9, n0, _GSPRFD,
|
|
539
|
+
0, () => GetScalingPlanResourceForecastDataRequest$, () => GetScalingPlanResourceForecastDataResponse$
|
|
540
|
+
];
|
|
541
|
+
var UpdateScalingPlan$ = [9, n0, _USP,
|
|
542
|
+
0, () => UpdateScalingPlanRequest$, () => UpdateScalingPlanResponse$
|
|
543
|
+
];
|
|
544
|
+
|
|
545
|
+
const getRuntimeConfig$1 = (config) => {
|
|
546
|
+
return {
|
|
547
|
+
apiVersion: "2018-01-06",
|
|
548
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
549
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
550
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
551
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
552
|
+
extensions: config?.extensions ?? [],
|
|
553
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAutoScalingPlansHttpAuthSchemeProvider,
|
|
554
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
555
|
+
{
|
|
556
|
+
schemeId: "aws.auth#sigv4",
|
|
557
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
558
|
+
signer: new AwsSdkSigV4Signer(),
|
|
559
|
+
},
|
|
560
|
+
],
|
|
561
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
562
|
+
protocol: config?.protocol ?? AwsJson1_1Protocol,
|
|
563
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
564
|
+
defaultNamespace: "com.amazonaws.autoscalingplans",
|
|
565
|
+
errorTypeRegistries,
|
|
566
|
+
version: "2018-01-06",
|
|
567
|
+
serviceTarget: "AnyScaleScalingPlannerFrontendService",
|
|
568
|
+
},
|
|
569
|
+
serviceId: config?.serviceId ?? "Auto Scaling Plans",
|
|
570
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
571
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
572
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
const getRuntimeConfig = (config) => {
|
|
577
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
578
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
579
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
580
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
581
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
582
|
+
const loaderConfig = {
|
|
583
|
+
profile: config?.profile,
|
|
584
|
+
logger: clientSharedValues.logger,
|
|
585
|
+
};
|
|
586
|
+
return {
|
|
587
|
+
...clientSharedValues,
|
|
588
|
+
...config,
|
|
589
|
+
runtime: "node",
|
|
590
|
+
defaultsMode,
|
|
591
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
592
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
593
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
594
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
595
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
596
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
597
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
598
|
+
retryMode: config?.retryMode ??
|
|
599
|
+
loadConfig({
|
|
600
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
601
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
602
|
+
}, config),
|
|
603
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
604
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
605
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
606
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
607
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
|
|
34
611
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
612
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
613
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -278,23 +855,69 @@ const ForecastDataType = {
|
|
|
278
855
|
ScheduledActionMinCapacity: "ScheduledActionMinCapacity",
|
|
279
856
|
};
|
|
280
857
|
|
|
858
|
+
exports.ApplicationSource$ = ApplicationSource$;
|
|
281
859
|
exports.AutoScalingPlans = AutoScalingPlans;
|
|
282
860
|
exports.AutoScalingPlansClient = AutoScalingPlansClient;
|
|
861
|
+
exports.AutoScalingPlansServiceException = AutoScalingPlansServiceException;
|
|
862
|
+
exports.AutoScalingPlansServiceException$ = AutoScalingPlansServiceException$;
|
|
863
|
+
exports.ConcurrentUpdateException = ConcurrentUpdateException;
|
|
864
|
+
exports.ConcurrentUpdateException$ = ConcurrentUpdateException$;
|
|
865
|
+
exports.CreateScalingPlan$ = CreateScalingPlan$;
|
|
283
866
|
exports.CreateScalingPlanCommand = CreateScalingPlanCommand;
|
|
867
|
+
exports.CreateScalingPlanRequest$ = CreateScalingPlanRequest$;
|
|
868
|
+
exports.CreateScalingPlanResponse$ = CreateScalingPlanResponse$;
|
|
869
|
+
exports.CustomizedLoadMetricSpecification$ = CustomizedLoadMetricSpecification$;
|
|
870
|
+
exports.CustomizedScalingMetricSpecification$ = CustomizedScalingMetricSpecification$;
|
|
871
|
+
exports.Datapoint$ = Datapoint$;
|
|
872
|
+
exports.DeleteScalingPlan$ = DeleteScalingPlan$;
|
|
284
873
|
exports.DeleteScalingPlanCommand = DeleteScalingPlanCommand;
|
|
874
|
+
exports.DeleteScalingPlanRequest$ = DeleteScalingPlanRequest$;
|
|
875
|
+
exports.DeleteScalingPlanResponse$ = DeleteScalingPlanResponse$;
|
|
876
|
+
exports.DescribeScalingPlanResources$ = DescribeScalingPlanResources$;
|
|
285
877
|
exports.DescribeScalingPlanResourcesCommand = DescribeScalingPlanResourcesCommand;
|
|
878
|
+
exports.DescribeScalingPlanResourcesRequest$ = DescribeScalingPlanResourcesRequest$;
|
|
879
|
+
exports.DescribeScalingPlanResourcesResponse$ = DescribeScalingPlanResourcesResponse$;
|
|
880
|
+
exports.DescribeScalingPlans$ = DescribeScalingPlans$;
|
|
286
881
|
exports.DescribeScalingPlansCommand = DescribeScalingPlansCommand;
|
|
882
|
+
exports.DescribeScalingPlansRequest$ = DescribeScalingPlansRequest$;
|
|
883
|
+
exports.DescribeScalingPlansResponse$ = DescribeScalingPlansResponse$;
|
|
287
884
|
exports.ForecastDataType = ForecastDataType;
|
|
885
|
+
exports.GetScalingPlanResourceForecastData$ = GetScalingPlanResourceForecastData$;
|
|
288
886
|
exports.GetScalingPlanResourceForecastDataCommand = GetScalingPlanResourceForecastDataCommand;
|
|
887
|
+
exports.GetScalingPlanResourceForecastDataRequest$ = GetScalingPlanResourceForecastDataRequest$;
|
|
888
|
+
exports.GetScalingPlanResourceForecastDataResponse$ = GetScalingPlanResourceForecastDataResponse$;
|
|
889
|
+
exports.InternalServiceException = InternalServiceException;
|
|
890
|
+
exports.InternalServiceException$ = InternalServiceException$;
|
|
891
|
+
exports.InvalidNextTokenException = InvalidNextTokenException;
|
|
892
|
+
exports.InvalidNextTokenException$ = InvalidNextTokenException$;
|
|
893
|
+
exports.LimitExceededException = LimitExceededException;
|
|
894
|
+
exports.LimitExceededException$ = LimitExceededException$;
|
|
289
895
|
exports.LoadMetricType = LoadMetricType;
|
|
896
|
+
exports.MetricDimension$ = MetricDimension$;
|
|
290
897
|
exports.MetricStatistic = MetricStatistic;
|
|
898
|
+
exports.ObjectNotFoundException = ObjectNotFoundException;
|
|
899
|
+
exports.ObjectNotFoundException$ = ObjectNotFoundException$;
|
|
291
900
|
exports.PolicyType = PolicyType;
|
|
901
|
+
exports.PredefinedLoadMetricSpecification$ = PredefinedLoadMetricSpecification$;
|
|
902
|
+
exports.PredefinedScalingMetricSpecification$ = PredefinedScalingMetricSpecification$;
|
|
292
903
|
exports.PredictiveScalingMaxCapacityBehavior = PredictiveScalingMaxCapacityBehavior;
|
|
293
904
|
exports.PredictiveScalingMode = PredictiveScalingMode;
|
|
294
905
|
exports.ScalableDimension = ScalableDimension;
|
|
906
|
+
exports.ScalingInstruction$ = ScalingInstruction$;
|
|
295
907
|
exports.ScalingMetricType = ScalingMetricType;
|
|
908
|
+
exports.ScalingPlan$ = ScalingPlan$;
|
|
909
|
+
exports.ScalingPlanResource$ = ScalingPlanResource$;
|
|
296
910
|
exports.ScalingPlanStatusCode = ScalingPlanStatusCode;
|
|
911
|
+
exports.ScalingPolicy$ = ScalingPolicy$;
|
|
297
912
|
exports.ScalingPolicyUpdateBehavior = ScalingPolicyUpdateBehavior;
|
|
298
913
|
exports.ScalingStatusCode = ScalingStatusCode;
|
|
299
914
|
exports.ServiceNamespace = ServiceNamespace;
|
|
915
|
+
exports.TagFilter$ = TagFilter$;
|
|
916
|
+
exports.TargetTrackingConfiguration$ = TargetTrackingConfiguration$;
|
|
917
|
+
exports.UpdateScalingPlan$ = UpdateScalingPlan$;
|
|
300
918
|
exports.UpdateScalingPlanCommand = UpdateScalingPlanCommand;
|
|
919
|
+
exports.UpdateScalingPlanRequest$ = UpdateScalingPlanRequest$;
|
|
920
|
+
exports.UpdateScalingPlanResponse$ = UpdateScalingPlanResponse$;
|
|
921
|
+
exports.ValidationException = ValidationException;
|
|
922
|
+
exports.ValidationException$ = ValidationException$;
|
|
923
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|