@aws-sdk/client-cost-explorer 3.178.0 → 3.180.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.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-cost-explorer:** This release is to support retroactive Cost Categories. The new field will enable you to retroactively apply new and existing cost category rules to previous months. ([a4bfd1f](https://github.com/aws/aws-sdk-js-v3/commit/a4bfd1f64567a535c9327ef7012daf301469e4e0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.179.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.178.0...v3.179.0) (2022-09-26)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-cost-explorer
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.178.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.177.0...v3.178.0) (2022-09-23)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-cost-explorer
|
|
@@ -1971,6 +1971,7 @@ const serializeAws_json1_1CreateAnomalySubscriptionRequest = (input, context) =>
|
|
|
1971
1971
|
const serializeAws_json1_1CreateCostCategoryDefinitionRequest = (input, context) => {
|
|
1972
1972
|
return {
|
|
1973
1973
|
...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
|
|
1974
|
+
...(input.EffectiveStart != null && { EffectiveStart: input.EffectiveStart }),
|
|
1974
1975
|
...(input.Name != null && { Name: input.Name }),
|
|
1975
1976
|
...(input.ResourceTags != null && {
|
|
1976
1977
|
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
@@ -2422,6 +2423,7 @@ const serializeAws_json1_1UpdateCostCategoryDefinitionRequest = (input, context)
|
|
|
2422
2423
|
return {
|
|
2423
2424
|
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
|
|
2424
2425
|
...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
|
|
2426
|
+
...(input.EffectiveStart != null && { EffectiveStart: input.EffectiveStart }),
|
|
2425
2427
|
...(input.RuleVersion != null && { RuleVersion: input.RuleVersion }),
|
|
2426
2428
|
...(input.Rules != null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) }),
|
|
2427
2429
|
...(input.SplitChargeRules != null && {
|
|
@@ -2603,7 +2603,7 @@ var serializeAws_json1_1CreateAnomalySubscriptionRequest = function (input, cont
|
|
|
2603
2603
|
}));
|
|
2604
2604
|
};
|
|
2605
2605
|
var serializeAws_json1_1CreateCostCategoryDefinitionRequest = function (input, context) {
|
|
2606
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultValue != null && { DefaultValue: input.DefaultValue })), (input.Name != null && { Name: input.Name })), (input.ResourceTags != null && {
|
|
2606
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultValue != null && { DefaultValue: input.DefaultValue })), (input.EffectiveStart != null && { EffectiveStart: input.EffectiveStart })), (input.Name != null && { Name: input.Name })), (input.ResourceTags != null && {
|
|
2607
2607
|
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
2608
2608
|
})), (input.RuleVersion != null && { RuleVersion: input.RuleVersion })), (input.Rules != null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) })), (input.SplitChargeRules != null && {
|
|
2609
2609
|
SplitChargeRules: serializeAws_json1_1CostCategorySplitChargeRulesList(input.SplitChargeRules, context),
|
|
@@ -2831,7 +2831,7 @@ var serializeAws_json1_1UpdateCostAllocationTagsStatusRequest = function (input,
|
|
|
2831
2831
|
}));
|
|
2832
2832
|
};
|
|
2833
2833
|
var serializeAws_json1_1UpdateCostCategoryDefinitionRequest = function (input, context) {
|
|
2834
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn })), (input.DefaultValue != null && { DefaultValue: input.DefaultValue })), (input.RuleVersion != null && { RuleVersion: input.RuleVersion })), (input.Rules != null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) })), (input.SplitChargeRules != null && {
|
|
2834
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn })), (input.DefaultValue != null && { DefaultValue: input.DefaultValue })), (input.EffectiveStart != null && { EffectiveStart: input.EffectiveStart })), (input.RuleVersion != null && { RuleVersion: input.RuleVersion })), (input.Rules != null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) })), (input.SplitChargeRules != null && {
|
|
2835
2835
|
SplitChargeRules: serializeAws_json1_1CostCategorySplitChargeRulesList(input.SplitChargeRules, context),
|
|
2836
2836
|
}));
|
|
2837
2837
|
};
|
|
@@ -194,7 +194,7 @@ export declare enum Dimension {
|
|
|
194
194
|
export interface DimensionValues {
|
|
195
195
|
/**
|
|
196
196
|
* <p>The names of the metadata types that you can use to filter and group your results. For
|
|
197
|
-
* example, <code>AZ</code> returns a list of Availability Zones
|
|
197
|
+
* example, <code>AZ</code> returns a list of Availability Zones. <code>LINK_ACCOUNT_NAME</code> and <code>SERVICE_CODE</code> can only be used in <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/AAPI_CostCategoryRule.html">CostCategoryRule</a>.</p>
|
|
198
198
|
*/
|
|
199
199
|
Key?: Dimension | string;
|
|
200
200
|
/**
|
|
@@ -215,7 +215,7 @@ export interface DimensionValues {
|
|
|
215
215
|
* <p>If <code>Values</code> and <code>Key</code> aren't specified, the <code>ABSENT</code>
|
|
216
216
|
* <code>MatchOption</code> is applied to all tags. That is, it's filtered on resources
|
|
217
217
|
* with no tags.</p>
|
|
218
|
-
* <p>If <code>
|
|
218
|
+
* <p>If <code>Key</code> is provided and <code>Values</code> isn't specified, the
|
|
219
219
|
* <code>ABSENT</code>
|
|
220
220
|
* <code>MatchOption</code> is applied to the tag <code>Key</code> only. That is, it's
|
|
221
221
|
* filtered on resources without the given tag key.</p>
|
|
@@ -498,7 +498,7 @@ export interface CreateCostCategoryDefinitionResponse {
|
|
|
498
498
|
*/
|
|
499
499
|
CostCategoryArn?: string;
|
|
500
500
|
/**
|
|
501
|
-
* <p>The Cost Category's effective start date.
|
|
501
|
+
* <p>The Cost Category's effective start date. It can only be a billing start date (first day of the month).</p>
|
|
502
502
|
*/
|
|
503
503
|
EffectiveStart?: string;
|
|
504
504
|
}
|
|
@@ -1046,7 +1046,7 @@ export interface GetDimensionValuesResponse {
|
|
|
1046
1046
|
* <p>RECORD_TYPE - The different types of charges such as RI fees, usage costs, tax refunds, and credits.</p>
|
|
1047
1047
|
* </li>
|
|
1048
1048
|
* <li>
|
|
1049
|
-
* <p>RESOURCE_ID - The unique identifier of the resource. ResourceId is an opt-in feature only available for last 14 days for EC2-Compute Service.</p>
|
|
1049
|
+
* <p>RESOURCE_ID - The unique identifier of the resource. ResourceId is an opt-in feature only available for last 14 days for EC2-Compute Service. You can opt-in by enabling <code>Hourly</code> and <code>Resource Level Data</code> in Cost Management Console preferences.</p>
|
|
1050
1050
|
* </li>
|
|
1051
1051
|
* </ul>
|
|
1052
1052
|
* <p>If you set the context to <code>RESERVATIONS</code>, you can use the following
|
|
@@ -3065,7 +3065,7 @@ export interface UpdateCostCategoryDefinitionResponse {
|
|
|
3065
3065
|
*/
|
|
3066
3066
|
CostCategoryArn?: string;
|
|
3067
3067
|
/**
|
|
3068
|
-
* <p>The Cost Category's effective start date.
|
|
3068
|
+
* <p>The Cost Category's effective start date. It can only be a billing start date (first day of the month).</p>
|
|
3069
3069
|
*/
|
|
3070
3070
|
EffectiveStart?: string;
|
|
3071
3071
|
}
|
|
@@ -3714,8 +3714,7 @@ export interface GetDimensionValuesRequest {
|
|
|
3714
3714
|
TimePeriod: DateInterval | undefined;
|
|
3715
3715
|
/**
|
|
3716
3716
|
* <p>The name of the dimension. Each <code>Dimension</code> is available for a different <code>Context</code>.
|
|
3717
|
-
*
|
|
3718
|
-
*
|
|
3717
|
+
* For more information, see <code>Context</code>. <code>LINK_ACCOUNT_NAME</code> and <code>SERVICE_CODE</code> can only be used in <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/AAPI_CostCategoryRule.html">CostCategoryRule</a>.
|
|
3719
3718
|
* </p>
|
|
3720
3719
|
*/
|
|
3721
3720
|
Dimension: Dimension | string | undefined;
|
|
@@ -3808,9 +3807,8 @@ export interface GetDimensionValuesRequest {
|
|
|
3808
3807
|
* <p>REGION - The Amazon Web Services Region.</p>
|
|
3809
3808
|
* </li>
|
|
3810
3809
|
* <li>
|
|
3811
|
-
* <p>RECORD_TYPE - The different types of charges such as
|
|
3812
|
-
*
|
|
3813
|
-
* Instance (RI) fees, usage costs, tax refunds, and credits.</p>
|
|
3810
|
+
* <p>RECORD_TYPE - The different types of charges such as Reserved Instance (RI) fees, usage
|
|
3811
|
+
* costs, tax refunds, and credits.</p>
|
|
3814
3812
|
* </li>
|
|
3815
3813
|
* <li>
|
|
3816
3814
|
* <p>RESOURCE_ID - The unique identifier of the resource. ResourceId is an opt-in feature only available for last 14 days for EC2-Compute Service.</p>
|
|
@@ -5189,11 +5187,11 @@ export interface CostCategory {
|
|
|
5189
5187
|
*/
|
|
5190
5188
|
CostCategoryArn: string | undefined;
|
|
5191
5189
|
/**
|
|
5192
|
-
* <p>The effective
|
|
5190
|
+
* <p>The effective start date of your Cost Category.</p>
|
|
5193
5191
|
*/
|
|
5194
5192
|
EffectiveStart: string | undefined;
|
|
5195
5193
|
/**
|
|
5196
|
-
* <p>The effective end
|
|
5194
|
+
* <p>The effective end date of your Cost Category.</p>
|
|
5197
5195
|
*/
|
|
5198
5196
|
EffectiveEnd?: string;
|
|
5199
5197
|
/**
|
|
@@ -5231,6 +5229,10 @@ export interface CreateCostCategoryDefinitionRequest {
|
|
|
5231
5229
|
* <p>The unique name of the Cost Category.</p>
|
|
5232
5230
|
*/
|
|
5233
5231
|
Name: string | undefined;
|
|
5232
|
+
/**
|
|
5233
|
+
* <p>The Cost Category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.</p>
|
|
5234
|
+
*/
|
|
5235
|
+
EffectiveStart?: string;
|
|
5234
5236
|
/**
|
|
5235
5237
|
* <p>The rule schema version in this particular Cost Category.</p>
|
|
5236
5238
|
*/
|
|
@@ -5300,6 +5302,10 @@ export interface UpdateCostCategoryDefinitionRequest {
|
|
|
5300
5302
|
* <p>The unique identifier for your Cost Category.</p>
|
|
5301
5303
|
*/
|
|
5302
5304
|
CostCategoryArn: string | undefined;
|
|
5305
|
+
/**
|
|
5306
|
+
* <p>The Cost Category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.</p>
|
|
5307
|
+
*/
|
|
5308
|
+
EffectiveStart?: string;
|
|
5303
5309
|
/**
|
|
5304
5310
|
* <p>The rule schema version in this particular Cost Category.</p>
|
|
5305
5311
|
*/
|
|
@@ -1169,6 +1169,7 @@ export interface CostCategory {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
export interface CreateCostCategoryDefinitionRequest {
|
|
1171
1171
|
Name: string | undefined;
|
|
1172
|
+
EffectiveStart?: string;
|
|
1172
1173
|
RuleVersion: CostCategoryRuleVersion | string | undefined;
|
|
1173
1174
|
Rules: CostCategoryRule[] | undefined;
|
|
1174
1175
|
DefaultValue?: string;
|
|
@@ -1181,6 +1182,7 @@ export interface GetAnomalyMonitorsResponse {
|
|
|
1181
1182
|
}
|
|
1182
1183
|
export interface UpdateCostCategoryDefinitionRequest {
|
|
1183
1184
|
CostCategoryArn: string | undefined;
|
|
1185
|
+
EffectiveStart?: string;
|
|
1184
1186
|
RuleVersion: CostCategoryRuleVersion | string | undefined;
|
|
1185
1187
|
Rules: CostCategoryRule[] | undefined;
|
|
1186
1188
|
DefaultValue?: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cost-explorer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cost Explorer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.180.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.180.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.178.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.180.0",
|
|
25
25
|
"@aws-sdk/fetch-http-handler": "3.178.0",
|
|
26
26
|
"@aws-sdk/hash-node": "3.178.0",
|
|
27
27
|
"@aws-sdk/invalid-dependency": "3.178.0",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
"@aws-sdk/middleware-recursion-detection": "3.178.0",
|
|
32
32
|
"@aws-sdk/middleware-retry": "3.178.0",
|
|
33
33
|
"@aws-sdk/middleware-serde": "3.178.0",
|
|
34
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
+
"@aws-sdk/middleware-signing": "3.179.0",
|
|
35
35
|
"@aws-sdk/middleware-stack": "3.178.0",
|
|
36
36
|
"@aws-sdk/middleware-user-agent": "3.178.0",
|
|
37
37
|
"@aws-sdk/node-config-provider": "3.178.0",
|
|
38
38
|
"@aws-sdk/node-http-handler": "3.178.0",
|
|
39
39
|
"@aws-sdk/protocol-http": "3.178.0",
|
|
40
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
+
"@aws-sdk/smithy-client": "3.180.0",
|
|
41
41
|
"@aws-sdk/types": "3.178.0",
|
|
42
42
|
"@aws-sdk/url-parser": "3.178.0",
|
|
43
43
|
"@aws-sdk/util-base64-browser": "3.170.0",
|
|
44
44
|
"@aws-sdk/util-base64-node": "3.170.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.170.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.170.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.180.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.180.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-browser": "3.178.0",
|
|
50
50
|
"@aws-sdk/util-user-agent-node": "3.178.0",
|
|
51
51
|
"@aws-sdk/util-utf8-browser": "3.170.0",
|