@aws-sdk/client-workspaces 3.137.0 → 3.138.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/CHANGELOG.md +11 -0
- package/dist-cjs/WorkSpaces.js +15 -0
- package/dist-cjs/commands/CreateWorkspaceImageCommand.js +36 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +33 -24
- package/dist-cjs/protocols/Aws_json1_1.js +90 -3
- package/dist-es/WorkSpaces.js +15 -0
- package/dist-es/commands/CreateWorkspaceImageCommand.js +39 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +19 -17
- package/dist-es/protocols/Aws_json1_1.js +103 -0
- package/dist-types/WorkSpaces.d.ts +7 -0
- package/dist-types/WorkSpacesClient.d.ts +3 -2
- package/dist-types/commands/CreateWorkspaceImageCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +105 -36
- package/dist-types/protocols/Aws_json1_1.d.ts +3 -0
- package/dist-types/ts3.4/WorkSpaces.d.ts +5 -0
- package/dist-types/ts3.4/WorkSpacesClient.d.ts +3 -2
- package/dist-types/ts3.4/commands/CreateWorkspaceImageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +52 -20
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.138.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.137.0...v3.138.0) (2022-07-27)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-workspaces:** Added CreateWorkspaceImage API to create a new WorkSpace image from an existing WorkSpace. ([6f03fb8](https://github.com/aws/aws-sdk-js-v3/commit/6f03fb882a494bfaecb228ba23589363c3694db8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.137.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.136.1...v3.137.0) (2022-07-26)
|
|
7
18
|
|
|
8
19
|
|
package/dist-cjs/WorkSpaces.js
CHANGED
|
@@ -11,6 +11,7 @@ const CreateIpGroupCommand_1 = require("./commands/CreateIpGroupCommand");
|
|
|
11
11
|
const CreateTagsCommand_1 = require("./commands/CreateTagsCommand");
|
|
12
12
|
const CreateUpdatedWorkspaceImageCommand_1 = require("./commands/CreateUpdatedWorkspaceImageCommand");
|
|
13
13
|
const CreateWorkspaceBundleCommand_1 = require("./commands/CreateWorkspaceBundleCommand");
|
|
14
|
+
const CreateWorkspaceImageCommand_1 = require("./commands/CreateWorkspaceImageCommand");
|
|
14
15
|
const CreateWorkspacesCommand_1 = require("./commands/CreateWorkspacesCommand");
|
|
15
16
|
const DeleteClientBrandingCommand_1 = require("./commands/DeleteClientBrandingCommand");
|
|
16
17
|
const DeleteConnectClientAddInCommand_1 = require("./commands/DeleteConnectClientAddInCommand");
|
|
@@ -204,6 +205,20 @@ class WorkSpaces extends WorkSpacesClient_1.WorkSpacesClient {
|
|
|
204
205
|
return this.send(command, optionsOrCb);
|
|
205
206
|
}
|
|
206
207
|
}
|
|
208
|
+
createWorkspaceImage(args, optionsOrCb, cb) {
|
|
209
|
+
const command = new CreateWorkspaceImageCommand_1.CreateWorkspaceImageCommand(args);
|
|
210
|
+
if (typeof optionsOrCb === "function") {
|
|
211
|
+
this.send(command, optionsOrCb);
|
|
212
|
+
}
|
|
213
|
+
else if (typeof cb === "function") {
|
|
214
|
+
if (typeof optionsOrCb !== "object")
|
|
215
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
216
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
217
|
+
}
|
|
218
|
+
else {
|
|
219
|
+
return this.send(command, optionsOrCb);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
207
222
|
createWorkspaces(args, optionsOrCb, cb) {
|
|
208
223
|
const command = new CreateWorkspacesCommand_1.CreateWorkspacesCommand(args);
|
|
209
224
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWorkspaceImageCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class CreateWorkspaceImageCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "WorkSpacesClient";
|
|
18
|
+
const commandName = "CreateWorkspaceImageCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateWorkspaceImageRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateWorkspaceImageResultFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_json1_1_1.serializeAws_json1_1CreateWorkspaceImageCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_json1_1_1.deserializeAws_json1_1CreateWorkspaceImageCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateWorkspaceImageCommand = CreateWorkspaceImageCommand;
|
|
@@ -11,6 +11,7 @@ tslib_1.__exportStar(require("./CreateIpGroupCommand"), exports);
|
|
|
11
11
|
tslib_1.__exportStar(require("./CreateTagsCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./CreateUpdatedWorkspaceImageCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./CreateWorkspaceBundleCommand"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./CreateWorkspaceImageCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./CreateWorkspacesCommand"), exports);
|
|
15
16
|
tslib_1.__exportStar(require("./DeleteClientBrandingCommand"), exports);
|
|
16
17
|
tslib_1.__exportStar(require("./DeleteConnectClientAddInCommand"), exports);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkspaceBundleFilterSensitiveLog = exports.UserStorageFilterSensitiveLog = exports.RootStorageFilterSensitiveLog = exports.ComputeTypeFilterSensitiveLog = exports.AuthorizeIpRulesResultFilterSensitiveLog = exports.AuthorizeIpRulesRequestFilterSensitiveLog = exports.IpRuleItemFilterSensitiveLog = exports.AssociateIpGroupsResultFilterSensitiveLog = exports.AssociateIpGroupsRequestFilterSensitiveLog = exports.AssociateConnectionAliasResultFilterSensitiveLog = exports.AssociateConnectionAliasRequestFilterSensitiveLog = exports.AccountModificationFilterSensitiveLog = exports.WorkspacesDefaultRoleNotFoundException = exports.UnsupportedNetworkConfigurationException = exports.TargetWorkspaceState = exports.UnsupportedWorkspaceConfigurationException = exports.OperationInProgressException = exports.WorkspaceImageIngestionProcess = exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
3
|
+
exports.WorkspaceBundleFilterSensitiveLog = exports.UserStorageFilterSensitiveLog = exports.RootStorageFilterSensitiveLog = exports.ComputeTypeFilterSensitiveLog = exports.AuthorizeIpRulesResultFilterSensitiveLog = exports.AuthorizeIpRulesRequestFilterSensitiveLog = exports.IpRuleItemFilterSensitiveLog = exports.AssociateIpGroupsResultFilterSensitiveLog = exports.AssociateIpGroupsRequestFilterSensitiveLog = exports.AssociateConnectionAliasResultFilterSensitiveLog = exports.AssociateConnectionAliasRequestFilterSensitiveLog = exports.AccountModificationFilterSensitiveLog = exports.WorkspacesDefaultRoleNotFoundException = exports.UnsupportedNetworkConfigurationException = exports.TargetWorkspaceState = exports.UnsupportedWorkspaceConfigurationException = exports.OperationInProgressException = exports.WorkspaceImageIngestionProcess = exports.ImageType = exports.Tenancy = exports.WorkspaceDirectoryState = exports.WorkspaceDirectoryType = exports.DedicatedTenancySupportEnum = exports.WorkspaceState = exports.ModificationStateEnum = exports.ModificationResourceEnum = exports.RunningMode = exports.WorkspaceImageState = exports.WorkspaceImageRequiredTenancy = exports.OperatingSystemType = exports.ResourceCreationFailedException = exports.ResourceUnavailableException = exports.ResourceAlreadyExistsException = exports.ConnectionState = exports.ConnectionAliasState = exports.ReconnectEnum = exports.ClientDeviceType = exports.Compute = exports.AssociationStatus = exports.ResourceLimitExceededException = exports.ResourceNotFoundException = exports.ResourceAssociatedException = exports.OperationNotSupportedException = exports.InvalidResourceStateException = exports.InvalidParameterValuesException = exports.Application = exports.DedicatedTenancyModificationStateEnum = exports.DedicatedTenancySupportResultEnum = exports.AccessPropertyValue = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.DeregisterWorkspaceDirectoryResultFilterSensitiveLog = exports.DeregisterWorkspaceDirectoryRequestFilterSensitiveLog = exports.DeleteWorkspaceImageResultFilterSensitiveLog = exports.DeleteWorkspaceImageRequestFilterSensitiveLog = exports.DeleteWorkspaceBundleResultFilterSensitiveLog = exports.DeleteWorkspaceBundleRequestFilterSensitiveLog = exports.DeleteTagsResultFilterSensitiveLog = exports.DeleteTagsRequestFilterSensitiveLog = exports.DeleteIpGroupResultFilterSensitiveLog = exports.DeleteIpGroupRequestFilterSensitiveLog = exports.DeleteConnectionAliasResultFilterSensitiveLog = exports.DeleteConnectionAliasRequestFilterSensitiveLog = exports.DeleteConnectClientAddInResultFilterSensitiveLog = exports.DeleteConnectClientAddInRequestFilterSensitiveLog = exports.DeleteClientBrandingResultFilterSensitiveLog = exports.DeleteClientBrandingRequestFilterSensitiveLog = exports.DefaultWorkspaceCreationPropertiesFilterSensitiveLog = exports.DefaultImportClientBrandingAttributesFilterSensitiveLog = exports.DefaultClientBrandingAttributesFilterSensitiveLog = exports.CreateWorkspacesResultFilterSensitiveLog = exports.WorkspaceFilterSensitiveLog = exports.ModificationStateFilterSensitiveLog = exports.FailedCreateWorkspaceRequestFilterSensitiveLog = exports.CreateWorkspacesRequestFilterSensitiveLog = exports.WorkspaceRequestFilterSensitiveLog = exports.WorkspacePropertiesFilterSensitiveLog = exports.CreateWorkspaceImageResultFilterSensitiveLog = exports.OperatingSystemFilterSensitiveLog = exports.CreateWorkspaceImageRequestFilterSensitiveLog = exports.CreateWorkspaceBundleResultFilterSensitiveLog = exports.CreateWorkspaceBundleRequestFilterSensitiveLog = exports.CreateUpdatedWorkspaceImageResultFilterSensitiveLog = exports.CreateUpdatedWorkspaceImageRequestFilterSensitiveLog = exports.CreateTagsResultFilterSensitiveLog = exports.CreateTagsRequestFilterSensitiveLog = exports.CreateIpGroupResultFilterSensitiveLog = exports.CreateIpGroupRequestFilterSensitiveLog = exports.CreateConnectionAliasResultFilterSensitiveLog = exports.CreateConnectionAliasRequestFilterSensitiveLog = exports.CreateConnectClientAddInResultFilterSensitiveLog = exports.CreateConnectClientAddInRequestFilterSensitiveLog = exports.CopyWorkspaceImageResultFilterSensitiveLog = exports.CopyWorkspaceImageRequestFilterSensitiveLog = exports.TagFilterSensitiveLog = exports.ConnectionAliasPermissionFilterSensitiveLog = exports.ConnectionAliasFilterSensitiveLog = exports.ConnectionAliasAssociationFilterSensitiveLog = exports.ConnectClientAddInFilterSensitiveLog = exports.ClientPropertiesResultFilterSensitiveLog = exports.ClientPropertiesFilterSensitiveLog = void 0;
|
|
5
|
+
exports.ImportClientBrandingResultFilterSensitiveLog = exports.ImportClientBrandingRequestFilterSensitiveLog = exports.IosImportClientBrandingAttributesFilterSensitiveLog = exports.FailedWorkspaceChangeRequestFilterSensitiveLog = exports.DisassociateIpGroupsResultFilterSensitiveLog = exports.DisassociateIpGroupsRequestFilterSensitiveLog = exports.DisassociateConnectionAliasResultFilterSensitiveLog = exports.DisassociateConnectionAliasRequestFilterSensitiveLog = exports.DescribeWorkspaceSnapshotsResultFilterSensitiveLog = exports.SnapshotFilterSensitiveLog = exports.DescribeWorkspaceSnapshotsRequestFilterSensitiveLog = exports.DescribeWorkspacesConnectionStatusResultFilterSensitiveLog = exports.WorkspaceConnectionStatusFilterSensitiveLog = exports.DescribeWorkspacesConnectionStatusRequestFilterSensitiveLog = exports.DescribeWorkspacesResultFilterSensitiveLog = exports.DescribeWorkspacesRequestFilterSensitiveLog = exports.DescribeWorkspaceImagesResultFilterSensitiveLog = exports.WorkspaceImageFilterSensitiveLog = exports.UpdateResultFilterSensitiveLog = exports.DescribeWorkspaceImagesRequestFilterSensitiveLog = exports.DescribeWorkspaceImagePermissionsResultFilterSensitiveLog = exports.ImagePermissionFilterSensitiveLog = exports.DescribeWorkspaceImagePermissionsRequestFilterSensitiveLog = exports.DescribeWorkspaceDirectoriesResultFilterSensitiveLog = exports.WorkspaceDirectoryFilterSensitiveLog = exports.WorkspaceAccessPropertiesFilterSensitiveLog = exports.SelfservicePermissionsFilterSensitiveLog = exports.DescribeWorkspaceDirectoriesRequestFilterSensitiveLog = exports.DescribeWorkspaceBundlesResultFilterSensitiveLog = exports.DescribeWorkspaceBundlesRequestFilterSensitiveLog = exports.DescribeTagsResultFilterSensitiveLog = exports.DescribeTagsRequestFilterSensitiveLog = exports.DescribeIpGroupsResultFilterSensitiveLog = exports.WorkspacesIpGroupFilterSensitiveLog = exports.DescribeIpGroupsRequestFilterSensitiveLog = exports.DescribeConnectionAliasPermissionsResultFilterSensitiveLog = exports.DescribeConnectionAliasPermissionsRequestFilterSensitiveLog = exports.DescribeConnectionAliasesResultFilterSensitiveLog = exports.DescribeConnectionAliasesRequestFilterSensitiveLog = exports.DescribeConnectClientAddInsResultFilterSensitiveLog = exports.DescribeConnectClientAddInsRequestFilterSensitiveLog = exports.DescribeClientPropertiesResultFilterSensitiveLog = exports.DescribeClientPropertiesRequestFilterSensitiveLog = exports.DescribeClientBrandingResultFilterSensitiveLog = exports.IosClientBrandingAttributesFilterSensitiveLog = exports.DescribeClientBrandingRequestFilterSensitiveLog = exports.DescribeAccountModificationsResultFilterSensitiveLog = exports.DescribeAccountModificationsRequestFilterSensitiveLog = exports.DescribeAccountResultFilterSensitiveLog = exports.DescribeAccountRequestFilterSensitiveLog = void 0;
|
|
6
|
+
exports.UpdateWorkspaceBundleResultFilterSensitiveLog = exports.UpdateWorkspaceBundleRequestFilterSensitiveLog = exports.UpdateRulesOfIpGroupResultFilterSensitiveLog = exports.UpdateRulesOfIpGroupRequestFilterSensitiveLog = exports.UpdateConnectionAliasPermissionResultFilterSensitiveLog = exports.UpdateConnectionAliasPermissionRequestFilterSensitiveLog = exports.UpdateConnectClientAddInResultFilterSensitiveLog = exports.UpdateConnectClientAddInRequestFilterSensitiveLog = exports.TerminateWorkspacesResultFilterSensitiveLog = exports.TerminateWorkspacesRequestFilterSensitiveLog = exports.TerminateRequestFilterSensitiveLog = exports.StopWorkspacesResultFilterSensitiveLog = exports.StopWorkspacesRequestFilterSensitiveLog = exports.StopRequestFilterSensitiveLog = exports.StartWorkspacesResultFilterSensitiveLog = exports.StartWorkspacesRequestFilterSensitiveLog = exports.StartRequestFilterSensitiveLog = exports.RevokeIpRulesResultFilterSensitiveLog = exports.RevokeIpRulesRequestFilterSensitiveLog = exports.RestoreWorkspaceResultFilterSensitiveLog = exports.RestoreWorkspaceRequestFilterSensitiveLog = exports.RegisterWorkspaceDirectoryResultFilterSensitiveLog = exports.RegisterWorkspaceDirectoryRequestFilterSensitiveLog = exports.RebuildWorkspacesResultFilterSensitiveLog = exports.RebuildWorkspacesRequestFilterSensitiveLog = exports.RebuildRequestFilterSensitiveLog = exports.RebootWorkspacesResultFilterSensitiveLog = exports.RebootWorkspacesRequestFilterSensitiveLog = exports.RebootRequestFilterSensitiveLog = exports.ModifyWorkspaceStateResultFilterSensitiveLog = exports.ModifyWorkspaceStateRequestFilterSensitiveLog = exports.ModifyWorkspacePropertiesResultFilterSensitiveLog = exports.ModifyWorkspacePropertiesRequestFilterSensitiveLog = exports.ModifyWorkspaceCreationPropertiesResultFilterSensitiveLog = exports.ModifyWorkspaceCreationPropertiesRequestFilterSensitiveLog = exports.WorkspaceCreationPropertiesFilterSensitiveLog = exports.ModifyWorkspaceAccessPropertiesResultFilterSensitiveLog = exports.ModifyWorkspaceAccessPropertiesRequestFilterSensitiveLog = exports.ModifySelfservicePermissionsResultFilterSensitiveLog = exports.ModifySelfservicePermissionsRequestFilterSensitiveLog = exports.ModifyClientPropertiesResultFilterSensitiveLog = exports.ModifyClientPropertiesRequestFilterSensitiveLog = exports.ModifyAccountResultFilterSensitiveLog = exports.ModifyAccountRequestFilterSensitiveLog = exports.MigrateWorkspaceResultFilterSensitiveLog = exports.MigrateWorkspaceRequestFilterSensitiveLog = exports.ListAvailableManagementCidrRangesResultFilterSensitiveLog = exports.ListAvailableManagementCidrRangesRequestFilterSensitiveLog = exports.ImportWorkspaceImageResultFilterSensitiveLog = exports.ImportWorkspaceImageRequestFilterSensitiveLog = void 0;
|
|
7
|
+
exports.UpdateWorkspaceImagePermissionResultFilterSensitiveLog = exports.UpdateWorkspaceImagePermissionRequestFilterSensitiveLog = void 0;
|
|
7
8
|
const WorkSpacesServiceException_1 = require("./WorkSpacesServiceException");
|
|
8
9
|
class AccessDeniedException extends WorkSpacesServiceException_1.WorkSpacesServiceException {
|
|
9
10
|
constructor(opts) {
|
|
@@ -205,6 +206,22 @@ class ResourceCreationFailedException extends WorkSpacesServiceException_1.WorkS
|
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
208
|
exports.ResourceCreationFailedException = ResourceCreationFailedException;
|
|
209
|
+
var OperatingSystemType;
|
|
210
|
+
(function (OperatingSystemType) {
|
|
211
|
+
OperatingSystemType["LINUX"] = "LINUX";
|
|
212
|
+
OperatingSystemType["WINDOWS"] = "WINDOWS";
|
|
213
|
+
})(OperatingSystemType = exports.OperatingSystemType || (exports.OperatingSystemType = {}));
|
|
214
|
+
var WorkspaceImageRequiredTenancy;
|
|
215
|
+
(function (WorkspaceImageRequiredTenancy) {
|
|
216
|
+
WorkspaceImageRequiredTenancy["DEDICATED"] = "DEDICATED";
|
|
217
|
+
WorkspaceImageRequiredTenancy["DEFAULT"] = "DEFAULT";
|
|
218
|
+
})(WorkspaceImageRequiredTenancy = exports.WorkspaceImageRequiredTenancy || (exports.WorkspaceImageRequiredTenancy = {}));
|
|
219
|
+
var WorkspaceImageState;
|
|
220
|
+
(function (WorkspaceImageState) {
|
|
221
|
+
WorkspaceImageState["AVAILABLE"] = "AVAILABLE";
|
|
222
|
+
WorkspaceImageState["ERROR"] = "ERROR";
|
|
223
|
+
WorkspaceImageState["PENDING"] = "PENDING";
|
|
224
|
+
})(WorkspaceImageState = exports.WorkspaceImageState || (exports.WorkspaceImageState = {}));
|
|
208
225
|
var RunningMode;
|
|
209
226
|
(function (RunningMode) {
|
|
210
227
|
RunningMode["ALWAYS_ON"] = "ALWAYS_ON";
|
|
@@ -268,22 +285,6 @@ var ImageType;
|
|
|
268
285
|
ImageType["OWNED"] = "OWNED";
|
|
269
286
|
ImageType["SHARED"] = "SHARED";
|
|
270
287
|
})(ImageType = exports.ImageType || (exports.ImageType = {}));
|
|
271
|
-
var OperatingSystemType;
|
|
272
|
-
(function (OperatingSystemType) {
|
|
273
|
-
OperatingSystemType["LINUX"] = "LINUX";
|
|
274
|
-
OperatingSystemType["WINDOWS"] = "WINDOWS";
|
|
275
|
-
})(OperatingSystemType = exports.OperatingSystemType || (exports.OperatingSystemType = {}));
|
|
276
|
-
var WorkspaceImageRequiredTenancy;
|
|
277
|
-
(function (WorkspaceImageRequiredTenancy) {
|
|
278
|
-
WorkspaceImageRequiredTenancy["DEDICATED"] = "DEDICATED";
|
|
279
|
-
WorkspaceImageRequiredTenancy["DEFAULT"] = "DEFAULT";
|
|
280
|
-
})(WorkspaceImageRequiredTenancy = exports.WorkspaceImageRequiredTenancy || (exports.WorkspaceImageRequiredTenancy = {}));
|
|
281
|
-
var WorkspaceImageState;
|
|
282
|
-
(function (WorkspaceImageState) {
|
|
283
|
-
WorkspaceImageState["AVAILABLE"] = "AVAILABLE";
|
|
284
|
-
WorkspaceImageState["ERROR"] = "ERROR";
|
|
285
|
-
WorkspaceImageState["PENDING"] = "PENDING";
|
|
286
|
-
})(WorkspaceImageState = exports.WorkspaceImageState || (exports.WorkspaceImageState = {}));
|
|
287
288
|
var WorkspaceImageIngestionProcess;
|
|
288
289
|
(function (WorkspaceImageIngestionProcess) {
|
|
289
290
|
WorkspaceImageIngestionProcess["BYOL_GRAPHICS"] = "BYOL_GRAPHICS";
|
|
@@ -481,6 +482,18 @@ const CreateWorkspaceBundleResultFilterSensitiveLog = (obj) => ({
|
|
|
481
482
|
...obj,
|
|
482
483
|
});
|
|
483
484
|
exports.CreateWorkspaceBundleResultFilterSensitiveLog = CreateWorkspaceBundleResultFilterSensitiveLog;
|
|
485
|
+
const CreateWorkspaceImageRequestFilterSensitiveLog = (obj) => ({
|
|
486
|
+
...obj,
|
|
487
|
+
});
|
|
488
|
+
exports.CreateWorkspaceImageRequestFilterSensitiveLog = CreateWorkspaceImageRequestFilterSensitiveLog;
|
|
489
|
+
const OperatingSystemFilterSensitiveLog = (obj) => ({
|
|
490
|
+
...obj,
|
|
491
|
+
});
|
|
492
|
+
exports.OperatingSystemFilterSensitiveLog = OperatingSystemFilterSensitiveLog;
|
|
493
|
+
const CreateWorkspaceImageResultFilterSensitiveLog = (obj) => ({
|
|
494
|
+
...obj,
|
|
495
|
+
});
|
|
496
|
+
exports.CreateWorkspaceImageResultFilterSensitiveLog = CreateWorkspaceImageResultFilterSensitiveLog;
|
|
484
497
|
const WorkspacePropertiesFilterSensitiveLog = (obj) => ({
|
|
485
498
|
...obj,
|
|
486
499
|
});
|
|
@@ -709,10 +722,6 @@ const DescribeWorkspaceImagesRequestFilterSensitiveLog = (obj) => ({
|
|
|
709
722
|
...obj,
|
|
710
723
|
});
|
|
711
724
|
exports.DescribeWorkspaceImagesRequestFilterSensitiveLog = DescribeWorkspaceImagesRequestFilterSensitiveLog;
|
|
712
|
-
const OperatingSystemFilterSensitiveLog = (obj) => ({
|
|
713
|
-
...obj,
|
|
714
|
-
});
|
|
715
|
-
exports.OperatingSystemFilterSensitiveLog = OperatingSystemFilterSensitiveLog;
|
|
716
725
|
const UpdateResultFilterSensitiveLog = (obj) => ({
|
|
717
726
|
...obj,
|
|
718
727
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.deserializeAws_json1_1UpdateWorkspaceImagePermissionCommand = exports.deserializeAws_json1_1UpdateWorkspaceBundleCommand = exports.deserializeAws_json1_1UpdateRulesOfIpGroupCommand = exports.deserializeAws_json1_1UpdateConnectionAliasPermissionCommand = exports.deserializeAws_json1_1UpdateConnectClientAddInCommand = exports.deserializeAws_json1_1TerminateWorkspacesCommand = exports.deserializeAws_json1_1StopWorkspacesCommand = exports.deserializeAws_json1_1StartWorkspacesCommand = exports.deserializeAws_json1_1RevokeIpRulesCommand = exports.deserializeAws_json1_1RestoreWorkspaceCommand = exports.deserializeAws_json1_1RegisterWorkspaceDirectoryCommand = exports.deserializeAws_json1_1RebuildWorkspacesCommand = exports.deserializeAws_json1_1RebootWorkspacesCommand = exports.deserializeAws_json1_1ModifyWorkspaceStateCommand = exports.deserializeAws_json1_1ModifyWorkspacePropertiesCommand = exports.deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommand = exports.deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommand = exports.deserializeAws_json1_1ModifySelfservicePermissionsCommand = exports.deserializeAws_json1_1ModifyClientPropertiesCommand = exports.deserializeAws_json1_1ModifyAccountCommand = exports.deserializeAws_json1_1MigrateWorkspaceCommand = exports.deserializeAws_json1_1ListAvailableManagementCidrRangesCommand = void 0;
|
|
3
|
+
exports.serializeAws_json1_1RebootWorkspacesCommand = exports.serializeAws_json1_1ModifyWorkspaceStateCommand = exports.serializeAws_json1_1ModifyWorkspacePropertiesCommand = exports.serializeAws_json1_1ModifyWorkspaceCreationPropertiesCommand = exports.serializeAws_json1_1ModifyWorkspaceAccessPropertiesCommand = exports.serializeAws_json1_1ModifySelfservicePermissionsCommand = exports.serializeAws_json1_1ModifyClientPropertiesCommand = exports.serializeAws_json1_1ModifyAccountCommand = exports.serializeAws_json1_1MigrateWorkspaceCommand = exports.serializeAws_json1_1ListAvailableManagementCidrRangesCommand = exports.serializeAws_json1_1ImportWorkspaceImageCommand = exports.serializeAws_json1_1ImportClientBrandingCommand = exports.serializeAws_json1_1DisassociateIpGroupsCommand = exports.serializeAws_json1_1DisassociateConnectionAliasCommand = exports.serializeAws_json1_1DescribeWorkspaceSnapshotsCommand = exports.serializeAws_json1_1DescribeWorkspacesConnectionStatusCommand = exports.serializeAws_json1_1DescribeWorkspacesCommand = exports.serializeAws_json1_1DescribeWorkspaceImagesCommand = exports.serializeAws_json1_1DescribeWorkspaceImagePermissionsCommand = exports.serializeAws_json1_1DescribeWorkspaceDirectoriesCommand = exports.serializeAws_json1_1DescribeWorkspaceBundlesCommand = exports.serializeAws_json1_1DescribeTagsCommand = exports.serializeAws_json1_1DescribeIpGroupsCommand = exports.serializeAws_json1_1DescribeConnectionAliasPermissionsCommand = exports.serializeAws_json1_1DescribeConnectionAliasesCommand = exports.serializeAws_json1_1DescribeConnectClientAddInsCommand = exports.serializeAws_json1_1DescribeClientPropertiesCommand = exports.serializeAws_json1_1DescribeClientBrandingCommand = exports.serializeAws_json1_1DescribeAccountModificationsCommand = exports.serializeAws_json1_1DescribeAccountCommand = exports.serializeAws_json1_1DeregisterWorkspaceDirectoryCommand = exports.serializeAws_json1_1DeleteWorkspaceImageCommand = exports.serializeAws_json1_1DeleteWorkspaceBundleCommand = exports.serializeAws_json1_1DeleteTagsCommand = exports.serializeAws_json1_1DeleteIpGroupCommand = exports.serializeAws_json1_1DeleteConnectionAliasCommand = exports.serializeAws_json1_1DeleteConnectClientAddInCommand = exports.serializeAws_json1_1DeleteClientBrandingCommand = exports.serializeAws_json1_1CreateWorkspacesCommand = exports.serializeAws_json1_1CreateWorkspaceImageCommand = exports.serializeAws_json1_1CreateWorkspaceBundleCommand = exports.serializeAws_json1_1CreateUpdatedWorkspaceImageCommand = exports.serializeAws_json1_1CreateTagsCommand = exports.serializeAws_json1_1CreateIpGroupCommand = exports.serializeAws_json1_1CreateConnectionAliasCommand = exports.serializeAws_json1_1CreateConnectClientAddInCommand = exports.serializeAws_json1_1CopyWorkspaceImageCommand = exports.serializeAws_json1_1AuthorizeIpRulesCommand = exports.serializeAws_json1_1AssociateIpGroupsCommand = exports.serializeAws_json1_1AssociateConnectionAliasCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1DisassociateIpGroupsCommand = exports.deserializeAws_json1_1DisassociateConnectionAliasCommand = exports.deserializeAws_json1_1DescribeWorkspaceSnapshotsCommand = exports.deserializeAws_json1_1DescribeWorkspacesConnectionStatusCommand = exports.deserializeAws_json1_1DescribeWorkspacesCommand = exports.deserializeAws_json1_1DescribeWorkspaceImagesCommand = exports.deserializeAws_json1_1DescribeWorkspaceImagePermissionsCommand = exports.deserializeAws_json1_1DescribeWorkspaceDirectoriesCommand = exports.deserializeAws_json1_1DescribeWorkspaceBundlesCommand = exports.deserializeAws_json1_1DescribeTagsCommand = exports.deserializeAws_json1_1DescribeIpGroupsCommand = exports.deserializeAws_json1_1DescribeConnectionAliasPermissionsCommand = exports.deserializeAws_json1_1DescribeConnectionAliasesCommand = exports.deserializeAws_json1_1DescribeConnectClientAddInsCommand = exports.deserializeAws_json1_1DescribeClientPropertiesCommand = exports.deserializeAws_json1_1DescribeClientBrandingCommand = exports.deserializeAws_json1_1DescribeAccountModificationsCommand = exports.deserializeAws_json1_1DescribeAccountCommand = exports.deserializeAws_json1_1DeregisterWorkspaceDirectoryCommand = exports.deserializeAws_json1_1DeleteWorkspaceImageCommand = exports.deserializeAws_json1_1DeleteWorkspaceBundleCommand = exports.deserializeAws_json1_1DeleteTagsCommand = exports.deserializeAws_json1_1DeleteIpGroupCommand = exports.deserializeAws_json1_1DeleteConnectionAliasCommand = exports.deserializeAws_json1_1DeleteConnectClientAddInCommand = exports.deserializeAws_json1_1DeleteClientBrandingCommand = exports.deserializeAws_json1_1CreateWorkspacesCommand = exports.deserializeAws_json1_1CreateWorkspaceImageCommand = exports.deserializeAws_json1_1CreateWorkspaceBundleCommand = exports.deserializeAws_json1_1CreateUpdatedWorkspaceImageCommand = exports.deserializeAws_json1_1CreateTagsCommand = exports.deserializeAws_json1_1CreateIpGroupCommand = exports.deserializeAws_json1_1CreateConnectionAliasCommand = exports.deserializeAws_json1_1CreateConnectClientAddInCommand = exports.deserializeAws_json1_1CopyWorkspaceImageCommand = exports.deserializeAws_json1_1AuthorizeIpRulesCommand = exports.deserializeAws_json1_1AssociateIpGroupsCommand = exports.deserializeAws_json1_1AssociateConnectionAliasCommand = exports.serializeAws_json1_1UpdateWorkspaceImagePermissionCommand = exports.serializeAws_json1_1UpdateWorkspaceBundleCommand = exports.serializeAws_json1_1UpdateRulesOfIpGroupCommand = exports.serializeAws_json1_1UpdateConnectionAliasPermissionCommand = exports.serializeAws_json1_1UpdateConnectClientAddInCommand = exports.serializeAws_json1_1TerminateWorkspacesCommand = exports.serializeAws_json1_1StopWorkspacesCommand = exports.serializeAws_json1_1StartWorkspacesCommand = exports.serializeAws_json1_1RevokeIpRulesCommand = exports.serializeAws_json1_1RestoreWorkspaceCommand = exports.serializeAws_json1_1RegisterWorkspaceDirectoryCommand = exports.serializeAws_json1_1RebuildWorkspacesCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateWorkspaceImagePermissionCommand = exports.deserializeAws_json1_1UpdateWorkspaceBundleCommand = exports.deserializeAws_json1_1UpdateRulesOfIpGroupCommand = exports.deserializeAws_json1_1UpdateConnectionAliasPermissionCommand = exports.deserializeAws_json1_1UpdateConnectClientAddInCommand = exports.deserializeAws_json1_1TerminateWorkspacesCommand = exports.deserializeAws_json1_1StopWorkspacesCommand = exports.deserializeAws_json1_1StartWorkspacesCommand = exports.deserializeAws_json1_1RevokeIpRulesCommand = exports.deserializeAws_json1_1RestoreWorkspaceCommand = exports.deserializeAws_json1_1RegisterWorkspaceDirectoryCommand = exports.deserializeAws_json1_1RebuildWorkspacesCommand = exports.deserializeAws_json1_1RebootWorkspacesCommand = exports.deserializeAws_json1_1ModifyWorkspaceStateCommand = exports.deserializeAws_json1_1ModifyWorkspacePropertiesCommand = exports.deserializeAws_json1_1ModifyWorkspaceCreationPropertiesCommand = exports.deserializeAws_json1_1ModifyWorkspaceAccessPropertiesCommand = exports.deserializeAws_json1_1ModifySelfservicePermissionsCommand = exports.deserializeAws_json1_1ModifyClientPropertiesCommand = exports.deserializeAws_json1_1ModifyAccountCommand = exports.deserializeAws_json1_1MigrateWorkspaceCommand = exports.deserializeAws_json1_1ListAvailableManagementCidrRangesCommand = exports.deserializeAws_json1_1ImportWorkspaceImageCommand = exports.deserializeAws_json1_1ImportClientBrandingCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
@@ -107,6 +107,16 @@ const serializeAws_json1_1CreateWorkspaceBundleCommand = async (input, context)
|
|
|
107
107
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
108
|
};
|
|
109
109
|
exports.serializeAws_json1_1CreateWorkspaceBundleCommand = serializeAws_json1_1CreateWorkspaceBundleCommand;
|
|
110
|
+
const serializeAws_json1_1CreateWorkspaceImageCommand = async (input, context) => {
|
|
111
|
+
const headers = {
|
|
112
|
+
"content-type": "application/x-amz-json-1.1",
|
|
113
|
+
"x-amz-target": "WorkspacesService.CreateWorkspaceImage",
|
|
114
|
+
};
|
|
115
|
+
let body;
|
|
116
|
+
body = JSON.stringify(serializeAws_json1_1CreateWorkspaceImageRequest(input, context));
|
|
117
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
+
};
|
|
119
|
+
exports.serializeAws_json1_1CreateWorkspaceImageCommand = serializeAws_json1_1CreateWorkspaceImageCommand;
|
|
110
120
|
const serializeAws_json1_1CreateWorkspacesCommand = async (input, context) => {
|
|
111
121
|
const headers = {
|
|
112
122
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1125,6 +1135,61 @@ const deserializeAws_json1_1CreateWorkspaceBundleCommandError = async (output, c
|
|
|
1125
1135
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1126
1136
|
}
|
|
1127
1137
|
};
|
|
1138
|
+
const deserializeAws_json1_1CreateWorkspaceImageCommand = async (output, context) => {
|
|
1139
|
+
if (output.statusCode >= 300) {
|
|
1140
|
+
return deserializeAws_json1_1CreateWorkspaceImageCommandError(output, context);
|
|
1141
|
+
}
|
|
1142
|
+
const data = await parseBody(output.body, context);
|
|
1143
|
+
let contents = {};
|
|
1144
|
+
contents = deserializeAws_json1_1CreateWorkspaceImageResult(data, context);
|
|
1145
|
+
const response = {
|
|
1146
|
+
$metadata: deserializeMetadata(output),
|
|
1147
|
+
...contents,
|
|
1148
|
+
};
|
|
1149
|
+
return Promise.resolve(response);
|
|
1150
|
+
};
|
|
1151
|
+
exports.deserializeAws_json1_1CreateWorkspaceImageCommand = deserializeAws_json1_1CreateWorkspaceImageCommand;
|
|
1152
|
+
const deserializeAws_json1_1CreateWorkspaceImageCommandError = async (output, context) => {
|
|
1153
|
+
const parsedOutput = {
|
|
1154
|
+
...output,
|
|
1155
|
+
body: await parseBody(output.body, context),
|
|
1156
|
+
};
|
|
1157
|
+
let response;
|
|
1158
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1159
|
+
switch (errorCode) {
|
|
1160
|
+
case "AccessDeniedException":
|
|
1161
|
+
case "com.amazonaws.workspaces#AccessDeniedException":
|
|
1162
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1163
|
+
case "InvalidParameterValuesException":
|
|
1164
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException":
|
|
1165
|
+
throw await deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context);
|
|
1166
|
+
case "InvalidResourceStateException":
|
|
1167
|
+
case "com.amazonaws.workspaces#InvalidResourceStateException":
|
|
1168
|
+
throw await deserializeAws_json1_1InvalidResourceStateExceptionResponse(parsedOutput, context);
|
|
1169
|
+
case "OperationNotSupportedException":
|
|
1170
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException":
|
|
1171
|
+
throw await deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context);
|
|
1172
|
+
case "ResourceAlreadyExistsException":
|
|
1173
|
+
case "com.amazonaws.workspaces#ResourceAlreadyExistsException":
|
|
1174
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
1175
|
+
case "ResourceLimitExceededException":
|
|
1176
|
+
case "com.amazonaws.workspaces#ResourceLimitExceededException":
|
|
1177
|
+
throw await deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context);
|
|
1178
|
+
case "ResourceNotFoundException":
|
|
1179
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException":
|
|
1180
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1181
|
+
default:
|
|
1182
|
+
const parsedBody = parsedOutput.body;
|
|
1183
|
+
const $metadata = deserializeMetadata(output);
|
|
1184
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1185
|
+
response = new WorkSpacesServiceException_1.WorkSpacesServiceException({
|
|
1186
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1187
|
+
$fault: "client",
|
|
1188
|
+
$metadata,
|
|
1189
|
+
});
|
|
1190
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1191
|
+
}
|
|
1192
|
+
};
|
|
1128
1193
|
const deserializeAws_json1_1CreateWorkspacesCommand = async (output, context) => {
|
|
1129
1194
|
if (output.statusCode >= 300) {
|
|
1130
1195
|
return deserializeAws_json1_1CreateWorkspacesCommandError(output, context);
|
|
@@ -3588,6 +3653,14 @@ const serializeAws_json1_1CreateWorkspaceBundleRequest = (input, context) => {
|
|
|
3588
3653
|
...(input.UserStorage != null && { UserStorage: serializeAws_json1_1UserStorage(input.UserStorage, context) }),
|
|
3589
3654
|
};
|
|
3590
3655
|
};
|
|
3656
|
+
const serializeAws_json1_1CreateWorkspaceImageRequest = (input, context) => {
|
|
3657
|
+
return {
|
|
3658
|
+
...(input.Description != null && { Description: input.Description }),
|
|
3659
|
+
...(input.Name != null && { Name: input.Name }),
|
|
3660
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) }),
|
|
3661
|
+
...(input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }),
|
|
3662
|
+
};
|
|
3663
|
+
};
|
|
3591
3664
|
const serializeAws_json1_1CreateWorkspacesRequest = (input, context) => {
|
|
3592
3665
|
return {
|
|
3593
3666
|
...(input.Workspaces != null && {
|
|
@@ -4441,6 +4514,20 @@ const deserializeAws_json1_1CreateWorkspaceBundleResult = (output, context) => {
|
|
|
4441
4514
|
: undefined,
|
|
4442
4515
|
};
|
|
4443
4516
|
};
|
|
4517
|
+
const deserializeAws_json1_1CreateWorkspaceImageResult = (output, context) => {
|
|
4518
|
+
return {
|
|
4519
|
+
Created: output.Created != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.Created))) : undefined,
|
|
4520
|
+
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
4521
|
+
ImageId: (0, smithy_client_1.expectString)(output.ImageId),
|
|
4522
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
4523
|
+
OperatingSystem: output.OperatingSystem != null
|
|
4524
|
+
? deserializeAws_json1_1OperatingSystem(output.OperatingSystem, context)
|
|
4525
|
+
: undefined,
|
|
4526
|
+
OwnerAccountId: (0, smithy_client_1.expectString)(output.OwnerAccountId),
|
|
4527
|
+
RequiredTenancy: (0, smithy_client_1.expectString)(output.RequiredTenancy),
|
|
4528
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
4529
|
+
};
|
|
4530
|
+
};
|
|
4444
4531
|
const deserializeAws_json1_1CreateWorkspacesResult = (output, context) => {
|
|
4445
4532
|
return {
|
|
4446
4533
|
FailedRequests: output.FailedRequests != null
|
package/dist-es/WorkSpaces.js
CHANGED
|
@@ -9,6 +9,7 @@ import { CreateIpGroupCommand, } from "./commands/CreateIpGroupCommand";
|
|
|
9
9
|
import { CreateTagsCommand } from "./commands/CreateTagsCommand";
|
|
10
10
|
import { CreateUpdatedWorkspaceImageCommand, } from "./commands/CreateUpdatedWorkspaceImageCommand";
|
|
11
11
|
import { CreateWorkspaceBundleCommand, } from "./commands/CreateWorkspaceBundleCommand";
|
|
12
|
+
import { CreateWorkspaceImageCommand, } from "./commands/CreateWorkspaceImageCommand";
|
|
12
13
|
import { CreateWorkspacesCommand, } from "./commands/CreateWorkspacesCommand";
|
|
13
14
|
import { DeleteClientBrandingCommand, } from "./commands/DeleteClientBrandingCommand";
|
|
14
15
|
import { DeleteConnectClientAddInCommand, } from "./commands/DeleteConnectClientAddInCommand";
|
|
@@ -206,6 +207,20 @@ var WorkSpaces = (function (_super) {
|
|
|
206
207
|
return this.send(command, optionsOrCb);
|
|
207
208
|
}
|
|
208
209
|
};
|
|
210
|
+
WorkSpaces.prototype.createWorkspaceImage = function (args, optionsOrCb, cb) {
|
|
211
|
+
var command = new CreateWorkspaceImageCommand(args);
|
|
212
|
+
if (typeof optionsOrCb === "function") {
|
|
213
|
+
this.send(command, optionsOrCb);
|
|
214
|
+
}
|
|
215
|
+
else if (typeof cb === "function") {
|
|
216
|
+
if (typeof optionsOrCb !== "object")
|
|
217
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
218
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
return this.send(command, optionsOrCb);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
209
224
|
WorkSpaces.prototype.createWorkspaces = function (args, optionsOrCb, cb) {
|
|
210
225
|
var command = new CreateWorkspacesCommand(args);
|
|
211
226
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { CreateWorkspaceImageRequestFilterSensitiveLog, CreateWorkspaceImageResultFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateWorkspaceImageCommand, serializeAws_json1_1CreateWorkspaceImageCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var CreateWorkspaceImageCommand = (function (_super) {
|
|
7
|
+
__extends(CreateWorkspaceImageCommand, _super);
|
|
8
|
+
function CreateWorkspaceImageCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateWorkspaceImageCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "WorkSpacesClient";
|
|
18
|
+
var commandName = "CreateWorkspaceImageCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateWorkspaceImageRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateWorkspaceImageResultFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateWorkspaceImageCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1CreateWorkspaceImageCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateWorkspaceImageCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1CreateWorkspaceImageCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateWorkspaceImageCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateWorkspaceImageCommand };
|
|
@@ -8,6 +8,7 @@ export * from "./CreateIpGroupCommand";
|
|
|
8
8
|
export * from "./CreateTagsCommand";
|
|
9
9
|
export * from "./CreateUpdatedWorkspaceImageCommand";
|
|
10
10
|
export * from "./CreateWorkspaceBundleCommand";
|
|
11
|
+
export * from "./CreateWorkspaceImageCommand";
|
|
11
12
|
export * from "./CreateWorkspacesCommand";
|
|
12
13
|
export * from "./DeleteClientBrandingCommand";
|
|
13
14
|
export * from "./DeleteConnectClientAddInCommand";
|
|
@@ -190,6 +190,22 @@ var ResourceCreationFailedException = (function (_super) {
|
|
|
190
190
|
return ResourceCreationFailedException;
|
|
191
191
|
}(__BaseException));
|
|
192
192
|
export { ResourceCreationFailedException };
|
|
193
|
+
export var OperatingSystemType;
|
|
194
|
+
(function (OperatingSystemType) {
|
|
195
|
+
OperatingSystemType["LINUX"] = "LINUX";
|
|
196
|
+
OperatingSystemType["WINDOWS"] = "WINDOWS";
|
|
197
|
+
})(OperatingSystemType || (OperatingSystemType = {}));
|
|
198
|
+
export var WorkspaceImageRequiredTenancy;
|
|
199
|
+
(function (WorkspaceImageRequiredTenancy) {
|
|
200
|
+
WorkspaceImageRequiredTenancy["DEDICATED"] = "DEDICATED";
|
|
201
|
+
WorkspaceImageRequiredTenancy["DEFAULT"] = "DEFAULT";
|
|
202
|
+
})(WorkspaceImageRequiredTenancy || (WorkspaceImageRequiredTenancy = {}));
|
|
203
|
+
export var WorkspaceImageState;
|
|
204
|
+
(function (WorkspaceImageState) {
|
|
205
|
+
WorkspaceImageState["AVAILABLE"] = "AVAILABLE";
|
|
206
|
+
WorkspaceImageState["ERROR"] = "ERROR";
|
|
207
|
+
WorkspaceImageState["PENDING"] = "PENDING";
|
|
208
|
+
})(WorkspaceImageState || (WorkspaceImageState = {}));
|
|
193
209
|
export var RunningMode;
|
|
194
210
|
(function (RunningMode) {
|
|
195
211
|
RunningMode["ALWAYS_ON"] = "ALWAYS_ON";
|
|
@@ -253,22 +269,6 @@ export var ImageType;
|
|
|
253
269
|
ImageType["OWNED"] = "OWNED";
|
|
254
270
|
ImageType["SHARED"] = "SHARED";
|
|
255
271
|
})(ImageType || (ImageType = {}));
|
|
256
|
-
export var OperatingSystemType;
|
|
257
|
-
(function (OperatingSystemType) {
|
|
258
|
-
OperatingSystemType["LINUX"] = "LINUX";
|
|
259
|
-
OperatingSystemType["WINDOWS"] = "WINDOWS";
|
|
260
|
-
})(OperatingSystemType || (OperatingSystemType = {}));
|
|
261
|
-
export var WorkspaceImageRequiredTenancy;
|
|
262
|
-
(function (WorkspaceImageRequiredTenancy) {
|
|
263
|
-
WorkspaceImageRequiredTenancy["DEDICATED"] = "DEDICATED";
|
|
264
|
-
WorkspaceImageRequiredTenancy["DEFAULT"] = "DEFAULT";
|
|
265
|
-
})(WorkspaceImageRequiredTenancy || (WorkspaceImageRequiredTenancy = {}));
|
|
266
|
-
export var WorkspaceImageState;
|
|
267
|
-
(function (WorkspaceImageState) {
|
|
268
|
-
WorkspaceImageState["AVAILABLE"] = "AVAILABLE";
|
|
269
|
-
WorkspaceImageState["ERROR"] = "ERROR";
|
|
270
|
-
WorkspaceImageState["PENDING"] = "PENDING";
|
|
271
|
-
})(WorkspaceImageState || (WorkspaceImageState = {}));
|
|
272
272
|
export var WorkspaceImageIngestionProcess;
|
|
273
273
|
(function (WorkspaceImageIngestionProcess) {
|
|
274
274
|
WorkspaceImageIngestionProcess["BYOL_GRAPHICS"] = "BYOL_GRAPHICS";
|
|
@@ -363,6 +363,9 @@ export var CreateUpdatedWorkspaceImageRequestFilterSensitiveLog = function (obj)
|
|
|
363
363
|
export var CreateUpdatedWorkspaceImageResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
364
364
|
export var CreateWorkspaceBundleRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
365
365
|
export var CreateWorkspaceBundleResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
366
|
+
export var CreateWorkspaceImageRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
367
|
+
export var OperatingSystemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
368
|
+
export var CreateWorkspaceImageResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
366
369
|
export var WorkspacePropertiesFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
367
370
|
export var WorkspaceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
368
371
|
export var CreateWorkspacesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -420,7 +423,6 @@ export var DescribeWorkspaceImagePermissionsRequestFilterSensitiveLog = function
|
|
|
420
423
|
export var ImagePermissionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
421
424
|
export var DescribeWorkspaceImagePermissionsResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
422
425
|
export var DescribeWorkspaceImagesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
423
|
-
export var OperatingSystemFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
424
426
|
export var UpdateResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
425
427
|
export var WorkspaceImageFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
426
428
|
export var DescribeWorkspaceImagesResultFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -113,6 +113,17 @@ export var serializeAws_json1_1CreateWorkspaceBundleCommand = function (input, c
|
|
|
113
113
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
114
114
|
});
|
|
115
115
|
}); };
|
|
116
|
+
export var serializeAws_json1_1CreateWorkspaceImageCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
|
+
var headers, body;
|
|
118
|
+
return __generator(this, function (_a) {
|
|
119
|
+
headers = {
|
|
120
|
+
"content-type": "application/x-amz-json-1.1",
|
|
121
|
+
"x-amz-target": "WorkspacesService.CreateWorkspaceImage",
|
|
122
|
+
};
|
|
123
|
+
body = JSON.stringify(serializeAws_json1_1CreateWorkspaceImageRequest(input, context));
|
|
124
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
125
|
+
});
|
|
126
|
+
}); };
|
|
116
127
|
export var serializeAws_json1_1CreateWorkspacesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
117
128
|
var headers, body;
|
|
118
129
|
return __generator(this, function (_a) {
|
|
@@ -1368,6 +1379,81 @@ var deserializeAws_json1_1CreateWorkspaceBundleCommandError = function (output,
|
|
|
1368
1379
|
}
|
|
1369
1380
|
});
|
|
1370
1381
|
}); };
|
|
1382
|
+
export var deserializeAws_json1_1CreateWorkspaceImageCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1383
|
+
var data, contents, response;
|
|
1384
|
+
return __generator(this, function (_a) {
|
|
1385
|
+
switch (_a.label) {
|
|
1386
|
+
case 0:
|
|
1387
|
+
if (output.statusCode >= 300) {
|
|
1388
|
+
return [2, deserializeAws_json1_1CreateWorkspaceImageCommandError(output, context)];
|
|
1389
|
+
}
|
|
1390
|
+
return [4, parseBody(output.body, context)];
|
|
1391
|
+
case 1:
|
|
1392
|
+
data = _a.sent();
|
|
1393
|
+
contents = {};
|
|
1394
|
+
contents = deserializeAws_json1_1CreateWorkspaceImageResult(data, context);
|
|
1395
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1396
|
+
return [2, Promise.resolve(response)];
|
|
1397
|
+
}
|
|
1398
|
+
});
|
|
1399
|
+
}); };
|
|
1400
|
+
var deserializeAws_json1_1CreateWorkspaceImageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1401
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
1402
|
+
var _c;
|
|
1403
|
+
return __generator(this, function (_d) {
|
|
1404
|
+
switch (_d.label) {
|
|
1405
|
+
case 0:
|
|
1406
|
+
_a = [__assign({}, output)];
|
|
1407
|
+
_c = {};
|
|
1408
|
+
return [4, parseBody(output.body, context)];
|
|
1409
|
+
case 1:
|
|
1410
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1411
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1412
|
+
_b = errorCode;
|
|
1413
|
+
switch (_b) {
|
|
1414
|
+
case "AccessDeniedException": return [3, 2];
|
|
1415
|
+
case "com.amazonaws.workspaces#AccessDeniedException": return [3, 2];
|
|
1416
|
+
case "InvalidParameterValuesException": return [3, 4];
|
|
1417
|
+
case "com.amazonaws.workspaces#InvalidParameterValuesException": return [3, 4];
|
|
1418
|
+
case "InvalidResourceStateException": return [3, 6];
|
|
1419
|
+
case "com.amazonaws.workspaces#InvalidResourceStateException": return [3, 6];
|
|
1420
|
+
case "OperationNotSupportedException": return [3, 8];
|
|
1421
|
+
case "com.amazonaws.workspaces#OperationNotSupportedException": return [3, 8];
|
|
1422
|
+
case "ResourceAlreadyExistsException": return [3, 10];
|
|
1423
|
+
case "com.amazonaws.workspaces#ResourceAlreadyExistsException": return [3, 10];
|
|
1424
|
+
case "ResourceLimitExceededException": return [3, 12];
|
|
1425
|
+
case "com.amazonaws.workspaces#ResourceLimitExceededException": return [3, 12];
|
|
1426
|
+
case "ResourceNotFoundException": return [3, 14];
|
|
1427
|
+
case "com.amazonaws.workspaces#ResourceNotFoundException": return [3, 14];
|
|
1428
|
+
}
|
|
1429
|
+
return [3, 16];
|
|
1430
|
+
case 2: return [4, deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1431
|
+
case 3: throw _d.sent();
|
|
1432
|
+
case 4: return [4, deserializeAws_json1_1InvalidParameterValuesExceptionResponse(parsedOutput, context)];
|
|
1433
|
+
case 5: throw _d.sent();
|
|
1434
|
+
case 6: return [4, deserializeAws_json1_1InvalidResourceStateExceptionResponse(parsedOutput, context)];
|
|
1435
|
+
case 7: throw _d.sent();
|
|
1436
|
+
case 8: return [4, deserializeAws_json1_1OperationNotSupportedExceptionResponse(parsedOutput, context)];
|
|
1437
|
+
case 9: throw _d.sent();
|
|
1438
|
+
case 10: return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1439
|
+
case 11: throw _d.sent();
|
|
1440
|
+
case 12: return [4, deserializeAws_json1_1ResourceLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1441
|
+
case 13: throw _d.sent();
|
|
1442
|
+
case 14: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1443
|
+
case 15: throw _d.sent();
|
|
1444
|
+
case 16:
|
|
1445
|
+
parsedBody = parsedOutput.body;
|
|
1446
|
+
$metadata = deserializeMetadata(output);
|
|
1447
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
1448
|
+
response = new __BaseException({
|
|
1449
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
1450
|
+
$fault: "client",
|
|
1451
|
+
$metadata: $metadata,
|
|
1452
|
+
});
|
|
1453
|
+
throw __decorateServiceException(response, parsedBody);
|
|
1454
|
+
}
|
|
1455
|
+
});
|
|
1456
|
+
}); };
|
|
1371
1457
|
export var deserializeAws_json1_1CreateWorkspacesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1372
1458
|
var data, contents, response;
|
|
1373
1459
|
return __generator(this, function (_a) {
|
|
@@ -4597,6 +4683,9 @@ var serializeAws_json1_1CreateUpdatedWorkspaceImageRequest = function (input, co
|
|
|
4597
4683
|
var serializeAws_json1_1CreateWorkspaceBundleRequest = function (input, context) {
|
|
4598
4684
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BundleDescription != null && { BundleDescription: input.BundleDescription })), (input.BundleName != null && { BundleName: input.BundleName })), (input.ComputeType != null && { ComputeType: serializeAws_json1_1ComputeType(input.ComputeType, context) })), (input.ImageId != null && { ImageId: input.ImageId })), (input.RootStorage != null && { RootStorage: serializeAws_json1_1RootStorage(input.RootStorage, context) })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.UserStorage != null && { UserStorage: serializeAws_json1_1UserStorage(input.UserStorage, context) }));
|
|
4599
4685
|
};
|
|
4686
|
+
var serializeAws_json1_1CreateWorkspaceImageRequest = function (input, context) {
|
|
4687
|
+
return __assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.Name != null && { Name: input.Name })), (input.Tags != null && { Tags: serializeAws_json1_1TagList(input.Tags, context) })), (input.WorkspaceId != null && { WorkspaceId: input.WorkspaceId }));
|
|
4688
|
+
};
|
|
4600
4689
|
var serializeAws_json1_1CreateWorkspacesRequest = function (input, context) {
|
|
4601
4690
|
return __assign({}, (input.Workspaces != null && {
|
|
4602
4691
|
Workspaces: serializeAws_json1_1WorkspaceRequestList(input.Workspaces, context),
|
|
@@ -5215,6 +5304,20 @@ var deserializeAws_json1_1CreateWorkspaceBundleResult = function (output, contex
|
|
|
5215
5304
|
: undefined,
|
|
5216
5305
|
};
|
|
5217
5306
|
};
|
|
5307
|
+
var deserializeAws_json1_1CreateWorkspaceImageResult = function (output, context) {
|
|
5308
|
+
return {
|
|
5309
|
+
Created: output.Created != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.Created))) : undefined,
|
|
5310
|
+
Description: __expectString(output.Description),
|
|
5311
|
+
ImageId: __expectString(output.ImageId),
|
|
5312
|
+
Name: __expectString(output.Name),
|
|
5313
|
+
OperatingSystem: output.OperatingSystem != null
|
|
5314
|
+
? deserializeAws_json1_1OperatingSystem(output.OperatingSystem, context)
|
|
5315
|
+
: undefined,
|
|
5316
|
+
OwnerAccountId: __expectString(output.OwnerAccountId),
|
|
5317
|
+
RequiredTenancy: __expectString(output.RequiredTenancy),
|
|
5318
|
+
State: __expectString(output.State),
|
|
5319
|
+
};
|
|
5320
|
+
};
|
|
5218
5321
|
var deserializeAws_json1_1CreateWorkspacesResult = function (output, context) {
|
|
5219
5322
|
return {
|
|
5220
5323
|
FailedRequests: output.FailedRequests != null
|
|
@@ -9,6 +9,7 @@ import { CreateIpGroupCommandInput, CreateIpGroupCommandOutput } from "./command
|
|
|
9
9
|
import { CreateTagsCommandInput, CreateTagsCommandOutput } from "./commands/CreateTagsCommand";
|
|
10
10
|
import { CreateUpdatedWorkspaceImageCommandInput, CreateUpdatedWorkspaceImageCommandOutput } from "./commands/CreateUpdatedWorkspaceImageCommand";
|
|
11
11
|
import { CreateWorkspaceBundleCommandInput, CreateWorkspaceBundleCommandOutput } from "./commands/CreateWorkspaceBundleCommand";
|
|
12
|
+
import { CreateWorkspaceImageCommandInput, CreateWorkspaceImageCommandOutput } from "./commands/CreateWorkspaceImageCommand";
|
|
12
13
|
import { CreateWorkspacesCommandInput, CreateWorkspacesCommandOutput } from "./commands/CreateWorkspacesCommand";
|
|
13
14
|
import { DeleteClientBrandingCommandInput, DeleteClientBrandingCommandOutput } from "./commands/DeleteClientBrandingCommand";
|
|
14
15
|
import { DeleteConnectClientAddInCommandInput, DeleteConnectClientAddInCommandOutput } from "./commands/DeleteConnectClientAddInCommand";
|
|
@@ -194,6 +195,12 @@ export declare class WorkSpaces extends WorkSpacesClient {
|
|
|
194
195
|
createWorkspaceBundle(args: CreateWorkspaceBundleCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkspaceBundleCommandOutput>;
|
|
195
196
|
createWorkspaceBundle(args: CreateWorkspaceBundleCommandInput, cb: (err: any, data?: CreateWorkspaceBundleCommandOutput) => void): void;
|
|
196
197
|
createWorkspaceBundle(args: CreateWorkspaceBundleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkspaceBundleCommandOutput) => void): void;
|
|
198
|
+
/**
|
|
199
|
+
* <p>Creates a new WorkSpace image from an existing WorkSpace.</p>
|
|
200
|
+
*/
|
|
201
|
+
createWorkspaceImage(args: CreateWorkspaceImageCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkspaceImageCommandOutput>;
|
|
202
|
+
createWorkspaceImage(args: CreateWorkspaceImageCommandInput, cb: (err: any, data?: CreateWorkspaceImageCommandOutput) => void): void;
|
|
203
|
+
createWorkspaceImage(args: CreateWorkspaceImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkspaceImageCommandOutput) => void): void;
|
|
197
204
|
/**
|
|
198
205
|
* <p>Creates one or more WorkSpaces.</p>
|
|
199
206
|
* <p>This operation is asynchronous and returns before the WorkSpaces are created.</p>
|
|
@@ -16,6 +16,7 @@ import { CreateIpGroupCommandInput, CreateIpGroupCommandOutput } from "./command
|
|
|
16
16
|
import { CreateTagsCommandInput, CreateTagsCommandOutput } from "./commands/CreateTagsCommand";
|
|
17
17
|
import { CreateUpdatedWorkspaceImageCommandInput, CreateUpdatedWorkspaceImageCommandOutput } from "./commands/CreateUpdatedWorkspaceImageCommand";
|
|
18
18
|
import { CreateWorkspaceBundleCommandInput, CreateWorkspaceBundleCommandOutput } from "./commands/CreateWorkspaceBundleCommand";
|
|
19
|
+
import { CreateWorkspaceImageCommandInput, CreateWorkspaceImageCommandOutput } from "./commands/CreateWorkspaceImageCommand";
|
|
19
20
|
import { CreateWorkspacesCommandInput, CreateWorkspacesCommandOutput } from "./commands/CreateWorkspacesCommand";
|
|
20
21
|
import { DeleteClientBrandingCommandInput, DeleteClientBrandingCommandOutput } from "./commands/DeleteClientBrandingCommand";
|
|
21
22
|
import { DeleteConnectClientAddInCommandInput, DeleteConnectClientAddInCommandOutput } from "./commands/DeleteConnectClientAddInCommand";
|
|
@@ -67,8 +68,8 @@ import { UpdateConnectionAliasPermissionCommandInput, UpdateConnectionAliasPermi
|
|
|
67
68
|
import { UpdateRulesOfIpGroupCommandInput, UpdateRulesOfIpGroupCommandOutput } from "./commands/UpdateRulesOfIpGroupCommand";
|
|
68
69
|
import { UpdateWorkspaceBundleCommandInput, UpdateWorkspaceBundleCommandOutput } from "./commands/UpdateWorkspaceBundleCommand";
|
|
69
70
|
import { UpdateWorkspaceImagePermissionCommandInput, UpdateWorkspaceImagePermissionCommandOutput } from "./commands/UpdateWorkspaceImagePermissionCommand";
|
|
70
|
-
export declare type ServiceInputTypes = AssociateConnectionAliasCommandInput | AssociateIpGroupsCommandInput | AuthorizeIpRulesCommandInput | CopyWorkspaceImageCommandInput | CreateConnectClientAddInCommandInput | CreateConnectionAliasCommandInput | CreateIpGroupCommandInput | CreateTagsCommandInput | CreateUpdatedWorkspaceImageCommandInput | CreateWorkspaceBundleCommandInput | 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 | ModifyClientPropertiesCommandInput | ModifySelfservicePermissionsCommandInput | ModifyWorkspaceAccessPropertiesCommandInput | ModifyWorkspaceCreationPropertiesCommandInput | ModifyWorkspacePropertiesCommandInput | ModifyWorkspaceStateCommandInput | RebootWorkspacesCommandInput | RebuildWorkspacesCommandInput | RegisterWorkspaceDirectoryCommandInput | RestoreWorkspaceCommandInput | RevokeIpRulesCommandInput | StartWorkspacesCommandInput | StopWorkspacesCommandInput | TerminateWorkspacesCommandInput | UpdateConnectClientAddInCommandInput | UpdateConnectionAliasPermissionCommandInput | UpdateRulesOfIpGroupCommandInput | UpdateWorkspaceBundleCommandInput | UpdateWorkspaceImagePermissionCommandInput;
|
|
71
|
-
export declare type ServiceOutputTypes = AssociateConnectionAliasCommandOutput | AssociateIpGroupsCommandOutput | AuthorizeIpRulesCommandOutput | CopyWorkspaceImageCommandOutput | CreateConnectClientAddInCommandOutput | CreateConnectionAliasCommandOutput | CreateIpGroupCommandOutput | CreateTagsCommandOutput | CreateUpdatedWorkspaceImageCommandOutput | CreateWorkspaceBundleCommandOutput | 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 | ModifyClientPropertiesCommandOutput | ModifySelfservicePermissionsCommandOutput | ModifyWorkspaceAccessPropertiesCommandOutput | ModifyWorkspaceCreationPropertiesCommandOutput | ModifyWorkspacePropertiesCommandOutput | ModifyWorkspaceStateCommandOutput | RebootWorkspacesCommandOutput | RebuildWorkspacesCommandOutput | RegisterWorkspaceDirectoryCommandOutput | RestoreWorkspaceCommandOutput | RevokeIpRulesCommandOutput | StartWorkspacesCommandOutput | StopWorkspacesCommandOutput | TerminateWorkspacesCommandOutput | UpdateConnectClientAddInCommandOutput | UpdateConnectionAliasPermissionCommandOutput | UpdateRulesOfIpGroupCommandOutput | UpdateWorkspaceBundleCommandOutput | UpdateWorkspaceImagePermissionCommandOutput;
|
|
71
|
+
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 | ModifyClientPropertiesCommandInput | ModifySelfservicePermissionsCommandInput | ModifyWorkspaceAccessPropertiesCommandInput | ModifyWorkspaceCreationPropertiesCommandInput | ModifyWorkspacePropertiesCommandInput | ModifyWorkspaceStateCommandInput | RebootWorkspacesCommandInput | RebuildWorkspacesCommandInput | RegisterWorkspaceDirectoryCommandInput | RestoreWorkspaceCommandInput | RevokeIpRulesCommandInput | StartWorkspacesCommandInput | StopWorkspacesCommandInput | TerminateWorkspacesCommandInput | UpdateConnectClientAddInCommandInput | UpdateConnectionAliasPermissionCommandInput | UpdateRulesOfIpGroupCommandInput | UpdateWorkspaceBundleCommandInput | UpdateWorkspaceImagePermissionCommandInput;
|
|
72
|
+
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 | ModifyClientPropertiesCommandOutput | ModifySelfservicePermissionsCommandOutput | ModifyWorkspaceAccessPropertiesCommandOutput | ModifyWorkspaceCreationPropertiesCommandOutput | ModifyWorkspacePropertiesCommandOutput | ModifyWorkspaceStateCommandOutput | RebootWorkspacesCommandOutput | RebuildWorkspacesCommandOutput | RegisterWorkspaceDirectoryCommandOutput | RestoreWorkspaceCommandOutput | RevokeIpRulesCommandOutput | StartWorkspacesCommandOutput | StopWorkspacesCommandOutput | TerminateWorkspacesCommandOutput | UpdateConnectClientAddInCommandOutput | UpdateConnectionAliasPermissionCommandOutput | UpdateRulesOfIpGroupCommandOutput | UpdateWorkspaceBundleCommandOutput | UpdateWorkspaceImagePermissionCommandOutput;
|
|
72
73
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
73
74
|
/**
|
|
74
75
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { CreateWorkspaceImageRequest, CreateWorkspaceImageResult } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesClientResolvedConfig } from "../WorkSpacesClient";
|
|
5
|
+
export interface CreateWorkspaceImageCommandInput extends CreateWorkspaceImageRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateWorkspaceImageCommandOutput extends CreateWorkspaceImageResult, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* <p>Creates a new WorkSpace image from an existing WorkSpace.</p>
|
|
11
|
+
* @example
|
|
12
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
13
|
+
* ```javascript
|
|
14
|
+
* import { WorkSpacesClient, CreateWorkspaceImageCommand } from "@aws-sdk/client-workspaces"; // ES Modules import
|
|
15
|
+
* // const { WorkSpacesClient, CreateWorkspaceImageCommand } = require("@aws-sdk/client-workspaces"); // CommonJS import
|
|
16
|
+
* const client = new WorkSpacesClient(config);
|
|
17
|
+
* const command = new CreateWorkspaceImageCommand(input);
|
|
18
|
+
* const response = await client.send(command);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @see {@link CreateWorkspaceImageCommandInput} for command's `input` shape.
|
|
22
|
+
* @see {@link CreateWorkspaceImageCommandOutput} for command's `response` shape.
|
|
23
|
+
* @see {@link WorkSpacesClientResolvedConfig | config} for WorkSpacesClient's `config` shape.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare class CreateWorkspaceImageCommand extends $Command<CreateWorkspaceImageCommandInput, CreateWorkspaceImageCommandOutput, WorkSpacesClientResolvedConfig> {
|
|
27
|
+
readonly input: CreateWorkspaceImageCommandInput;
|
|
28
|
+
constructor(input: CreateWorkspaceImageCommandInput);
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateWorkspaceImageCommandInput, CreateWorkspaceImageCommandOutput>;
|
|
33
|
+
private serialize;
|
|
34
|
+
private deserialize;
|
|
35
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./CreateIpGroupCommand";
|
|
|
8
8
|
export * from "./CreateTagsCommand";
|
|
9
9
|
export * from "./CreateUpdatedWorkspaceImageCommand";
|
|
10
10
|
export * from "./CreateWorkspaceBundleCommand";
|
|
11
|
+
export * from "./CreateWorkspaceImageCommand";
|
|
11
12
|
export * from "./CreateWorkspacesCommand";
|
|
12
13
|
export * from "./DeleteClientBrandingCommand";
|
|
13
14
|
export * from "./DeleteConnectClientAddInCommand";
|
|
@@ -646,6 +646,87 @@ export interface CreateWorkspaceBundleResult {
|
|
|
646
646
|
*/
|
|
647
647
|
WorkspaceBundle?: WorkspaceBundle;
|
|
648
648
|
}
|
|
649
|
+
export interface CreateWorkspaceImageRequest {
|
|
650
|
+
/**
|
|
651
|
+
* <p>The name of the new WorkSpace image.</p>
|
|
652
|
+
*/
|
|
653
|
+
Name: string | undefined;
|
|
654
|
+
/**
|
|
655
|
+
* <p>The description of the new WorkSpace image.</p>
|
|
656
|
+
*/
|
|
657
|
+
Description: string | undefined;
|
|
658
|
+
/**
|
|
659
|
+
* <p>The identifier of the source WorkSpace</p>
|
|
660
|
+
*/
|
|
661
|
+
WorkspaceId: string | undefined;
|
|
662
|
+
/**
|
|
663
|
+
* <p>The tags that you want to add to the new WorkSpace image.
|
|
664
|
+
* To add tags when you're creating the image, you must create an IAM policy that grants
|
|
665
|
+
* your IAM user permission to use <code>workspaces:CreateTags</code>.</p>
|
|
666
|
+
*/
|
|
667
|
+
Tags?: Tag[];
|
|
668
|
+
}
|
|
669
|
+
export declare enum OperatingSystemType {
|
|
670
|
+
LINUX = "LINUX",
|
|
671
|
+
WINDOWS = "WINDOWS"
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* <p>The operating system that the image is running.</p>
|
|
675
|
+
*/
|
|
676
|
+
export interface OperatingSystem {
|
|
677
|
+
/**
|
|
678
|
+
* <p>The operating system.</p>
|
|
679
|
+
*/
|
|
680
|
+
Type?: OperatingSystemType | string;
|
|
681
|
+
}
|
|
682
|
+
export declare enum WorkspaceImageRequiredTenancy {
|
|
683
|
+
DEDICATED = "DEDICATED",
|
|
684
|
+
DEFAULT = "DEFAULT"
|
|
685
|
+
}
|
|
686
|
+
export declare enum WorkspaceImageState {
|
|
687
|
+
AVAILABLE = "AVAILABLE",
|
|
688
|
+
ERROR = "ERROR",
|
|
689
|
+
PENDING = "PENDING"
|
|
690
|
+
}
|
|
691
|
+
export interface CreateWorkspaceImageResult {
|
|
692
|
+
/**
|
|
693
|
+
* <p>The identifier of the new WorkSpace image.</p>
|
|
694
|
+
*/
|
|
695
|
+
ImageId?: string;
|
|
696
|
+
/**
|
|
697
|
+
* <p>The name of the image.</p>
|
|
698
|
+
*/
|
|
699
|
+
Name?: string;
|
|
700
|
+
/**
|
|
701
|
+
* <p>The description of the image.</p>
|
|
702
|
+
*/
|
|
703
|
+
Description?: string;
|
|
704
|
+
/**
|
|
705
|
+
* <p>The operating system that the image is running.</p>
|
|
706
|
+
*/
|
|
707
|
+
OperatingSystem?: OperatingSystem;
|
|
708
|
+
/**
|
|
709
|
+
* <p>The availability status of the image.</p>
|
|
710
|
+
*/
|
|
711
|
+
State?: WorkspaceImageState | string;
|
|
712
|
+
/**
|
|
713
|
+
* <p>Specifies whether the image is running on dedicated hardware.
|
|
714
|
+
* When Bring Your Own License (BYOL) is enabled, this value is set
|
|
715
|
+
* to DEDICATED. For more information, see
|
|
716
|
+
* <a href="https://docs.aws.amazon.com/workspaces/latest/adminguide/byol-windows-images.htm">
|
|
717
|
+
* Bring Your Own Windows Desktop Images.</a>
|
|
718
|
+
* </p>
|
|
719
|
+
*/
|
|
720
|
+
RequiredTenancy?: WorkspaceImageRequiredTenancy | string;
|
|
721
|
+
/**
|
|
722
|
+
* <p>The date when the image was created.</p>
|
|
723
|
+
*/
|
|
724
|
+
Created?: Date;
|
|
725
|
+
/**
|
|
726
|
+
* <p>The identifier of the AWS account that owns the image.</p>
|
|
727
|
+
*/
|
|
728
|
+
OwnerAccountId?: string;
|
|
729
|
+
}
|
|
649
730
|
export declare enum RunningMode {
|
|
650
731
|
ALWAYS_ON = "ALWAYS_ON",
|
|
651
732
|
AUTO_STOP = "AUTO_STOP"
|
|
@@ -888,8 +969,7 @@ export declare enum DedicatedTenancySupportEnum {
|
|
|
888
969
|
*/
|
|
889
970
|
export interface DefaultClientBrandingAttributes {
|
|
890
971
|
/**
|
|
891
|
-
* <p>The logo
|
|
892
|
-
* format accepted is a binary data object that is converted from a <code>.png</code> file.</p>
|
|
972
|
+
* <p>The logo. The only image format accepted is a binary data object that is converted from a <code>.png</code> file.</p>
|
|
893
973
|
*/
|
|
894
974
|
LogoUrl?: string;
|
|
895
975
|
/**
|
|
@@ -933,7 +1013,8 @@ export interface DefaultClientBrandingAttributes {
|
|
|
933
1013
|
/**
|
|
934
1014
|
* <p>The login message. Specified as a key value pair, in which the key is a locale and the
|
|
935
1015
|
* value is the localized message for that locale. The only key supported is
|
|
936
|
-
*
|
|
1016
|
+
* <code>en_US</code>. The HTML tags supported include the following: <code>a, b, blockquote, br, cite, code, dd, dl, dt, div, em,
|
|
1017
|
+
* i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul</code>.</p>
|
|
937
1018
|
*/
|
|
938
1019
|
LoginMessage?: Record<string, string>;
|
|
939
1020
|
}
|
|
@@ -947,8 +1028,7 @@ export interface DefaultClientBrandingAttributes {
|
|
|
947
1028
|
*/
|
|
948
1029
|
export interface DefaultImportClientBrandingAttributes {
|
|
949
1030
|
/**
|
|
950
|
-
* <p>The logo. The only image
|
|
951
|
-
* format accepted is a binary data object that is converted from a <code>.png</code> file.</p>
|
|
1031
|
+
* <p>The logo. The only image format accepted is a binary data object that is converted from a <code>.png</code> file.</p>
|
|
952
1032
|
*/
|
|
953
1033
|
Logo?: Uint8Array;
|
|
954
1034
|
/**
|
|
@@ -992,7 +1072,8 @@ export interface DefaultImportClientBrandingAttributes {
|
|
|
992
1072
|
/**
|
|
993
1073
|
* <p>The login message. Specified as a key value pair, in which the key is a locale and the
|
|
994
1074
|
* value is the localized message for that locale. The only key supported is
|
|
995
|
-
*
|
|
1075
|
+
* <code>en_US</code>. The HTML tags supported include the following: <code>a, b, blockquote, br, cite, code, dd, dl, dt, div, em,
|
|
1076
|
+
* i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul</code>.</p>
|
|
996
1077
|
*/
|
|
997
1078
|
LoginMessage?: Record<string, string>;
|
|
998
1079
|
}
|
|
@@ -1171,8 +1252,8 @@ export interface DescribeClientBrandingRequest {
|
|
|
1171
1252
|
*/
|
|
1172
1253
|
export interface IosClientBrandingAttributes {
|
|
1173
1254
|
/**
|
|
1174
|
-
* <p>The logo. This is the
|
|
1175
|
-
*
|
|
1255
|
+
* <p>The logo. This is the standard-resolution display that has a 1:1 pixel density
|
|
1256
|
+
* (or @1x), where one pixel is equal
|
|
1176
1257
|
* to one point. The only image format accepted is a binary data object that is converted from
|
|
1177
1258
|
* a <code>.png</code> file.</p>
|
|
1178
1259
|
*/
|
|
@@ -1238,7 +1319,8 @@ export interface IosClientBrandingAttributes {
|
|
|
1238
1319
|
/**
|
|
1239
1320
|
* <p>The login message. Specified as a key value pair, in which the key is a locale and the
|
|
1240
1321
|
* value is the localized message for that locale. The only key supported is
|
|
1241
|
-
*
|
|
1322
|
+
* <code>en_US</code>. The HTML tags supported include the following: <code>a, b, blockquote, br, cite, code, dd, dl, dt, div, em,
|
|
1323
|
+
* i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul</code>.</p>
|
|
1242
1324
|
*/
|
|
1243
1325
|
LoginMessage?: Record<string, string>;
|
|
1244
1326
|
}
|
|
@@ -1708,28 +1790,6 @@ export interface DescribeWorkspaceImagesRequest {
|
|
|
1708
1790
|
*/
|
|
1709
1791
|
MaxResults?: number;
|
|
1710
1792
|
}
|
|
1711
|
-
export declare enum OperatingSystemType {
|
|
1712
|
-
LINUX = "LINUX",
|
|
1713
|
-
WINDOWS = "WINDOWS"
|
|
1714
|
-
}
|
|
1715
|
-
/**
|
|
1716
|
-
* <p>The operating system that the image is running.</p>
|
|
1717
|
-
*/
|
|
1718
|
-
export interface OperatingSystem {
|
|
1719
|
-
/**
|
|
1720
|
-
* <p>The operating system.</p>
|
|
1721
|
-
*/
|
|
1722
|
-
Type?: OperatingSystemType | string;
|
|
1723
|
-
}
|
|
1724
|
-
export declare enum WorkspaceImageRequiredTenancy {
|
|
1725
|
-
DEDICATED = "DEDICATED",
|
|
1726
|
-
DEFAULT = "DEFAULT"
|
|
1727
|
-
}
|
|
1728
|
-
export declare enum WorkspaceImageState {
|
|
1729
|
-
AVAILABLE = "AVAILABLE",
|
|
1730
|
-
ERROR = "ERROR",
|
|
1731
|
-
PENDING = "PENDING"
|
|
1732
|
-
}
|
|
1733
1793
|
/**
|
|
1734
1794
|
* <p>Describes whether a WorkSpace image needs to be updated with the latest drivers and
|
|
1735
1795
|
* other components required by Amazon WorkSpaces.</p>
|
|
@@ -2047,7 +2107,8 @@ export interface IosImportClientBrandingAttributes {
|
|
|
2047
2107
|
/**
|
|
2048
2108
|
* <p>The login message. Specified as a key value pair, in which the key is a locale and the
|
|
2049
2109
|
* value is the localized message for that locale. The only key supported is
|
|
2050
|
-
*
|
|
2110
|
+
* <code>en_US</code>. The HTML tags supported include the following: <code>a, b, blockquote, br, cite, code, dd, dl, dt, div, em,
|
|
2111
|
+
* i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul</code>.</p>
|
|
2051
2112
|
*/
|
|
2052
2113
|
LoginMessage?: Record<string, string>;
|
|
2053
2114
|
}
|
|
@@ -2788,6 +2849,18 @@ export declare const CreateWorkspaceBundleRequestFilterSensitiveLog: (obj: Creat
|
|
|
2788
2849
|
* @internal
|
|
2789
2850
|
*/
|
|
2790
2851
|
export declare const CreateWorkspaceBundleResultFilterSensitiveLog: (obj: CreateWorkspaceBundleResult) => any;
|
|
2852
|
+
/**
|
|
2853
|
+
* @internal
|
|
2854
|
+
*/
|
|
2855
|
+
export declare const CreateWorkspaceImageRequestFilterSensitiveLog: (obj: CreateWorkspaceImageRequest) => any;
|
|
2856
|
+
/**
|
|
2857
|
+
* @internal
|
|
2858
|
+
*/
|
|
2859
|
+
export declare const OperatingSystemFilterSensitiveLog: (obj: OperatingSystem) => any;
|
|
2860
|
+
/**
|
|
2861
|
+
* @internal
|
|
2862
|
+
*/
|
|
2863
|
+
export declare const CreateWorkspaceImageResultFilterSensitiveLog: (obj: CreateWorkspaceImageResult) => any;
|
|
2791
2864
|
/**
|
|
2792
2865
|
* @internal
|
|
2793
2866
|
*/
|
|
@@ -3016,10 +3089,6 @@ export declare const DescribeWorkspaceImagePermissionsResultFilterSensitiveLog:
|
|
|
3016
3089
|
* @internal
|
|
3017
3090
|
*/
|
|
3018
3091
|
export declare const DescribeWorkspaceImagesRequestFilterSensitiveLog: (obj: DescribeWorkspaceImagesRequest) => any;
|
|
3019
|
-
/**
|
|
3020
|
-
* @internal
|
|
3021
|
-
*/
|
|
3022
|
-
export declare const OperatingSystemFilterSensitiveLog: (obj: OperatingSystem) => any;
|
|
3023
3092
|
/**
|
|
3024
3093
|
* @internal
|
|
3025
3094
|
*/
|
|
@@ -10,6 +10,7 @@ import { CreateIpGroupCommandInput, CreateIpGroupCommandOutput } from "../comman
|
|
|
10
10
|
import { CreateTagsCommandInput, CreateTagsCommandOutput } from "../commands/CreateTagsCommand";
|
|
11
11
|
import { CreateUpdatedWorkspaceImageCommandInput, CreateUpdatedWorkspaceImageCommandOutput } from "../commands/CreateUpdatedWorkspaceImageCommand";
|
|
12
12
|
import { CreateWorkspaceBundleCommandInput, CreateWorkspaceBundleCommandOutput } from "../commands/CreateWorkspaceBundleCommand";
|
|
13
|
+
import { CreateWorkspaceImageCommandInput, CreateWorkspaceImageCommandOutput } from "../commands/CreateWorkspaceImageCommand";
|
|
13
14
|
import { CreateWorkspacesCommandInput, CreateWorkspacesCommandOutput } from "../commands/CreateWorkspacesCommand";
|
|
14
15
|
import { DeleteClientBrandingCommandInput, DeleteClientBrandingCommandOutput } from "../commands/DeleteClientBrandingCommand";
|
|
15
16
|
import { DeleteConnectClientAddInCommandInput, DeleteConnectClientAddInCommandOutput } from "../commands/DeleteConnectClientAddInCommand";
|
|
@@ -71,6 +72,7 @@ export declare const serializeAws_json1_1CreateIpGroupCommand: (input: CreateIpG
|
|
|
71
72
|
export declare const serializeAws_json1_1CreateTagsCommand: (input: CreateTagsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
72
73
|
export declare const serializeAws_json1_1CreateUpdatedWorkspaceImageCommand: (input: CreateUpdatedWorkspaceImageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
74
|
export declare const serializeAws_json1_1CreateWorkspaceBundleCommand: (input: CreateWorkspaceBundleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
75
|
+
export declare const serializeAws_json1_1CreateWorkspaceImageCommand: (input: CreateWorkspaceImageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
74
76
|
export declare const serializeAws_json1_1CreateWorkspacesCommand: (input: CreateWorkspacesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
75
77
|
export declare const serializeAws_json1_1DeleteClientBrandingCommand: (input: DeleteClientBrandingCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
76
78
|
export declare const serializeAws_json1_1DeleteConnectClientAddInCommand: (input: DeleteConnectClientAddInCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -132,6 +134,7 @@ export declare const deserializeAws_json1_1CreateIpGroupCommand: (output: __Http
|
|
|
132
134
|
export declare const deserializeAws_json1_1CreateTagsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateTagsCommandOutput>;
|
|
133
135
|
export declare const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateUpdatedWorkspaceImageCommandOutput>;
|
|
134
136
|
export declare const deserializeAws_json1_1CreateWorkspaceBundleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateWorkspaceBundleCommandOutput>;
|
|
137
|
+
export declare const deserializeAws_json1_1CreateWorkspaceImageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateWorkspaceImageCommandOutput>;
|
|
135
138
|
export declare const deserializeAws_json1_1CreateWorkspacesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateWorkspacesCommandOutput>;
|
|
136
139
|
export declare const deserializeAws_json1_1DeleteClientBrandingCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteClientBrandingCommandOutput>;
|
|
137
140
|
export declare const deserializeAws_json1_1DeleteConnectClientAddInCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteConnectClientAddInCommandOutput>;
|
|
@@ -9,6 +9,7 @@ import { CreateIpGroupCommandInput, CreateIpGroupCommandOutput } from "./command
|
|
|
9
9
|
import { CreateTagsCommandInput, CreateTagsCommandOutput } from "./commands/CreateTagsCommand";
|
|
10
10
|
import { CreateUpdatedWorkspaceImageCommandInput, CreateUpdatedWorkspaceImageCommandOutput } from "./commands/CreateUpdatedWorkspaceImageCommand";
|
|
11
11
|
import { CreateWorkspaceBundleCommandInput, CreateWorkspaceBundleCommandOutput } from "./commands/CreateWorkspaceBundleCommand";
|
|
12
|
+
import { CreateWorkspaceImageCommandInput, CreateWorkspaceImageCommandOutput } from "./commands/CreateWorkspaceImageCommand";
|
|
12
13
|
import { CreateWorkspacesCommandInput, CreateWorkspacesCommandOutput } from "./commands/CreateWorkspacesCommand";
|
|
13
14
|
import { DeleteClientBrandingCommandInput, DeleteClientBrandingCommandOutput } from "./commands/DeleteClientBrandingCommand";
|
|
14
15
|
import { DeleteConnectClientAddInCommandInput, DeleteConnectClientAddInCommandOutput } from "./commands/DeleteConnectClientAddInCommand";
|
|
@@ -104,6 +105,10 @@ export declare class WorkSpaces extends WorkSpacesClient {
|
|
|
104
105
|
createWorkspaceBundle(args: CreateWorkspaceBundleCommandInput, cb: (err: any, data?: CreateWorkspaceBundleCommandOutput) => void): void;
|
|
105
106
|
createWorkspaceBundle(args: CreateWorkspaceBundleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkspaceBundleCommandOutput) => void): void;
|
|
106
107
|
|
|
108
|
+
createWorkspaceImage(args: CreateWorkspaceImageCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkspaceImageCommandOutput>;
|
|
109
|
+
createWorkspaceImage(args: CreateWorkspaceImageCommandInput, cb: (err: any, data?: CreateWorkspaceImageCommandOutput) => void): void;
|
|
110
|
+
createWorkspaceImage(args: CreateWorkspaceImageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkspaceImageCommandOutput) => void): void;
|
|
111
|
+
|
|
107
112
|
createWorkspaces(args: CreateWorkspacesCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkspacesCommandOutput>;
|
|
108
113
|
createWorkspaces(args: CreateWorkspacesCommandInput, cb: (err: any, data?: CreateWorkspacesCommandOutput) => void): void;
|
|
109
114
|
createWorkspaces(args: CreateWorkspacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkspacesCommandOutput) => void): void;
|
|
@@ -16,6 +16,7 @@ import { CreateIpGroupCommandInput, CreateIpGroupCommandOutput } from "./command
|
|
|
16
16
|
import { CreateTagsCommandInput, CreateTagsCommandOutput } from "./commands/CreateTagsCommand";
|
|
17
17
|
import { CreateUpdatedWorkspaceImageCommandInput, CreateUpdatedWorkspaceImageCommandOutput } from "./commands/CreateUpdatedWorkspaceImageCommand";
|
|
18
18
|
import { CreateWorkspaceBundleCommandInput, CreateWorkspaceBundleCommandOutput } from "./commands/CreateWorkspaceBundleCommand";
|
|
19
|
+
import { CreateWorkspaceImageCommandInput, CreateWorkspaceImageCommandOutput } from "./commands/CreateWorkspaceImageCommand";
|
|
19
20
|
import { CreateWorkspacesCommandInput, CreateWorkspacesCommandOutput } from "./commands/CreateWorkspacesCommand";
|
|
20
21
|
import { DeleteClientBrandingCommandInput, DeleteClientBrandingCommandOutput } from "./commands/DeleteClientBrandingCommand";
|
|
21
22
|
import { DeleteConnectClientAddInCommandInput, DeleteConnectClientAddInCommandOutput } from "./commands/DeleteConnectClientAddInCommand";
|
|
@@ -67,8 +68,8 @@ import { UpdateConnectionAliasPermissionCommandInput, UpdateConnectionAliasPermi
|
|
|
67
68
|
import { UpdateRulesOfIpGroupCommandInput, UpdateRulesOfIpGroupCommandOutput } from "./commands/UpdateRulesOfIpGroupCommand";
|
|
68
69
|
import { UpdateWorkspaceBundleCommandInput, UpdateWorkspaceBundleCommandOutput } from "./commands/UpdateWorkspaceBundleCommand";
|
|
69
70
|
import { UpdateWorkspaceImagePermissionCommandInput, UpdateWorkspaceImagePermissionCommandOutput } from "./commands/UpdateWorkspaceImagePermissionCommand";
|
|
70
|
-
export declare type ServiceInputTypes = AssociateConnectionAliasCommandInput | AssociateIpGroupsCommandInput | AuthorizeIpRulesCommandInput | CopyWorkspaceImageCommandInput | CreateConnectClientAddInCommandInput | CreateConnectionAliasCommandInput | CreateIpGroupCommandInput | CreateTagsCommandInput | CreateUpdatedWorkspaceImageCommandInput | CreateWorkspaceBundleCommandInput | 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 | ModifyClientPropertiesCommandInput | ModifySelfservicePermissionsCommandInput | ModifyWorkspaceAccessPropertiesCommandInput | ModifyWorkspaceCreationPropertiesCommandInput | ModifyWorkspacePropertiesCommandInput | ModifyWorkspaceStateCommandInput | RebootWorkspacesCommandInput | RebuildWorkspacesCommandInput | RegisterWorkspaceDirectoryCommandInput | RestoreWorkspaceCommandInput | RevokeIpRulesCommandInput | StartWorkspacesCommandInput | StopWorkspacesCommandInput | TerminateWorkspacesCommandInput | UpdateConnectClientAddInCommandInput | UpdateConnectionAliasPermissionCommandInput | UpdateRulesOfIpGroupCommandInput | UpdateWorkspaceBundleCommandInput | UpdateWorkspaceImagePermissionCommandInput;
|
|
71
|
-
export declare type ServiceOutputTypes = AssociateConnectionAliasCommandOutput | AssociateIpGroupsCommandOutput | AuthorizeIpRulesCommandOutput | CopyWorkspaceImageCommandOutput | CreateConnectClientAddInCommandOutput | CreateConnectionAliasCommandOutput | CreateIpGroupCommandOutput | CreateTagsCommandOutput | CreateUpdatedWorkspaceImageCommandOutput | CreateWorkspaceBundleCommandOutput | 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 | ModifyClientPropertiesCommandOutput | ModifySelfservicePermissionsCommandOutput | ModifyWorkspaceAccessPropertiesCommandOutput | ModifyWorkspaceCreationPropertiesCommandOutput | ModifyWorkspacePropertiesCommandOutput | ModifyWorkspaceStateCommandOutput | RebootWorkspacesCommandOutput | RebuildWorkspacesCommandOutput | RegisterWorkspaceDirectoryCommandOutput | RestoreWorkspaceCommandOutput | RevokeIpRulesCommandOutput | StartWorkspacesCommandOutput | StopWorkspacesCommandOutput | TerminateWorkspacesCommandOutput | UpdateConnectClientAddInCommandOutput | UpdateConnectionAliasPermissionCommandOutput | UpdateRulesOfIpGroupCommandOutput | UpdateWorkspaceBundleCommandOutput | UpdateWorkspaceImagePermissionCommandOutput;
|
|
71
|
+
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 | ModifyClientPropertiesCommandInput | ModifySelfservicePermissionsCommandInput | ModifyWorkspaceAccessPropertiesCommandInput | ModifyWorkspaceCreationPropertiesCommandInput | ModifyWorkspacePropertiesCommandInput | ModifyWorkspaceStateCommandInput | RebootWorkspacesCommandInput | RebuildWorkspacesCommandInput | RegisterWorkspaceDirectoryCommandInput | RestoreWorkspaceCommandInput | RevokeIpRulesCommandInput | StartWorkspacesCommandInput | StopWorkspacesCommandInput | TerminateWorkspacesCommandInput | UpdateConnectClientAddInCommandInput | UpdateConnectionAliasPermissionCommandInput | UpdateRulesOfIpGroupCommandInput | UpdateWorkspaceBundleCommandInput | UpdateWorkspaceImagePermissionCommandInput;
|
|
72
|
+
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 | ModifyClientPropertiesCommandOutput | ModifySelfservicePermissionsCommandOutput | ModifyWorkspaceAccessPropertiesCommandOutput | ModifyWorkspaceCreationPropertiesCommandOutput | ModifyWorkspacePropertiesCommandOutput | ModifyWorkspaceStateCommandOutput | RebootWorkspacesCommandOutput | RebuildWorkspacesCommandOutput | RegisterWorkspaceDirectoryCommandOutput | RestoreWorkspaceCommandOutput | RevokeIpRulesCommandOutput | StartWorkspacesCommandOutput | StopWorkspacesCommandOutput | TerminateWorkspacesCommandOutput | UpdateConnectClientAddInCommandOutput | UpdateConnectionAliasPermissionCommandOutput | UpdateRulesOfIpGroupCommandOutput | UpdateWorkspaceBundleCommandOutput | UpdateWorkspaceImagePermissionCommandOutput;
|
|
72
73
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
73
74
|
|
|
74
75
|
requestHandler?: __HttpHandler;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
3
|
+
import { CreateWorkspaceImageRequest, CreateWorkspaceImageResult } from "../models/models_0";
|
|
4
|
+
import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesClientResolvedConfig } from "../WorkSpacesClient";
|
|
5
|
+
export interface CreateWorkspaceImageCommandInput extends CreateWorkspaceImageRequest {
|
|
6
|
+
}
|
|
7
|
+
export interface CreateWorkspaceImageCommandOutput extends CreateWorkspaceImageResult, __MetadataBearer {
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare class CreateWorkspaceImageCommand extends $Command<CreateWorkspaceImageCommandInput, CreateWorkspaceImageCommandOutput, WorkSpacesClientResolvedConfig> {
|
|
11
|
+
readonly input: CreateWorkspaceImageCommandInput;
|
|
12
|
+
constructor(input: CreateWorkspaceImageCommandInput);
|
|
13
|
+
|
|
14
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WorkSpacesClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateWorkspaceImageCommandInput, CreateWorkspaceImageCommandOutput>;
|
|
15
|
+
private serialize;
|
|
16
|
+
private deserialize;
|
|
17
|
+
}
|
|
@@ -8,6 +8,7 @@ export * from "./CreateIpGroupCommand";
|
|
|
8
8
|
export * from "./CreateTagsCommand";
|
|
9
9
|
export * from "./CreateUpdatedWorkspaceImageCommand";
|
|
10
10
|
export * from "./CreateWorkspaceBundleCommand";
|
|
11
|
+
export * from "./CreateWorkspaceImageCommand";
|
|
11
12
|
export * from "./CreateWorkspacesCommand";
|
|
12
13
|
export * from "./DeleteClientBrandingCommand";
|
|
13
14
|
export * from "./DeleteConnectClientAddInCommand";
|
|
@@ -374,6 +374,52 @@ export interface CreateWorkspaceBundleResult {
|
|
|
374
374
|
|
|
375
375
|
WorkspaceBundle?: WorkspaceBundle;
|
|
376
376
|
}
|
|
377
|
+
export interface CreateWorkspaceImageRequest {
|
|
378
|
+
|
|
379
|
+
Name: string | undefined;
|
|
380
|
+
|
|
381
|
+
Description: string | undefined;
|
|
382
|
+
|
|
383
|
+
WorkspaceId: string | undefined;
|
|
384
|
+
|
|
385
|
+
Tags?: Tag[];
|
|
386
|
+
}
|
|
387
|
+
export declare enum OperatingSystemType {
|
|
388
|
+
LINUX = "LINUX",
|
|
389
|
+
WINDOWS = "WINDOWS"
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export interface OperatingSystem {
|
|
393
|
+
|
|
394
|
+
Type?: OperatingSystemType | string;
|
|
395
|
+
}
|
|
396
|
+
export declare enum WorkspaceImageRequiredTenancy {
|
|
397
|
+
DEDICATED = "DEDICATED",
|
|
398
|
+
DEFAULT = "DEFAULT"
|
|
399
|
+
}
|
|
400
|
+
export declare enum WorkspaceImageState {
|
|
401
|
+
AVAILABLE = "AVAILABLE",
|
|
402
|
+
ERROR = "ERROR",
|
|
403
|
+
PENDING = "PENDING"
|
|
404
|
+
}
|
|
405
|
+
export interface CreateWorkspaceImageResult {
|
|
406
|
+
|
|
407
|
+
ImageId?: string;
|
|
408
|
+
|
|
409
|
+
Name?: string;
|
|
410
|
+
|
|
411
|
+
Description?: string;
|
|
412
|
+
|
|
413
|
+
OperatingSystem?: OperatingSystem;
|
|
414
|
+
|
|
415
|
+
State?: WorkspaceImageState | string;
|
|
416
|
+
|
|
417
|
+
RequiredTenancy?: WorkspaceImageRequiredTenancy | string;
|
|
418
|
+
|
|
419
|
+
Created?: Date;
|
|
420
|
+
|
|
421
|
+
OwnerAccountId?: string;
|
|
422
|
+
}
|
|
377
423
|
export declare enum RunningMode {
|
|
378
424
|
ALWAYS_ON = "ALWAYS_ON",
|
|
379
425
|
AUTO_STOP = "AUTO_STOP"
|
|
@@ -880,24 +926,6 @@ export interface DescribeWorkspaceImagesRequest {
|
|
|
880
926
|
|
|
881
927
|
MaxResults?: number;
|
|
882
928
|
}
|
|
883
|
-
export declare enum OperatingSystemType {
|
|
884
|
-
LINUX = "LINUX",
|
|
885
|
-
WINDOWS = "WINDOWS"
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
export interface OperatingSystem {
|
|
889
|
-
|
|
890
|
-
Type?: OperatingSystemType | string;
|
|
891
|
-
}
|
|
892
|
-
export declare enum WorkspaceImageRequiredTenancy {
|
|
893
|
-
DEDICATED = "DEDICATED",
|
|
894
|
-
DEFAULT = "DEFAULT"
|
|
895
|
-
}
|
|
896
|
-
export declare enum WorkspaceImageState {
|
|
897
|
-
AVAILABLE = "AVAILABLE",
|
|
898
|
-
ERROR = "ERROR",
|
|
899
|
-
PENDING = "PENDING"
|
|
900
|
-
}
|
|
901
929
|
|
|
902
930
|
export interface UpdateResult {
|
|
903
931
|
|
|
@@ -1426,6 +1454,12 @@ export declare const CreateWorkspaceBundleRequestFilterSensitiveLog: (obj: Creat
|
|
|
1426
1454
|
|
|
1427
1455
|
export declare const CreateWorkspaceBundleResultFilterSensitiveLog: (obj: CreateWorkspaceBundleResult) => any;
|
|
1428
1456
|
|
|
1457
|
+
export declare const CreateWorkspaceImageRequestFilterSensitiveLog: (obj: CreateWorkspaceImageRequest) => any;
|
|
1458
|
+
|
|
1459
|
+
export declare const OperatingSystemFilterSensitiveLog: (obj: OperatingSystem) => any;
|
|
1460
|
+
|
|
1461
|
+
export declare const CreateWorkspaceImageResultFilterSensitiveLog: (obj: CreateWorkspaceImageResult) => any;
|
|
1462
|
+
|
|
1429
1463
|
export declare const WorkspacePropertiesFilterSensitiveLog: (obj: WorkspaceProperties) => any;
|
|
1430
1464
|
|
|
1431
1465
|
export declare const WorkspaceRequestFilterSensitiveLog: (obj: WorkspaceRequest) => any;
|
|
@@ -1540,8 +1574,6 @@ export declare const DescribeWorkspaceImagePermissionsResultFilterSensitiveLog:
|
|
|
1540
1574
|
|
|
1541
1575
|
export declare const DescribeWorkspaceImagesRequestFilterSensitiveLog: (obj: DescribeWorkspaceImagesRequest) => any;
|
|
1542
1576
|
|
|
1543
|
-
export declare const OperatingSystemFilterSensitiveLog: (obj: OperatingSystem) => any;
|
|
1544
|
-
|
|
1545
1577
|
export declare const UpdateResultFilterSensitiveLog: (obj: UpdateResult) => any;
|
|
1546
1578
|
|
|
1547
1579
|
export declare const WorkspaceImageFilterSensitiveLog: (obj: WorkspaceImage) => any;
|
|
@@ -10,6 +10,7 @@ import { CreateIpGroupCommandInput, CreateIpGroupCommandOutput } from "../comman
|
|
|
10
10
|
import { CreateTagsCommandInput, CreateTagsCommandOutput } from "../commands/CreateTagsCommand";
|
|
11
11
|
import { CreateUpdatedWorkspaceImageCommandInput, CreateUpdatedWorkspaceImageCommandOutput } from "../commands/CreateUpdatedWorkspaceImageCommand";
|
|
12
12
|
import { CreateWorkspaceBundleCommandInput, CreateWorkspaceBundleCommandOutput } from "../commands/CreateWorkspaceBundleCommand";
|
|
13
|
+
import { CreateWorkspaceImageCommandInput, CreateWorkspaceImageCommandOutput } from "../commands/CreateWorkspaceImageCommand";
|
|
13
14
|
import { CreateWorkspacesCommandInput, CreateWorkspacesCommandOutput } from "../commands/CreateWorkspacesCommand";
|
|
14
15
|
import { DeleteClientBrandingCommandInput, DeleteClientBrandingCommandOutput } from "../commands/DeleteClientBrandingCommand";
|
|
15
16
|
import { DeleteConnectClientAddInCommandInput, DeleteConnectClientAddInCommandOutput } from "../commands/DeleteConnectClientAddInCommand";
|
|
@@ -71,6 +72,7 @@ export declare const serializeAws_json1_1CreateIpGroupCommand: (input: CreateIpG
|
|
|
71
72
|
export declare const serializeAws_json1_1CreateTagsCommand: (input: CreateTagsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
72
73
|
export declare const serializeAws_json1_1CreateUpdatedWorkspaceImageCommand: (input: CreateUpdatedWorkspaceImageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
74
|
export declare const serializeAws_json1_1CreateWorkspaceBundleCommand: (input: CreateWorkspaceBundleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
75
|
+
export declare const serializeAws_json1_1CreateWorkspaceImageCommand: (input: CreateWorkspaceImageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
74
76
|
export declare const serializeAws_json1_1CreateWorkspacesCommand: (input: CreateWorkspacesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
75
77
|
export declare const serializeAws_json1_1DeleteClientBrandingCommand: (input: DeleteClientBrandingCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
76
78
|
export declare const serializeAws_json1_1DeleteConnectClientAddInCommand: (input: DeleteConnectClientAddInCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
@@ -132,6 +134,7 @@ export declare const deserializeAws_json1_1CreateIpGroupCommand: (output: __Http
|
|
|
132
134
|
export declare const deserializeAws_json1_1CreateTagsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateTagsCommandOutput>;
|
|
133
135
|
export declare const deserializeAws_json1_1CreateUpdatedWorkspaceImageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateUpdatedWorkspaceImageCommandOutput>;
|
|
134
136
|
export declare const deserializeAws_json1_1CreateWorkspaceBundleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateWorkspaceBundleCommandOutput>;
|
|
137
|
+
export declare const deserializeAws_json1_1CreateWorkspaceImageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateWorkspaceImageCommandOutput>;
|
|
135
138
|
export declare const deserializeAws_json1_1CreateWorkspacesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateWorkspacesCommandOutput>;
|
|
136
139
|
export declare const deserializeAws_json1_1DeleteClientBrandingCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteClientBrandingCommandOutput>;
|
|
137
140
|
export declare const deserializeAws_json1_1DeleteConnectClientAddInCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteConnectClientAddInCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-workspaces",
|
|
3
3
|
"description": "AWS SDK for JavaScript Workspaces Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.138.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|