module Stratosphere.ApiGateway.DocumentationPart.LocationProperty (
LocationProperty(..), mkLocationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LocationProperty
=
LocationProperty {LocationProperty -> ()
haddock_workaround_ :: (),
LocationProperty -> Maybe (Value Text)
method :: (Prelude.Maybe (Value Prelude.Text)),
LocationProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
LocationProperty -> Maybe (Value Text)
path :: (Prelude.Maybe (Value Prelude.Text)),
LocationProperty -> Maybe (Value Text)
statusCode :: (Prelude.Maybe (Value Prelude.Text)),
LocationProperty -> Maybe (Value Text)
type' :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (LocationProperty -> LocationProperty -> Bool
(LocationProperty -> LocationProperty -> Bool)
-> (LocationProperty -> LocationProperty -> Bool)
-> Eq LocationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LocationProperty -> LocationProperty -> Bool
== :: LocationProperty -> LocationProperty -> Bool
$c/= :: LocationProperty -> LocationProperty -> Bool
/= :: LocationProperty -> LocationProperty -> Bool
Prelude.Eq, Int -> LocationProperty -> ShowS
[LocationProperty] -> ShowS
LocationProperty -> String
(Int -> LocationProperty -> ShowS)
-> (LocationProperty -> String)
-> ([LocationProperty] -> ShowS)
-> Show LocationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LocationProperty -> ShowS
showsPrec :: Int -> LocationProperty -> ShowS
$cshow :: LocationProperty -> String
show :: LocationProperty -> String
$cshowList :: [LocationProperty] -> ShowS
showList :: [LocationProperty] -> ShowS
Prelude.Show)
mkLocationProperty :: LocationProperty
mkLocationProperty :: LocationProperty
mkLocationProperty
= LocationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), method :: Maybe (Value Text)
method = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, path :: Maybe (Value Text)
path = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
statusCode :: Maybe (Value Text)
statusCode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, type' :: Maybe (Value Text)
type' = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LocationProperty where
toResourceProperties :: LocationProperty -> ResourceProperties
toResourceProperties LocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: LocationProperty -> ()
method :: LocationProperty -> Maybe (Value Text)
name :: LocationProperty -> Maybe (Value Text)
path :: LocationProperty -> Maybe (Value Text)
statusCode :: LocationProperty -> Maybe (Value Text)
type' :: LocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ApiGateway::DocumentationPart.Location",
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
"Method" (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)
method,
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
"Name" (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)
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..=) Key
"Path" (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)
path,
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
"StatusCode" (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)
statusCode,
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
"Type" (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)
type'])}
instance JSON.ToJSON LocationProperty where
toJSON :: LocationProperty -> Value
toJSON LocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: LocationProperty -> ()
method :: LocationProperty -> Maybe (Value Text)
name :: LocationProperty -> Maybe (Value Text)
path :: LocationProperty -> Maybe (Value Text)
statusCode :: LocationProperty -> Maybe (Value Text)
type' :: LocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: 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
"Method" (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)
method,
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
"Name" (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)
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..=) Key
"Path" (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)
path,
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
"StatusCode" (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)
statusCode,
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
"Type" (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)
type']))
instance Property "Method" LocationProperty where
type PropertyType "Method" LocationProperty = Value Prelude.Text
set :: PropertyType "Method" LocationProperty
-> LocationProperty -> LocationProperty
set PropertyType "Method" LocationProperty
newValue LocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: LocationProperty -> ()
method :: LocationProperty -> Maybe (Value Text)
name :: LocationProperty -> Maybe (Value Text)
path :: LocationProperty -> Maybe (Value Text)
statusCode :: LocationProperty -> Maybe (Value Text)
type' :: LocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= LocationProperty {method :: Maybe (Value Text)
method = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Method" LocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
instance Property "Name" LocationProperty where
type PropertyType "Name" LocationProperty = Value Prelude.Text
set :: PropertyType "Name" LocationProperty
-> LocationProperty -> LocationProperty
set PropertyType "Name" LocationProperty
newValue LocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: LocationProperty -> ()
method :: LocationProperty -> Maybe (Value Text)
name :: LocationProperty -> Maybe (Value Text)
path :: LocationProperty -> Maybe (Value Text)
statusCode :: LocationProperty -> Maybe (Value Text)
type' :: LocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= LocationProperty {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" LocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
method :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
instance Property "Path" LocationProperty where
type PropertyType "Path" LocationProperty = Value Prelude.Text
set :: PropertyType "Path" LocationProperty
-> LocationProperty -> LocationProperty
set PropertyType "Path" LocationProperty
newValue LocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: LocationProperty -> ()
method :: LocationProperty -> Maybe (Value Text)
name :: LocationProperty -> Maybe (Value Text)
path :: LocationProperty -> Maybe (Value Text)
statusCode :: LocationProperty -> Maybe (Value Text)
type' :: LocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= LocationProperty {path :: Maybe (Value Text)
path = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Path" LocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
instance Property "StatusCode" LocationProperty where
type PropertyType "StatusCode" LocationProperty = Value Prelude.Text
set :: PropertyType "StatusCode" LocationProperty
-> LocationProperty -> LocationProperty
set PropertyType "StatusCode" LocationProperty
newValue LocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: LocationProperty -> ()
method :: LocationProperty -> Maybe (Value Text)
name :: LocationProperty -> Maybe (Value Text)
path :: LocationProperty -> Maybe (Value Text)
statusCode :: LocationProperty -> Maybe (Value Text)
type' :: LocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= LocationProperty {statusCode :: Maybe (Value Text)
statusCode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StatusCode" LocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
type' :: Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
instance Property "Type" LocationProperty where
type PropertyType "Type" LocationProperty = Value Prelude.Text
set :: PropertyType "Type" LocationProperty
-> LocationProperty -> LocationProperty
set PropertyType "Type" LocationProperty
newValue LocationProperty {Maybe (Value Text)
()
haddock_workaround_ :: LocationProperty -> ()
method :: LocationProperty -> Maybe (Value Text)
name :: LocationProperty -> Maybe (Value Text)
path :: LocationProperty -> Maybe (Value Text)
statusCode :: LocationProperty -> Maybe (Value Text)
type' :: LocationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
type' :: Maybe (Value Text)
..}
= LocationProperty {type' :: Maybe (Value Text)
type' = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Type" LocationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
haddock_workaround_ :: ()
method :: Maybe (Value Text)
name :: Maybe (Value Text)
path :: Maybe (Value Text)
statusCode :: Maybe (Value Text)
..}