@aws-sdk/client-billing 3.716.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.
- package/README.md +72 -0
- package/dist-cjs/Billing.js +18 -0
- package/dist-cjs/commands/CreateBillingViewCommand.js +27 -0
- package/dist-cjs/commands/DeleteBillingViewCommand.js +26 -0
- package/dist-cjs/commands/GetBillingViewCommand.js +27 -0
- package/dist-cjs/commands/GetResourcePolicyCommand.js +26 -0
- package/dist-cjs/commands/ListSourceViewsForBillingViewCommand.js +26 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
- package/dist-cjs/commands/TagResourceCommand.js +26 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/UpdateBillingViewCommand.js +27 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/models/models_0.js +80 -5
- package/dist-cjs/pagination/ListSourceViewsForBillingViewPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +269 -1
- package/dist-es/Billing.js +18 -0
- package/dist-es/commands/CreateBillingViewCommand.js +23 -0
- package/dist-es/commands/DeleteBillingViewCommand.js +22 -0
- package/dist-es/commands/GetBillingViewCommand.js +23 -0
- package/dist-es/commands/GetResourcePolicyCommand.js +22 -0
- package/dist-es/commands/ListSourceViewsForBillingViewCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateBillingViewCommand.js +23 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +72 -4
- package/dist-es/pagination/ListSourceViewsForBillingViewPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +252 -2
- package/dist-types/Billing.d.ts +64 -0
- package/dist-types/BillingClient.d.ts +11 -2
- package/dist-types/commands/CreateBillingViewCommand.d.ts +153 -0
- package/dist-types/commands/DeleteBillingViewCommand.d.ts +107 -0
- package/dist-types/commands/GetBillingViewCommand.d.ts +144 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +110 -0
- package/dist-types/commands/ListBillingViewsCommand.d.ts +12 -4
- package/dist-types/commands/ListSourceViewsForBillingViewCommand.d.ts +115 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +118 -0
- package/dist-types/commands/TagResourceCommand.d.ts +114 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +108 -0
- package/dist-types/commands/UpdateBillingViewCommand.d.ts +146 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +640 -37
- package/dist-types/pagination/ListSourceViewsForBillingViewPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +81 -0
- package/dist-types/ts3.4/Billing.d.ts +154 -0
- package/dist-types/ts3.4/BillingClient.d.ts +58 -2
- package/dist-types/ts3.4/commands/CreateBillingViewCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteBillingViewCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetBillingViewCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListBillingViewsCommand.d.ts +10 -6
- package/dist-types/ts3.4/commands/ListSourceViewsForBillingViewCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateBillingViewCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +160 -20
- package/dist-types/ts3.4/pagination/ListSourceViewsForBillingViewPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +108 -0
- package/package.json +4 -2
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BillingClient";
|
|
4
|
+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListTagsForResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListTagsForResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const ListTagsForResourceCommand_base: {
|
|
25
|
+
new (input: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: ListTagsForResourceCommandInput): import("@smithy/smithy-client").CommandImpl<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Lists tags associated with the billing view resource.
|
|
31
|
+
* </p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { BillingClient, ListTagsForResourceCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
36
|
+
* // const { BillingClient, ListTagsForResourceCommand } = require("@aws-sdk/client-billing"); // CommonJS import
|
|
37
|
+
* const client = new BillingClient(config);
|
|
38
|
+
* const input = { // ListTagsForResourceRequest
|
|
39
|
+
* resourceArn: "STRING_VALUE", // required
|
|
40
|
+
* };
|
|
41
|
+
* const command = new ListTagsForResourceCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // ListTagsForResourceResponse
|
|
44
|
+
* // resourceTags: [ // ResourceTagList
|
|
45
|
+
* // { // ResourceTag
|
|
46
|
+
* // key: "STRING_VALUE", // required
|
|
47
|
+
* // value: "STRING_VALUE",
|
|
48
|
+
* // },
|
|
49
|
+
* // ],
|
|
50
|
+
* // };
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput}
|
|
55
|
+
* @returns {@link ListTagsForResourceCommandOutput}
|
|
56
|
+
* @see {@link ListTagsForResourceCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServerException} (server fault)
|
|
64
|
+
* <p>The request processing failed because of an unknown error, exception, or failure.
|
|
65
|
+
* </p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>
|
|
69
|
+
* The specified ARN in the request doesn't exist.
|
|
70
|
+
* </p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
73
|
+
* <p>The request was denied due to request throttling.
|
|
74
|
+
* </p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.
|
|
78
|
+
* </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BillingServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
82
|
+
*
|
|
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
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
|
|
107
|
+
/** @internal type navigation helper, not in runtime. */
|
|
108
|
+
protected static __types: {
|
|
109
|
+
api: {
|
|
110
|
+
input: ListTagsForResourceRequest;
|
|
111
|
+
output: ListTagsForResourceResponse;
|
|
112
|
+
};
|
|
113
|
+
sdk: {
|
|
114
|
+
input: ListTagsForResourceCommandInput;
|
|
115
|
+
output: ListTagsForResourceCommandOutput;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BillingClient";
|
|
4
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link TagResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface TagResourceCommandInput extends TagResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link TagResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const TagResourceCommand_base: {
|
|
25
|
+
new (input: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: TagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<TagResourceCommandInput, TagResourceCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>
|
|
31
|
+
* An API operation for adding one or more tags (key-value pairs) to a resource.
|
|
32
|
+
* </p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BillingClient, TagResourceCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
37
|
+
* // const { BillingClient, TagResourceCommand } = require("@aws-sdk/client-billing"); // CommonJS import
|
|
38
|
+
* const client = new BillingClient(config);
|
|
39
|
+
* const input = { // TagResourceRequest
|
|
40
|
+
* resourceArn: "STRING_VALUE", // required
|
|
41
|
+
* resourceTags: [ // ResourceTagList // required
|
|
42
|
+
* { // ResourceTag
|
|
43
|
+
* key: "STRING_VALUE", // required
|
|
44
|
+
* value: "STRING_VALUE",
|
|
45
|
+
* },
|
|
46
|
+
* ],
|
|
47
|
+
* };
|
|
48
|
+
* const command = new TagResourceCommand(input);
|
|
49
|
+
* const response = await client.send(command);
|
|
50
|
+
* // {};
|
|
51
|
+
*
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @param TagResourceCommandInput - {@link TagResourceCommandInput}
|
|
55
|
+
* @returns {@link TagResourceCommandOutput}
|
|
56
|
+
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
57
|
+
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
58
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
61
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link InternalServerException} (server fault)
|
|
64
|
+
* <p>The request processing failed because of an unknown error, exception, or failure.
|
|
65
|
+
* </p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>
|
|
69
|
+
* The specified ARN in the request doesn't exist.
|
|
70
|
+
* </p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
73
|
+
* <p>The request was denied due to request throttling.
|
|
74
|
+
* </p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.
|
|
78
|
+
* </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link BillingServiceException}
|
|
81
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
82
|
+
*
|
|
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
|
+
*
|
|
101
|
+
*/
|
|
102
|
+
export declare class TagResourceCommand extends TagResourceCommand_base {
|
|
103
|
+
/** @internal type navigation helper, not in runtime. */
|
|
104
|
+
protected static __types: {
|
|
105
|
+
api: {
|
|
106
|
+
input: TagResourceRequest;
|
|
107
|
+
output: {};
|
|
108
|
+
};
|
|
109
|
+
sdk: {
|
|
110
|
+
input: TagResourceCommandInput;
|
|
111
|
+
output: TagResourceCommandOutput;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BillingClient";
|
|
4
|
+
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UntagResourceCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UntagResourceCommandInput extends UntagResourceRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UntagResourceCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UntagResourceCommand_base: {
|
|
25
|
+
new (input: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UntagResourceCommandInput): import("@smithy/smithy-client").CommandImpl<UntagResourceCommandInput, UntagResourceCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>
|
|
31
|
+
* Removes one or more tags from a resource. Specify only tag keys in your request. Don't specify the value.
|
|
32
|
+
* </p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { BillingClient, UntagResourceCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
37
|
+
* // const { BillingClient, UntagResourceCommand } = require("@aws-sdk/client-billing"); // CommonJS import
|
|
38
|
+
* const client = new BillingClient(config);
|
|
39
|
+
* const input = { // UntagResourceRequest
|
|
40
|
+
* resourceArn: "STRING_VALUE", // required
|
|
41
|
+
* resourceTagKeys: [ // ResourceTagKeyList // required
|
|
42
|
+
* "STRING_VALUE",
|
|
43
|
+
* ],
|
|
44
|
+
* };
|
|
45
|
+
* const command = new UntagResourceCommand(input);
|
|
46
|
+
* const response = await client.send(command);
|
|
47
|
+
* // {};
|
|
48
|
+
*
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* @param UntagResourceCommandInput - {@link UntagResourceCommandInput}
|
|
52
|
+
* @returns {@link UntagResourceCommandOutput}
|
|
53
|
+
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
54
|
+
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
55
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
58
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link InternalServerException} (server fault)
|
|
61
|
+
* <p>The request processing failed because of an unknown error, exception, or failure.
|
|
62
|
+
* </p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
65
|
+
* <p>
|
|
66
|
+
* The specified ARN in the request doesn't exist.
|
|
67
|
+
* </p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
70
|
+
* <p>The request was denied due to request throttling.
|
|
71
|
+
* </p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ValidationException} (client fault)
|
|
74
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.
|
|
75
|
+
* </p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link BillingServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
79
|
+
*
|
|
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
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
export declare class UntagResourceCommand extends UntagResourceCommand_base {
|
|
97
|
+
/** @internal type navigation helper, not in runtime. */
|
|
98
|
+
protected static __types: {
|
|
99
|
+
api: {
|
|
100
|
+
input: UntagResourceRequest;
|
|
101
|
+
output: {};
|
|
102
|
+
};
|
|
103
|
+
sdk: {
|
|
104
|
+
input: UntagResourceCommandInput;
|
|
105
|
+
output: UntagResourceCommandOutput;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BillingClient";
|
|
4
|
+
import { UpdateBillingViewRequest, UpdateBillingViewResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateBillingViewCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateBillingViewCommandInput extends UpdateBillingViewRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateBillingViewCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateBillingViewCommandOutput extends UpdateBillingViewResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateBillingViewCommand_base: {
|
|
25
|
+
new (input: UpdateBillingViewCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateBillingViewCommandInput, UpdateBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateBillingViewCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateBillingViewCommandInput, UpdateBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>An API to update the attributes of the billing view.
|
|
31
|
+
* </p>
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { BillingClient, UpdateBillingViewCommand } from "@aws-sdk/client-billing"; // ES Modules import
|
|
36
|
+
* // const { BillingClient, UpdateBillingViewCommand } = require("@aws-sdk/client-billing"); // CommonJS import
|
|
37
|
+
* const client = new BillingClient(config);
|
|
38
|
+
* const input = { // UpdateBillingViewRequest
|
|
39
|
+
* arn: "STRING_VALUE", // required
|
|
40
|
+
* name: "STRING_VALUE",
|
|
41
|
+
* description: "STRING_VALUE",
|
|
42
|
+
* dataFilterExpression: { // Expression
|
|
43
|
+
* dimensions: { // DimensionValues
|
|
44
|
+
* key: "LINKED_ACCOUNT", // required
|
|
45
|
+
* values: [ // Values // required
|
|
46
|
+
* "STRING_VALUE",
|
|
47
|
+
* ],
|
|
48
|
+
* },
|
|
49
|
+
* tags: { // TagValues
|
|
50
|
+
* key: "STRING_VALUE", // required
|
|
51
|
+
* values: [ // required
|
|
52
|
+
* "STRING_VALUE",
|
|
53
|
+
* ],
|
|
54
|
+
* },
|
|
55
|
+
* },
|
|
56
|
+
* };
|
|
57
|
+
* const command = new UpdateBillingViewCommand(input);
|
|
58
|
+
* const response = await client.send(command);
|
|
59
|
+
* // { // UpdateBillingViewResponse
|
|
60
|
+
* // arn: "STRING_VALUE", // required
|
|
61
|
+
* // updatedAt: new Date("TIMESTAMP"),
|
|
62
|
+
* // };
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @param UpdateBillingViewCommandInput - {@link UpdateBillingViewCommandInput}
|
|
67
|
+
* @returns {@link UpdateBillingViewCommandOutput}
|
|
68
|
+
* @see {@link UpdateBillingViewCommandInput} for command's `input` shape.
|
|
69
|
+
* @see {@link UpdateBillingViewCommandOutput} for command's `response` shape.
|
|
70
|
+
* @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
73
|
+
* <p>You don't have sufficient access to perform this action.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ConflictException} (client fault)
|
|
76
|
+
* <p>
|
|
77
|
+
* The requested operation would cause a conflict with the current state of a service resource associated with the request. Resolve the conflict before retrying this request.
|
|
78
|
+
* </p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link InternalServerException} (server fault)
|
|
81
|
+
* <p>The request processing failed because of an unknown error, exception, or failure.
|
|
82
|
+
* </p>
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
85
|
+
* <p>
|
|
86
|
+
* The specified ARN in the request doesn't exist.
|
|
87
|
+
* </p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
90
|
+
* <p>
|
|
91
|
+
* You've reached the limit of resources you can create, or exceeded the size of an individual resource.
|
|
92
|
+
* </p>
|
|
93
|
+
*
|
|
94
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
95
|
+
* <p>The request was denied due to request throttling.
|
|
96
|
+
* </p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link ValidationException} (client fault)
|
|
99
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.
|
|
100
|
+
* </p>
|
|
101
|
+
*
|
|
102
|
+
* @throws {@link BillingServiceException}
|
|
103
|
+
* <p>Base exception class for all service exceptions from Billing service.</p>
|
|
104
|
+
*
|
|
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
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
export declare class UpdateBillingViewCommand extends UpdateBillingViewCommand_base {
|
|
135
|
+
/** @internal type navigation helper, not in runtime. */
|
|
136
|
+
protected static __types: {
|
|
137
|
+
api: {
|
|
138
|
+
input: UpdateBillingViewRequest;
|
|
139
|
+
output: UpdateBillingViewResponse;
|
|
140
|
+
};
|
|
141
|
+
sdk: {
|
|
142
|
+
input: UpdateBillingViewCommandInput;
|
|
143
|
+
output: UpdateBillingViewCommandOutput;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
}
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
export * from "./CreateBillingViewCommand";
|
|
2
|
+
export * from "./DeleteBillingViewCommand";
|
|
3
|
+
export * from "./GetBillingViewCommand";
|
|
4
|
+
export * from "./GetResourcePolicyCommand";
|
|
1
5
|
export * from "./ListBillingViewsCommand";
|
|
6
|
+
export * from "./ListSourceViewsForBillingViewCommand";
|
|
7
|
+
export * from "./ListTagsForResourceCommand";
|
|
8
|
+
export * from "./TagResourceCommand";
|
|
9
|
+
export * from "./UntagResourceCommand";
|
|
10
|
+
export * from "./UpdateBillingViewCommand";
|