module Stratosphere.GroundStation.Config.DecodeConfigProperty (
        DecodeConfigProperty(..), mkDecodeConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DecodeConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-decodeconfig.html>
    DecodeConfigProperty {DecodeConfigProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-decodeconfig.html#cfn-groundstation-config-decodeconfig-unvalidatedjson>
                          DecodeConfigProperty -> Maybe (Value Text)
unvalidatedJSON :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DecodeConfigProperty -> DecodeConfigProperty -> Bool
(DecodeConfigProperty -> DecodeConfigProperty -> Bool)
-> (DecodeConfigProperty -> DecodeConfigProperty -> Bool)
-> Eq DecodeConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DecodeConfigProperty -> DecodeConfigProperty -> Bool
== :: DecodeConfigProperty -> DecodeConfigProperty -> Bool
$c/= :: DecodeConfigProperty -> DecodeConfigProperty -> Bool
/= :: DecodeConfigProperty -> DecodeConfigProperty -> Bool
Prelude.Eq, Int -> DecodeConfigProperty -> ShowS
[DecodeConfigProperty] -> ShowS
DecodeConfigProperty -> String
(Int -> DecodeConfigProperty -> ShowS)
-> (DecodeConfigProperty -> String)
-> ([DecodeConfigProperty] -> ShowS)
-> Show DecodeConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DecodeConfigProperty -> ShowS
showsPrec :: Int -> DecodeConfigProperty -> ShowS
$cshow :: DecodeConfigProperty -> String
show :: DecodeConfigProperty -> String
$cshowList :: [DecodeConfigProperty] -> ShowS
showList :: [DecodeConfigProperty] -> ShowS
Prelude.Show)
mkDecodeConfigProperty :: DecodeConfigProperty
mkDecodeConfigProperty :: DecodeConfigProperty
mkDecodeConfigProperty
  = DecodeConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), unvalidatedJSON :: Maybe (Value Text)
unvalidatedJSON = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DecodeConfigProperty where
  toResourceProperties :: DecodeConfigProperty -> ResourceProperties
toResourceProperties DecodeConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DecodeConfigProperty -> ()
unvalidatedJSON :: DecodeConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
unvalidatedJSON :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GroundStation::Config.DecodeConfig",
         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
"UnvalidatedJSON" (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)
unvalidatedJSON])}
instance JSON.ToJSON DecodeConfigProperty where
  toJSON :: DecodeConfigProperty -> Value
toJSON DecodeConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DecodeConfigProperty -> ()
unvalidatedJSON :: DecodeConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
unvalidatedJSON :: 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
"UnvalidatedJSON" (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)
unvalidatedJSON]))
instance Property "UnvalidatedJSON" DecodeConfigProperty where
  type PropertyType "UnvalidatedJSON" DecodeConfigProperty = Value Prelude.Text
  set :: PropertyType "UnvalidatedJSON" DecodeConfigProperty
-> DecodeConfigProperty -> DecodeConfigProperty
set PropertyType "UnvalidatedJSON" DecodeConfigProperty
newValue DecodeConfigProperty {Maybe (Value Text)
()
haddock_workaround_ :: DecodeConfigProperty -> ()
unvalidatedJSON :: DecodeConfigProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
unvalidatedJSON :: Maybe (Value Text)
..}
    = DecodeConfigProperty
        {unvalidatedJSON :: Maybe (Value Text)
unvalidatedJSON = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UnvalidatedJSON" DecodeConfigProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}