module Stratosphere.ApiGatewayV2.RoutingRule.MatchBasePathsProperty (
MatchBasePathsProperty(..), mkMatchBasePathsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MatchBasePathsProperty
=
MatchBasePathsProperty {MatchBasePathsProperty -> ()
haddock_workaround_ :: (),
MatchBasePathsProperty -> ValueList Text
anyOf :: (ValueList Prelude.Text)}
deriving stock (MatchBasePathsProperty -> MatchBasePathsProperty -> Bool
(MatchBasePathsProperty -> MatchBasePathsProperty -> Bool)
-> (MatchBasePathsProperty -> MatchBasePathsProperty -> Bool)
-> Eq MatchBasePathsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MatchBasePathsProperty -> MatchBasePathsProperty -> Bool
== :: MatchBasePathsProperty -> MatchBasePathsProperty -> Bool
$c/= :: MatchBasePathsProperty -> MatchBasePathsProperty -> Bool
/= :: MatchBasePathsProperty -> MatchBasePathsProperty -> Bool
Prelude.Eq, Int -> MatchBasePathsProperty -> ShowS
[MatchBasePathsProperty] -> ShowS
MatchBasePathsProperty -> String
(Int -> MatchBasePathsProperty -> ShowS)
-> (MatchBasePathsProperty -> String)
-> ([MatchBasePathsProperty] -> ShowS)
-> Show MatchBasePathsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MatchBasePathsProperty -> ShowS
showsPrec :: Int -> MatchBasePathsProperty -> ShowS
$cshow :: MatchBasePathsProperty -> String
show :: MatchBasePathsProperty -> String
$cshowList :: [MatchBasePathsProperty] -> ShowS
showList :: [MatchBasePathsProperty] -> ShowS
Prelude.Show)
mkMatchBasePathsProperty ::
ValueList Prelude.Text -> MatchBasePathsProperty
mkMatchBasePathsProperty :: ValueList Text -> MatchBasePathsProperty
mkMatchBasePathsProperty ValueList Text
anyOf
= MatchBasePathsProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), anyOf :: ValueList Text
anyOf = ValueList Text
anyOf}
instance ToResourceProperties MatchBasePathsProperty where
toResourceProperties :: MatchBasePathsProperty -> ResourceProperties
toResourceProperties MatchBasePathsProperty {()
ValueList Text
haddock_workaround_ :: MatchBasePathsProperty -> ()
anyOf :: MatchBasePathsProperty -> ValueList Text
haddock_workaround_ :: ()
anyOf :: ValueList Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::ApiGatewayV2::RoutingRule.MatchBasePaths",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"AnyOf" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
anyOf]}
instance JSON.ToJSON MatchBasePathsProperty where
toJSON :: MatchBasePathsProperty -> Value
toJSON MatchBasePathsProperty {()
ValueList Text
haddock_workaround_ :: MatchBasePathsProperty -> ()
anyOf :: MatchBasePathsProperty -> ValueList Text
haddock_workaround_ :: ()
anyOf :: ValueList Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"AnyOf" Key -> ValueList Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ValueList Text
anyOf]
instance Property "AnyOf" MatchBasePathsProperty where
type PropertyType "AnyOf" MatchBasePathsProperty = ValueList Prelude.Text
set :: PropertyType "AnyOf" MatchBasePathsProperty
-> MatchBasePathsProperty -> MatchBasePathsProperty
set PropertyType "AnyOf" MatchBasePathsProperty
newValue MatchBasePathsProperty {()
ValueList Text
haddock_workaround_ :: MatchBasePathsProperty -> ()
anyOf :: MatchBasePathsProperty -> ValueList Text
haddock_workaround_ :: ()
anyOf :: ValueList Text
..}
= MatchBasePathsProperty {anyOf :: ValueList Text
anyOf = PropertyType "AnyOf" MatchBasePathsProperty
ValueList Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}