module Stratosphere.Cognito.UserPool.SmsConfigurationProperty (
SmsConfigurationProperty(..), mkSmsConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SmsConfigurationProperty
=
SmsConfigurationProperty {SmsConfigurationProperty -> ()
haddock_workaround_ :: (),
SmsConfigurationProperty -> Maybe (Value Text)
externalId :: (Prelude.Maybe (Value Prelude.Text)),
SmsConfigurationProperty -> Maybe (Value Text)
snsCallerArn :: (Prelude.Maybe (Value Prelude.Text)),
SmsConfigurationProperty -> Maybe (Value Text)
snsRegion :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SmsConfigurationProperty -> SmsConfigurationProperty -> Bool
(SmsConfigurationProperty -> SmsConfigurationProperty -> Bool)
-> (SmsConfigurationProperty -> SmsConfigurationProperty -> Bool)
-> Eq SmsConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SmsConfigurationProperty -> SmsConfigurationProperty -> Bool
== :: SmsConfigurationProperty -> SmsConfigurationProperty -> Bool
$c/= :: SmsConfigurationProperty -> SmsConfigurationProperty -> Bool
/= :: SmsConfigurationProperty -> SmsConfigurationProperty -> Bool
Prelude.Eq, Int -> SmsConfigurationProperty -> ShowS
[SmsConfigurationProperty] -> ShowS
SmsConfigurationProperty -> String
(Int -> SmsConfigurationProperty -> ShowS)
-> (SmsConfigurationProperty -> String)
-> ([SmsConfigurationProperty] -> ShowS)
-> Show SmsConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SmsConfigurationProperty -> ShowS
showsPrec :: Int -> SmsConfigurationProperty -> ShowS
$cshow :: SmsConfigurationProperty -> String
show :: SmsConfigurationProperty -> String
$cshowList :: [SmsConfigurationProperty] -> ShowS
showList :: [SmsConfigurationProperty] -> ShowS
Prelude.Show)
mkSmsConfigurationProperty :: SmsConfigurationProperty
mkSmsConfigurationProperty :: SmsConfigurationProperty
mkSmsConfigurationProperty
= SmsConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), externalId :: Maybe (Value Text)
externalId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
snsCallerArn :: Maybe (Value Text)
snsCallerArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, snsRegion :: Maybe (Value Text)
snsRegion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SmsConfigurationProperty where
toResourceProperties :: SmsConfigurationProperty -> ResourceProperties
toResourceProperties SmsConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SmsConfigurationProperty -> ()
externalId :: SmsConfigurationProperty -> Maybe (Value Text)
snsCallerArn :: SmsConfigurationProperty -> Maybe (Value Text)
snsRegion :: SmsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
externalId :: Maybe (Value Text)
snsCallerArn :: Maybe (Value Text)
snsRegion :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Cognito::UserPool.SmsConfiguration",
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 -> Value 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
"ExternalId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
externalId,
Key -> Value 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
"SnsCallerArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
snsCallerArn,
Key -> Value 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
"SnsRegion" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
snsRegion])}
instance JSON.ToJSON SmsConfigurationProperty where
toJSON :: SmsConfigurationProperty -> Value
toJSON SmsConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SmsConfigurationProperty -> ()
externalId :: SmsConfigurationProperty -> Maybe (Value Text)
snsCallerArn :: SmsConfigurationProperty -> Maybe (Value Text)
snsRegion :: SmsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
externalId :: Maybe (Value Text)
snsCallerArn :: Maybe (Value Text)
snsRegion :: Maybe (Value 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 -> Value 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
"ExternalId" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
externalId,
Key -> Value 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
"SnsCallerArn" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
snsCallerArn,
Key -> Value 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
"SnsRegion" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
snsRegion]))
instance Property "ExternalId" SmsConfigurationProperty where
type PropertyType "ExternalId" SmsConfigurationProperty = Value Prelude.Text
set :: PropertyType "ExternalId" SmsConfigurationProperty
-> SmsConfigurationProperty -> SmsConfigurationProperty
set PropertyType "ExternalId" SmsConfigurationProperty
newValue SmsConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SmsConfigurationProperty -> ()
externalId :: SmsConfigurationProperty -> Maybe (Value Text)
snsCallerArn :: SmsConfigurationProperty -> Maybe (Value Text)
snsRegion :: SmsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
externalId :: Maybe (Value Text)
snsCallerArn :: Maybe (Value Text)
snsRegion :: Maybe (Value Text)
..}
= SmsConfigurationProperty {externalId :: Maybe (Value Text)
externalId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExternalId" SmsConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
snsCallerArn :: Maybe (Value Text)
snsRegion :: Maybe (Value Text)
haddock_workaround_ :: ()
snsCallerArn :: Maybe (Value Text)
snsRegion :: Maybe (Value Text)
..}
instance Property "SnsCallerArn" SmsConfigurationProperty where
type PropertyType "SnsCallerArn" SmsConfigurationProperty = Value Prelude.Text
set :: PropertyType "SnsCallerArn" SmsConfigurationProperty
-> SmsConfigurationProperty -> SmsConfigurationProperty
set PropertyType "SnsCallerArn" SmsConfigurationProperty
newValue SmsConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SmsConfigurationProperty -> ()
externalId :: SmsConfigurationProperty -> Maybe (Value Text)
snsCallerArn :: SmsConfigurationProperty -> Maybe (Value Text)
snsRegion :: SmsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
externalId :: Maybe (Value Text)
snsCallerArn :: Maybe (Value Text)
snsRegion :: Maybe (Value Text)
..}
= SmsConfigurationProperty
{snsCallerArn :: Maybe (Value Text)
snsCallerArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SnsCallerArn" SmsConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
externalId :: Maybe (Value Text)
snsRegion :: Maybe (Value Text)
haddock_workaround_ :: ()
externalId :: Maybe (Value Text)
snsRegion :: Maybe (Value Text)
..}
instance Property "SnsRegion" SmsConfigurationProperty where
type PropertyType "SnsRegion" SmsConfigurationProperty = Value Prelude.Text
set :: PropertyType "SnsRegion" SmsConfigurationProperty
-> SmsConfigurationProperty -> SmsConfigurationProperty
set PropertyType "SnsRegion" SmsConfigurationProperty
newValue SmsConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SmsConfigurationProperty -> ()
externalId :: SmsConfigurationProperty -> Maybe (Value Text)
snsCallerArn :: SmsConfigurationProperty -> Maybe (Value Text)
snsRegion :: SmsConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
externalId :: Maybe (Value Text)
snsCallerArn :: Maybe (Value Text)
snsRegion :: Maybe (Value Text)
..}
= SmsConfigurationProperty {snsRegion :: Maybe (Value Text)
snsRegion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SnsRegion" SmsConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
externalId :: Maybe (Value Text)
snsCallerArn :: Maybe (Value Text)
haddock_workaround_ :: ()
externalId :: Maybe (Value Text)
snsCallerArn :: Maybe (Value Text)
..}