libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WAFRegional.CreateRuleGroup

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.

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

Creating a Request

data CreateRuleGroup Source #

See: newCreateRuleGroup smart constructor.

Constructors

CreateRuleGroup' 

Fields

  • tags :: Maybe (NonEmpty Tag)
     
  • name :: Text

    A friendly name or description of the RuleGroup. You can't change Name after you create a RuleGroup.

  • metricName :: Text

    A friendly name or description for the metrics for this RuleGroup. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name of the metric after you create the RuleGroup.

  • changeToken :: Text

    The value returned by the most recent call to GetChangeToken.

Instances

Instances details
Eq CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Read CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Show CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Generic CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Associated Types

type Rep CreateRuleGroup :: Type -> Type #

NFData CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Methods

rnf :: CreateRuleGroup -> () #

Hashable CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

ToJSON CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

AWSRequest CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Associated Types

type AWSResponse CreateRuleGroup #

ToHeaders CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

ToPath CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

ToQuery CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

type Rep CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

type Rep CreateRuleGroup = D1 ('MetaData "CreateRuleGroup" "Amazonka.WAFRegional.CreateRuleGroup" "libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional" 'False) (C1 ('MetaCons "CreateRuleGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Tag))) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "changeToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateRuleGroup Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

newCreateRuleGroup Source #

Create a value of CreateRuleGroup 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:tags:CreateRuleGroup', createRuleGroup_tags -

$sel:name:CreateRuleGroup', createRuleGroup_name - A friendly name or description of the RuleGroup. You can't change Name after you create a RuleGroup.

$sel:metricName:CreateRuleGroup', createRuleGroup_metricName - A friendly name or description for the metrics for this RuleGroup. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name of the metric after you create the RuleGroup.

$sel:changeToken:CreateRuleGroup', createRuleGroup_changeToken - The value returned by the most recent call to GetChangeToken.

Request Lenses

createRuleGroup_name :: Lens' CreateRuleGroup Text Source #

A friendly name or description of the RuleGroup. You can't change Name after you create a RuleGroup.

createRuleGroup_metricName :: 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), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF, including "All" and "Default_Action." You can't change the name of the metric after you create the RuleGroup.

createRuleGroup_changeToken :: Lens' CreateRuleGroup Text Source #

The value returned by the most recent call to GetChangeToken.

Destructuring the Response

data CreateRuleGroupResponse Source #

See: newCreateRuleGroupResponse smart constructor.

Constructors

CreateRuleGroupResponse' 

Fields

  • changeToken :: Maybe Text

    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.

  • ruleGroup :: Maybe RuleGroup

    An empty RuleGroup.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CreateRuleGroupResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Read CreateRuleGroupResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Show CreateRuleGroupResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Generic CreateRuleGroupResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Associated Types

type Rep CreateRuleGroupResponse :: Type -> Type #

NFData CreateRuleGroupResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

Methods

rnf :: CreateRuleGroupResponse -> () #

type Rep CreateRuleGroupResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.CreateRuleGroup

type Rep CreateRuleGroupResponse = D1 ('MetaData "CreateRuleGroupResponse" "Amazonka.WAFRegional.CreateRuleGroup" "libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional" 'False) (C1 ('MetaCons "CreateRuleGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "changeToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "ruleGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe RuleGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateRuleGroupResponse Source #

Create a value of CreateRuleGroupResponse 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:changeToken:CreateRuleGroup', createRuleGroupResponse_changeToken - 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.

$sel:ruleGroup:CreateRuleGroupResponse', createRuleGroupResponse_ruleGroup - An empty RuleGroup.

$sel:httpStatus:CreateRuleGroupResponse', createRuleGroupResponse_httpStatus - The response's http status code.

Response Lenses

createRuleGroupResponse_changeToken :: 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.