aws_sdk_workmail/client/
get_access_control_effect.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetAccessControlEffect`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`organization_id(impl Into<String>)`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::set_organization_id):<br>required: **true**<br><p>The identifier for the organization.</p><br>
    ///   - [`ip_address(impl Into<String>)`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::ip_address) / [`set_ip_address(Option<String>)`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::set_ip_address):<br>required: **true**<br><p>The IPv4 address.</p><br>
    ///   - [`action(impl Into<String>)`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::action) / [`set_action(Option<String>)`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::set_action):<br>required: **true**<br><p>The access protocol action. Valid values include <code>ActiveSync</code>, <code>AutoDiscover</code>, <code>EWS</code>, <code>IMAP</code>, <code>SMTP</code>, <code>WindowsOutlook</code>, and <code>WebMail</code>.</p><br>
    ///   - [`user_id(impl Into<String>)`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::user_id) / [`set_user_id(Option<String>)`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::set_user_id):<br>required: **false**<br><p>The user ID.</p><br>
    ///   - [`impersonation_role_id(impl Into<String>)`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::impersonation_role_id) / [`set_impersonation_role_id(Option<String>)`](crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::set_impersonation_role_id):<br>required: **false**<br><p>The impersonation role ID.</p><br>
    /// - On success, responds with [`GetAccessControlEffectOutput`](crate::operation::get_access_control_effect::GetAccessControlEffectOutput) with field(s):
    ///   - [`effect(Option<AccessControlRuleEffect>)`](crate::operation::get_access_control_effect::GetAccessControlEffectOutput::effect): <p>The rule effect.</p>
    ///   - [`matched_rules(Option<Vec::<String>>)`](crate::operation::get_access_control_effect::GetAccessControlEffectOutput::matched_rules): <p>The rules that match the given parameters, resulting in an effect.</p>
    /// - On failure, responds with [`SdkError<GetAccessControlEffectError>`](crate::operation::get_access_control_effect::GetAccessControlEffectError)
    pub fn get_access_control_effect(&self) -> crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder {
        crate::operation::get_access_control_effect::builders::GetAccessControlEffectFluentBuilder::new(self.handle.clone())
    }
}