Copyright | (c) 2013-2021 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 |
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 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
GeoMatchSet
to remove any countries. For more information, see UpdateGeoMatchSet. - Use GetChangeToken to get the change token that you provide in the
ChangeToken
parameter of aDeleteGeoMatchSet
request. - Submit a
DeleteGeoMatchSet
request.
Synopsis
- data DeleteGeoMatchSet = DeleteGeoMatchSet' {
- geoMatchSetId :: Text
- changeToken :: Text
- newDeleteGeoMatchSet :: Text -> Text -> DeleteGeoMatchSet
- deleteGeoMatchSet_geoMatchSetId :: Lens' DeleteGeoMatchSet Text
- deleteGeoMatchSet_changeToken :: Lens' DeleteGeoMatchSet Text
- data DeleteGeoMatchSetResponse = DeleteGeoMatchSetResponse' {
- changeToken :: Maybe Text
- httpStatus :: Int
- newDeleteGeoMatchSetResponse :: Int -> DeleteGeoMatchSetResponse
- deleteGeoMatchSetResponse_changeToken :: Lens' DeleteGeoMatchSetResponse (Maybe Text)
- deleteGeoMatchSetResponse_httpStatus :: Lens' DeleteGeoMatchSetResponse Int
Creating a Request
data DeleteGeoMatchSet Source #
See: newDeleteGeoMatchSet
smart constructor.
DeleteGeoMatchSet' | |
|
Instances
:: Text | |
-> Text | |
-> DeleteGeoMatchSet |
Create a value of DeleteGeoMatchSet
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:geoMatchSetId:DeleteGeoMatchSet'
, deleteGeoMatchSet_geoMatchSetId
- The GeoMatchSetID
of the GeoMatchSet that you want to delete.
GeoMatchSetId
is returned by CreateGeoMatchSet and by
ListGeoMatchSets.
$sel:changeToken:DeleteGeoMatchSet'
, deleteGeoMatchSet_changeToken
- The value returned by the most recent call to GetChangeToken.
Request Lenses
deleteGeoMatchSet_geoMatchSetId :: Lens' DeleteGeoMatchSet Text Source #
The GeoMatchSetID
of the GeoMatchSet that you want to delete.
GeoMatchSetId
is returned by CreateGeoMatchSet and by
ListGeoMatchSets.
deleteGeoMatchSet_changeToken :: Lens' DeleteGeoMatchSet Text Source #
The value returned by the most recent call to GetChangeToken.
Destructuring the Response
data DeleteGeoMatchSetResponse Source #
See: newDeleteGeoMatchSetResponse
smart constructor.
DeleteGeoMatchSetResponse' | |
|
Instances
newDeleteGeoMatchSetResponse Source #
Create a value of DeleteGeoMatchSetResponse
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:DeleteGeoMatchSet'
, deleteGeoMatchSetResponse_changeToken
- 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.
$sel:httpStatus:DeleteGeoMatchSetResponse'
, deleteGeoMatchSetResponse_httpStatus
- The response's http status code.
Response Lenses
deleteGeoMatchSetResponse_changeToken :: 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.
deleteGeoMatchSetResponse_httpStatus :: Lens' DeleteGeoMatchSetResponse Int Source #
The response's http status code.