module Stratosphere.GroundStation.Config.AntennaDownlinkDemodDecodeConfigProperty (
        module Exports, AntennaDownlinkDemodDecodeConfigProperty(..),
        mkAntennaDownlinkDemodDecodeConfigProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.GroundStation.Config.DecodeConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.GroundStation.Config.DemodulationConfigProperty as Exports
import {-# SOURCE #-} Stratosphere.GroundStation.Config.SpectrumConfigProperty as Exports
import Stratosphere.ResourceProperties
data AntennaDownlinkDemodDecodeConfigProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-antennadownlinkdemoddecodeconfig.html>
    AntennaDownlinkDemodDecodeConfigProperty {AntennaDownlinkDemodDecodeConfigProperty -> ()
haddock_workaround_ :: (),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-antennadownlinkdemoddecodeconfig.html#cfn-groundstation-config-antennadownlinkdemoddecodeconfig-decodeconfig>
                                              AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DecodeConfigProperty
decodeConfig :: (Prelude.Maybe DecodeConfigProperty),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-antennadownlinkdemoddecodeconfig.html#cfn-groundstation-config-antennadownlinkdemoddecodeconfig-demodulationconfig>
                                              AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DemodulationConfigProperty
demodulationConfig :: (Prelude.Maybe DemodulationConfigProperty),
                                              -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-groundstation-config-antennadownlinkdemoddecodeconfig.html#cfn-groundstation-config-antennadownlinkdemoddecodeconfig-spectrumconfig>
                                              AntennaDownlinkDemodDecodeConfigProperty
-> Maybe SpectrumConfigProperty
spectrumConfig :: (Prelude.Maybe SpectrumConfigProperty)}
  deriving stock (AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty -> Bool
(AntennaDownlinkDemodDecodeConfigProperty
 -> AntennaDownlinkDemodDecodeConfigProperty -> Bool)
-> (AntennaDownlinkDemodDecodeConfigProperty
    -> AntennaDownlinkDemodDecodeConfigProperty -> Bool)
-> Eq AntennaDownlinkDemodDecodeConfigProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty -> Bool
== :: AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty -> Bool
$c/= :: AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty -> Bool
/= :: AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty -> Bool
Prelude.Eq, Int -> AntennaDownlinkDemodDecodeConfigProperty -> ShowS
[AntennaDownlinkDemodDecodeConfigProperty] -> ShowS
AntennaDownlinkDemodDecodeConfigProperty -> String
(Int -> AntennaDownlinkDemodDecodeConfigProperty -> ShowS)
-> (AntennaDownlinkDemodDecodeConfigProperty -> String)
-> ([AntennaDownlinkDemodDecodeConfigProperty] -> ShowS)
-> Show AntennaDownlinkDemodDecodeConfigProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AntennaDownlinkDemodDecodeConfigProperty -> ShowS
showsPrec :: Int -> AntennaDownlinkDemodDecodeConfigProperty -> ShowS
$cshow :: AntennaDownlinkDemodDecodeConfigProperty -> String
show :: AntennaDownlinkDemodDecodeConfigProperty -> String
$cshowList :: [AntennaDownlinkDemodDecodeConfigProperty] -> ShowS
showList :: [AntennaDownlinkDemodDecodeConfigProperty] -> ShowS
Prelude.Show)
mkAntennaDownlinkDemodDecodeConfigProperty ::
  AntennaDownlinkDemodDecodeConfigProperty
mkAntennaDownlinkDemodDecodeConfigProperty :: AntennaDownlinkDemodDecodeConfigProperty
mkAntennaDownlinkDemodDecodeConfigProperty
  = AntennaDownlinkDemodDecodeConfigProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), decodeConfig :: Maybe DecodeConfigProperty
decodeConfig = Maybe DecodeConfigProperty
forall a. Maybe a
Prelude.Nothing,
       demodulationConfig :: Maybe DemodulationConfigProperty
demodulationConfig = Maybe DemodulationConfigProperty
forall a. Maybe a
Prelude.Nothing,
       spectrumConfig :: Maybe SpectrumConfigProperty
spectrumConfig = Maybe SpectrumConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AntennaDownlinkDemodDecodeConfigProperty where
  toResourceProperties :: AntennaDownlinkDemodDecodeConfigProperty -> ResourceProperties
toResourceProperties AntennaDownlinkDemodDecodeConfigProperty {Maybe DecodeConfigProperty
Maybe DemodulationConfigProperty
Maybe SpectrumConfigProperty
()
haddock_workaround_ :: AntennaDownlinkDemodDecodeConfigProperty -> ()
decodeConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DecodeConfigProperty
demodulationConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DemodulationConfigProperty
spectrumConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe SpectrumConfigProperty
haddock_workaround_ :: ()
decodeConfig :: Maybe DecodeConfigProperty
demodulationConfig :: Maybe DemodulationConfigProperty
spectrumConfig :: Maybe SpectrumConfigProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::GroundStation::Config.AntennaDownlinkDemodDecodeConfig",
         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 -> DecodeConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DecodeConfig" (DecodeConfigProperty -> (Key, Value))
-> Maybe DecodeConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DecodeConfigProperty
decodeConfig,
                            Key -> DemodulationConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DemodulationConfig" (DemodulationConfigProperty -> (Key, Value))
-> Maybe DemodulationConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DemodulationConfigProperty
demodulationConfig,
                            Key -> SpectrumConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SpectrumConfig" (SpectrumConfigProperty -> (Key, Value))
-> Maybe SpectrumConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SpectrumConfigProperty
spectrumConfig])}
instance JSON.ToJSON AntennaDownlinkDemodDecodeConfigProperty where
  toJSON :: AntennaDownlinkDemodDecodeConfigProperty -> Value
toJSON AntennaDownlinkDemodDecodeConfigProperty {Maybe DecodeConfigProperty
Maybe DemodulationConfigProperty
Maybe SpectrumConfigProperty
()
haddock_workaround_ :: AntennaDownlinkDemodDecodeConfigProperty -> ()
decodeConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DecodeConfigProperty
demodulationConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DemodulationConfigProperty
spectrumConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe SpectrumConfigProperty
haddock_workaround_ :: ()
decodeConfig :: Maybe DecodeConfigProperty
demodulationConfig :: Maybe DemodulationConfigProperty
spectrumConfig :: Maybe SpectrumConfigProperty
..}
    = [(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 -> DecodeConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DecodeConfig" (DecodeConfigProperty -> (Key, Value))
-> Maybe DecodeConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DecodeConfigProperty
decodeConfig,
               Key -> DemodulationConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DemodulationConfig" (DemodulationConfigProperty -> (Key, Value))
-> Maybe DemodulationConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DemodulationConfigProperty
demodulationConfig,
               Key -> SpectrumConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SpectrumConfig" (SpectrumConfigProperty -> (Key, Value))
-> Maybe SpectrumConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SpectrumConfigProperty
spectrumConfig]))
instance Property "DecodeConfig" AntennaDownlinkDemodDecodeConfigProperty where
  type PropertyType "DecodeConfig" AntennaDownlinkDemodDecodeConfigProperty = DecodeConfigProperty
  set :: PropertyType
  "DecodeConfig" AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty
set PropertyType
  "DecodeConfig" AntennaDownlinkDemodDecodeConfigProperty
newValue AntennaDownlinkDemodDecodeConfigProperty {Maybe DecodeConfigProperty
Maybe DemodulationConfigProperty
Maybe SpectrumConfigProperty
()
haddock_workaround_ :: AntennaDownlinkDemodDecodeConfigProperty -> ()
decodeConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DecodeConfigProperty
demodulationConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DemodulationConfigProperty
spectrumConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe SpectrumConfigProperty
haddock_workaround_ :: ()
decodeConfig :: Maybe DecodeConfigProperty
demodulationConfig :: Maybe DemodulationConfigProperty
spectrumConfig :: Maybe SpectrumConfigProperty
..}
    = AntennaDownlinkDemodDecodeConfigProperty
        {decodeConfig :: Maybe DecodeConfigProperty
decodeConfig = DecodeConfigProperty -> Maybe DecodeConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "DecodeConfig" AntennaDownlinkDemodDecodeConfigProperty
DecodeConfigProperty
newValue, Maybe DemodulationConfigProperty
Maybe SpectrumConfigProperty
()
haddock_workaround_ :: ()
demodulationConfig :: Maybe DemodulationConfigProperty
spectrumConfig :: Maybe SpectrumConfigProperty
haddock_workaround_ :: ()
demodulationConfig :: Maybe DemodulationConfigProperty
spectrumConfig :: Maybe SpectrumConfigProperty
..}
instance Property "DemodulationConfig" AntennaDownlinkDemodDecodeConfigProperty where
  type PropertyType "DemodulationConfig" AntennaDownlinkDemodDecodeConfigProperty = DemodulationConfigProperty
  set :: PropertyType
  "DemodulationConfig" AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty
set PropertyType
  "DemodulationConfig" AntennaDownlinkDemodDecodeConfigProperty
newValue AntennaDownlinkDemodDecodeConfigProperty {Maybe DecodeConfigProperty
Maybe DemodulationConfigProperty
Maybe SpectrumConfigProperty
()
haddock_workaround_ :: AntennaDownlinkDemodDecodeConfigProperty -> ()
decodeConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DecodeConfigProperty
demodulationConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DemodulationConfigProperty
spectrumConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe SpectrumConfigProperty
haddock_workaround_ :: ()
decodeConfig :: Maybe DecodeConfigProperty
demodulationConfig :: Maybe DemodulationConfigProperty
spectrumConfig :: Maybe SpectrumConfigProperty
..}
    = AntennaDownlinkDemodDecodeConfigProperty
        {demodulationConfig :: Maybe DemodulationConfigProperty
demodulationConfig = DemodulationConfigProperty -> Maybe DemodulationConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "DemodulationConfig" AntennaDownlinkDemodDecodeConfigProperty
DemodulationConfigProperty
newValue, Maybe DecodeConfigProperty
Maybe SpectrumConfigProperty
()
haddock_workaround_ :: ()
decodeConfig :: Maybe DecodeConfigProperty
spectrumConfig :: Maybe SpectrumConfigProperty
haddock_workaround_ :: ()
decodeConfig :: Maybe DecodeConfigProperty
spectrumConfig :: Maybe SpectrumConfigProperty
..}
instance Property "SpectrumConfig" AntennaDownlinkDemodDecodeConfigProperty where
  type PropertyType "SpectrumConfig" AntennaDownlinkDemodDecodeConfigProperty = SpectrumConfigProperty
  set :: PropertyType
  "SpectrumConfig" AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty
-> AntennaDownlinkDemodDecodeConfigProperty
set PropertyType
  "SpectrumConfig" AntennaDownlinkDemodDecodeConfigProperty
newValue AntennaDownlinkDemodDecodeConfigProperty {Maybe DecodeConfigProperty
Maybe DemodulationConfigProperty
Maybe SpectrumConfigProperty
()
haddock_workaround_ :: AntennaDownlinkDemodDecodeConfigProperty -> ()
decodeConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DecodeConfigProperty
demodulationConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe DemodulationConfigProperty
spectrumConfig :: AntennaDownlinkDemodDecodeConfigProperty
-> Maybe SpectrumConfigProperty
haddock_workaround_ :: ()
decodeConfig :: Maybe DecodeConfigProperty
demodulationConfig :: Maybe DemodulationConfigProperty
spectrumConfig :: Maybe SpectrumConfigProperty
..}
    = AntennaDownlinkDemodDecodeConfigProperty
        {spectrumConfig :: Maybe SpectrumConfigProperty
spectrumConfig = SpectrumConfigProperty -> Maybe SpectrumConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "SpectrumConfig" AntennaDownlinkDemodDecodeConfigProperty
SpectrumConfigProperty
newValue, Maybe DecodeConfigProperty
Maybe DemodulationConfigProperty
()
haddock_workaround_ :: ()
decodeConfig :: Maybe DecodeConfigProperty
demodulationConfig :: Maybe DemodulationConfigProperty
haddock_workaround_ :: ()
decodeConfig :: Maybe DecodeConfigProperty
demodulationConfig :: Maybe DemodulationConfigProperty
..}