@aws-sdk/client-billing 3.775.0 → 3.782.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-types/commands/CreateBillingViewCommand.d.ts +12 -12
- package/dist-types/commands/DeleteBillingViewCommand.d.ts +5 -5
- package/dist-types/commands/GetBillingViewCommand.d.ts +14 -14
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +6 -6
- package/dist-types/commands/ListBillingViewsCommand.d.ts +18 -16
- package/dist-types/commands/ListSourceViewsForBillingViewCommand.d.ts +5 -5
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +7 -7
- package/dist-types/commands/TagResourceCommand.d.ts +10 -7
- package/dist-types/commands/UntagResourceCommand.d.ts +8 -5
- package/dist-types/commands/UpdateBillingViewCommand.d.ts +12 -12
- package/package.json +5 -5
|
@@ -107,36 +107,36 @@ declare const CreateBillingViewCommand_base: {
|
|
|
107
107
|
* @throws {@link BillingServiceException}
|
|
108
108
|
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
109
109
|
*
|
|
110
|
-
*
|
|
110
|
+
*
|
|
111
111
|
* @example Invoke CreateBillingView
|
|
112
112
|
* ```javascript
|
|
113
113
|
* //
|
|
114
114
|
* const input = {
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
* "values": [
|
|
115
|
+
* dataFilterExpression: {
|
|
116
|
+
* dimensions: {
|
|
117
|
+
* key: "LINKED_ACCOUNT",
|
|
118
|
+
* values: [
|
|
120
119
|
* "000000000000"
|
|
121
120
|
* ]
|
|
122
121
|
* }
|
|
123
122
|
* },
|
|
124
|
-
*
|
|
125
|
-
* "
|
|
123
|
+
* description: "Custom Billing View Example",
|
|
124
|
+
* name: "Example Custom Billing View",
|
|
125
|
+
* sourceViews: [
|
|
126
126
|
* "arn:aws:billing::123456789101:billingview/primary"
|
|
127
127
|
* ]
|
|
128
128
|
* };
|
|
129
129
|
* const command = new CreateBillingViewCommand(input);
|
|
130
130
|
* const response = await client.send(command);
|
|
131
|
-
* /* response
|
|
131
|
+
* /* response is
|
|
132
132
|
* {
|
|
133
|
-
*
|
|
134
|
-
*
|
|
133
|
+
* arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
|
|
134
|
+
* createdAt: 1719792001
|
|
135
135
|
* }
|
|
136
136
|
* *\/
|
|
137
|
-
* // example id: example-1
|
|
138
137
|
* ```
|
|
139
138
|
*
|
|
139
|
+
* @public
|
|
140
140
|
*/
|
|
141
141
|
export declare class CreateBillingViewCommand extends CreateBillingViewCommand_base {
|
|
142
142
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -74,23 +74,23 @@ declare const DeleteBillingViewCommand_base: {
|
|
|
74
74
|
* @throws {@link BillingServiceException}
|
|
75
75
|
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
76
76
|
*
|
|
77
|
-
*
|
|
77
|
+
*
|
|
78
78
|
* @example Invoke DeleteBillingView
|
|
79
79
|
* ```javascript
|
|
80
80
|
* //
|
|
81
81
|
* const input = {
|
|
82
|
-
*
|
|
82
|
+
* arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
|
|
83
83
|
* };
|
|
84
84
|
* const command = new DeleteBillingViewCommand(input);
|
|
85
85
|
* const response = await client.send(command);
|
|
86
|
-
* /* response
|
|
86
|
+
* /* response is
|
|
87
87
|
* {
|
|
88
|
-
*
|
|
88
|
+
* arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
|
|
89
89
|
* }
|
|
90
90
|
* *\/
|
|
91
|
-
* // example id: example-1
|
|
92
91
|
* ```
|
|
93
92
|
*
|
|
93
|
+
* @public
|
|
94
94
|
*/
|
|
95
95
|
export declare class DeleteBillingViewCommand extends DeleteBillingViewCommand_base {
|
|
96
96
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -97,37 +97,37 @@ declare const GetBillingViewCommand_base: {
|
|
|
97
97
|
* @throws {@link BillingServiceException}
|
|
98
98
|
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
99
99
|
*
|
|
100
|
-
*
|
|
100
|
+
*
|
|
101
101
|
* @example Invoke GetBillingView
|
|
102
102
|
* ```javascript
|
|
103
103
|
* //
|
|
104
104
|
* const input = {
|
|
105
|
-
*
|
|
105
|
+
* arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
|
|
106
106
|
* };
|
|
107
107
|
* const command = new GetBillingViewCommand(input);
|
|
108
108
|
* const response = await client.send(command);
|
|
109
|
-
* /* response
|
|
109
|
+
* /* response is
|
|
110
110
|
* {
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* "values": [
|
|
111
|
+
* billingView: {
|
|
112
|
+
* arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
|
|
113
|
+
* billingViewType: "CUSTOM",
|
|
114
|
+
* dataFilterExpression: {
|
|
115
|
+
* dimensions: {
|
|
116
|
+
* key: "LINKED_ACCOUNT",
|
|
117
|
+
* values: [
|
|
119
118
|
* "000000000000"
|
|
120
119
|
* ]
|
|
121
120
|
* }
|
|
122
121
|
* },
|
|
123
|
-
*
|
|
124
|
-
*
|
|
122
|
+
* description: "Custom Billing View Example -- updated description",
|
|
123
|
+
* name: "Example Custom Billing View",
|
|
124
|
+
* ownerAccountId: "123456789101"
|
|
125
125
|
* }
|
|
126
126
|
* }
|
|
127
127
|
* *\/
|
|
128
|
-
* // example id: example-1
|
|
129
128
|
* ```
|
|
130
129
|
*
|
|
130
|
+
* @public
|
|
131
131
|
*/
|
|
132
132
|
export declare class GetBillingViewCommand extends GetBillingViewCommand_base {
|
|
133
133
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -76,24 +76,24 @@ declare const GetResourcePolicyCommand_base: {
|
|
|
76
76
|
* @throws {@link BillingServiceException}
|
|
77
77
|
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
78
78
|
*
|
|
79
|
-
*
|
|
79
|
+
*
|
|
80
80
|
* @example Invoke GetResourcePolicy
|
|
81
81
|
* ```javascript
|
|
82
82
|
* //
|
|
83
83
|
* const input = {
|
|
84
|
-
*
|
|
84
|
+
* resourceArn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
|
|
85
85
|
* };
|
|
86
86
|
* const command = new GetResourcePolicyCommand(input);
|
|
87
87
|
* const response = await client.send(command);
|
|
88
|
-
* /* response
|
|
88
|
+
* /* response is
|
|
89
89
|
* {
|
|
90
|
-
*
|
|
91
|
-
*
|
|
90
|
+
* policy: `{"Version":"2012-10-17","Id":"46f47cb2-a11d-43f3-983d-470b5708a899","Statement":[{"Sid":"ExampleStatement1","Effect":"Allow","Principal":{"AWS":"arn:aws:iam::000000000000:root"},"Action":["ce:GetDimensionValues","ce:GetCostAndUsageWithResources","ce:GetCostAndUsage","ce:GetCostForecast","ce:GetTags","ce:GetUsageForecast","ce:GetCostCategories","billing:GetBillingView"],"Resource":"arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"}]}`,
|
|
91
|
+
* resourceArn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
|
|
92
92
|
* }
|
|
93
93
|
* *\/
|
|
94
|
-
* // example id: example-1
|
|
95
94
|
* ```
|
|
96
95
|
*
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
98
|
export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
|
|
99
99
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -92,47 +92,49 @@ declare const ListBillingViewsCommand_base: {
|
|
|
92
92
|
* @throws {@link BillingServiceException}
|
|
93
93
|
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
94
94
|
*
|
|
95
|
-
*
|
|
95
|
+
*
|
|
96
96
|
* @example Invoke ListBillingViews
|
|
97
97
|
* ```javascript
|
|
98
98
|
* //
|
|
99
99
|
* const input = {
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
100
|
+
* activeTimeRange: {
|
|
101
|
+
* activeAfterInclusive: 1719792000,
|
|
102
|
+
* activeBeforeInclusive: 1.722470399999E9
|
|
103
103
|
* }
|
|
104
104
|
* };
|
|
105
105
|
* const command = new ListBillingViewsCommand(input);
|
|
106
106
|
* const response = await client.send(command);
|
|
107
|
-
* /* response
|
|
107
|
+
* /* response is
|
|
108
108
|
* {
|
|
109
|
-
*
|
|
109
|
+
* billingViews: [
|
|
110
110
|
* {
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
111
|
+
* arn: "arn:aws:billing::123456789101:billingview/primary",
|
|
112
|
+
* billingViewType: "PRIMARY",
|
|
113
|
+
* name: "Primary Billing View Account 123456789101",
|
|
114
|
+
* ownerAccountId: "123456789101"
|
|
115
115
|
* }
|
|
116
116
|
* ]
|
|
117
117
|
* }
|
|
118
118
|
* *\/
|
|
119
|
-
* // example id: example-1
|
|
120
119
|
* ```
|
|
121
120
|
*
|
|
122
121
|
* @example Error example for ListBillingViews
|
|
123
122
|
* ```javascript
|
|
124
123
|
* //
|
|
125
124
|
* const input = {
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
125
|
+
* activeTimeRange: {
|
|
126
|
+
* activeAfterInclusive: 1719792001,
|
|
127
|
+
* activeBeforeInclusive: 1719792000
|
|
129
128
|
* }
|
|
130
129
|
* };
|
|
131
130
|
* const command = new ListBillingViewsCommand(input);
|
|
132
|
-
* await client.send(command);
|
|
133
|
-
*
|
|
131
|
+
* const response = await client.send(command);
|
|
132
|
+
* /* response is
|
|
133
|
+
* { /* metadata only *\/ }
|
|
134
|
+
* *\/
|
|
134
135
|
* ```
|
|
135
136
|
*
|
|
137
|
+
* @public
|
|
136
138
|
*/
|
|
137
139
|
export declare class ListBillingViewsCommand extends ListBillingViewsCommand_base {
|
|
138
140
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -80,25 +80,25 @@ declare const ListSourceViewsForBillingViewCommand_base: {
|
|
|
80
80
|
* @throws {@link BillingServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
82
82
|
*
|
|
83
|
-
*
|
|
83
|
+
*
|
|
84
84
|
* @example Invoke ListSourceViewsForBillingView
|
|
85
85
|
* ```javascript
|
|
86
86
|
* //
|
|
87
87
|
* const input = {
|
|
88
|
-
*
|
|
88
|
+
* arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
|
|
89
89
|
* };
|
|
90
90
|
* const command = new ListSourceViewsForBillingViewCommand(input);
|
|
91
91
|
* const response = await client.send(command);
|
|
92
|
-
* /* response
|
|
92
|
+
* /* response is
|
|
93
93
|
* {
|
|
94
|
-
*
|
|
94
|
+
* sourceViews: [
|
|
95
95
|
* "arn:aws:billing::123456789101:billingview/primary"
|
|
96
96
|
* ]
|
|
97
97
|
* }
|
|
98
98
|
* *\/
|
|
99
|
-
* // example id: example-1
|
|
100
99
|
* ```
|
|
101
100
|
*
|
|
101
|
+
* @public
|
|
102
102
|
*/
|
|
103
103
|
export declare class ListSourceViewsForBillingViewCommand extends ListSourceViewsForBillingViewCommand_base {
|
|
104
104
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -80,28 +80,28 @@ declare const ListTagsForResourceCommand_base: {
|
|
|
80
80
|
* @throws {@link BillingServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
82
82
|
*
|
|
83
|
-
*
|
|
83
|
+
*
|
|
84
84
|
* @example Invoke ListTagsForResource
|
|
85
85
|
* ```javascript
|
|
86
86
|
* //
|
|
87
87
|
* const input = {
|
|
88
|
-
*
|
|
88
|
+
* resourceArn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
|
|
89
89
|
* };
|
|
90
90
|
* const command = new ListTagsForResourceCommand(input);
|
|
91
91
|
* const response = await client.send(command);
|
|
92
|
-
* /* response
|
|
92
|
+
* /* response is
|
|
93
93
|
* {
|
|
94
|
-
*
|
|
94
|
+
* resourceTags: [
|
|
95
95
|
* {
|
|
96
|
-
*
|
|
97
|
-
*
|
|
96
|
+
* key: "ExampleTagKey",
|
|
97
|
+
* value: "ExampleTagValue"
|
|
98
98
|
* }
|
|
99
99
|
* ]
|
|
100
100
|
* }
|
|
101
101
|
* *\/
|
|
102
|
-
* // example id: example-1
|
|
103
102
|
* ```
|
|
104
103
|
*
|
|
104
|
+
* @public
|
|
105
105
|
*/
|
|
106
106
|
export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
|
|
107
107
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -80,24 +80,27 @@ declare const TagResourceCommand_base: {
|
|
|
80
80
|
* @throws {@link BillingServiceException}
|
|
81
81
|
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
82
82
|
*
|
|
83
|
-
*
|
|
83
|
+
*
|
|
84
84
|
* @example Invoke TagResource
|
|
85
85
|
* ```javascript
|
|
86
86
|
* //
|
|
87
87
|
* const input = {
|
|
88
|
-
*
|
|
89
|
-
*
|
|
88
|
+
* resourceArn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
|
|
89
|
+
* resourceTags: [
|
|
90
90
|
* {
|
|
91
|
-
*
|
|
92
|
-
*
|
|
91
|
+
* key: "ExampleTagKey",
|
|
92
|
+
* value: "ExampleTagValue"
|
|
93
93
|
* }
|
|
94
94
|
* ]
|
|
95
95
|
* };
|
|
96
96
|
* const command = new TagResourceCommand(input);
|
|
97
|
-
* await client.send(command);
|
|
98
|
-
*
|
|
97
|
+
* const response = await client.send(command);
|
|
98
|
+
* /* response is
|
|
99
|
+
* { /* empty *\/ }
|
|
100
|
+
* *\/
|
|
99
101
|
* ```
|
|
100
102
|
*
|
|
103
|
+
* @public
|
|
101
104
|
*/
|
|
102
105
|
export declare class TagResourceCommand extends TagResourceCommand_base {
|
|
103
106
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -77,21 +77,24 @@ declare const UntagResourceCommand_base: {
|
|
|
77
77
|
* @throws {@link BillingServiceException}
|
|
78
78
|
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
79
79
|
*
|
|
80
|
-
*
|
|
80
|
+
*
|
|
81
81
|
* @example Invoke UntagResource
|
|
82
82
|
* ```javascript
|
|
83
83
|
* //
|
|
84
84
|
* const input = {
|
|
85
|
-
*
|
|
86
|
-
*
|
|
85
|
+
* resourceArn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
|
|
86
|
+
* resourceTagKeys: [
|
|
87
87
|
* "ExampleTagKey"
|
|
88
88
|
* ]
|
|
89
89
|
* };
|
|
90
90
|
* const command = new UntagResourceCommand(input);
|
|
91
|
-
* await client.send(command);
|
|
92
|
-
*
|
|
91
|
+
* const response = await client.send(command);
|
|
92
|
+
* /* response is
|
|
93
|
+
* { /* empty *\/ }
|
|
94
|
+
* *\/
|
|
93
95
|
* ```
|
|
94
96
|
*
|
|
97
|
+
* @public
|
|
95
98
|
*/
|
|
96
99
|
export declare class UntagResourceCommand extends UntagResourceCommand_base {
|
|
97
100
|
/** @internal type navigation helper, not in runtime. */
|
|
@@ -102,34 +102,34 @@ declare const UpdateBillingViewCommand_base: {
|
|
|
102
102
|
* @throws {@link BillingServiceException}
|
|
103
103
|
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
104
104
|
*
|
|
105
|
-
*
|
|
105
|
+
*
|
|
106
106
|
* @example Invoke UpdateBillingView
|
|
107
107
|
* ```javascript
|
|
108
108
|
* //
|
|
109
109
|
* const input = {
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* "values": [
|
|
110
|
+
* arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
|
|
111
|
+
* dataFilterExpression: {
|
|
112
|
+
* dimensions: {
|
|
113
|
+
* key: "LINKED_ACCOUNT",
|
|
114
|
+
* values: [
|
|
116
115
|
* "000000000000"
|
|
117
116
|
* ]
|
|
118
117
|
* }
|
|
119
118
|
* },
|
|
120
|
-
*
|
|
119
|
+
* description: "Custom Billing View Example -- updated description",
|
|
120
|
+
* name: "Example Custom Billing View"
|
|
121
121
|
* };
|
|
122
122
|
* const command = new UpdateBillingViewCommand(input);
|
|
123
123
|
* const response = await client.send(command);
|
|
124
|
-
* /* response
|
|
124
|
+
* /* response is
|
|
125
125
|
* {
|
|
126
|
-
*
|
|
127
|
-
*
|
|
126
|
+
* arn: "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
|
|
127
|
+
* updatedAt: 1719792001
|
|
128
128
|
* }
|
|
129
129
|
* *\/
|
|
130
|
-
* // example id: example-1
|
|
131
130
|
* ```
|
|
132
131
|
*
|
|
132
|
+
* @public
|
|
133
133
|
*/
|
|
134
134
|
export declare class UpdateBillingViewCommand extends UpdateBillingViewCommand_base {
|
|
135
135
|
/** @internal type navigation helper, not in runtime. */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-billing",
|
|
3
3
|
"description": "AWS SDK for JavaScript Billing Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.782.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",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
23
|
"@aws-sdk/core": "3.775.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.782.0",
|
|
25
25
|
"@aws-sdk/middleware-host-header": "3.775.0",
|
|
26
26
|
"@aws-sdk/middleware-logger": "3.775.0",
|
|
27
27
|
"@aws-sdk/middleware-recursion-detection": "3.775.0",
|
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.782.0",
|
|
29
29
|
"@aws-sdk/region-config-resolver": "3.775.0",
|
|
30
30
|
"@aws-sdk/types": "3.775.0",
|
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
|
31
|
+
"@aws-sdk/util-endpoints": "3.782.0",
|
|
32
32
|
"@aws-sdk/util-user-agent-browser": "3.775.0",
|
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.782.0",
|
|
34
34
|
"@smithy/config-resolver": "^4.1.0",
|
|
35
35
|
"@smithy/core": "^3.2.0",
|
|
36
36
|
"@smithy/fetch-http-handler": "^5.0.2",
|