| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.WAF.CreateSqlInjectionMatchSet
Description
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:
- Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aCreateSqlInjectionMatchSetrequest. - Submit a
CreateSqlInjectionMatchSetrequest. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of anUpdateSqlInjectionMatchSetrequest. - Submit an
UpdateSqlInjectionMatchSetrequest 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 AWS WAF Developer Guide .
Synopsis
- createSqlInjectionMatchSet :: Text -> Text -> CreateSqlInjectionMatchSet
- data CreateSqlInjectionMatchSet
- csimsName :: Lens' CreateSqlInjectionMatchSet Text
- csimsChangeToken :: Lens' CreateSqlInjectionMatchSet Text
- createSqlInjectionMatchSetResponse :: Int -> CreateSqlInjectionMatchSetResponse
- data CreateSqlInjectionMatchSetResponse
- csimsrsSqlInjectionMatchSet :: Lens' CreateSqlInjectionMatchSetResponse (Maybe SqlInjectionMatchSet)
- csimsrsChangeToken :: Lens' CreateSqlInjectionMatchSetResponse (Maybe Text)
- csimsrsResponseStatus :: Lens' CreateSqlInjectionMatchSetResponse Int
Creating a Request
createSqlInjectionMatchSet Source #
Arguments
| :: Text | |
| -> Text | |
| -> CreateSqlInjectionMatchSet |
Creates a value of CreateSqlInjectionMatchSet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csimsName- A friendly name or description for theSqlInjectionMatchSetthat you're creating. You can't changeNameafter you create theSqlInjectionMatchSet.csimsChangeToken- The value returned by the most recent call toGetChangeToken.
data CreateSqlInjectionMatchSet Source #
A request to create a SqlInjectionMatchSet .
See: createSqlInjectionMatchSet smart constructor.
Instances
Request Lenses
csimsName :: Lens' CreateSqlInjectionMatchSet Text Source #
A friendly name or description for the SqlInjectionMatchSet that you're creating. You can't change Name after you create the SqlInjectionMatchSet .
csimsChangeToken :: Lens' CreateSqlInjectionMatchSet Text Source #
The value returned by the most recent call to GetChangeToken .
Destructuring the Response
createSqlInjectionMatchSetResponse Source #
Arguments
| :: Int | |
| -> CreateSqlInjectionMatchSetResponse |
Creates a value of CreateSqlInjectionMatchSetResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csimsrsSqlInjectionMatchSet- ASqlInjectionMatchSet.csimsrsChangeToken- TheChangeTokenthat you used to submit theCreateSqlInjectionMatchSetrequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.csimsrsResponseStatus- -- | The response status code.
data CreateSqlInjectionMatchSetResponse Source #
The response to a CreateSqlInjectionMatchSet request.
See: createSqlInjectionMatchSetResponse smart constructor.
Instances
Response Lenses
csimsrsSqlInjectionMatchSet :: Lens' CreateSqlInjectionMatchSetResponse (Maybe SqlInjectionMatchSet) Source #
csimsrsChangeToken :: Lens' CreateSqlInjectionMatchSetResponse (Maybe Text) Source #
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 :: Lens' CreateSqlInjectionMatchSetResponse Int Source #
- - | The response status code.