Struct aws_sdk_workmail::client::fluent_builders::CreateMobileDeviceAccessRule [−][src]
pub struct CreateMobileDeviceAccessRule<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to CreateMobileDeviceAccessRule
.
Creates a new mobile device access rule for the specified Amazon WorkMail organization.
Implementations
impl<C, M, R> CreateMobileDeviceAccessRule<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> CreateMobileDeviceAccessRule<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<CreateMobileDeviceAccessRuleOutput, SdkError<CreateMobileDeviceAccessRuleError>> where
R::Policy: SmithyRetryPolicy<CreateMobileDeviceAccessRuleInputOperationOutputAlias, CreateMobileDeviceAccessRuleOutput, CreateMobileDeviceAccessRuleError, CreateMobileDeviceAccessRuleInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<CreateMobileDeviceAccessRuleOutput, SdkError<CreateMobileDeviceAccessRuleError>> where
R::Policy: SmithyRetryPolicy<CreateMobileDeviceAccessRuleInputOperationOutputAlias, CreateMobileDeviceAccessRuleOutput, CreateMobileDeviceAccessRuleError, CreateMobileDeviceAccessRuleInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The Amazon WorkMail organization under which the rule will be created.
The Amazon WorkMail organization under which the rule will be created.
The idempotency token for the client request.
The idempotency token for the client request.
The rule description.
The rule description.
The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
The effect of the rule when it matches. Allowed values are ALLOW
or DENY
.
Appends an item to DeviceTypes
.
To override the contents of this collection use set_device_types
.
Device types that the rule will match.
Device types that the rule will match.
Appends an item to NotDeviceTypes
.
To override the contents of this collection use set_not_device_types
.
Device types that the rule will not match. All other device types will match.
Device types that the rule will not match. All other device types will match.
Appends an item to DeviceModels
.
To override the contents of this collection use set_device_models
.
Device models that the rule will match.
Device models that the rule will match.
Appends an item to NotDeviceModels
.
To override the contents of this collection use set_not_device_models
.
Device models that the rule will not match. All other device models will match.
Device models that the rule will not match. All other device models will match.
Appends an item to DeviceOperatingSystems
.
To override the contents of this collection use set_device_operating_systems
.
Device operating systems that the rule will match.
Device operating systems that the rule will match.
Appends an item to NotDeviceOperatingSystems
.
To override the contents of this collection use set_not_device_operating_systems
.
Device operating systems that the rule will not match. All other device operating systems will match.
Device operating systems that the rule will not match. All other device operating systems will match.
Appends an item to DeviceUserAgents
.
To override the contents of this collection use set_device_user_agents
.
Device user agents that the rule will match.
Device user agents that the rule will match.
Appends an item to NotDeviceUserAgents
.
To override the contents of this collection use set_not_device_user_agents
.
Device user agents that the rule will not match. All other device user agents will match.
Device user agents that the rule will not match. All other device user agents will match.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for CreateMobileDeviceAccessRule<C, M, R>
impl<C, M, R> Send for CreateMobileDeviceAccessRule<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for CreateMobileDeviceAccessRule<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for CreateMobileDeviceAccessRule<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for CreateMobileDeviceAccessRule<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more