Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 GetChangeToken to get the change token that you provide in the
ChangeToken
parameter of aCreateSqlInjectionMatchSet
request. - Submit a
CreateSqlInjectionMatchSet
request. - Use
GetChangeToken
to get the change token that you provide in theChangeToken
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 AWS WAF Developer Guide.
- 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 #
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:
data CreateSqlInjectionMatchSet Source #
A request to create a SqlInjectionMatchSet.
See: createSqlInjectionMatchSet
smart constructor.
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 #
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:
data CreateSqlInjectionMatchSetResponse Source #
The response to a CreateSqlInjectionMatchSet
request.
See: createSqlInjectionMatchSetResponse
smart constructor.
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.