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