module Stratosphere.Cognito.UserPoolRiskConfigurationAttachment.RiskExceptionConfigurationTypeProperty (
RiskExceptionConfigurationTypeProperty(..),
mkRiskExceptionConfigurationTypeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RiskExceptionConfigurationTypeProperty
=
RiskExceptionConfigurationTypeProperty {RiskExceptionConfigurationTypeProperty -> ()
haddock_workaround_ :: (),
RiskExceptionConfigurationTypeProperty -> Maybe (ValueList Text)
blockedIPRangeList :: (Prelude.Maybe (ValueList Prelude.Text)),
RiskExceptionConfigurationTypeProperty -> Maybe (ValueList Text)
skippedIPRangeList :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty -> Bool
(RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty -> Bool)
-> (RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty -> Bool)
-> Eq RiskExceptionConfigurationTypeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty -> Bool
== :: RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty -> Bool
$c/= :: RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty -> Bool
/= :: RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty -> Bool
Prelude.Eq, Int -> RiskExceptionConfigurationTypeProperty -> ShowS
[RiskExceptionConfigurationTypeProperty] -> ShowS
RiskExceptionConfigurationTypeProperty -> String
(Int -> RiskExceptionConfigurationTypeProperty -> ShowS)
-> (RiskExceptionConfigurationTypeProperty -> String)
-> ([RiskExceptionConfigurationTypeProperty] -> ShowS)
-> Show RiskExceptionConfigurationTypeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RiskExceptionConfigurationTypeProperty -> ShowS
showsPrec :: Int -> RiskExceptionConfigurationTypeProperty -> ShowS
$cshow :: RiskExceptionConfigurationTypeProperty -> String
show :: RiskExceptionConfigurationTypeProperty -> String
$cshowList :: [RiskExceptionConfigurationTypeProperty] -> ShowS
showList :: [RiskExceptionConfigurationTypeProperty] -> ShowS
Prelude.Show)
mkRiskExceptionConfigurationTypeProperty ::
RiskExceptionConfigurationTypeProperty
mkRiskExceptionConfigurationTypeProperty :: RiskExceptionConfigurationTypeProperty
mkRiskExceptionConfigurationTypeProperty
= RiskExceptionConfigurationTypeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), blockedIPRangeList :: Maybe (ValueList Text)
blockedIPRangeList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
skippedIPRangeList :: Maybe (ValueList Text)
skippedIPRangeList = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RiskExceptionConfigurationTypeProperty where
toResourceProperties :: RiskExceptionConfigurationTypeProperty -> ResourceProperties
toResourceProperties RiskExceptionConfigurationTypeProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RiskExceptionConfigurationTypeProperty -> ()
blockedIPRangeList :: RiskExceptionConfigurationTypeProperty -> Maybe (ValueList Text)
skippedIPRangeList :: RiskExceptionConfigurationTypeProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
blockedIPRangeList :: Maybe (ValueList Text)
skippedIPRangeList :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Cognito::UserPoolRiskConfigurationAttachment.RiskExceptionConfigurationType",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BlockedIPRangeList" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
blockedIPRangeList,
Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SkippedIPRangeList" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
skippedIPRangeList])}
instance JSON.ToJSON RiskExceptionConfigurationTypeProperty where
toJSON :: RiskExceptionConfigurationTypeProperty -> Value
toJSON RiskExceptionConfigurationTypeProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RiskExceptionConfigurationTypeProperty -> ()
blockedIPRangeList :: RiskExceptionConfigurationTypeProperty -> Maybe (ValueList Text)
skippedIPRangeList :: RiskExceptionConfigurationTypeProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
blockedIPRangeList :: Maybe (ValueList Text)
skippedIPRangeList :: Maybe (ValueList Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BlockedIPRangeList" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
blockedIPRangeList,
Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SkippedIPRangeList" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
skippedIPRangeList]))
instance Property "BlockedIPRangeList" RiskExceptionConfigurationTypeProperty where
type PropertyType "BlockedIPRangeList" RiskExceptionConfigurationTypeProperty = ValueList Prelude.Text
set :: PropertyType
"BlockedIPRangeList" RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty
set PropertyType
"BlockedIPRangeList" RiskExceptionConfigurationTypeProperty
newValue RiskExceptionConfigurationTypeProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RiskExceptionConfigurationTypeProperty -> ()
blockedIPRangeList :: RiskExceptionConfigurationTypeProperty -> Maybe (ValueList Text)
skippedIPRangeList :: RiskExceptionConfigurationTypeProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
blockedIPRangeList :: Maybe (ValueList Text)
skippedIPRangeList :: Maybe (ValueList Text)
..}
= RiskExceptionConfigurationTypeProperty
{blockedIPRangeList :: Maybe (ValueList Text)
blockedIPRangeList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"BlockedIPRangeList" RiskExceptionConfigurationTypeProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
skippedIPRangeList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
skippedIPRangeList :: Maybe (ValueList Text)
..}
instance Property "SkippedIPRangeList" RiskExceptionConfigurationTypeProperty where
type PropertyType "SkippedIPRangeList" RiskExceptionConfigurationTypeProperty = ValueList Prelude.Text
set :: PropertyType
"SkippedIPRangeList" RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty
-> RiskExceptionConfigurationTypeProperty
set PropertyType
"SkippedIPRangeList" RiskExceptionConfigurationTypeProperty
newValue RiskExceptionConfigurationTypeProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RiskExceptionConfigurationTypeProperty -> ()
blockedIPRangeList :: RiskExceptionConfigurationTypeProperty -> Maybe (ValueList Text)
skippedIPRangeList :: RiskExceptionConfigurationTypeProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
blockedIPRangeList :: Maybe (ValueList Text)
skippedIPRangeList :: Maybe (ValueList Text)
..}
= RiskExceptionConfigurationTypeProperty
{skippedIPRangeList :: Maybe (ValueList Text)
skippedIPRangeList = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SkippedIPRangeList" RiskExceptionConfigurationTypeProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
blockedIPRangeList :: Maybe (ValueList Text)
haddock_workaround_ :: ()
blockedIPRangeList :: Maybe (ValueList Text)
..}