module Stratosphere.QLDB.Stream (
module Exports, Stream(..), mkStream
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QLDB.Stream.KinesisConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Stream
=
Stream {Stream -> ()
haddock_workaround_ :: (),
Stream -> Maybe (Value Text)
exclusiveEndTime :: (Prelude.Maybe (Value Prelude.Text)),
Stream -> Value Text
inclusiveStartTime :: (Value Prelude.Text),
Stream -> KinesisConfigurationProperty
kinesisConfiguration :: KinesisConfigurationProperty,
Stream -> Value Text
ledgerName :: (Value Prelude.Text),
Stream -> Value Text
roleArn :: (Value Prelude.Text),
Stream -> Value Text
streamName :: (Value Prelude.Text),
Stream -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (Stream -> Stream -> Bool
(Stream -> Stream -> Bool)
-> (Stream -> Stream -> Bool) -> Eq Stream
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Stream -> Stream -> Bool
== :: Stream -> Stream -> Bool
$c/= :: Stream -> Stream -> Bool
/= :: Stream -> Stream -> Bool
Prelude.Eq, Int -> Stream -> ShowS
[Stream] -> ShowS
Stream -> String
(Int -> Stream -> ShowS)
-> (Stream -> String) -> ([Stream] -> ShowS) -> Show Stream
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Stream -> ShowS
showsPrec :: Int -> Stream -> ShowS
$cshow :: Stream -> String
show :: Stream -> String
$cshowList :: [Stream] -> ShowS
showList :: [Stream] -> ShowS
Prelude.Show)
mkStream ::
Value Prelude.Text
-> KinesisConfigurationProperty
-> Value Prelude.Text
-> Value Prelude.Text -> Value Prelude.Text -> Stream
mkStream :: Value Text
-> KinesisConfigurationProperty
-> Value Text
-> Value Text
-> Value Text
-> Stream
mkStream
Value Text
inclusiveStartTime
KinesisConfigurationProperty
kinesisConfiguration
Value Text
ledgerName
Value Text
roleArn
Value Text
streamName
= Stream
{haddock_workaround_ :: ()
haddock_workaround_ = (), inclusiveStartTime :: Value Text
inclusiveStartTime = Value Text
inclusiveStartTime,
kinesisConfiguration :: KinesisConfigurationProperty
kinesisConfiguration = KinesisConfigurationProperty
kinesisConfiguration,
ledgerName :: Value Text
ledgerName = Value Text
ledgerName, roleArn :: Value Text
roleArn = Value Text
roleArn,
streamName :: Value Text
streamName = Value Text
streamName, exclusiveEndTime :: Maybe (Value Text)
exclusiveEndTime = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Stream where
toResourceProperties :: Stream -> ResourceProperties
toResourceProperties Stream {Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: Stream -> ()
exclusiveEndTime :: Stream -> Maybe (Value Text)
inclusiveStartTime :: Stream -> Value Text
kinesisConfiguration :: Stream -> KinesisConfigurationProperty
ledgerName :: Stream -> Value Text
roleArn :: Stream -> Value Text
streamName :: Stream -> Value Text
tags :: Stream -> Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QLDB::Stream", 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
"InclusiveStartTime" 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
inclusiveStartTime,
Key
"KinesisConfiguration" Key -> KinesisConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= KinesisConfigurationProperty
kinesisConfiguration,
Key
"LedgerName" 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
ledgerName, Key
"RoleArn" 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
roleArn,
Key
"StreamName" 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
streamName]
([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
"ExclusiveEndTime" (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)
exclusiveEndTime,
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 Stream where
toJSON :: Stream -> Value
toJSON Stream {Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: Stream -> ()
exclusiveEndTime :: Stream -> Maybe (Value Text)
inclusiveStartTime :: Stream -> Value Text
kinesisConfiguration :: Stream -> KinesisConfigurationProperty
ledgerName :: Stream -> Value Text
roleArn :: Stream -> Value Text
streamName :: Stream -> Value Text
tags :: Stream -> Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: 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
"InclusiveStartTime" 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
inclusiveStartTime,
Key
"KinesisConfiguration" Key -> KinesisConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= KinesisConfigurationProperty
kinesisConfiguration,
Key
"LedgerName" 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
ledgerName, Key
"RoleArn" 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
roleArn,
Key
"StreamName" 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
streamName]
([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
"ExclusiveEndTime" (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)
exclusiveEndTime,
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 "ExclusiveEndTime" Stream where
type PropertyType "ExclusiveEndTime" Stream = Value Prelude.Text
set :: PropertyType "ExclusiveEndTime" Stream -> Stream -> Stream
set PropertyType "ExclusiveEndTime" Stream
newValue Stream {Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: Stream -> ()
exclusiveEndTime :: Stream -> Maybe (Value Text)
inclusiveStartTime :: Stream -> Value Text
kinesisConfiguration :: Stream -> KinesisConfigurationProperty
ledgerName :: Stream -> Value Text
roleArn :: Stream -> Value Text
streamName :: Stream -> Value Text
tags :: Stream -> Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..}
= Stream {exclusiveEndTime :: Maybe (Value Text)
exclusiveEndTime = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExclusiveEndTime" Stream
Value Text
newValue, Maybe [Tag]
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: ()
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "InclusiveStartTime" Stream where
type PropertyType "InclusiveStartTime" Stream = Value Prelude.Text
set :: PropertyType "InclusiveStartTime" Stream -> Stream -> Stream
set PropertyType "InclusiveStartTime" Stream
newValue Stream {Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: Stream -> ()
exclusiveEndTime :: Stream -> Maybe (Value Text)
inclusiveStartTime :: Stream -> Value Text
kinesisConfiguration :: Stream -> KinesisConfigurationProperty
ledgerName :: Stream -> Value Text
roleArn :: Stream -> Value Text
streamName :: Stream -> Value Text
tags :: Stream -> Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..}
= Stream {inclusiveStartTime :: Value Text
inclusiveStartTime = PropertyType "InclusiveStartTime" Stream
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "KinesisConfiguration" Stream where
type PropertyType "KinesisConfiguration" Stream = KinesisConfigurationProperty
set :: PropertyType "KinesisConfiguration" Stream -> Stream -> Stream
set PropertyType "KinesisConfiguration" Stream
newValue Stream {Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: Stream -> ()
exclusiveEndTime :: Stream -> Maybe (Value Text)
inclusiveStartTime :: Stream -> Value Text
kinesisConfiguration :: Stream -> KinesisConfigurationProperty
ledgerName :: Stream -> Value Text
roleArn :: Stream -> Value Text
streamName :: Stream -> Value Text
tags :: Stream -> Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..}
= Stream {kinesisConfiguration :: KinesisConfigurationProperty
kinesisConfiguration = PropertyType "KinesisConfiguration" Stream
KinesisConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "LedgerName" Stream where
type PropertyType "LedgerName" Stream = Value Prelude.Text
set :: PropertyType "LedgerName" Stream -> Stream -> Stream
set PropertyType "LedgerName" Stream
newValue Stream {Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: Stream -> ()
exclusiveEndTime :: Stream -> Maybe (Value Text)
inclusiveStartTime :: Stream -> Value Text
kinesisConfiguration :: Stream -> KinesisConfigurationProperty
ledgerName :: Stream -> Value Text
roleArn :: Stream -> Value Text
streamName :: Stream -> Value Text
tags :: Stream -> Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..} = Stream {ledgerName :: Value Text
ledgerName = PropertyType "LedgerName" Stream
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "RoleArn" Stream where
type PropertyType "RoleArn" Stream = Value Prelude.Text
set :: PropertyType "RoleArn" Stream -> Stream -> Stream
set PropertyType "RoleArn" Stream
newValue Stream {Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: Stream -> ()
exclusiveEndTime :: Stream -> Maybe (Value Text)
inclusiveStartTime :: Stream -> Value Text
kinesisConfiguration :: Stream -> KinesisConfigurationProperty
ledgerName :: Stream -> Value Text
roleArn :: Stream -> Value Text
streamName :: Stream -> Value Text
tags :: Stream -> Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..} = Stream {roleArn :: Value Text
roleArn = PropertyType "RoleArn" Stream
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "StreamName" Stream where
type PropertyType "StreamName" Stream = Value Prelude.Text
set :: PropertyType "StreamName" Stream -> Stream -> Stream
set PropertyType "StreamName" Stream
newValue Stream {Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: Stream -> ()
exclusiveEndTime :: Stream -> Maybe (Value Text)
inclusiveStartTime :: Stream -> Value Text
kinesisConfiguration :: Stream -> KinesisConfigurationProperty
ledgerName :: Stream -> Value Text
roleArn :: Stream -> Value Text
streamName :: Stream -> Value Text
tags :: Stream -> Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..} = Stream {streamName :: Value Text
streamName = PropertyType "StreamName" Stream
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" Stream where
type PropertyType "Tags" Stream = [Tag]
set :: PropertyType "Tags" Stream -> Stream -> Stream
set PropertyType "Tags" Stream
newValue Stream {Maybe [Tag]
Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: Stream -> ()
exclusiveEndTime :: Stream -> Maybe (Value Text)
inclusiveStartTime :: Stream -> Value Text
kinesisConfiguration :: Stream -> KinesisConfigurationProperty
ledgerName :: Stream -> Value Text
roleArn :: Stream -> Value Text
streamName :: Stream -> Value Text
tags :: Stream -> Maybe [Tag]
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
tags :: Maybe [Tag]
..}
= Stream {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" Stream
newValue, Maybe (Value Text)
()
Value Text
KinesisConfigurationProperty
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
haddock_workaround_ :: ()
exclusiveEndTime :: Maybe (Value Text)
inclusiveStartTime :: Value Text
kinesisConfiguration :: KinesisConfigurationProperty
ledgerName :: Value Text
roleArn :: Value Text
streamName :: Value Text
..}