Skip to content

Commit 73e1b34

Browse files
author
awstools
committed
feat(client-workspaces): This release introduces User-Decoupling feature. This feature allows Workspaces Core customers to provision workspaces without providing users. CreateWorkspaces and DescribeWorkspaces APIs will now take a new optional parameter "WorkspaceName".
1 parent 9dade00 commit 73e1b34

File tree

6 files changed

+54
-76
lines changed

6 files changed

+54
-76
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export interface CreateWorkspacesCommandOutput extends CreateWorkspacesResult, _
7676
* Value: "STRING_VALUE",
7777
* },
7878
* ],
79+
* WorkspaceName: "STRING_VALUE",
7980
* },
8081
* ],
8182
* };
@@ -108,6 +109,7 @@ export interface CreateWorkspacesCommandOutput extends CreateWorkspacesResult, _
108109
* // Value: "STRING_VALUE",
109110
* // },
110111
* // ],
112+
* // WorkspaceName: "STRING_VALUE",
111113
* // },
112114
* // ErrorCode: "STRING_VALUE",
113115
* // ErrorMessage: "STRING_VALUE",
@@ -128,6 +130,7 @@ export interface CreateWorkspacesCommandOutput extends CreateWorkspacesResult, _
128130
* // VolumeEncryptionKey: "STRING_VALUE",
129131
* // UserVolumeEncryptionEnabled: true || false,
130132
* // RootVolumeEncryptionEnabled: true || false,
133+
* // WorkspaceName: "STRING_VALUE",
131134
* // WorkspaceProperties: {
132135
* // RunningMode: "AUTO_STOP" || "ALWAYS_ON" || "MANUAL",
133136
* // RunningModeAutoStopTimeoutInMinutes: Number("int"),

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export interface DescribeWorkspacesCommandOutput extends DescribeWorkspacesResul
4646
* BundleId: "STRING_VALUE",
4747
* Limit: Number("int"),
4848
* NextToken: "STRING_VALUE",
49+
* WorkspaceName: "STRING_VALUE",
4950
* };
5051
* const command = new DescribeWorkspacesCommand(input);
5152
* const response = await client.send(command);
@@ -65,6 +66,7 @@ export interface DescribeWorkspacesCommandOutput extends DescribeWorkspacesResul
6566
* // VolumeEncryptionKey: "STRING_VALUE",
6667
* // UserVolumeEncryptionEnabled: true || false,
6768
* // RootVolumeEncryptionEnabled: true || false,
69+
* // WorkspaceName: "STRING_VALUE",
6870
* // WorkspaceProperties: { // WorkspaceProperties
6971
* // RunningMode: "AUTO_STOP" || "ALWAYS_ON" || "MANUAL",
7072
* // RunningModeAutoStopTimeoutInMinutes: Number("int"),

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ export interface RebootWorkspacesCommandOutput extends RebootWorkspacesResult, _
2929
/**
3030
* @public
3131
* <p>Reboots the specified WorkSpaces.</p>
32-
* <p>You cannot reboot a WorkSpace unless its state is <code>AVAILABLE</code>,
33-
* <code>UNHEALTHY</code>, or <code>REBOOTING</code>. Reboot a WorkSpace in the <code>REBOOTING</code>
34-
* state only if your WorkSpace has been stuck in the <code>REBOOTING</code> state for over 20 minutes.</p>
32+
* <p>You cannot reboot a WorkSpace unless its state is <code>AVAILABLE</code> or
33+
* <code>UNHEALTHY</code>.</p>
3534
* <p>This operation is asynchronous and returns before the WorkSpaces have rebooted.</p>
3635
* @example
3736
* Use a bare-bones client and the command you need to make an API call.

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

Lines changed: 19 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,6 +2019,7 @@ export interface WorkspaceRequest {
20192019
/**
20202020
* @public
20212021
* <p>The user name of the user for the WorkSpace. This user name must exist in the Directory Service directory for the WorkSpace.</p>
2022+
* <p>The reserved keyword, <code>[UNDEFINED]</code>, is used when creating user-decoupled WorkSpaces.</p>
20222023
*/
20232024
UserName: string | undefined;
20242025

@@ -2058,6 +2059,12 @@ export interface WorkspaceRequest {
20582059
* <p>The tags for the WorkSpace.</p>
20592060
*/
20602061
Tags?: Tag[];
2062+
2063+
/**
2064+
* @public
2065+
* <p>The name of the user-decoupled WorkSpace.</p>
2066+
*/
2067+
WorkspaceName?: string;
20612068
}
20622069

20632070
/**
@@ -2265,76 +2272,6 @@ export interface Workspace {
22652272
/**
22662273
* @public
22672274
* <p>The operational state of the WorkSpace.</p>
2268-
* <ul>
2269-
* <li>
2270-
* <p>
2271-
* <code>PENDING</code> – The WorkSpace is in a waiting state (for example, the WorkSpace is being created).</p>
2272-
* </li>
2273-
* <li>
2274-
* <p>
2275-
* <code>AVAILABLE</code> – The WorkSpace is running and has passed the health checks.</p>
2276-
* </li>
2277-
* <li>
2278-
* <p>
2279-
* <code>IMPAIRED</code> – Refer to <code>UNHEALTHY</code> state.</p>
2280-
* </li>
2281-
* <li>
2282-
* <p>
2283-
* <code>UNHEALTHY</code> – The WorkSpace is not responding to health checks.</p>
2284-
* </li>
2285-
* <li>
2286-
* <p>
2287-
* <code>REBOOTING</code> – The WorkSpace is being rebooted (restarted).</p>
2288-
* </li>
2289-
* <li>
2290-
* <p>
2291-
* <code>STARTING</code> – The WorkSpace is starting up and health checks are being run.</p>
2292-
* </li>
2293-
* <li>
2294-
* <p>
2295-
* <code>REBUILDING</code> – The WorkSpace is being rebuilt.</p>
2296-
* </li>
2297-
* <li>
2298-
* <p>
2299-
* <code>RESTORING</code> – The WorkSpace is being restored.</p>
2300-
* </li>
2301-
* <li>
2302-
* <p>
2303-
* <code>MAINTENANCE</code> – The WorkSpace is undergoing scheduled maintenance by Amazon Web Services.</p>
2304-
* </li>
2305-
* <li>
2306-
* <p>
2307-
* <code>ADMIN_MAINTENANCE</code> – The WorkSpace is undergoing maintenance by the WorkSpaces administrator.</p>
2308-
* </li>
2309-
* <li>
2310-
* <p>
2311-
* <code>TERMINATING</code> – The WorkSpace is being deleted.</p>
2312-
* </li>
2313-
* <li>
2314-
* <p>
2315-
* <code>TERMINATED</code> – The WorkSpace has been deleted.</p>
2316-
* </li>
2317-
* <li>
2318-
* <p>
2319-
* <code>SUSPENDED</code> – The WorkSpace has been suspended for image creation.</p>
2320-
* </li>
2321-
* <li>
2322-
* <p>
2323-
* <code>UPDATING</code> – The WorkSpace is undergoing an update.</p>
2324-
* </li>
2325-
* <li>
2326-
* <p>
2327-
* <code>STOPPING</code> – The WorkSpace is being stopped.</p>
2328-
* </li>
2329-
* <li>
2330-
* <p>
2331-
* <code>STOPPED</code> – The WorkSpace has been stopped.</p>
2332-
* </li>
2333-
* <li>
2334-
* <p>
2335-
* <code>ERROR </code> – The WorkSpace is an error state (for example, an error occurred during startup).</p>
2336-
* </li>
2337-
* </ul>
23382275
* <note>
23392276
* <p>After a WorkSpace is terminated, the <code>TERMINATED</code> state is returned only
23402277
* briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely
@@ -2398,6 +2335,12 @@ export interface Workspace {
23982335
*/
23992336
RootVolumeEncryptionEnabled?: boolean;
24002337

2338+
/**
2339+
* @public
2340+
* <p>The name of the user-decoupled WorkSpace.</p>
2341+
*/
2342+
WorkspaceName?: string;
2343+
24012344
/**
24022345
* @public
24032346
* <p>The properties of the WorkSpace.</p>
@@ -4440,6 +4383,12 @@ export interface DescribeWorkspacesRequest {
44404383
* provide this token to receive the next set of results.</p>
44414384
*/
44424385
NextToken?: string;
4386+
4387+
/**
4388+
* @public
4389+
* <p>The name of the user-decoupled WorkSpace.</p>
4390+
*/
4391+
WorkspaceName?: string;
44434392
}
44444393

44454394
/**

clients/client-workspaces/src/protocols/Aws_json1_1.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4154,6 +4154,7 @@ const de_Workspace = (output: any, context: __SerdeContext): Workspace => {
41544154
UserVolumeEncryptionEnabled: __expectBoolean,
41554155
VolumeEncryptionKey: __expectString,
41564156
WorkspaceId: __expectString,
4157+
WorkspaceName: __expectString,
41574158
WorkspaceProperties: _json,
41584159
}) as any;
41594160
};

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

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4261,6 +4261,12 @@
42614261
"traits": {
42624262
"smithy.api#documentation": "<p>If you received a <code>NextToken</code> from a previous call that was paginated,\n provide this token to receive the next set of results.</p>"
42634263
}
4264+
},
4265+
"WorkspaceName": {
4266+
"target": "com.amazonaws.workspaces#WorkspaceName",
4267+
"traits": {
4268+
"smithy.api#documentation": "<p>The name of the user-decoupled WorkSpace.</p>"
4269+
}
42644270
}
42654271
},
42664272
"traits": {
@@ -6238,7 +6244,7 @@
62386244
}
62396245
],
62406246
"traits": {
6241-
"smithy.api#documentation": "<p>Reboots the specified WorkSpaces.</p>\n <p>You cannot reboot a WorkSpace unless its state is <code>AVAILABLE</code>,\n <code>UNHEALTHY</code>, or <code>REBOOTING</code>. Reboot a WorkSpace in the <code>REBOOTING</code> \n state only if your WorkSpace has been stuck in the <code>REBOOTING</code> state for over 20 minutes.</p>\n <p>This operation is asynchronous and returns before the WorkSpaces have rebooted.</p>"
6247+
"smithy.api#documentation": "<p>Reboots the specified WorkSpaces.</p>\n <p>You cannot reboot a WorkSpace unless its state is <code>AVAILABLE</code> or\n <code>UNHEALTHY</code>.</p>\n <p>This operation is asynchronous and returns before the WorkSpaces have rebooted.</p>"
62426248
}
62436249
},
62446250
"com.amazonaws.workspaces#RebootWorkspacesRequest": {
@@ -7909,7 +7915,7 @@
79097915
"State": {
79107916
"target": "com.amazonaws.workspaces#WorkspaceState",
79117917
"traits": {
7912-
"smithy.api#documentation": "<p>The operational state of the WorkSpace.</p>\n <ul>\n <li>\n <p>\n <code>PENDING</code> – The WorkSpace is in a waiting state (for example, the WorkSpace is being created).</p>\n </li>\n <li>\n <p>\n <code>AVAILABLE</code> – The WorkSpace is running and has passed the health checks.</p>\n </li>\n <li>\n <p>\n <code>IMPAIRED</code> – Refer to <code>UNHEALTHY</code> state.</p>\n </li>\n <li>\n <p>\n <code>UNHEALTHY</code> – The WorkSpace is not responding to health checks.</p>\n </li>\n <li>\n <p>\n <code>REBOOTING</code> – The WorkSpace is being rebooted (restarted).</p>\n </li>\n <li>\n <p>\n <code>STARTING</code> – The WorkSpace is starting up and health checks are being run.</p>\n </li>\n <li>\n <p>\n <code>REBUILDING</code> – The WorkSpace is being rebuilt.</p>\n </li>\n <li>\n <p>\n <code>RESTORING</code> – The WorkSpace is being restored.</p>\n </li>\n <li>\n <p>\n <code>MAINTENANCE</code> – The WorkSpace is undergoing scheduled maintenance by Amazon Web Services.</p>\n </li>\n <li>\n <p>\n <code>ADMIN_MAINTENANCE</code> – The WorkSpace is undergoing maintenance by the WorkSpaces administrator.</p>\n </li>\n <li>\n <p>\n <code>TERMINATING</code> – The WorkSpace is being deleted.</p>\n </li>\n <li>\n <p>\n <code>TERMINATED</code> – The WorkSpace has been deleted.</p>\n </li>\n <li>\n <p>\n <code>SUSPENDED</code> – The WorkSpace has been suspended for image creation.</p>\n </li>\n <li>\n <p>\n <code>UPDATING</code> – The WorkSpace is undergoing an update.</p>\n </li>\n <li>\n <p>\n <code>STOPPING</code> – The WorkSpace is being stopped.</p>\n </li>\n <li>\n <p>\n <code>STOPPED</code> – The WorkSpace has been stopped.</p>\n </li>\n <li>\n <p>\n <code>ERROR </code> – The WorkSpace is an error state (for example, an error occurred during startup).</p>\n </li>\n </ul>\n <note>\n <p>After a WorkSpace is terminated, the <code>TERMINATED</code> state is returned only\n briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely\n returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using\n <a href=\"https://docs.aws.amazon.com/workspaces/latest/api/API_DescribeWorkspaces.html\">\n DescribeWorkSpaces</a>. If the WorkSpace ID isn't returned, then the WorkSpace\n has been successfully terminated.</p>\n </note>"
7918+
"smithy.api#documentation": "<p>The operational state of the WorkSpace.</p>\n <note>\n <p>After a WorkSpace is terminated, the <code>TERMINATED</code> state is returned only\n briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely\n returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using\n <a href=\"https://docs.aws.amazon.com/workspaces/latest/api/API_DescribeWorkspaces.html\">\n DescribeWorkSpaces</a>. If the WorkSpace ID isn't returned, then the WorkSpace\n has been successfully terminated.</p>\n </note>"
79137919
}
79147920
},
79157921
"BundleId": {
@@ -7960,6 +7966,12 @@
79607966
"smithy.api#documentation": "<p>Indicates whether the data stored on the root volume is encrypted.</p>"
79617967
}
79627968
},
7969+
"WorkspaceName": {
7970+
"target": "com.amazonaws.workspaces#WorkspaceName",
7971+
"traits": {
7972+
"smithy.api#documentation": "<p>The name of the user-decoupled WorkSpace.</p>"
7973+
}
7974+
},
79637975
"WorkspaceProperties": {
79647976
"target": "com.amazonaws.workspaces#WorkspaceProperties",
79657977
"traits": {
@@ -8826,6 +8838,12 @@
88268838
"target": "com.amazonaws.workspaces#Workspace"
88278839
}
88288840
},
8841+
"com.amazonaws.workspaces#WorkspaceName": {
8842+
"type": "string",
8843+
"traits": {
8844+
"smithy.api#pattern": "^[a-zA-Z0-9_()][a-zA-Z0-9_.()-]{1,63}$"
8845+
}
8846+
},
88298847
"com.amazonaws.workspaces#WorkspaceProperties": {
88308848
"type": "structure",
88318849
"members": {
@@ -8889,7 +8907,7 @@
88898907
"UserName": {
88908908
"target": "com.amazonaws.workspaces#UserName",
88918909
"traits": {
8892-
"smithy.api#documentation": "<p>The user name of the user for the WorkSpace. This user name must exist in the Directory Service directory for the WorkSpace.</p>",
8910+
"smithy.api#documentation": "<p>The user name of the user for the WorkSpace. This user name must exist in the Directory Service directory for the WorkSpace.</p>\n <p>The reserved keyword, <code>[UNDEFINED]</code>, is used when creating user-decoupled WorkSpaces.</p>",
88938911
"smithy.api#required": {}
88948912
}
88958913
},
@@ -8929,6 +8947,12 @@
89298947
"traits": {
89308948
"smithy.api#documentation": "<p>The tags for the WorkSpace.</p>"
89318949
}
8950+
},
8951+
"WorkspaceName": {
8952+
"target": "com.amazonaws.workspaces#WorkspaceName",
8953+
"traits": {
8954+
"smithy.api#documentation": "<p>The name of the user-decoupled WorkSpace.</p>"
8955+
}
89328956
}
89338957
},
89348958
"traits": {

0 commit comments

Comments
 (0)