amazonka-wafv2-2.0: Amazon WAFV2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WAFV2.GetRateBasedStatementManagedKeys

Description

Retrieves the keys that are currently blocked by a rate-based rule instance. The maximum number of managed keys that can be blocked for a single rate-based rule instance is 10,000. If more than 10,000 addresses exceed the rate limit, those with the highest rates are blocked.

For a rate-based rule that you've defined inside a rule group, provide the name of the rule group reference statement in your request, in addition to the rate-based rule name and the web ACL name.

WAF monitors web requests and manages keys independently for each unique combination of web ACL, optional rule group, and rate-based rule. For example, if you define a rate-based rule inside a rule group, and then use the rule group in a web ACL, WAF monitors web requests and manages keys for that web ACL, rule group reference statement, and rate-based rule instance. If you use the same rule group in a second web ACL, WAF monitors web requests and manages keys for this second usage completely independent of your first.

Synopsis

Creating a Request

data GetRateBasedStatementManagedKeys Source #

See: newGetRateBasedStatementManagedKeys smart constructor.

Constructors

GetRateBasedStatementManagedKeys' 

Fields

  • ruleGroupRuleName :: Maybe Text

    The name of the rule group reference statement in your web ACL. This is required only when you have the rate-based rule nested inside a rule group.

  • scope :: Scope

    Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an Amazon Cognito user pool.

    To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:

    • CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.
    • API and SDKs - For all calls, use the Region endpoint us-east-1.
  • webACLName :: Text

    The name of the web ACL. You cannot change the name of a web ACL after you create it.

  • webACLId :: Text

    The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.

  • ruleName :: Text

    The name of the rate-based rule to get the keys for. If you have the rule defined inside a rule group that you're using in your web ACL, also provide the name of the rule group reference statement in the request parameter RuleGroupRuleName.

Instances

Instances details
ToJSON GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

ToHeaders GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

ToPath GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

ToQuery GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

AWSRequest GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

Generic GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

Associated Types

type Rep GetRateBasedStatementManagedKeys :: Type -> Type #

Read GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

Show GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

NFData GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

Eq GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

Hashable GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

type AWSResponse GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

type Rep GetRateBasedStatementManagedKeys Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

type Rep GetRateBasedStatementManagedKeys = D1 ('MetaData "GetRateBasedStatementManagedKeys" "Amazonka.WAFV2.GetRateBasedStatementManagedKeys" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "GetRateBasedStatementManagedKeys'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ruleGroupRuleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "scope") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Scope)) :*: (S1 ('MetaSel ('Just "webACLName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "webACLId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "ruleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newGetRateBasedStatementManagedKeys Source #

Create a value of GetRateBasedStatementManagedKeys 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:ruleGroupRuleName:GetRateBasedStatementManagedKeys', getRateBasedStatementManagedKeys_ruleGroupRuleName - The name of the rule group reference statement in your web ACL. This is required only when you have the rate-based rule nested inside a rule group.

GetRateBasedStatementManagedKeys, getRateBasedStatementManagedKeys_scope - Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an Amazon Cognito user pool.

To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:

  • CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.
  • API and SDKs - For all calls, use the Region endpoint us-east-1.

$sel:webACLName:GetRateBasedStatementManagedKeys', getRateBasedStatementManagedKeys_webACLName - The name of the web ACL. You cannot change the name of a web ACL after you create it.

$sel:webACLId:GetRateBasedStatementManagedKeys', getRateBasedStatementManagedKeys_webACLId - The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.

$sel:ruleName:GetRateBasedStatementManagedKeys', getRateBasedStatementManagedKeys_ruleName - The name of the rate-based rule to get the keys for. If you have the rule defined inside a rule group that you're using in your web ACL, also provide the name of the rule group reference statement in the request parameter RuleGroupRuleName.

Request Lenses

getRateBasedStatementManagedKeys_ruleGroupRuleName :: Lens' GetRateBasedStatementManagedKeys (Maybe Text) Source #

The name of the rule group reference statement in your web ACL. This is required only when you have the rate-based rule nested inside a rule group.

getRateBasedStatementManagedKeys_scope :: Lens' GetRateBasedStatementManagedKeys Scope Source #

Specifies whether this is for an Amazon CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AppSync GraphQL API, or an Amazon Cognito user pool.

To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:

  • CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.
  • API and SDKs - For all calls, use the Region endpoint us-east-1.

getRateBasedStatementManagedKeys_webACLName :: Lens' GetRateBasedStatementManagedKeys Text Source #

The name of the web ACL. You cannot change the name of a web ACL after you create it.

getRateBasedStatementManagedKeys_webACLId :: Lens' GetRateBasedStatementManagedKeys Text Source #

The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.

getRateBasedStatementManagedKeys_ruleName :: Lens' GetRateBasedStatementManagedKeys Text Source #

The name of the rate-based rule to get the keys for. If you have the rule defined inside a rule group that you're using in your web ACL, also provide the name of the rule group reference statement in the request parameter RuleGroupRuleName.

Destructuring the Response

data GetRateBasedStatementManagedKeysResponse Source #

Constructors

GetRateBasedStatementManagedKeysResponse' 

Fields

Instances

Instances details
Generic GetRateBasedStatementManagedKeysResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

Read GetRateBasedStatementManagedKeysResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

Show GetRateBasedStatementManagedKeysResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

NFData GetRateBasedStatementManagedKeysResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

Eq GetRateBasedStatementManagedKeysResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

type Rep GetRateBasedStatementManagedKeysResponse Source # 
Instance details

Defined in Amazonka.WAFV2.GetRateBasedStatementManagedKeys

type Rep GetRateBasedStatementManagedKeysResponse = D1 ('MetaData "GetRateBasedStatementManagedKeysResponse" "Amazonka.WAFV2.GetRateBasedStatementManagedKeys" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "GetRateBasedStatementManagedKeysResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "managedKeysIPV4") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RateBasedStatementManagedKeysIPSet)) :*: (S1 ('MetaSel ('Just "managedKeysIPV6") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RateBasedStatementManagedKeysIPSet)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetRateBasedStatementManagedKeysResponse Source #

Create a value of GetRateBasedStatementManagedKeysResponse 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:managedKeysIPV4:GetRateBasedStatementManagedKeysResponse', getRateBasedStatementManagedKeysResponse_managedKeysIPV4 - The keys that are of Internet Protocol version 4 (IPv4).

$sel:managedKeysIPV6:GetRateBasedStatementManagedKeysResponse', getRateBasedStatementManagedKeysResponse_managedKeysIPV6 - The keys that are of Internet Protocol version 6 (IPv6).

$sel:httpStatus:GetRateBasedStatementManagedKeysResponse', getRateBasedStatementManagedKeysResponse_httpStatus - The response's http status code.

Response Lenses