Skip to content

Commit 4d6e1de

Browse files
author
awstools
committed
feat(client-bcm-dashboards): The Billing and Cost Management GetDashboard API now returns identifier for each widget, enabling users to uniquely identify widgets within their dashboards.
1 parent 9335ea3 commit 4d6e1de

6 files changed

Lines changed: 28 additions & 2 deletions

File tree

clients/client-bcm-dashboards/src/commands/CreateDashboardCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export interface CreateDashboardCommandOutput extends CreateDashboardResponse, _
4141
* description: "STRING_VALUE",
4242
* widgets: [ // WidgetList // required
4343
* { // Widget
44+
* id: "STRING_VALUE",
4445
* title: "STRING_VALUE", // required
4546
* description: "STRING_VALUE",
4647
* width: Number("int"),

clients/client-bcm-dashboards/src/commands/GetDashboardCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export interface GetDashboardCommandOutput extends GetDashboardResponse, __Metad
4848
* // type: "CUSTOM", // required
4949
* // widgets: [ // WidgetList // required
5050
* // { // Widget
51+
* // id: "STRING_VALUE",
5152
* // title: "STRING_VALUE", // required
5253
* // description: "STRING_VALUE",
5354
* // width: Number("int"),

clients/client-bcm-dashboards/src/commands/UpdateDashboardCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export interface UpdateDashboardCommandOutput extends UpdateDashboardResponse, _
4242
* description: "STRING_VALUE",
4343
* widgets: [ // WidgetList
4444
* { // Widget
45+
* id: "STRING_VALUE",
4546
* title: "STRING_VALUE", // required
4647
* description: "STRING_VALUE",
4748
* width: Number("int"),

clients/client-bcm-dashboards/src/models/models_0.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,12 @@ export interface WidgetConfig {
784784
* @public
785785
*/
786786
export interface Widget {
787+
/**
788+
* The unique identifier for the widget.
789+
* @public
790+
*/
791+
id?: string | undefined;
792+
787793
/**
788794
* <p>The title of the widget.</p>
789795
* @public

clients/client-bcm-dashboards/src/schemas/schemas_0.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ const _gr = "graph";
7878
const _h = "height";
7979
const _hE = "httpError";
8080
const _hO = "horizontalOffset";
81+
const _i = "id";
8182
const _k = "key";
8283
const _m = "message";
8384
const _mO = "matchOptions";
@@ -355,8 +356,8 @@ export var UpdateDashboardResponse$: StaticStructureSchema = [3, n0, _UDRp,
355356
];
356357
export var Widget$: StaticStructureSchema = [3, n0, _W,
357358
0,
358-
[_ti, _co, _d, _wi, _h, _hO],
359-
[0, () => WidgetConfigList, 0, 1, 1, 1], 2
359+
[_ti, _co, _i, _d, _wi, _h, _hO],
360+
[0, () => WidgetConfigList, 0, 0, 1, 1, 1], 2
360361
];
361362
export var WidgetConfig$: StaticStructureSchema = [3, n0, _WC,
362363
0,

codegen/sdk-codegen/aws-models/bcm-dashboards.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,6 +2371,12 @@
23712371
"com.amazonaws.bcmdashboards#Widget": {
23722372
"type": "structure",
23732373
"members": {
2374+
"id": {
2375+
"target": "com.amazonaws.bcmdashboards#WidgetId",
2376+
"traits": {
2377+
"smithy.api#documentation": "The unique identifier for the widget."
2378+
}
2379+
},
23742380
"title": {
23752381
"target": "com.amazonaws.bcmdashboards#WidgetTitle",
23762382
"traits": {
@@ -2460,6 +2466,16 @@
24602466
}
24612467
}
24622468
},
2469+
"com.amazonaws.bcmdashboards#WidgetId": {
2470+
"type": "string",
2471+
"traits": {
2472+
"smithy.api#length": {
2473+
"min": 32,
2474+
"max": 32
2475+
},
2476+
"smithy.api#pattern": "^[0-9a-f]{32}$"
2477+
}
2478+
},
24632479
"com.amazonaws.bcmdashboards#WidgetList": {
24642480
"type": "list",
24652481
"member": {

0 commit comments

Comments
 (0)