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.ListRuleGroups

Description

Retrieves an array of RuleGroupSummary objects for the rule groups that you manage.

Synopsis

Creating a Request

data ListRuleGroups Source #

See: newListRuleGroups smart constructor.

Constructors

ListRuleGroups' 

Fields

  • limit :: Maybe Natural

    The maximum number of objects that you want WAF to return for this request. If more objects are available, in the response, WAF provides a NextMarker value that you can use in a subsequent call to get the next batch of objects.

  • nextMarker :: Maybe Text

    When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.

  • 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.

Instances

Instances details
ToJSON ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

ToHeaders ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

ToPath ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

ToQuery ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

AWSRequest ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

Associated Types

type AWSResponse ListRuleGroups #

Generic ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

Associated Types

type Rep ListRuleGroups :: Type -> Type #

Read ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

Show ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

NFData ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

Methods

rnf :: ListRuleGroups -> () #

Eq ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

Hashable ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

type AWSResponse ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

type Rep ListRuleGroups Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

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

newListRuleGroups Source #

Create a value of ListRuleGroups 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:

ListRuleGroups, listRuleGroups_limit - The maximum number of objects that you want WAF to return for this request. If more objects are available, in the response, WAF provides a NextMarker value that you can use in a subsequent call to get the next batch of objects.

ListRuleGroups, listRuleGroups_nextMarker - When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.

ListRuleGroups, listRuleGroups_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.

Request Lenses

listRuleGroups_limit :: Lens' ListRuleGroups (Maybe Natural) Source #

The maximum number of objects that you want WAF to return for this request. If more objects are available, in the response, WAF provides a NextMarker value that you can use in a subsequent call to get the next batch of objects.

listRuleGroups_nextMarker :: Lens' ListRuleGroups (Maybe Text) Source #

When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.

listRuleGroups_scope :: Lens' ListRuleGroups 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.

Destructuring the Response

data ListRuleGroupsResponse Source #

See: newListRuleGroupsResponse smart constructor.

Constructors

ListRuleGroupsResponse' 

Fields

  • nextMarker :: Maybe Text

    When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.

  • ruleGroups :: Maybe [RuleGroupSummary]
     
  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListRuleGroupsResponse Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

Associated Types

type Rep ListRuleGroupsResponse :: Type -> Type #

Read ListRuleGroupsResponse Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

Show ListRuleGroupsResponse Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

NFData ListRuleGroupsResponse Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

Methods

rnf :: ListRuleGroupsResponse -> () #

Eq ListRuleGroupsResponse Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

type Rep ListRuleGroupsResponse Source # 
Instance details

Defined in Amazonka.WAFV2.ListRuleGroups

type Rep ListRuleGroupsResponse = D1 ('MetaData "ListRuleGroupsResponse" "Amazonka.WAFV2.ListRuleGroups" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "ListRuleGroupsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextMarker") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "ruleGroups") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [RuleGroupSummary])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListRuleGroupsResponse Source #

Create a value of ListRuleGroupsResponse 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:

ListRuleGroups, listRuleGroupsResponse_nextMarker - When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.

$sel:ruleGroups:ListRuleGroupsResponse', listRuleGroupsResponse_ruleGroups -

$sel:httpStatus:ListRuleGroupsResponse', listRuleGroupsResponse_httpStatus - The response's http status code.

Response Lenses

listRuleGroupsResponse_nextMarker :: Lens' ListRuleGroupsResponse (Maybe Text) Source #

When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.