Struct aws_sdk_nimble::types::StreamConfiguration
source · #[non_exhaustive]pub struct StreamConfiguration {
pub clipboard_mode: StreamingClipboardMode,
pub ec2_instance_types: Vec<StreamingInstanceType>,
pub max_session_length_in_minutes: i32,
pub streaming_image_ids: Vec<String>,
pub max_stopped_session_length_in_minutes: i32,
pub session_storage: Option<StreamConfigurationSessionStorage>,
pub session_backup: Option<StreamConfigurationSessionBackup>,
pub session_persistence_mode: Option<SessionPersistenceMode>,
pub volume_configuration: Option<VolumeConfiguration>,
pub automatic_termination_mode: Option<AutomaticTerminationMode>,
}Expand description
A configuration for a streaming session.
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.clipboard_mode: StreamingClipboardModeAllows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client.
ec2_instance_types: Vec<StreamingInstanceType>The EC2 instance types that users can select from when launching a streaming session with this launch profile.
max_session_length_in_minutes: i32The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. After this point, Nimble Studio automatically terminates or stops the session. The default length of time is 690 minutes, and the maximum length of time is 30 days.
streaming_image_ids: Vec<String>The streaming images that users can select from when launching a streaming session with this launch profile.
max_stopped_session_length_in_minutes: i32Integer that determines if you can start and stop your sessions and how long a session can stay in the STOPPED state. The default value is 0. The maximum value is 5760.
This field is allowed only when sessionPersistenceMode is ACTIVATED and automaticTerminationMode is ACTIVATED.
If the value is set to 0, your sessions can’t be STOPPED. If you then call StopStreamingSession, the session fails. If the time that a session stays in the READY state exceeds the maxSessionLengthInMinutes value, the session will automatically be terminated (instead of STOPPED).
If the value is set to a positive number, the session can be stopped. You can call StopStreamingSession to stop sessions in the READY state. If the time that a session stays in the READY state exceeds the maxSessionLengthInMinutes value, the session will automatically be stopped (instead of terminated).
session_storage: Option<StreamConfigurationSessionStorage>The upload storage for a streaming session.
session_backup: Option<StreamConfigurationSessionBackup>Information about the streaming session backup.
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 theSTOPPEDstate for the time specified inmaxStoppedSessionLengthInMinutes. -
When
DEACTIVATED, the streaming session can remain in theSTOPPEDstate indefinitely.
This parameter is only allowed when sessionPersistenceMode is ACTIVATED. When allowed, the default value for this parameter is DEACTIVATED.
Implementations§
source§impl StreamConfiguration
impl StreamConfiguration
sourcepub fn clipboard_mode(&self) -> &StreamingClipboardMode
pub fn clipboard_mode(&self) -> &StreamingClipboardMode
Allows or deactivates the use of the system clipboard to copy and paste between the streaming session and streaming client.
sourcepub fn ec2_instance_types(&self) -> &[StreamingInstanceType]
pub fn ec2_instance_types(&self) -> &[StreamingInstanceType]
The EC2 instance types that users can select from when launching a streaming session with this launch profile.
sourcepub fn max_session_length_in_minutes(&self) -> i32
pub fn max_session_length_in_minutes(&self) -> i32
The length of time, in minutes, that a streaming session can be active before it is stopped or terminated. After this point, Nimble Studio automatically terminates or stops the session. The default length of time is 690 minutes, and the maximum length of time is 30 days.
sourcepub fn streaming_image_ids(&self) -> &[String]
pub fn streaming_image_ids(&self) -> &[String]
The streaming images that users can select from when launching a streaming session with this launch profile.
sourcepub fn max_stopped_session_length_in_minutes(&self) -> i32
pub fn max_stopped_session_length_in_minutes(&self) -> i32
Integer that determines if you can start and stop your sessions and how long a session can stay in the STOPPED state. The default value is 0. The maximum value is 5760.
This field is allowed only when sessionPersistenceMode is ACTIVATED and automaticTerminationMode is ACTIVATED.
If the value is set to 0, your sessions can’t be STOPPED. If you then call StopStreamingSession, the session fails. If the time that a session stays in the READY state exceeds the maxSessionLengthInMinutes value, the session will automatically be terminated (instead of STOPPED).
If the value is set to a positive number, the session can be stopped. You can call StopStreamingSession to stop sessions in the READY state. If the time that a session stays in the READY state exceeds the maxSessionLengthInMinutes value, the session will automatically be stopped (instead of terminated).
sourcepub fn session_storage(&self) -> Option<&StreamConfigurationSessionStorage>
pub fn session_storage(&self) -> Option<&StreamConfigurationSessionStorage>
The upload storage for a streaming session.
sourcepub fn session_backup(&self) -> Option<&StreamConfigurationSessionBackup>
pub fn session_backup(&self) -> Option<&StreamConfigurationSessionBackup>
Information about the streaming session backup.
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 theSTOPPEDstate for the time specified inmaxStoppedSessionLengthInMinutes. -
When
DEACTIVATED, the streaming session can remain in theSTOPPEDstate indefinitely.
This parameter is only allowed when sessionPersistenceMode is ACTIVATED. When allowed, the default value for this parameter is DEACTIVATED.
source§impl StreamConfiguration
impl StreamConfiguration
sourcepub fn builder() -> StreamConfigurationBuilder
pub fn builder() -> StreamConfigurationBuilder
Creates a new builder-style object to manufacture StreamConfiguration.
Trait Implementations§
source§impl Clone for StreamConfiguration
impl Clone for StreamConfiguration
source§fn clone(&self) -> StreamConfiguration
fn clone(&self) -> StreamConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for StreamConfiguration
impl Debug for StreamConfiguration
source§impl PartialEq for StreamConfiguration
impl PartialEq for StreamConfiguration
source§fn eq(&self, other: &StreamConfiguration) -> bool
fn eq(&self, other: &StreamConfiguration) -> bool
self and other values to be equal, and is used
by ==.