paws.security.identity (version 0.1.0)

wafregional_delete_ip_set: Permanently deletes an IPSet

Description

Permanently deletes an IPSet. You can't delete an IPSet if it's still used in any Rules or if it still includes any IP addresses.

Usage

wafregional_delete_ip_set(IPSetId, ChangeToken)

Arguments

IPSetId

[required] The IPSetId of the IPSet that you want to delete. IPSetId is returned by CreateIPSet and by ListIPSets.

ChangeToken

[required] The value returned by the most recent call to GetChangeToken.

Request syntax

svc$delete_ip_set(
  IPSetId = "string",
  ChangeToken = "string"
)

Details

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

To permanently delete an IPSet from AWS WAF, perform the following steps:

  1. Update the IPSet to remove IP address ranges, if any. For more information, see UpdateIPSet.

  2. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a DeleteIPSet request.

  3. Submit a DeleteIPSet request.

Examples

Run this code
# NOT RUN {
# The following example deletes an IP match set  with the ID
# example1ds3t-46da-4fdb-b8d5-abc321j569j5.
# }
# NOT RUN {
svc$delete_ip_set(
  ChangeToken = "abcd12f2-46da-4fdb-b8d5-fbd4c466928f",
  IPSetId = "example1ds3t-46da-4fdb-b8d5-abc321j569j5"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace