module Stratosphere.CloudFormation.ResourceVersion (
module Exports, ResourceVersion(..), mkResourceVersion
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CloudFormation.ResourceVersion.LoggingConfigProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ResourceVersion
=
ResourceVersion {ResourceVersion -> ()
haddock_workaround_ :: (),
ResourceVersion -> Maybe (Value Text)
executionRoleArn :: (Prelude.Maybe (Value Prelude.Text)),
ResourceVersion -> Maybe LoggingConfigProperty
loggingConfig :: (Prelude.Maybe LoggingConfigProperty),
ResourceVersion -> Value Text
schemaHandlerPackage :: (Value Prelude.Text),
ResourceVersion -> Value Text
typeName :: (Value Prelude.Text)}
deriving stock (ResourceVersion -> ResourceVersion -> Bool
(ResourceVersion -> ResourceVersion -> Bool)
-> (ResourceVersion -> ResourceVersion -> Bool)
-> Eq ResourceVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResourceVersion -> ResourceVersion -> Bool
== :: ResourceVersion -> ResourceVersion -> Bool
$c/= :: ResourceVersion -> ResourceVersion -> Bool
/= :: ResourceVersion -> ResourceVersion -> Bool
Prelude.Eq, Int -> ResourceVersion -> ShowS
[ResourceVersion] -> ShowS
ResourceVersion -> String
(Int -> ResourceVersion -> ShowS)
-> (ResourceVersion -> String)
-> ([ResourceVersion] -> ShowS)
-> Show ResourceVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResourceVersion -> ShowS
showsPrec :: Int -> ResourceVersion -> ShowS
$cshow :: ResourceVersion -> String
show :: ResourceVersion -> String
$cshowList :: [ResourceVersion] -> ShowS
showList :: [ResourceVersion] -> ShowS
Prelude.Show)
mkResourceVersion ::
Value Prelude.Text -> Value Prelude.Text -> ResourceVersion
mkResourceVersion :: Value Text -> Value Text -> ResourceVersion
mkResourceVersion Value Text
schemaHandlerPackage Value Text
typeName
= ResourceVersion
{haddock_workaround_ :: ()
haddock_workaround_ = (),
schemaHandlerPackage :: Value Text
schemaHandlerPackage = Value Text
schemaHandlerPackage, typeName :: Value Text
typeName = Value Text
typeName,
executionRoleArn :: Maybe (Value Text)
executionRoleArn = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
loggingConfig :: Maybe LoggingConfigProperty
loggingConfig = Maybe LoggingConfigProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ResourceVersion where
toResourceProperties :: ResourceVersion -> ResourceProperties
toResourceProperties ResourceVersion {Maybe (Value Text)
Maybe LoggingConfigProperty
()
Value Text
haddock_workaround_ :: ResourceVersion -> ()
executionRoleArn :: ResourceVersion -> Maybe (Value Text)
loggingConfig :: ResourceVersion -> Maybe LoggingConfigProperty
schemaHandlerPackage :: ResourceVersion -> Value Text
typeName :: ResourceVersion -> Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
loggingConfig :: Maybe LoggingConfigProperty
schemaHandlerPackage :: Value Text
typeName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudFormation::ResourceVersion",
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
"SchemaHandlerPackage" 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
schemaHandlerPackage,
Key
"TypeName" 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
typeName]
([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
"ExecutionRoleArn" (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)
executionRoleArn,
Key -> LoggingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LoggingConfig" (LoggingConfigProperty -> (Key, Value))
-> Maybe LoggingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoggingConfigProperty
loggingConfig]))}
instance JSON.ToJSON ResourceVersion where
toJSON :: ResourceVersion -> Value
toJSON ResourceVersion {Maybe (Value Text)
Maybe LoggingConfigProperty
()
Value Text
haddock_workaround_ :: ResourceVersion -> ()
executionRoleArn :: ResourceVersion -> Maybe (Value Text)
loggingConfig :: ResourceVersion -> Maybe LoggingConfigProperty
schemaHandlerPackage :: ResourceVersion -> Value Text
typeName :: ResourceVersion -> Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
loggingConfig :: Maybe LoggingConfigProperty
schemaHandlerPackage :: Value Text
typeName :: 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
"SchemaHandlerPackage" 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
schemaHandlerPackage,
Key
"TypeName" 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
typeName]
([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
"ExecutionRoleArn" (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)
executionRoleArn,
Key -> LoggingConfigProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"LoggingConfig" (LoggingConfigProperty -> (Key, Value))
-> Maybe LoggingConfigProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LoggingConfigProperty
loggingConfig])))
instance Property "ExecutionRoleArn" ResourceVersion where
type PropertyType "ExecutionRoleArn" ResourceVersion = Value Prelude.Text
set :: PropertyType "ExecutionRoleArn" ResourceVersion
-> ResourceVersion -> ResourceVersion
set PropertyType "ExecutionRoleArn" ResourceVersion
newValue ResourceVersion {Maybe (Value Text)
Maybe LoggingConfigProperty
()
Value Text
haddock_workaround_ :: ResourceVersion -> ()
executionRoleArn :: ResourceVersion -> Maybe (Value Text)
loggingConfig :: ResourceVersion -> Maybe LoggingConfigProperty
schemaHandlerPackage :: ResourceVersion -> Value Text
typeName :: ResourceVersion -> Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
loggingConfig :: Maybe LoggingConfigProperty
schemaHandlerPackage :: Value Text
typeName :: Value Text
..}
= ResourceVersion {executionRoleArn :: Maybe (Value Text)
executionRoleArn = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ExecutionRoleArn" ResourceVersion
Value Text
newValue, Maybe LoggingConfigProperty
()
Value Text
haddock_workaround_ :: ()
loggingConfig :: Maybe LoggingConfigProperty
schemaHandlerPackage :: Value Text
typeName :: Value Text
haddock_workaround_ :: ()
loggingConfig :: Maybe LoggingConfigProperty
schemaHandlerPackage :: Value Text
typeName :: Value Text
..}
instance Property "LoggingConfig" ResourceVersion where
type PropertyType "LoggingConfig" ResourceVersion = LoggingConfigProperty
set :: PropertyType "LoggingConfig" ResourceVersion
-> ResourceVersion -> ResourceVersion
set PropertyType "LoggingConfig" ResourceVersion
newValue ResourceVersion {Maybe (Value Text)
Maybe LoggingConfigProperty
()
Value Text
haddock_workaround_ :: ResourceVersion -> ()
executionRoleArn :: ResourceVersion -> Maybe (Value Text)
loggingConfig :: ResourceVersion -> Maybe LoggingConfigProperty
schemaHandlerPackage :: ResourceVersion -> Value Text
typeName :: ResourceVersion -> Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
loggingConfig :: Maybe LoggingConfigProperty
schemaHandlerPackage :: Value Text
typeName :: Value Text
..}
= ResourceVersion {loggingConfig :: Maybe LoggingConfigProperty
loggingConfig = LoggingConfigProperty -> Maybe LoggingConfigProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "LoggingConfig" ResourceVersion
LoggingConfigProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
schemaHandlerPackage :: Value Text
typeName :: Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
schemaHandlerPackage :: Value Text
typeName :: Value Text
..}
instance Property "SchemaHandlerPackage" ResourceVersion where
type PropertyType "SchemaHandlerPackage" ResourceVersion = Value Prelude.Text
set :: PropertyType "SchemaHandlerPackage" ResourceVersion
-> ResourceVersion -> ResourceVersion
set PropertyType "SchemaHandlerPackage" ResourceVersion
newValue ResourceVersion {Maybe (Value Text)
Maybe LoggingConfigProperty
()
Value Text
haddock_workaround_ :: ResourceVersion -> ()
executionRoleArn :: ResourceVersion -> Maybe (Value Text)
loggingConfig :: ResourceVersion -> Maybe LoggingConfigProperty
schemaHandlerPackage :: ResourceVersion -> Value Text
typeName :: ResourceVersion -> Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
loggingConfig :: Maybe LoggingConfigProperty
schemaHandlerPackage :: Value Text
typeName :: Value Text
..}
= ResourceVersion {schemaHandlerPackage :: Value Text
schemaHandlerPackage = PropertyType "SchemaHandlerPackage" ResourceVersion
Value Text
newValue, Maybe (Value Text)
Maybe LoggingConfigProperty
()
Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
loggingConfig :: Maybe LoggingConfigProperty
typeName :: Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
loggingConfig :: Maybe LoggingConfigProperty
typeName :: Value Text
..}
instance Property "TypeName" ResourceVersion where
type PropertyType "TypeName" ResourceVersion = Value Prelude.Text
set :: PropertyType "TypeName" ResourceVersion
-> ResourceVersion -> ResourceVersion
set PropertyType "TypeName" ResourceVersion
newValue ResourceVersion {Maybe (Value Text)
Maybe LoggingConfigProperty
()
Value Text
haddock_workaround_ :: ResourceVersion -> ()
executionRoleArn :: ResourceVersion -> Maybe (Value Text)
loggingConfig :: ResourceVersion -> Maybe LoggingConfigProperty
schemaHandlerPackage :: ResourceVersion -> Value Text
typeName :: ResourceVersion -> Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
loggingConfig :: Maybe LoggingConfigProperty
schemaHandlerPackage :: Value Text
typeName :: Value Text
..}
= ResourceVersion {typeName :: Value Text
typeName = PropertyType "TypeName" ResourceVersion
Value Text
newValue, Maybe (Value Text)
Maybe LoggingConfigProperty
()
Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
loggingConfig :: Maybe LoggingConfigProperty
schemaHandlerPackage :: Value Text
haddock_workaround_ :: ()
executionRoleArn :: Maybe (Value Text)
loggingConfig :: Maybe LoggingConfigProperty
schemaHandlerPackage :: Value Text
..}