stratosphere-appmesh-1.0.0: gen/Stratosphere/AppMesh/GatewayRoute/HttpGatewayRoutePathRewriteProperty.hs
module Stratosphere.AppMesh.GatewayRoute.HttpGatewayRoutePathRewriteProperty (
HttpGatewayRoutePathRewriteProperty(..),
mkHttpGatewayRoutePathRewriteProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data HttpGatewayRoutePathRewriteProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroutepathrewrite.html>
HttpGatewayRoutePathRewriteProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-httpgatewayroutepathrewrite.html#cfn-appmesh-gatewayroute-httpgatewayroutepathrewrite-exact>
exact :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (Prelude.Eq, Prelude.Show)
mkHttpGatewayRoutePathRewriteProperty ::
HttpGatewayRoutePathRewriteProperty
mkHttpGatewayRoutePathRewriteProperty
= HttpGatewayRoutePathRewriteProperty
{haddock_workaround_ = (), exact = Prelude.Nothing}
instance ToResourceProperties HttpGatewayRoutePathRewriteProperty where
toResourceProperties HttpGatewayRoutePathRewriteProperty {..}
= ResourceProperties
{awsType = "AWS::AppMesh::GatewayRoute.HttpGatewayRoutePathRewrite",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes [(JSON..=) "Exact" Prelude.<$> exact])}
instance JSON.ToJSON HttpGatewayRoutePathRewriteProperty where
toJSON HttpGatewayRoutePathRewriteProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes [(JSON..=) "Exact" Prelude.<$> exact]))
instance Property "Exact" HttpGatewayRoutePathRewriteProperty where
type PropertyType "Exact" HttpGatewayRoutePathRewriteProperty = Value Prelude.Text
set newValue HttpGatewayRoutePathRewriteProperty {..}
= HttpGatewayRoutePathRewriteProperty
{exact = Prelude.pure newValue, ..}