module Stratosphere.Cognito.ManagedLoginBranding.AssetTypeProperty (
        AssetTypeProperty(..), mkAssetTypeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AssetTypeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-managedloginbranding-assettype.html>
    AssetTypeProperty {AssetTypeProperty -> ()
haddock_workaround_ :: (),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-managedloginbranding-assettype.html#cfn-cognito-managedloginbranding-assettype-bytes>
                       AssetTypeProperty -> Maybe (Value Text)
bytes :: (Prelude.Maybe (Value Prelude.Text)),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-managedloginbranding-assettype.html#cfn-cognito-managedloginbranding-assettype-category>
                       AssetTypeProperty -> Value Text
category :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-managedloginbranding-assettype.html#cfn-cognito-managedloginbranding-assettype-colormode>
                       AssetTypeProperty -> Value Text
colorMode :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-managedloginbranding-assettype.html#cfn-cognito-managedloginbranding-assettype-extension>
                       AssetTypeProperty -> Value Text
extension :: (Value Prelude.Text),
                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-managedloginbranding-assettype.html#cfn-cognito-managedloginbranding-assettype-resourceid>
                       AssetTypeProperty -> Maybe (Value Text)
resourceId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (AssetTypeProperty -> AssetTypeProperty -> Bool
(AssetTypeProperty -> AssetTypeProperty -> Bool)
-> (AssetTypeProperty -> AssetTypeProperty -> Bool)
-> Eq AssetTypeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AssetTypeProperty -> AssetTypeProperty -> Bool
== :: AssetTypeProperty -> AssetTypeProperty -> Bool
$c/= :: AssetTypeProperty -> AssetTypeProperty -> Bool
/= :: AssetTypeProperty -> AssetTypeProperty -> Bool
Prelude.Eq, Int -> AssetTypeProperty -> ShowS
[AssetTypeProperty] -> ShowS
AssetTypeProperty -> String
(Int -> AssetTypeProperty -> ShowS)
-> (AssetTypeProperty -> String)
-> ([AssetTypeProperty] -> ShowS)
-> Show AssetTypeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AssetTypeProperty -> ShowS
showsPrec :: Int -> AssetTypeProperty -> ShowS
$cshow :: AssetTypeProperty -> String
show :: AssetTypeProperty -> String
$cshowList :: [AssetTypeProperty] -> ShowS
showList :: [AssetTypeProperty] -> ShowS
Prelude.Show)
mkAssetTypeProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> Value Prelude.Text -> AssetTypeProperty
mkAssetTypeProperty :: Value Text -> Value Text -> Value Text -> AssetTypeProperty
mkAssetTypeProperty Value Text
category Value Text
colorMode Value Text
extension
  = AssetTypeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), category :: Value Text
category = Value Text
category,
       colorMode :: Value Text
colorMode = Value Text
colorMode, extension :: Value Text
extension = Value Text
extension,
       bytes :: Maybe (Value Text)
bytes = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, resourceId :: Maybe (Value Text)
resourceId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AssetTypeProperty where
  toResourceProperties :: AssetTypeProperty -> ResourceProperties
toResourceProperties AssetTypeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssetTypeProperty -> ()
bytes :: AssetTypeProperty -> Maybe (Value Text)
category :: AssetTypeProperty -> Value Text
colorMode :: AssetTypeProperty -> Value Text
extension :: AssetTypeProperty -> Value Text
resourceId :: AssetTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Cognito::ManagedLoginBranding.AssetType",
         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
"Category" 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
category, Key
"ColorMode" 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
colorMode,
                            Key
"Extension" 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
extension]
                           ([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
"Bytes" (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)
bytes,
                               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
"ResourceId" (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)
resourceId]))}
instance JSON.ToJSON AssetTypeProperty where
  toJSON :: AssetTypeProperty -> Value
toJSON AssetTypeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssetTypeProperty -> ()
bytes :: AssetTypeProperty -> Maybe (Value Text)
category :: AssetTypeProperty -> Value Text
colorMode :: AssetTypeProperty -> Value Text
extension :: AssetTypeProperty -> Value Text
resourceId :: AssetTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (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
"Category" 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
category, Key
"ColorMode" 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
colorMode,
               Key
"Extension" 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
extension]
              ([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
"Bytes" (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)
bytes,
                  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
"ResourceId" (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)
resourceId])))
instance Property "Bytes" AssetTypeProperty where
  type PropertyType "Bytes" AssetTypeProperty = Value Prelude.Text
  set :: PropertyType "Bytes" AssetTypeProperty
-> AssetTypeProperty -> AssetTypeProperty
set PropertyType "Bytes" AssetTypeProperty
newValue AssetTypeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssetTypeProperty -> ()
bytes :: AssetTypeProperty -> Maybe (Value Text)
category :: AssetTypeProperty -> Value Text
colorMode :: AssetTypeProperty -> Value Text
extension :: AssetTypeProperty -> Value Text
resourceId :: AssetTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
..}
    = AssetTypeProperty {bytes :: Maybe (Value Text)
bytes = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Bytes" AssetTypeProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
category :: Value Text
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
haddock_workaround_ :: ()
category :: Value Text
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
..}
instance Property "Category" AssetTypeProperty where
  type PropertyType "Category" AssetTypeProperty = Value Prelude.Text
  set :: PropertyType "Category" AssetTypeProperty
-> AssetTypeProperty -> AssetTypeProperty
set PropertyType "Category" AssetTypeProperty
newValue AssetTypeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssetTypeProperty -> ()
bytes :: AssetTypeProperty -> Maybe (Value Text)
category :: AssetTypeProperty -> Value Text
colorMode :: AssetTypeProperty -> Value Text
extension :: AssetTypeProperty -> Value Text
resourceId :: AssetTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
..}
    = AssetTypeProperty {category :: Value Text
category = PropertyType "Category" AssetTypeProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
..}
instance Property "ColorMode" AssetTypeProperty where
  type PropertyType "ColorMode" AssetTypeProperty = Value Prelude.Text
  set :: PropertyType "ColorMode" AssetTypeProperty
-> AssetTypeProperty -> AssetTypeProperty
set PropertyType "ColorMode" AssetTypeProperty
newValue AssetTypeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssetTypeProperty -> ()
bytes :: AssetTypeProperty -> Maybe (Value Text)
category :: AssetTypeProperty -> Value Text
colorMode :: AssetTypeProperty -> Value Text
extension :: AssetTypeProperty -> Value Text
resourceId :: AssetTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
..}
    = AssetTypeProperty {colorMode :: Value Text
colorMode = PropertyType "ColorMode" AssetTypeProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
..}
instance Property "Extension" AssetTypeProperty where
  type PropertyType "Extension" AssetTypeProperty = Value Prelude.Text
  set :: PropertyType "Extension" AssetTypeProperty
-> AssetTypeProperty -> AssetTypeProperty
set PropertyType "Extension" AssetTypeProperty
newValue AssetTypeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssetTypeProperty -> ()
bytes :: AssetTypeProperty -> Maybe (Value Text)
category :: AssetTypeProperty -> Value Text
colorMode :: AssetTypeProperty -> Value Text
extension :: AssetTypeProperty -> Value Text
resourceId :: AssetTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
..}
    = AssetTypeProperty {extension :: Value Text
extension = PropertyType "Extension" AssetTypeProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
resourceId :: Maybe (Value Text)
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
resourceId :: Maybe (Value Text)
..}
instance Property "ResourceId" AssetTypeProperty where
  type PropertyType "ResourceId" AssetTypeProperty = Value Prelude.Text
  set :: PropertyType "ResourceId" AssetTypeProperty
-> AssetTypeProperty -> AssetTypeProperty
set PropertyType "ResourceId" AssetTypeProperty
newValue AssetTypeProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AssetTypeProperty -> ()
bytes :: AssetTypeProperty -> Maybe (Value Text)
category :: AssetTypeProperty -> Value Text
colorMode :: AssetTypeProperty -> Value Text
extension :: AssetTypeProperty -> Value Text
resourceId :: AssetTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
extension :: Value Text
resourceId :: Maybe (Value Text)
..}
    = AssetTypeProperty {resourceId :: Maybe (Value Text)
resourceId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ResourceId" AssetTypeProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
extension :: Value Text
haddock_workaround_ :: ()
bytes :: Maybe (Value Text)
category :: Value Text
colorMode :: Value Text
extension :: Value Text
..}