module Stratosphere.KinesisAnalyticsV2.Application.CodeContentProperty (
module Exports, CodeContentProperty(..), mkCodeContentProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KinesisAnalyticsV2.Application.S3ContentLocationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CodeContentProperty
=
CodeContentProperty {CodeContentProperty -> ()
haddock_workaround_ :: (),
CodeContentProperty -> Maybe S3ContentLocationProperty
s3ContentLocation :: (Prelude.Maybe S3ContentLocationProperty),
CodeContentProperty -> Maybe (Value Text)
textContent :: (Prelude.Maybe (Value Prelude.Text)),
CodeContentProperty -> Maybe (Value Text)
zipFileContent :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CodeContentProperty -> CodeContentProperty -> Bool
(CodeContentProperty -> CodeContentProperty -> Bool)
-> (CodeContentProperty -> CodeContentProperty -> Bool)
-> Eq CodeContentProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CodeContentProperty -> CodeContentProperty -> Bool
== :: CodeContentProperty -> CodeContentProperty -> Bool
$c/= :: CodeContentProperty -> CodeContentProperty -> Bool
/= :: CodeContentProperty -> CodeContentProperty -> Bool
Prelude.Eq, Int -> CodeContentProperty -> ShowS
[CodeContentProperty] -> ShowS
CodeContentProperty -> String
(Int -> CodeContentProperty -> ShowS)
-> (CodeContentProperty -> String)
-> ([CodeContentProperty] -> ShowS)
-> Show CodeContentProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CodeContentProperty -> ShowS
showsPrec :: Int -> CodeContentProperty -> ShowS
$cshow :: CodeContentProperty -> String
show :: CodeContentProperty -> String
$cshowList :: [CodeContentProperty] -> ShowS
showList :: [CodeContentProperty] -> ShowS
Prelude.Show)
mkCodeContentProperty :: CodeContentProperty
mkCodeContentProperty :: CodeContentProperty
mkCodeContentProperty
= CodeContentProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), s3ContentLocation :: Maybe S3ContentLocationProperty
s3ContentLocation = Maybe S3ContentLocationProperty
forall a. Maybe a
Prelude.Nothing,
textContent :: Maybe (Value Text)
textContent = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, zipFileContent :: Maybe (Value Text)
zipFileContent = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CodeContentProperty where
toResourceProperties :: CodeContentProperty -> ResourceProperties
toResourceProperties CodeContentProperty {Maybe (Value Text)
Maybe S3ContentLocationProperty
()
haddock_workaround_ :: CodeContentProperty -> ()
s3ContentLocation :: CodeContentProperty -> Maybe S3ContentLocationProperty
textContent :: CodeContentProperty -> Maybe (Value Text)
zipFileContent :: CodeContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3ContentLocation :: Maybe S3ContentLocationProperty
textContent :: Maybe (Value Text)
zipFileContent :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalyticsV2::Application.CodeContent",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> S3ContentLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3ContentLocation" (S3ContentLocationProperty -> (Key, Value))
-> Maybe S3ContentLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3ContentLocationProperty
s3ContentLocation,
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
"TextContent" (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)
textContent,
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
"ZipFileContent" (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)
zipFileContent])}
instance JSON.ToJSON CodeContentProperty where
toJSON :: CodeContentProperty -> Value
toJSON CodeContentProperty {Maybe (Value Text)
Maybe S3ContentLocationProperty
()
haddock_workaround_ :: CodeContentProperty -> ()
s3ContentLocation :: CodeContentProperty -> Maybe S3ContentLocationProperty
textContent :: CodeContentProperty -> Maybe (Value Text)
zipFileContent :: CodeContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3ContentLocation :: Maybe S3ContentLocationProperty
textContent :: Maybe (Value Text)
zipFileContent :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> S3ContentLocationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"S3ContentLocation" (S3ContentLocationProperty -> (Key, Value))
-> Maybe S3ContentLocationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe S3ContentLocationProperty
s3ContentLocation,
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
"TextContent" (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)
textContent,
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
"ZipFileContent" (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)
zipFileContent]))
instance Property "S3ContentLocation" CodeContentProperty where
type PropertyType "S3ContentLocation" CodeContentProperty = S3ContentLocationProperty
set :: PropertyType "S3ContentLocation" CodeContentProperty
-> CodeContentProperty -> CodeContentProperty
set PropertyType "S3ContentLocation" CodeContentProperty
newValue CodeContentProperty {Maybe (Value Text)
Maybe S3ContentLocationProperty
()
haddock_workaround_ :: CodeContentProperty -> ()
s3ContentLocation :: CodeContentProperty -> Maybe S3ContentLocationProperty
textContent :: CodeContentProperty -> Maybe (Value Text)
zipFileContent :: CodeContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3ContentLocation :: Maybe S3ContentLocationProperty
textContent :: Maybe (Value Text)
zipFileContent :: Maybe (Value Text)
..}
= CodeContentProperty
{s3ContentLocation :: Maybe S3ContentLocationProperty
s3ContentLocation = S3ContentLocationProperty -> Maybe S3ContentLocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3ContentLocation" CodeContentProperty
S3ContentLocationProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
textContent :: Maybe (Value Text)
zipFileContent :: Maybe (Value Text)
haddock_workaround_ :: ()
textContent :: Maybe (Value Text)
zipFileContent :: Maybe (Value Text)
..}
instance Property "TextContent" CodeContentProperty where
type PropertyType "TextContent" CodeContentProperty = Value Prelude.Text
set :: PropertyType "TextContent" CodeContentProperty
-> CodeContentProperty -> CodeContentProperty
set PropertyType "TextContent" CodeContentProperty
newValue CodeContentProperty {Maybe (Value Text)
Maybe S3ContentLocationProperty
()
haddock_workaround_ :: CodeContentProperty -> ()
s3ContentLocation :: CodeContentProperty -> Maybe S3ContentLocationProperty
textContent :: CodeContentProperty -> Maybe (Value Text)
zipFileContent :: CodeContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3ContentLocation :: Maybe S3ContentLocationProperty
textContent :: Maybe (Value Text)
zipFileContent :: Maybe (Value Text)
..}
= CodeContentProperty {textContent :: Maybe (Value Text)
textContent = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TextContent" CodeContentProperty
Value Text
newValue, Maybe (Value Text)
Maybe S3ContentLocationProperty
()
haddock_workaround_ :: ()
s3ContentLocation :: Maybe S3ContentLocationProperty
zipFileContent :: Maybe (Value Text)
haddock_workaround_ :: ()
s3ContentLocation :: Maybe S3ContentLocationProperty
zipFileContent :: Maybe (Value Text)
..}
instance Property "ZipFileContent" CodeContentProperty where
type PropertyType "ZipFileContent" CodeContentProperty = Value Prelude.Text
set :: PropertyType "ZipFileContent" CodeContentProperty
-> CodeContentProperty -> CodeContentProperty
set PropertyType "ZipFileContent" CodeContentProperty
newValue CodeContentProperty {Maybe (Value Text)
Maybe S3ContentLocationProperty
()
haddock_workaround_ :: CodeContentProperty -> ()
s3ContentLocation :: CodeContentProperty -> Maybe S3ContentLocationProperty
textContent :: CodeContentProperty -> Maybe (Value Text)
zipFileContent :: CodeContentProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
s3ContentLocation :: Maybe S3ContentLocationProperty
textContent :: Maybe (Value Text)
zipFileContent :: Maybe (Value Text)
..}
= CodeContentProperty {zipFileContent :: Maybe (Value Text)
zipFileContent = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ZipFileContent" CodeContentProperty
Value Text
newValue, Maybe (Value Text)
Maybe S3ContentLocationProperty
()
haddock_workaround_ :: ()
s3ContentLocation :: Maybe S3ContentLocationProperty
textContent :: Maybe (Value Text)
haddock_workaround_ :: ()
s3ContentLocation :: Maybe S3ContentLocationProperty
textContent :: Maybe (Value Text)
..}