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