@aws-sdk/client-workspaces 3.212.0 → 3.215.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/WorkSpaces.js +15 -0
- package/dist-cjs/commands/CreateStandbyWorkspacesCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +65 -25
- package/dist-cjs/protocols/Aws_json1_1.js +198 -17
- package/dist-es/WorkSpaces.js +15 -0
- package/dist-es/commands/CreateStandbyWorkspacesCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +54 -20
- package/dist-es/protocols/Aws_json1_1.js +193 -14
- package/dist-types/WorkSpaces.d.ts +7 -0
- package/dist-types/WorkSpacesClient.d.ts +3 -2
- package/dist-types/commands/CreateStandbyWorkspacesCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +173 -18
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/WorkSpaces.d.ts +17 -0
- package/dist-types/ts3.4/WorkSpacesClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/CreateStandbyWorkspacesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +83 -18
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -2
- package/package.json +28 -28
package/dist-es/WorkSpaces.js
CHANGED
|
@@ -5,6 +5,7 @@ import { CopyWorkspaceImageCommand, } from "./commands/CopyWorkspaceImageCommand
|
|
|
5
5
|
import { CreateConnectClientAddInCommand, } from "./commands/CreateConnectClientAddInCommand";
|
|
6
6
|
import { CreateConnectionAliasCommand, } from "./commands/CreateConnectionAliasCommand";
|
|
7
7
|
import { CreateIpGroupCommand, } from "./commands/CreateIpGroupCommand";
|
|
8
|
+
import { CreateStandbyWorkspacesCommand, } from "./commands/CreateStandbyWorkspacesCommand";
|
|
8
9
|
import { CreateTagsCommand } from "./commands/CreateTagsCommand";
|
|
9
10
|
import { CreateUpdatedWorkspaceImageCommand, } from "./commands/CreateUpdatedWorkspaceImageCommand";
|
|
10
11
|
import { CreateWorkspaceBundleCommand, } from "./commands/CreateWorkspaceBundleCommand";
|
|
@@ -162,6 +163,20 @@ export class WorkSpaces extends WorkSpacesClient {
|
|
|
162
163
|
return this.send(command, optionsOrCb);
|
|
163
164
|
}
|
|
164
165
|
}
|
|
166
|
+
createStandbyWorkspaces(args, optionsOrCb, cb) {
|
|
167
|
+
const command = new CreateStandbyWorkspacesCommand(args);
|
|
168
|
+
if (typeof optionsOrCb === "function") {
|
|
169
|
+
this.send(command, optionsOrCb);
|
|
170
|
+
}
|
|
171
|
+
else if (typeof cb === "function") {
|
|
172
|
+
if (typeof optionsOrCb !== "object")
|
|
173
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
174
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
return this.send(command, optionsOrCb);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
165
180
|
createTags(args, optionsOrCb, cb) {
|
|
166
181
|
const command = new CreateTagsCommand(args);
|
|
167
182
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateStandbyWorkspacesRequestFilterSensitiveLog, CreateStandbyWorkspacesResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateStandbyWorkspacesCommand, serializeAws_json1_1CreateStandbyWorkspacesCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class CreateStandbyWorkspacesCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, CreateStandbyWorkspacesCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "WorkSpacesClient";
|
|
25
|
+
const commandName = "CreateStandbyWorkspacesCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: CreateStandbyWorkspacesRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: CreateStandbyWorkspacesResultFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1CreateStandbyWorkspacesCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1CreateStandbyWorkspacesCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./CopyWorkspaceImageCommand";
|
|
|
5
5
|
export * from "./CreateConnectClientAddInCommand";
|
|
6
6
|
export * from "./CreateConnectionAliasCommand";
|
|
7
7
|
export * from "./CreateIpGroupCommand";
|
|
8
|
+
export * from "./CreateStandbyWorkspacesCommand";
|
|
8
9
|
export * from "./CreateTagsCommand";
|
|
9
10
|
export * from "./CreateUpdatedWorkspaceImageCommand";
|
|
10
11
|
export * from "./CreateWorkspaceBundleCommand";
|
|
@@ -114,6 +114,11 @@ export var AssociationStatus;
|
|
|
114
114
|
AssociationStatus["PENDING_ASSOCIATION"] = "PENDING_ASSOCIATION";
|
|
115
115
|
AssociationStatus["PENDING_DISASSOCIATION"] = "PENDING_DISASSOCIATION";
|
|
116
116
|
})(AssociationStatus || (AssociationStatus = {}));
|
|
117
|
+
export var BundleType;
|
|
118
|
+
(function (BundleType) {
|
|
119
|
+
BundleType["REGULAR"] = "REGULAR";
|
|
120
|
+
BundleType["STANDBY"] = "STANDBY";
|
|
121
|
+
})(BundleType || (BundleType = {}));
|
|
117
122
|
export var Compute;
|
|
118
123
|
(function (Compute) {
|
|
119
124
|
Compute["GRAPHICS"] = "GRAPHICS";
|
|
@@ -126,6 +131,12 @@ export var Compute;
|
|
|
126
131
|
Compute["STANDARD"] = "STANDARD";
|
|
127
132
|
Compute["VALUE"] = "VALUE";
|
|
128
133
|
})(Compute || (Compute = {}));
|
|
134
|
+
export var WorkspaceBundleState;
|
|
135
|
+
(function (WorkspaceBundleState) {
|
|
136
|
+
WorkspaceBundleState["AVAILABLE"] = "AVAILABLE";
|
|
137
|
+
WorkspaceBundleState["ERROR"] = "ERROR";
|
|
138
|
+
WorkspaceBundleState["PENDING"] = "PENDING";
|
|
139
|
+
})(WorkspaceBundleState || (WorkspaceBundleState = {}));
|
|
129
140
|
export var CertificateBasedAuthStatusEnum;
|
|
130
141
|
(function (CertificateBasedAuthStatusEnum) {
|
|
131
142
|
CertificateBasedAuthStatusEnum["DISABLED"] = "DISABLED";
|
|
@@ -199,6 +210,26 @@ export class ResourceCreationFailedException extends __BaseException {
|
|
|
199
210
|
Object.setPrototypeOf(this, ResourceCreationFailedException.prototype);
|
|
200
211
|
}
|
|
201
212
|
}
|
|
213
|
+
export var WorkspaceState;
|
|
214
|
+
(function (WorkspaceState) {
|
|
215
|
+
WorkspaceState["ADMIN_MAINTENANCE"] = "ADMIN_MAINTENANCE";
|
|
216
|
+
WorkspaceState["AVAILABLE"] = "AVAILABLE";
|
|
217
|
+
WorkspaceState["ERROR"] = "ERROR";
|
|
218
|
+
WorkspaceState["IMPAIRED"] = "IMPAIRED";
|
|
219
|
+
WorkspaceState["MAINTENANCE"] = "MAINTENANCE";
|
|
220
|
+
WorkspaceState["PENDING"] = "PENDING";
|
|
221
|
+
WorkspaceState["REBOOTING"] = "REBOOTING";
|
|
222
|
+
WorkspaceState["REBUILDING"] = "REBUILDING";
|
|
223
|
+
WorkspaceState["RESTORING"] = "RESTORING";
|
|
224
|
+
WorkspaceState["STARTING"] = "STARTING";
|
|
225
|
+
WorkspaceState["STOPPED"] = "STOPPED";
|
|
226
|
+
WorkspaceState["STOPPING"] = "STOPPING";
|
|
227
|
+
WorkspaceState["SUSPENDED"] = "SUSPENDED";
|
|
228
|
+
WorkspaceState["TERMINATED"] = "TERMINATED";
|
|
229
|
+
WorkspaceState["TERMINATING"] = "TERMINATING";
|
|
230
|
+
WorkspaceState["UNHEALTHY"] = "UNHEALTHY";
|
|
231
|
+
WorkspaceState["UPDATING"] = "UPDATING";
|
|
232
|
+
})(WorkspaceState || (WorkspaceState = {}));
|
|
202
233
|
export var OperatingSystemType;
|
|
203
234
|
(function (OperatingSystemType) {
|
|
204
235
|
OperatingSystemType["LINUX"] = "LINUX";
|
|
@@ -237,26 +268,11 @@ export var ModificationStateEnum;
|
|
|
237
268
|
ModificationStateEnum["UPDATE_INITIATED"] = "UPDATE_INITIATED";
|
|
238
269
|
ModificationStateEnum["UPDATE_IN_PROGRESS"] = "UPDATE_IN_PROGRESS";
|
|
239
270
|
})(ModificationStateEnum || (ModificationStateEnum = {}));
|
|
240
|
-
export var
|
|
241
|
-
(function (
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
WorkspaceState["IMPAIRED"] = "IMPAIRED";
|
|
246
|
-
WorkspaceState["MAINTENANCE"] = "MAINTENANCE";
|
|
247
|
-
WorkspaceState["PENDING"] = "PENDING";
|
|
248
|
-
WorkspaceState["REBOOTING"] = "REBOOTING";
|
|
249
|
-
WorkspaceState["REBUILDING"] = "REBUILDING";
|
|
250
|
-
WorkspaceState["RESTORING"] = "RESTORING";
|
|
251
|
-
WorkspaceState["STARTING"] = "STARTING";
|
|
252
|
-
WorkspaceState["STOPPED"] = "STOPPED";
|
|
253
|
-
WorkspaceState["STOPPING"] = "STOPPING";
|
|
254
|
-
WorkspaceState["SUSPENDED"] = "SUSPENDED";
|
|
255
|
-
WorkspaceState["TERMINATED"] = "TERMINATED";
|
|
256
|
-
WorkspaceState["TERMINATING"] = "TERMINATING";
|
|
257
|
-
WorkspaceState["UNHEALTHY"] = "UNHEALTHY";
|
|
258
|
-
WorkspaceState["UPDATING"] = "UPDATING";
|
|
259
|
-
})(WorkspaceState || (WorkspaceState = {}));
|
|
271
|
+
export var StandbyWorkspaceRelationshipType;
|
|
272
|
+
(function (StandbyWorkspaceRelationshipType) {
|
|
273
|
+
StandbyWorkspaceRelationshipType["PRIMARY"] = "PRIMARY";
|
|
274
|
+
StandbyWorkspaceRelationshipType["STANDBY"] = "STANDBY";
|
|
275
|
+
})(StandbyWorkspaceRelationshipType || (StandbyWorkspaceRelationshipType = {}));
|
|
260
276
|
export var DedicatedTenancySupportEnum;
|
|
261
277
|
(function (DedicatedTenancySupportEnum) {
|
|
262
278
|
DedicatedTenancySupportEnum["ENABLED"] = "ENABLED";
|
|
@@ -446,6 +462,21 @@ export const CreateIpGroupRequestFilterSensitiveLog = (obj) => ({
|
|
|
446
462
|
export const CreateIpGroupResultFilterSensitiveLog = (obj) => ({
|
|
447
463
|
...obj,
|
|
448
464
|
});
|
|
465
|
+
export const StandbyWorkspaceFilterSensitiveLog = (obj) => ({
|
|
466
|
+
...obj,
|
|
467
|
+
});
|
|
468
|
+
export const CreateStandbyWorkspacesRequestFilterSensitiveLog = (obj) => ({
|
|
469
|
+
...obj,
|
|
470
|
+
});
|
|
471
|
+
export const FailedCreateStandbyWorkspacesRequestFilterSensitiveLog = (obj) => ({
|
|
472
|
+
...obj,
|
|
473
|
+
});
|
|
474
|
+
export const PendingCreateStandbyWorkspacesRequestFilterSensitiveLog = (obj) => ({
|
|
475
|
+
...obj,
|
|
476
|
+
});
|
|
477
|
+
export const CreateStandbyWorkspacesResultFilterSensitiveLog = (obj) => ({
|
|
478
|
+
...obj,
|
|
479
|
+
});
|
|
449
480
|
export const CreateTagsRequestFilterSensitiveLog = (obj) => ({
|
|
450
481
|
...obj,
|
|
451
482
|
});
|
|
@@ -488,6 +519,9 @@ export const FailedCreateWorkspaceRequestFilterSensitiveLog = (obj) => ({
|
|
|
488
519
|
export const ModificationStateFilterSensitiveLog = (obj) => ({
|
|
489
520
|
...obj,
|
|
490
521
|
});
|
|
522
|
+
export const RelatedWorkspacePropertiesFilterSensitiveLog = (obj) => ({
|
|
523
|
+
...obj,
|
|
524
|
+
});
|
|
491
525
|
export const WorkspaceFilterSensitiveLog = (obj) => ({
|
|
492
526
|
...obj,
|
|
493
527
|
});
|
|
@@ -65,6 +65,15 @@ export const serializeAws_json1_1CreateIpGroupCommand = async (input, context) =
|
|
|
65
65
|
body = JSON.stringify(serializeAws_json1_1CreateIpGroupRequest(input, context));
|
|
66
66
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
67
67
|
};
|
|
68
|
+
export const serializeAws_json1_1CreateStandbyWorkspacesCommand = async (input, context) => {
|
|
69
|
+
const headers = {
|
|
70
|
+
"content-type": "application/x-amz-json-1.1",
|
|
71
|
+
"x-amz-target": "WorkspacesService.CreateStandbyWorkspaces",
|
|
72
|
+
};
|
|
73
|
+
let body;
|
|
74
|
+
body = JSON.stringify(serializeAws_json1_1CreateStandbyWorkspacesRequest(input, context));
|
|
75
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
+
};
|
|
68
77
|
export const serializeAws_json1_1CreateTagsCommand = async (input, context) => {
|
|
69
78
|
const headers = {
|
|
70
79
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -908,6 +917,51 @@ const deserializeAws_json1_1CreateIpGroupCommandError = async (output, context)
|
|
|
908
917
|
});
|
|
909
918
|
}
|
|
910
919
|
};
|
|
920
|
+
export const deserializeAws_json1_1CreateStandbyWorkspacesCommand = async (output, context) => {
|
|
921
|
+
if (output.statusCode >= 300) {
|
|
922
|
+
return deserializeAws_json1_1CreateStandbyWorkspacesCommandError(output, context);
|
|
923
|
+
}
|
|
924
|
+
const data = await parseBody(output.body, context);
|
|
925
|
+
let contents = {};
|
|
926
|
+
contents = deserializeAws_json1_1CreateStandbyWorkspacesResult(data, context);
|
|
927
|
+
const response = {
|
|
928
|
+
$metadata: deserializeMetadata(output),
|
|
929
|
+
...contents,
|
|
930
|
+
};
|
|
931
|
+
return Promise.resolve(response);
|
|
932
|
+
};
|
|
933
|
+
const deserializeAws_json1_1CreateStandbyWorkspacesCommandError = async (output, context) => {
|
|
934
|
+
const parsedOutput = {
|
|
935
|
+
...output,
|
|
936
|
+
body: await parseErrorBody(output.body, context),
|
|
937
|
+
};
|
|
938
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
939
|
+
switch (errorCode) {
|
|
940
|
+
case "AccessDeniedException":
|
|
941
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
942
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
943
|
+
case "InvalidParameterValuesException":
|
|
944
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
945
|
+
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
946
|
+
case "OperationNotSupportedException":
|
|
947
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
948
|
+
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
949
|
+
case "ResourceLimitExceededException":
|
|
950
|
+
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
951
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
952
|
+
case "ResourceNotFoundException":
|
|
953
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
954
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
955
|
+
default:
|
|
956
|
+
const parsedBody = parsedOutput.body;
|
|
957
|
+
throwDefaultError({
|
|
958
|
+
output,
|
|
959
|
+
parsedBody,
|
|
960
|
+
exceptionCtor: __BaseException,
|
|
961
|
+
errorCode,
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
};
|
|
911
965
|
export const deserializeAws_json1_1CreateTagsCommand = async (output, context) => {
|
|
912
966
|
if (output.statusCode >= 300) {
|
|
913
967
|
return deserializeAws_json1_1CreateTagsCommandError(output, context);
|
|
@@ -2665,6 +2719,9 @@ const deserializeAws_json1_1ModifyWorkspaceStateCommandError = async (output, co
|
|
|
2665
2719
|
case "InvalidResourceStateException":
|
|
2666
2720
|
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
2667
2721
|
throw await deserializeAws_json1_1InvalidResourceStateExceptionResponse(parsedOutput, context);
|
|
2722
|
+
case "OperationNotSupportedException":
|
|
2723
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2724
|
+
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
2668
2725
|
case "ResourceNotFoundException":
|
|
2669
2726
|
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2670
2727
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -2697,13 +2754,19 @@ const deserializeAws_json1_1RebootWorkspacesCommandError = async (output, contex
|
|
|
2697
2754
|
body: await parseErrorBody(output.body, context),
|
|
2698
2755
|
};
|
|
2699
2756
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2757
|
+
switch (errorCode) {
|
|
2758
|
+
case "OperationNotSupportedException":
|
|
2759
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2760
|
+
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
2761
|
+
default:
|
|
2762
|
+
const parsedBody = parsedOutput.body;
|
|
2763
|
+
throwDefaultError({
|
|
2764
|
+
output,
|
|
2765
|
+
parsedBody,
|
|
2766
|
+
exceptionCtor: __BaseException,
|
|
2767
|
+
errorCode,
|
|
2768
|
+
});
|
|
2769
|
+
}
|
|
2707
2770
|
};
|
|
2708
2771
|
export const deserializeAws_json1_1RebuildWorkspacesCommand = async (output, context) => {
|
|
2709
2772
|
if (output.statusCode >= 300) {
|
|
@@ -2724,13 +2787,19 @@ const deserializeAws_json1_1RebuildWorkspacesCommandError = async (output, conte
|
|
|
2724
2787
|
body: await parseErrorBody(output.body, context),
|
|
2725
2788
|
};
|
|
2726
2789
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2790
|
+
switch (errorCode) {
|
|
2791
|
+
case "OperationNotSupportedException":
|
|
2792
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2793
|
+
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
2794
|
+
default:
|
|
2795
|
+
const parsedBody = parsedOutput.body;
|
|
2796
|
+
throwDefaultError({
|
|
2797
|
+
output,
|
|
2798
|
+
parsedBody,
|
|
2799
|
+
exceptionCtor: __BaseException,
|
|
2800
|
+
errorCode,
|
|
2801
|
+
});
|
|
2802
|
+
}
|
|
2734
2803
|
};
|
|
2735
2804
|
export const deserializeAws_json1_1RegisterWorkspaceDirectoryCommand = async (output, context) => {
|
|
2736
2805
|
if (output.statusCode >= 300) {
|
|
@@ -2812,6 +2881,9 @@ const deserializeAws_json1_1RestoreWorkspaceCommandError = async (output, contex
|
|
|
2812
2881
|
case "InvalidParameterValuesException":
|
|
2813
2882
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
2814
2883
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
2884
|
+
case "OperationNotSupportedException":
|
|
2885
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
2886
|
+
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
2815
2887
|
case "ResourceNotFoundException":
|
|
2816
2888
|
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
2817
2889
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -3109,6 +3181,9 @@ const deserializeAws_json1_1UpdateWorkspaceBundleCommandError = async (output, c
|
|
|
3109
3181
|
case "InvalidParameterValuesException":
|
|
3110
3182
|
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
3111
3183
|
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
3184
|
+
case "OperationNotSupportedException":
|
|
3185
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
3186
|
+
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
3112
3187
|
case "ResourceNotFoundException":
|
|
3113
3188
|
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
3114
3189
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
@@ -3395,6 +3470,14 @@ const serializeAws_json1_1CreateIpGroupRequest = (input, context) => {
|
|
|
3395
3470
|
...(input.UserRules != null && { UserRules: serializeAws_json1_1IpRuleList(input.UserRules, context) }),
|
|
3396
3471
|
};
|
|
3397
3472
|
};
|
|
3473
|
+
const serializeAws_json1_1CreateStandbyWorkspacesRequest = (input, context) => {
|
|
3474
|
+
return {
|
|
3475
|
+
...(input.PrimaryRegion != null && { PrimaryRegion: input.PrimaryRegion }),
|
|
3476
|
+
...(input.StandbyWorkspaces != null && {
|
|
3477
|
+
StandbyWorkspaces: serializeAws_json1_1StandbyWorkspacesList(input.StandbyWorkspaces, context),
|
|
3478
|
+
}),
|
|
3479
|
+
};
|
|
3480
|
+
};
|
|
3398
3481
|
const serializeAws_json1_1CreateTagsRequest = (input, context) => {
|
|
3399
3482
|
return {
|
|
3400
3483
|
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
@@ -3894,6 +3977,21 @@ const serializeAws_json1_1SelfservicePermissions = (input, context) => {
|
|
|
3894
3977
|
...(input.SwitchRunningMode != null && { SwitchRunningMode: input.SwitchRunningMode }),
|
|
3895
3978
|
};
|
|
3896
3979
|
};
|
|
3980
|
+
const serializeAws_json1_1StandbyWorkspace = (input, context) => {
|
|
3981
|
+
return {
|
|
3982
|
+
...(input.DirectoryId != null && { DirectoryId: input.DirectoryId }),
|
|
3983
|
+
...(input.PrimaryWorkspaceId != null && { PrimaryWorkspaceId: input.PrimaryWorkspaceId }),
|
|
3984
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3985
|
+
...(input.VolumeEncryptionKey != null && { VolumeEncryptionKey: input.VolumeEncryptionKey }),
|
|
3986
|
+
};
|
|
3987
|
+
};
|
|
3988
|
+
const serializeAws_json1_1StandbyWorkspacesList = (input, context) => {
|
|
3989
|
+
return input
|
|
3990
|
+
.filter((e) => e != null)
|
|
3991
|
+
.map((entry) => {
|
|
3992
|
+
return serializeAws_json1_1StandbyWorkspace(entry, context);
|
|
3993
|
+
});
|
|
3994
|
+
};
|
|
3897
3995
|
const serializeAws_json1_1StartRequest = (input, context) => {
|
|
3898
3996
|
return {
|
|
3899
3997
|
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
@@ -4274,6 +4372,16 @@ const deserializeAws_json1_1CreateIpGroupResult = (output, context) => {
|
|
|
4274
4372
|
GroupId: __expectString(output.GroupId),
|
|
4275
4373
|
};
|
|
4276
4374
|
};
|
|
4375
|
+
const deserializeAws_json1_1CreateStandbyWorkspacesResult = (output, context) => {
|
|
4376
|
+
return {
|
|
4377
|
+
FailedStandbyRequests: output.FailedStandbyRequests != null
|
|
4378
|
+
? deserializeAws_json1_1FailedCreateStandbyWorkspacesRequestList(output.FailedStandbyRequests, context)
|
|
4379
|
+
: undefined,
|
|
4380
|
+
PendingStandbyRequests: output.PendingStandbyRequests != null
|
|
4381
|
+
? deserializeAws_json1_1PendingCreateStandbyWorkspacesRequestList(output.PendingStandbyRequests, context)
|
|
4382
|
+
: undefined,
|
|
4383
|
+
};
|
|
4384
|
+
};
|
|
4277
4385
|
const deserializeAws_json1_1CreateTagsResult = (output, context) => {
|
|
4278
4386
|
return {};
|
|
4279
4387
|
};
|
|
@@ -4521,6 +4629,26 @@ const deserializeAws_json1_1DnsIpAddresses = (output, context) => {
|
|
|
4521
4629
|
});
|
|
4522
4630
|
return retVal;
|
|
4523
4631
|
};
|
|
4632
|
+
const deserializeAws_json1_1FailedCreateStandbyWorkspacesRequest = (output, context) => {
|
|
4633
|
+
return {
|
|
4634
|
+
ErrorCode: __expectString(output.ErrorCode),
|
|
4635
|
+
ErrorMessage: __expectString(output.ErrorMessage),
|
|
4636
|
+
StandbyWorkspaceRequest: output.StandbyWorkspaceRequest != null
|
|
4637
|
+
? deserializeAws_json1_1StandbyWorkspace(output.StandbyWorkspaceRequest, context)
|
|
4638
|
+
: undefined,
|
|
4639
|
+
};
|
|
4640
|
+
};
|
|
4641
|
+
const deserializeAws_json1_1FailedCreateStandbyWorkspacesRequestList = (output, context) => {
|
|
4642
|
+
const retVal = (output || [])
|
|
4643
|
+
.filter((e) => e != null)
|
|
4644
|
+
.map((entry) => {
|
|
4645
|
+
if (entry === null) {
|
|
4646
|
+
return null;
|
|
4647
|
+
}
|
|
4648
|
+
return deserializeAws_json1_1FailedCreateStandbyWorkspacesRequest(entry, context);
|
|
4649
|
+
});
|
|
4650
|
+
return retVal;
|
|
4651
|
+
};
|
|
4524
4652
|
const deserializeAws_json1_1FailedCreateWorkspaceRequest = (output, context) => {
|
|
4525
4653
|
return {
|
|
4526
4654
|
ErrorCode: __expectString(output.ErrorCode),
|
|
@@ -4778,6 +4906,25 @@ const deserializeAws_json1_1OperationNotSupportedException = (output, context) =
|
|
|
4778
4906
|
reason: __expectString(output.reason),
|
|
4779
4907
|
};
|
|
4780
4908
|
};
|
|
4909
|
+
const deserializeAws_json1_1PendingCreateStandbyWorkspacesRequest = (output, context) => {
|
|
4910
|
+
return {
|
|
4911
|
+
DirectoryId: __expectString(output.DirectoryId),
|
|
4912
|
+
State: __expectString(output.State),
|
|
4913
|
+
UserName: __expectString(output.UserName),
|
|
4914
|
+
WorkspaceId: __expectString(output.WorkspaceId),
|
|
4915
|
+
};
|
|
4916
|
+
};
|
|
4917
|
+
const deserializeAws_json1_1PendingCreateStandbyWorkspacesRequestList = (output, context) => {
|
|
4918
|
+
const retVal = (output || [])
|
|
4919
|
+
.filter((e) => e != null)
|
|
4920
|
+
.map((entry) => {
|
|
4921
|
+
if (entry === null) {
|
|
4922
|
+
return null;
|
|
4923
|
+
}
|
|
4924
|
+
return deserializeAws_json1_1PendingCreateStandbyWorkspacesRequest(entry, context);
|
|
4925
|
+
});
|
|
4926
|
+
return retVal;
|
|
4927
|
+
};
|
|
4781
4928
|
const deserializeAws_json1_1ProtocolList = (output, context) => {
|
|
4782
4929
|
const retVal = (output || [])
|
|
4783
4930
|
.filter((e) => e != null)
|
|
@@ -4806,6 +4953,25 @@ const deserializeAws_json1_1RebuildWorkspacesResult = (output, context) => {
|
|
|
4806
4953
|
const deserializeAws_json1_1RegisterWorkspaceDirectoryResult = (output, context) => {
|
|
4807
4954
|
return {};
|
|
4808
4955
|
};
|
|
4956
|
+
const deserializeAws_json1_1RelatedWorkspaceProperties = (output, context) => {
|
|
4957
|
+
return {
|
|
4958
|
+
Region: __expectString(output.Region),
|
|
4959
|
+
State: __expectString(output.State),
|
|
4960
|
+
Type: __expectString(output.Type),
|
|
4961
|
+
WorkspaceId: __expectString(output.WorkspaceId),
|
|
4962
|
+
};
|
|
4963
|
+
};
|
|
4964
|
+
const deserializeAws_json1_1RelatedWorkspaces = (output, context) => {
|
|
4965
|
+
const retVal = (output || [])
|
|
4966
|
+
.filter((e) => e != null)
|
|
4967
|
+
.map((entry) => {
|
|
4968
|
+
if (entry === null) {
|
|
4969
|
+
return null;
|
|
4970
|
+
}
|
|
4971
|
+
return deserializeAws_json1_1RelatedWorkspaceProperties(entry, context);
|
|
4972
|
+
});
|
|
4973
|
+
return retVal;
|
|
4974
|
+
};
|
|
4809
4975
|
const deserializeAws_json1_1ResourceAlreadyExistsException = (output, context) => {
|
|
4810
4976
|
return {
|
|
4811
4977
|
message: __expectString(output.message),
|
|
@@ -4883,6 +5049,14 @@ const deserializeAws_json1_1SnapshotList = (output, context) => {
|
|
|
4883
5049
|
});
|
|
4884
5050
|
return retVal;
|
|
4885
5051
|
};
|
|
5052
|
+
const deserializeAws_json1_1StandbyWorkspace = (output, context) => {
|
|
5053
|
+
return {
|
|
5054
|
+
DirectoryId: __expectString(output.DirectoryId),
|
|
5055
|
+
PrimaryWorkspaceId: __expectString(output.PrimaryWorkspaceId),
|
|
5056
|
+
Tags: output.Tags != null ? deserializeAws_json1_1TagList(output.Tags, context) : undefined,
|
|
5057
|
+
VolumeEncryptionKey: __expectString(output.VolumeEncryptionKey),
|
|
5058
|
+
};
|
|
5059
|
+
};
|
|
4886
5060
|
const deserializeAws_json1_1StartWorkspacesResult = (output, context) => {
|
|
4887
5061
|
return {
|
|
4888
5062
|
FailedRequests: output.FailedRequests != null
|
|
@@ -4979,6 +5153,9 @@ const deserializeAws_json1_1Workspace = (output, context) => {
|
|
|
4979
5153
|
ModificationStates: output.ModificationStates != null
|
|
4980
5154
|
? deserializeAws_json1_1ModificationStateList(output.ModificationStates, context)
|
|
4981
5155
|
: undefined,
|
|
5156
|
+
RelatedWorkspaces: output.RelatedWorkspaces != null
|
|
5157
|
+
? deserializeAws_json1_1RelatedWorkspaces(output.RelatedWorkspaces, context)
|
|
5158
|
+
: undefined,
|
|
4982
5159
|
RootVolumeEncryptionEnabled: __expectBoolean(output.RootVolumeEncryptionEnabled),
|
|
4983
5160
|
State: __expectString(output.State),
|
|
4984
5161
|
SubnetId: __expectString(output.SubnetId),
|
|
@@ -5006,6 +5183,7 @@ const deserializeAws_json1_1WorkspaceAccessProperties = (output, context) => {
|
|
|
5006
5183
|
const deserializeAws_json1_1WorkspaceBundle = (output, context) => {
|
|
5007
5184
|
return {
|
|
5008
5185
|
BundleId: __expectString(output.BundleId),
|
|
5186
|
+
BundleType: __expectString(output.BundleType),
|
|
5009
5187
|
ComputeType: output.ComputeType != null ? deserializeAws_json1_1ComputeType(output.ComputeType, context) : undefined,
|
|
5010
5188
|
CreationTime: output.CreationTime != null
|
|
5011
5189
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
@@ -5018,6 +5196,7 @@ const deserializeAws_json1_1WorkspaceBundle = (output, context) => {
|
|
|
5018
5196
|
Name: __expectString(output.Name),
|
|
5019
5197
|
Owner: __expectString(output.Owner),
|
|
5020
5198
|
RootStorage: output.RootStorage != null ? deserializeAws_json1_1RootStorage(output.RootStorage, context) : undefined,
|
|
5199
|
+
State: __expectString(output.State),
|
|
5021
5200
|
UserStorage: output.UserStorage != null ? deserializeAws_json1_1UserStorage(output.UserStorage, context) : undefined,
|
|
5022
5201
|
};
|
|
5023
5202
|
};
|
|
@@ -6,6 +6,7 @@ import { CopyWorkspaceImageCommandInput, CopyWorkspaceImageCommandOutput } from
|
|
|
6
6
|
import { CreateConnectClientAddInCommandInput, CreateConnectClientAddInCommandOutput } from "./commands/CreateConnectClientAddInCommand";
|
|
7
7
|
import { CreateConnectionAliasCommandInput, CreateConnectionAliasCommandOutput } from "./commands/CreateConnectionAliasCommand";
|
|
8
8
|
import { CreateIpGroupCommandInput, CreateIpGroupCommandOutput } from "./commands/CreateIpGroupCommand";
|
|
9
|
+
import { CreateStandbyWorkspacesCommandInput, CreateStandbyWorkspacesCommandOutput } from "./commands/CreateStandbyWorkspacesCommand";
|
|
9
10
|
import { CreateTagsCommandInput, CreateTagsCommandOutput } from "./commands/CreateTagsCommand";
|
|
10
11
|
import { CreateUpdatedWorkspaceImageCommandInput, CreateUpdatedWorkspaceImageCommandOutput } from "./commands/CreateUpdatedWorkspaceImageCommand";
|
|
11
12
|
import { CreateWorkspaceBundleCommandInput, CreateWorkspaceBundleCommandOutput } from "./commands/CreateWorkspaceBundleCommand";
|
|
@@ -156,6 +157,12 @@ export declare class WorkSpaces extends WorkSpacesClient {
|
|
|
156
157
|
createIpGroup(args: CreateIpGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateIpGroupCommandOutput>;
|
|
157
158
|
createIpGroup(args: CreateIpGroupCommandInput, cb: (err: any, data?: CreateIpGroupCommandOutput) => void): void;
|
|
158
159
|
createIpGroup(args: CreateIpGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateIpGroupCommandOutput) => void): void;
|
|
160
|
+
/**
|
|
161
|
+
* <p>Creates a Standby WorkSpace in a secondary region.</p>
|
|
162
|
+
*/
|
|
163
|
+
createStandbyWorkspaces(args: CreateStandbyWorkspacesCommandInput, options?: __HttpHandlerOptions): Promise<CreateStandbyWorkspacesCommandOutput>;
|
|
164
|
+
createStandbyWorkspaces(args: CreateStandbyWorkspacesCommandInput, cb: (err: any, data?: CreateStandbyWorkspacesCommandOutput) => void): void;
|
|
165
|
+
createStandbyWorkspaces(args: CreateStandbyWorkspacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateStandbyWorkspacesCommandOutput) => void): void;
|
|
159
166
|
/**
|
|
160
167
|
* <p>Creates the specified tags for the specified WorkSpaces resource.</p>
|
|
161
168
|
*/
|
|
@@ -14,6 +14,7 @@ import { CopyWorkspaceImageCommandInput, CopyWorkspaceImageCommandOutput } from
|
|
|
14
14
|
import { CreateConnectClientAddInCommandInput, CreateConnectClientAddInCommandOutput } from "./commands/CreateConnectClientAddInCommand";
|
|
15
15
|
import { CreateConnectionAliasCommandInput, CreateConnectionAliasCommandOutput } from "./commands/CreateConnectionAliasCommand";
|
|
16
16
|
import { CreateIpGroupCommandInput, CreateIpGroupCommandOutput } from "./commands/CreateIpGroupCommand";
|
|
17
|
+
import { CreateStandbyWorkspacesCommandInput, CreateStandbyWorkspacesCommandOutput } from "./commands/CreateStandbyWorkspacesCommand";
|
|
17
18
|
import { CreateTagsCommandInput, CreateTagsCommandOutput } from "./commands/CreateTagsCommand";
|
|
18
19
|
import { CreateUpdatedWorkspaceImageCommandInput, CreateUpdatedWorkspaceImageCommandOutput } from "./commands/CreateUpdatedWorkspaceImageCommand";
|
|
19
20
|
import { CreateWorkspaceBundleCommandInput, CreateWorkspaceBundleCommandOutput } from "./commands/CreateWorkspaceBundleCommand";
|
|
@@ -72,8 +73,8 @@ import { UpdateRulesOfIpGroupCommandInput, UpdateRulesOfIpGroupCommandOutput } f
|
|
|
72
73
|
import { UpdateWorkspaceBundleCommandInput, UpdateWorkspaceBundleCommandOutput } from "./commands/UpdateWorkspaceBundleCommand";
|
|
73
74
|
import { UpdateWorkspaceImagePermissionCommandInput, UpdateWorkspaceImagePermissionCommandOutput } from "./commands/UpdateWorkspaceImagePermissionCommand";
|
|
74
75
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
75
|
-
export declare type ServiceInputTypes = AssociateConnectionAliasCommandInput | AssociateIpGroupsCommandInput | AuthorizeIpRulesCommandInput | CopyWorkspaceImageCommandInput | CreateConnectClientAddInCommandInput | CreateConnectionAliasCommandInput | CreateIpGroupCommandInput | CreateTagsCommandInput | CreateUpdatedWorkspaceImageCommandInput | CreateWorkspaceBundleCommandInput | CreateWorkspaceImageCommandInput | CreateWorkspacesCommandInput | DeleteClientBrandingCommandInput | DeleteConnectClientAddInCommandInput | DeleteConnectionAliasCommandInput | DeleteIpGroupCommandInput | DeleteTagsCommandInput | DeleteWorkspaceBundleCommandInput | DeleteWorkspaceImageCommandInput | DeregisterWorkspaceDirectoryCommandInput | DescribeAccountCommandInput | DescribeAccountModificationsCommandInput | DescribeClientBrandingCommandInput | DescribeClientPropertiesCommandInput | DescribeConnectClientAddInsCommandInput | DescribeConnectionAliasPermissionsCommandInput | DescribeConnectionAliasesCommandInput | DescribeIpGroupsCommandInput | DescribeTagsCommandInput | DescribeWorkspaceBundlesCommandInput | DescribeWorkspaceDirectoriesCommandInput | DescribeWorkspaceImagePermissionsCommandInput | DescribeWorkspaceImagesCommandInput | DescribeWorkspaceSnapshotsCommandInput | DescribeWorkspacesCommandInput | DescribeWorkspacesConnectionStatusCommandInput | DisassociateConnectionAliasCommandInput | DisassociateIpGroupsCommandInput | ImportClientBrandingCommandInput | ImportWorkspaceImageCommandInput | ListAvailableManagementCidrRangesCommandInput | MigrateWorkspaceCommandInput | ModifyAccountCommandInput | ModifyCertificateBasedAuthPropertiesCommandInput | ModifyClientPropertiesCommandInput | ModifySamlPropertiesCommandInput | ModifySelfservicePermissionsCommandInput | ModifyWorkspaceAccessPropertiesCommandInput | ModifyWorkspaceCreationPropertiesCommandInput | ModifyWorkspacePropertiesCommandInput | ModifyWorkspaceStateCommandInput | RebootWorkspacesCommandInput | RebuildWorkspacesCommandInput | RegisterWorkspaceDirectoryCommandInput | RestoreWorkspaceCommandInput | RevokeIpRulesCommandInput | StartWorkspacesCommandInput | StopWorkspacesCommandInput | TerminateWorkspacesCommandInput | UpdateConnectClientAddInCommandInput | UpdateConnectionAliasPermissionCommandInput | UpdateRulesOfIpGroupCommandInput | UpdateWorkspaceBundleCommandInput | UpdateWorkspaceImagePermissionCommandInput;
|
|
76
|
-
export declare type ServiceOutputTypes = AssociateConnectionAliasCommandOutput | AssociateIpGroupsCommandOutput | AuthorizeIpRulesCommandOutput | CopyWorkspaceImageCommandOutput | CreateConnectClientAddInCommandOutput | CreateConnectionAliasCommandOutput | CreateIpGroupCommandOutput | CreateTagsCommandOutput | CreateUpdatedWorkspaceImageCommandOutput | CreateWorkspaceBundleCommandOutput | CreateWorkspaceImageCommandOutput | CreateWorkspacesCommandOutput | DeleteClientBrandingCommandOutput | DeleteConnectClientAddInCommandOutput | DeleteConnectionAliasCommandOutput | DeleteIpGroupCommandOutput | DeleteTagsCommandOutput | DeleteWorkspaceBundleCommandOutput | DeleteWorkspaceImageCommandOutput | DeregisterWorkspaceDirectoryCommandOutput | DescribeAccountCommandOutput | DescribeAccountModificationsCommandOutput | DescribeClientBrandingCommandOutput | DescribeClientPropertiesCommandOutput | DescribeConnectClientAddInsCommandOutput | DescribeConnectionAliasPermissionsCommandOutput | DescribeConnectionAliasesCommandOutput | DescribeIpGroupsCommandOutput | DescribeTagsCommandOutput | DescribeWorkspaceBundlesCommandOutput | DescribeWorkspaceDirectoriesCommandOutput | DescribeWorkspaceImagePermissionsCommandOutput | DescribeWorkspaceImagesCommandOutput | DescribeWorkspaceSnapshotsCommandOutput | DescribeWorkspacesCommandOutput | DescribeWorkspacesConnectionStatusCommandOutput | DisassociateConnectionAliasCommandOutput | DisassociateIpGroupsCommandOutput | ImportClientBrandingCommandOutput | ImportWorkspaceImageCommandOutput | ListAvailableManagementCidrRangesCommandOutput | MigrateWorkspaceCommandOutput | ModifyAccountCommandOutput | ModifyCertificateBasedAuthPropertiesCommandOutput | ModifyClientPropertiesCommandOutput | ModifySamlPropertiesCommandOutput | ModifySelfservicePermissionsCommandOutput | ModifyWorkspaceAccessPropertiesCommandOutput | ModifyWorkspaceCreationPropertiesCommandOutput | ModifyWorkspacePropertiesCommandOutput | ModifyWorkspaceStateCommandOutput | RebootWorkspacesCommandOutput | RebuildWorkspacesCommandOutput | RegisterWorkspaceDirectoryCommandOutput | RestoreWorkspaceCommandOutput | RevokeIpRulesCommandOutput | StartWorkspacesCommandOutput | StopWorkspacesCommandOutput | TerminateWorkspacesCommandOutput | UpdateConnectClientAddInCommandOutput | UpdateConnectionAliasPermissionCommandOutput | UpdateRulesOfIpGroupCommandOutput | UpdateWorkspaceBundleCommandOutput | UpdateWorkspaceImagePermissionCommandOutput;
|
|
76
|
+
export declare type ServiceInputTypes = AssociateConnectionAliasCommandInput | AssociateIpGroupsCommandInput | AuthorizeIpRulesCommandInput | CopyWorkspaceImageCommandInput | CreateConnectClientAddInCommandInput | CreateConnectionAliasCommandInput | CreateIpGroupCommandInput | CreateStandbyWorkspacesCommandInput | CreateTagsCommandInput | CreateUpdatedWorkspaceImageCommandInput | CreateWorkspaceBundleCommandInput | CreateWorkspaceImageCommandInput | CreateWorkspacesCommandInput | DeleteClientBrandingCommandInput | DeleteConnectClientAddInCommandInput | DeleteConnectionAliasCommandInput | DeleteIpGroupCommandInput | DeleteTagsCommandInput | DeleteWorkspaceBundleCommandInput | DeleteWorkspaceImageCommandInput | DeregisterWorkspaceDirectoryCommandInput | DescribeAccountCommandInput | DescribeAccountModificationsCommandInput | DescribeClientBrandingCommandInput | DescribeClientPropertiesCommandInput | DescribeConnectClientAddInsCommandInput | DescribeConnectionAliasPermissionsCommandInput | DescribeConnectionAliasesCommandInput | DescribeIpGroupsCommandInput | DescribeTagsCommandInput | DescribeWorkspaceBundlesCommandInput | DescribeWorkspaceDirectoriesCommandInput | DescribeWorkspaceImagePermissionsCommandInput | DescribeWorkspaceImagesCommandInput | DescribeWorkspaceSnapshotsCommandInput | DescribeWorkspacesCommandInput | DescribeWorkspacesConnectionStatusCommandInput | DisassociateConnectionAliasCommandInput | DisassociateIpGroupsCommandInput | ImportClientBrandingCommandInput | ImportWorkspaceImageCommandInput | ListAvailableManagementCidrRangesCommandInput | MigrateWorkspaceCommandInput | ModifyAccountCommandInput | ModifyCertificateBasedAuthPropertiesCommandInput | ModifyClientPropertiesCommandInput | ModifySamlPropertiesCommandInput | ModifySelfservicePermissionsCommandInput | ModifyWorkspaceAccessPropertiesCommandInput | ModifyWorkspaceCreationPropertiesCommandInput | ModifyWorkspacePropertiesCommandInput | ModifyWorkspaceStateCommandInput | RebootWorkspacesCommandInput | RebuildWorkspacesCommandInput | RegisterWorkspaceDirectoryCommandInput | RestoreWorkspaceCommandInput | RevokeIpRulesCommandInput | StartWorkspacesCommandInput | StopWorkspacesCommandInput | TerminateWorkspacesCommandInput | UpdateConnectClientAddInCommandInput | UpdateConnectionAliasPermissionCommandInput | UpdateRulesOfIpGroupCommandInput | UpdateWorkspaceBundleCommandInput | UpdateWorkspaceImagePermissionCommandInput;
|
|
77
|
+
export declare type ServiceOutputTypes = AssociateConnectionAliasCommandOutput | AssociateIpGroupsCommandOutput | AuthorizeIpRulesCommandOutput | CopyWorkspaceImageCommandOutput | CreateConnectClientAddInCommandOutput | CreateConnectionAliasCommandOutput | CreateIpGroupCommandOutput | CreateStandbyWorkspacesCommandOutput | CreateTagsCommandOutput | CreateUpdatedWorkspaceImageCommandOutput | CreateWorkspaceBundleCommandOutput | CreateWorkspaceImageCommandOutput | CreateWorkspacesCommandOutput | DeleteClientBrandingCommandOutput | DeleteConnectClientAddInCommandOutput | DeleteConnectionAliasCommandOutput | DeleteIpGroupCommandOutput | DeleteTagsCommandOutput | DeleteWorkspaceBundleCommandOutput | DeleteWorkspaceImageCommandOutput | DeregisterWorkspaceDirectoryCommandOutput | DescribeAccountCommandOutput | DescribeAccountModificationsCommandOutput | DescribeClientBrandingCommandOutput | DescribeClientPropertiesCommandOutput | DescribeConnectClientAddInsCommandOutput | DescribeConnectionAliasPermissionsCommandOutput | DescribeConnectionAliasesCommandOutput | DescribeIpGroupsCommandOutput | DescribeTagsCommandOutput | DescribeWorkspaceBundlesCommandOutput | DescribeWorkspaceDirectoriesCommandOutput | DescribeWorkspaceImagePermissionsCommandOutput | DescribeWorkspaceImagesCommandOutput | DescribeWorkspaceSnapshotsCommandOutput | DescribeWorkspacesCommandOutput | DescribeWorkspacesConnectionStatusCommandOutput | DisassociateConnectionAliasCommandOutput | DisassociateIpGroupsCommandOutput | ImportClientBrandingCommandOutput | ImportWorkspaceImageCommandOutput | ListAvailableManagementCidrRangesCommandOutput | MigrateWorkspaceCommandOutput | ModifyAccountCommandOutput | ModifyCertificateBasedAuthPropertiesCommandOutput | ModifyClientPropertiesCommandOutput | ModifySamlPropertiesCommandOutput | ModifySelfservicePermissionsCommandOutput | ModifyWorkspaceAccessPropertiesCommandOutput | ModifyWorkspaceCreationPropertiesCommandOutput | ModifyWorkspacePropertiesCommandOutput | ModifyWorkspaceStateCommandOutput | RebootWorkspacesCommandOutput | RebuildWorkspacesCommandOutput | RegisterWorkspaceDirectoryCommandOutput | RestoreWorkspaceCommandOutput | RevokeIpRulesCommandOutput | StartWorkspacesCommandOutput | StopWorkspacesCommandOutput | TerminateWorkspacesCommandOutput | UpdateConnectClientAddInCommandOutput | UpdateConnectionAliasPermissionCommandOutput | UpdateRulesOfIpGroupCommandOutput | UpdateWorkspaceBundleCommandOutput | UpdateWorkspaceImagePermissionCommandOutput;
|
|
77
78
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
78
79
|
/**
|
|
79
80
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { CreateStandbyWorkspacesRequest, CreateStandbyWorkspacesResult } from "../models/models_0";
|
|
5
|
+
import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesClientResolvedConfig } from "../WorkSpacesClient";
|
|
6
|
+
export interface CreateStandbyWorkspacesCommandInput extends CreateStandbyWorkspacesRequest {
|
|
7
|
+
}
|
|
8
|
+
export interface CreateStandbyWorkspacesCommandOutput extends CreateStandbyWorkspacesResult, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Creates a Standby WorkSpace in a secondary region.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { WorkSpacesClient, CreateStandbyWorkspacesCommand } from "@aws-sdk/client-workspaces"; // ES Modules import
|
|
16
|
+
* // const { WorkSpacesClient, CreateStandbyWorkspacesCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import
|
|
17
|
+
* const client = new WorkSpacesClient(config);
|
|
18
|
+
* const command = new CreateStandbyWorkspacesCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link CreateStandbyWorkspacesCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link CreateStandbyWorkspacesCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link WorkSpacesClientResolvedConfig | config} for WorkSpacesClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class CreateStandbyWorkspacesCommand extends $Command<CreateStandbyWorkspacesCommandInput, CreateStandbyWorkspacesCommandOutput, WorkSpacesClientResolvedConfig> {
|
|
28
|
+
readonly input: CreateStandbyWorkspacesCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: CreateStandbyWorkspacesCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateStandbyWorkspacesCommandInput, CreateStandbyWorkspacesCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./CopyWorkspaceImageCommand";
|
|
|
5
5
|
export * from "./CreateConnectClientAddInCommand";
|
|
6
6
|
export * from "./CreateConnectionAliasCommand";
|
|
7
7
|
export * from "./CreateIpGroupCommand";
|
|
8
|
+
export * from "./CreateStandbyWorkspacesCommand";
|
|
8
9
|
export * from "./CreateTagsCommand";
|
|
9
10
|
export * from "./CreateUpdatedWorkspaceImageCommand";
|
|
10
11
|
export * from "./CreateWorkspaceBundleCommand";
|