| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.WAFRegional.GetRule
Description
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
Returns the Rule that is specified by the RuleId that you included in
the GetRule request.
Synopsis
- data GetRule = GetRule' {}
- newGetRule :: Text -> GetRule
- getRule_ruleId :: Lens' GetRule Text
- data GetRuleResponse = GetRuleResponse' {
- rule :: Maybe Rule
- httpStatus :: Int
- newGetRuleResponse :: Int -> GetRuleResponse
- getRuleResponse_rule :: Lens' GetRuleResponse (Maybe Rule)
- getRuleResponse_httpStatus :: Lens' GetRuleResponse Int
Creating a Request
See: newGetRule smart constructor.
Constructors
| GetRule' | |
Instances
Create a value of GetRule with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetRule, getRule_ruleId - The RuleId of the Rule that you want to get. RuleId is returned by
CreateRule and by ListRules.
Request Lenses
getRule_ruleId :: Lens' GetRule Text Source #
The RuleId of the Rule that you want to get. RuleId is returned by
CreateRule and by ListRules.
Destructuring the Response
data GetRuleResponse Source #
See: newGetRuleResponse smart constructor.
Constructors
| GetRuleResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> GetRuleResponse |
Create a value of GetRuleResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:rule:GetRuleResponse', getRuleResponse_rule - Information about the Rule that you specified in the GetRule request.
For more information, see the following topics:
- Rule: Contains
MetricName,Name, an array ofPredicateobjects, andRuleId - Predicate: Each
Predicateobject containsDataId,Negated, andType
$sel:httpStatus:GetRuleResponse', getRuleResponse_httpStatus - The response's http status code.
Response Lenses
getRuleResponse_rule :: Lens' GetRuleResponse (Maybe Rule) Source #
Information about the Rule that you specified in the GetRule request.
For more information, see the following topics:
- Rule: Contains
MetricName,Name, an array ofPredicateobjects, andRuleId - Predicate: Each
Predicateobject containsDataId,Negated, andType
getRuleResponse_httpStatus :: Lens' GetRuleResponse Int Source #
The response's http status code.