Struct aws_sdk_workspaces::model::Workspace
source · [−]#[non_exhaustive]pub struct Workspace {Show 15 fields
pub workspace_id: Option<String>,
pub directory_id: Option<String>,
pub user_name: Option<String>,
pub ip_address: Option<String>,
pub state: Option<WorkspaceState>,
pub bundle_id: Option<String>,
pub subnet_id: Option<String>,
pub error_message: Option<String>,
pub error_code: Option<String>,
pub computer_name: Option<String>,
pub volume_encryption_key: Option<String>,
pub user_volume_encryption_enabled: Option<bool>,
pub root_volume_encryption_enabled: Option<bool>,
pub workspace_properties: Option<WorkspaceProperties>,
pub modification_states: Option<Vec<ModificationState>>,
}
Expand description
Describes a WorkSpace.
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.workspace_id: Option<String>
The identifier of the WorkSpace.
directory_id: Option<String>
The identifier of the Directory Service directory for the WorkSpace.
user_name: Option<String>
The user for the WorkSpace.
ip_address: Option<String>
The IP address of the WorkSpace.
state: Option<WorkspaceState>
The operational state of the WorkSpace.
After a WorkSpace is terminated, the TERMINATED
state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated.
bundle_id: Option<String>
The identifier of the bundle used to create the WorkSpace.
subnet_id: Option<String>
The identifier of the subnet for the WorkSpace.
error_message: Option<String>
The text of the error message that is returned if the WorkSpace cannot be created.
error_code: Option<String>
The error code that is returned if the WorkSpace cannot be created.
computer_name: Option<String>
The name of the WorkSpace, as seen by the operating system. The format of this name varies. For more information, see Launch a WorkSpace.
volume_encryption_key: Option<String>
The symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.
user_volume_encryption_enabled: Option<bool>
Indicates whether the data stored on the user volume is encrypted.
root_volume_encryption_enabled: Option<bool>
Indicates whether the data stored on the root volume is encrypted.
workspace_properties: Option<WorkspaceProperties>
The properties of the WorkSpace.
modification_states: Option<Vec<ModificationState>>
The modification states of the WorkSpace.
Implementations
sourceimpl Workspace
impl Workspace
sourcepub fn workspace_id(&self) -> Option<&str>
pub fn workspace_id(&self) -> Option<&str>
The identifier of the WorkSpace.
sourcepub fn directory_id(&self) -> Option<&str>
pub fn directory_id(&self) -> Option<&str>
The identifier of the Directory Service directory for the WorkSpace.
sourcepub fn ip_address(&self) -> Option<&str>
pub fn ip_address(&self) -> Option<&str>
The IP address of the WorkSpace.
sourcepub fn state(&self) -> Option<&WorkspaceState>
pub fn state(&self) -> Option<&WorkspaceState>
The operational state of the WorkSpace.
After a WorkSpace is terminated, the TERMINATED
state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated.
sourcepub fn bundle_id(&self) -> Option<&str>
pub fn bundle_id(&self) -> Option<&str>
The identifier of the bundle used to create the WorkSpace.
sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
The text of the error message that is returned if the WorkSpace cannot be created.
sourcepub fn error_code(&self) -> Option<&str>
pub fn error_code(&self) -> Option<&str>
The error code that is returned if the WorkSpace cannot be created.
sourcepub fn computer_name(&self) -> Option<&str>
pub fn computer_name(&self) -> Option<&str>
The name of the WorkSpace, as seen by the operating system. The format of this name varies. For more information, see Launch a WorkSpace.
sourcepub fn volume_encryption_key(&self) -> Option<&str>
pub fn volume_encryption_key(&self) -> Option<&str>
The symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys.
sourcepub fn user_volume_encryption_enabled(&self) -> Option<bool>
pub fn user_volume_encryption_enabled(&self) -> Option<bool>
Indicates whether the data stored on the user volume is encrypted.
sourcepub fn root_volume_encryption_enabled(&self) -> Option<bool>
pub fn root_volume_encryption_enabled(&self) -> Option<bool>
Indicates whether the data stored on the root volume is encrypted.
sourcepub fn workspace_properties(&self) -> Option<&WorkspaceProperties>
pub fn workspace_properties(&self) -> Option<&WorkspaceProperties>
The properties of the WorkSpace.
sourcepub fn modification_states(&self) -> Option<&[ModificationState]>
pub fn modification_states(&self) -> Option<&[ModificationState]>
The modification states of the WorkSpace.
Trait Implementations
impl StructuralPartialEq for Workspace
Auto Trait Implementations
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnwindSafe for Workspace
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