Copyright | (c) 2013-2021 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 |
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.
Instances
Eq GetRule Source # | |
Read GetRule Source # | |
Show GetRule Source # | |
Generic GetRule Source # | |
NFData GetRule Source # | |
Defined in Amazonka.WAF.GetRule | |
Hashable GetRule Source # | |
Defined in Amazonka.WAF.GetRule | |
ToJSON GetRule Source # | |
Defined in Amazonka.WAF.GetRule | |
AWSRequest GetRule Source # | |
Defined in Amazonka.WAF.GetRule type AWSResponse GetRule # request :: GetRule -> Request GetRule # response :: MonadResource m => Logger -> Service -> Proxy GetRule -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetRule))) # | |
ToHeaders GetRule Source # | |
Defined in Amazonka.WAF.GetRule | |
ToPath GetRule Source # | |
Defined in Amazonka.WAF.GetRule toPath :: GetRule -> ByteString # | |
ToQuery GetRule Source # | |
Defined in Amazonka.WAF.GetRule toQuery :: GetRule -> QueryString # | |
type Rep GetRule Source # | |
Defined in Amazonka.WAF.GetRule | |
type AWSResponse GetRule Source # | |
Defined in Amazonka.WAF.GetRule |
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:
$sel:ruleId: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.
GetRuleResponse' | |
|
Instances
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 ofPredicate
objects, andRuleId
- Predicate: Each
Predicate
object 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 ofPredicate
objects, andRuleId
- Predicate: Each
Predicate
object containsDataId
,Negated
, andType
getRuleResponse_httpStatus :: Lens' GetRuleResponse Int Source #
The response's http status code.