Struct aws_sdk_workspaces::operation::register_workspace_directory::builders::RegisterWorkspaceDirectoryFluentBuilder
source · pub struct RegisterWorkspaceDirectoryFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to RegisterWorkspaceDirectory
.
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.
Implementations§
source§impl RegisterWorkspaceDirectoryFluentBuilder
impl RegisterWorkspaceDirectoryFluentBuilder
sourcepub async fn send(
self
) -> Result<RegisterWorkspaceDirectoryOutput, SdkError<RegisterWorkspaceDirectoryError>>
pub async fn send( self ) -> Result<RegisterWorkspaceDirectoryOutput, SdkError<RegisterWorkspaceDirectoryError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<RegisterWorkspaceDirectory, AwsResponseRetryClassifier>, SdkError<RegisterWorkspaceDirectoryError>>
pub async fn customize( self ) -> Result<CustomizableOperation<RegisterWorkspaceDirectory, AwsResponseRetryClassifier>, SdkError<RegisterWorkspaceDirectoryError>>
Consumes this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub fn directory_id(self, input: impl Into<String>) -> Self
pub fn directory_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_directory_id(self, input: Option<String>) -> Self
pub fn set_directory_id(self, input: Option<String>) -> Self
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.
sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to SubnetIds
.
To override the contents of this collection use set_subnet_ids
.
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.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
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.
sourcepub fn enable_work_docs(self, input: bool) -> Self
pub fn enable_work_docs(self, input: bool) -> Self
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.
sourcepub fn set_enable_work_docs(self, input: Option<bool>) -> Self
pub fn set_enable_work_docs(self, input: Option<bool>) -> Self
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.
sourcepub fn enable_self_service(self, input: bool) -> Self
pub fn enable_self_service(self, input: bool) -> Self
Indicates whether self-service capabilities are enabled or disabled.
sourcepub fn set_enable_self_service(self, input: Option<bool>) -> Self
pub fn set_enable_self_service(self, input: Option<bool>) -> Self
Indicates whether self-service capabilities are enabled or disabled.
sourcepub fn tenancy(self, input: Tenancy) -> Self
pub fn tenancy(self, input: Tenancy) -> Self
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.
sourcepub fn set_tenancy(self, input: Option<Tenancy>) -> Self
pub fn set_tenancy(self, input: Option<Tenancy>) -> Self
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.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
The tags associated with the directory.
The tags associated with the directory.
Trait Implementations§
source§impl Clone for RegisterWorkspaceDirectoryFluentBuilder
impl Clone for RegisterWorkspaceDirectoryFluentBuilder
source§fn clone(&self) -> RegisterWorkspaceDirectoryFluentBuilder
fn clone(&self) -> RegisterWorkspaceDirectoryFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more