content: module Stratosphere.WAFv2.RuleGroup.FieldToMatchProperty (
          module Exports, FieldToMatchProperty(..), mkFieldToMatchProperty
      ) where
  import qualified Data.Aeson as JSON
  import qualified Stratosphere.Prelude as Prelude
  import Stratosphere.Property
  import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.BodyProperty as Exports
  import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.CookiesProperty as Exports
  import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.HeadersProperty as Exports
  import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.JA3FingerprintProperty as Exports
  import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.JsonBodyProperty as Exports
  import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.SingleHeaderProperty as Exports
  import {-# SOURCE #-} Stratosphere.WAFv2.RuleGroup.SingleQueryArgumentProperty as Exports
  import Stratosphere.ResourceProperties
  data FieldToMatchProperty
    = FieldToMatchProperty {allQueryArguments :: (Prelude.Maybe JSON.Object),
                            body :: (Prelude.Maybe BodyProperty),
                            cookies :: (Prelude.Maybe CookiesProperty),
                            headers :: (Prelude.Maybe HeadersProperty),
                            jA3Fingerprint :: (Prelude.Maybe JA3FingerprintProperty),
                            jsonBody :: (Prelude.Maybe JsonBodyProperty),
                            method :: (Prelude.Maybe JSON.Object),
                            queryString :: (Prelude.Maybe JSON.Object),
                            singleHeader :: (Prelude.Maybe SingleHeaderProperty),
                            singleQueryArgument :: (Prelude.Maybe SingleQueryArgumentProperty),
                            uriPath :: (Prelude.Maybe JSON.Object)}
    deriving stock (Prelude.Eq, Prelude.Show)
  mkFieldToMatchProperty :: FieldToMatchProperty
  mkFieldToMatchProperty
    = FieldToMatchProperty
        {allQueryArguments = Prelude.Nothing, body = Prelude.Nothing,
         cookies = Prelude.Nothing, headers = Prelude.Nothing,
         jA3Fingerprint = Prelude.Nothing, jsonBody = Prelude.Nothing,
         method = Prelude.Nothing, queryString = Prelude.Nothing,
         singleHeader = Prelude.Nothing,
         singleQueryArgument = Prelude.Nothing, uriPath = Prelude.Nothing}
  instance ToResourceProperties FieldToMatchProperty where
    toResourceProperties FieldToMatchProperty {..}
      = ResourceProperties
          {awsType = "AWS::WAFv2::RuleGroup.FieldToMatch",
           supportsTags = Prelude.False,
           properties = Prelude.fromList
                          (Prelude.catMaybes
                             [(JSON..=) "AllQueryArguments" Prelude.<$> allQueryArguments,
                              (JSON..=) "Body" Prelude.<$> body,
                              (JSON..=) "Cookies" Prelude.<$> cookies,
                              (JSON..=) "Headers" Prelude.<$> headers,
                              (JSON..=) "JA3Fingerprint" Prelude.<$> jA3Fingerprint,
                              (JSON..=) "JsonBody" Prelude.<$> jsonBody,
                              (JSON..=) "Method" Prelude.<$> method,
                              (JSON..=) "QueryString" Prelude.<$> queryString,
                              (JSON..=) "SingleHeader" Prelude.<$> singleHeader,
                              (JSON..=) "SingleQueryArgument" Prelude.<$> singleQueryArgument,
                              (JSON..=) "UriPath" Prelude.<$> uriPath])}
  instance JSON.ToJSON FieldToMatchProperty where
    toJSON FieldToMatchProperty {..}
      = JSON.object
          (Prelude.fromList
             (Prelude.catMaybes
                [(JSON..=) "AllQueryArguments" Prelude.<$> allQueryArguments,
                 (JSON..=) "Body" Prelude.<$> body,
                 (JSON..=) "Cookies" Prelude.<$> cookies,
                 (JSON..=) "Headers" Prelude.<$> headers,
                 (JSON..=) "JA3Fingerprint" Prelude.<$> jA3Fingerprint,
                 (JSON..=) "JsonBody" Prelude.<$> jsonBody,
                 (JSON..=) "Method" Prelude.<$> method,
                 (JSON..=) "QueryString" Prelude.<$> queryString,
                 (JSON..=) "SingleHeader" Prelude.<$> singleHeader,
                 (JSON..=) "SingleQueryArgument" Prelude.<$> singleQueryArgument,
                 (JSON..=) "UriPath" Prelude.<$> uriPath]))
  instance Property "AllQueryArguments" FieldToMatchProperty where
    type PropertyType "AllQueryArguments" FieldToMatchProperty = JSON.Object
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty
          {allQueryArguments = Prelude.pure newValue, ..}
  instance Property "Body" FieldToMatchProperty where
    type PropertyType "Body" FieldToMatchProperty = BodyProperty
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty {body = Prelude.pure newValue, ..}
  instance Property "Cookies" FieldToMatchProperty where
    type PropertyType "Cookies" FieldToMatchProperty = CookiesProperty
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty {cookies = Prelude.pure newValue, ..}
  instance Property "Headers" FieldToMatchProperty where
    type PropertyType "Headers" FieldToMatchProperty = HeadersProperty
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty {headers = Prelude.pure newValue, ..}
  instance Property "JA3Fingerprint" FieldToMatchProperty where
    type PropertyType "JA3Fingerprint" FieldToMatchProperty = JA3FingerprintProperty
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty {jA3Fingerprint = Prelude.pure newValue, ..}
  instance Property "JsonBody" FieldToMatchProperty where
    type PropertyType "JsonBody" FieldToMatchProperty = JsonBodyProperty
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty {jsonBody = Prelude.pure newValue, ..}
  instance Property "Method" FieldToMatchProperty where
    type PropertyType "Method" FieldToMatchProperty = JSON.Object
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty {method = Prelude.pure newValue, ..}
  instance Property "QueryString" FieldToMatchProperty where
    type PropertyType "QueryString" FieldToMatchProperty = JSON.Object
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty {queryString = Prelude.pure newValue, ..}
  instance Property "SingleHeader" FieldToMatchProperty where
    type PropertyType "SingleHeader" FieldToMatchProperty = SingleHeaderProperty
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty {singleHeader = Prelude.pure newValue, ..}
  instance Property "SingleQueryArgument" FieldToMatchProperty where
    type PropertyType "SingleQueryArgument" FieldToMatchProperty = SingleQueryArgumentProperty
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty
          {singleQueryArgument = Prelude.pure newValue, ..}
  instance Property "UriPath" FieldToMatchProperty where
    type PropertyType "UriPath" FieldToMatchProperty = JSON.Object
    set newValue FieldToMatchProperty {..}
      = FieldToMatchProperty {uriPath = Prelude.pure newValue, ..}