module Stratosphere.IoTWireless.Destination (
Destination(..), mkDestination
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Destination
=
Destination {Destination -> ()
haddock_workaround_ :: (),
Destination -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
Destination -> Value Text
expression :: (Value Prelude.Text),
Destination -> Value Text
expressionType :: (Value Prelude.Text),
Destination -> Value Text
name :: (Value Prelude.Text),
Destination -> Maybe (Value Text)
roleArn :: (Prelude.Maybe (Value Prelude.Text)),
Destination -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (Destination -> Destination -> Bool
(Destination -> Destination -> Bool)
-> (Destination -> Destination -> Bool) -> Eq Destination
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Destination -> Destination -> Bool
== :: Destination -> Destination -> Bool
$c/= :: Destination -> Destination -> Bool
/= :: Destination -> Destination -> Bool
Prelude.Eq, Int -> Destination -> ShowS
[Destination] -> ShowS
Destination -> String
(Int -> Destination -> ShowS)
-> (Destination -> String)
-> ([Destination] -> ShowS)
-> Show Destination
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Destination -> ShowS
showsPrec :: Int -> Destination -> ShowS
$cshow :: Destination -> String
show :: Destination -> String
$cshowList :: [Destination] -> ShowS
showList :: [Destination] -> ShowS
Prelude.Show)
mkDestination ::
Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> Destination
mkDestination :: Value Text -> Value Text -> Value Text -> Destination
mkDestination Value Text
expression Value Text
expressionType Value Text
name
= Destination
{haddock_workaround_ :: ()
haddock_workaround_ = (), expression :: Value Text
expression = Value Text
expression,
expressionType :: Value Text
expressionType = Value Text
expressionType, name :: Value Text
name = Value Text
name,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, roleArn :: Maybe (Value Text)
roleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Destination where
toResourceProperties :: Destination -> ResourceProperties
toResourceProperties Destination {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Destination -> ()
description :: Destination -> Maybe (Value Text)
expression :: Destination -> Value Text
expressionType :: Destination -> Value Text
name :: Destination -> Value Text
roleArn :: Destination -> Maybe (Value Text)
tags :: Destination -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::IoTWireless::Destination",
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
"Expression" 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..= Value Text
expression,
Key
"ExpressionType" 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..= Value Text
expressionType, Key
"Name" 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..= Value Text
name]
([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
"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
"RoleArn" (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)
roleArn,
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 Destination where
toJSON :: Destination -> Value
toJSON Destination {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Destination -> ()
description :: Destination -> Maybe (Value Text)
expression :: Destination -> Value Text
expressionType :: Destination -> Value Text
name :: Destination -> Value Text
roleArn :: Destination -> Maybe (Value Text)
tags :: Destination -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: 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
"Expression" 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..= Value Text
expression,
Key
"ExpressionType" 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..= Value Text
expressionType, Key
"Name" 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..= Value Text
name]
([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
"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
"RoleArn" (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)
roleArn,
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 "Description" Destination where
type PropertyType "Description" Destination = Value Prelude.Text
set :: PropertyType "Description" Destination
-> Destination -> Destination
set PropertyType "Description" Destination
newValue Destination {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Destination -> ()
description :: Destination -> Maybe (Value Text)
expression :: Destination -> Value Text
expressionType :: Destination -> Value Text
name :: Destination -> Value Text
roleArn :: Destination -> Maybe (Value Text)
tags :: Destination -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Destination {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" Destination
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Expression" Destination where
type PropertyType "Expression" Destination = Value Prelude.Text
set :: PropertyType "Expression" Destination -> Destination -> Destination
set PropertyType "Expression" Destination
newValue Destination {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Destination -> ()
description :: Destination -> Maybe (Value Text)
expression :: Destination -> Value Text
expressionType :: Destination -> Value Text
name :: Destination -> Value Text
roleArn :: Destination -> Maybe (Value Text)
tags :: Destination -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Destination {expression :: Value Text
expression = PropertyType "Expression" Destination
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "ExpressionType" Destination where
type PropertyType "ExpressionType" Destination = Value Prelude.Text
set :: PropertyType "ExpressionType" Destination
-> Destination -> Destination
set PropertyType "ExpressionType" Destination
newValue Destination {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Destination -> ()
description :: Destination -> Maybe (Value Text)
expression :: Destination -> Value Text
expressionType :: Destination -> Value Text
name :: Destination -> Value Text
roleArn :: Destination -> Maybe (Value Text)
tags :: Destination -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Destination {expressionType :: Value Text
expressionType = PropertyType "ExpressionType" Destination
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Name" Destination where
type PropertyType "Name" Destination = Value Prelude.Text
set :: PropertyType "Name" Destination -> Destination -> Destination
set PropertyType "Name" Destination
newValue Destination {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Destination -> ()
description :: Destination -> Maybe (Value Text)
expression :: Destination -> Value Text
expressionType :: Destination -> Value Text
name :: Destination -> Value Text
roleArn :: Destination -> Maybe (Value Text)
tags :: Destination -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Destination {name :: Value Text
name = PropertyType "Name" Destination
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "RoleArn" Destination where
type PropertyType "RoleArn" Destination = Value Prelude.Text
set :: PropertyType "RoleArn" Destination -> Destination -> Destination
set PropertyType "RoleArn" Destination
newValue Destination {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Destination -> ()
description :: Destination -> Maybe (Value Text)
expression :: Destination -> Value Text
expressionType :: Destination -> Value Text
name :: Destination -> Value Text
roleArn :: Destination -> Maybe (Value Text)
tags :: Destination -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Destination {roleArn :: Maybe (Value Text)
roleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleArn" Destination
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" Destination where
type PropertyType "Tags" Destination = [Tag]
set :: PropertyType "Tags" Destination -> Destination -> Destination
set PropertyType "Tags" Destination
newValue Destination {Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: Destination -> ()
description :: Destination -> Maybe (Value Text)
expression :: Destination -> Value Text
expressionType :: Destination -> Value Text
name :: Destination -> Value Text
roleArn :: Destination -> Maybe (Value Text)
tags :: Destination -> Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Destination {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" Destination
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
haddock_workaround_ :: ()
description :: Maybe (Value Text)
expression :: Value Text
expressionType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
..}