module Stratosphere.ApiGatewayV2.RoutingRule.ActionInvokeApiProperty (
        ActionInvokeApiProperty(..), mkActionInvokeApiProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ActionInvokeApiProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-routingrule-actioninvokeapi.html>
    ActionInvokeApiProperty {ActionInvokeApiProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-routingrule-actioninvokeapi.html#cfn-apigatewayv2-routingrule-actioninvokeapi-apiid>
                             ActionInvokeApiProperty -> Value Text
apiId :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-routingrule-actioninvokeapi.html#cfn-apigatewayv2-routingrule-actioninvokeapi-stage>
                             ActionInvokeApiProperty -> Value Text
stage :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigatewayv2-routingrule-actioninvokeapi.html#cfn-apigatewayv2-routingrule-actioninvokeapi-stripbasepath>
                             ActionInvokeApiProperty -> Maybe (Value Bool)
stripBasePath :: (Prelude.Maybe (Value Prelude.Bool))}
  deriving stock (ActionInvokeApiProperty -> ActionInvokeApiProperty -> Bool
(ActionInvokeApiProperty -> ActionInvokeApiProperty -> Bool)
-> (ActionInvokeApiProperty -> ActionInvokeApiProperty -> Bool)
-> Eq ActionInvokeApiProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ActionInvokeApiProperty -> ActionInvokeApiProperty -> Bool
== :: ActionInvokeApiProperty -> ActionInvokeApiProperty -> Bool
$c/= :: ActionInvokeApiProperty -> ActionInvokeApiProperty -> Bool
/= :: ActionInvokeApiProperty -> ActionInvokeApiProperty -> Bool
Prelude.Eq, Int -> ActionInvokeApiProperty -> ShowS
[ActionInvokeApiProperty] -> ShowS
ActionInvokeApiProperty -> String
(Int -> ActionInvokeApiProperty -> ShowS)
-> (ActionInvokeApiProperty -> String)
-> ([ActionInvokeApiProperty] -> ShowS)
-> Show ActionInvokeApiProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ActionInvokeApiProperty -> ShowS
showsPrec :: Int -> ActionInvokeApiProperty -> ShowS
$cshow :: ActionInvokeApiProperty -> String
show :: ActionInvokeApiProperty -> String
$cshowList :: [ActionInvokeApiProperty] -> ShowS
showList :: [ActionInvokeApiProperty] -> ShowS
Prelude.Show)
mkActionInvokeApiProperty ::
  Value Prelude.Text -> Value Prelude.Text -> ActionInvokeApiProperty
mkActionInvokeApiProperty :: Value Text -> Value Text -> ActionInvokeApiProperty
mkActionInvokeApiProperty Value Text
apiId Value Text
stage
  = ActionInvokeApiProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), apiId :: Value Text
apiId = Value Text
apiId, stage :: Value Text
stage = Value Text
stage,
       stripBasePath :: Maybe (Value Bool)
stripBasePath = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ActionInvokeApiProperty where
  toResourceProperties :: ActionInvokeApiProperty -> ResourceProperties
toResourceProperties ActionInvokeApiProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ActionInvokeApiProperty -> ()
apiId :: ActionInvokeApiProperty -> Value Text
stage :: ActionInvokeApiProperty -> Value Text
stripBasePath :: ActionInvokeApiProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
apiId :: Value Text
stage :: Value Text
stripBasePath :: Maybe (Value Bool)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::ApiGatewayV2::RoutingRule.ActionInvokeApi",
         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
"ApiId" 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
apiId, Key
"Stage" 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
stage]
                           ([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
"StripBasePath" (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)
stripBasePath]))}
instance JSON.ToJSON ActionInvokeApiProperty where
  toJSON :: ActionInvokeApiProperty -> Value
toJSON ActionInvokeApiProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ActionInvokeApiProperty -> ()
apiId :: ActionInvokeApiProperty -> Value Text
stage :: ActionInvokeApiProperty -> Value Text
stripBasePath :: ActionInvokeApiProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
apiId :: Value Text
stage :: Value Text
stripBasePath :: Maybe (Value Bool)
..}
    = [(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
"ApiId" 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
apiId, Key
"Stage" 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
stage]
              ([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
"StripBasePath" (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)
stripBasePath])))
instance Property "ApiId" ActionInvokeApiProperty where
  type PropertyType "ApiId" ActionInvokeApiProperty = Value Prelude.Text
  set :: PropertyType "ApiId" ActionInvokeApiProperty
-> ActionInvokeApiProperty -> ActionInvokeApiProperty
set PropertyType "ApiId" ActionInvokeApiProperty
newValue ActionInvokeApiProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ActionInvokeApiProperty -> ()
apiId :: ActionInvokeApiProperty -> Value Text
stage :: ActionInvokeApiProperty -> Value Text
stripBasePath :: ActionInvokeApiProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
apiId :: Value Text
stage :: Value Text
stripBasePath :: Maybe (Value Bool)
..}
    = ActionInvokeApiProperty {apiId :: Value Text
apiId = PropertyType "ApiId" ActionInvokeApiProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
stage :: Value Text
stripBasePath :: Maybe (Value Bool)
haddock_workaround_ :: ()
stage :: Value Text
stripBasePath :: Maybe (Value Bool)
..}
instance Property "Stage" ActionInvokeApiProperty where
  type PropertyType "Stage" ActionInvokeApiProperty = Value Prelude.Text
  set :: PropertyType "Stage" ActionInvokeApiProperty
-> ActionInvokeApiProperty -> ActionInvokeApiProperty
set PropertyType "Stage" ActionInvokeApiProperty
newValue ActionInvokeApiProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ActionInvokeApiProperty -> ()
apiId :: ActionInvokeApiProperty -> Value Text
stage :: ActionInvokeApiProperty -> Value Text
stripBasePath :: ActionInvokeApiProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
apiId :: Value Text
stage :: Value Text
stripBasePath :: Maybe (Value Bool)
..}
    = ActionInvokeApiProperty {stage :: Value Text
stage = PropertyType "Stage" ActionInvokeApiProperty
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
apiId :: Value Text
stripBasePath :: Maybe (Value Bool)
haddock_workaround_ :: ()
apiId :: Value Text
stripBasePath :: Maybe (Value Bool)
..}
instance Property "StripBasePath" ActionInvokeApiProperty where
  type PropertyType "StripBasePath" ActionInvokeApiProperty = Value Prelude.Bool
  set :: PropertyType "StripBasePath" ActionInvokeApiProperty
-> ActionInvokeApiProperty -> ActionInvokeApiProperty
set PropertyType "StripBasePath" ActionInvokeApiProperty
newValue ActionInvokeApiProperty {Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ActionInvokeApiProperty -> ()
apiId :: ActionInvokeApiProperty -> Value Text
stage :: ActionInvokeApiProperty -> Value Text
stripBasePath :: ActionInvokeApiProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
apiId :: Value Text
stage :: Value Text
stripBasePath :: Maybe (Value Bool)
..}
    = ActionInvokeApiProperty
        {stripBasePath :: Maybe (Value Bool)
stripBasePath = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StripBasePath" ActionInvokeApiProperty
Value Bool
newValue, ()
Value Text
haddock_workaround_ :: ()
apiId :: Value Text
stage :: Value Text
haddock_workaround_ :: ()
apiId :: Value Text
stage :: Value Text
..}