@aws-sdk/client-bcm-dashboards 3.870.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 (127) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +277 -0
  3. package/dist-cjs/BCMDashboards.js +29 -0
  4. package/dist-cjs/BCMDashboardsClient.js +52 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/CreateDashboardCommand.js +26 -0
  8. package/dist-cjs/commands/DeleteDashboardCommand.js +26 -0
  9. package/dist-cjs/commands/GetDashboardCommand.js +26 -0
  10. package/dist-cjs/commands/GetResourcePolicyCommand.js +26 -0
  11. package/dist-cjs/commands/ListDashboardsCommand.js +26 -0
  12. package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
  13. package/dist-cjs/commands/TagResourceCommand.js +26 -0
  14. package/dist-cjs/commands/UntagResourceCommand.js +26 -0
  15. package/dist-cjs/commands/UpdateDashboardCommand.js +26 -0
  16. package/dist-cjs/commands/index.js +12 -0
  17. package/dist-cjs/endpoint/EndpointParameters.js +15 -0
  18. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  19. package/dist-cjs/endpoint/ruleset.js +7 -0
  20. package/dist-cjs/extensionConfiguration.js +2 -0
  21. package/dist-cjs/index.js +11 -0
  22. package/dist-cjs/models/BCMDashboardsServiceException.js +12 -0
  23. package/dist-cjs/models/index.js +4 -0
  24. package/dist-cjs/models/models_0.js +181 -0
  25. package/dist-cjs/pagination/Interfaces.js +2 -0
  26. package/dist-cjs/pagination/ListDashboardsPaginator.js +7 -0
  27. package/dist-cjs/pagination/index.js +5 -0
  28. package/dist-cjs/protocols/Aws_json1_0.js +587 -0
  29. package/dist-cjs/runtimeConfig.browser.js +39 -0
  30. package/dist-cjs/runtimeConfig.js +56 -0
  31. package/dist-cjs/runtimeConfig.native.js +15 -0
  32. package/dist-cjs/runtimeConfig.shared.js +34 -0
  33. package/dist-cjs/runtimeExtensions.js +13 -0
  34. package/dist-es/BCMDashboards.js +25 -0
  35. package/dist-es/BCMDashboardsClient.js +48 -0
  36. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  37. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  38. package/dist-es/commands/CreateDashboardCommand.js +22 -0
  39. package/dist-es/commands/DeleteDashboardCommand.js +22 -0
  40. package/dist-es/commands/GetDashboardCommand.js +22 -0
  41. package/dist-es/commands/GetResourcePolicyCommand.js +22 -0
  42. package/dist-es/commands/ListDashboardsCommand.js +22 -0
  43. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  44. package/dist-es/commands/TagResourceCommand.js +22 -0
  45. package/dist-es/commands/UntagResourceCommand.js +22 -0
  46. package/dist-es/commands/UpdateDashboardCommand.js +22 -0
  47. package/dist-es/commands/index.js +9 -0
  48. package/dist-es/endpoint/EndpointParameters.js +11 -0
  49. package/dist-es/endpoint/endpointResolver.js +14 -0
  50. package/dist-es/endpoint/ruleset.js +4 -0
  51. package/dist-es/extensionConfiguration.js +1 -0
  52. package/dist-es/index.js +6 -0
  53. package/dist-es/models/BCMDashboardsServiceException.js +8 -0
  54. package/dist-es/models/index.js +1 -0
  55. package/dist-es/models/models_0.js +172 -0
  56. package/dist-es/pagination/Interfaces.js +1 -0
  57. package/dist-es/pagination/ListDashboardsPaginator.js +4 -0
  58. package/dist-es/pagination/index.js +2 -0
  59. package/dist-es/protocols/Aws_json1_0.js +566 -0
  60. package/dist-es/runtimeConfig.browser.js +34 -0
  61. package/dist-es/runtimeConfig.js +51 -0
  62. package/dist-es/runtimeConfig.native.js +11 -0
  63. package/dist-es/runtimeConfig.shared.js +30 -0
  64. package/dist-es/runtimeExtensions.js +9 -0
  65. package/dist-types/BCMDashboards.d.ts +74 -0
  66. package/dist-types/BCMDashboardsClient.d.ts +196 -0
  67. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  68. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  69. package/dist-types/commands/CreateDashboardCommand.d.ts +328 -0
  70. package/dist-types/commands/DeleteDashboardCommand.d.ts +99 -0
  71. package/dist-types/commands/GetDashboardCommand.d.ts +332 -0
  72. package/dist-types/commands/GetResourcePolicyCommand.d.ts +104 -0
  73. package/dist-types/commands/ListDashboardsCommand.d.ts +117 -0
  74. package/dist-types/commands/ListTagsForResourceCommand.d.ts +113 -0
  75. package/dist-types/commands/TagResourceCommand.d.ts +107 -0
  76. package/dist-types/commands/UntagResourceCommand.d.ts +101 -0
  77. package/dist-types/commands/UpdateDashboardCommand.d.ts +324 -0
  78. package/dist-types/commands/index.d.ts +9 -0
  79. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  80. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  81. package/dist-types/endpoint/ruleset.d.ts +2 -0
  82. package/dist-types/extensionConfiguration.d.ts +9 -0
  83. package/dist-types/index.d.ts +14 -0
  84. package/dist-types/models/BCMDashboardsServiceException.d.ts +14 -0
  85. package/dist-types/models/index.d.ts +1 -0
  86. package/dist-types/models/models_0.d.ts +1006 -0
  87. package/dist-types/pagination/Interfaces.d.ts +8 -0
  88. package/dist-types/pagination/ListDashboardsPaginator.d.ts +7 -0
  89. package/dist-types/pagination/index.d.ts +2 -0
  90. package/dist-types/protocols/Aws_json1_0.d.ts +83 -0
  91. package/dist-types/runtimeConfig.browser.d.ts +50 -0
  92. package/dist-types/runtimeConfig.d.ts +50 -0
  93. package/dist-types/runtimeConfig.native.d.ts +49 -0
  94. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  95. package/dist-types/runtimeExtensions.d.ts +17 -0
  96. package/dist-types/ts3.4/BCMDashboards.d.ts +161 -0
  97. package/dist-types/ts3.4/BCMDashboardsClient.d.ts +174 -0
  98. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  99. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  100. package/dist-types/ts3.4/commands/CreateDashboardCommand.d.ts +50 -0
  101. package/dist-types/ts3.4/commands/DeleteDashboardCommand.d.ts +50 -0
  102. package/dist-types/ts3.4/commands/GetDashboardCommand.d.ts +47 -0
  103. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +51 -0
  104. package/dist-types/ts3.4/commands/ListDashboardsCommand.d.ts +50 -0
  105. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  106. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
  107. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  108. package/dist-types/ts3.4/commands/UpdateDashboardCommand.d.ts +50 -0
  109. package/dist-types/ts3.4/commands/index.d.ts +9 -0
  110. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  111. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  112. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  113. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  114. package/dist-types/ts3.4/index.d.ts +9 -0
  115. package/dist-types/ts3.4/models/BCMDashboardsServiceException.d.ts +9 -0
  116. package/dist-types/ts3.4/models/index.d.ts +1 -0
  117. package/dist-types/ts3.4/models/models_0.d.ts +381 -0
  118. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  119. package/dist-types/ts3.4/pagination/ListDashboardsPaginator.d.ts +11 -0
  120. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  121. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +113 -0
  122. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +91 -0
  123. package/dist-types/ts3.4/runtimeConfig.d.ts +89 -0
  124. package/dist-types/ts3.4/runtimeConfig.native.d.ts +95 -0
  125. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
  126. package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
  127. package/package.json +99 -0
@@ -0,0 +1,328 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BCMDashboardsClient";
4
+ import { CreateDashboardRequest, CreateDashboardResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link CreateDashboardCommand}.
14
+ */
15
+ export interface CreateDashboardCommandInput extends CreateDashboardRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateDashboardCommand}.
21
+ */
22
+ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, __MetadataBearer {
23
+ }
24
+ declare const CreateDashboardCommand_base: {
25
+ new (input: CreateDashboardCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDashboardCommandInput, CreateDashboardCommandOutput, BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: CreateDashboardCommandInput): import("@smithy/smithy-client").CommandImpl<CreateDashboardCommandInput, CreateDashboardCommandOutput, BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Creates a new dashboard that can contain multiple widgets displaying cost and usage data. You can add custom widgets or use predefined widgets, arranging them in your preferred layout.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BCMDashboardsClient, CreateDashboardCommand } from "@aws-sdk/client-bcm-dashboards"; // ES Modules import
35
+ * // const { BCMDashboardsClient, CreateDashboardCommand } = require("@aws-sdk/client-bcm-dashboards"); // CommonJS import
36
+ * const client = new BCMDashboardsClient(config);
37
+ * const input = { // CreateDashboardRequest
38
+ * name: "STRING_VALUE", // required
39
+ * description: "STRING_VALUE",
40
+ * widgets: [ // WidgetList // required
41
+ * { // Widget
42
+ * title: "STRING_VALUE", // required
43
+ * description: "STRING_VALUE",
44
+ * width: Number("int"),
45
+ * height: Number("int"),
46
+ * horizontalOffset: Number("int"),
47
+ * configs: [ // WidgetConfigList // required
48
+ * { // WidgetConfig
49
+ * queryParameters: { // QueryParameters Union: only one key present
50
+ * costAndUsage: { // CostAndUsageQuery
51
+ * metrics: [ // MetricNames // required
52
+ * "AmortizedCost" || "BlendedCost" || "NetAmortizedCost" || "NetUnblendedCost" || "NormalizedUsageAmount" || "UnblendedCost" || "UsageQuantity" || "SpendCoveredBySavingsPlans" || "Hour" || "Unit" || "Cost",
53
+ * ],
54
+ * timeRange: { // DateTimeRange
55
+ * startTime: { // DateTimeValue
56
+ * type: "ABSOLUTE" || "RELATIVE", // required
57
+ * value: "STRING_VALUE", // required
58
+ * },
59
+ * endTime: {
60
+ * type: "ABSOLUTE" || "RELATIVE", // required
61
+ * value: "STRING_VALUE", // required
62
+ * },
63
+ * },
64
+ * granularity: "HOURLY" || "DAILY" || "MONTHLY", // required
65
+ * groupBy: [ // GroupDefinitions
66
+ * { // GroupDefinition
67
+ * key: "STRING_VALUE", // required
68
+ * type: "DIMENSION" || "TAG" || "COST_CATEGORY",
69
+ * },
70
+ * ],
71
+ * filter: { // Expression
72
+ * or: [ // Expressions
73
+ * {
74
+ * or: [
75
+ * "<Expression>",
76
+ * ],
77
+ * and: [
78
+ * "<Expression>",
79
+ * ],
80
+ * not: "<Expression>",
81
+ * dimensions: { // DimensionValues
82
+ * key: "AZ" || "INSTANCE_TYPE" || "LINKED_ACCOUNT" || "OPERATION" || "PURCHASE_TYPE" || "REGION" || "SERVICE" || "USAGE_TYPE" || "USAGE_TYPE_GROUP" || "RECORD_TYPE" || "RESOURCE_ID" || "SUBSCRIPTION_ID" || "TAG_KEY" || "OPERATING_SYSTEM" || "TENANCY" || "BILLING_ENTITY" || "RESERVATION_ID" || "COST_CATEGORY_NAME" || "DATABASE_ENGINE" || "LEGAL_ENTITY_NAME" || "SAVINGS_PLANS_TYPE" || "INSTANCE_TYPE_FAMILY" || "CACHE_ENGINE" || "DEPLOYMENT_OPTION" || "SCOPE" || "PLATFORM", // required
83
+ * values: [ // StringList // required
84
+ * "STRING_VALUE",
85
+ * ],
86
+ * matchOptions: [ // MatchOptions
87
+ * "EQUALS" || "ABSENT" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "GREATER_THAN_OR_EQUAL" || "CASE_SENSITIVE" || "CASE_INSENSITIVE",
88
+ * ],
89
+ * },
90
+ * tags: { // TagValues
91
+ * key: "STRING_VALUE",
92
+ * values: [
93
+ * "STRING_VALUE",
94
+ * ],
95
+ * matchOptions: [
96
+ * "EQUALS" || "ABSENT" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "GREATER_THAN_OR_EQUAL" || "CASE_SENSITIVE" || "CASE_INSENSITIVE",
97
+ * ],
98
+ * },
99
+ * costCategories: { // CostCategoryValues
100
+ * key: "STRING_VALUE",
101
+ * values: [
102
+ * "STRING_VALUE",
103
+ * ],
104
+ * matchOptions: [
105
+ * "EQUALS" || "ABSENT" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "GREATER_THAN_OR_EQUAL" || "CASE_SENSITIVE" || "CASE_INSENSITIVE",
106
+ * ],
107
+ * },
108
+ * },
109
+ * ],
110
+ * and: [
111
+ * "<Expression>",
112
+ * ],
113
+ * not: "<Expression>",
114
+ * dimensions: {
115
+ * key: "AZ" || "INSTANCE_TYPE" || "LINKED_ACCOUNT" || "OPERATION" || "PURCHASE_TYPE" || "REGION" || "SERVICE" || "USAGE_TYPE" || "USAGE_TYPE_GROUP" || "RECORD_TYPE" || "RESOURCE_ID" || "SUBSCRIPTION_ID" || "TAG_KEY" || "OPERATING_SYSTEM" || "TENANCY" || "BILLING_ENTITY" || "RESERVATION_ID" || "COST_CATEGORY_NAME" || "DATABASE_ENGINE" || "LEGAL_ENTITY_NAME" || "SAVINGS_PLANS_TYPE" || "INSTANCE_TYPE_FAMILY" || "CACHE_ENGINE" || "DEPLOYMENT_OPTION" || "SCOPE" || "PLATFORM", // required
116
+ * values: [ // required
117
+ * "STRING_VALUE",
118
+ * ],
119
+ * matchOptions: [
120
+ * "EQUALS" || "ABSENT" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "GREATER_THAN_OR_EQUAL" || "CASE_SENSITIVE" || "CASE_INSENSITIVE",
121
+ * ],
122
+ * },
123
+ * tags: {
124
+ * key: "STRING_VALUE",
125
+ * values: [
126
+ * "STRING_VALUE",
127
+ * ],
128
+ * matchOptions: [
129
+ * "EQUALS" || "ABSENT" || "STARTS_WITH" || "ENDS_WITH" || "CONTAINS" || "GREATER_THAN_OR_EQUAL" || "CASE_SENSITIVE" || "CASE_INSENSITIVE",
130
+ * ],
131
+ * },
132
+ * costCategories: {
133
+ * key: "STRING_VALUE",
134
+ * values: "<StringList>",
135
+ * matchOptions: "<MatchOptions>",
136
+ * },
137
+ * },
138
+ * },
139
+ * savingsPlansCoverage: { // SavingsPlansCoverageQuery
140
+ * timeRange: {
141
+ * startTime: {
142
+ * type: "ABSOLUTE" || "RELATIVE", // required
143
+ * value: "STRING_VALUE", // required
144
+ * },
145
+ * endTime: {
146
+ * type: "ABSOLUTE" || "RELATIVE", // required
147
+ * value: "STRING_VALUE", // required
148
+ * },
149
+ * },
150
+ * metrics: [
151
+ * "AmortizedCost" || "BlendedCost" || "NetAmortizedCost" || "NetUnblendedCost" || "NormalizedUsageAmount" || "UnblendedCost" || "UsageQuantity" || "SpendCoveredBySavingsPlans" || "Hour" || "Unit" || "Cost",
152
+ * ],
153
+ * granularity: "HOURLY" || "DAILY" || "MONTHLY",
154
+ * groupBy: [
155
+ * {
156
+ * key: "STRING_VALUE", // required
157
+ * type: "DIMENSION" || "TAG" || "COST_CATEGORY",
158
+ * },
159
+ * ],
160
+ * filter: "<Expression>",
161
+ * },
162
+ * savingsPlansUtilization: { // SavingsPlansUtilizationQuery
163
+ * timeRange: {
164
+ * startTime: {
165
+ * type: "ABSOLUTE" || "RELATIVE", // required
166
+ * value: "STRING_VALUE", // required
167
+ * },
168
+ * endTime: "<DateTimeValue>", // required
169
+ * },
170
+ * granularity: "HOURLY" || "DAILY" || "MONTHLY",
171
+ * filter: "<Expression>",
172
+ * },
173
+ * reservationCoverage: { // ReservationCoverageQuery
174
+ * timeRange: {
175
+ * startTime: "<DateTimeValue>", // required
176
+ * endTime: "<DateTimeValue>", // required
177
+ * },
178
+ * groupBy: [
179
+ * {
180
+ * key: "STRING_VALUE", // required
181
+ * type: "DIMENSION" || "TAG" || "COST_CATEGORY",
182
+ * },
183
+ * ],
184
+ * granularity: "HOURLY" || "DAILY" || "MONTHLY",
185
+ * filter: "<Expression>",
186
+ * metrics: [
187
+ * "AmortizedCost" || "BlendedCost" || "NetAmortizedCost" || "NetUnblendedCost" || "NormalizedUsageAmount" || "UnblendedCost" || "UsageQuantity" || "SpendCoveredBySavingsPlans" || "Hour" || "Unit" || "Cost",
188
+ * ],
189
+ * },
190
+ * reservationUtilization: { // ReservationUtilizationQuery
191
+ * timeRange: {
192
+ * startTime: "<DateTimeValue>", // required
193
+ * endTime: "<DateTimeValue>", // required
194
+ * },
195
+ * groupBy: [
196
+ * {
197
+ * key: "STRING_VALUE", // required
198
+ * type: "DIMENSION" || "TAG" || "COST_CATEGORY",
199
+ * },
200
+ * ],
201
+ * granularity: "HOURLY" || "DAILY" || "MONTHLY",
202
+ * filter: "<Expression>",
203
+ * },
204
+ * },
205
+ * displayConfig: { // DisplayConfig Union: only one key present
206
+ * graph: { // GraphDisplayConfigMap
207
+ * "<keys>": { // GraphDisplayConfig
208
+ * visualType: "LINE" || "BAR" || "STACK", // required
209
+ * },
210
+ * },
211
+ * table: {},
212
+ * },
213
+ * },
214
+ * ],
215
+ * },
216
+ * ],
217
+ * resourceTags: [ // ResourceTagList
218
+ * { // ResourceTag
219
+ * key: "STRING_VALUE", // required
220
+ * value: "STRING_VALUE", // required
221
+ * },
222
+ * ],
223
+ * };
224
+ * const command = new CreateDashboardCommand(input);
225
+ * const response = await client.send(command);
226
+ * // { // CreateDashboardResponse
227
+ * // arn: "STRING_VALUE", // required
228
+ * // };
229
+ *
230
+ * ```
231
+ *
232
+ * @param CreateDashboardCommandInput - {@link CreateDashboardCommandInput}
233
+ * @returns {@link CreateDashboardCommandOutput}
234
+ * @see {@link CreateDashboardCommandInput} for command's `input` shape.
235
+ * @see {@link CreateDashboardCommandOutput} for command's `response` shape.
236
+ * @see {@link BCMDashboardsClientResolvedConfig | config} for BCMDashboardsClient's `config` shape.
237
+ *
238
+ * @throws {@link AccessDeniedException} (client fault)
239
+ * <p>You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.</p>
240
+ *
241
+ * @throws {@link InternalServerException} (server fault)
242
+ * <p>An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.</p>
243
+ *
244
+ * @throws {@link ServiceQuotaExceededException} (client fault)
245
+ * <p>The request would exceed service quotas. For example, attempting to create more than 20 widgets in a dashboard or exceeding the maximum number of dashboards per account.</p>
246
+ *
247
+ * @throws {@link ThrottlingException} (client fault)
248
+ * <p>The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.</p>
249
+ *
250
+ * @throws {@link ValidationException} (client fault)
251
+ * <p>The input parameters do not satisfy the requirements. Check the error message for specific validation details.</p>
252
+ *
253
+ * @throws {@link BCMDashboardsServiceException}
254
+ * <p>Base exception class for all service exceptions from BCMDashboards service.</p>
255
+ *
256
+ *
257
+ * @example Creating a dashboard
258
+ * ```javascript
259
+ * //
260
+ * const input = {
261
+ * description: "Dashboard for tracking costs",
262
+ * name: "cost-dashboards",
263
+ * widgets: [
264
+ * {
265
+ * configs: [
266
+ * {
267
+ * displayConfig: {
268
+ * graph: {
269
+ * costTrend: {
270
+ * visualType: "LINE"
271
+ * }
272
+ * }
273
+ * },
274
+ * queryParameters: {
275
+ * costAndUsage: {
276
+ * granularity: "MONTHLY",
277
+ * groupBy: [
278
+ * {
279
+ * key: "SERVICE",
280
+ * type: "DIMENSION"
281
+ * }
282
+ * ],
283
+ * metrics: [
284
+ * "UnblendedCost"
285
+ * ],
286
+ * timeRange: {
287
+ * endTime: {
288
+ * type: "RELATIVE",
289
+ * value: "now"
290
+ * },
291
+ * startTime: {
292
+ * type: "RELATIVE",
293
+ * value: "-9M"
294
+ * }
295
+ * }
296
+ * }
297
+ * }
298
+ * }
299
+ * ],
300
+ * height: 7,
301
+ * horizontalOffset: 0,
302
+ * title: "Monthly Cost Trend",
303
+ * width: 4
304
+ * }
305
+ * ]
306
+ * };
307
+ * const command = new CreateDashboardCommand(input);
308
+ * const response = await client.send(command);
309
+ * /* response is
310
+ * { /* metadata only *\/ }
311
+ * *\/
312
+ * ```
313
+ *
314
+ * @public
315
+ */
316
+ export declare class CreateDashboardCommand extends CreateDashboardCommand_base {
317
+ /** @internal type navigation helper, not in runtime. */
318
+ protected static __types: {
319
+ api: {
320
+ input: CreateDashboardRequest;
321
+ output: CreateDashboardResponse;
322
+ };
323
+ sdk: {
324
+ input: CreateDashboardCommandInput;
325
+ output: CreateDashboardCommandOutput;
326
+ };
327
+ };
328
+ }
@@ -0,0 +1,99 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BCMDashboardsClient";
4
+ import { DeleteDashboardRequest, DeleteDashboardResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteDashboardCommand}.
14
+ */
15
+ export interface DeleteDashboardCommandInput extends DeleteDashboardRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteDashboardCommand}.
21
+ */
22
+ export interface DeleteDashboardCommandOutput extends DeleteDashboardResponse, __MetadataBearer {
23
+ }
24
+ declare const DeleteDashboardCommand_base: {
25
+ new (input: DeleteDashboardCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDashboardCommandInput, DeleteDashboardCommandOutput, BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: DeleteDashboardCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteDashboardCommandInput, DeleteDashboardCommandOutput, BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Deletes a specified dashboard. This action cannot be undone.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BCMDashboardsClient, DeleteDashboardCommand } from "@aws-sdk/client-bcm-dashboards"; // ES Modules import
35
+ * // const { BCMDashboardsClient, DeleteDashboardCommand } = require("@aws-sdk/client-bcm-dashboards"); // CommonJS import
36
+ * const client = new BCMDashboardsClient(config);
37
+ * const input = { // DeleteDashboardRequest
38
+ * arn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new DeleteDashboardCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // DeleteDashboardResponse
43
+ * // arn: "STRING_VALUE", // required
44
+ * // };
45
+ *
46
+ * ```
47
+ *
48
+ * @param DeleteDashboardCommandInput - {@link DeleteDashboardCommandInput}
49
+ * @returns {@link DeleteDashboardCommandOutput}
50
+ * @see {@link DeleteDashboardCommandInput} for command's `input` shape.
51
+ * @see {@link DeleteDashboardCommandOutput} for command's `response` shape.
52
+ * @see {@link BCMDashboardsClientResolvedConfig | config} for BCMDashboardsClient's `config` shape.
53
+ *
54
+ * @throws {@link AccessDeniedException} (client fault)
55
+ * <p>You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.</p>
56
+ *
57
+ * @throws {@link InternalServerException} (server fault)
58
+ * <p>An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.</p>
59
+ *
60
+ * @throws {@link ThrottlingException} (client fault)
61
+ * <p>The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.</p>
62
+ *
63
+ * @throws {@link ValidationException} (client fault)
64
+ * <p>The input parameters do not satisfy the requirements. Check the error message for specific validation details.</p>
65
+ *
66
+ * @throws {@link BCMDashboardsServiceException}
67
+ * <p>Base exception class for all service exceptions from BCMDashboards service.</p>
68
+ *
69
+ *
70
+ * @example Deleting a dashboard
71
+ * ```javascript
72
+ * //
73
+ * const input = {
74
+ * arn: "arn:aws:bcm-dashboards::123456789012:dashboard/abcd1234-ab12-12ab-1ab2-abcd1234efgh"
75
+ * };
76
+ * const command = new DeleteDashboardCommand(input);
77
+ * const response = await client.send(command);
78
+ * /* response is
79
+ * {
80
+ * arn: "arn:aws:bcm-dashboards::123456789012:dashboard/abcd1234-ab12-12ab-1ab2-abcd1234efgh"
81
+ * }
82
+ * *\/
83
+ * ```
84
+ *
85
+ * @public
86
+ */
87
+ export declare class DeleteDashboardCommand extends DeleteDashboardCommand_base {
88
+ /** @internal type navigation helper, not in runtime. */
89
+ protected static __types: {
90
+ api: {
91
+ input: DeleteDashboardRequest;
92
+ output: DeleteDashboardResponse;
93
+ };
94
+ sdk: {
95
+ input: DeleteDashboardCommandInput;
96
+ output: DeleteDashboardCommandOutput;
97
+ };
98
+ };
99
+ }