{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.WorkMail.UpdateMobileDeviceAccessRule
(
UpdateMobileDeviceAccessRule (..),
newUpdateMobileDeviceAccessRule,
updateMobileDeviceAccessRule_deviceUserAgents,
updateMobileDeviceAccessRule_deviceTypes,
updateMobileDeviceAccessRule_notDeviceTypes,
updateMobileDeviceAccessRule_notDeviceOperatingSystems,
updateMobileDeviceAccessRule_deviceModels,
updateMobileDeviceAccessRule_deviceOperatingSystems,
updateMobileDeviceAccessRule_description,
updateMobileDeviceAccessRule_notDeviceUserAgents,
updateMobileDeviceAccessRule_notDeviceModels,
updateMobileDeviceAccessRule_organizationId,
updateMobileDeviceAccessRule_mobileDeviceAccessRuleId,
updateMobileDeviceAccessRule_name,
updateMobileDeviceAccessRule_effect,
UpdateMobileDeviceAccessRuleResponse (..),
newUpdateMobileDeviceAccessRuleResponse,
updateMobileDeviceAccessRuleResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WorkMail.Types
data UpdateMobileDeviceAccessRule = UpdateMobileDeviceAccessRule'
{
UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
deviceUserAgents :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
deviceTypes :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
notDeviceTypes :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
notDeviceOperatingSystems :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
deviceModels :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
deviceOperatingSystems :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UpdateMobileDeviceAccessRule -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
notDeviceUserAgents :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
notDeviceModels :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UpdateMobileDeviceAccessRule -> Text
organizationId :: Prelude.Text,
UpdateMobileDeviceAccessRule -> Text
mobileDeviceAccessRuleId :: Prelude.Text,
UpdateMobileDeviceAccessRule -> Text
name :: Prelude.Text,
UpdateMobileDeviceAccessRule -> MobileDeviceAccessRuleEffect
effect :: MobileDeviceAccessRuleEffect
}
deriving (UpdateMobileDeviceAccessRule
-> UpdateMobileDeviceAccessRule -> Bool
(UpdateMobileDeviceAccessRule
-> UpdateMobileDeviceAccessRule -> Bool)
-> (UpdateMobileDeviceAccessRule
-> UpdateMobileDeviceAccessRule -> Bool)
-> Eq UpdateMobileDeviceAccessRule
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateMobileDeviceAccessRule
-> UpdateMobileDeviceAccessRule -> Bool
$c/= :: UpdateMobileDeviceAccessRule
-> UpdateMobileDeviceAccessRule -> Bool
== :: UpdateMobileDeviceAccessRule
-> UpdateMobileDeviceAccessRule -> Bool
$c== :: UpdateMobileDeviceAccessRule
-> UpdateMobileDeviceAccessRule -> Bool
Prelude.Eq, ReadPrec [UpdateMobileDeviceAccessRule]
ReadPrec UpdateMobileDeviceAccessRule
Int -> ReadS UpdateMobileDeviceAccessRule
ReadS [UpdateMobileDeviceAccessRule]
(Int -> ReadS UpdateMobileDeviceAccessRule)
-> ReadS [UpdateMobileDeviceAccessRule]
-> ReadPrec UpdateMobileDeviceAccessRule
-> ReadPrec [UpdateMobileDeviceAccessRule]
-> Read UpdateMobileDeviceAccessRule
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateMobileDeviceAccessRule]
$creadListPrec :: ReadPrec [UpdateMobileDeviceAccessRule]
readPrec :: ReadPrec UpdateMobileDeviceAccessRule
$creadPrec :: ReadPrec UpdateMobileDeviceAccessRule
readList :: ReadS [UpdateMobileDeviceAccessRule]
$creadList :: ReadS [UpdateMobileDeviceAccessRule]
readsPrec :: Int -> ReadS UpdateMobileDeviceAccessRule
$creadsPrec :: Int -> ReadS UpdateMobileDeviceAccessRule
Prelude.Read, Int -> UpdateMobileDeviceAccessRule -> ShowS
[UpdateMobileDeviceAccessRule] -> ShowS
UpdateMobileDeviceAccessRule -> String
(Int -> UpdateMobileDeviceAccessRule -> ShowS)
-> (UpdateMobileDeviceAccessRule -> String)
-> ([UpdateMobileDeviceAccessRule] -> ShowS)
-> Show UpdateMobileDeviceAccessRule
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateMobileDeviceAccessRule] -> ShowS
$cshowList :: [UpdateMobileDeviceAccessRule] -> ShowS
show :: UpdateMobileDeviceAccessRule -> String
$cshow :: UpdateMobileDeviceAccessRule -> String
showsPrec :: Int -> UpdateMobileDeviceAccessRule -> ShowS
$cshowsPrec :: Int -> UpdateMobileDeviceAccessRule -> ShowS
Prelude.Show, (forall x.
UpdateMobileDeviceAccessRule -> Rep UpdateMobileDeviceAccessRule x)
-> (forall x.
Rep UpdateMobileDeviceAccessRule x -> UpdateMobileDeviceAccessRule)
-> Generic UpdateMobileDeviceAccessRule
forall x.
Rep UpdateMobileDeviceAccessRule x -> UpdateMobileDeviceAccessRule
forall x.
UpdateMobileDeviceAccessRule -> Rep UpdateMobileDeviceAccessRule x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateMobileDeviceAccessRule x -> UpdateMobileDeviceAccessRule
$cfrom :: forall x.
UpdateMobileDeviceAccessRule -> Rep UpdateMobileDeviceAccessRule x
Prelude.Generic)
newUpdateMobileDeviceAccessRule ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
MobileDeviceAccessRuleEffect ->
UpdateMobileDeviceAccessRule
newUpdateMobileDeviceAccessRule :: Text
-> Text
-> Text
-> MobileDeviceAccessRuleEffect
-> UpdateMobileDeviceAccessRule
newUpdateMobileDeviceAccessRule
Text
pOrganizationId_
Text
pMobileDeviceAccessRuleId_
Text
pName_
MobileDeviceAccessRuleEffect
pEffect_ =
UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
-> Maybe (NonEmpty Text)
-> Maybe (NonEmpty Text)
-> Maybe (NonEmpty Text)
-> Maybe (NonEmpty Text)
-> Maybe (NonEmpty Text)
-> Maybe Text
-> Maybe (NonEmpty Text)
-> Maybe (NonEmpty Text)
-> Text
-> Text
-> Text
-> MobileDeviceAccessRuleEffect
-> UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule'
{ $sel:deviceUserAgents:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
deviceUserAgents =
Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:deviceTypes:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
deviceTypes = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:notDeviceTypes:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
notDeviceTypes = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:notDeviceOperatingSystems:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
notDeviceOperatingSystems = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:deviceModels:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
deviceModels = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:deviceOperatingSystems:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
deviceOperatingSystems = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateMobileDeviceAccessRule' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:notDeviceUserAgents:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
notDeviceUserAgents = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:notDeviceModels:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
notDeviceModels = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:organizationId:UpdateMobileDeviceAccessRule' :: Text
organizationId = Text
pOrganizationId_,
$sel:mobileDeviceAccessRuleId:UpdateMobileDeviceAccessRule' :: Text
mobileDeviceAccessRuleId =
Text
pMobileDeviceAccessRuleId_,
$sel:name:UpdateMobileDeviceAccessRule' :: Text
name = Text
pName_,
$sel:effect:UpdateMobileDeviceAccessRule' :: MobileDeviceAccessRuleEffect
effect = MobileDeviceAccessRuleEffect
pEffect_
}
updateMobileDeviceAccessRule_deviceUserAgents :: Lens.Lens' UpdateMobileDeviceAccessRule (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
updateMobileDeviceAccessRule_deviceUserAgents :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_deviceUserAgents = (UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text))
-> (UpdateMobileDeviceAccessRule
-> Maybe (NonEmpty Text) -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Maybe (NonEmpty Text)
deviceUserAgents :: Maybe (NonEmpty Text)
$sel:deviceUserAgents:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
deviceUserAgents} -> Maybe (NonEmpty Text)
deviceUserAgents) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Maybe (NonEmpty Text)
a -> UpdateMobileDeviceAccessRule
s {$sel:deviceUserAgents:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
deviceUserAgents = Maybe (NonEmpty Text)
a} :: UpdateMobileDeviceAccessRule) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule
-> f UpdateMobileDeviceAccessRule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateMobileDeviceAccessRule_deviceTypes :: Lens.Lens' UpdateMobileDeviceAccessRule (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
updateMobileDeviceAccessRule_deviceTypes :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_deviceTypes = (UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text))
-> (UpdateMobileDeviceAccessRule
-> Maybe (NonEmpty Text) -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Maybe (NonEmpty Text)
deviceTypes :: Maybe (NonEmpty Text)
$sel:deviceTypes:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
deviceTypes} -> Maybe (NonEmpty Text)
deviceTypes) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Maybe (NonEmpty Text)
a -> UpdateMobileDeviceAccessRule
s {$sel:deviceTypes:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
deviceTypes = Maybe (NonEmpty Text)
a} :: UpdateMobileDeviceAccessRule) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule
-> f UpdateMobileDeviceAccessRule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateMobileDeviceAccessRule_notDeviceTypes :: Lens.Lens' UpdateMobileDeviceAccessRule (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
updateMobileDeviceAccessRule_notDeviceTypes :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_notDeviceTypes = (UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text))
-> (UpdateMobileDeviceAccessRule
-> Maybe (NonEmpty Text) -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Maybe (NonEmpty Text)
notDeviceTypes :: Maybe (NonEmpty Text)
$sel:notDeviceTypes:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
notDeviceTypes} -> Maybe (NonEmpty Text)
notDeviceTypes) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Maybe (NonEmpty Text)
a -> UpdateMobileDeviceAccessRule
s {$sel:notDeviceTypes:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
notDeviceTypes = Maybe (NonEmpty Text)
a} :: UpdateMobileDeviceAccessRule) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule
-> f UpdateMobileDeviceAccessRule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateMobileDeviceAccessRule_notDeviceOperatingSystems :: Lens.Lens' UpdateMobileDeviceAccessRule (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
updateMobileDeviceAccessRule_notDeviceOperatingSystems :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_notDeviceOperatingSystems = (UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text))
-> (UpdateMobileDeviceAccessRule
-> Maybe (NonEmpty Text) -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Maybe (NonEmpty Text)
notDeviceOperatingSystems :: Maybe (NonEmpty Text)
$sel:notDeviceOperatingSystems:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
notDeviceOperatingSystems} -> Maybe (NonEmpty Text)
notDeviceOperatingSystems) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Maybe (NonEmpty Text)
a -> UpdateMobileDeviceAccessRule
s {$sel:notDeviceOperatingSystems:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
notDeviceOperatingSystems = Maybe (NonEmpty Text)
a} :: UpdateMobileDeviceAccessRule) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule
-> f UpdateMobileDeviceAccessRule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateMobileDeviceAccessRule_deviceModels :: Lens.Lens' UpdateMobileDeviceAccessRule (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
updateMobileDeviceAccessRule_deviceModels :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_deviceModels = (UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text))
-> (UpdateMobileDeviceAccessRule
-> Maybe (NonEmpty Text) -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Maybe (NonEmpty Text)
deviceModels :: Maybe (NonEmpty Text)
$sel:deviceModels:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
deviceModels} -> Maybe (NonEmpty Text)
deviceModels) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Maybe (NonEmpty Text)
a -> UpdateMobileDeviceAccessRule
s {$sel:deviceModels:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
deviceModels = Maybe (NonEmpty Text)
a} :: UpdateMobileDeviceAccessRule) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule
-> f UpdateMobileDeviceAccessRule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateMobileDeviceAccessRule_deviceOperatingSystems :: Lens.Lens' UpdateMobileDeviceAccessRule (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
updateMobileDeviceAccessRule_deviceOperatingSystems :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_deviceOperatingSystems = (UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text))
-> (UpdateMobileDeviceAccessRule
-> Maybe (NonEmpty Text) -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Maybe (NonEmpty Text)
deviceOperatingSystems :: Maybe (NonEmpty Text)
$sel:deviceOperatingSystems:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
deviceOperatingSystems} -> Maybe (NonEmpty Text)
deviceOperatingSystems) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Maybe (NonEmpty Text)
a -> UpdateMobileDeviceAccessRule
s {$sel:deviceOperatingSystems:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
deviceOperatingSystems = Maybe (NonEmpty Text)
a} :: UpdateMobileDeviceAccessRule) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule
-> f UpdateMobileDeviceAccessRule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateMobileDeviceAccessRule_description :: Lens.Lens' UpdateMobileDeviceAccessRule (Prelude.Maybe Prelude.Text)
updateMobileDeviceAccessRule_description :: (Maybe Text -> f (Maybe Text))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_description = (UpdateMobileDeviceAccessRule -> Maybe Text)
-> (UpdateMobileDeviceAccessRule
-> Maybe Text -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Maybe Text
description :: Maybe Text
$sel:description:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Maybe Text
a -> UpdateMobileDeviceAccessRule
s {$sel:description:UpdateMobileDeviceAccessRule' :: Maybe Text
description = Maybe Text
a} :: UpdateMobileDeviceAccessRule)
updateMobileDeviceAccessRule_notDeviceUserAgents :: Lens.Lens' UpdateMobileDeviceAccessRule (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
updateMobileDeviceAccessRule_notDeviceUserAgents :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_notDeviceUserAgents = (UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text))
-> (UpdateMobileDeviceAccessRule
-> Maybe (NonEmpty Text) -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Maybe (NonEmpty Text)
notDeviceUserAgents :: Maybe (NonEmpty Text)
$sel:notDeviceUserAgents:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
notDeviceUserAgents} -> Maybe (NonEmpty Text)
notDeviceUserAgents) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Maybe (NonEmpty Text)
a -> UpdateMobileDeviceAccessRule
s {$sel:notDeviceUserAgents:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
notDeviceUserAgents = Maybe (NonEmpty Text)
a} :: UpdateMobileDeviceAccessRule) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule
-> f UpdateMobileDeviceAccessRule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateMobileDeviceAccessRule_notDeviceModels :: Lens.Lens' UpdateMobileDeviceAccessRule (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
updateMobileDeviceAccessRule_notDeviceModels :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_notDeviceModels = (UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text))
-> (UpdateMobileDeviceAccessRule
-> Maybe (NonEmpty Text) -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Maybe (NonEmpty Text)
notDeviceModels :: Maybe (NonEmpty Text)
$sel:notDeviceModels:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
notDeviceModels} -> Maybe (NonEmpty Text)
notDeviceModels) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Maybe (NonEmpty Text)
a -> UpdateMobileDeviceAccessRule
s {$sel:notDeviceModels:UpdateMobileDeviceAccessRule' :: Maybe (NonEmpty Text)
notDeviceModels = Maybe (NonEmpty Text)
a} :: UpdateMobileDeviceAccessRule) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UpdateMobileDeviceAccessRule
-> f UpdateMobileDeviceAccessRule
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateMobileDeviceAccessRule_organizationId :: Lens.Lens' UpdateMobileDeviceAccessRule Prelude.Text
updateMobileDeviceAccessRule_organizationId :: (Text -> f Text)
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_organizationId = (UpdateMobileDeviceAccessRule -> Text)
-> (UpdateMobileDeviceAccessRule
-> Text -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule UpdateMobileDeviceAccessRule Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Text
organizationId :: Text
$sel:organizationId:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Text
organizationId} -> Text
organizationId) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Text
a -> UpdateMobileDeviceAccessRule
s {$sel:organizationId:UpdateMobileDeviceAccessRule' :: Text
organizationId = Text
a} :: UpdateMobileDeviceAccessRule)
updateMobileDeviceAccessRule_mobileDeviceAccessRuleId :: Lens.Lens' UpdateMobileDeviceAccessRule Prelude.Text
updateMobileDeviceAccessRule_mobileDeviceAccessRuleId :: (Text -> f Text)
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_mobileDeviceAccessRuleId = (UpdateMobileDeviceAccessRule -> Text)
-> (UpdateMobileDeviceAccessRule
-> Text -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule UpdateMobileDeviceAccessRule Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Text
mobileDeviceAccessRuleId :: Text
$sel:mobileDeviceAccessRuleId:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Text
mobileDeviceAccessRuleId} -> Text
mobileDeviceAccessRuleId) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Text
a -> UpdateMobileDeviceAccessRule
s {$sel:mobileDeviceAccessRuleId:UpdateMobileDeviceAccessRule' :: Text
mobileDeviceAccessRuleId = Text
a} :: UpdateMobileDeviceAccessRule)
updateMobileDeviceAccessRule_name :: Lens.Lens' UpdateMobileDeviceAccessRule Prelude.Text
updateMobileDeviceAccessRule_name :: (Text -> f Text)
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_name = (UpdateMobileDeviceAccessRule -> Text)
-> (UpdateMobileDeviceAccessRule
-> Text -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule UpdateMobileDeviceAccessRule Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {Text
name :: Text
$sel:name:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Text
name} -> Text
name) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} Text
a -> UpdateMobileDeviceAccessRule
s {$sel:name:UpdateMobileDeviceAccessRule' :: Text
name = Text
a} :: UpdateMobileDeviceAccessRule)
updateMobileDeviceAccessRule_effect :: Lens.Lens' UpdateMobileDeviceAccessRule MobileDeviceAccessRuleEffect
updateMobileDeviceAccessRule_effect :: (MobileDeviceAccessRuleEffect -> f MobileDeviceAccessRuleEffect)
-> UpdateMobileDeviceAccessRule -> f UpdateMobileDeviceAccessRule
updateMobileDeviceAccessRule_effect = (UpdateMobileDeviceAccessRule -> MobileDeviceAccessRuleEffect)
-> (UpdateMobileDeviceAccessRule
-> MobileDeviceAccessRuleEffect -> UpdateMobileDeviceAccessRule)
-> Lens
UpdateMobileDeviceAccessRule
UpdateMobileDeviceAccessRule
MobileDeviceAccessRuleEffect
MobileDeviceAccessRuleEffect
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRule' {MobileDeviceAccessRuleEffect
effect :: MobileDeviceAccessRuleEffect
$sel:effect:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> MobileDeviceAccessRuleEffect
effect} -> MobileDeviceAccessRuleEffect
effect) (\s :: UpdateMobileDeviceAccessRule
s@UpdateMobileDeviceAccessRule' {} MobileDeviceAccessRuleEffect
a -> UpdateMobileDeviceAccessRule
s {$sel:effect:UpdateMobileDeviceAccessRule' :: MobileDeviceAccessRuleEffect
effect = MobileDeviceAccessRuleEffect
a} :: UpdateMobileDeviceAccessRule)
instance Core.AWSRequest UpdateMobileDeviceAccessRule where
type
AWSResponse UpdateMobileDeviceAccessRule =
UpdateMobileDeviceAccessRuleResponse
request :: UpdateMobileDeviceAccessRule
-> Request UpdateMobileDeviceAccessRule
request = Service
-> UpdateMobileDeviceAccessRule
-> Request UpdateMobileDeviceAccessRule
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateMobileDeviceAccessRule
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateMobileDeviceAccessRule)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse UpdateMobileDeviceAccessRule))
-> Logger
-> Service
-> Proxy UpdateMobileDeviceAccessRule
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateMobileDeviceAccessRule)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> UpdateMobileDeviceAccessRuleResponse
UpdateMobileDeviceAccessRuleResponse'
(Int -> UpdateMobileDeviceAccessRuleResponse)
-> Either String Int
-> Either String UpdateMobileDeviceAccessRuleResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
UpdateMobileDeviceAccessRule
instance Prelude.NFData UpdateMobileDeviceAccessRule
instance Core.ToHeaders UpdateMobileDeviceAccessRule where
toHeaders :: UpdateMobileDeviceAccessRule -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateMobileDeviceAccessRule -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"WorkMailService.UpdateMobileDeviceAccessRule" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON UpdateMobileDeviceAccessRule where
toJSON :: UpdateMobileDeviceAccessRule -> Value
toJSON UpdateMobileDeviceAccessRule' {Maybe (NonEmpty Text)
Maybe Text
Text
MobileDeviceAccessRuleEffect
effect :: MobileDeviceAccessRuleEffect
name :: Text
mobileDeviceAccessRuleId :: Text
organizationId :: Text
notDeviceModels :: Maybe (NonEmpty Text)
notDeviceUserAgents :: Maybe (NonEmpty Text)
description :: Maybe Text
deviceOperatingSystems :: Maybe (NonEmpty Text)
deviceModels :: Maybe (NonEmpty Text)
notDeviceOperatingSystems :: Maybe (NonEmpty Text)
notDeviceTypes :: Maybe (NonEmpty Text)
deviceTypes :: Maybe (NonEmpty Text)
deviceUserAgents :: Maybe (NonEmpty Text)
$sel:effect:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> MobileDeviceAccessRuleEffect
$sel:name:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Text
$sel:mobileDeviceAccessRuleId:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Text
$sel:organizationId:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Text
$sel:notDeviceModels:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
$sel:notDeviceUserAgents:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
$sel:description:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe Text
$sel:deviceOperatingSystems:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
$sel:deviceModels:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
$sel:notDeviceOperatingSystems:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
$sel:notDeviceTypes:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
$sel:deviceTypes:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
$sel:deviceUserAgents:UpdateMobileDeviceAccessRule' :: UpdateMobileDeviceAccessRule -> Maybe (NonEmpty Text)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"DeviceUserAgents" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
deviceUserAgents,
(Text
"DeviceTypes" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
deviceTypes,
(Text
"NotDeviceTypes" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
notDeviceTypes,
(Text
"NotDeviceOperatingSystems" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
notDeviceOperatingSystems,
(Text
"DeviceModels" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
deviceModels,
(Text
"DeviceOperatingSystems" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
deviceOperatingSystems,
(Text
"Description" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
description,
(Text
"NotDeviceUserAgents" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
notDeviceUserAgents,
(Text
"NotDeviceModels" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(NonEmpty Text -> Pair) -> Maybe (NonEmpty Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Text)
notDeviceModels,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"OrganizationId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
organizationId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"MobileDeviceAccessRuleId"
Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
mobileDeviceAccessRuleId
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Effect" Text -> MobileDeviceAccessRuleEffect -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= MobileDeviceAccessRuleEffect
effect)
]
)
instance Core.ToPath UpdateMobileDeviceAccessRule where
toPath :: UpdateMobileDeviceAccessRule -> ByteString
toPath = ByteString -> UpdateMobileDeviceAccessRule -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateMobileDeviceAccessRule where
toQuery :: UpdateMobileDeviceAccessRule -> QueryString
toQuery = QueryString -> UpdateMobileDeviceAccessRule -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateMobileDeviceAccessRuleResponse = UpdateMobileDeviceAccessRuleResponse'
{
UpdateMobileDeviceAccessRuleResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateMobileDeviceAccessRuleResponse
-> UpdateMobileDeviceAccessRuleResponse -> Bool
(UpdateMobileDeviceAccessRuleResponse
-> UpdateMobileDeviceAccessRuleResponse -> Bool)
-> (UpdateMobileDeviceAccessRuleResponse
-> UpdateMobileDeviceAccessRuleResponse -> Bool)
-> Eq UpdateMobileDeviceAccessRuleResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateMobileDeviceAccessRuleResponse
-> UpdateMobileDeviceAccessRuleResponse -> Bool
$c/= :: UpdateMobileDeviceAccessRuleResponse
-> UpdateMobileDeviceAccessRuleResponse -> Bool
== :: UpdateMobileDeviceAccessRuleResponse
-> UpdateMobileDeviceAccessRuleResponse -> Bool
$c== :: UpdateMobileDeviceAccessRuleResponse
-> UpdateMobileDeviceAccessRuleResponse -> Bool
Prelude.Eq, ReadPrec [UpdateMobileDeviceAccessRuleResponse]
ReadPrec UpdateMobileDeviceAccessRuleResponse
Int -> ReadS UpdateMobileDeviceAccessRuleResponse
ReadS [UpdateMobileDeviceAccessRuleResponse]
(Int -> ReadS UpdateMobileDeviceAccessRuleResponse)
-> ReadS [UpdateMobileDeviceAccessRuleResponse]
-> ReadPrec UpdateMobileDeviceAccessRuleResponse
-> ReadPrec [UpdateMobileDeviceAccessRuleResponse]
-> Read UpdateMobileDeviceAccessRuleResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateMobileDeviceAccessRuleResponse]
$creadListPrec :: ReadPrec [UpdateMobileDeviceAccessRuleResponse]
readPrec :: ReadPrec UpdateMobileDeviceAccessRuleResponse
$creadPrec :: ReadPrec UpdateMobileDeviceAccessRuleResponse
readList :: ReadS [UpdateMobileDeviceAccessRuleResponse]
$creadList :: ReadS [UpdateMobileDeviceAccessRuleResponse]
readsPrec :: Int -> ReadS UpdateMobileDeviceAccessRuleResponse
$creadsPrec :: Int -> ReadS UpdateMobileDeviceAccessRuleResponse
Prelude.Read, Int -> UpdateMobileDeviceAccessRuleResponse -> ShowS
[UpdateMobileDeviceAccessRuleResponse] -> ShowS
UpdateMobileDeviceAccessRuleResponse -> String
(Int -> UpdateMobileDeviceAccessRuleResponse -> ShowS)
-> (UpdateMobileDeviceAccessRuleResponse -> String)
-> ([UpdateMobileDeviceAccessRuleResponse] -> ShowS)
-> Show UpdateMobileDeviceAccessRuleResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateMobileDeviceAccessRuleResponse] -> ShowS
$cshowList :: [UpdateMobileDeviceAccessRuleResponse] -> ShowS
show :: UpdateMobileDeviceAccessRuleResponse -> String
$cshow :: UpdateMobileDeviceAccessRuleResponse -> String
showsPrec :: Int -> UpdateMobileDeviceAccessRuleResponse -> ShowS
$cshowsPrec :: Int -> UpdateMobileDeviceAccessRuleResponse -> ShowS
Prelude.Show, (forall x.
UpdateMobileDeviceAccessRuleResponse
-> Rep UpdateMobileDeviceAccessRuleResponse x)
-> (forall x.
Rep UpdateMobileDeviceAccessRuleResponse x
-> UpdateMobileDeviceAccessRuleResponse)
-> Generic UpdateMobileDeviceAccessRuleResponse
forall x.
Rep UpdateMobileDeviceAccessRuleResponse x
-> UpdateMobileDeviceAccessRuleResponse
forall x.
UpdateMobileDeviceAccessRuleResponse
-> Rep UpdateMobileDeviceAccessRuleResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateMobileDeviceAccessRuleResponse x
-> UpdateMobileDeviceAccessRuleResponse
$cfrom :: forall x.
UpdateMobileDeviceAccessRuleResponse
-> Rep UpdateMobileDeviceAccessRuleResponse x
Prelude.Generic)
newUpdateMobileDeviceAccessRuleResponse ::
Prelude.Int ->
UpdateMobileDeviceAccessRuleResponse
newUpdateMobileDeviceAccessRuleResponse :: Int -> UpdateMobileDeviceAccessRuleResponse
newUpdateMobileDeviceAccessRuleResponse Int
pHttpStatus_ =
UpdateMobileDeviceAccessRuleResponse' :: Int -> UpdateMobileDeviceAccessRuleResponse
UpdateMobileDeviceAccessRuleResponse'
{ $sel:httpStatus:UpdateMobileDeviceAccessRuleResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
updateMobileDeviceAccessRuleResponse_httpStatus :: Lens.Lens' UpdateMobileDeviceAccessRuleResponse Prelude.Int
updateMobileDeviceAccessRuleResponse_httpStatus :: (Int -> f Int)
-> UpdateMobileDeviceAccessRuleResponse
-> f UpdateMobileDeviceAccessRuleResponse
updateMobileDeviceAccessRuleResponse_httpStatus = (UpdateMobileDeviceAccessRuleResponse -> Int)
-> (UpdateMobileDeviceAccessRuleResponse
-> Int -> UpdateMobileDeviceAccessRuleResponse)
-> Lens
UpdateMobileDeviceAccessRuleResponse
UpdateMobileDeviceAccessRuleResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateMobileDeviceAccessRuleResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateMobileDeviceAccessRuleResponse' :: UpdateMobileDeviceAccessRuleResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateMobileDeviceAccessRuleResponse
s@UpdateMobileDeviceAccessRuleResponse' {} Int
a -> UpdateMobileDeviceAccessRuleResponse
s {$sel:httpStatus:UpdateMobileDeviceAccessRuleResponse' :: Int
httpStatus = Int
a} :: UpdateMobileDeviceAccessRuleResponse)
instance
Prelude.NFData
UpdateMobileDeviceAccessRuleResponse