aws_sdk_workmail/client/
create_mobile_device_access_rule.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateMobileDeviceAccessRule`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`organization_id(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_organization_id):<br>required: **true**<br><p>The WorkMail organization under which the rule will be created.</p><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_client_token):<br>required: **false**<br><p>The idempotency token for the client request.</p><br>
    ///   - [`name(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_name):<br>required: **true**<br><p>The rule name.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_description):<br>required: **false**<br><p>The rule description.</p><br>
    ///   - [`effect(MobileDeviceAccessRuleEffect)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::effect) / [`set_effect(Option<MobileDeviceAccessRuleEffect>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_effect):<br>required: **true**<br><p>The effect of the rule when it matches. Allowed values are <code>ALLOW</code> or <code>DENY</code>.</p><br>
    ///   - [`device_types(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::device_types) / [`set_device_types(Option<Vec::<String>>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_device_types):<br>required: **false**<br><p>Device types that the rule will match.</p><br>
    ///   - [`not_device_types(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::not_device_types) / [`set_not_device_types(Option<Vec::<String>>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_not_device_types):<br>required: **false**<br><p>Device types that the rule <b>will not</b> match. All other device types will match.</p><br>
    ///   - [`device_models(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::device_models) / [`set_device_models(Option<Vec::<String>>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_device_models):<br>required: **false**<br><p>Device models that the rule will match.</p><br>
    ///   - [`not_device_models(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::not_device_models) / [`set_not_device_models(Option<Vec::<String>>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_not_device_models):<br>required: **false**<br><p>Device models that the rule <b>will not</b> match. All other device models will match.</p><br>
    ///   - [`device_operating_systems(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::device_operating_systems) / [`set_device_operating_systems(Option<Vec::<String>>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_device_operating_systems):<br>required: **false**<br><p>Device operating systems that the rule will match.</p><br>
    ///   - [`not_device_operating_systems(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::not_device_operating_systems) / [`set_not_device_operating_systems(Option<Vec::<String>>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_not_device_operating_systems):<br>required: **false**<br><p>Device operating systems that the rule <b>will not</b> match. All other device operating systems will match.</p><br>
    ///   - [`device_user_agents(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::device_user_agents) / [`set_device_user_agents(Option<Vec::<String>>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_device_user_agents):<br>required: **false**<br><p>Device user agents that the rule will match.</p><br>
    ///   - [`not_device_user_agents(impl Into<String>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::not_device_user_agents) / [`set_not_device_user_agents(Option<Vec::<String>>)`](crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::set_not_device_user_agents):<br>required: **false**<br><p>Device user agents that the rule <b>will not</b> match. All other device user agents will match.</p><br>
    /// - On success, responds with [`CreateMobileDeviceAccessRuleOutput`](crate::operation::create_mobile_device_access_rule::CreateMobileDeviceAccessRuleOutput) with field(s):
    ///   - [`mobile_device_access_rule_id(Option<String>)`](crate::operation::create_mobile_device_access_rule::CreateMobileDeviceAccessRuleOutput::mobile_device_access_rule_id): <p>The identifier for the newly created mobile device access rule.</p>
    /// - On failure, responds with [`SdkError<CreateMobileDeviceAccessRuleError>`](crate::operation::create_mobile_device_access_rule::CreateMobileDeviceAccessRuleError)
    pub fn create_mobile_device_access_rule(
        &self,
    ) -> crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder {
        crate::operation::create_mobile_device_access_rule::builders::CreateMobileDeviceAccessRuleFluentBuilder::new(self.handle.clone())
    }
}