module Stratosphere.IoTAnalytics.Pipeline.ChannelProperty (
        ChannelProperty(..), mkChannelProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ChannelProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-channel.html>
    ChannelProperty {ChannelProperty -> ()
haddock_workaround_ :: (),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-channel.html#cfn-iotanalytics-pipeline-channel-channelname>
                     ChannelProperty -> Value Text
channelName :: (Value Prelude.Text),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-channel.html#cfn-iotanalytics-pipeline-channel-name>
                     ChannelProperty -> Value Text
name :: (Value Prelude.Text),
                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-pipeline-channel.html#cfn-iotanalytics-pipeline-channel-next>
                     ChannelProperty -> Maybe (Value Text)
next :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ChannelProperty -> ChannelProperty -> Bool
(ChannelProperty -> ChannelProperty -> Bool)
-> (ChannelProperty -> ChannelProperty -> Bool)
-> Eq ChannelProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ChannelProperty -> ChannelProperty -> Bool
== :: ChannelProperty -> ChannelProperty -> Bool
$c/= :: ChannelProperty -> ChannelProperty -> Bool
/= :: ChannelProperty -> ChannelProperty -> Bool
Prelude.Eq, Int -> ChannelProperty -> ShowS
[ChannelProperty] -> ShowS
ChannelProperty -> String
(Int -> ChannelProperty -> ShowS)
-> (ChannelProperty -> String)
-> ([ChannelProperty] -> ShowS)
-> Show ChannelProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ChannelProperty -> ShowS
showsPrec :: Int -> ChannelProperty -> ShowS
$cshow :: ChannelProperty -> String
show :: ChannelProperty -> String
$cshowList :: [ChannelProperty] -> ShowS
showList :: [ChannelProperty] -> ShowS
Prelude.Show)
mkChannelProperty ::
  Value Prelude.Text -> Value Prelude.Text -> ChannelProperty
mkChannelProperty :: Value Text -> Value Text -> ChannelProperty
mkChannelProperty Value Text
channelName Value Text
name
  = ChannelProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), channelName :: Value Text
channelName = Value Text
channelName, name :: Value Text
name = Value Text
name,
       next :: Maybe (Value Text)
next = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ChannelProperty where
  toResourceProperties :: ChannelProperty -> ResourceProperties
toResourceProperties ChannelProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ChannelProperty -> ()
channelName :: ChannelProperty -> Value Text
name :: ChannelProperty -> Value Text
next :: ChannelProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
channelName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Pipeline.Channel",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         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
"ChannelName" 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
channelName, 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
"Next" (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)
next]))}
instance JSON.ToJSON ChannelProperty where
  toJSON :: ChannelProperty -> Value
toJSON ChannelProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ChannelProperty -> ()
channelName :: ChannelProperty -> Value Text
name :: ChannelProperty -> Value Text
next :: ChannelProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
channelName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = [(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
"ChannelName" 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
channelName, 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
"Next" (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)
next])))
instance Property "ChannelName" ChannelProperty where
  type PropertyType "ChannelName" ChannelProperty = Value Prelude.Text
  set :: PropertyType "ChannelName" ChannelProperty
-> ChannelProperty -> ChannelProperty
set PropertyType "ChannelName" ChannelProperty
newValue ChannelProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ChannelProperty -> ()
channelName :: ChannelProperty -> Value Text
name :: ChannelProperty -> Value Text
next :: ChannelProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
channelName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = ChannelProperty {channelName :: Value Text
channelName = PropertyType "ChannelName" ChannelProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
name :: Value Text
next :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Value Text
next :: Maybe (Value Text)
..}
instance Property "Name" ChannelProperty where
  type PropertyType "Name" ChannelProperty = Value Prelude.Text
  set :: PropertyType "Name" ChannelProperty
-> ChannelProperty -> ChannelProperty
set PropertyType "Name" ChannelProperty
newValue ChannelProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ChannelProperty -> ()
channelName :: ChannelProperty -> Value Text
name :: ChannelProperty -> Value Text
next :: ChannelProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
channelName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = ChannelProperty {name :: Value Text
name = PropertyType "Name" ChannelProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
channelName :: Value Text
next :: Maybe (Value Text)
haddock_workaround_ :: ()
channelName :: Value Text
next :: Maybe (Value Text)
..}
instance Property "Next" ChannelProperty where
  type PropertyType "Next" ChannelProperty = Value Prelude.Text
  set :: PropertyType "Next" ChannelProperty
-> ChannelProperty -> ChannelProperty
set PropertyType "Next" ChannelProperty
newValue ChannelProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ChannelProperty -> ()
channelName :: ChannelProperty -> Value Text
name :: ChannelProperty -> Value Text
next :: ChannelProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
channelName :: Value Text
name :: Value Text
next :: Maybe (Value Text)
..}
    = ChannelProperty {next :: Maybe (Value Text)
next = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Next" ChannelProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
channelName :: Value Text
name :: Value Text
haddock_workaround_ :: ()
channelName :: Value Text
name :: Value Text
..}