module Stratosphere.M2.Application (
module Exports, Application(..), mkApplication
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.M2.Application.DefinitionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data Application
=
Application {Application -> ()
haddock_workaround_ :: (),
Application -> Maybe DefinitionProperty
definition :: (Prelude.Maybe DefinitionProperty),
Application -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
Application -> Value Text
engineType :: (Value Prelude.Text),
Application -> Maybe (Value Text)
kmsKeyId :: (Prelude.Maybe (Value Prelude.Text)),
Application -> Value Text
name :: (Value Prelude.Text),
Application -> Maybe (Value Text)
roleArn :: (Prelude.Maybe (Value Prelude.Text)),
Application -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
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 ::
Value Prelude.Text -> Value Prelude.Text -> Application
mkApplication :: Value Text -> Value Text -> Application
mkApplication Value Text
engineType Value Text
name
= Application
{haddock_workaround_ :: ()
haddock_workaround_ = (), engineType :: Value Text
engineType = Value Text
engineType, name :: Value Text
name = Value Text
name,
definition :: Maybe DefinitionProperty
definition = Maybe DefinitionProperty
forall a. Maybe a
Prelude.Nothing, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
kmsKeyId :: Maybe (Value Text)
kmsKeyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, roleArn :: Maybe (Value Text)
roleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Application where
toResourceProperties :: Application -> ResourceProperties
toResourceProperties Application {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: Application -> ()
definition :: Application -> Maybe DefinitionProperty
description :: Application -> Maybe (Value Text)
engineType :: Application -> Value Text
kmsKeyId :: Application -> Maybe (Value Text)
name :: Application -> Value Text
roleArn :: Application -> Maybe (Value Text)
tags :: Application -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::M2::Application", 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
"EngineType" 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
engineType, 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 -> DefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Definition" (DefinitionProperty -> (Key, Value))
-> Maybe DefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefinitionProperty
definition,
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
"Description" (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)
description,
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
"KmsKeyId" (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)
kmsKeyId,
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
"RoleArn" (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)
roleArn,
Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags]))}
instance JSON.ToJSON Application where
toJSON :: Application -> Value
toJSON Application {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: Application -> ()
definition :: Application -> Maybe DefinitionProperty
description :: Application -> Maybe (Value Text)
engineType :: Application -> Value Text
kmsKeyId :: Application -> Maybe (Value Text)
name :: Application -> Value Text
roleArn :: Application -> Maybe (Value Text)
tags :: Application -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (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
"EngineType" 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
engineType, 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 -> DefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Definition" (DefinitionProperty -> (Key, Value))
-> Maybe DefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefinitionProperty
definition,
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
"Description" (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)
description,
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
"KmsKeyId" (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)
kmsKeyId,
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
"RoleArn" (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)
roleArn,
Key -> Map Text (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
"Tags" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
tags])))
instance Property "Definition" Application where
type PropertyType "Definition" Application = DefinitionProperty
set :: PropertyType "Definition" Application -> Application -> Application
set PropertyType "Definition" Application
newValue Application {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: Application -> ()
definition :: Application -> Maybe DefinitionProperty
description :: Application -> Maybe (Value Text)
engineType :: Application -> Value Text
kmsKeyId :: Application -> Maybe (Value Text)
name :: Application -> Value Text
roleArn :: Application -> Maybe (Value Text)
tags :: Application -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= Application {definition :: Maybe DefinitionProperty
definition = DefinitionProperty -> Maybe DefinitionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Definition" Application
DefinitionProperty
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Description" Application where
type PropertyType "Description" Application = Value Prelude.Text
set :: PropertyType "Description" Application
-> Application -> Application
set PropertyType "Description" Application
newValue Application {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: Application -> ()
definition :: Application -> Maybe DefinitionProperty
description :: Application -> Maybe (Value Text)
engineType :: Application -> Value Text
kmsKeyId :: Application -> Maybe (Value Text)
name :: Application -> Value Text
roleArn :: Application -> Maybe (Value Text)
tags :: Application -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= Application {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" Application
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "EngineType" Application where
type PropertyType "EngineType" Application = Value Prelude.Text
set :: PropertyType "EngineType" Application -> Application -> Application
set PropertyType "EngineType" Application
newValue Application {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: Application -> ()
definition :: Application -> Maybe DefinitionProperty
description :: Application -> Maybe (Value Text)
engineType :: Application -> Value Text
kmsKeyId :: Application -> Maybe (Value Text)
name :: Application -> Value Text
roleArn :: Application -> Maybe (Value Text)
tags :: Application -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= Application {engineType :: Value Text
engineType = PropertyType "EngineType" Application
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "KmsKeyId" Application where
type PropertyType "KmsKeyId" Application = Value Prelude.Text
set :: PropertyType "KmsKeyId" Application -> Application -> Application
set PropertyType "KmsKeyId" Application
newValue Application {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: Application -> ()
definition :: Application -> Maybe DefinitionProperty
description :: Application -> Maybe (Value Text)
engineType :: Application -> Value Text
kmsKeyId :: Application -> Maybe (Value Text)
name :: Application -> Value Text
roleArn :: Application -> Maybe (Value Text)
tags :: Application -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= Application {kmsKeyId :: Maybe (Value Text)
kmsKeyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "KmsKeyId" Application
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Name" Application where
type PropertyType "Name" Application = Value Prelude.Text
set :: PropertyType "Name" Application -> Application -> Application
set PropertyType "Name" Application
newValue Application {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: Application -> ()
definition :: Application -> Maybe DefinitionProperty
description :: Application -> Maybe (Value Text)
engineType :: Application -> Value Text
kmsKeyId :: Application -> Maybe (Value Text)
name :: Application -> Value Text
roleArn :: Application -> Maybe (Value Text)
tags :: Application -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..} = Application {name :: Value Text
name = PropertyType "Name" Application
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "RoleArn" Application where
type PropertyType "RoleArn" Application = Value Prelude.Text
set :: PropertyType "RoleArn" Application -> Application -> Application
set PropertyType "RoleArn" Application
newValue Application {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: Application -> ()
definition :: Application -> Maybe DefinitionProperty
description :: Application -> Maybe (Value Text)
engineType :: Application -> Value Text
kmsKeyId :: Application -> Maybe (Value Text)
name :: Application -> Value Text
roleArn :: Application -> Maybe (Value Text)
tags :: Application -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= Application {roleArn :: Maybe (Value Text)
roleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RoleArn" Application
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" Application where
type PropertyType "Tags" Application = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" Application -> Application -> Application
set PropertyType "Tags" Application
newValue Application {Maybe (Map Text (Value Text))
Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: Application -> ()
definition :: Application -> Maybe DefinitionProperty
description :: Application -> Maybe (Value Text)
engineType :: Application -> Value Text
kmsKeyId :: Application -> Maybe (Value Text)
name :: Application -> Value Text
roleArn :: Application -> Maybe (Value Text)
tags :: Application -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= Application {tags :: Maybe (Map Text (Value Text))
tags = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "Tags" Application
newValue, Maybe (Value Text)
Maybe DefinitionProperty
()
Value Text
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
haddock_workaround_ :: ()
definition :: Maybe DefinitionProperty
description :: Maybe (Value Text)
engineType :: Value Text
kmsKeyId :: Maybe (Value Text)
name :: Value Text
roleArn :: Maybe (Value Text)
..}