Skip to main content

WorkspacesWebState

Struct WorkspacesWebState 

Source
pub struct WorkspacesWebState {
    pub portals: HashMap<String, Portal>,
    pub browser_settings: HashMap<String, BrowserSettings>,
    pub network_settings: HashMap<String, NetworkSettings>,
    pub user_access_logging_settings: HashMap<String, UserAccessLoggingSettings>,
    pub user_settings: HashMap<String, UserSettings>,
    pub identity_providers: HashMap<String, IdentityProvider>,
    pub ip_access_settings: HashMap<String, IpAccessSettings>,
    pub trust_stores: HashMap<String, TrustStore>,
    pub data_protection_settings: HashMap<String, DataProtectionSettings>,
    pub session_loggers: HashMap<String, SessionLogger>,
    pub sessions: HashMap<String, Session>,
}

Fields§

§portals: HashMap<String, Portal>§browser_settings: HashMap<String, BrowserSettings>§network_settings: HashMap<String, NetworkSettings>§user_access_logging_settings: HashMap<String, UserAccessLoggingSettings>§user_settings: HashMap<String, UserSettings>§identity_providers: HashMap<String, IdentityProvider>§ip_access_settings: HashMap<String, IpAccessSettings>§trust_stores: HashMap<String, TrustStore>§data_protection_settings: HashMap<String, DataProtectionSettings>§session_loggers: HashMap<String, SessionLogger>§sessions: HashMap<String, Session>

Implementations§

Source§

impl WorkspacesWebState

Source

pub fn create_portal( &mut self, display_name: Option<&str>, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&Portal, WorkspacesWebError>

Source

pub fn get_portal( &self, portal_arn: &str, ) -> Result<&Portal, WorkspacesWebError>

Source

pub fn delete_portal( &mut self, portal_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn list_portals(&self) -> Vec<&Portal>

Source

pub fn create_browser_settings( &mut self, browser_policy: Option<&str>, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&BrowserSettings, WorkspacesWebError>

Source

pub fn get_browser_settings( &self, arn: &str, ) -> Result<&BrowserSettings, WorkspacesWebError>

Source

pub fn delete_browser_settings( &mut self, arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn list_browser_settings(&self) -> Vec<&BrowserSettings>

Source

pub fn create_network_settings( &mut self, vpc_id: &str, subnet_ids: Vec<String>, security_group_ids: Vec<String>, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&NetworkSettings, WorkspacesWebError>

Source

pub fn get_network_settings( &self, arn: &str, ) -> Result<&NetworkSettings, WorkspacesWebError>

Source

pub fn delete_network_settings( &mut self, arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn list_network_settings(&self) -> Vec<&NetworkSettings>

Source

pub fn create_user_access_logging_settings( &mut self, kinesis_stream_arn: &str, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&UserAccessLoggingSettings, WorkspacesWebError>

Source

pub fn get_user_access_logging_settings( &self, arn: &str, ) -> Result<&UserAccessLoggingSettings, WorkspacesWebError>

Source

pub fn delete_user_access_logging_settings( &mut self, arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn list_user_access_logging_settings( &self, ) -> Vec<&UserAccessLoggingSettings>

Source

pub fn create_user_settings( &mut self, copy_allowed: &str, paste_allowed: &str, download_allowed: &str, upload_allowed: &str, print_allowed: &str, disconnect_timeout_in_minutes: Option<i32>, idle_disconnect_timeout_in_minutes: Option<i32>, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&UserSettings, WorkspacesWebError>

Source

pub fn get_user_settings( &self, arn: &str, ) -> Result<&UserSettings, WorkspacesWebError>

Source

pub fn delete_user_settings( &mut self, arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn list_user_settings(&self) -> Vec<&UserSettings>

Source

pub fn associate_browser_settings( &mut self, portal_arn: &str, browser_settings_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn associate_network_settings( &mut self, portal_arn: &str, network_settings_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn associate_user_access_logging_settings( &mut self, portal_arn: &str, user_access_logging_settings_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn associate_user_settings( &mut self, portal_arn: &str, user_settings_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn update_portal( &mut self, portal_arn: &str, display_name: Option<&str>, ) -> Result<&Portal, WorkspacesWebError>

Source

pub fn create_identity_provider( &mut self, portal_arn: &str, name: &str, provider_type: &str, details: HashMap<String, String>, account_id: &str, region: &str, ) -> Result<&IdentityProvider, WorkspacesWebError>

Source

pub fn get_identity_provider( &self, arn: &str, ) -> Result<&IdentityProvider, WorkspacesWebError>

Source

pub fn delete_identity_provider( &mut self, arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn list_identity_providers( &self, portal_arn: &str, ) -> Vec<&IdentityProvider>

Source

pub fn update_identity_provider( &mut self, arn: &str, name: Option<&str>, provider_type: Option<&str>, details: Option<HashMap<String, String>>, ) -> Result<&IdentityProvider, WorkspacesWebError>

Source

pub fn create_ip_access_settings( &mut self, ip_rules: Vec<IpRule>, display_name: Option<String>, description: Option<String>, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&IpAccessSettings, WorkspacesWebError>

Source

pub fn get_ip_access_settings( &self, arn: &str, ) -> Result<&IpAccessSettings, WorkspacesWebError>

Source

pub fn delete_ip_access_settings( &mut self, arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn list_ip_access_settings(&self) -> Vec<&IpAccessSettings>

Source

pub fn update_ip_access_settings( &mut self, arn: &str, ip_rules: Option<Vec<IpRule>>, display_name: Option<String>, description: Option<String>, ) -> Result<&IpAccessSettings, WorkspacesWebError>

Source

pub fn associate_ip_access_settings( &mut self, portal_arn: &str, ip_access_settings_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn disassociate_ip_access_settings( &mut self, portal_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn create_trust_store( &mut self, certificate_list: Vec<String>, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&TrustStore, WorkspacesWebError>

Source

pub fn get_trust_store( &self, arn: &str, ) -> Result<&TrustStore, WorkspacesWebError>

Source

pub fn delete_trust_store( &mut self, arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn list_trust_stores(&self) -> Vec<&TrustStore>

Source

pub fn update_trust_store( &mut self, arn: &str, certs_to_add: Vec<String>, thumbprints_to_delete: Vec<String>, ) -> Result<&TrustStore, WorkspacesWebError>

Source

pub fn associate_trust_store( &mut self, portal_arn: &str, trust_store_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn disassociate_trust_store( &mut self, portal_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn create_data_protection_settings( &mut self, display_name: Option<String>, description: Option<String>, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&DataProtectionSettings, WorkspacesWebError>

Source

pub fn get_data_protection_settings( &self, arn: &str, ) -> Result<&DataProtectionSettings, WorkspacesWebError>

Source

pub fn delete_data_protection_settings( &mut self, arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn list_data_protection_settings(&self) -> Vec<&DataProtectionSettings>

Source

pub fn update_data_protection_settings( &mut self, arn: &str, display_name: Option<String>, description: Option<String>, ) -> Result<&DataProtectionSettings, WorkspacesWebError>

Source

pub fn associate_data_protection_settings( &mut self, portal_arn: &str, data_protection_settings_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn disassociate_data_protection_settings( &mut self, portal_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn create_session_logger( &mut self, display_name: Option<String>, account_id: &str, region: &str, tags: HashMap<String, String>, ) -> Result<&SessionLogger, WorkspacesWebError>

Source

pub fn get_session_logger( &self, arn: &str, ) -> Result<&SessionLogger, WorkspacesWebError>

Source

pub fn delete_session_logger( &mut self, arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn list_session_loggers(&self) -> Vec<&SessionLogger>

Source

pub fn update_session_logger( &mut self, arn: &str, display_name: Option<String>, ) -> Result<&SessionLogger, WorkspacesWebError>

Source

pub fn associate_session_logger( &mut self, portal_arn: &str, session_logger_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn disassociate_session_logger( &mut self, portal_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn get_session( &self, portal_id: &str, session_id: &str, ) -> Result<&Session, WorkspacesWebError>

Source

pub fn list_sessions(&self, portal_id: &str) -> Vec<&Session>

Source

pub fn expire_session( &mut self, portal_id: &str, session_id: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn disassociate_browser_settings( &mut self, portal_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn disassociate_network_settings( &mut self, portal_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn disassociate_user_access_logging_settings( &mut self, portal_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn disassociate_user_settings( &mut self, portal_arn: &str, ) -> Result<(), WorkspacesWebError>

Source

pub fn update_browser_settings( &mut self, arn: &str, browser_policy: Option<String>, ) -> Result<&BrowserSettings, WorkspacesWebError>

Source

pub fn update_network_settings( &mut self, arn: &str, vpc_id: Option<String>, subnet_ids: Option<Vec<String>>, security_group_ids: Option<Vec<String>>, ) -> Result<&NetworkSettings, WorkspacesWebError>

Source

pub fn update_user_access_logging_settings( &mut self, arn: &str, kinesis_stream_arn: Option<String>, ) -> Result<&UserAccessLoggingSettings, WorkspacesWebError>

Source

pub fn update_user_settings( &mut self, arn: &str, copy_allowed: Option<String>, paste_allowed: Option<String>, download_allowed: Option<String>, upload_allowed: Option<String>, print_allowed: Option<String>, disconnect_timeout: Option<i32>, idle_disconnect_timeout: Option<i32>, ) -> Result<&UserSettings, WorkspacesWebError>

Source

pub fn get_tags_for_resource( &self, resource_arn: &str, ) -> Result<&HashMap<String, String>, WorkspacesWebError>

Source

pub fn tag_resource( &mut self, resource_arn: &str, tags: HashMap<String, String>, ) -> Result<(), WorkspacesWebError>

Source

pub fn untag_resource( &mut self, resource_arn: &str, tag_keys: &[String], ) -> Result<(), WorkspacesWebError>

Trait Implementations§

Source§

impl Debug for WorkspacesWebState

Source§

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

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

impl Default for WorkspacesWebState

Source§

fn default() -> WorkspacesWebState

Returns the “default value” for a type. Read more
Source§

impl From<&WorkspacesWebState> for WorkspacesWebStateView

Source§

fn from(state: &WorkspacesWebState) -> Self

Converts to this type from the input type.
Source§

impl From<WorkspacesWebStateView> for WorkspacesWebState

Source§

fn from(view: WorkspacesWebStateView) -> Self

Converts to this type from the input type.

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<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
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

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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