module Stratosphere.AppMesh.GatewayRoute.GrpcGatewayRouteMetadataProperty (
module Exports, GrpcGatewayRouteMetadataProperty(..),
mkGrpcGatewayRouteMetadataProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppMesh.GatewayRoute.GatewayRouteMetadataMatchProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GrpcGatewayRouteMetadataProperty
=
GrpcGatewayRouteMetadataProperty {GrpcGatewayRouteMetadataProperty -> ()
haddock_workaround_ :: (),
GrpcGatewayRouteMetadataProperty -> Maybe (Value Bool)
invert :: (Prelude.Maybe (Value Prelude.Bool)),
GrpcGatewayRouteMetadataProperty
-> Maybe GatewayRouteMetadataMatchProperty
match :: (Prelude.Maybe GatewayRouteMetadataMatchProperty),
GrpcGatewayRouteMetadataProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty -> Bool
(GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty -> Bool)
-> (GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty -> Bool)
-> Eq GrpcGatewayRouteMetadataProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty -> Bool
== :: GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty -> Bool
$c/= :: GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty -> Bool
/= :: GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty -> Bool
Prelude.Eq, Int -> GrpcGatewayRouteMetadataProperty -> ShowS
[GrpcGatewayRouteMetadataProperty] -> ShowS
GrpcGatewayRouteMetadataProperty -> String
(Int -> GrpcGatewayRouteMetadataProperty -> ShowS)
-> (GrpcGatewayRouteMetadataProperty -> String)
-> ([GrpcGatewayRouteMetadataProperty] -> ShowS)
-> Show GrpcGatewayRouteMetadataProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GrpcGatewayRouteMetadataProperty -> ShowS
showsPrec :: Int -> GrpcGatewayRouteMetadataProperty -> ShowS
$cshow :: GrpcGatewayRouteMetadataProperty -> String
show :: GrpcGatewayRouteMetadataProperty -> String
$cshowList :: [GrpcGatewayRouteMetadataProperty] -> ShowS
showList :: [GrpcGatewayRouteMetadataProperty] -> ShowS
Prelude.Show)
mkGrpcGatewayRouteMetadataProperty ::
Value Prelude.Text -> GrpcGatewayRouteMetadataProperty
mkGrpcGatewayRouteMetadataProperty :: Value Text -> GrpcGatewayRouteMetadataProperty
mkGrpcGatewayRouteMetadataProperty Value Text
name
= GrpcGatewayRouteMetadataProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name, invert :: Maybe (Value Bool)
invert = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
match :: Maybe GatewayRouteMetadataMatchProperty
match = Maybe GatewayRouteMetadataMatchProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GrpcGatewayRouteMetadataProperty where
toResourceProperties :: GrpcGatewayRouteMetadataProperty -> ResourceProperties
toResourceProperties GrpcGatewayRouteMetadataProperty {Maybe (Value Bool)
Maybe GatewayRouteMetadataMatchProperty
()
Value Text
haddock_workaround_ :: GrpcGatewayRouteMetadataProperty -> ()
invert :: GrpcGatewayRouteMetadataProperty -> Maybe (Value Bool)
match :: GrpcGatewayRouteMetadataProperty
-> Maybe GatewayRouteMetadataMatchProperty
name :: GrpcGatewayRouteMetadataProperty -> Value Text
haddock_workaround_ :: ()
invert :: Maybe (Value Bool)
match :: Maybe GatewayRouteMetadataMatchProperty
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppMesh::GatewayRoute.GrpcGatewayRouteMetadata",
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
"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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Invert" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
invert,
Key -> GatewayRouteMetadataMatchProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Match" (GatewayRouteMetadataMatchProperty -> (Key, Value))
-> Maybe GatewayRouteMetadataMatchProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GatewayRouteMetadataMatchProperty
match]))}
instance JSON.ToJSON GrpcGatewayRouteMetadataProperty where
toJSON :: GrpcGatewayRouteMetadataProperty -> Value
toJSON GrpcGatewayRouteMetadataProperty {Maybe (Value Bool)
Maybe GatewayRouteMetadataMatchProperty
()
Value Text
haddock_workaround_ :: GrpcGatewayRouteMetadataProperty -> ()
invert :: GrpcGatewayRouteMetadataProperty -> Maybe (Value Bool)
match :: GrpcGatewayRouteMetadataProperty
-> Maybe GatewayRouteMetadataMatchProperty
name :: GrpcGatewayRouteMetadataProperty -> Value Text
haddock_workaround_ :: ()
invert :: Maybe (Value Bool)
match :: Maybe GatewayRouteMetadataMatchProperty
name :: 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
"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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Invert" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
invert,
Key -> GatewayRouteMetadataMatchProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Match" (GatewayRouteMetadataMatchProperty -> (Key, Value))
-> Maybe GatewayRouteMetadataMatchProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GatewayRouteMetadataMatchProperty
match])))
instance Property "Invert" GrpcGatewayRouteMetadataProperty where
type PropertyType "Invert" GrpcGatewayRouteMetadataProperty = Value Prelude.Bool
set :: PropertyType "Invert" GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty
set PropertyType "Invert" GrpcGatewayRouteMetadataProperty
newValue GrpcGatewayRouteMetadataProperty {Maybe (Value Bool)
Maybe GatewayRouteMetadataMatchProperty
()
Value Text
haddock_workaround_ :: GrpcGatewayRouteMetadataProperty -> ()
invert :: GrpcGatewayRouteMetadataProperty -> Maybe (Value Bool)
match :: GrpcGatewayRouteMetadataProperty
-> Maybe GatewayRouteMetadataMatchProperty
name :: GrpcGatewayRouteMetadataProperty -> Value Text
haddock_workaround_ :: ()
invert :: Maybe (Value Bool)
match :: Maybe GatewayRouteMetadataMatchProperty
name :: Value Text
..}
= GrpcGatewayRouteMetadataProperty
{invert :: Maybe (Value Bool)
invert = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Invert" GrpcGatewayRouteMetadataProperty
Value Bool
newValue, Maybe GatewayRouteMetadataMatchProperty
()
Value Text
haddock_workaround_ :: ()
match :: Maybe GatewayRouteMetadataMatchProperty
name :: Value Text
haddock_workaround_ :: ()
match :: Maybe GatewayRouteMetadataMatchProperty
name :: Value Text
..}
instance Property "Match" GrpcGatewayRouteMetadataProperty where
type PropertyType "Match" GrpcGatewayRouteMetadataProperty = GatewayRouteMetadataMatchProperty
set :: PropertyType "Match" GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty
set PropertyType "Match" GrpcGatewayRouteMetadataProperty
newValue GrpcGatewayRouteMetadataProperty {Maybe (Value Bool)
Maybe GatewayRouteMetadataMatchProperty
()
Value Text
haddock_workaround_ :: GrpcGatewayRouteMetadataProperty -> ()
invert :: GrpcGatewayRouteMetadataProperty -> Maybe (Value Bool)
match :: GrpcGatewayRouteMetadataProperty
-> Maybe GatewayRouteMetadataMatchProperty
name :: GrpcGatewayRouteMetadataProperty -> Value Text
haddock_workaround_ :: ()
invert :: Maybe (Value Bool)
match :: Maybe GatewayRouteMetadataMatchProperty
name :: Value Text
..}
= GrpcGatewayRouteMetadataProperty
{match :: Maybe GatewayRouteMetadataMatchProperty
match = GatewayRouteMetadataMatchProperty
-> Maybe GatewayRouteMetadataMatchProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Match" GrpcGatewayRouteMetadataProperty
GatewayRouteMetadataMatchProperty
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
invert :: Maybe (Value Bool)
name :: Value Text
haddock_workaround_ :: ()
invert :: Maybe (Value Bool)
name :: Value Text
..}
instance Property "Name" GrpcGatewayRouteMetadataProperty where
type PropertyType "Name" GrpcGatewayRouteMetadataProperty = Value Prelude.Text
set :: PropertyType "Name" GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty
-> GrpcGatewayRouteMetadataProperty
set PropertyType "Name" GrpcGatewayRouteMetadataProperty
newValue GrpcGatewayRouteMetadataProperty {Maybe (Value Bool)
Maybe GatewayRouteMetadataMatchProperty
()
Value Text
haddock_workaround_ :: GrpcGatewayRouteMetadataProperty -> ()
invert :: GrpcGatewayRouteMetadataProperty -> Maybe (Value Bool)
match :: GrpcGatewayRouteMetadataProperty
-> Maybe GatewayRouteMetadataMatchProperty
name :: GrpcGatewayRouteMetadataProperty -> Value Text
haddock_workaround_ :: ()
invert :: Maybe (Value Bool)
match :: Maybe GatewayRouteMetadataMatchProperty
name :: Value Text
..}
= GrpcGatewayRouteMetadataProperty {name :: Value Text
name = PropertyType "Name" GrpcGatewayRouteMetadataProperty
Value Text
newValue, Maybe (Value Bool)
Maybe GatewayRouteMetadataMatchProperty
()
haddock_workaround_ :: ()
invert :: Maybe (Value Bool)
match :: Maybe GatewayRouteMetadataMatchProperty
haddock_workaround_ :: ()
invert :: Maybe (Value Bool)
match :: Maybe GatewayRouteMetadataMatchProperty
..}