@aws-sdk/client-bcm-dashboards 3.1026.0 → 3.1028.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 (50) hide show
  1. package/README.md +42 -0
  2. package/dist-cjs/index.js +108 -0
  3. package/dist-cjs/models/errors.js +14 -1
  4. package/dist-cjs/schemas/schemas_0.js +172 -3
  5. package/dist-es/BCMDashboards.js +14 -0
  6. package/dist-es/commands/CreateScheduledReportCommand.js +16 -0
  7. package/dist-es/commands/DeleteScheduledReportCommand.js +16 -0
  8. package/dist-es/commands/ExecuteScheduledReportCommand.js +16 -0
  9. package/dist-es/commands/GetScheduledReportCommand.js +16 -0
  10. package/dist-es/commands/ListScheduledReportsCommand.js +16 -0
  11. package/dist-es/commands/UpdateScheduledReportCommand.js +16 -0
  12. package/dist-es/commands/index.js +6 -0
  13. package/dist-es/models/enums.js +17 -0
  14. package/dist-es/models/errors.js +12 -0
  15. package/dist-es/pagination/ListScheduledReportsPaginator.js +4 -0
  16. package/dist-es/pagination/index.js +1 -0
  17. package/dist-es/schemas/schemas_0.js +171 -2
  18. package/dist-types/BCMDashboards.d.ts +50 -0
  19. package/dist-types/BCMDashboardsClient.d.ts +8 -2
  20. package/dist-types/commands/CreateDashboardCommand.d.ts +1 -1
  21. package/dist-types/commands/CreateScheduledReportCommand.d.ts +126 -0
  22. package/dist-types/commands/DeleteScheduledReportCommand.d.ts +89 -0
  23. package/dist-types/commands/ExecuteScheduledReportCommand.d.ts +101 -0
  24. package/dist-types/commands/GetScheduledReportCommand.d.ts +127 -0
  25. package/dist-types/commands/ListScheduledReportsCommand.d.ts +107 -0
  26. package/dist-types/commands/UpdateDashboardCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdateScheduledReportCommand.d.ts +120 -0
  28. package/dist-types/commands/index.d.ts +6 -0
  29. package/dist-types/models/enums.d.ts +41 -0
  30. package/dist-types/models/errors.d.ts +13 -1
  31. package/dist-types/models/models_0.d.ts +422 -6
  32. package/dist-types/pagination/ListScheduledReportsPaginator.d.ts +7 -0
  33. package/dist-types/pagination/index.d.ts +1 -0
  34. package/dist-types/schemas/schemas_0.d.ts +25 -0
  35. package/dist-types/ts3.4/BCMDashboards.d.ts +110 -0
  36. package/dist-types/ts3.4/BCMDashboardsClient.d.ts +38 -2
  37. package/dist-types/ts3.4/commands/CreateScheduledReportCommand.d.ts +51 -0
  38. package/dist-types/ts3.4/commands/DeleteScheduledReportCommand.d.ts +51 -0
  39. package/dist-types/ts3.4/commands/ExecuteScheduledReportCommand.d.ts +51 -0
  40. package/dist-types/ts3.4/commands/GetScheduledReportCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/ListScheduledReportsCommand.d.ts +51 -0
  42. package/dist-types/ts3.4/commands/UpdateScheduledReportCommand.d.ts +51 -0
  43. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  44. package/dist-types/ts3.4/models/enums.d.ts +21 -0
  45. package/dist-types/ts3.4/models/errors.d.ts +5 -0
  46. package/dist-types/ts3.4/models/models_0.d.ts +104 -1
  47. package/dist-types/ts3.4/pagination/ListScheduledReportsPaginator.d.ts +11 -0
  48. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  49. package/dist-types/ts3.4/schemas/schemas_0.d.ts +25 -0
  50. package/package.json +1 -1
@@ -0,0 +1,107 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BCMDashboardsClient";
4
+ import type { ListScheduledReportsRequest, ListScheduledReportsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListScheduledReportsCommand}.
14
+ */
15
+ export interface ListScheduledReportsCommandInput extends ListScheduledReportsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListScheduledReportsCommand}.
21
+ */
22
+ export interface ListScheduledReportsCommandOutput extends ListScheduledReportsResponse, __MetadataBearer {
23
+ }
24
+ declare const ListScheduledReportsCommand_base: {
25
+ new (input: ListScheduledReportsCommandInput): import("@smithy/smithy-client").CommandImpl<ListScheduledReportsCommandInput, ListScheduledReportsCommandOutput, BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [ListScheduledReportsCommandInput]): import("@smithy/smithy-client").CommandImpl<ListScheduledReportsCommandInput, ListScheduledReportsCommandOutput, BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a list of scheduled reports in your account.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BCMDashboardsClient, ListScheduledReportsCommand } from "@aws-sdk/client-bcm-dashboards"; // ES Modules import
35
+ * // const { BCMDashboardsClient, ListScheduledReportsCommand } = require("@aws-sdk/client-bcm-dashboards"); // CommonJS import
36
+ * // import type { BCMDashboardsClientConfig } from "@aws-sdk/client-bcm-dashboards";
37
+ * const config = {}; // type is BCMDashboardsClientConfig
38
+ * const client = new BCMDashboardsClient(config);
39
+ * const input = { // ListScheduledReportsRequest
40
+ * nextToken: "STRING_VALUE",
41
+ * maxResults: Number("int"),
42
+ * };
43
+ * const command = new ListScheduledReportsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListScheduledReportsResponse
46
+ * // scheduledReports: [ // ScheduledReportSummaryList // required
47
+ * // { // ScheduledReportSummary
48
+ * // arn: "STRING_VALUE", // required
49
+ * // name: "STRING_VALUE", // required
50
+ * // dashboardArn: "STRING_VALUE", // required
51
+ * // scheduleExpression: "STRING_VALUE", // required
52
+ * // state: "ENABLED" || "DISABLED", // required
53
+ * // healthStatus: { // HealthStatus
54
+ * // statusCode: "HEALTHY" || "UNHEALTHY", // required
55
+ * // lastRefreshedAt: new Date("TIMESTAMP"),
56
+ * // statusReasons: [ // StatusReasonList
57
+ * // "DATA_SOURCE_ACCESS_DENIED" || "EXECUTION_ROLE_ASSUME_FAILED" || "EXECUTION_ROLE_INSUFFICIENT_PERMISSIONS" || "DASHBOARD_NOT_FOUND" || "DASHBOARD_ACCESS_DENIED" || "INTERNAL_FAILURE" || "WIDGET_ID_NOT_FOUND",
58
+ * // ],
59
+ * // },
60
+ * // scheduleExpressionTimeZone: "STRING_VALUE",
61
+ * // widgetIds: [ // WidgetIdList
62
+ * // "STRING_VALUE",
63
+ * // ],
64
+ * // },
65
+ * // ],
66
+ * // nextToken: "STRING_VALUE",
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param ListScheduledReportsCommandInput - {@link ListScheduledReportsCommandInput}
72
+ * @returns {@link ListScheduledReportsCommandOutput}
73
+ * @see {@link ListScheduledReportsCommandInput} for command's `input` shape.
74
+ * @see {@link ListScheduledReportsCommandOutput} for command's `response` shape.
75
+ * @see {@link BCMDashboardsClientResolvedConfig | config} for BCMDashboardsClient's `config` shape.
76
+ *
77
+ * @throws {@link AccessDeniedException} (client fault)
78
+ * <p>You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.</p>
79
+ *
80
+ * @throws {@link InternalServerException} (server fault)
81
+ * <p>An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.</p>
82
+ *
83
+ * @throws {@link ThrottlingException} (client fault)
84
+ * <p>The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.</p>
85
+ *
86
+ * @throws {@link ValidationException} (client fault)
87
+ * <p>The input parameters do not satisfy the requirements. Check the error message for specific validation details.</p>
88
+ *
89
+ * @throws {@link BCMDashboardsServiceException}
90
+ * <p>Base exception class for all service exceptions from BCMDashboards service.</p>
91
+ *
92
+ *
93
+ * @public
94
+ */
95
+ export declare class ListScheduledReportsCommand extends ListScheduledReportsCommand_base {
96
+ /** @internal type navigation helper, not in runtime. */
97
+ protected static __types: {
98
+ api: {
99
+ input: ListScheduledReportsRequest;
100
+ output: ListScheduledReportsResponse;
101
+ };
102
+ sdk: {
103
+ input: ListScheduledReportsCommandInput;
104
+ output: ListScheduledReportsCommandOutput;
105
+ };
106
+ };
107
+ }
@@ -38,7 +38,7 @@ declare const UpdateDashboardCommand_base: {
38
38
  * const client = new BCMDashboardsClient(config);
39
39
  * const input = { // UpdateDashboardRequest
40
40
  * arn: "STRING_VALUE", // required
41
- * name: "STRING_VALUE",
41
+ * name: "STRING_VALUE", // required
42
42
  * description: "STRING_VALUE",
43
43
  * widgets: [ // WidgetList
44
44
  * { // Widget
@@ -0,0 +1,120 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BCMDashboardsClient";
4
+ import type { UpdateScheduledReportRequest, UpdateScheduledReportResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link UpdateScheduledReportCommand}.
14
+ */
15
+ export interface UpdateScheduledReportCommandInput extends UpdateScheduledReportRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link UpdateScheduledReportCommand}.
21
+ */
22
+ export interface UpdateScheduledReportCommandOutput extends UpdateScheduledReportResponse, __MetadataBearer {
23
+ }
24
+ declare const UpdateScheduledReportCommand_base: {
25
+ new (input: UpdateScheduledReportCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateScheduledReportCommandInput, UpdateScheduledReportCommandOutput, BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: UpdateScheduledReportCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateScheduledReportCommandInput, UpdateScheduledReportCommandOutput, BCMDashboardsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Updates an existing scheduled report's properties, including its name, description, schedule configuration, and widget settings. Only the parameters included in the request are updated; all other properties remain unchanged.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { BCMDashboardsClient, UpdateScheduledReportCommand } from "@aws-sdk/client-bcm-dashboards"; // ES Modules import
35
+ * // const { BCMDashboardsClient, UpdateScheduledReportCommand } = require("@aws-sdk/client-bcm-dashboards"); // CommonJS import
36
+ * // import type { BCMDashboardsClientConfig } from "@aws-sdk/client-bcm-dashboards";
37
+ * const config = {}; // type is BCMDashboardsClientConfig
38
+ * const client = new BCMDashboardsClient(config);
39
+ * const input = { // UpdateScheduledReportRequest
40
+ * arn: "STRING_VALUE", // required
41
+ * name: "STRING_VALUE",
42
+ * description: "STRING_VALUE",
43
+ * dashboardArn: "STRING_VALUE",
44
+ * scheduledReportExecutionRoleArn: "STRING_VALUE",
45
+ * scheduleConfig: { // ScheduleConfig
46
+ * scheduleExpression: "STRING_VALUE",
47
+ * scheduleExpressionTimeZone: "STRING_VALUE",
48
+ * schedulePeriod: { // SchedulePeriod
49
+ * startTime: new Date("TIMESTAMP"),
50
+ * endTime: new Date("TIMESTAMP"),
51
+ * },
52
+ * state: "ENABLED" || "DISABLED",
53
+ * },
54
+ * widgetIds: [ // WidgetIdList
55
+ * "STRING_VALUE",
56
+ * ],
57
+ * widgetDateRangeOverride: { // DateTimeRange
58
+ * startTime: { // DateTimeValue
59
+ * type: "ABSOLUTE" || "RELATIVE", // required
60
+ * value: "STRING_VALUE", // required
61
+ * },
62
+ * endTime: {
63
+ * type: "ABSOLUTE" || "RELATIVE", // required
64
+ * value: "STRING_VALUE", // required
65
+ * },
66
+ * },
67
+ * clearWidgetIds: true || false,
68
+ * clearWidgetDateRangeOverride: true || false,
69
+ * };
70
+ * const command = new UpdateScheduledReportCommand(input);
71
+ * const response = await client.send(command);
72
+ * // { // UpdateScheduledReportResponse
73
+ * // arn: "STRING_VALUE", // required
74
+ * // };
75
+ *
76
+ * ```
77
+ *
78
+ * @param UpdateScheduledReportCommandInput - {@link UpdateScheduledReportCommandInput}
79
+ * @returns {@link UpdateScheduledReportCommandOutput}
80
+ * @see {@link UpdateScheduledReportCommandInput} for command's `input` shape.
81
+ * @see {@link UpdateScheduledReportCommandOutput} for command's `response` shape.
82
+ * @see {@link BCMDashboardsClientResolvedConfig | config} for BCMDashboardsClient's `config` shape.
83
+ *
84
+ * @throws {@link AccessDeniedException} (client fault)
85
+ * <p>You do not have sufficient permissions to perform this action. Verify your IAM permissions and any resource policies.</p>
86
+ *
87
+ * @throws {@link ConflictException} (client fault)
88
+ * <p>The request could not be completed due to a conflict with the current state of the resource. For example, attempting to create a resource that already exists or is being created.</p>
89
+ *
90
+ * @throws {@link InternalServerException} (server fault)
91
+ * <p>An internal error occurred while processing the request. Retry your request. If the problem persists, contact Amazon Web Services Support.</p>
92
+ *
93
+ * @throws {@link ResourceNotFoundException} (client fault)
94
+ * <p>The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.</p>
95
+ *
96
+ * @throws {@link ThrottlingException} (client fault)
97
+ * <p>The request was denied due to request throttling. Reduce the frequency of requests and use exponential backoff.</p>
98
+ *
99
+ * @throws {@link ValidationException} (client fault)
100
+ * <p>The input parameters do not satisfy the requirements. Check the error message for specific validation details.</p>
101
+ *
102
+ * @throws {@link BCMDashboardsServiceException}
103
+ * <p>Base exception class for all service exceptions from BCMDashboards service.</p>
104
+ *
105
+ *
106
+ * @public
107
+ */
108
+ export declare class UpdateScheduledReportCommand extends UpdateScheduledReportCommand_base {
109
+ /** @internal type navigation helper, not in runtime. */
110
+ protected static __types: {
111
+ api: {
112
+ input: UpdateScheduledReportRequest;
113
+ output: UpdateScheduledReportResponse;
114
+ };
115
+ sdk: {
116
+ input: UpdateScheduledReportCommandInput;
117
+ output: UpdateScheduledReportCommandOutput;
118
+ };
119
+ };
120
+ }
@@ -1,9 +1,15 @@
1
1
  export * from "./CreateDashboardCommand";
2
+ export * from "./CreateScheduledReportCommand";
2
3
  export * from "./DeleteDashboardCommand";
4
+ export * from "./DeleteScheduledReportCommand";
5
+ export * from "./ExecuteScheduledReportCommand";
3
6
  export * from "./GetDashboardCommand";
4
7
  export * from "./GetResourcePolicyCommand";
8
+ export * from "./GetScheduledReportCommand";
5
9
  export * from "./ListDashboardsCommand";
10
+ export * from "./ListScheduledReportsCommand";
6
11
  export * from "./ListTagsForResourceCommand";
7
12
  export * from "./TagResourceCommand";
8
13
  export * from "./UntagResourceCommand";
9
14
  export * from "./UpdateDashboardCommand";
15
+ export * from "./UpdateScheduledReportCommand";
@@ -124,6 +124,47 @@ export declare const DateTimeType: {
124
124
  * @public
125
125
  */
126
126
  export type DateTimeType = (typeof DateTimeType)[keyof typeof DateTimeType];
127
+ /**
128
+ * @public
129
+ * @enum
130
+ */
131
+ export declare const ScheduleState: {
132
+ readonly DISABLED: "DISABLED";
133
+ readonly ENABLED: "ENABLED";
134
+ };
135
+ /**
136
+ * @public
137
+ */
138
+ export type ScheduleState = (typeof ScheduleState)[keyof typeof ScheduleState];
139
+ /**
140
+ * @public
141
+ * @enum
142
+ */
143
+ export declare const HealthStatusCode: {
144
+ readonly HEALTHY: "HEALTHY";
145
+ readonly UNHEALTHY: "UNHEALTHY";
146
+ };
147
+ /**
148
+ * @public
149
+ */
150
+ export type HealthStatusCode = (typeof HealthStatusCode)[keyof typeof HealthStatusCode];
151
+ /**
152
+ * @public
153
+ * @enum
154
+ */
155
+ export declare const StatusReason: {
156
+ readonly DASHBOARD_ACCESS_DENIED: "DASHBOARD_ACCESS_DENIED";
157
+ readonly DASHBOARD_NOT_FOUND: "DASHBOARD_NOT_FOUND";
158
+ readonly DATA_SOURCE_ACCESS_DENIED: "DATA_SOURCE_ACCESS_DENIED";
159
+ readonly EXECUTION_ROLE_ASSUME_FAILED: "EXECUTION_ROLE_ASSUME_FAILED";
160
+ readonly EXECUTION_ROLE_INSUFFICIENT_PERMISSIONS: "EXECUTION_ROLE_INSUFFICIENT_PERMISSIONS";
161
+ readonly INTERNAL_FAILURE: "INTERNAL_FAILURE";
162
+ readonly WIDGET_ID_NOT_FOUND: "WIDGET_ID_NOT_FOUND";
163
+ };
164
+ /**
165
+ * @public
166
+ */
167
+ export type StatusReason = (typeof StatusReason)[keyof typeof StatusReason];
127
168
  /**
128
169
  * @public
129
170
  * @enum
@@ -25,7 +25,7 @@ export declare class InternalServerException extends __BaseException {
25
25
  constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
26
26
  }
27
27
  /**
28
- * <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>
28
+ * <p>The request would exceed a service quota. Review the service quotas for Amazon Web Services Billing and Cost Management Dashboards and retry your request.</p>
29
29
  * @public
30
30
  */
31
31
  export declare class ServiceQuotaExceededException extends __BaseException {
@@ -60,6 +60,18 @@ export declare class ValidationException extends __BaseException {
60
60
  */
61
61
  constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
62
62
  }
63
+ /**
64
+ * <p>The request could not be completed due to a conflict with the current state of the resource. For example, attempting to create a resource that already exists or is being created.</p>
65
+ * @public
66
+ */
67
+ export declare class ConflictException extends __BaseException {
68
+ readonly name: "ConflictException";
69
+ readonly $fault: "client";
70
+ /**
71
+ * @internal
72
+ */
73
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
74
+ }
63
75
  /**
64
76
  * <p>The specified resource (dashboard, policy, or widget) was not found. Verify the ARN and try again.</p>
65
77
  * @public