module Stratosphere.KinesisAnalytics.Application (
        module Exports, Application(..), mkApplication
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KinesisAnalytics.Application.InputProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Application
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html>
    Application {Application -> ()
haddock_workaround_ :: (),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html#cfn-kinesisanalytics-application-applicationcode>
                 Application -> Maybe (Value Text)
applicationCode :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html#cfn-kinesisanalytics-application-applicationdescription>
                 Application -> Maybe (Value Text)
applicationDescription :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html#cfn-kinesisanalytics-application-applicationname>
                 Application -> Maybe (Value Text)
applicationName :: (Prelude.Maybe (Value Prelude.Text)),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesisanalytics-application.html#cfn-kinesisanalytics-application-inputs>
                 Application -> [InputProperty]
inputs :: [InputProperty]}
  deriving stock (Application -> Application -> Bool
(Application -> Application -> Bool)
-> (Application -> Application -> Bool) -> Eq Application
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Application -> Application -> Bool
== :: Application -> Application -> Bool
$c/= :: Application -> Application -> Bool
/= :: Application -> Application -> Bool
Prelude.Eq, Int -> Application -> ShowS
[Application] -> ShowS
Application -> String
(Int -> Application -> ShowS)
-> (Application -> String)
-> ([Application] -> ShowS)
-> Show Application
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Application -> ShowS
showsPrec :: Int -> Application -> ShowS
$cshow :: Application -> String
show :: Application -> String
$cshowList :: [Application] -> ShowS
showList :: [Application] -> ShowS
Prelude.Show)
mkApplication :: [InputProperty] -> Application
mkApplication :: [InputProperty] -> Application
mkApplication [InputProperty]
inputs
  = Application
      {haddock_workaround_ :: ()
haddock_workaround_ = (), inputs :: [InputProperty]
inputs = [InputProperty]
inputs,
       applicationCode :: Maybe (Value Text)
applicationCode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       applicationDescription :: Maybe (Value Text)
applicationDescription = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       applicationName :: Maybe (Value Text)
applicationName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Application where
  toResourceProperties :: Application -> ResourceProperties
toResourceProperties Application {[InputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: Application -> ()
applicationCode :: Application -> Maybe (Value Text)
applicationDescription :: Application -> Maybe (Value Text)
applicationName :: Application -> Maybe (Value Text)
inputs :: Application -> [InputProperty]
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationDescription :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
inputs :: [InputProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisAnalytics::Application",
         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
"Inputs" Key -> [InputProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [InputProperty]
inputs]
                           ([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
"ApplicationCode" (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)
applicationCode,
                               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
"ApplicationDescription"
                                 (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)
applicationDescription,
                               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
"ApplicationName" (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)
applicationName]))}
instance JSON.ToJSON Application where
  toJSON :: Application -> Value
toJSON Application {[InputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: Application -> ()
applicationCode :: Application -> Maybe (Value Text)
applicationDescription :: Application -> Maybe (Value Text)
applicationName :: Application -> Maybe (Value Text)
inputs :: Application -> [InputProperty]
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationDescription :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
inputs :: [InputProperty]
..}
    = [(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
"Inputs" Key -> [InputProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [InputProperty]
inputs]
              ([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
"ApplicationCode" (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)
applicationCode,
                  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
"ApplicationDescription"
                    (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)
applicationDescription,
                  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
"ApplicationName" (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)
applicationName])))
instance Property "ApplicationCode" Application where
  type PropertyType "ApplicationCode" Application = Value Prelude.Text
  set :: PropertyType "ApplicationCode" Application
-> Application -> Application
set PropertyType "ApplicationCode" Application
newValue Application {[InputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: Application -> ()
applicationCode :: Application -> Maybe (Value Text)
applicationDescription :: Application -> Maybe (Value Text)
applicationName :: Application -> Maybe (Value Text)
inputs :: Application -> [InputProperty]
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationDescription :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
inputs :: [InputProperty]
..}
    = Application {applicationCode :: Maybe (Value Text)
applicationCode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplicationCode" Application
Value Text
newValue, [InputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
applicationDescription :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
inputs :: [InputProperty]
haddock_workaround_ :: ()
applicationDescription :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
inputs :: [InputProperty]
..}
instance Property "ApplicationDescription" Application where
  type PropertyType "ApplicationDescription" Application = Value Prelude.Text
  set :: PropertyType "ApplicationDescription" Application
-> Application -> Application
set PropertyType "ApplicationDescription" Application
newValue Application {[InputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: Application -> ()
applicationCode :: Application -> Maybe (Value Text)
applicationDescription :: Application -> Maybe (Value Text)
applicationName :: Application -> Maybe (Value Text)
inputs :: Application -> [InputProperty]
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationDescription :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
inputs :: [InputProperty]
..}
    = Application {applicationDescription :: Maybe (Value Text)
applicationDescription = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplicationDescription" Application
Value Text
newValue, [InputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
inputs :: [InputProperty]
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
inputs :: [InputProperty]
..}
instance Property "ApplicationName" Application where
  type PropertyType "ApplicationName" Application = Value Prelude.Text
  set :: PropertyType "ApplicationName" Application
-> Application -> Application
set PropertyType "ApplicationName" Application
newValue Application {[InputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: Application -> ()
applicationCode :: Application -> Maybe (Value Text)
applicationDescription :: Application -> Maybe (Value Text)
applicationName :: Application -> Maybe (Value Text)
inputs :: Application -> [InputProperty]
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationDescription :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
inputs :: [InputProperty]
..}
    = Application {applicationName :: Maybe (Value Text)
applicationName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplicationName" Application
Value Text
newValue, [InputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationDescription :: Maybe (Value Text)
inputs :: [InputProperty]
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationDescription :: Maybe (Value Text)
inputs :: [InputProperty]
..}
instance Property "Inputs" Application where
  type PropertyType "Inputs" Application = [InputProperty]
  set :: PropertyType "Inputs" Application -> Application -> Application
set PropertyType "Inputs" Application
newValue Application {[InputProperty]
Maybe (Value Text)
()
haddock_workaround_ :: Application -> ()
applicationCode :: Application -> Maybe (Value Text)
applicationDescription :: Application -> Maybe (Value Text)
applicationName :: Application -> Maybe (Value Text)
inputs :: Application -> [InputProperty]
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationDescription :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
inputs :: [InputProperty]
..} = Application {inputs :: [InputProperty]
inputs = [InputProperty]
PropertyType "Inputs" Application
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationDescription :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
haddock_workaround_ :: ()
applicationCode :: Maybe (Value Text)
applicationDescription :: Maybe (Value Text)
applicationName :: Maybe (Value Text)
..}