Skip to content

Commit 660165d

Browse files
author
awstools
committed
feat(client-workspaces-thin-client): Mark type in MaintenanceWindow as required.
1 parent 07be2a0 commit 660165d

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

clients/client-workspaces-thin-client/src/commands/CreateEnvironmentCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentRespons
5050
* desktopEndpoint: "STRING_VALUE",
5151
* softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY",
5252
* maintenanceWindow: { // MaintenanceWindow
53-
* type: "SYSTEM" || "CUSTOM",
53+
* type: "SYSTEM" || "CUSTOM", // required
5454
* startTimeHour: Number("int"),
5555
* startTimeMinute: Number("int"),
5656
* endTimeHour: Number("int"),
@@ -83,7 +83,7 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentRespons
8383
* // activationCode: "STRING_VALUE",
8484
* // softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY",
8585
* // maintenanceWindow: { // MaintenanceWindow
86-
* // type: "SYSTEM" || "CUSTOM",
86+
* // type: "SYSTEM" || "CUSTOM", // required
8787
* // startTimeHour: Number("int"),
8888
* // startTimeMinute: Number("int"),
8989
* // endTimeHour: Number("int"),

clients/client-workspaces-thin-client/src/commands/GetEnvironmentCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export interface GetEnvironmentCommandOutput extends GetEnvironmentResponse, __M
5959
* // registeredDevicesCount: Number("int"),
6060
* // softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY",
6161
* // maintenanceWindow: { // MaintenanceWindow
62-
* // type: "SYSTEM" || "CUSTOM",
62+
* // type: "SYSTEM" || "CUSTOM", // required
6363
* // startTimeHour: Number("int"),
6464
* // startTimeMinute: Number("int"),
6565
* // endTimeHour: Number("int"),

clients/client-workspaces-thin-client/src/commands/ListEnvironmentsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export interface ListEnvironmentsCommandOutput extends ListEnvironmentsResponse,
6060
* // activationCode: "STRING_VALUE",
6161
* // softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY",
6262
* // maintenanceWindow: { // MaintenanceWindow
63-
* // type: "SYSTEM" || "CUSTOM",
63+
* // type: "SYSTEM" || "CUSTOM", // required
6464
* // startTimeHour: Number("int"),
6565
* // startTimeMinute: Number("int"),
6666
* // endTimeHour: Number("int"),

clients/client-workspaces-thin-client/src/commands/UpdateEnvironmentCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentRespons
5151
* desktopEndpoint: "STRING_VALUE",
5252
* softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY",
5353
* maintenanceWindow: { // MaintenanceWindow
54-
* type: "SYSTEM" || "CUSTOM",
54+
* type: "SYSTEM" || "CUSTOM", // required
5555
* startTimeHour: Number("int"),
5656
* startTimeMinute: Number("int"),
5757
* endTimeHour: Number("int"),
@@ -79,7 +79,7 @@ export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentRespons
7979
* // activationCode: "STRING_VALUE",
8080
* // softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY",
8181
* // maintenanceWindow: { // MaintenanceWindow
82-
* // type: "SYSTEM" || "CUSTOM",
82+
* // type: "SYSTEM" || "CUSTOM", // required
8383
* // startTimeHour: Number("int"),
8484
* // startTimeMinute: Number("int"),
8585
* // endTimeHour: Number("int"),

clients/client-workspaces-thin-client/src/models/models_0.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export interface MaintenanceWindow {
115115
* <p>An option to select the default or custom maintenance window.</p>
116116
* @public
117117
*/
118-
type?: MaintenanceWindowType | undefined;
118+
type: MaintenanceWindowType | undefined;
119119

120120
/**
121121
* <p>The hour for the maintenance window start (<code>00</code>-<code>23</code>).</p>

codegen/sdk-codegen/aws-models/workspaces-thin-client.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,8 @@
17101710
"type": {
17111711
"target": "com.amazonaws.workspacesthinclient#MaintenanceWindowType",
17121712
"traits": {
1713-
"smithy.api#documentation": "<p>An option to select the default or custom maintenance window.</p>"
1713+
"smithy.api#documentation": "<p>An option to select the default or custom maintenance window.</p>",
1714+
"smithy.api#required": {}
17141715
}
17151716
},
17161717
"startTimeHour": {

0 commit comments

Comments
 (0)