@aws-sdk/client-auto-scaling-plans 3.312.0 → 3.316.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.
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AutoScalingPlans = void 0;
4
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
4
5
  const AutoScalingPlansClient_1 = require("./AutoScalingPlansClient");
5
6
  const CreateScalingPlanCommand_1 = require("./commands/CreateScalingPlanCommand");
6
7
  const DeleteScalingPlanCommand_1 = require("./commands/DeleteScalingPlanCommand");
@@ -8,90 +9,15 @@ const DescribeScalingPlanResourcesCommand_1 = require("./commands/DescribeScalin
8
9
  const DescribeScalingPlansCommand_1 = require("./commands/DescribeScalingPlansCommand");
9
10
  const GetScalingPlanResourceForecastDataCommand_1 = require("./commands/GetScalingPlanResourceForecastDataCommand");
10
11
  const UpdateScalingPlanCommand_1 = require("./commands/UpdateScalingPlanCommand");
12
+ const commands = {
13
+ CreateScalingPlanCommand: CreateScalingPlanCommand_1.CreateScalingPlanCommand,
14
+ DeleteScalingPlanCommand: DeleteScalingPlanCommand_1.DeleteScalingPlanCommand,
15
+ DescribeScalingPlanResourcesCommand: DescribeScalingPlanResourcesCommand_1.DescribeScalingPlanResourcesCommand,
16
+ DescribeScalingPlansCommand: DescribeScalingPlansCommand_1.DescribeScalingPlansCommand,
17
+ GetScalingPlanResourceForecastDataCommand: GetScalingPlanResourceForecastDataCommand_1.GetScalingPlanResourceForecastDataCommand,
18
+ UpdateScalingPlanCommand: UpdateScalingPlanCommand_1.UpdateScalingPlanCommand,
19
+ };
11
20
  class AutoScalingPlans extends AutoScalingPlansClient_1.AutoScalingPlansClient {
12
- createScalingPlan(args, optionsOrCb, cb) {
13
- const command = new CreateScalingPlanCommand_1.CreateScalingPlanCommand(args);
14
- if (typeof optionsOrCb === "function") {
15
- this.send(command, optionsOrCb);
16
- }
17
- else if (typeof cb === "function") {
18
- if (typeof optionsOrCb !== "object")
19
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
20
- this.send(command, optionsOrCb || {}, cb);
21
- }
22
- else {
23
- return this.send(command, optionsOrCb);
24
- }
25
- }
26
- deleteScalingPlan(args, optionsOrCb, cb) {
27
- const command = new DeleteScalingPlanCommand_1.DeleteScalingPlanCommand(args);
28
- if (typeof optionsOrCb === "function") {
29
- this.send(command, optionsOrCb);
30
- }
31
- else if (typeof cb === "function") {
32
- if (typeof optionsOrCb !== "object")
33
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
34
- this.send(command, optionsOrCb || {}, cb);
35
- }
36
- else {
37
- return this.send(command, optionsOrCb);
38
- }
39
- }
40
- describeScalingPlanResources(args, optionsOrCb, cb) {
41
- const command = new DescribeScalingPlanResourcesCommand_1.DescribeScalingPlanResourcesCommand(args);
42
- if (typeof optionsOrCb === "function") {
43
- this.send(command, optionsOrCb);
44
- }
45
- else if (typeof cb === "function") {
46
- if (typeof optionsOrCb !== "object")
47
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
48
- this.send(command, optionsOrCb || {}, cb);
49
- }
50
- else {
51
- return this.send(command, optionsOrCb);
52
- }
53
- }
54
- describeScalingPlans(args, optionsOrCb, cb) {
55
- const command = new DescribeScalingPlansCommand_1.DescribeScalingPlansCommand(args);
56
- if (typeof optionsOrCb === "function") {
57
- this.send(command, optionsOrCb);
58
- }
59
- else if (typeof cb === "function") {
60
- if (typeof optionsOrCb !== "object")
61
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
62
- this.send(command, optionsOrCb || {}, cb);
63
- }
64
- else {
65
- return this.send(command, optionsOrCb);
66
- }
67
- }
68
- getScalingPlanResourceForecastData(args, optionsOrCb, cb) {
69
- const command = new GetScalingPlanResourceForecastDataCommand_1.GetScalingPlanResourceForecastDataCommand(args);
70
- if (typeof optionsOrCb === "function") {
71
- this.send(command, optionsOrCb);
72
- }
73
- else if (typeof cb === "function") {
74
- if (typeof optionsOrCb !== "object")
75
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
76
- this.send(command, optionsOrCb || {}, cb);
77
- }
78
- else {
79
- return this.send(command, optionsOrCb);
80
- }
81
- }
82
- updateScalingPlan(args, optionsOrCb, cb) {
83
- const command = new UpdateScalingPlanCommand_1.UpdateScalingPlanCommand(args);
84
- if (typeof optionsOrCb === "function") {
85
- this.send(command, optionsOrCb);
86
- }
87
- else if (typeof cb === "function") {
88
- if (typeof optionsOrCb !== "object")
89
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
90
- this.send(command, optionsOrCb || {}, cb);
91
- }
92
- else {
93
- return this.send(command, optionsOrCb);
94
- }
95
- }
96
21
  }
97
22
  exports.AutoScalingPlans = AutoScalingPlans;
23
+ (0, smithy_client_1.createAggregatedClient)(commands, AutoScalingPlans);