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