aws_sdk_workmail/client/
get_mobile_device_access_effect.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetMobileDeviceAccessEffect`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`organization_id(impl Into<String>)`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::set_organization_id):<br>required: **true**<br><p>The WorkMail organization to simulate the access effect for.</p><br>
7    ///   - [`device_type(impl Into<String>)`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::device_type) / [`set_device_type(Option<String>)`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::set_device_type):<br>required: **false**<br><p>Device type the simulated user will report.</p><br>
8    ///   - [`device_model(impl Into<String>)`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::device_model) / [`set_device_model(Option<String>)`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::set_device_model):<br>required: **false**<br><p>Device model the simulated user will report.</p><br>
9    ///   - [`device_operating_system(impl Into<String>)`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::device_operating_system) / [`set_device_operating_system(Option<String>)`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::set_device_operating_system):<br>required: **false**<br><p>Device operating system the simulated user will report.</p><br>
10    ///   - [`device_user_agent(impl Into<String>)`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::device_user_agent) / [`set_device_user_agent(Option<String>)`](crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::set_device_user_agent):<br>required: **false**<br><p>Device user agent the simulated user will report.</p><br>
11    /// - On success, responds with [`GetMobileDeviceAccessEffectOutput`](crate::operation::get_mobile_device_access_effect::GetMobileDeviceAccessEffectOutput) with field(s):
12    ///   - [`effect(Option<MobileDeviceAccessRuleEffect>)`](crate::operation::get_mobile_device_access_effect::GetMobileDeviceAccessEffectOutput::effect): <p>The effect of the simulated access, <code>ALLOW</code> or <code>DENY</code>, after evaluating mobile device access rules in the WorkMail organization for the simulated user parameters.</p>
13    ///   - [`matched_rules(Option<Vec::<MobileDeviceAccessMatchedRule>>)`](crate::operation::get_mobile_device_access_effect::GetMobileDeviceAccessEffectOutput::matched_rules): <p>A list of the rules which matched the simulated user input and produced the effect.</p>
14    /// - On failure, responds with [`SdkError<GetMobileDeviceAccessEffectError>`](crate::operation::get_mobile_device_access_effect::GetMobileDeviceAccessEffectError)
15    pub fn get_mobile_device_access_effect(
16        &self,
17    ) -> crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder {
18        crate::operation::get_mobile_device_access_effect::builders::GetMobileDeviceAccessEffectFluentBuilder::new(self.handle.clone())
19    }
20}