@aws-sdk/client-billing 3.714.0 → 3.717.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 +124 -0
- package/dist-types/commands/DeleteBillingViewCommand.d.ts +91 -0
- package/dist-types/commands/GetBillingViewCommand.d.ts +114 -0
- package/dist-types/commands/GetResourcePolicyCommand.d.ts +93 -0
- package/dist-types/commands/ListBillingViewsCommand.d.ts +12 -4
- package/dist-types/commands/ListSourceViewsForBillingViewCommand.d.ts +97 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +97 -0
- package/dist-types/commands/TagResourceCommand.d.ts +97 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +94 -0
- package/dist-types/commands/UpdateBillingViewCommand.d.ts +119 -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 +15 -13
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
*/
|
|
82
|
+
export declare class UntagResourceCommand extends UntagResourceCommand_base {
|
|
83
|
+
/** @internal type navigation helper, not in runtime. */
|
|
84
|
+
protected static __types: {
|
|
85
|
+
api: {
|
|
86
|
+
input: UntagResourceRequest;
|
|
87
|
+
output: {};
|
|
88
|
+
};
|
|
89
|
+
sdk: {
|
|
90
|
+
input: UntagResourceCommandInput;
|
|
91
|
+
output: UntagResourceCommandOutput;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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
|
+
*/
|
|
107
|
+
export declare class UpdateBillingViewCommand extends UpdateBillingViewCommand_base {
|
|
108
|
+
/** @internal type navigation helper, not in runtime. */
|
|
109
|
+
protected static __types: {
|
|
110
|
+
api: {
|
|
111
|
+
input: UpdateBillingViewRequest;
|
|
112
|
+
output: UpdateBillingViewResponse;
|
|
113
|
+
};
|
|
114
|
+
sdk: {
|
|
115
|
+
input: UpdateBillingViewCommandInput;
|
|
116
|
+
output: UpdateBillingViewCommandOutput;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -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";
|