@aws-sdk/client-cost-optimization-hub 3.1136.0 → 3.1138.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/dist-cjs/index.js CHANGED
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1135.0";
72
+ var version = "3.1137.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -482,10 +482,10 @@ const _v = "value";
482
482
  const _vC = "vCpu";
483
483
  const _wS = "workSpaces";
484
484
  const n0 = "com.amazonaws.costoptimizationhub";
485
- const _s_registry = TypeRegistry.for(_s);
485
+ const _s_registry = new TypeRegistry(_s);
486
486
  var CostOptimizationHubServiceException$ = [-3, _s, "CostOptimizationHubServiceException", 0, [], []];
487
487
  _s_registry.registerError(CostOptimizationHubServiceException$, CostOptimizationHubServiceException);
488
- const n0_registry = TypeRegistry.for(n0);
488
+ const n0_registry = new TypeRegistry(n0);
489
489
  var AccessDeniedException$ = [-3, n0, _ADE,
490
490
  { [_e]: _c, [_hE]: 403 },
491
491
  [_m],
@@ -278,10 +278,10 @@ const n0 = "com.amazonaws.costoptimizationhub";
278
278
  import { TypeRegistry } from "@smithy/core/schema";
279
279
  import { CostOptimizationHubServiceException } from "../models/CostOptimizationHubServiceException";
280
280
  import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/errors";
281
- const _s_registry = TypeRegistry.for(_s);
281
+ const _s_registry = new TypeRegistry(_s);
282
282
  export var CostOptimizationHubServiceException$ = [-3, _s, "CostOptimizationHubServiceException", 0, [], []];
283
283
  _s_registry.registerError(CostOptimizationHubServiceException$, CostOptimizationHubServiceException);
284
- const n0_registry = TypeRegistry.for(n0);
284
+ const n0_registry = new TypeRegistry(n0);
285
285
  export var AccessDeniedException$ = [-3, n0, _ADE,
286
286
  { [_e]: _c, [_hE]: 403 },
287
287
  [_m],
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { type GetPreferencesCommandInput, type GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
3
3
  import { type GetRecommendationCommandInput, type GetRecommendationCommandOutput } from "./commands/GetRecommendationCommand";
4
4
  import { type ListEfficiencyMetricsCommandInput, type ListEfficiencyMetricsCommandOutput } from "./commands/ListEfficiencyMetricsCommand";
@@ -8,59 +8,65 @@ import { type ListRecommendationSummariesCommandInput, type ListRecommendationSu
8
8
  import { type UpdateEnrollmentStatusCommandInput, type UpdateEnrollmentStatusCommandOutput } from "./commands/UpdateEnrollmentStatusCommand";
9
9
  import { type UpdatePreferencesCommandInput, type UpdatePreferencesCommandOutput } from "./commands/UpdatePreferencesCommand";
10
10
  import { CostOptimizationHubClient } from "./CostOptimizationHubClient";
11
+ /**
12
+ * @public
13
+ */
14
+ export interface CostOptimizationHubRequestOptions extends __HttpHandlerOptions {
15
+ metricsRecorder?: __MetricsRecorder<unknown>;
16
+ }
11
17
  export interface CostOptimizationHub {
12
18
  /**
13
19
  * @see {@link GetPreferencesCommand}
14
20
  */
15
21
  getPreferences(): Promise<GetPreferencesCommandOutput>;
16
- getPreferences(args: GetPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetPreferencesCommandOutput>;
22
+ getPreferences(args: GetPreferencesCommandInput, options?: CostOptimizationHubRequestOptions): Promise<GetPreferencesCommandOutput>;
17
23
  getPreferences(args: GetPreferencesCommandInput, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
18
- getPreferences(args: GetPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
24
+ getPreferences(args: GetPreferencesCommandInput, options: CostOptimizationHubRequestOptions, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
19
25
  /**
20
26
  * @see {@link GetRecommendationCommand}
21
27
  */
22
- getRecommendation(args: GetRecommendationCommandInput, options?: __HttpHandlerOptions): Promise<GetRecommendationCommandOutput>;
28
+ getRecommendation(args: GetRecommendationCommandInput, options?: CostOptimizationHubRequestOptions): Promise<GetRecommendationCommandOutput>;
23
29
  getRecommendation(args: GetRecommendationCommandInput, cb: (err: any, data?: GetRecommendationCommandOutput) => void): void;
24
- getRecommendation(args: GetRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecommendationCommandOutput) => void): void;
30
+ getRecommendation(args: GetRecommendationCommandInput, options: CostOptimizationHubRequestOptions, cb: (err: any, data?: GetRecommendationCommandOutput) => void): void;
25
31
  /**
26
32
  * @see {@link ListEfficiencyMetricsCommand}
27
33
  */
28
- listEfficiencyMetrics(args: ListEfficiencyMetricsCommandInput, options?: __HttpHandlerOptions): Promise<ListEfficiencyMetricsCommandOutput>;
34
+ listEfficiencyMetrics(args: ListEfficiencyMetricsCommandInput, options?: CostOptimizationHubRequestOptions): Promise<ListEfficiencyMetricsCommandOutput>;
29
35
  listEfficiencyMetrics(args: ListEfficiencyMetricsCommandInput, cb: (err: any, data?: ListEfficiencyMetricsCommandOutput) => void): void;
30
- listEfficiencyMetrics(args: ListEfficiencyMetricsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEfficiencyMetricsCommandOutput) => void): void;
36
+ listEfficiencyMetrics(args: ListEfficiencyMetricsCommandInput, options: CostOptimizationHubRequestOptions, cb: (err: any, data?: ListEfficiencyMetricsCommandOutput) => void): void;
31
37
  /**
32
38
  * @see {@link ListEnrollmentStatusesCommand}
33
39
  */
34
40
  listEnrollmentStatuses(): Promise<ListEnrollmentStatusesCommandOutput>;
35
- listEnrollmentStatuses(args: ListEnrollmentStatusesCommandInput, options?: __HttpHandlerOptions): Promise<ListEnrollmentStatusesCommandOutput>;
41
+ listEnrollmentStatuses(args: ListEnrollmentStatusesCommandInput, options?: CostOptimizationHubRequestOptions): Promise<ListEnrollmentStatusesCommandOutput>;
36
42
  listEnrollmentStatuses(args: ListEnrollmentStatusesCommandInput, cb: (err: any, data?: ListEnrollmentStatusesCommandOutput) => void): void;
37
- listEnrollmentStatuses(args: ListEnrollmentStatusesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEnrollmentStatusesCommandOutput) => void): void;
43
+ listEnrollmentStatuses(args: ListEnrollmentStatusesCommandInput, options: CostOptimizationHubRequestOptions, cb: (err: any, data?: ListEnrollmentStatusesCommandOutput) => void): void;
38
44
  /**
39
45
  * @see {@link ListRecommendationsCommand}
40
46
  */
41
47
  listRecommendations(): Promise<ListRecommendationsCommandOutput>;
42
- listRecommendations(args: ListRecommendationsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendationsCommandOutput>;
48
+ listRecommendations(args: ListRecommendationsCommandInput, options?: CostOptimizationHubRequestOptions): Promise<ListRecommendationsCommandOutput>;
43
49
  listRecommendations(args: ListRecommendationsCommandInput, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
44
- listRecommendations(args: ListRecommendationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
50
+ listRecommendations(args: ListRecommendationsCommandInput, options: CostOptimizationHubRequestOptions, cb: (err: any, data?: ListRecommendationsCommandOutput) => void): void;
45
51
  /**
46
52
  * @see {@link ListRecommendationSummariesCommand}
47
53
  */
48
- listRecommendationSummaries(args: ListRecommendationSummariesCommandInput, options?: __HttpHandlerOptions): Promise<ListRecommendationSummariesCommandOutput>;
54
+ listRecommendationSummaries(args: ListRecommendationSummariesCommandInput, options?: CostOptimizationHubRequestOptions): Promise<ListRecommendationSummariesCommandOutput>;
49
55
  listRecommendationSummaries(args: ListRecommendationSummariesCommandInput, cb: (err: any, data?: ListRecommendationSummariesCommandOutput) => void): void;
50
- listRecommendationSummaries(args: ListRecommendationSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecommendationSummariesCommandOutput) => void): void;
56
+ listRecommendationSummaries(args: ListRecommendationSummariesCommandInput, options: CostOptimizationHubRequestOptions, cb: (err: any, data?: ListRecommendationSummariesCommandOutput) => void): void;
51
57
  /**
52
58
  * @see {@link UpdateEnrollmentStatusCommand}
53
59
  */
54
- updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEnrollmentStatusCommandOutput>;
60
+ updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, options?: CostOptimizationHubRequestOptions): Promise<UpdateEnrollmentStatusCommandOutput>;
55
61
  updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void): void;
56
- updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void): void;
62
+ updateEnrollmentStatus(args: UpdateEnrollmentStatusCommandInput, options: CostOptimizationHubRequestOptions, cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void): void;
57
63
  /**
58
64
  * @see {@link UpdatePreferencesCommand}
59
65
  */
60
66
  updatePreferences(): Promise<UpdatePreferencesCommandOutput>;
61
- updatePreferences(args: UpdatePreferencesCommandInput, options?: __HttpHandlerOptions): Promise<UpdatePreferencesCommandOutput>;
67
+ updatePreferences(args: UpdatePreferencesCommandInput, options?: CostOptimizationHubRequestOptions): Promise<UpdatePreferencesCommandOutput>;
62
68
  updatePreferences(args: UpdatePreferencesCommandInput, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
63
- updatePreferences(args: UpdatePreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
69
+ updatePreferences(args: UpdatePreferencesCommandInput, options: CostOptimizationHubRequestOptions, cb: (err: any, data?: UpdatePreferencesCommandOutput) => void): void;
64
70
  /**
65
71
  * @see {@link ListEfficiencyMetricsCommand}
66
72
  * @param args - command input.
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  HttpHandlerOptions as __HttpHandlerOptions,
3
+ MetricsRecorder as __MetricsRecorder,
3
4
  PaginationConfiguration,
4
5
  Paginator,
5
6
  } from "@smithy/types";
@@ -36,11 +37,14 @@ import {
36
37
  UpdatePreferencesCommandOutput,
37
38
  } from "./commands/UpdatePreferencesCommand";
38
39
  import { CostOptimizationHubClient } from "./CostOptimizationHubClient";
40
+ export interface CostOptimizationHubRequestOptions extends __HttpHandlerOptions {
41
+ metricsRecorder?: __MetricsRecorder<unknown>;
42
+ }
39
43
  export interface CostOptimizationHub {
40
44
  getPreferences(): Promise<GetPreferencesCommandOutput>;
41
45
  getPreferences(
42
46
  args: GetPreferencesCommandInput,
43
- options?: __HttpHandlerOptions,
47
+ options?: CostOptimizationHubRequestOptions,
44
48
  ): Promise<GetPreferencesCommandOutput>;
45
49
  getPreferences(
46
50
  args: GetPreferencesCommandInput,
@@ -48,12 +52,12 @@ export interface CostOptimizationHub {
48
52
  ): void;
49
53
  getPreferences(
50
54
  args: GetPreferencesCommandInput,
51
- options: __HttpHandlerOptions,
55
+ options: CostOptimizationHubRequestOptions,
52
56
  cb: (err: any, data?: GetPreferencesCommandOutput) => void,
53
57
  ): void;
54
58
  getRecommendation(
55
59
  args: GetRecommendationCommandInput,
56
- options?: __HttpHandlerOptions,
60
+ options?: CostOptimizationHubRequestOptions,
57
61
  ): Promise<GetRecommendationCommandOutput>;
58
62
  getRecommendation(
59
63
  args: GetRecommendationCommandInput,
@@ -61,12 +65,12 @@ export interface CostOptimizationHub {
61
65
  ): void;
62
66
  getRecommendation(
63
67
  args: GetRecommendationCommandInput,
64
- options: __HttpHandlerOptions,
68
+ options: CostOptimizationHubRequestOptions,
65
69
  cb: (err: any, data?: GetRecommendationCommandOutput) => void,
66
70
  ): void;
67
71
  listEfficiencyMetrics(
68
72
  args: ListEfficiencyMetricsCommandInput,
69
- options?: __HttpHandlerOptions,
73
+ options?: CostOptimizationHubRequestOptions,
70
74
  ): Promise<ListEfficiencyMetricsCommandOutput>;
71
75
  listEfficiencyMetrics(
72
76
  args: ListEfficiencyMetricsCommandInput,
@@ -74,13 +78,13 @@ export interface CostOptimizationHub {
74
78
  ): void;
75
79
  listEfficiencyMetrics(
76
80
  args: ListEfficiencyMetricsCommandInput,
77
- options: __HttpHandlerOptions,
81
+ options: CostOptimizationHubRequestOptions,
78
82
  cb: (err: any, data?: ListEfficiencyMetricsCommandOutput) => void,
79
83
  ): void;
80
84
  listEnrollmentStatuses(): Promise<ListEnrollmentStatusesCommandOutput>;
81
85
  listEnrollmentStatuses(
82
86
  args: ListEnrollmentStatusesCommandInput,
83
- options?: __HttpHandlerOptions,
87
+ options?: CostOptimizationHubRequestOptions,
84
88
  ): Promise<ListEnrollmentStatusesCommandOutput>;
85
89
  listEnrollmentStatuses(
86
90
  args: ListEnrollmentStatusesCommandInput,
@@ -88,13 +92,13 @@ export interface CostOptimizationHub {
88
92
  ): void;
89
93
  listEnrollmentStatuses(
90
94
  args: ListEnrollmentStatusesCommandInput,
91
- options: __HttpHandlerOptions,
95
+ options: CostOptimizationHubRequestOptions,
92
96
  cb: (err: any, data?: ListEnrollmentStatusesCommandOutput) => void,
93
97
  ): void;
94
98
  listRecommendations(): Promise<ListRecommendationsCommandOutput>;
95
99
  listRecommendations(
96
100
  args: ListRecommendationsCommandInput,
97
- options?: __HttpHandlerOptions,
101
+ options?: CostOptimizationHubRequestOptions,
98
102
  ): Promise<ListRecommendationsCommandOutput>;
99
103
  listRecommendations(
100
104
  args: ListRecommendationsCommandInput,
@@ -102,12 +106,12 @@ export interface CostOptimizationHub {
102
106
  ): void;
103
107
  listRecommendations(
104
108
  args: ListRecommendationsCommandInput,
105
- options: __HttpHandlerOptions,
109
+ options: CostOptimizationHubRequestOptions,
106
110
  cb: (err: any, data?: ListRecommendationsCommandOutput) => void,
107
111
  ): void;
108
112
  listRecommendationSummaries(
109
113
  args: ListRecommendationSummariesCommandInput,
110
- options?: __HttpHandlerOptions,
114
+ options?: CostOptimizationHubRequestOptions,
111
115
  ): Promise<ListRecommendationSummariesCommandOutput>;
112
116
  listRecommendationSummaries(
113
117
  args: ListRecommendationSummariesCommandInput,
@@ -115,12 +119,12 @@ export interface CostOptimizationHub {
115
119
  ): void;
116
120
  listRecommendationSummaries(
117
121
  args: ListRecommendationSummariesCommandInput,
118
- options: __HttpHandlerOptions,
122
+ options: CostOptimizationHubRequestOptions,
119
123
  cb: (err: any, data?: ListRecommendationSummariesCommandOutput) => void,
120
124
  ): void;
121
125
  updateEnrollmentStatus(
122
126
  args: UpdateEnrollmentStatusCommandInput,
123
- options?: __HttpHandlerOptions,
127
+ options?: CostOptimizationHubRequestOptions,
124
128
  ): Promise<UpdateEnrollmentStatusCommandOutput>;
125
129
  updateEnrollmentStatus(
126
130
  args: UpdateEnrollmentStatusCommandInput,
@@ -128,13 +132,13 @@ export interface CostOptimizationHub {
128
132
  ): void;
129
133
  updateEnrollmentStatus(
130
134
  args: UpdateEnrollmentStatusCommandInput,
131
- options: __HttpHandlerOptions,
135
+ options: CostOptimizationHubRequestOptions,
132
136
  cb: (err: any, data?: UpdateEnrollmentStatusCommandOutput) => void,
133
137
  ): void;
134
138
  updatePreferences(): Promise<UpdatePreferencesCommandOutput>;
135
139
  updatePreferences(
136
140
  args: UpdatePreferencesCommandInput,
137
- options?: __HttpHandlerOptions,
141
+ options?: CostOptimizationHubRequestOptions,
138
142
  ): Promise<UpdatePreferencesCommandOutput>;
139
143
  updatePreferences(
140
144
  args: UpdatePreferencesCommandInput,
@@ -142,7 +146,7 @@ export interface CostOptimizationHub {
142
146
  ): void;
143
147
  updatePreferences(
144
148
  args: UpdatePreferencesCommandInput,
145
- options: __HttpHandlerOptions,
149
+ options: CostOptimizationHubRequestOptions,
146
150
  cb: (err: any, data?: UpdatePreferencesCommandOutput) => void,
147
151
  ): void;
148
152
  paginateListEfficiencyMetrics(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cost-optimization-hub",
3
- "version": "3.1136.0",
3
+ "version": "3.1138.0",
4
4
  "description": "AWS SDK for JavaScript Cost Optimization Hub Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cost-optimization-hub",
6
6
  "license": "Apache-2.0",
@@ -46,13 +46,13 @@
46
46
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
47
47
  },
48
48
  "dependencies": {
49
- "@aws-sdk/core": "^3.978.0",
50
- "@aws-sdk/credential-provider-node": "^3.972.83",
51
- "@aws-sdk/types": "^3.974.5",
52
- "@smithy/core": "^3.33.3",
53
- "@smithy/fetch-http-handler": "^5.7.2",
54
- "@smithy/node-http-handler": "^4.11.3",
55
- "@smithy/types": "^4.17.2",
49
+ "@aws-sdk/core": "^3.978.1",
50
+ "@aws-sdk/credential-provider-node": "^3.972.84",
51
+ "@aws-sdk/types": "^3.974.6",
52
+ "@smithy/core": "^3.35.0",
53
+ "@smithy/fetch-http-handler": "^5.8.0",
54
+ "@smithy/node-http-handler": "^4.12.1",
55
+ "@smithy/types": "^4.19.0",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {