@aws-sdk/client-cost-optimization-hub 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
@@ -1137,9 +1137,6 @@ var paginateListRecommendationSummaries = (0, import_core.createPaginator)(CostO
1137
1137
  // src/pagination/ListRecommendationsPaginator.ts
1138
1138
 
1139
1139
  var paginateListRecommendations = (0, import_core.createPaginator)(CostOptimizationHubClient, ListRecommendationsCommand, "nextToken", "nextToken", "maxResults");
1140
-
1141
- // src/index.ts
1142
- var import_util_endpoints = require("@aws-sdk/util-endpoints");
1143
1140
  // Annotate the CommonJS export names for ESM import in node:
1144
1141
 
1145
1142
  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
@@ -3,5 +3,4 @@ export * from "./CostOptimizationHub";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./models";
6
- import "@aws-sdk/util-endpoints";
7
6
  export { CostOptimizationHubServiceException } from "./models/CostOptimizationHubServiceException";
@@ -11,6 +11,7 @@ export interface CostOptimizationHub {
11
11
  /**
12
12
  * @see {@link GetPreferencesCommand}
13
13
  */
14
+ getPreferences(): Promise<GetPreferencesCommandOutput>;
14
15
  getPreferences(args: GetPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetPreferencesCommandOutput>;
15
16
  getPreferences(args: GetPreferencesCommandInput, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
16
17
  getPreferences(args: GetPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
@@ -23,12 +24,14 @@ export interface CostOptimizationHub {
23
24
  /**
24
25
  * @see {@link ListEnrollmentStatusesCommand}
25
26
  */
27
+ listEnrollmentStatuses(): Promise<ListEnrollmentStatusesCommandOutput>;
26
28
  listEnrollmentStatuses(args: ListEnrollmentStatusesCommandInput, options?: __HttpHandlerOptions): Promise<ListEnrollmentStatusesCommandOutput>;
27
29
  listEnrollmentStatuses(args: ListEnrollmentStatusesCommandInput, cb: (err: any, data?: ListEnrollmentStatusesCommandOutput) => void): void;
28
30
  listEnrollmentStatuses(args: ListEnrollmentStatusesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnrollmentStatusesCommandOutput) => void): void;
29
31
  /**
30
32
  * @see {@link ListRecommendationsCommand}
31
33
  */
34
+ listRecommendations(): Promise<ListRecommendationsCommandOutput>;
32
35
  listRecommendations(args: ListRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendationsCommandOutput>;
33
36
  listRecommendations(args: ListRecommendationsCommandInput, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
34
37
  listRecommendations(args: ListRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
@@ -47,12 +50,12 @@ export interface CostOptimizationHub {
47
50
  /**
48
51
  * @see {@link UpdatePreferencesCommand}
49
52
  */
53
+ updatePreferences(): Promise<UpdatePreferencesCommandOutput>;
50
54
  updatePreferences(args: UpdatePreferencesCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePreferencesCommandOutput>;
51
55
  updatePreferences(args: UpdatePreferencesCommandInput, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
52
56
  updatePreferences(args: UpdatePreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
53
57
  }
54
58
  /**
55
- * @public
56
59
  * <p>You can use the Cost Optimization Hub API to programmatically identify, filter, aggregate,
57
60
  * and quantify savings for your cost optimization recommendations across multiple Amazon Web Services Regions and Amazon Web Services accounts in your organization.</p>
58
61
  * <p>The Cost Optimization Hub API provides the following endpoint:</p>
@@ -61,6 +64,7 @@ export interface CostOptimizationHub {
61
64
  * <p> https://cost-optimization-hub.us-east-1.amazonaws.com </p>
62
65
  * </li>
63
66
  * </ul>
67
+ * @public
64
68
  */
65
69
  export declare class CostOptimizationHub extends CostOptimizationHubClient implements CostOptimizationHub {
66
70
  }
@@ -158,7 +158,6 @@ export type CostOptimizationHubClientResolvedConfigType = __SmithyResolvedConfig
158
158
  export interface CostOptimizationHubClientResolvedConfig extends CostOptimizationHubClientResolvedConfigType {
159
159
  }
160
160
  /**
161
- * @public
162
161
  * <p>You can use the Cost Optimization Hub API to programmatically identify, filter, aggregate,
163
162
  * and quantify savings for your cost optimization recommendations across multiple Amazon Web Services Regions and Amazon Web Services accounts in your organization.</p>
164
163
  * <p>The Cost Optimization Hub API provides the following endpoint:</p>
@@ -167,6 +166,7 @@ export interface CostOptimizationHubClientResolvedConfig extends CostOptimizatio
167
166
  * <p> https://cost-optimization-hub.us-east-1.amazonaws.com </p>
168
167
  * </li>
169
168
  * </ul>
169
+ * @public
170
170
  */
171
171
  export declare class CostOptimizationHubClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, CostOptimizationHubClientResolvedConfig> {
172
172
  /**
@@ -22,10 +22,10 @@ export interface GetPreferencesCommandOutput extends GetPreferencesResponse, __M
22
22
  }
23
23
  declare const GetPreferencesCommand_base: {
24
24
  new (input: GetPreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<GetPreferencesCommandInput, GetPreferencesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [GetPreferencesCommandInput]): import("@smithy/smithy-client").CommandImpl<GetPreferencesCommandInput, GetPreferencesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Returns a set of preferences for an account in order to add account-specific preferences
30
30
  * into the service. These preferences impact how the savings associated with recommendations are
31
31
  * presented—estimated savings after discounts or estimated savings before discounts, for
@@ -69,6 +69,7 @@ declare const GetPreferencesCommand_base: {
69
69
  * @throws {@link CostOptimizationHubServiceException}
70
70
  * <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
71
71
  *
72
+ * @public
72
73
  */
73
74
  export declare class GetPreferencesCommand extends GetPreferencesCommand_base {
74
75
  }
@@ -22,10 +22,10 @@ export interface GetRecommendationCommandOutput extends GetRecommendationRespons
22
22
  }
23
23
  declare const GetRecommendationCommand_base: {
24
24
  new (input: GetRecommendationCommandInput): import("@smithy/smithy-client").CommandImpl<GetRecommendationCommandInput, GetRecommendationCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: GetRecommendationCommandInput): import("@smithy/smithy-client").CommandImpl<GetRecommendationCommandInput, GetRecommendationCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Returns both the current and recommended resource configuration and the estimated cost
30
30
  * impact for a recommendation.</p>
31
31
  * <p>The <code>recommendationId</code> is only valid for up to a maximum of 24 hours as
@@ -627,6 +627,7 @@ declare const GetRecommendationCommand_base: {
627
627
  * @throws {@link CostOptimizationHubServiceException}
628
628
  * <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
629
629
  *
630
+ * @public
630
631
  */
631
632
  export declare class GetRecommendationCommand extends GetRecommendationCommand_base {
632
633
  }
@@ -22,10 +22,10 @@ export interface ListEnrollmentStatusesCommandOutput extends ListEnrollmentStatu
22
22
  }
23
23
  declare const ListEnrollmentStatusesCommand_base: {
24
24
  new (input: ListEnrollmentStatusesCommandInput): import("@smithy/smithy-client").CommandImpl<ListEnrollmentStatusesCommandInput, ListEnrollmentStatusesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [ListEnrollmentStatusesCommandInput]): import("@smithy/smithy-client").CommandImpl<ListEnrollmentStatusesCommandInput, ListEnrollmentStatusesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Retrieves the enrollment status for an account. It can also return the list of accounts
30
30
  * that are enrolled under the organization.</p>
31
31
  * @example
@@ -80,6 +80,7 @@ declare const ListEnrollmentStatusesCommand_base: {
80
80
  * @throws {@link CostOptimizationHubServiceException}
81
81
  * <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
82
82
  *
83
+ * @public
83
84
  */
84
85
  export declare class ListEnrollmentStatusesCommand extends ListEnrollmentStatusesCommand_base {
85
86
  }
@@ -22,10 +22,10 @@ export interface ListRecommendationSummariesCommandOutput extends ListRecommenda
22
22
  }
23
23
  declare const ListRecommendationSummariesCommand_base: {
24
24
  new (input: ListRecommendationSummariesCommandInput): import("@smithy/smithy-client").CommandImpl<ListRecommendationSummariesCommandInput, ListRecommendationSummariesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ListRecommendationSummariesCommandInput): import("@smithy/smithy-client").CommandImpl<ListRecommendationSummariesCommandInput, ListRecommendationSummariesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Returns a concise representation of savings estimates for resources. Also returns de-duped
30
30
  * savings across different types of recommendations.</p>
31
31
  * <note>
@@ -118,6 +118,7 @@ declare const ListRecommendationSummariesCommand_base: {
118
118
  * @throws {@link CostOptimizationHubServiceException}
119
119
  * <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
120
120
  *
121
+ * @public
121
122
  */
122
123
  export declare class ListRecommendationSummariesCommand extends ListRecommendationSummariesCommand_base {
123
124
  }
@@ -22,10 +22,10 @@ export interface ListRecommendationsCommandOutput extends ListRecommendationsRes
22
22
  }
23
23
  declare const ListRecommendationsCommand_base: {
24
24
  new (input: ListRecommendationsCommandInput): import("@smithy/smithy-client").CommandImpl<ListRecommendationsCommandInput, ListRecommendationsCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [ListRecommendationsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListRecommendationsCommandInput, ListRecommendationsCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Returns a list of recommendations.</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
@@ -137,6 +137,7 @@ declare const ListRecommendationsCommand_base: {
137
137
  * @throws {@link CostOptimizationHubServiceException}
138
138
  * <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
139
139
  *
140
+ * @public
140
141
  */
141
142
  export declare class ListRecommendationsCommand extends ListRecommendationsCommand_base {
142
143
  }
@@ -22,10 +22,10 @@ export interface UpdateEnrollmentStatusCommandOutput extends UpdateEnrollmentSta
22
22
  }
23
23
  declare const UpdateEnrollmentStatusCommand_base: {
24
24
  new (input: UpdateEnrollmentStatusCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: UpdateEnrollmentStatusCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateEnrollmentStatusCommandInput, UpdateEnrollmentStatusCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Updates the enrollment (opt in and opt out) status of an account to the Cost Optimization
30
30
  * Hub service.</p>
31
31
  * <p>If the account is a management account of an organization, this action can also be used to
@@ -74,6 +74,7 @@ declare const UpdateEnrollmentStatusCommand_base: {
74
74
  * @throws {@link CostOptimizationHubServiceException}
75
75
  * <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
76
76
  *
77
+ * @public
77
78
  */
78
79
  export declare class UpdateEnrollmentStatusCommand extends UpdateEnrollmentStatusCommand_base {
79
80
  }
@@ -22,10 +22,10 @@ export interface UpdatePreferencesCommandOutput extends UpdatePreferencesRespons
22
22
  }
23
23
  declare const UpdatePreferencesCommand_base: {
24
24
  new (input: UpdatePreferencesCommandInput): import("@smithy/smithy-client").CommandImpl<UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (...[input]: [] | [UpdatePreferencesCommandInput]): import("@smithy/smithy-client").CommandImpl<UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput, CostOptimizationHubClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
26
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
27
  };
27
28
  /**
28
- * @public
29
29
  * <p>Updates a set of preferences for an account in order to add account-specific preferences
30
30
  * into the service. These preferences impact how the savings associated with recommendations are
31
31
  * presented.</p>
@@ -71,6 +71,7 @@ declare const UpdatePreferencesCommand_base: {
71
71
  * @throws {@link CostOptimizationHubServiceException}
72
72
  * <p>Base exception class for all service exceptions from CostOptimizationHub service.</p>
73
73
  *
74
+ * @public
74
75
  */
75
76
  export declare class UpdatePreferencesCommand extends UpdatePreferencesCommand_base {
76
77
  }
@@ -18,5 +18,4 @@ export { CostOptimizationHubExtensionConfiguration } from "./extensionConfigurat
18
18
  export * from "./commands";
19
19
  export * from "./pagination";
20
20
  export * from "./models";
21
- import "@aws-sdk/util-endpoints";
22
21
  export { CostOptimizationHubServiceException } from "./models/CostOptimizationHubServiceException";