@aws-sdk/client-cost-optimization-hub 3.623.0 → 3.625.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
@@ -41,6 +41,7 @@ __export(src_exports, {
41
41
  ResourceType: () => ResourceType,
42
42
  SavingsEstimationMode: () => SavingsEstimationMode,
43
43
  Source: () => Source,
44
+ SummaryMetrics: () => SummaryMetrics,
44
45
  ThrottlingException: () => ThrottlingException,
45
46
  UpdateEnrollmentStatusCommand: () => UpdateEnrollmentStatusCommand,
46
47
  UpdatePreferencesCommand: () => UpdatePreferencesCommand,
@@ -398,6 +399,9 @@ var Order = {
398
399
  ASC: "Asc",
399
400
  DESC: "Desc"
400
401
  };
402
+ var SummaryMetrics = {
403
+ SAVINGS_PERCENTAGE: "SavingsPercentage"
404
+ };
401
405
 
402
406
  // src/protocols/Aws_json1_0.ts
403
407
  var se_GetPreferencesCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -761,6 +765,7 @@ var de_ListRecommendationSummariesResponse = /* @__PURE__ */ __name((output, con
761
765
  estimatedTotalDedupedSavings: import_smithy_client.limitedParseDouble,
762
766
  groupBy: import_smithy_client.expectString,
763
767
  items: (_) => de_RecommendationSummariesList(_, context),
768
+ metrics: import_smithy_client._json,
764
769
  nextToken: import_smithy_client.expectString
765
770
  });
766
771
  }, "de_ListRecommendationSummariesResponse");
@@ -1192,6 +1197,7 @@ var paginateListRecommendations = (0, import_core.createPaginator)(CostOptimizat
1192
1197
  ImplementationEffort,
1193
1198
  Source,
1194
1199
  ResourceNotFoundException,
1195
- Order
1200
+ Order,
1201
+ SummaryMetrics
1196
1202
  });
1197
1203
 
@@ -154,3 +154,6 @@ export const Order = {
154
154
  ASC: "Asc",
155
155
  DESC: "Desc",
156
156
  };
157
+ export const SummaryMetrics = {
158
+ SAVINGS_PERCENTAGE: "SavingsPercentage",
159
+ };
@@ -366,6 +366,7 @@ const de_ListRecommendationSummariesResponse = (output, context) => {
366
366
  estimatedTotalDedupedSavings: __limitedParseDouble,
367
367
  groupBy: __expectString,
368
368
  items: (_) => de_RecommendationSummariesList(_, context),
369
+ metrics: _json,
369
370
  nextToken: __expectString,
370
371
  });
371
372
  };
@@ -76,6 +76,9 @@ declare const ListRecommendationSummariesCommand_base: {
76
76
  * },
77
77
  * groupBy: "STRING_VALUE", // required
78
78
  * maxResults: Number("int"),
79
+ * metrics: [ // SummaryMetricsList
80
+ * "SavingsPercentage",
81
+ * ],
79
82
  * nextToken: "STRING_VALUE",
80
83
  * };
81
84
  * const command = new ListRecommendationSummariesCommand(input);
@@ -91,6 +94,9 @@ declare const ListRecommendationSummariesCommand_base: {
91
94
  * // ],
92
95
  * // groupBy: "STRING_VALUE",
93
96
  * // currencyCode: "STRING_VALUE",
97
+ * // metrics: { // SummaryMetricsResult
98
+ * // savingsPercentage: "STRING_VALUE",
99
+ * // },
94
100
  * // nextToken: "STRING_VALUE",
95
101
  * // };
96
102
  *
@@ -29,8 +29,8 @@ declare const UpdateEnrollmentStatusCommand_base: {
29
29
  /**
30
30
  * <p>Updates the enrollment (opt in and opt out) status of an account to the Cost Optimization
31
31
  * Hub service.</p>
32
- * <p>If the account is a management account of an organization, this action can also be used to
33
- * enroll member accounts of the organization.</p>
32
+ * <p>If the account is a management account or delegated administrator of an organization, this
33
+ * action can also be used to enroll member accounts of the organization.</p>
34
34
  * <p>You must have the appropriate permissions to opt in to Cost Optimization Hub and to view
35
35
  * its recommendations. When you opt in, Cost Optimization Hub automatically creates a
36
36
  * service-linked role in your account to access its data.</p>
@@ -1911,7 +1911,7 @@ export interface ListEnrollmentStatusesResponse {
1911
1911
  items?: AccountEnrollmentStatus[];
1912
1912
  /**
1913
1913
  * <p>The enrollment status of all member accounts in the organization if the account is the
1914
- * management account.</p>
1914
+ * management account or delegated administrator.</p>
1915
1915
  * @public
1916
1916
  */
1917
1917
  includeMemberAccounts?: boolean;
@@ -2169,6 +2169,17 @@ export interface ListRecommendationsResponse {
2169
2169
  */
2170
2170
  nextToken?: string;
2171
2171
  }
2172
+ /**
2173
+ * @public
2174
+ * @enum
2175
+ */
2176
+ export declare const SummaryMetrics: {
2177
+ readonly SAVINGS_PERCENTAGE: "SavingsPercentage";
2178
+ };
2179
+ /**
2180
+ * @public
2181
+ */
2182
+ export type SummaryMetrics = (typeof SummaryMetrics)[keyof typeof SummaryMetrics];
2172
2183
  /**
2173
2184
  * @public
2174
2185
  */
@@ -2185,10 +2196,16 @@ export interface ListRecommendationSummariesRequest {
2185
2196
  */
2186
2197
  groupBy: string | undefined;
2187
2198
  /**
2188
- * <p>The maximum number of recommendations that are returned for the request.</p>
2199
+ * <p>The maximum number of recommendations to be returned for the request.</p>
2189
2200
  * @public
2190
2201
  */
2191
2202
  maxResults?: number;
2203
+ /**
2204
+ * <p>Additional metrics to be returned for the request. The only valid value is
2205
+ * <code>savingsPercentage</code>.</p>
2206
+ * @public
2207
+ */
2208
+ metrics?: SummaryMetrics[];
2192
2209
  /**
2193
2210
  * <p>The token to retrieve the next set of results.</p>
2194
2211
  * @public
@@ -2217,6 +2234,23 @@ export interface RecommendationSummary {
2217
2234
  */
2218
2235
  recommendationCount?: number;
2219
2236
  }
2237
+ /**
2238
+ * <p>The results or descriptions for the additional metrics, based on whether the metrics were
2239
+ * or were not requested.</p>
2240
+ * @public
2241
+ */
2242
+ export interface SummaryMetricsResult {
2243
+ /**
2244
+ * <p>The savings percentage based on your Amazon Web Services spend over the past 30
2245
+ * days.</p>
2246
+ * <note>
2247
+ * <p>Savings percentage is only supported when filtering by Region, account ID, or
2248
+ * tags.</p>
2249
+ * </note>
2250
+ * @public
2251
+ */
2252
+ savingsPercentage?: string;
2253
+ }
2220
2254
  /**
2221
2255
  * @public
2222
2256
  */
@@ -2227,7 +2261,7 @@ export interface ListRecommendationSummariesResponse {
2227
2261
  */
2228
2262
  estimatedTotalDedupedSavings?: number;
2229
2263
  /**
2230
- * <p>List of all savings recommendations.</p>
2264
+ * <p>A list of all savings recommendations.</p>
2231
2265
  * @public
2232
2266
  */
2233
2267
  items?: RecommendationSummary[];
@@ -2241,6 +2275,12 @@ export interface ListRecommendationSummariesResponse {
2241
2275
  * @public
2242
2276
  */
2243
2277
  currencyCode?: string;
2278
+ /**
2279
+ * <p>The results or descriptions for the additional metrics, based on whether the metrics were
2280
+ * or were not requested.</p>
2281
+ * @public
2282
+ */
2283
+ metrics?: SummaryMetricsResult;
2244
2284
  /**
2245
2285
  * <p>The token to retrieve the next set of results.</p>
2246
2286
  * @public
@@ -2258,7 +2298,7 @@ export interface UpdateEnrollmentStatusRequest {
2258
2298
  status: EnrollmentStatus | undefined;
2259
2299
  /**
2260
2300
  * <p>Indicates whether to enroll member accounts of the organization if the account is the
2261
- * management account.</p>
2301
+ * management account or delegated administrator.</p>
2262
2302
  * @public
2263
2303
  */
2264
2304
  includeMemberAccounts?: boolean;
@@ -790,10 +790,16 @@ export interface ListRecommendationsResponse {
790
790
  items?: Recommendation[];
791
791
  nextToken?: string;
792
792
  }
793
+ export declare const SummaryMetrics: {
794
+ readonly SAVINGS_PERCENTAGE: "SavingsPercentage";
795
+ };
796
+ export type SummaryMetrics =
797
+ (typeof SummaryMetrics)[keyof typeof SummaryMetrics];
793
798
  export interface ListRecommendationSummariesRequest {
794
799
  filter?: Filter;
795
800
  groupBy: string | undefined;
796
801
  maxResults?: number;
802
+ metrics?: SummaryMetrics[];
797
803
  nextToken?: string;
798
804
  }
799
805
  export interface RecommendationSummary {
@@ -801,11 +807,15 @@ export interface RecommendationSummary {
801
807
  estimatedMonthlySavings?: number;
802
808
  recommendationCount?: number;
803
809
  }
810
+ export interface SummaryMetricsResult {
811
+ savingsPercentage?: string;
812
+ }
804
813
  export interface ListRecommendationSummariesResponse {
805
814
  estimatedTotalDedupedSavings?: number;
806
815
  items?: RecommendationSummary[];
807
816
  groupBy?: string;
808
817
  currencyCode?: string;
818
+ metrics?: SummaryMetricsResult;
809
819
  nextToken?: string;
810
820
  }
811
821
  export interface UpdateEnrollmentStatusRequest {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cost-optimization-hub",
3
3
  "description": "AWS SDK for JavaScript Cost Optimization Hub Client for Node.js, Browser and React Native",
4
- "version": "3.623.0",
4
+ "version": "3.625.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cost-optimization-hub",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.623.0",
24
- "@aws-sdk/client-sts": "3.623.0",
25
- "@aws-sdk/core": "3.623.0",
26
- "@aws-sdk/credential-provider-node": "3.623.0",
23
+ "@aws-sdk/client-sso-oidc": "3.624.0",
24
+ "@aws-sdk/client-sts": "3.624.0",
25
+ "@aws-sdk/core": "3.624.0",
26
+ "@aws-sdk/credential-provider-node": "3.624.0",
27
27
  "@aws-sdk/middleware-host-header": "3.620.0",
28
28
  "@aws-sdk/middleware-logger": "3.609.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.620.0",