@aws-sdk/client-billing 3.717.0 → 3.718.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.
@@ -108,6 +108,35 @@ declare const CreateBillingViewCommand_base: {
108
108
  * <p>Base exception class for all service exceptions from Billing service.</p>
109
109
  *
110
110
  * @public
111
+ * @example Invoke CreateBillingView
112
+ * ```javascript
113
+ * //
114
+ * const input = {
115
+ * "name": "Example Custom Billing View",
116
+ * "dataFilterExpression": {
117
+ * "dimensions": {
118
+ * "key": "LINKED_ACCOUNT",
119
+ * "values": [
120
+ * "000000000000"
121
+ * ]
122
+ * }
123
+ * },
124
+ * "description": "Custom Billing View Example",
125
+ * "sourceViews": [
126
+ * "arn:aws:billing::123456789101:billingview/primary"
127
+ * ]
128
+ * };
129
+ * const command = new CreateBillingViewCommand(input);
130
+ * const response = await client.send(command);
131
+ * /* response ==
132
+ * {
133
+ * "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
134
+ * "createdAt": 1719792001
135
+ * }
136
+ * *\/
137
+ * // example id: example-1
138
+ * ```
139
+ *
111
140
  */
112
141
  export declare class CreateBillingViewCommand extends CreateBillingViewCommand_base {
113
142
  /** @internal type navigation helper, not in runtime. */
@@ -75,6 +75,22 @@ declare const DeleteBillingViewCommand_base: {
75
75
  * <p>Base exception class for all service exceptions from Billing service.</p>
76
76
  *
77
77
  * @public
78
+ * @example Invoke DeleteBillingView
79
+ * ```javascript
80
+ * //
81
+ * const input = {
82
+ * "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
83
+ * };
84
+ * const command = new DeleteBillingViewCommand(input);
85
+ * const response = await client.send(command);
86
+ * /* response ==
87
+ * {
88
+ * "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
89
+ * }
90
+ * *\/
91
+ * // example id: example-1
92
+ * ```
93
+ *
78
94
  */
79
95
  export declare class DeleteBillingViewCommand extends DeleteBillingViewCommand_base {
80
96
  /** @internal type navigation helper, not in runtime. */
@@ -98,6 +98,36 @@ declare const GetBillingViewCommand_base: {
98
98
  * <p>Base exception class for all service exceptions from Billing service.</p>
99
99
  *
100
100
  * @public
101
+ * @example Invoke GetBillingView
102
+ * ```javascript
103
+ * //
104
+ * const input = {
105
+ * "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
106
+ * };
107
+ * const command = new GetBillingViewCommand(input);
108
+ * const response = await client.send(command);
109
+ * /* response ==
110
+ * {
111
+ * "billingView": {
112
+ * "name": "Example Custom Billing View",
113
+ * "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
114
+ * "billingViewType": "CUSTOM",
115
+ * "dataFilterExpression": {
116
+ * "dimensions": {
117
+ * "key": "LINKED_ACCOUNT",
118
+ * "values": [
119
+ * "000000000000"
120
+ * ]
121
+ * }
122
+ * },
123
+ * "description": "Custom Billing View Example -- updated description",
124
+ * "ownerAccountId": "123456789101"
125
+ * }
126
+ * }
127
+ * *\/
128
+ * // example id: example-1
129
+ * ```
130
+ *
101
131
  */
102
132
  export declare class GetBillingViewCommand extends GetBillingViewCommand_base {
103
133
  /** @internal type navigation helper, not in runtime. */
@@ -77,6 +77,23 @@ declare const GetResourcePolicyCommand_base: {
77
77
  * <p>Base exception class for all service exceptions from Billing service.</p>
78
78
  *
79
79
  * @public
80
+ * @example Invoke GetResourcePolicy
81
+ * ```javascript
82
+ * //
83
+ * const input = {
84
+ * "resourceArn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
85
+ * };
86
+ * const command = new GetResourcePolicyCommand(input);
87
+ * const response = await client.send(command);
88
+ * /* response ==
89
+ * {
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
+ * }
93
+ * *\/
94
+ * // example id: example-1
95
+ * ```
96
+ *
80
97
  */
81
98
  export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
82
99
  /** @internal type navigation helper, not in runtime. */
@@ -81,6 +81,24 @@ declare const ListSourceViewsForBillingViewCommand_base: {
81
81
  * <p>Base exception class for all service exceptions from Billing service.</p>
82
82
  *
83
83
  * @public
84
+ * @example Invoke ListSourceViewsForBillingView
85
+ * ```javascript
86
+ * //
87
+ * const input = {
88
+ * "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
89
+ * };
90
+ * const command = new ListSourceViewsForBillingViewCommand(input);
91
+ * const response = await client.send(command);
92
+ * /* response ==
93
+ * {
94
+ * "sourceViews": [
95
+ * "arn:aws:billing::123456789101:billingview/primary"
96
+ * ]
97
+ * }
98
+ * *\/
99
+ * // example id: example-1
100
+ * ```
101
+ *
84
102
  */
85
103
  export declare class ListSourceViewsForBillingViewCommand extends ListSourceViewsForBillingViewCommand_base {
86
104
  /** @internal type navigation helper, not in runtime. */
@@ -81,6 +81,27 @@ declare const ListTagsForResourceCommand_base: {
81
81
  * <p>Base exception class for all service exceptions from Billing service.</p>
82
82
  *
83
83
  * @public
84
+ * @example Invoke ListTagsForResource
85
+ * ```javascript
86
+ * //
87
+ * const input = {
88
+ * "resourceArn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899"
89
+ * };
90
+ * const command = new ListTagsForResourceCommand(input);
91
+ * const response = await client.send(command);
92
+ * /* response ==
93
+ * {
94
+ * "resourceTags": [
95
+ * {
96
+ * "key": "ExampleTagKey",
97
+ * "value": "ExampleTagValue"
98
+ * }
99
+ * ]
100
+ * }
101
+ * *\/
102
+ * // example id: example-1
103
+ * ```
104
+ *
84
105
  */
85
106
  export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
86
107
  /** @internal type navigation helper, not in runtime. */
@@ -81,6 +81,23 @@ declare const TagResourceCommand_base: {
81
81
  * <p>Base exception class for all service exceptions from Billing service.</p>
82
82
  *
83
83
  * @public
84
+ * @example Invoke TagResource
85
+ * ```javascript
86
+ * //
87
+ * const input = {
88
+ * "resourceArn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
89
+ * "resourceTags": [
90
+ * {
91
+ * "key": "ExampleTagKey",
92
+ * "value": "ExampleTagValue"
93
+ * }
94
+ * ]
95
+ * };
96
+ * const command = new TagResourceCommand(input);
97
+ * await client.send(command);
98
+ * // example id: example-1
99
+ * ```
100
+ *
84
101
  */
85
102
  export declare class TagResourceCommand extends TagResourceCommand_base {
86
103
  /** @internal type navigation helper, not in runtime. */
@@ -78,6 +78,20 @@ declare const UntagResourceCommand_base: {
78
78
  * <p>Base exception class for all service exceptions from Billing service.</p>
79
79
  *
80
80
  * @public
81
+ * @example Invoke UntagResource
82
+ * ```javascript
83
+ * //
84
+ * const input = {
85
+ * "resourceArn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
86
+ * "resourceTagKeys": [
87
+ * "ExampleTagKey"
88
+ * ]
89
+ * };
90
+ * const command = new UntagResourceCommand(input);
91
+ * await client.send(command);
92
+ * // example id: example-1
93
+ * ```
94
+ *
81
95
  */
82
96
  export declare class UntagResourceCommand extends UntagResourceCommand_base {
83
97
  /** @internal type navigation helper, not in runtime. */
@@ -103,6 +103,33 @@ declare const UpdateBillingViewCommand_base: {
103
103
  * <p>Base exception class for all service exceptions from Billing service.</p>
104
104
  *
105
105
  * @public
106
+ * @example Invoke UpdateBillingView
107
+ * ```javascript
108
+ * //
109
+ * const input = {
110
+ * "name": "Example Custom Billing View",
111
+ * "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
112
+ * "dataFilterExpression": {
113
+ * "dimensions": {
114
+ * "key": "LINKED_ACCOUNT",
115
+ * "values": [
116
+ * "000000000000"
117
+ * ]
118
+ * }
119
+ * },
120
+ * "description": "Custom Billing View Example -- updated description"
121
+ * };
122
+ * const command = new UpdateBillingViewCommand(input);
123
+ * const response = await client.send(command);
124
+ * /* response ==
125
+ * {
126
+ * "arn": "arn:aws:billing::123456789101:billingview/custom-46f47cb2-a11d-43f3-983d-470b5708a899",
127
+ * "updatedAt": 1719792001
128
+ * }
129
+ * *\/
130
+ * // example id: example-1
131
+ * ```
132
+ *
106
133
  */
107
134
  export declare class UpdateBillingViewCommand extends UpdateBillingViewCommand_base {
108
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.717.0",
4
+ "version": "3.718.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",