module Stratosphere.KinesisAnalyticsV2.ApplicationOutput.OutputProperty (
module Exports, OutputProperty(..), mkOutputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KinesisAnalyticsV2.ApplicationOutput.DestinationSchemaProperty as Exports
import {-# SOURCE #-} Stratosphere.KinesisAnalyticsV2.ApplicationOutput.KinesisFirehoseOutputProperty as Exports
import {-# SOURCE #-} Stratosphere.KinesisAnalyticsV2.ApplicationOutput.KinesisStreamsOutputProperty as Exports
import {-# SOURCE #-} Stratosphere.KinesisAnalyticsV2.ApplicationOutput.LambdaOutputProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data OutputProperty
=
OutputProperty {OutputProperty -> ()
haddock_workaround_ :: (),
OutputProperty -> DestinationSchemaProperty
destinationSchema :: DestinationSchemaProperty,
OutputProperty -> Maybe KinesisFirehoseOutputProperty
kinesisFirehoseOutput :: (Prelude.Maybe KinesisFirehoseOutputProperty),
OutputProperty -> Maybe KinesisStreamsOutputProperty
kinesisStreamsOutput :: (Prelude.Maybe KinesisStreamsOutputProperty),
OutputProperty -> Maybe LambdaOutputProperty
lambdaOutput :: (Prelude.Maybe LambdaOutputProperty),
OutputProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (OutputProperty -> OutputProperty -> Bool
(OutputProperty -> OutputProperty -> Bool)
-> (OutputProperty -> OutputProperty -> Bool) -> Eq OutputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: OutputProperty -> OutputProperty -> Bool
== :: OutputProperty -> OutputProperty -> Bool
$c/= :: OutputProperty -> OutputProperty -> Bool
/= :: OutputProperty -> OutputProperty -> Bool
Prelude.Eq, Int -> OutputProperty -> ShowS
[OutputProperty] -> ShowS
OutputProperty -> String
(Int -> OutputProperty -> ShowS)
-> (OutputProperty -> String)
-> ([OutputProperty] -> ShowS)
-> Show OutputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> OutputProperty -> ShowS
showsPrec :: Int -> OutputProperty -> ShowS
$cshow :: OutputProperty -> String
show :: OutputProperty -> String
$cshowList :: [OutputProperty] -> ShowS
showList :: [OutputProperty] -> ShowS
Prelude.Show)
mkOutputProperty :: DestinationSchemaProperty -> OutputProperty
mkOutputProperty :: DestinationSchemaProperty -> OutputProperty
mkOutputProperty DestinationSchemaProperty
destinationSchema
= OutputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), destinationSchema :: DestinationSchemaProperty
destinationSchema = DestinationSchemaProperty
destinationSchema,
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisFirehoseOutput = Maybe KinesisFirehoseOutputProperty
forall a. Maybe a
Prelude.Nothing,
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
kinesisStreamsOutput = Maybe KinesisStreamsOutputProperty
forall a. Maybe a
Prelude.Nothing,
lambdaOutput :: Maybe LambdaOutputProperty
lambdaOutput = Maybe LambdaOutputProperty
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties OutputProperty where
toResourceProperties :: OutputProperty -> ResourceProperties
toResourceProperties OutputProperty {Maybe (Value Text)
Maybe KinesisFirehoseOutputProperty
Maybe KinesisStreamsOutputProperty
Maybe LambdaOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: OutputProperty -> ()
destinationSchema :: OutputProperty -> DestinationSchemaProperty
kinesisFirehoseOutput :: OutputProperty -> Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: OutputProperty -> Maybe KinesisStreamsOutputProperty
lambdaOutput :: OutputProperty -> Maybe LambdaOutputProperty
name :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalyticsV2::ApplicationOutput.Output",
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
"DestinationSchema" Key -> DestinationSchemaProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DestinationSchemaProperty
destinationSchema]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> KinesisFirehoseOutputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KinesisFirehoseOutput"
(KinesisFirehoseOutputProperty -> (Key, Value))
-> Maybe KinesisFirehoseOutputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe KinesisFirehoseOutputProperty
kinesisFirehoseOutput,
Key -> KinesisStreamsOutputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KinesisStreamsOutput" (KinesisStreamsOutputProperty -> (Key, Value))
-> Maybe KinesisStreamsOutputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe KinesisStreamsOutputProperty
kinesisStreamsOutput,
Key -> LambdaOutputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LambdaOutput" (LambdaOutputProperty -> (Key, Value))
-> Maybe LambdaOutputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LambdaOutputProperty
lambdaOutput,
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]))}
instance JSON.ToJSON OutputProperty where
toJSON :: OutputProperty -> Value
toJSON OutputProperty {Maybe (Value Text)
Maybe KinesisFirehoseOutputProperty
Maybe KinesisStreamsOutputProperty
Maybe LambdaOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: OutputProperty -> ()
destinationSchema :: OutputProperty -> DestinationSchemaProperty
kinesisFirehoseOutput :: OutputProperty -> Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: OutputProperty -> Maybe KinesisStreamsOutputProperty
lambdaOutput :: OutputProperty -> Maybe LambdaOutputProperty
name :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: 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
"DestinationSchema" Key -> DestinationSchemaProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= DestinationSchemaProperty
destinationSchema]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> KinesisFirehoseOutputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KinesisFirehoseOutput"
(KinesisFirehoseOutputProperty -> (Key, Value))
-> Maybe KinesisFirehoseOutputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe KinesisFirehoseOutputProperty
kinesisFirehoseOutput,
Key -> KinesisStreamsOutputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"KinesisStreamsOutput" (KinesisStreamsOutputProperty -> (Key, Value))
-> Maybe KinesisStreamsOutputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe KinesisStreamsOutputProperty
kinesisStreamsOutput,
Key -> LambdaOutputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LambdaOutput" (LambdaOutputProperty -> (Key, Value))
-> Maybe LambdaOutputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LambdaOutputProperty
lambdaOutput,
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])))
instance Property "DestinationSchema" OutputProperty where
type PropertyType "DestinationSchema" OutputProperty = DestinationSchemaProperty
set :: PropertyType "DestinationSchema" OutputProperty
-> OutputProperty -> OutputProperty
set PropertyType "DestinationSchema" OutputProperty
newValue OutputProperty {Maybe (Value Text)
Maybe KinesisFirehoseOutputProperty
Maybe KinesisStreamsOutputProperty
Maybe LambdaOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: OutputProperty -> ()
destinationSchema :: OutputProperty -> DestinationSchemaProperty
kinesisFirehoseOutput :: OutputProperty -> Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: OutputProperty -> Maybe KinesisStreamsOutputProperty
lambdaOutput :: OutputProperty -> Maybe LambdaOutputProperty
name :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
..}
= OutputProperty {destinationSchema :: DestinationSchemaProperty
destinationSchema = PropertyType "DestinationSchema" OutputProperty
DestinationSchemaProperty
newValue, Maybe (Value Text)
Maybe KinesisFirehoseOutputProperty
Maybe KinesisStreamsOutputProperty
Maybe LambdaOutputProperty
()
haddock_workaround_ :: ()
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
..}
instance Property "KinesisFirehoseOutput" OutputProperty where
type PropertyType "KinesisFirehoseOutput" OutputProperty = KinesisFirehoseOutputProperty
set :: PropertyType "KinesisFirehoseOutput" OutputProperty
-> OutputProperty -> OutputProperty
set PropertyType "KinesisFirehoseOutput" OutputProperty
newValue OutputProperty {Maybe (Value Text)
Maybe KinesisFirehoseOutputProperty
Maybe KinesisStreamsOutputProperty
Maybe LambdaOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: OutputProperty -> ()
destinationSchema :: OutputProperty -> DestinationSchemaProperty
kinesisFirehoseOutput :: OutputProperty -> Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: OutputProperty -> Maybe KinesisStreamsOutputProperty
lambdaOutput :: OutputProperty -> Maybe LambdaOutputProperty
name :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
..}
= OutputProperty
{kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisFirehoseOutput = KinesisFirehoseOutputProperty
-> Maybe KinesisFirehoseOutputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KinesisFirehoseOutput" OutputProperty
KinesisFirehoseOutputProperty
newValue, Maybe (Value Text)
Maybe KinesisStreamsOutputProperty
Maybe LambdaOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
..}
instance Property "KinesisStreamsOutput" OutputProperty where
type PropertyType "KinesisStreamsOutput" OutputProperty = KinesisStreamsOutputProperty
set :: PropertyType "KinesisStreamsOutput" OutputProperty
-> OutputProperty -> OutputProperty
set PropertyType "KinesisStreamsOutput" OutputProperty
newValue OutputProperty {Maybe (Value Text)
Maybe KinesisFirehoseOutputProperty
Maybe KinesisStreamsOutputProperty
Maybe LambdaOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: OutputProperty -> ()
destinationSchema :: OutputProperty -> DestinationSchemaProperty
kinesisFirehoseOutput :: OutputProperty -> Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: OutputProperty -> Maybe KinesisStreamsOutputProperty
lambdaOutput :: OutputProperty -> Maybe LambdaOutputProperty
name :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
..}
= OutputProperty {kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
kinesisStreamsOutput = KinesisStreamsOutputProperty -> Maybe KinesisStreamsOutputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KinesisStreamsOutput" OutputProperty
KinesisStreamsOutputProperty
newValue, Maybe (Value Text)
Maybe KinesisFirehoseOutputProperty
Maybe LambdaOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
..}
instance Property "LambdaOutput" OutputProperty where
type PropertyType "LambdaOutput" OutputProperty = LambdaOutputProperty
set :: PropertyType "LambdaOutput" OutputProperty
-> OutputProperty -> OutputProperty
set PropertyType "LambdaOutput" OutputProperty
newValue OutputProperty {Maybe (Value Text)
Maybe KinesisFirehoseOutputProperty
Maybe KinesisStreamsOutputProperty
Maybe LambdaOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: OutputProperty -> ()
destinationSchema :: OutputProperty -> DestinationSchemaProperty
kinesisFirehoseOutput :: OutputProperty -> Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: OutputProperty -> Maybe KinesisStreamsOutputProperty
lambdaOutput :: OutputProperty -> Maybe LambdaOutputProperty
name :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
..}
= OutputProperty {lambdaOutput :: Maybe LambdaOutputProperty
lambdaOutput = LambdaOutputProperty -> Maybe LambdaOutputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LambdaOutput" OutputProperty
LambdaOutputProperty
newValue, Maybe (Value Text)
Maybe KinesisFirehoseOutputProperty
Maybe KinesisStreamsOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
name :: Maybe (Value Text)
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
name :: Maybe (Value Text)
..}
instance Property "Name" OutputProperty where
type PropertyType "Name" OutputProperty = Value Prelude.Text
set :: PropertyType "Name" OutputProperty
-> OutputProperty -> OutputProperty
set PropertyType "Name" OutputProperty
newValue OutputProperty {Maybe (Value Text)
Maybe KinesisFirehoseOutputProperty
Maybe KinesisStreamsOutputProperty
Maybe LambdaOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: OutputProperty -> ()
destinationSchema :: OutputProperty -> DestinationSchemaProperty
kinesisFirehoseOutput :: OutputProperty -> Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: OutputProperty -> Maybe KinesisStreamsOutputProperty
lambdaOutput :: OutputProperty -> Maybe LambdaOutputProperty
name :: OutputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
name :: Maybe (Value Text)
..}
= OutputProperty {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" OutputProperty
Value Text
newValue, Maybe KinesisFirehoseOutputProperty
Maybe KinesisStreamsOutputProperty
Maybe LambdaOutputProperty
()
DestinationSchemaProperty
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
haddock_workaround_ :: ()
destinationSchema :: DestinationSchemaProperty
kinesisFirehoseOutput :: Maybe KinesisFirehoseOutputProperty
kinesisStreamsOutput :: Maybe KinesisStreamsOutputProperty
lambdaOutput :: Maybe LambdaOutputProperty
..}