Struct aws_sdk_nimble::types::StreamingSession
source · #[non_exhaustive]pub struct StreamingSession {Show 27 fields
pub arn: Option<String>,
pub created_at: Option<DateTime>,
pub created_by: Option<String>,
pub ec2_instance_type: Option<String>,
pub launch_profile_id: Option<String>,
pub owned_by: Option<String>,
pub session_id: Option<String>,
pub state: Option<StreamingSessionState>,
pub status_code: Option<StreamingSessionStatusCode>,
pub status_message: Option<String>,
pub streaming_image_id: Option<String>,
pub tags: Option<HashMap<String, String>>,
pub terminate_at: Option<DateTime>,
pub updated_at: Option<DateTime>,
pub updated_by: Option<String>,
pub stopped_at: Option<DateTime>,
pub stopped_by: Option<String>,
pub started_at: Option<DateTime>,
pub started_by: Option<String>,
pub stop_at: Option<DateTime>,
pub started_from_backup_id: Option<String>,
pub backup_mode: Option<SessionBackupMode>,
pub max_backups_to_retain: i32,
pub volume_retention_mode: Option<VolumeRetentionMode>,
pub session_persistence_mode: Option<SessionPersistenceMode>,
pub volume_configuration: Option<VolumeConfiguration>,
pub automatic_termination_mode: Option<AutomaticTerminationMode>,
}
Expand description
A streaming session is a virtual workstation created using a particular launch profile.
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.arn: Option<String>
The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions.
created_at: Option<DateTime>
The ISO timestamp in seconds for when the resource was created.
created_by: Option<String>
The user ID of the user that created the streaming session.
ec2_instance_type: Option<String>
The EC2 Instance type used for the streaming session.
launch_profile_id: Option<String>
The ID of the launch profile used to control access from the streaming session.
owned_by: Option<String>
The user ID of the user that owns the streaming session. The user that owns the session will be logging into the session and interacting with the virtual workstation.
session_id: Option<String>
The session ID.
state: Option<StreamingSessionState>
The current state.
status_code: Option<StreamingSessionStatusCode>
The status code.
status_message: Option<String>
The status message for the streaming session.
streaming_image_id: Option<String>
The ID of the streaming image.
A collection of labels, in the form of key-value pairs, that apply to this resource.
terminate_at: Option<DateTime>
The time the streaming session will automatically terminate if not terminated by the user.
updated_at: Option<DateTime>
The ISO timestamp in seconds for when the resource was updated.
updated_by: Option<String>
The user ID of the user that most recently updated the resource.
stopped_at: Option<DateTime>
The time the session entered STOP_IN_PROGRESS
state.
stopped_by: Option<String>
The user ID of the user that stopped the streaming session.
started_at: Option<DateTime>
The time the session entered START_IN_PROGRESS
state.
started_by: Option<String>
The user ID of the user that started the streaming session.
stop_at: Option<DateTime>
The time the streaming session will automatically be stopped if the user doesn’t stop the session themselves.
started_from_backup_id: Option<String>
The backup ID used to restore a streaming session.
backup_mode: Option<SessionBackupMode>
Shows the current backup setting of the session.
max_backups_to_retain: i32
The maximum number of backups of a streaming session that you can have. When the maximum number of backups is reached, the oldest backup is deleted.
volume_retention_mode: Option<VolumeRetentionMode>
Determine if an EBS volume created from this streaming session will be backed up.
session_persistence_mode: Option<SessionPersistenceMode>
Determine if a streaming session created from this launch profile can configure persistent storage. This means that volumeConfiguration
and automaticTerminationMode
are configured.
volume_configuration: Option<VolumeConfiguration>
Custom volume configuration for the root volumes that are attached to streaming sessions.
This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
.
automatic_termination_mode: Option<AutomaticTerminationMode>
Indicates if a streaming session created from this launch profile should be terminated automatically or retained without termination after being in a STOPPED
state.
-
When
ACTIVATED
, the streaming session is scheduled for termination after being in theSTOPPED
state for the time specified inmaxStoppedSessionLengthInMinutes
. -
When
DEACTIVATED
, the streaming session can remain in theSTOPPED
state indefinitely.
This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When allowed, the default value for this parameter is DEACTIVATED
.
Implementations§
source§impl StreamingSession
impl StreamingSession
sourcepub fn arn(&self) -> Option<&str>
pub fn arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) that is assigned to a studio resource and uniquely identifies it. ARNs are unique across all Regions.
sourcepub fn created_at(&self) -> Option<&DateTime>
pub fn created_at(&self) -> Option<&DateTime>
The ISO timestamp in seconds for when the resource was created.
sourcepub fn created_by(&self) -> Option<&str>
pub fn created_by(&self) -> Option<&str>
The user ID of the user that created the streaming session.
sourcepub fn ec2_instance_type(&self) -> Option<&str>
pub fn ec2_instance_type(&self) -> Option<&str>
The EC2 Instance type used for the streaming session.
sourcepub fn launch_profile_id(&self) -> Option<&str>
pub fn launch_profile_id(&self) -> Option<&str>
The ID of the launch profile used to control access from the streaming session.
sourcepub fn owned_by(&self) -> Option<&str>
pub fn owned_by(&self) -> Option<&str>
The user ID of the user that owns the streaming session. The user that owns the session will be logging into the session and interacting with the virtual workstation.
sourcepub fn session_id(&self) -> Option<&str>
pub fn session_id(&self) -> Option<&str>
The session ID.
sourcepub fn state(&self) -> Option<&StreamingSessionState>
pub fn state(&self) -> Option<&StreamingSessionState>
The current state.
sourcepub fn status_code(&self) -> Option<&StreamingSessionStatusCode>
pub fn status_code(&self) -> Option<&StreamingSessionStatusCode>
The status code.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
The status message for the streaming session.
sourcepub fn streaming_image_id(&self) -> Option<&str>
pub fn streaming_image_id(&self) -> Option<&str>
The ID of the streaming image.
A collection of labels, in the form of key-value pairs, that apply to this resource.
sourcepub fn terminate_at(&self) -> Option<&DateTime>
pub fn terminate_at(&self) -> Option<&DateTime>
The time the streaming session will automatically terminate if not terminated by the user.
sourcepub fn updated_at(&self) -> Option<&DateTime>
pub fn updated_at(&self) -> Option<&DateTime>
The ISO timestamp in seconds for when the resource was updated.
sourcepub fn updated_by(&self) -> Option<&str>
pub fn updated_by(&self) -> Option<&str>
The user ID of the user that most recently updated the resource.
sourcepub fn stopped_at(&self) -> Option<&DateTime>
pub fn stopped_at(&self) -> Option<&DateTime>
The time the session entered STOP_IN_PROGRESS
state.
sourcepub fn stopped_by(&self) -> Option<&str>
pub fn stopped_by(&self) -> Option<&str>
The user ID of the user that stopped the streaming session.
sourcepub fn started_at(&self) -> Option<&DateTime>
pub fn started_at(&self) -> Option<&DateTime>
The time the session entered START_IN_PROGRESS
state.
sourcepub fn started_by(&self) -> Option<&str>
pub fn started_by(&self) -> Option<&str>
The user ID of the user that started the streaming session.
sourcepub fn stop_at(&self) -> Option<&DateTime>
pub fn stop_at(&self) -> Option<&DateTime>
The time the streaming session will automatically be stopped if the user doesn’t stop the session themselves.
sourcepub fn started_from_backup_id(&self) -> Option<&str>
pub fn started_from_backup_id(&self) -> Option<&str>
The backup ID used to restore a streaming session.
sourcepub fn backup_mode(&self) -> Option<&SessionBackupMode>
pub fn backup_mode(&self) -> Option<&SessionBackupMode>
Shows the current backup setting of the session.
sourcepub fn max_backups_to_retain(&self) -> i32
pub fn max_backups_to_retain(&self) -> i32
The maximum number of backups of a streaming session that you can have. When the maximum number of backups is reached, the oldest backup is deleted.
sourcepub fn volume_retention_mode(&self) -> Option<&VolumeRetentionMode>
pub fn volume_retention_mode(&self) -> Option<&VolumeRetentionMode>
Determine if an EBS volume created from this streaming session will be backed up.
sourcepub fn session_persistence_mode(&self) -> Option<&SessionPersistenceMode>
pub fn session_persistence_mode(&self) -> Option<&SessionPersistenceMode>
Determine if a streaming session created from this launch profile can configure persistent storage. This means that volumeConfiguration
and automaticTerminationMode
are configured.
sourcepub fn volume_configuration(&self) -> Option<&VolumeConfiguration>
pub fn volume_configuration(&self) -> Option<&VolumeConfiguration>
Custom volume configuration for the root volumes that are attached to streaming sessions.
This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
.
sourcepub fn automatic_termination_mode(&self) -> Option<&AutomaticTerminationMode>
pub fn automatic_termination_mode(&self) -> Option<&AutomaticTerminationMode>
Indicates if a streaming session created from this launch profile should be terminated automatically or retained without termination after being in a STOPPED
state.
-
When
ACTIVATED
, the streaming session is scheduled for termination after being in theSTOPPED
state for the time specified inmaxStoppedSessionLengthInMinutes
. -
When
DEACTIVATED
, the streaming session can remain in theSTOPPED
state indefinitely.
This parameter is only allowed when sessionPersistenceMode
is ACTIVATED
. When allowed, the default value for this parameter is DEACTIVATED
.
source§impl StreamingSession
impl StreamingSession
sourcepub fn builder() -> StreamingSessionBuilder
pub fn builder() -> StreamingSessionBuilder
Creates a new builder-style object to manufacture StreamingSession
.
Trait Implementations§
source§impl Clone for StreamingSession
impl Clone for StreamingSession
source§fn clone(&self) -> StreamingSession
fn clone(&self) -> StreamingSession
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StreamingSession
impl Debug for StreamingSession
source§impl PartialEq for StreamingSession
impl PartialEq for StreamingSession
source§fn eq(&self, other: &StreamingSession) -> bool
fn eq(&self, other: &StreamingSession) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StreamingSession
Auto Trait Implementations§
impl Freeze for StreamingSession
impl RefUnwindSafe for StreamingSession
impl Send for StreamingSession
impl Sync for StreamingSession
impl Unpin for StreamingSession
impl UnwindSafe for StreamingSession
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more