Skip to content

Commit 8698ba5

Browse files
author
awstools
committed
feat(client-workspaces): Fix create workspace bundle RootStorage/UserStorage to accept non null values
1 parent 462567c commit 8698ba5

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

clients/client-workspaces/src/commands/CreateWorkspaceBundleCommand.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ export interface CreateWorkspaceBundleCommandOutput extends CreateWorkspaceBundl
4545
* Name: "VALUE" || "STANDARD" || "PERFORMANCE" || "POWER" || "GRAPHICS" || "POWERPRO" || "GRAPHICSPRO" || "GRAPHICS_G4DN" || "GRAPHICSPRO_G4DN",
4646
* },
4747
* UserStorage: { // UserStorage
48-
* Capacity: "STRING_VALUE",
48+
* Capacity: "STRING_VALUE", // required
4949
* },
5050
* RootStorage: { // RootStorage
51-
* Capacity: "STRING_VALUE",
51+
* Capacity: "STRING_VALUE", // required
5252
* },
5353
* Tags: [ // TagList
5454
* { // Tag
@@ -67,10 +67,10 @@ export interface CreateWorkspaceBundleCommandOutput extends CreateWorkspaceBundl
6767
* // Description: "STRING_VALUE",
6868
* // ImageId: "STRING_VALUE",
6969
* // RootStorage: { // RootStorage
70-
* // Capacity: "STRING_VALUE",
70+
* // Capacity: "STRING_VALUE", // required
7171
* // },
7272
* // UserStorage: { // UserStorage
73-
* // Capacity: "STRING_VALUE",
73+
* // Capacity: "STRING_VALUE", // required
7474
* // },
7575
* // ComputeType: { // ComputeType
7676
* // Name: "VALUE" || "STANDARD" || "PERFORMANCE" || "POWER" || "GRAPHICS" || "POWERPRO" || "GRAPHICSPRO" || "GRAPHICS_G4DN" || "GRAPHICSPRO_G4DN",

clients/client-workspaces/src/commands/DescribeWorkspaceBundlesCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ export interface DescribeWorkspaceBundlesCommandOutput extends DescribeWorkspace
5454
* // Description: "STRING_VALUE",
5555
* // ImageId: "STRING_VALUE",
5656
* // RootStorage: { // RootStorage
57-
* // Capacity: "STRING_VALUE",
57+
* // Capacity: "STRING_VALUE", // required
5858
* // },
5959
* // UserStorage: { // UserStorage
60-
* // Capacity: "STRING_VALUE",
60+
* // Capacity: "STRING_VALUE", // required
6161
* // },
6262
* // ComputeType: { // ComputeType
6363
* // Name: "VALUE" || "STANDARD" || "PERFORMANCE" || "POWER" || "GRAPHICS" || "POWERPRO" || "GRAPHICSPRO" || "GRAPHICS_G4DN" || "GRAPHICSPRO_G4DN",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ export interface RootStorage {
10041004
* <p>The size of the root volume.</p>
10051005
* @public
10061006
*/
1007-
Capacity?: string;
1007+
Capacity: string | undefined;
10081008
}
10091009

10101010
/**
@@ -1031,7 +1031,7 @@ export interface UserStorage {
10311031
* <p>The size of the user volume.</p>
10321032
* @public
10331033
*/
1034-
Capacity?: string;
1034+
Capacity: string | undefined;
10351035
}
10361036

10371037
/**

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8012,7 +8012,8 @@
80128012
"Capacity": {
80138013
"target": "com.amazonaws.workspaces#NonEmptyString",
80148014
"traits": {
8015-
"smithy.api#documentation": "<p>The size of the root volume.</p>"
8015+
"smithy.api#documentation": "<p>The size of the root volume.</p>",
8016+
"smithy.api#required": {}
80168017
}
80178018
}
80188019
},
@@ -9559,7 +9560,8 @@
95599560
"Capacity": {
95609561
"target": "com.amazonaws.workspaces#NonEmptyString",
95619562
"traits": {
9562-
"smithy.api#documentation": "<p>The size of the user volume.</p>"
9563+
"smithy.api#documentation": "<p>The size of the user volume.</p>",
9564+
"smithy.api#required": {}
95639565
}
95649566
}
95659567
},

0 commit comments

Comments
 (0)