module Stratosphere.ApiGateway.DocumentationVersion (
DocumentationVersion(..), mkDocumentationVersion
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DocumentationVersion
=
DocumentationVersion {DocumentationVersion -> ()
haddock_workaround_ :: (),
DocumentationVersion -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
DocumentationVersion -> Value Text
documentationVersion :: (Value Prelude.Text),
DocumentationVersion -> Value Text
restApiId :: (Value Prelude.Text)}
deriving stock (DocumentationVersion -> DocumentationVersion -> Bool
(DocumentationVersion -> DocumentationVersion -> Bool)
-> (DocumentationVersion -> DocumentationVersion -> Bool)
-> Eq DocumentationVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DocumentationVersion -> DocumentationVersion -> Bool
== :: DocumentationVersion -> DocumentationVersion -> Bool
$c/= :: DocumentationVersion -> DocumentationVersion -> Bool
/= :: DocumentationVersion -> DocumentationVersion -> Bool
Prelude.Eq, Int -> DocumentationVersion -> ShowS
[DocumentationVersion] -> ShowS
DocumentationVersion -> String
(Int -> DocumentationVersion -> ShowS)
-> (DocumentationVersion -> String)
-> ([DocumentationVersion] -> ShowS)
-> Show DocumentationVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DocumentationVersion -> ShowS
showsPrec :: Int -> DocumentationVersion -> ShowS
$cshow :: DocumentationVersion -> String
show :: DocumentationVersion -> String
$cshowList :: [DocumentationVersion] -> ShowS
showList :: [DocumentationVersion] -> ShowS
Prelude.Show)
mkDocumentationVersion ::
Value Prelude.Text -> Value Prelude.Text -> DocumentationVersion
mkDocumentationVersion :: Value Text -> Value Text -> DocumentationVersion
mkDocumentationVersion Value Text
documentationVersion Value Text
restApiId
= DocumentationVersion
{haddock_workaround_ :: ()
haddock_workaround_ = (),
documentationVersion :: Value Text
documentationVersion = Value Text
documentationVersion, restApiId :: Value Text
restApiId = Value Text
restApiId,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DocumentationVersion where
toResourceProperties :: DocumentationVersion -> ResourceProperties
toResourceProperties DocumentationVersion {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentationVersion -> ()
description :: DocumentationVersion -> Maybe (Value Text)
documentationVersion :: DocumentationVersion -> Value Text
restApiId :: DocumentationVersion -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
documentationVersion :: Value Text
restApiId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ApiGateway::DocumentationVersion",
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
"DocumentationVersion" 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
documentationVersion,
Key
"RestApiId" 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
restApiId]
([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
"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]))}
instance JSON.ToJSON DocumentationVersion where
toJSON :: DocumentationVersion -> Value
toJSON DocumentationVersion {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentationVersion -> ()
description :: DocumentationVersion -> Maybe (Value Text)
documentationVersion :: DocumentationVersion -> Value Text
restApiId :: DocumentationVersion -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
documentationVersion :: Value Text
restApiId :: 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
"DocumentationVersion" 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
documentationVersion,
Key
"RestApiId" 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
restApiId]
([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
"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])))
instance Property "Description" DocumentationVersion where
type PropertyType "Description" DocumentationVersion = Value Prelude.Text
set :: PropertyType "Description" DocumentationVersion
-> DocumentationVersion -> DocumentationVersion
set PropertyType "Description" DocumentationVersion
newValue DocumentationVersion {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentationVersion -> ()
description :: DocumentationVersion -> Maybe (Value Text)
documentationVersion :: DocumentationVersion -> Value Text
restApiId :: DocumentationVersion -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
documentationVersion :: Value Text
restApiId :: Value Text
..}
= DocumentationVersion {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" DocumentationVersion
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
documentationVersion :: Value Text
restApiId :: Value Text
haddock_workaround_ :: ()
documentationVersion :: Value Text
restApiId :: Value Text
..}
instance Property "DocumentationVersion" DocumentationVersion where
type PropertyType "DocumentationVersion" DocumentationVersion = Value Prelude.Text
set :: PropertyType "DocumentationVersion" DocumentationVersion
-> DocumentationVersion -> DocumentationVersion
set PropertyType "DocumentationVersion" DocumentationVersion
newValue DocumentationVersion {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentationVersion -> ()
description :: DocumentationVersion -> Maybe (Value Text)
documentationVersion :: DocumentationVersion -> Value Text
restApiId :: DocumentationVersion -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
documentationVersion :: Value Text
restApiId :: Value Text
..}
= DocumentationVersion {documentationVersion :: Value Text
documentationVersion = PropertyType "DocumentationVersion" DocumentationVersion
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
restApiId :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
restApiId :: Value Text
..}
instance Property "RestApiId" DocumentationVersion where
type PropertyType "RestApiId" DocumentationVersion = Value Prelude.Text
set :: PropertyType "RestApiId" DocumentationVersion
-> DocumentationVersion -> DocumentationVersion
set PropertyType "RestApiId" DocumentationVersion
newValue DocumentationVersion {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: DocumentationVersion -> ()
description :: DocumentationVersion -> Maybe (Value Text)
documentationVersion :: DocumentationVersion -> Value Text
restApiId :: DocumentationVersion -> Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
documentationVersion :: Value Text
restApiId :: Value Text
..}
= DocumentationVersion {restApiId :: Value Text
restApiId = PropertyType "RestApiId" DocumentationVersion
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
documentationVersion :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
documentationVersion :: Value Text
..}