aws wafv255 CLI commands available for AWS WAF V2.
| Command | API Operation | Sample |
|---|---|---|
associate-web-aclAssociates a web ACL with a resource, to protect the resource. Use this for all resource types except for Amazon CloudFront distributions. For Amazon CloudFront, call UpdateDistribution for the distribution and provide the Amazon Resource Name (ARN) of the web ACL in the web ACL ID. For information | AssociateWebACL | |
check-capacityReturns the web ACL capacity unit (WCU) requirements for a specified scope and set of rules. You can use this to check the capacity requirements for the rules you want to use in a RuleGroup or WebACL. WAF uses WCUs to calculate and control the operating resources that are used to run your rules, ru | CheckCapacity | |
create-api-keyCreates an API key that contains a set of token domains. API keys are required for the integration of the CAPTCHA API in your JavaScript client applications. The API lets you customize the placement and characteristics of the CAPTCHA puzzle for your end users. For more information about the CAPTCHA | CreateAPIKey | |
create-ip-setCreates an IPSet, which you use to identify web requests that originate from specific IP addresses or ranges of IP addresses. For example, if you're receiving a lot of requests from a ranges of IP addresses, you can configure WAF to block them using an IPSet that lists those IP addresses. | CreateIPSet | |
create-regex-pattern-setCreates a RegexPatternSet, which you reference in a RegexPatternSetReferenceStatement, to have WAF inspect a web request component for the specified patterns. | CreateRegexPatternSet | |
create-rule-groupCreates a RuleGroup per the specifications provided. A rule group defines a collection of rules to inspect and control web requests that you can use in a WebACL. When you create a rule group, you define an immutable capacity limit. If you update a rule group, you must stay within the capacity. Thi | CreateRuleGroup | |
create-web-aclCreates a WebACL per the specifications provided. A web ACL defines a collection of rules to use to inspect and control web requests. Each rule has a statement that defines what to look for in web requests and an action that WAF applies to requests that match the statement. In the web ACL, you assi | CreateWebACL | |
delete-api-keyDeletes the specified API key. After you delete a key, it can take up to 24 hours for WAF to disallow use of the key in all regions. | DeleteAPIKey | |
delete-firewall-manager-rule-groupsDeletes all rule groups that are managed by Firewall Manager from the specified WebACL. You can only use this if ManagedByFirewallManager and RetrofittedByFirewallManager are both false in the web ACL. | DeleteFirewallManagerRuleGroups | |
delete-ip-setDeletes the specified IPSet. | DeleteIPSet | |
delete-logging-configurationDeletes the LoggingConfiguration from the specified web ACL. | DeleteLoggingConfiguration | |
delete-permission-policyPermanently deletes an IAM policy from the specified rule group. You must be the owner of the rule group to perform this operation. | DeletePermissionPolicy | |
delete-regex-pattern-setDeletes the specified RegexPatternSet. | DeleteRegexPatternSet | |
delete-rule-groupDeletes the specified RuleGroup. | DeleteRuleGroup | |
delete-web-aclDeletes the specified WebACL. You can only use this if ManagedByFirewallManager is false in the web ACL. Before deleting any web ACL, first disassociate it from all resources. To retrieve a list of the resources that are associated with a web ACL, use the following calls: For Amazon CloudFron | DeleteWebACL | |
describe-all-managed-productsProvides high-level information for the Amazon Web Services Managed Rules rule groups and Amazon Web Services Marketplace managed rule groups. | DescribeAllManagedProducts | |
describe-managed-products-by-vendorProvides high-level information for the managed rule groups owned by a specific vendor. | DescribeManagedProductsByVendor | |
describe-managed-rule-groupProvides high-level information for a managed rule group, including descriptions of the rules. | DescribeManagedRuleGroup | |
disassociate-web-aclDisassociates the specified resource from its web ACL association, if it has one. Use this for all resource types except for Amazon CloudFront distributions. For Amazon CloudFront, call UpdateDistribution for the distribution and provide an empty web ACL ID. For information, see UpdateDistribution | DisassociateWebACL | |
generate-mobile-sdk-release-urlGenerates a presigned download URL for the specified release of the mobile SDK. The mobile SDK is not generally available. Customers who have access to the mobile SDK can use it to establish and manage WAF tokens for use in HTTP(S) requests from a mobile device to WAF. For more information, see WAF | GenerateMobileSdkReleaseUrl | |
get-decrypted-api-keyReturns your API key in decrypted form. Use this to check the token domains that you have defined for the key. API keys are required for the integration of the CAPTCHA API in your JavaScript client applications. The API lets you customize the placement and characteristics of the CAPTCHA puzzle for | GetDecryptedAPIKey | |
get-ip-setRetrieves the specified IPSet. | GetIPSet | |
get-logging-configurationReturns the LoggingConfiguration for the specified web ACL. | GetLoggingConfiguration | |
get-managed-rule-setRetrieves the specified managed rule set. This is intended for use only by vendors of managed rule sets. Vendors are Amazon Web Services and Amazon Web Services Marketplace sellers. Vendors, you can use the managed rule set APIs to provide controlled rollout of your versioned managed rule group o | GetManagedRuleSet | |
get-mobile-sdk-releaseRetrieves information for the specified mobile SDK release, including release notes and tags. The mobile SDK is not generally available. Customers who have access to the mobile SDK can use it to establish and manage WAF tokens for use in HTTP(S) requests from a mobile device to WAF. For more informa | GetMobileSdkRelease | |
get-permission-policyReturns the IAM policy that is attached to the specified rule group. You must be the owner of the rule group to perform this operation. | GetPermissionPolicy | |
get-rate-based-statement-managed-keysRetrieves the IP addresses that are currently blocked by a rate-based rule instance. This is only available for rate-based rules that aggregate solely on the IP address or on the forwarded IP address. The maximum number of addresses that can be blocked for a single rate-based rule instance is 10,00 | GetRateBasedStatementManagedKeys | |
get-regex-pattern-setRetrieves the specified RegexPatternSet. | GetRegexPatternSet | |
get-rule-groupRetrieves the specified RuleGroup. | GetRuleGroup | |
get-sampled-requestsGets detailed information about a specified number of requests--a sample--that WAF randomly selects from among the first 5,000 requests that your Amazon Web Services resource received during a time range that you choose. You can specify a sample size of up to 500 requests, and you can specify any ti | GetSampledRequests | |
get-top-path-statistics-by-trafficRetrieves aggregated statistics about the top URI paths accessed by bot traffic for a specified web ACL and time window. You can use this operation to analyze which paths on your web application receive the most bot traffic and identify the specific bots accessing those paths. The operation supports | GetTopPathStatisticsByTraffic | |
get-web-aclRetrieves the specified WebACL. | GetWebACL | |
get-web-acl-for-resourceRetrieves the WebACL for the specified resource. This call uses GetWebACL, to verify that your account has permission to access the retrieved web ACL. If you get an error that indicates that your account isn't authorized to perform wafv2:GetWebACL on the resource, that error won't be included in yo | GetWebACLForResource | |
list-api-keysRetrieves a list of the API keys that you've defined for the specified scope. API keys are required for the integration of the CAPTCHA API in your JavaScript client applications. The API lets you customize the placement and characteristics of the CAPTCHA puzzle for your end users. For more informat | ListAPIKeys | |
list-available-managed-rule-group-versionsReturns a list of the available versions for the specified managed rule group. | ListAvailableManagedRuleGroupVersions | |
list-available-managed-rule-groupsRetrieves an array of managed rule groups that are available for you to use. This list includes all Amazon Web Services Managed Rules rule groups and all of the Amazon Web Services Marketplace managed rule groups that you're subscribed to. | ListAvailableManagedRuleGroups | |
list-ip-setsRetrieves an array of IPSetSummary objects for the IP sets that you manage. | ListIPSets | |
list-logging-configurationsRetrieves an array of your LoggingConfiguration objects. | ListLoggingConfigurations | |
list-managed-rule-setsRetrieves the managed rule sets that you own. This is intended for use only by vendors of managed rule sets. Vendors are Amazon Web Services and Amazon Web Services Marketplace sellers. Vendors, you can use the managed rule set APIs to provide controlled rollout of your versioned managed rule gro | ListManagedRuleSets | |
list-mobile-sdk-releasesRetrieves a list of the available releases for the mobile SDK and the specified device platform. The mobile SDK is not generally available. Customers who have access to the mobile SDK can use it to establish and manage WAF tokens for use in HTTP(S) requests from a mobile device to WAF. For more inf | ListMobileSdkReleases | |
list-regex-pattern-setsRetrieves an array of RegexPatternSetSummary objects for the regex pattern sets that you manage. | ListRegexPatternSets | |
list-resources-for-web-aclRetrieves an array of the Amazon Resource Names (ARNs) for the resources that are associated with the specified web ACL. For Amazon CloudFront, don't use this call. Instead, use the CloudFront call ListDistributionsByWebACLId. For information, see ListDistributionsByWebACLId in the Amazon CloudFron | ListResourcesForWebACL | |
list-rule-groupsRetrieves an array of RuleGroupSummary objects for the rule groups that you manage. | ListRuleGroups | |
list-tags-for-resourceRetrieves the TagInfoForResource for the specified resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing. For example, you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more tags t | ListTagsForResource | |
list-web-ac-lsRetrieves an array of WebACLSummary objects for the web ACLs that you manage. | ListWebACLs | |
put-logging-configurationEnables the specified LoggingConfiguration, to start logging from a web ACL, according to the configuration provided. If you configure data protection for the web ACL, the protection applies to the data that WAF sends to the logs. This operation completely replaces any mutable specifications that | PutLoggingConfiguration | |
put-managed-rule-set-versionsDefines the versions of your managed rule set that you are offering to the customers. Customers see your offerings as managed rule groups with versioning. This is intended for use only by vendors of managed rule sets. Vendors are Amazon Web Services and Amazon Web Services Marketplace sellers. Ven | PutManagedRuleSetVersions | |
put-permission-policyUse this to share a rule group with other accounts. This action attaches an IAM policy to the specified resource. You must be the owner of the rule group to perform this operation. This action is subject to the following restrictions: You can attach only one policy with each PutPermissionPolicy re | PutPermissionPolicy | |
tag-resourceAssociates tags with the specified Amazon Web Services resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing. For example, you might set the tag key to "customer" and the value to the customer name or ID. You can specify one or more ta | TagResource | |
untag-resourceDisassociates tags from an Amazon Web Services resource. Tags are key:value pairs that you can associate with Amazon Web Services resources. For example, the tag key might be "customer" and the tag value might be "companyA." You can specify one or more tags to add to each container. You can add up t | UntagResource | |
update-ip-setUpdates the specified IPSet. This operation completely replaces the mutable specifications that you already have for the IP set with the ones that you provide to this call. To modify an IP set, do the following: Retrieve it by calling GetIPSet Update its settings as needed Provide the com | UpdateIPSet | |
update-managed-rule-set-version-expiry-dateUpdates the expiration information for your managed rule set. Use this to initiate the expiration of a managed rule group version. After you initiate expiration for a version, WAF excludes it from the response to ListAvailableManagedRuleGroupVersions for the managed rule group. This is intended fo | UpdateManagedRuleSetVersionExpiryDate | |
update-regex-pattern-setUpdates the specified RegexPatternSet. This operation completely replaces the mutable specifications that you already have for the regex pattern set with the ones that you provide to this call. To modify a regex pattern set, do the following: Retrieve it by calling GetRegexPatternSet Update | UpdateRegexPatternSet | |
update-rule-groupUpdates the specified RuleGroup. This operation completely replaces the mutable specifications that you already have for the rule group with the ones that you provide to this call. To modify a rule group, do the following: Retrieve it by calling GetRuleGroup Update its settings as needed P | UpdateRuleGroup | |
update-web-aclUpdates the specified WebACL. While updating a web ACL, WAF provides continuous coverage to the resources that you have associated with the web ACL. This operation completely replaces the mutable specifications that you already have for the web ACL with the ones that you provide to this call. To | UpdateWebACL |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterWAFV2