module Stratosphere.Cognito.UserPoolUICustomizationAttachment (
UserPoolUICustomizationAttachment(..),
mkUserPoolUICustomizationAttachment
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data UserPoolUICustomizationAttachment
=
UserPoolUICustomizationAttachment {UserPoolUICustomizationAttachment -> ()
haddock_workaround_ :: (),
UserPoolUICustomizationAttachment -> Maybe (Value Text)
cSS :: (Prelude.Maybe (Value Prelude.Text)),
UserPoolUICustomizationAttachment -> Value Text
clientId :: (Value Prelude.Text),
UserPoolUICustomizationAttachment -> Value Text
userPoolId :: (Value Prelude.Text)}
deriving stock (UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment -> Bool
(UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment -> Bool)
-> (UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment -> Bool)
-> Eq UserPoolUICustomizationAttachment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment -> Bool
== :: UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment -> Bool
$c/= :: UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment -> Bool
/= :: UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment -> Bool
Prelude.Eq, Int -> UserPoolUICustomizationAttachment -> ShowS
[UserPoolUICustomizationAttachment] -> ShowS
UserPoolUICustomizationAttachment -> String
(Int -> UserPoolUICustomizationAttachment -> ShowS)
-> (UserPoolUICustomizationAttachment -> String)
-> ([UserPoolUICustomizationAttachment] -> ShowS)
-> Show UserPoolUICustomizationAttachment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> UserPoolUICustomizationAttachment -> ShowS
showsPrec :: Int -> UserPoolUICustomizationAttachment -> ShowS
$cshow :: UserPoolUICustomizationAttachment -> String
show :: UserPoolUICustomizationAttachment -> String
$cshowList :: [UserPoolUICustomizationAttachment] -> ShowS
showList :: [UserPoolUICustomizationAttachment] -> ShowS
Prelude.Show)
mkUserPoolUICustomizationAttachment ::
Value Prelude.Text
-> Value Prelude.Text -> UserPoolUICustomizationAttachment
mkUserPoolUICustomizationAttachment :: Value Text -> Value Text -> UserPoolUICustomizationAttachment
mkUserPoolUICustomizationAttachment Value Text
clientId Value Text
userPoolId
= UserPoolUICustomizationAttachment
{haddock_workaround_ :: ()
haddock_workaround_ = (), clientId :: Value Text
clientId = Value Text
clientId,
userPoolId :: Value Text
userPoolId = Value Text
userPoolId, cSS :: Maybe (Value Text)
cSS = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties UserPoolUICustomizationAttachment where
toResourceProperties :: UserPoolUICustomizationAttachment -> ResourceProperties
toResourceProperties UserPoolUICustomizationAttachment {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUICustomizationAttachment -> ()
cSS :: UserPoolUICustomizationAttachment -> Maybe (Value Text)
clientId :: UserPoolUICustomizationAttachment -> Value Text
userPoolId :: UserPoolUICustomizationAttachment -> Value Text
haddock_workaround_ :: ()
cSS :: Maybe (Value Text)
clientId :: Value Text
userPoolId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Cognito::UserPoolUICustomizationAttachment",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ClientId" 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..= Value Text
clientId, Key
"UserPoolId" 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..= Value Text
userPoolId]
([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
"CSS" (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)
cSS]))}
instance JSON.ToJSON UserPoolUICustomizationAttachment where
toJSON :: UserPoolUICustomizationAttachment -> Value
toJSON UserPoolUICustomizationAttachment {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUICustomizationAttachment -> ()
cSS :: UserPoolUICustomizationAttachment -> Maybe (Value Text)
clientId :: UserPoolUICustomizationAttachment -> Value Text
userPoolId :: UserPoolUICustomizationAttachment -> Value Text
haddock_workaround_ :: ()
cSS :: Maybe (Value Text)
clientId :: Value Text
userPoolId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"ClientId" 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..= Value Text
clientId, Key
"UserPoolId" 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..= Value Text
userPoolId]
([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
"CSS" (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)
cSS])))
instance Property "CSS" UserPoolUICustomizationAttachment where
type PropertyType "CSS" UserPoolUICustomizationAttachment = Value Prelude.Text
set :: PropertyType "CSS" UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment
set PropertyType "CSS" UserPoolUICustomizationAttachment
newValue UserPoolUICustomizationAttachment {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUICustomizationAttachment -> ()
cSS :: UserPoolUICustomizationAttachment -> Maybe (Value Text)
clientId :: UserPoolUICustomizationAttachment -> Value Text
userPoolId :: UserPoolUICustomizationAttachment -> Value Text
haddock_workaround_ :: ()
cSS :: Maybe (Value Text)
clientId :: Value Text
userPoolId :: Value Text
..}
= UserPoolUICustomizationAttachment
{cSS :: Maybe (Value Text)
cSS = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CSS" UserPoolUICustomizationAttachment
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
clientId :: Value Text
userPoolId :: Value Text
haddock_workaround_ :: ()
clientId :: Value Text
userPoolId :: Value Text
..}
instance Property "ClientId" UserPoolUICustomizationAttachment where
type PropertyType "ClientId" UserPoolUICustomizationAttachment = Value Prelude.Text
set :: PropertyType "ClientId" UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment
set PropertyType "ClientId" UserPoolUICustomizationAttachment
newValue UserPoolUICustomizationAttachment {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUICustomizationAttachment -> ()
cSS :: UserPoolUICustomizationAttachment -> Maybe (Value Text)
clientId :: UserPoolUICustomizationAttachment -> Value Text
userPoolId :: UserPoolUICustomizationAttachment -> Value Text
haddock_workaround_ :: ()
cSS :: Maybe (Value Text)
clientId :: Value Text
userPoolId :: Value Text
..}
= UserPoolUICustomizationAttachment {clientId :: Value Text
clientId = PropertyType "ClientId" UserPoolUICustomizationAttachment
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
cSS :: Maybe (Value Text)
userPoolId :: Value Text
haddock_workaround_ :: ()
cSS :: Maybe (Value Text)
userPoolId :: Value Text
..}
instance Property "UserPoolId" UserPoolUICustomizationAttachment where
type PropertyType "UserPoolId" UserPoolUICustomizationAttachment = Value Prelude.Text
set :: PropertyType "UserPoolId" UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment
-> UserPoolUICustomizationAttachment
set PropertyType "UserPoolId" UserPoolUICustomizationAttachment
newValue UserPoolUICustomizationAttachment {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: UserPoolUICustomizationAttachment -> ()
cSS :: UserPoolUICustomizationAttachment -> Maybe (Value Text)
clientId :: UserPoolUICustomizationAttachment -> Value Text
userPoolId :: UserPoolUICustomizationAttachment -> Value Text
haddock_workaround_ :: ()
cSS :: Maybe (Value Text)
clientId :: Value Text
userPoolId :: Value Text
..}
= UserPoolUICustomizationAttachment {userPoolId :: Value Text
userPoolId = PropertyType "UserPoolId" UserPoolUICustomizationAttachment
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
cSS :: Maybe (Value Text)
clientId :: Value Text
haddock_workaround_ :: ()
cSS :: Maybe (Value Text)
clientId :: Value Text
..}