@aws-sdk/client-workspaces 3.556.0 → 3.563.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.
Files changed (42) hide show
  1. package/README.md +55 -7
  2. package/dist-cjs/index.js +372 -24
  3. package/dist-es/WorkSpaces.js +12 -0
  4. package/dist-es/commands/AcceptAccountLinkInvitationCommand.js +24 -0
  5. package/dist-es/commands/CreateAccountLinkInvitationCommand.js +24 -0
  6. package/dist-es/commands/DeleteAccountLinkInvitationCommand.js +24 -0
  7. package/dist-es/commands/GetAccountLinkCommand.js +24 -0
  8. package/dist-es/commands/ListAccountLinksCommand.js +24 -0
  9. package/dist-es/commands/RejectAccountLinkInvitationCommand.js +24 -0
  10. package/dist-es/commands/index.js +6 -0
  11. package/dist-es/models/models_0.js +60 -13
  12. package/dist-es/pagination/ListAccountLinksPaginator.js +4 -0
  13. package/dist-es/pagination/index.js +1 -0
  14. package/dist-es/protocols/Aws_json1_1.js +154 -4
  15. package/dist-types/WorkSpaces.d.ts +44 -0
  16. package/dist-types/WorkSpacesClient.d.ts +8 -2
  17. package/dist-types/commands/AcceptAccountLinkInvitationCommand.d.ts +84 -0
  18. package/dist-types/commands/CreateAccountLinkInvitationCommand.d.ts +78 -0
  19. package/dist-types/commands/DeleteAccountLinkInvitationCommand.d.ts +81 -0
  20. package/dist-types/commands/DescribeAccountCommand.d.ts +1 -0
  21. package/dist-types/commands/GetAccountLinkCommand.d.ts +78 -0
  22. package/dist-types/commands/ListAccountLinksCommand.d.ts +81 -0
  23. package/dist-types/commands/RejectAccountLinkInvitationCommand.d.ts +81 -0
  24. package/dist-types/commands/index.d.ts +6 -0
  25. package/dist-types/models/models_0.d.ts +272 -17
  26. package/dist-types/pagination/ListAccountLinksPaginator.d.ts +7 -0
  27. package/dist-types/pagination/index.d.ts +1 -0
  28. package/dist-types/protocols/Aws_json1_1.d.ts +54 -0
  29. package/dist-types/ts3.4/WorkSpaces.d.ts +104 -0
  30. package/dist-types/ts3.4/WorkSpacesClient.d.ts +36 -0
  31. package/dist-types/ts3.4/commands/AcceptAccountLinkInvitationCommand.d.ts +39 -0
  32. package/dist-types/ts3.4/commands/CreateAccountLinkInvitationCommand.d.ts +39 -0
  33. package/dist-types/ts3.4/commands/DeleteAccountLinkInvitationCommand.d.ts +39 -0
  34. package/dist-types/ts3.4/commands/GetAccountLinkCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/ListAccountLinksCommand.d.ts +38 -0
  36. package/dist-types/ts3.4/commands/RejectAccountLinkInvitationCommand.d.ts +39 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +6 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +93 -8
  39. package/dist-types/ts3.4/pagination/ListAccountLinksPaginator.d.ts +11 -0
  40. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  41. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +72 -0
  42. package/package.json +2 -2
@@ -1,9 +1,11 @@
1
1
  import { createAggregatedClient } from "@smithy/smithy-client";
2
+ import { AcceptAccountLinkInvitationCommand, } from "./commands/AcceptAccountLinkInvitationCommand";
2
3
  import { AssociateConnectionAliasCommand, } from "./commands/AssociateConnectionAliasCommand";
3
4
  import { AssociateIpGroupsCommand, } from "./commands/AssociateIpGroupsCommand";
4
5
  import { AssociateWorkspaceApplicationCommand, } from "./commands/AssociateWorkspaceApplicationCommand";
5
6
  import { AuthorizeIpRulesCommand, } from "./commands/AuthorizeIpRulesCommand";
6
7
  import { CopyWorkspaceImageCommand, } from "./commands/CopyWorkspaceImageCommand";
8
+ import { CreateAccountLinkInvitationCommand, } from "./commands/CreateAccountLinkInvitationCommand";
7
9
  import { CreateConnectClientAddInCommand, } from "./commands/CreateConnectClientAddInCommand";
8
10
  import { CreateConnectionAliasCommand, } from "./commands/CreateConnectionAliasCommand";
9
11
  import { CreateIpGroupCommand, } from "./commands/CreateIpGroupCommand";
@@ -13,6 +15,7 @@ import { CreateUpdatedWorkspaceImageCommand, } from "./commands/CreateUpdatedWor
13
15
  import { CreateWorkspaceBundleCommand, } from "./commands/CreateWorkspaceBundleCommand";
14
16
  import { CreateWorkspaceImageCommand, } from "./commands/CreateWorkspaceImageCommand";
15
17
  import { CreateWorkspacesCommand, } from "./commands/CreateWorkspacesCommand";
18
+ import { DeleteAccountLinkInvitationCommand, } from "./commands/DeleteAccountLinkInvitationCommand";
16
19
  import { DeleteClientBrandingCommand, } from "./commands/DeleteClientBrandingCommand";
17
20
  import { DeleteConnectClientAddInCommand, } from "./commands/DeleteConnectClientAddInCommand";
18
21
  import { DeleteConnectionAliasCommand, } from "./commands/DeleteConnectionAliasCommand";
@@ -46,8 +49,10 @@ import { DescribeWorkspaceSnapshotsCommand, } from "./commands/DescribeWorkspace
46
49
  import { DisassociateConnectionAliasCommand, } from "./commands/DisassociateConnectionAliasCommand";
47
50
  import { DisassociateIpGroupsCommand, } from "./commands/DisassociateIpGroupsCommand";
48
51
  import { DisassociateWorkspaceApplicationCommand, } from "./commands/DisassociateWorkspaceApplicationCommand";
52
+ import { GetAccountLinkCommand, } from "./commands/GetAccountLinkCommand";
49
53
  import { ImportClientBrandingCommand, } from "./commands/ImportClientBrandingCommand";
50
54
  import { ImportWorkspaceImageCommand, } from "./commands/ImportWorkspaceImageCommand";
55
+ import { ListAccountLinksCommand, } from "./commands/ListAccountLinksCommand";
51
56
  import { ListAvailableManagementCidrRangesCommand, } from "./commands/ListAvailableManagementCidrRangesCommand";
52
57
  import { MigrateWorkspaceCommand, } from "./commands/MigrateWorkspaceCommand";
53
58
  import { ModifyAccountCommand, } from "./commands/ModifyAccountCommand";
@@ -62,6 +67,7 @@ import { ModifyWorkspaceStateCommand, } from "./commands/ModifyWorkspaceStateCom
62
67
  import { RebootWorkspacesCommand, } from "./commands/RebootWorkspacesCommand";
63
68
  import { RebuildWorkspacesCommand, } from "./commands/RebuildWorkspacesCommand";
64
69
  import { RegisterWorkspaceDirectoryCommand, } from "./commands/RegisterWorkspaceDirectoryCommand";
70
+ import { RejectAccountLinkInvitationCommand, } from "./commands/RejectAccountLinkInvitationCommand";
65
71
  import { RestoreWorkspaceCommand, } from "./commands/RestoreWorkspaceCommand";
66
72
  import { RevokeIpRulesCommand, } from "./commands/RevokeIpRulesCommand";
67
73
  import { StartWorkspacesCommand, } from "./commands/StartWorkspacesCommand";
@@ -74,11 +80,13 @@ import { UpdateWorkspaceBundleCommand, } from "./commands/UpdateWorkspaceBundleC
74
80
  import { UpdateWorkspaceImagePermissionCommand, } from "./commands/UpdateWorkspaceImagePermissionCommand";
75
81
  import { WorkSpacesClient } from "./WorkSpacesClient";
76
82
  const commands = {
83
+ AcceptAccountLinkInvitationCommand,
77
84
  AssociateConnectionAliasCommand,
78
85
  AssociateIpGroupsCommand,
79
86
  AssociateWorkspaceApplicationCommand,
80
87
  AuthorizeIpRulesCommand,
81
88
  CopyWorkspaceImageCommand,
89
+ CreateAccountLinkInvitationCommand,
82
90
  CreateConnectClientAddInCommand,
83
91
  CreateConnectionAliasCommand,
84
92
  CreateIpGroupCommand,
@@ -88,6 +96,7 @@ const commands = {
88
96
  CreateWorkspaceBundleCommand,
89
97
  CreateWorkspaceImageCommand,
90
98
  CreateWorkspacesCommand,
99
+ DeleteAccountLinkInvitationCommand,
91
100
  DeleteClientBrandingCommand,
92
101
  DeleteConnectClientAddInCommand,
93
102
  DeleteConnectionAliasCommand,
@@ -121,8 +130,10 @@ const commands = {
121
130
  DisassociateConnectionAliasCommand,
122
131
  DisassociateIpGroupsCommand,
123
132
  DisassociateWorkspaceApplicationCommand,
133
+ GetAccountLinkCommand,
124
134
  ImportClientBrandingCommand,
125
135
  ImportWorkspaceImageCommand,
136
+ ListAccountLinksCommand,
126
137
  ListAvailableManagementCidrRangesCommand,
127
138
  MigrateWorkspaceCommand,
128
139
  ModifyAccountCommand,
@@ -137,6 +148,7 @@ const commands = {
137
148
  RebootWorkspacesCommand,
138
149
  RebuildWorkspacesCommand,
139
150
  RegisterWorkspaceDirectoryCommand,
151
+ RejectAccountLinkInvitationCommand,
140
152
  RestoreWorkspaceCommand,
141
153
  RevokeIpRulesCommand,
142
154
  StartWorkspacesCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_AcceptAccountLinkInvitationCommand, se_AcceptAccountLinkInvitationCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class AcceptAccountLinkInvitationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("WorkspacesService", "AcceptAccountLinkInvitation", {})
19
+ .n("WorkSpacesClient", "AcceptAccountLinkInvitationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_AcceptAccountLinkInvitationCommand)
22
+ .de(de_AcceptAccountLinkInvitationCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_CreateAccountLinkInvitationCommand, se_CreateAccountLinkInvitationCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class CreateAccountLinkInvitationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("WorkspacesService", "CreateAccountLinkInvitation", {})
19
+ .n("WorkSpacesClient", "CreateAccountLinkInvitationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_CreateAccountLinkInvitationCommand)
22
+ .de(de_CreateAccountLinkInvitationCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteAccountLinkInvitationCommand, se_DeleteAccountLinkInvitationCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DeleteAccountLinkInvitationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("WorkspacesService", "DeleteAccountLinkInvitation", {})
19
+ .n("WorkSpacesClient", "DeleteAccountLinkInvitationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_DeleteAccountLinkInvitationCommand)
22
+ .de(de_DeleteAccountLinkInvitationCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetAccountLinkCommand, se_GetAccountLinkCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class GetAccountLinkCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("WorkspacesService", "GetAccountLink", {})
19
+ .n("WorkSpacesClient", "GetAccountLinkCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetAccountLinkCommand)
22
+ .de(de_GetAccountLinkCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_ListAccountLinksCommand, se_ListAccountLinksCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class ListAccountLinksCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("WorkspacesService", "ListAccountLinks", {})
19
+ .n("WorkSpacesClient", "ListAccountLinksCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListAccountLinksCommand)
22
+ .de(de_ListAccountLinksCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_RejectAccountLinkInvitationCommand, se_RejectAccountLinkInvitationCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class RejectAccountLinkInvitationCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("WorkspacesService", "RejectAccountLinkInvitation", {})
19
+ .n("WorkSpacesClient", "RejectAccountLinkInvitationCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_RejectAccountLinkInvitationCommand)
22
+ .de(de_RejectAccountLinkInvitationCommand)
23
+ .build() {
24
+ }
@@ -1,8 +1,10 @@
1
+ export * from "./AcceptAccountLinkInvitationCommand";
1
2
  export * from "./AssociateConnectionAliasCommand";
2
3
  export * from "./AssociateIpGroupsCommand";
3
4
  export * from "./AssociateWorkspaceApplicationCommand";
4
5
  export * from "./AuthorizeIpRulesCommand";
5
6
  export * from "./CopyWorkspaceImageCommand";
7
+ export * from "./CreateAccountLinkInvitationCommand";
6
8
  export * from "./CreateConnectClientAddInCommand";
7
9
  export * from "./CreateConnectionAliasCommand";
8
10
  export * from "./CreateIpGroupCommand";
@@ -12,6 +14,7 @@ export * from "./CreateUpdatedWorkspaceImageCommand";
12
14
  export * from "./CreateWorkspaceBundleCommand";
13
15
  export * from "./CreateWorkspaceImageCommand";
14
16
  export * from "./CreateWorkspacesCommand";
17
+ export * from "./DeleteAccountLinkInvitationCommand";
15
18
  export * from "./DeleteClientBrandingCommand";
16
19
  export * from "./DeleteConnectClientAddInCommand";
17
20
  export * from "./DeleteConnectionAliasCommand";
@@ -45,8 +48,10 @@ export * from "./DescribeWorkspacesConnectionStatusCommand";
45
48
  export * from "./DisassociateConnectionAliasCommand";
46
49
  export * from "./DisassociateIpGroupsCommand";
47
50
  export * from "./DisassociateWorkspaceApplicationCommand";
51
+ export * from "./GetAccountLinkCommand";
48
52
  export * from "./ImportClientBrandingCommand";
49
53
  export * from "./ImportWorkspaceImageCommand";
54
+ export * from "./ListAccountLinksCommand";
50
55
  export * from "./ListAvailableManagementCidrRangesCommand";
51
56
  export * from "./MigrateWorkspaceCommand";
52
57
  export * from "./ModifyAccountCommand";
@@ -61,6 +66,7 @@ export * from "./ModifyWorkspaceStateCommand";
61
66
  export * from "./RebootWorkspacesCommand";
62
67
  export * from "./RebuildWorkspacesCommand";
63
68
  export * from "./RegisterWorkspaceDirectoryCommand";
69
+ export * from "./RejectAccountLinkInvitationCommand";
64
70
  export * from "./RestoreWorkspaceCommand";
65
71
  export * from "./RevokeIpRulesCommand";
66
72
  export * from "./StartWorkspacesCommand";
@@ -1,4 +1,11 @@
1
1
  import { WorkSpacesServiceException as __BaseException } from "./WorkSpacesServiceException";
2
+ export const AccountLinkStatusEnum = {
3
+ LINKED: "LINKED",
4
+ LINKING_FAILED: "LINKING_FAILED",
5
+ LINK_NOT_FOUND: "LINK_NOT_FOUND",
6
+ PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT: "PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT",
7
+ REJECTED: "REJECTED",
8
+ };
2
9
  export class AccessDeniedException extends __BaseException {
3
10
  constructor(opts) {
4
11
  super({
@@ -11,6 +18,55 @@ export class AccessDeniedException extends __BaseException {
11
18
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
19
  }
13
20
  }
21
+ export class ConflictException extends __BaseException {
22
+ constructor(opts) {
23
+ super({
24
+ name: "ConflictException",
25
+ $fault: "client",
26
+ ...opts,
27
+ });
28
+ this.name = "ConflictException";
29
+ this.$fault = "client";
30
+ Object.setPrototypeOf(this, ConflictException.prototype);
31
+ }
32
+ }
33
+ export class InternalServerException extends __BaseException {
34
+ constructor(opts) {
35
+ super({
36
+ name: "InternalServerException",
37
+ $fault: "client",
38
+ ...opts,
39
+ });
40
+ this.name = "InternalServerException";
41
+ this.$fault = "client";
42
+ Object.setPrototypeOf(this, InternalServerException.prototype);
43
+ }
44
+ }
45
+ export class ResourceNotFoundException extends __BaseException {
46
+ constructor(opts) {
47
+ super({
48
+ name: "ResourceNotFoundException",
49
+ $fault: "client",
50
+ ...opts,
51
+ });
52
+ this.name = "ResourceNotFoundException";
53
+ this.$fault = "client";
54
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
55
+ this.ResourceId = opts.ResourceId;
56
+ }
57
+ }
58
+ export class ValidationException extends __BaseException {
59
+ constructor(opts) {
60
+ super({
61
+ name: "ValidationException",
62
+ $fault: "client",
63
+ ...opts,
64
+ });
65
+ this.name = "ValidationException";
66
+ this.$fault = "client";
67
+ Object.setPrototypeOf(this, ValidationException.prototype);
68
+ }
69
+ }
14
70
  export const AccessPropertyValue = {
15
71
  ALLOW: "ALLOW",
16
72
  DENY: "DENY",
@@ -112,19 +168,6 @@ export class ResourceAssociatedException extends __BaseException {
112
168
  Object.setPrototypeOf(this, ResourceAssociatedException.prototype);
113
169
  }
114
170
  }
115
- export class ResourceNotFoundException extends __BaseException {
116
- constructor(opts) {
117
- super({
118
- name: "ResourceNotFoundException",
119
- $fault: "client",
120
- ...opts,
121
- });
122
- this.name = "ResourceNotFoundException";
123
- this.$fault = "client";
124
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
125
- this.ResourceId = opts.ResourceId;
126
- }
127
- }
128
171
  export class ResourceLimitExceededException extends __BaseException {
129
172
  constructor(opts) {
130
173
  super({
@@ -357,6 +400,10 @@ export const StandbyWorkspaceRelationshipType = {
357
400
  PRIMARY: "PRIMARY",
358
401
  STANDBY: "STANDBY",
359
402
  };
403
+ export const DedicatedTenancyAccountType = {
404
+ SOURCE_ACCOUNT: "SOURCE_ACCOUNT",
405
+ TARGET_ACCOUNT: "TARGET_ACCOUNT",
406
+ };
360
407
  export const DedicatedTenancySupportEnum = {
361
408
  ENABLED: "ENABLED",
362
409
  };
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListAccountLinksCommand, } from "../commands/ListAccountLinksCommand";
3
+ import { WorkSpacesClient } from "../WorkSpacesClient";
4
+ export const paginateListAccountLinks = createPaginator(WorkSpacesClient, ListAccountLinksCommand, "NextToken", "NextToken", "MaxResults");
@@ -4,3 +4,4 @@ export * from "./DescribeWorkspaceBundlesPaginator";
4
4
  export * from "./DescribeWorkspaceDirectoriesPaginator";
5
5
  export * from "./DescribeWorkspacesPaginator";
6
6
  export * from "./Interfaces";
7
+ export * from "./ListAccountLinksPaginator";
@@ -1,8 +1,14 @@
1
1
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
- import { AccessDeniedException, ApplicationNotSupportedException, ComputeNotCompatibleException, IncompatibleApplicationsException, InvalidParameterValuesException, InvalidResourceStateException, OperatingSystemNotCompatibleException, OperationInProgressException, OperationNotSupportedException, ResourceAlreadyExistsException, ResourceAssociatedException, ResourceCreationFailedException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, UnsupportedNetworkConfigurationException, UnsupportedWorkspaceConfigurationException, WorkspacesDefaultRoleNotFoundException, } from "../models/models_0";
4
+ import { AccessDeniedException, ApplicationNotSupportedException, ComputeNotCompatibleException, ConflictException, IncompatibleApplicationsException, InternalServerException, InvalidParameterValuesException, InvalidResourceStateException, OperatingSystemNotCompatibleException, OperationInProgressException, OperationNotSupportedException, ResourceAlreadyExistsException, ResourceAssociatedException, ResourceCreationFailedException, ResourceInUseException, ResourceLimitExceededException, ResourceNotFoundException, ResourceUnavailableException, UnsupportedNetworkConfigurationException, UnsupportedWorkspaceConfigurationException, ValidationException, WorkspacesDefaultRoleNotFoundException, } from "../models/models_0";
5
5
  import { WorkSpacesServiceException as __BaseException } from "../models/WorkSpacesServiceException";
6
+ export const se_AcceptAccountLinkInvitationCommand = async (input, context) => {
7
+ const headers = sharedHeaders("AcceptAccountLinkInvitation");
8
+ let body;
9
+ body = JSON.stringify(_json(input));
10
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
11
+ };
6
12
  export const se_AssociateConnectionAliasCommand = async (input, context) => {
7
13
  const headers = sharedHeaders("AssociateConnectionAlias");
8
14
  let body;
@@ -33,6 +39,12 @@ export const se_CopyWorkspaceImageCommand = async (input, context) => {
33
39
  body = JSON.stringify(_json(input));
34
40
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
41
  };
42
+ export const se_CreateAccountLinkInvitationCommand = async (input, context) => {
43
+ const headers = sharedHeaders("CreateAccountLinkInvitation");
44
+ let body;
45
+ body = JSON.stringify(_json(input));
46
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
47
+ };
36
48
  export const se_CreateConnectClientAddInCommand = async (input, context) => {
37
49
  const headers = sharedHeaders("CreateConnectClientAddIn");
38
50
  let body;
@@ -87,6 +99,12 @@ export const se_CreateWorkspacesCommand = async (input, context) => {
87
99
  body = JSON.stringify(_json(input));
88
100
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
89
101
  };
102
+ export const se_DeleteAccountLinkInvitationCommand = async (input, context) => {
103
+ const headers = sharedHeaders("DeleteAccountLinkInvitation");
104
+ let body;
105
+ body = JSON.stringify(_json(input));
106
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
107
+ };
90
108
  export const se_DeleteClientBrandingCommand = async (input, context) => {
91
109
  const headers = sharedHeaders("DeleteClientBranding");
92
110
  let body;
@@ -285,6 +303,12 @@ export const se_DisassociateWorkspaceApplicationCommand = async (input, context)
285
303
  body = JSON.stringify(_json(input));
286
304
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
305
  };
306
+ export const se_GetAccountLinkCommand = async (input, context) => {
307
+ const headers = sharedHeaders("GetAccountLink");
308
+ let body;
309
+ body = JSON.stringify(_json(input));
310
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
311
+ };
288
312
  export const se_ImportClientBrandingCommand = async (input, context) => {
289
313
  const headers = sharedHeaders("ImportClientBranding");
290
314
  let body;
@@ -297,6 +321,12 @@ export const se_ImportWorkspaceImageCommand = async (input, context) => {
297
321
  body = JSON.stringify(_json(input));
298
322
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
323
  };
324
+ export const se_ListAccountLinksCommand = async (input, context) => {
325
+ const headers = sharedHeaders("ListAccountLinks");
326
+ let body;
327
+ body = JSON.stringify(_json(input));
328
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
+ };
300
330
  export const se_ListAvailableManagementCidrRangesCommand = async (input, context) => {
301
331
  const headers = sharedHeaders("ListAvailableManagementCidrRanges");
302
332
  let body;
@@ -381,6 +411,12 @@ export const se_RegisterWorkspaceDirectoryCommand = async (input, context) => {
381
411
  body = JSON.stringify(_json(input));
382
412
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
383
413
  };
414
+ export const se_RejectAccountLinkInvitationCommand = async (input, context) => {
415
+ const headers = sharedHeaders("RejectAccountLinkInvitation");
416
+ let body;
417
+ body = JSON.stringify(_json(input));
418
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
419
+ };
384
420
  export const se_RestoreWorkspaceCommand = async (input, context) => {
385
421
  const headers = sharedHeaders("RestoreWorkspace");
386
422
  let body;
@@ -441,6 +477,19 @@ export const se_UpdateWorkspaceImagePermissionCommand = async (input, context) =
441
477
  body = JSON.stringify(_json(input));
442
478
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
443
479
  };
480
+ export const de_AcceptAccountLinkInvitationCommand = async (output, context) => {
481
+ if (output.statusCode >= 300) {
482
+ return de_CommandError(output, context);
483
+ }
484
+ const data = await parseBody(output.body, context);
485
+ let contents = {};
486
+ contents = _json(data);
487
+ const response = {
488
+ $metadata: deserializeMetadata(output),
489
+ ...contents,
490
+ };
491
+ return response;
492
+ };
444
493
  export const de_AssociateConnectionAliasCommand = async (output, context) => {
445
494
  if (output.statusCode >= 300) {
446
495
  return de_CommandError(output, context);
@@ -506,6 +555,19 @@ export const de_CopyWorkspaceImageCommand = async (output, context) => {
506
555
  };
507
556
  return response;
508
557
  };
558
+ export const de_CreateAccountLinkInvitationCommand = async (output, context) => {
559
+ if (output.statusCode >= 300) {
560
+ return de_CommandError(output, context);
561
+ }
562
+ const data = await parseBody(output.body, context);
563
+ let contents = {};
564
+ contents = _json(data);
565
+ const response = {
566
+ $metadata: deserializeMetadata(output),
567
+ ...contents,
568
+ };
569
+ return response;
570
+ };
509
571
  export const de_CreateConnectClientAddInCommand = async (output, context) => {
510
572
  if (output.statusCode >= 300) {
511
573
  return de_CommandError(output, context);
@@ -623,6 +685,19 @@ export const de_CreateWorkspacesCommand = async (output, context) => {
623
685
  };
624
686
  return response;
625
687
  };
688
+ export const de_DeleteAccountLinkInvitationCommand = async (output, context) => {
689
+ if (output.statusCode >= 300) {
690
+ return de_CommandError(output, context);
691
+ }
692
+ const data = await parseBody(output.body, context);
693
+ let contents = {};
694
+ contents = _json(data);
695
+ const response = {
696
+ $metadata: deserializeMetadata(output),
697
+ ...contents,
698
+ };
699
+ return response;
700
+ };
626
701
  export const de_DeleteClientBrandingCommand = async (output, context) => {
627
702
  if (output.statusCode >= 300) {
628
703
  return de_CommandError(output, context);
@@ -1052,6 +1127,19 @@ export const de_DisassociateWorkspaceApplicationCommand = async (output, context
1052
1127
  };
1053
1128
  return response;
1054
1129
  };
1130
+ export const de_GetAccountLinkCommand = async (output, context) => {
1131
+ if (output.statusCode >= 300) {
1132
+ return de_CommandError(output, context);
1133
+ }
1134
+ const data = await parseBody(output.body, context);
1135
+ let contents = {};
1136
+ contents = _json(data);
1137
+ const response = {
1138
+ $metadata: deserializeMetadata(output),
1139
+ ...contents,
1140
+ };
1141
+ return response;
1142
+ };
1055
1143
  export const de_ImportClientBrandingCommand = async (output, context) => {
1056
1144
  if (output.statusCode >= 300) {
1057
1145
  return de_CommandError(output, context);
@@ -1078,6 +1166,19 @@ export const de_ImportWorkspaceImageCommand = async (output, context) => {
1078
1166
  };
1079
1167
  return response;
1080
1168
  };
1169
+ export const de_ListAccountLinksCommand = async (output, context) => {
1170
+ if (output.statusCode >= 300) {
1171
+ return de_CommandError(output, context);
1172
+ }
1173
+ const data = await parseBody(output.body, context);
1174
+ let contents = {};
1175
+ contents = _json(data);
1176
+ const response = {
1177
+ $metadata: deserializeMetadata(output),
1178
+ ...contents,
1179
+ };
1180
+ return response;
1181
+ };
1081
1182
  export const de_ListAvailableManagementCidrRangesCommand = async (output, context) => {
1082
1183
  if (output.statusCode >= 300) {
1083
1184
  return de_CommandError(output, context);
@@ -1260,6 +1361,19 @@ export const de_RegisterWorkspaceDirectoryCommand = async (output, context) => {
1260
1361
  };
1261
1362
  return response;
1262
1363
  };
1364
+ export const de_RejectAccountLinkInvitationCommand = async (output, context) => {
1365
+ if (output.statusCode >= 300) {
1366
+ return de_CommandError(output, context);
1367
+ }
1368
+ const data = await parseBody(output.body, context);
1369
+ let contents = {};
1370
+ contents = _json(data);
1371
+ const response = {
1372
+ $metadata: deserializeMetadata(output),
1373
+ ...contents,
1374
+ };
1375
+ return response;
1376
+ };
1263
1377
  export const de_RestoreWorkspaceCommand = async (output, context) => {
1264
1378
  if (output.statusCode >= 300) {
1265
1379
  return de_CommandError(output, context);
@@ -1400,6 +1514,18 @@ const de_CommandError = async (output, context) => {
1400
1514
  case "AccessDeniedException":
1401
1515
  case "com.amazonaws.workspaces#AccessDeniedException":
1402
1516
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1517
+ case "ConflictException":
1518
+ case "com.amazonaws.workspaces#ConflictException":
1519
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1520
+ case "InternalServerException":
1521
+ case "com.amazonaws.workspaces#InternalServerException":
1522
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1523
+ case "ResourceNotFoundException":
1524
+ case "com.amazonaws.workspaces#ResourceNotFoundException":
1525
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1526
+ case "ValidationException":
1527
+ case "com.amazonaws.workspaces#ValidationException":
1528
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1403
1529
  case "InvalidParameterValuesException":
1404
1530
  case "com.amazonaws.workspaces#InvalidParameterValuesException":
1405
1531
  throw await de_InvalidParameterValuesExceptionRes(parsedOutput, context);
@@ -1412,9 +1538,6 @@ const de_CommandError = async (output, context) => {
1412
1538
  case "ResourceAssociatedException":
1413
1539
  case "com.amazonaws.workspaces#ResourceAssociatedException":
1414
1540
  throw await de_ResourceAssociatedExceptionRes(parsedOutput, context);
1415
- case "ResourceNotFoundException":
1416
- case "com.amazonaws.workspaces#ResourceNotFoundException":
1417
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1418
1541
  case "ResourceLimitExceededException":
1419
1542
  case "com.amazonaws.workspaces#ResourceLimitExceededException":
1420
1543
  throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context);
@@ -1490,6 +1613,15 @@ const de_ComputeNotCompatibleExceptionRes = async (parsedOutput, context) => {
1490
1613
  });
1491
1614
  return __decorateServiceException(exception, body);
1492
1615
  };
1616
+ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1617
+ const body = parsedOutput.body;
1618
+ const deserialized = _json(body);
1619
+ const exception = new ConflictException({
1620
+ $metadata: deserializeMetadata(parsedOutput),
1621
+ ...deserialized,
1622
+ });
1623
+ return __decorateServiceException(exception, body);
1624
+ };
1493
1625
  const de_IncompatibleApplicationsExceptionRes = async (parsedOutput, context) => {
1494
1626
  const body = parsedOutput.body;
1495
1627
  const deserialized = _json(body);
@@ -1499,6 +1631,15 @@ const de_IncompatibleApplicationsExceptionRes = async (parsedOutput, context) =>
1499
1631
  });
1500
1632
  return __decorateServiceException(exception, body);
1501
1633
  };
1634
+ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1635
+ const body = parsedOutput.body;
1636
+ const deserialized = _json(body);
1637
+ const exception = new InternalServerException({
1638
+ $metadata: deserializeMetadata(parsedOutput),
1639
+ ...deserialized,
1640
+ });
1641
+ return __decorateServiceException(exception, body);
1642
+ };
1502
1643
  const de_InvalidParameterValuesExceptionRes = async (parsedOutput, context) => {
1503
1644
  const body = parsedOutput.body;
1504
1645
  const deserialized = _json(body);
@@ -1625,6 +1766,15 @@ const de_UnsupportedWorkspaceConfigurationExceptionRes = async (parsedOutput, co
1625
1766
  });
1626
1767
  return __decorateServiceException(exception, body);
1627
1768
  };
1769
+ const de_ValidationExceptionRes = async (parsedOutput, context) => {
1770
+ const body = parsedOutput.body;
1771
+ const deserialized = _json(body);
1772
+ const exception = new ValidationException({
1773
+ $metadata: deserializeMetadata(parsedOutput),
1774
+ ...deserialized,
1775
+ });
1776
+ return __decorateServiceException(exception, body);
1777
+ };
1628
1778
  const de_WorkspacesDefaultRoleNotFoundExceptionRes = async (parsedOutput, context) => {
1629
1779
  const body = parsedOutput.body;
1630
1780
  const deserialized = _json(body);