{
"smithy": "1.0",
"metadata": {
"suppressions": [
{
"id": "HttpMethodSemantics",
"namespace": "*"
},
{
"id": "HttpResponseCodeSemantics",
"namespace": "*"
},
{
"id": "PaginatedTrait",
"namespace": "*"
},
{
"id": "HttpHeaderTrait",
"namespace": "*"
},
{
"id": "HttpUriConflict",
"namespace": "*"
},
{
"id": "Service",
"namespace": "*"
}
]
},
"shapes": {
"com.amazonaws.wafv2#AWSWAF_20190729": {
"type": "service",
"version": "2019-07-29",
"operations": [
{
"target": "com.amazonaws.wafv2#AssociateWebACL"
},
{
"target": "com.amazonaws.wafv2#CheckCapacity"
},
{
"target": "com.amazonaws.wafv2#CreateIPSet"
},
{
"target": "com.amazonaws.wafv2#CreateRegexPatternSet"
},
{
"target": "com.amazonaws.wafv2#CreateRuleGroup"
},
{
"target": "com.amazonaws.wafv2#CreateWebACL"
},
{
"target": "com.amazonaws.wafv2#DeleteFirewallManagerRuleGroups"
},
{
"target": "com.amazonaws.wafv2#DeleteIPSet"
},
{
"target": "com.amazonaws.wafv2#DeleteLoggingConfiguration"
},
{
"target": "com.amazonaws.wafv2#DeletePermissionPolicy"
},
{
"target": "com.amazonaws.wafv2#DeleteRegexPatternSet"
},
{
"target": "com.amazonaws.wafv2#DeleteRuleGroup"
},
{
"target": "com.amazonaws.wafv2#DeleteWebACL"
},
{
"target": "com.amazonaws.wafv2#DescribeManagedRuleGroup"
},
{
"target": "com.amazonaws.wafv2#DisassociateWebACL"
},
{
"target": "com.amazonaws.wafv2#GetIPSet"
},
{
"target": "com.amazonaws.wafv2#GetLoggingConfiguration"
},
{
"target": "com.amazonaws.wafv2#GetPermissionPolicy"
},
{
"target": "com.amazonaws.wafv2#GetRateBasedStatementManagedKeys"
},
{
"target": "com.amazonaws.wafv2#GetRegexPatternSet"
},
{
"target": "com.amazonaws.wafv2#GetRuleGroup"
},
{
"target": "com.amazonaws.wafv2#GetSampledRequests"
},
{
"target": "com.amazonaws.wafv2#GetWebACL"
},
{
"target": "com.amazonaws.wafv2#GetWebACLForResource"
},
{
"target": "com.amazonaws.wafv2#ListAvailableManagedRuleGroups"
},
{
"target": "com.amazonaws.wafv2#ListIPSets"
},
{
"target": "com.amazonaws.wafv2#ListLoggingConfigurations"
},
{
"target": "com.amazonaws.wafv2#ListRegexPatternSets"
},
{
"target": "com.amazonaws.wafv2#ListResourcesForWebACL"
},
{
"target": "com.amazonaws.wafv2#ListRuleGroups"
},
{
"target": "com.amazonaws.wafv2#ListTagsForResource"
},
{
"target": "com.amazonaws.wafv2#ListWebACLs"
},
{
"target": "com.amazonaws.wafv2#PutLoggingConfiguration"
},
{
"target": "com.amazonaws.wafv2#PutPermissionPolicy"
},
{
"target": "com.amazonaws.wafv2#TagResource"
},
{
"target": "com.amazonaws.wafv2#UntagResource"
},
{
"target": "com.amazonaws.wafv2#UpdateIPSet"
},
{
"target": "com.amazonaws.wafv2#UpdateRegexPatternSet"
},
{
"target": "com.amazonaws.wafv2#UpdateRuleGroup"
},
{
"target": "com.amazonaws.wafv2#UpdateWebACL"
}
],
"traits": {
"aws.api#service": {
"sdkId": "WAFV2",
"arnNamespace": "wafv2",
"cloudFormationName": "WAFv2",
"cloudTrailEventSource": "wafv2.amazonaws.com",
"endpointPrefix": "wafv2"
},
"aws.auth#sigv4": {
"name": "wafv2"
},
"aws.protocols#awsJson1_1": {},
"smithy.api#documentation": " This is the latest version of the AWS WAF API, released in\n November, 2019. The names of the entities that you use to access this API, like\n endpoints and namespaces, all have the versioning information added, like \"V2\" or \"v2\",\n to distinguish from the prior version. We recommend migrating your resources to this\n version, because it has a number of significant improvements. If you used AWS WAF prior to this release, you can't use this AWS WAFV2 API to access\n any AWS WAF resources that you created before. You can access your old rules, web ACLs,\n and other AWS WAF resources only through the AWS WAF Classic APIs. The AWS WAF Classic\n APIs have retained the prior names, endpoints, and namespaces. For information, including how to migrate your AWS WAF resources to this version, see the AWS WAF\n Developer Guide.
AWS WAF is a web application firewall that lets you monitor the HTTP and HTTPS requests\n that are forwarded to Amazon CloudFront, an Amazon API Gateway REST API, an Application Load\n Balancer, or an AWS AppSync GraphQL API. AWS WAF also lets you control access to your content. Based on conditions that\n you specify, such as the IP addresses that requests originate from or the values of query\n strings, the API Gateway REST API, CloudFront distribution, the Application Load Balancer, \n or the AWS AppSync GraphQL API responds to requests\n either with the requested content or with an HTTP 403 status code (Forbidden). You also can\n configure CloudFront to return a custom error page when a request is blocked.
\nThis API guide is for developers who need detailed information about AWS WAF API\n actions, data types, and errors. For detailed information about AWS WAF features and an\n overview of how to use AWS WAF, see the AWS WAF Developer Guide.
\nYou can make calls using the endpoints listed in AWS Service Endpoints for AWS WAF.
\nFor regional applications, you can use any of the endpoints in the list.\n A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nFor AWS CloudFront applications, you must use the API endpoint listed for\n US East (N. Virginia): us-east-1.
\nAlternatively, you can use one of the AWS SDKs to access an API that's tailored to the\n programming language or platform that you're using. For more information, see AWS SDKs.
\nWe currently provide two versions of the AWS WAF API: this API and the prior versions,\n the classic AWS WAF APIs. This new API provides the same functionality as the older\n versions, with the following major improvements:
\nYou use one API for both global and regional applications. Where you need to\n distinguish the scope, you specify a Scope
parameter and set it to\n CLOUDFRONT
or REGIONAL
.
You can define a Web ACL or rule group with a single call, and update it with a\n single call. You define all rule specifications in JSON format, and pass them to your\n rule group or Web ACL calls.
\nThe limits AWS WAF places on the use of rules more closely reflects the cost of\n running each type of rule. Rule groups include capacity settings, so you know the\n maximum cost of a rule group when you use it.
\nThe action setting that a log record must contain in order to meet the condition.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A single action condition for a Condition in a logging filter.
" } }, "com.amazonaws.wafv2#ActionValue": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ALLOW", "name": "ALLOW" }, { "value": "BLOCK", "name": "BLOCK" }, { "value": "COUNT", "name": "COUNT" } ] } }, "com.amazonaws.wafv2#All": { "type": "structure", "members": {}, "traits": { "smithy.api#documentation": "Inspect all of the elements that AWS WAF has parsed and extracted from the web request JSON body that are within the JsonBody \n MatchScope
. This is used with the FieldToMatch option JsonBody
.
This is used only to indicate the web request component for AWS WAF to inspect, in the FieldToMatch specification.
" } }, "com.amazonaws.wafv2#AllQueryArguments": { "type": "structure", "members": {}, "traits": { "smithy.api#documentation": "All query arguments of a web request.
\nThis is used only to indicate the web request component for AWS WAF to inspect, in the FieldToMatch specification.
" } }, "com.amazonaws.wafv2#AllowAction": { "type": "structure", "members": { "CustomRequestHandling": { "target": "com.amazonaws.wafv2#CustomRequestHandling", "traits": { "smithy.api#documentation": "Defines custom handling for the web request.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
" } } }, "traits": { "smithy.api#documentation": "Specifies that AWS WAF should allow the request and optionally defines additional custom handling for the request.
\nThis is used in the context of other settings, for example to specify values for RuleAction and web ACL DefaultAction.
" } }, "com.amazonaws.wafv2#AndStatement": { "type": "structure", "members": { "Statements": { "target": "com.amazonaws.wafv2#Statements", "traits": { "smithy.api#documentation": "The statements to combine with AND logic. You can use any statements that can be nested.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A logical rule statement used to combine other rule statements with AND logic. You provide more than one Statement within the AndStatement
.
Associates a Web ACL with a regional application resource, to protect the resource. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nFor AWS CloudFront, don't use this call. Instead, use your CloudFront distribution configuration. To associate a Web ACL, in the CloudFront call UpdateDistribution
, set the web ACL ID to the Amazon Resource Name (ARN) of the Web ACL. For information, see UpdateDistribution.
The Amazon Resource Name (ARN) of the Web ACL that you want to associate with the resource.
", "smithy.api#required": {} } }, "ResourceArn": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource to associate with the web ACL.
\n \nThe ARN must be in one of the following formats:
\nFor an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id\n
\n
For an API Gateway REST API: arn:aws:apigateway:region::/restapis/api-id/stages/stage-name\n
\n
For an AppSync GraphQL API: arn:aws:appsync:region:account-id:apis/GraphQLApiId\n
\n
Defines a custom response for the web request.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
" } } }, "traits": { "smithy.api#documentation": "Specifies that AWS WAF should block the request and optionally defines additional custom handling for the response to the web request.
\nThis is used in the context of other settings, for example to specify values for RuleAction and web ACL DefaultAction.
" } }, "com.amazonaws.wafv2#Body": { "type": "structure", "members": {}, "traits": { "smithy.api#documentation": "The body of a web request. This immediately follows the request headers.
\nThis is used only to indicate the web request component for AWS WAF to inspect, in the FieldToMatch specification.
" } }, "com.amazonaws.wafv2#BodyParsingFallbackBehavior": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "MATCH", "name": "MATCH" }, { "value": "NO_MATCH", "name": "NO_MATCH" }, { "value": "EVALUATE_AS_STRING", "name": "EVALUATE_AS_STRING" } ] } }, "com.amazonaws.wafv2#Boolean": { "type": "boolean" }, "com.amazonaws.wafv2#ByteMatchStatement": { "type": "structure", "members": { "SearchString": { "target": "com.amazonaws.wafv2#SearchString", "traits": { "smithy.api#documentation": "A string value that you want AWS WAF to search for. AWS WAF searches only in the part of web requests that you designate for inspection in FieldToMatch. The maximum length of the value is 50 bytes.
\nValid values depend on the component that you specify for inspection in FieldToMatch
:
\n Method
: The HTTP method that you want AWS WAF to search for. This indicates the type of operation specified in the request.
\n UriPath
: The value that you want AWS WAF to search for in the URI path,\n for example, /images/daily-ad.jpg
.
If SearchString
includes alphabetic characters A-Z and a-z, note that the value is case sensitive.
\n If you're using the AWS WAF API\n
\nSpecify a base64-encoded version of the value. The maximum length of the value before you base64-encode it is 50 bytes.
\nFor example, suppose the value of Type
is HEADER
and the\n value of Data
is User-Agent
. If you want to search the\n User-Agent
header for the value BadBot
, you base64-encode\n BadBot
using MIME\n base64-encoding\n and include the resulting value, QmFkQm90
, in the value of\n SearchString
.
\n If you're using the AWS CLI or one of the AWS SDKs\n
\nThe value that you want AWS WAF to search for. The SDK automatically base64 encodes the value.
", "smithy.api#required": {} } }, "FieldToMatch": { "target": "com.amazonaws.wafv2#FieldToMatch", "traits": { "smithy.api#documentation": "The part of a web request that you want AWS WAF to inspect. For more information, see FieldToMatch.
", "smithy.api#required": {} } }, "TextTransformations": { "target": "com.amazonaws.wafv2#TextTransformations", "traits": { "smithy.api#documentation": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. \n If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the \n content of the request component identified by FieldToMatch
, starting from the lowest priority setting, before inspecting the content for a match.
The area within the portion of a web request that you want AWS WAF to search for SearchString
. Valid values include the following:
\n CONTAINS\n
\nThe specified part of the web request must include the value of SearchString
, but the location doesn't matter.
\n CONTAINS_WORD\n
\nThe specified part of the web request must include the value of SearchString
, and \n SearchString
must contain only alphanumeric characters or underscore (A-Z, a-z, 0-9, or _). In addition, \n SearchString
must be a word, which means that both of the following are true:
\n SearchString
is at the beginning of the specified part of the web request or is \n preceded by a character other than an alphanumeric character or underscore (_). \n Examples include the value of a header and ;BadBot
.
\n SearchString
is at the end of the specified part of the web request or is \n followed by a character other than an alphanumeric character or underscore (_), for example,\n BadBot;
and -BadBot;
.
\n EXACTLY\n
\nThe value of the specified part of the web request must exactly match the value of SearchString
.
\n STARTS_WITH\n
\nThe value of SearchString
must appear at the beginning of the specified part of the web request.
\n ENDS_WITH\n
\nThe value of SearchString
must appear at the end of the specified part of the web request.
A rule statement that defines a string match search for AWS WAF to apply to web requests. The byte match statement provides the bytes to search for, the location in requests that you want AWS WAF to search, and other settings. The bytes to search for are typically a string that corresponds with ASCII characters. In the AWS WAF console and the developer guide, this is refered to as a string match statement.
" } }, "com.amazonaws.wafv2#CapacityUnit": { "type": "long", "traits": { "smithy.api#range": { "min": 1 } } }, "com.amazonaws.wafv2#CheckCapacity": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#CheckCapacityRequest" }, "output": { "target": "com.amazonaws.wafv2#CheckCapacityResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFInvalidResourceException" }, { "target": "com.amazonaws.wafv2#WAFLimitsExceededException" }, { "target": "com.amazonaws.wafv2#WAFNonexistentItemException" }, { "target": "com.amazonaws.wafv2#WAFSubscriptionNotFoundException" }, { "target": "com.amazonaws.wafv2#WAFUnavailableEntityException" } ], "traits": { "smithy.api#documentation": "Returns the web ACL capacity unit (WCU) requirements for a specified scope and set of rules. \n You can use this to check the capacity requirements for the rules you want to use in a \n RuleGroup or WebACL. \n
\nAWS WAF uses WCUs to calculate and control the operating\n resources that are used to run your rules, rule groups, and web ACLs. AWS WAF\n calculates capacity differently for each rule type, to reflect the relative cost of each rule. \n Simple rules that cost little to run use fewer WCUs than more complex rules\n\t\t\t\tthat use more processing power. \n\t\t\t\tRule group capacity is fixed at creation, which helps users plan their \n web ACL WCU usage when they use a rule group. \n The WCU limit for web ACLs is 1,500.
" } }, "com.amazonaws.wafv2#CheckCapacityRequest": { "type": "structure", "members": { "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nAn array of Rule that you're configuring to use in a rule group or web ACL.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#CheckCapacityResponse": { "type": "structure", "members": { "Capacity": { "target": "com.amazonaws.wafv2#ConsumedCapacity", "traits": { "smithy.api#documentation": "The capacity required by the rules and scope.
" } } } }, "com.amazonaws.wafv2#ComparisonOperator": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "EQ", "name": "EQ" }, { "value": "NE", "name": "NE" }, { "value": "LE", "name": "LE" }, { "value": "LT", "name": "LT" }, { "value": "GE", "name": "GE" }, { "value": "GT", "name": "GT" } ] } }, "com.amazonaws.wafv2#Condition": { "type": "structure", "members": { "ActionCondition": { "target": "com.amazonaws.wafv2#ActionCondition", "traits": { "smithy.api#documentation": "A single action condition.
" } }, "LabelNameCondition": { "target": "com.amazonaws.wafv2#LabelNameCondition", "traits": { "smithy.api#documentation": "A single label name condition.
" } } }, "traits": { "smithy.api#documentation": "A single match condition for a Filter.
" } }, "com.amazonaws.wafv2#Conditions": { "type": "list", "member": { "target": "com.amazonaws.wafv2#Condition" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.wafv2#ConsumedCapacity": { "type": "long", "traits": { "smithy.api#range": { "min": 0 } } }, "com.amazonaws.wafv2#CountAction": { "type": "structure", "members": { "CustomRequestHandling": { "target": "com.amazonaws.wafv2#CustomRequestHandling", "traits": { "smithy.api#documentation": "Defines custom handling for the web request.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
" } } }, "traits": { "smithy.api#documentation": "Specifies that AWS WAF should count the request. Optionally defines additional custom handling for the request.
\nThis is used in the context of other settings, for example to specify values for RuleAction and web ACL DefaultAction.
" } }, "com.amazonaws.wafv2#Country": { "type": "string" }, "com.amazonaws.wafv2#CountryCode": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "AF", "name": "AF" }, { "value": "AX", "name": "AX" }, { "value": "AL", "name": "AL" }, { "value": "DZ", "name": "DZ" }, { "value": "AS", "name": "AS" }, { "value": "AD", "name": "AD" }, { "value": "AO", "name": "AO" }, { "value": "AI", "name": "AI" }, { "value": "AQ", "name": "AQ" }, { "value": "AG", "name": "AG" }, { "value": "AR", "name": "AR" }, { "value": "AM", "name": "AM" }, { "value": "AW", "name": "AW" }, { "value": "AU", "name": "AU" }, { "value": "AT", "name": "AT" }, { "value": "AZ", "name": "AZ" }, { "value": "BS", "name": "BS" }, { "value": "BH", "name": "BH" }, { "value": "BD", "name": "BD" }, { "value": "BB", "name": "BB" }, { "value": "BY", "name": "BY" }, { "value": "BE", "name": "BE" }, { "value": "BZ", "name": "BZ" }, { "value": "BJ", "name": "BJ" }, { "value": "BM", "name": "BM" }, { "value": "BT", "name": "BT" }, { "value": "BO", "name": "BO" }, { "value": "BQ", "name": "BQ" }, { "value": "BA", "name": "BA" }, { "value": "BW", "name": "BW" }, { "value": "BV", "name": "BV" }, { "value": "BR", "name": "BR" }, { "value": "IO", "name": "IO" }, { "value": "BN", "name": "BN" }, { "value": "BG", "name": "BG" }, { "value": "BF", "name": "BF" }, { "value": "BI", "name": "BI" }, { "value": "KH", "name": "KH" }, { "value": "CM", "name": "CM" }, { "value": "CA", "name": "CA" }, { "value": "CV", "name": "CV" }, { "value": "KY", "name": "KY" }, { "value": "CF", "name": "CF" }, { "value": "TD", "name": "TD" }, { "value": "CL", "name": "CL" }, { "value": "CN", "name": "CN" }, { "value": "CX", "name": "CX" }, { "value": "CC", "name": "CC" }, { "value": "CO", "name": "CO" }, { "value": "KM", "name": "KM" }, { "value": "CG", "name": "CG" }, { "value": "CD", "name": "CD" }, { "value": "CK", "name": "CK" }, { "value": "CR", "name": "CR" }, { "value": "CI", "name": "CI" }, { "value": "HR", "name": "HR" }, { "value": "CU", "name": "CU" }, { "value": "CW", "name": "CW" }, { "value": "CY", "name": "CY" }, { "value": "CZ", "name": "CZ" }, { "value": "DK", "name": "DK" }, { "value": "DJ", "name": "DJ" }, { "value": "DM", "name": "DM" }, { "value": "DO", "name": "DO" }, { "value": "EC", "name": "EC" }, { "value": "EG", "name": "EG" }, { "value": "SV", "name": "SV" }, { "value": "GQ", "name": "GQ" }, { "value": "ER", "name": "ER" }, { "value": "EE", "name": "EE" }, { "value": "ET", "name": "ET" }, { "value": "FK", "name": "FK" }, { "value": "FO", "name": "FO" }, { "value": "FJ", "name": "FJ" }, { "value": "FI", "name": "FI" }, { "value": "FR", "name": "FR" }, { "value": "GF", "name": "GF" }, { "value": "PF", "name": "PF" }, { "value": "TF", "name": "TF" }, { "value": "GA", "name": "GA" }, { "value": "GM", "name": "GM" }, { "value": "GE", "name": "GE" }, { "value": "DE", "name": "DE" }, { "value": "GH", "name": "GH" }, { "value": "GI", "name": "GI" }, { "value": "GR", "name": "GR" }, { "value": "GL", "name": "GL" }, { "value": "GD", "name": "GD" }, { "value": "GP", "name": "GP" }, { "value": "GU", "name": "GU" }, { "value": "GT", "name": "GT" }, { "value": "GG", "name": "GG" }, { "value": "GN", "name": "GN" }, { "value": "GW", "name": "GW" }, { "value": "GY", "name": "GY" }, { "value": "HT", "name": "HT" }, { "value": "HM", "name": "HM" }, { "value": "VA", "name": "VA" }, { "value": "HN", "name": "HN" }, { "value": "HK", "name": "HK" }, { "value": "HU", "name": "HU" }, { "value": "IS", "name": "IS" }, { "value": "IN", "name": "IN" }, { "value": "ID", "name": "ID" }, { "value": "IR", "name": "IR" }, { "value": "IQ", "name": "IQ" }, { "value": "IE", "name": "IE" }, { "value": "IM", "name": "IM" }, { "value": "IL", "name": "IL" }, { "value": "IT", "name": "IT" }, { "value": "JM", "name": "JM" }, { "value": "JP", "name": "JP" }, { "value": "JE", "name": "JE" }, { "value": "JO", "name": "JO" }, { "value": "KZ", "name": "KZ" }, { "value": "KE", "name": "KE" }, { "value": "KI", "name": "KI" }, { "value": "KP", "name": "KP" }, { "value": "KR", "name": "KR" }, { "value": "KW", "name": "KW" }, { "value": "KG", "name": "KG" }, { "value": "LA", "name": "LA" }, { "value": "LV", "name": "LV" }, { "value": "LB", "name": "LB" }, { "value": "LS", "name": "LS" }, { "value": "LR", "name": "LR" }, { "value": "LY", "name": "LY" }, { "value": "LI", "name": "LI" }, { "value": "LT", "name": "LT" }, { "value": "LU", "name": "LU" }, { "value": "MO", "name": "MO" }, { "value": "MK", "name": "MK" }, { "value": "MG", "name": "MG" }, { "value": "MW", "name": "MW" }, { "value": "MY", "name": "MY" }, { "value": "MV", "name": "MV" }, { "value": "ML", "name": "ML" }, { "value": "MT", "name": "MT" }, { "value": "MH", "name": "MH" }, { "value": "MQ", "name": "MQ" }, { "value": "MR", "name": "MR" }, { "value": "MU", "name": "MU" }, { "value": "YT", "name": "YT" }, { "value": "MX", "name": "MX" }, { "value": "FM", "name": "FM" }, { "value": "MD", "name": "MD" }, { "value": "MC", "name": "MC" }, { "value": "MN", "name": "MN" }, { "value": "ME", "name": "ME" }, { "value": "MS", "name": "MS" }, { "value": "MA", "name": "MA" }, { "value": "MZ", "name": "MZ" }, { "value": "MM", "name": "MM" }, { "value": "NA", "name": "NA" }, { "value": "NR", "name": "NR" }, { "value": "NP", "name": "NP" }, { "value": "NL", "name": "NL" }, { "value": "NC", "name": "NC" }, { "value": "NZ", "name": "NZ" }, { "value": "NI", "name": "NI" }, { "value": "NE", "name": "NE" }, { "value": "NG", "name": "NG" }, { "value": "NU", "name": "NU" }, { "value": "NF", "name": "NF" }, { "value": "MP", "name": "MP" }, { "value": "NO", "name": "NO" }, { "value": "OM", "name": "OM" }, { "value": "PK", "name": "PK" }, { "value": "PW", "name": "PW" }, { "value": "PS", "name": "PS" }, { "value": "PA", "name": "PA" }, { "value": "PG", "name": "PG" }, { "value": "PY", "name": "PY" }, { "value": "PE", "name": "PE" }, { "value": "PH", "name": "PH" }, { "value": "PN", "name": "PN" }, { "value": "PL", "name": "PL" }, { "value": "PT", "name": "PT" }, { "value": "PR", "name": "PR" }, { "value": "QA", "name": "QA" }, { "value": "RE", "name": "RE" }, { "value": "RO", "name": "RO" }, { "value": "RU", "name": "RU" }, { "value": "RW", "name": "RW" }, { "value": "BL", "name": "BL" }, { "value": "SH", "name": "SH" }, { "value": "KN", "name": "KN" }, { "value": "LC", "name": "LC" }, { "value": "MF", "name": "MF" }, { "value": "PM", "name": "PM" }, { "value": "VC", "name": "VC" }, { "value": "WS", "name": "WS" }, { "value": "SM", "name": "SM" }, { "value": "ST", "name": "ST" }, { "value": "SA", "name": "SA" }, { "value": "SN", "name": "SN" }, { "value": "RS", "name": "RS" }, { "value": "SC", "name": "SC" }, { "value": "SL", "name": "SL" }, { "value": "SG", "name": "SG" }, { "value": "SX", "name": "SX" }, { "value": "SK", "name": "SK" }, { "value": "SI", "name": "SI" }, { "value": "SB", "name": "SB" }, { "value": "SO", "name": "SO" }, { "value": "ZA", "name": "ZA" }, { "value": "GS", "name": "GS" }, { "value": "SS", "name": "SS" }, { "value": "ES", "name": "ES" }, { "value": "LK", "name": "LK" }, { "value": "SD", "name": "SD" }, { "value": "SR", "name": "SR" }, { "value": "SJ", "name": "SJ" }, { "value": "SZ", "name": "SZ" }, { "value": "SE", "name": "SE" }, { "value": "CH", "name": "CH" }, { "value": "SY", "name": "SY" }, { "value": "TW", "name": "TW" }, { "value": "TJ", "name": "TJ" }, { "value": "TZ", "name": "TZ" }, { "value": "TH", "name": "TH" }, { "value": "TL", "name": "TL" }, { "value": "TG", "name": "TG" }, { "value": "TK", "name": "TK" }, { "value": "TO", "name": "TO" }, { "value": "TT", "name": "TT" }, { "value": "TN", "name": "TN" }, { "value": "TR", "name": "TR" }, { "value": "TM", "name": "TM" }, { "value": "TC", "name": "TC" }, { "value": "TV", "name": "TV" }, { "value": "UG", "name": "UG" }, { "value": "UA", "name": "UA" }, { "value": "AE", "name": "AE" }, { "value": "GB", "name": "GB" }, { "value": "US", "name": "US" }, { "value": "UM", "name": "UM" }, { "value": "UY", "name": "UY" }, { "value": "UZ", "name": "UZ" }, { "value": "VU", "name": "VU" }, { "value": "VE", "name": "VE" }, { "value": "VN", "name": "VN" }, { "value": "VG", "name": "VG" }, { "value": "VI", "name": "VI" }, { "value": "WF", "name": "WF" }, { "value": "EH", "name": "EH" }, { "value": "YE", "name": "YE" }, { "value": "ZM", "name": "ZM" }, { "value": "ZW", "name": "ZW" } ] } }, "com.amazonaws.wafv2#CountryCodes": { "type": "list", "member": { "target": "com.amazonaws.wafv2#CountryCode" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.wafv2#CreateIPSet": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#CreateIPSetRequest" }, "output": { "target": "com.amazonaws.wafv2#CreateIPSetResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFDuplicateItemException" }, { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidOperationException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFLimitsExceededException" }, { "target": "com.amazonaws.wafv2#WAFOptimisticLockException" }, { "target": "com.amazonaws.wafv2#WAFTagOperationException" }, { "target": "com.amazonaws.wafv2#WAFTagOperationInternalErrorException" } ], "traits": { "smithy.api#documentation": "Creates 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 AWS WAF to block them using an IPSet that lists those IP addresses.
" } }, "com.amazonaws.wafv2#CreateIPSetRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the IP set. You cannot change the name of an IPSet
after you create it.
Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA description of the IP set that helps with identification.
" } }, "IPAddressVersion": { "target": "com.amazonaws.wafv2#IPAddressVersion", "traits": { "smithy.api#documentation": "Specify IPV4 or IPV6.
", "smithy.api#required": {} } }, "Addresses": { "target": "com.amazonaws.wafv2#IPAddresses", "traits": { "smithy.api#documentation": "Contains an array of strings that specify one or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all IPv4 and IPv6 CIDR ranges except for /0.
\nExamples:
\nTo configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32
.
To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify \n 192.0.2.0/24
.
To configure AWS WAF to allow, block, or count requests that originated from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128
.
To configure AWS WAF to allow, block, or count requests that originated from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify 1111:0000:0000:0000:0000:0000:0000:0000/64
.
For more information about CIDR notation, see the Wikipedia entry Classless\n Inter-Domain Routing.
", "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.wafv2#TagList", "traits": { "smithy.api#documentation": "An array of key:value pairs to associate with the resource.
" } } } }, "com.amazonaws.wafv2#CreateIPSetResponse": { "type": "structure", "members": { "Summary": { "target": "com.amazonaws.wafv2#IPSetSummary", "traits": { "smithy.api#documentation": "High-level information about an IPSet, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage an IPSet
, and the ARN, that you provide to the IPSetReferenceStatement to use the address set in a Rule.
Creates a RegexPatternSet, which you reference in a RegexPatternSetReferenceStatement, to have AWS WAF inspect a web request component for the specified patterns.
" } }, "com.amazonaws.wafv2#CreateRegexPatternSetRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the set. You cannot change the name after you create the set.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA description of the set that helps with identification.
" } }, "RegularExpressionList": { "target": "com.amazonaws.wafv2#RegularExpressionList", "traits": { "smithy.api#documentation": "Array of regular expression strings.
", "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.wafv2#TagList", "traits": { "smithy.api#documentation": "An array of key:value pairs to associate with the resource.
" } } } }, "com.amazonaws.wafv2#CreateRegexPatternSetResponse": { "type": "structure", "members": { "Summary": { "target": "com.amazonaws.wafv2#RegexPatternSetSummary", "traits": { "smithy.api#documentation": "High-level information about a RegexPatternSet, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage a RegexPatternSet
, and the ARN, that you provide to the RegexPatternSetReferenceStatement to use the pattern set in a Rule.
Creates a RuleGroup per the specifications provided.
\nA 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. This allows others to reuse the rule group with confidence in its capacity requirements.
" } }, "com.amazonaws.wafv2#CreateRuleGroupRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the rule group. You cannot change the name of a rule group after you create it.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nThe web ACL capacity units (WCUs) required for this rule group.
\nWhen you create your own rule group, you define this, and you cannot change it after creation. \n When you add or modify the rules in a rule group, AWS WAF enforces this limit. You can check the capacity \n for a set of rules using CheckCapacity.
\nAWS WAF uses WCUs to calculate and control the operating\n resources that are used to run your rules, rule groups, and web ACLs. AWS WAF\n calculates capacity differently for each rule type, to reflect the relative cost of each rule. \n Simple rules that cost little to run use fewer WCUs than more complex rules\n\t\t\t\tthat use more processing power. \n\t\t\t\tRule group capacity is fixed at creation, which helps users plan their \n web ACL WCU usage when they use a rule group. \n The WCU limit for web ACLs is 1,500.
", "smithy.api#required": {} } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the rule group that helps with identification.
" } }, "Rules": { "target": "com.amazonaws.wafv2#Rules", "traits": { "smithy.api#documentation": "The Rule statements used to identify the web requests that you \n want to allow, block, or count. Each rule includes one top-level statement that AWS WAF uses to identify matching \n web requests, and parameters that govern how AWS WAF handles them. \n
" } }, "VisibilityConfig": { "target": "com.amazonaws.wafv2#VisibilityConfig", "traits": { "smithy.api#documentation": "Defines and enables Amazon CloudWatch metrics and web request sample collection.
", "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.wafv2#TagList", "traits": { "smithy.api#documentation": "An array of key:value pairs to associate with the resource.
" } }, "CustomResponseBodies": { "target": "com.amazonaws.wafv2#CustomResponseBodies", "traits": { "smithy.api#documentation": "A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
\nFor information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the \n AWS WAF Developer Guide.
" } } } }, "com.amazonaws.wafv2#CreateRuleGroupResponse": { "type": "structure", "members": { "Summary": { "target": "com.amazonaws.wafv2#RuleGroupSummary", "traits": { "smithy.api#documentation": "High-level information about a RuleGroup, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage a RuleGroup
, and the ARN, that you provide to the RuleGroupReferenceStatement to use the rule group in a Rule.
Creates a WebACL per the specifications provided.
\nA Web ACL defines a collection of rules to use to inspect and control web requests. Each rule has an action defined (allow, block, or count) for requests that match the statement of the rule. In the Web ACL, you assign a default action to take (allow, block) for any request that does not match any of the rules. The rules in a Web ACL can be a combination of the types Rule, RuleGroup, and managed rule group. You can associate a Web ACL with one or more AWS resources to protect. The resources can be Amazon CloudFront, an Amazon API Gateway REST API, an Application Load Balancer, or an AWS AppSync GraphQL API.
" } }, "com.amazonaws.wafv2#CreateWebACLRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the Web ACL. You cannot change the name of a Web ACL after you create it.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nThe action to perform if none of the Rules
contained in the WebACL
match.
A description of the Web ACL that helps with identification.
" } }, "Rules": { "target": "com.amazonaws.wafv2#Rules", "traits": { "smithy.api#documentation": "The Rule statements used to identify the web requests that you \n want to allow, block, or count. Each rule includes one top-level statement that AWS WAF uses to identify matching \n web requests, and parameters that govern how AWS WAF handles them. \n
" } }, "VisibilityConfig": { "target": "com.amazonaws.wafv2#VisibilityConfig", "traits": { "smithy.api#documentation": "Defines and enables Amazon CloudWatch metrics and web request sample collection.
", "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.wafv2#TagList", "traits": { "smithy.api#documentation": "An array of key:value pairs to associate with the resource.
" } }, "CustomResponseBodies": { "target": "com.amazonaws.wafv2#CustomResponseBodies", "traits": { "smithy.api#documentation": "A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the web ACL, and then use them in the rules and default actions that you define in the web ACL.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
\nFor information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the \n AWS WAF Developer Guide.
" } } } }, "com.amazonaws.wafv2#CreateWebACLResponse": { "type": "structure", "members": { "Summary": { "target": "com.amazonaws.wafv2#WebACLSummary", "traits": { "smithy.api#documentation": "High-level information about a WebACL, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage a WebACL
, and the ARN, that you provide to operations like AssociateWebACL.
The name of the custom header.
\nFor custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name x-amzn-waf-
, to avoid confusion with the headers that are already in the request. For example, for the header name sample
, AWS WAF inserts the header x-amzn-waf-sample
.
The value of the custom header.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A custom header for custom request and response handling. This is used in CustomResponse and CustomRequestHandling.
" } }, "com.amazonaws.wafv2#CustomHTTPHeaderName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 64 }, "smithy.api#pattern": "^[a-zA-Z0-9._$-]+$" } }, "com.amazonaws.wafv2#CustomHTTPHeaderValue": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, "smithy.api#pattern": ".*" } }, "com.amazonaws.wafv2#CustomHTTPHeaders": { "type": "list", "member": { "target": "com.amazonaws.wafv2#CustomHTTPHeader" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.wafv2#CustomRequestHandling": { "type": "structure", "members": { "InsertHeaders": { "target": "com.amazonaws.wafv2#CustomHTTPHeaders", "traits": { "smithy.api#documentation": "The HTTP headers to insert into the request. Duplicate header names are not allowed.
\nFor information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the \n AWS WAF Developer Guide.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Custom request handling behavior that inserts custom headers into a web request. You can add custom request handling for the rule actions allow and count.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
" } }, "com.amazonaws.wafv2#CustomResponse": { "type": "structure", "members": { "ResponseCode": { "target": "com.amazonaws.wafv2#ResponseStatusCode", "traits": { "smithy.api#documentation": "The HTTP status code to return to the client.
\nFor a list of status codes that you can use in your custom reqponses, see Supported status codes for custom response in the \n AWS WAF Developer Guide.
", "smithy.api#required": {} } }, "CustomResponseBodyKey": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "References the response body that you want AWS WAF to return to the web request client. You can define a custom response for a rule action or a default web ACL action that is set to block. To do this, you first \n define the response body key and value in the CustomResponseBodies
setting for the WebACL or RuleGroup where you want to use it. Then, in the rule action or web ACL default action BlockAction
setting, you reference\n the response body using this key.
The HTTP headers to use in the response. Duplicate header names are not allowed.
\nFor information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the \n AWS WAF Developer Guide.
" } } }, "traits": { "smithy.api#documentation": "A custom response to send to the client. You can define a custom response for rule actions and default web ACL actions that are set to BlockAction.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
" } }, "com.amazonaws.wafv2#CustomResponseBodies": { "type": "map", "key": { "target": "com.amazonaws.wafv2#EntityName" }, "value": { "target": "com.amazonaws.wafv2#CustomResponseBody" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.wafv2#CustomResponseBody": { "type": "structure", "members": { "ContentType": { "target": "com.amazonaws.wafv2#ResponseContentType", "traits": { "smithy.api#documentation": "The type of content in the payload that you are defining in the Content
string.
The payload of the custom response.
\nYou can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType
setting.
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the \n AWS WAF Developer Guide.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "The response body to use in a custom response to a web request. This is referenced by key from CustomResponse \n CustomResponseBodyKey
.
Specifies that AWS WAF should block requests by default.
" } }, "Allow": { "target": "com.amazonaws.wafv2#AllowAction", "traits": { "smithy.api#documentation": "Specifies that AWS WAF should allow requests by default.
" } } }, "traits": { "smithy.api#documentation": "In a WebACL, this is the action that you want AWS WAF \n to perform when a web request doesn't match any of the rules in the WebACL
. The default action must be a terminating action, so you can't use count.
Deletes all rule groups that are managed by AWS Firewall Manager for the specified web ACL.
\nYou can only use this if ManagedByFirewallManager
is false in the specified WebACL.
The Amazon Resource Name (ARN) of the web ACL.
", "smithy.api#required": {} } }, "WebACLLockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
Deletes the specified IPSet.
" } }, "com.amazonaws.wafv2#DeleteIPSetRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the IP set. You cannot change the name of an IPSet
after you create it.
Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
Deletes the LoggingConfiguration from the specified web\n ACL.
" } }, "com.amazonaws.wafv2#DeleteLoggingConfigurationRequest": { "type": "structure", "members": { "ResourceArn": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the web ACL from which you want to delete the LoggingConfiguration.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#DeleteLoggingConfigurationResponse": { "type": "structure", "members": {} }, "com.amazonaws.wafv2#DeletePermissionPolicy": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#DeletePermissionPolicyRequest" }, "output": { "target": "com.amazonaws.wafv2#DeletePermissionPolicyResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFNonexistentItemException" } ], "traits": { "smithy.api#documentation": "Permanently deletes an IAM policy from the specified rule group.
\nYou must be the owner of the rule group to perform this operation.
" } }, "com.amazonaws.wafv2#DeletePermissionPolicyRequest": { "type": "structure", "members": { "ResourceArn": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the rule group from which you want to delete the policy.
\nYou must be the owner of the rule group to perform this operation.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#DeletePermissionPolicyResponse": { "type": "structure", "members": {} }, "com.amazonaws.wafv2#DeleteRegexPatternSet": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#DeleteRegexPatternSetRequest" }, "output": { "target": "com.amazonaws.wafv2#DeleteRegexPatternSetResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFAssociatedItemException" }, { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidOperationException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFNonexistentItemException" }, { "target": "com.amazonaws.wafv2#WAFOptimisticLockException" }, { "target": "com.amazonaws.wafv2#WAFTagOperationException" }, { "target": "com.amazonaws.wafv2#WAFTagOperationInternalErrorException" } ], "traits": { "smithy.api#documentation": "Deletes the specified RegexPatternSet.
" } }, "com.amazonaws.wafv2#DeleteRegexPatternSetRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the set. You cannot change the name after you create the set.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
Deletes the specified RuleGroup.
" } }, "com.amazonaws.wafv2#DeleteRuleGroupRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the rule group. You cannot change the name of a rule group after you create it.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
Deletes the specified WebACL.
\nYou can only use this if ManagedByFirewallManager
is false in the specified WebACL.
The name of the Web ACL. You cannot change the name of a Web ACL after you create it.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nThe unique identifier for the Web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
Provides high-level information for a managed rule group, including descriptions of the rules.
" } }, "com.amazonaws.wafv2#DescribeManagedRuleGroupRequest": { "type": "structure", "members": { "VendorName": { "target": "com.amazonaws.wafv2#VendorName", "traits": { "smithy.api#documentation": "The name of the managed rule group vendor. You use this, along with the rule group name, to identify the rule group.
", "smithy.api#required": {} } }, "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nThe web ACL capacity units (WCUs) required for this rule group. \n AWS WAF uses web ACL capacity units (WCU) to calculate and control the operating\n resources that are used to run your rules, rule groups, and web ACLs. AWS WAF\n calculates capacity differently for each rule type, to reflect each rule's relative\n cost. Rule group capacity is fixed at creation, so users can plan their \n web ACL WCU usage when they use a rule group. \n The WCU limit for web ACLs is 1,500.
" } }, "Rules": { "target": "com.amazonaws.wafv2#RuleSummaries", "traits": { "smithy.api#documentation": "" } }, "LabelNamespace": { "target": "com.amazonaws.wafv2#LabelName", "traits": { "smithy.api#documentation": "The label namespace prefix for this rule group. All labels added by rules in this rule group have this prefix.
\nThe syntax for the label namespace prefix for a managed rule group is the following:
\n\n awswaf:managed:
:
When a rule with a label matches a web request, AWS WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon:
\n\n \n
The labels that one or more rules in this rule group add to matching web ACLs. These labels are defined in the RuleLabels
for a Rule.
The labels that one or more rules in this rule group match against in label match statements. These labels are defined in a LabelMatchStatement
specification, in the Statement definition of a rule.
Disassociates a Web ACL from a regional application resource. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nFor AWS CloudFront, don't use this call. Instead, use your CloudFront distribution configuration. To disassociate a Web ACL, provide an empty web ACL ID in the CloudFront call UpdateDistribution
. For information, see UpdateDistribution.
The Amazon Resource Name (ARN) of the resource to disassociate from the web ACL.
\n \nThe ARN must be in one of the following formats:
\nFor an Application Load Balancer: arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id\n
\n
For an API Gateway REST API: arn:aws:apigateway:region::/restapis/api-id/stages/stage-name\n
\n
For an AppSync GraphQL API: arn:aws:appsync:region:account-id:apis/GraphQLApiId\n
\n
The name of the rule to exclude.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Specifies a single rule to exclude from the rule group. Excluding a rule overrides \n its action setting for the rule group in the web ACL, setting it to COUNT
. \n This effectively excludes the rule from acting on web requests.
Inspect a single header. Provide the name of the header to inspect, for example, User-Agent
or Referer
. This setting isn't case sensitive.
Example JSON: \"SingleHeader\": { \"Name\": \"haystack\" }
\n
Inspect a single query argument. Provide the name of the query argument to inspect, such as UserName or SalesRegion. The name can be up to 30 characters long and isn't case sensitive.
\nThis is used only to indicate the web request component for AWS WAF to inspect, in the FieldToMatch specification.
\nExample JSON: \"SingleQueryArgument\": { \"Name\": \"myArgument\" }
\n
Inspect all query arguments.
" } }, "UriPath": { "target": "com.amazonaws.wafv2#UriPath", "traits": { "smithy.api#documentation": "Inspect the request URI path. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg
.
Inspect the query string. This is the part of a URL that appears after a ?
character, if any.
Inspect the request body as plain text. The request body immediately follows the request headers. This is the part of a request that contains any \n additional data that you want to send to your web server as the HTTP request body, such as data from a form.
\nNote that only the first 8 KB (8192 bytes) of the request body are forwarded to AWS WAF for inspection by the underlying host service. If you don't need to inspect more than 8 KB, you can guarantee that you don't allow additional bytes in by combining a statement that inspects the body of the web request, such as ByteMatchStatement or RegexPatternSetReferenceStatement, with a SizeConstraintStatement that enforces an 8 KB size limit on the body of the request. AWS WAF doesn't support inspecting the entire contents of web requests whose bodies exceed the 8 KB limit.
" } }, "Method": { "target": "com.amazonaws.wafv2#Method", "traits": { "smithy.api#documentation": "Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
" } }, "JsonBody": { "target": "com.amazonaws.wafv2#JsonBody", "traits": { "smithy.api#documentation": "Inspect the request body as JSON. The request body immediately follows the request headers. This is the part of a request that contains any \n additional data that you want to send to your web server as the HTTP request body, such as data from a form.
\nNote that only the first 8 KB (8192 bytes) of the request body are forwarded to AWS WAF for inspection by the underlying host service. If you don't need to inspect more than 8 KB, you can guarantee that you don't allow additional bytes in by combining a statement that inspects the body of the web request, such as ByteMatchStatement or RegexPatternSetReferenceStatement, with a SizeConstraintStatement that enforces an 8 KB size limit on the body of the request. AWS WAF doesn't support inspecting the entire contents of web requests whose bodies exceed the 8 KB limit.
" } } }, "traits": { "smithy.api#documentation": "The part of a web request that you want AWS WAF to inspect. Include the single FieldToMatch
type that you want to inspect, with additional specifications as needed, according to the type. You specify a single request component in FieldToMatch
for each rule statement that requires it. To inspect more than one component of a web request, create a separate rule statement for each component.
How to handle logs that satisfy the filter's conditions and requirement.
", "smithy.api#required": {} } }, "Requirement": { "target": "com.amazonaws.wafv2#FilterRequirement", "traits": { "smithy.api#documentation": "Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
", "smithy.api#required": {} } }, "Conditions": { "target": "com.amazonaws.wafv2#Conditions", "traits": { "smithy.api#documentation": "Match conditions for the filter.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A single logging filter, used in LoggingFilter.
" } }, "com.amazonaws.wafv2#FilterBehavior": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "KEEP", "name": "KEEP" }, { "value": "DROP", "name": "DROP" } ] } }, "com.amazonaws.wafv2#FilterRequirement": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "MEETS_ALL", "name": "MEETS_ALL" }, { "value": "MEETS_ANY", "name": "MEETS_ANY" } ] } }, "com.amazonaws.wafv2#Filters": { "type": "list", "member": { "target": "com.amazonaws.wafv2#Filter" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.wafv2#FirewallManagerRuleGroup": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the rule group. You cannot change the name of a rule group after you create it.
", "smithy.api#required": {} } }, "Priority": { "target": "com.amazonaws.wafv2#RulePriority", "traits": { "smithy.api#documentation": "If you define more than one rule group in the first or last Firewall Manager rule groups,\n AWS WAF evaluates each request against the rule groups in order, starting from the lowest priority setting. \n The priorities don't need to be consecutive, but they must all be different.
", "smithy.api#required": {} } }, "FirewallManagerStatement": { "target": "com.amazonaws.wafv2#FirewallManagerStatement", "traits": { "smithy.api#documentation": "The processing guidance for an AWS Firewall Manager rule. This is like a regular rule Statement, but it can only contain a rule group reference.
", "smithy.api#required": {} } }, "OverrideAction": { "target": "com.amazonaws.wafv2#OverrideAction", "traits": { "smithy.api#required": {} } }, "VisibilityConfig": { "target": "com.amazonaws.wafv2#VisibilityConfig", "traits": { "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A rule group that's defined for an AWS Firewall Manager WAF policy.
" } }, "com.amazonaws.wafv2#FirewallManagerRuleGroups": { "type": "list", "member": { "target": "com.amazonaws.wafv2#FirewallManagerRuleGroup" } }, "com.amazonaws.wafv2#FirewallManagerStatement": { "type": "structure", "members": { "ManagedRuleGroupStatement": { "target": "com.amazonaws.wafv2#ManagedRuleGroupStatement" }, "RuleGroupReferenceStatement": { "target": "com.amazonaws.wafv2#RuleGroupReferenceStatement" } }, "traits": { "smithy.api#documentation": "The processing guidance for an AWS Firewall Manager rule. This is like a regular rule Statement, but it can only contain a rule group reference.
" } }, "com.amazonaws.wafv2#ForwardedIPConfig": { "type": "structure", "members": { "HeaderName": { "target": "com.amazonaws.wafv2#ForwardedIPHeaderName", "traits": { "smithy.api#documentation": "The name of the HTTP header to use for the IP address. For example, to use the X-Forwarded-For (XFF) header, set this to X-Forwarded-For
.
If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
\nThe match status to assign to the web request if the request doesn't have a valid IP address in the specified position.
\n \nIf the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
\nYou can specify the following fallback behaviors:
\n\n MATCH
- Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
\n NO_MATCH
- Treat the web request as not matching the rule statement.
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
\n \nIf the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
\nThis configuration is used for GeoMatchStatement and RateBasedStatement. \n For IPSetReferenceStatement, use IPSetForwardedIPConfig instead.
\nAWS WAF only evaluates the first IP address found in the specified HTTP header.
" } }, "com.amazonaws.wafv2#ForwardedIPHeaderName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, "smithy.api#pattern": "^[a-zA-Z0-9-]+$" } }, "com.amazonaws.wafv2#ForwardedIPPosition": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "FIRST", "name": "FIRST" }, { "value": "LAST", "name": "LAST" }, { "value": "ANY", "name": "ANY" } ] } }, "com.amazonaws.wafv2#GeoMatchStatement": { "type": "structure", "members": { "CountryCodes": { "target": "com.amazonaws.wafv2#CountryCodes", "traits": { "smithy.api#documentation": "An array of two-character country codes, for example, [ \"US\", \"CN\" ]
, from the alpha-2 country ISO codes of the ISO 3166 international standard.
The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
\n \nIf the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
\nA rule statement used to identify web requests based on country of origin.
" } }, "com.amazonaws.wafv2#GetIPSet": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#GetIPSetRequest" }, "output": { "target": "com.amazonaws.wafv2#GetIPSetResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidOperationException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFNonexistentItemException" } ], "traits": { "smithy.api#documentation": "Retrieves the specified IPSet.
" } }, "com.amazonaws.wafv2#GetIPSetRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the IP set. You cannot change the name of an IPSet
after you create it.
Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#GetIPSetResponse": { "type": "structure", "members": { "IPSet": { "target": "com.amazonaws.wafv2#IPSet", "traits": { "smithy.api#documentation": "" } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
Returns the LoggingConfiguration for the specified web ACL.
" } }, "com.amazonaws.wafv2#GetLoggingConfigurationRequest": { "type": "structure", "members": { "ResourceArn": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the web ACL for which you want to get the LoggingConfiguration.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#GetLoggingConfigurationResponse": { "type": "structure", "members": { "LoggingConfiguration": { "target": "com.amazonaws.wafv2#LoggingConfiguration", "traits": { "smithy.api#documentation": "The LoggingConfiguration for the specified web ACL.
" } } } }, "com.amazonaws.wafv2#GetPermissionPolicy": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#GetPermissionPolicyRequest" }, "output": { "target": "com.amazonaws.wafv2#GetPermissionPolicyResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFNonexistentItemException" } ], "traits": { "smithy.api#documentation": "Returns the IAM policy that is attached to the specified rule group.
\nYou must be the owner of the rule group to perform this operation.
" } }, "com.amazonaws.wafv2#GetPermissionPolicyRequest": { "type": "structure", "members": { "ResourceArn": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the rule group for which you want to get the policy.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#GetPermissionPolicyResponse": { "type": "structure", "members": { "Policy": { "target": "com.amazonaws.wafv2#PolicyString", "traits": { "smithy.api#documentation": "The IAM policy that is attached to the specified rule group.
" } } } }, "com.amazonaws.wafv2#GetRateBasedStatementManagedKeys": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#GetRateBasedStatementManagedKeysRequest" }, "output": { "target": "com.amazonaws.wafv2#GetRateBasedStatementManagedKeysResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidOperationException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFNonexistentItemException" } ], "traits": { "smithy.api#documentation": "Retrieves the keys that are currently blocked by a rate-based rule. The maximum number of managed keys that can be blocked for a single rate-based rule is 10,000. If more than 10,000 addresses exceed the rate limit, those with the highest rates are blocked.
" } }, "com.amazonaws.wafv2#GetRateBasedStatementManagedKeysRequest": { "type": "structure", "members": { "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nThe name of the Web ACL. You cannot change the name of a Web ACL after you create it.
", "smithy.api#required": {} } }, "WebACLId": { "target": "com.amazonaws.wafv2#EntityId", "traits": { "smithy.api#documentation": "The unique identifier for the Web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "RuleName": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the rate-based rule to get the keys for.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#GetRateBasedStatementManagedKeysResponse": { "type": "structure", "members": { "ManagedKeysIPV4": { "target": "com.amazonaws.wafv2#RateBasedStatementManagedKeysIPSet", "traits": { "smithy.api#documentation": "The keys that are of Internet Protocol version 4 (IPv4).
" } }, "ManagedKeysIPV6": { "target": "com.amazonaws.wafv2#RateBasedStatementManagedKeysIPSet", "traits": { "smithy.api#documentation": "The keys that are of Internet Protocol version 6 (IPv6).
" } } } }, "com.amazonaws.wafv2#GetRegexPatternSet": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#GetRegexPatternSetRequest" }, "output": { "target": "com.amazonaws.wafv2#GetRegexPatternSetResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidOperationException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFNonexistentItemException" } ], "traits": { "smithy.api#documentation": "Retrieves the specified RegexPatternSet.
" } }, "com.amazonaws.wafv2#GetRegexPatternSetRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the set. You cannot change the name after you create the set.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#GetRegexPatternSetResponse": { "type": "structure", "members": { "RegexPatternSet": { "target": "com.amazonaws.wafv2#RegexPatternSet", "traits": { "smithy.api#documentation": "" } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
Retrieves the specified RuleGroup.
" } }, "com.amazonaws.wafv2#GetRuleGroupRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the rule group. You cannot change the name of a rule group after you create it.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#GetRuleGroupResponse": { "type": "structure", "members": { "RuleGroup": { "target": "com.amazonaws.wafv2#RuleGroup", "traits": { "smithy.api#documentation": "" } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
Gets detailed information about a specified number of requests--a sample--that AWS WAF randomly selects from among the first 5,000 requests that your AWS 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 time range in the previous three hours.
\n\n GetSampledRequests
returns a time range, which is usually the time range that you specified. However, if your resource \n (such as a CloudFront distribution) received 5,000 requests before the specified time range elapsed, GetSampledRequests
\n returns an updated time range. This new time range indicates the actual period during which AWS WAF selected the requests in the sample.
The Amazon resource name (ARN) of the WebACL
for which you want a sample of requests.
The metric name assigned to the Rule
or RuleGroup
for which you want a sample of requests.
Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nThe start date and time and the end date and time of the range for which you want GetSampledRequests
to return a \n sample of requests. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z
. For example, \"2016-09-27T14:50Z\"
. You can specify any time range in the previous three hours. If you specify a start time that's earlier than three hours ago, AWS WAF sets it to three hours ago.
The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received\n during the time range. If your resource received fewer requests than the value of MaxItems
, GetSampledRequests
\n returns information about all of them.
A complex type that contains detailed information about each of the requests in the sample.
" } }, "PopulationSize": { "target": "com.amazonaws.wafv2#PopulationSize", "traits": { "smithy.api#documentation": "The total number of requests from which GetSampledRequests
got a sample of MaxItems
requests. \n If PopulationSize
is less than MaxItems
, the sample includes every request that your AWS resource \n received during the specified time range.
Usually, TimeWindow
is the time range that you specified in the GetSampledRequests
request. \n However, if your AWS resource received more than 5,000 requests during the time range that you specified in the request, \n GetSampledRequests
returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.
Retrieves the specified WebACL.
" } }, "com.amazonaws.wafv2#GetWebACLForResource": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#GetWebACLForResourceRequest" }, "output": { "target": "com.amazonaws.wafv2#GetWebACLForResourceResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidOperationException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFNonexistentItemException" }, { "target": "com.amazonaws.wafv2#WAFUnavailableEntityException" } ], "traits": { "smithy.api#documentation": "Retrieves the WebACL for the specified resource.
" } }, "com.amazonaws.wafv2#GetWebACLForResourceRequest": { "type": "structure", "members": { "ResourceArn": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The ARN (Amazon Resource Name) of the resource.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#GetWebACLForResourceResponse": { "type": "structure", "members": { "WebACL": { "target": "com.amazonaws.wafv2#WebACL", "traits": { "smithy.api#documentation": "The Web ACL that is associated with the resource. If there is no associated resource, AWS WAF returns a null Web ACL.
" } } } }, "com.amazonaws.wafv2#GetWebACLRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the Web ACL. You cannot change the name of a Web ACL after you create it.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nThe unique identifier for the Web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#GetWebACLResponse": { "type": "structure", "members": { "WebACL": { "target": "com.amazonaws.wafv2#WebACL", "traits": { "smithy.api#documentation": "The Web ACL specification. You can modify the settings in this Web ACL and use it to update this Web ACL or create a new one.
" } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
The name of the HTTP header.
" } }, "Value": { "target": "com.amazonaws.wafv2#HeaderValue", "traits": { "smithy.api#documentation": "The value of the HTTP header.
" } } }, "traits": { "smithy.api#documentation": "Part of the response from GetSampledRequests. This is a complex type that \n appears as Headers
in the response syntax. HTTPHeader
contains the names and values of \n all of the headers that appear in one of the web requests.
The IP address that the request originated from. If the web ACL is associated with a CloudFront distribution, \n this is the value of one of the following fields in CloudFront access logs:
\n\n c-ip
, if the viewer did not use an HTTP proxy or a load balancer to send the request
\n x-forwarded-for
, if the viewer did use an HTTP proxy or a load balancer to send the request
The two-letter country code for the country that the request originated from. For a current list of country codes, \n see the Wikipedia entry ISO 3166-1 alpha-2.
" } }, "URI": { "target": "com.amazonaws.wafv2#URIString", "traits": { "smithy.api#documentation": "The URI path of the request, which identifies the resource, for example, /images/daily-ad.jpg
.
The HTTP method specified in the sampled web request.
" } }, "HTTPVersion": { "target": "com.amazonaws.wafv2#HTTPVersion", "traits": { "smithy.api#documentation": "The HTTP version specified in the sampled web request, for example, HTTP/1.1
.
A complex type that contains the name and value for each header in the sampled web request.
" } } }, "traits": { "smithy.api#documentation": "Part of the response from GetSampledRequests. This is a complex type that \n appears as Request
in the response syntax. HTTPRequest
contains information about \n one of the web requests.
The name of the IP set. You cannot change the name of an IPSet
after you create it.
A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "ARN": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the entity.
", "smithy.api#required": {} } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the IP set that helps with identification.
" } }, "IPAddressVersion": { "target": "com.amazonaws.wafv2#IPAddressVersion", "traits": { "smithy.api#documentation": "Specify IPV4 or IPV6.
", "smithy.api#required": {} } }, "Addresses": { "target": "com.amazonaws.wafv2#IPAddresses", "traits": { "smithy.api#documentation": "Contains an array of strings that specify one or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all IPv4 and IPv6 CIDR ranges except for /0.
\nExamples:
\nTo configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32
.
To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify \n 192.0.2.0/24
.
To configure AWS WAF to allow, block, or count requests that originated from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128
.
To configure AWS WAF to allow, block, or count requests that originated from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify 1111:0000:0000:0000:0000:0000:0000:0000/64
.
For more information about CIDR notation, see the Wikipedia entry Classless\n Inter-Domain Routing.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Contains one or more IP addresses or blocks of IP addresses specified in Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all IPv4 and IPv6 CIDR ranges except for /0. For information about CIDR notation, see the Wikipedia entry Classless\n Inter-Domain Routing.
\nAWS WAF assigns an ARN to each IPSet
that you create. To use an IP set in a rule, you provide the ARN to the Rule statement IPSetReferenceStatement.
The name of the HTTP header to use for the IP address. For example, to use the X-Forwarded-For (XFF) header, set this to X-Forwarded-For
.
If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
\nThe match status to assign to the web request if the request doesn't have a valid IP address in the specified position.
\n \nIf the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
\nYou can specify the following fallback behaviors:
\n\n MATCH
- Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
\n NO_MATCH
- Treat the web request as not matching the rule statement.
The position in the header to search for the IP address. The header can contain IP addresses of the original client and also of proxies. For example, the header value could be 10.1.1.1, 127.0.0.0, 10.10.10.10
where the first IP address identifies the original client and the rest identify proxies that the request went through.
The options for this setting are the following:
\nFIRST - Inspect the first IP address in the list of IP addresses in the header. This is usually the client's original IP.
\nLAST - Inspect the last IP address in the list of IP addresses in the header.
\nANY - Inspect all IP addresses in the header for a match. If the header contains more than 10 IP addresses, AWS WAF inspects the last 10.
\nThe configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
\n \nIf the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
\nThis configuration is used only for IPSetReferenceStatement. For GeoMatchStatement and RateBasedStatement, use ForwardedIPConfig instead.
" } }, "com.amazonaws.wafv2#IPSetReferenceStatement": { "type": "structure", "members": { "ARN": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the IPSet that this statement references.
", "smithy.api#required": {} } }, "IPSetForwardedIPConfig": { "target": "com.amazonaws.wafv2#IPSetForwardedIPConfig", "traits": { "smithy.api#documentation": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
\n \nIf the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
\nA rule statement used to detect web requests coming from particular IP addresses or address ranges. To use this, create an IPSet that specifies the addresses you want to detect, then use the ARN of that set in this statement. To create an IP set, see CreateIPSet.
\nEach IP set rule statement references an IP set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.
" } }, "com.amazonaws.wafv2#IPSetSummaries": { "type": "list", "member": { "target": "com.amazonaws.wafv2#IPSetSummary" } }, "com.amazonaws.wafv2#IPSetSummary": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the IP set. You cannot change the name of an IPSet
after you create it.
A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
" } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the IP set that helps with identification.
" } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
The Amazon Resource Name (ARN) of the entity.
" } } }, "traits": { "smithy.api#documentation": "High-level information about an IPSet, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage an IPSet
, and the ARN, that you provide to the IPSetReferenceStatement to use the address set in a Rule.
The patterns to look for in the JSON body. AWS WAF inspects the results of these pattern matches against the rule inspection criteria.
", "smithy.api#required": {} } }, "MatchScope": { "target": "com.amazonaws.wafv2#JsonMatchScope", "traits": { "smithy.api#documentation": "The parts of the JSON to match against using the MatchPattern
. If you specify All
, AWS WAF matches against keys and values.
What AWS WAF should do if it fails to completely parse the JSON body. The options are the following:
\n\n EVALUATE_AS_STRING
- Inspect the body as\n \t\t\tplain text. AWS WAF applies the text transformations and\n \t\t\tinspection criteria that you defined for the JSON inspection to\n \t\t\tthe body text string.
\n MATCH
- Treat the web request as matching\n \t\t\tthe rule statement. AWS WAF applies the rule action to the\n \t\t\trequest.
\n NO_MATCH
- Treat the web request as not\n \t\t\tmatching the rule statement.
If you don't provide this setting, AWS WAF parses and evaluates the content only up to the first parsing failure that it encounters.
\nAWS WAF does its best to parse the entire JSON body, but might be forced\n \tto stop for reasons such as invalid characters, duplicate keys,\n \ttruncation, and any content whose root node isn't an object or an array.
\nAWS WAF parses the JSON in the following examples as two valid key,\n \tvalue pairs:
\nMissing comma:\n \t\t\t{\"key1\":\"value1\"\"key2\":\"value2\"}
\n
Missing colon:\n \t\t\t{\"key1\":\"value1\",\"key2\"\"value2\"}
\n
Extra colons:\n \t\t\t{\"key1\"::\"value1\",\"key2\"\"value2\"}
\n
The body of a web request, inspected as JSON. The body immediately follows the request headers. This is used in the FieldToMatch specification.
\nUse the specifications in this object to indicate which parts of the JSON body to inspect using the rule's inspection criteria. AWS WAF inspects only the parts of the JSON that result from the matches that you indicate.
" } }, "com.amazonaws.wafv2#JsonMatchPattern": { "type": "structure", "members": { "All": { "target": "com.amazonaws.wafv2#All", "traits": { "smithy.api#documentation": "Match all of the elements. See also MatchScope
in JsonBody.
You must specify either this setting or the IncludedPaths
setting, but not both.
Match only the specified include paths. See also MatchScope
in JsonBody.
Provide the include paths using JSON Pointer syntax. For example, \"IncludedPaths\": [\"/dogs/0/name\", \"/dogs/1/name\"]
. For information about this syntax, see the Internet Engineering Task Force (IETF) documentation \n JavaScript Object Notation (JSON) Pointer.
You must specify either this setting or the All
setting, but not both.
Don't use this option to include all paths. Instead, use the All
setting.
The patterns to look for in the JSON body. AWS WAF inspects the results of these pattern matches against the rule inspection criteria. This is used with the FieldToMatch option JsonBody
.
The label string.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A single label container. This is used as an element of a label array in multiple contexts, for example, in RuleLabels
inside a Rule and in Labels
inside a SampledHTTPRequest.
Specify whether you want to match using the label name or just the namespace.
", "smithy.api#required": {} } }, "Key": { "target": "com.amazonaws.wafv2#LabelMatchKey", "traits": { "smithy.api#documentation": "The string to match against. The setting you provide for this depends on the match statement's Scope
settings:
If the Scope
indicates LABEL
, then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name.
If the Scope
indicates NAMESPACE
, then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.
Labels are case sensitive and components of a label must be separated by colon, for example NS1:NS2:name
.
A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL.
\nThe label match statement provides the label or namespace string to search for. The label string can represent a part or all of the fully qualified label name that had been added to the web request. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label. If you do not provide the fully qualified name in your label match string, AWS WAF performs the search for labels that were added in the same context as the label match statement.
" } }, "com.amazonaws.wafv2#LabelName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1024 }, "smithy.api#pattern": "^[0-9A-Za-z_\\-:]+$" } }, "com.amazonaws.wafv2#LabelNameCondition": { "type": "structure", "members": { "LabelName": { "target": "com.amazonaws.wafv2#LabelName", "traits": { "smithy.api#documentation": "The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A single label name condition for a Condition in a logging filter.
" } }, "com.amazonaws.wafv2#LabelSummaries": { "type": "list", "member": { "target": "com.amazonaws.wafv2#LabelSummary" } }, "com.amazonaws.wafv2#LabelSummary": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#LabelName", "traits": { "smithy.api#documentation": "An individual label specification.
" } } }, "traits": { "smithy.api#documentation": "List of labels used by one or more of the rules of a RuleGroup. This summary object is used for the following rule group lists:
\n\n AvailableLabels
- Labels that rules add to matching requests. These labels are defined in the RuleLabels
for a Rule.
\n ConsumedLabels
- Labels that rules match against. These labels are defined in a LabelMatchStatement
specification, in the Statement definition of a rule.
Retrieves an array of managed rule groups that are available for you to use. This list includes all AWS Managed Rules rule groups and the AWS Marketplace managed rule groups that you're subscribed to.
" } }, "com.amazonaws.wafv2#ListAvailableManagedRuleGroupsRequest": { "type": "structure", "members": { "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nWhen you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
The maximum number of objects that you want AWS WAF to return for this request. If more \n objects are available, in the response, AWS WAF provides a \n NextMarker
value that you can use in a subsequent call to get the next batch of objects.
When you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
Retrieves an array of IPSetSummary objects for the IP sets that you manage.
" } }, "com.amazonaws.wafv2#ListIPSetsRequest": { "type": "structure", "members": { "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nWhen you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
The maximum number of objects that you want AWS WAF to return for this request. If more \n objects are available, in the response, AWS WAF provides a \n NextMarker
value that you can use in a subsequent call to get the next batch of objects.
When you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
Array of IPSets. This may not be the full list of IPSets that you have defined. See the Limit
specification for this request.
Retrieves an array of your LoggingConfiguration objects.
" } }, "com.amazonaws.wafv2#ListLoggingConfigurationsRequest": { "type": "structure", "members": { "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nWhen you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
The maximum number of objects that you want AWS WAF to return for this request. If more \n objects are available, in the response, AWS WAF provides a \n NextMarker
value that you can use in a subsequent call to get the next batch of objects.
When you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
Retrieves an array of RegexPatternSetSummary objects for the regex pattern sets that you manage.
" } }, "com.amazonaws.wafv2#ListRegexPatternSetsRequest": { "type": "structure", "members": { "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nWhen you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
The maximum number of objects that you want AWS WAF to return for this request. If more \n objects are available, in the response, AWS WAF provides a \n NextMarker
value that you can use in a subsequent call to get the next batch of objects.
When you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
Retrieves an array of the Amazon Resource Names (ARNs) for the regional resources that are associated with the specified web ACL. If you want the list of AWS CloudFront resources, use the AWS CloudFront call ListDistributionsByWebACLId
.
The Amazon Resource Name (ARN) of the Web ACL.
", "smithy.api#required": {} } }, "ResourceType": { "target": "com.amazonaws.wafv2#ResourceType", "traits": { "smithy.api#documentation": "Used for web ACLs that are scoped for regional applications. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
" } } } }, "com.amazonaws.wafv2#ListResourcesForWebACLResponse": { "type": "structure", "members": { "ResourceArns": { "target": "com.amazonaws.wafv2#ResourceArns", "traits": { "smithy.api#documentation": "The array of Amazon Resource Names (ARNs) of the associated resources.
" } } } }, "com.amazonaws.wafv2#ListRuleGroups": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#ListRuleGroupsRequest" }, "output": { "target": "com.amazonaws.wafv2#ListRuleGroupsResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidOperationException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" } ], "traits": { "smithy.api#documentation": "Retrieves an array of RuleGroupSummary objects for the rule groups that you manage.
" } }, "com.amazonaws.wafv2#ListRuleGroupsRequest": { "type": "structure", "members": { "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nWhen you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
The maximum number of objects that you want AWS WAF to return for this request. If more \n objects are available, in the response, AWS WAF provides a \n NextMarker
value that you can use in a subsequent call to get the next batch of objects.
When you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
Retrieves 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 to add to each AWS resource, up to 50 tags for a resource.
\nYou can tag the AWS resources that you manage through AWS WAF: web ACLs, rule groups, IP \n sets, and regex pattern sets. You can't manage or view tags through the AWS WAF console.
" } }, "com.amazonaws.wafv2#ListTagsForResourceRequest": { "type": "structure", "members": { "NextMarker": { "target": "com.amazonaws.wafv2#NextMarker", "traits": { "smithy.api#documentation": "When you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
The maximum number of objects that you want AWS WAF to return for this request. If more \n objects are available, in the response, AWS WAF provides a \n NextMarker
value that you can use in a subsequent call to get the next batch of objects.
The Amazon Resource Name (ARN) of the resource.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#ListTagsForResourceResponse": { "type": "structure", "members": { "NextMarker": { "target": "com.amazonaws.wafv2#NextMarker", "traits": { "smithy.api#documentation": "When you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
The collection of tagging definitions for the resource.
" } } } }, "com.amazonaws.wafv2#ListWebACLs": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#ListWebACLsRequest" }, "output": { "target": "com.amazonaws.wafv2#ListWebACLsResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidOperationException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" } ], "traits": { "smithy.api#documentation": "Retrieves an array of WebACLSummary objects for the web ACLs that you manage.
" } }, "com.amazonaws.wafv2#ListWebACLsRequest": { "type": "structure", "members": { "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nWhen you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
The maximum number of objects that you want AWS WAF to return for this request. If more \n objects are available, in the response, AWS WAF provides a \n NextMarker
value that you can use in a subsequent call to get the next batch of objects.
When you request a list of objects with a Limit
setting, if the number of objects that are still available\n for retrieval exceeds the limit, AWS WAF returns a NextMarker
\n value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
The Amazon Resource Name (ARN) of the web ACL that you want to associate with\n LogDestinationConfigs
.
The Amazon Kinesis Data Firehose Amazon Resource Name (ARNs) that you want to associate with the web ACL.
", "smithy.api#required": {} } }, "RedactedFields": { "target": "com.amazonaws.wafv2#RedactedFields", "traits": { "smithy.api#documentation": "The parts of the request that you want to keep out of the logs. For\n example, if you redact the HEADER
field, the HEADER
field in the firehose will be xxx
.
You must use one of the following values: URI
, QUERY_STRING
, HEADER
, or METHOD
.
Indicates whether the logging configuration was created by AWS Firewall Manager, as part of an AWS WAF policy configuration. If true, only \n Firewall Manager can modify or delete the configuration.
" } }, "LoggingFilter": { "target": "com.amazonaws.wafv2#LoggingFilter", "traits": { "smithy.api#documentation": "Filtering that specifies which web requests are kept in the logs and which are dropped. You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
" } } }, "traits": { "smithy.api#documentation": "Defines an association between Amazon Kinesis Data Firehose destinations and a web ACL resource, for \n logging from AWS WAF.\n As part of the association, you can specify parts of the standard logging fields to keep out of the logs and you \n can specify filters so that you log only a subset of the logging records.
" } }, "com.amazonaws.wafv2#LoggingConfigurations": { "type": "list", "member": { "target": "com.amazonaws.wafv2#LoggingConfiguration" } }, "com.amazonaws.wafv2#LoggingFilter": { "type": "structure", "members": { "Filters": { "target": "com.amazonaws.wafv2#Filters", "traits": { "smithy.api#documentation": "The filters that you want to apply to the logs.
", "smithy.api#required": {} } }, "DefaultBehavior": { "target": "com.amazonaws.wafv2#FilterBehavior", "traits": { "smithy.api#documentation": "Default handling for logs that don't match any of the specified filtering conditions.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Filtering that specifies which web requests are kept in the logs and which are dropped, defined for a web ACL's LoggingConfiguration.
\nYou can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
" } }, "com.amazonaws.wafv2#ManagedRuleGroupStatement": { "type": "structure", "members": { "VendorName": { "target": "com.amazonaws.wafv2#VendorName", "traits": { "smithy.api#documentation": "The name of the managed rule group vendor. You use this, along with the rule group name, to identify the rule group.
", "smithy.api#required": {} } }, "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
", "smithy.api#required": {} } }, "ExcludedRules": { "target": "com.amazonaws.wafv2#ExcludedRules", "traits": { "smithy.api#documentation": "The rules whose actions are set to COUNT
by the web ACL, regardless of the action that is set on the rule. This effectively excludes the rule from acting on web requests.
A rule statement used to run the rules that are defined in a managed rule group. To use this, provide the vendor name and the name of the rule group in this statement. You can retrieve the required names by calling ListAvailableManagedRuleGroups.
\nYou can't nest a ManagedRuleGroupStatement
, for example for use inside a NotStatement
or OrStatement
. It can only be referenced as a top-level statement within a rule.
The name of the managed rule group vendor. You use this, along with the rule group name, to identify the rule group.
" } }, "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
" } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "The description of the managed rule group, provided by AWS Managed Rules or the AWS Marketplace seller who manages it.
" } } }, "traits": { "smithy.api#documentation": "High-level information about a managed rule group, returned by ListAvailableManagedRuleGroups. This provides information like the name and vendor name, that you provide when you add a ManagedRuleGroupStatement to a web ACL. Managed rule groups include AWS Managed Rules rule groups, which are free of charge to AWS WAF customers, and AWS Marketplace managed rule groups, which you can subscribe to through AWS Marketplace.
" } }, "com.amazonaws.wafv2#Method": { "type": "structure", "members": {}, "traits": { "smithy.api#documentation": "The HTTP method of a web request. The method indicates the type of operation that the request is asking the origin to perform.
\nThis is used only to indicate the web request component for AWS WAF to inspect, in the FieldToMatch specification.
" } }, "com.amazonaws.wafv2#MetricName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 255 }, "smithy.api#pattern": "^[\\w#:\\.\\-/]+$" } }, "com.amazonaws.wafv2#NextMarker": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.wafv2#NoneAction": { "type": "structure", "members": {}, "traits": { "smithy.api#documentation": "Specifies that AWS WAF should do nothing. This is generally used to try out a rule without performing any actions. You set the OverrideAction
on the Rule.
This is used in the context of other settings, for example to specify values for RuleAction and web ACL DefaultAction.
" } }, "com.amazonaws.wafv2#NotStatement": { "type": "structure", "members": { "Statement": { "target": "com.amazonaws.wafv2#Statement", "traits": { "smithy.api#documentation": "The statement to negate. You can use any statement that can be nested.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A logical rule statement used to negate the results of another rule statement. You provide one Statement within the NotStatement
.
The statements to combine with OR logic. You can use any statements that can be nested.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A logical rule statement used to combine other rule statements with OR logic. You provide more than one Statement within the OrStatement
.
Override the rule action setting to count.
" } }, "None": { "target": "com.amazonaws.wafv2#NoneAction", "traits": { "smithy.api#documentation": "Don't override the rule action setting.
" } } }, "traits": { "smithy.api#documentation": "The override action to apply to the rules in a rule group. Used only for rule statements that reference a rule group, \n like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
\nIn a Rule, you must specify either this OverrideAction
setting or the rule Action
setting, but not both:
If the rule statement references a rule group, use this override action setting and not the action setting.
\nIf the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.
\nEnables the specified LoggingConfiguration, to start logging from a web ACL, according to the configuration provided.
\nYou can access information about all traffic that AWS WAF inspects using the following\n steps:
\nCreate an Amazon Kinesis Data\n Firehose.
\nCreate the data firehose with a PUT source and in the Region that you are operating. If you are capturing logs for Amazon CloudFront, always create the firehose in US East (N. Virginia).
\nGive the data firehose a name that starts with the prefix aws-waf-logs-
. For example, aws-waf-logs-us-east-2-analytics
.
Do not create the data firehose using a Kinesis stream
as your source.
Associate that firehose to your web ACL using a PutLoggingConfiguration
request.
When you successfully enable logging using a PutLoggingConfiguration
request, AWS WAF will create a service linked role with the necessary permissions to write logs to the Amazon Kinesis Data Firehose. For more information, see Logging Web ACL Traffic Information in the AWS WAF Developer Guide.
Attaches an IAM policy to the specified resource. Use this to share a rule group across accounts.
\nYou must be the owner of the rule group to perform this operation.
\nThis action is subject to the following restrictions:
\nYou can attach only one policy with each PutPermissionPolicy
request.
The ARN in the request must be a valid WAF RuleGroup ARN and the rule group must exist in the same region.
\nThe user making the request must be the owner of the rule group.
\nThe Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy.
", "smithy.api#required": {} } }, "Policy": { "target": "com.amazonaws.wafv2#PolicyString", "traits": { "smithy.api#documentation": "The policy to attach to the specified rule group.
\n \nThe policy specifications must conform to the following:
\nThe policy must be composed using IAM Policy version 2012-10-17 or version 2015-01-01.
\nThe policy must include specifications for Effect
, Action
, and Principal
.
\n Effect
must specify Allow
.
\n Action
must specify wafv2:CreateWebACL
, wafv2:UpdateWebACL
, and wafv2:PutFirewallManagerRuleGroups
. AWS WAF rejects any extra actions or wildcard actions in the policy.
The policy must not include a Resource
parameter.
For more information, see IAM Policies.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#PutPermissionPolicyResponse": { "type": "structure", "members": {} }, "com.amazonaws.wafv2#QueryString": { "type": "structure", "members": {}, "traits": { "smithy.api#documentation": "The query string of a web request. This is the part of a URL that appears after a ?
character, if any.
This is used only to indicate the web request component for AWS WAF to inspect, in the FieldToMatch specification.
" } }, "com.amazonaws.wafv2#RateBasedStatement": { "type": "structure", "members": { "Limit": { "target": "com.amazonaws.wafv2#RateLimit", "traits": { "smithy.api#documentation": "The limit on requests per 5-minute period for a single originating IP address. If the statement includes a ScopeDownStatement
, this limit is applied only to the requests that match the statement.
Setting that indicates how to aggregate the request counts. The options are the following:
\nIP - Aggregate the request counts on the IP address from the web request origin.
\nFORWARDED_IP - Aggregate the request counts on the first IP address in an HTTP header. If you use this, configure the ForwardedIPConfig
, to specify the header to use.
An optional nested statement that narrows the scope of the rate-based statement to matching web requests. This can be any nestable statement, and you can nest statements at any level below this scope-down statement.
" } }, "ForwardedIPConfig": { "target": "com.amazonaws.wafv2#ForwardedIPConfig", "traits": { "smithy.api#documentation": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
\n \nIf the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
\nThis is required if AggregateKeyType
is set to FORWARDED_IP
.
A rate-based rule tracks the rate of requests for each originating IP address, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any 5-minute time span. You can use this to put a temporary block on requests from an IP address that is sending excessive requests.
\nWhen the rule action triggers, AWS WAF blocks additional requests from the IP address until the request rate falls below the limit.
\nYou can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts requests that match the nested statement. For example, based on recent requests that you have seen from an attacker, you might create a rate-based rule with a nested AND rule statement that contains the following nested statements:
\nAn IP match statement with an IP set that specified the address 192.0.2.44.
\nA string match statement that searches in the User-Agent header for the string BadBot.
\nIn this rate-based rule, you also define a rate limit. For this example, the rate limit is 1,000. Requests that meet both of the conditions in the statements are counted. If the count exceeds 1,000 requests per five minutes, the rule action triggers. Requests that do not meet both conditions are not counted towards the rate limit and are not affected by this rule.
\nYou cannot nest a RateBasedStatement
, for example for use inside a NotStatement
or OrStatement
. It can only be referenced as a top-level statement within a rule.
The IP addresses that are currently blocked.
" } } }, "traits": { "smithy.api#documentation": "The set of IP addresses that are currently blocked for a rate-based statement.
" } }, "com.amazonaws.wafv2#RateLimit": { "type": "long", "traits": { "smithy.api#range": { "min": 100, "max": 2000000000 } } }, "com.amazonaws.wafv2#RedactedFields": { "type": "list", "member": { "target": "com.amazonaws.wafv2#FieldToMatch" }, "traits": { "smithy.api#length": { "min": 0, "max": 100 } } }, "com.amazonaws.wafv2#Regex": { "type": "structure", "members": { "RegexString": { "target": "com.amazonaws.wafv2#RegexPatternString", "traits": { "smithy.api#documentation": "The string representing the regular expression.
" } } }, "traits": { "smithy.api#documentation": "A single regular expression. This is used in a RegexPatternSet.
" } }, "com.amazonaws.wafv2#RegexPatternSet": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the set. You cannot change the name after you create the set.
" } }, "Id": { "target": "com.amazonaws.wafv2#EntityId", "traits": { "smithy.api#documentation": "A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
" } }, "ARN": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the entity.
" } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the set that helps with identification.
" } }, "RegularExpressionList": { "target": "com.amazonaws.wafv2#RegularExpressionList", "traits": { "smithy.api#documentation": "The regular expression patterns in the set.
" } } }, "traits": { "smithy.api#documentation": "Contains one or more regular expressions.
\nAWS WAF assigns an ARN to each RegexPatternSet
that you create. To use a set in a rule, you provide the ARN to the Rule statement RegexPatternSetReferenceStatement.
The Amazon Resource Name (ARN) of the RegexPatternSet that this statement references.
", "smithy.api#required": {} } }, "FieldToMatch": { "target": "com.amazonaws.wafv2#FieldToMatch", "traits": { "smithy.api#documentation": "The part of a web request that you want AWS WAF to inspect. For more information, see FieldToMatch.
", "smithy.api#required": {} } }, "TextTransformations": { "target": "com.amazonaws.wafv2#TextTransformations", "traits": { "smithy.api#documentation": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. \n If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the \n content of the request component identified by FieldToMatch
, starting from the lowest priority setting, before inspecting the content for a match.
A rule statement used to search web request components for matches with regular expressions. To use this, create a RegexPatternSet that specifies the expressions that you want to detect, then use the ARN of that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set. To create a regex pattern set, see CreateRegexPatternSet.
\nEach regex pattern set rule statement references a regex pattern set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.
" } }, "com.amazonaws.wafv2#RegexPatternSetSummaries": { "type": "list", "member": { "target": "com.amazonaws.wafv2#RegexPatternSetSummary" } }, "com.amazonaws.wafv2#RegexPatternSetSummary": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the data type instance. You cannot change the name after you create the instance.
" } }, "Id": { "target": "com.amazonaws.wafv2#EntityId", "traits": { "smithy.api#documentation": "A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
" } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the set that helps with identification.
" } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
The Amazon Resource Name (ARN) of the entity.
" } } }, "traits": { "smithy.api#documentation": "High-level information about a RegexPatternSet, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage a RegexPatternSet
, and the ARN, that you provide to the RegexPatternSetReferenceStatement to use the pattern set in a Rule.
The name of the rule. You can't change the name of a Rule
after you create it.
If you define more than one Rule
in a\n WebACL
, AWS WAF evaluates each request against the Rules
\n in order based on the value of Priority
. \n AWS WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.
The AWS WAF processing statement for the rule, for example ByteMatchStatement or SizeConstraintStatement.
", "smithy.api#required": {} } }, "Action": { "target": "com.amazonaws.wafv2#RuleAction", "traits": { "smithy.api#documentation": "The action that AWS WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.
\nThis is used only for rules whose statements do not reference a rule group. Rule statements that reference a rule group include RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
You must specify either this Action
setting or the rule OverrideAction
setting, but not both:
If the rule statement does not reference a rule group, use this rule action setting and not the rule override action setting.
\nIf the rule statement references a rule group, use the override action setting and not this action setting.
\nThe override action to apply to the rules in a rule group. Used only for rule statements that reference a rule group, \n like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
Set the override action to none to leave the rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.
\nIn a Rule, you must specify either this OverrideAction
setting or the rule Action
setting, but not both:
If the rule statement references a rule group, use this override action setting and not the action setting.
\nIf the rule statement does not reference a rule group, use the rule action setting and not this rule override action setting.
\nLabels to apply to web requests that match the rule match statement. AWS WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.
\nRules that run after this rule in the web ACL can match against these labels using a LabelMatchStatement
.
For each label, provide a case-sensitive string containing optional namespaces and a label name, according to the following guidelines:
\nSeparate each component of the label with a colon.
\nEach namespace or name can have up to 128 characters.
\nYou can specify up to 5 namespaces in a label.
\nDon't use the following reserved words in your label specification: aws
, waf
, managed
, rulegroup
, webacl
, regexpatternset
, or ipset
.
For example, myLabelName
or nameSpace1:nameSpace2:myLabelName
.
Defines and enables Amazon CloudWatch metrics and web request sample collection.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A single rule, which you can use in a WebACL or RuleGroup to identify \n web requests that you want to allow, block, or count. \n Each rule includes one top-level Statement that AWS WAF uses to identify matching \n web requests, and parameters that govern how AWS WAF handles them.
" } }, "com.amazonaws.wafv2#RuleAction": { "type": "structure", "members": { "Block": { "target": "com.amazonaws.wafv2#BlockAction", "traits": { "smithy.api#documentation": "Instructs AWS WAF to block the web request.
" } }, "Allow": { "target": "com.amazonaws.wafv2#AllowAction", "traits": { "smithy.api#documentation": "Instructs AWS WAF to allow the web request.
" } }, "Count": { "target": "com.amazonaws.wafv2#CountAction", "traits": { "smithy.api#documentation": "Instructs AWS WAF to count the web request and allow it.
" } } }, "traits": { "smithy.api#documentation": "The action that AWS WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.
" } }, "com.amazonaws.wafv2#RuleGroup": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the rule group. You cannot change the name of a rule group after you create it.
", "smithy.api#required": {} } }, "Id": { "target": "com.amazonaws.wafv2#EntityId", "traits": { "smithy.api#documentation": "A unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "Capacity": { "target": "com.amazonaws.wafv2#CapacityUnit", "traits": { "smithy.api#documentation": "The web ACL capacity units (WCUs) required for this rule group.
\nWhen you create your own rule group, you define this, and you cannot change it after creation. \n When you add or modify the rules in a rule group, AWS WAF enforces this limit. You can check the capacity \n for a set of rules using CheckCapacity.
\nAWS WAF uses WCUs to calculate and control the operating\n resources that are used to run your rules, rule groups, and web ACLs. AWS WAF\n calculates capacity differently for each rule type, to reflect the relative cost of each rule. \n Simple rules that cost little to run use fewer WCUs than more complex rules\n\t\t\t\tthat use more processing power. \n\t\t\t\tRule group capacity is fixed at creation, which helps users plan their \n web ACL WCU usage when they use a rule group. \n The WCU limit for web ACLs is 1,500.
", "smithy.api#required": {} } }, "ARN": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the entity.
", "smithy.api#required": {} } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the rule group that helps with identification.
" } }, "Rules": { "target": "com.amazonaws.wafv2#Rules", "traits": { "smithy.api#documentation": "The Rule statements used to identify the web requests that you \n want to allow, block, or count. Each rule includes one top-level statement that AWS WAF uses to identify matching \n web requests, and parameters that govern how AWS WAF handles them. \n
" } }, "VisibilityConfig": { "target": "com.amazonaws.wafv2#VisibilityConfig", "traits": { "smithy.api#documentation": "Defines and enables Amazon CloudWatch metrics and web request sample collection.
", "smithy.api#required": {} } }, "LabelNamespace": { "target": "com.amazonaws.wafv2#LabelName", "traits": { "smithy.api#documentation": "The label namespace prefix for this rule group. All labels added by rules in this rule group have this prefix.
\nThe syntax for the label namespace prefix for your rule groups is the following:
\n\n awswaf:
\n
When a rule with a label matches a web request, AWS WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon:
\n\n
\n
A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
\nFor information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the \n AWS WAF Developer Guide.
" } }, "AvailableLabels": { "target": "com.amazonaws.wafv2#LabelSummaries", "traits": { "smithy.api#documentation": "The labels that one or more rules in this rule group add to matching web ACLs. These labels are defined in the RuleLabels
for a Rule.
The labels that one or more rules in this rule group match against in label match statements. These labels are defined in a LabelMatchStatement
specification, in the Statement definition of a rule.
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. This allows others to reuse the rule group with confidence in its capacity requirements.
" } }, "com.amazonaws.wafv2#RuleGroupReferenceStatement": { "type": "structure", "members": { "ARN": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the entity.
", "smithy.api#required": {} } }, "ExcludedRules": { "target": "com.amazonaws.wafv2#ExcludedRules", "traits": { "smithy.api#documentation": "The names of rules that are in the referenced rule group, but that you want AWS WAF to exclude from processing for this rule statement.
" } } }, "traits": { "smithy.api#documentation": "A rule statement used to run the rules that are defined in a RuleGroup. To use this, create a rule group with your rules, then provide the ARN of the rule group in this statement.
\nYou cannot nest a RuleGroupReferenceStatement
, for example for use inside a NotStatement
or OrStatement
. It can only be referenced as a top-level statement within a rule.
The name of the data type instance. You cannot change the name after you create the instance.
" } }, "Id": { "target": "com.amazonaws.wafv2#EntityId", "traits": { "smithy.api#documentation": "A unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
" } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the rule group that helps with identification.
" } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
The Amazon Resource Name (ARN) of the entity.
" } } }, "traits": { "smithy.api#documentation": "High-level information about a RuleGroup, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage a RuleGroup
, and the ARN, that you provide to the RuleGroupReferenceStatement to use the rule group in a Rule.
The name of the rule.
" } }, "Action": { "target": "com.amazonaws.wafv2#RuleAction" } }, "traits": { "smithy.api#documentation": "High-level information about a Rule, returned by operations like DescribeManagedRuleGroup. This provides information like the ID, that you can use to retrieve and manage a RuleGroup
, and the ARN, that you provide to the RuleGroupReferenceStatement to use the rule group in a Rule.
A complex type that contains detailed information about the request.
", "smithy.api#required": {} } }, "Weight": { "target": "com.amazonaws.wafv2#SampleWeight", "traits": { "smithy.api#documentation": "A value that indicates how one result in the response relates \n proportionally to other results in the response. \n For example, a result that has a weight of 2
represents roughly twice \n as many web requests as a result \n that has a weight of 1
.
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
" } }, "Action": { "target": "com.amazonaws.wafv2#Action", "traits": { "smithy.api#documentation": "The action for the Rule
that the request matched: ALLOW
, BLOCK
, or COUNT
.
The name of the Rule
that the request matched. For managed rule groups, the format for this name is
. For your own rule\n groups, the format for this name is
. If the rule is not in a rule group, this field is absent.
Custom request headers inserted by AWS WAF into the request, according to the custom request configuration for the matching rule action.
" } }, "ResponseCodeSent": { "target": "com.amazonaws.wafv2#ResponseStatusCode", "traits": { "smithy.api#documentation": "The response code that was sent for the request.
" } }, "Labels": { "target": "com.amazonaws.wafv2#Labels", "traits": { "smithy.api#documentation": "Labels applied to the web request by matching rules. AWS WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.
\nFor example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA
or awswaf:managed:aws:managed-rule-set:header:encoding:utf8
.
Represents a single sampled web request. The response from GetSampledRequests includes a SampledHTTPRequests
complex type that \n appears as SampledRequests
in the response syntax. SampledHTTPRequests
contains an array of SampledHTTPRequest
objects.
The name of the query header to inspect.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "One of the headers in a web request, identified by name, for example, User-Agent
or Referer
. This setting isn't case sensitive.
This is used only to indicate the web request component for AWS WAF to inspect, in the FieldToMatch specification.
" } }, "com.amazonaws.wafv2#SingleQueryArgument": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#FieldToMatchData", "traits": { "smithy.api#documentation": "The name of the query argument to inspect.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "One query argument in a web request, identified by name, for example UserName or SalesRegion. The name can be up to 30 characters long and isn't case sensitive.
" } }, "com.amazonaws.wafv2#Size": { "type": "long", "traits": { "smithy.api#range": { "min": 0, "max": 21474836480 } } }, "com.amazonaws.wafv2#SizeConstraintStatement": { "type": "structure", "members": { "FieldToMatch": { "target": "com.amazonaws.wafv2#FieldToMatch", "traits": { "smithy.api#documentation": "The part of a web request that you want AWS WAF to inspect. For more information, see FieldToMatch.
", "smithy.api#required": {} } }, "ComparisonOperator": { "target": "com.amazonaws.wafv2#ComparisonOperator", "traits": { "smithy.api#documentation": "The operator to use to compare the request part to the size setting.
", "smithy.api#required": {} } }, "Size": { "target": "com.amazonaws.wafv2#Size", "traits": { "smithy.api#documentation": "The size, in byte, to compare to the request part, after any transformations.
", "smithy.api#required": {} } }, "TextTransformations": { "target": "com.amazonaws.wafv2#TextTransformations", "traits": { "smithy.api#documentation": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. \n If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the \n content of the request component identified by FieldToMatch
, starting from the lowest priority setting, before inspecting the content for a match.
A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.
\nIf you configure AWS WAF to inspect the request body, AWS WAF inspects only the first 8192 bytes (8 KB). If the request body for your web requests never exceeds 8192 bytes, you can create a size constraint condition and block requests that have a request body greater than 8192 bytes.
\nIf you choose URI for the value of Part of the request to filter on, the slash (/) in the URI counts as one character. For example, the URI /logo.jpg
is nine characters long.
The part of a web request that you want AWS WAF to inspect. For more information, see FieldToMatch.
", "smithy.api#required": {} } }, "TextTransformations": { "target": "com.amazonaws.wafv2#TextTransformations", "traits": { "smithy.api#documentation": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. \n If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the \n content of the request component identified by FieldToMatch
, starting from the lowest priority setting, before inspecting the content for a match.
Attackers sometimes insert malicious SQL code into web requests in an effort to extract data from your database. To allow or block web requests that appear to contain malicious SQL code, create one or more SQL injection match conditions. An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. Later in the process, when you create a web ACL, you specify whether to allow or block requests that appear to contain malicious SQL code.
" } }, "com.amazonaws.wafv2#Statement": { "type": "structure", "members": { "ByteMatchStatement": { "target": "com.amazonaws.wafv2#ByteMatchStatement", "traits": { "smithy.api#documentation": "A rule statement that defines a string match search for AWS WAF to apply to web requests. The byte match statement provides the bytes to search for, the location in requests that you want AWS WAF to search, and other settings. The bytes to search for are typically a string that corresponds with ASCII characters. In the AWS WAF console and the developer guide, this is refered to as a string match statement.
" } }, "SqliMatchStatement": { "target": "com.amazonaws.wafv2#SqliMatchStatement", "traits": { "smithy.api#documentation": "Attackers sometimes insert malicious SQL code into web requests in an effort to extract data from your database. To allow or block web requests that appear to contain malicious SQL code, create one or more SQL injection match conditions. An SQL injection match condition identifies the part of web requests, such as the URI or the query string, that you want AWS WAF to inspect. Later in the process, when you create a web ACL, you specify whether to allow or block requests that appear to contain malicious SQL code.
" } }, "XssMatchStatement": { "target": "com.amazonaws.wafv2#XssMatchStatement", "traits": { "smithy.api#documentation": "A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. \n XSS attacks are those where the attacker uses vulnerabilities in a benign website as a vehicle to inject malicious \n client-site scripts into other legitimate web browsers. \n The XSS match statement provides the location in requests that you want AWS WAF to search and text transformations \n to use on the search area before AWS WAF searches for character sequences that are likely to be malicious strings.
" } }, "SizeConstraintStatement": { "target": "com.amazonaws.wafv2#SizeConstraintStatement", "traits": { "smithy.api#documentation": "A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<). For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.
\nIf you configure AWS WAF to inspect the request body, AWS WAF inspects only the first 8192 bytes (8 KB). If the request body for your web requests never exceeds 8192 bytes, you can create a size constraint condition and block requests that have a request body greater than 8192 bytes.
\nIf you choose URI for the value of Part of the request to filter on, the slash (/) in the URI counts as one character. For example, the URI /logo.jpg
is nine characters long.
A rule statement used to identify web requests based on country of origin.
" } }, "RuleGroupReferenceStatement": { "target": "com.amazonaws.wafv2#RuleGroupReferenceStatement", "traits": { "smithy.api#documentation": "A rule statement used to run the rules that are defined in a RuleGroup. To use this, create a rule group with your rules, then provide the ARN of the rule group in this statement.
\nYou cannot nest a RuleGroupReferenceStatement
, for example for use inside a NotStatement
or OrStatement
. It can only be referenced as a top-level statement within a rule.
A rule statement used to detect web requests coming from particular IP addresses or address ranges. To use this, create an IPSet that specifies the addresses you want to detect, then use the ARN of that set in this statement. To create an IP set, see CreateIPSet.
\nEach IP set rule statement references an IP set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.
" } }, "RegexPatternSetReferenceStatement": { "target": "com.amazonaws.wafv2#RegexPatternSetReferenceStatement", "traits": { "smithy.api#documentation": "A rule statement used to search web request components for matches with regular expressions. To use this, create a RegexPatternSet that specifies the expressions that you want to detect, then use the ARN of that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set. To create a regex pattern set, see CreateRegexPatternSet.
\nEach regex pattern set rule statement references a regex pattern set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.
" } }, "RateBasedStatement": { "target": "com.amazonaws.wafv2#RateBasedStatement", "traits": { "smithy.api#documentation": "A rate-based rule tracks the rate of requests for each originating IP address, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any 5-minute time span. You can use this to put a temporary block on requests from an IP address that is sending excessive requests.
\nWhen the rule action triggers, AWS WAF blocks additional requests from the IP address until the request rate falls below the limit.
\nYou can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts requests that match the nested statement. For example, based on recent requests that you have seen from an attacker, you might create a rate-based rule with a nested AND rule statement that contains the following nested statements:
\nAn IP match statement with an IP set that specified the address 192.0.2.44.
\nA string match statement that searches in the User-Agent header for the string BadBot.
\nIn this rate-based rule, you also define a rate limit. For this example, the rate limit is 1,000. Requests that meet both of the conditions in the statements are counted. If the count exceeds 1,000 requests per five minutes, the rule action triggers. Requests that do not meet both conditions are not counted towards the rate limit and are not affected by this rule.
\nYou cannot nest a RateBasedStatement
, for example for use inside a NotStatement
or OrStatement
. It can only be referenced as a top-level statement within a rule.
A logical rule statement used to combine other rule statements with AND logic. You provide more than one Statement within the AndStatement
.
A logical rule statement used to combine other rule statements with OR logic. You provide more than one Statement within the OrStatement
.
A logical rule statement used to negate the results of another rule statement. You provide one Statement within the NotStatement
.
A rule statement used to run the rules that are defined in a managed rule group. To use this, provide the vendor name and the name of the rule group in this statement. You can retrieve the required names by calling ListAvailableManagedRuleGroups.
\nYou can't nest a ManagedRuleGroupStatement
, for example for use inside a NotStatement
or OrStatement
. It can only be referenced as a top-level statement within a rule.
A rule statement that defines a string match search against labels that have been added to the web request by rules that have already run in the web ACL.
\nThe label match statement provides the label or namespace string to search for. The label string can represent a part or all of the fully qualified label name that had been added to the web request. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label. If you do not provide the fully qualified name in your label match string, AWS WAF performs the search for labels that were added in the same context as the label match statement.
" } } }, "traits": { "smithy.api#documentation": "The processing guidance for a Rule, used by AWS WAF to determine whether a web request matches the rule.
" } }, "com.amazonaws.wafv2#Statements": { "type": "list", "member": { "target": "com.amazonaws.wafv2#Statement" } }, "com.amazonaws.wafv2#Tag": { "type": "structure", "members": { "Key": { "target": "com.amazonaws.wafv2#TagKey", "traits": { "smithy.api#documentation": "Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as \"customer.\" Tag keys are case-sensitive.
", "smithy.api#required": {} } }, "Value": { "target": "com.amazonaws.wafv2#TagValue", "traits": { "smithy.api#documentation": "Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as \"companyA\" or \"companyB.\" Tag values are case-sensitive.
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "A tag associated with an AWS resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as \"environment\", and the tag value represents a \n specific value within that category, such as \"test,\" \"development,\" or \"production\". Or you might set the tag key to \"customer\" and the value to the customer name or ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a resource.
\nYou can tag the AWS resources that you manage through AWS WAF: web ACLs, rule groups, IP \n sets, and regex pattern sets. You can't manage or view tags through the AWS WAF console.
" } }, "com.amazonaws.wafv2#TagInfoForResource": { "type": "structure", "members": { "ResourceARN": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource.
" } }, "TagList": { "target": "com.amazonaws.wafv2#TagList", "traits": { "smithy.api#documentation": "The array of Tag objects defined for the resource.
" } } }, "traits": { "smithy.api#documentation": "The collection of tagging definitions for an AWS resource. Tags are key:value pairs that you can use to categorize and manage your resources, for purposes like billing or other management. Typically, the tag key represents a category, such as \"environment\", and the tag value represents a \n specific value within that category, such as \"test,\" \"development,\" or \"production\". Or you might set the tag key to \"customer\" and the value to the customer name or ID. You can specify one or more tags to add to each AWS resource, up to 50 tags for a resource.
\nYou can tag the AWS resources that you manage through AWS WAF: web ACLs, rule groups, IP \n sets, and regex pattern sets. You can't manage or view tags through the AWS WAF console.
" } }, "com.amazonaws.wafv2#TagKey": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" } }, "com.amazonaws.wafv2#TagKeyList": { "type": "list", "member": { "target": "com.amazonaws.wafv2#TagKey" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.wafv2#TagList": { "type": "list", "member": { "target": "com.amazonaws.wafv2#Tag" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.wafv2#TagResource": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#TagResourceRequest" }, "output": { "target": "com.amazonaws.wafv2#TagResourceResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidOperationException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFLimitsExceededException" }, { "target": "com.amazonaws.wafv2#WAFNonexistentItemException" }, { "target": "com.amazonaws.wafv2#WAFTagOperationException" }, { "target": "com.amazonaws.wafv2#WAFTagOperationInternalErrorException" } ], "traits": { "smithy.api#documentation": "Associates tags with the specified AWS 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 to add to each AWS resource, up to 50 tags for a resource.
\nYou can tag the AWS resources that you manage through AWS WAF: web ACLs, rule groups, IP \n sets, and regex pattern sets. You can't manage or view tags through the AWS WAF console.
" } }, "com.amazonaws.wafv2#TagResourceRequest": { "type": "structure", "members": { "ResourceARN": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource.
", "smithy.api#required": {} } }, "Tags": { "target": "com.amazonaws.wafv2#TagList", "traits": { "smithy.api#documentation": "An array of key:value pairs to associate with the resource.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#TagResourceResponse": { "type": "structure", "members": {} }, "com.amazonaws.wafv2#TagValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 }, "smithy.api#pattern": "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$" } }, "com.amazonaws.wafv2#TextTransformation": { "type": "structure", "members": { "Priority": { "target": "com.amazonaws.wafv2#TextTransformationPriority", "traits": { "smithy.api#documentation": "Sets the relative processing order for multiple transformations that are defined for a rule statement. AWS WAF processes all\n transformations, from lowest priority to highest, before inspecting the transformed content. The priorities don't need to be consecutive, but they must all be different.
", "smithy.api#required": {} } }, "Type": { "target": "com.amazonaws.wafv2#TextTransformationType", "traits": { "smithy.api#documentation": "You can specify the following transformation types:
\n\n CMD_LINE\n
\nWhen you're concerned that attackers are injecting an operating system command line\n command and using unusual formatting to disguise some or all of the command, use this\n option to perform the following transformations:
\nDelete the following characters: \\ \" ' ^
\nDelete spaces before the following characters: / (
\nReplace the following characters with a space: , ;
\nReplace multiple spaces with one space
\nConvert uppercase letters (A-Z) to lowercase (a-z)
\n\n COMPRESS_WHITE_SPACE\n
\nUse this option to replace the following characters with a space character (decimal 32):
\n\\f, formfeed, decimal 12
\n\\t, tab, decimal 9
\n\\n, newline, decimal 10
\n\\r, carriage return, decimal 13
\n\\v, vertical tab, decimal 11
\nnon-breaking space, decimal 160
\n\n COMPRESS_WHITE_SPACE
also replaces multiple spaces with one space.
\n HTML_ENTITY_DECODE\n
\nUse this option to replace HTML-encoded characters with unencoded characters. HTML_ENTITY_DECODE
performs \n the following operations:
Replaces (ampersand)quot;
with \"
\n
Replaces (ampersand)nbsp;
with a non-breaking space, decimal 160
Replaces (ampersand)lt;
with a \"less than\" symbol
Replaces (ampersand)gt;
with >
\n
Replaces characters that are represented in hexadecimal format, (ampersand)#xhhhh;
, with the corresponding characters
Replaces characters that are represented in decimal format, (ampersand)#nnnn;
, with the corresponding \n characters
\n LOWERCASE\n
\nUse this option to convert uppercase letters (A-Z) to lowercase (a-z).
\t\t\n\n URL_DECODE\n
\nUse this option to decode a URL-encoded value.
\t\t\n\n NONE\n
\nSpecify NONE
if you don't want any text transformations.
Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. \n
" } }, "com.amazonaws.wafv2#TextTransformationPriority": { "type": "integer", "traits": { "smithy.api#range": { "min": 0 } } }, "com.amazonaws.wafv2#TextTransformationType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "NONE", "name": "NONE" }, { "value": "COMPRESS_WHITE_SPACE", "name": "COMPRESS_WHITE_SPACE" }, { "value": "HTML_ENTITY_DECODE", "name": "HTML_ENTITY_DECODE" }, { "value": "LOWERCASE", "name": "LOWERCASE" }, { "value": "CMD_LINE", "name": "CMD_LINE" }, { "value": "URL_DECODE", "name": "URL_DECODE" } ] } }, "com.amazonaws.wafv2#TextTransformations": { "type": "list", "member": { "target": "com.amazonaws.wafv2#TextTransformation" }, "traits": { "smithy.api#length": { "min": 1 } } }, "com.amazonaws.wafv2#TimeWindow": { "type": "structure", "members": { "StartTime": { "target": "com.amazonaws.wafv2#Timestamp", "traits": { "smithy.api#documentation": "The beginning of the time range from which you want GetSampledRequests
to return a sample of the requests that your \n AWS resource received. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z
. For example, \"2016-09-27T14:50Z\"
. You can specify any time range in the previous three hours.
The end of the time range from which you want GetSampledRequests
to return a sample of the requests that your \n AWS resource received. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z
. For example, \"2016-09-27T14:50Z\"
. You can specify any time range in the previous three hours.
In a GetSampledRequests request, the StartTime
and EndTime
objects specify the time range \n for which you want AWS WAF to return a sample of web requests.
You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z
. For example, \"2016-09-27T14:50Z\"
. You can specify any time range in the previous three hours.
In a GetSampledRequests response, the StartTime
and EndTime
objects specify the time range \n for which AWS WAF actually returned a sample of web requests. AWS WAF gets the specified number of requests from among the first \n 5,000 requests that your AWS resource receives during the specified time period. If your resource receives more than 5,000 \n requests during that period, AWS WAF stops sampling after the 5,000th request. In that case, EndTime
\n is the time that AWS WAF received the 5,000th request.
Disassociates tags from an AWS resource. Tags are key:value pairs that you can associate with AWS 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 to 50 tags to each AWS resource.
" } }, "com.amazonaws.wafv2#UntagResourceRequest": { "type": "structure", "members": { "ResourceARN": { "target": "com.amazonaws.wafv2#ResourceArn", "traits": { "smithy.api#documentation": "The Amazon Resource Name (ARN) of the resource.
", "smithy.api#required": {} } }, "TagKeys": { "target": "com.amazonaws.wafv2#TagKeyList", "traits": { "smithy.api#documentation": "An array of keys identifying the tags to disassociate from the resource.
", "smithy.api#required": {} } } } }, "com.amazonaws.wafv2#UntagResourceResponse": { "type": "structure", "members": {} }, "com.amazonaws.wafv2#UpdateIPSet": { "type": "operation", "input": { "target": "com.amazonaws.wafv2#UpdateIPSetRequest" }, "output": { "target": "com.amazonaws.wafv2#UpdateIPSetResponse" }, "errors": [ { "target": "com.amazonaws.wafv2#WAFDuplicateItemException" }, { "target": "com.amazonaws.wafv2#WAFInternalErrorException" }, { "target": "com.amazonaws.wafv2#WAFInvalidOperationException" }, { "target": "com.amazonaws.wafv2#WAFInvalidParameterException" }, { "target": "com.amazonaws.wafv2#WAFLimitsExceededException" }, { "target": "com.amazonaws.wafv2#WAFNonexistentItemException" }, { "target": "com.amazonaws.wafv2#WAFOptimisticLockException" } ], "traits": { "smithy.api#documentation": "Updates the specified IPSet.
\nThis operation completely replaces any IP address specifications that you already have in the IP set with the ones that you provide to this call. If you want to add to or modify the addresses that are already in the IP set, retrieve those by calling GetIPSet, update them, and provide the complete updated array of IP addresses to this call.
\nThe name of the IP set. You cannot change the name of an IPSet
after you create it.
Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the IP set that helps with identification.
" } }, "Addresses": { "target": "com.amazonaws.wafv2#IPAddresses", "traits": { "smithy.api#documentation": "Contains an array of strings that specify one or more IP addresses or blocks of IP addresses in Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all IPv4 and IPv6 CIDR ranges except for /0.
\nExamples:
\nTo configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32
.
To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify \n 192.0.2.0/24
.
To configure AWS WAF to allow, block, or count requests that originated from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128
.
To configure AWS WAF to allow, block, or count requests that originated from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify 1111:0000:0000:0000:0000:0000:0000:0000/64
.
For more information about CIDR notation, see the Wikipedia entry Classless\n Inter-Domain Routing.
", "smithy.api#required": {} } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
A token used for optimistic locking. AWS WAF returns this token to your update requests. You use NextLockToken
in the same manner as you use LockToken
.
Updates the specified RegexPatternSet.
" } }, "com.amazonaws.wafv2#UpdateRegexPatternSetRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the set. You cannot change the name after you create the set.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the set that helps with identification.
" } }, "RegularExpressionList": { "target": "com.amazonaws.wafv2#RegularExpressionList", "traits": { "smithy.api#documentation": "", "smithy.api#required": {} } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
A token used for optimistic locking. AWS WAF returns this token to your update requests. You use NextLockToken
in the same manner as you use LockToken
.
Updates the specified RuleGroup.
\nA 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. This allows others to reuse the rule group with confidence in its capacity requirements.
" } }, "com.amazonaws.wafv2#UpdateRuleGroupRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the rule group. You cannot change the name of a rule group after you create it.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nA unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the rule group that helps with identification.
" } }, "Rules": { "target": "com.amazonaws.wafv2#Rules", "traits": { "smithy.api#documentation": "The Rule statements used to identify the web requests that you \n want to allow, block, or count. Each rule includes one top-level statement that AWS WAF uses to identify matching \n web requests, and parameters that govern how AWS WAF handles them. \n
" } }, "VisibilityConfig": { "target": "com.amazonaws.wafv2#VisibilityConfig", "traits": { "smithy.api#documentation": "Defines and enables Amazon CloudWatch metrics and web request sample collection.
", "smithy.api#required": {} } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
\nFor information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the \n AWS WAF Developer Guide.
" } } } }, "com.amazonaws.wafv2#UpdateRuleGroupResponse": { "type": "structure", "members": { "NextLockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns this token to your update requests. You use NextLockToken
in the same manner as you use LockToken
.
Updates the specified WebACL.
\nA Web ACL defines a collection of rules to use to inspect and control web requests. Each rule has an action defined (allow, block, or count) for requests that match the statement of the rule. In the Web ACL, you assign a default action to take (allow, block) for any request that does not match any of the rules. The rules in a Web ACL can be a combination of the types Rule, RuleGroup, and managed rule group. You can associate a Web ACL with one or more AWS resources to protect. The resources can be Amazon CloudFront, an Amazon API Gateway REST API, an Application Load Balancer, or an AWS AppSync GraphQL API.
" } }, "com.amazonaws.wafv2#UpdateWebACLRequest": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the Web ACL. You cannot change the name of a Web ACL after you create it.
", "smithy.api#required": {} } }, "Scope": { "target": "com.amazonaws.wafv2#Scope", "traits": { "smithy.api#documentation": "Specifies whether this is for an AWS CloudFront distribution or for a regional application. A regional application can be an Application Load Balancer (ALB), an API Gateway REST API, or an AppSync GraphQL API.
\nTo work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:
\nCLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1
.
API and SDKs - For all calls, use the Region endpoint us-east-1.
\nThe unique identifier for the Web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
", "smithy.api#required": {} } }, "DefaultAction": { "target": "com.amazonaws.wafv2#DefaultAction", "traits": { "smithy.api#documentation": "The action to perform if none of the Rules
contained in the WebACL
match.
A description of the Web ACL that helps with identification.
" } }, "Rules": { "target": "com.amazonaws.wafv2#Rules", "traits": { "smithy.api#documentation": "The Rule statements used to identify the web requests that you \n want to allow, block, or count. Each rule includes one top-level statement that AWS WAF uses to identify matching \n web requests, and parameters that govern how AWS WAF handles them. \n
" } }, "VisibilityConfig": { "target": "com.amazonaws.wafv2#VisibilityConfig", "traits": { "smithy.api#documentation": "Defines and enables Amazon CloudWatch metrics and web request sample collection.
", "smithy.api#required": {} } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the web ACL, and then use them in the rules and default actions that you define in the web ACL.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
\nFor information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the \n AWS WAF Developer Guide.
" } } } }, "com.amazonaws.wafv2#UpdateWebACLResponse": { "type": "structure", "members": { "NextLockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns this token to your update requests. You use NextLockToken
in the same manner as you use LockToken
.
The path component of the URI of a web request. This is the part of a web request that identifies a resource, for example, /images/daily-ad.jpg
.
This is used only to indicate the web request component for AWS WAF to inspect, in the FieldToMatch specification.
" } }, "com.amazonaws.wafv2#VendorName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": ".*\\S.*" } }, "com.amazonaws.wafv2#VisibilityConfig": { "type": "structure", "members": { "SampledRequestsEnabled": { "target": "com.amazonaws.wafv2#Boolean", "traits": { "smithy.api#documentation": "A boolean indicating whether AWS WAF should store a sampling of the web \n requests that match the rules. You can view the sampled requests through the \n AWS WAF console.
", "smithy.api#required": {} } }, "CloudWatchMetricsEnabled": { "target": "com.amazonaws.wafv2#Boolean", "traits": { "smithy.api#documentation": "A boolean indicating whether the associated resource sends metrics to CloudWatch. For the list of available metrics, see AWS WAF Metrics.
", "smithy.api#required": {} } }, "MetricName": { "target": "com.amazonaws.wafv2#MetricName", "traits": { "smithy.api#documentation": "A name of the CloudWatch metric. The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain\n whitespace or metric names reserved for AWS WAF, for example \"All\" and \"Default_Action.\"
", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "Defines and enables Amazon CloudWatch metrics and web request sample collection.
" } }, "com.amazonaws.wafv2#WAFAssociatedItemException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "AWS WAF couldn’t perform the operation because your resource is being used by another resource or it’s associated with another resource.
", "smithy.api#error": "client" } }, "com.amazonaws.wafv2#WAFDuplicateItemException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "AWS WAF couldn’t perform the operation because the resource that you tried to save is a duplicate of an existing one.
", "smithy.api#error": "client" } }, "com.amazonaws.wafv2#WAFInternalErrorException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "Your request is valid, but AWS WAF couldn’t perform the operation because of a system problem. Retry your request.
", "smithy.api#error": "server" } }, "com.amazonaws.wafv2#WAFInvalidOperationException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "The operation isn't valid.
", "smithy.api#error": "client" } }, "com.amazonaws.wafv2#WAFInvalidParameterException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.wafv2#ErrorMessage" }, "Field": { "target": "com.amazonaws.wafv2#ParameterExceptionField" }, "Parameter": { "target": "com.amazonaws.wafv2#ParameterExceptionParameter" }, "Reason": { "target": "com.amazonaws.wafv2#ErrorReason" } }, "traits": { "smithy.api#documentation": "The operation failed because AWS WAF didn't recognize a parameter in the request. For example:
\nYou specified an invalid parameter name or value.
\nYour nested statement isn't valid. You might have tried to nest a statement that can’t be nested.
\nYou tried to update a WebACL
with a DefaultAction
that isn't among the types\n available at DefaultAction.
Your request references an ARN that is malformed, or corresponds to a resource with which a Web ACL cannot be associated.
\nThe operation failed because the specified policy isn't in the proper format.
\n \nThe policy specifications must conform to the following:
\nThe policy must be composed using IAM Policy version 2012-10-17 or version 2015-01-01.
\nThe policy must include specifications for Effect
, Action
, and Principal
.
\n Effect
must specify Allow
.
\n Action
must specify wafv2:CreateWebACL
, wafv2:UpdateWebACL
, and wafv2:PutFirewallManagerRuleGroups
. AWS WAF rejects any extra actions or wildcard actions in the policy.
The policy must not include a Resource
parameter.
For more information, see IAM Policies.
", "smithy.api#error": "client" } }, "com.amazonaws.wafv2#WAFInvalidResourceException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "AWS WAF couldn’t perform the operation because the resource that you requested isn’t valid. Check the resource, and try again.
", "smithy.api#error": "client" } }, "com.amazonaws.wafv2#WAFLimitsExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "AWS WAF couldn’t perform the operation because you exceeded your resource limit. For example, the maximum number of WebACL
objects that you can create \n for an AWS account. For more information, see \n Limits in the AWS WAF Developer Guide.
AWS WAF couldn’t perform the operation because your resource doesn’t exist.
", "smithy.api#error": "client" } }, "com.amazonaws.wafv2#WAFOptimisticLockException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "AWS WAF couldn’t save your changes because you tried to update or delete a resource that has changed since you last retrieved it. Get the resource again, make any changes you need to make to the new copy, and retry your operation.
", "smithy.api#error": "client" } }, "com.amazonaws.wafv2#WAFServiceLinkedRoleErrorException": { "type": "structure", "members": { "message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "AWS WAF is not able to access the service linked role. This can be caused by a previous PutLoggingConfiguration
request, which can lock the service linked role for about 20 seconds. Please try your request again. The service linked role can also be locked by a previous DeleteServiceLinkedRole
request, which can lock the role for 15 minutes or more. If you recently made a call to DeleteServiceLinkedRole
, wait at least 15 minutes and try the request again. If you receive this same exception again, you will have to wait additional time until the role is unlocked.
You tried to use a managed rule group that's available by subscription, but you aren't subscribed to it yet.
", "smithy.api#error": "client" } }, "com.amazonaws.wafv2#WAFTagOperationException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "An error occurred during the tagging operation. Retry your request.
", "smithy.api#error": "client" } }, "com.amazonaws.wafv2#WAFTagOperationInternalErrorException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "AWS WAF couldn’t perform your tagging operation because of an internal error. Retry your request.
", "smithy.api#error": "server" } }, "com.amazonaws.wafv2#WAFUnavailableEntityException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.wafv2#ErrorMessage" } }, "traits": { "smithy.api#documentation": "AWS WAF couldn’t retrieve the resource that you requested. Retry your request.
", "smithy.api#error": "client" } }, "com.amazonaws.wafv2#WebACL": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the Web ACL. You cannot change the name of a Web ACL after you create it.
", "smithy.api#required": {} } }, "Id": { "target": "com.amazonaws.wafv2#EntityId", "traits": { "smithy.api#documentation": "A unique identifier for the WebACL
. This ID is returned in the responses to create and list commands. You use this ID to do things like get, update, and delete a WebACL
.
The Amazon Resource Name (ARN) of the Web ACL that you want to associate with the resource.
", "smithy.api#required": {} } }, "DefaultAction": { "target": "com.amazonaws.wafv2#DefaultAction", "traits": { "smithy.api#documentation": "The action to perform if none of the Rules
contained in the WebACL
match.
A description of the Web ACL that helps with identification.
" } }, "Rules": { "target": "com.amazonaws.wafv2#Rules", "traits": { "smithy.api#documentation": "The Rule statements used to identify the web requests that you \n want to allow, block, or count. Each rule includes one top-level statement that AWS WAF uses to identify matching \n web requests, and parameters that govern how AWS WAF handles them. \n
" } }, "VisibilityConfig": { "target": "com.amazonaws.wafv2#VisibilityConfig", "traits": { "smithy.api#documentation": "Defines and enables Amazon CloudWatch metrics and web request sample collection.
", "smithy.api#required": {} } }, "Capacity": { "target": "com.amazonaws.wafv2#ConsumedCapacity", "traits": { "smithy.api#documentation": "The web ACL capacity units (WCUs) currently being used by this web ACL.
\nAWS WAF uses WCUs to calculate and control the operating\n resources that are used to run your rules, rule groups, and web ACLs. AWS WAF\n calculates capacity differently for each rule type, to reflect the relative cost of each rule. \n Simple rules that cost little to run use fewer WCUs than more complex rules\n\t\t\t\tthat use more processing power. \n\t\t\t\tRule group capacity is fixed at creation, which helps users plan their \n web ACL WCU usage when they use a rule group. \n The WCU limit for web ACLs is 1,500.
" } }, "PreProcessFirewallManagerRuleGroups": { "target": "com.amazonaws.wafv2#FirewallManagerRuleGroups", "traits": { "smithy.api#documentation": "The first set of rules for AWS WAF to process in the web ACL. This is defined in an AWS Firewall Manager WAF policy and \n contains only rule group references. You can't alter these. Any rules and rule groups that you define for the web ACL are \n prioritized after these.
\nIn the Firewall Manager WAF policy, the Firewall Manager administrator can define a set of rule groups to run first in the web ACL \n and a set of rule groups to run last. Within each set, the administrator prioritizes the rule groups, to\n determine their relative processing order.
" } }, "PostProcessFirewallManagerRuleGroups": { "target": "com.amazonaws.wafv2#FirewallManagerRuleGroups", "traits": { "smithy.api#documentation": "The last set of rules for AWS WAF to process in the web ACL. This is defined in an AWS Firewall Manager WAF policy and \n contains only rule group references. You can't alter these. Any rules and rule groups that you define for the web ACL are \n prioritized before these.
\nIn the Firewall Manager WAF policy, the Firewall Manager administrator can define a set of rule groups to run first in the web ACL \n and a set of rule groups to run last. Within each set, the administrator prioritizes the rule groups, to\n determine their relative processing order.
" } }, "ManagedByFirewallManager": { "target": "com.amazonaws.wafv2#Boolean", "traits": { "smithy.api#documentation": "Indicates whether this web ACL is managed by AWS Firewall Manager. If true, then only AWS Firewall Manager can delete the web ACL or any Firewall Manager rule groups in the web ACL.
" } }, "LabelNamespace": { "target": "com.amazonaws.wafv2#LabelName", "traits": { "smithy.api#documentation": "The label namespace prefix for this web ACL. All labels added by rules in this web ACL have this prefix.
\nThe syntax for the label namespace prefix for a web ACL is the following:
\n\n awswaf:
\n
When a rule with a label matches a web request, AWS WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon:
\n\n
\n
A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the web ACL, and then use them in the rules and default actions that you define in the web ACL.
\nFor information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the \n AWS WAF Developer Guide.
\nFor information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the \n AWS WAF Developer Guide.
" } } }, "traits": { "smithy.api#documentation": "A Web ACL defines a collection of rules to use to inspect and control web requests. Each rule has an action defined (allow, block, or count) for requests that match the statement of the rule. In the Web ACL, you assign a default action to take (allow, block) for any request that does not match any of the rules. The rules in a Web ACL can be a combination of the types Rule, RuleGroup, and managed rule group. You can associate a Web ACL with one or more AWS resources to protect. The resources can be Amazon CloudFront, an Amazon API Gateway REST API, an Application Load Balancer, or an AWS AppSync GraphQL API.
" } }, "com.amazonaws.wafv2#WebACLSummaries": { "type": "list", "member": { "target": "com.amazonaws.wafv2#WebACLSummary" } }, "com.amazonaws.wafv2#WebACLSummary": { "type": "structure", "members": { "Name": { "target": "com.amazonaws.wafv2#EntityName", "traits": { "smithy.api#documentation": "The name of the Web ACL. You cannot change the name of a Web ACL after you create it.
" } }, "Id": { "target": "com.amazonaws.wafv2#EntityId", "traits": { "smithy.api#documentation": "The unique identifier for the Web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
" } }, "Description": { "target": "com.amazonaws.wafv2#EntityDescription", "traits": { "smithy.api#documentation": "A description of the Web ACL that helps with identification.
" } }, "LockToken": { "target": "com.amazonaws.wafv2#LockToken", "traits": { "smithy.api#documentation": "A token used for optimistic locking. AWS WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. AWS WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException
. If this happens, perform another get, and use the new token returned by that operation.
The Amazon Resource Name (ARN) of the entity.
" } } }, "traits": { "smithy.api#documentation": "High-level information about a WebACL, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage a WebACL
, and the ARN, that you provide to operations like AssociateWebACL.
The part of a web request that you want AWS WAF to inspect. For more information, see FieldToMatch.
", "smithy.api#required": {} } }, "TextTransformations": { "target": "com.amazonaws.wafv2#TextTransformations", "traits": { "smithy.api#documentation": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. \n If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the \n content of the request component identified by FieldToMatch
, starting from the lowest priority setting, before inspecting the content for a match.
A rule statement that defines a cross-site scripting (XSS) match search for AWS WAF to apply to web requests. \n XSS attacks are those where the attacker uses vulnerabilities in a benign website as a vehicle to inject malicious \n client-site scripts into other legitimate web browsers. \n The XSS match statement provides the location in requests that you want AWS WAF to search and text transformations \n to use on the search area before AWS WAF searches for character sequences that are likely to be malicious strings.
" } } } }