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

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.

Permanently deletes a RateBasedRule. You can't delete a rule if it's still used in any WebACL objects or if it still includes any predicates, such as ByteMatchSet objects.

If you just want to remove a rule from a WebACL, use UpdateWebACL.

To permanently delete a RateBasedRule from AWS WAF, perform the following steps:

  1. Update the RateBasedRule to remove predicates, if any. For more information, see UpdateRateBasedRule.
  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteRateBasedRule request.
  3. Submit a DeleteRateBasedRule request.
Synopsis

Creating a Request

data DeleteRateBasedRule Source #

See: newDeleteRateBasedRule smart constructor.

Constructors

DeleteRateBasedRule' 

Fields

  • ruleId :: Text

    The RuleId of the RateBasedRule that you want to delete. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules.

  • changeToken :: Text

    The value returned by the most recent call to GetChangeToken.

Instances

Instances details
Eq DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

Read DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

Show DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

Generic DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

Associated Types

type Rep DeleteRateBasedRule :: Type -> Type #

NFData DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

Methods

rnf :: DeleteRateBasedRule -> () #

Hashable DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

ToJSON DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

AWSRequest DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

Associated Types

type AWSResponse DeleteRateBasedRule #

ToHeaders DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

ToPath DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

ToQuery DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

type Rep DeleteRateBasedRule Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

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

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

newDeleteRateBasedRule Source #

Create a value of DeleteRateBasedRule 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:DeleteRateBasedRule', deleteRateBasedRule_ruleId - The RuleId of the RateBasedRule that you want to delete. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules.

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

Request Lenses

deleteRateBasedRule_ruleId :: Lens' DeleteRateBasedRule Text Source #

The RuleId of the RateBasedRule that you want to delete. RuleId is returned by CreateRateBasedRule and by ListRateBasedRules.

deleteRateBasedRule_changeToken :: Lens' DeleteRateBasedRule Text Source #

The value returned by the most recent call to GetChangeToken.

Destructuring the Response

data DeleteRateBasedRuleResponse Source #

See: newDeleteRateBasedRuleResponse smart constructor.

Constructors

DeleteRateBasedRuleResponse' 

Fields

  • changeToken :: Maybe Text

    The ChangeToken that you used to submit the DeleteRateBasedRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DeleteRateBasedRuleResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

Read DeleteRateBasedRuleResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

Show DeleteRateBasedRuleResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

Generic DeleteRateBasedRuleResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

Associated Types

type Rep DeleteRateBasedRuleResponse :: Type -> Type #

NFData DeleteRateBasedRuleResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

type Rep DeleteRateBasedRuleResponse Source # 
Instance details

Defined in Amazonka.WAFRegional.DeleteRateBasedRule

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

newDeleteRateBasedRuleResponse Source #

Create a value of DeleteRateBasedRuleResponse 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:DeleteRateBasedRule', deleteRateBasedRuleResponse_changeToken - The ChangeToken that you used to submit the DeleteRateBasedRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.

$sel:httpStatus:DeleteRateBasedRuleResponse', deleteRateBasedRuleResponse_httpStatus - The response's http status code.

Response Lenses

deleteRateBasedRuleResponse_changeToken :: Lens' DeleteRateBasedRuleResponse (Maybe Text) Source #

The ChangeToken that you used to submit the DeleteRateBasedRule request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus.