@aws-sdk/client-auto-scaling-plans 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +12 -6
- package/dist-es/AutoScalingPlans.js +26 -33
- package/dist-es/AutoScalingPlansClient.js +22 -28
- package/dist-es/commands/CreateScalingPlanCommand.js +21 -28
- package/dist-es/commands/DeleteScalingPlanCommand.js +21 -28
- package/dist-es/commands/DescribeScalingPlanResourcesCommand.js +21 -28
- package/dist-es/commands/DescribeScalingPlansCommand.js +21 -28
- package/dist-es/commands/GetScalingPlanResourceForecastDataCommand.js +21 -28
- package/dist-es/commands/UpdateScalingPlanCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/AutoScalingPlansServiceException.js +5 -10
- package/dist-es/models/models_0.js +147 -98
- package/dist-es/protocols/Aws_json1_1.js +622 -687
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-auto-scaling-plans
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-auto-scaling-plans
|
|
@@ -82,7 +82,7 @@ exports.deserializeAws_json1_1CreateScalingPlanCommand = deserializeAws_json1_1C
|
|
|
82
82
|
const deserializeAws_json1_1CreateScalingPlanCommandError = async (output, context) => {
|
|
83
83
|
const parsedOutput = {
|
|
84
84
|
...output,
|
|
85
|
-
body: await
|
|
85
|
+
body: await parseErrorBody(output.body, context),
|
|
86
86
|
};
|
|
87
87
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
88
88
|
switch (errorCode) {
|
|
@@ -125,7 +125,7 @@ exports.deserializeAws_json1_1DeleteScalingPlanCommand = deserializeAws_json1_1D
|
|
|
125
125
|
const deserializeAws_json1_1DeleteScalingPlanCommandError = async (output, context) => {
|
|
126
126
|
const parsedOutput = {
|
|
127
127
|
...output,
|
|
128
|
-
body: await
|
|
128
|
+
body: await parseErrorBody(output.body, context),
|
|
129
129
|
};
|
|
130
130
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
131
131
|
switch (errorCode) {
|
|
@@ -168,7 +168,7 @@ exports.deserializeAws_json1_1DescribeScalingPlanResourcesCommand = deserializeA
|
|
|
168
168
|
const deserializeAws_json1_1DescribeScalingPlanResourcesCommandError = async (output, context) => {
|
|
169
169
|
const parsedOutput = {
|
|
170
170
|
...output,
|
|
171
|
-
body: await
|
|
171
|
+
body: await parseErrorBody(output.body, context),
|
|
172
172
|
};
|
|
173
173
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
174
174
|
switch (errorCode) {
|
|
@@ -211,7 +211,7 @@ exports.deserializeAws_json1_1DescribeScalingPlansCommand = deserializeAws_json1
|
|
|
211
211
|
const deserializeAws_json1_1DescribeScalingPlansCommandError = async (output, context) => {
|
|
212
212
|
const parsedOutput = {
|
|
213
213
|
...output,
|
|
214
|
-
body: await
|
|
214
|
+
body: await parseErrorBody(output.body, context),
|
|
215
215
|
};
|
|
216
216
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
217
217
|
switch (errorCode) {
|
|
@@ -254,7 +254,7 @@ exports.deserializeAws_json1_1GetScalingPlanResourceForecastDataCommand = deseri
|
|
|
254
254
|
const deserializeAws_json1_1GetScalingPlanResourceForecastDataCommandError = async (output, context) => {
|
|
255
255
|
const parsedOutput = {
|
|
256
256
|
...output,
|
|
257
|
-
body: await
|
|
257
|
+
body: await parseErrorBody(output.body, context),
|
|
258
258
|
};
|
|
259
259
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
260
260
|
switch (errorCode) {
|
|
@@ -291,7 +291,7 @@ exports.deserializeAws_json1_1UpdateScalingPlanCommand = deserializeAws_json1_1U
|
|
|
291
291
|
const deserializeAws_json1_1UpdateScalingPlanCommandError = async (output, context) => {
|
|
292
292
|
const parsedOutput = {
|
|
293
293
|
...output,
|
|
294
|
-
body: await
|
|
294
|
+
body: await parseErrorBody(output.body, context),
|
|
295
295
|
};
|
|
296
296
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
297
297
|
switch (errorCode) {
|
|
@@ -912,6 +912,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
912
912
|
}
|
|
913
913
|
return {};
|
|
914
914
|
});
|
|
915
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
916
|
+
var _a;
|
|
917
|
+
const value = await parseBody(errorBody, context);
|
|
918
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
919
|
+
return value;
|
|
920
|
+
};
|
|
915
921
|
const loadRestJsonErrorCode = (output, data) => {
|
|
916
922
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
917
923
|
const sanitizeErrorCode = (rawValue) => {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { AutoScalingPlansClient } from "./AutoScalingPlansClient";
|
|
3
2
|
import { CreateScalingPlanCommand, } from "./commands/CreateScalingPlanCommand";
|
|
4
3
|
import { DeleteScalingPlanCommand, } from "./commands/DeleteScalingPlanCommand";
|
|
@@ -6,95 +5,89 @@ import { DescribeScalingPlanResourcesCommand, } from "./commands/DescribeScaling
|
|
|
6
5
|
import { DescribeScalingPlansCommand, } from "./commands/DescribeScalingPlansCommand";
|
|
7
6
|
import { GetScalingPlanResourceForecastDataCommand, } from "./commands/GetScalingPlanResourceForecastDataCommand";
|
|
8
7
|
import { UpdateScalingPlanCommand, } from "./commands/UpdateScalingPlanCommand";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
13
|
-
}
|
|
14
|
-
AutoScalingPlans.prototype.createScalingPlan = function (args, optionsOrCb, cb) {
|
|
15
|
-
var command = new CreateScalingPlanCommand(args);
|
|
8
|
+
export class AutoScalingPlans extends AutoScalingPlansClient {
|
|
9
|
+
createScalingPlan(args, optionsOrCb, cb) {
|
|
10
|
+
const command = new CreateScalingPlanCommand(args);
|
|
16
11
|
if (typeof optionsOrCb === "function") {
|
|
17
12
|
this.send(command, optionsOrCb);
|
|
18
13
|
}
|
|
19
14
|
else if (typeof cb === "function") {
|
|
20
15
|
if (typeof optionsOrCb !== "object")
|
|
21
|
-
throw new Error(
|
|
16
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
22
17
|
this.send(command, optionsOrCb || {}, cb);
|
|
23
18
|
}
|
|
24
19
|
else {
|
|
25
20
|
return this.send(command, optionsOrCb);
|
|
26
21
|
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
}
|
|
23
|
+
deleteScalingPlan(args, optionsOrCb, cb) {
|
|
24
|
+
const command = new DeleteScalingPlanCommand(args);
|
|
30
25
|
if (typeof optionsOrCb === "function") {
|
|
31
26
|
this.send(command, optionsOrCb);
|
|
32
27
|
}
|
|
33
28
|
else if (typeof cb === "function") {
|
|
34
29
|
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(
|
|
30
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
31
|
this.send(command, optionsOrCb || {}, cb);
|
|
37
32
|
}
|
|
38
33
|
else {
|
|
39
34
|
return this.send(command, optionsOrCb);
|
|
40
35
|
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
36
|
+
}
|
|
37
|
+
describeScalingPlanResources(args, optionsOrCb, cb) {
|
|
38
|
+
const command = new DescribeScalingPlanResourcesCommand(args);
|
|
44
39
|
if (typeof optionsOrCb === "function") {
|
|
45
40
|
this.send(command, optionsOrCb);
|
|
46
41
|
}
|
|
47
42
|
else if (typeof cb === "function") {
|
|
48
43
|
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(
|
|
44
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
45
|
this.send(command, optionsOrCb || {}, cb);
|
|
51
46
|
}
|
|
52
47
|
else {
|
|
53
48
|
return this.send(command, optionsOrCb);
|
|
54
49
|
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
50
|
+
}
|
|
51
|
+
describeScalingPlans(args, optionsOrCb, cb) {
|
|
52
|
+
const command = new DescribeScalingPlansCommand(args);
|
|
58
53
|
if (typeof optionsOrCb === "function") {
|
|
59
54
|
this.send(command, optionsOrCb);
|
|
60
55
|
}
|
|
61
56
|
else if (typeof cb === "function") {
|
|
62
57
|
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(
|
|
58
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
59
|
this.send(command, optionsOrCb || {}, cb);
|
|
65
60
|
}
|
|
66
61
|
else {
|
|
67
62
|
return this.send(command, optionsOrCb);
|
|
68
63
|
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
64
|
+
}
|
|
65
|
+
getScalingPlanResourceForecastData(args, optionsOrCb, cb) {
|
|
66
|
+
const command = new GetScalingPlanResourceForecastDataCommand(args);
|
|
72
67
|
if (typeof optionsOrCb === "function") {
|
|
73
68
|
this.send(command, optionsOrCb);
|
|
74
69
|
}
|
|
75
70
|
else if (typeof cb === "function") {
|
|
76
71
|
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(
|
|
72
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
73
|
this.send(command, optionsOrCb || {}, cb);
|
|
79
74
|
}
|
|
80
75
|
else {
|
|
81
76
|
return this.send(command, optionsOrCb);
|
|
82
77
|
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
78
|
+
}
|
|
79
|
+
updateScalingPlan(args, optionsOrCb, cb) {
|
|
80
|
+
const command = new UpdateScalingPlanCommand(args);
|
|
86
81
|
if (typeof optionsOrCb === "function") {
|
|
87
82
|
this.send(command, optionsOrCb);
|
|
88
83
|
}
|
|
89
84
|
else if (typeof cb === "function") {
|
|
90
85
|
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(
|
|
86
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
87
|
this.send(command, optionsOrCb || {}, cb);
|
|
93
88
|
}
|
|
94
89
|
else {
|
|
95
90
|
return this.send(command, optionsOrCb);
|
|
96
91
|
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
}(AutoScalingPlansClient));
|
|
100
|
-
export { AutoScalingPlans };
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
3
2
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
4
3
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
|
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
10
|
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_this.middlewareStack.use(getAwsAuthPlugin(_this.config));
|
|
31
|
-
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
32
|
-
return _this;
|
|
11
|
+
export class AutoScalingPlansClient extends __Client {
|
|
12
|
+
constructor(configuration) {
|
|
13
|
+
const _config_0 = __getRuntimeConfig(configuration);
|
|
14
|
+
const _config_1 = resolveRegionConfig(_config_0);
|
|
15
|
+
const _config_2 = resolveEndpointsConfig(_config_1);
|
|
16
|
+
const _config_3 = resolveRetryConfig(_config_2);
|
|
17
|
+
const _config_4 = resolveHostHeaderConfig(_config_3);
|
|
18
|
+
const _config_5 = resolveAwsAuthConfig(_config_4);
|
|
19
|
+
const _config_6 = resolveUserAgentConfig(_config_5);
|
|
20
|
+
super(_config_6);
|
|
21
|
+
this.config = _config_6;
|
|
22
|
+
this.middlewareStack.use(getRetryPlugin(this.config));
|
|
23
|
+
this.middlewareStack.use(getContentLengthPlugin(this.config));
|
|
24
|
+
this.middlewareStack.use(getHostHeaderPlugin(this.config));
|
|
25
|
+
this.middlewareStack.use(getLoggerPlugin(this.config));
|
|
26
|
+
this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
|
|
27
|
+
this.middlewareStack.use(getAwsAuthPlugin(this.config));
|
|
28
|
+
this.middlewareStack.use(getUserAgentPlugin(this.config));
|
|
33
29
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}(__Client));
|
|
39
|
-
export { AutoScalingPlansClient };
|
|
30
|
+
destroy() {
|
|
31
|
+
super.destroy();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { CreateScalingPlanRequestFilterSensitiveLog, CreateScalingPlanResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1CreateScalingPlanCommand, serializeAws_json1_1CreateScalingPlanCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class CreateScalingPlanCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AutoScalingPlansClient";
|
|
15
|
+
const commandName = "CreateScalingPlanCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: CreateScalingPlanRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: CreateScalingPlanResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
CreateScalingPlanCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_1CreateScalingPlanCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1CreateScalingPlanCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { CreateScalingPlanCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DeleteScalingPlanRequestFilterSensitiveLog, DeleteScalingPlanResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1DeleteScalingPlanCommand, serializeAws_json1_1DeleteScalingPlanCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DeleteScalingPlanCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AutoScalingPlansClient";
|
|
15
|
+
const commandName = "DeleteScalingPlanCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DeleteScalingPlanRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DeleteScalingPlanResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DeleteScalingPlanCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_1DeleteScalingPlanCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1DeleteScalingPlanCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DeleteScalingPlanCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DescribeScalingPlanResourcesRequestFilterSensitiveLog, DescribeScalingPlanResourcesResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1DescribeScalingPlanResourcesCommand, serializeAws_json1_1DescribeScalingPlanResourcesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DescribeScalingPlanResourcesCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AutoScalingPlansClient";
|
|
15
|
+
const commandName = "DescribeScalingPlanResourcesCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DescribeScalingPlanResourcesRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DescribeScalingPlanResourcesResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DescribeScalingPlanResourcesCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_1DescribeScalingPlanResourcesCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1DescribeScalingPlanResourcesCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DescribeScalingPlanResourcesCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { DescribeScalingPlansRequestFilterSensitiveLog, DescribeScalingPlansResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1DescribeScalingPlansCommand, serializeAws_json1_1DescribeScalingPlansCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class DescribeScalingPlansCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AutoScalingPlansClient";
|
|
15
|
+
const commandName = "DescribeScalingPlansCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: DescribeScalingPlansRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: DescribeScalingPlansResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
DescribeScalingPlansCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_1DescribeScalingPlansCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1DescribeScalingPlansCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { DescribeScalingPlansCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,39 +1,32 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
1
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
2
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { GetScalingPlanResourceForecastDataRequestFilterSensitiveLog, GetScalingPlanResourceForecastDataResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
4
|
import { deserializeAws_json1_1GetScalingPlanResourceForecastDataCommand, serializeAws_json1_1GetScalingPlanResourceForecastDataCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
_this.input = input;
|
|
11
|
-
return _this;
|
|
5
|
+
export class GetScalingPlanResourceForecastDataCommand extends $Command {
|
|
6
|
+
constructor(input) {
|
|
7
|
+
super();
|
|
8
|
+
this.input = input;
|
|
12
9
|
}
|
|
13
|
-
|
|
10
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
11
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
logger
|
|
21
|
-
clientName
|
|
22
|
-
commandName
|
|
12
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
13
|
+
const { logger } = configuration;
|
|
14
|
+
const clientName = "AutoScalingPlansClient";
|
|
15
|
+
const commandName = "GetScalingPlanResourceForecastDataCommand";
|
|
16
|
+
const handlerExecutionContext = {
|
|
17
|
+
logger,
|
|
18
|
+
clientName,
|
|
19
|
+
commandName,
|
|
23
20
|
inputFilterSensitiveLog: GetScalingPlanResourceForecastDataRequestFilterSensitiveLog,
|
|
24
21
|
outputFilterSensitiveLog: GetScalingPlanResourceForecastDataResponseFilterSensitiveLog,
|
|
25
22
|
};
|
|
26
|
-
|
|
27
|
-
return stack.resolve(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
GetScalingPlanResourceForecastDataCommand.prototype.serialize = function (input, context) {
|
|
23
|
+
const { requestHandler } = configuration;
|
|
24
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
25
|
+
}
|
|
26
|
+
serialize(input, context) {
|
|
32
27
|
return serializeAws_json1_1GetScalingPlanResourceForecastDataCommand(input, context);
|
|
33
|
-
}
|
|
34
|
-
|
|
28
|
+
}
|
|
29
|
+
deserialize(output, context) {
|
|
35
30
|
return deserializeAws_json1_1GetScalingPlanResourceForecastDataCommand(output, context);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
}($Command));
|
|
39
|
-
export { GetScalingPlanResourceForecastDataCommand };
|
|
31
|
+
}
|
|
32
|
+
}
|