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