@aws-sdk/client-auto-scaling-plans 3.927.0 → 3.928.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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,12 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ??
30
+ new protocols_1.AwsJson1_1Protocol({
31
+ defaultNamespace: "com.amazonaws.autoscalingplans",
32
+ serviceTarget: "AnyScaleScalingPlannerFrontendService",
33
+ awsQueryCompatible: false,
34
+ }),
28
35
  serviceId: config?.serviceId ?? "Auto Scaling Plans",
29
36
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
37
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class AutoScalingPlansClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_CreateScalingPlanCommand, se_CreateScalingPlanCommand } from "../protocols/Aws_json1_1";
4
+ import { CreateScalingPlan } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class CreateScalingPlanCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AnyScaleScalingPlannerFrontendService", "CreateScalingPlan", {})
17
13
  .n("AutoScalingPlansClient", "CreateScalingPlanCommand")
18
- .f(void 0, void 0)
19
- .ser(se_CreateScalingPlanCommand)
20
- .de(de_CreateScalingPlanCommand)
14
+ .sc(CreateScalingPlan)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DeleteScalingPlanCommand, se_DeleteScalingPlanCommand } from "../protocols/Aws_json1_1";
4
+ import { DeleteScalingPlan } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DeleteScalingPlanCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AnyScaleScalingPlannerFrontendService", "DeleteScalingPlan", {})
17
13
  .n("AutoScalingPlansClient", "DeleteScalingPlanCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DeleteScalingPlanCommand)
20
- .de(de_DeleteScalingPlanCommand)
14
+ .sc(DeleteScalingPlan)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DescribeScalingPlanResourcesCommand, se_DescribeScalingPlanResourcesCommand, } from "../protocols/Aws_json1_1";
4
+ import { DescribeScalingPlanResources } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeScalingPlanResourcesCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AnyScaleScalingPlannerFrontendService", "DescribeScalingPlanResources", {})
17
13
  .n("AutoScalingPlansClient", "DescribeScalingPlanResourcesCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeScalingPlanResourcesCommand)
20
- .de(de_DescribeScalingPlanResourcesCommand)
14
+ .sc(DescribeScalingPlanResources)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DescribeScalingPlansCommand, se_DescribeScalingPlansCommand } from "../protocols/Aws_json1_1";
4
+ import { DescribeScalingPlans } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeScalingPlansCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AnyScaleScalingPlannerFrontendService", "DescribeScalingPlans", {})
17
13
  .n("AutoScalingPlansClient", "DescribeScalingPlansCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeScalingPlansCommand)
20
- .de(de_DescribeScalingPlansCommand)
14
+ .sc(DescribeScalingPlans)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetScalingPlanResourceForecastDataCommand, se_GetScalingPlanResourceForecastDataCommand, } from "../protocols/Aws_json1_1";
4
+ import { GetScalingPlanResourceForecastData } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetScalingPlanResourceForecastDataCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AnyScaleScalingPlannerFrontendService", "GetScalingPlanResourceForecastData", {})
17
13
  .n("AutoScalingPlansClient", "GetScalingPlanResourceForecastDataCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetScalingPlanResourceForecastDataCommand)
20
- .de(de_GetScalingPlanResourceForecastDataCommand)
14
+ .sc(GetScalingPlanResourceForecastData)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateScalingPlanCommand, se_UpdateScalingPlanCommand } from "../protocols/Aws_json1_1";
4
+ import { UpdateScalingPlan } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateScalingPlanCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("AnyScaleScalingPlannerFrontendService", "UpdateScalingPlan", {})
17
13
  .n("AutoScalingPlansClient", "UpdateScalingPlanCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateScalingPlanCommand)
20
- .de(de_UpdateScalingPlanCommand)
14
+ .sc(UpdateScalingPlan)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,12 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ??
27
+ new AwsJson1_1Protocol({
28
+ defaultNamespace: "com.amazonaws.autoscalingplans",
29
+ serviceTarget: "AnyScaleScalingPlannerFrontendService",
30
+ awsQueryCompatible: false,
31
+ }),
25
32
  serviceId: config?.serviceId ?? "Auto Scaling Plans",
26
33
  urlParser: config?.urlParser ?? parseUrl,
27
34
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -0,0 +1,395 @@
1
+ const _AS = "ApplicationSource";
2
+ const _ASp = "ApplicationSources";
3
+ const _CFSARN = "CloudFormationStackARN";
4
+ const _CLMS = "CustomizedLoadMetricSpecification";
5
+ const _CSMS = "CustomizedScalingMetricSpecification";
6
+ const _CSP = "CreateScalingPlan";
7
+ const _CSPR = "CreateScalingPlanRequest";
8
+ const _CSPRr = "CreateScalingPlanResponse";
9
+ const _CT = "CreationTime";
10
+ const _CUE = "ConcurrentUpdateException";
11
+ const _D = "Dimensions";
12
+ const _DDS = "DisableDynamicScaling";
13
+ const _DSI = "DisableScaleIn";
14
+ const _DSP = "DeleteScalingPlan";
15
+ const _DSPR = "DeleteScalingPlanRequest";
16
+ const _DSPRR = "DescribeScalingPlanResourcesRequest";
17
+ const _DSPRRe = "DescribeScalingPlanResourcesResponse";
18
+ const _DSPRe = "DeleteScalingPlanResponse";
19
+ const _DSPRes = "DescribeScalingPlansRequest";
20
+ const _DSPResc = "DescribeScalingPlansResponse";
21
+ const _DSPRescr = "DescribeScalingPlanResources";
22
+ const _DSPe = "DescribeScalingPlans";
23
+ const _Da = "Datapoint";
24
+ const _Dat = "Datapoints";
25
+ const _EIW = "EstimatedInstanceWarmup";
26
+ const _ET = "EndTime";
27
+ const _FDT = "ForecastDataType";
28
+ const _GSPRFD = "GetScalingPlanResourceForecastData";
29
+ const _GSPRFDR = "GetScalingPlanResourceForecastDataRequest";
30
+ const _GSPRFDRe = "GetScalingPlanResourceForecastDataResponse";
31
+ const _INTE = "InvalidNextTokenException";
32
+ const _ISE = "InternalServiceException";
33
+ const _K = "Key";
34
+ const _LEE = "LimitExceededException";
35
+ const _M = "Message";
36
+ const _MC = "MinCapacity";
37
+ const _MCa = "MaxCapacity";
38
+ const _MD = "MetricDimension";
39
+ const _MDe = "MetricDimensions";
40
+ const _MN = "MetricName";
41
+ const _MR = "MaxResults";
42
+ const _N = "Namespace";
43
+ const _NT = "NextToken";
44
+ const _Na = "Name";
45
+ const _ONFE = "ObjectNotFoundException";
46
+ const _PLMS = "PredefinedLoadMetricSpecification";
47
+ const _PLMT = "PredefinedLoadMetricType";
48
+ const _PN = "PolicyName";
49
+ const _PSM = "PredictiveScalingMode";
50
+ const _PSMCB = "PredictiveScalingMaxCapacityBehavior";
51
+ const _PSMCBr = "PredictiveScalingMaxCapacityBuffer";
52
+ const _PSMS = "PredefinedScalingMetricSpecification";
53
+ const _PSMT = "PredefinedScalingMetricType";
54
+ const _PT = "PolicyType";
55
+ const _RI = "ResourceId";
56
+ const _RL = "ResourceLabel";
57
+ const _S = "Statistic";
58
+ const _SABT = "ScheduledActionBufferTime";
59
+ const _SC = "StatusCode";
60
+ const _SD = "ScalableDimension";
61
+ const _SI = "ScalingInstructions";
62
+ const _SIC = "ScaleInCooldown";
63
+ const _SIc = "ScalingInstruction";
64
+ const _SM = "StatusMessage";
65
+ const _SN = "ServiceNamespace";
66
+ const _SOC = "ScaleOutCooldown";
67
+ const _SP = "ScalingPlans";
68
+ const _SPN = "ScalingPlanName";
69
+ const _SPNc = "ScalingPlanNames";
70
+ const _SPR = "ScalingPlanResources";
71
+ const _SPRc = "ScalingPlanResource";
72
+ const _SPUB = "ScalingPolicyUpdateBehavior";
73
+ const _SPV = "ScalingPlanVersion";
74
+ const _SPc = "ScalingPlan";
75
+ const _SPca = "ScalingPolicies";
76
+ const _SPcal = "ScalingPolicy";
77
+ const _SSC = "ScalingStatusCode";
78
+ const _SSM = "ScalingStatusMessage";
79
+ const _SST = "StatusStartTime";
80
+ const _ST = "StartTime";
81
+ const _T = "Timestamp";
82
+ const _TF = "TagFilters";
83
+ const _TFa = "TagFilter";
84
+ const _TTC = "TargetTrackingConfigurations";
85
+ const _TTCa = "TargetTrackingConfiguration";
86
+ const _TV = "TargetValue";
87
+ const _U = "Unit";
88
+ const _USP = "UpdateScalingPlan";
89
+ const _USPR = "UpdateScalingPlanRequest";
90
+ const _USPRp = "UpdateScalingPlanResponse";
91
+ const _V = "Value";
92
+ const _VE = "ValidationException";
93
+ const _Va = "Values";
94
+ const _aQE = "awsQueryError";
95
+ const _c = "client";
96
+ const _e = "error";
97
+ const _hE = "httpError";
98
+ const _s = "server";
99
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.autoscalingplans";
100
+ const n0 = "com.amazonaws.autoscalingplans";
101
+ import { TypeRegistry } from "@smithy/core/schema";
102
+ import { AutoScalingPlansServiceException as __AutoScalingPlansServiceException } from "../models/AutoScalingPlansServiceException";
103
+ import { ConcurrentUpdateException as __ConcurrentUpdateException, InternalServiceException as __InternalServiceException, InvalidNextTokenException as __InvalidNextTokenException, LimitExceededException as __LimitExceededException, ObjectNotFoundException as __ObjectNotFoundException, ValidationException as __ValidationException, } from "../models/index";
104
+ export var ApplicationSource = [3, n0, _AS, 0, [_CFSARN, _TF], [0, () => TagFilters]];
105
+ export var ConcurrentUpdateException = [
106
+ -3,
107
+ n0,
108
+ _CUE,
109
+ {
110
+ [_e]: _s,
111
+ [_hE]: 500,
112
+ [_aQE]: [`ConcurrentUpdateException`, 500],
113
+ },
114
+ [_M],
115
+ [0],
116
+ ];
117
+ TypeRegistry.for(n0).registerError(ConcurrentUpdateException, __ConcurrentUpdateException);
118
+ export var CreateScalingPlanRequest = [
119
+ 3,
120
+ n0,
121
+ _CSPR,
122
+ 0,
123
+ [_SPN, _AS, _SI],
124
+ [0, () => ApplicationSource, () => ScalingInstructions],
125
+ ];
126
+ export var CreateScalingPlanResponse = [3, n0, _CSPRr, 0, [_SPV], [1]];
127
+ export var CustomizedLoadMetricSpecification = [
128
+ 3,
129
+ n0,
130
+ _CLMS,
131
+ 0,
132
+ [_MN, _N, _D, _S, _U],
133
+ [0, 0, () => MetricDimensions, 0, 0],
134
+ ];
135
+ export var CustomizedScalingMetricSpecification = [
136
+ 3,
137
+ n0,
138
+ _CSMS,
139
+ 0,
140
+ [_MN, _N, _D, _S, _U],
141
+ [0, 0, () => MetricDimensions, 0, 0],
142
+ ];
143
+ export var Datapoint = [3, n0, _Da, 0, [_T, _V], [4, 1]];
144
+ export var DeleteScalingPlanRequest = [3, n0, _DSPR, 0, [_SPN, _SPV], [0, 1]];
145
+ export var DeleteScalingPlanResponse = [3, n0, _DSPRe, 0, [], []];
146
+ export var DescribeScalingPlanResourcesRequest = [
147
+ 3,
148
+ n0,
149
+ _DSPRR,
150
+ 0,
151
+ [_SPN, _SPV, _MR, _NT],
152
+ [0, 1, 1, 0],
153
+ ];
154
+ export var DescribeScalingPlanResourcesResponse = [
155
+ 3,
156
+ n0,
157
+ _DSPRRe,
158
+ 0,
159
+ [_SPR, _NT],
160
+ [() => ScalingPlanResources, 0],
161
+ ];
162
+ export var DescribeScalingPlansRequest = [
163
+ 3,
164
+ n0,
165
+ _DSPRes,
166
+ 0,
167
+ [_SPNc, _SPV, _ASp, _MR, _NT],
168
+ [64 | 0, 1, () => ApplicationSources, 1, 0],
169
+ ];
170
+ export var DescribeScalingPlansResponse = [
171
+ 3,
172
+ n0,
173
+ _DSPResc,
174
+ 0,
175
+ [_SP, _NT],
176
+ [() => ScalingPlans, 0],
177
+ ];
178
+ export var GetScalingPlanResourceForecastDataRequest = [
179
+ 3,
180
+ n0,
181
+ _GSPRFDR,
182
+ 0,
183
+ [_SPN, _SPV, _SN, _RI, _SD, _FDT, _ST, _ET],
184
+ [0, 1, 0, 0, 0, 0, 4, 4],
185
+ ];
186
+ export var GetScalingPlanResourceForecastDataResponse = [
187
+ 3,
188
+ n0,
189
+ _GSPRFDRe,
190
+ 0,
191
+ [_Dat],
192
+ [() => Datapoints],
193
+ ];
194
+ export var InternalServiceException = [
195
+ -3,
196
+ n0,
197
+ _ISE,
198
+ {
199
+ [_e]: _s,
200
+ [_hE]: 500,
201
+ [_aQE]: [`InternalServiceException`, 500],
202
+ },
203
+ [_M],
204
+ [0],
205
+ ];
206
+ TypeRegistry.for(n0).registerError(InternalServiceException, __InternalServiceException);
207
+ export var InvalidNextTokenException = [
208
+ -3,
209
+ n0,
210
+ _INTE,
211
+ {
212
+ [_e]: _c,
213
+ [_hE]: 400,
214
+ [_aQE]: [`InvalidNextTokenException`, 400],
215
+ },
216
+ [_M],
217
+ [0],
218
+ ];
219
+ TypeRegistry.for(n0).registerError(InvalidNextTokenException, __InvalidNextTokenException);
220
+ export var LimitExceededException = [
221
+ -3,
222
+ n0,
223
+ _LEE,
224
+ {
225
+ [_e]: _c,
226
+ [_hE]: 400,
227
+ [_aQE]: [`LimitExceededException`, 400],
228
+ },
229
+ [_M],
230
+ [0],
231
+ ];
232
+ TypeRegistry.for(n0).registerError(LimitExceededException, __LimitExceededException);
233
+ export var MetricDimension = [3, n0, _MD, 0, [_Na, _V], [0, 0]];
234
+ export var ObjectNotFoundException = [
235
+ -3,
236
+ n0,
237
+ _ONFE,
238
+ {
239
+ [_e]: _c,
240
+ [_hE]: 400,
241
+ [_aQE]: [`ObjectNotFoundException`, 400],
242
+ },
243
+ [_M],
244
+ [0],
245
+ ];
246
+ TypeRegistry.for(n0).registerError(ObjectNotFoundException, __ObjectNotFoundException);
247
+ export var PredefinedLoadMetricSpecification = [3, n0, _PLMS, 0, [_PLMT, _RL], [0, 0]];
248
+ export var PredefinedScalingMetricSpecification = [3, n0, _PSMS, 0, [_PSMT, _RL], [0, 0]];
249
+ export var ScalingInstruction = [
250
+ 3,
251
+ n0,
252
+ _SIc,
253
+ 0,
254
+ [_SN, _RI, _SD, _MC, _MCa, _TTC, _PLMS, _CLMS, _SABT, _PSMCB, _PSMCBr, _PSM, _SPUB, _DDS],
255
+ [
256
+ 0,
257
+ 0,
258
+ 0,
259
+ 1,
260
+ 1,
261
+ () => TargetTrackingConfigurations,
262
+ () => PredefinedLoadMetricSpecification,
263
+ () => CustomizedLoadMetricSpecification,
264
+ 1,
265
+ 0,
266
+ 1,
267
+ 0,
268
+ 0,
269
+ 2,
270
+ ],
271
+ ];
272
+ export var ScalingPlan = [
273
+ 3,
274
+ n0,
275
+ _SPc,
276
+ 0,
277
+ [_SPN, _SPV, _AS, _SI, _SC, _SM, _SST, _CT],
278
+ [0, 1, () => ApplicationSource, () => ScalingInstructions, 0, 0, 4, 4],
279
+ ];
280
+ export var ScalingPlanResource = [
281
+ 3,
282
+ n0,
283
+ _SPRc,
284
+ 0,
285
+ [_SPN, _SPV, _SN, _RI, _SD, _SPca, _SSC, _SSM],
286
+ [0, 1, 0, 0, 0, () => ScalingPolicies, 0, 0],
287
+ ];
288
+ export var ScalingPolicy = [
289
+ 3,
290
+ n0,
291
+ _SPcal,
292
+ 0,
293
+ [_PN, _PT, _TTCa],
294
+ [0, 0, () => TargetTrackingConfiguration],
295
+ ];
296
+ export var TagFilter = [3, n0, _TFa, 0, [_K, _Va], [0, 64 | 0]];
297
+ export var TargetTrackingConfiguration = [
298
+ 3,
299
+ n0,
300
+ _TTCa,
301
+ 0,
302
+ [_PSMS, _CSMS, _TV, _DSI, _SOC, _SIC, _EIW],
303
+ [() => PredefinedScalingMetricSpecification, () => CustomizedScalingMetricSpecification, 1, 2, 1, 1, 1],
304
+ ];
305
+ export var UpdateScalingPlanRequest = [
306
+ 3,
307
+ n0,
308
+ _USPR,
309
+ 0,
310
+ [_SPN, _SPV, _AS, _SI],
311
+ [0, 1, () => ApplicationSource, () => ScalingInstructions],
312
+ ];
313
+ export var UpdateScalingPlanResponse = [3, n0, _USPRp, 0, [], []];
314
+ export var ValidationException = [
315
+ -3,
316
+ n0,
317
+ _VE,
318
+ {
319
+ [_e]: _c,
320
+ [_hE]: 400,
321
+ [_aQE]: [`ValidationException`, 400],
322
+ },
323
+ [_M],
324
+ [0],
325
+ ];
326
+ TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
327
+ export var __Unit = "unit";
328
+ export var AutoScalingPlansServiceException = [
329
+ -3,
330
+ _sm,
331
+ "AutoScalingPlansServiceException",
332
+ 0,
333
+ [],
334
+ [],
335
+ ];
336
+ TypeRegistry.for(_sm).registerError(AutoScalingPlansServiceException, __AutoScalingPlansServiceException);
337
+ export var ApplicationSources = [1, n0, _ASp, 0, () => ApplicationSource];
338
+ export var Datapoints = [1, n0, _Dat, 0, () => Datapoint];
339
+ export var MetricDimensions = [1, n0, _MDe, 0, () => MetricDimension];
340
+ export var ScalingInstructions = [1, n0, _SI, 0, () => ScalingInstruction];
341
+ export var ScalingPlanNames = 64 | 0;
342
+ export var ScalingPlanResources = [1, n0, _SPR, 0, () => ScalingPlanResource];
343
+ export var ScalingPlans = [1, n0, _SP, 0, () => ScalingPlan];
344
+ export var ScalingPolicies = [1, n0, _SPca, 0, () => ScalingPolicy];
345
+ export var TagFilters = [1, n0, _TF, 0, () => TagFilter];
346
+ export var TagValues = 64 | 0;
347
+ export var TargetTrackingConfigurations = [1, n0, _TTC, 0, () => TargetTrackingConfiguration];
348
+ export var CreateScalingPlan = [
349
+ 9,
350
+ n0,
351
+ _CSP,
352
+ 0,
353
+ () => CreateScalingPlanRequest,
354
+ () => CreateScalingPlanResponse,
355
+ ];
356
+ export var DeleteScalingPlan = [
357
+ 9,
358
+ n0,
359
+ _DSP,
360
+ 0,
361
+ () => DeleteScalingPlanRequest,
362
+ () => DeleteScalingPlanResponse,
363
+ ];
364
+ export var DescribeScalingPlanResources = [
365
+ 9,
366
+ n0,
367
+ _DSPRescr,
368
+ 0,
369
+ () => DescribeScalingPlanResourcesRequest,
370
+ () => DescribeScalingPlanResourcesResponse,
371
+ ];
372
+ export var DescribeScalingPlans = [
373
+ 9,
374
+ n0,
375
+ _DSPe,
376
+ 0,
377
+ () => DescribeScalingPlansRequest,
378
+ () => DescribeScalingPlansResponse,
379
+ ];
380
+ export var GetScalingPlanResourceForecastData = [
381
+ 9,
382
+ n0,
383
+ _GSPRFD,
384
+ 0,
385
+ () => GetScalingPlanResourceForecastDataRequest,
386
+ () => GetScalingPlanResourceForecastDataResponse,
387
+ ];
388
+ export var UpdateScalingPlan = [
389
+ 9,
390
+ n0,
391
+ _USP,
392
+ 0,
393
+ () => UpdateScalingPlanRequest,
394
+ () => UpdateScalingPlanResponse,
395
+ ];
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { CreateScalingPlanCommandInput, CreateScalingPlanCommandOutput } from "./commands/CreateScalingPlanCommand";
11
11
  import { DeleteScalingPlanCommandInput, DeleteScalingPlanCommandOutput } from "./commands/DeleteScalingPlanCommand";
@@ -147,6 +147,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
147
147
  * Optional extensions
148
148
  */
149
149
  extensions?: RuntimeExtension[];
150
+ /**
151
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
152
+ * may be overridden. A default will always be set by the client.
153
+ * Available options depend on the service's supported protocols and will not be validated by
154
+ * the client.
155
+ * @alpha
156
+ *
157
+ */
158
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
150
159
  /**
151
160
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
152
161
  */
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: AutoScalingPlansClientConfig) =>
29
29
  profile?: string;
30
30
  logger: import("@smithy/types").Logger;
31
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
34
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: AutoScalingPlansClientConfig) =>
31
31
  profile?: string;
32
32
  logger: import("@smithy/types").Logger;
33
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
35
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
36
37
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: AutoScalingPlansClientConfig) =>
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: AutoScalingPlansClientConfig) =>
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").AutoScalingPlansHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;