@aws-sdk/client-auto-scaling-plans 3.183.0 → 3.186.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 CHANGED
@@ -3,6 +3,25 @@
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.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-auto-scaling-plans
9
+
10
+
11
+
12
+
13
+
14
+ # [3.185.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.184.0...v3.185.0) (2022-10-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **codegen:** add deser check for x-amz-request-id ([#4015](https://github.com/aws/aws-sdk-js-v3/issues/4015)) ([6ff07bd](https://github.com/aws/aws-sdk-js-v3/commit/6ff07bd7e72bd56725f318013ac1d6d0fbbcdd9a))
20
+
21
+
22
+
23
+
24
+
6
25
  # [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
7
26
 
8
27
  **Note:** Version bump only for package @aws-sdk/client-auto-scaling-plans
@@ -873,10 +873,10 @@ const deserializeAws_json1_1ValidationException = (output, context) => {
873
873
  };
874
874
  };
875
875
  const deserializeMetadata = (output) => {
876
- var _a;
876
+ var _a, _b;
877
877
  return ({
878
878
  httpStatusCode: output.statusCode,
879
- requestId: (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"],
879
+ requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"],
880
880
  extendedRequestId: output.headers["x-amz-id-2"],
881
881
  cfId: output.headers["x-amz-cf-id"],
882
882
  });
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { AutoScalingPlansClient } from "./AutoScalingPlansClient";
2
3
  import { CreateScalingPlanCommand, } from "./commands/CreateScalingPlanCommand";
3
4
  import { DeleteScalingPlanCommand, } from "./commands/DeleteScalingPlanCommand";
@@ -5,89 +6,95 @@ 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";
8
- export class AutoScalingPlans extends AutoScalingPlansClient {
9
- createScalingPlan(args, optionsOrCb, cb) {
10
- const command = new CreateScalingPlanCommand(args);
9
+ var AutoScalingPlans = (function (_super) {
10
+ __extends(AutoScalingPlans, _super);
11
+ function AutoScalingPlans() {
12
+ return _super !== null && _super.apply(this, arguments) || this;
13
+ }
14
+ AutoScalingPlans.prototype.createScalingPlan = function (args, optionsOrCb, cb) {
15
+ var command = new CreateScalingPlanCommand(args);
11
16
  if (typeof optionsOrCb === "function") {
12
17
  this.send(command, optionsOrCb);
13
18
  }
14
19
  else if (typeof cb === "function") {
15
20
  if (typeof optionsOrCb !== "object")
16
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
21
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
17
22
  this.send(command, optionsOrCb || {}, cb);
18
23
  }
19
24
  else {
20
25
  return this.send(command, optionsOrCb);
21
26
  }
22
- }
23
- deleteScalingPlan(args, optionsOrCb, cb) {
24
- const command = new DeleteScalingPlanCommand(args);
27
+ };
28
+ AutoScalingPlans.prototype.deleteScalingPlan = function (args, optionsOrCb, cb) {
29
+ var command = new DeleteScalingPlanCommand(args);
25
30
  if (typeof optionsOrCb === "function") {
26
31
  this.send(command, optionsOrCb);
27
32
  }
28
33
  else if (typeof cb === "function") {
29
34
  if (typeof optionsOrCb !== "object")
30
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
35
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
31
36
  this.send(command, optionsOrCb || {}, cb);
32
37
  }
33
38
  else {
34
39
  return this.send(command, optionsOrCb);
35
40
  }
36
- }
37
- describeScalingPlanResources(args, optionsOrCb, cb) {
38
- const command = new DescribeScalingPlanResourcesCommand(args);
41
+ };
42
+ AutoScalingPlans.prototype.describeScalingPlanResources = function (args, optionsOrCb, cb) {
43
+ var command = new DescribeScalingPlanResourcesCommand(args);
39
44
  if (typeof optionsOrCb === "function") {
40
45
  this.send(command, optionsOrCb);
41
46
  }
42
47
  else if (typeof cb === "function") {
43
48
  if (typeof optionsOrCb !== "object")
44
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
49
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
45
50
  this.send(command, optionsOrCb || {}, cb);
46
51
  }
47
52
  else {
48
53
  return this.send(command, optionsOrCb);
49
54
  }
50
- }
51
- describeScalingPlans(args, optionsOrCb, cb) {
52
- const command = new DescribeScalingPlansCommand(args);
55
+ };
56
+ AutoScalingPlans.prototype.describeScalingPlans = function (args, optionsOrCb, cb) {
57
+ var command = new DescribeScalingPlansCommand(args);
53
58
  if (typeof optionsOrCb === "function") {
54
59
  this.send(command, optionsOrCb);
55
60
  }
56
61
  else if (typeof cb === "function") {
57
62
  if (typeof optionsOrCb !== "object")
58
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
63
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
59
64
  this.send(command, optionsOrCb || {}, cb);
60
65
  }
61
66
  else {
62
67
  return this.send(command, optionsOrCb);
63
68
  }
64
- }
65
- getScalingPlanResourceForecastData(args, optionsOrCb, cb) {
66
- const command = new GetScalingPlanResourceForecastDataCommand(args);
69
+ };
70
+ AutoScalingPlans.prototype.getScalingPlanResourceForecastData = function (args, optionsOrCb, cb) {
71
+ var command = new GetScalingPlanResourceForecastDataCommand(args);
67
72
  if (typeof optionsOrCb === "function") {
68
73
  this.send(command, optionsOrCb);
69
74
  }
70
75
  else if (typeof cb === "function") {
71
76
  if (typeof optionsOrCb !== "object")
72
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
77
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
73
78
  this.send(command, optionsOrCb || {}, cb);
74
79
  }
75
80
  else {
76
81
  return this.send(command, optionsOrCb);
77
82
  }
78
- }
79
- updateScalingPlan(args, optionsOrCb, cb) {
80
- const command = new UpdateScalingPlanCommand(args);
83
+ };
84
+ AutoScalingPlans.prototype.updateScalingPlan = function (args, optionsOrCb, cb) {
85
+ var command = new UpdateScalingPlanCommand(args);
81
86
  if (typeof optionsOrCb === "function") {
82
87
  this.send(command, optionsOrCb);
83
88
  }
84
89
  else if (typeof cb === "function") {
85
90
  if (typeof optionsOrCb !== "object")
86
- throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
91
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
87
92
  this.send(command, optionsOrCb || {}, cb);
88
93
  }
89
94
  else {
90
95
  return this.send(command, optionsOrCb);
91
96
  }
92
- }
93
- }
97
+ };
98
+ return AutoScalingPlans;
99
+ }(AutoScalingPlansClient));
100
+ export { AutoScalingPlans };
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
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));
12
+ var AutoScalingPlansClient = (function (_super) {
13
+ __extends(AutoScalingPlansClient, _super);
14
+ function AutoScalingPlansClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ AutoScalingPlansClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return AutoScalingPlansClient;
38
+ }(__Client));
39
+ export { AutoScalingPlansClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateScalingPlanRequestFilterSensitiveLog, CreateScalingPlanResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1CreateScalingPlanCommand, serializeAws_json1_1CreateScalingPlanCommand, } from "../protocols/Aws_json1_1";
5
- export class CreateScalingPlanCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateScalingPlanCommand = (function (_super) {
7
+ __extends(CreateScalingPlanCommand, _super);
8
+ function CreateScalingPlanCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateScalingPlanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AutoScalingPlansClient";
18
+ var commandName = "CreateScalingPlanCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateScalingPlanRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateScalingPlanResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateScalingPlanCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1CreateScalingPlanCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateScalingPlanCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1CreateScalingPlanCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateScalingPlanCommand;
38
+ }($Command));
39
+ export { CreateScalingPlanCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DeleteScalingPlanRequestFilterSensitiveLog, DeleteScalingPlanResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DeleteScalingPlanCommand, serializeAws_json1_1DeleteScalingPlanCommand, } from "../protocols/Aws_json1_1";
5
- export class DeleteScalingPlanCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DeleteScalingPlanCommand = (function (_super) {
7
+ __extends(DeleteScalingPlanCommand, _super);
8
+ function DeleteScalingPlanCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DeleteScalingPlanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AutoScalingPlansClient";
18
+ var commandName = "DeleteScalingPlanCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DeleteScalingPlanRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DeleteScalingPlanResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DeleteScalingPlanCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DeleteScalingPlanCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DeleteScalingPlanCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DeleteScalingPlanCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DeleteScalingPlanCommand;
38
+ }($Command));
39
+ export { DeleteScalingPlanCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeScalingPlanResourcesRequestFilterSensitiveLog, DescribeScalingPlanResourcesResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeScalingPlanResourcesCommand, serializeAws_json1_1DescribeScalingPlanResourcesCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeScalingPlanResourcesCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeScalingPlanResourcesCommand = (function (_super) {
7
+ __extends(DescribeScalingPlanResourcesCommand, _super);
8
+ function DescribeScalingPlanResourcesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeScalingPlanResourcesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AutoScalingPlansClient";
18
+ var commandName = "DescribeScalingPlanResourcesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeScalingPlanResourcesRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeScalingPlanResourcesResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeScalingPlanResourcesCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeScalingPlanResourcesCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeScalingPlanResourcesCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeScalingPlanResourcesCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeScalingPlanResourcesCommand;
38
+ }($Command));
39
+ export { DescribeScalingPlanResourcesCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { DescribeScalingPlansRequestFilterSensitiveLog, DescribeScalingPlansResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1DescribeScalingPlansCommand, serializeAws_json1_1DescribeScalingPlansCommand, } from "../protocols/Aws_json1_1";
5
- export class DescribeScalingPlansCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var DescribeScalingPlansCommand = (function (_super) {
7
+ __extends(DescribeScalingPlansCommand, _super);
8
+ function DescribeScalingPlansCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ DescribeScalingPlansCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AutoScalingPlansClient";
18
+ var commandName = "DescribeScalingPlansCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: DescribeScalingPlansRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: DescribeScalingPlansResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeScalingPlansCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1DescribeScalingPlansCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ DescribeScalingPlansCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1DescribeScalingPlansCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return DescribeScalingPlansCommand;
38
+ }($Command));
39
+ export { DescribeScalingPlansCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { GetScalingPlanResourceForecastDataRequestFilterSensitiveLog, GetScalingPlanResourceForecastDataResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1GetScalingPlanResourceForecastDataCommand, serializeAws_json1_1GetScalingPlanResourceForecastDataCommand, } from "../protocols/Aws_json1_1";
5
- export class GetScalingPlanResourceForecastDataCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var GetScalingPlanResourceForecastDataCommand = (function (_super) {
7
+ __extends(GetScalingPlanResourceForecastDataCommand, _super);
8
+ function GetScalingPlanResourceForecastDataCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ GetScalingPlanResourceForecastDataCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
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,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AutoScalingPlansClient";
18
+ var commandName = "GetScalingPlanResourceForecastDataCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: GetScalingPlanResourceForecastDataRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: GetScalingPlanResourceForecastDataResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ GetScalingPlanResourceForecastDataCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1GetScalingPlanResourceForecastDataCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ GetScalingPlanResourceForecastDataCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1GetScalingPlanResourceForecastDataCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return GetScalingPlanResourceForecastDataCommand;
38
+ }($Command));
39
+ export { GetScalingPlanResourceForecastDataCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { UpdateScalingPlanRequestFilterSensitiveLog, UpdateScalingPlanResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_json1_1UpdateScalingPlanCommand, serializeAws_json1_1UpdateScalingPlanCommand, } from "../protocols/Aws_json1_1";
5
- export class UpdateScalingPlanCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var UpdateScalingPlanCommand = (function (_super) {
7
+ __extends(UpdateScalingPlanCommand, _super);
8
+ function UpdateScalingPlanCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ UpdateScalingPlanCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AutoScalingPlansClient";
15
- const commandName = "UpdateScalingPlanCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AutoScalingPlansClient";
18
+ var commandName = "UpdateScalingPlanCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: UpdateScalingPlanRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: UpdateScalingPlanResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateScalingPlanCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_json1_1UpdateScalingPlanCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ UpdateScalingPlanCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_json1_1UpdateScalingPlanCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return UpdateScalingPlanCommand;
38
+ }($Command));
39
+ export { UpdateScalingPlanCommand };
@@ -1,6 +1,7 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
1
2
  import { getRegionInfo } from "@aws-sdk/config-resolver";
2
- const regionHash = {};
3
- const partitionHash = {
3
+ var regionHash = {};
4
+ var partitionHash = {
4
5
  aws: {
5
6
  regions: [
6
7
  "af-south-1",
@@ -120,9 +121,8 @@ const partitionHash = {
120
121
  ],
121
122
  },
122
123
  };
123
- export const defaultRegionInfoProvider = async (region, options) => getRegionInfo(region, {
124
- ...options,
125
- signingService: "autoscaling-plans",
126
- regionHash,
127
- partitionHash,
128
- });
124
+ export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
125
+ return __generator(this, function (_a) {
126
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "autoscaling-plans", regionHash: regionHash, partitionHash: partitionHash }))];
127
+ });
128
+ }); };