Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data RegisterWorkspaceDirectory = RegisterWorkspaceDirectory' {}
- newRegisterWorkspaceDirectory :: Text -> Bool -> RegisterWorkspaceDirectory
- registerWorkspaceDirectory_subnetIds :: Lens' RegisterWorkspaceDirectory (Maybe [Text])
- registerWorkspaceDirectory_enableSelfService :: Lens' RegisterWorkspaceDirectory (Maybe Bool)
- registerWorkspaceDirectory_tenancy :: Lens' RegisterWorkspaceDirectory (Maybe Tenancy)
- registerWorkspaceDirectory_tags :: Lens' RegisterWorkspaceDirectory (Maybe [Tag])
- registerWorkspaceDirectory_directoryId :: Lens' RegisterWorkspaceDirectory Text
- registerWorkspaceDirectory_enableWorkDocs :: Lens' RegisterWorkspaceDirectory Bool
- data RegisterWorkspaceDirectoryResponse = RegisterWorkspaceDirectoryResponse' {
- httpStatus :: Int
- newRegisterWorkspaceDirectoryResponse :: Int -> RegisterWorkspaceDirectoryResponse
- registerWorkspaceDirectoryResponse_httpStatus :: Lens' RegisterWorkspaceDirectoryResponse Int
Creating a Request
data RegisterWorkspaceDirectory Source #
See: newRegisterWorkspaceDirectory
smart constructor.
RegisterWorkspaceDirectory' | |
|
Instances
newRegisterWorkspaceDirectory Source #
:: Text | |
-> Bool | |
-> RegisterWorkspaceDirectory |
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:subnetIds: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.
$sel:enableSelfService:RegisterWorkspaceDirectory'
, registerWorkspaceDirectory_enableSelfService
- Indicates whether self-service capabilities are enabled or disabled.
$sel:tenancy: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.
$sel:tags:RegisterWorkspaceDirectory'
, registerWorkspaceDirectory_tags
- The tags associated with the directory.
$sel:directoryId: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.
$sel:enableWorkDocs: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_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_enableSelfService :: Lens' RegisterWorkspaceDirectory (Maybe Bool) Source #
Indicates whether self-service capabilities are enabled or disabled.
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_tags :: Lens' RegisterWorkspaceDirectory (Maybe [Tag]) Source #
The tags associated with the directory.
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 #
See: newRegisterWorkspaceDirectoryResponse
smart constructor.
RegisterWorkspaceDirectoryResponse' | |
|
Instances
Eq RegisterWorkspaceDirectoryResponse Source # | |
Read RegisterWorkspaceDirectoryResponse Source # | |
Show RegisterWorkspaceDirectoryResponse Source # | |
Generic RegisterWorkspaceDirectoryResponse Source # | |
NFData RegisterWorkspaceDirectoryResponse Source # | |
Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory rnf :: RegisterWorkspaceDirectoryResponse -> () # | |
type Rep RegisterWorkspaceDirectoryResponse Source # | |
Defined in Amazonka.WorkSpaces.RegisterWorkspaceDirectory type Rep RegisterWorkspaceDirectoryResponse = D1 ('MetaData "RegisterWorkspaceDirectoryResponse" "Amazonka.WorkSpaces.RegisterWorkspaceDirectory" "libZSservicesZSamazonka-workspacesZSamazonka-workspaces" '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
registerWorkspaceDirectoryResponse_httpStatus :: Lens' RegisterWorkspaceDirectoryResponse Int Source #
The response's http status code.