| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.WAF.DeleteSizeConstraintSet
Description
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:
- Update the
SizeConstraintSetto remove filters, if any. For more information, seeUpdateSizeConstraintSet. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aDeleteSizeConstraintSetrequest. - Submit a
DeleteSizeConstraintSetrequest.
Synopsis
- deleteSizeConstraintSet :: Text -> Text -> DeleteSizeConstraintSet
- data DeleteSizeConstraintSet
- dscsSizeConstraintSetId :: Lens' DeleteSizeConstraintSet Text
- dscsChangeToken :: Lens' DeleteSizeConstraintSet Text
- deleteSizeConstraintSetResponse :: Int -> DeleteSizeConstraintSetResponse
- data DeleteSizeConstraintSetResponse
- dscsrsChangeToken :: Lens' DeleteSizeConstraintSetResponse (Maybe Text)
- dscsrsResponseStatus :: Lens' DeleteSizeConstraintSetResponse Int
Creating a Request
deleteSizeConstraintSet Source #
Arguments
| :: Text | |
| -> Text | |
| -> DeleteSizeConstraintSet |
Creates a value of DeleteSizeConstraintSet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dscsSizeConstraintSetId- TheSizeConstraintSetIdof theSizeConstraintSetthat you want to delete.SizeConstraintSetIdis returned byCreateSizeConstraintSetand byListSizeConstraintSets.dscsChangeToken- The value returned by the most recent call toGetChangeToken.
data DeleteSizeConstraintSet Source #
See: deleteSizeConstraintSet smart constructor.
Instances
Request Lenses
dscsSizeConstraintSetId :: Lens' DeleteSizeConstraintSet Text Source #
The SizeConstraintSetId of the SizeConstraintSet that you want to delete. SizeConstraintSetId is returned by CreateSizeConstraintSet and by ListSizeConstraintSets .
dscsChangeToken :: Lens' DeleteSizeConstraintSet Text Source #
The value returned by the most recent call to GetChangeToken .
Destructuring the Response
deleteSizeConstraintSetResponse Source #
Arguments
| :: Int | |
| -> DeleteSizeConstraintSetResponse |
Creates a value of DeleteSizeConstraintSetResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dscsrsChangeToken- TheChangeTokenthat you used to submit theDeleteSizeConstraintSetrequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.dscsrsResponseStatus- -- | The response status code.
data DeleteSizeConstraintSetResponse Source #
See: deleteSizeConstraintSetResponse smart constructor.
Instances
Response Lenses
dscsrsChangeToken :: 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 .
dscsrsResponseStatus :: Lens' DeleteSizeConstraintSetResponse Int Source #
- - | The response status code.