From 660165d6b7fa10845e269924dad12166fcbeff71 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 15 Jan 2025 20:06:03 +0000 Subject: [PATCH] feat(client-workspaces-thin-client): Mark type in MaintenanceWindow as required. --- .../src/commands/CreateEnvironmentCommand.ts | 4 ++-- .../src/commands/GetEnvironmentCommand.ts | 2 +- .../src/commands/ListEnvironmentsCommand.ts | 2 +- .../src/commands/UpdateEnvironmentCommand.ts | 4 ++-- clients/client-workspaces-thin-client/src/models/models_0.ts | 2 +- codegen/sdk-codegen/aws-models/workspaces-thin-client.json | 3 ++- 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/clients/client-workspaces-thin-client/src/commands/CreateEnvironmentCommand.ts b/clients/client-workspaces-thin-client/src/commands/CreateEnvironmentCommand.ts index e93ab96b56ad..e4a0bcd25374 100644 --- a/clients/client-workspaces-thin-client/src/commands/CreateEnvironmentCommand.ts +++ b/clients/client-workspaces-thin-client/src/commands/CreateEnvironmentCommand.ts @@ -50,7 +50,7 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentRespons * desktopEndpoint: "STRING_VALUE", * softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY", * maintenanceWindow: { // MaintenanceWindow - * type: "SYSTEM" || "CUSTOM", + * type: "SYSTEM" || "CUSTOM", // required * startTimeHour: Number("int"), * startTimeMinute: Number("int"), * endTimeHour: Number("int"), @@ -83,7 +83,7 @@ export interface CreateEnvironmentCommandOutput extends CreateEnvironmentRespons * // activationCode: "STRING_VALUE", * // softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY", * // maintenanceWindow: { // MaintenanceWindow - * // type: "SYSTEM" || "CUSTOM", + * // type: "SYSTEM" || "CUSTOM", // required * // startTimeHour: Number("int"), * // startTimeMinute: Number("int"), * // endTimeHour: Number("int"), diff --git a/clients/client-workspaces-thin-client/src/commands/GetEnvironmentCommand.ts b/clients/client-workspaces-thin-client/src/commands/GetEnvironmentCommand.ts index 8d621fd5b645..444406834c26 100644 --- a/clients/client-workspaces-thin-client/src/commands/GetEnvironmentCommand.ts +++ b/clients/client-workspaces-thin-client/src/commands/GetEnvironmentCommand.ts @@ -59,7 +59,7 @@ export interface GetEnvironmentCommandOutput extends GetEnvironmentResponse, __M * // registeredDevicesCount: Number("int"), * // softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY", * // maintenanceWindow: { // MaintenanceWindow - * // type: "SYSTEM" || "CUSTOM", + * // type: "SYSTEM" || "CUSTOM", // required * // startTimeHour: Number("int"), * // startTimeMinute: Number("int"), * // endTimeHour: Number("int"), diff --git a/clients/client-workspaces-thin-client/src/commands/ListEnvironmentsCommand.ts b/clients/client-workspaces-thin-client/src/commands/ListEnvironmentsCommand.ts index d2f7e262527c..da0001bd843e 100644 --- a/clients/client-workspaces-thin-client/src/commands/ListEnvironmentsCommand.ts +++ b/clients/client-workspaces-thin-client/src/commands/ListEnvironmentsCommand.ts @@ -60,7 +60,7 @@ export interface ListEnvironmentsCommandOutput extends ListEnvironmentsResponse, * // activationCode: "STRING_VALUE", * // softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY", * // maintenanceWindow: { // MaintenanceWindow - * // type: "SYSTEM" || "CUSTOM", + * // type: "SYSTEM" || "CUSTOM", // required * // startTimeHour: Number("int"), * // startTimeMinute: Number("int"), * // endTimeHour: Number("int"), diff --git a/clients/client-workspaces-thin-client/src/commands/UpdateEnvironmentCommand.ts b/clients/client-workspaces-thin-client/src/commands/UpdateEnvironmentCommand.ts index d09336c17c9c..726d2fc9abf1 100644 --- a/clients/client-workspaces-thin-client/src/commands/UpdateEnvironmentCommand.ts +++ b/clients/client-workspaces-thin-client/src/commands/UpdateEnvironmentCommand.ts @@ -51,7 +51,7 @@ export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentRespons * desktopEndpoint: "STRING_VALUE", * softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY", * maintenanceWindow: { // MaintenanceWindow - * type: "SYSTEM" || "CUSTOM", + * type: "SYSTEM" || "CUSTOM", // required * startTimeHour: Number("int"), * startTimeMinute: Number("int"), * endTimeHour: Number("int"), @@ -79,7 +79,7 @@ export interface UpdateEnvironmentCommandOutput extends UpdateEnvironmentRespons * // activationCode: "STRING_VALUE", * // softwareSetUpdateSchedule: "USE_MAINTENANCE_WINDOW" || "APPLY_IMMEDIATELY", * // maintenanceWindow: { // MaintenanceWindow - * // type: "SYSTEM" || "CUSTOM", + * // type: "SYSTEM" || "CUSTOM", // required * // startTimeHour: Number("int"), * // startTimeMinute: Number("int"), * // endTimeHour: Number("int"), diff --git a/clients/client-workspaces-thin-client/src/models/models_0.ts b/clients/client-workspaces-thin-client/src/models/models_0.ts index 1b56788d09b3..0626c6341edf 100644 --- a/clients/client-workspaces-thin-client/src/models/models_0.ts +++ b/clients/client-workspaces-thin-client/src/models/models_0.ts @@ -115,7 +115,7 @@ export interface MaintenanceWindow { *

An option to select the default or custom maintenance window.

* @public */ - type?: MaintenanceWindowType | undefined; + type: MaintenanceWindowType | undefined; /** *

The hour for the maintenance window start (00-23).

diff --git a/codegen/sdk-codegen/aws-models/workspaces-thin-client.json b/codegen/sdk-codegen/aws-models/workspaces-thin-client.json index 5e2f515adb78..9230d026b081 100644 --- a/codegen/sdk-codegen/aws-models/workspaces-thin-client.json +++ b/codegen/sdk-codegen/aws-models/workspaces-thin-client.json @@ -1710,7 +1710,8 @@ "type": { "target": "com.amazonaws.workspacesthinclient#MaintenanceWindowType", "traits": { - "smithy.api#documentation": "

An option to select the default or custom maintenance window.

" + "smithy.api#documentation": "

An option to select the default or custom maintenance window.

", + "smithy.api#required": {} } }, "startTimeHour": {