module Stratosphere.IoTWireless.MulticastGroup (
module Exports, MulticastGroup(..), mkMulticastGroup
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.IoTWireless.MulticastGroup.LoRaWANProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data MulticastGroup
=
MulticastGroup {MulticastGroup -> ()
haddock_workaround_ :: (),
MulticastGroup -> Maybe (Value Text)
associateWirelessDevice :: (Prelude.Maybe (Value Prelude.Text)),
MulticastGroup -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
MulticastGroup -> Maybe (Value Text)
disassociateWirelessDevice :: (Prelude.Maybe (Value Prelude.Text)),
MulticastGroup -> LoRaWANProperty
loRaWAN :: LoRaWANProperty,
MulticastGroup -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
MulticastGroup -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (MulticastGroup -> MulticastGroup -> Bool
(MulticastGroup -> MulticastGroup -> Bool)
-> (MulticastGroup -> MulticastGroup -> Bool) -> Eq MulticastGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MulticastGroup -> MulticastGroup -> Bool
== :: MulticastGroup -> MulticastGroup -> Bool
$c/= :: MulticastGroup -> MulticastGroup -> Bool
/= :: MulticastGroup -> MulticastGroup -> Bool
Prelude.Eq, Int -> MulticastGroup -> ShowS
[MulticastGroup] -> ShowS
MulticastGroup -> String
(Int -> MulticastGroup -> ShowS)
-> (MulticastGroup -> String)
-> ([MulticastGroup] -> ShowS)
-> Show MulticastGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MulticastGroup -> ShowS
showsPrec :: Int -> MulticastGroup -> ShowS
$cshow :: MulticastGroup -> String
show :: MulticastGroup -> String
$cshowList :: [MulticastGroup] -> ShowS
showList :: [MulticastGroup] -> ShowS
Prelude.Show)
mkMulticastGroup :: LoRaWANProperty -> MulticastGroup
mkMulticastGroup :: LoRaWANProperty -> MulticastGroup
mkMulticastGroup LoRaWANProperty
loRaWAN
= MulticastGroup
{haddock_workaround_ :: ()
haddock_workaround_ = (), loRaWAN :: LoRaWANProperty
loRaWAN = LoRaWANProperty
loRaWAN,
associateWirelessDevice :: Maybe (Value Text)
associateWirelessDevice = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
disassociateWirelessDevice :: Maybe (Value Text)
disassociateWirelessDevice = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MulticastGroup where
toResourceProperties :: MulticastGroup -> ResourceProperties
toResourceProperties MulticastGroup {Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: MulticastGroup -> ()
associateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
description :: MulticastGroup -> Maybe (Value Text)
disassociateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
loRaWAN :: MulticastGroup -> LoRaWANProperty
name :: MulticastGroup -> Maybe (Value Text)
tags :: MulticastGroup -> Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTWireless::MulticastGroup",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"LoRaWAN" Key -> LoRaWANProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LoRaWANProperty
loRaWAN]
([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
"AssociateWirelessDevice"
(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)
associateWirelessDevice,
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
"Description" (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)
description,
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
"DisassociateWirelessDevice"
(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)
disassociateWirelessDevice,
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
"Name" (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)
name,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON MulticastGroup where
toJSON :: MulticastGroup -> Value
toJSON MulticastGroup {Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: MulticastGroup -> ()
associateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
description :: MulticastGroup -> Maybe (Value Text)
disassociateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
loRaWAN :: MulticastGroup -> LoRaWANProperty
name :: MulticastGroup -> Maybe (Value Text)
tags :: MulticastGroup -> Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= [(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
"LoRaWAN" Key -> LoRaWANProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LoRaWANProperty
loRaWAN]
([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
"AssociateWirelessDevice"
(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)
associateWirelessDevice,
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
"Description" (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)
description,
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
"DisassociateWirelessDevice"
(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)
disassociateWirelessDevice,
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
"Name" (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)
name,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "AssociateWirelessDevice" MulticastGroup where
type PropertyType "AssociateWirelessDevice" MulticastGroup = Value Prelude.Text
set :: PropertyType "AssociateWirelessDevice" MulticastGroup
-> MulticastGroup -> MulticastGroup
set PropertyType "AssociateWirelessDevice" MulticastGroup
newValue MulticastGroup {Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: MulticastGroup -> ()
associateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
description :: MulticastGroup -> Maybe (Value Text)
disassociateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
loRaWAN :: MulticastGroup -> LoRaWANProperty
name :: MulticastGroup -> Maybe (Value Text)
tags :: MulticastGroup -> Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= MulticastGroup
{associateWirelessDevice :: Maybe (Value Text)
associateWirelessDevice = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AssociateWirelessDevice" MulticastGroup
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Description" MulticastGroup where
type PropertyType "Description" MulticastGroup = Value Prelude.Text
set :: PropertyType "Description" MulticastGroup
-> MulticastGroup -> MulticastGroup
set PropertyType "Description" MulticastGroup
newValue MulticastGroup {Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: MulticastGroup -> ()
associateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
description :: MulticastGroup -> Maybe (Value Text)
disassociateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
loRaWAN :: MulticastGroup -> LoRaWANProperty
name :: MulticastGroup -> Maybe (Value Text)
tags :: MulticastGroup -> Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= MulticastGroup {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" MulticastGroup
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "DisassociateWirelessDevice" MulticastGroup where
type PropertyType "DisassociateWirelessDevice" MulticastGroup = Value Prelude.Text
set :: PropertyType "DisassociateWirelessDevice" MulticastGroup
-> MulticastGroup -> MulticastGroup
set PropertyType "DisassociateWirelessDevice" MulticastGroup
newValue MulticastGroup {Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: MulticastGroup -> ()
associateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
description :: MulticastGroup -> Maybe (Value Text)
disassociateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
loRaWAN :: MulticastGroup -> LoRaWANProperty
name :: MulticastGroup -> Maybe (Value Text)
tags :: MulticastGroup -> Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= MulticastGroup
{disassociateWirelessDevice :: Maybe (Value Text)
disassociateWirelessDevice = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DisassociateWirelessDevice" MulticastGroup
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "LoRaWAN" MulticastGroup where
type PropertyType "LoRaWAN" MulticastGroup = LoRaWANProperty
set :: PropertyType "LoRaWAN" MulticastGroup
-> MulticastGroup -> MulticastGroup
set PropertyType "LoRaWAN" MulticastGroup
newValue MulticastGroup {Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: MulticastGroup -> ()
associateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
description :: MulticastGroup -> Maybe (Value Text)
disassociateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
loRaWAN :: MulticastGroup -> LoRaWANProperty
name :: MulticastGroup -> Maybe (Value Text)
tags :: MulticastGroup -> Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= MulticastGroup {loRaWAN :: LoRaWANProperty
loRaWAN = PropertyType "LoRaWAN" MulticastGroup
LoRaWANProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Name" MulticastGroup where
type PropertyType "Name" MulticastGroup = Value Prelude.Text
set :: PropertyType "Name" MulticastGroup
-> MulticastGroup -> MulticastGroup
set PropertyType "Name" MulticastGroup
newValue MulticastGroup {Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: MulticastGroup -> ()
associateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
description :: MulticastGroup -> Maybe (Value Text)
disassociateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
loRaWAN :: MulticastGroup -> LoRaWANProperty
name :: MulticastGroup -> Maybe (Value Text)
tags :: MulticastGroup -> Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= MulticastGroup {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" MulticastGroup
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
tags :: Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
tags :: Maybe [Tag]
..}
instance Property "Tags" MulticastGroup where
type PropertyType "Tags" MulticastGroup = [Tag]
set :: PropertyType "Tags" MulticastGroup
-> MulticastGroup -> MulticastGroup
set PropertyType "Tags" MulticastGroup
newValue MulticastGroup {Maybe [Tag]
Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: MulticastGroup -> ()
associateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
description :: MulticastGroup -> Maybe (Value Text)
disassociateWirelessDevice :: MulticastGroup -> Maybe (Value Text)
loRaWAN :: MulticastGroup -> LoRaWANProperty
name :: MulticastGroup -> Maybe (Value Text)
tags :: MulticastGroup -> Maybe [Tag]
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= MulticastGroup {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" MulticastGroup
newValue, Maybe (Value Text)
()
LoRaWANProperty
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
associateWirelessDevice :: Maybe (Value Text)
description :: Maybe (Value Text)
disassociateWirelessDevice :: Maybe (Value Text)
loRaWAN :: LoRaWANProperty
name :: Maybe (Value Text)
..}