amazonka-waf 1.4.4 → 1.4.5
raw patch · 44 files changed
+1318/−1242 lines, 44 filesdep ~amazonka-coredep ~amazonka-testdep ~amazonka-wafPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: amazonka-core, amazonka-test, amazonka-waf
API changes (from Hackage documentation)
- Network.AWS.WAF.CreateByteMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.CreateByteMatchSet.CreateByteMatchSet
- Network.AWS.WAF.CreateIPSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.CreateIPSet.CreateIPSet
- Network.AWS.WAF.CreateRule: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.CreateRule.CreateRule
- Network.AWS.WAF.CreateSizeConstraintSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.CreateSizeConstraintSet.CreateSizeConstraintSet
- Network.AWS.WAF.CreateSqlInjectionMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.CreateSqlInjectionMatchSet.CreateSqlInjectionMatchSet
- Network.AWS.WAF.CreateWebACL: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.CreateWebACL.CreateWebACL
- Network.AWS.WAF.CreateXSSMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.CreateXSSMatchSet.CreateXSSMatchSet
- Network.AWS.WAF.DeleteByteMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.DeleteByteMatchSet.DeleteByteMatchSet
- Network.AWS.WAF.DeleteIPSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.DeleteIPSet.DeleteIPSet
- Network.AWS.WAF.DeleteRule: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.DeleteRule.DeleteRule
- Network.AWS.WAF.DeleteSizeConstraintSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.DeleteSizeConstraintSet.DeleteSizeConstraintSet
- Network.AWS.WAF.DeleteSqlInjectionMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.DeleteSqlInjectionMatchSet.DeleteSqlInjectionMatchSet
- Network.AWS.WAF.DeleteWebACL: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.DeleteWebACL.DeleteWebACL
- Network.AWS.WAF.DeleteXSSMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.DeleteXSSMatchSet.DeleteXSSMatchSet
- Network.AWS.WAF.GetByteMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.GetByteMatchSet.GetByteMatchSet
- Network.AWS.WAF.GetChangeToken: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.GetChangeToken.GetChangeToken
- Network.AWS.WAF.GetChangeTokenStatus: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.GetChangeTokenStatus.GetChangeTokenStatus
- Network.AWS.WAF.GetIPSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.GetIPSet.GetIPSet
- Network.AWS.WAF.GetRule: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.GetRule.GetRule
- Network.AWS.WAF.GetSampledRequests: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.GetSampledRequests.GetSampledRequests
- Network.AWS.WAF.GetSizeConstraintSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.GetSizeConstraintSet.GetSizeConstraintSet
- Network.AWS.WAF.GetSqlInjectionMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.GetSqlInjectionMatchSet.GetSqlInjectionMatchSet
- Network.AWS.WAF.GetWebACL: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.GetWebACL.GetWebACL
- Network.AWS.WAF.GetXSSMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.GetXSSMatchSet.GetXSSMatchSet
- Network.AWS.WAF.ListByteMatchSets: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.ListByteMatchSets.ListByteMatchSets
- Network.AWS.WAF.ListIPSets: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.ListIPSets.ListIPSets
- Network.AWS.WAF.ListRules: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.ListRules.ListRules
- Network.AWS.WAF.ListSizeConstraintSets: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.ListSizeConstraintSets.ListSizeConstraintSets
- Network.AWS.WAF.ListSqlInjectionMatchSets: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.ListSqlInjectionMatchSets.ListSqlInjectionMatchSets
- Network.AWS.WAF.ListWebACLs: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.ListWebACLs.ListWebACLs
- Network.AWS.WAF.ListXSSMatchSets: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.ListXSSMatchSets.ListXSSMatchSets
- Network.AWS.WAF.UpdateByteMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.UpdateByteMatchSet.UpdateByteMatchSet
- Network.AWS.WAF.UpdateIPSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.UpdateIPSet.UpdateIPSet
- Network.AWS.WAF.UpdateRule: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.UpdateRule.UpdateRule
- Network.AWS.WAF.UpdateSizeConstraintSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.UpdateSizeConstraintSet.UpdateSizeConstraintSet
- Network.AWS.WAF.UpdateSqlInjectionMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.UpdateSqlInjectionMatchSet.UpdateSqlInjectionMatchSet
- Network.AWS.WAF.UpdateWebACL: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.UpdateWebACL.UpdateWebACL
- Network.AWS.WAF.UpdateXSSMatchSet: instance Data.Aeson.Types.Class.ToJSON Network.AWS.WAF.UpdateXSSMatchSet.UpdateXSSMatchSet
+ Network.AWS.WAF: IPV6 :: IPSetDescriptorType
+ Network.AWS.WAF.CreateByteMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.CreateByteMatchSet.CreateByteMatchSet
+ Network.AWS.WAF.CreateIPSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.CreateIPSet.CreateIPSet
+ Network.AWS.WAF.CreateRule: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.CreateRule.CreateRule
+ Network.AWS.WAF.CreateSizeConstraintSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.CreateSizeConstraintSet.CreateSizeConstraintSet
+ Network.AWS.WAF.CreateSqlInjectionMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.CreateSqlInjectionMatchSet.CreateSqlInjectionMatchSet
+ Network.AWS.WAF.CreateWebACL: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.CreateWebACL.CreateWebACL
+ Network.AWS.WAF.CreateXSSMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.CreateXSSMatchSet.CreateXSSMatchSet
+ Network.AWS.WAF.DeleteByteMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.DeleteByteMatchSet.DeleteByteMatchSet
+ Network.AWS.WAF.DeleteIPSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.DeleteIPSet.DeleteIPSet
+ Network.AWS.WAF.DeleteRule: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.DeleteRule.DeleteRule
+ Network.AWS.WAF.DeleteSizeConstraintSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.DeleteSizeConstraintSet.DeleteSizeConstraintSet
+ Network.AWS.WAF.DeleteSqlInjectionMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.DeleteSqlInjectionMatchSet.DeleteSqlInjectionMatchSet
+ Network.AWS.WAF.DeleteWebACL: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.DeleteWebACL.DeleteWebACL
+ Network.AWS.WAF.DeleteXSSMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.DeleteXSSMatchSet.DeleteXSSMatchSet
+ Network.AWS.WAF.GetByteMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.GetByteMatchSet.GetByteMatchSet
+ Network.AWS.WAF.GetChangeToken: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.GetChangeToken.GetChangeToken
+ Network.AWS.WAF.GetChangeTokenStatus: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.GetChangeTokenStatus.GetChangeTokenStatus
+ Network.AWS.WAF.GetIPSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.GetIPSet.GetIPSet
+ Network.AWS.WAF.GetRule: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.GetRule.GetRule
+ Network.AWS.WAF.GetSampledRequests: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.GetSampledRequests.GetSampledRequests
+ Network.AWS.WAF.GetSizeConstraintSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.GetSizeConstraintSet.GetSizeConstraintSet
+ Network.AWS.WAF.GetSqlInjectionMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.GetSqlInjectionMatchSet.GetSqlInjectionMatchSet
+ Network.AWS.WAF.GetWebACL: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.GetWebACL.GetWebACL
+ Network.AWS.WAF.GetXSSMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.GetXSSMatchSet.GetXSSMatchSet
+ Network.AWS.WAF.ListByteMatchSets: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.ListByteMatchSets.ListByteMatchSets
+ Network.AWS.WAF.ListByteMatchSets: instance Network.AWS.Pager.AWSPager Network.AWS.WAF.ListByteMatchSets.ListByteMatchSets
+ Network.AWS.WAF.ListIPSets: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.ListIPSets.ListIPSets
+ Network.AWS.WAF.ListIPSets: instance Network.AWS.Pager.AWSPager Network.AWS.WAF.ListIPSets.ListIPSets
+ Network.AWS.WAF.ListRules: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.ListRules.ListRules
+ Network.AWS.WAF.ListRules: instance Network.AWS.Pager.AWSPager Network.AWS.WAF.ListRules.ListRules
+ Network.AWS.WAF.ListSizeConstraintSets: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.ListSizeConstraintSets.ListSizeConstraintSets
+ Network.AWS.WAF.ListSizeConstraintSets: instance Network.AWS.Pager.AWSPager Network.AWS.WAF.ListSizeConstraintSets.ListSizeConstraintSets
+ Network.AWS.WAF.ListSqlInjectionMatchSets: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.ListSqlInjectionMatchSets.ListSqlInjectionMatchSets
+ Network.AWS.WAF.ListSqlInjectionMatchSets: instance Network.AWS.Pager.AWSPager Network.AWS.WAF.ListSqlInjectionMatchSets.ListSqlInjectionMatchSets
+ Network.AWS.WAF.ListWebACLs: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.ListWebACLs.ListWebACLs
+ Network.AWS.WAF.ListWebACLs: instance Network.AWS.Pager.AWSPager Network.AWS.WAF.ListWebACLs.ListWebACLs
+ Network.AWS.WAF.ListXSSMatchSets: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.ListXSSMatchSets.ListXSSMatchSets
+ Network.AWS.WAF.ListXSSMatchSets: instance Network.AWS.Pager.AWSPager Network.AWS.WAF.ListXSSMatchSets.ListXSSMatchSets
+ Network.AWS.WAF.Types: IPV6 :: IPSetDescriptorType
+ Network.AWS.WAF.UpdateByteMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.UpdateByteMatchSet.UpdateByteMatchSet
+ Network.AWS.WAF.UpdateIPSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.UpdateIPSet.UpdateIPSet
+ Network.AWS.WAF.UpdateRule: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.UpdateRule.UpdateRule
+ Network.AWS.WAF.UpdateSizeConstraintSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.UpdateSizeConstraintSet.UpdateSizeConstraintSet
+ Network.AWS.WAF.UpdateSqlInjectionMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.UpdateSqlInjectionMatchSet.UpdateSqlInjectionMatchSet
+ Network.AWS.WAF.UpdateWebACL: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.UpdateWebACL.UpdateWebACL
+ Network.AWS.WAF.UpdateXSSMatchSet: instance Data.Aeson.Types.ToJSON.ToJSON Network.AWS.WAF.UpdateXSSMatchSet.UpdateXSSMatchSet
- Network.AWS.WAF.ListByteMatchSets: lbmsLimit :: Lens' ListByteMatchSets Natural
+ Network.AWS.WAF.ListByteMatchSets: lbmsLimit :: Lens' ListByteMatchSets (Maybe Natural)
- Network.AWS.WAF.ListByteMatchSets: listByteMatchSets :: Natural -> ListByteMatchSets
+ Network.AWS.WAF.ListByteMatchSets: listByteMatchSets :: ListByteMatchSets
- Network.AWS.WAF.ListIPSets: lisLimit :: Lens' ListIPSets Natural
+ Network.AWS.WAF.ListIPSets: lisLimit :: Lens' ListIPSets (Maybe Natural)
- Network.AWS.WAF.ListIPSets: listIPSets :: Natural -> ListIPSets
+ Network.AWS.WAF.ListIPSets: listIPSets :: ListIPSets
- Network.AWS.WAF.ListRules: listRules :: Natural -> ListRules
+ Network.AWS.WAF.ListRules: listRules :: ListRules
- Network.AWS.WAF.ListRules: lrLimit :: Lens' ListRules Natural
+ Network.AWS.WAF.ListRules: lrLimit :: Lens' ListRules (Maybe Natural)
- Network.AWS.WAF.ListSizeConstraintSets: listSizeConstraintSets :: Natural -> ListSizeConstraintSets
+ Network.AWS.WAF.ListSizeConstraintSets: listSizeConstraintSets :: ListSizeConstraintSets
- Network.AWS.WAF.ListSizeConstraintSets: lscsLimit :: Lens' ListSizeConstraintSets Natural
+ Network.AWS.WAF.ListSizeConstraintSets: lscsLimit :: Lens' ListSizeConstraintSets (Maybe Natural)
- Network.AWS.WAF.ListSqlInjectionMatchSets: listSqlInjectionMatchSets :: Natural -> ListSqlInjectionMatchSets
+ Network.AWS.WAF.ListSqlInjectionMatchSets: listSqlInjectionMatchSets :: ListSqlInjectionMatchSets
- Network.AWS.WAF.ListSqlInjectionMatchSets: lsimsLimit :: Lens' ListSqlInjectionMatchSets Natural
+ Network.AWS.WAF.ListSqlInjectionMatchSets: lsimsLimit :: Lens' ListSqlInjectionMatchSets (Maybe Natural)
- Network.AWS.WAF.ListWebACLs: listWebACLs :: Natural -> ListWebACLs
+ Network.AWS.WAF.ListWebACLs: listWebACLs :: ListWebACLs
- Network.AWS.WAF.ListWebACLs: lwaLimit :: Lens' ListWebACLs Natural
+ Network.AWS.WAF.ListWebACLs: lwaLimit :: Lens' ListWebACLs (Maybe Natural)
- Network.AWS.WAF.ListXSSMatchSets: listXSSMatchSets :: Natural -> ListXSSMatchSets
+ Network.AWS.WAF.ListXSSMatchSets: listXSSMatchSets :: ListXSSMatchSets
- Network.AWS.WAF.ListXSSMatchSets: lxmsLimit :: Lens' ListXSSMatchSets Natural
+ Network.AWS.WAF.ListXSSMatchSets: lxmsLimit :: Lens' ListXSSMatchSets (Maybe Natural)
Files
- README.md +9/−6
- amazonka-waf.cabal +10/−11
- gen/Network/AWS/WAF.hs +10/−8
- gen/Network/AWS/WAF/CreateByteMatchSet.hs +24/−17
- gen/Network/AWS/WAF/CreateIPSet.hs +24/−17
- gen/Network/AWS/WAF/CreateRule.hs +36/−24
- gen/Network/AWS/WAF/CreateSizeConstraintSet.hs +24/−17
- gen/Network/AWS/WAF/CreateSqlInjectionMatchSet.hs +30/−19
- gen/Network/AWS/WAF/CreateWebACL.hs +33/−24
- gen/Network/AWS/WAF/CreateXSSMatchSet.hs +30/−19
- gen/Network/AWS/WAF/DeleteByteMatchSet.hs +20/−14
- gen/Network/AWS/WAF/DeleteIPSet.hs +20/−14
- gen/Network/AWS/WAF/DeleteRule.hs +20/−14
- gen/Network/AWS/WAF/DeleteSizeConstraintSet.hs +20/−14
- gen/Network/AWS/WAF/DeleteSqlInjectionMatchSet.hs +26/−16
- gen/Network/AWS/WAF/DeleteWebACL.hs +19/−13
- gen/Network/AWS/WAF/DeleteXSSMatchSet.hs +26/−16
- gen/Network/AWS/WAF/GetByteMatchSet.hs +9/−11
- gen/Network/AWS/WAF/GetChangeToken.hs +9/−7
- gen/Network/AWS/WAF/GetChangeTokenStatus.hs +15/−9
- gen/Network/AWS/WAF/GetIPSet.hs +9/−10
- gen/Network/AWS/WAF/GetRule.hs +9/−10
- gen/Network/AWS/WAF/GetSampledRequests.hs +18/−19
- gen/Network/AWS/WAF/GetSizeConstraintSet.hs +9/−11
- gen/Network/AWS/WAF/GetSqlInjectionMatchSet.hs +15/−13
- gen/Network/AWS/WAF/GetWebACL.hs +9/−12
- gen/Network/AWS/WAF/GetXSSMatchSet.hs +15/−13
- gen/Network/AWS/WAF/ListByteMatchSets.hs +30/−19
- gen/Network/AWS/WAF/ListIPSets.hs +30/−19
- gen/Network/AWS/WAF/ListRules.hs +30/−19
- gen/Network/AWS/WAF/ListSizeConstraintSets.hs +30/−19
- gen/Network/AWS/WAF/ListSqlInjectionMatchSets.hs +37/−21
- gen/Network/AWS/WAF/ListWebACLs.hs +30/−19
- gen/Network/AWS/WAF/ListXSSMatchSets.hs +36/−21
- gen/Network/AWS/WAF/Types.hs +79/−29
- gen/Network/AWS/WAF/Types/Product.hs +269/−510
- gen/Network/AWS/WAF/Types/Sum.hs +6/−3
- gen/Network/AWS/WAF/UpdateByteMatchSet.hs +34/−26
- gen/Network/AWS/WAF/UpdateIPSet.hs +32/−25
- gen/Network/AWS/WAF/UpdateRule.hs +33/−26
- gen/Network/AWS/WAF/UpdateSizeConstraintSet.hs +34/−26
- gen/Network/AWS/WAF/UpdateSqlInjectionMatchSet.hs +36/−26
- gen/Network/AWS/WAF/UpdateWebACL.hs +38/−30
- gen/Network/AWS/WAF/UpdateXSSMatchSet.hs +36/−26
README.md view
@@ -8,24 +8,27 @@ ## Version -`1.4.4`+`1.4.5` ## Description -This is the /AWS WAF API Reference/. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.- Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-waf) and the [AWS API Reference](https://aws.amazon.com/documentation/). The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),-which provides mechanisms for specifying AuthN/AuthZ information and sending requests.+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses. -Use of lenses is required for constructing and manipulating types.-This is due to the amount of nesting of AWS types and transparency regarding+Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding de/serialisation into more palatable Haskell values. The provided lenses should be compatible with any of the major lens libraries [lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Network.AWS.WAF](http://hackage.haskell.org/package/amazonka-waf/docs/Network-AWS-WAF.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+ ## Contribute
amazonka-waf.cabal view
@@ -1,5 +1,5 @@ name: amazonka-waf-version: 1.4.4+version: 1.4.5 synopsis: Amazon WAF SDK. homepage: https://github.com/brendanhay/amazonka bug-reports: https://github.com/brendanhay/amazonka/issues@@ -13,20 +13,19 @@ cabal-version: >= 1.10 extra-source-files: README.md fixture/*.yaml fixture/*.proto src/.gitkeep description:- This is the /AWS WAF API Reference/. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.- . The types from this library are intended to be used with <http://hackage.haskell.org/package/amazonka amazonka>, which provides- mechanisms for specifying AuthN/AuthZ information and sending requests.+ mechanisms for specifying AuthN/AuthZ information, sending requests,+ and receiving responses. .- Use of lenses is required for constructing and manipulating types.- This is due to the amount of nesting of AWS types and transparency regarding+ Lenses are used for constructing and manipulating types,+ due to the depth of nesting of AWS types and transparency regarding de/serialisation into more palatable Haskell values. The provided lenses should be compatible with any of the major lens libraries such as <http://hackage.haskell.org/package/lens lens> or <http://hackage.haskell.org/package/lens-family-core lens-family-core>. .- See "Network.AWS.WAF" or <https://aws.amazon.com/documentation/ the AWS Documentation>+ See "Network.AWS.WAF" or <https://aws.amazon.com/documentation/ the AWS documentation> to get started. source-repository head@@ -87,7 +86,7 @@ , Network.AWS.WAF.Types.Sum build-depends:- amazonka-core == 1.4.4.*+ amazonka-core == 1.4.5.* , base >= 4.7 && < 5 test-suite amazonka-waf-test@@ -107,9 +106,9 @@ , Test.AWS.WAF.Internal build-depends:- amazonka-core == 1.4.4.*- , amazonka-test == 1.4.4.*- , amazonka-waf == 1.4.4.*+ amazonka-core == 1.4.5.*+ , amazonka-test == 1.4.5.*+ , amazonka-waf == 1.4.5.* , base , bytestring , tasty
gen/Network/AWS/WAF.hs view
@@ -11,7 +11,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- This is the /AWS WAF API Reference/. This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- This is the /AWS WAF API Reference/ . This guide is for developers who need detailed information about the AWS WAF API actions, data types, and errors. For detailed information about AWS WAF features and an overview of how to use the AWS WAF API, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+--+-- module Network.AWS.WAF ( -- * Service Configuration@@ -80,10 +82,10 @@ -- ** UpdateWebACL , module Network.AWS.WAF.UpdateWebACL - -- ** ListWebACLs+ -- ** ListWebACLs (Paginated) , module Network.AWS.WAF.ListWebACLs - -- ** ListRules+ -- ** ListRules (Paginated) , module Network.AWS.WAF.ListRules -- ** CreateRule@@ -92,7 +94,7 @@ -- ** CreateWebACL , module Network.AWS.WAF.CreateWebACL - -- ** ListByteMatchSets+ -- ** ListByteMatchSets (Paginated) , module Network.AWS.WAF.ListByteMatchSets -- ** GetIPSet@@ -110,13 +112,13 @@ -- ** UpdateXSSMatchSet , module Network.AWS.WAF.UpdateXSSMatchSet - -- ** ListXSSMatchSets+ -- ** ListXSSMatchSets (Paginated) , module Network.AWS.WAF.ListXSSMatchSets -- ** GetChangeToken , module Network.AWS.WAF.GetChangeToken - -- ** ListSizeConstraintSets+ -- ** ListSizeConstraintSets (Paginated) , module Network.AWS.WAF.ListSizeConstraintSets -- ** GetSampledRequests@@ -146,7 +148,7 @@ -- ** UpdateIPSet , module Network.AWS.WAF.UpdateIPSet - -- ** ListIPSets+ -- ** ListIPSets (Paginated) , module Network.AWS.WAF.ListIPSets -- ** CreateXSSMatchSet@@ -164,7 +166,7 @@ -- ** CreateSizeConstraintSet , module Network.AWS.WAF.CreateSizeConstraintSet - -- ** ListSqlInjectionMatchSets+ -- ** ListSqlInjectionMatchSets (Paginated) , module Network.AWS.WAF.ListSqlInjectionMatchSets -- ** DeleteSqlInjectionMatchSet
gen/Network/AWS/WAF/CreateByteMatchSet.hs view
@@ -18,16 +18,23 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a 'ByteMatchSet'. You then use < UpdateByteMatchSet> to identify the part of a web request that you want AWS WAF to inspect, such as the values of the 'User-Agent' header or the query string. For example, you can create a 'ByteMatchSet' that matches any requests with 'User-Agent' headers that contain the string 'BadBot'. You can then configure AWS WAF to reject those requests.+-- Creates a @ByteMatchSet@ . You then use 'UpdateByteMatchSet' to identify the part of a web request that you want AWS WAF to inspect, such as the values of the @User-Agent@ header or the query string. For example, you can create a @ByteMatchSet@ that matches any requests with @User-Agent@ headers that contain the string @BadBot@ . You can then configure AWS WAF to reject those requests. ----- To create and configure a 'ByteMatchSet', perform the following steps: ----- 1. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'CreateByteMatchSet' request.--- 2. Submit a 'CreateByteMatchSet' request.--- 3. Use 'GetChangeToken' to get the change token that you provide in the 'ChangeToken' parameter of an 'UpdateByteMatchSet' request.--- 4. Submit an < UpdateByteMatchSet> request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.+-- To create and configure a @ByteMatchSet@ , perform the following steps: ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @CreateByteMatchSet@ request.+--+-- * Submit a @CreateByteMatchSet@ request.+--+-- * Use @GetChangeToken@ to get the change token that you provide in the @ChangeToken@ parameter of an @UpdateByteMatchSet@ request.+--+-- * Submit an 'UpdateByteMatchSet' request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.CreateByteMatchSet ( -- * Creating a Request@@ -63,9 +70,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cbmsName'+-- * 'cbmsName' - A friendly name or description of the 'ByteMatchSet' . You can't change @Name@ after you create a @ByteMatchSet@ . ----- * 'cbmsChangeToken'+-- * 'cbmsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . createByteMatchSet :: Text -- ^ 'cbmsName' -> Text -- ^ 'cbmsChangeToken'@@ -76,11 +83,11 @@ , _cbmsChangeToken = pChangeToken_ } --- | A friendly name or description of the < ByteMatchSet>. You can\'t change 'Name' after you create a 'ByteMatchSet'.+-- | A friendly name or description of the 'ByteMatchSet' . You can't change @Name@ after you create a @ByteMatchSet@ . cbmsName :: Lens' CreateByteMatchSet Text cbmsName = lens _cbmsName (\ s a -> s{_cbmsName = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . cbmsChangeToken :: Lens' CreateByteMatchSet Text cbmsChangeToken = lens _cbmsChangeToken (\ s a -> s{_cbmsChangeToken = a}); @@ -132,11 +139,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cbmsrsByteMatchSet'+-- * 'cbmsrsByteMatchSet' - A 'ByteMatchSet' that contains no @ByteMatchTuple@ objects. ----- * 'cbmsrsChangeToken'+-- * 'cbmsrsChangeToken' - The @ChangeToken@ that you used to submit the @CreateByteMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'cbmsrsResponseStatus'+-- * 'cbmsrsResponseStatus' - -- | The response status code. createByteMatchSetResponse :: Int -- ^ 'cbmsrsResponseStatus' -> CreateByteMatchSetResponse@@ -147,15 +154,15 @@ , _cbmsrsResponseStatus = pResponseStatus_ } --- | A < ByteMatchSet> that contains no 'ByteMatchTuple' objects.+-- | A 'ByteMatchSet' that contains no @ByteMatchTuple@ objects. cbmsrsByteMatchSet :: Lens' CreateByteMatchSetResponse (Maybe ByteMatchSet) cbmsrsByteMatchSet = lens _cbmsrsByteMatchSet (\ s a -> s{_cbmsrsByteMatchSet = a}); --- | The 'ChangeToken' that you used to submit the 'CreateByteMatchSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @CreateByteMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . cbmsrsChangeToken :: Lens' CreateByteMatchSetResponse (Maybe Text) cbmsrsChangeToken = lens _cbmsrsChangeToken (\ s a -> s{_cbmsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. cbmsrsResponseStatus :: Lens' CreateByteMatchSetResponse Int cbmsrsResponseStatus = lens _cbmsrsResponseStatus (\ s a -> s{_cbmsrsResponseStatus = a});
gen/Network/AWS/WAF/CreateIPSet.hs view
@@ -18,16 +18,23 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates an < IPSet>, which you use to specify which web requests you want to allow or block based on the IP addresses that the requests originate from. For example, if you\'re receiving a lot of requests from one or more individual IP addresses or one or more ranges of IP addresses and you want to block the requests, you can create an 'IPSet' that contains those IP addresses and then configure AWS WAF to block the requests.+-- Creates an 'IPSet' , which you use to specify which web requests you want to allow or block based on the IP addresses that the requests originate from. For example, if you're receiving a lot of requests from one or more individual IP addresses or one or more ranges of IP addresses and you want to block the requests, you can create an @IPSet@ that contains those IP addresses and then configure AWS WAF to block the requests. ----- To create and configure an 'IPSet', perform the following steps: ----- 1. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'CreateIPSet' request.--- 2. Submit a 'CreateIPSet' request.--- 3. Use 'GetChangeToken' to get the change token that you provide in the 'ChangeToken' parameter of an < UpdateIPSet> request.--- 4. Submit an 'UpdateIPSet' request to specify the IP addresses that you want AWS WAF to watch for.+-- To create and configure an @IPSet@ , perform the following steps: ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @CreateIPSet@ request.+--+-- * Submit a @CreateIPSet@ request.+--+-- * Use @GetChangeToken@ to get the change token that you provide in the @ChangeToken@ parameter of an 'UpdateIPSet' request.+--+-- * Submit an @UpdateIPSet@ request to specify the IP addresses that you want AWS WAF to watch for.+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.CreateIPSet ( -- * Creating a Request@@ -63,9 +70,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cisName'+-- * 'cisName' - A friendly name or description of the 'IPSet' . You can't change @Name@ after you create the @IPSet@ . ----- * 'cisChangeToken'+-- * 'cisChangeToken' - The value returned by the most recent call to 'GetChangeToken' . createIPSet :: Text -- ^ 'cisName' -> Text -- ^ 'cisChangeToken'@@ -76,11 +83,11 @@ , _cisChangeToken = pChangeToken_ } --- | A friendly name or description of the < IPSet>. You can\'t change 'Name' after you create the 'IPSet'.+-- | A friendly name or description of the 'IPSet' . You can't change @Name@ after you create the @IPSet@ . cisName :: Lens' CreateIPSet Text cisName = lens _cisName (\ s a -> s{_cisName = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . cisChangeToken :: Lens' CreateIPSet Text cisChangeToken = lens _cisChangeToken (\ s a -> s{_cisChangeToken = a}); @@ -131,11 +138,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cisrsChangeToken'+-- * 'cisrsChangeToken' - The @ChangeToken@ that you used to submit the @CreateIPSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'cisrsIPSet'+-- * 'cisrsIPSet' - The 'IPSet' returned in the @CreateIPSet@ response. ----- * 'cisrsResponseStatus'+-- * 'cisrsResponseStatus' - -- | The response status code. createIPSetResponse :: Int -- ^ 'cisrsResponseStatus' -> CreateIPSetResponse@@ -146,15 +153,15 @@ , _cisrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'CreateIPSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @CreateIPSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . cisrsChangeToken :: Lens' CreateIPSetResponse (Maybe Text) cisrsChangeToken = lens _cisrsChangeToken (\ s a -> s{_cisrsChangeToken = a}); --- | The < IPSet> returned in the 'CreateIPSet' response.+-- | The 'IPSet' returned in the @CreateIPSet@ response. cisrsIPSet :: Lens' CreateIPSetResponse (Maybe IPSet) cisrsIPSet = lens _cisrsIPSet (\ s a -> s{_cisrsIPSet = a}); --- | The response status code.+-- | -- | The response status code. cisrsResponseStatus :: Lens' CreateIPSetResponse Int cisrsResponseStatus = lens _cisrsResponseStatus (\ s a -> s{_cisrsResponseStatus = a});
gen/Network/AWS/WAF/CreateRule.hs view
@@ -18,23 +18,35 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a 'Rule', which contains the 'IPSet' objects, 'ByteMatchSet' objects, and other predicates that identify the requests that you want to block. If you add more than one predicate to a 'Rule', a request must match all of the specifications to be allowed or blocked. For example, suppose you add the following to a 'Rule':+-- Creates a @Rule@ , which contains the @IPSet@ objects, @ByteMatchSet@ objects, and other predicates that identify the requests that you want to block. If you add more than one predicate to a @Rule@ , a request must match all of the specifications to be allowed or blocked. For example, suppose you add the following to a @Rule@ : ----- - An 'IPSet' that matches the IP address '192.0.2.44\/32'--- - A 'ByteMatchSet' that matches 'BadBot' in the 'User-Agent' header ----- You then add the 'Rule' to a 'WebACL' and specify that you want to blocks requests that satisfy the 'Rule'. For a request to be blocked, it must come from the IP address 192.0.2.44 /and/ the 'User-Agent' header in the request must contain the value 'BadBot'.+-- * An @IPSet@ that matches the IP address @192.0.2.44/32@ ----- To create and configure a 'Rule', perform the following steps:+-- * A @ByteMatchSet@ that matches @BadBot@ in the @User-Agent@ header ----- 1. Create and update the predicates that you want to include in the 'Rule'. For more information, see < CreateByteMatchSet>, < CreateIPSet>, and < CreateSqlInjectionMatchSet>.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'CreateRule' request.--- 3. Submit a 'CreateRule' request.--- 4. Use 'GetChangeToken' to get the change token that you provide in the 'ChangeToken' parameter of an < UpdateRule> request.--- 5. Submit an 'UpdateRule' request to specify the predicates that you want to include in the 'Rule'.--- 6. Create and update a 'WebACL' that contains the 'Rule'. For more information, see < CreateWebACL>. ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+--+-- You then add the @Rule@ to a @WebACL@ and specify that you want to blocks requests that satisfy the @Rule@ . For a request to be blocked, it must come from the IP address 192.0.2.44 /and/ the @User-Agent@ header in the request must contain the value @BadBot@ .+--+-- To create and configure a @Rule@ , perform the following steps:+--+-- * Create and update the predicates that you want to include in the @Rule@ . For more information, see 'CreateByteMatchSet' , 'CreateIPSet' , and 'CreateSqlInjectionMatchSet' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @CreateRule@ request.+--+-- * Submit a @CreateRule@ request.+--+-- * Use @GetChangeToken@ to get the change token that you provide in the @ChangeToken@ parameter of an 'UpdateRule' request.+--+-- * Submit an @UpdateRule@ request to specify the predicates that you want to include in the @Rule@ .+--+-- * Create and update a @WebACL@ that contains the @Rule@ . For more information, see 'CreateWebACL' .+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.CreateRule ( -- * Creating a Request@@ -72,11 +84,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'crName'+-- * 'crName' - A friendly name or description of the 'Rule' . You can't change the name of a @Rule@ after you create it. ----- * 'crMetricName'+-- * 'crMetricName' - A friendly name or description for the metrics for this @Rule@ . The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the metric after you create the @Rule@ . ----- * 'crChangeToken'+-- * 'crChangeToken' - The value returned by the most recent call to 'GetChangeToken' . createRule :: Text -- ^ 'crName' -> Text -- ^ 'crMetricName'@@ -89,15 +101,15 @@ , _crChangeToken = pChangeToken_ } --- | A friendly name or description of the < Rule>. You can\'t change the name of a 'Rule' after you create it.+-- | A friendly name or description of the 'Rule' . You can't change the name of a @Rule@ after you create it. crName :: Lens' CreateRule Text crName = lens _crName (\ s a -> s{_crName = a}); --- | A friendly name or description for the metrics for this 'Rule'. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can\'t contain whitespace. You can\'t change the name of the metric after you create the 'Rule'.+-- | A friendly name or description for the metrics for this @Rule@ . The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change the name of the metric after you create the @Rule@ . crMetricName :: Lens' CreateRule Text crMetricName = lens _crMetricName (\ s a -> s{_crMetricName = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . crChangeToken :: Lens' CreateRule Text crChangeToken = lens _crChangeToken (\ s a -> s{_crChangeToken = a}); @@ -149,11 +161,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'crrsRule'+-- * 'crrsRule' - The 'Rule' returned in the @CreateRule@ response. ----- * 'crrsChangeToken'+-- * 'crrsChangeToken' - The @ChangeToken@ that you used to submit the @CreateRule@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'crrsResponseStatus'+-- * 'crrsResponseStatus' - -- | The response status code. createRuleResponse :: Int -- ^ 'crrsResponseStatus' -> CreateRuleResponse@@ -164,15 +176,15 @@ , _crrsResponseStatus = pResponseStatus_ } --- | The < Rule> returned in the 'CreateRule' response.+-- | The 'Rule' returned in the @CreateRule@ response. crrsRule :: Lens' CreateRuleResponse (Maybe Rule) crrsRule = lens _crrsRule (\ s a -> s{_crrsRule = a}); --- | The 'ChangeToken' that you used to submit the 'CreateRule' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @CreateRule@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . crrsChangeToken :: Lens' CreateRuleResponse (Maybe Text) crrsChangeToken = lens _crrsChangeToken (\ s a -> s{_crrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. crrsResponseStatus :: Lens' CreateRuleResponse Int crrsResponseStatus = lens _crrsResponseStatus (\ s a -> s{_crrsResponseStatus = a});
gen/Network/AWS/WAF/CreateSizeConstraintSet.hs view
@@ -18,16 +18,23 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a 'SizeConstraintSet'. You then use < UpdateSizeConstraintSet> to identify the part of a web request that you want AWS WAF to check for length, such as the length of the 'User-Agent' header or the length of the query string. For example, you can create a 'SizeConstraintSet' that matches any requests that have a query string that is longer than 100 bytes. You can then configure AWS WAF to reject those requests.+-- Creates a @SizeConstraintSet@ . You then use 'UpdateSizeConstraintSet' to identify the part of a web request that you want AWS WAF to check for length, such as the length of the @User-Agent@ header or the length of the query string. For example, you can create a @SizeConstraintSet@ that matches any requests that have a query string that is longer than 100 bytes. You can then configure AWS WAF to reject those requests. ----- To create and configure a 'SizeConstraintSet', perform the following steps: ----- 1. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'CreateSizeConstraintSet' request.--- 2. Submit a 'CreateSizeConstraintSet' request.--- 3. Use 'GetChangeToken' to get the change token that you provide in the 'ChangeToken' parameter of an 'UpdateSizeConstraintSet' request.--- 4. Submit an < UpdateSizeConstraintSet> request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.+-- To create and configure a @SizeConstraintSet@ , perform the following steps: ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @CreateSizeConstraintSet@ request.+--+-- * Submit a @CreateSizeConstraintSet@ request.+--+-- * Use @GetChangeToken@ to get the change token that you provide in the @ChangeToken@ parameter of an @UpdateSizeConstraintSet@ request.+--+-- * Submit an 'UpdateSizeConstraintSet' request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.CreateSizeConstraintSet ( -- * Creating a Request@@ -63,9 +70,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cscsName'+-- * 'cscsName' - A friendly name or description of the 'SizeConstraintSet' . You can't change @Name@ after you create a @SizeConstraintSet@ . ----- * 'cscsChangeToken'+-- * 'cscsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . createSizeConstraintSet :: Text -- ^ 'cscsName' -> Text -- ^ 'cscsChangeToken'@@ -76,11 +83,11 @@ , _cscsChangeToken = pChangeToken_ } --- | A friendly name or description of the < SizeConstraintSet>. You can\'t change 'Name' after you create a 'SizeConstraintSet'.+-- | A friendly name or description of the 'SizeConstraintSet' . You can't change @Name@ after you create a @SizeConstraintSet@ . cscsName :: Lens' CreateSizeConstraintSet Text cscsName = lens _cscsName (\ s a -> s{_cscsName = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . cscsChangeToken :: Lens' CreateSizeConstraintSet Text cscsChangeToken = lens _cscsChangeToken (\ s a -> s{_cscsChangeToken = a}); @@ -133,11 +140,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cscsrsSizeConstraintSet'+-- * 'cscsrsSizeConstraintSet' - A 'SizeConstraintSet' that contains no @SizeConstraint@ objects. ----- * 'cscsrsChangeToken'+-- * 'cscsrsChangeToken' - The @ChangeToken@ that you used to submit the @CreateSizeConstraintSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'cscsrsResponseStatus'+-- * 'cscsrsResponseStatus' - -- | The response status code. createSizeConstraintSetResponse :: Int -- ^ 'cscsrsResponseStatus' -> CreateSizeConstraintSetResponse@@ -148,15 +155,15 @@ , _cscsrsResponseStatus = pResponseStatus_ } --- | A < SizeConstraintSet> that contains no 'SizeConstraint' objects.+-- | A 'SizeConstraintSet' that contains no @SizeConstraint@ objects. cscsrsSizeConstraintSet :: Lens' CreateSizeConstraintSetResponse (Maybe SizeConstraintSet) cscsrsSizeConstraintSet = lens _cscsrsSizeConstraintSet (\ s a -> s{_cscsrsSizeConstraintSet = a}); --- | The 'ChangeToken' that you used to submit the 'CreateSizeConstraintSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @CreateSizeConstraintSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . cscsrsChangeToken :: Lens' CreateSizeConstraintSetResponse (Maybe Text) cscsrsChangeToken = lens _cscsrsChangeToken (\ s a -> s{_cscsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. cscsrsResponseStatus :: Lens' CreateSizeConstraintSetResponse Int cscsrsResponseStatus = lens _cscsrsResponseStatus (\ s a -> s{_cscsrsResponseStatus = a});
gen/Network/AWS/WAF/CreateSqlInjectionMatchSet.hs view
@@ -18,16 +18,23 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a < SqlInjectionMatchSet>, which you use to allow, block, or count requests that contain snippets of SQL code in a specified part of web requests. AWS WAF searches for character sequences that are likely to be malicious strings.+-- Creates a 'SqlInjectionMatchSet' , which you use to allow, block, or count requests that contain snippets of SQL code in a specified part of web requests. AWS WAF searches for character sequences that are likely to be malicious strings. ----- To create and configure a 'SqlInjectionMatchSet', perform the following steps: ----- 1. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'CreateSqlInjectionMatchSet' request.--- 2. Submit a 'CreateSqlInjectionMatchSet' request.--- 3. Use 'GetChangeToken' to get the change token that you provide in the 'ChangeToken' parameter of an < UpdateSqlInjectionMatchSet> request.--- 4. Submit an < UpdateSqlInjectionMatchSet> request to specify the parts of web requests in which you want to allow, block, or count malicious SQL code.+-- To create and configure a @SqlInjectionMatchSet@ , perform the following steps: ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @CreateSqlInjectionMatchSet@ request.+--+-- * Submit a @CreateSqlInjectionMatchSet@ request.+--+-- * Use @GetChangeToken@ to get the change token that you provide in the @ChangeToken@ parameter of an 'UpdateSqlInjectionMatchSet' request.+--+-- * Submit an 'UpdateSqlInjectionMatchSet' request to specify the parts of web requests in which you want to allow, block, or count malicious SQL code.+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.CreateSqlInjectionMatchSet ( -- * Creating a Request@@ -53,8 +60,10 @@ import Network.AWS.WAF.Types import Network.AWS.WAF.Types.Product --- | A request to create a < SqlInjectionMatchSet>.+-- | A request to create a 'SqlInjectionMatchSet' . --+--+-- -- /See:/ 'createSqlInjectionMatchSet' smart constructor. data CreateSqlInjectionMatchSet = CreateSqlInjectionMatchSet' { _csimsName :: !Text@@ -65,9 +74,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'csimsName'+-- * 'csimsName' - A friendly name or description for the 'SqlInjectionMatchSet' that you're creating. You can't change @Name@ after you create the @SqlInjectionMatchSet@ . ----- * 'csimsChangeToken'+-- * 'csimsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . createSqlInjectionMatchSet :: Text -- ^ 'csimsName' -> Text -- ^ 'csimsChangeToken'@@ -78,11 +87,11 @@ , _csimsChangeToken = pChangeToken_ } --- | A friendly name or description for the < SqlInjectionMatchSet> that you\'re creating. You can\'t change 'Name' after you create the 'SqlInjectionMatchSet'.+-- | A friendly name or description for the 'SqlInjectionMatchSet' that you're creating. You can't change @Name@ after you create the @SqlInjectionMatchSet@ . csimsName :: Lens' CreateSqlInjectionMatchSet Text csimsName = lens _csimsName (\ s a -> s{_csimsName = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . csimsChangeToken :: Lens' CreateSqlInjectionMatchSet Text csimsChangeToken = lens _csimsChangeToken (\ s a -> s{_csimsChangeToken = a}); @@ -125,8 +134,10 @@ instance ToQuery CreateSqlInjectionMatchSet where toQuery = const mempty --- | The response to a 'CreateSqlInjectionMatchSet' request.+-- | The response to a @CreateSqlInjectionMatchSet@ request. --+--+-- -- /See:/ 'createSqlInjectionMatchSetResponse' smart constructor. data CreateSqlInjectionMatchSetResponse = CreateSqlInjectionMatchSetResponse' { _csimsrsSqlInjectionMatchSet :: !(Maybe SqlInjectionMatchSet)@@ -138,11 +149,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'csimsrsSqlInjectionMatchSet'+-- * 'csimsrsSqlInjectionMatchSet' - A 'SqlInjectionMatchSet' . ----- * 'csimsrsChangeToken'+-- * 'csimsrsChangeToken' - The @ChangeToken@ that you used to submit the @CreateSqlInjectionMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'csimsrsResponseStatus'+-- * 'csimsrsResponseStatus' - -- | The response status code. createSqlInjectionMatchSetResponse :: Int -- ^ 'csimsrsResponseStatus' -> CreateSqlInjectionMatchSetResponse@@ -153,15 +164,15 @@ , _csimsrsResponseStatus = pResponseStatus_ } --- | A < SqlInjectionMatchSet>.+-- | A 'SqlInjectionMatchSet' . csimsrsSqlInjectionMatchSet :: Lens' CreateSqlInjectionMatchSetResponse (Maybe SqlInjectionMatchSet) csimsrsSqlInjectionMatchSet = lens _csimsrsSqlInjectionMatchSet (\ s a -> s{_csimsrsSqlInjectionMatchSet = a}); --- | The 'ChangeToken' that you used to submit the 'CreateSqlInjectionMatchSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @CreateSqlInjectionMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . csimsrsChangeToken :: Lens' CreateSqlInjectionMatchSetResponse (Maybe Text) csimsrsChangeToken = lens _csimsrsChangeToken (\ s a -> s{_csimsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. csimsrsResponseStatus :: Lens' CreateSqlInjectionMatchSetResponse Int csimsrsResponseStatus = lens _csimsrsResponseStatus (\ s a -> s{_csimsrsResponseStatus = a});
gen/Network/AWS/WAF/CreateWebACL.hs view
@@ -18,20 +18,29 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates a 'WebACL', which contains the 'Rules' that identify the CloudFront web requests that you want to allow, block, or count. AWS WAF evaluates 'Rules' in order based on the value of 'Priority' for each 'Rule'.+-- Creates a @WebACL@ , which contains the @Rules@ that identify the CloudFront web requests that you want to allow, block, or count. AWS WAF evaluates @Rules@ in order based on the value of @Priority@ for each @Rule@ . ----- You also specify a default action, either 'ALLOW' or 'BLOCK'. If a web request doesn\'t match any of the 'Rules' in a 'WebACL', AWS WAF responds to the request with the default action. ----- To create and configure a 'WebACL', perform the following steps:+-- You also specify a default action, either @ALLOW@ or @BLOCK@ . If a web request doesn't match any of the @Rules@ in a @WebACL@ , AWS WAF responds to the request with the default action. ----- 1. Create and update the 'ByteMatchSet' objects and other predicates that you want to include in 'Rules'. For more information, see < CreateByteMatchSet>, < UpdateByteMatchSet>, < CreateIPSet>, < UpdateIPSet>, < CreateSqlInjectionMatchSet>, and < UpdateSqlInjectionMatchSet>.--- 2. Create and update the 'Rules' that you want to include in the 'WebACL'. For more information, see < CreateRule> and < UpdateRule>.--- 3. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'CreateWebACL' request.--- 4. Submit a 'CreateWebACL' request.--- 5. Use 'GetChangeToken' to get the change token that you provide in the 'ChangeToken' parameter of an < UpdateWebACL> request.--- 6. Submit an < UpdateWebACL> request to specify the 'Rules' that you want to include in the 'WebACL', to specify the default action, and to associate the 'WebACL' with a CloudFront distribution.+-- To create and configure a @WebACL@ , perform the following steps: ----- For more information about how to use the AWS WAF API, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- * Create and update the @ByteMatchSet@ objects and other predicates that you want to include in @Rules@ . For more information, see 'CreateByteMatchSet' , 'UpdateByteMatchSet' , 'CreateIPSet' , 'UpdateIPSet' , 'CreateSqlInjectionMatchSet' , and 'UpdateSqlInjectionMatchSet' .+--+-- * Create and update the @Rules@ that you want to include in the @WebACL@ . For more information, see 'CreateRule' and 'UpdateRule' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @CreateWebACL@ request.+--+-- * Submit a @CreateWebACL@ request.+--+-- * Use @GetChangeToken@ to get the change token that you provide in the @ChangeToken@ parameter of an 'UpdateWebACL' request.+--+-- * Submit an 'UpdateWebACL' request to specify the @Rules@ that you want to include in the @WebACL@ , to specify the default action, and to associate the @WebACL@ with a CloudFront distribution.+--+--+--+-- For more information about how to use the AWS WAF API, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.CreateWebACL ( -- * Creating a Request@@ -71,13 +80,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cwaName'+-- * 'cwaName' - A friendly name or description of the 'WebACL' . You can't change @Name@ after you create the @WebACL@ . ----- * 'cwaMetricName'+-- * 'cwaMetricName' - A friendly name or description for the metrics for this @WebACL@ . The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change @MetricName@ after you create the @WebACL@ . ----- * 'cwaDefaultAction'+-- * 'cwaDefaultAction' - The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the @Rule@ objects that are associated with the @WebACL@ . ----- * 'cwaChangeToken'+-- * 'cwaChangeToken' - The value returned by the most recent call to 'GetChangeToken' . createWebACL :: Text -- ^ 'cwaName' -> Text -- ^ 'cwaMetricName'@@ -92,19 +101,19 @@ , _cwaChangeToken = pChangeToken_ } --- | A friendly name or description of the < WebACL>. You can\'t change 'Name' after you create the 'WebACL'.+-- | A friendly name or description of the 'WebACL' . You can't change @Name@ after you create the @WebACL@ . cwaName :: Lens' CreateWebACL Text cwaName = lens _cwaName (\ s a -> s{_cwaName = a}); --- | A friendly name or description for the metrics for this 'WebACL'. The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can\'t contain whitespace. You can\'t change 'MetricName' after you create the 'WebACL'.+-- | A friendly name or description for the metrics for this @WebACL@ . The name can contain only alphanumeric characters (A-Z, a-z, 0-9); the name can't contain whitespace. You can't change @MetricName@ after you create the @WebACL@ . cwaMetricName :: Lens' CreateWebACL Text cwaMetricName = lens _cwaMetricName (\ s a -> s{_cwaMetricName = a}); --- | The action that you want AWS WAF to take when a request doesn\'t match the criteria specified in any of the 'Rule' objects that are associated with the 'WebACL'.+-- | The action that you want AWS WAF to take when a request doesn't match the criteria specified in any of the @Rule@ objects that are associated with the @WebACL@ . cwaDefaultAction :: Lens' CreateWebACL WafAction cwaDefaultAction = lens _cwaDefaultAction (\ s a -> s{_cwaDefaultAction = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . cwaChangeToken :: Lens' CreateWebACL Text cwaChangeToken = lens _cwaChangeToken (\ s a -> s{_cwaChangeToken = a}); @@ -157,11 +166,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cwarsWebACL'+-- * 'cwarsWebACL' - The 'WebACL' returned in the @CreateWebACL@ response. ----- * 'cwarsChangeToken'+-- * 'cwarsChangeToken' - The @ChangeToken@ that you used to submit the @CreateWebACL@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'cwarsResponseStatus'+-- * 'cwarsResponseStatus' - -- | The response status code. createWebACLResponse :: Int -- ^ 'cwarsResponseStatus' -> CreateWebACLResponse@@ -172,15 +181,15 @@ , _cwarsResponseStatus = pResponseStatus_ } --- | The < WebACL> returned in the 'CreateWebACL' response.+-- | The 'WebACL' returned in the @CreateWebACL@ response. cwarsWebACL :: Lens' CreateWebACLResponse (Maybe WebACL) cwarsWebACL = lens _cwarsWebACL (\ s a -> s{_cwarsWebACL = a}); --- | The 'ChangeToken' that you used to submit the 'CreateWebACL' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @CreateWebACL@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . cwarsChangeToken :: Lens' CreateWebACLResponse (Maybe Text) cwarsChangeToken = lens _cwarsChangeToken (\ s a -> s{_cwarsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. cwarsResponseStatus :: Lens' CreateWebACLResponse Int cwarsResponseStatus = lens _cwarsResponseStatus (\ s a -> s{_cwarsResponseStatus = a});
gen/Network/AWS/WAF/CreateXSSMatchSet.hs view
@@ -18,16 +18,23 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Creates an < XssMatchSet>, which you use to allow, block, or count requests that contain cross-site scripting attacks in the specified part of web requests. AWS WAF searches for character sequences that are likely to be malicious strings.+-- Creates an 'XssMatchSet' , which you use to allow, block, or count requests that contain cross-site scripting attacks in the specified part of web requests. AWS WAF searches for character sequences that are likely to be malicious strings. ----- To create and configure an 'XssMatchSet', perform the following steps: ----- 1. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'CreateXssMatchSet' request.--- 2. Submit a 'CreateXssMatchSet' request.--- 3. Use 'GetChangeToken' to get the change token that you provide in the 'ChangeToken' parameter of an < UpdateXssMatchSet> request.--- 4. Submit an < UpdateXssMatchSet> request to specify the parts of web requests in which you want to allow, block, or count cross-site scripting attacks.+-- To create and configure an @XssMatchSet@ , perform the following steps: ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @CreateXssMatchSet@ request.+--+-- * Submit a @CreateXssMatchSet@ request.+--+-- * Use @GetChangeToken@ to get the change token that you provide in the @ChangeToken@ parameter of an 'UpdateXssMatchSet' request.+--+-- * Submit an 'UpdateXssMatchSet' request to specify the parts of web requests in which you want to allow, block, or count cross-site scripting attacks.+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.CreateXSSMatchSet ( -- * Creating a Request@@ -53,8 +60,10 @@ import Network.AWS.WAF.Types import Network.AWS.WAF.Types.Product --- | A request to create an < XssMatchSet>.+-- | A request to create an 'XssMatchSet' . --+--+-- -- /See:/ 'createXSSMatchSet' smart constructor. data CreateXSSMatchSet = CreateXSSMatchSet' { _cxmsName :: !Text@@ -65,9 +74,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cxmsName'+-- * 'cxmsName' - A friendly name or description for the 'XssMatchSet' that you're creating. You can't change @Name@ after you create the @XssMatchSet@ . ----- * 'cxmsChangeToken'+-- * 'cxmsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . createXSSMatchSet :: Text -- ^ 'cxmsName' -> Text -- ^ 'cxmsChangeToken'@@ -78,11 +87,11 @@ , _cxmsChangeToken = pChangeToken_ } --- | A friendly name or description for the < XssMatchSet> that you\'re creating. You can\'t change 'Name' after you create the 'XssMatchSet'.+-- | A friendly name or description for the 'XssMatchSet' that you're creating. You can't change @Name@ after you create the @XssMatchSet@ . cxmsName :: Lens' CreateXSSMatchSet Text cxmsName = lens _cxmsName (\ s a -> s{_cxmsName = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . cxmsChangeToken :: Lens' CreateXSSMatchSet Text cxmsChangeToken = lens _cxmsChangeToken (\ s a -> s{_cxmsChangeToken = a}); @@ -122,8 +131,10 @@ instance ToQuery CreateXSSMatchSet where toQuery = const mempty --- | The response to a 'CreateXssMatchSet' request.+-- | The response to a @CreateXssMatchSet@ request. --+--+-- -- /See:/ 'createXSSMatchSetResponse' smart constructor. data CreateXSSMatchSetResponse = CreateXSSMatchSetResponse' { _cxmsrsXSSMatchSet :: !(Maybe XSSMatchSet)@@ -135,11 +146,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'cxmsrsXSSMatchSet'+-- * 'cxmsrsXSSMatchSet' - An 'XssMatchSet' . ----- * 'cxmsrsChangeToken'+-- * 'cxmsrsChangeToken' - The @ChangeToken@ that you used to submit the @CreateXssMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'cxmsrsResponseStatus'+-- * 'cxmsrsResponseStatus' - -- | The response status code. createXSSMatchSetResponse :: Int -- ^ 'cxmsrsResponseStatus' -> CreateXSSMatchSetResponse@@ -150,15 +161,15 @@ , _cxmsrsResponseStatus = pResponseStatus_ } --- | An < XssMatchSet>.+-- | An 'XssMatchSet' . cxmsrsXSSMatchSet :: Lens' CreateXSSMatchSetResponse (Maybe XSSMatchSet) cxmsrsXSSMatchSet = lens _cxmsrsXSSMatchSet (\ s a -> s{_cxmsrsXSSMatchSet = a}); --- | The 'ChangeToken' that you used to submit the 'CreateXssMatchSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @CreateXssMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . cxmsrsChangeToken :: Lens' CreateXSSMatchSetResponse (Maybe Text) cxmsrsChangeToken = lens _cxmsrsChangeToken (\ s a -> s{_cxmsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. cxmsrsResponseStatus :: Lens' CreateXSSMatchSetResponse Int cxmsrsResponseStatus = lens _cxmsrsResponseStatus (\ s a -> s{_cxmsrsResponseStatus = a});
gen/Network/AWS/WAF/DeleteByteMatchSet.hs view
@@ -18,15 +18,21 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Permanently deletes a < ByteMatchSet>. You can\'t delete a 'ByteMatchSet' if it\'s still used in any 'Rules' or if it still includes any < ByteMatchTuple> objects (any filters).+-- Permanently deletes a 'ByteMatchSet' . You can't delete a @ByteMatchSet@ if it's still used in any @Rules@ or if it still includes any 'ByteMatchTuple' objects (any filters). ----- If you just want to remove a 'ByteMatchSet' from a 'Rule', use < UpdateRule>. ----- To permanently delete a 'ByteMatchSet', perform the following steps:+-- If you just want to remove a @ByteMatchSet@ from a @Rule@ , use 'UpdateRule' . ----- 1. Update the 'ByteMatchSet' to remove filters, if any. For more information, see < UpdateByteMatchSet>.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'DeleteByteMatchSet' request.--- 3. Submit a 'DeleteByteMatchSet' request.+-- To permanently delete a @ByteMatchSet@ , perform the following steps:+--+-- * Update the @ByteMatchSet@ to remove filters, if any. For more information, see 'UpdateByteMatchSet' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @DeleteByteMatchSet@ request.+--+-- * Submit a @DeleteByteMatchSet@ request.+--+--+-- module Network.AWS.WAF.DeleteByteMatchSet ( -- * Creating a Request@@ -61,9 +67,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dbmsByteMatchSetId'+-- * 'dbmsByteMatchSetId' - The @ByteMatchSetId@ of the 'ByteMatchSet' that you want to delete. @ByteMatchSetId@ is returned by 'CreateByteMatchSet' and by 'ListByteMatchSets' . ----- * 'dbmsChangeToken'+-- * 'dbmsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . deleteByteMatchSet :: Text -- ^ 'dbmsByteMatchSetId' -> Text -- ^ 'dbmsChangeToken'@@ -74,11 +80,11 @@ , _dbmsChangeToken = pChangeToken_ } --- | The 'ByteMatchSetId' of the < ByteMatchSet> that you want to delete. 'ByteMatchSetId' is returned by < CreateByteMatchSet> and by < ListByteMatchSets>.+-- | The @ByteMatchSetId@ of the 'ByteMatchSet' that you want to delete. @ByteMatchSetId@ is returned by 'CreateByteMatchSet' and by 'ListByteMatchSets' . dbmsByteMatchSetId :: Lens' DeleteByteMatchSet Text dbmsByteMatchSetId = lens _dbmsByteMatchSetId (\ s a -> s{_dbmsByteMatchSetId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . dbmsChangeToken :: Lens' DeleteByteMatchSet Text dbmsChangeToken = lens _dbmsChangeToken (\ s a -> s{_dbmsChangeToken = a}); @@ -128,9 +134,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dbmsrsChangeToken'+-- * 'dbmsrsChangeToken' - The @ChangeToken@ that you used to submit the @DeleteByteMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'dbmsrsResponseStatus'+-- * 'dbmsrsResponseStatus' - -- | The response status code. deleteByteMatchSetResponse :: Int -- ^ 'dbmsrsResponseStatus' -> DeleteByteMatchSetResponse@@ -140,11 +146,11 @@ , _dbmsrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'DeleteByteMatchSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @DeleteByteMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . dbmsrsChangeToken :: Lens' DeleteByteMatchSetResponse (Maybe Text) dbmsrsChangeToken = lens _dbmsrsChangeToken (\ s a -> s{_dbmsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. dbmsrsResponseStatus :: Lens' DeleteByteMatchSetResponse Int dbmsrsResponseStatus = lens _dbmsrsResponseStatus (\ s a -> s{_dbmsrsResponseStatus = a});
gen/Network/AWS/WAF/DeleteIPSet.hs view
@@ -18,15 +18,21 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Permanently deletes an < IPSet>. You can\'t delete an 'IPSet' if it\'s still used in any 'Rules' or if it still includes any IP addresses.+-- Permanently deletes an 'IPSet' . You can't delete an @IPSet@ if it's still used in any @Rules@ or if it still includes any IP addresses. ----- If you just want to remove an 'IPSet' from a 'Rule', use < UpdateRule>. ----- To permanently delete an 'IPSet' from AWS WAF, perform the following steps:+-- If you just want to remove an @IPSet@ from a @Rule@ , use 'UpdateRule' . ----- 1. Update the 'IPSet' to remove IP address ranges, if any. For more information, see < UpdateIPSet>.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'DeleteIPSet' request.--- 3. Submit a 'DeleteIPSet' request.+-- To permanently delete an @IPSet@ from AWS WAF, perform the following steps:+--+-- * Update the @IPSet@ to remove IP address ranges, if any. For more information, see 'UpdateIPSet' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @DeleteIPSet@ request.+--+-- * Submit a @DeleteIPSet@ request.+--+--+-- module Network.AWS.WAF.DeleteIPSet ( -- * Creating a Request@@ -61,9 +67,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'disIPSetId'+-- * 'disIPSetId' - The @IPSetId@ of the 'IPSet' that you want to delete. @IPSetId@ is returned by 'CreateIPSet' and by 'ListIPSets' . ----- * 'disChangeToken'+-- * 'disChangeToken' - The value returned by the most recent call to 'GetChangeToken' . deleteIPSet :: Text -- ^ 'disIPSetId' -> Text -- ^ 'disChangeToken'@@ -74,11 +80,11 @@ , _disChangeToken = pChangeToken_ } --- | The 'IPSetId' of the < IPSet> that you want to delete. 'IPSetId' is returned by < CreateIPSet> and by < ListIPSets>.+-- | The @IPSetId@ of the 'IPSet' that you want to delete. @IPSetId@ is returned by 'CreateIPSet' and by 'ListIPSets' . disIPSetId :: Lens' DeleteIPSet Text disIPSetId = lens _disIPSetId (\ s a -> s{_disIPSetId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . disChangeToken :: Lens' DeleteIPSet Text disChangeToken = lens _disChangeToken (\ s a -> s{_disChangeToken = a}); @@ -127,9 +133,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'disrsChangeToken'+-- * 'disrsChangeToken' - The @ChangeToken@ that you used to submit the @DeleteIPSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'disrsResponseStatus'+-- * 'disrsResponseStatus' - -- | The response status code. deleteIPSetResponse :: Int -- ^ 'disrsResponseStatus' -> DeleteIPSetResponse@@ -139,11 +145,11 @@ , _disrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'DeleteIPSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @DeleteIPSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . disrsChangeToken :: Lens' DeleteIPSetResponse (Maybe Text) disrsChangeToken = lens _disrsChangeToken (\ s a -> s{_disrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. disrsResponseStatus :: Lens' DeleteIPSetResponse Int disrsResponseStatus = lens _disrsResponseStatus (\ s a -> s{_disrsResponseStatus = a});
gen/Network/AWS/WAF/DeleteRule.hs view
@@ -18,15 +18,21 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Permanently deletes a < Rule>. You can\'t delete a 'Rule' if it\'s still used in any 'WebACL' objects or if it still includes any predicates, such as 'ByteMatchSet' objects.+-- Permanently deletes a 'Rule' . You can't delete a @Rule@ if it's still used in any @WebACL@ objects or if it still includes any predicates, such as @ByteMatchSet@ objects. ----- If you just want to remove a 'Rule' from a 'WebACL', use < UpdateWebACL>. ----- To permanently delete a 'Rule' from AWS WAF, perform the following steps:+-- If you just want to remove a @Rule@ from a @WebACL@ , use 'UpdateWebACL' . ----- 1. Update the 'Rule' to remove predicates, if any. For more information, see < UpdateRule>.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'DeleteRule' request.--- 3. Submit a 'DeleteRule' request.+-- To permanently delete a @Rule@ from AWS WAF, perform the following steps:+--+-- * Update the @Rule@ to remove predicates, if any. For more information, see 'UpdateRule' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @DeleteRule@ request.+--+-- * Submit a @DeleteRule@ request.+--+--+-- module Network.AWS.WAF.DeleteRule ( -- * Creating a Request@@ -61,9 +67,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'drRuleId'+-- * 'drRuleId' - The @RuleId@ of the 'Rule' that you want to delete. @RuleId@ is returned by 'CreateRule' and by 'ListRules' . ----- * 'drChangeToken'+-- * 'drChangeToken' - The value returned by the most recent call to 'GetChangeToken' . deleteRule :: Text -- ^ 'drRuleId' -> Text -- ^ 'drChangeToken'@@ -74,11 +80,11 @@ , _drChangeToken = pChangeToken_ } --- | The 'RuleId' of the < Rule> that you want to delete. 'RuleId' is returned by < CreateRule> and by < ListRules>.+-- | The @RuleId@ of the 'Rule' that you want to delete. @RuleId@ is returned by 'CreateRule' and by 'ListRules' . drRuleId :: Lens' DeleteRule Text drRuleId = lens _drRuleId (\ s a -> s{_drRuleId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . drChangeToken :: Lens' DeleteRule Text drChangeToken = lens _drChangeToken (\ s a -> s{_drChangeToken = a}); @@ -127,9 +133,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'drrsChangeToken'+-- * 'drrsChangeToken' - The @ChangeToken@ that you used to submit the @DeleteRule@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'drrsResponseStatus'+-- * 'drrsResponseStatus' - -- | The response status code. deleteRuleResponse :: Int -- ^ 'drrsResponseStatus' -> DeleteRuleResponse@@ -139,11 +145,11 @@ , _drrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'DeleteRule' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @DeleteRule@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . drrsChangeToken :: Lens' DeleteRuleResponse (Maybe Text) drrsChangeToken = lens _drrsChangeToken (\ s a -> s{_drrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. drrsResponseStatus :: Lens' DeleteRuleResponse Int drrsResponseStatus = lens _drrsResponseStatus (\ s a -> s{_drrsResponseStatus = a});
gen/Network/AWS/WAF/DeleteSizeConstraintSet.hs view
@@ -18,15 +18,21 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Permanently deletes a < SizeConstraintSet>. You can\'t delete a 'SizeConstraintSet' if it\'s still used in any 'Rules' or if it still includes any < SizeConstraint> objects (any filters).+-- Permanently deletes a 'SizeConstraintSet' . You can't delete a @SizeConstraintSet@ if it's still used in any @Rules@ or if it still includes any 'SizeConstraint' objects (any filters). ----- If you just want to remove a 'SizeConstraintSet' from a 'Rule', use < UpdateRule>. ----- To permanently delete a 'SizeConstraintSet', perform the following steps:+-- If you just want to remove a @SizeConstraintSet@ from a @Rule@ , use 'UpdateRule' . ----- 1. Update the 'SizeConstraintSet' to remove filters, if any. For more information, see < UpdateSizeConstraintSet>.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'DeleteSizeConstraintSet' request.--- 3. Submit a 'DeleteSizeConstraintSet' request.+-- To permanently delete a @SizeConstraintSet@ , perform the following steps:+--+-- * Update the @SizeConstraintSet@ to remove filters, if any. For more information, see 'UpdateSizeConstraintSet' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @DeleteSizeConstraintSet@ request.+--+-- * Submit a @DeleteSizeConstraintSet@ request.+--+--+-- module Network.AWS.WAF.DeleteSizeConstraintSet ( -- * Creating a Request@@ -61,9 +67,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dscsSizeConstraintSetId'+-- * 'dscsSizeConstraintSetId' - The @SizeConstraintSetId@ of the 'SizeConstraintSet' that you want to delete. @SizeConstraintSetId@ is returned by 'CreateSizeConstraintSet' and by 'ListSizeConstraintSets' . ----- * 'dscsChangeToken'+-- * 'dscsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . deleteSizeConstraintSet :: Text -- ^ 'dscsSizeConstraintSetId' -> Text -- ^ 'dscsChangeToken'@@ -74,11 +80,11 @@ , _dscsChangeToken = pChangeToken_ } --- | The 'SizeConstraintSetId' of the < SizeConstraintSet> that you want to delete. 'SizeConstraintSetId' is returned by < CreateSizeConstraintSet> and by < ListSizeConstraintSets>.+-- | The @SizeConstraintSetId@ of the 'SizeConstraintSet' that you want to delete. @SizeConstraintSetId@ is returned by 'CreateSizeConstraintSet' and by 'ListSizeConstraintSets' . dscsSizeConstraintSetId :: Lens' DeleteSizeConstraintSet Text dscsSizeConstraintSetId = lens _dscsSizeConstraintSetId (\ s a -> s{_dscsSizeConstraintSetId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . dscsChangeToken :: Lens' DeleteSizeConstraintSet Text dscsChangeToken = lens _dscsChangeToken (\ s a -> s{_dscsChangeToken = a}); @@ -130,9 +136,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dscsrsChangeToken'+-- * 'dscsrsChangeToken' - The @ChangeToken@ that you used to submit the @DeleteSizeConstraintSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'dscsrsResponseStatus'+-- * 'dscsrsResponseStatus' - -- | The response status code. deleteSizeConstraintSetResponse :: Int -- ^ 'dscsrsResponseStatus' -> DeleteSizeConstraintSetResponse@@ -142,11 +148,11 @@ , _dscsrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'DeleteSizeConstraintSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @DeleteSizeConstraintSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . dscsrsChangeToken :: Lens' DeleteSizeConstraintSetResponse (Maybe Text) dscsrsChangeToken = lens _dscsrsChangeToken (\ s a -> s{_dscsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. dscsrsResponseStatus :: Lens' DeleteSizeConstraintSetResponse Int dscsrsResponseStatus = lens _dscsrsResponseStatus (\ s a -> s{_dscsrsResponseStatus = a});
gen/Network/AWS/WAF/DeleteSqlInjectionMatchSet.hs view
@@ -18,15 +18,21 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Permanently deletes a < SqlInjectionMatchSet>. You can\'t delete a 'SqlInjectionMatchSet' if it\'s still used in any 'Rules' or if it still contains any < SqlInjectionMatchTuple> objects.+-- Permanently deletes a 'SqlInjectionMatchSet' . You can't delete a @SqlInjectionMatchSet@ if it's still used in any @Rules@ or if it still contains any 'SqlInjectionMatchTuple' objects. ----- If you just want to remove a 'SqlInjectionMatchSet' from a 'Rule', use < UpdateRule>. ----- To permanently delete a 'SqlInjectionMatchSet' from AWS WAF, perform the following steps:+-- If you just want to remove a @SqlInjectionMatchSet@ from a @Rule@ , use 'UpdateRule' . ----- 1. Update the 'SqlInjectionMatchSet' to remove filters, if any. For more information, see < UpdateSqlInjectionMatchSet>.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'DeleteSqlInjectionMatchSet' request.--- 3. Submit a 'DeleteSqlInjectionMatchSet' request.+-- To permanently delete a @SqlInjectionMatchSet@ from AWS WAF, perform the following steps:+--+-- * Update the @SqlInjectionMatchSet@ to remove filters, if any. For more information, see 'UpdateSqlInjectionMatchSet' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @DeleteSqlInjectionMatchSet@ request.+--+-- * Submit a @DeleteSqlInjectionMatchSet@ request.+--+--+-- module Network.AWS.WAF.DeleteSqlInjectionMatchSet ( -- * Creating a Request@@ -51,8 +57,10 @@ import Network.AWS.WAF.Types import Network.AWS.WAF.Types.Product --- | A request to delete a < SqlInjectionMatchSet> from AWS WAF.+-- | A request to delete a 'SqlInjectionMatchSet' from AWS WAF. --+--+-- -- /See:/ 'deleteSqlInjectionMatchSet' smart constructor. data DeleteSqlInjectionMatchSet = DeleteSqlInjectionMatchSet' { _dsimsSqlInjectionMatchSetId :: !Text@@ -63,9 +71,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dsimsSqlInjectionMatchSetId'+-- * 'dsimsSqlInjectionMatchSetId' - The @SqlInjectionMatchSetId@ of the 'SqlInjectionMatchSet' that you want to delete. @SqlInjectionMatchSetId@ is returned by 'CreateSqlInjectionMatchSet' and by 'ListSqlInjectionMatchSets' . ----- * 'dsimsChangeToken'+-- * 'dsimsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . deleteSqlInjectionMatchSet :: Text -- ^ 'dsimsSqlInjectionMatchSetId' -> Text -- ^ 'dsimsChangeToken'@@ -76,11 +84,11 @@ , _dsimsChangeToken = pChangeToken_ } --- | The 'SqlInjectionMatchSetId' of the < SqlInjectionMatchSet> that you want to delete. 'SqlInjectionMatchSetId' is returned by < CreateSqlInjectionMatchSet> and by < ListSqlInjectionMatchSets>.+-- | The @SqlInjectionMatchSetId@ of the 'SqlInjectionMatchSet' that you want to delete. @SqlInjectionMatchSetId@ is returned by 'CreateSqlInjectionMatchSet' and by 'ListSqlInjectionMatchSets' . dsimsSqlInjectionMatchSetId :: Lens' DeleteSqlInjectionMatchSet Text dsimsSqlInjectionMatchSetId = lens _dsimsSqlInjectionMatchSetId (\ s a -> s{_dsimsSqlInjectionMatchSetId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . dsimsChangeToken :: Lens' DeleteSqlInjectionMatchSet Text dsimsChangeToken = lens _dsimsChangeToken (\ s a -> s{_dsimsChangeToken = a}); @@ -123,8 +131,10 @@ instance ToQuery DeleteSqlInjectionMatchSet where toQuery = const mempty --- | The response to a request to delete a < SqlInjectionMatchSet> from AWS WAF.+-- | The response to a request to delete a 'SqlInjectionMatchSet' from AWS WAF. --+--+-- -- /See:/ 'deleteSqlInjectionMatchSetResponse' smart constructor. data DeleteSqlInjectionMatchSetResponse = DeleteSqlInjectionMatchSetResponse' { _dsimsrsChangeToken :: !(Maybe Text)@@ -135,9 +145,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dsimsrsChangeToken'+-- * 'dsimsrsChangeToken' - The @ChangeToken@ that you used to submit the @DeleteSqlInjectionMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'dsimsrsResponseStatus'+-- * 'dsimsrsResponseStatus' - -- | The response status code. deleteSqlInjectionMatchSetResponse :: Int -- ^ 'dsimsrsResponseStatus' -> DeleteSqlInjectionMatchSetResponse@@ -147,11 +157,11 @@ , _dsimsrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'DeleteSqlInjectionMatchSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @DeleteSqlInjectionMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . dsimsrsChangeToken :: Lens' DeleteSqlInjectionMatchSetResponse (Maybe Text) dsimsrsChangeToken = lens _dsimsrsChangeToken (\ s a -> s{_dsimsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. dsimsrsResponseStatus :: Lens' DeleteSqlInjectionMatchSetResponse Int dsimsrsResponseStatus = lens _dsimsrsResponseStatus (\ s a -> s{_dsimsrsResponseStatus = a});
gen/Network/AWS/WAF/DeleteWebACL.hs view
@@ -18,13 +18,19 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Permanently deletes a < WebACL>. You can\'t delete a 'WebACL' if it still contains any 'Rules'.+-- Permanently deletes a 'WebACL' . You can't delete a @WebACL@ if it still contains any @Rules@ . ----- To delete a 'WebACL', perform the following steps: ----- 1. Update the 'WebACL' to remove 'Rules', if any. For more information, see < UpdateWebACL>.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'DeleteWebACL' request.--- 3. Submit a 'DeleteWebACL' request.+-- To delete a @WebACL@ , perform the following steps:+--+-- * Update the @WebACL@ to remove @Rules@ , if any. For more information, see 'UpdateWebACL' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @DeleteWebACL@ request.+--+-- * Submit a @DeleteWebACL@ request.+--+--+-- module Network.AWS.WAF.DeleteWebACL ( -- * Creating a Request@@ -59,9 +65,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dwaWebACLId'+-- * 'dwaWebACLId' - The @WebACLId@ of the 'WebACL' that you want to delete. @WebACLId@ is returned by 'CreateWebACL' and by 'ListWebACLs' . ----- * 'dwaChangeToken'+-- * 'dwaChangeToken' - The value returned by the most recent call to 'GetChangeToken' . deleteWebACL :: Text -- ^ 'dwaWebACLId' -> Text -- ^ 'dwaChangeToken'@@ -72,11 +78,11 @@ , _dwaChangeToken = pChangeToken_ } --- | The 'WebACLId' of the < WebACL> that you want to delete. 'WebACLId' is returned by < CreateWebACL> and by < ListWebACLs>.+-- | The @WebACLId@ of the 'WebACL' that you want to delete. @WebACLId@ is returned by 'CreateWebACL' and by 'ListWebACLs' . dwaWebACLId :: Lens' DeleteWebACL Text dwaWebACLId = lens _dwaWebACLId (\ s a -> s{_dwaWebACLId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . dwaChangeToken :: Lens' DeleteWebACL Text dwaChangeToken = lens _dwaChangeToken (\ s a -> s{_dwaChangeToken = a}); @@ -125,9 +131,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dwarsChangeToken'+-- * 'dwarsChangeToken' - The @ChangeToken@ that you used to submit the @DeleteWebACL@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'dwarsResponseStatus'+-- * 'dwarsResponseStatus' - -- | The response status code. deleteWebACLResponse :: Int -- ^ 'dwarsResponseStatus' -> DeleteWebACLResponse@@ -137,11 +143,11 @@ , _dwarsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'DeleteWebACL' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @DeleteWebACL@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . dwarsChangeToken :: Lens' DeleteWebACLResponse (Maybe Text) dwarsChangeToken = lens _dwarsChangeToken (\ s a -> s{_dwarsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. dwarsResponseStatus :: Lens' DeleteWebACLResponse Int dwarsResponseStatus = lens _dwarsResponseStatus (\ s a -> s{_dwarsResponseStatus = a});
gen/Network/AWS/WAF/DeleteXSSMatchSet.hs view
@@ -18,15 +18,21 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Permanently deletes an < XssMatchSet>. You can\'t delete an 'XssMatchSet' if it\'s still used in any 'Rules' or if it still contains any < XssMatchTuple> objects.+-- Permanently deletes an 'XssMatchSet' . You can't delete an @XssMatchSet@ if it's still used in any @Rules@ or if it still contains any 'XssMatchTuple' objects. ----- If you just want to remove an 'XssMatchSet' from a 'Rule', use < UpdateRule>. ----- To permanently delete an 'XssMatchSet' from AWS WAF, perform the following steps:+-- If you just want to remove an @XssMatchSet@ from a @Rule@ , use 'UpdateRule' . ----- 1. Update the 'XssMatchSet' to remove filters, if any. For more information, see < UpdateXssMatchSet>.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of a 'DeleteXssMatchSet' request.--- 3. Submit a 'DeleteXssMatchSet' request.+-- To permanently delete an @XssMatchSet@ from AWS WAF, perform the following steps:+--+-- * Update the @XssMatchSet@ to remove filters, if any. For more information, see 'UpdateXssMatchSet' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of a @DeleteXssMatchSet@ request.+--+-- * Submit a @DeleteXssMatchSet@ request.+--+--+-- module Network.AWS.WAF.DeleteXSSMatchSet ( -- * Creating a Request@@ -51,8 +57,10 @@ import Network.AWS.WAF.Types import Network.AWS.WAF.Types.Product --- | A request to delete an < XssMatchSet> from AWS WAF.+-- | A request to delete an 'XssMatchSet' from AWS WAF. --+--+-- -- /See:/ 'deleteXSSMatchSet' smart constructor. data DeleteXSSMatchSet = DeleteXSSMatchSet' { _dxmsXSSMatchSetId :: !Text@@ -63,9 +71,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dxmsXSSMatchSetId'+-- * 'dxmsXSSMatchSetId' - The @XssMatchSetId@ of the 'XssMatchSet' that you want to delete. @XssMatchSetId@ is returned by 'CreateXssMatchSet' and by 'ListXssMatchSets' . ----- * 'dxmsChangeToken'+-- * 'dxmsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . deleteXSSMatchSet :: Text -- ^ 'dxmsXSSMatchSetId' -> Text -- ^ 'dxmsChangeToken'@@ -76,11 +84,11 @@ , _dxmsChangeToken = pChangeToken_ } --- | The 'XssMatchSetId' of the < XssMatchSet> that you want to delete. 'XssMatchSetId' is returned by < CreateXssMatchSet> and by < ListXssMatchSets>.+-- | The @XssMatchSetId@ of the 'XssMatchSet' that you want to delete. @XssMatchSetId@ is returned by 'CreateXssMatchSet' and by 'ListXssMatchSets' . dxmsXSSMatchSetId :: Lens' DeleteXSSMatchSet Text dxmsXSSMatchSetId = lens _dxmsXSSMatchSetId (\ s a -> s{_dxmsXSSMatchSetId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . dxmsChangeToken :: Lens' DeleteXSSMatchSet Text dxmsChangeToken = lens _dxmsChangeToken (\ s a -> s{_dxmsChangeToken = a}); @@ -119,8 +127,10 @@ instance ToQuery DeleteXSSMatchSet where toQuery = const mempty --- | The response to a request to delete an < XssMatchSet> from AWS WAF.+-- | The response to a request to delete an 'XssMatchSet' from AWS WAF. --+--+-- -- /See:/ 'deleteXSSMatchSetResponse' smart constructor. data DeleteXSSMatchSetResponse = DeleteXSSMatchSetResponse' { _dxmsrsChangeToken :: !(Maybe Text)@@ -131,9 +141,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'dxmsrsChangeToken'+-- * 'dxmsrsChangeToken' - The @ChangeToken@ that you used to submit the @DeleteXssMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'dxmsrsResponseStatus'+-- * 'dxmsrsResponseStatus' - -- | The response status code. deleteXSSMatchSetResponse :: Int -- ^ 'dxmsrsResponseStatus' -> DeleteXSSMatchSetResponse@@ -143,11 +153,11 @@ , _dxmsrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'DeleteXssMatchSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @DeleteXssMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . dxmsrsChangeToken :: Lens' DeleteXSSMatchSetResponse (Maybe Text) dxmsrsChangeToken = lens _dxmsrsChangeToken (\ s a -> s{_dxmsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. dxmsrsResponseStatus :: Lens' DeleteXSSMatchSetResponse Int dxmsrsResponseStatus = lens _dxmsrsResponseStatus (\ s a -> s{_dxmsrsResponseStatus = a});
gen/Network/AWS/WAF/GetByteMatchSet.hs view
@@ -18,7 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns the < ByteMatchSet> specified by 'ByteMatchSetId'.+-- Returns the 'ByteMatchSet' specified by @ByteMatchSetId@ .+--+-- module Network.AWS.WAF.GetByteMatchSet ( -- * Creating a Request@@ -51,7 +53,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gbmsByteMatchSetId'+-- * 'gbmsByteMatchSetId' - The @ByteMatchSetId@ of the 'ByteMatchSet' that you want to get. @ByteMatchSetId@ is returned by 'CreateByteMatchSet' and by 'ListByteMatchSets' . getByteMatchSet :: Text -- ^ 'gbmsByteMatchSetId' -> GetByteMatchSet@@ -60,7 +62,7 @@ { _gbmsByteMatchSetId = pByteMatchSetId_ } --- | The 'ByteMatchSetId' of the < ByteMatchSet> that you want to get. 'ByteMatchSetId' is returned by < CreateByteMatchSet> and by < ListByteMatchSets>.+-- | The @ByteMatchSetId@ of the 'ByteMatchSet' that you want to get. @ByteMatchSetId@ is returned by 'CreateByteMatchSet' and by 'ListByteMatchSets' . gbmsByteMatchSetId :: Lens' GetByteMatchSet Text gbmsByteMatchSetId = lens _gbmsByteMatchSetId (\ s a -> s{_gbmsByteMatchSetId = a}); @@ -108,9 +110,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gbmsrsByteMatchSet'+-- * 'gbmsrsByteMatchSet' - Information about the 'ByteMatchSet' that you specified in the @GetByteMatchSet@ request. For more information, see the following topics: * 'ByteMatchSet' : Contains @ByteMatchSetId@ , @ByteMatchTuples@ , and @Name@ * @ByteMatchTuples@ : Contains an array of 'ByteMatchTuple' objects. Each @ByteMatchTuple@ object contains 'FieldToMatch' , @PositionalConstraint@ , @TargetString@ , and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ ----- * 'gbmsrsResponseStatus'+-- * 'gbmsrsResponseStatus' - -- | The response status code. getByteMatchSetResponse :: Int -- ^ 'gbmsrsResponseStatus' -> GetByteMatchSetResponse@@ -120,15 +122,11 @@ , _gbmsrsResponseStatus = pResponseStatus_ } --- | Information about the < ByteMatchSet> that you specified in the 'GetByteMatchSet' request. For more information, see the following topics:------ - < ByteMatchSet>: Contains 'ByteMatchSetId', 'ByteMatchTuples', and 'Name'--- - 'ByteMatchTuples': Contains an array of < ByteMatchTuple> objects. Each 'ByteMatchTuple' object contains < FieldToMatch>, 'PositionalConstraint', 'TargetString', and 'TextTransformation'--- - < FieldToMatch>: Contains 'Data' and 'Type'+-- | Information about the 'ByteMatchSet' that you specified in the @GetByteMatchSet@ request. For more information, see the following topics: * 'ByteMatchSet' : Contains @ByteMatchSetId@ , @ByteMatchTuples@ , and @Name@ * @ByteMatchTuples@ : Contains an array of 'ByteMatchTuple' objects. Each @ByteMatchTuple@ object contains 'FieldToMatch' , @PositionalConstraint@ , @TargetString@ , and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ gbmsrsByteMatchSet :: Lens' GetByteMatchSetResponse (Maybe ByteMatchSet) gbmsrsByteMatchSet = lens _gbmsrsByteMatchSet (\ s a -> s{_gbmsrsByteMatchSet = a}); --- | The response status code.+-- | -- | The response status code. gbmsrsResponseStatus :: Lens' GetByteMatchSetResponse Int gbmsrsResponseStatus = lens _gbmsrsResponseStatus (\ s a -> s{_gbmsrsResponseStatus = a});
gen/Network/AWS/WAF/GetChangeToken.hs view
@@ -18,11 +18,13 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- When you want to create, update, or delete AWS WAF objects, get a change token and include the change token in the create, update, or delete request. Change tokens ensure that your application doesn\'t submit conflicting requests to AWS WAF.+-- When you want to create, update, or delete AWS WAF objects, get a change token and include the change token in the create, update, or delete request. Change tokens ensure that your application doesn't submit conflicting requests to AWS WAF. ----- Each create, update, or delete request must use a unique change token. If your application submits a 'GetChangeToken' request and then submits a second 'GetChangeToken' request before submitting a create, update, or delete request, the second 'GetChangeToken' request returns the same value as the first 'GetChangeToken' request. ----- When you use a change token in a create, update, or delete request, the status of the change token changes to 'PENDING', which indicates that AWS WAF is propagating the change to all AWS WAF servers. Use 'GetChangeTokenStatus' to determine the status of your change token.+-- Each create, update, or delete request must use a unique change token. If your application submits a @GetChangeToken@ request and then submits a second @GetChangeToken@ request before submitting a create, update, or delete request, the second @GetChangeToken@ request returns the same value as the first @GetChangeToken@ request.+--+-- When you use a change token in a create, update, or delete request, the status of the change token changes to @PENDING@ , which indicates that AWS WAF is propagating the change to all AWS WAF servers. Use @GetChangeTokenStatus@ to determine the status of your change token.+-- module Network.AWS.WAF.GetChangeToken ( -- * Creating a Request@@ -96,9 +98,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gctrsChangeToken'+-- * 'gctrsChangeToken' - The @ChangeToken@ that you used in the request. Use this value in a @GetChangeTokenStatus@ request to get the current status of the request. ----- * 'gctrsResponseStatus'+-- * 'gctrsResponseStatus' - -- | The response status code. getChangeTokenResponse :: Int -- ^ 'gctrsResponseStatus' -> GetChangeTokenResponse@@ -108,11 +110,11 @@ , _gctrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used in the request. Use this value in a 'GetChangeTokenStatus' request to get the current status of the request.+-- | The @ChangeToken@ that you used in the request. Use this value in a @GetChangeTokenStatus@ request to get the current status of the request. gctrsChangeToken :: Lens' GetChangeTokenResponse (Maybe Text) gctrsChangeToken = lens _gctrsChangeToken (\ s a -> s{_gctrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. gctrsResponseStatus :: Lens' GetChangeTokenResponse Int gctrsResponseStatus = lens _gctrsResponseStatus (\ s a -> s{_gctrsResponseStatus = a});
gen/Network/AWS/WAF/GetChangeTokenStatus.hs view
@@ -18,11 +18,17 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns the status of a 'ChangeToken' that you got by calling < GetChangeToken>. 'ChangeTokenStatus' is one of the following values:+-- Returns the status of a @ChangeToken@ that you got by calling 'GetChangeToken' . @ChangeTokenStatus@ is one of the following values: ----- - 'PROVISIONED': You requested the change token by calling 'GetChangeToken', but you haven\'t used it yet in a call to create, update, or delete an AWS WAF object.--- - 'PENDING': AWS WAF is propagating the create, update, or delete request to all AWS WAF servers.--- - 'IN_SYNC': Propagation is complete.+--+-- * @PROVISIONED@ : You requested the change token by calling @GetChangeToken@ , but you haven't used it yet in a call to create, update, or delete an AWS WAF object.+--+-- * @PENDING@ : AWS WAF is propagating the create, update, or delete request to all AWS WAF servers.+--+-- * @IN_SYNC@ : Propagation is complete.+--+--+-- module Network.AWS.WAF.GetChangeTokenStatus ( -- * Creating a Request@@ -55,7 +61,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gctsChangeToken'+-- * 'gctsChangeToken' - The change token for which you want to get the status. This change token was previously returned in the @GetChangeToken@ response. getChangeTokenStatus :: Text -- ^ 'gctsChangeToken' -> GetChangeTokenStatus@@ -64,7 +70,7 @@ { _gctsChangeToken = pChangeToken_ } --- | The change token for which you want to get the status. This change token was previously returned in the 'GetChangeToken' response.+-- | The change token for which you want to get the status. This change token was previously returned in the @GetChangeToken@ response. gctsChangeToken :: Lens' GetChangeTokenStatus Text gctsChangeToken = lens _gctsChangeToken (\ s a -> s{_gctsChangeToken = a}); @@ -114,9 +120,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gctsrsChangeTokenStatus'+-- * 'gctsrsChangeTokenStatus' - The status of the change token. ----- * 'gctsrsResponseStatus'+-- * 'gctsrsResponseStatus' - -- | The response status code. getChangeTokenStatusResponse :: Int -- ^ 'gctsrsResponseStatus' -> GetChangeTokenStatusResponse@@ -130,7 +136,7 @@ gctsrsChangeTokenStatus :: Lens' GetChangeTokenStatusResponse (Maybe ChangeTokenStatus) gctsrsChangeTokenStatus = lens _gctsrsChangeTokenStatus (\ s a -> s{_gctsrsChangeTokenStatus = a}); --- | The response status code.+-- | -- | The response status code. gctsrsResponseStatus :: Lens' GetChangeTokenStatusResponse Int gctsrsResponseStatus = lens _gctsrsResponseStatus (\ s a -> s{_gctsrsResponseStatus = a});
gen/Network/AWS/WAF/GetIPSet.hs view
@@ -18,7 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns the < IPSet> that is specified by 'IPSetId'.+-- Returns the 'IPSet' that is specified by @IPSetId@ .+--+-- module Network.AWS.WAF.GetIPSet ( -- * Creating a Request@@ -51,7 +53,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gisIPSetId'+-- * 'gisIPSetId' - The @IPSetId@ of the 'IPSet' that you want to get. @IPSetId@ is returned by 'CreateIPSet' and by 'ListIPSets' . getIPSet :: Text -- ^ 'gisIPSetId' -> GetIPSet@@ -60,7 +62,7 @@ { _gisIPSetId = pIPSetId_ } --- | The 'IPSetId' of the < IPSet> that you want to get. 'IPSetId' is returned by < CreateIPSet> and by < ListIPSets>.+-- | The @IPSetId@ of the 'IPSet' that you want to get. @IPSetId@ is returned by 'CreateIPSet' and by 'ListIPSets' . gisIPSetId :: Lens' GetIPSet Text gisIPSetId = lens _gisIPSetId (\ s a -> s{_gisIPSetId = a}); @@ -107,9 +109,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gisrsIPSet'+-- * 'gisrsIPSet' - Information about the 'IPSet' that you specified in the @GetIPSet@ request. For more information, see the following topics: * 'IPSet' : Contains @IPSetDescriptors@ , @IPSetId@ , and @Name@ * @IPSetDescriptors@ : Contains an array of 'IPSetDescriptor' objects. Each @IPSetDescriptor@ object contains @Type@ and @Value@ ----- * 'gisrsResponseStatus'+-- * 'gisrsResponseStatus' - -- | The response status code. getIPSetResponse :: Int -- ^ 'gisrsResponseStatus' -> GetIPSetResponse@@ -119,14 +121,11 @@ , _gisrsResponseStatus = pResponseStatus_ } --- | Information about the < IPSet> that you specified in the 'GetIPSet' request. For more information, see the following topics:------ - < IPSet>: Contains 'IPSetDescriptors', 'IPSetId', and 'Name'--- - 'IPSetDescriptors': Contains an array of < IPSetDescriptor> objects. Each 'IPSetDescriptor' object contains 'Type' and 'Value'+-- | Information about the 'IPSet' that you specified in the @GetIPSet@ request. For more information, see the following topics: * 'IPSet' : Contains @IPSetDescriptors@ , @IPSetId@ , and @Name@ * @IPSetDescriptors@ : Contains an array of 'IPSetDescriptor' objects. Each @IPSetDescriptor@ object contains @Type@ and @Value@ gisrsIPSet :: Lens' GetIPSetResponse (Maybe IPSet) gisrsIPSet = lens _gisrsIPSet (\ s a -> s{_gisrsIPSet = a}); --- | The response status code.+-- | -- | The response status code. gisrsResponseStatus :: Lens' GetIPSetResponse Int gisrsResponseStatus = lens _gisrsResponseStatus (\ s a -> s{_gisrsResponseStatus = a});
gen/Network/AWS/WAF/GetRule.hs view
@@ -18,7 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns the < Rule> that is specified by the 'RuleId' that you included in the 'GetRule' request.+-- Returns the 'Rule' that is specified by the @RuleId@ that you included in the @GetRule@ request.+--+-- module Network.AWS.WAF.GetRule ( -- * Creating a Request@@ -51,7 +53,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'grRuleId'+-- * 'grRuleId' - The @RuleId@ of the 'Rule' that you want to get. @RuleId@ is returned by 'CreateRule' and by 'ListRules' . getRule :: Text -- ^ 'grRuleId' -> GetRule@@ -60,7 +62,7 @@ { _grRuleId = pRuleId_ } --- | The 'RuleId' of the < Rule> that you want to get. 'RuleId' is returned by < CreateRule> and by < ListRules>.+-- | The @RuleId@ of the 'Rule' that you want to get. @RuleId@ is returned by 'CreateRule' and by 'ListRules' . grRuleId :: Lens' GetRule Text grRuleId = lens _grRuleId (\ s a -> s{_grRuleId = a}); @@ -106,9 +108,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'grrsRule'+-- * 'grrsRule' - Information about the 'Rule' that you specified in the @GetRule@ request. For more information, see the following topics: * 'Rule' : Contains @MetricName@ , @Name@ , an array of @Predicate@ objects, and @RuleId@ * 'Predicate' : Each @Predicate@ object contains @DataId@ , @Negated@ , and @Type@ ----- * 'grrsResponseStatus'+-- * 'grrsResponseStatus' - -- | The response status code. getRuleResponse :: Int -- ^ 'grrsResponseStatus' -> GetRuleResponse@@ -118,14 +120,11 @@ , _grrsResponseStatus = pResponseStatus_ } --- | Information about the < Rule> that you specified in the 'GetRule' request. For more information, see the following topics:------ - < Rule>: Contains 'MetricName', 'Name', an array of 'Predicate' objects, and 'RuleId'--- - < Predicate>: Each 'Predicate' object contains 'DataId', 'Negated', and 'Type'+-- | Information about the 'Rule' that you specified in the @GetRule@ request. For more information, see the following topics: * 'Rule' : Contains @MetricName@ , @Name@ , an array of @Predicate@ objects, and @RuleId@ * 'Predicate' : Each @Predicate@ object contains @DataId@ , @Negated@ , and @Type@ grrsRule :: Lens' GetRuleResponse (Maybe Rule) grrsRule = lens _grrsRule (\ s a -> s{_grrsRule = a}); --- | The response status code.+-- | -- | The response status code. grrsResponseStatus :: Lens' GetRuleResponse Int grrsResponseStatus = lens _grrsResponseStatus (\ s a -> s{_grrsResponseStatus = a});
gen/Network/AWS/WAF/GetSampledRequests.hs view
@@ -20,7 +20,9 @@ -- -- Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS resource received during a time range that you choose. You can specify a sample size of up to 100 requests, and you can specify any time range in the previous three hours. ----- 'GetSampledRequests' returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, 'GetSampledRequests' returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.+--+-- @GetSampledRequests@ returns a time range, which is usually the time range that you specified. However, if your resource (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, @GetSampledRequests@ returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.+-- module Network.AWS.WAF.GetSampledRequests ( -- * Creating a Request@@ -61,13 +63,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gsrWebACLId'+-- * 'gsrWebACLId' - The @WebACLId@ of the @WebACL@ for which you want @GetSampledRequests@ to return a sample of requests. ----- * 'gsrRuleId'+-- * 'gsrRuleId' - @RuleId@ is one of two values: * The @RuleId@ of the @Rule@ for which you want @GetSampledRequests@ to return a sample of requests. * @Default_Action@ , which causes @GetSampledRequests@ to return a sample of the requests that didn't match any of the rules in the specified @WebACL@ . ----- * 'gsrTimeWindow'+-- * 'gsrTimeWindow' - The start date and time and the end date and time of the range for which you want @GetSampledRequests@ to return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours. ----- * 'gsrMaxItems'+-- * 'gsrMaxItems' - The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of @MaxItems@ , @GetSampledRequests@ returns information about all of them. getSampledRequests :: Text -- ^ 'gsrWebACLId' -> Text -- ^ 'gsrRuleId'@@ -82,22 +84,19 @@ , _gsrMaxItems = _Nat # pMaxItems_ } --- | The 'WebACLId' of the 'WebACL' for which you want 'GetSampledRequests' to return a sample of requests.+-- | The @WebACLId@ of the @WebACL@ for which you want @GetSampledRequests@ to return a sample of requests. gsrWebACLId :: Lens' GetSampledRequests Text gsrWebACLId = lens _gsrWebACLId (\ s a -> s{_gsrWebACLId = a}); --- | 'RuleId' is one of two values:------ - The 'RuleId' of the 'Rule' for which you want 'GetSampledRequests' to return a sample of requests.--- - 'Default_Action', which causes 'GetSampledRequests' to return a sample of the requests that didn\'t match any of the rules in the specified 'WebACL'.+-- | @RuleId@ is one of two values: * The @RuleId@ of the @Rule@ for which you want @GetSampledRequests@ to return a sample of requests. * @Default_Action@ , which causes @GetSampledRequests@ to return a sample of the requests that didn't match any of the rules in the specified @WebACL@ . gsrRuleId :: Lens' GetSampledRequests Text gsrRuleId = lens _gsrRuleId (\ s a -> s{_gsrRuleId = a}); --- | The start date and time and the end date and time of the range for which you want 'GetSampledRequests' to return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours.+-- | The start date and time and the end date and time of the range for which you want @GetSampledRequests@ to return a sample of requests. Specify the date and time in Unix time format (in seconds). You can specify any time range in the previous three hours. gsrTimeWindow :: Lens' GetSampledRequests TimeWindow gsrTimeWindow = lens _gsrTimeWindow (\ s a -> s{_gsrTimeWindow = a}); --- | The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of 'MaxItems', 'GetSampledRequests' returns information about all of them.+-- | The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of @MaxItems@ , @GetSampledRequests@ returns information about all of them. gsrMaxItems :: Lens' GetSampledRequests Natural gsrMaxItems = lens _gsrMaxItems (\ s a -> s{_gsrMaxItems = a}) . _Nat; @@ -154,13 +153,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gsrrsSampledRequests'+-- * 'gsrrsSampledRequests' - A complex type that contains detailed information about each of the requests in the sample. ----- * 'gsrrsPopulationSize'+-- * 'gsrrsPopulationSize' - The total number of requests from which @GetSampledRequests@ got a sample of @MaxItems@ requests. If @PopulationSize@ is less than @MaxItems@ , the sample includes every request that your AWS resource received during the specified time range. ----- * 'gsrrsTimeWindow'+-- * 'gsrrsTimeWindow' - Usually, @TimeWindow@ is the time range that you specified in the @GetSampledRequests@ request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request, @GetSampledRequests@ returns the time range for the first 5,000 requests. ----- * 'gsrrsResponseStatus'+-- * 'gsrrsResponseStatus' - -- | The response status code. getSampledRequestsResponse :: Int -- ^ 'gsrrsResponseStatus' -> GetSampledRequestsResponse@@ -176,15 +175,15 @@ gsrrsSampledRequests :: Lens' GetSampledRequestsResponse [SampledHTTPRequest] gsrrsSampledRequests = lens _gsrrsSampledRequests (\ s a -> s{_gsrrsSampledRequests = a}) . _Default . _Coerce; --- | The total number of requests from which 'GetSampledRequests' got a sample of 'MaxItems' requests. If 'PopulationSize' is less than 'MaxItems', the sample includes every request that your AWS resource received during the specified time range.+-- | The total number of requests from which @GetSampledRequests@ got a sample of @MaxItems@ requests. If @PopulationSize@ is less than @MaxItems@ , the sample includes every request that your AWS resource received during the specified time range. gsrrsPopulationSize :: Lens' GetSampledRequestsResponse (Maybe Integer) gsrrsPopulationSize = lens _gsrrsPopulationSize (\ s a -> s{_gsrrsPopulationSize = a}); --- | Usually, 'TimeWindow' is the time range that you specified in the 'GetSampledRequests' request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request, 'GetSampledRequests' returns the time range for the first 5,000 requests.+-- | Usually, @TimeWindow@ is the time range that you specified in the @GetSampledRequests@ request. However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request, @GetSampledRequests@ returns the time range for the first 5,000 requests. gsrrsTimeWindow :: Lens' GetSampledRequestsResponse (Maybe TimeWindow) gsrrsTimeWindow = lens _gsrrsTimeWindow (\ s a -> s{_gsrrsTimeWindow = a}); --- | The response status code.+-- | -- | The response status code. gsrrsResponseStatus :: Lens' GetSampledRequestsResponse Int gsrrsResponseStatus = lens _gsrrsResponseStatus (\ s a -> s{_gsrrsResponseStatus = a});
gen/Network/AWS/WAF/GetSizeConstraintSet.hs view
@@ -18,7 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns the < SizeConstraintSet> specified by 'SizeConstraintSetId'.+-- Returns the 'SizeConstraintSet' specified by @SizeConstraintSetId@ .+--+-- module Network.AWS.WAF.GetSizeConstraintSet ( -- * Creating a Request@@ -51,7 +53,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gscsSizeConstraintSetId'+-- * 'gscsSizeConstraintSetId' - The @SizeConstraintSetId@ of the 'SizeConstraintSet' that you want to get. @SizeConstraintSetId@ is returned by 'CreateSizeConstraintSet' and by 'ListSizeConstraintSets' . getSizeConstraintSet :: Text -- ^ 'gscsSizeConstraintSetId' -> GetSizeConstraintSet@@ -60,7 +62,7 @@ { _gscsSizeConstraintSetId = pSizeConstraintSetId_ } --- | The 'SizeConstraintSetId' of the < SizeConstraintSet> that you want to get. 'SizeConstraintSetId' is returned by < CreateSizeConstraintSet> and by < ListSizeConstraintSets>.+-- | The @SizeConstraintSetId@ of the 'SizeConstraintSet' that you want to get. @SizeConstraintSetId@ is returned by 'CreateSizeConstraintSet' and by 'ListSizeConstraintSets' . gscsSizeConstraintSetId :: Lens' GetSizeConstraintSet Text gscsSizeConstraintSetId = lens _gscsSizeConstraintSetId (\ s a -> s{_gscsSizeConstraintSetId = a}); @@ -111,9 +113,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gscsrsSizeConstraintSet'+-- * 'gscsrsSizeConstraintSet' - Information about the 'SizeConstraintSet' that you specified in the @GetSizeConstraintSet@ request. For more information, see the following topics: * 'SizeConstraintSet' : Contains @SizeConstraintSetId@ , @SizeConstraints@ , and @Name@ * @SizeConstraints@ : Contains an array of 'SizeConstraint' objects. Each @SizeConstraint@ object contains 'FieldToMatch' , @TextTransformation@ , @ComparisonOperator@ , and @Size@ * 'FieldToMatch' : Contains @Data@ and @Type@ ----- * 'gscsrsResponseStatus'+-- * 'gscsrsResponseStatus' - -- | The response status code. getSizeConstraintSetResponse :: Int -- ^ 'gscsrsResponseStatus' -> GetSizeConstraintSetResponse@@ -123,15 +125,11 @@ , _gscsrsResponseStatus = pResponseStatus_ } --- | Information about the < SizeConstraintSet> that you specified in the 'GetSizeConstraintSet' request. For more information, see the following topics:------ - < SizeConstraintSet>: Contains 'SizeConstraintSetId', 'SizeConstraints', and 'Name'--- - 'SizeConstraints': Contains an array of < SizeConstraint> objects. Each 'SizeConstraint' object contains < FieldToMatch>, 'TextTransformation', 'ComparisonOperator', and 'Size'--- - < FieldToMatch>: Contains 'Data' and 'Type'+-- | Information about the 'SizeConstraintSet' that you specified in the @GetSizeConstraintSet@ request. For more information, see the following topics: * 'SizeConstraintSet' : Contains @SizeConstraintSetId@ , @SizeConstraints@ , and @Name@ * @SizeConstraints@ : Contains an array of 'SizeConstraint' objects. Each @SizeConstraint@ object contains 'FieldToMatch' , @TextTransformation@ , @ComparisonOperator@ , and @Size@ * 'FieldToMatch' : Contains @Data@ and @Type@ gscsrsSizeConstraintSet :: Lens' GetSizeConstraintSetResponse (Maybe SizeConstraintSet) gscsrsSizeConstraintSet = lens _gscsrsSizeConstraintSet (\ s a -> s{_gscsrsSizeConstraintSet = a}); --- | The response status code.+-- | -- | The response status code. gscsrsResponseStatus :: Lens' GetSizeConstraintSetResponse Int gscsrsResponseStatus = lens _gscsrsResponseStatus (\ s a -> s{_gscsrsResponseStatus = a});
gen/Network/AWS/WAF/GetSqlInjectionMatchSet.hs view
@@ -18,7 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns the < SqlInjectionMatchSet> that is specified by 'SqlInjectionMatchSetId'.+-- Returns the 'SqlInjectionMatchSet' that is specified by @SqlInjectionMatchSetId@ .+--+-- module Network.AWS.WAF.GetSqlInjectionMatchSet ( -- * Creating a Request@@ -42,8 +44,10 @@ import Network.AWS.WAF.Types import Network.AWS.WAF.Types.Product --- | A request to get a < SqlInjectionMatchSet>.+-- | A request to get a 'SqlInjectionMatchSet' . --+--+-- -- /See:/ 'getSqlInjectionMatchSet' smart constructor. newtype GetSqlInjectionMatchSet = GetSqlInjectionMatchSet' { _gsimsSqlInjectionMatchSetId :: Text@@ -53,7 +57,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gsimsSqlInjectionMatchSetId'+-- * 'gsimsSqlInjectionMatchSetId' - The @SqlInjectionMatchSetId@ of the 'SqlInjectionMatchSet' that you want to get. @SqlInjectionMatchSetId@ is returned by 'CreateSqlInjectionMatchSet' and by 'ListSqlInjectionMatchSets' . getSqlInjectionMatchSet :: Text -- ^ 'gsimsSqlInjectionMatchSetId' -> GetSqlInjectionMatchSet@@ -62,7 +66,7 @@ { _gsimsSqlInjectionMatchSetId = pSqlInjectionMatchSetId_ } --- | The 'SqlInjectionMatchSetId' of the < SqlInjectionMatchSet> that you want to get. 'SqlInjectionMatchSetId' is returned by < CreateSqlInjectionMatchSet> and by < ListSqlInjectionMatchSets>.+-- | The @SqlInjectionMatchSetId@ of the 'SqlInjectionMatchSet' that you want to get. @SqlInjectionMatchSetId@ is returned by 'CreateSqlInjectionMatchSet' and by 'ListSqlInjectionMatchSets' . gsimsSqlInjectionMatchSetId :: Lens' GetSqlInjectionMatchSet Text gsimsSqlInjectionMatchSetId = lens _gsimsSqlInjectionMatchSetId (\ s a -> s{_gsimsSqlInjectionMatchSetId = a}); @@ -105,8 +109,10 @@ instance ToQuery GetSqlInjectionMatchSet where toQuery = const mempty --- | The response to a < GetSqlInjectionMatchSet> request.+-- | The response to a 'GetSqlInjectionMatchSet' request. --+--+-- -- /See:/ 'getSqlInjectionMatchSetResponse' smart constructor. data GetSqlInjectionMatchSetResponse = GetSqlInjectionMatchSetResponse' { _gsimsrsSqlInjectionMatchSet :: !(Maybe SqlInjectionMatchSet)@@ -117,9 +123,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gsimsrsSqlInjectionMatchSet'+-- * 'gsimsrsSqlInjectionMatchSet' - Information about the 'SqlInjectionMatchSet' that you specified in the @GetSqlInjectionMatchSet@ request. For more information, see the following topics: * 'SqlInjectionMatchSet' : Contains @Name@ , @SqlInjectionMatchSetId@ , and an array of @SqlInjectionMatchTuple@ objects * 'SqlInjectionMatchTuple' : Each @SqlInjectionMatchTuple@ object contains @FieldToMatch@ and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ ----- * 'gsimsrsResponseStatus'+-- * 'gsimsrsResponseStatus' - -- | The response status code. getSqlInjectionMatchSetResponse :: Int -- ^ 'gsimsrsResponseStatus' -> GetSqlInjectionMatchSetResponse@@ -129,15 +135,11 @@ , _gsimsrsResponseStatus = pResponseStatus_ } --- | Information about the < SqlInjectionMatchSet> that you specified in the 'GetSqlInjectionMatchSet' request. For more information, see the following topics:------ - < SqlInjectionMatchSet>: Contains 'Name', 'SqlInjectionMatchSetId', and an array of 'SqlInjectionMatchTuple' objects--- - < SqlInjectionMatchTuple>: Each 'SqlInjectionMatchTuple' object contains 'FieldToMatch' and 'TextTransformation'--- - < FieldToMatch>: Contains 'Data' and 'Type'+-- | Information about the 'SqlInjectionMatchSet' that you specified in the @GetSqlInjectionMatchSet@ request. For more information, see the following topics: * 'SqlInjectionMatchSet' : Contains @Name@ , @SqlInjectionMatchSetId@ , and an array of @SqlInjectionMatchTuple@ objects * 'SqlInjectionMatchTuple' : Each @SqlInjectionMatchTuple@ object contains @FieldToMatch@ and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ gsimsrsSqlInjectionMatchSet :: Lens' GetSqlInjectionMatchSetResponse (Maybe SqlInjectionMatchSet) gsimsrsSqlInjectionMatchSet = lens _gsimsrsSqlInjectionMatchSet (\ s a -> s{_gsimsrsSqlInjectionMatchSet = a}); --- | The response status code.+-- | -- | The response status code. gsimsrsResponseStatus :: Lens' GetSqlInjectionMatchSetResponse Int gsimsrsResponseStatus = lens _gsimsrsResponseStatus (\ s a -> s{_gsimsrsResponseStatus = a});
gen/Network/AWS/WAF/GetWebACL.hs view
@@ -18,7 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns the < WebACL> that is specified by 'WebACLId'.+-- Returns the 'WebACL' that is specified by @WebACLId@ .+--+-- module Network.AWS.WAF.GetWebACL ( -- * Creating a Request@@ -51,7 +53,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gwaWebACLId'+-- * 'gwaWebACLId' - The @WebACLId@ of the 'WebACL' that you want to get. @WebACLId@ is returned by 'CreateWebACL' and by 'ListWebACLs' . getWebACL :: Text -- ^ 'gwaWebACLId' -> GetWebACL@@ -60,7 +62,7 @@ { _gwaWebACLId = pWebACLId_ } --- | The 'WebACLId' of the < WebACL> that you want to get. 'WebACLId' is returned by < CreateWebACL> and by < ListWebACLs>.+-- | The @WebACLId@ of the 'WebACL' that you want to get. @WebACLId@ is returned by 'CreateWebACL' and by 'ListWebACLs' . gwaWebACLId :: Lens' GetWebACL Text gwaWebACLId = lens _gwaWebACLId (\ s a -> s{_gwaWebACLId = a}); @@ -107,9 +109,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gwarsWebACL'+-- * 'gwarsWebACL' - Information about the 'WebACL' that you specified in the @GetWebACL@ request. For more information, see the following topics: * 'WebACL' : Contains @DefaultAction@ , @MetricName@ , @Name@ , an array of @Rule@ objects, and @WebACLId@ * @DefaultAction@ (Data type is 'WafAction' ): Contains @Type@ * @Rules@ : Contains an array of @ActivatedRule@ objects, which contain @Action@ , @Priority@ , and @RuleId@ * @Action@ : Contains @Type@ ----- * 'gwarsResponseStatus'+-- * 'gwarsResponseStatus' - -- | The response status code. getWebACLResponse :: Int -- ^ 'gwarsResponseStatus' -> GetWebACLResponse@@ -119,16 +121,11 @@ , _gwarsResponseStatus = pResponseStatus_ } --- | Information about the < WebACL> that you specified in the 'GetWebACL' request. For more information, see the following topics:------ - < WebACL>: Contains 'DefaultAction', 'MetricName', 'Name', an array of 'Rule' objects, and 'WebACLId'--- - 'DefaultAction' (Data type is < WafAction>): Contains 'Type'--- - 'Rules': Contains an array of 'ActivatedRule' objects, which contain 'Action', 'Priority', and 'RuleId'--- - 'Action': Contains 'Type'+-- | Information about the 'WebACL' that you specified in the @GetWebACL@ request. For more information, see the following topics: * 'WebACL' : Contains @DefaultAction@ , @MetricName@ , @Name@ , an array of @Rule@ objects, and @WebACLId@ * @DefaultAction@ (Data type is 'WafAction' ): Contains @Type@ * @Rules@ : Contains an array of @ActivatedRule@ objects, which contain @Action@ , @Priority@ , and @RuleId@ * @Action@ : Contains @Type@ gwarsWebACL :: Lens' GetWebACLResponse (Maybe WebACL) gwarsWebACL = lens _gwarsWebACL (\ s a -> s{_gwarsWebACL = a}); --- | The response status code.+-- | -- | The response status code. gwarsResponseStatus :: Lens' GetWebACLResponse Int gwarsResponseStatus = lens _gwarsResponseStatus (\ s a -> s{_gwarsResponseStatus = a});
gen/Network/AWS/WAF/GetXSSMatchSet.hs view
@@ -18,7 +18,9 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns the < XssMatchSet> that is specified by 'XssMatchSetId'.+-- Returns the 'XssMatchSet' that is specified by @XssMatchSetId@ .+--+-- module Network.AWS.WAF.GetXSSMatchSet ( -- * Creating a Request@@ -42,8 +44,10 @@ import Network.AWS.WAF.Types import Network.AWS.WAF.Types.Product --- | A request to get an < XssMatchSet>.+-- | A request to get an 'XssMatchSet' . --+--+-- -- /See:/ 'getXSSMatchSet' smart constructor. newtype GetXSSMatchSet = GetXSSMatchSet' { _gxmsXSSMatchSetId :: Text@@ -53,7 +57,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gxmsXSSMatchSetId'+-- * 'gxmsXSSMatchSetId' - The @XssMatchSetId@ of the 'XssMatchSet' that you want to get. @XssMatchSetId@ is returned by 'CreateXssMatchSet' and by 'ListXssMatchSets' . getXSSMatchSet :: Text -- ^ 'gxmsXSSMatchSetId' -> GetXSSMatchSet@@ -62,7 +66,7 @@ { _gxmsXSSMatchSetId = pXSSMatchSetId_ } --- | The 'XssMatchSetId' of the < XssMatchSet> that you want to get. 'XssMatchSetId' is returned by < CreateXssMatchSet> and by < ListXssMatchSets>.+-- | The @XssMatchSetId@ of the 'XssMatchSet' that you want to get. @XssMatchSetId@ is returned by 'CreateXssMatchSet' and by 'ListXssMatchSets' . gxmsXSSMatchSetId :: Lens' GetXSSMatchSet Text gxmsXSSMatchSetId = lens _gxmsXSSMatchSetId (\ s a -> s{_gxmsXSSMatchSetId = a}); @@ -100,8 +104,10 @@ instance ToQuery GetXSSMatchSet where toQuery = const mempty --- | The response to a < GetXssMatchSet> request.+-- | The response to a 'GetXssMatchSet' request. --+--+-- -- /See:/ 'getXSSMatchSetResponse' smart constructor. data GetXSSMatchSetResponse = GetXSSMatchSetResponse' { _gxmsrsXSSMatchSet :: !(Maybe XSSMatchSet)@@ -112,9 +118,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'gxmsrsXSSMatchSet'+-- * 'gxmsrsXSSMatchSet' - Information about the 'XssMatchSet' that you specified in the @GetXssMatchSet@ request. For more information, see the following topics: * 'XssMatchSet' : Contains @Name@ , @XssMatchSetId@ , and an array of @XssMatchTuple@ objects * 'XssMatchTuple' : Each @XssMatchTuple@ object contains @FieldToMatch@ and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ ----- * 'gxmsrsResponseStatus'+-- * 'gxmsrsResponseStatus' - -- | The response status code. getXSSMatchSetResponse :: Int -- ^ 'gxmsrsResponseStatus' -> GetXSSMatchSetResponse@@ -124,15 +130,11 @@ , _gxmsrsResponseStatus = pResponseStatus_ } --- | Information about the < XssMatchSet> that you specified in the 'GetXssMatchSet' request. For more information, see the following topics:------ - < XssMatchSet>: Contains 'Name', 'XssMatchSetId', and an array of 'XssMatchTuple' objects--- - < XssMatchTuple>: Each 'XssMatchTuple' object contains 'FieldToMatch' and 'TextTransformation'--- - < FieldToMatch>: Contains 'Data' and 'Type'+-- | Information about the 'XssMatchSet' that you specified in the @GetXssMatchSet@ request. For more information, see the following topics: * 'XssMatchSet' : Contains @Name@ , @XssMatchSetId@ , and an array of @XssMatchTuple@ objects * 'XssMatchTuple' : Each @XssMatchTuple@ object contains @FieldToMatch@ and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ gxmsrsXSSMatchSet :: Lens' GetXSSMatchSetResponse (Maybe XSSMatchSet) gxmsrsXSSMatchSet = lens _gxmsrsXSSMatchSet (\ s a -> s{_gxmsrsXSSMatchSet = a}); --- | The response status code.+-- | -- | The response status code. gxmsrsResponseStatus :: Lens' GetXSSMatchSetResponse Int gxmsrsResponseStatus = lens _gxmsrsResponseStatus (\ s a -> s{_gxmsrsResponseStatus = a});
gen/Network/AWS/WAF/ListByteMatchSets.hs view
@@ -18,7 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns an array of < ByteMatchSetSummary> objects.+-- Returns an array of 'ByteMatchSetSummary' objects.+--+--+--+-- This operation returns paginated results. module Network.AWS.WAF.ListByteMatchSets ( -- * Creating a Request@@ -38,6 +42,7 @@ ) where import Network.AWS.Lens+import Network.AWS.Pager import Network.AWS.Prelude import Network.AWS.Request import Network.AWS.Response@@ -47,33 +52,39 @@ -- | /See:/ 'listByteMatchSets' smart constructor. data ListByteMatchSets = ListByteMatchSets' { _lbmsNextMarker :: !(Maybe Text)- , _lbmsLimit :: !Nat+ , _lbmsLimit :: !(Maybe Nat) } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'ListByteMatchSets' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lbmsNextMarker'+-- * 'lbmsNextMarker' - If you specify a value for @Limit@ and you have more @ByteMatchSets@ than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @ByteMatchSets@ . For the second and subsequent @ListByteMatchSets@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @ByteMatchSets@ . ----- * 'lbmsLimit'+-- * 'lbmsLimit' - Specifies the number of @ByteMatchSet@ objects that you want AWS WAF to return for this request. If you have more @ByteMatchSets@ objects than the number you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @ByteMatchSet@ objects. listByteMatchSets- :: Natural -- ^ 'lbmsLimit'- -> ListByteMatchSets-listByteMatchSets pLimit_ =+ :: ListByteMatchSets+listByteMatchSets = ListByteMatchSets' { _lbmsNextMarker = Nothing- , _lbmsLimit = _Nat # pLimit_+ , _lbmsLimit = Nothing } --- | If you specify a value for 'Limit' and you have more 'ByteMatchSets' than the value of 'Limit', AWS WAF returns a 'NextMarker' value in the response that allows you to list another group of 'ByteMatchSets'. For the second and subsequent 'ListByteMatchSets' requests, specify the value of 'NextMarker' from the previous response to get information about another batch of 'ByteMatchSets'.+-- | If you specify a value for @Limit@ and you have more @ByteMatchSets@ than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @ByteMatchSets@ . For the second and subsequent @ListByteMatchSets@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @ByteMatchSets@ . lbmsNextMarker :: Lens' ListByteMatchSets (Maybe Text) lbmsNextMarker = lens _lbmsNextMarker (\ s a -> s{_lbmsNextMarker = a}); --- | Specifies the number of 'ByteMatchSet' objects that you want AWS WAF to return for this request. If you have more 'ByteMatchSets' objects than the number you specify for 'Limit', the response includes a 'NextMarker' value that you can use to get another batch of 'ByteMatchSet' objects.-lbmsLimit :: Lens' ListByteMatchSets Natural-lbmsLimit = lens _lbmsLimit (\ s a -> s{_lbmsLimit = a}) . _Nat;+-- | Specifies the number of @ByteMatchSet@ objects that you want AWS WAF to return for this request. If you have more @ByteMatchSets@ objects than the number you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @ByteMatchSet@ objects.+lbmsLimit :: Lens' ListByteMatchSets (Maybe Natural)+lbmsLimit = lens _lbmsLimit (\ s a -> s{_lbmsLimit = a}) . mapping _Nat; +instance AWSPager ListByteMatchSets where+ page rq rs+ | stop (rs ^. lbmsrsNextMarker) = Nothing+ | stop (rs ^. lbmsrsByteMatchSets) = Nothing+ | otherwise =+ Just $ rq & lbmsNextMarker .~ rs ^. lbmsrsNextMarker+ instance AWSRequest ListByteMatchSets where type Rs ListByteMatchSets = ListByteMatchSetsResponse request = postJSON waf@@ -103,7 +114,7 @@ = object (catMaybes [("NextMarker" .=) <$> _lbmsNextMarker,- Just ("Limit" .= _lbmsLimit)])+ ("Limit" .=) <$> _lbmsLimit]) instance ToPath ListByteMatchSets where toPath = const "/"@@ -122,11 +133,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lbmsrsByteMatchSets'+-- * 'lbmsrsByteMatchSets' - An array of 'ByteMatchSetSummary' objects. ----- * 'lbmsrsNextMarker'+-- * 'lbmsrsNextMarker' - If you have more @ByteMatchSet@ objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @ByteMatchSet@ objects, submit another @ListByteMatchSets@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. ----- * 'lbmsrsResponseStatus'+-- * 'lbmsrsResponseStatus' - -- | The response status code. listByteMatchSetsResponse :: Int -- ^ 'lbmsrsResponseStatus' -> ListByteMatchSetsResponse@@ -137,15 +148,15 @@ , _lbmsrsResponseStatus = pResponseStatus_ } --- | An array of < ByteMatchSetSummary> objects.+-- | An array of 'ByteMatchSetSummary' objects. lbmsrsByteMatchSets :: Lens' ListByteMatchSetsResponse [ByteMatchSetSummary] lbmsrsByteMatchSets = lens _lbmsrsByteMatchSets (\ s a -> s{_lbmsrsByteMatchSets = a}) . _Default . _Coerce; --- | If you have more 'ByteMatchSet' objects than the number that you specified for 'Limit' in the request, the response includes a 'NextMarker' value. To list more 'ByteMatchSet' objects, submit another 'ListByteMatchSets' request, and specify the 'NextMarker' value from the response in the 'NextMarker' value in the next request.+-- | If you have more @ByteMatchSet@ objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @ByteMatchSet@ objects, submit another @ListByteMatchSets@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. lbmsrsNextMarker :: Lens' ListByteMatchSetsResponse (Maybe Text) lbmsrsNextMarker = lens _lbmsrsNextMarker (\ s a -> s{_lbmsrsNextMarker = a}); --- | The response status code.+-- | -- | The response status code. lbmsrsResponseStatus :: Lens' ListByteMatchSetsResponse Int lbmsrsResponseStatus = lens _lbmsrsResponseStatus (\ s a -> s{_lbmsrsResponseStatus = a});
gen/Network/AWS/WAF/ListIPSets.hs view
@@ -18,7 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns an array of < IPSetSummary> objects in the response.+-- Returns an array of 'IPSetSummary' objects in the response.+--+--+--+-- This operation returns paginated results. module Network.AWS.WAF.ListIPSets ( -- * Creating a Request@@ -38,6 +42,7 @@ ) where import Network.AWS.Lens+import Network.AWS.Pager import Network.AWS.Prelude import Network.AWS.Request import Network.AWS.Response@@ -47,33 +52,39 @@ -- | /See:/ 'listIPSets' smart constructor. data ListIPSets = ListIPSets' { _lisNextMarker :: !(Maybe Text)- , _lisLimit :: !Nat+ , _lisLimit :: !(Maybe Nat) } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'ListIPSets' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lisNextMarker'+-- * 'lisNextMarker' - If you specify a value for @Limit@ and you have more @IPSets@ than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @IPSets@ . For the second and subsequent @ListIPSets@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @ByteMatchSets@ . ----- * 'lisLimit'+-- * 'lisLimit' - Specifies the number of @IPSet@ objects that you want AWS WAF to return for this request. If you have more @IPSet@ objects than the number you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @IPSet@ objects. listIPSets- :: Natural -- ^ 'lisLimit'- -> ListIPSets-listIPSets pLimit_ =+ :: ListIPSets+listIPSets = ListIPSets' { _lisNextMarker = Nothing- , _lisLimit = _Nat # pLimit_+ , _lisLimit = Nothing } --- | If you specify a value for 'Limit' and you have more 'IPSets' than the value of 'Limit', AWS WAF returns a 'NextMarker' value in the response that allows you to list another group of 'IPSets'. For the second and subsequent 'ListIPSets' requests, specify the value of 'NextMarker' from the previous response to get information about another batch of 'ByteMatchSets'.+-- | If you specify a value for @Limit@ and you have more @IPSets@ than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @IPSets@ . For the second and subsequent @ListIPSets@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @ByteMatchSets@ . lisNextMarker :: Lens' ListIPSets (Maybe Text) lisNextMarker = lens _lisNextMarker (\ s a -> s{_lisNextMarker = a}); --- | Specifies the number of 'IPSet' objects that you want AWS WAF to return for this request. If you have more 'IPSet' objects than the number you specify for 'Limit', the response includes a 'NextMarker' value that you can use to get another batch of 'IPSet' objects.-lisLimit :: Lens' ListIPSets Natural-lisLimit = lens _lisLimit (\ s a -> s{_lisLimit = a}) . _Nat;+-- | Specifies the number of @IPSet@ objects that you want AWS WAF to return for this request. If you have more @IPSet@ objects than the number you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @IPSet@ objects.+lisLimit :: Lens' ListIPSets (Maybe Natural)+lisLimit = lens _lisLimit (\ s a -> s{_lisLimit = a}) . mapping _Nat; +instance AWSPager ListIPSets where+ page rq rs+ | stop (rs ^. lisrsNextMarker) = Nothing+ | stop (rs ^. lisrsIPSets) = Nothing+ | otherwise =+ Just $ rq & lisNextMarker .~ rs ^. lisrsNextMarker+ instance AWSRequest ListIPSets where type Rs ListIPSets = ListIPSetsResponse request = postJSON waf@@ -102,7 +113,7 @@ = object (catMaybes [("NextMarker" .=) <$> _lisNextMarker,- Just ("Limit" .= _lisLimit)])+ ("Limit" .=) <$> _lisLimit]) instance ToPath ListIPSets where toPath = const "/"@@ -121,11 +132,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lisrsNextMarker'+-- * 'lisrsNextMarker' - If you have more @IPSet@ objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @IPSet@ objects, submit another @ListIPSets@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. ----- * 'lisrsIPSets'+-- * 'lisrsIPSets' - An array of 'IPSetSummary' objects. ----- * 'lisrsResponseStatus'+-- * 'lisrsResponseStatus' - -- | The response status code. listIPSetsResponse :: Int -- ^ 'lisrsResponseStatus' -> ListIPSetsResponse@@ -136,15 +147,15 @@ , _lisrsResponseStatus = pResponseStatus_ } --- | If you have more 'IPSet' objects than the number that you specified for 'Limit' in the request, the response includes a 'NextMarker' value. To list more 'IPSet' objects, submit another 'ListIPSets' request, and specify the 'NextMarker' value from the response in the 'NextMarker' value in the next request.+-- | If you have more @IPSet@ objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @IPSet@ objects, submit another @ListIPSets@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. lisrsNextMarker :: Lens' ListIPSetsResponse (Maybe Text) lisrsNextMarker = lens _lisrsNextMarker (\ s a -> s{_lisrsNextMarker = a}); --- | An array of < IPSetSummary> objects.+-- | An array of 'IPSetSummary' objects. lisrsIPSets :: Lens' ListIPSetsResponse [IPSetSummary] lisrsIPSets = lens _lisrsIPSets (\ s a -> s{_lisrsIPSets = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. lisrsResponseStatus :: Lens' ListIPSetsResponse Int lisrsResponseStatus = lens _lisrsResponseStatus (\ s a -> s{_lisrsResponseStatus = a});
gen/Network/AWS/WAF/ListRules.hs view
@@ -18,7 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns an array of < RuleSummary> objects.+-- Returns an array of 'RuleSummary' objects.+--+--+--+-- This operation returns paginated results. module Network.AWS.WAF.ListRules ( -- * Creating a Request@@ -38,6 +42,7 @@ ) where import Network.AWS.Lens+import Network.AWS.Pager import Network.AWS.Prelude import Network.AWS.Request import Network.AWS.Response@@ -47,33 +52,39 @@ -- | /See:/ 'listRules' smart constructor. data ListRules = ListRules' { _lrNextMarker :: !(Maybe Text)- , _lrLimit :: !Nat+ , _lrLimit :: !(Maybe Nat) } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'ListRules' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lrNextMarker'+-- * 'lrNextMarker' - If you specify a value for @Limit@ and you have more @Rules@ than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @Rules@ . For the second and subsequent @ListRules@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @Rules@ . ----- * 'lrLimit'+-- * 'lrLimit' - Specifies the number of @Rules@ that you want AWS WAF to return for this request. If you have more @Rules@ than the number that you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @Rules@ . listRules- :: Natural -- ^ 'lrLimit'- -> ListRules-listRules pLimit_ =+ :: ListRules+listRules = ListRules' { _lrNextMarker = Nothing- , _lrLimit = _Nat # pLimit_+ , _lrLimit = Nothing } --- | If you specify a value for 'Limit' and you have more 'Rules' than the value of 'Limit', AWS WAF returns a 'NextMarker' value in the response that allows you to list another group of 'Rules'. For the second and subsequent 'ListRules' requests, specify the value of 'NextMarker' from the previous response to get information about another batch of 'Rules'.+-- | If you specify a value for @Limit@ and you have more @Rules@ than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @Rules@ . For the second and subsequent @ListRules@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @Rules@ . lrNextMarker :: Lens' ListRules (Maybe Text) lrNextMarker = lens _lrNextMarker (\ s a -> s{_lrNextMarker = a}); --- | Specifies the number of 'Rules' that you want AWS WAF to return for this request. If you have more 'Rules' than the number that you specify for 'Limit', the response includes a 'NextMarker' value that you can use to get another batch of 'Rules'.-lrLimit :: Lens' ListRules Natural-lrLimit = lens _lrLimit (\ s a -> s{_lrLimit = a}) . _Nat;+-- | Specifies the number of @Rules@ that you want AWS WAF to return for this request. If you have more @Rules@ than the number that you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @Rules@ .+lrLimit :: Lens' ListRules (Maybe Natural)+lrLimit = lens _lrLimit (\ s a -> s{_lrLimit = a}) . mapping _Nat; +instance AWSPager ListRules where+ page rq rs+ | stop (rs ^. lrrsNextMarker) = Nothing+ | stop (rs ^. lrrsRules) = Nothing+ | otherwise =+ Just $ rq & lrNextMarker .~ rs ^. lrrsNextMarker+ instance AWSRequest ListRules where type Rs ListRules = ListRulesResponse request = postJSON waf@@ -102,7 +113,7 @@ = object (catMaybes [("NextMarker" .=) <$> _lrNextMarker,- Just ("Limit" .= _lrLimit)])+ ("Limit" .=) <$> _lrLimit]) instance ToPath ListRules where toPath = const "/"@@ -121,11 +132,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lrrsRules'+-- * 'lrrsRules' - An array of 'RuleSummary' objects. ----- * 'lrrsNextMarker'+-- * 'lrrsNextMarker' - If you have more @Rules@ than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @Rules@ , submit another @ListRules@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. ----- * 'lrrsResponseStatus'+-- * 'lrrsResponseStatus' - -- | The response status code. listRulesResponse :: Int -- ^ 'lrrsResponseStatus' -> ListRulesResponse@@ -136,15 +147,15 @@ , _lrrsResponseStatus = pResponseStatus_ } --- | An array of < RuleSummary> objects.+-- | An array of 'RuleSummary' objects. lrrsRules :: Lens' ListRulesResponse [RuleSummary] lrrsRules = lens _lrrsRules (\ s a -> s{_lrrsRules = a}) . _Default . _Coerce; --- | If you have more 'Rules' than the number that you specified for 'Limit' in the request, the response includes a 'NextMarker' value. To list more 'Rules', submit another 'ListRules' request, and specify the 'NextMarker' value from the response in the 'NextMarker' value in the next request.+-- | If you have more @Rules@ than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @Rules@ , submit another @ListRules@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. lrrsNextMarker :: Lens' ListRulesResponse (Maybe Text) lrrsNextMarker = lens _lrrsNextMarker (\ s a -> s{_lrrsNextMarker = a}); --- | The response status code.+-- | -- | The response status code. lrrsResponseStatus :: Lens' ListRulesResponse Int lrrsResponseStatus = lens _lrrsResponseStatus (\ s a -> s{_lrrsResponseStatus = a});
gen/Network/AWS/WAF/ListSizeConstraintSets.hs view
@@ -18,7 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns an array of < SizeConstraintSetSummary> objects.+-- Returns an array of 'SizeConstraintSetSummary' objects.+--+--+--+-- This operation returns paginated results. module Network.AWS.WAF.ListSizeConstraintSets ( -- * Creating a Request@@ -38,6 +42,7 @@ ) where import Network.AWS.Lens+import Network.AWS.Pager import Network.AWS.Prelude import Network.AWS.Request import Network.AWS.Response@@ -47,33 +52,39 @@ -- | /See:/ 'listSizeConstraintSets' smart constructor. data ListSizeConstraintSets = ListSizeConstraintSets' { _lscsNextMarker :: !(Maybe Text)- , _lscsLimit :: !Nat+ , _lscsLimit :: !(Maybe Nat) } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'ListSizeConstraintSets' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lscsNextMarker'+-- * 'lscsNextMarker' - If you specify a value for @Limit@ and you have more @SizeConstraintSets@ than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @SizeConstraintSets@ . For the second and subsequent @ListSizeConstraintSets@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @SizeConstraintSets@ . ----- * 'lscsLimit'+-- * 'lscsLimit' - Specifies the number of @SizeConstraintSet@ objects that you want AWS WAF to return for this request. If you have more @SizeConstraintSets@ objects than the number you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @SizeConstraintSet@ objects. listSizeConstraintSets- :: Natural -- ^ 'lscsLimit'- -> ListSizeConstraintSets-listSizeConstraintSets pLimit_ =+ :: ListSizeConstraintSets+listSizeConstraintSets = ListSizeConstraintSets' { _lscsNextMarker = Nothing- , _lscsLimit = _Nat # pLimit_+ , _lscsLimit = Nothing } --- | If you specify a value for 'Limit' and you have more 'SizeConstraintSets' than the value of 'Limit', AWS WAF returns a 'NextMarker' value in the response that allows you to list another group of 'SizeConstraintSets'. For the second and subsequent 'ListSizeConstraintSets' requests, specify the value of 'NextMarker' from the previous response to get information about another batch of 'SizeConstraintSets'.+-- | If you specify a value for @Limit@ and you have more @SizeConstraintSets@ than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @SizeConstraintSets@ . For the second and subsequent @ListSizeConstraintSets@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @SizeConstraintSets@ . lscsNextMarker :: Lens' ListSizeConstraintSets (Maybe Text) lscsNextMarker = lens _lscsNextMarker (\ s a -> s{_lscsNextMarker = a}); --- | Specifies the number of 'SizeConstraintSet' objects that you want AWS WAF to return for this request. If you have more 'SizeConstraintSets' objects than the number you specify for 'Limit', the response includes a 'NextMarker' value that you can use to get another batch of 'SizeConstraintSet' objects.-lscsLimit :: Lens' ListSizeConstraintSets Natural-lscsLimit = lens _lscsLimit (\ s a -> s{_lscsLimit = a}) . _Nat;+-- | Specifies the number of @SizeConstraintSet@ objects that you want AWS WAF to return for this request. If you have more @SizeConstraintSets@ objects than the number you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @SizeConstraintSet@ objects.+lscsLimit :: Lens' ListSizeConstraintSets (Maybe Natural)+lscsLimit = lens _lscsLimit (\ s a -> s{_lscsLimit = a}) . mapping _Nat; +instance AWSPager ListSizeConstraintSets where+ page rq rs+ | stop (rs ^. lscsrsNextMarker) = Nothing+ | stop (rs ^. lscsrsSizeConstraintSets) = Nothing+ | otherwise =+ Just $ rq & lscsNextMarker .~ rs ^. lscsrsNextMarker+ instance AWSRequest ListSizeConstraintSets where type Rs ListSizeConstraintSets = ListSizeConstraintSetsResponse@@ -105,7 +116,7 @@ = object (catMaybes [("NextMarker" .=) <$> _lscsNextMarker,- Just ("Limit" .= _lscsLimit)])+ ("Limit" .=) <$> _lscsLimit]) instance ToPath ListSizeConstraintSets where toPath = const "/"@@ -124,11 +135,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lscsrsSizeConstraintSets'+-- * 'lscsrsSizeConstraintSets' - An array of 'SizeConstraintSetSummary' objects. ----- * 'lscsrsNextMarker'+-- * 'lscsrsNextMarker' - If you have more @SizeConstraintSet@ objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @SizeConstraintSet@ objects, submit another @ListSizeConstraintSets@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. ----- * 'lscsrsResponseStatus'+-- * 'lscsrsResponseStatus' - -- | The response status code. listSizeConstraintSetsResponse :: Int -- ^ 'lscsrsResponseStatus' -> ListSizeConstraintSetsResponse@@ -139,15 +150,15 @@ , _lscsrsResponseStatus = pResponseStatus_ } --- | An array of < SizeConstraintSetSummary> objects.+-- | An array of 'SizeConstraintSetSummary' objects. lscsrsSizeConstraintSets :: Lens' ListSizeConstraintSetsResponse [SizeConstraintSetSummary] lscsrsSizeConstraintSets = lens _lscsrsSizeConstraintSets (\ s a -> s{_lscsrsSizeConstraintSets = a}) . _Default . _Coerce; --- | If you have more 'SizeConstraintSet' objects than the number that you specified for 'Limit' in the request, the response includes a 'NextMarker' value. To list more 'SizeConstraintSet' objects, submit another 'ListSizeConstraintSets' request, and specify the 'NextMarker' value from the response in the 'NextMarker' value in the next request.+-- | If you have more @SizeConstraintSet@ objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @SizeConstraintSet@ objects, submit another @ListSizeConstraintSets@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. lscsrsNextMarker :: Lens' ListSizeConstraintSetsResponse (Maybe Text) lscsrsNextMarker = lens _lscsrsNextMarker (\ s a -> s{_lscsrsNextMarker = a}); --- | The response status code.+-- | -- | The response status code. lscsrsResponseStatus :: Lens' ListSizeConstraintSetsResponse Int lscsrsResponseStatus = lens _lscsrsResponseStatus (\ s a -> s{_lscsrsResponseStatus = a});
gen/Network/AWS/WAF/ListSqlInjectionMatchSets.hs view
@@ -18,7 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns an array of < SqlInjectionMatchSet> objects.+-- Returns an array of 'SqlInjectionMatchSet' objects.+--+--+--+-- This operation returns paginated results. module Network.AWS.WAF.ListSqlInjectionMatchSets ( -- * Creating a Request@@ -38,44 +42,54 @@ ) where import Network.AWS.Lens+import Network.AWS.Pager import Network.AWS.Prelude import Network.AWS.Request import Network.AWS.Response import Network.AWS.WAF.Types import Network.AWS.WAF.Types.Product --- | A request to list the < SqlInjectionMatchSet> objects created by the current AWS account.+-- | A request to list the 'SqlInjectionMatchSet' objects created by the current AWS account. --+--+-- -- /See:/ 'listSqlInjectionMatchSets' smart constructor. data ListSqlInjectionMatchSets = ListSqlInjectionMatchSets' { _lsimsNextMarker :: !(Maybe Text)- , _lsimsLimit :: !Nat+ , _lsimsLimit :: !(Maybe Nat) } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'ListSqlInjectionMatchSets' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lsimsNextMarker'+-- * 'lsimsNextMarker' - If you specify a value for @Limit@ and you have more 'SqlInjectionMatchSet' objects than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @SqlInjectionMatchSets@ . For the second and subsequent @ListSqlInjectionMatchSets@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @SqlInjectionMatchSets@ . ----- * 'lsimsLimit'+-- * 'lsimsLimit' - Specifies the number of 'SqlInjectionMatchSet' objects that you want AWS WAF to return for this request. If you have more @SqlInjectionMatchSet@ objects than the number you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @Rules@ . listSqlInjectionMatchSets- :: Natural -- ^ 'lsimsLimit'- -> ListSqlInjectionMatchSets-listSqlInjectionMatchSets pLimit_ =+ :: ListSqlInjectionMatchSets+listSqlInjectionMatchSets = ListSqlInjectionMatchSets' { _lsimsNextMarker = Nothing- , _lsimsLimit = _Nat # pLimit_+ , _lsimsLimit = Nothing } --- | If you specify a value for 'Limit' and you have more < SqlInjectionMatchSet> objects than the value of 'Limit', AWS WAF returns a 'NextMarker' value in the response that allows you to list another group of 'SqlInjectionMatchSets'. For the second and subsequent 'ListSqlInjectionMatchSets' requests, specify the value of 'NextMarker' from the previous response to get information about another batch of 'SqlInjectionMatchSets'.+-- | If you specify a value for @Limit@ and you have more 'SqlInjectionMatchSet' objects than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @SqlInjectionMatchSets@ . For the second and subsequent @ListSqlInjectionMatchSets@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @SqlInjectionMatchSets@ . lsimsNextMarker :: Lens' ListSqlInjectionMatchSets (Maybe Text) lsimsNextMarker = lens _lsimsNextMarker (\ s a -> s{_lsimsNextMarker = a}); --- | Specifies the number of < SqlInjectionMatchSet> objects that you want AWS WAF to return for this request. If you have more 'SqlInjectionMatchSet' objects than the number you specify for 'Limit', the response includes a 'NextMarker' value that you can use to get another batch of 'Rules'.-lsimsLimit :: Lens' ListSqlInjectionMatchSets Natural-lsimsLimit = lens _lsimsLimit (\ s a -> s{_lsimsLimit = a}) . _Nat;+-- | Specifies the number of 'SqlInjectionMatchSet' objects that you want AWS WAF to return for this request. If you have more @SqlInjectionMatchSet@ objects than the number you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @Rules@ .+lsimsLimit :: Lens' ListSqlInjectionMatchSets (Maybe Natural)+lsimsLimit = lens _lsimsLimit (\ s a -> s{_lsimsLimit = a}) . mapping _Nat; +instance AWSPager ListSqlInjectionMatchSets where+ page rq rs+ | stop (rs ^. lsimsrsNextMarker) = Nothing+ | stop (rs ^. lsimsrsSqlInjectionMatchSets) = Nothing+ | otherwise =+ Just $ rq &+ lsimsNextMarker .~ rs ^. lsimsrsNextMarker+ instance AWSRequest ListSqlInjectionMatchSets where type Rs ListSqlInjectionMatchSets = ListSqlInjectionMatchSetsResponse@@ -107,7 +121,7 @@ = object (catMaybes [("NextMarker" .=) <$> _lsimsNextMarker,- Just ("Limit" .= _lsimsLimit)])+ ("Limit" .=) <$> _lsimsLimit]) instance ToPath ListSqlInjectionMatchSets where toPath = const "/"@@ -115,8 +129,10 @@ instance ToQuery ListSqlInjectionMatchSets where toQuery = const mempty --- | The response to a < ListSqlInjectionMatchSets> request.+-- | The response to a 'ListSqlInjectionMatchSets' request. --+--+-- -- /See:/ 'listSqlInjectionMatchSetsResponse' smart constructor. data ListSqlInjectionMatchSetsResponse = ListSqlInjectionMatchSetsResponse' { _lsimsrsNextMarker :: !(Maybe Text)@@ -128,11 +144,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lsimsrsNextMarker'+-- * 'lsimsrsNextMarker' - If you have more 'SqlInjectionMatchSet' objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @SqlInjectionMatchSet@ objects, submit another @ListSqlInjectionMatchSets@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. ----- * 'lsimsrsSqlInjectionMatchSets'+-- * 'lsimsrsSqlInjectionMatchSets' - An array of 'SqlInjectionMatchSetSummary' objects. ----- * 'lsimsrsResponseStatus'+-- * 'lsimsrsResponseStatus' - -- | The response status code. listSqlInjectionMatchSetsResponse :: Int -- ^ 'lsimsrsResponseStatus' -> ListSqlInjectionMatchSetsResponse@@ -143,15 +159,15 @@ , _lsimsrsResponseStatus = pResponseStatus_ } --- | If you have more < SqlInjectionMatchSet> objects than the number that you specified for 'Limit' in the request, the response includes a 'NextMarker' value. To list more 'SqlInjectionMatchSet' objects, submit another 'ListSqlInjectionMatchSets' request, and specify the 'NextMarker' value from the response in the 'NextMarker' value in the next request.+-- | If you have more 'SqlInjectionMatchSet' objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @SqlInjectionMatchSet@ objects, submit another @ListSqlInjectionMatchSets@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. lsimsrsNextMarker :: Lens' ListSqlInjectionMatchSetsResponse (Maybe Text) lsimsrsNextMarker = lens _lsimsrsNextMarker (\ s a -> s{_lsimsrsNextMarker = a}); --- | An array of < SqlInjectionMatchSetSummary> objects.+-- | An array of 'SqlInjectionMatchSetSummary' objects. lsimsrsSqlInjectionMatchSets :: Lens' ListSqlInjectionMatchSetsResponse [SqlInjectionMatchSetSummary] lsimsrsSqlInjectionMatchSets = lens _lsimsrsSqlInjectionMatchSets (\ s a -> s{_lsimsrsSqlInjectionMatchSets = a}) . _Default . _Coerce; --- | The response status code.+-- | -- | The response status code. lsimsrsResponseStatus :: Lens' ListSqlInjectionMatchSetsResponse Int lsimsrsResponseStatus = lens _lsimsrsResponseStatus (\ s a -> s{_lsimsrsResponseStatus = a});
gen/Network/AWS/WAF/ListWebACLs.hs view
@@ -18,7 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns an array of < WebACLSummary> objects in the response.+-- Returns an array of 'WebACLSummary' objects in the response.+--+--+--+-- This operation returns paginated results. module Network.AWS.WAF.ListWebACLs ( -- * Creating a Request@@ -38,6 +42,7 @@ ) where import Network.AWS.Lens+import Network.AWS.Pager import Network.AWS.Prelude import Network.AWS.Request import Network.AWS.Response@@ -47,33 +52,39 @@ -- | /See:/ 'listWebACLs' smart constructor. data ListWebACLs = ListWebACLs' { _lwaNextMarker :: !(Maybe Text)- , _lwaLimit :: !Nat+ , _lwaLimit :: !(Maybe Nat) } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'ListWebACLs' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lwaNextMarker'+-- * 'lwaNextMarker' - If you specify a value for @Limit@ and you have more @WebACL@ objects than the number that you specify for @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @WebACL@ objects. For the second and subsequent @ListWebACLs@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @WebACL@ objects. ----- * 'lwaLimit'+-- * 'lwaLimit' - Specifies the number of @WebACL@ objects that you want AWS WAF to return for this request. If you have more @WebACL@ objects than the number that you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @WebACL@ objects. listWebACLs- :: Natural -- ^ 'lwaLimit'- -> ListWebACLs-listWebACLs pLimit_ =+ :: ListWebACLs+listWebACLs = ListWebACLs' { _lwaNextMarker = Nothing- , _lwaLimit = _Nat # pLimit_+ , _lwaLimit = Nothing } --- | If you specify a value for 'Limit' and you have more 'WebACL' objects than the number that you specify for 'Limit', AWS WAF returns a 'NextMarker' value in the response that allows you to list another group of 'WebACL' objects. For the second and subsequent 'ListWebACLs' requests, specify the value of 'NextMarker' from the previous response to get information about another batch of 'WebACL' objects.+-- | If you specify a value for @Limit@ and you have more @WebACL@ objects than the number that you specify for @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @WebACL@ objects. For the second and subsequent @ListWebACLs@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @WebACL@ objects. lwaNextMarker :: Lens' ListWebACLs (Maybe Text) lwaNextMarker = lens _lwaNextMarker (\ s a -> s{_lwaNextMarker = a}); --- | Specifies the number of 'WebACL' objects that you want AWS WAF to return for this request. If you have more 'WebACL' objects than the number that you specify for 'Limit', the response includes a 'NextMarker' value that you can use to get another batch of 'WebACL' objects.-lwaLimit :: Lens' ListWebACLs Natural-lwaLimit = lens _lwaLimit (\ s a -> s{_lwaLimit = a}) . _Nat;+-- | Specifies the number of @WebACL@ objects that you want AWS WAF to return for this request. If you have more @WebACL@ objects than the number that you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @WebACL@ objects.+lwaLimit :: Lens' ListWebACLs (Maybe Natural)+lwaLimit = lens _lwaLimit (\ s a -> s{_lwaLimit = a}) . mapping _Nat; +instance AWSPager ListWebACLs where+ page rq rs+ | stop (rs ^. lwarsNextMarker) = Nothing+ | stop (rs ^. lwarsWebACLs) = Nothing+ | otherwise =+ Just $ rq & lwaNextMarker .~ rs ^. lwarsNextMarker+ instance AWSRequest ListWebACLs where type Rs ListWebACLs = ListWebACLsResponse request = postJSON waf@@ -102,7 +113,7 @@ = object (catMaybes [("NextMarker" .=) <$> _lwaNextMarker,- Just ("Limit" .= _lwaLimit)])+ ("Limit" .=) <$> _lwaLimit]) instance ToPath ListWebACLs where toPath = const "/"@@ -121,11 +132,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lwarsWebACLs'+-- * 'lwarsWebACLs' - An array of 'WebACLSummary' objects. ----- * 'lwarsNextMarker'+-- * 'lwarsNextMarker' - If you have more @WebACL@ objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @WebACL@ objects, submit another @ListWebACLs@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. ----- * 'lwarsResponseStatus'+-- * 'lwarsResponseStatus' - -- | The response status code. listWebACLsResponse :: Int -- ^ 'lwarsResponseStatus' -> ListWebACLsResponse@@ -136,15 +147,15 @@ , _lwarsResponseStatus = pResponseStatus_ } --- | An array of < WebACLSummary> objects.+-- | An array of 'WebACLSummary' objects. lwarsWebACLs :: Lens' ListWebACLsResponse [WebACLSummary] lwarsWebACLs = lens _lwarsWebACLs (\ s a -> s{_lwarsWebACLs = a}) . _Default . _Coerce; --- | If you have more 'WebACL' objects than the number that you specified for 'Limit' in the request, the response includes a 'NextMarker' value. To list more 'WebACL' objects, submit another 'ListWebACLs' request, and specify the 'NextMarker' value from the response in the 'NextMarker' value in the next request.+-- | If you have more @WebACL@ objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @WebACL@ objects, submit another @ListWebACLs@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. lwarsNextMarker :: Lens' ListWebACLsResponse (Maybe Text) lwarsNextMarker = lens _lwarsNextMarker (\ s a -> s{_lwarsNextMarker = a}); --- | The response status code.+-- | -- | The response status code. lwarsResponseStatus :: Lens' ListWebACLsResponse Int lwarsResponseStatus = lens _lwarsResponseStatus (\ s a -> s{_lwarsResponseStatus = a});
gen/Network/AWS/WAF/ListXSSMatchSets.hs view
@@ -18,7 +18,11 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Returns an array of < XssMatchSet> objects.+-- Returns an array of 'XssMatchSet' objects.+--+--+--+-- This operation returns paginated results. module Network.AWS.WAF.ListXSSMatchSets ( -- * Creating a Request@@ -38,44 +42,53 @@ ) where import Network.AWS.Lens+import Network.AWS.Pager import Network.AWS.Prelude import Network.AWS.Request import Network.AWS.Response import Network.AWS.WAF.Types import Network.AWS.WAF.Types.Product --- | A request to list the < XssMatchSet> objects created by the current AWS account.+-- | A request to list the 'XssMatchSet' objects created by the current AWS account. --+--+-- -- /See:/ 'listXSSMatchSets' smart constructor. data ListXSSMatchSets = ListXSSMatchSets' { _lxmsNextMarker :: !(Maybe Text)- , _lxmsLimit :: !Nat+ , _lxmsLimit :: !(Maybe Nat) } deriving (Eq,Read,Show,Data,Typeable,Generic) -- | Creates a value of 'ListXSSMatchSets' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lxmsNextMarker'+-- * 'lxmsNextMarker' - If you specify a value for @Limit@ and you have more 'XssMatchSet' objects than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @XssMatchSets@ . For the second and subsequent @ListXssMatchSets@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @XssMatchSets@ . ----- * 'lxmsLimit'+-- * 'lxmsLimit' - Specifies the number of 'XssMatchSet' objects that you want AWS WAF to return for this request. If you have more @XssMatchSet@ objects than the number you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @Rules@ . listXSSMatchSets- :: Natural -- ^ 'lxmsLimit'- -> ListXSSMatchSets-listXSSMatchSets pLimit_ =+ :: ListXSSMatchSets+listXSSMatchSets = ListXSSMatchSets' { _lxmsNextMarker = Nothing- , _lxmsLimit = _Nat # pLimit_+ , _lxmsLimit = Nothing } --- | If you specify a value for 'Limit' and you have more < XssMatchSet> objects than the value of 'Limit', AWS WAF returns a 'NextMarker' value in the response that allows you to list another group of 'XssMatchSets'. For the second and subsequent 'ListXssMatchSets' requests, specify the value of 'NextMarker' from the previous response to get information about another batch of 'XssMatchSets'.+-- | If you specify a value for @Limit@ and you have more 'XssMatchSet' objects than the value of @Limit@ , AWS WAF returns a @NextMarker@ value in the response that allows you to list another group of @XssMatchSets@ . For the second and subsequent @ListXssMatchSets@ requests, specify the value of @NextMarker@ from the previous response to get information about another batch of @XssMatchSets@ . lxmsNextMarker :: Lens' ListXSSMatchSets (Maybe Text) lxmsNextMarker = lens _lxmsNextMarker (\ s a -> s{_lxmsNextMarker = a}); --- | Specifies the number of < XssMatchSet> objects that you want AWS WAF to return for this request. If you have more 'XssMatchSet' objects than the number you specify for 'Limit', the response includes a 'NextMarker' value that you can use to get another batch of 'Rules'.-lxmsLimit :: Lens' ListXSSMatchSets Natural-lxmsLimit = lens _lxmsLimit (\ s a -> s{_lxmsLimit = a}) . _Nat;+-- | Specifies the number of 'XssMatchSet' objects that you want AWS WAF to return for this request. If you have more @XssMatchSet@ objects than the number you specify for @Limit@ , the response includes a @NextMarker@ value that you can use to get another batch of @Rules@ .+lxmsLimit :: Lens' ListXSSMatchSets (Maybe Natural)+lxmsLimit = lens _lxmsLimit (\ s a -> s{_lxmsLimit = a}) . mapping _Nat; +instance AWSPager ListXSSMatchSets where+ page rq rs+ | stop (rs ^. lxmsrsNextMarker) = Nothing+ | stop (rs ^. lxmsrsXSSMatchSets) = Nothing+ | otherwise =+ Just $ rq & lxmsNextMarker .~ rs ^. lxmsrsNextMarker+ instance AWSRequest ListXSSMatchSets where type Rs ListXSSMatchSets = ListXSSMatchSetsResponse request = postJSON waf@@ -105,7 +118,7 @@ = object (catMaybes [("NextMarker" .=) <$> _lxmsNextMarker,- Just ("Limit" .= _lxmsLimit)])+ ("Limit" .=) <$> _lxmsLimit]) instance ToPath ListXSSMatchSets where toPath = const "/"@@ -113,8 +126,10 @@ instance ToQuery ListXSSMatchSets where toQuery = const mempty --- | The response to a < ListXssMatchSets> request.+-- | The response to a 'ListXssMatchSets' request. --+--+-- -- /See:/ 'listXSSMatchSetsResponse' smart constructor. data ListXSSMatchSetsResponse = ListXSSMatchSetsResponse' { _lxmsrsXSSMatchSets :: !(Maybe [XSSMatchSetSummary])@@ -126,11 +141,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'lxmsrsXSSMatchSets'+-- * 'lxmsrsXSSMatchSets' - An array of 'XssMatchSetSummary' objects. ----- * 'lxmsrsNextMarker'+-- * 'lxmsrsNextMarker' - If you have more 'XssMatchSet' objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @XssMatchSet@ objects, submit another @ListXssMatchSets@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. ----- * 'lxmsrsResponseStatus'+-- * 'lxmsrsResponseStatus' - -- | The response status code. listXSSMatchSetsResponse :: Int -- ^ 'lxmsrsResponseStatus' -> ListXSSMatchSetsResponse@@ -141,15 +156,15 @@ , _lxmsrsResponseStatus = pResponseStatus_ } --- | An array of < XssMatchSetSummary> objects.+-- | An array of 'XssMatchSetSummary' objects. lxmsrsXSSMatchSets :: Lens' ListXSSMatchSetsResponse [XSSMatchSetSummary] lxmsrsXSSMatchSets = lens _lxmsrsXSSMatchSets (\ s a -> s{_lxmsrsXSSMatchSets = a}) . _Default . _Coerce; --- | If you have more < XssMatchSet> objects than the number that you specified for 'Limit' in the request, the response includes a 'NextMarker' value. To list more 'XssMatchSet' objects, submit another 'ListXssMatchSets' request, and specify the 'NextMarker' value from the response in the 'NextMarker' value in the next request.+-- | If you have more 'XssMatchSet' objects than the number that you specified for @Limit@ in the request, the response includes a @NextMarker@ value. To list more @XssMatchSet@ objects, submit another @ListXssMatchSets@ request, and specify the @NextMarker@ value from the response in the @NextMarker@ value in the next request. lxmsrsNextMarker :: Lens' ListXSSMatchSetsResponse (Maybe Text) lxmsrsNextMarker = lens _lxmsrsNextMarker (\ s a -> s{_lxmsrsNextMarker = a}); --- | The response status code.+-- | -- | The response status code. lxmsrsResponseStatus :: Lens' ListXSSMatchSetsResponse Int lxmsrsResponseStatus = lens _lxmsrsResponseStatus (\ s a -> s{_lxmsrsResponseStatus = a});
gen/Network/AWS/WAF/Types.hs view
@@ -287,7 +287,7 @@ import Network.AWS.WAF.Types.Product import Network.AWS.WAF.Types.Sum --- | API version '2015-08-24' of the Amazon WAF SDK configuration.+-- | API version @2015-08-24@ of the Amazon WAF SDK configuration. waf :: Service waf = Service@@ -322,83 +322,133 @@ | otherwise = Nothing -- | The operation failed because you tried to create, update, or delete an object by using an invalid account identifier.+--+-- _WAFInvalidAccountException :: AsError a => Getting (First ServiceError) a ServiceError _WAFInvalidAccountException = _ServiceError . hasCode "WAFInvalidAccountException" -- | The operation failed because you tried to delete an object that is still in use. For example: ----- - You tried to delete a 'ByteMatchSet' that is still referenced by a 'Rule'.--- - You tried to delete a 'Rule' that is still referenced by a 'WebACL'.+--+-- * You tried to delete a @ByteMatchSet@ that is still referenced by a @Rule@ .+--+-- * You tried to delete a @Rule@ that is still referenced by a @WebACL@ .+--+--+-- _WAFReferencedItemException :: AsError a => Getting (First ServiceError) a ServiceError _WAFReferencedItemException = _ServiceError . hasCode "WAFReferencedItemException" -- | The operation failed because there was nothing to do. For example: ----- - You tried to remove a 'Rule' from a 'WebACL', but the 'Rule' isn\'t in the specified 'WebACL'.--- - You tried to remove an IP address from an 'IPSet', but the IP address isn\'t in the specified 'IPSet'.--- - You tried to remove a 'ByteMatchTuple' from a 'ByteMatchSet', but the 'ByteMatchTuple' isn\'t in the specified 'WebACL'.--- - You tried to add a 'Rule' to a 'WebACL', but the 'Rule' already exists in the specified 'WebACL'.--- - You tried to add an IP address to an 'IPSet', but the IP address already exists in the specified 'IPSet'.--- - You tried to add a 'ByteMatchTuple' to a 'ByteMatchSet', but the 'ByteMatchTuple' already exists in the specified 'WebACL'.+--+-- * You tried to remove a @Rule@ from a @WebACL@ , but the @Rule@ isn't in the specified @WebACL@ .+--+-- * You tried to remove an IP address from an @IPSet@ , but the IP address isn't in the specified @IPSet@ .+--+-- * You tried to remove a @ByteMatchTuple@ from a @ByteMatchSet@ , but the @ByteMatchTuple@ isn't in the specified @WebACL@ .+--+-- * You tried to add a @Rule@ to a @WebACL@ , but the @Rule@ already exists in the specified @WebACL@ .+--+-- * You tried to add an IP address to an @IPSet@ , but the IP address already exists in the specified @IPSet@ .+--+-- * You tried to add a @ByteMatchTuple@ to a @ByteMatchSet@ , but the @ByteMatchTuple@ already exists in the specified @WebACL@ .+--+--+-- _WAFInvalidOperationException :: AsError a => Getting (First ServiceError) a ServiceError _WAFInvalidOperationException = _ServiceError . hasCode "WAFInvalidOperationException" --- | The operation failed because the referenced object doesn\'t exist.+-- | The operation failed because the referenced object doesn't exist.+--+-- _WAFNonexistentItemException :: AsError a => Getting (First ServiceError) a ServiceError _WAFNonexistentItemException = _ServiceError . hasCode "WAFNonexistentItemException" --- | The operation failed because AWS WAF didn\'t recognize a parameter in the request. For example:+-- | The operation failed because AWS WAF didn't recognize a parameter in the request. For example: ----- - You specified an invalid parameter name.--- - You specified an invalid value.--- - You tried to update an object ('ByteMatchSet', 'IPSet', 'Rule', or 'WebACL') using an action other than 'INSERT' or 'DELETE'.--- - You tried to create a 'WebACL' with a 'DefaultAction' 'Type' other than 'ALLOW', 'BLOCK', or 'COUNT'.--- - You tried to update a 'WebACL' with a 'WafAction' 'Type' other than 'ALLOW', 'BLOCK', or 'COUNT'.--- - You tried to update a 'ByteMatchSet' with a 'FieldToMatch' 'Type' other than HEADER, QUERY_STRING, or URI.--- - You tried to update a 'ByteMatchSet' with a 'Field' of 'HEADER' but no value for 'Data'.+--+-- * You specified an invalid parameter name.+--+-- * You specified an invalid value.+--+-- * You tried to update an object (@ByteMatchSet@ , @IPSet@ , @Rule@ , or @WebACL@ ) using an action other than @INSERT@ or @DELETE@ .+--+-- * You tried to create a @WebACL@ with a @DefaultAction@ @Type@ other than @ALLOW@ , @BLOCK@ , or @COUNT@ .+--+-- * You tried to update a @WebACL@ with a @WafAction@ @Type@ other than @ALLOW@ , @BLOCK@ , or @COUNT@ .+--+-- * You tried to update a @ByteMatchSet@ with a @FieldToMatch@ @Type@ other than HEADER, QUERY_STRING, or URI.+--+-- * You tried to update a @ByteMatchSet@ with a @Field@ of @HEADER@ but no value for @Data@ .+--+--+-- _WAFInvalidParameterException :: AsError a => Getting (First ServiceError) a ServiceError _WAFInvalidParameterException = _ServiceError . hasCode "WAFInvalidParameterException" --- | The operation exceeds a resource limit, for example, the maximum number of 'WebACL' objects that you can create for an AWS account. For more information, see <http://docs.aws.amazon.com/waf/latest/developerguide/limits.html Limits> in the /AWS WAF Developer Guide/.+-- | The operation exceeds a resource limit, for example, the maximum number of @WebACL@ objects that you can create for an AWS account. For more information, see <http://docs.aws.amazon.com/waf/latest/developerguide/limits.html Limits> in the /AWS WAF Developer Guide/ .+--+-- _WAFLimitsExceededException :: AsError a => Getting (First ServiceError) a ServiceError _WAFLimitsExceededException = _ServiceError . hasCode "WAFLimitsExceededException" -- | The operation failed because you tried to create, update, or delete an object by using a change token that has already been used.+--+-- _WAFStaleDataException :: AsError a => Getting (First ServiceError) a ServiceError _WAFStaleDataException = _ServiceError . hasCode "WAFStaleDataException" -- | The operation failed because of a system problem, even though the request was valid. Retry your request.+--+-- _WAFInternalErrorException :: AsError a => Getting (First ServiceError) a ServiceError _WAFInternalErrorException = _ServiceError . hasCode "WAFInternalErrorException" --- | The operation failed because you tried to add an object to or delete an object from another object that doesn\'t exist. For example:+-- | The operation failed because you tried to add an object to or delete an object from another object that doesn't exist. For example: ----- - You tried to add a 'Rule' to or delete a 'Rule' from a 'WebACL' that doesn\'t exist.--- - You tried to add a 'ByteMatchSet' to or delete a 'ByteMatchSet' from a 'Rule' that doesn\'t exist.--- - You tried to add an IP address to or delete an IP address from an 'IPSet' that doesn\'t exist.--- - You tried to add a 'ByteMatchTuple' to or delete a 'ByteMatchTuple' from a 'ByteMatchSet' that doesn\'t exist.+--+-- * You tried to add a @Rule@ to or delete a @Rule@ from a @WebACL@ that doesn't exist.+--+-- * You tried to add a @ByteMatchSet@ to or delete a @ByteMatchSet@ from a @Rule@ that doesn't exist.+--+-- * You tried to add an IP address to or delete an IP address from an @IPSet@ that doesn't exist.+--+-- * You tried to add a @ByteMatchTuple@ to or delete a @ByteMatchTuple@ from a @ByteMatchSet@ that doesn't exist.+--+--+-- _WAFNonexistentContainerException :: AsError a => Getting (First ServiceError) a ServiceError _WAFNonexistentContainerException = _ServiceError . hasCode "WAFNonexistentContainerException" -- | The name specified is invalid.+--+-- _WAFDisallowedNameException :: AsError a => Getting (First ServiceError) a ServiceError _WAFDisallowedNameException = _ServiceError . hasCode "WAFDisallowedNameException" --- | The operation failed because you tried to delete an object that isn\'t empty. For example:+-- | The operation failed because you tried to delete an object that isn't empty. For example: ----- - You tried to delete a 'WebACL' that still contains one or more 'Rule' objects.--- - You tried to delete a 'Rule' that still contains one or more 'ByteMatchSet' objects or other predicates.--- - You tried to delete a 'ByteMatchSet' that contains one or more 'ByteMatchTuple' objects.--- - You tried to delete an 'IPSet' that references one or more IP addresses.+--+-- * You tried to delete a @WebACL@ that still contains one or more @Rule@ objects.+--+-- * You tried to delete a @Rule@ that still contains one or more @ByteMatchSet@ objects or other predicates.+--+-- * You tried to delete a @ByteMatchSet@ that contains one or more @ByteMatchTuple@ objects.+--+-- * You tried to delete an @IPSet@ that references one or more IP addresses.+--+--+-- _WAFNonEmptyEntityException :: AsError a => Getting (First ServiceError) a ServiceError _WAFNonEmptyEntityException = _ServiceError . hasCode "WAFNonEmptyEntityException"
gen/Network/AWS/WAF/Types/Product.hs view
@@ -21,10 +21,12 @@ import Network.AWS.Prelude import Network.AWS.WAF.Types.Sum --- | The 'ActivatedRule' object in an < UpdateWebACL> request specifies a 'Rule' that you want to insert or delete, the priority of the 'Rule' in the 'WebACL', and the action that you want AWS WAF to take when a web request matches the 'Rule' ('ALLOW', 'BLOCK', or 'COUNT').+-- | The @ActivatedRule@ object in an 'UpdateWebACL' request specifies a @Rule@ that you want to insert or delete, the priority of the @Rule@ in the @WebACL@ , and the action that you want AWS WAF to take when a web request matches the @Rule@ (@ALLOW@ , @BLOCK@ , or @COUNT@ ). ----- To specify whether to insert or delete a 'Rule', use the 'Action' parameter in the < WebACLUpdate> data type. --+-- To specify whether to insert or delete a @Rule@ , use the @Action@ parameter in the 'WebACLUpdate' data type.+--+-- -- /See:/ 'activatedRule' smart constructor. data ActivatedRule = ActivatedRule' { _arPriority :: !Int@@ -36,11 +38,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'arPriority'+-- * 'arPriority' - Specifies the order in which the @Rules@ in a @WebACL@ are evaluated. Rules with a lower value for @Priority@ are evaluated before @Rules@ with a higher value. The value must be a unique integer. If you add multiple @Rules@ to a @WebACL@ , the values don't need to be consecutive. ----- * 'arRuleId'+-- * 'arRuleId' - The @RuleId@ for a @Rule@ . You use @RuleId@ to get more information about a @Rule@ (see 'GetRule' ), update a @Rule@ (see 'UpdateRule' ), insert a @Rule@ into a @WebACL@ or delete a one from a @WebACL@ (see 'UpdateWebACL' ), or delete a @Rule@ from AWS WAF (see 'DeleteRule' ). @RuleId@ is returned by 'CreateRule' and by 'ListRules' . ----- * 'arAction'+-- * 'arAction' - Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the @Rule@ . Valid values for @Action@ include the following: * @ALLOW@ : CloudFront responds with the requested object. * @BLOCK@ : CloudFront responds with an HTTP 403 (Forbidden) status code. * @COUNT@ : AWS WAF increments a counter of requests that match the conditions in the rule and then continues to inspect the web request based on the remaining rules in the web ACL. activatedRule :: Int -- ^ 'arPriority' -> Text -- ^ 'arRuleId'@@ -53,21 +55,15 @@ , _arAction = pAction_ } --- | Specifies the order in which the 'Rules' in a 'WebACL' are evaluated. Rules with a lower value for 'Priority' are evaluated before 'Rules' with a higher value. The value must be a unique integer. If you add multiple 'Rules' to a 'WebACL', the values don\'t need to be consecutive.+-- | Specifies the order in which the @Rules@ in a @WebACL@ are evaluated. Rules with a lower value for @Priority@ are evaluated before @Rules@ with a higher value. The value must be a unique integer. If you add multiple @Rules@ to a @WebACL@ , the values don't need to be consecutive. arPriority :: Lens' ActivatedRule Int arPriority = lens _arPriority (\ s a -> s{_arPriority = a}); --- | The 'RuleId' for a 'Rule'. You use 'RuleId' to get more information about a 'Rule' (see < GetRule>), update a 'Rule' (see < UpdateRule>), insert a 'Rule' into a 'WebACL' or delete a one from a 'WebACL' (see < UpdateWebACL>), or delete a 'Rule' from AWS WAF (see < DeleteRule>).------ 'RuleId' is returned by < CreateRule> and by < ListRules>.+-- | The @RuleId@ for a @Rule@ . You use @RuleId@ to get more information about a @Rule@ (see 'GetRule' ), update a @Rule@ (see 'UpdateRule' ), insert a @Rule@ into a @WebACL@ or delete a one from a @WebACL@ (see 'UpdateWebACL' ), or delete a @Rule@ from AWS WAF (see 'DeleteRule' ). @RuleId@ is returned by 'CreateRule' and by 'ListRules' . arRuleId :: Lens' ActivatedRule Text arRuleId = lens _arRuleId (\ s a -> s{_arRuleId = a}); --- | Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the 'Rule'. Valid values for 'Action' include the following:------ - 'ALLOW': CloudFront responds with the requested object.--- - 'BLOCK': CloudFront responds with an HTTP 403 (Forbidden) status code.--- - 'COUNT': AWS WAF increments a counter of requests that match the conditions in the rule and then continues to inspect the web request based on the remaining rules in the web ACL.+-- | Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the @Rule@ . Valid values for @Action@ include the following: * @ALLOW@ : CloudFront responds with the requested object. * @BLOCK@ : CloudFront responds with an HTTP 403 (Forbidden) status code. * @COUNT@ : AWS WAF increments a counter of requests that match the conditions in the rule and then continues to inspect the web request based on the remaining rules in the web ACL. arAction :: Lens' ActivatedRule WafAction arAction = lens _arAction (\ s a -> s{_arAction = a}); @@ -91,10 +87,12 @@ Just ("RuleId" .= _arRuleId), Just ("Action" .= _arAction)]) --- | In a < GetByteMatchSet> request, 'ByteMatchSet' is a complex type that contains the 'ByteMatchSetId' and 'Name' of a 'ByteMatchSet', and the values that you specified when you updated the 'ByteMatchSet'.+-- | In a 'GetByteMatchSet' request, @ByteMatchSet@ is a complex type that contains the @ByteMatchSetId@ and @Name@ of a @ByteMatchSet@ , and the values that you specified when you updated the @ByteMatchSet@ . ----- A complex type that contains 'ByteMatchTuple' objects, which specify the parts of web requests that you want AWS WAF to inspect and the values that you want AWS WAF to search for. If a 'ByteMatchSet' contains more than one 'ByteMatchTuple' object, a request needs to match the settings in only one 'ByteMatchTuple' to be considered a match. --+-- A complex type that contains @ByteMatchTuple@ objects, which specify the parts of web requests that you want AWS WAF to inspect and the values that you want AWS WAF to search for. If a @ByteMatchSet@ contains more than one @ByteMatchTuple@ object, a request needs to match the settings in only one @ByteMatchTuple@ to be considered a match.+--+-- -- /See:/ 'byteMatchSet' smart constructor. data ByteMatchSet = ByteMatchSet' { _bmsName :: !(Maybe Text)@@ -106,11 +104,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'bmsName'+-- * 'bmsName' - A friendly name or description of the 'ByteMatchSet' . You can't change @Name@ after you create a @ByteMatchSet@ . ----- * 'bmsByteMatchSetId'+-- * 'bmsByteMatchSetId' - The @ByteMatchSetId@ for a @ByteMatchSet@ . You use @ByteMatchSetId@ to get information about a @ByteMatchSet@ (see 'GetByteMatchSet' ), update a @ByteMatchSet@ (see 'UpdateByteMatchSet' ), insert a @ByteMatchSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete a @ByteMatchSet@ from AWS WAF (see 'DeleteByteMatchSet' ). @ByteMatchSetId@ is returned by 'CreateByteMatchSet' and by 'ListByteMatchSets' . ----- * 'bmsByteMatchTuples'+-- * 'bmsByteMatchTuples' - Specifies the bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. byteMatchSet :: Text -- ^ 'bmsByteMatchSetId' -> ByteMatchSet@@ -121,13 +119,11 @@ , _bmsByteMatchTuples = mempty } --- | A friendly name or description of the < ByteMatchSet>. You can\'t change 'Name' after you create a 'ByteMatchSet'.+-- | A friendly name or description of the 'ByteMatchSet' . You can't change @Name@ after you create a @ByteMatchSet@ . bmsName :: Lens' ByteMatchSet (Maybe Text) bmsName = lens _bmsName (\ s a -> s{_bmsName = a}); --- | The 'ByteMatchSetId' for a 'ByteMatchSet'. You use 'ByteMatchSetId' to get information about a 'ByteMatchSet' (see < GetByteMatchSet>), update a 'ByteMatchSet' (see < UpdateByteMatchSet>), insert a 'ByteMatchSet' into a 'Rule' or delete one from a 'Rule' (see < UpdateRule>), and delete a 'ByteMatchSet' from AWS WAF (see < DeleteByteMatchSet>).------ 'ByteMatchSetId' is returned by < CreateByteMatchSet> and by < ListByteMatchSets>.+-- | The @ByteMatchSetId@ for a @ByteMatchSet@ . You use @ByteMatchSetId@ to get information about a @ByteMatchSet@ (see 'GetByteMatchSet' ), update a @ByteMatchSet@ (see 'UpdateByteMatchSet' ), insert a @ByteMatchSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete a @ByteMatchSet@ from AWS WAF (see 'DeleteByteMatchSet' ). @ByteMatchSetId@ is returned by 'CreateByteMatchSet' and by 'ListByteMatchSets' . bmsByteMatchSetId :: Lens' ByteMatchSet Text bmsByteMatchSetId = lens _bmsByteMatchSetId (\ s a -> s{_bmsByteMatchSetId = a}); @@ -147,8 +143,10 @@ instance NFData ByteMatchSet --- | Returned by < ListByteMatchSets>. Each 'ByteMatchSetSummary' object includes the 'Name' and 'ByteMatchSetId' for one < ByteMatchSet>.+-- | Returned by 'ListByteMatchSets' . Each @ByteMatchSetSummary@ object includes the @Name@ and @ByteMatchSetId@ for one 'ByteMatchSet' . --+--+-- -- /See:/ 'byteMatchSetSummary' smart constructor. data ByteMatchSetSummary = ByteMatchSetSummary' { _bmssByteMatchSetId :: !Text@@ -159,9 +157,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'bmssByteMatchSetId'+-- * 'bmssByteMatchSetId' - The @ByteMatchSetId@ for a @ByteMatchSet@ . You use @ByteMatchSetId@ to get information about a @ByteMatchSet@ , update a @ByteMatchSet@ , remove a @ByteMatchSet@ from a @Rule@ , and delete a @ByteMatchSet@ from AWS WAF. @ByteMatchSetId@ is returned by 'CreateByteMatchSet' and by 'ListByteMatchSets' . ----- * 'bmssName'+-- * 'bmssName' - A friendly name or description of the 'ByteMatchSet' . You can't change @Name@ after you create a @ByteMatchSet@ . byteMatchSetSummary :: Text -- ^ 'bmssByteMatchSetId' -> Text -- ^ 'bmssName'@@ -172,13 +170,11 @@ , _bmssName = pName_ } --- | The 'ByteMatchSetId' for a 'ByteMatchSet'. You use 'ByteMatchSetId' to get information about a 'ByteMatchSet', update a 'ByteMatchSet', remove a 'ByteMatchSet' from a 'Rule', and delete a 'ByteMatchSet' from AWS WAF.------ 'ByteMatchSetId' is returned by < CreateByteMatchSet> and by < ListByteMatchSets>.+-- | The @ByteMatchSetId@ for a @ByteMatchSet@ . You use @ByteMatchSetId@ to get information about a @ByteMatchSet@ , update a @ByteMatchSet@ , remove a @ByteMatchSet@ from a @Rule@ , and delete a @ByteMatchSet@ from AWS WAF. @ByteMatchSetId@ is returned by 'CreateByteMatchSet' and by 'ListByteMatchSets' . bmssByteMatchSetId :: Lens' ByteMatchSetSummary Text bmssByteMatchSetId = lens _bmssByteMatchSetId (\ s a -> s{_bmssByteMatchSetId = a}); --- | A friendly name or description of the < ByteMatchSet>. You can\'t change 'Name' after you create a 'ByteMatchSet'.+-- | A friendly name or description of the 'ByteMatchSet' . You can't change @Name@ after you create a @ByteMatchSet@ . bmssName :: Lens' ByteMatchSetSummary Text bmssName = lens _bmssName (\ s a -> s{_bmssName = a}); @@ -193,8 +189,10 @@ instance NFData ByteMatchSetSummary --- | In an < UpdateByteMatchSet> request, 'ByteMatchSetUpdate' specifies whether to insert or delete a < ByteMatchTuple> and includes the settings for the 'ByteMatchTuple'.+-- | In an 'UpdateByteMatchSet' request, @ByteMatchSetUpdate@ specifies whether to insert or delete a 'ByteMatchTuple' and includes the settings for the @ByteMatchTuple@ . --+--+-- -- /See:/ 'byteMatchSetUpdate' smart constructor. data ByteMatchSetUpdate = ByteMatchSetUpdate' { _bmsuAction :: !ChangeAction@@ -205,9 +203,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'bmsuAction'+-- * 'bmsuAction' - Specifies whether to insert or delete a 'ByteMatchTuple' . ----- * 'bmsuByteMatchTuple'+-- * 'bmsuByteMatchTuple' - Information about the part of a web request that you want AWS WAF to inspect and the value that you want AWS WAF to search for. If you specify @DELETE@ for the value of @Action@ , the @ByteMatchTuple@ values must exactly match the values in the @ByteMatchTuple@ that you want to delete from the @ByteMatchSet@ . byteMatchSetUpdate :: ChangeAction -- ^ 'bmsuAction' -> ByteMatchTuple -- ^ 'bmsuByteMatchTuple'@@ -218,11 +216,11 @@ , _bmsuByteMatchTuple = pByteMatchTuple_ } --- | Specifies whether to insert or delete a < ByteMatchTuple>.+-- | Specifies whether to insert or delete a 'ByteMatchTuple' . bmsuAction :: Lens' ByteMatchSetUpdate ChangeAction bmsuAction = lens _bmsuAction (\ s a -> s{_bmsuAction = a}); --- | Information about the part of a web request that you want AWS WAF to inspect and the value that you want AWS WAF to search for. If you specify 'DELETE' for the value of 'Action', the 'ByteMatchTuple' values must exactly match the values in the 'ByteMatchTuple' that you want to delete from the 'ByteMatchSet'.+-- | Information about the part of a web request that you want AWS WAF to inspect and the value that you want AWS WAF to search for. If you specify @DELETE@ for the value of @Action@ , the @ByteMatchTuple@ values must exactly match the values in the @ByteMatchTuple@ that you want to delete from the @ByteMatchSet@ . bmsuByteMatchTuple :: Lens' ByteMatchSetUpdate ByteMatchTuple bmsuByteMatchTuple = lens _bmsuByteMatchTuple (\ s a -> s{_bmsuByteMatchTuple = a}); @@ -239,6 +237,8 @@ -- | The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. --+--+-- -- /See:/ 'byteMatchTuple' smart constructor. data ByteMatchTuple = ByteMatchTuple' { _bmtFieldToMatch :: !FieldToMatch@@ -251,13 +251,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'bmtFieldToMatch'+-- * 'bmtFieldToMatch' - The part of a web request that you want AWS WAF to search, such as a specified header or a query string. For more information, see 'FieldToMatch' . ----- * 'bmtTargetString'+-- * 'bmtTargetString' - The value that you want AWS WAF to search for. AWS WAF searches for the specified string in the part of web requests that you specified in @FieldToMatch@ . The maximum length of the value is 50 bytes. Valid values depend on the values that you specified for @FieldToMatch@ : * @HEADER@ : The value that you want AWS WAF to search for in the request header that you specified in 'FieldToMatch' , for example, the value of the @User-Agent@ or @Referer@ header. * @METHOD@ : The HTTP method, which indicates the type of operation specified in the request. CloudFront supports the following methods: @DELETE@ , @GET@ , @HEAD@ , @OPTIONS@ , @PATCH@ , @POST@ , and @PUT@ . * @QUERY_STRING@ : The value that you want AWS WAF to search for in the query string, which is the part of a URL that appears after a @?@ character. * @URI@ : The value that you want AWS WAF to search for in the part of a URL that identifies a resource, for example, @/images/daily-ad.jpg@ . * @BODY@ : The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first @8192@ bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see 'CreateSizeConstraintSet' . If @TargetString@ includes alphabetic characters A-Z and a-z, note that the value is case sensitive. __If you're using the AWS WAF API__ Specify a base64-encoded version of the value. The maximum length of the value before you base64-encode it is 50 bytes. For example, suppose the value of @Type@ is @HEADER@ and the value of @Data@ is @User-Agent@ . If you want to search the @User-Agent@ header for the value @BadBot@ , you base64-encode @BadBot@ using MIME base64 encoding and include the resulting value, @QmFkQm90@ , in the value of @TargetString@ . __If you're using the AWS CLI or one of the AWS SDKs__ The value that you want AWS WAF to search for. The SDK automatically base64 encodes the value.-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data. ----- * 'bmtTextTransformation'+-- * 'bmtTextTransformation' - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on @TargetString@ before inspecting a request for a match. __CMD_LINE__ When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations: * Delete the following characters: \ " ' ^ * Delete spaces before the following characters: / ( * Replace the following characters with a space: , ; * Replace multiple spaces with one space * Convert uppercase letters (A-Z) to lowercase (a-z) __COMPRESS_WHITE_SPACE__ Use this option to replace the following characters with a space character (decimal 32): * \f, formfeed, decimal 12 * \t, tab, decimal 9 * \n, newline, decimal 10 * \r, carriage return, decimal 13 * \v, vertical tab, decimal 11 * non-breaking space, decimal 160 @COMPRESS_WHITE_SPACE@ also replaces multiple spaces with one space. __HTML_ENTITY_DECODE__ Use this option to replace HTML-encoded characters with unencoded characters. @HTML_ENTITY_DECODE@ performs the following operations: * Replaces @(ampersand)quot;@ with @"@ * Replaces @(ampersand)nbsp;@ with a non-breaking space, decimal 160 * Replaces @(ampersand)lt;@ with a "less than" symbol * Replaces @(ampersand)gt;@ with @>@ * Replaces characters that are represented in hexadecimal format, @(ampersand)#xhhhh;@ , with the corresponding characters * Replaces characters that are represented in decimal format, @(ampersand)#nnnn;@ , with the corresponding characters __LOWERCASE__ Use this option to convert uppercase letters (A-Z) to lowercase (a-z). __URL_DECODE__ Use this option to decode a URL-encoded value. __NONE__ Specify @NONE@ if you don't want to perform any text transformations. ----- * 'bmtPositionalConstraint'+-- * 'bmtPositionalConstraint' - Within the portion of a web request that you want to search (for example, in the query string, if any), specify where you want AWS WAF to search. Valid values include the following: __CONTAINS__ The specified part of the web request must include the value of @TargetString@ , but the location doesn't matter. __CONTAINS_WORD__ The specified part of the web request must include the value of @TargetString@ , and @TargetString@ must contain only alphanumeric characters or underscore (A-Z, a-z, 0-9, or _). In addition, @TargetString@ must be a word, which means one of the following: * @TargetString@ exactly matches the value of the specified part of the web request, such as the value of a header. * @TargetString@ is at the beginning of the specified part of the web request and is followed by a character other than an alphanumeric character or underscore (_), for example, @BadBot;@ . * @TargetString@ is at the end of the specified part of the web request and is preceded by a character other than an alphanumeric character or underscore (_), for example, @;BadBot@ . * @TargetString@ is in the middle of the specified part of the web request and is preceded and followed by characters other than alphanumeric characters or underscore (_), for example, @-BadBot;@ . __EXACTLY__ The value of the specified part of the web request must exactly match the value of @TargetString@ . __STARTS_WITH__ The value of @TargetString@ must appear at the beginning of the specified part of the web request. __ENDS_WITH__ The value of @TargetString@ must appear at the end of the specified part of the web request. byteMatchTuple :: FieldToMatch -- ^ 'bmtFieldToMatch' -> ByteString -- ^ 'bmtTargetString'@@ -272,116 +272,19 @@ , _bmtPositionalConstraint = pPositionalConstraint_ } --- | The part of a web request that you want AWS WAF to search, such as a specified header or a query string. For more information, see < FieldToMatch>.+-- | The part of a web request that you want AWS WAF to search, such as a specified header or a query string. For more information, see 'FieldToMatch' . bmtFieldToMatch :: Lens' ByteMatchTuple FieldToMatch bmtFieldToMatch = lens _bmtFieldToMatch (\ s a -> s{_bmtFieldToMatch = a}); --- | The value that you want AWS WAF to search for. AWS WAF searches for the specified string in the part of web requests that you specified in 'FieldToMatch'. The maximum length of the value is 50 bytes.------ Valid values depend on the values that you specified for 'FieldToMatch':------ - 'HEADER': The value that you want AWS WAF to search for in the request header that you specified in < FieldToMatch>, for example, the value of the 'User-Agent' or 'Referer' header.--- - 'METHOD': The HTTP method, which indicates the type of operation specified in the request. CloudFront supports the following methods: 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', and 'PUT'.--- - 'QUERY_STRING': The value that you want AWS WAF to search for in the query string, which is the part of a URL that appears after a '?' character.--- - 'URI': The value that you want AWS WAF to search for in the part of a URL that identifies a resource, for example, '\/images\/daily-ad.jpg'.--- - 'BODY': The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first '8192' bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see < CreateSizeConstraintSet>.------ If 'TargetString' includes alphabetic characters A-Z and a-z, note that the value is case sensitive.------ __If you\'re using the AWS WAF API__------ Specify a base64-encoded version of the value. The maximum length of the value before you base64-encode it is 50 bytes.------ For example, suppose the value of 'Type' is 'HEADER' and the value of 'Data' is 'User-Agent'. If you want to search the 'User-Agent' header for the value 'BadBot', you base64-encode 'BadBot' using MIME base64 encoding and include the resulting value, 'QmFkQm90', in the value of 'TargetString'.------ __If you\'re using the AWS CLI or one of the AWS SDKs__------ The value that you want AWS WAF to search for. The SDK automatically base64 encodes the value.------ /Note:/ This 'Lens' automatically encodes and decodes Base64 data,--- despite what the AWS documentation might say.--- The underlying isomorphism will encode to Base64 representation during--- serialisation, and decode from Base64 representation during deserialisation.--- This 'Lens' accepts and returns only raw unencoded data.+-- | The value that you want AWS WAF to search for. AWS WAF searches for the specified string in the part of web requests that you specified in @FieldToMatch@ . The maximum length of the value is 50 bytes. Valid values depend on the values that you specified for @FieldToMatch@ : * @HEADER@ : The value that you want AWS WAF to search for in the request header that you specified in 'FieldToMatch' , for example, the value of the @User-Agent@ or @Referer@ header. * @METHOD@ : The HTTP method, which indicates the type of operation specified in the request. CloudFront supports the following methods: @DELETE@ , @GET@ , @HEAD@ , @OPTIONS@ , @PATCH@ , @POST@ , and @PUT@ . * @QUERY_STRING@ : The value that you want AWS WAF to search for in the query string, which is the part of a URL that appears after a @?@ character. * @URI@ : The value that you want AWS WAF to search for in the part of a URL that identifies a resource, for example, @/images/daily-ad.jpg@ . * @BODY@ : The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first @8192@ bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see 'CreateSizeConstraintSet' . If @TargetString@ includes alphabetic characters A-Z and a-z, note that the value is case sensitive. __If you're using the AWS WAF API__ Specify a base64-encoded version of the value. The maximum length of the value before you base64-encode it is 50 bytes. For example, suppose the value of @Type@ is @HEADER@ and the value of @Data@ is @User-Agent@ . If you want to search the @User-Agent@ header for the value @BadBot@ , you base64-encode @BadBot@ using MIME base64 encoding and include the resulting value, @QmFkQm90@ , in the value of @TargetString@ . __If you're using the AWS CLI or one of the AWS SDKs__ The value that you want AWS WAF to search for. The SDK automatically base64 encodes the value.-- /Note:/ This 'Lens' automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This 'Lens' accepts and returns only raw unencoded data. bmtTargetString :: Lens' ByteMatchTuple ByteString bmtTargetString = lens _bmtTargetString (\ s a -> s{_bmtTargetString = a}) . _Base64; --- | Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on 'TargetString' before inspecting a request for a match.------ __CMD_LINE__------ When you\'re concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:------ - Delete the following characters: \\ \" \' ^--- - Delete spaces before the following characters: \/ (--- - Replace the following characters with a space: , ;--- - Replace multiple spaces with one space--- - Convert uppercase letters (A-Z) to lowercase (a-z)------ __COMPRESS_WHITE_SPACE__------ Use this option to replace the following characters with a space character (decimal 32):------ - \\f, formfeed, decimal 12--- - \\t, tab, decimal 9--- - \\n, newline, decimal 10--- - \\r, carriage return, decimal 13--- - \\v, vertical tab, decimal 11--- - non-breaking space, decimal 160------ 'COMPRESS_WHITE_SPACE' also replaces multiple spaces with one space.------ __HTML_ENTITY_DECODE__------ Use this option to replace HTML-encoded characters with unencoded characters. 'HTML_ENTITY_DECODE' performs the following operations:------ - Replaces '(ampersand)quot;' with '\"'--- - Replaces '(ampersand)nbsp;' with a non-breaking space, decimal 160--- - Replaces '(ampersand)lt;' with a \"less than\" symbol--- - Replaces '(ampersand)gt;' with '>'--- - Replaces characters that are represented in hexadecimal format, '(ampersand)#xhhhh;', with the corresponding characters--- - Replaces characters that are represented in decimal format, '(ampersand)#nnnn;', with the corresponding characters------ __LOWERCASE__------ Use this option to convert uppercase letters (A-Z) to lowercase (a-z).------ __URL_DECODE__------ Use this option to decode a URL-encoded value.------ __NONE__------ Specify 'NONE' if you don\'t want to perform any text transformations.+-- | Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on @TargetString@ before inspecting a request for a match. __CMD_LINE__ When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations: * Delete the following characters: \ " ' ^ * Delete spaces before the following characters: / ( * Replace the following characters with a space: , ; * Replace multiple spaces with one space * Convert uppercase letters (A-Z) to lowercase (a-z) __COMPRESS_WHITE_SPACE__ Use this option to replace the following characters with a space character (decimal 32): * \f, formfeed, decimal 12 * \t, tab, decimal 9 * \n, newline, decimal 10 * \r, carriage return, decimal 13 * \v, vertical tab, decimal 11 * non-breaking space, decimal 160 @COMPRESS_WHITE_SPACE@ also replaces multiple spaces with one space. __HTML_ENTITY_DECODE__ Use this option to replace HTML-encoded characters with unencoded characters. @HTML_ENTITY_DECODE@ performs the following operations: * Replaces @(ampersand)quot;@ with @"@ * Replaces @(ampersand)nbsp;@ with a non-breaking space, decimal 160 * Replaces @(ampersand)lt;@ with a "less than" symbol * Replaces @(ampersand)gt;@ with @>@ * Replaces characters that are represented in hexadecimal format, @(ampersand)#xhhhh;@ , with the corresponding characters * Replaces characters that are represented in decimal format, @(ampersand)#nnnn;@ , with the corresponding characters __LOWERCASE__ Use this option to convert uppercase letters (A-Z) to lowercase (a-z). __URL_DECODE__ Use this option to decode a URL-encoded value. __NONE__ Specify @NONE@ if you don't want to perform any text transformations. bmtTextTransformation :: Lens' ByteMatchTuple TextTransformation bmtTextTransformation = lens _bmtTextTransformation (\ s a -> s{_bmtTextTransformation = a}); --- | Within the portion of a web request that you want to search (for example, in the query string, if any), specify where you want AWS WAF to search. Valid values include the following:------ __CONTAINS__------ The specified part of the web request must include the value of 'TargetString', but the location doesn\'t matter.------ __CONTAINS_WORD__------ The specified part of the web request must include the value of 'TargetString', and 'TargetString' must contain only alphanumeric characters or underscore (A-Z, a-z, 0-9, or _). In addition, 'TargetString' must be a word, which means one of the following:------ - 'TargetString' exactly matches the value of the specified part of the web request, such as the value of a header.--- - 'TargetString' is at the beginning of the specified part of the web request and is followed by a character other than an alphanumeric character or underscore (_), for example, 'BadBot;'.--- - 'TargetString' is at the end of the specified part of the web request and is preceded by a character other than an alphanumeric character or underscore (_), for example, ';BadBot'.--- - 'TargetString' is in the middle of the specified part of the web request and is preceded and followed by characters other than alphanumeric characters or underscore (_), for example, '-BadBot;'.------ __EXACTLY__------ The value of the specified part of the web request must exactly match the value of 'TargetString'.------ __STARTS_WITH__------ The value of 'TargetString' must appear at the beginning of the specified part of the web request.------ __ENDS_WITH__------ The value of 'TargetString' must appear at the end of the specified part of the web request.+-- | Within the portion of a web request that you want to search (for example, in the query string, if any), specify where you want AWS WAF to search. Valid values include the following: __CONTAINS__ The specified part of the web request must include the value of @TargetString@ , but the location doesn't matter. __CONTAINS_WORD__ The specified part of the web request must include the value of @TargetString@ , and @TargetString@ must contain only alphanumeric characters or underscore (A-Z, a-z, 0-9, or _). In addition, @TargetString@ must be a word, which means one of the following: * @TargetString@ exactly matches the value of the specified part of the web request, such as the value of a header. * @TargetString@ is at the beginning of the specified part of the web request and is followed by a character other than an alphanumeric character or underscore (_), for example, @BadBot;@ . * @TargetString@ is at the end of the specified part of the web request and is preceded by a character other than an alphanumeric character or underscore (_), for example, @;BadBot@ . * @TargetString@ is in the middle of the specified part of the web request and is preceded and followed by characters other than alphanumeric characters or underscore (_), for example, @-BadBot;@ . __EXACTLY__ The value of the specified part of the web request must exactly match the value of @TargetString@ . __STARTS_WITH__ The value of @TargetString@ must appear at the beginning of the specified part of the web request. __ENDS_WITH__ The value of @TargetString@ must appear at the end of the specified part of the web request. bmtPositionalConstraint :: Lens' ByteMatchTuple PositionalConstraint bmtPositionalConstraint = lens _bmtPositionalConstraint (\ s a -> s{_bmtPositionalConstraint = a}); @@ -410,8 +313,10 @@ ("PositionalConstraint" .= _bmtPositionalConstraint)]) --- | Specifies where in a web request to look for 'TargetString'.+-- | Specifies where in a web request to look for @TargetString@ . --+--+-- -- /See:/ 'fieldToMatch' smart constructor. data FieldToMatch = FieldToMatch' { _ftmData :: !(Maybe Text)@@ -422,9 +327,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ftmData'+-- * 'ftmData' - When the value of @Type@ is @HEADER@ , enter the name of the header that you want AWS WAF to search, for example, @User-Agent@ or @Referer@ . If the value of @Type@ is any other value, omit @Data@ . The name of the header is not case sensitive. ----- * 'ftmType'+-- * 'ftmType' - The part of the web request that you want AWS WAF to search for a specified string. Parts of a request that you can search include the following: * @HEADER@ : A specified request header, for example, the value of the @User-Agent@ or @Referer@ header. If you choose @HEADER@ for the type, specify the name of the header in @Data@ . * @METHOD@ : The HTTP method, which indicated the type of operation that the request is asking the origin to perform. Amazon CloudFront supports the following methods: @DELETE@ , @GET@ , @HEAD@ , @OPTIONS@ , @PATCH@ , @POST@ , and @PUT@ . * @QUERY_STRING@ : A query string, which is the part of a URL that appears after a @?@ character, if any. * @URI@ : The part of a web request that identifies a resource, for example, @/images/daily-ad.jpg@ . * @BODY@ : The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first @8192@ bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see 'CreateSizeConstraintSet' . fieldToMatch :: MatchFieldType -- ^ 'ftmType' -> FieldToMatch@@ -434,19 +339,11 @@ , _ftmType = pType_ } --- | When the value of 'Type' is 'HEADER', enter the name of the header that you want AWS WAF to search, for example, 'User-Agent' or 'Referer'. If the value of 'Type' is any other value, omit 'Data'.------ The name of the header is not case sensitive.+-- | When the value of @Type@ is @HEADER@ , enter the name of the header that you want AWS WAF to search, for example, @User-Agent@ or @Referer@ . If the value of @Type@ is any other value, omit @Data@ . The name of the header is not case sensitive. ftmData :: Lens' FieldToMatch (Maybe Text) ftmData = lens _ftmData (\ s a -> s{_ftmData = a}); --- | The part of the web request that you want AWS WAF to search for a specified string. Parts of a request that you can search include the following:------ - 'HEADER': A specified request header, for example, the value of the 'User-Agent' or 'Referer' header. If you choose 'HEADER' for the type, specify the name of the header in 'Data'.--- - 'METHOD': The HTTP method, which indicated the type of operation that the request is asking the origin to perform. Amazon CloudFront supports the following methods: 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', and 'PUT'.--- - 'QUERY_STRING': A query string, which is the part of a URL that appears after a '?' character, if any.--- - 'URI': The part of a web request that identifies a resource, for example, '\/images\/daily-ad.jpg'.--- - 'BODY': The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first '8192' bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see < CreateSizeConstraintSet>.+-- | The part of the web request that you want AWS WAF to search for a specified string. Parts of a request that you can search include the following: * @HEADER@ : A specified request header, for example, the value of the @User-Agent@ or @Referer@ header. If you choose @HEADER@ for the type, specify the name of the header in @Data@ . * @METHOD@ : The HTTP method, which indicated the type of operation that the request is asking the origin to perform. Amazon CloudFront supports the following methods: @DELETE@ , @GET@ , @HEAD@ , @OPTIONS@ , @PATCH@ , @POST@ , and @PUT@ . * @QUERY_STRING@ : A query string, which is the part of a URL that appears after a @?@ character, if any. * @URI@ : The part of a web request that identifies a resource, for example, @/images/daily-ad.jpg@ . * @BODY@ : The part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form. The request body immediately follows the request headers. Note that only the first @8192@ bytes of the request body are forwarded to AWS WAF for inspection. To allow or block requests based on the length of the body, you can create a size constraint set. For more information, see 'CreateSizeConstraintSet' . ftmType :: Lens' FieldToMatch MatchFieldType ftmType = lens _ftmType (\ s a -> s{_ftmType = a}); @@ -467,8 +364,10 @@ [("Data" .=) <$> _ftmData, Just ("Type" .= _ftmType)]) --- | The response from a < GetSampledRequests> request includes an 'HTTPHeader' complex type that appears as 'Headers' in the response syntax. 'HTTPHeader' contains the names and values of all of the headers that appear in one of the web requests that were returned by 'GetSampledRequests'.+-- | The response from a 'GetSampledRequests' request includes an @HTTPHeader@ complex type that appears as @Headers@ in the response syntax. @HTTPHeader@ contains the names and values of all of the headers that appear in one of the web requests that were returned by @GetSampledRequests@ . --+--+-- -- /See:/ 'hTTPHeader' smart constructor. data HTTPHeader = HTTPHeader' { _httphValue :: !(Maybe Text)@@ -479,9 +378,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'httphValue'+-- * 'httphValue' - The value of one of the headers in the sampled web request. ----- * 'httphName'+-- * 'httphName' - The name of one of the headers in the sampled web request. hTTPHeader :: HTTPHeader hTTPHeader =@@ -508,8 +407,10 @@ instance NFData HTTPHeader --- | The response from a < GetSampledRequests> request includes an 'HTTPRequest' complex type that appears as 'Request' in the response syntax. 'HTTPRequest' contains information about one of the web requests that were returned by 'GetSampledRequests'.+-- | The response from a 'GetSampledRequests' request includes an @HTTPRequest@ complex type that appears as @Request@ in the response syntax. @HTTPRequest@ contains information about one of the web requests that were returned by @GetSampledRequests@ . --+--+-- -- /See:/ 'hTTPRequest' smart constructor. data HTTPRequest = HTTPRequest' { _httprHTTPVersion :: !(Maybe Text)@@ -524,17 +425,17 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'httprHTTPVersion'+-- * 'httprHTTPVersion' - The HTTP version specified in the sampled web request, for example, @HTTP/1.1@ . ----- * 'httprCountry'+-- * 'httprCountry' - The two-letter country code for the country that the request originated from. For a current list of country codes, see the Wikipedia entry <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO 3166-1 alpha-2> . ----- * 'httprURI'+-- * 'httprURI' - The part of a web request that identifies the resource, for example, @/images/daily-ad.jpg@ . ----- * 'httprHeaders'+-- * 'httprHeaders' - A complex type that contains two values for each header in the sampled web request: the name of the header and the value of the header. ----- * 'httprMethod'+-- * 'httprMethod' - The HTTP method specified in the sampled web request. CloudFront supports the following methods: @DELETE@ , @GET@ , @HEAD@ , @OPTIONS@ , @PATCH@ , @POST@ , and @PUT@ . ----- * 'httprClientIP'+-- * 'httprClientIP' - The IP address that the request originated from. If the @WebACL@ is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs: * @c-ip@ , if the viewer did not use an HTTP proxy or a load balancer to send the request * @x-forwarded-for@ , if the viewer did use an HTTP proxy or a load balancer to send the request hTTPRequest :: HTTPRequest hTTPRequest =@@ -547,15 +448,15 @@ , _httprClientIP = Nothing } --- | The HTTP version specified in the sampled web request, for example, 'HTTP\/1.1'.+-- | The HTTP version specified in the sampled web request, for example, @HTTP/1.1@ . httprHTTPVersion :: Lens' HTTPRequest (Maybe Text) httprHTTPVersion = lens _httprHTTPVersion (\ s a -> s{_httprHTTPVersion = a}); --- | The two-letter country code for the country that the request originated from. For a current list of country codes, see the Wikipedia entry <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO 3166-1 alpha-2>.+-- | The two-letter country code for the country that the request originated from. For a current list of country codes, see the Wikipedia entry <https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 ISO 3166-1 alpha-2> . httprCountry :: Lens' HTTPRequest (Maybe Text) httprCountry = lens _httprCountry (\ s a -> s{_httprCountry = a}); --- | The part of a web request that identifies the resource, for example, '\/images\/daily-ad.jpg'.+-- | The part of a web request that identifies the resource, for example, @/images/daily-ad.jpg@ . httprURI :: Lens' HTTPRequest (Maybe Text) httprURI = lens _httprURI (\ s a -> s{_httprURI = a}); @@ -563,14 +464,11 @@ httprHeaders :: Lens' HTTPRequest [HTTPHeader] httprHeaders = lens _httprHeaders (\ s a -> s{_httprHeaders = a}) . _Default . _Coerce; --- | The HTTP method specified in the sampled web request. CloudFront supports the following methods: 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', and 'PUT'.+-- | The HTTP method specified in the sampled web request. CloudFront supports the following methods: @DELETE@ , @GET@ , @HEAD@ , @OPTIONS@ , @PATCH@ , @POST@ , and @PUT@ . httprMethod :: Lens' HTTPRequest (Maybe Text) httprMethod = lens _httprMethod (\ s a -> s{_httprMethod = a}); --- | The IP address that the request originated from. If the 'WebACL' is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:------ - 'c-ip', if the viewer did not use an HTTP proxy or a load balancer to send the request--- - 'x-forwarded-for', if the viewer did use an HTTP proxy or a load balancer to send the request+-- | The IP address that the request originated from. If the @WebACL@ is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs: * @c-ip@ , if the viewer did not use an HTTP proxy or a load balancer to send the request * @x-forwarded-for@ , if the viewer did use an HTTP proxy or a load balancer to send the request httprClientIP :: Lens' HTTPRequest (Maybe Text) httprClientIP = lens _httprClientIP (\ s a -> s{_httprClientIP = a}); @@ -589,8 +487,10 @@ instance NFData HTTPRequest --- | Contains one or more IP addresses or blocks of IP addresses specified in Classless Inter-Domain Routing (CIDR) notation. To specify an individual IP address, you specify the four-part IP address followed by a '\/32', for example, 192.0.2.0\/31. To block a range of IP addresses, you can specify a '\/24', a '\/16', or a '\/8' CIDR. For more information about CIDR notation, perform an Internet search on 'cidr notation'.+-- | Contains one or more IP addresses or blocks of IP addresses specified in Classless Inter-Domain Routing (CIDR) notation. To specify an individual IP address, you specify the four-part IP address followed by a @/32@ , for example, 192.0.2.0/31. To block a range of IP addresses, you can specify a @/24@ , a @/16@ , or a @/8@ CIDR. For more information about CIDR notation, perform an Internet search on @cidr notation@ . --+--+-- -- /See:/ 'ipSet' smart constructor. data IPSet = IPSet' { _isName :: !(Maybe Text)@@ -602,11 +502,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'isName'+-- * 'isName' - A friendly name or description of the 'IPSet' . You can't change the name of an @IPSet@ after you create it. ----- * 'isIPSetId'+-- * 'isIPSetId' - The @IPSetId@ for an @IPSet@ . You use @IPSetId@ to get information about an @IPSet@ (see 'GetIPSet' ), update an @IPSet@ (see 'UpdateIPSet' ), insert an @IPSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete an @IPSet@ from AWS WAF (see 'DeleteIPSet' ). @IPSetId@ is returned by 'CreateIPSet' and by 'ListIPSets' . ----- * 'isIPSetDescriptors'+-- * 'isIPSetDescriptors' - The IP address type (@IPV4@ ) and the IP address range (in CIDR notation) that web requests originate from. If the @WebACL@ is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs: * @c-ip@ , if the viewer did not use an HTTP proxy or a load balancer to send the request * @x-forwarded-for@ , if the viewer did use an HTTP proxy or a load balancer to send the request ipSet :: Text -- ^ 'isIPSetId' -> IPSet@@ -617,20 +517,15 @@ , _isIPSetDescriptors = mempty } --- | A friendly name or description of the < IPSet>. You can\'t change the name of an 'IPSet' after you create it.+-- | A friendly name or description of the 'IPSet' . You can't change the name of an @IPSet@ after you create it. isName :: Lens' IPSet (Maybe Text) isName = lens _isName (\ s a -> s{_isName = a}); --- | The 'IPSetId' for an 'IPSet'. You use 'IPSetId' to get information about an 'IPSet' (see < GetIPSet>), update an 'IPSet' (see < UpdateIPSet>), insert an 'IPSet' into a 'Rule' or delete one from a 'Rule' (see < UpdateRule>), and delete an 'IPSet' from AWS WAF (see < DeleteIPSet>).------ 'IPSetId' is returned by < CreateIPSet> and by < ListIPSets>.+-- | The @IPSetId@ for an @IPSet@ . You use @IPSetId@ to get information about an @IPSet@ (see 'GetIPSet' ), update an @IPSet@ (see 'UpdateIPSet' ), insert an @IPSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete an @IPSet@ from AWS WAF (see 'DeleteIPSet' ). @IPSetId@ is returned by 'CreateIPSet' and by 'ListIPSets' . isIPSetId :: Lens' IPSet Text isIPSetId = lens _isIPSetId (\ s a -> s{_isIPSetId = a}); --- | The IP address type ('IPV4') and the IP address range (in CIDR notation) that web requests originate from. If the 'WebACL' is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:------ - 'c-ip', if the viewer did not use an HTTP proxy or a load balancer to send the request--- - 'x-forwarded-for', if the viewer did use an HTTP proxy or a load balancer to send the request+-- | The IP address type (@IPV4@ ) and the IP address range (in CIDR notation) that web requests originate from. If the @WebACL@ is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs: * @c-ip@ , if the viewer did not use an HTTP proxy or a load balancer to send the request * @x-forwarded-for@ , if the viewer did use an HTTP proxy or a load balancer to send the request isIPSetDescriptors :: Lens' IPSet [IPSetDescriptor] isIPSetDescriptors = lens _isIPSetDescriptors (\ s a -> s{_isIPSetDescriptors = a}) . _Coerce; @@ -646,8 +541,10 @@ instance NFData IPSet --- | Specifies the IP address type ('IPV4') and the IP address range (in CIDR format) that web requests originate from.+-- | Specifies the IP address type (@IPV4@ ) and the IP address range (in CIDR format) that web requests originate from. --+--+-- -- /See:/ 'ipSetDescriptor' smart constructor. data IPSetDescriptor = IPSetDescriptor' { _isdType :: !IPSetDescriptorType@@ -658,9 +555,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'isdType'+-- * 'isdType' - Specify @IPV4@ . ----- * 'isdValue'+-- * 'isdValue' - Specify an IPv4 address by using CIDR notation. For example: * To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify @192.0.2.44/32@ . * To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify @192.0.2.0/24@ . AWS WAF supports only /8, /16, /24, and /32 IP addresses. For more information about CIDR notation, see the Wikipedia entry <https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing Classless Inter-Domain Routing> . ipSetDescriptor :: IPSetDescriptorType -- ^ 'isdType' -> Text -- ^ 'isdValue'@@ -671,18 +568,11 @@ , _isdValue = pValue_ } --- | Specify 'IPV4'.+-- | Specify @IPV4@ . isdType :: Lens' IPSetDescriptor IPSetDescriptorType isdType = lens _isdType (\ s a -> s{_isdType = a}); --- | Specify an IPv4 address by using CIDR notation. For example:------ - To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify '192.0.2.44\/32'.--- - To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify '192.0.2.0\/24'.------ AWS WAF supports only \/8, \/16, \/24, and \/32 IP addresses.------ For more information about CIDR notation, see the Wikipedia entry <https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing Classless Inter-Domain Routing>.+-- | Specify an IPv4 address by using CIDR notation. For example: * To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify @192.0.2.44/32@ . * To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify @192.0.2.0/24@ . AWS WAF supports only /8, /16, /24, and /32 IP addresses. For more information about CIDR notation, see the Wikipedia entry <https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing Classless Inter-Domain Routing> . isdValue :: Lens' IPSetDescriptor Text isdValue = lens _isdValue (\ s a -> s{_isdValue = a}); @@ -704,8 +594,10 @@ [Just ("Type" .= _isdType), Just ("Value" .= _isdValue)]) --- | Contains the identifier and the name of the 'IPSet'.+-- | Contains the identifier and the name of the @IPSet@ . --+--+-- -- /See:/ 'ipSetSummary' smart constructor. data IPSetSummary = IPSetSummary' { _issIPSetId :: !Text@@ -716,9 +608,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'issIPSetId'+-- * 'issIPSetId' - The @IPSetId@ for an 'IPSet' . You can use @IPSetId@ in a 'GetIPSet' request to get detailed information about an 'IPSet' . ----- * 'issName'+-- * 'issName' - A friendly name or description of the 'IPSet' . You can't change the name of an @IPSet@ after you create it. ipSetSummary :: Text -- ^ 'issIPSetId' -> Text -- ^ 'issName'@@ -729,11 +621,11 @@ , _issName = pName_ } --- | The 'IPSetId' for an < IPSet>. You can use 'IPSetId' in a < GetIPSet> request to get detailed information about an < IPSet>.+-- | The @IPSetId@ for an 'IPSet' . You can use @IPSetId@ in a 'GetIPSet' request to get detailed information about an 'IPSet' . issIPSetId :: Lens' IPSetSummary Text issIPSetId = lens _issIPSetId (\ s a -> s{_issIPSetId = a}); --- | A friendly name or description of the < IPSet>. You can\'t change the name of an 'IPSet' after you create it.+-- | A friendly name or description of the 'IPSet' . You can't change the name of an @IPSet@ after you create it. issName :: Lens' IPSetSummary Text issName = lens _issName (\ s a -> s{_issName = a}); @@ -747,8 +639,10 @@ instance NFData IPSetSummary --- | Specifies the type of update to perform to an < IPSet> with < UpdateIPSet>.+-- | Specifies the type of update to perform to an 'IPSet' with 'UpdateIPSet' . --+--+-- -- /See:/ 'ipSetUpdate' smart constructor. data IPSetUpdate = IPSetUpdate' { _isuAction :: !ChangeAction@@ -759,9 +653,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'isuAction'+-- * 'isuAction' - Specifies whether to insert or delete an IP address with 'UpdateIPSet' . ----- * 'isuIPSetDescriptor'+-- * 'isuIPSetDescriptor' - The IP address type (@IPV4@ ) and the IP address range (in CIDR notation) that web requests originate from. ipSetUpdate :: ChangeAction -- ^ 'isuAction' -> IPSetDescriptor -- ^ 'isuIPSetDescriptor'@@ -772,11 +666,11 @@ , _isuIPSetDescriptor = pIPSetDescriptor_ } --- | Specifies whether to insert or delete an IP address with < UpdateIPSet>.+-- | Specifies whether to insert or delete an IP address with 'UpdateIPSet' . isuAction :: Lens' IPSetUpdate ChangeAction isuAction = lens _isuAction (\ s a -> s{_isuAction = a}); --- | The IP address type ('IPV4') and the IP address range (in CIDR notation) that web requests originate from.+-- | The IP address type (@IPV4@ ) and the IP address range (in CIDR notation) that web requests originate from. isuIPSetDescriptor :: Lens' IPSetUpdate IPSetDescriptor isuIPSetDescriptor = lens _isuIPSetDescriptor (\ s a -> s{_isuIPSetDescriptor = a}); @@ -791,8 +685,10 @@ [Just ("Action" .= _isuAction), Just ("IPSetDescriptor" .= _isuIPSetDescriptor)]) --- | Specifies the < ByteMatchSet>, < IPSet>, < SqlInjectionMatchSet>, < XssMatchSet>, and < SizeConstraintSet> objects that you want to add to a 'Rule' and, for each object, indicates whether you want to negate the settings, for example, requests that do NOT originate from the IP address 192.0.2.44.+-- | Specifies the 'ByteMatchSet' , 'IPSet' , 'SqlInjectionMatchSet' , 'XssMatchSet' , and 'SizeConstraintSet' objects that you want to add to a @Rule@ and, for each object, indicates whether you want to negate the settings, for example, requests that do NOT originate from the IP address 192.0.2.44. --+--+-- -- /See:/ 'predicate' smart constructor. data Predicate = Predicate' { _pNegated :: !Bool@@ -804,11 +700,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'pNegated'+-- * 'pNegated' - Set @Negated@ to @False@ if you want AWS WAF to allow, block, or count requests based on the settings in the specified 'ByteMatchSet' , 'IPSet' , 'SqlInjectionMatchSet' , 'XssMatchSet' , or 'SizeConstraintSet' . For example, if an @IPSet@ includes the IP address @192.0.2.44@ , AWS WAF will allow or block requests based on that IP address. Set @Negated@ to @True@ if you want AWS WAF to allow or block a request based on the negation of the settings in the 'ByteMatchSet' , 'IPSet' , 'SqlInjectionMatchSet' , 'XssMatchSet' , or 'SizeConstraintSet' . For example, if an @IPSet@ includes the IP address @192.0.2.44@ , AWS WAF will allow, block, or count requests based on all IP addresses /except/ @192.0.2.44@ . ----- * 'pType'+-- * 'pType' - The type of predicate in a @Rule@ , such as @ByteMatchSet@ or @IPSet@ . ----- * 'pDataId'+-- * 'pDataId' - A unique identifier for a predicate in a @Rule@ , such as @ByteMatchSetId@ or @IPSetId@ . The ID is returned by the corresponding @Create@ or @List@ command. predicate :: Bool -- ^ 'pNegated' -> PredicateType -- ^ 'pType'@@ -821,17 +717,15 @@ , _pDataId = pDataId_ } --- | Set 'Negated' to 'False' if you want AWS WAF to allow, block, or count requests based on the settings in the specified < ByteMatchSet>, < IPSet>, < SqlInjectionMatchSet>, < XssMatchSet>, or < SizeConstraintSet>. For example, if an 'IPSet' includes the IP address '192.0.2.44', AWS WAF will allow or block requests based on that IP address.------ Set 'Negated' to 'True' if you want AWS WAF to allow or block a request based on the negation of the settings in the < ByteMatchSet>, < IPSet>, < SqlInjectionMatchSet>, < XssMatchSet>, or < SizeConstraintSet>. For example, if an 'IPSet' includes the IP address '192.0.2.44', AWS WAF will allow, block, or count requests based on all IP addresses /except/ '192.0.2.44'.+-- | Set @Negated@ to @False@ if you want AWS WAF to allow, block, or count requests based on the settings in the specified 'ByteMatchSet' , 'IPSet' , 'SqlInjectionMatchSet' , 'XssMatchSet' , or 'SizeConstraintSet' . For example, if an @IPSet@ includes the IP address @192.0.2.44@ , AWS WAF will allow or block requests based on that IP address. Set @Negated@ to @True@ if you want AWS WAF to allow or block a request based on the negation of the settings in the 'ByteMatchSet' , 'IPSet' , 'SqlInjectionMatchSet' , 'XssMatchSet' , or 'SizeConstraintSet' . For example, if an @IPSet@ includes the IP address @192.0.2.44@ , AWS WAF will allow, block, or count requests based on all IP addresses /except/ @192.0.2.44@ . pNegated :: Lens' Predicate Bool pNegated = lens _pNegated (\ s a -> s{_pNegated = a}); --- | The type of predicate in a 'Rule', such as 'ByteMatchSet' or 'IPSet'.+-- | The type of predicate in a @Rule@ , such as @ByteMatchSet@ or @IPSet@ . pType :: Lens' Predicate PredicateType pType = lens _pType (\ s a -> s{_pType = a}); --- | A unique identifier for a predicate in a 'Rule', such as 'ByteMatchSetId' or 'IPSetId'. The ID is returned by the corresponding 'Create' or 'List' command.+-- | A unique identifier for a predicate in a @Rule@ , such as @ByteMatchSetId@ or @IPSetId@ . The ID is returned by the corresponding @Create@ or @List@ command. pDataId :: Lens' Predicate Text pDataId = lens _pDataId (\ s a -> s{_pDataId = a}); @@ -855,13 +749,18 @@ Just ("Type" .= _pType), Just ("DataId" .= _pDataId)]) --- | A combination of < ByteMatchSet>, < IPSet>, and\/or < SqlInjectionMatchSet> objects that identify the web requests that you want to allow, block, or count. For example, you might create a 'Rule' that includes the following predicates:+-- | A combination of 'ByteMatchSet' , 'IPSet' , and/or 'SqlInjectionMatchSet' objects that identify the web requests that you want to allow, block, or count. For example, you might create a @Rule@ that includes the following predicates: ----- - An 'IPSet' that causes AWS WAF to search for web requests that originate from the IP address '192.0.2.44'--- - A 'ByteMatchSet' that causes AWS WAF to search for web requests for which the value of the 'User-Agent' header is 'BadBot'. ----- To match the settings in this 'Rule', a request must originate from '192.0.2.44' AND include a 'User-Agent' header for which the value is 'BadBot'.+-- * An @IPSet@ that causes AWS WAF to search for web requests that originate from the IP address @192.0.2.44@ --+-- * A @ByteMatchSet@ that causes AWS WAF to search for web requests for which the value of the @User-Agent@ header is @BadBot@ .+--+--+--+-- To match the settings in this @Rule@ , a request must originate from @192.0.2.44@ AND include a @User-Agent@ header for which the value is @BadBot@ .+--+-- -- /See:/ 'rule' smart constructor. data Rule = Rule' { _rMetricName :: !(Maybe Text)@@ -874,13 +773,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rMetricName'+-- * 'rMetricName' - Undocumented member. ----- * 'rName'+-- * 'rName' - The friendly name or description for the @Rule@ . You can't change the name of a @Rule@ after you create it. ----- * 'rRuleId'+-- * 'rRuleId' - A unique identifier for a @Rule@ . You use @RuleId@ to get more information about a @Rule@ (see 'GetRule' ), update a @Rule@ (see 'UpdateRule' ), insert a @Rule@ into a @WebACL@ or delete a one from a @WebACL@ (see 'UpdateWebACL' ), or delete a @Rule@ from AWS WAF (see 'DeleteRule' ). @RuleId@ is returned by 'CreateRule' and by 'ListRules' . ----- * 'rPredicates'+-- * 'rPredicates' - The @Predicates@ object contains one @Predicate@ element for each 'ByteMatchSet' , 'IPSet' , or 'SqlInjectionMatchSet' object that you want to include in a @Rule@ . rule :: Text -- ^ 'rRuleId' -> Rule@@ -896,17 +795,15 @@ rMetricName :: Lens' Rule (Maybe Text) rMetricName = lens _rMetricName (\ s a -> s{_rMetricName = a}); --- | The friendly name or description for the 'Rule'. You can\'t change the name of a 'Rule' after you create it.+-- | The friendly name or description for the @Rule@ . You can't change the name of a @Rule@ after you create it. rName :: Lens' Rule (Maybe Text) rName = lens _rName (\ s a -> s{_rName = a}); --- | A unique identifier for a 'Rule'. You use 'RuleId' to get more information about a 'Rule' (see < GetRule>), update a 'Rule' (see < UpdateRule>), insert a 'Rule' into a 'WebACL' or delete a one from a 'WebACL' (see < UpdateWebACL>), or delete a 'Rule' from AWS WAF (see < DeleteRule>).------ 'RuleId' is returned by < CreateRule> and by < ListRules>.+-- | A unique identifier for a @Rule@ . You use @RuleId@ to get more information about a @Rule@ (see 'GetRule' ), update a @Rule@ (see 'UpdateRule' ), insert a @Rule@ into a @WebACL@ or delete a one from a @WebACL@ (see 'UpdateWebACL' ), or delete a @Rule@ from AWS WAF (see 'DeleteRule' ). @RuleId@ is returned by 'CreateRule' and by 'ListRules' . rRuleId :: Lens' Rule Text rRuleId = lens _rRuleId (\ s a -> s{_rRuleId = a}); --- | The 'Predicates' object contains one 'Predicate' element for each < ByteMatchSet>, < IPSet>, or < SqlInjectionMatchSet> object that you want to include in a 'Rule'.+-- | The @Predicates@ object contains one @Predicate@ element for each 'ByteMatchSet' , 'IPSet' , or 'SqlInjectionMatchSet' object that you want to include in a @Rule@ . rPredicates :: Lens' Rule [Predicate] rPredicates = lens _rPredicates (\ s a -> s{_rPredicates = a}) . _Coerce; @@ -923,8 +820,10 @@ instance NFData Rule --- | Contains the identifier and the friendly name or description of the 'Rule'.+-- | Contains the identifier and the friendly name or description of the @Rule@ . --+--+-- -- /See:/ 'ruleSummary' smart constructor. data RuleSummary = RuleSummary' { _rsRuleId :: !Text@@ -935,9 +834,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'rsRuleId'+-- * 'rsRuleId' - A unique identifier for a @Rule@ . You use @RuleId@ to get more information about a @Rule@ (see 'GetRule' ), update a @Rule@ (see 'UpdateRule' ), insert a @Rule@ into a @WebACL@ or delete one from a @WebACL@ (see 'UpdateWebACL' ), or delete a @Rule@ from AWS WAF (see 'DeleteRule' ). @RuleId@ is returned by 'CreateRule' and by 'ListRules' . ----- * 'rsName'+-- * 'rsName' - A friendly name or description of the 'Rule' . You can't change the name of a @Rule@ after you create it. ruleSummary :: Text -- ^ 'rsRuleId' -> Text -- ^ 'rsName'@@ -948,13 +847,11 @@ , _rsName = pName_ } --- | A unique identifier for a 'Rule'. You use 'RuleId' to get more information about a 'Rule' (see < GetRule>), update a 'Rule' (see < UpdateRule>), insert a 'Rule' into a 'WebACL' or delete one from a 'WebACL' (see < UpdateWebACL>), or delete a 'Rule' from AWS WAF (see < DeleteRule>).------ 'RuleId' is returned by < CreateRule> and by < ListRules>.+-- | A unique identifier for a @Rule@ . You use @RuleId@ to get more information about a @Rule@ (see 'GetRule' ), update a @Rule@ (see 'UpdateRule' ), insert a @Rule@ into a @WebACL@ or delete one from a @WebACL@ (see 'UpdateWebACL' ), or delete a @Rule@ from AWS WAF (see 'DeleteRule' ). @RuleId@ is returned by 'CreateRule' and by 'ListRules' . rsRuleId :: Lens' RuleSummary Text rsRuleId = lens _rsRuleId (\ s a -> s{_rsRuleId = a}); --- | A friendly name or description of the < Rule>. You can\'t change the name of a 'Rule' after you create it.+-- | A friendly name or description of the 'Rule' . You can't change the name of a @Rule@ after you create it. rsName :: Lens' RuleSummary Text rsName = lens _rsName (\ s a -> s{_rsName = a}); @@ -968,8 +865,10 @@ instance NFData RuleSummary --- | Specifies a 'Predicate' (such as an 'IPSet') and indicates whether you want to add it to a 'Rule' or delete it from a 'Rule'.+-- | Specifies a @Predicate@ (such as an @IPSet@ ) and indicates whether you want to add it to a @Rule@ or delete it from a @Rule@ . --+--+-- -- /See:/ 'ruleUpdate' smart constructor. data RuleUpdate = RuleUpdate' { _ruAction :: !ChangeAction@@ -980,9 +879,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ruAction'+-- * 'ruAction' - Specify @INSERT@ to add a @Predicate@ to a @Rule@ . Use @DELETE@ to remove a @Predicate@ from a @Rule@ . ----- * 'ruPredicate'+-- * 'ruPredicate' - The ID of the @Predicate@ (such as an @IPSet@ ) that you want to add to a @Rule@ . ruleUpdate :: ChangeAction -- ^ 'ruAction' -> Predicate -- ^ 'ruPredicate'@@ -993,11 +892,11 @@ , _ruPredicate = pPredicate_ } --- | Specify 'INSERT' to add a 'Predicate' to a 'Rule'. Use 'DELETE' to remove a 'Predicate' from a 'Rule'.+-- | Specify @INSERT@ to add a @Predicate@ to a @Rule@ . Use @DELETE@ to remove a @Predicate@ from a @Rule@ . ruAction :: Lens' RuleUpdate ChangeAction ruAction = lens _ruAction (\ s a -> s{_ruAction = a}); --- | The ID of the 'Predicate' (such as an 'IPSet') that you want to add to a 'Rule'.+-- | The ID of the @Predicate@ (such as an @IPSet@ ) that you want to add to a @Rule@ . ruPredicate :: Lens' RuleUpdate Predicate ruPredicate = lens _ruPredicate (\ s a -> s{_ruPredicate = a}); @@ -1012,8 +911,10 @@ [Just ("Action" .= _ruAction), Just ("Predicate" .= _ruPredicate)]) --- | The response from a < GetSampledRequests> request includes a 'SampledHTTPRequests' complex type that appears as 'SampledRequests' in the response syntax. 'SampledHTTPRequests' contains one 'SampledHTTPRequest' object for each web request that is returned by 'GetSampledRequests'.+-- | The response from a 'GetSampledRequests' request includes a @SampledHTTPRequests@ complex type that appears as @SampledRequests@ in the response syntax. @SampledHTTPRequests@ contains one @SampledHTTPRequest@ object for each web request that is returned by @GetSampledRequests@ . --+--+-- -- /See:/ 'sampledHTTPRequest' smart constructor. data SampledHTTPRequest = SampledHTTPRequest' { _shttprAction :: !(Maybe Text)@@ -1026,13 +927,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'shttprAction'+-- * 'shttprAction' - The action for the @Rule@ that the request matched: @ALLOW@ , @BLOCK@ , or @COUNT@ . ----- * 'shttprTimestamp'+-- * 'shttprTimestamp' - The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds). ----- * 'shttprRequest'+-- * 'shttprRequest' - A complex type that contains detailed information about the request. ----- * 'shttprWeight'+-- * 'shttprWeight' - A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of @2@ represents roughly twice as many CloudFront web requests as a result that has a weight of @1@ . sampledHTTPRequest :: HTTPRequest -- ^ 'shttprRequest' -> Natural -- ^ 'shttprWeight'@@ -1045,7 +946,7 @@ , _shttprWeight = _Nat # pWeight_ } --- | The action for the 'Rule' that the request matched: 'ALLOW', 'BLOCK', or 'COUNT'.+-- | The action for the @Rule@ that the request matched: @ALLOW@ , @BLOCK@ , or @COUNT@ . shttprAction :: Lens' SampledHTTPRequest (Maybe Text) shttprAction = lens _shttprAction (\ s a -> s{_shttprAction = a}); @@ -1057,7 +958,7 @@ shttprRequest :: Lens' SampledHTTPRequest HTTPRequest shttprRequest = lens _shttprRequest (\ s a -> s{_shttprRequest = a}); --- | A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of '2' represents roughly twice as many CloudFront web requests as a result that has a weight of '1'.+-- | A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of @2@ represents roughly twice as many CloudFront web requests as a result that has a weight of @1@ . shttprWeight :: Lens' SampledHTTPRequest Natural shttprWeight = lens _shttprWeight (\ s a -> s{_shttprWeight = a}) . _Nat; @@ -1074,8 +975,10 @@ instance NFData SampledHTTPRequest --- | Specifies a constraint on the size of a part of the web request. AWS WAF uses the 'Size', 'ComparisonOperator', and 'FieldToMatch' to build an expression in the form of \"'Size' 'ComparisonOperator' size in bytes of 'FieldToMatch'\". If that expression is true, the 'SizeConstraint' is considered to match.+-- | Specifies a constraint on the size of a part of the web request. AWS WAF uses the @Size@ , @ComparisonOperator@ , and @FieldToMatch@ to build an expression in the form of "@Size@ @ComparisonOperator@ size in bytes of @FieldToMatch@ ". If that expression is true, the @SizeConstraint@ is considered to match. --+--+-- -- /See:/ 'sizeConstraint' smart constructor. data SizeConstraint = SizeConstraint' { _scFieldToMatch :: !FieldToMatch@@ -1088,13 +991,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'scFieldToMatch'+-- * 'scFieldToMatch' - Undocumented member. ----- * 'scTextTransformation'+-- * 'scTextTransformation' - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on @FieldToMatch@ before inspecting a request for a match. Note that if you choose @BODY@ for the value of @Type@ , you must choose @NONE@ for @TextTransformation@ because CloudFront forwards only the first 8192 bytes for inspection. __NONE__ Specify @NONE@ if you don't want to perform any text transformations. __CMD_LINE__ When you're concerned that attackers are injecting an operating system command line command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations: * Delete the following characters: \ " ' ^ * Delete spaces before the following characters: / ( * Replace the following characters with a space: , ; * Replace multiple spaces with one space * Convert uppercase letters (A-Z) to lowercase (a-z) __COMPRESS_WHITE_SPACE__ Use this option to replace the following characters with a space character (decimal 32): * \f, formfeed, decimal 12 * \t, tab, decimal 9 * \n, newline, decimal 10 * \r, carriage return, decimal 13 * \v, vertical tab, decimal 11 * non-breaking space, decimal 160 @COMPRESS_WHITE_SPACE@ also replaces multiple spaces with one space. __HTML_ENTITY_DECODE__ Use this option to replace HTML-encoded characters with unencoded characters. @HTML_ENTITY_DECODE@ performs the following operations: * Replaces @(ampersand)quot;@ with @"@ * Replaces @(ampersand)nbsp;@ with a non-breaking space, decimal 160 * Replaces @(ampersand)lt;@ with a "less than" symbol * Replaces @(ampersand)gt;@ with @>@ * Replaces characters that are represented in hexadecimal format, @(ampersand)#xhhhh;@ , with the corresponding characters * Replaces characters that are represented in decimal format, @(ampersand)#nnnn;@ , with the corresponding characters __LOWERCASE__ Use this option to convert uppercase letters (A-Z) to lowercase (a-z). __URL_DECODE__ Use this option to decode a URL-encoded value. ----- * 'scComparisonOperator'+-- * 'scComparisonOperator' - The type of comparison you want AWS WAF to perform. AWS WAF uses this in combination with the provided @Size@ and @FieldToMatch@ to build an expression in the form of "@Size@ @ComparisonOperator@ size in bytes of @FieldToMatch@ ". If that expression is true, the @SizeConstraint@ is considered to match. __EQ__ : Used to test if the @Size@ is equal to the size of the @FieldToMatch@ __NE__ : Used to test if the @Size@ is not equal to the size of the @FieldToMatch@ __LE__ : Used to test if the @Size@ is less than or equal to the size of the @FieldToMatch@ __LT__ : Used to test if the @Size@ is strictly less than the size of the @FieldToMatch@ __GE__ : Used to test if the @Size@ is greater than or equal to the size of the @FieldToMatch@ __GT__ : Used to test if the @Size@ is strictly greater than the size of the @FieldToMatch@ ----- * 'scSize'+-- * 'scSize' - The size in bytes that you want AWS WAF to compare against the size of the specified @FieldToMatch@ . AWS WAF uses this in combination with @ComparisonOperator@ and @FieldToMatch@ to build an expression in the form of "@Size@ @ComparisonOperator@ size in bytes of @FieldToMatch@ ". If that expression is true, the @SizeConstraint@ is considered to match. Valid values for size are 0 - 21474836480 bytes (0 - 20 GB). If you specify @URI@ for the value of @Type@ , the / in the URI counts as one character. For example, the URI @/logo.jpg@ is nine characters long. sizeConstraint :: FieldToMatch -- ^ 'scFieldToMatch' -> TextTransformation -- ^ 'scTextTransformation'@@ -1113,79 +1016,15 @@ scFieldToMatch :: Lens' SizeConstraint FieldToMatch scFieldToMatch = lens _scFieldToMatch (\ s a -> s{_scFieldToMatch = a}); --- | Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on 'FieldToMatch' before inspecting a request for a match.------ Note that if you choose 'BODY' for the value of 'Type', you must choose 'NONE' for 'TextTransformation' because CloudFront forwards only the first 8192 bytes for inspection.------ __NONE__------ Specify 'NONE' if you don\'t want to perform any text transformations.------ __CMD_LINE__------ When you\'re concerned that attackers are injecting an operating system command line command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:------ - Delete the following characters: \\ \" \' ^--- - Delete spaces before the following characters: \/ (--- - Replace the following characters with a space: , ;--- - Replace multiple spaces with one space--- - Convert uppercase letters (A-Z) to lowercase (a-z)------ __COMPRESS_WHITE_SPACE__------ Use this option to replace the following characters with a space character (decimal 32):------ - \\f, formfeed, decimal 12--- - \\t, tab, decimal 9--- - \\n, newline, decimal 10--- - \\r, carriage return, decimal 13--- - \\v, vertical tab, decimal 11--- - non-breaking space, decimal 160------ 'COMPRESS_WHITE_SPACE' also replaces multiple spaces with one space.------ __HTML_ENTITY_DECODE__------ Use this option to replace HTML-encoded characters with unencoded characters. 'HTML_ENTITY_DECODE' performs the following operations:------ - Replaces '(ampersand)quot;' with '\"'--- - Replaces '(ampersand)nbsp;' with a non-breaking space, decimal 160--- - Replaces '(ampersand)lt;' with a \"less than\" symbol--- - Replaces '(ampersand)gt;' with '>'--- - Replaces characters that are represented in hexadecimal format, '(ampersand)#xhhhh;', with the corresponding characters--- - Replaces characters that are represented in decimal format, '(ampersand)#nnnn;', with the corresponding characters------ __LOWERCASE__------ Use this option to convert uppercase letters (A-Z) to lowercase (a-z).------ __URL_DECODE__------ Use this option to decode a URL-encoded value.+-- | Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on @FieldToMatch@ before inspecting a request for a match. Note that if you choose @BODY@ for the value of @Type@ , you must choose @NONE@ for @TextTransformation@ because CloudFront forwards only the first 8192 bytes for inspection. __NONE__ Specify @NONE@ if you don't want to perform any text transformations. __CMD_LINE__ When you're concerned that attackers are injecting an operating system command line command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations: * Delete the following characters: \ " ' ^ * Delete spaces before the following characters: / ( * Replace the following characters with a space: , ; * Replace multiple spaces with one space * Convert uppercase letters (A-Z) to lowercase (a-z) __COMPRESS_WHITE_SPACE__ Use this option to replace the following characters with a space character (decimal 32): * \f, formfeed, decimal 12 * \t, tab, decimal 9 * \n, newline, decimal 10 * \r, carriage return, decimal 13 * \v, vertical tab, decimal 11 * non-breaking space, decimal 160 @COMPRESS_WHITE_SPACE@ also replaces multiple spaces with one space. __HTML_ENTITY_DECODE__ Use this option to replace HTML-encoded characters with unencoded characters. @HTML_ENTITY_DECODE@ performs the following operations: * Replaces @(ampersand)quot;@ with @"@ * Replaces @(ampersand)nbsp;@ with a non-breaking space, decimal 160 * Replaces @(ampersand)lt;@ with a "less than" symbol * Replaces @(ampersand)gt;@ with @>@ * Replaces characters that are represented in hexadecimal format, @(ampersand)#xhhhh;@ , with the corresponding characters * Replaces characters that are represented in decimal format, @(ampersand)#nnnn;@ , with the corresponding characters __LOWERCASE__ Use this option to convert uppercase letters (A-Z) to lowercase (a-z). __URL_DECODE__ Use this option to decode a URL-encoded value. scTextTransformation :: Lens' SizeConstraint TextTransformation scTextTransformation = lens _scTextTransformation (\ s a -> s{_scTextTransformation = a}); --- | The type of comparison you want AWS WAF to perform. AWS WAF uses this in combination with the provided 'Size' and 'FieldToMatch' to build an expression in the form of \"'Size' 'ComparisonOperator' size in bytes of 'FieldToMatch'\". If that expression is true, the 'SizeConstraint' is considered to match.------ __EQ__: Used to test if the 'Size' is equal to the size of the 'FieldToMatch'------ __NE__: Used to test if the 'Size' is not equal to the size of the 'FieldToMatch'------ __LE__: Used to test if the 'Size' is less than or equal to the size of the 'FieldToMatch'------ __LT__: Used to test if the 'Size' is strictly less than the size of the 'FieldToMatch'------ __GE__: Used to test if the 'Size' is greater than or equal to the size of the 'FieldToMatch'------ __GT__: Used to test if the 'Size' is strictly greater than the size of the 'FieldToMatch'+-- | The type of comparison you want AWS WAF to perform. AWS WAF uses this in combination with the provided @Size@ and @FieldToMatch@ to build an expression in the form of "@Size@ @ComparisonOperator@ size in bytes of @FieldToMatch@ ". If that expression is true, the @SizeConstraint@ is considered to match. __EQ__ : Used to test if the @Size@ is equal to the size of the @FieldToMatch@ __NE__ : Used to test if the @Size@ is not equal to the size of the @FieldToMatch@ __LE__ : Used to test if the @Size@ is less than or equal to the size of the @FieldToMatch@ __LT__ : Used to test if the @Size@ is strictly less than the size of the @FieldToMatch@ __GE__ : Used to test if the @Size@ is greater than or equal to the size of the @FieldToMatch@ __GT__ : Used to test if the @Size@ is strictly greater than the size of the @FieldToMatch@ scComparisonOperator :: Lens' SizeConstraint ComparisonOperator scComparisonOperator = lens _scComparisonOperator (\ s a -> s{_scComparisonOperator = a}); --- | The size in bytes that you want AWS WAF to compare against the size of the specified 'FieldToMatch'. AWS WAF uses this in combination with 'ComparisonOperator' and 'FieldToMatch' to build an expression in the form of \"'Size' 'ComparisonOperator' size in bytes of 'FieldToMatch'\". If that expression is true, the 'SizeConstraint' is considered to match.------ Valid values for size are 0 - 21474836480 bytes (0 - 20 GB).------ If you specify 'URI' for the value of 'Type', the \/ in the URI counts as one character. For example, the URI '\/logo.jpg' is nine characters long.+-- | The size in bytes that you want AWS WAF to compare against the size of the specified @FieldToMatch@ . AWS WAF uses this in combination with @ComparisonOperator@ and @FieldToMatch@ to build an expression in the form of "@Size@ @ComparisonOperator@ size in bytes of @FieldToMatch@ ". If that expression is true, the @SizeConstraint@ is considered to match. Valid values for size are 0 - 21474836480 bytes (0 - 20 GB). If you specify @URI@ for the value of @Type@ , the / in the URI counts as one character. For example, the URI @/logo.jpg@ is nine characters long. scSize :: Lens' SizeConstraint Natural scSize = lens _scSize (\ s a -> s{_scSize = a}) . _Nat; @@ -1211,8 +1050,10 @@ Just ("ComparisonOperator" .= _scComparisonOperator), Just ("Size" .= _scSize)]) --- | A complex type that contains 'SizeConstraint' objects, which specify the parts of web requests that you want AWS WAF to inspect the size of. If a 'SizeConstraintSet' contains more than one 'SizeConstraint' object, a request only needs to match one constraint to be considered a match.+-- | A complex type that contains @SizeConstraint@ objects, which specify the parts of web requests that you want AWS WAF to inspect the size of. If a @SizeConstraintSet@ contains more than one @SizeConstraint@ object, a request only needs to match one constraint to be considered a match. --+--+-- -- /See:/ 'sizeConstraintSet' smart constructor. data SizeConstraintSet = SizeConstraintSet' { _scsName :: !(Maybe Text)@@ -1224,11 +1065,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'scsName'+-- * 'scsName' - The name, if any, of the @SizeConstraintSet@ . ----- * 'scsSizeConstraintSetId'+-- * 'scsSizeConstraintSetId' - A unique identifier for a @SizeConstraintSet@ . You use @SizeConstraintSetId@ to get information about a @SizeConstraintSet@ (see 'GetSizeConstraintSet' ), update a @SizeConstraintSet@ (see 'UpdateSizeConstraintSet' ), insert a @SizeConstraintSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete a @SizeConstraintSet@ from AWS WAF (see 'DeleteSizeConstraintSet' ). @SizeConstraintSetId@ is returned by 'CreateSizeConstraintSet' and by 'ListSizeConstraintSets' . ----- * 'scsSizeConstraints'+-- * 'scsSizeConstraints' - Specifies the parts of web requests that you want to inspect the size of. sizeConstraintSet :: Text -- ^ 'scsSizeConstraintSetId' -> SizeConstraintSet@@ -1239,13 +1080,11 @@ , _scsSizeConstraints = mempty } --- | The name, if any, of the 'SizeConstraintSet'.+-- | The name, if any, of the @SizeConstraintSet@ . scsName :: Lens' SizeConstraintSet (Maybe Text) scsName = lens _scsName (\ s a -> s{_scsName = a}); --- | A unique identifier for a 'SizeConstraintSet'. You use 'SizeConstraintSetId' to get information about a 'SizeConstraintSet' (see < GetSizeConstraintSet>), update a 'SizeConstraintSet' (see < UpdateSizeConstraintSet>), insert a 'SizeConstraintSet' into a 'Rule' or delete one from a 'Rule' (see < UpdateRule>), and delete a 'SizeConstraintSet' from AWS WAF (see < DeleteSizeConstraintSet>).------ 'SizeConstraintSetId' is returned by < CreateSizeConstraintSet> and by < ListSizeConstraintSets>.+-- | A unique identifier for a @SizeConstraintSet@ . You use @SizeConstraintSetId@ to get information about a @SizeConstraintSet@ (see 'GetSizeConstraintSet' ), update a @SizeConstraintSet@ (see 'UpdateSizeConstraintSet' ), insert a @SizeConstraintSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete a @SizeConstraintSet@ from AWS WAF (see 'DeleteSizeConstraintSet' ). @SizeConstraintSetId@ is returned by 'CreateSizeConstraintSet' and by 'ListSizeConstraintSets' . scsSizeConstraintSetId :: Lens' SizeConstraintSet Text scsSizeConstraintSetId = lens _scsSizeConstraintSetId (\ s a -> s{_scsSizeConstraintSetId = a}); @@ -1265,8 +1104,10 @@ instance NFData SizeConstraintSet --- | The 'Id' and 'Name' of a 'SizeConstraintSet'.+-- | The @Id@ and @Name@ of a @SizeConstraintSet@ . --+--+-- -- /See:/ 'sizeConstraintSetSummary' smart constructor. data SizeConstraintSetSummary = SizeConstraintSetSummary' { _scssSizeConstraintSetId :: !Text@@ -1277,9 +1118,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'scssSizeConstraintSetId'+-- * 'scssSizeConstraintSetId' - A unique identifier for a @SizeConstraintSet@ . You use @SizeConstraintSetId@ to get information about a @SizeConstraintSet@ (see 'GetSizeConstraintSet' ), update a @SizeConstraintSet@ (see 'UpdateSizeConstraintSet' ), insert a @SizeConstraintSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete a @SizeConstraintSet@ from AWS WAF (see 'DeleteSizeConstraintSet' ). @SizeConstraintSetId@ is returned by 'CreateSizeConstraintSet' and by 'ListSizeConstraintSets' . ----- * 'scssName'+-- * 'scssName' - The name of the @SizeConstraintSet@ , if any. sizeConstraintSetSummary :: Text -- ^ 'scssSizeConstraintSetId' -> Text -- ^ 'scssName'@@ -1290,13 +1131,11 @@ , _scssName = pName_ } --- | A unique identifier for a 'SizeConstraintSet'. You use 'SizeConstraintSetId' to get information about a 'SizeConstraintSet' (see < GetSizeConstraintSet>), update a 'SizeConstraintSet' (see < UpdateSizeConstraintSet>), insert a 'SizeConstraintSet' into a 'Rule' or delete one from a 'Rule' (see < UpdateRule>), and delete a 'SizeConstraintSet' from AWS WAF (see < DeleteSizeConstraintSet>).------ 'SizeConstraintSetId' is returned by < CreateSizeConstraintSet> and by < ListSizeConstraintSets>.+-- | A unique identifier for a @SizeConstraintSet@ . You use @SizeConstraintSetId@ to get information about a @SizeConstraintSet@ (see 'GetSizeConstraintSet' ), update a @SizeConstraintSet@ (see 'UpdateSizeConstraintSet' ), insert a @SizeConstraintSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete a @SizeConstraintSet@ from AWS WAF (see 'DeleteSizeConstraintSet' ). @SizeConstraintSetId@ is returned by 'CreateSizeConstraintSet' and by 'ListSizeConstraintSets' . scssSizeConstraintSetId :: Lens' SizeConstraintSetSummary Text scssSizeConstraintSetId = lens _scssSizeConstraintSetId (\ s a -> s{_scssSizeConstraintSetId = a}); --- | The name of the 'SizeConstraintSet', if any.+-- | The name of the @SizeConstraintSet@ , if any. scssName :: Lens' SizeConstraintSetSummary Text scssName = lens _scssName (\ s a -> s{_scssName = a}); @@ -1311,8 +1150,10 @@ instance NFData SizeConstraintSetSummary --- | Specifies the part of a web request that you want to inspect the size of and indicates whether you want to add the specification to a < SizeConstraintSet> or delete it from a 'SizeConstraintSet'.+-- | Specifies the part of a web request that you want to inspect the size of and indicates whether you want to add the specification to a 'SizeConstraintSet' or delete it from a @SizeConstraintSet@ . --+--+-- -- /See:/ 'sizeConstraintSetUpdate' smart constructor. data SizeConstraintSetUpdate = SizeConstraintSetUpdate' { _scsuAction :: !ChangeAction@@ -1323,9 +1164,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'scsuAction'+-- * 'scsuAction' - Specify @INSERT@ to add a 'SizeConstraintSetUpdate' to a 'SizeConstraintSet' . Use @DELETE@ to remove a @SizeConstraintSetUpdate@ from a @SizeConstraintSet@ . ----- * 'scsuSizeConstraint'+-- * 'scsuSizeConstraint' - Specifies a constraint on the size of a part of the web request. AWS WAF uses the @Size@ , @ComparisonOperator@ , and @FieldToMatch@ to build an expression in the form of "@Size@ @ComparisonOperator@ size in bytes of @FieldToMatch@ ". If that expression is true, the @SizeConstraint@ is considered to match. sizeConstraintSetUpdate :: ChangeAction -- ^ 'scsuAction' -> SizeConstraint -- ^ 'scsuSizeConstraint'@@ -1336,11 +1177,11 @@ , _scsuSizeConstraint = pSizeConstraint_ } --- | Specify 'INSERT' to add a < SizeConstraintSetUpdate> to a < SizeConstraintSet>. Use 'DELETE' to remove a 'SizeConstraintSetUpdate' from a 'SizeConstraintSet'.+-- | Specify @INSERT@ to add a 'SizeConstraintSetUpdate' to a 'SizeConstraintSet' . Use @DELETE@ to remove a @SizeConstraintSetUpdate@ from a @SizeConstraintSet@ . scsuAction :: Lens' SizeConstraintSetUpdate ChangeAction scsuAction = lens _scsuAction (\ s a -> s{_scsuAction = a}); --- | Specifies a constraint on the size of a part of the web request. AWS WAF uses the 'Size', 'ComparisonOperator', and 'FieldToMatch' to build an expression in the form of \"'Size' 'ComparisonOperator' size in bytes of 'FieldToMatch'\". If that expression is true, the 'SizeConstraint' is considered to match.+-- | Specifies a constraint on the size of a part of the web request. AWS WAF uses the @Size@ , @ComparisonOperator@ , and @FieldToMatch@ to build an expression in the form of "@Size@ @ComparisonOperator@ size in bytes of @FieldToMatch@ ". If that expression is true, the @SizeConstraint@ is considered to match. scsuSizeConstraint :: Lens' SizeConstraintSetUpdate SizeConstraint scsuSizeConstraint = lens _scsuSizeConstraint (\ s a -> s{_scsuSizeConstraint = a}); @@ -1355,8 +1196,10 @@ [Just ("Action" .= _scsuAction), Just ("SizeConstraint" .= _scsuSizeConstraint)]) --- | A complex type that contains 'SqlInjectionMatchTuple' objects, which specify the parts of web requests that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. If a 'SqlInjectionMatchSet' contains more than one 'SqlInjectionMatchTuple' object, a request needs to include snippets of SQL code in only one of the specified parts of the request to be considered a match.+-- | A complex type that contains @SqlInjectionMatchTuple@ objects, which specify the parts of web requests that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. If a @SqlInjectionMatchSet@ contains more than one @SqlInjectionMatchTuple@ object, a request needs to include snippets of SQL code in only one of the specified parts of the request to be considered a match. --+--+-- -- /See:/ 'sqlInjectionMatchSet' smart constructor. data SqlInjectionMatchSet = SqlInjectionMatchSet' { _simsName :: !(Maybe Text)@@ -1368,11 +1211,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'simsName'+-- * 'simsName' - The name, if any, of the @SqlInjectionMatchSet@ . ----- * 'simsSqlInjectionMatchSetId'+-- * 'simsSqlInjectionMatchSetId' - A unique identifier for a @SqlInjectionMatchSet@ . You use @SqlInjectionMatchSetId@ to get information about a @SqlInjectionMatchSet@ (see 'GetSqlInjectionMatchSet' ), update a @SqlInjectionMatchSet@ (see 'UpdateSqlInjectionMatchSet' ), insert a @SqlInjectionMatchSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete a @SqlInjectionMatchSet@ from AWS WAF (see 'DeleteSqlInjectionMatchSet' ). @SqlInjectionMatchSetId@ is returned by 'CreateSqlInjectionMatchSet' and by 'ListSqlInjectionMatchSets' . ----- * 'simsSqlInjectionMatchTuples'+-- * 'simsSqlInjectionMatchTuples' - Specifies the parts of web requests that you want to inspect for snippets of malicious SQL code. sqlInjectionMatchSet :: Text -- ^ 'simsSqlInjectionMatchSetId' -> SqlInjectionMatchSet@@ -1383,13 +1226,11 @@ , _simsSqlInjectionMatchTuples = mempty } --- | The name, if any, of the 'SqlInjectionMatchSet'.+-- | The name, if any, of the @SqlInjectionMatchSet@ . simsName :: Lens' SqlInjectionMatchSet (Maybe Text) simsName = lens _simsName (\ s a -> s{_simsName = a}); --- | A unique identifier for a 'SqlInjectionMatchSet'. You use 'SqlInjectionMatchSetId' to get information about a 'SqlInjectionMatchSet' (see < GetSqlInjectionMatchSet>), update a 'SqlInjectionMatchSet' (see < UpdateSqlInjectionMatchSet>), insert a 'SqlInjectionMatchSet' into a 'Rule' or delete one from a 'Rule' (see < UpdateRule>), and delete a 'SqlInjectionMatchSet' from AWS WAF (see < DeleteSqlInjectionMatchSet>).------ 'SqlInjectionMatchSetId' is returned by < CreateSqlInjectionMatchSet> and by < ListSqlInjectionMatchSets>.+-- | A unique identifier for a @SqlInjectionMatchSet@ . You use @SqlInjectionMatchSetId@ to get information about a @SqlInjectionMatchSet@ (see 'GetSqlInjectionMatchSet' ), update a @SqlInjectionMatchSet@ (see 'UpdateSqlInjectionMatchSet' ), insert a @SqlInjectionMatchSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete a @SqlInjectionMatchSet@ from AWS WAF (see 'DeleteSqlInjectionMatchSet' ). @SqlInjectionMatchSetId@ is returned by 'CreateSqlInjectionMatchSet' and by 'ListSqlInjectionMatchSets' . simsSqlInjectionMatchSetId :: Lens' SqlInjectionMatchSet Text simsSqlInjectionMatchSetId = lens _simsSqlInjectionMatchSetId (\ s a -> s{_simsSqlInjectionMatchSetId = a}); @@ -1409,8 +1250,10 @@ instance NFData SqlInjectionMatchSet --- | The 'Id' and 'Name' of a 'SqlInjectionMatchSet'.+-- | The @Id@ and @Name@ of a @SqlInjectionMatchSet@ . --+--+-- -- /See:/ 'sqlInjectionMatchSetSummary' smart constructor. data SqlInjectionMatchSetSummary = SqlInjectionMatchSetSummary' { _simssSqlInjectionMatchSetId :: !Text@@ -1421,9 +1264,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'simssSqlInjectionMatchSetId'+-- * 'simssSqlInjectionMatchSetId' - A unique identifier for a @SqlInjectionMatchSet@ . You use @SqlInjectionMatchSetId@ to get information about a @SqlInjectionMatchSet@ (see 'GetSqlInjectionMatchSet' ), update a @SqlInjectionMatchSet@ (see 'UpdateSqlInjectionMatchSet' ), insert a @SqlInjectionMatchSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete a @SqlInjectionMatchSet@ from AWS WAF (see 'DeleteSqlInjectionMatchSet' ). @SqlInjectionMatchSetId@ is returned by 'CreateSqlInjectionMatchSet' and by 'ListSqlInjectionMatchSets' . ----- * 'simssName'+-- * 'simssName' - The name of the @SqlInjectionMatchSet@ , if any, specified by @Id@ . sqlInjectionMatchSetSummary :: Text -- ^ 'simssSqlInjectionMatchSetId' -> Text -- ^ 'simssName'@@ -1434,13 +1277,11 @@ , _simssName = pName_ } --- | A unique identifier for a 'SqlInjectionMatchSet'. You use 'SqlInjectionMatchSetId' to get information about a 'SqlInjectionMatchSet' (see < GetSqlInjectionMatchSet>), update a 'SqlInjectionMatchSet' (see < UpdateSqlInjectionMatchSet>), insert a 'SqlInjectionMatchSet' into a 'Rule' or delete one from a 'Rule' (see < UpdateRule>), and delete a 'SqlInjectionMatchSet' from AWS WAF (see < DeleteSqlInjectionMatchSet>).------ 'SqlInjectionMatchSetId' is returned by < CreateSqlInjectionMatchSet> and by < ListSqlInjectionMatchSets>.+-- | A unique identifier for a @SqlInjectionMatchSet@ . You use @SqlInjectionMatchSetId@ to get information about a @SqlInjectionMatchSet@ (see 'GetSqlInjectionMatchSet' ), update a @SqlInjectionMatchSet@ (see 'UpdateSqlInjectionMatchSet' ), insert a @SqlInjectionMatchSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete a @SqlInjectionMatchSet@ from AWS WAF (see 'DeleteSqlInjectionMatchSet' ). @SqlInjectionMatchSetId@ is returned by 'CreateSqlInjectionMatchSet' and by 'ListSqlInjectionMatchSets' . simssSqlInjectionMatchSetId :: Lens' SqlInjectionMatchSetSummary Text simssSqlInjectionMatchSetId = lens _simssSqlInjectionMatchSetId (\ s a -> s{_simssSqlInjectionMatchSetId = a}); --- | The name of the 'SqlInjectionMatchSet', if any, specified by 'Id'.+-- | The name of the @SqlInjectionMatchSet@ , if any, specified by @Id@ . simssName :: Lens' SqlInjectionMatchSetSummary Text simssName = lens _simssName (\ s a -> s{_simssName = a}); @@ -1455,8 +1296,10 @@ instance NFData SqlInjectionMatchSetSummary --- | Specifies the part of a web request that you want to inspect for snippets of malicious SQL code and indicates whether you want to add the specification to a < SqlInjectionMatchSet> or delete it from a 'SqlInjectionMatchSet'.+-- | Specifies the part of a web request that you want to inspect for snippets of malicious SQL code and indicates whether you want to add the specification to a 'SqlInjectionMatchSet' or delete it from a @SqlInjectionMatchSet@ . --+--+-- -- /See:/ 'sqlInjectionMatchSetUpdate' smart constructor. data SqlInjectionMatchSetUpdate = SqlInjectionMatchSetUpdate' { _simsuAction :: !ChangeAction@@ -1467,9 +1310,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'simsuAction'+-- * 'simsuAction' - Specify @INSERT@ to add a 'SqlInjectionMatchSetUpdate' to a 'SqlInjectionMatchSet' . Use @DELETE@ to remove a @SqlInjectionMatchSetUpdate@ from a @SqlInjectionMatchSet@ . ----- * 'simsuSqlInjectionMatchTuple'+-- * 'simsuSqlInjectionMatchTuple' - Specifies the part of a web request that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. sqlInjectionMatchSetUpdate :: ChangeAction -- ^ 'simsuAction' -> SqlInjectionMatchTuple -- ^ 'simsuSqlInjectionMatchTuple'@@ -1480,7 +1323,7 @@ , _simsuSqlInjectionMatchTuple = pSqlInjectionMatchTuple_ } --- | Specify 'INSERT' to add a < SqlInjectionMatchSetUpdate> to a < SqlInjectionMatchSet>. Use 'DELETE' to remove a 'SqlInjectionMatchSetUpdate' from a 'SqlInjectionMatchSet'.+-- | Specify @INSERT@ to add a 'SqlInjectionMatchSetUpdate' to a 'SqlInjectionMatchSet' . Use @DELETE@ to remove a @SqlInjectionMatchSetUpdate@ from a @SqlInjectionMatchSet@ . simsuAction :: Lens' SqlInjectionMatchSetUpdate ChangeAction simsuAction = lens _simsuAction (\ s a -> s{_simsuAction = a}); @@ -1503,6 +1346,8 @@ -- | Specifies the part of a web request that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header. --+--+-- -- /See:/ 'sqlInjectionMatchTuple' smart constructor. data SqlInjectionMatchTuple = SqlInjectionMatchTuple' { _simtFieldToMatch :: !FieldToMatch@@ -1513,9 +1358,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'simtFieldToMatch'+-- * 'simtFieldToMatch' - Undocumented member. ----- * 'simtTextTransformation'+-- * 'simtTextTransformation' - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on @FieldToMatch@ before inspecting a request for a match. __CMD_LINE__ When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations: * Delete the following characters: \ " ' ^ * Delete spaces before the following characters: / ( * Replace the following characters with a space: , ; * Replace multiple spaces with one space * Convert uppercase letters (A-Z) to lowercase (a-z) __COMPRESS_WHITE_SPACE__ Use this option to replace the following characters with a space character (decimal 32): * \f, formfeed, decimal 12 * \t, tab, decimal 9 * \n, newline, decimal 10 * \r, carriage return, decimal 13 * \v, vertical tab, decimal 11 * non-breaking space, decimal 160 @COMPRESS_WHITE_SPACE@ also replaces multiple spaces with one space. __HTML_ENTITY_DECODE__ Use this option to replace HTML-encoded characters with unencoded characters. @HTML_ENTITY_DECODE@ performs the following operations: * Replaces @(ampersand)quot;@ with @"@ * Replaces @(ampersand)nbsp;@ with a non-breaking space, decimal 160 * Replaces @(ampersand)lt;@ with a "less than" symbol * Replaces @(ampersand)gt;@ with @>@ * Replaces characters that are represented in hexadecimal format, @(ampersand)#xhhhh;@ , with the corresponding characters * Replaces characters that are represented in decimal format, @(ampersand)#nnnn;@ , with the corresponding characters __LOWERCASE__ Use this option to convert uppercase letters (A-Z) to lowercase (a-z). __URL_DECODE__ Use this option to decode a URL-encoded value. __NONE__ Specify @NONE@ if you don't want to perform any text transformations. sqlInjectionMatchTuple :: FieldToMatch -- ^ 'simtFieldToMatch' -> TextTransformation -- ^ 'simtTextTransformation'@@ -1530,53 +1375,7 @@ simtFieldToMatch :: Lens' SqlInjectionMatchTuple FieldToMatch simtFieldToMatch = lens _simtFieldToMatch (\ s a -> s{_simtFieldToMatch = a}); --- | Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on 'FieldToMatch' before inspecting a request for a match.------ __CMD_LINE__------ When you\'re concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:------ - Delete the following characters: \\ \" \' ^--- - Delete spaces before the following characters: \/ (--- - Replace the following characters with a space: , ;--- - Replace multiple spaces with one space--- - Convert uppercase letters (A-Z) to lowercase (a-z)------ __COMPRESS_WHITE_SPACE__------ Use this option to replace the following characters with a space character (decimal 32):------ - \\f, formfeed, decimal 12--- - \\t, tab, decimal 9--- - \\n, newline, decimal 10--- - \\r, carriage return, decimal 13--- - \\v, vertical tab, decimal 11--- - non-breaking space, decimal 160------ 'COMPRESS_WHITE_SPACE' also replaces multiple spaces with one space.------ __HTML_ENTITY_DECODE__------ Use this option to replace HTML-encoded characters with unencoded characters. 'HTML_ENTITY_DECODE' performs the following operations:------ - Replaces '(ampersand)quot;' with '\"'--- - Replaces '(ampersand)nbsp;' with a non-breaking space, decimal 160--- - Replaces '(ampersand)lt;' with a \"less than\" symbol--- - Replaces '(ampersand)gt;' with '>'--- - Replaces characters that are represented in hexadecimal format, '(ampersand)#xhhhh;', with the corresponding characters--- - Replaces characters that are represented in decimal format, '(ampersand)#nnnn;', with the corresponding characters------ __LOWERCASE__------ Use this option to convert uppercase letters (A-Z) to lowercase (a-z).------ __URL_DECODE__------ Use this option to decode a URL-encoded value.------ __NONE__------ Specify 'NONE' if you don\'t want to perform any text transformations.+-- | Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on @FieldToMatch@ before inspecting a request for a match. __CMD_LINE__ When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations: * Delete the following characters: \ " ' ^ * Delete spaces before the following characters: / ( * Replace the following characters with a space: , ; * Replace multiple spaces with one space * Convert uppercase letters (A-Z) to lowercase (a-z) __COMPRESS_WHITE_SPACE__ Use this option to replace the following characters with a space character (decimal 32): * \f, formfeed, decimal 12 * \t, tab, decimal 9 * \n, newline, decimal 10 * \r, carriage return, decimal 13 * \v, vertical tab, decimal 11 * non-breaking space, decimal 160 @COMPRESS_WHITE_SPACE@ also replaces multiple spaces with one space. __HTML_ENTITY_DECODE__ Use this option to replace HTML-encoded characters with unencoded characters. @HTML_ENTITY_DECODE@ performs the following operations: * Replaces @(ampersand)quot;@ with @"@ * Replaces @(ampersand)nbsp;@ with a non-breaking space, decimal 160 * Replaces @(ampersand)lt;@ with a "less than" symbol * Replaces @(ampersand)gt;@ with @>@ * Replaces characters that are represented in hexadecimal format, @(ampersand)#xhhhh;@ , with the corresponding characters * Replaces characters that are represented in decimal format, @(ampersand)#nnnn;@ , with the corresponding characters __LOWERCASE__ Use this option to convert uppercase letters (A-Z) to lowercase (a-z). __URL_DECODE__ Use this option to decode a URL-encoded value. __NONE__ Specify @NONE@ if you don't want to perform any text transformations. simtTextTransformation :: Lens' SqlInjectionMatchTuple TextTransformation simtTextTransformation = lens _simtTextTransformation (\ s a -> s{_simtTextTransformation = a}); @@ -1600,10 +1399,12 @@ Just ("TextTransformation" .= _simtTextTransformation)]) --- | In a < GetSampledRequests> request, the 'StartTime' and 'EndTime' objects specify the time range for which you want AWS WAF to return a sample of web requests.+-- | In a 'GetSampledRequests' request, the @StartTime@ and @EndTime@ objects specify the time range for which you want AWS WAF to return a sample of web requests. ----- In a < GetSampledRequests> response, the 'StartTime' and 'EndTime' objects specify the time range for which AWS WAF actually returned a sample of web requests. AWS WAF gets the specified number of requests from among the first 5,000 requests that your AWS resource receives during the specified time period. If your resource receives more than 5,000 requests during that period, AWS WAF stops sampling after the 5,000th request. In that case, 'EndTime' is the time that AWS WAF received the 5,000th request. --+-- In a 'GetSampledRequests' response, the @StartTime@ and @EndTime@ objects specify the time range for which AWS WAF actually returned a sample of web requests. AWS WAF gets the specified number of requests from among the first 5,000 requests that your AWS resource receives during the specified time period. If your resource receives more than 5,000 requests during that period, AWS WAF stops sampling after the 5,000th request. In that case, @EndTime@ is the time that AWS WAF received the 5,000th request.+--+-- -- /See:/ 'timeWindow' smart constructor. data TimeWindow = TimeWindow' { _twStartTime :: !POSIX@@ -1614,9 +1415,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'twStartTime'+-- * 'twStartTime' - The beginning of the time range from which you want @GetSampledRequests@ to return a sample of the requests that your AWS resource received. You can specify any time range in the previous three hours. ----- * 'twEndTime'+-- * 'twEndTime' - The end of the time range from which you want @GetSampledRequests@ to return a sample of the requests that your AWS resource received. You can specify any time range in the previous three hours. timeWindow :: UTCTime -- ^ 'twStartTime' -> UTCTime -- ^ 'twEndTime'@@ -1627,11 +1428,11 @@ , _twEndTime = _Time # pEndTime_ } --- | The beginning of the time range from which you want 'GetSampledRequests' to return a sample of the requests that your AWS resource received. You can specify any time range in the previous three hours.+-- | The beginning of the time range from which you want @GetSampledRequests@ to return a sample of the requests that your AWS resource received. You can specify any time range in the previous three hours. twStartTime :: Lens' TimeWindow UTCTime twStartTime = lens _twStartTime (\ s a -> s{_twStartTime = a}) . _Time; --- | The end of the time range from which you want 'GetSampledRequests' to return a sample of the requests that your AWS resource received. You can specify any time range in the previous three hours.+-- | The end of the time range from which you want @GetSampledRequests@ to return a sample of the requests that your AWS resource received. You can specify any time range in the previous three hours. twEndTime :: Lens' TimeWindow UTCTime twEndTime = lens _twEndTime (\ s a -> s{_twEndTime = a}) . _Time; @@ -1653,8 +1454,10 @@ [Just ("StartTime" .= _twStartTime), Just ("EndTime" .= _twEndTime)]) --- | For the action that is associated with a rule in a 'WebACL', specifies the action that you want AWS WAF to perform when a web request matches all of the conditions in a rule. For the default action in a 'WebACL', specifies the action that you want AWS WAF to take when a web request doesn\'t match all of the conditions in any of the rules in a 'WebACL'.+-- | For the action that is associated with a rule in a @WebACL@ , specifies the action that you want AWS WAF to perform when a web request matches all of the conditions in a rule. For the default action in a @WebACL@ , specifies the action that you want AWS WAF to take when a web request doesn't match all of the conditions in any of the rules in a @WebACL@ . --+--+-- -- /See:/ 'wafAction' smart constructor. newtype WafAction = WafAction' { _waType :: WafActionType@@ -1664,7 +1467,7 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'waType'+-- * 'waType' - Specifies how you want AWS WAF to respond to requests that match the settings in a @Rule@ . Valid settings include the following: * @ALLOW@ : AWS WAF allows requests * @BLOCK@ : AWS WAF blocks requests * @COUNT@ : AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify @COUNT@ for the default action for a @WebACL@ . wafAction :: WafActionType -- ^ 'waType' -> WafAction@@ -1673,11 +1476,7 @@ { _waType = pType_ } --- | Specifies how you want AWS WAF to respond to requests that match the settings in a 'Rule'. Valid settings include the following:------ - 'ALLOW': AWS WAF allows requests--- - 'BLOCK': AWS WAF blocks requests--- - 'COUNT': AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can\'t specify 'COUNT' for the default action for a 'WebACL'.+-- | Specifies how you want AWS WAF to respond to requests that match the settings in a @Rule@ . Valid settings include the following: * @ALLOW@ : AWS WAF allows requests * @BLOCK@ : AWS WAF blocks requests * @COUNT@ : AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify @COUNT@ for the default action for a @WebACL@ . waType :: Lens' WafAction WafActionType waType = lens _waType (\ s a -> s{_waType = a}); @@ -1694,8 +1493,10 @@ toJSON WafAction'{..} = object (catMaybes [Just ("Type" .= _waType)]) --- | Contains the 'Rules' that identify the requests that you want to allow, block, or count. In a 'WebACL', you also specify a default action ('ALLOW' or 'BLOCK'), and the action for each 'Rule' that you add to a 'WebACL', for example, block requests from specified IP addresses or block requests from specified referrers. You also associate the 'WebACL' with a CloudFront distribution to identify the requests that you want AWS WAF to filter. If you add more than one 'Rule' to a 'WebACL', a request needs to match only one of the specifications to be allowed, blocked, or counted. For more information, see < UpdateWebACL>.+-- | Contains the @Rules@ that identify the requests that you want to allow, block, or count. In a @WebACL@ , you also specify a default action (@ALLOW@ or @BLOCK@ ), and the action for each @Rule@ that you add to a @WebACL@ , for example, block requests from specified IP addresses or block requests from specified referrers. You also associate the @WebACL@ with a CloudFront distribution to identify the requests that you want AWS WAF to filter. If you add more than one @Rule@ to a @WebACL@ , a request needs to match only one of the specifications to be allowed, blocked, or counted. For more information, see 'UpdateWebACL' . --+--+-- -- /See:/ 'webACL' smart constructor. data WebACL = WebACL' { _waMetricName :: !(Maybe Text)@@ -1709,15 +1510,15 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'waMetricName'+-- * 'waMetricName' - Undocumented member. ----- * 'waName'+-- * 'waName' - A friendly name or description of the @WebACL@ . You can't change the name of a @WebACL@ after you create it. ----- * 'waWebACLId'+-- * 'waWebACLId' - A unique identifier for a @WebACL@ . You use @WebACLId@ to get information about a @WebACL@ (see 'GetWebACL' ), update a @WebACL@ (see 'UpdateWebACL' ), and delete a @WebACL@ from AWS WAF (see 'DeleteWebACL' ). @WebACLId@ is returned by 'CreateWebACL' and by 'ListWebACLs' . ----- * 'waDefaultAction'+-- * 'waDefaultAction' - The action to perform if none of the @Rules@ contained in the @WebACL@ match. The action is specified by the 'WafAction' object. ----- * 'waRules'+-- * 'waRules' - An array that contains the action for each @Rule@ in a @WebACL@ , the priority of the @Rule@ , and the ID of the @Rule@ . webACL :: Text -- ^ 'waWebACLId' -> WafAction -- ^ 'waDefaultAction'@@ -1735,21 +1536,19 @@ waMetricName :: Lens' WebACL (Maybe Text) waMetricName = lens _waMetricName (\ s a -> s{_waMetricName = a}); --- | A friendly name or description of the 'WebACL'. You can\'t change the name of a 'WebACL' after you create it.+-- | A friendly name or description of the @WebACL@ . You can't change the name of a @WebACL@ after you create it. waName :: Lens' WebACL (Maybe Text) waName = lens _waName (\ s a -> s{_waName = a}); --- | A unique identifier for a 'WebACL'. You use 'WebACLId' to get information about a 'WebACL' (see < GetWebACL>), update a 'WebACL' (see < UpdateWebACL>), and delete a 'WebACL' from AWS WAF (see < DeleteWebACL>).------ 'WebACLId' is returned by < CreateWebACL> and by < ListWebACLs>.+-- | A unique identifier for a @WebACL@ . You use @WebACLId@ to get information about a @WebACL@ (see 'GetWebACL' ), update a @WebACL@ (see 'UpdateWebACL' ), and delete a @WebACL@ from AWS WAF (see 'DeleteWebACL' ). @WebACLId@ is returned by 'CreateWebACL' and by 'ListWebACLs' . waWebACLId :: Lens' WebACL Text waWebACLId = lens _waWebACLId (\ s a -> s{_waWebACLId = a}); --- | The action to perform if none of the 'Rules' contained in the 'WebACL' match. The action is specified by the < WafAction> object.+-- | The action to perform if none of the @Rules@ contained in the @WebACL@ match. The action is specified by the 'WafAction' object. waDefaultAction :: Lens' WebACL WafAction waDefaultAction = lens _waDefaultAction (\ s a -> s{_waDefaultAction = a}); --- | An array that contains the action for each 'Rule' in a 'WebACL', the priority of the 'Rule', and the ID of the 'Rule'.+-- | An array that contains the action for each @Rule@ in a @WebACL@ , the priority of the @Rule@ , and the ID of the @Rule@ . waRules :: Lens' WebACL [ActivatedRule] waRules = lens _waRules (\ s a -> s{_waRules = a}) . _Coerce; @@ -1767,8 +1566,10 @@ instance NFData WebACL --- | Contains the identifier and the name or description of the < WebACL>.+-- | Contains the identifier and the name or description of the 'WebACL' . --+--+-- -- /See:/ 'webACLSummary' smart constructor. data WebACLSummary = WebACLSummary' { _wasWebACLId :: !Text@@ -1779,9 +1580,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'wasWebACLId'+-- * 'wasWebACLId' - A unique identifier for a @WebACL@ . You use @WebACLId@ to get information about a @WebACL@ (see 'GetWebACL' ), update a @WebACL@ (see 'UpdateWebACL' ), and delete a @WebACL@ from AWS WAF (see 'DeleteWebACL' ). @WebACLId@ is returned by 'CreateWebACL' and by 'ListWebACLs' . ----- * 'wasName'+-- * 'wasName' - A friendly name or description of the 'WebACL' . You can't change the name of a @WebACL@ after you create it. webACLSummary :: Text -- ^ 'wasWebACLId' -> Text -- ^ 'wasName'@@ -1792,13 +1593,11 @@ , _wasName = pName_ } --- | A unique identifier for a 'WebACL'. You use 'WebACLId' to get information about a 'WebACL' (see < GetWebACL>), update a 'WebACL' (see < UpdateWebACL>), and delete a 'WebACL' from AWS WAF (see < DeleteWebACL>).------ 'WebACLId' is returned by < CreateWebACL> and by < ListWebACLs>.+-- | A unique identifier for a @WebACL@ . You use @WebACLId@ to get information about a @WebACL@ (see 'GetWebACL' ), update a @WebACL@ (see 'UpdateWebACL' ), and delete a @WebACL@ from AWS WAF (see 'DeleteWebACL' ). @WebACLId@ is returned by 'CreateWebACL' and by 'ListWebACLs' . wasWebACLId :: Lens' WebACLSummary Text wasWebACLId = lens _wasWebACLId (\ s a -> s{_wasWebACLId = a}); --- | A friendly name or description of the < WebACL>. You can\'t change the name of a 'WebACL' after you create it.+-- | A friendly name or description of the 'WebACL' . You can't change the name of a @WebACL@ after you create it. wasName :: Lens' WebACLSummary Text wasName = lens _wasName (\ s a -> s{_wasName = a}); @@ -1813,8 +1612,10 @@ instance NFData WebACLSummary --- | Specifies whether to insert a 'Rule' into or delete a 'Rule' from a 'WebACL'.+-- | Specifies whether to insert a @Rule@ into or delete a @Rule@ from a @WebACL@ . --+--+-- -- /See:/ 'webACLUpdate' smart constructor. data WebACLUpdate = WebACLUpdate' { _wauAction :: !ChangeAction@@ -1825,9 +1626,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'wauAction'+-- * 'wauAction' - Specifies whether to insert a @Rule@ into or delete a @Rule@ from a @WebACL@ . ----- * 'wauActivatedRule'+-- * 'wauActivatedRule' - Undocumented member. webACLUpdate :: ChangeAction -- ^ 'wauAction' -> ActivatedRule -- ^ 'wauActivatedRule'@@ -1838,7 +1639,7 @@ , _wauActivatedRule = pActivatedRule_ } --- | Specifies whether to insert a 'Rule' into or delete a 'Rule' from a 'WebACL'.+-- | Specifies whether to insert a @Rule@ into or delete a @Rule@ from a @WebACL@ . wauAction :: Lens' WebACLUpdate ChangeAction wauAction = lens _wauAction (\ s a -> s{_wauAction = a}); @@ -1857,8 +1658,10 @@ [Just ("Action" .= _wauAction), Just ("ActivatedRule" .= _wauActivatedRule)]) --- | A complex type that contains 'XssMatchTuple' objects, which specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header. If a 'XssMatchSet' contains more than one 'XssMatchTuple' object, a request needs to include cross-site scripting attacks in only one of the specified parts of the request to be considered a match.+-- | A complex type that contains @XssMatchTuple@ objects, which specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header. If a @XssMatchSet@ contains more than one @XssMatchTuple@ object, a request needs to include cross-site scripting attacks in only one of the specified parts of the request to be considered a match. --+--+-- -- /See:/ 'xssMatchSet' smart constructor. data XSSMatchSet = XSSMatchSet' { _xmsName :: !(Maybe Text)@@ -1870,11 +1673,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'xmsName'+-- * 'xmsName' - The name, if any, of the @XssMatchSet@ . ----- * 'xmsXSSMatchSetId'+-- * 'xmsXSSMatchSetId' - A unique identifier for an @XssMatchSet@ . You use @XssMatchSetId@ to get information about an @XssMatchSet@ (see 'GetXssMatchSet' ), update an @XssMatchSet@ (see 'UpdateXssMatchSet' ), insert an @XssMatchSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete an @XssMatchSet@ from AWS WAF (see 'DeleteXssMatchSet' ). @XssMatchSetId@ is returned by 'CreateXssMatchSet' and by 'ListXssMatchSets' . ----- * 'xmsXSSMatchTuples'+-- * 'xmsXSSMatchTuples' - Specifies the parts of web requests that you want to inspect for cross-site scripting attacks. xssMatchSet :: Text -- ^ 'xmsXSSMatchSetId' -> XSSMatchSet@@ -1885,13 +1688,11 @@ , _xmsXSSMatchTuples = mempty } --- | The name, if any, of the 'XssMatchSet'.+-- | The name, if any, of the @XssMatchSet@ . xmsName :: Lens' XSSMatchSet (Maybe Text) xmsName = lens _xmsName (\ s a -> s{_xmsName = a}); --- | A unique identifier for an 'XssMatchSet'. You use 'XssMatchSetId' to get information about an 'XssMatchSet' (see < GetXssMatchSet>), update an 'XssMatchSet' (see < UpdateXssMatchSet>), insert an 'XssMatchSet' into a 'Rule' or delete one from a 'Rule' (see < UpdateRule>), and delete an 'XssMatchSet' from AWS WAF (see < DeleteXssMatchSet>).------ 'XssMatchSetId' is returned by < CreateXssMatchSet> and by < ListXssMatchSets>.+-- | A unique identifier for an @XssMatchSet@ . You use @XssMatchSetId@ to get information about an @XssMatchSet@ (see 'GetXssMatchSet' ), update an @XssMatchSet@ (see 'UpdateXssMatchSet' ), insert an @XssMatchSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete an @XssMatchSet@ from AWS WAF (see 'DeleteXssMatchSet' ). @XssMatchSetId@ is returned by 'CreateXssMatchSet' and by 'ListXssMatchSets' . xmsXSSMatchSetId :: Lens' XSSMatchSet Text xmsXSSMatchSetId = lens _xmsXSSMatchSetId (\ s a -> s{_xmsXSSMatchSetId = a}); @@ -1911,8 +1712,10 @@ instance NFData XSSMatchSet --- | The 'Id' and 'Name' of an 'XssMatchSet'.+-- | The @Id@ and @Name@ of an @XssMatchSet@ . --+--+-- -- /See:/ 'xssMatchSetSummary' smart constructor. data XSSMatchSetSummary = XSSMatchSetSummary' { _xmssXSSMatchSetId :: !Text@@ -1923,9 +1726,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'xmssXSSMatchSetId'+-- * 'xmssXSSMatchSetId' - A unique identifier for an @XssMatchSet@ . You use @XssMatchSetId@ to get information about a @XssMatchSet@ (see 'GetXssMatchSet' ), update an @XssMatchSet@ (see 'UpdateXssMatchSet' ), insert an @XssMatchSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete an @XssMatchSet@ from AWS WAF (see 'DeleteXssMatchSet' ). @XssMatchSetId@ is returned by 'CreateXssMatchSet' and by 'ListXssMatchSets' . ----- * 'xmssName'+-- * 'xmssName' - The name of the @XssMatchSet@ , if any, specified by @Id@ . xssMatchSetSummary :: Text -- ^ 'xmssXSSMatchSetId' -> Text -- ^ 'xmssName'@@ -1936,13 +1739,11 @@ , _xmssName = pName_ } --- | A unique identifier for an 'XssMatchSet'. You use 'XssMatchSetId' to get information about a 'XssMatchSet' (see < GetXssMatchSet>), update an 'XssMatchSet' (see < UpdateXssMatchSet>), insert an 'XssMatchSet' into a 'Rule' or delete one from a 'Rule' (see < UpdateRule>), and delete an 'XssMatchSet' from AWS WAF (see < DeleteXssMatchSet>).------ 'XssMatchSetId' is returned by < CreateXssMatchSet> and by < ListXssMatchSets>.+-- | A unique identifier for an @XssMatchSet@ . You use @XssMatchSetId@ to get information about a @XssMatchSet@ (see 'GetXssMatchSet' ), update an @XssMatchSet@ (see 'UpdateXssMatchSet' ), insert an @XssMatchSet@ into a @Rule@ or delete one from a @Rule@ (see 'UpdateRule' ), and delete an @XssMatchSet@ from AWS WAF (see 'DeleteXssMatchSet' ). @XssMatchSetId@ is returned by 'CreateXssMatchSet' and by 'ListXssMatchSets' . xmssXSSMatchSetId :: Lens' XSSMatchSetSummary Text xmssXSSMatchSetId = lens _xmssXSSMatchSetId (\ s a -> s{_xmssXSSMatchSetId = a}); --- | The name of the 'XssMatchSet', if any, specified by 'Id'.+-- | The name of the @XssMatchSet@ , if any, specified by @Id@ . xmssName :: Lens' XSSMatchSetSummary Text xmssName = lens _xmssName (\ s a -> s{_xmssName = a}); @@ -1957,8 +1758,10 @@ instance NFData XSSMatchSetSummary --- | Specifies the part of a web request that you want to inspect for cross-site scripting attacks and indicates whether you want to add the specification to an < XssMatchSet> or delete it from an 'XssMatchSet'.+-- | Specifies the part of a web request that you want to inspect for cross-site scripting attacks and indicates whether you want to add the specification to an 'XssMatchSet' or delete it from an @XssMatchSet@ . --+--+-- -- /See:/ 'xssMatchSetUpdate' smart constructor. data XSSMatchSetUpdate = XSSMatchSetUpdate' { _xmsuAction :: !ChangeAction@@ -1969,9 +1772,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'xmsuAction'+-- * 'xmsuAction' - Specify @INSERT@ to add a 'XssMatchSetUpdate' to an 'XssMatchSet' . Use @DELETE@ to remove a @XssMatchSetUpdate@ from an @XssMatchSet@ . ----- * 'xmsuXSSMatchTuple'+-- * 'xmsuXSSMatchTuple' - Specifies the part of a web request that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header. xssMatchSetUpdate :: ChangeAction -- ^ 'xmsuAction' -> XSSMatchTuple -- ^ 'xmsuXSSMatchTuple'@@ -1982,7 +1785,7 @@ , _xmsuXSSMatchTuple = pXSSMatchTuple_ } --- | Specify 'INSERT' to add a < XssMatchSetUpdate> to an < XssMatchSet>. Use 'DELETE' to remove a 'XssMatchSetUpdate' from an 'XssMatchSet'.+-- | Specify @INSERT@ to add a 'XssMatchSetUpdate' to an 'XssMatchSet' . Use @DELETE@ to remove a @XssMatchSetUpdate@ from an @XssMatchSet@ . xmsuAction :: Lens' XSSMatchSetUpdate ChangeAction xmsuAction = lens _xmsuAction (\ s a -> s{_xmsuAction = a}); @@ -2003,6 +1806,8 @@ -- | Specifies the part of a web request that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header. --+--+-- -- /See:/ 'xssMatchTuple' smart constructor. data XSSMatchTuple = XSSMatchTuple' { _xmtFieldToMatch :: !FieldToMatch@@ -2013,9 +1818,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'xmtFieldToMatch'+-- * 'xmtFieldToMatch' - Undocumented member. ----- * 'xmtTextTransformation'+-- * 'xmtTextTransformation' - Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on @FieldToMatch@ before inspecting a request for a match. __CMD_LINE__ When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations: * Delete the following characters: \ " ' ^ * Delete spaces before the following characters: / ( * Replace the following characters with a space: , ; * Replace multiple spaces with one space * Convert uppercase letters (A-Z) to lowercase (a-z) __COMPRESS_WHITE_SPACE__ Use this option to replace the following characters with a space character (decimal 32): * \f, formfeed, decimal 12 * \t, tab, decimal 9 * \n, newline, decimal 10 * \r, carriage return, decimal 13 * \v, vertical tab, decimal 11 * non-breaking space, decimal 160 @COMPRESS_WHITE_SPACE@ also replaces multiple spaces with one space. __HTML_ENTITY_DECODE__ Use this option to replace HTML-encoded characters with unencoded characters. @HTML_ENTITY_DECODE@ performs the following operations: * Replaces @(ampersand)quot;@ with @"@ * Replaces @(ampersand)nbsp;@ with a non-breaking space, decimal 160 * Replaces @(ampersand)lt;@ with a "less than" symbol * Replaces @(ampersand)gt;@ with @>@ * Replaces characters that are represented in hexadecimal format, @(ampersand)#xhhhh;@ , with the corresponding characters * Replaces characters that are represented in decimal format, @(ampersand)#nnnn;@ , with the corresponding characters __LOWERCASE__ Use this option to convert uppercase letters (A-Z) to lowercase (a-z). __URL_DECODE__ Use this option to decode a URL-encoded value. __NONE__ Specify @NONE@ if you don't want to perform any text transformations. xssMatchTuple :: FieldToMatch -- ^ 'xmtFieldToMatch' -> TextTransformation -- ^ 'xmtTextTransformation'@@ -2030,53 +1835,7 @@ xmtFieldToMatch :: Lens' XSSMatchTuple FieldToMatch xmtFieldToMatch = lens _xmtFieldToMatch (\ s a -> s{_xmtFieldToMatch = a}); --- | Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on 'FieldToMatch' before inspecting a request for a match.------ __CMD_LINE__------ When you\'re concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:------ - Delete the following characters: \\ \" \' ^--- - Delete spaces before the following characters: \/ (--- - Replace the following characters with a space: , ;--- - Replace multiple spaces with one space--- - Convert uppercase letters (A-Z) to lowercase (a-z)------ __COMPRESS_WHITE_SPACE__------ Use this option to replace the following characters with a space character (decimal 32):------ - \\f, formfeed, decimal 12--- - \\t, tab, decimal 9--- - \\n, newline, decimal 10--- - \\r, carriage return, decimal 13--- - \\v, vertical tab, decimal 11--- - non-breaking space, decimal 160------ 'COMPRESS_WHITE_SPACE' also replaces multiple spaces with one space.------ __HTML_ENTITY_DECODE__------ Use this option to replace HTML-encoded characters with unencoded characters. 'HTML_ENTITY_DECODE' performs the following operations:------ - Replaces '(ampersand)quot;' with '\"'--- - Replaces '(ampersand)nbsp;' with a non-breaking space, decimal 160--- - Replaces '(ampersand)lt;' with a \"less than\" symbol--- - Replaces '(ampersand)gt;' with '>'--- - Replaces characters that are represented in hexadecimal format, '(ampersand)#xhhhh;', with the corresponding characters--- - Replaces characters that are represented in decimal format, '(ampersand)#nnnn;', with the corresponding characters------ __LOWERCASE__------ Use this option to convert uppercase letters (A-Z) to lowercase (a-z).------ __URL_DECODE__------ Use this option to decode a URL-encoded value.------ __NONE__------ Specify 'NONE' if you don\'t want to perform any text transformations.+-- | Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on @FieldToMatch@ before inspecting a request for a match. __CMD_LINE__ When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations: * Delete the following characters: \ " ' ^ * Delete spaces before the following characters: / ( * Replace the following characters with a space: , ; * Replace multiple spaces with one space * Convert uppercase letters (A-Z) to lowercase (a-z) __COMPRESS_WHITE_SPACE__ Use this option to replace the following characters with a space character (decimal 32): * \f, formfeed, decimal 12 * \t, tab, decimal 9 * \n, newline, decimal 10 * \r, carriage return, decimal 13 * \v, vertical tab, decimal 11 * non-breaking space, decimal 160 @COMPRESS_WHITE_SPACE@ also replaces multiple spaces with one space. __HTML_ENTITY_DECODE__ Use this option to replace HTML-encoded characters with unencoded characters. @HTML_ENTITY_DECODE@ performs the following operations: * Replaces @(ampersand)quot;@ with @"@ * Replaces @(ampersand)nbsp;@ with a non-breaking space, decimal 160 * Replaces @(ampersand)lt;@ with a "less than" symbol * Replaces @(ampersand)gt;@ with @>@ * Replaces characters that are represented in hexadecimal format, @(ampersand)#xhhhh;@ , with the corresponding characters * Replaces characters that are represented in decimal format, @(ampersand)#nnnn;@ , with the corresponding characters __LOWERCASE__ Use this option to convert uppercase letters (A-Z) to lowercase (a-z). __URL_DECODE__ Use this option to decode a URL-encoded value. __NONE__ Specify @NONE@ if you don't want to perform any text transformations. xmtTextTransformation :: Lens' XSSMatchTuple TextTransformation xmtTextTransformation = lens _xmtTextTransformation (\ s a -> s{_xmtTextTransformation = a});
gen/Network/AWS/WAF/Types/Sum.hs view
@@ -115,19 +115,22 @@ instance FromJSON ComparisonOperator where parseJSON = parseJSONText "ComparisonOperator" -data IPSetDescriptorType =- IPV4+data IPSetDescriptorType+ = IPV4+ | IPV6 deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic) instance FromText IPSetDescriptorType where parser = takeLowerText >>= \case "ipv4" -> pure IPV4+ "ipv6" -> pure IPV6 e -> fromTextError $ "Failure parsing IPSetDescriptorType from value: '" <> e- <> "'. Accepted values: ipv4"+ <> "'. Accepted values: ipv4, ipv6" instance ToText IPSetDescriptorType where toText = \case IPV4 -> "IPV4"+ IPV6 -> "IPV6" instance Hashable IPSetDescriptorType instance NFData IPSetDescriptorType
gen/Network/AWS/WAF/UpdateByteMatchSet.hs view
@@ -18,23 +18,35 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Inserts or deletes < ByteMatchTuple> objects (filters) in a < ByteMatchSet>. For each 'ByteMatchTuple' object, you specify the following values:+-- Inserts or deletes 'ByteMatchTuple' objects (filters) in a 'ByteMatchSet' . For each @ByteMatchTuple@ object, you specify the following values: ----- - Whether to insert or delete the object from the array. If you want to change a 'ByteMatchSetUpdate' object, you delete the existing object and add a new one.--- - The part of a web request that you want AWS WAF to inspect, such as a query string or the value of the 'User-Agent' header.--- - The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to look for. For more information, including how you specify the values for the AWS WAF API and the AWS CLI or SDKs, see 'TargetString' in the < ByteMatchTuple> data type.--- - Where to look, such as at the beginning or the end of a query string.--- - Whether to perform any conversions on the request, such as converting it to lowercase, before inspecting it for the specified string. ----- For example, you can add a 'ByteMatchSetUpdate' object that matches web requests in which 'User-Agent' headers contain the string 'BadBot'. You can then configure AWS WAF to block those requests.+-- * Whether to insert or delete the object from the array. If you want to change a @ByteMatchSetUpdate@ object, you delete the existing object and add a new one. ----- To create and configure a 'ByteMatchSet', perform the following steps:+-- * The part of a web request that you want AWS WAF to inspect, such as a query string or the value of the @User-Agent@ header. ----- 1. Create a 'ByteMatchSet.' For more information, see < CreateByteMatchSet>.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of an 'UpdateByteMatchSet' request.--- 3. Submit an 'UpdateByteMatchSet' request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.+-- * The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to look for. For more information, including how you specify the values for the AWS WAF API and the AWS CLI or SDKs, see @TargetString@ in the 'ByteMatchTuple' data type. ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- * Where to look, such as at the beginning or the end of a query string.+--+-- * Whether to perform any conversions on the request, such as converting it to lowercase, before inspecting it for the specified string.+--+--+--+-- For example, you can add a @ByteMatchSetUpdate@ object that matches web requests in which @User-Agent@ headers contain the string @BadBot@ . You can then configure AWS WAF to block those requests.+--+-- To create and configure a @ByteMatchSet@ , perform the following steps:+--+-- * Create a @ByteMatchSet.@ For more information, see 'CreateByteMatchSet' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of an @UpdateByteMatchSet@ request.+--+-- * Submit an @UpdateByteMatchSet@ request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.UpdateByteMatchSet ( -- * Creating a Request@@ -71,11 +83,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ubmsByteMatchSetId'+-- * 'ubmsByteMatchSetId' - The @ByteMatchSetId@ of the 'ByteMatchSet' that you want to update. @ByteMatchSetId@ is returned by 'CreateByteMatchSet' and by 'ListByteMatchSets' . ----- * 'ubmsChangeToken'+-- * 'ubmsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . ----- * 'ubmsUpdates'+-- * 'ubmsUpdates' - An array of @ByteMatchSetUpdate@ objects that you want to insert into or delete from a 'ByteMatchSet' . For more information, see the applicable data types: * 'ByteMatchSetUpdate' : Contains @Action@ and @ByteMatchTuple@ * 'ByteMatchTuple' : Contains @FieldToMatch@ , @PositionalConstraint@ , @TargetString@ , and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ updateByteMatchSet :: Text -- ^ 'ubmsByteMatchSetId' -> Text -- ^ 'ubmsChangeToken'@@ -87,19 +99,15 @@ , _ubmsUpdates = mempty } --- | The 'ByteMatchSetId' of the < ByteMatchSet> that you want to update. 'ByteMatchSetId' is returned by < CreateByteMatchSet> and by < ListByteMatchSets>.+-- | The @ByteMatchSetId@ of the 'ByteMatchSet' that you want to update. @ByteMatchSetId@ is returned by 'CreateByteMatchSet' and by 'ListByteMatchSets' . ubmsByteMatchSetId :: Lens' UpdateByteMatchSet Text ubmsByteMatchSetId = lens _ubmsByteMatchSetId (\ s a -> s{_ubmsByteMatchSetId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . ubmsChangeToken :: Lens' UpdateByteMatchSet Text ubmsChangeToken = lens _ubmsChangeToken (\ s a -> s{_ubmsChangeToken = a}); --- | An array of 'ByteMatchSetUpdate' objects that you want to insert into or delete from a < ByteMatchSet>. For more information, see the applicable data types:------ - < ByteMatchSetUpdate>: Contains 'Action' and 'ByteMatchTuple'--- - < ByteMatchTuple>: Contains 'FieldToMatch', 'PositionalConstraint', 'TargetString', and 'TextTransformation'--- - < FieldToMatch>: Contains 'Data' and 'Type'+-- | An array of @ByteMatchSetUpdate@ objects that you want to insert into or delete from a 'ByteMatchSet' . For more information, see the applicable data types: * 'ByteMatchSetUpdate' : Contains @Action@ and @ByteMatchTuple@ * 'ByteMatchTuple' : Contains @FieldToMatch@ , @PositionalConstraint@ , @TargetString@ , and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ ubmsUpdates :: Lens' UpdateByteMatchSet [ByteMatchSetUpdate] ubmsUpdates = lens _ubmsUpdates (\ s a -> s{_ubmsUpdates = a}) . _Coerce; @@ -150,9 +158,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'ubmsrsChangeToken'+-- * 'ubmsrsChangeToken' - The @ChangeToken@ that you used to submit the @UpdateByteMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'ubmsrsResponseStatus'+-- * 'ubmsrsResponseStatus' - -- | The response status code. updateByteMatchSetResponse :: Int -- ^ 'ubmsrsResponseStatus' -> UpdateByteMatchSetResponse@@ -162,11 +170,11 @@ , _ubmsrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'UpdateByteMatchSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @UpdateByteMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ubmsrsChangeToken :: Lens' UpdateByteMatchSetResponse (Maybe Text) ubmsrsChangeToken = lens _ubmsrsChangeToken (\ s a -> s{_ubmsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. ubmsrsResponseStatus :: Lens' UpdateByteMatchSetResponse Int ubmsrsResponseStatus = lens _ubmsrsResponseStatus (\ s a -> s{_ubmsrsResponseStatus = a});
gen/Network/AWS/WAF/UpdateIPSet.hs view
@@ -18,25 +18,35 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Inserts or deletes < IPSetDescriptor> objects in an 'IPSet'. For each 'IPSetDescriptor' object, you specify the following values:+-- Inserts or deletes 'IPSetDescriptor' objects in an @IPSet@ . For each @IPSetDescriptor@ object, you specify the following values: ----- - Whether to insert or delete the object from the array. If you want to change an 'IPSetDescriptor' object, you delete the existing object and add a new one.--- - The IP address version, 'IPv4'.--- - The IP address in CIDR notation, for example, '192.0.2.0\/24' (for the range of IP addresses from '192.0.2.0' to '192.0.2.255') or '192.0.2.44\/32' (for the individual IP address '192.0.2.44'). ----- AWS WAF supports \/8, \/16, \/24, and \/32 IP address ranges. For more information about CIDR notation, see the Wikipedia entry <https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing Classless Inter-Domain Routing>.+-- * Whether to insert or delete the object from the array. If you want to change an @IPSetDescriptor@ object, you delete the existing object and add a new one. ----- You use an 'IPSet' to specify which web requests you want to allow or block based on the IP addresses that the requests originated from. For example, if you\'re receiving a lot of requests from one or a small number of IP addresses and you want to block the requests, you can create an 'IPSet' that specifies those IP addresses, and then configure AWS WAF to block the requests.+-- * The IP address version, @IPv4@ . ----- To create and configure an 'IPSet', perform the following steps:+-- * The IP address in CIDR notation, for example, @192.0.2.0/24@ (for the range of IP addresses from @192.0.2.0@ to @192.0.2.255@ ) or @192.0.2.44/32@ (for the individual IP address @192.0.2.44@ ). ----- 1. Submit a < CreateIPSet> request.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of an < UpdateIPSet> request.--- 3. Submit an 'UpdateIPSet' request to specify the IP addresses that you want AWS WAF to watch for. ----- When you update an 'IPSet', you specify the IP addresses that you want to add and\/or the IP addresses that you want to delete. If you want to change an IP address, you delete the existing IP address and add the new one. ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- AWS WAF supports /8, /16, /24, and /32 IP address ranges. For more information about CIDR notation, see the Wikipedia entry <https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing Classless Inter-Domain Routing> .+--+-- You use an @IPSet@ to specify which web requests you want to allow or block based on the IP addresses that the requests originated from. For example, if you're receiving a lot of requests from one or a small number of IP addresses and you want to block the requests, you can create an @IPSet@ that specifies those IP addresses, and then configure AWS WAF to block the requests.+--+-- To create and configure an @IPSet@ , perform the following steps:+--+-- * Submit a 'CreateIPSet' request.+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of an 'UpdateIPSet' request.+--+-- * Submit an @UpdateIPSet@ request to specify the IP addresses that you want AWS WAF to watch for.+--+--+--+-- When you update an @IPSet@ , you specify the IP addresses that you want to add and/or the IP addresses that you want to delete. If you want to change an IP address, you delete the existing IP address and add the new one.+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.UpdateIPSet ( -- * Creating a Request@@ -73,11 +83,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uisIPSetId'+-- * 'uisIPSetId' - The @IPSetId@ of the 'IPSet' that you want to update. @IPSetId@ is returned by 'CreateIPSet' and by 'ListIPSets' . ----- * 'uisChangeToken'+-- * 'uisChangeToken' - The value returned by the most recent call to 'GetChangeToken' . ----- * 'uisUpdates'+-- * 'uisUpdates' - An array of @IPSetUpdate@ objects that you want to insert into or delete from an 'IPSet' . For more information, see the applicable data types: * 'IPSetUpdate' : Contains @Action@ and @IPSetDescriptor@ * 'IPSetDescriptor' : Contains @Type@ and @Value@ updateIPSet :: Text -- ^ 'uisIPSetId' -> Text -- ^ 'uisChangeToken'@@ -89,18 +99,15 @@ , _uisUpdates = mempty } --- | The 'IPSetId' of the < IPSet> that you want to update. 'IPSetId' is returned by < CreateIPSet> and by < ListIPSets>.+-- | The @IPSetId@ of the 'IPSet' that you want to update. @IPSetId@ is returned by 'CreateIPSet' and by 'ListIPSets' . uisIPSetId :: Lens' UpdateIPSet Text uisIPSetId = lens _uisIPSetId (\ s a -> s{_uisIPSetId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . uisChangeToken :: Lens' UpdateIPSet Text uisChangeToken = lens _uisChangeToken (\ s a -> s{_uisChangeToken = a}); --- | An array of 'IPSetUpdate' objects that you want to insert into or delete from an < IPSet>. For more information, see the applicable data types:------ - < IPSetUpdate>: Contains 'Action' and 'IPSetDescriptor'--- - < IPSetDescriptor>: Contains 'Type' and 'Value'+-- | An array of @IPSetUpdate@ objects that you want to insert into or delete from an 'IPSet' . For more information, see the applicable data types: * 'IPSetUpdate' : Contains @Action@ and @IPSetDescriptor@ * 'IPSetDescriptor' : Contains @Type@ and @Value@ uisUpdates :: Lens' UpdateIPSet [IPSetUpdate] uisUpdates = lens _uisUpdates (\ s a -> s{_uisUpdates = a}) . _Coerce; @@ -150,9 +157,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uisrsChangeToken'+-- * 'uisrsChangeToken' - The @ChangeToken@ that you used to submit the @UpdateIPSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'uisrsResponseStatus'+-- * 'uisrsResponseStatus' - -- | The response status code. updateIPSetResponse :: Int -- ^ 'uisrsResponseStatus' -> UpdateIPSetResponse@@ -162,11 +169,11 @@ , _uisrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'UpdateIPSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @UpdateIPSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . uisrsChangeToken :: Lens' UpdateIPSetResponse (Maybe Text) uisrsChangeToken = lens _uisrsChangeToken (\ s a -> s{_uisrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. uisrsResponseStatus :: Lens' UpdateIPSetResponse Int uisrsResponseStatus = lens _uisrsResponseStatus (\ s a -> s{_uisrsResponseStatus = a});
gen/Network/AWS/WAF/UpdateRule.hs view
@@ -18,24 +18,35 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Inserts or deletes < Predicate> objects in a 'Rule'. Each 'Predicate' object identifies a predicate, such as a < ByteMatchSet> or an < IPSet>, that specifies the web requests that you want to allow, block, or count. If you add more than one predicate to a 'Rule', a request must match all of the specifications to be allowed, blocked, or counted. For example, suppose you add the following to a 'Rule':+-- Inserts or deletes 'Predicate' objects in a @Rule@ . Each @Predicate@ object identifies a predicate, such as a 'ByteMatchSet' or an 'IPSet' , that specifies the web requests that you want to allow, block, or count. If you add more than one predicate to a @Rule@ , a request must match all of the specifications to be allowed, blocked, or counted. For example, suppose you add the following to a @Rule@ : ----- - A 'ByteMatchSet' that matches the value 'BadBot' in the 'User-Agent' header--- - An 'IPSet' that matches the IP address '192.0.2.44' ----- You then add the 'Rule' to a 'WebACL' and specify that you want to block requests that satisfy the 'Rule'. For a request to be blocked, the 'User-Agent' header in the request must contain the value 'BadBot' /and/ the request must originate from the IP address 192.0.2.44.+-- * A @ByteMatchSet@ that matches the value @BadBot@ in the @User-Agent@ header ----- To create and configure a 'Rule', perform the following steps:+-- * An @IPSet@ that matches the IP address @192.0.2.44@ ----- 1. Create and update the predicates that you want to include in the 'Rule'.--- 2. Create the 'Rule'. See < CreateRule>.--- 3. Use 'GetChangeToken' to get the change token that you provide in the 'ChangeToken' parameter of an < UpdateRule> request.--- 4. Submit an 'UpdateRule' request to add predicates to the 'Rule'.--- 5. Create and update a 'WebACL' that contains the 'Rule'. See < CreateWebACL>. ----- If you want to replace one 'ByteMatchSet' or 'IPSet' with another, you delete the existing one and add the new one. ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- You then add the @Rule@ to a @WebACL@ and specify that you want to block requests that satisfy the @Rule@ . For a request to be blocked, the @User-Agent@ header in the request must contain the value @BadBot@ /and/ the request must originate from the IP address 192.0.2.44.+--+-- To create and configure a @Rule@ , perform the following steps:+--+-- * Create and update the predicates that you want to include in the @Rule@ .+--+-- * Create the @Rule@ . See 'CreateRule' .+--+-- * Use @GetChangeToken@ to get the change token that you provide in the @ChangeToken@ parameter of an 'UpdateRule' request.+--+-- * Submit an @UpdateRule@ request to add predicates to the @Rule@ .+--+-- * Create and update a @WebACL@ that contains the @Rule@ . See 'CreateWebACL' .+--+--+--+-- If you want to replace one @ByteMatchSet@ or @IPSet@ with another, you delete the existing one and add the new one.+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.UpdateRule ( -- * Creating a Request@@ -72,11 +83,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'urRuleId'+-- * 'urRuleId' - The @RuleId@ of the @Rule@ that you want to update. @RuleId@ is returned by @CreateRule@ and by 'ListRules' . ----- * 'urChangeToken'+-- * 'urChangeToken' - The value returned by the most recent call to 'GetChangeToken' . ----- * 'urUpdates'+-- * 'urUpdates' - An array of @RuleUpdate@ objects that you want to insert into or delete from a 'Rule' . For more information, see the applicable data types: * 'RuleUpdate' : Contains @Action@ and @Predicate@ * 'Predicate' : Contains @DataId@ , @Negated@ , and @Type@ * 'FieldToMatch' : Contains @Data@ and @Type@ updateRule :: Text -- ^ 'urRuleId' -> Text -- ^ 'urChangeToken'@@ -88,19 +99,15 @@ , _urUpdates = mempty } --- | The 'RuleId' of the 'Rule' that you want to update. 'RuleId' is returned by 'CreateRule' and by < ListRules>.+-- | The @RuleId@ of the @Rule@ that you want to update. @RuleId@ is returned by @CreateRule@ and by 'ListRules' . urRuleId :: Lens' UpdateRule Text urRuleId = lens _urRuleId (\ s a -> s{_urRuleId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . urChangeToken :: Lens' UpdateRule Text urChangeToken = lens _urChangeToken (\ s a -> s{_urChangeToken = a}); --- | An array of 'RuleUpdate' objects that you want to insert into or delete from a < Rule>. For more information, see the applicable data types:------ - < RuleUpdate>: Contains 'Action' and 'Predicate'--- - < Predicate>: Contains 'DataId', 'Negated', and 'Type'--- - < FieldToMatch>: Contains 'Data' and 'Type'+-- | An array of @RuleUpdate@ objects that you want to insert into or delete from a 'Rule' . For more information, see the applicable data types: * 'RuleUpdate' : Contains @Action@ and @Predicate@ * 'Predicate' : Contains @DataId@ , @Negated@ , and @Type@ * 'FieldToMatch' : Contains @Data@ and @Type@ urUpdates :: Lens' UpdateRule [RuleUpdate] urUpdates = lens _urUpdates (\ s a -> s{_urUpdates = a}) . _Coerce; @@ -150,9 +157,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'urrsChangeToken'+-- * 'urrsChangeToken' - The @ChangeToken@ that you used to submit the @UpdateRule@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'urrsResponseStatus'+-- * 'urrsResponseStatus' - -- | The response status code. updateRuleResponse :: Int -- ^ 'urrsResponseStatus' -> UpdateRuleResponse@@ -162,11 +169,11 @@ , _urrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'UpdateRule' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @UpdateRule@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . urrsChangeToken :: Lens' UpdateRuleResponse (Maybe Text) urrsChangeToken = lens _urrsChangeToken (\ s a -> s{_urrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. urrsResponseStatus :: Lens' UpdateRuleResponse Int urrsResponseStatus = lens _urrsResponseStatus (\ s a -> s{_urrsResponseStatus = a});
gen/Network/AWS/WAF/UpdateSizeConstraintSet.hs view
@@ -18,23 +18,35 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Inserts or deletes < SizeConstraint> objects (filters) in a < SizeConstraintSet>. For each 'SizeConstraint' object, you specify the following values:+-- Inserts or deletes 'SizeConstraint' objects (filters) in a 'SizeConstraintSet' . For each @SizeConstraint@ object, you specify the following values: ----- - Whether to insert or delete the object from the array. If you want to change a 'SizeConstraintSetUpdate' object, you delete the existing object and add a new one.--- - The part of a web request that you want AWS WAF to evaluate, such as the length of a query string or the length of the 'User-Agent' header.--- - Whether to perform any transformations on the request, such as converting it to lowercase, before checking its length. Note that transformations of the request body are not supported because the AWS resource forwards only the first '8192' bytes of your request to AWS WAF.--- - A 'ComparisonOperator' used for evaluating the selected part of the request against the specified 'Size', such as equals, greater than, less than, and so on.--- - The length, in bytes, that you want AWS WAF to watch for in selected part of the request. The length is computed after applying the transformation. ----- For example, you can add a 'SizeConstraintSetUpdate' object that matches web requests in which the length of the 'User-Agent' header is greater than 100 bytes. You can then configure AWS WAF to block those requests.+-- * Whether to insert or delete the object from the array. If you want to change a @SizeConstraintSetUpdate@ object, you delete the existing object and add a new one. ----- To create and configure a 'SizeConstraintSet', perform the following steps:+-- * The part of a web request that you want AWS WAF to evaluate, such as the length of a query string or the length of the @User-Agent@ header. ----- 1. Create a 'SizeConstraintSet.' For more information, see < CreateSizeConstraintSet>.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of an 'UpdateSizeConstraintSet' request.--- 3. Submit an 'UpdateSizeConstraintSet' request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.+-- * Whether to perform any transformations on the request, such as converting it to lowercase, before checking its length. Note that transformations of the request body are not supported because the AWS resource forwards only the first @8192@ bytes of your request to AWS WAF. ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- * A @ComparisonOperator@ used for evaluating the selected part of the request against the specified @Size@ , such as equals, greater than, less than, and so on.+--+-- * The length, in bytes, that you want AWS WAF to watch for in selected part of the request. The length is computed after applying the transformation.+--+--+--+-- For example, you can add a @SizeConstraintSetUpdate@ object that matches web requests in which the length of the @User-Agent@ header is greater than 100 bytes. You can then configure AWS WAF to block those requests.+--+-- To create and configure a @SizeConstraintSet@ , perform the following steps:+--+-- * Create a @SizeConstraintSet.@ For more information, see 'CreateSizeConstraintSet' .+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of an @UpdateSizeConstraintSet@ request.+--+-- * Submit an @UpdateSizeConstraintSet@ request to specify the part of the request that you want AWS WAF to inspect (for example, the header or the URI) and the value that you want AWS WAF to watch for.+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.UpdateSizeConstraintSet ( -- * Creating a Request@@ -71,11 +83,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uscsSizeConstraintSetId'+-- * 'uscsSizeConstraintSetId' - The @SizeConstraintSetId@ of the 'SizeConstraintSet' that you want to update. @SizeConstraintSetId@ is returned by 'CreateSizeConstraintSet' and by 'ListSizeConstraintSets' . ----- * 'uscsChangeToken'+-- * 'uscsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . ----- * 'uscsUpdates'+-- * 'uscsUpdates' - An array of @SizeConstraintSetUpdate@ objects that you want to insert into or delete from a 'SizeConstraintSet' . For more information, see the applicable data types: * 'SizeConstraintSetUpdate' : Contains @Action@ and @SizeConstraint@ * 'SizeConstraint' : Contains @FieldToMatch@ , @TextTransformation@ , @ComparisonOperator@ , and @Size@ * 'FieldToMatch' : Contains @Data@ and @Type@ updateSizeConstraintSet :: Text -- ^ 'uscsSizeConstraintSetId' -> Text -- ^ 'uscsChangeToken'@@ -87,19 +99,15 @@ , _uscsUpdates = mempty } --- | The 'SizeConstraintSetId' of the < SizeConstraintSet> that you want to update. 'SizeConstraintSetId' is returned by < CreateSizeConstraintSet> and by < ListSizeConstraintSets>.+-- | The @SizeConstraintSetId@ of the 'SizeConstraintSet' that you want to update. @SizeConstraintSetId@ is returned by 'CreateSizeConstraintSet' and by 'ListSizeConstraintSets' . uscsSizeConstraintSetId :: Lens' UpdateSizeConstraintSet Text uscsSizeConstraintSetId = lens _uscsSizeConstraintSetId (\ s a -> s{_uscsSizeConstraintSetId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . uscsChangeToken :: Lens' UpdateSizeConstraintSet Text uscsChangeToken = lens _uscsChangeToken (\ s a -> s{_uscsChangeToken = a}); --- | An array of 'SizeConstraintSetUpdate' objects that you want to insert into or delete from a < SizeConstraintSet>. For more information, see the applicable data types:------ - < SizeConstraintSetUpdate>: Contains 'Action' and 'SizeConstraint'--- - < SizeConstraint>: Contains 'FieldToMatch', 'TextTransformation', 'ComparisonOperator', and 'Size'--- - < FieldToMatch>: Contains 'Data' and 'Type'+-- | An array of @SizeConstraintSetUpdate@ objects that you want to insert into or delete from a 'SizeConstraintSet' . For more information, see the applicable data types: * 'SizeConstraintSetUpdate' : Contains @Action@ and @SizeConstraint@ * 'SizeConstraint' : Contains @FieldToMatch@ , @TextTransformation@ , @ComparisonOperator@ , and @Size@ * 'FieldToMatch' : Contains @Data@ and @Type@ uscsUpdates :: Lens' UpdateSizeConstraintSet [SizeConstraintSetUpdate] uscsUpdates = lens _uscsUpdates (\ s a -> s{_uscsUpdates = a}) . _Coerce; @@ -152,9 +160,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uscsrsChangeToken'+-- * 'uscsrsChangeToken' - The @ChangeToken@ that you used to submit the @UpdateSizeConstraintSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'uscsrsResponseStatus'+-- * 'uscsrsResponseStatus' - -- | The response status code. updateSizeConstraintSetResponse :: Int -- ^ 'uscsrsResponseStatus' -> UpdateSizeConstraintSetResponse@@ -164,11 +172,11 @@ , _uscsrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'UpdateSizeConstraintSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @UpdateSizeConstraintSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . uscsrsChangeToken :: Lens' UpdateSizeConstraintSetResponse (Maybe Text) uscsrsChangeToken = lens _uscsrsChangeToken (\ s a -> s{_uscsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. uscsrsResponseStatus :: Lens' UpdateSizeConstraintSetResponse Int uscsrsResponseStatus = lens _uscsrsResponseStatus (\ s a -> s{_uscsrsResponseStatus = a});
gen/Network/AWS/WAF/UpdateSqlInjectionMatchSet.hs view
@@ -18,21 +18,31 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Inserts or deletes < SqlInjectionMatchTuple> objects (filters) in a < SqlInjectionMatchSet>. For each 'SqlInjectionMatchTuple' object, you specify the following values:+-- Inserts or deletes 'SqlInjectionMatchTuple' objects (filters) in a 'SqlInjectionMatchSet' . For each @SqlInjectionMatchTuple@ object, you specify the following values: ----- - 'Action': Whether to insert the object into or delete the object from the array. To change a 'SqlInjectionMatchTuple', you delete the existing object and add a new one.--- - 'FieldToMatch': The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.--- - 'TextTransformation': Which text transformation, if any, to perform on the web request before inspecting the request for snippets of malicious SQL code. ----- You use 'SqlInjectionMatchSet' objects to specify which CloudFront requests you want to allow, block, or count. For example, if you\'re receiving requests that contain snippets of SQL code in the query string and you want to block the requests, you can create a 'SqlInjectionMatchSet' with the applicable settings, and then configure AWS WAF to block the requests.+-- * @Action@ : Whether to insert the object into or delete the object from the array. To change a @SqlInjectionMatchTuple@ , you delete the existing object and add a new one. ----- To create and configure a 'SqlInjectionMatchSet', perform the following steps:+-- * @FieldToMatch@ : The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header. ----- 1. Submit a < CreateSqlInjectionMatchSet> request.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of an < UpdateIPSet> request.--- 3. Submit an 'UpdateSqlInjectionMatchSet' request to specify the parts of web requests that you want AWS WAF to inspect for snippets of SQL code.+-- * @TextTransformation@ : Which text transformation, if any, to perform on the web request before inspecting the request for snippets of malicious SQL code. ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+--+--+-- You use @SqlInjectionMatchSet@ objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain snippets of SQL code in the query string and you want to block the requests, you can create a @SqlInjectionMatchSet@ with the applicable settings, and then configure AWS WAF to block the requests.+--+-- To create and configure a @SqlInjectionMatchSet@ , perform the following steps:+--+-- * Submit a 'CreateSqlInjectionMatchSet' request.+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of an 'UpdateIPSet' request.+--+-- * Submit an @UpdateSqlInjectionMatchSet@ request to specify the parts of web requests that you want AWS WAF to inspect for snippets of SQL code.+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.UpdateSqlInjectionMatchSet ( -- * Creating a Request@@ -58,8 +68,10 @@ import Network.AWS.WAF.Types import Network.AWS.WAF.Types.Product --- | A request to update a < SqlInjectionMatchSet>.+-- | A request to update a 'SqlInjectionMatchSet' . --+--+-- -- /See:/ 'updateSqlInjectionMatchSet' smart constructor. data UpdateSqlInjectionMatchSet = UpdateSqlInjectionMatchSet' { _usimsSqlInjectionMatchSetId :: !Text@@ -71,11 +83,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'usimsSqlInjectionMatchSetId'+-- * 'usimsSqlInjectionMatchSetId' - The @SqlInjectionMatchSetId@ of the @SqlInjectionMatchSet@ that you want to update. @SqlInjectionMatchSetId@ is returned by 'CreateSqlInjectionMatchSet' and by 'ListSqlInjectionMatchSets' . ----- * 'usimsChangeToken'+-- * 'usimsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . ----- * 'usimsUpdates'+-- * 'usimsUpdates' - An array of @SqlInjectionMatchSetUpdate@ objects that you want to insert into or delete from a 'SqlInjectionMatchSet' . For more information, see the applicable data types: * 'SqlInjectionMatchSetUpdate' : Contains @Action@ and @SqlInjectionMatchTuple@ * 'SqlInjectionMatchTuple' : Contains @FieldToMatch@ and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ updateSqlInjectionMatchSet :: Text -- ^ 'usimsSqlInjectionMatchSetId' -> Text -- ^ 'usimsChangeToken'@@ -87,19 +99,15 @@ , _usimsUpdates = mempty } --- | The 'SqlInjectionMatchSetId' of the 'SqlInjectionMatchSet' that you want to update. 'SqlInjectionMatchSetId' is returned by < CreateSqlInjectionMatchSet> and by < ListSqlInjectionMatchSets>.+-- | The @SqlInjectionMatchSetId@ of the @SqlInjectionMatchSet@ that you want to update. @SqlInjectionMatchSetId@ is returned by 'CreateSqlInjectionMatchSet' and by 'ListSqlInjectionMatchSets' . usimsSqlInjectionMatchSetId :: Lens' UpdateSqlInjectionMatchSet Text usimsSqlInjectionMatchSetId = lens _usimsSqlInjectionMatchSetId (\ s a -> s{_usimsSqlInjectionMatchSetId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . usimsChangeToken :: Lens' UpdateSqlInjectionMatchSet Text usimsChangeToken = lens _usimsChangeToken (\ s a -> s{_usimsChangeToken = a}); --- | An array of 'SqlInjectionMatchSetUpdate' objects that you want to insert into or delete from a < SqlInjectionMatchSet>. For more information, see the applicable data types:------ - < SqlInjectionMatchSetUpdate>: Contains 'Action' and 'SqlInjectionMatchTuple'--- - < SqlInjectionMatchTuple>: Contains 'FieldToMatch' and 'TextTransformation'--- - < FieldToMatch>: Contains 'Data' and 'Type'+-- | An array of @SqlInjectionMatchSetUpdate@ objects that you want to insert into or delete from a 'SqlInjectionMatchSet' . For more information, see the applicable data types: * 'SqlInjectionMatchSetUpdate' : Contains @Action@ and @SqlInjectionMatchTuple@ * 'SqlInjectionMatchTuple' : Contains @FieldToMatch@ and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ usimsUpdates :: Lens' UpdateSqlInjectionMatchSet [SqlInjectionMatchSetUpdate] usimsUpdates = lens _usimsUpdates (\ s a -> s{_usimsUpdates = a}) . _Coerce; @@ -143,8 +151,10 @@ instance ToQuery UpdateSqlInjectionMatchSet where toQuery = const mempty --- | The response to an < UpdateSqlInjectionMatchSets> request.+-- | The response to an 'UpdateSqlInjectionMatchSets' request. --+--+-- -- /See:/ 'updateSqlInjectionMatchSetResponse' smart constructor. data UpdateSqlInjectionMatchSetResponse = UpdateSqlInjectionMatchSetResponse' { _usimsrsChangeToken :: !(Maybe Text)@@ -155,9 +165,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'usimsrsChangeToken'+-- * 'usimsrsChangeToken' - The @ChangeToken@ that you used to submit the @UpdateSqlInjectionMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'usimsrsResponseStatus'+-- * 'usimsrsResponseStatus' - -- | The response status code. updateSqlInjectionMatchSetResponse :: Int -- ^ 'usimsrsResponseStatus' -> UpdateSqlInjectionMatchSetResponse@@ -167,11 +177,11 @@ , _usimsrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'UpdateSqlInjectionMatchSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @UpdateSqlInjectionMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . usimsrsChangeToken :: Lens' UpdateSqlInjectionMatchSetResponse (Maybe Text) usimsrsChangeToken = lens _usimsrsChangeToken (\ s a -> s{_usimsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. usimsrsResponseStatus :: Lens' UpdateSqlInjectionMatchSetResponse Int usimsrsResponseStatus = lens _usimsrsResponseStatus (\ s a -> s{_usimsrsResponseStatus = a});
gen/Network/AWS/WAF/UpdateWebACL.hs view
@@ -18,23 +18,37 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Inserts or deletes < ActivatedRule> objects in a 'WebACL'. Each 'Rule' identifies web requests that you want to allow, block, or count. When you update a 'WebACL', you specify the following values:+-- Inserts or deletes 'ActivatedRule' objects in a @WebACL@ . Each @Rule@ identifies web requests that you want to allow, block, or count. When you update a @WebACL@ , you specify the following values: ----- - A default action for the 'WebACL', either 'ALLOW' or 'BLOCK'. AWS WAF performs the default action if a request doesn\'t match the criteria in any of the 'Rules' in a 'WebACL'.--- - The 'Rules' that you want to add and\/or delete. If you want to replace one 'Rule' with another, you delete the existing 'Rule' and add the new one.--- - For each 'Rule', whether you want AWS WAF to allow requests, block requests, or count requests that match the conditions in the 'Rule'.--- - The order in which you want AWS WAF to evaluate the 'Rules' in a 'WebACL'. If you add more than one 'Rule' to a 'WebACL', AWS WAF evaluates each request against the 'Rules' in order based on the value of 'Priority'. (The 'Rule' that has the lowest value for 'Priority' is evaluated first.) When a web request matches all of the predicates (such as 'ByteMatchSets' and 'IPSets') in a 'Rule', AWS WAF immediately takes the corresponding action, allow or block, and doesn\'t evaluate the request against the remaining 'Rules' in the 'WebACL', if any.--- - The CloudFront distribution that you want to associate with the 'WebACL'. ----- To create and configure a 'WebACL', perform the following steps:+-- * A default action for the @WebACL@ , either @ALLOW@ or @BLOCK@ . AWS WAF performs the default action if a request doesn't match the criteria in any of the @Rules@ in a @WebACL@ . ----- 1. Create and update the predicates that you want to include in 'Rules'. For more information, see < CreateByteMatchSet>, < UpdateByteMatchSet>, < CreateIPSet>, < UpdateIPSet>, < CreateSqlInjectionMatchSet>, and < UpdateSqlInjectionMatchSet>.--- 2. Create and update the 'Rules' that you want to include in the 'WebACL'. For more information, see < CreateRule> and < UpdateRule>.--- 3. Create a 'WebACL'. See < CreateWebACL>.--- 4. Use 'GetChangeToken' to get the change token that you provide in the 'ChangeToken' parameter of an < UpdateWebACL> request.--- 5. Submit an 'UpdateWebACL' request to specify the 'Rules' that you want to include in the 'WebACL', to specify the default action, and to associate the 'WebACL' with a CloudFront distribution.+-- * The @Rules@ that you want to add and/or delete. If you want to replace one @Rule@ with another, you delete the existing @Rule@ and add the new one. ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+-- * For each @Rule@ , whether you want AWS WAF to allow requests, block requests, or count requests that match the conditions in the @Rule@ .+--+-- * The order in which you want AWS WAF to evaluate the @Rules@ in a @WebACL@ . If you add more than one @Rule@ to a @WebACL@ , AWS WAF evaluates each request against the @Rules@ in order based on the value of @Priority@ . (The @Rule@ that has the lowest value for @Priority@ is evaluated first.) When a web request matches all of the predicates (such as @ByteMatchSets@ and @IPSets@ ) in a @Rule@ , AWS WAF immediately takes the corresponding action, allow or block, and doesn't evaluate the request against the remaining @Rules@ in the @WebACL@ , if any.+--+-- * The CloudFront distribution that you want to associate with the @WebACL@ .+--+--+--+-- To create and configure a @WebACL@ , perform the following steps:+--+-- * Create and update the predicates that you want to include in @Rules@ . For more information, see 'CreateByteMatchSet' , 'UpdateByteMatchSet' , 'CreateIPSet' , 'UpdateIPSet' , 'CreateSqlInjectionMatchSet' , and 'UpdateSqlInjectionMatchSet' .+--+-- * Create and update the @Rules@ that you want to include in the @WebACL@ . For more information, see 'CreateRule' and 'UpdateRule' .+--+-- * Create a @WebACL@ . See 'CreateWebACL' .+--+-- * Use @GetChangeToken@ to get the change token that you provide in the @ChangeToken@ parameter of an 'UpdateWebACL' request.+--+-- * Submit an @UpdateWebACL@ request to specify the @Rules@ that you want to include in the @WebACL@ , to specify the default action, and to associate the @WebACL@ with a CloudFront distribution.+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.UpdateWebACL ( -- * Creating a Request@@ -73,13 +87,13 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uwaUpdates'+-- * 'uwaUpdates' - An array of updates to make to the 'WebACL' . An array of @WebACLUpdate@ objects that you want to insert into or delete from a 'WebACL' . For more information, see the applicable data types: * 'WebACLUpdate' : Contains @Action@ and @ActivatedRule@ * 'ActivatedRule' : Contains @Action@ , @Priority@ , and @RuleId@ * 'WafAction' : Contains @Type@ ----- * 'uwaDefaultAction'+-- * 'uwaDefaultAction' - Undocumented member. ----- * 'uwaWebACLId'+-- * 'uwaWebACLId' - The @WebACLId@ of the 'WebACL' that you want to update. @WebACLId@ is returned by 'CreateWebACL' and by 'ListWebACLs' . ----- * 'uwaChangeToken'+-- * 'uwaChangeToken' - The value returned by the most recent call to 'GetChangeToken' . updateWebACL :: Text -- ^ 'uwaWebACLId' -> Text -- ^ 'uwaChangeToken'@@ -92,13 +106,7 @@ , _uwaChangeToken = pChangeToken_ } --- | An array of updates to make to the < WebACL>.------ An array of 'WebACLUpdate' objects that you want to insert into or delete from a < WebACL>. For more information, see the applicable data types:------ - < WebACLUpdate>: Contains 'Action' and 'ActivatedRule'--- - < ActivatedRule>: Contains 'Action', 'Priority', and 'RuleId'--- - < WafAction>: Contains 'Type'+-- | An array of updates to make to the 'WebACL' . An array of @WebACLUpdate@ objects that you want to insert into or delete from a 'WebACL' . For more information, see the applicable data types: * 'WebACLUpdate' : Contains @Action@ and @ActivatedRule@ * 'ActivatedRule' : Contains @Action@ , @Priority@ , and @RuleId@ * 'WafAction' : Contains @Type@ uwaUpdates :: Lens' UpdateWebACL [WebACLUpdate] uwaUpdates = lens _uwaUpdates (\ s a -> s{_uwaUpdates = a}) . _Default . _Coerce; @@ -106,11 +114,11 @@ uwaDefaultAction :: Lens' UpdateWebACL (Maybe WafAction) uwaDefaultAction = lens _uwaDefaultAction (\ s a -> s{_uwaDefaultAction = a}); --- | The 'WebACLId' of the < WebACL> that you want to update. 'WebACLId' is returned by < CreateWebACL> and by < ListWebACLs>.+-- | The @WebACLId@ of the 'WebACL' that you want to update. @WebACLId@ is returned by 'CreateWebACL' and by 'ListWebACLs' . uwaWebACLId :: Lens' UpdateWebACL Text uwaWebACLId = lens _uwaWebACLId (\ s a -> s{_uwaWebACLId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . uwaChangeToken :: Lens' UpdateWebACL Text uwaChangeToken = lens _uwaChangeToken (\ s a -> s{_uwaChangeToken = a}); @@ -161,9 +169,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uwarsChangeToken'+-- * 'uwarsChangeToken' - The @ChangeToken@ that you used to submit the @UpdateWebACL@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'uwarsResponseStatus'+-- * 'uwarsResponseStatus' - -- | The response status code. updateWebACLResponse :: Int -- ^ 'uwarsResponseStatus' -> UpdateWebACLResponse@@ -173,11 +181,11 @@ , _uwarsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'UpdateWebACL' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @UpdateWebACL@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . uwarsChangeToken :: Lens' UpdateWebACLResponse (Maybe Text) uwarsChangeToken = lens _uwarsChangeToken (\ s a -> s{_uwarsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. uwarsResponseStatus :: Lens' UpdateWebACLResponse Int uwarsResponseStatus = lens _uwarsResponseStatus (\ s a -> s{_uwarsResponseStatus = a});
gen/Network/AWS/WAF/UpdateXSSMatchSet.hs view
@@ -18,21 +18,31 @@ -- Stability : auto-generated -- Portability : non-portable (GHC extensions) ----- Inserts or deletes < XssMatchTuple> objects (filters) in an < XssMatchSet>. For each 'XssMatchTuple' object, you specify the following values:+-- Inserts or deletes 'XssMatchTuple' objects (filters) in an 'XssMatchSet' . For each @XssMatchTuple@ object, you specify the following values: ----- - 'Action': Whether to insert the object into or delete the object from the array. To change a 'XssMatchTuple', you delete the existing object and add a new one.--- - 'FieldToMatch': The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header.--- - 'TextTransformation': Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks. ----- You use 'XssMatchSet' objects to specify which CloudFront requests you want to allow, block, or count. For example, if you\'re receiving requests that contain cross-site scripting attacks in the request body and you want to block the requests, you can create an 'XssMatchSet' with the applicable settings, and then configure AWS WAF to block the requests.+-- * @Action@ : Whether to insert the object into or delete the object from the array. To change a @XssMatchTuple@ , you delete the existing object and add a new one. ----- To create and configure an 'XssMatchSet', perform the following steps:+-- * @FieldToMatch@ : The part of web requests that you want AWS WAF to inspect and, if you want AWS WAF to inspect a header, the name of the header. ----- 1. Submit a < CreateXssMatchSet> request.--- 2. Use < GetChangeToken> to get the change token that you provide in the 'ChangeToken' parameter of an < UpdateIPSet> request.--- 3. Submit an 'UpdateXssMatchSet' request to specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks.+-- * @TextTransformation@ : Which text transformation, if any, to perform on the web request before inspecting the request for cross-site scripting attacks. ----- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide>.+--+--+-- You use @XssMatchSet@ objects to specify which CloudFront requests you want to allow, block, or count. For example, if you're receiving requests that contain cross-site scripting attacks in the request body and you want to block the requests, you can create an @XssMatchSet@ with the applicable settings, and then configure AWS WAF to block the requests.+--+-- To create and configure an @XssMatchSet@ , perform the following steps:+--+-- * Submit a 'CreateXssMatchSet' request.+--+-- * Use 'GetChangeToken' to get the change token that you provide in the @ChangeToken@ parameter of an 'UpdateIPSet' request.+--+-- * Submit an @UpdateXssMatchSet@ request to specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks.+--+--+--+-- For more information about how to use the AWS WAF API to allow or block HTTP requests, see the <http://docs.aws.amazon.com/waf/latest/developerguide/ AWS WAF Developer Guide> .+-- module Network.AWS.WAF.UpdateXSSMatchSet ( -- * Creating a Request@@ -58,8 +68,10 @@ import Network.AWS.WAF.Types import Network.AWS.WAF.Types.Product --- | A request to update an < XssMatchSet>.+-- | A request to update an 'XssMatchSet' . --+--+-- -- /See:/ 'updateXSSMatchSet' smart constructor. data UpdateXSSMatchSet = UpdateXSSMatchSet' { _uxmsXSSMatchSetId :: !Text@@ -71,11 +83,11 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uxmsXSSMatchSetId'+-- * 'uxmsXSSMatchSetId' - The @XssMatchSetId@ of the @XssMatchSet@ that you want to update. @XssMatchSetId@ is returned by 'CreateXssMatchSet' and by 'ListXssMatchSets' . ----- * 'uxmsChangeToken'+-- * 'uxmsChangeToken' - The value returned by the most recent call to 'GetChangeToken' . ----- * 'uxmsUpdates'+-- * 'uxmsUpdates' - An array of @XssMatchSetUpdate@ objects that you want to insert into or delete from a 'XssMatchSet' . For more information, see the applicable data types: * 'XssMatchSetUpdate' : Contains @Action@ and @XssMatchTuple@ * 'XssMatchTuple' : Contains @FieldToMatch@ and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ updateXSSMatchSet :: Text -- ^ 'uxmsXSSMatchSetId' -> Text -- ^ 'uxmsChangeToken'@@ -87,19 +99,15 @@ , _uxmsUpdates = mempty } --- | The 'XssMatchSetId' of the 'XssMatchSet' that you want to update. 'XssMatchSetId' is returned by < CreateXssMatchSet> and by < ListXssMatchSets>.+-- | The @XssMatchSetId@ of the @XssMatchSet@ that you want to update. @XssMatchSetId@ is returned by 'CreateXssMatchSet' and by 'ListXssMatchSets' . uxmsXSSMatchSetId :: Lens' UpdateXSSMatchSet Text uxmsXSSMatchSetId = lens _uxmsXSSMatchSetId (\ s a -> s{_uxmsXSSMatchSetId = a}); --- | The value returned by the most recent call to < GetChangeToken>.+-- | The value returned by the most recent call to 'GetChangeToken' . uxmsChangeToken :: Lens' UpdateXSSMatchSet Text uxmsChangeToken = lens _uxmsChangeToken (\ s a -> s{_uxmsChangeToken = a}); --- | An array of 'XssMatchSetUpdate' objects that you want to insert into or delete from a < XssMatchSet>. For more information, see the applicable data types:------ - < XssMatchSetUpdate>: Contains 'Action' and 'XssMatchTuple'--- - < XssMatchTuple>: Contains 'FieldToMatch' and 'TextTransformation'--- - < FieldToMatch>: Contains 'Data' and 'Type'+-- | An array of @XssMatchSetUpdate@ objects that you want to insert into or delete from a 'XssMatchSet' . For more information, see the applicable data types: * 'XssMatchSetUpdate' : Contains @Action@ and @XssMatchTuple@ * 'XssMatchTuple' : Contains @FieldToMatch@ and @TextTransformation@ * 'FieldToMatch' : Contains @Data@ and @Type@ uxmsUpdates :: Lens' UpdateXSSMatchSet [XSSMatchSetUpdate] uxmsUpdates = lens _uxmsUpdates (\ s a -> s{_uxmsUpdates = a}) . _Coerce; @@ -139,8 +147,10 @@ instance ToQuery UpdateXSSMatchSet where toQuery = const mempty --- | The response to an < UpdateXssMatchSets> request.+-- | The response to an 'UpdateXssMatchSets' request. --+--+-- -- /See:/ 'updateXSSMatchSetResponse' smart constructor. data UpdateXSSMatchSetResponse = UpdateXSSMatchSetResponse' { _uxmsrsChangeToken :: !(Maybe Text)@@ -151,9 +161,9 @@ -- -- Use one of the following lenses to modify other fields as desired: ----- * 'uxmsrsChangeToken'+-- * 'uxmsrsChangeToken' - The @ChangeToken@ that you used to submit the @UpdateXssMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . ----- * 'uxmsrsResponseStatus'+-- * 'uxmsrsResponseStatus' - -- | The response status code. updateXSSMatchSetResponse :: Int -- ^ 'uxmsrsResponseStatus' -> UpdateXSSMatchSetResponse@@ -163,11 +173,11 @@ , _uxmsrsResponseStatus = pResponseStatus_ } --- | The 'ChangeToken' that you used to submit the 'UpdateXssMatchSet' request. You can also use this value to query the status of the request. For more information, see < GetChangeTokenStatus>.+-- | The @ChangeToken@ that you used to submit the @UpdateXssMatchSet@ request. You can also use this value to query the status of the request. For more information, see 'GetChangeTokenStatus' . uxmsrsChangeToken :: Lens' UpdateXSSMatchSetResponse (Maybe Text) uxmsrsChangeToken = lens _uxmsrsChangeToken (\ s a -> s{_uxmsrsChangeToken = a}); --- | The response status code.+-- | -- | The response status code. uxmsrsResponseStatus :: Lens' UpdateXSSMatchSetResponse Int uxmsrsResponseStatus = lens _uxmsrsResponseStatus (\ s a -> s{_uxmsrsResponseStatus = a});