Struct aws_sdk_workspaces::model::WorkspaceDirectory
source · [−]#[non_exhaustive]pub struct WorkspaceDirectory {Show 16 fields
pub directory_id: Option<String>,
pub alias: Option<String>,
pub directory_name: Option<String>,
pub registration_code: Option<String>,
pub subnet_ids: Option<Vec<String>>,
pub dns_ip_addresses: Option<Vec<String>>,
pub customer_user_name: Option<String>,
pub iam_role_id: Option<String>,
pub directory_type: Option<WorkspaceDirectoryType>,
pub workspace_security_group_id: Option<String>,
pub state: Option<WorkspaceDirectoryState>,
pub workspace_creation_properties: Option<DefaultWorkspaceCreationProperties>,
pub ip_group_ids: Option<Vec<String>>,
pub workspace_access_properties: Option<WorkspaceAccessProperties>,
pub tenancy: Option<Tenancy>,
pub selfservice_permissions: Option<SelfservicePermissions>,
}
Expand description
Describes a directory that is used with Amazon WorkSpaces.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.directory_id: Option<String>
The directory identifier.
alias: Option<String>
The directory alias.
directory_name: Option<String>
The name of the directory.
registration_code: Option<String>
The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.
subnet_ids: Option<Vec<String>>
The identifiers of the subnets used with the directory.
dns_ip_addresses: Option<Vec<String>>
The IP addresses of the DNS servers for the directory.
customer_user_name: Option<String>
The user name for the service account.
iam_role_id: Option<String>
The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf.
directory_type: Option<WorkspaceDirectoryType>
The directory type.
workspace_security_group_id: Option<String>
The identifier of the security group that is assigned to new WorkSpaces.
state: Option<WorkspaceDirectoryState>
The state of the directory's registration with Amazon WorkSpaces. After a directory is deregistered, the DEREGISTERED
state is returned very briefly before the directory metadata is cleaned up, so this state is rarely returned. To confirm that a directory is deregistered, check for the directory ID by using DescribeWorkspaceDirectories. If the directory ID isn't returned, then the directory has been successfully deregistered.
workspace_creation_properties: Option<DefaultWorkspaceCreationProperties>
The default creation properties for all WorkSpaces in the directory.
ip_group_ids: Option<Vec<String>>
The identifiers of the IP access control groups associated with the directory.
workspace_access_properties: Option<WorkspaceAccessProperties>
The devices and operating systems that users can use to access WorkSpaces.
tenancy: Option<Tenancy>
Specifies whether the directory is dedicated or shared. To use Bring Your Own License (BYOL), this value must be set to DEDICATED
. For more information, see Bring Your Own Windows Desktop Images.
selfservice_permissions: Option<SelfservicePermissions>
The default self-service permissions for WorkSpaces in the directory.
Implementations
sourceimpl WorkspaceDirectory
impl WorkspaceDirectory
sourcepub fn directory_id(&self) -> Option<&str>
pub fn directory_id(&self) -> Option<&str>
The directory identifier.
sourcepub fn directory_name(&self) -> Option<&str>
pub fn directory_name(&self) -> Option<&str>
The name of the directory.
sourcepub fn registration_code(&self) -> Option<&str>
pub fn registration_code(&self) -> Option<&str>
The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.
sourcepub fn subnet_ids(&self) -> Option<&[String]>
pub fn subnet_ids(&self) -> Option<&[String]>
The identifiers of the subnets used with the directory.
sourcepub fn dns_ip_addresses(&self) -> Option<&[String]>
pub fn dns_ip_addresses(&self) -> Option<&[String]>
The IP addresses of the DNS servers for the directory.
sourcepub fn customer_user_name(&self) -> Option<&str>
pub fn customer_user_name(&self) -> Option<&str>
The user name for the service account.
sourcepub fn iam_role_id(&self) -> Option<&str>
pub fn iam_role_id(&self) -> Option<&str>
The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf.
sourcepub fn directory_type(&self) -> Option<&WorkspaceDirectoryType>
pub fn directory_type(&self) -> Option<&WorkspaceDirectoryType>
The directory type.
sourcepub fn workspace_security_group_id(&self) -> Option<&str>
pub fn workspace_security_group_id(&self) -> Option<&str>
The identifier of the security group that is assigned to new WorkSpaces.
sourcepub fn state(&self) -> Option<&WorkspaceDirectoryState>
pub fn state(&self) -> Option<&WorkspaceDirectoryState>
The state of the directory's registration with Amazon WorkSpaces. After a directory is deregistered, the DEREGISTERED
state is returned very briefly before the directory metadata is cleaned up, so this state is rarely returned. To confirm that a directory is deregistered, check for the directory ID by using DescribeWorkspaceDirectories. If the directory ID isn't returned, then the directory has been successfully deregistered.
sourcepub fn workspace_creation_properties(
&self
) -> Option<&DefaultWorkspaceCreationProperties>
pub fn workspace_creation_properties(
&self
) -> Option<&DefaultWorkspaceCreationProperties>
The default creation properties for all WorkSpaces in the directory.
sourcepub fn ip_group_ids(&self) -> Option<&[String]>
pub fn ip_group_ids(&self) -> Option<&[String]>
The identifiers of the IP access control groups associated with the directory.
sourcepub fn workspace_access_properties(&self) -> Option<&WorkspaceAccessProperties>
pub fn workspace_access_properties(&self) -> Option<&WorkspaceAccessProperties>
The devices and operating systems that users can use to access WorkSpaces.
sourcepub fn tenancy(&self) -> Option<&Tenancy>
pub fn tenancy(&self) -> Option<&Tenancy>
Specifies whether the directory is dedicated or shared. To use Bring Your Own License (BYOL), this value must be set to DEDICATED
. For more information, see Bring Your Own Windows Desktop Images.
sourcepub fn selfservice_permissions(&self) -> Option<&SelfservicePermissions>
pub fn selfservice_permissions(&self) -> Option<&SelfservicePermissions>
The default self-service permissions for WorkSpaces in the directory.
sourceimpl WorkspaceDirectory
impl WorkspaceDirectory
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture WorkspaceDirectory
Trait Implementations
sourceimpl Clone for WorkspaceDirectory
impl Clone for WorkspaceDirectory
sourcefn clone(&self) -> WorkspaceDirectory
fn clone(&self) -> WorkspaceDirectory
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WorkspaceDirectory
impl Debug for WorkspaceDirectory
sourceimpl PartialEq<WorkspaceDirectory> for WorkspaceDirectory
impl PartialEq<WorkspaceDirectory> for WorkspaceDirectory
sourcefn eq(&self, other: &WorkspaceDirectory) -> bool
fn eq(&self, other: &WorkspaceDirectory) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WorkspaceDirectory) -> bool
fn ne(&self, other: &WorkspaceDirectory) -> bool
This method tests for !=
.
impl StructuralPartialEq for WorkspaceDirectory
Auto Trait Implementations
impl RefUnwindSafe for WorkspaceDirectory
impl Send for WorkspaceDirectory
impl Sync for WorkspaceDirectory
impl Unpin for WorkspaceDirectory
impl UnwindSafe for WorkspaceDirectory
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more