module Stratosphere.RefactorSpaces.Application (
        module Exports, Application(..), mkApplication
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.RefactorSpaces.Application.ApiGatewayProxyInputProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Application
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-refactorspaces-application.html>
    Application {Application -> ()
haddock_workaround_ :: (),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-refactorspaces-application.html#cfn-refactorspaces-application-apigatewayproxy>
                 Application -> Maybe ApiGatewayProxyInputProperty
apiGatewayProxy :: (Prelude.Maybe ApiGatewayProxyInputProperty),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-refactorspaces-application.html#cfn-refactorspaces-application-environmentidentifier>
                 Application -> Value Text
environmentIdentifier :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-refactorspaces-application.html#cfn-refactorspaces-application-name>
                 Application -> Value Text
name :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-refactorspaces-application.html#cfn-refactorspaces-application-proxytype>
                 Application -> Value Text
proxyType :: (Value Prelude.Text),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-refactorspaces-application.html#cfn-refactorspaces-application-tags>
                 Application -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-refactorspaces-application.html#cfn-refactorspaces-application-vpcid>
                 Application -> Value Text
vpcId :: (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
     -> Value Prelude.Text -> Value Prelude.Text -> Application
mkApplication :: Value Text -> Value Text -> Value Text -> Value Text -> Application
mkApplication Value Text
environmentIdentifier Value Text
name Value Text
proxyType Value Text
vpcId
  = Application
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       environmentIdentifier :: Value Text
environmentIdentifier = Value Text
environmentIdentifier, name :: Value Text
name = Value Text
name,
       proxyType :: Value Text
proxyType = Value Text
proxyType, vpcId :: Value Text
vpcId = Value Text
vpcId,
       apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
apiGatewayProxy = Maybe ApiGatewayProxyInputProperty
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Application where
  toResourceProperties :: Application -> ResourceProperties
toResourceProperties Application {Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: Application -> ()
apiGatewayProxy :: Application -> Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Application -> Value Text
name :: Application -> Value Text
proxyType :: Application -> Value Text
tags :: Application -> Maybe [Tag]
vpcId :: Application -> Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::RefactorSpaces::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
"EnvironmentIdentifier" 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
environmentIdentifier,
                            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, Key
"ProxyType" 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
proxyType,
                            Key
"VpcId" 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
vpcId]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ApiGatewayProxyInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ApiGatewayProxy" (ApiGatewayProxyInputProperty -> (Key, Value))
-> Maybe ApiGatewayProxyInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ApiGatewayProxyInputProperty
apiGatewayProxy,
                               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 Application where
  toJSON :: Application -> Value
toJSON Application {Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: Application -> ()
apiGatewayProxy :: Application -> Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Application -> Value Text
name :: Application -> Value Text
proxyType :: Application -> Value Text
tags :: Application -> Maybe [Tag]
vpcId :: Application -> Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: 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
"EnvironmentIdentifier" 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
environmentIdentifier,
               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, Key
"ProxyType" 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
proxyType,
               Key
"VpcId" 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
vpcId]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ApiGatewayProxyInputProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ApiGatewayProxy" (ApiGatewayProxyInputProperty -> (Key, Value))
-> Maybe ApiGatewayProxyInputProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ApiGatewayProxyInputProperty
apiGatewayProxy,
                  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 "ApiGatewayProxy" Application where
  type PropertyType "ApiGatewayProxy" Application = ApiGatewayProxyInputProperty
  set :: PropertyType "ApiGatewayProxy" Application
-> Application -> Application
set PropertyType "ApiGatewayProxy" Application
newValue Application {Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: Application -> ()
apiGatewayProxy :: Application -> Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Application -> Value Text
name :: Application -> Value Text
proxyType :: Application -> Value Text
tags :: Application -> Maybe [Tag]
vpcId :: Application -> Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = Application {apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
apiGatewayProxy = ApiGatewayProxyInputProperty -> Maybe ApiGatewayProxyInputProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApiGatewayProxy" Application
ApiGatewayProxyInputProperty
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "EnvironmentIdentifier" Application where
  type PropertyType "EnvironmentIdentifier" Application = Value Prelude.Text
  set :: PropertyType "EnvironmentIdentifier" Application
-> Application -> Application
set PropertyType "EnvironmentIdentifier" Application
newValue Application {Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: Application -> ()
apiGatewayProxy :: Application -> Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Application -> Value Text
name :: Application -> Value Text
proxyType :: Application -> Value Text
tags :: Application -> Maybe [Tag]
vpcId :: Application -> Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = Application {environmentIdentifier :: Value Text
environmentIdentifier = PropertyType "EnvironmentIdentifier" Application
Value Text
newValue, Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: 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 [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: Application -> ()
apiGatewayProxy :: Application -> Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Application -> Value Text
name :: Application -> Value Text
proxyType :: Application -> Value Text
tags :: Application -> Maybe [Tag]
vpcId :: Application -> Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..} = Application {name :: Value Text
name = PropertyType "Name" Application
Value Text
newValue, Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "ProxyType" Application where
  type PropertyType "ProxyType" Application = Value Prelude.Text
  set :: PropertyType "ProxyType" Application -> Application -> Application
set PropertyType "ProxyType" Application
newValue Application {Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: Application -> ()
apiGatewayProxy :: Application -> Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Application -> Value Text
name :: Application -> Value Text
proxyType :: Application -> Value Text
tags :: Application -> Maybe [Tag]
vpcId :: Application -> Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = Application {proxyType :: Value Text
proxyType = PropertyType "ProxyType" Application
Value Text
newValue, Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "Tags" Application where
  type PropertyType "Tags" Application = [Tag]
  set :: PropertyType "Tags" Application -> Application -> Application
set PropertyType "Tags" Application
newValue Application {Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: Application -> ()
apiGatewayProxy :: Application -> Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Application -> Value Text
name :: Application -> Value Text
proxyType :: Application -> Value Text
tags :: Application -> Maybe [Tag]
vpcId :: Application -> Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = Application {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" Application
newValue, Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
vpcId :: Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
vpcId :: Value Text
..}
instance Property "VpcId" Application where
  type PropertyType "VpcId" Application = Value Prelude.Text
  set :: PropertyType "VpcId" Application -> Application -> Application
set PropertyType "VpcId" Application
newValue Application {Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: Application -> ()
apiGatewayProxy :: Application -> Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Application -> Value Text
name :: Application -> Value Text
proxyType :: Application -> Value Text
tags :: Application -> Maybe [Tag]
vpcId :: Application -> Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..} = Application {vpcId :: Value Text
vpcId = PropertyType "VpcId" Application
Value Text
newValue, Maybe [Tag]
Maybe ApiGatewayProxyInputProperty
()
Value Text
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
apiGatewayProxy :: Maybe ApiGatewayProxyInputProperty
environmentIdentifier :: Value Text
name :: Value Text
proxyType :: Value Text
tags :: Maybe [Tag]
..}