#[non_exhaustive]
pub struct StreamConfigurationCreate { 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

Configuration for streaming workstations created using this launch profile.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§clipboard_mode: StreamingClipboardMode

Allows 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: 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.

§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: 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).

§session_storage: Option<StreamConfigurationSessionStorage>

The upload storage for a streaming workstation that is created using this launch profile.

§session_backup: Option<StreamConfigurationSessionBackup>

Configures how streaming sessions are backed up when launched from this launch profile.

§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 the STOPPED state for the time specified in maxStoppedSessionLengthInMinutes.

  • When DEACTIVATED, the streaming session can remain in the STOPPED state indefinitely.

This parameter is only allowed when sessionPersistenceMode is ACTIVATED. When allowed, the default value for this parameter is DEACTIVATED.

Implementations§

source§

impl StreamConfigurationCreate

source

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.

source

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.

source

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.

source

pub fn streaming_image_ids(&self) -> &[String]

The streaming images that users can select from when launching a streaming session with this launch profile.

source

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).

source

pub fn session_storage(&self) -> Option<&StreamConfigurationSessionStorage>

The upload storage for a streaming workstation that is created using this launch profile.

source

pub fn session_backup(&self) -> Option<&StreamConfigurationSessionBackup>

Configures how streaming sessions are backed up when launched from this launch profile.

source

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.

source

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.

source

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 the STOPPED state for the time specified in maxStoppedSessionLengthInMinutes.

  • When DEACTIVATED, the streaming session can remain in the STOPPED state indefinitely.

This parameter is only allowed when sessionPersistenceMode is ACTIVATED. When allowed, the default value for this parameter is DEACTIVATED.

source§

impl StreamConfigurationCreate

source

pub fn builder() -> StreamConfigurationCreateBuilder

Creates a new builder-style object to manufacture StreamConfigurationCreate.

Trait Implementations§

source§

impl Clone for StreamConfigurationCreate

source§

fn clone(&self) -> StreamConfigurationCreate

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StreamConfigurationCreate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for StreamConfigurationCreate

source§

fn eq(&self, other: &StreamConfigurationCreate) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for StreamConfigurationCreate

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more