amazonka-workspaces-2.0: Amazon WorkSpaces SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WorkSpaces.RegisterWorkspaceDirectory

Description

Registers the specified directory. This operation is asynchronous and returns before the WorkSpace directory is registered. 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.

Synopsis

Creating a Request

data RegisterWorkspaceDirectory Source #

See: newRegisterWorkspaceDirectory smart constructor.

Constructors

RegisterWorkspaceDirectory' 

Fields

  • enableSelfService :: Maybe Bool

    Indicates whether self-service capabilities are enabled or disabled.

  • subnetIds :: Maybe [Text]

    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.

  • tags :: Maybe [Tag]

    The tags associated with the directory.

  • tenancy :: Maybe Tenancy

    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.

  • directoryId :: Text

    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.

  • enableWorkDocs :: Bool

    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.

Instances

Instances details
ToJSON RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

ToHeaders RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

ToPath RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

ToQuery RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

AWSRequest RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

Generic RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

Associated Types

type Rep RegisterWorkspaceDirectory :: Type -> Type #

Read RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

Show RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

NFData RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

Eq RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

Hashable RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

type AWSResponse RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

type Rep RegisterWorkspaceDirectory Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

type Rep RegisterWorkspaceDirectory = D1 ('MetaData "RegisterWorkspaceDirectory" "Amazonka.WorkSpaces.RegisterWorkspaceDirectory" "amazonka-workspaces-2.0-EI6zVIh1dgfFziJEJ0Fxkv" 'False) (C1 ('MetaCons "RegisterWorkspaceDirectory'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "enableSelfService") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "subnetIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])))) :*: (S1 ('MetaSel ('Just "tenancy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Tenancy)) :*: (S1 ('MetaSel ('Just "directoryId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "enableWorkDocs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))))

newRegisterWorkspaceDirectory Source #

Create a value of RegisterWorkspaceDirectory with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:enableSelfService:RegisterWorkspaceDirectory', registerWorkspaceDirectory_enableSelfService - Indicates whether self-service capabilities are enabled or disabled.

RegisterWorkspaceDirectory, registerWorkspaceDirectory_subnetIds - 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.

RegisterWorkspaceDirectory, registerWorkspaceDirectory_tags - The tags associated with the directory.

RegisterWorkspaceDirectory, registerWorkspaceDirectory_tenancy - 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.

RegisterWorkspaceDirectory, registerWorkspaceDirectory_directoryId - 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.

RegisterWorkspaceDirectory, registerWorkspaceDirectory_enableWorkDocs - 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.

Request Lenses

registerWorkspaceDirectory_enableSelfService :: Lens' RegisterWorkspaceDirectory (Maybe Bool) Source #

Indicates whether self-service capabilities are enabled or disabled.

registerWorkspaceDirectory_subnetIds :: Lens' RegisterWorkspaceDirectory (Maybe [Text]) Source #

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.

registerWorkspaceDirectory_tags :: Lens' RegisterWorkspaceDirectory (Maybe [Tag]) Source #

The tags associated with the directory.

registerWorkspaceDirectory_tenancy :: Lens' RegisterWorkspaceDirectory (Maybe Tenancy) Source #

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.

registerWorkspaceDirectory_directoryId :: Lens' RegisterWorkspaceDirectory Text Source #

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.

registerWorkspaceDirectory_enableWorkDocs :: Lens' RegisterWorkspaceDirectory Bool Source #

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.

Destructuring the Response

data RegisterWorkspaceDirectoryResponse Source #

Constructors

RegisterWorkspaceDirectoryResponse' 

Fields

Instances

Instances details
Generic RegisterWorkspaceDirectoryResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

Associated Types

type Rep RegisterWorkspaceDirectoryResponse :: Type -> Type #

Read RegisterWorkspaceDirectoryResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

Show RegisterWorkspaceDirectoryResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

NFData RegisterWorkspaceDirectoryResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

Eq RegisterWorkspaceDirectoryResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

type Rep RegisterWorkspaceDirectoryResponse Source # 
Instance details

Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory

type Rep RegisterWorkspaceDirectoryResponse = D1 ('MetaData "RegisterWorkspaceDirectoryResponse" "Amazonka.WorkSpaces.RegisterWorkspaceDirectory" "amazonka-workspaces-2.0-EI6zVIh1dgfFziJEJ0Fxkv" 'False) (C1 ('MetaCons "RegisterWorkspaceDirectoryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newRegisterWorkspaceDirectoryResponse Source #

Create a value of RegisterWorkspaceDirectoryResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:httpStatus:RegisterWorkspaceDirectoryResponse', registerWorkspaceDirectoryResponse_httpStatus - The response's http status code.

Response Lenses