| 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.DeleteGeoMatchSet
Description
Permanently deletes a GeoMatchSet . You can't delete a GeoMatchSet if it's still used in any Rules or if it still includes any countries.
If you just want to remove a GeoMatchSet from a Rule , use UpdateRule .
To permanently delete a GeoMatchSet from AWS WAF, perform the following steps:
- Update the
GeoMatchSetto remove any countries. For more information, seeUpdateGeoMatchSet. - Use
GetChangeTokento get the change token that you provide in theChangeTokenparameter of aDeleteGeoMatchSetrequest. - Submit a
DeleteGeoMatchSetrequest.
Synopsis
- deleteGeoMatchSet :: Text -> Text -> DeleteGeoMatchSet
- data DeleteGeoMatchSet
- dgmsGeoMatchSetId :: Lens' DeleteGeoMatchSet Text
- dgmsChangeToken :: Lens' DeleteGeoMatchSet Text
- deleteGeoMatchSetResponse :: Int -> DeleteGeoMatchSetResponse
- data DeleteGeoMatchSetResponse
- dgmsrsChangeToken :: Lens' DeleteGeoMatchSetResponse (Maybe Text)
- dgmsrsResponseStatus :: Lens' DeleteGeoMatchSetResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> DeleteGeoMatchSet |
Creates a value of DeleteGeoMatchSet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dgmsGeoMatchSetId- TheGeoMatchSetIDof theGeoMatchSetthat you want to delete.GeoMatchSetIdis returned byCreateGeoMatchSetand byListGeoMatchSets.dgmsChangeToken- The value returned by the most recent call toGetChangeToken.
data DeleteGeoMatchSet Source #
See: deleteGeoMatchSet smart constructor.
Instances
Request Lenses
dgmsGeoMatchSetId :: Lens' DeleteGeoMatchSet Text Source #
The GeoMatchSetID of the GeoMatchSet that you want to delete. GeoMatchSetId is returned by CreateGeoMatchSet and by ListGeoMatchSets .
dgmsChangeToken :: Lens' DeleteGeoMatchSet Text Source #
The value returned by the most recent call to GetChangeToken .
Destructuring the Response
deleteGeoMatchSetResponse Source #
Arguments
| :: Int | |
| -> DeleteGeoMatchSetResponse |
Creates a value of DeleteGeoMatchSetResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dgmsrsChangeToken- TheChangeTokenthat you used to submit theDeleteGeoMatchSetrequest. You can also use this value to query the status of the request. For more information, seeGetChangeTokenStatus.dgmsrsResponseStatus- -- | The response status code.
data DeleteGeoMatchSetResponse Source #
See: deleteGeoMatchSetResponse smart constructor.
Instances
Response Lenses
dgmsrsChangeToken :: Lens' DeleteGeoMatchSetResponse (Maybe Text) Source #
The ChangeToken that you used to submit the DeleteGeoMatchSet request. You can also use this value to query the status of the request. For more information, see GetChangeTokenStatus .
dgmsrsResponseStatus :: Lens' DeleteGeoMatchSetResponse Int Source #
- - | The response status code.