@aws-sdk/client-auto-scaling-plans 3.533.0 → 3.540.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,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.defaultEndpointResolver = void 0;
4
- const util_endpoints_1 = require("@smithy/util-endpoints");
4
+ const util_endpoints_1 = require("@aws-sdk/util-endpoints");
5
+ const util_endpoints_2 = require("@smithy/util-endpoints");
5
6
  const ruleset_1 = require("./ruleset");
6
7
  const defaultEndpointResolver = (endpointParams, context = {}) => {
7
- return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, {
8
+ return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
8
9
  endpointParams: endpointParams,
9
10
  logger: context.logger,
10
11
  });
11
12
  };
12
13
  exports.defaultEndpointResolver = defaultEndpointResolver;
14
+ util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
package/dist-cjs/index.js CHANGED
@@ -948,9 +948,6 @@ var _AutoScalingPlans = class _AutoScalingPlans extends AutoScalingPlansClient {
948
948
  __name(_AutoScalingPlans, "AutoScalingPlans");
949
949
  var AutoScalingPlans = _AutoScalingPlans;
950
950
  (0, import_smithy_client.createAggregatedClient)(commands, AutoScalingPlans);
951
-
952
- // src/index.ts
953
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
954
951
  // Annotate the CommonJS export names for ESM import in node:
955
952
 
956
953
  0 && (module.exports = {
@@ -1,4 +1,5 @@
1
- import { resolveEndpoint } from "@smithy/util-endpoints";
1
+ import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
+ import { customEndpointFunctions, resolveEndpoint } from "@smithy/util-endpoints";
2
3
  import { ruleSet } from "./ruleset";
3
4
  export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
5
  return resolveEndpoint(ruleSet, {
@@ -6,3 +7,4 @@ export const defaultEndpointResolver = (endpointParams, context = {}) => {
6
7
  logger: context.logger,
7
8
  });
8
9
  };
10
+ customEndpointFunctions.aws = awsEndpointFunctions;
package/dist-es/index.js CHANGED
@@ -2,5 +2,4 @@ export * from "./AutoScalingPlansClient";
2
2
  export * from "./AutoScalingPlans";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
- import "@aws-sdk/util-endpoints";
6
5
  export { AutoScalingPlansServiceException } from "./models/AutoScalingPlansServiceException";
@@ -28,6 +28,7 @@ export interface AutoScalingPlans {
28
28
  /**
29
29
  * @see {@link DescribeScalingPlansCommand}
30
30
  */
31
+ describeScalingPlans(): Promise<DescribeScalingPlansCommandOutput>;
31
32
  describeScalingPlans(args: DescribeScalingPlansCommandInput, options?: __HttpHandlerOptions): Promise<DescribeScalingPlansCommandOutput>;
32
33
  describeScalingPlans(args: DescribeScalingPlansCommandInput, cb: (err: any, data?: DescribeScalingPlansCommandOutput) => void): void;
33
34
  describeScalingPlans(args: DescribeScalingPlansCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeScalingPlansCommandOutput) => void): void;
@@ -45,7 +46,6 @@ export interface AutoScalingPlans {
45
46
  updateScalingPlan(args: UpdateScalingPlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateScalingPlanCommandOutput) => void): void;
46
47
  }
47
48
  /**
48
- * @public
49
49
  * <fullname>AWS Auto Scaling</fullname>
50
50
  *
51
51
  *
@@ -81,6 +81,7 @@ export interface AutoScalingPlans {
81
81
  *
82
82
  * <p>To learn more about AWS Auto Scaling, including information about granting IAM users required
83
83
  * permissions for AWS Auto Scaling actions, see the <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html">AWS Auto Scaling User Guide</a>. </p>
84
+ * @public
84
85
  */
85
86
  export declare class AutoScalingPlans extends AutoScalingPlansClient implements AutoScalingPlans {
86
87
  }
@@ -157,7 +157,6 @@ export type AutoScalingPlansClientResolvedConfigType = __SmithyResolvedConfigura
157
157
  export interface AutoScalingPlansClientResolvedConfig extends AutoScalingPlansClientResolvedConfigType {
158
158
  }
159
159
  /**
160
- * @public
161
160
  * <fullname>AWS Auto Scaling</fullname>
162
161
  *
163
162
  *
@@ -193,6 +192,7 @@ export interface AutoScalingPlansClientResolvedConfig extends AutoScalingPlansCl
193
192
  *
194
193
  * <p>To learn more about AWS Auto Scaling, including information about granting IAM users required
195
194
  * permissions for AWS Auto Scaling actions, see the <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html">AWS Auto Scaling User Guide</a>. </p>
195
+ * @public
196
196
  */
197
197
  export declare class AutoScalingPlansClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AutoScalingPlansClientResolvedConfig> {
198
198
  /**
@@ -22,10 +22,10 @@ export interface CreateScalingPlanCommandOutput extends CreateScalingPlanRespons
22
22
  }
23
23
  declare const CreateScalingPlanCommand_base: {
24
24
  new (input: CreateScalingPlanCommandInput): import("@smithy/smithy-client").CommandImpl<CreateScalingPlanCommandInput, CreateScalingPlanCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: CreateScalingPlanCommandInput): import("@smithy/smithy-client").CommandImpl<CreateScalingPlanCommandInput, CreateScalingPlanCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Creates a scaling plan. </p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
@@ -134,6 +134,7 @@ declare const CreateScalingPlanCommand_base: {
134
134
  * @throws {@link AutoScalingPlansServiceException}
135
135
  * <p>Base exception class for all service exceptions from AutoScalingPlans service.</p>
136
136
  *
137
+ * @public
137
138
  */
138
139
  export declare class CreateScalingPlanCommand extends CreateScalingPlanCommand_base {
139
140
  }
@@ -22,10 +22,10 @@ export interface DeleteScalingPlanCommandOutput extends DeleteScalingPlanRespons
22
22
  }
23
23
  declare const DeleteScalingPlanCommand_base: {
24
24
  new (input: DeleteScalingPlanCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteScalingPlanCommandInput, DeleteScalingPlanCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DeleteScalingPlanCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteScalingPlanCommandInput, DeleteScalingPlanCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Deletes the specified scaling plan.</p>
30
30
  * <p>Deleting a scaling plan deletes the underlying <a>ScalingInstruction</a> for
31
31
  * all of the scalable resources that are covered by the plan.</p>
@@ -69,6 +69,7 @@ declare const DeleteScalingPlanCommand_base: {
69
69
  * @throws {@link AutoScalingPlansServiceException}
70
70
  * <p>Base exception class for all service exceptions from AutoScalingPlans service.</p>
71
71
  *
72
+ * @public
72
73
  */
73
74
  export declare class DeleteScalingPlanCommand extends DeleteScalingPlanCommand_base {
74
75
  }
@@ -22,10 +22,10 @@ export interface DescribeScalingPlanResourcesCommandOutput extends DescribeScali
22
22
  }
23
23
  declare const DescribeScalingPlanResourcesCommand_base: {
24
24
  new (input: DescribeScalingPlanResourcesCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeScalingPlanResourcesCommandInput, DescribeScalingPlanResourcesCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: DescribeScalingPlanResourcesCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeScalingPlanResourcesCommandInput, DescribeScalingPlanResourcesCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Describes the scalable resources in the specified scaling plan.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
@@ -109,6 +109,7 @@ declare const DescribeScalingPlanResourcesCommand_base: {
109
109
  * @throws {@link AutoScalingPlansServiceException}
110
110
  * <p>Base exception class for all service exceptions from AutoScalingPlans service.</p>
111
111
  *
112
+ * @public
112
113
  */
113
114
  export declare class DescribeScalingPlanResourcesCommand extends DescribeScalingPlanResourcesCommand_base {
114
115
  }
@@ -22,10 +22,10 @@ export interface DescribeScalingPlansCommandOutput extends DescribeScalingPlansR
22
22
  }
23
23
  declare const DescribeScalingPlansCommand_base: {
24
24
  new (input: DescribeScalingPlansCommandInput): import("@smithy/smithy-client").CommandImpl<DescribeScalingPlansCommandInput, DescribeScalingPlansCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [DescribeScalingPlansCommandInput]): import("@smithy/smithy-client").CommandImpl<DescribeScalingPlansCommandInput, DescribeScalingPlansCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Describes one or more of your scaling plans.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
@@ -161,6 +161,7 @@ declare const DescribeScalingPlansCommand_base: {
161
161
  * @throws {@link AutoScalingPlansServiceException}
162
162
  * <p>Base exception class for all service exceptions from AutoScalingPlans service.</p>
163
163
  *
164
+ * @public
164
165
  */
165
166
  export declare class DescribeScalingPlansCommand extends DescribeScalingPlansCommand_base {
166
167
  }
@@ -22,10 +22,10 @@ export interface GetScalingPlanResourceForecastDataCommandOutput extends GetScal
22
22
  }
23
23
  declare const GetScalingPlanResourceForecastDataCommand_base: {
24
24
  new (input: GetScalingPlanResourceForecastDataCommandInput): import("@smithy/smithy-client").CommandImpl<GetScalingPlanResourceForecastDataCommandInput, GetScalingPlanResourceForecastDataCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: GetScalingPlanResourceForecastDataCommandInput): import("@smithy/smithy-client").CommandImpl<GetScalingPlanResourceForecastDataCommandInput, GetScalingPlanResourceForecastDataCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Retrieves the forecast data for a scalable resource.</p>
30
30
  * <p>Capacity forecasts are represented as predicted values, or data points, that are
31
31
  * calculated using historical data points from a specified CloudWatch load metric. Data points are
@@ -74,6 +74,7 @@ declare const GetScalingPlanResourceForecastDataCommand_base: {
74
74
  * @throws {@link AutoScalingPlansServiceException}
75
75
  * <p>Base exception class for all service exceptions from AutoScalingPlans service.</p>
76
76
  *
77
+ * @public
77
78
  */
78
79
  export declare class GetScalingPlanResourceForecastDataCommand extends GetScalingPlanResourceForecastDataCommand_base {
79
80
  }
@@ -22,10 +22,10 @@ export interface UpdateScalingPlanCommandOutput extends UpdateScalingPlanRespons
22
22
  }
23
23
  declare const UpdateScalingPlanCommand_base: {
24
24
  new (input: UpdateScalingPlanCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateScalingPlanCommandInput, UpdateScalingPlanCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: UpdateScalingPlanCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateScalingPlanCommandInput, UpdateScalingPlanCommandOutput, AutoScalingPlansClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Updates the specified scaling plan.</p>
30
30
  * <p>You cannot update a scaling plan if it is in the process of being created, updated, or
31
31
  * deleted.</p>
@@ -134,6 +134,7 @@ declare const UpdateScalingPlanCommand_base: {
134
134
  * @throws {@link AutoScalingPlansServiceException}
135
135
  * <p>Base exception class for all service exceptions from AutoScalingPlans service.</p>
136
136
  *
137
+ * @public
137
138
  */
138
139
  export declare class UpdateScalingPlanCommand extends UpdateScalingPlanCommand_base {
139
140
  }
@@ -44,5 +44,4 @@ export { RuntimeExtension } from "./runtimeExtensions";
44
44
  export { AutoScalingPlansExtensionConfiguration } from "./extensionConfiguration";
45
45
  export * from "./commands";
46
46
  export * from "./models";
47
- import "@aws-sdk/util-endpoints";
48
47
  export { AutoScalingPlansServiceException } from "./models/AutoScalingPlansServiceException";