module Stratosphere.RefactorSpaces.Application.ApiGatewayProxyInputProperty (
ApiGatewayProxyInputProperty(..), mkApiGatewayProxyInputProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ApiGatewayProxyInputProperty
=
ApiGatewayProxyInputProperty {ApiGatewayProxyInputProperty -> ()
haddock_workaround_ :: (),
ApiGatewayProxyInputProperty -> Maybe (Value Text)
endpointType :: (Prelude.Maybe (Value Prelude.Text)),
ApiGatewayProxyInputProperty -> Maybe (Value Text)
stageName :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ApiGatewayProxyInputProperty
-> ApiGatewayProxyInputProperty -> Bool
(ApiGatewayProxyInputProperty
-> ApiGatewayProxyInputProperty -> Bool)
-> (ApiGatewayProxyInputProperty
-> ApiGatewayProxyInputProperty -> Bool)
-> Eq ApiGatewayProxyInputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ApiGatewayProxyInputProperty
-> ApiGatewayProxyInputProperty -> Bool
== :: ApiGatewayProxyInputProperty
-> ApiGatewayProxyInputProperty -> Bool
$c/= :: ApiGatewayProxyInputProperty
-> ApiGatewayProxyInputProperty -> Bool
/= :: ApiGatewayProxyInputProperty
-> ApiGatewayProxyInputProperty -> Bool
Prelude.Eq, Int -> ApiGatewayProxyInputProperty -> ShowS
[ApiGatewayProxyInputProperty] -> ShowS
ApiGatewayProxyInputProperty -> String
(Int -> ApiGatewayProxyInputProperty -> ShowS)
-> (ApiGatewayProxyInputProperty -> String)
-> ([ApiGatewayProxyInputProperty] -> ShowS)
-> Show ApiGatewayProxyInputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ApiGatewayProxyInputProperty -> ShowS
showsPrec :: Int -> ApiGatewayProxyInputProperty -> ShowS
$cshow :: ApiGatewayProxyInputProperty -> String
show :: ApiGatewayProxyInputProperty -> String
$cshowList :: [ApiGatewayProxyInputProperty] -> ShowS
showList :: [ApiGatewayProxyInputProperty] -> ShowS
Prelude.Show)
mkApiGatewayProxyInputProperty :: ApiGatewayProxyInputProperty
mkApiGatewayProxyInputProperty :: ApiGatewayProxyInputProperty
mkApiGatewayProxyInputProperty
= ApiGatewayProxyInputProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), endpointType :: Maybe (Value Text)
endpointType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
stageName :: Maybe (Value Text)
stageName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ApiGatewayProxyInputProperty where
toResourceProperties :: ApiGatewayProxyInputProperty -> ResourceProperties
toResourceProperties ApiGatewayProxyInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: ApiGatewayProxyInputProperty -> ()
endpointType :: ApiGatewayProxyInputProperty -> Maybe (Value Text)
stageName :: ApiGatewayProxyInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endpointType :: Maybe (Value Text)
stageName :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::RefactorSpaces::Application.ApiGatewayProxyInput",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"EndpointType" (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)
endpointType,
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
"StageName" (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)
stageName])}
instance JSON.ToJSON ApiGatewayProxyInputProperty where
toJSON :: ApiGatewayProxyInputProperty -> Value
toJSON ApiGatewayProxyInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: ApiGatewayProxyInputProperty -> ()
endpointType :: ApiGatewayProxyInputProperty -> Maybe (Value Text)
stageName :: ApiGatewayProxyInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endpointType :: Maybe (Value Text)
stageName :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([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
"EndpointType" (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)
endpointType,
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
"StageName" (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)
stageName]))
instance Property "EndpointType" ApiGatewayProxyInputProperty where
type PropertyType "EndpointType" ApiGatewayProxyInputProperty = Value Prelude.Text
set :: PropertyType "EndpointType" ApiGatewayProxyInputProperty
-> ApiGatewayProxyInputProperty -> ApiGatewayProxyInputProperty
set PropertyType "EndpointType" ApiGatewayProxyInputProperty
newValue ApiGatewayProxyInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: ApiGatewayProxyInputProperty -> ()
endpointType :: ApiGatewayProxyInputProperty -> Maybe (Value Text)
stageName :: ApiGatewayProxyInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endpointType :: Maybe (Value Text)
stageName :: Maybe (Value Text)
..}
= ApiGatewayProxyInputProperty
{endpointType :: Maybe (Value Text)
endpointType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "EndpointType" ApiGatewayProxyInputProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
stageName :: Maybe (Value Text)
haddock_workaround_ :: ()
stageName :: Maybe (Value Text)
..}
instance Property "StageName" ApiGatewayProxyInputProperty where
type PropertyType "StageName" ApiGatewayProxyInputProperty = Value Prelude.Text
set :: PropertyType "StageName" ApiGatewayProxyInputProperty
-> ApiGatewayProxyInputProperty -> ApiGatewayProxyInputProperty
set PropertyType "StageName" ApiGatewayProxyInputProperty
newValue ApiGatewayProxyInputProperty {Maybe (Value Text)
()
haddock_workaround_ :: ApiGatewayProxyInputProperty -> ()
endpointType :: ApiGatewayProxyInputProperty -> Maybe (Value Text)
stageName :: ApiGatewayProxyInputProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
endpointType :: Maybe (Value Text)
stageName :: Maybe (Value Text)
..}
= ApiGatewayProxyInputProperty
{stageName :: Maybe (Value Text)
stageName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StageName" ApiGatewayProxyInputProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
endpointType :: Maybe (Value Text)
haddock_workaround_ :: ()
endpointType :: Maybe (Value Text)
..}