libZSservicesZSamazonka-wafZSamazonka-waf
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.WAF.DeleteSizeConstraintSet

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 SizeConstraintSet. You can't delete a SizeConstraintSet if it's still used in any Rules or if it still includes any SizeConstraint objects (any filters).

If you just want to remove a SizeConstraintSet from a Rule, use UpdateRule.

To permanently delete a SizeConstraintSet, perform the following steps:

  1. Update the SizeConstraintSet to remove filters, if any. For more information, see UpdateSizeConstraintSet.
  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteSizeConstraintSet request.
  3. Submit a DeleteSizeConstraintSet request.
Synopsis

Creating a Request

data DeleteSizeConstraintSet Source #

See: newDeleteSizeConstraintSet smart constructor.

Constructors

DeleteSizeConstraintSet' 

Fields

  • sizeConstraintSetId :: Text

    The SizeConstraintSetId of the SizeConstraintSet that you want to delete. SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

  • changeToken :: Text

    The value returned by the most recent call to GetChangeToken.

Instances

Instances details
Eq DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

Read DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

Show DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

Generic DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

Associated Types

type Rep DeleteSizeConstraintSet :: Type -> Type #

NFData DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

Methods

rnf :: DeleteSizeConstraintSet -> () #

Hashable DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

ToJSON DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

AWSRequest DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

ToHeaders DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

ToPath DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

ToQuery DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

type Rep DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

type Rep DeleteSizeConstraintSet = D1 ('MetaData "DeleteSizeConstraintSet" "Amazonka.WAF.DeleteSizeConstraintSet" "libZSservicesZSamazonka-wafZSamazonka-waf" 'False) (C1 ('MetaCons "DeleteSizeConstraintSet'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sizeConstraintSetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "changeToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteSizeConstraintSet Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

newDeleteSizeConstraintSet Source #

Create a value of DeleteSizeConstraintSet 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:sizeConstraintSetId:DeleteSizeConstraintSet', deleteSizeConstraintSet_sizeConstraintSetId - The SizeConstraintSetId of the SizeConstraintSet that you want to delete. SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

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

Request Lenses

deleteSizeConstraintSet_sizeConstraintSetId :: Lens' DeleteSizeConstraintSet Text Source #

The SizeConstraintSetId of the SizeConstraintSet that you want to delete. SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets.

deleteSizeConstraintSet_changeToken :: Lens' DeleteSizeConstraintSet Text Source #

The value returned by the most recent call to GetChangeToken.

Destructuring the Response

data DeleteSizeConstraintSetResponse Source #

See: newDeleteSizeConstraintSetResponse smart constructor.

Constructors

DeleteSizeConstraintSetResponse' 

Fields

  • changeToken :: Maybe Text

    The ChangeToken that you used to submit the DeleteSizeConstraintSet 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 DeleteSizeConstraintSetResponse Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

Read DeleteSizeConstraintSetResponse Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

Show DeleteSizeConstraintSetResponse Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

Generic DeleteSizeConstraintSetResponse Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

Associated Types

type Rep DeleteSizeConstraintSetResponse :: Type -> Type #

NFData DeleteSizeConstraintSetResponse Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

type Rep DeleteSizeConstraintSetResponse Source # 
Instance details

Defined in Amazonka.WAF.DeleteSizeConstraintSet

type Rep DeleteSizeConstraintSetResponse = D1 ('MetaData "DeleteSizeConstraintSetResponse" "Amazonka.WAF.DeleteSizeConstraintSet" "libZSservicesZSamazonka-wafZSamazonka-waf" 'False) (C1 ('MetaCons "DeleteSizeConstraintSetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "changeToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteSizeConstraintSetResponse Source #

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

$sel:httpStatus:DeleteSizeConstraintSetResponse', deleteSizeConstraintSetResponse_httpStatus - The response's http status code.

Response Lenses

deleteSizeConstraintSetResponse_changeToken :: Lens' DeleteSizeConstraintSetResponse (Maybe Text) Source #

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