| 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.CreateRuleGroup
Description
Creates a RuleGroup . A rule group is a collection of predefined rules that you add to a web ACL. You use UpdateRuleGroup to add rules to the rule group.
Rule groups are subject to the following limits:
- Three rule groups per account. You can request an increase to this limit by contacting customer support.
- One rule group per web ACL.
- Ten rules per rule group.
For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide .
Synopsis
- createRuleGroup :: Text -> Text -> Text -> CreateRuleGroup
- data CreateRuleGroup
- crgName :: Lens' CreateRuleGroup Text
- crgMetricName :: Lens' CreateRuleGroup Text
- crgChangeToken :: Lens' CreateRuleGroup Text
- createRuleGroupResponse :: Int -> CreateRuleGroupResponse
- data CreateRuleGroupResponse
- crgrsChangeToken :: Lens' CreateRuleGroupResponse (Maybe Text)
- crgrsRuleGroup :: Lens' CreateRuleGroupResponse (Maybe RuleGroup)
- crgrsResponseStatus :: Lens' CreateRuleGroupResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateRuleGroup |
Creates a value of CreateRuleGroup with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crgName- A friendly name or description of theRuleGroup. You can't changeNameafter you create aRuleGroup.crgMetricName- A friendly name or description for the metrics for thisRuleGroup. 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 theRuleGroup.crgChangeToken- The value returned by the most recent call toGetChangeToken.
data CreateRuleGroup Source #
See: createRuleGroup smart constructor.
Instances
Request Lenses
crgName :: Lens' CreateRuleGroup Text Source #
A friendly name or description of the RuleGroup . You can't change Name after you create a RuleGroup .
crgMetricName :: Lens' CreateRuleGroup Text Source #
A friendly name or description for the metrics for this RuleGroup . 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 RuleGroup .
crgChangeToken :: Lens' CreateRuleGroup Text Source #
The value returned by the most recent call to GetChangeToken .
Destructuring the Response
createRuleGroupResponse Source #
Arguments
| :: Int | |
| -> CreateRuleGroupResponse |
Creates a value of CreateRuleGroupResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crgrsChangeToken- TheChangeTokenthat you used to submit theCreateRuleGrouprequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.crgrsRuleGroup- An emptyRuleGroup.crgrsResponseStatus- -- | The response status code.
data CreateRuleGroupResponse Source #
See: createRuleGroupResponse smart constructor.
Instances
Response Lenses
crgrsChangeToken :: Lens' CreateRuleGroupResponse (Maybe Text) Source #
The ChangeToken that you used to submit the CreateRuleGroup request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
crgrsRuleGroup :: Lens' CreateRuleGroupResponse (Maybe RuleGroup) Source #
An empty RuleGroup .
crgrsResponseStatus :: Lens' CreateRuleGroupResponse Int Source #
- - | The response status code.