@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.
Files changed (66) hide show
  1. package/README.md +72 -0
  2. package/dist-cjs/Billing.js +18 -0
  3. package/dist-cjs/commands/CreateBillingViewCommand.js +27 -0
  4. package/dist-cjs/commands/DeleteBillingViewCommand.js +26 -0
  5. package/dist-cjs/commands/GetBillingViewCommand.js +27 -0
  6. package/dist-cjs/commands/GetResourcePolicyCommand.js +26 -0
  7. package/dist-cjs/commands/ListSourceViewsForBillingViewCommand.js +26 -0
  8. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  9. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  10. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  11. package/dist-cjs/commands/UpdateBillingViewCommand.js +27 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/models/models_0.js +80 -5
  14. package/dist-cjs/pagination/ListSourceViewsForBillingViewPaginator.js +7 -0
  15. package/dist-cjs/pagination/index.js +1 -0
  16. package/dist-cjs/protocols/Aws_json1_0.js +269 -1
  17. package/dist-es/Billing.js +18 -0
  18. package/dist-es/commands/CreateBillingViewCommand.js +23 -0
  19. package/dist-es/commands/DeleteBillingViewCommand.js +22 -0
  20. package/dist-es/commands/GetBillingViewCommand.js +23 -0
  21. package/dist-es/commands/GetResourcePolicyCommand.js +22 -0
  22. package/dist-es/commands/ListSourceViewsForBillingViewCommand.js +22 -0
  23. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  24. package/dist-es/commands/TagResourceCommand.js +22 -0
  25. package/dist-es/commands/UntagResourceCommand.js +22 -0
  26. package/dist-es/commands/UpdateBillingViewCommand.js +23 -0
  27. package/dist-es/commands/index.js +9 -0
  28. package/dist-es/models/models_0.js +72 -4
  29. package/dist-es/pagination/ListSourceViewsForBillingViewPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +1 -0
  31. package/dist-es/protocols/Aws_json1_0.js +252 -2
  32. package/dist-types/Billing.d.ts +64 -0
  33. package/dist-types/BillingClient.d.ts +11 -2
  34. package/dist-types/commands/CreateBillingViewCommand.d.ts +153 -0
  35. package/dist-types/commands/DeleteBillingViewCommand.d.ts +107 -0
  36. package/dist-types/commands/GetBillingViewCommand.d.ts +144 -0
  37. package/dist-types/commands/GetResourcePolicyCommand.d.ts +110 -0
  38. package/dist-types/commands/ListBillingViewsCommand.d.ts +12 -4
  39. package/dist-types/commands/ListSourceViewsForBillingViewCommand.d.ts +115 -0
  40. package/dist-types/commands/ListTagsForResourceCommand.d.ts +118 -0
  41. package/dist-types/commands/TagResourceCommand.d.ts +114 -0
  42. package/dist-types/commands/UntagResourceCommand.d.ts +108 -0
  43. package/dist-types/commands/UpdateBillingViewCommand.d.ts +146 -0
  44. package/dist-types/commands/index.d.ts +9 -0
  45. package/dist-types/models/models_0.d.ts +640 -37
  46. package/dist-types/pagination/ListSourceViewsForBillingViewPaginator.d.ts +7 -0
  47. package/dist-types/pagination/index.d.ts +1 -0
  48. package/dist-types/protocols/Aws_json1_0.d.ts +81 -0
  49. package/dist-types/ts3.4/Billing.d.ts +154 -0
  50. package/dist-types/ts3.4/BillingClient.d.ts +58 -2
  51. package/dist-types/ts3.4/commands/CreateBillingViewCommand.d.ts +51 -0
  52. package/dist-types/ts3.4/commands/DeleteBillingViewCommand.d.ts +51 -0
  53. package/dist-types/ts3.4/commands/GetBillingViewCommand.d.ts +50 -0
  54. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
  55. package/dist-types/ts3.4/commands/ListBillingViewsCommand.d.ts +10 -6
  56. package/dist-types/ts3.4/commands/ListSourceViewsForBillingViewCommand.d.ts +51 -0
  57. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  58. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  59. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  60. package/dist-types/ts3.4/commands/UpdateBillingViewCommand.d.ts +51 -0
  61. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  62. package/dist-types/ts3.4/models/models_0.d.ts +160 -20
  63. package/dist-types/ts3.4/pagination/ListSourceViewsForBillingViewPaginator.d.ts +11 -0
  64. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  65. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +108 -0
  66. package/package.json +4 -2
@@ -0,0 +1,153 @@
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 { CreateBillingViewRequest, CreateBillingViewResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateBillingViewCommand}.
14
+ */
15
+ export interface CreateBillingViewCommandInput extends CreateBillingViewRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateBillingViewCommand}.
21
+ */
22
+ export interface CreateBillingViewCommandOutput extends CreateBillingViewResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateBillingViewCommand_base: {
25
+ new (input: CreateBillingViewCommandInput): import("@smithy/smithy-client").CommandImpl<CreateBillingViewCommandInput, CreateBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateBillingViewCommandInput): import("@smithy/smithy-client").CommandImpl<CreateBillingViewCommandInput, CreateBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>
31
+ * Creates a billing view with the specified billing view attributes.
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, CreateBillingViewCommand } from "@aws-sdk/client-billing"; // ES Modules import
37
+ * // const { BillingClient, CreateBillingViewCommand } = require("@aws-sdk/client-billing"); // CommonJS import
38
+ * const client = new BillingClient(config);
39
+ * const input = { // CreateBillingViewRequest
40
+ * name: "STRING_VALUE", // required
41
+ * description: "STRING_VALUE",
42
+ * sourceViews: [ // BillingViewSourceViewsList // required
43
+ * "STRING_VALUE",
44
+ * ],
45
+ * dataFilterExpression: { // Expression
46
+ * dimensions: { // DimensionValues
47
+ * key: "LINKED_ACCOUNT", // required
48
+ * values: [ // Values // required
49
+ * "STRING_VALUE",
50
+ * ],
51
+ * },
52
+ * tags: { // TagValues
53
+ * key: "STRING_VALUE", // required
54
+ * values: [ // required
55
+ * "STRING_VALUE",
56
+ * ],
57
+ * },
58
+ * },
59
+ * clientToken: "STRING_VALUE",
60
+ * resourceTags: [ // ResourceTagList
61
+ * { // ResourceTag
62
+ * key: "STRING_VALUE", // required
63
+ * value: "STRING_VALUE",
64
+ * },
65
+ * ],
66
+ * };
67
+ * const command = new CreateBillingViewCommand(input);
68
+ * const response = await client.send(command);
69
+ * // { // CreateBillingViewResponse
70
+ * // arn: "STRING_VALUE", // required
71
+ * // createdAt: new Date("TIMESTAMP"),
72
+ * // };
73
+ *
74
+ * ```
75
+ *
76
+ * @param CreateBillingViewCommandInput - {@link CreateBillingViewCommandInput}
77
+ * @returns {@link CreateBillingViewCommandOutput}
78
+ * @see {@link CreateBillingViewCommandInput} for command's `input` shape.
79
+ * @see {@link CreateBillingViewCommandOutput} for command's `response` shape.
80
+ * @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
81
+ *
82
+ * @throws {@link AccessDeniedException} (client fault)
83
+ * <p>You don't have sufficient access to perform this action.</p>
84
+ *
85
+ * @throws {@link ConflictException} (client fault)
86
+ * <p>
87
+ * 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.
88
+ * </p>
89
+ *
90
+ * @throws {@link InternalServerException} (server fault)
91
+ * <p>The request processing failed because of an unknown error, exception, or failure.
92
+ * </p>
93
+ *
94
+ * @throws {@link ServiceQuotaExceededException} (client fault)
95
+ * <p>
96
+ * You've reached the limit of resources you can create, or exceeded the size of an individual resource.
97
+ * </p>
98
+ *
99
+ * @throws {@link ThrottlingException} (client fault)
100
+ * <p>The request was denied due to request throttling.
101
+ * </p>
102
+ *
103
+ * @throws {@link ValidationException} (client fault)
104
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.
105
+ * </p>
106
+ *
107
+ * @throws {@link BillingServiceException}
108
+ * <p>Base exception class for all service exceptions from Billing service.</p>
109
+ *
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
+ *
140
+ */
141
+ export declare class CreateBillingViewCommand extends CreateBillingViewCommand_base {
142
+ /** @internal type navigation helper, not in runtime. */
143
+ protected static __types: {
144
+ api: {
145
+ input: CreateBillingViewRequest;
146
+ output: CreateBillingViewResponse;
147
+ };
148
+ sdk: {
149
+ input: CreateBillingViewCommandInput;
150
+ output: CreateBillingViewCommandOutput;
151
+ };
152
+ };
153
+ }
@@ -0,0 +1,107 @@
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 { DeleteBillingViewRequest, DeleteBillingViewResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteBillingViewCommand}.
14
+ */
15
+ export interface DeleteBillingViewCommandInput extends DeleteBillingViewRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteBillingViewCommand}.
21
+ */
22
+ export interface DeleteBillingViewCommandOutput extends DeleteBillingViewResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteBillingViewCommand_base: {
25
+ new (input: DeleteBillingViewCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBillingViewCommandInput, DeleteBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: DeleteBillingViewCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteBillingViewCommandInput, DeleteBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes the specified billing view.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BillingClient, DeleteBillingViewCommand } from "@aws-sdk/client-billing"; // ES Modules import
35
+ * // const { BillingClient, DeleteBillingViewCommand } = require("@aws-sdk/client-billing"); // CommonJS import
36
+ * const client = new BillingClient(config);
37
+ * const input = { // DeleteBillingViewRequest
38
+ * arn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new DeleteBillingViewCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // DeleteBillingViewResponse
43
+ * // arn: "STRING_VALUE", // required
44
+ * // };
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteBillingViewCommandInput - {@link DeleteBillingViewCommandInput}
49
+ * @returns {@link DeleteBillingViewCommandOutput}
50
+ * @see {@link DeleteBillingViewCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteBillingViewCommandOutput} for command's `response` shape.
52
+ * @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You don't have sufficient access to perform this action.</p>
56
+ *
57
+ * @throws {@link ConflictException} (client fault)
58
+ * <p>
59
+ * 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.
60
+ * </p>
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>The request processing failed because of an unknown error, exception, or failure.
64
+ * </p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The request was denied due to request throttling.
68
+ * </p>
69
+ *
70
+ * @throws {@link ValidationException} (client fault)
71
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.
72
+ * </p>
73
+ *
74
+ * @throws {@link BillingServiceException}
75
+ * <p>Base exception class for all service exceptions from Billing service.</p>
76
+ *
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
+ *
94
+ */
95
+ export declare class DeleteBillingViewCommand extends DeleteBillingViewCommand_base {
96
+ /** @internal type navigation helper, not in runtime. */
97
+ protected static __types: {
98
+ api: {
99
+ input: DeleteBillingViewRequest;
100
+ output: DeleteBillingViewResponse;
101
+ };
102
+ sdk: {
103
+ input: DeleteBillingViewCommandInput;
104
+ output: DeleteBillingViewCommandOutput;
105
+ };
106
+ };
107
+ }
@@ -0,0 +1,144 @@
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 { GetBillingViewRequest, GetBillingViewResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetBillingViewCommand}.
14
+ */
15
+ export interface GetBillingViewCommandInput extends GetBillingViewRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetBillingViewCommand}.
21
+ */
22
+ export interface GetBillingViewCommandOutput extends GetBillingViewResponse, __MetadataBearer {
23
+ }
24
+ declare const GetBillingViewCommand_base: {
25
+ new (input: GetBillingViewCommandInput): import("@smithy/smithy-client").CommandImpl<GetBillingViewCommandInput, GetBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetBillingViewCommandInput): import("@smithy/smithy-client").CommandImpl<GetBillingViewCommandInput, GetBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns the metadata associated to the specified billing view ARN.
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, GetBillingViewCommand } from "@aws-sdk/client-billing"; // ES Modules import
36
+ * // const { BillingClient, GetBillingViewCommand } = require("@aws-sdk/client-billing"); // CommonJS import
37
+ * const client = new BillingClient(config);
38
+ * const input = { // GetBillingViewRequest
39
+ * arn: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetBillingViewCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetBillingViewResponse
44
+ * // billingView: { // BillingViewElement
45
+ * // arn: "STRING_VALUE",
46
+ * // name: "STRING_VALUE",
47
+ * // description: "STRING_VALUE",
48
+ * // billingViewType: "PRIMARY" || "BILLING_GROUP" || "CUSTOM",
49
+ * // ownerAccountId: "STRING_VALUE",
50
+ * // dataFilterExpression: { // Expression
51
+ * // dimensions: { // DimensionValues
52
+ * // key: "LINKED_ACCOUNT", // required
53
+ * // values: [ // Values // required
54
+ * // "STRING_VALUE",
55
+ * // ],
56
+ * // },
57
+ * // tags: { // TagValues
58
+ * // key: "STRING_VALUE", // required
59
+ * // values: [ // required
60
+ * // "STRING_VALUE",
61
+ * // ],
62
+ * // },
63
+ * // },
64
+ * // createdAt: new Date("TIMESTAMP"),
65
+ * // updatedAt: new Date("TIMESTAMP"),
66
+ * // },
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param GetBillingViewCommandInput - {@link GetBillingViewCommandInput}
72
+ * @returns {@link GetBillingViewCommandOutput}
73
+ * @see {@link GetBillingViewCommandInput} for command's `input` shape.
74
+ * @see {@link GetBillingViewCommandOutput} for command's `response` shape.
75
+ * @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>You don't have sufficient access to perform this action.</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 ThrottlingException} (client fault)
90
+ * <p>The request was denied due to request throttling.
91
+ * </p>
92
+ *
93
+ * @throws {@link ValidationException} (client fault)
94
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.
95
+ * </p>
96
+ *
97
+ * @throws {@link BillingServiceException}
98
+ * <p>Base exception class for all service exceptions from Billing service.</p>
99
+ *
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
+ *
131
+ */
132
+ export declare class GetBillingViewCommand extends GetBillingViewCommand_base {
133
+ /** @internal type navigation helper, not in runtime. */
134
+ protected static __types: {
135
+ api: {
136
+ input: GetBillingViewRequest;
137
+ output: GetBillingViewResponse;
138
+ };
139
+ sdk: {
140
+ input: GetBillingViewCommandInput;
141
+ output: GetBillingViewCommandOutput;
142
+ };
143
+ };
144
+ }
@@ -0,0 +1,110 @@
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 { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetResourcePolicyCommand}.
14
+ */
15
+ export interface GetResourcePolicyCommandInput extends GetResourcePolicyRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetResourcePolicyCommand}.
21
+ */
22
+ export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {
23
+ }
24
+ declare const GetResourcePolicyCommand_base: {
25
+ new (input: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetResourcePolicyCommandInput): import("@smithy/smithy-client").CommandImpl<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns the resource-based policy document attached to the resource in <code>JSON</code> format.
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, GetResourcePolicyCommand } from "@aws-sdk/client-billing"; // ES Modules import
36
+ * // const { BillingClient, GetResourcePolicyCommand } = require("@aws-sdk/client-billing"); // CommonJS import
37
+ * const client = new BillingClient(config);
38
+ * const input = { // GetResourcePolicyRequest
39
+ * resourceArn: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetResourcePolicyCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetResourcePolicyResponse
44
+ * // resourceArn: "STRING_VALUE", // required
45
+ * // policy: "STRING_VALUE",
46
+ * // };
47
+ *
48
+ * ```
49
+ *
50
+ * @param GetResourcePolicyCommandInput - {@link GetResourcePolicyCommandInput}
51
+ * @returns {@link GetResourcePolicyCommandOutput}
52
+ * @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
53
+ * @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
54
+ * @see {@link BillingClientResolvedConfig | config} for BillingClient's `config` shape.
55
+ *
56
+ * @throws {@link AccessDeniedException} (client fault)
57
+ * <p>You don't have sufficient access to perform this action.</p>
58
+ *
59
+ * @throws {@link InternalServerException} (server fault)
60
+ * <p>The request processing failed because of an unknown error, exception, or failure.
61
+ * </p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>
65
+ * The specified ARN in the request doesn't exist.
66
+ * </p>
67
+ *
68
+ * @throws {@link ThrottlingException} (client fault)
69
+ * <p>The request was denied due to request throttling.
70
+ * </p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.
74
+ * </p>
75
+ *
76
+ * @throws {@link BillingServiceException}
77
+ * <p>Base exception class for all service exceptions from Billing service.</p>
78
+ *
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
+ *
97
+ */
98
+ export declare class GetResourcePolicyCommand extends GetResourcePolicyCommand_base {
99
+ /** @internal type navigation helper, not in runtime. */
100
+ protected static __types: {
101
+ api: {
102
+ input: GetResourcePolicyRequest;
103
+ output: GetResourcePolicyResponse;
104
+ };
105
+ sdk: {
106
+ input: GetResourcePolicyCommandInput;
107
+ output: GetResourcePolicyCommandOutput;
108
+ };
109
+ };
110
+ }
@@ -1,6 +1,6 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { BillingClientResolvedConfig } from "../BillingClient";
3
+ import { BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BillingClient";
4
4
  import { ListBillingViewsRequest, ListBillingViewsResponse } from "../models/models_0";
5
5
  /**
6
6
  * @public
@@ -22,8 +22,8 @@ export interface ListBillingViewsCommandInput extends ListBillingViewsRequest {
22
22
  export interface ListBillingViewsCommandOutput extends ListBillingViewsResponse, __MetadataBearer {
23
23
  }
24
24
  declare const ListBillingViewsCommand_base: {
25
- new (input: ListBillingViewsCommandInput): import("@smithy/smithy-client").CommandImpl<ListBillingViewsCommandInput, ListBillingViewsCommandOutput, BillingClientResolvedConfig, ListBillingViewsCommandInput, ListBillingViewsCommandOutput>;
26
- new (__0_0: ListBillingViewsCommandInput): import("@smithy/smithy-client").CommandImpl<ListBillingViewsCommandInput, ListBillingViewsCommandOutput, BillingClientResolvedConfig, ListBillingViewsCommandInput, ListBillingViewsCommandOutput>;
25
+ new (input: ListBillingViewsCommandInput): import("@smithy/smithy-client").CommandImpl<ListBillingViewsCommandInput, ListBillingViewsCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListBillingViewsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListBillingViewsCommandInput, ListBillingViewsCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
@@ -41,6 +41,13 @@ declare const ListBillingViewsCommand_base: {
41
41
  * activeAfterInclusive: new Date("TIMESTAMP"), // required
42
42
  * activeBeforeInclusive: new Date("TIMESTAMP"), // required
43
43
  * },
44
+ * arns: [ // BillingViewArnList
45
+ * "STRING_VALUE",
46
+ * ],
47
+ * billingViewTypes: [ // BillingViewTypeList
48
+ * "PRIMARY" || "BILLING_GROUP" || "CUSTOM",
49
+ * ],
50
+ * ownerAccountId: "STRING_VALUE",
44
51
  * maxResults: Number("int"),
45
52
  * nextToken: "STRING_VALUE",
46
53
  * };
@@ -51,8 +58,9 @@ declare const ListBillingViewsCommand_base: {
51
58
  * // { // BillingViewListElement
52
59
  * // arn: "STRING_VALUE",
53
60
  * // name: "STRING_VALUE",
61
+ * // description: "STRING_VALUE",
54
62
  * // ownerAccountId: "STRING_VALUE",
55
- * // billingViewType: "PRIMARY" || "BILLING_GROUP",
63
+ * // billingViewType: "PRIMARY" || "BILLING_GROUP" || "CUSTOM",
56
64
  * // },
57
65
  * // ],
58
66
  * // nextToken: "STRING_VALUE",
@@ -0,0 +1,115 @@
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 { ListSourceViewsForBillingViewRequest, ListSourceViewsForBillingViewResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListSourceViewsForBillingViewCommand}.
14
+ */
15
+ export interface ListSourceViewsForBillingViewCommandInput extends ListSourceViewsForBillingViewRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListSourceViewsForBillingViewCommand}.
21
+ */
22
+ export interface ListSourceViewsForBillingViewCommandOutput extends ListSourceViewsForBillingViewResponse, __MetadataBearer {
23
+ }
24
+ declare const ListSourceViewsForBillingViewCommand_base: {
25
+ new (input: ListSourceViewsForBillingViewCommandInput): import("@smithy/smithy-client").CommandImpl<ListSourceViewsForBillingViewCommandInput, ListSourceViewsForBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ListSourceViewsForBillingViewCommandInput): import("@smithy/smithy-client").CommandImpl<ListSourceViewsForBillingViewCommandInput, ListSourceViewsForBillingViewCommandOutput, BillingClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Lists the source views (managed Amazon Web Services billing views) associated with 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, ListSourceViewsForBillingViewCommand } from "@aws-sdk/client-billing"; // ES Modules import
36
+ * // const { BillingClient, ListSourceViewsForBillingViewCommand } = require("@aws-sdk/client-billing"); // CommonJS import
37
+ * const client = new BillingClient(config);
38
+ * const input = { // ListSourceViewsForBillingViewRequest
39
+ * arn: "STRING_VALUE", // required
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * };
43
+ * const command = new ListSourceViewsForBillingViewCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListSourceViewsForBillingViewResponse
46
+ * // sourceViews: [ // BillingViewSourceViewsList // required
47
+ * // "STRING_VALUE",
48
+ * // ],
49
+ * // nextToken: "STRING_VALUE",
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param ListSourceViewsForBillingViewCommandInput - {@link ListSourceViewsForBillingViewCommandInput}
55
+ * @returns {@link ListSourceViewsForBillingViewCommandOutput}
56
+ * @see {@link ListSourceViewsForBillingViewCommandInput} for command's `input` shape.
57
+ * @see {@link ListSourceViewsForBillingViewCommandOutput} 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 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
+ *
102
+ */
103
+ export declare class ListSourceViewsForBillingViewCommand extends ListSourceViewsForBillingViewCommand_base {
104
+ /** @internal type navigation helper, not in runtime. */
105
+ protected static __types: {
106
+ api: {
107
+ input: ListSourceViewsForBillingViewRequest;
108
+ output: ListSourceViewsForBillingViewResponse;
109
+ };
110
+ sdk: {
111
+ input: ListSourceViewsForBillingViewCommandInput;
112
+ output: ListSourceViewsForBillingViewCommandOutput;
113
+ };
114
+ };
115
+ }