From 19c98c2cac036e2ccb29ecebf85fd1d9a9e86799 Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 19 Dec 2024 19:10:41 +0000 Subject: [PATCH] feat(client-workspaces): Added AWS Global Accelerator (AGA) support for WorkSpaces Personal. --- .../src/commands/CreateWorkspacesCommand.ts | 12 + .../DescribeWorkspaceDirectoriesCommand.ts | 4 + .../src/commands/DescribeWorkspacesCommand.ts | 4 + .../ModifyStreamingPropertiesCommand.ts | 4 + .../ModifyWorkspacePropertiesCommand.ts | 4 + .../RegisterWorkspaceDirectoryCommand.ts | 2 +- .../RejectAccountLinkInvitationCommand.ts | 2 +- .../client-workspaces/src/models/models_0.ts | 296 +++++++----------- .../client-workspaces/src/models/models_1.ts | 199 ++++++++++++ .../src/protocols/Aws_json1_1.ts | 18 +- .../sdk-codegen/aws-models/workspaces.json | 134 ++++++++ 11 files changed, 486 insertions(+), 193 deletions(-) diff --git a/clients/client-workspaces/src/commands/CreateWorkspacesCommand.ts b/clients/client-workspaces/src/commands/CreateWorkspacesCommand.ts index 77a8a641bd0a..4cfcbc7b72d5 100644 --- a/clients/client-workspaces/src/commands/CreateWorkspacesCommand.ts +++ b/clients/client-workspaces/src/commands/CreateWorkspacesCommand.ts @@ -80,6 +80,10 @@ export interface CreateWorkspacesCommandOutput extends CreateWorkspacesResult, _ * "PCOIP" || "WSP", * ], * OperatingSystemName: "AMAZON_LINUX_2" || "UBUNTU_18_04" || "UBUNTU_20_04" || "UBUNTU_22_04" || "UNKNOWN" || "WINDOWS_10" || "WINDOWS_11" || "WINDOWS_7" || "WINDOWS_SERVER_2016" || "WINDOWS_SERVER_2019" || "WINDOWS_SERVER_2022" || "RHEL_8" || "ROCKY_8", + * GlobalAccelerator: { // GlobalAcceleratorForWorkSpace + * Mode: "ENABLED_AUTO" || "DISABLED" || "INHERITED", // required + * PreferredProtocol: "TCP" || "NONE" || "INHERITED", + * }, * }, * Tags: [ // TagList * { // Tag @@ -113,6 +117,10 @@ export interface CreateWorkspacesCommandOutput extends CreateWorkspacesResult, _ * // "PCOIP" || "WSP", * // ], * // OperatingSystemName: "AMAZON_LINUX_2" || "UBUNTU_18_04" || "UBUNTU_20_04" || "UBUNTU_22_04" || "UNKNOWN" || "WINDOWS_10" || "WINDOWS_11" || "WINDOWS_7" || "WINDOWS_SERVER_2016" || "WINDOWS_SERVER_2019" || "WINDOWS_SERVER_2022" || "RHEL_8" || "ROCKY_8", + * // GlobalAccelerator: { // GlobalAcceleratorForWorkSpace + * // Mode: "ENABLED_AUTO" || "DISABLED" || "INHERITED", // required + * // PreferredProtocol: "TCP" || "NONE" || "INHERITED", + * // }, * // }, * // Tags: [ // TagList * // { // Tag @@ -152,6 +160,10 @@ export interface CreateWorkspacesCommandOutput extends CreateWorkspacesResult, _ * // "PCOIP" || "WSP", * // ], * // OperatingSystemName: "AMAZON_LINUX_2" || "UBUNTU_18_04" || "UBUNTU_20_04" || "UBUNTU_22_04" || "UNKNOWN" || "WINDOWS_10" || "WINDOWS_11" || "WINDOWS_7" || "WINDOWS_SERVER_2016" || "WINDOWS_SERVER_2019" || "WINDOWS_SERVER_2022" || "RHEL_8" || "ROCKY_8", + * // GlobalAccelerator: { + * // Mode: "ENABLED_AUTO" || "DISABLED" || "INHERITED", // required + * // PreferredProtocol: "TCP" || "NONE" || "INHERITED", + * // }, * // }, * // ModificationStates: [ // ModificationStateList * // { // ModificationState diff --git a/clients/client-workspaces/src/commands/DescribeWorkspaceDirectoriesCommand.ts b/clients/client-workspaces/src/commands/DescribeWorkspaceDirectoriesCommand.ts index 4389a2bdbafb..1e870c71f164 100644 --- a/clients/client-workspaces/src/commands/DescribeWorkspaceDirectoriesCommand.ts +++ b/clients/client-workspaces/src/commands/DescribeWorkspaceDirectoriesCommand.ts @@ -148,6 +148,10 @@ export interface DescribeWorkspaceDirectoriesCommandOutput * // Status: "ENABLED" || "DISABLED", // required * // }, * // ], + * // GlobalAccelerator: { // GlobalAcceleratorForDirectory + * // Mode: "ENABLED_AUTO" || "DISABLED", // required + * // PreferredProtocol: "TCP" || "NONE", + * // }, * // }, * // ErrorMessage: "STRING_VALUE", * // }, diff --git a/clients/client-workspaces/src/commands/DescribeWorkspacesCommand.ts b/clients/client-workspaces/src/commands/DescribeWorkspacesCommand.ts index 25ae1e029d28..15387f002c50 100644 --- a/clients/client-workspaces/src/commands/DescribeWorkspacesCommand.ts +++ b/clients/client-workspaces/src/commands/DescribeWorkspacesCommand.ts @@ -77,6 +77,10 @@ export interface DescribeWorkspacesCommandOutput extends DescribeWorkspacesResul * // "PCOIP" || "WSP", * // ], * // OperatingSystemName: "AMAZON_LINUX_2" || "UBUNTU_18_04" || "UBUNTU_20_04" || "UBUNTU_22_04" || "UNKNOWN" || "WINDOWS_10" || "WINDOWS_11" || "WINDOWS_7" || "WINDOWS_SERVER_2016" || "WINDOWS_SERVER_2019" || "WINDOWS_SERVER_2022" || "RHEL_8" || "ROCKY_8", + * // GlobalAccelerator: { // GlobalAcceleratorForWorkSpace + * // Mode: "ENABLED_AUTO" || "DISABLED" || "INHERITED", // required + * // PreferredProtocol: "TCP" || "NONE" || "INHERITED", + * // }, * // }, * // ModificationStates: [ // ModificationStateList * // { // ModificationState diff --git a/clients/client-workspaces/src/commands/ModifyStreamingPropertiesCommand.ts b/clients/client-workspaces/src/commands/ModifyStreamingPropertiesCommand.ts index e1033cd94482..909b90764c6f 100644 --- a/clients/client-workspaces/src/commands/ModifyStreamingPropertiesCommand.ts +++ b/clients/client-workspaces/src/commands/ModifyStreamingPropertiesCommand.ts @@ -52,6 +52,10 @@ export interface ModifyStreamingPropertiesCommandOutput extends ModifyStreamingP * Status: "ENABLED" || "DISABLED", // required * }, * ], + * GlobalAccelerator: { // GlobalAcceleratorForDirectory + * Mode: "ENABLED_AUTO" || "DISABLED", // required + * PreferredProtocol: "TCP" || "NONE", + * }, * }, * }; * const command = new ModifyStreamingPropertiesCommand(input); diff --git a/clients/client-workspaces/src/commands/ModifyWorkspacePropertiesCommand.ts b/clients/client-workspaces/src/commands/ModifyWorkspacePropertiesCommand.ts index 54aacdfb0451..bdf40a21260d 100644 --- a/clients/client-workspaces/src/commands/ModifyWorkspacePropertiesCommand.ts +++ b/clients/client-workspaces/src/commands/ModifyWorkspacePropertiesCommand.ts @@ -55,6 +55,10 @@ export interface ModifyWorkspacePropertiesCommandOutput extends ModifyWorkspaceP * "PCOIP" || "WSP", * ], * OperatingSystemName: "AMAZON_LINUX_2" || "UBUNTU_18_04" || "UBUNTU_20_04" || "UBUNTU_22_04" || "UNKNOWN" || "WINDOWS_10" || "WINDOWS_11" || "WINDOWS_7" || "WINDOWS_SERVER_2016" || "WINDOWS_SERVER_2019" || "WINDOWS_SERVER_2022" || "RHEL_8" || "ROCKY_8", + * GlobalAccelerator: { // GlobalAcceleratorForWorkSpace + * Mode: "ENABLED_AUTO" || "DISABLED" || "INHERITED", // required + * PreferredProtocol: "TCP" || "NONE" || "INHERITED", + * }, * }, * DataReplication: "NO_REPLICATION" || "PRIMARY_AS_SOURCE", * }; diff --git a/clients/client-workspaces/src/commands/RegisterWorkspaceDirectoryCommand.ts b/clients/client-workspaces/src/commands/RegisterWorkspaceDirectoryCommand.ts index 79909de5e738..514c010c8ee7 100644 --- a/clients/client-workspaces/src/commands/RegisterWorkspaceDirectoryCommand.ts +++ b/clients/client-workspaces/src/commands/RegisterWorkspaceDirectoryCommand.ts @@ -5,7 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { RegisterWorkspaceDirectoryRequest, RegisterWorkspaceDirectoryResult } from "../models/models_0"; +import { RegisterWorkspaceDirectoryRequest, RegisterWorkspaceDirectoryResult } from "../models/models_1"; import { de_RegisterWorkspaceDirectoryCommand, se_RegisterWorkspaceDirectoryCommand } from "../protocols/Aws_json1_1"; import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesClientResolvedConfig } from "../WorkSpacesClient"; diff --git a/clients/client-workspaces/src/commands/RejectAccountLinkInvitationCommand.ts b/clients/client-workspaces/src/commands/RejectAccountLinkInvitationCommand.ts index 6ed8bbacf2f1..2c4324661aef 100644 --- a/clients/client-workspaces/src/commands/RejectAccountLinkInvitationCommand.ts +++ b/clients/client-workspaces/src/commands/RejectAccountLinkInvitationCommand.ts @@ -5,7 +5,7 @@ import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { commonParams } from "../endpoint/EndpointParameters"; -import { RejectAccountLinkInvitationRequest, RejectAccountLinkInvitationResult } from "../models/models_0"; +import { RejectAccountLinkInvitationRequest, RejectAccountLinkInvitationResult } from "../models/models_1"; import { de_RejectAccountLinkInvitationCommand, se_RejectAccountLinkInvitationCommand } from "../protocols/Aws_json1_1"; import { ServiceInputTypes, ServiceOutputTypes, WorkSpacesClientResolvedConfig } from "../WorkSpacesClient"; diff --git a/clients/client-workspaces/src/models/models_0.ts b/clients/client-workspaces/src/models/models_0.ts index d4f194a68cd6..f8c0272c3a8c 100644 --- a/clients/client-workspaces/src/models/models_0.ts +++ b/clients/client-workspaces/src/models/models_0.ts @@ -294,6 +294,66 @@ export interface ActiveDirectoryConfig { ServiceAccountSecretArn: string | undefined; } +/** + * @public + * @enum + */ +export const AGAModeForDirectoryEnum = { + DISABLED: "DISABLED", + ENABLED_AUTO: "ENABLED_AUTO", +} as const; + +/** + * @public + */ +export type AGAModeForDirectoryEnum = (typeof AGAModeForDirectoryEnum)[keyof typeof AGAModeForDirectoryEnum]; + +/** + * @public + * @enum + */ +export const AGAModeForWorkSpaceEnum = { + DISABLED: "DISABLED", + ENABLED_AUTO: "ENABLED_AUTO", + INHERITED: "INHERITED", +} as const; + +/** + * @public + */ +export type AGAModeForWorkSpaceEnum = (typeof AGAModeForWorkSpaceEnum)[keyof typeof AGAModeForWorkSpaceEnum]; + +/** + * @public + * @enum + */ +export const AGAPreferredProtocolForDirectory = { + NONE: "NONE", + TCP: "TCP", +} as const; + +/** + * @public + */ +export type AGAPreferredProtocolForDirectory = + (typeof AGAPreferredProtocolForDirectory)[keyof typeof AGAPreferredProtocolForDirectory]; + +/** + * @public + * @enum + */ +export const AGAPreferredProtocolForWorkSpace = { + INHERITED: "INHERITED", + NONE: "NONE", + TCP: "TCP", +} as const; + +/** + * @public + */ +export type AGAPreferredProtocolForWorkSpace = + (typeof AGAPreferredProtocolForWorkSpace)[keyof typeof AGAPreferredProtocolForWorkSpace]; + /** * @public * @enum @@ -2180,6 +2240,25 @@ export interface CreateWorkspaceImageResult { OwnerAccountId?: string | undefined; } +/** + *

Describes the Global Accelerator for WorkSpaces.

+ * @public + */ +export interface GlobalAcceleratorForWorkSpace { + /** + *

Indicates if Global Accelerator for WorkSpaces is enabled, disabled, + * or the same mode as the associated directory.

+ * @public + */ + Mode: AGAModeForWorkSpaceEnum | undefined; + + /** + *

Indicates the preferred protocol for Global Accelerator.

+ * @public + */ + PreferredProtocol?: AGAPreferredProtocolForWorkSpace | undefined; +} + /** * @public * @enum @@ -2311,6 +2390,12 @@ export interface WorkspaceProperties { * @public */ OperatingSystemName?: OperatingSystemName | undefined; + + /** + *

Indicates the Global Accelerator properties.

+ * @public + */ + GlobalAccelerator?: GlobalAcceleratorForWorkSpace | undefined; } /** @@ -4619,6 +4704,24 @@ export const WorkspaceDirectoryState = { */ export type WorkspaceDirectoryState = (typeof WorkspaceDirectoryState)[keyof typeof WorkspaceDirectoryState]; +/** + *

Describes the Global Accelerator for directory

+ * @public + */ +export interface GlobalAcceleratorForDirectory { + /** + *

Indicates if Global Accelerator for directory is enabled or disabled.

+ * @public + */ + Mode: AGAModeForDirectoryEnum | undefined; + + /** + *

Indicates the preferred protocol for Global Accelerator.

+ * @public + */ + PreferredProtocol?: AGAPreferredProtocolForDirectory | undefined; +} + /** * @public * @enum @@ -4755,6 +4858,12 @@ export interface StreamingProperties { * @public */ StorageConnectors?: StorageConnector[] | undefined; + + /** + *

Indicates the Global Accelerator properties.

+ * @public + */ + GlobalAccelerator?: GlobalAcceleratorForDirectory | undefined; } /** @@ -6776,190 +6885,3 @@ export interface RebuildWorkspacesResult { */ FailedRequests?: FailedWorkspaceChangeRequest[] | undefined; } - -/** - * @public - */ -export interface RegisterWorkspaceDirectoryRequest { - /** - *

The identifier of the directory. You cannot register a directory if it does not have a - * status of Active. If the directory does not have a status of Active, you will receive an - * InvalidResourceStateException error. If you have already registered the maximum number of - * directories that you can register with Amazon WorkSpaces, you will receive a - * ResourceLimitExceededException error. Deregister directories that you are not using for - * WorkSpaces, and try again.

- * @public - */ - DirectoryId?: string | undefined; - - /** - *

The identifiers of the subnets for your virtual private cloud (VPC). Make sure that the - * subnets are in supported Availability Zones. The subnets must also be in separate - * Availability Zones. If these conditions are not met, you will receive an - * OperationNotSupportedException error.

- * @public - */ - SubnetIds?: string[] | undefined; - - /** - *

Indicates whether Amazon WorkDocs is enabled or disabled. If you have enabled this - * parameter and WorkDocs is not available in the Region, you will receive an - * OperationNotSupportedException error. Set EnableWorkDocs to disabled, and try - * again.

- * @public - */ - EnableWorkDocs?: boolean | undefined; - - /** - *

Indicates whether self-service capabilities are enabled or disabled.

- * @public - */ - EnableSelfService?: boolean | undefined; - - /** - *

Indicates whether your WorkSpace directory is dedicated or shared. To use Bring Your Own - * License (BYOL) images, this value must be set to DEDICATED and your Amazon Web Services account must be enabled for BYOL. If your account has not been enabled for - * BYOL, you will receive an InvalidParameterValuesException error. For more information about - * BYOL images, see Bring Your Own Windows - * Desktop Images.

- * @public - */ - Tenancy?: Tenancy | undefined; - - /** - *

The tags associated with the directory.

- * @public - */ - Tags?: Tag[] | undefined; - - /** - *

The name of the directory to register.

- * @public - */ - WorkspaceDirectoryName?: string | undefined; - - /** - *

Description of the directory to register.

- * @public - */ - WorkspaceDirectoryDescription?: string | undefined; - - /** - *

The type of identity management the user is using.

- * @public - */ - UserIdentityType?: UserIdentityType | undefined; - - /** - *

The Amazon Resource Name (ARN) of the identity center instance.

- * @public - */ - IdcInstanceArn?: string | undefined; - - /** - *

The details about Microsoft Entra config.

- * @public - */ - MicrosoftEntraConfig?: MicrosoftEntraConfig | undefined; - - /** - *

Indicates whether the directory's WorkSpace type is personal or pools.

- * @public - */ - WorkspaceType?: WorkspaceType | undefined; - - /** - *

The active directory config of the directory.

- * @public - */ - ActiveDirectoryConfig?: ActiveDirectoryConfig | undefined; -} - -/** - * @public - */ -export interface RegisterWorkspaceDirectoryResult { - /** - *

The identifier of the directory.

- * @public - */ - DirectoryId?: string | undefined; - - /** - *

The registration status of the WorkSpace directory.

- * @public - */ - State?: WorkspaceDirectoryState | undefined; -} - -/** - *

The configuration of this network is not supported for this operation, or your network configuration - * conflicts with the Amazon WorkSpaces management network IP range. For more information, see - * - * Configure a VPC for Amazon WorkSpaces.

- * @public - */ -export class UnsupportedNetworkConfigurationException extends __BaseException { - readonly name: "UnsupportedNetworkConfigurationException" = "UnsupportedNetworkConfigurationException"; - readonly $fault: "client" = "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "UnsupportedNetworkConfigurationException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, UnsupportedNetworkConfigurationException.prototype); - } -} - -/** - *

The workspaces_DefaultRole role could not be found. If this is the first time you are registering a directory, you - * will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role.

- * @public - */ -export class WorkspacesDefaultRoleNotFoundException extends __BaseException { - readonly name: "WorkspacesDefaultRoleNotFoundException" = "WorkspacesDefaultRoleNotFoundException"; - readonly $fault: "client" = "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType) { - super({ - name: "WorkspacesDefaultRoleNotFoundException", - $fault: "client", - ...opts, - }); - Object.setPrototypeOf(this, WorkspacesDefaultRoleNotFoundException.prototype); - } -} - -/** - * @public - */ -export interface RejectAccountLinkInvitationRequest { - /** - *

The identifier of the account link

- * @public - */ - LinkId: string | undefined; - - /** - *

The client token of the account link invitation to reject.

- * @public - */ - ClientToken?: string | undefined; -} - -/** - * @public - */ -export interface RejectAccountLinkInvitationResult { - /** - *

Information about the account link.

- * @public - */ - AccountLink?: AccountLink | undefined; -} diff --git a/clients/client-workspaces/src/models/models_1.ts b/clients/client-workspaces/src/models/models_1.ts index 6956d981b2b5..57fb94bb2ba6 100644 --- a/clients/client-workspaces/src/models/models_1.ts +++ b/clients/client-workspaces/src/models/models_1.ts @@ -1,14 +1,213 @@ // smithy-typescript generated code +import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; + import { + AccountLink, + ActiveDirectoryConfig, ApplicationSettingsRequest, Capacity, ConnectionAliasPermission, FailedWorkspaceChangeRequest, IpRuleItem, + MicrosoftEntraConfig, + Tag, + Tenancy, TimeoutSettings, + UserIdentityType, + WorkspaceDirectoryState, WorkspacesPool, + WorkspaceType, } from "./models_0"; +import { WorkSpacesServiceException as __BaseException } from "./WorkSpacesServiceException"; + +/** + * @public + */ +export interface RegisterWorkspaceDirectoryRequest { + /** + *

The identifier of the directory. You cannot register a directory if it does not have a + * status of Active. If the directory does not have a status of Active, you will receive an + * InvalidResourceStateException error. If you have already registered the maximum number of + * directories that you can register with Amazon WorkSpaces, you will receive a + * ResourceLimitExceededException error. Deregister directories that you are not using for + * WorkSpaces, and try again.

+ * @public + */ + DirectoryId?: string | undefined; + + /** + *

The identifiers of the subnets for your virtual private cloud (VPC). Make sure that the + * subnets are in supported Availability Zones. The subnets must also be in separate + * Availability Zones. If these conditions are not met, you will receive an + * OperationNotSupportedException error.

+ * @public + */ + SubnetIds?: string[] | undefined; + + /** + *

Indicates whether Amazon WorkDocs is enabled or disabled. If you have enabled this + * parameter and WorkDocs is not available in the Region, you will receive an + * OperationNotSupportedException error. Set EnableWorkDocs to disabled, and try + * again.

+ * @public + */ + EnableWorkDocs?: boolean | undefined; + + /** + *

Indicates whether self-service capabilities are enabled or disabled.

+ * @public + */ + EnableSelfService?: boolean | undefined; + + /** + *

Indicates whether your WorkSpace directory is dedicated or shared. To use Bring Your Own + * License (BYOL) images, this value must be set to DEDICATED and your Amazon Web Services account must be enabled for BYOL. If your account has not been enabled for + * BYOL, you will receive an InvalidParameterValuesException error. For more information about + * BYOL images, see Bring Your Own Windows + * Desktop Images.

+ * @public + */ + Tenancy?: Tenancy | undefined; + + /** + *

The tags associated with the directory.

+ * @public + */ + Tags?: Tag[] | undefined; + + /** + *

The name of the directory to register.

+ * @public + */ + WorkspaceDirectoryName?: string | undefined; + + /** + *

Description of the directory to register.

+ * @public + */ + WorkspaceDirectoryDescription?: string | undefined; + + /** + *

The type of identity management the user is using.

+ * @public + */ + UserIdentityType?: UserIdentityType | undefined; + + /** + *

The Amazon Resource Name (ARN) of the identity center instance.

+ * @public + */ + IdcInstanceArn?: string | undefined; + + /** + *

The details about Microsoft Entra config.

+ * @public + */ + MicrosoftEntraConfig?: MicrosoftEntraConfig | undefined; + + /** + *

Indicates whether the directory's WorkSpace type is personal or pools.

+ * @public + */ + WorkspaceType?: WorkspaceType | undefined; + + /** + *

The active directory config of the directory.

+ * @public + */ + ActiveDirectoryConfig?: ActiveDirectoryConfig | undefined; +} + +/** + * @public + */ +export interface RegisterWorkspaceDirectoryResult { + /** + *

The identifier of the directory.

+ * @public + */ + DirectoryId?: string | undefined; + + /** + *

The registration status of the WorkSpace directory.

+ * @public + */ + State?: WorkspaceDirectoryState | undefined; +} + +/** + *

The configuration of this network is not supported for this operation, or your network configuration + * conflicts with the Amazon WorkSpaces management network IP range. For more information, see + * + * Configure a VPC for Amazon WorkSpaces.

+ * @public + */ +export class UnsupportedNetworkConfigurationException extends __BaseException { + readonly name: "UnsupportedNetworkConfigurationException" = "UnsupportedNetworkConfigurationException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "UnsupportedNetworkConfigurationException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, UnsupportedNetworkConfigurationException.prototype); + } +} + +/** + *

The workspaces_DefaultRole role could not be found. If this is the first time you are registering a directory, you + * will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role.

+ * @public + */ +export class WorkspacesDefaultRoleNotFoundException extends __BaseException { + readonly name: "WorkspacesDefaultRoleNotFoundException" = "WorkspacesDefaultRoleNotFoundException"; + readonly $fault: "client" = "client"; + /** + * @internal + */ + constructor(opts: __ExceptionOptionType) { + super({ + name: "WorkspacesDefaultRoleNotFoundException", + $fault: "client", + ...opts, + }); + Object.setPrototypeOf(this, WorkspacesDefaultRoleNotFoundException.prototype); + } +} + +/** + * @public + */ +export interface RejectAccountLinkInvitationRequest { + /** + *

The identifier of the account link

+ * @public + */ + LinkId: string | undefined; + + /** + *

The client token of the account link invitation to reject.

+ * @public + */ + ClientToken?: string | undefined; +} + +/** + * @public + */ +export interface RejectAccountLinkInvitationResult { + /** + *

Information about the account link.

+ * @public + */ + AccountLink?: AccountLink | undefined; +} + /** * @public */ diff --git a/clients/client-workspaces/src/protocols/Aws_json1_1.ts b/clients/client-workspaces/src/protocols/Aws_json1_1.ts index d12da88a6f1d..3598fde5d80f 100644 --- a/clients/client-workspaces/src/protocols/Aws_json1_1.ts +++ b/clients/client-workspaces/src/protocols/Aws_json1_1.ts @@ -404,6 +404,8 @@ import { DisassociateWorkspaceApplicationRequest, DisassociateWorkspaceApplicationResult, GetAccountLinkRequest, + GlobalAcceleratorForDirectory, + GlobalAcceleratorForWorkSpace, ImageAssociatedResourceType, ImageResourceAssociation, ImportClientBrandingRequest, @@ -437,8 +439,6 @@ import { RebootWorkspacesRequest, RebuildRequest, RebuildWorkspacesRequest, - RegisterWorkspaceDirectoryRequest, - RejectAccountLinkInvitationRequest, ResourceAlreadyExistsException, ResourceAssociatedException, ResourceCreationFailedException, @@ -456,7 +456,6 @@ import { StreamingProperties, Tag, TimeoutSettings, - UnsupportedNetworkConfigurationException, UnsupportedWorkspaceConfigurationException, UserSetting, UserStorage, @@ -473,11 +472,12 @@ import { WorkspaceProperties, WorkspaceRequest, WorkspaceResourceAssociation, - WorkspacesDefaultRoleNotFoundException, WorkspacesPool, WorkspacesPoolSession, } from "../models/models_0"; import { + RegisterWorkspaceDirectoryRequest, + RejectAccountLinkInvitationRequest, RestoreWorkspaceRequest, RevokeIpRulesRequest, StartRequest, @@ -490,6 +490,7 @@ import { TerminateWorkspacesPoolRequest, TerminateWorkspacesPoolSessionRequest, TerminateWorkspacesRequest, + UnsupportedNetworkConfigurationException, UpdateConnectClientAddInRequest, UpdateConnectionAliasPermissionRequest, UpdateRulesOfIpGroupRequest, @@ -497,6 +498,7 @@ import { UpdateWorkspaceImagePermissionRequest, UpdateWorkspacesPoolRequest, UpdateWorkspacesPoolResult, + WorkspacesDefaultRoleNotFoundException, } from "../models/models_1"; import { WorkSpacesServiceException as __BaseException } from "../models/WorkSpacesServiceException"; @@ -4006,6 +4008,10 @@ const se_DefaultImportClientBrandingAttributes = ( // se_GetAccountLinkRequest omitted. +// se_GlobalAcceleratorForDirectory omitted. + +// se_GlobalAcceleratorForWorkSpace omitted. + // se_ImageAssociatedResourceTypeList omitted. /** @@ -4684,6 +4690,10 @@ const de_DisassociateWorkspaceApplicationResult = ( // de_GetAccountLinkResult omitted. +// de_GlobalAcceleratorForDirectory omitted. + +// de_GlobalAcceleratorForWorkSpace omitted. + // de_IDCConfig omitted. // de_ImagePermission omitted. diff --git a/codegen/sdk-codegen/aws-models/workspaces.json b/codegen/sdk-codegen/aws-models/workspaces.json index e30232bb7a35..b31a2e180cf1 100644 --- a/codegen/sdk-codegen/aws-models/workspaces.json +++ b/codegen/sdk-codegen/aws-models/workspaces.json @@ -29,6 +29,86 @@ ] }, "shapes": { + "com.amazonaws.workspaces#AGAModeForDirectoryEnum": { + "type": "enum", + "members": { + "ENABLED_AUTO": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED_AUTO" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + } + } + }, + "com.amazonaws.workspaces#AGAModeForWorkSpaceEnum": { + "type": "enum", + "members": { + "ENABLED_AUTO": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "ENABLED_AUTO" + } + }, + "DISABLED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "DISABLED" + } + }, + "INHERITED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INHERITED" + } + } + } + }, + "com.amazonaws.workspaces#AGAPreferredProtocolForDirectory": { + "type": "enum", + "members": { + "TCP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TCP" + } + }, + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + } + } + }, + "com.amazonaws.workspaces#AGAPreferredProtocolForWorkSpace": { + "type": "enum", + "members": { + "TCP": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "TCP" + } + }, + "NONE": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "NONE" + } + }, + "INHERITED": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "INHERITED" + } + } + } + }, "com.amazonaws.workspaces#ARN": { "type": "string", "traits": { @@ -5691,6 +5771,48 @@ "smithy.api#output": {} } }, + "com.amazonaws.workspaces#GlobalAcceleratorForDirectory": { + "type": "structure", + "members": { + "Mode": { + "target": "com.amazonaws.workspaces#AGAModeForDirectoryEnum", + "traits": { + "smithy.api#documentation": "

Indicates if Global Accelerator for directory is enabled or disabled.

", + "smithy.api#required": {} + } + }, + "PreferredProtocol": { + "target": "com.amazonaws.workspaces#AGAPreferredProtocolForDirectory", + "traits": { + "smithy.api#documentation": "

Indicates the preferred protocol for Global Accelerator.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the Global Accelerator for directory

" + } + }, + "com.amazonaws.workspaces#GlobalAcceleratorForWorkSpace": { + "type": "structure", + "members": { + "Mode": { + "target": "com.amazonaws.workspaces#AGAModeForWorkSpaceEnum", + "traits": { + "smithy.api#documentation": "

Indicates if Global Accelerator for WorkSpaces is enabled, disabled, \n or the same mode as the associated directory.

", + "smithy.api#required": {} + } + }, + "PreferredProtocol": { + "target": "com.amazonaws.workspaces#AGAPreferredProtocolForWorkSpace", + "traits": { + "smithy.api#documentation": "

Indicates the preferred protocol for Global Accelerator.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Describes the Global Accelerator for WorkSpaces.

" + } + }, "com.amazonaws.workspaces#IDCConfig": { "type": "structure", "members": { @@ -8813,6 +8935,12 @@ "traits": { "smithy.api#documentation": "

Indicates the storage connector used

" } + }, + "GlobalAccelerator": { + "target": "com.amazonaws.workspaces#GlobalAcceleratorForDirectory", + "traits": { + "smithy.api#documentation": "

Indicates the Global Accelerator properties.

" + } } }, "traits": { @@ -11133,6 +11261,12 @@ "traits": { "smithy.api#documentation": "

The name of the operating system.

" } + }, + "GlobalAccelerator": { + "target": "com.amazonaws.workspaces#GlobalAcceleratorForWorkSpace", + "traits": { + "smithy.api#documentation": "

Indicates the Global Accelerator properties.

" + } } }, "traits": {