@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,5 +1,27 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { WorkSpacesServiceException as __BaseException } from "./WorkSpacesServiceException";
3
+ export interface AcceptAccountLinkInvitationRequest {
4
+ LinkId: string | undefined;
5
+ ClientToken?: string;
6
+ }
7
+ export declare const AccountLinkStatusEnum: {
8
+ readonly LINKED: "LINKED";
9
+ readonly LINKING_FAILED: "LINKING_FAILED";
10
+ readonly LINK_NOT_FOUND: "LINK_NOT_FOUND";
11
+ readonly PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT: "PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT";
12
+ readonly REJECTED: "REJECTED";
13
+ };
14
+ export type AccountLinkStatusEnum =
15
+ (typeof AccountLinkStatusEnum)[keyof typeof AccountLinkStatusEnum];
16
+ export interface AccountLink {
17
+ AccountLinkId?: string;
18
+ AccountLinkStatus?: AccountLinkStatusEnum;
19
+ SourceAccountId?: string;
20
+ TargetAccountId?: string;
21
+ }
22
+ export interface AcceptAccountLinkInvitationResult {
23
+ AccountLink?: AccountLink;
24
+ }
3
25
  export declare class AccessDeniedException extends __BaseException {
4
26
  readonly name: "AccessDeniedException";
5
27
  readonly $fault: "client";
@@ -7,6 +29,33 @@ export declare class AccessDeniedException extends __BaseException {
7
29
  opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
30
  );
9
31
  }
32
+ export declare class ConflictException extends __BaseException {
33
+ readonly name: "ConflictException";
34
+ readonly $fault: "client";
35
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
36
+ }
37
+ export declare class InternalServerException extends __BaseException {
38
+ readonly name: "InternalServerException";
39
+ readonly $fault: "client";
40
+ constructor(
41
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
42
+ );
43
+ }
44
+ export declare class ResourceNotFoundException extends __BaseException {
45
+ readonly name: "ResourceNotFoundException";
46
+ readonly $fault: "client";
47
+ ResourceId?: string;
48
+ constructor(
49
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
50
+ );
51
+ }
52
+ export declare class ValidationException extends __BaseException {
53
+ readonly name: "ValidationException";
54
+ readonly $fault: "client";
55
+ constructor(
56
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
57
+ );
58
+ }
10
59
  export declare const AccessPropertyValue: {
11
60
  readonly ALLOW: "ALLOW";
12
61
  readonly DENY: "DENY";
@@ -130,14 +179,6 @@ export declare class ResourceAssociatedException extends __BaseException {
130
179
  opts: __ExceptionOptionType<ResourceAssociatedException, __BaseException>
131
180
  );
132
181
  }
133
- export declare class ResourceNotFoundException extends __BaseException {
134
- readonly name: "ResourceNotFoundException";
135
- readonly $fault: "client";
136
- ResourceId?: string;
137
- constructor(
138
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
139
- );
140
- }
141
182
  export interface AssociateIpGroupsRequest {
142
183
  DirectoryId: string | undefined;
143
184
  GroupIds: string[] | undefined;
@@ -389,6 +430,13 @@ export declare class ResourceUnavailableException extends __BaseException {
389
430
  opts: __ExceptionOptionType<ResourceUnavailableException, __BaseException>
390
431
  );
391
432
  }
433
+ export interface CreateAccountLinkInvitationRequest {
434
+ TargetAccountId: string | undefined;
435
+ ClientToken?: string;
436
+ }
437
+ export interface CreateAccountLinkInvitationResult {
438
+ AccountLink?: AccountLink;
439
+ }
392
440
  export interface CreateConnectClientAddInRequest {
393
441
  ResourceId: string | undefined;
394
442
  Name: string | undefined;
@@ -657,6 +705,12 @@ export interface CreateWorkspacesResult {
657
705
  FailedRequests?: FailedCreateWorkspaceRequest[];
658
706
  PendingRequests?: Workspace[];
659
707
  }
708
+ export declare const DedicatedTenancyAccountType: {
709
+ readonly SOURCE_ACCOUNT: "SOURCE_ACCOUNT";
710
+ readonly TARGET_ACCOUNT: "TARGET_ACCOUNT";
711
+ };
712
+ export type DedicatedTenancyAccountType =
713
+ (typeof DedicatedTenancyAccountType)[keyof typeof DedicatedTenancyAccountType];
660
714
  export declare const DedicatedTenancySupportEnum: {
661
715
  readonly ENABLED: "ENABLED";
662
716
  };
@@ -695,6 +749,13 @@ export declare const DeletableSamlProperty: {
695
749
  };
696
750
  export type DeletableSamlProperty =
697
751
  (typeof DeletableSamlProperty)[keyof typeof DeletableSamlProperty];
752
+ export interface DeleteAccountLinkInvitationRequest {
753
+ LinkId: string | undefined;
754
+ ClientToken?: string;
755
+ }
756
+ export interface DeleteAccountLinkInvitationResult {
757
+ AccountLink?: AccountLink;
758
+ }
698
759
  export interface DeleteClientBrandingRequest {
699
760
  ResourceId: string | undefined;
700
761
  Platforms: ClientDeviceType[] | undefined;
@@ -744,6 +805,7 @@ export interface DescribeAccountRequest {}
744
805
  export interface DescribeAccountResult {
745
806
  DedicatedTenancySupport?: DedicatedTenancySupportResultEnum;
746
807
  DedicatedTenancyManagementCidrRange?: string;
808
+ DedicatedTenancyAccountType?: DedicatedTenancyAccountType;
747
809
  }
748
810
  export interface DescribeAccountModificationsRequest {
749
811
  NextToken?: string;
@@ -1136,6 +1198,13 @@ export interface FailedWorkspaceChangeRequest {
1136
1198
  ErrorCode?: string;
1137
1199
  ErrorMessage?: string;
1138
1200
  }
1201
+ export interface GetAccountLinkRequest {
1202
+ LinkId?: string;
1203
+ LinkedAccountId?: string;
1204
+ }
1205
+ export interface GetAccountLinkResult {
1206
+ AccountLink?: AccountLink;
1207
+ }
1139
1208
  export interface IosImportClientBrandingAttributes {
1140
1209
  Logo?: Uint8Array;
1141
1210
  Logo2x?: Uint8Array;
@@ -1184,6 +1253,15 @@ export interface ImportWorkspaceImageRequest {
1184
1253
  export interface ImportWorkspaceImageResult {
1185
1254
  ImageId?: string;
1186
1255
  }
1256
+ export interface ListAccountLinksRequest {
1257
+ LinkStatusFilter?: AccountLinkStatusEnum[];
1258
+ NextToken?: string;
1259
+ MaxResults?: number;
1260
+ }
1261
+ export interface ListAccountLinksResult {
1262
+ AccountLinks?: AccountLink[];
1263
+ NextToken?: string;
1264
+ }
1187
1265
  export interface ListAvailableManagementCidrRangesRequest {
1188
1266
  ManagementCidrRangeConstraint: string | undefined;
1189
1267
  MaxResults?: number;
@@ -1327,6 +1405,13 @@ export declare class WorkspacesDefaultRoleNotFoundException extends __BaseExcept
1327
1405
  >
1328
1406
  );
1329
1407
  }
1408
+ export interface RejectAccountLinkInvitationRequest {
1409
+ LinkId: string | undefined;
1410
+ ClientToken?: string;
1411
+ }
1412
+ export interface RejectAccountLinkInvitationResult {
1413
+ AccountLink?: AccountLink;
1414
+ }
1330
1415
  export interface RestoreWorkspaceRequest {
1331
1416
  WorkspaceId: string | undefined;
1332
1417
  }
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListAccountLinksCommandInput,
4
+ ListAccountLinksCommandOutput,
5
+ } from "../commands/ListAccountLinksCommand";
6
+ import { WorkSpacesPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListAccountLinks: (
8
+ config: WorkSpacesPaginationConfiguration,
9
+ input: ListAccountLinksCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListAccountLinksCommandOutput>;
@@ -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";
@@ -3,6 +3,10 @@ import {
3
3
  HttpResponse as __HttpResponse,
4
4
  } from "@smithy/protocol-http";
5
5
  import { SerdeContext as __SerdeContext } from "@smithy/types";
6
+ import {
7
+ AcceptAccountLinkInvitationCommandInput,
8
+ AcceptAccountLinkInvitationCommandOutput,
9
+ } from "../commands/AcceptAccountLinkInvitationCommand";
6
10
  import {
7
11
  AssociateConnectionAliasCommandInput,
8
12
  AssociateConnectionAliasCommandOutput,
@@ -23,6 +27,10 @@ import {
23
27
  CopyWorkspaceImageCommandInput,
24
28
  CopyWorkspaceImageCommandOutput,
25
29
  } from "../commands/CopyWorkspaceImageCommand";
30
+ import {
31
+ CreateAccountLinkInvitationCommandInput,
32
+ CreateAccountLinkInvitationCommandOutput,
33
+ } from "../commands/CreateAccountLinkInvitationCommand";
26
34
  import {
27
35
  CreateConnectClientAddInCommandInput,
28
36
  CreateConnectClientAddInCommandOutput,
@@ -59,6 +67,10 @@ import {
59
67
  CreateWorkspacesCommandInput,
60
68
  CreateWorkspacesCommandOutput,
61
69
  } from "../commands/CreateWorkspacesCommand";
70
+ import {
71
+ DeleteAccountLinkInvitationCommandInput,
72
+ DeleteAccountLinkInvitationCommandOutput,
73
+ } from "../commands/DeleteAccountLinkInvitationCommand";
62
74
  import {
63
75
  DeleteClientBrandingCommandInput,
64
76
  DeleteClientBrandingCommandOutput,
@@ -191,6 +203,10 @@ import {
191
203
  DisassociateWorkspaceApplicationCommandInput,
192
204
  DisassociateWorkspaceApplicationCommandOutput,
193
205
  } from "../commands/DisassociateWorkspaceApplicationCommand";
206
+ import {
207
+ GetAccountLinkCommandInput,
208
+ GetAccountLinkCommandOutput,
209
+ } from "../commands/GetAccountLinkCommand";
194
210
  import {
195
211
  ImportClientBrandingCommandInput,
196
212
  ImportClientBrandingCommandOutput,
@@ -199,6 +215,10 @@ import {
199
215
  ImportWorkspaceImageCommandInput,
200
216
  ImportWorkspaceImageCommandOutput,
201
217
  } from "../commands/ImportWorkspaceImageCommand";
218
+ import {
219
+ ListAccountLinksCommandInput,
220
+ ListAccountLinksCommandOutput,
221
+ } from "../commands/ListAccountLinksCommand";
202
222
  import {
203
223
  ListAvailableManagementCidrRangesCommandInput,
204
224
  ListAvailableManagementCidrRangesCommandOutput,
@@ -255,6 +275,10 @@ import {
255
275
  RegisterWorkspaceDirectoryCommandInput,
256
276
  RegisterWorkspaceDirectoryCommandOutput,
257
277
  } from "../commands/RegisterWorkspaceDirectoryCommand";
278
+ import {
279
+ RejectAccountLinkInvitationCommandInput,
280
+ RejectAccountLinkInvitationCommandOutput,
281
+ } from "../commands/RejectAccountLinkInvitationCommand";
258
282
  import {
259
283
  RestoreWorkspaceCommandInput,
260
284
  RestoreWorkspaceCommandOutput,
@@ -295,6 +319,10 @@ import {
295
319
  UpdateWorkspaceImagePermissionCommandInput,
296
320
  UpdateWorkspaceImagePermissionCommandOutput,
297
321
  } from "../commands/UpdateWorkspaceImagePermissionCommand";
322
+ export declare const se_AcceptAccountLinkInvitationCommand: (
323
+ input: AcceptAccountLinkInvitationCommandInput,
324
+ context: __SerdeContext
325
+ ) => Promise<__HttpRequest>;
298
326
  export declare const se_AssociateConnectionAliasCommand: (
299
327
  input: AssociateConnectionAliasCommandInput,
300
328
  context: __SerdeContext
@@ -315,6 +343,10 @@ export declare const se_CopyWorkspaceImageCommand: (
315
343
  input: CopyWorkspaceImageCommandInput,
316
344
  context: __SerdeContext
317
345
  ) => Promise<__HttpRequest>;
346
+ export declare const se_CreateAccountLinkInvitationCommand: (
347
+ input: CreateAccountLinkInvitationCommandInput,
348
+ context: __SerdeContext
349
+ ) => Promise<__HttpRequest>;
318
350
  export declare const se_CreateConnectClientAddInCommand: (
319
351
  input: CreateConnectClientAddInCommandInput,
320
352
  context: __SerdeContext
@@ -351,6 +383,10 @@ export declare const se_CreateWorkspacesCommand: (
351
383
  input: CreateWorkspacesCommandInput,
352
384
  context: __SerdeContext
353
385
  ) => Promise<__HttpRequest>;
386
+ export declare const se_DeleteAccountLinkInvitationCommand: (
387
+ input: DeleteAccountLinkInvitationCommandInput,
388
+ context: __SerdeContext
389
+ ) => Promise<__HttpRequest>;
354
390
  export declare const se_DeleteClientBrandingCommand: (
355
391
  input: DeleteClientBrandingCommandInput,
356
392
  context: __SerdeContext
@@ -483,6 +519,10 @@ export declare const se_DisassociateWorkspaceApplicationCommand: (
483
519
  input: DisassociateWorkspaceApplicationCommandInput,
484
520
  context: __SerdeContext
485
521
  ) => Promise<__HttpRequest>;
522
+ export declare const se_GetAccountLinkCommand: (
523
+ input: GetAccountLinkCommandInput,
524
+ context: __SerdeContext
525
+ ) => Promise<__HttpRequest>;
486
526
  export declare const se_ImportClientBrandingCommand: (
487
527
  input: ImportClientBrandingCommandInput,
488
528
  context: __SerdeContext
@@ -491,6 +531,10 @@ export declare const se_ImportWorkspaceImageCommand: (
491
531
  input: ImportWorkspaceImageCommandInput,
492
532
  context: __SerdeContext
493
533
  ) => Promise<__HttpRequest>;
534
+ export declare const se_ListAccountLinksCommand: (
535
+ input: ListAccountLinksCommandInput,
536
+ context: __SerdeContext
537
+ ) => Promise<__HttpRequest>;
494
538
  export declare const se_ListAvailableManagementCidrRangesCommand: (
495
539
  input: ListAvailableManagementCidrRangesCommandInput,
496
540
  context: __SerdeContext
@@ -547,6 +591,10 @@ export declare const se_RegisterWorkspaceDirectoryCommand: (
547
591
  input: RegisterWorkspaceDirectoryCommandInput,
548
592
  context: __SerdeContext
549
593
  ) => Promise<__HttpRequest>;
594
+ export declare const se_RejectAccountLinkInvitationCommand: (
595
+ input: RejectAccountLinkInvitationCommandInput,
596
+ context: __SerdeContext
597
+ ) => Promise<__HttpRequest>;
550
598
  export declare const se_RestoreWorkspaceCommand: (
551
599
  input: RestoreWorkspaceCommandInput,
552
600
  context: __SerdeContext
@@ -587,6 +635,10 @@ export declare const se_UpdateWorkspaceImagePermissionCommand: (
587
635
  input: UpdateWorkspaceImagePermissionCommandInput,
588
636
  context: __SerdeContext
589
637
  ) => Promise<__HttpRequest>;
638
+ export declare const de_AcceptAccountLinkInvitationCommand: (
639
+ output: __HttpResponse,
640
+ context: __SerdeContext
641
+ ) => Promise<AcceptAccountLinkInvitationCommandOutput>;
590
642
  export declare const de_AssociateConnectionAliasCommand: (
591
643
  output: __HttpResponse,
592
644
  context: __SerdeContext
@@ -607,6 +659,10 @@ export declare const de_CopyWorkspaceImageCommand: (
607
659
  output: __HttpResponse,
608
660
  context: __SerdeContext
609
661
  ) => Promise<CopyWorkspaceImageCommandOutput>;
662
+ export declare const de_CreateAccountLinkInvitationCommand: (
663
+ output: __HttpResponse,
664
+ context: __SerdeContext
665
+ ) => Promise<CreateAccountLinkInvitationCommandOutput>;
610
666
  export declare const de_CreateConnectClientAddInCommand: (
611
667
  output: __HttpResponse,
612
668
  context: __SerdeContext
@@ -643,6 +699,10 @@ export declare const de_CreateWorkspacesCommand: (
643
699
  output: __HttpResponse,
644
700
  context: __SerdeContext
645
701
  ) => Promise<CreateWorkspacesCommandOutput>;
702
+ export declare const de_DeleteAccountLinkInvitationCommand: (
703
+ output: __HttpResponse,
704
+ context: __SerdeContext
705
+ ) => Promise<DeleteAccountLinkInvitationCommandOutput>;
646
706
  export declare const de_DeleteClientBrandingCommand: (
647
707
  output: __HttpResponse,
648
708
  context: __SerdeContext
@@ -775,6 +835,10 @@ export declare const de_DisassociateWorkspaceApplicationCommand: (
775
835
  output: __HttpResponse,
776
836
  context: __SerdeContext
777
837
  ) => Promise<DisassociateWorkspaceApplicationCommandOutput>;
838
+ export declare const de_GetAccountLinkCommand: (
839
+ output: __HttpResponse,
840
+ context: __SerdeContext
841
+ ) => Promise<GetAccountLinkCommandOutput>;
778
842
  export declare const de_ImportClientBrandingCommand: (
779
843
  output: __HttpResponse,
780
844
  context: __SerdeContext
@@ -783,6 +847,10 @@ export declare const de_ImportWorkspaceImageCommand: (
783
847
  output: __HttpResponse,
784
848
  context: __SerdeContext
785
849
  ) => Promise<ImportWorkspaceImageCommandOutput>;
850
+ export declare const de_ListAccountLinksCommand: (
851
+ output: __HttpResponse,
852
+ context: __SerdeContext
853
+ ) => Promise<ListAccountLinksCommandOutput>;
786
854
  export declare const de_ListAvailableManagementCidrRangesCommand: (
787
855
  output: __HttpResponse,
788
856
  context: __SerdeContext
@@ -839,6 +907,10 @@ export declare const de_RegisterWorkspaceDirectoryCommand: (
839
907
  output: __HttpResponse,
840
908
  context: __SerdeContext
841
909
  ) => Promise<RegisterWorkspaceDirectoryCommandOutput>;
910
+ export declare const de_RejectAccountLinkInvitationCommand: (
911
+ output: __HttpResponse,
912
+ context: __SerdeContext
913
+ ) => Promise<RejectAccountLinkInvitationCommandOutput>;
842
914
  export declare const de_RestoreWorkspaceCommand: (
843
915
  output: __HttpResponse,
844
916
  context: __SerdeContext
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.556.0",
4
+ "version": "3.563.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-workspaces",
@@ -22,7 +22,7 @@
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
23
  "@aws-sdk/client-sts": "3.556.0",
24
24
  "@aws-sdk/core": "3.556.0",
25
- "@aws-sdk/credential-provider-node": "3.556.0",
25
+ "@aws-sdk/credential-provider-node": "3.563.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",