module Stratosphere.IoTWireless.TaskDefinition.LoRaWANUpdateGatewayTaskCreateProperty (
        module Exports, LoRaWANUpdateGatewayTaskCreateProperty(..),
        mkLoRaWANUpdateGatewayTaskCreateProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTWireless.TaskDefinition.LoRaWANGatewayVersionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LoRaWANUpdateGatewayTaskCreateProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-taskdefinition-lorawanupdategatewaytaskcreate.html>
    LoRaWANUpdateGatewayTaskCreateProperty {LoRaWANUpdateGatewayTaskCreateProperty -> ()
haddock_workaround_ :: (),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-taskdefinition-lorawanupdategatewaytaskcreate.html#cfn-iotwireless-taskdefinition-lorawanupdategatewaytaskcreate-currentversion>
                                            LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
currentVersion :: (Prelude.Maybe LoRaWANGatewayVersionProperty),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-taskdefinition-lorawanupdategatewaytaskcreate.html#cfn-iotwireless-taskdefinition-lorawanupdategatewaytaskcreate-sigkeycrc>
                                            LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Integer)
sigKeyCrc :: (Prelude.Maybe (Value Prelude.Integer)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-taskdefinition-lorawanupdategatewaytaskcreate.html#cfn-iotwireless-taskdefinition-lorawanupdategatewaytaskcreate-updatesignature>
                                            LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Text)
updateSignature :: (Prelude.Maybe (Value Prelude.Text)),
                                            -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotwireless-taskdefinition-lorawanupdategatewaytaskcreate.html#cfn-iotwireless-taskdefinition-lorawanupdategatewaytaskcreate-updateversion>
                                            LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
updateVersion :: (Prelude.Maybe LoRaWANGatewayVersionProperty)}
  deriving stock (LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty -> Bool
(LoRaWANUpdateGatewayTaskCreateProperty
 -> LoRaWANUpdateGatewayTaskCreateProperty -> Bool)
-> (LoRaWANUpdateGatewayTaskCreateProperty
    -> LoRaWANUpdateGatewayTaskCreateProperty -> Bool)
-> Eq LoRaWANUpdateGatewayTaskCreateProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty -> Bool
== :: LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty -> Bool
$c/= :: LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty -> Bool
/= :: LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty -> Bool
Prelude.Eq, Int -> LoRaWANUpdateGatewayTaskCreateProperty -> ShowS
[LoRaWANUpdateGatewayTaskCreateProperty] -> ShowS
LoRaWANUpdateGatewayTaskCreateProperty -> String
(Int -> LoRaWANUpdateGatewayTaskCreateProperty -> ShowS)
-> (LoRaWANUpdateGatewayTaskCreateProperty -> String)
-> ([LoRaWANUpdateGatewayTaskCreateProperty] -> ShowS)
-> Show LoRaWANUpdateGatewayTaskCreateProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LoRaWANUpdateGatewayTaskCreateProperty -> ShowS
showsPrec :: Int -> LoRaWANUpdateGatewayTaskCreateProperty -> ShowS
$cshow :: LoRaWANUpdateGatewayTaskCreateProperty -> String
show :: LoRaWANUpdateGatewayTaskCreateProperty -> String
$cshowList :: [LoRaWANUpdateGatewayTaskCreateProperty] -> ShowS
showList :: [LoRaWANUpdateGatewayTaskCreateProperty] -> ShowS
Prelude.Show)
mkLoRaWANUpdateGatewayTaskCreateProperty ::
  LoRaWANUpdateGatewayTaskCreateProperty
mkLoRaWANUpdateGatewayTaskCreateProperty :: LoRaWANUpdateGatewayTaskCreateProperty
mkLoRaWANUpdateGatewayTaskCreateProperty
  = LoRaWANUpdateGatewayTaskCreateProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), currentVersion :: Maybe LoRaWANGatewayVersionProperty
currentVersion = Maybe LoRaWANGatewayVersionProperty
forall a. Maybe a
Prelude.Nothing,
       sigKeyCrc :: Maybe (Value Integer)
sigKeyCrc = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, updateSignature :: Maybe (Value Text)
updateSignature = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       updateVersion :: Maybe LoRaWANGatewayVersionProperty
updateVersion = Maybe LoRaWANGatewayVersionProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LoRaWANUpdateGatewayTaskCreateProperty where
  toResourceProperties :: LoRaWANUpdateGatewayTaskCreateProperty -> ResourceProperties
toResourceProperties LoRaWANUpdateGatewayTaskCreateProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe LoRaWANGatewayVersionProperty
()
haddock_workaround_ :: LoRaWANUpdateGatewayTaskCreateProperty -> ()
currentVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Integer)
updateSignature :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Text)
updateVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: Maybe (Value Integer)
updateSignature :: Maybe (Value Text)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTWireless::TaskDefinition.LoRaWANUpdateGatewayTaskCreate",
         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 -> LoRaWANGatewayVersionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CurrentVersion" (LoRaWANGatewayVersionProperty -> (Key, Value))
-> Maybe LoRaWANGatewayVersionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoRaWANGatewayVersionProperty
currentVersion,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SigKeyCrc" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
sigKeyCrc,
                            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
"UpdateSignature" (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)
updateSignature,
                            Key -> LoRaWANGatewayVersionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UpdateVersion" (LoRaWANGatewayVersionProperty -> (Key, Value))
-> Maybe LoRaWANGatewayVersionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoRaWANGatewayVersionProperty
updateVersion])}
instance JSON.ToJSON LoRaWANUpdateGatewayTaskCreateProperty where
  toJSON :: LoRaWANUpdateGatewayTaskCreateProperty -> Value
toJSON LoRaWANUpdateGatewayTaskCreateProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe LoRaWANGatewayVersionProperty
()
haddock_workaround_ :: LoRaWANUpdateGatewayTaskCreateProperty -> ()
currentVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Integer)
updateSignature :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Text)
updateVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: Maybe (Value Integer)
updateSignature :: Maybe (Value Text)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
..}
    = [(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 -> LoRaWANGatewayVersionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CurrentVersion" (LoRaWANGatewayVersionProperty -> (Key, Value))
-> Maybe LoRaWANGatewayVersionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoRaWANGatewayVersionProperty
currentVersion,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SigKeyCrc" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
sigKeyCrc,
               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
"UpdateSignature" (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)
updateSignature,
               Key -> LoRaWANGatewayVersionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UpdateVersion" (LoRaWANGatewayVersionProperty -> (Key, Value))
-> Maybe LoRaWANGatewayVersionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoRaWANGatewayVersionProperty
updateVersion]))
instance Property "CurrentVersion" LoRaWANUpdateGatewayTaskCreateProperty where
  type PropertyType "CurrentVersion" LoRaWANUpdateGatewayTaskCreateProperty = LoRaWANGatewayVersionProperty
  set :: PropertyType
  "CurrentVersion" LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty
set PropertyType
  "CurrentVersion" LoRaWANUpdateGatewayTaskCreateProperty
newValue LoRaWANUpdateGatewayTaskCreateProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe LoRaWANGatewayVersionProperty
()
haddock_workaround_ :: LoRaWANUpdateGatewayTaskCreateProperty -> ()
currentVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Integer)
updateSignature :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Text)
updateVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: Maybe (Value Integer)
updateSignature :: Maybe (Value Text)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
..}
    = LoRaWANUpdateGatewayTaskCreateProperty
        {currentVersion :: Maybe LoRaWANGatewayVersionProperty
currentVersion = LoRaWANGatewayVersionProperty
-> Maybe LoRaWANGatewayVersionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "CurrentVersion" LoRaWANUpdateGatewayTaskCreateProperty
LoRaWANGatewayVersionProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe LoRaWANGatewayVersionProperty
()
haddock_workaround_ :: ()
sigKeyCrc :: Maybe (Value Integer)
updateSignature :: Maybe (Value Text)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
haddock_workaround_ :: ()
sigKeyCrc :: Maybe (Value Integer)
updateSignature :: Maybe (Value Text)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
..}
instance Property "SigKeyCrc" LoRaWANUpdateGatewayTaskCreateProperty where
  type PropertyType "SigKeyCrc" LoRaWANUpdateGatewayTaskCreateProperty = Value Prelude.Integer
  set :: PropertyType "SigKeyCrc" LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty
set PropertyType "SigKeyCrc" LoRaWANUpdateGatewayTaskCreateProperty
newValue LoRaWANUpdateGatewayTaskCreateProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe LoRaWANGatewayVersionProperty
()
haddock_workaround_ :: LoRaWANUpdateGatewayTaskCreateProperty -> ()
currentVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Integer)
updateSignature :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Text)
updateVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: Maybe (Value Integer)
updateSignature :: Maybe (Value Text)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
..}
    = LoRaWANUpdateGatewayTaskCreateProperty
        {sigKeyCrc :: Maybe (Value Integer)
sigKeyCrc = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SigKeyCrc" LoRaWANUpdateGatewayTaskCreateProperty
Value Integer
newValue, Maybe (Value Text)
Maybe LoRaWANGatewayVersionProperty
()
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
updateSignature :: Maybe (Value Text)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
updateSignature :: Maybe (Value Text)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
..}
instance Property "UpdateSignature" LoRaWANUpdateGatewayTaskCreateProperty where
  type PropertyType "UpdateSignature" LoRaWANUpdateGatewayTaskCreateProperty = Value Prelude.Text
  set :: PropertyType
  "UpdateSignature" LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty
set PropertyType
  "UpdateSignature" LoRaWANUpdateGatewayTaskCreateProperty
newValue LoRaWANUpdateGatewayTaskCreateProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe LoRaWANGatewayVersionProperty
()
haddock_workaround_ :: LoRaWANUpdateGatewayTaskCreateProperty -> ()
currentVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Integer)
updateSignature :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Text)
updateVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: Maybe (Value Integer)
updateSignature :: Maybe (Value Text)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
..}
    = LoRaWANUpdateGatewayTaskCreateProperty
        {updateSignature :: Maybe (Value Text)
updateSignature = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "UpdateSignature" LoRaWANUpdateGatewayTaskCreateProperty
Value Text
newValue, Maybe (Value Integer)
Maybe LoRaWANGatewayVersionProperty
()
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: Maybe (Value Integer)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: Maybe (Value Integer)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
..}
instance Property "UpdateVersion" LoRaWANUpdateGatewayTaskCreateProperty where
  type PropertyType "UpdateVersion" LoRaWANUpdateGatewayTaskCreateProperty = LoRaWANGatewayVersionProperty
  set :: PropertyType "UpdateVersion" LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty
-> LoRaWANUpdateGatewayTaskCreateProperty
set PropertyType "UpdateVersion" LoRaWANUpdateGatewayTaskCreateProperty
newValue LoRaWANUpdateGatewayTaskCreateProperty {Maybe (Value Integer)
Maybe (Value Text)
Maybe LoRaWANGatewayVersionProperty
()
haddock_workaround_ :: LoRaWANUpdateGatewayTaskCreateProperty -> ()
currentVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Integer)
updateSignature :: LoRaWANUpdateGatewayTaskCreateProperty -> Maybe (Value Text)
updateVersion :: LoRaWANUpdateGatewayTaskCreateProperty
-> Maybe LoRaWANGatewayVersionProperty
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: Maybe (Value Integer)
updateSignature :: Maybe (Value Text)
updateVersion :: Maybe LoRaWANGatewayVersionProperty
..}
    = LoRaWANUpdateGatewayTaskCreateProperty
        {updateVersion :: Maybe LoRaWANGatewayVersionProperty
updateVersion = LoRaWANGatewayVersionProperty
-> Maybe LoRaWANGatewayVersionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UpdateVersion" LoRaWANUpdateGatewayTaskCreateProperty
LoRaWANGatewayVersionProperty
newValue, Maybe (Value Integer)
Maybe (Value Text)
Maybe LoRaWANGatewayVersionProperty
()
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: Maybe (Value Integer)
updateSignature :: Maybe (Value Text)
haddock_workaround_ :: ()
currentVersion :: Maybe LoRaWANGatewayVersionProperty
sigKeyCrc :: Maybe (Value Integer)
updateSignature :: Maybe (Value Text)
..}