# Packages
Package wafiface provides an interface to enable mocking the AWS WAF service client for testing your code.
# Functions
New creates a new instance of the WAF client with a session.
# Constants
ChangeActionDelete is a ChangeAction enum value.
ChangeActionInsert is a ChangeAction enum value.
ChangeTokenStatusInsync is a ChangeTokenStatus enum value.
ChangeTokenStatusPending is a ChangeTokenStatus enum value.
ChangeTokenStatusProvisioned is a ChangeTokenStatus enum value.
ComparisonOperatorEq is a ComparisonOperator enum value.
ComparisonOperatorGe is a ComparisonOperator enum value.
ComparisonOperatorGt is a ComparisonOperator enum value.
ComparisonOperatorLe is a ComparisonOperator enum value.
ComparisonOperatorLt is a ComparisonOperator enum value.
ComparisonOperatorNe is a ComparisonOperator enum value.
Service ID for Regions and Endpoints metadata.
ErrCodeDisallowedNameException for service response error code "DisallowedNameException".
ErrCodeInternalErrorException for service response error code "InternalErrorException".
ErrCodeInvalidAccountException for service response error code "InvalidAccountException".
ErrCodeInvalidOperationException for service response error code "InvalidOperationException".
ErrCodeInvalidParameterException for service response error code "InvalidParameterException".
ErrCodeLimitsExceededException for service response error code "LimitsExceededException".
ErrCodeNonEmptyEntityException for service response error code "NonEmptyEntityException".
ErrCodeNonexistentContainerException for service response error code "NonexistentContainerException".
ErrCodeNonexistentItemException for service response error code "NonexistentItemException".
ErrCodeReferencedItemException for service response error code "ReferencedItemException".
ErrCodeStaleDataException for service response error code "StaleDataException".
IPSetDescriptorTypeIpv4 is a IPSetDescriptorType enum value.
IPSetDescriptorTypeIpv6 is a IPSetDescriptorType enum value.
MatchFieldTypeBody is a MatchFieldType enum value.
MatchFieldTypeHeader is a MatchFieldType enum value.
MatchFieldTypeMethod is a MatchFieldType enum value.
MatchFieldTypeQueryString is a MatchFieldType enum value.
MatchFieldTypeUri is a MatchFieldType enum value.
ParameterExceptionFieldByteMatchFieldType is a ParameterExceptionField enum value.
ParameterExceptionFieldByteMatchPositionalConstraint is a ParameterExceptionField enum value.
ParameterExceptionFieldByteMatchTextTransformation is a ParameterExceptionField enum value.
ParameterExceptionFieldChangeAction is a ParameterExceptionField enum value.
ParameterExceptionFieldIpsetType is a ParameterExceptionField enum value.
ParameterExceptionFieldNextMarker is a ParameterExceptionField enum value.
ParameterExceptionFieldPredicateType is a ParameterExceptionField enum value.
ParameterExceptionFieldRateKey is a ParameterExceptionField enum value.
ParameterExceptionFieldRuleType is a ParameterExceptionField enum value.
ParameterExceptionFieldSizeConstraintComparisonOperator is a ParameterExceptionField enum value.
ParameterExceptionFieldSqlInjectionMatchFieldType is a ParameterExceptionField enum value.
ParameterExceptionFieldWafAction is a ParameterExceptionField enum value.
ParameterExceptionReasonIllegalCombination is a ParameterExceptionReason enum value.
ParameterExceptionReasonInvalidOption is a ParameterExceptionReason enum value.
PositionalConstraintContains is a PositionalConstraint enum value.
PositionalConstraintContainsWord is a PositionalConstraint enum value.
PositionalConstraintEndsWith is a PositionalConstraint enum value.
PositionalConstraintExactly is a PositionalConstraint enum value.
PositionalConstraintStartsWith is a PositionalConstraint enum value.
PredicateTypeByteMatch is a PredicateType enum value.
PredicateTypeIpmatch is a PredicateType enum value.
PredicateTypeSizeConstraint is a PredicateType enum value.
PredicateTypeSqlInjectionMatch is a PredicateType enum value.
PredicateTypeXssMatch is a PredicateType enum value.
RateKeyIp is a RateKey enum value.
Service endpoint prefix API calls made to.
TextTransformationCmdLine is a TextTransformation enum value.
TextTransformationCompressWhiteSpace is a TextTransformation enum value.
TextTransformationHtmlEntityDecode is a TextTransformation enum value.
TextTransformationLowercase is a TextTransformation enum value.
TextTransformationNone is a TextTransformation enum value.
TextTransformationUrlDecode is a TextTransformation enum value.
WafActionTypeAllow is a WafActionType enum value.
WafActionTypeBlock is a WafActionType enum value.
WafActionTypeCount is a WafActionType enum value.
WafRuleTypeRateBased is a WafRuleType enum value.
WafRuleTypeRegular is a WafRuleType enum value.
# Structs
The ActivatedRule object in an UpdateWebACL request specifies a Rule that you want to insert or delete, the priority of the Rule in the WebACL, and the action that you want AWS WAF to take when a web request matches the Rule (ALLOW, BLOCK, or COUNT).
In a GetByteMatchSet request, ByteMatchSet is a complex type that contains the ByteMatchSetId and Name of a ByteMatchSet, and the values that you specified when you updated the ByteMatchSet.
Returned by ListByteMatchSets.
In an UpdateByteMatchSet request, ByteMatchSetUpdate specifies whether to insert or delete a ByteMatchTuple and includes the settings for the ByteMatchTuple.
The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateByteMatchSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateByteMatchSetResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateIPSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateIPSetResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRateBasedRuleRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRateBasedRuleResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRuleRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateRuleResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateSizeConstraintSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateSizeConstraintSetResponse.
A request to create a SqlInjectionMatchSet.
The response to a CreateSqlInjectionMatchSet request.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateWebACLRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/CreateWebACLResponse.
A request to create an XssMatchSet.
The response to a CreateXssMatchSet request.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteByteMatchSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteByteMatchSetResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteIPSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteIPSetResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRateBasedRuleRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRateBasedRuleResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRuleRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteRuleResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteSizeConstraintSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteSizeConstraintSetResponse.
A request to delete a SqlInjectionMatchSet from AWS WAF.
The response to a request to delete a SqlInjectionMatchSet from AWS WAF.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteWebACLRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/DeleteWebACLResponse.
A request to delete an XssMatchSet from AWS WAF.
The response to a request to delete an XssMatchSet from AWS WAF.
Specifies where in a web request to look for TargetString.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetByteMatchSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetByteMatchSetResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeTokenRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeTokenResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeTokenStatusRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetChangeTokenStatusResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetIPSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetIPSetResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRateBasedRuleRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRateBasedRuleManagedKeysRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRateBasedRuleManagedKeysResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRateBasedRuleResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRuleRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetRuleResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSampledRequestsRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSampledRequestsResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSizeConstraintSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetSizeConstraintSetResponse.
A request to get a SqlInjectionMatchSet.
The response to a GetSqlInjectionMatchSet request.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetWebACLRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/GetWebACLResponse.
A request to get an XssMatchSet.
The response to a GetXssMatchSet request.
The response from a GetSampledRequests request includes an HTTPHeader complex type that appears as Headers in the response syntax.
The response from a GetSampledRequests request includes an HTTPRequest complex type that appears as Request in the response syntax.
Contains one or more IP addresses or blocks of IP addresses specified in Classless Inter-Domain Routing (CIDR) notation.
Specifies the IP address type (IPV4 or IPV6) and the IP address range (in CIDR format) that web requests originate from.
Contains the identifier and the name of the IPSet.
Specifies the type of update to perform to an IPSet with UpdateIPSet.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListByteMatchSetsRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListByteMatchSetsResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListIPSetsRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListIPSetsResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListRateBasedRulesRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListRateBasedRulesResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListRulesRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListRulesResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSizeConstraintSetsRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListSizeConstraintSetsResponse.
A request to list the SqlInjectionMatchSet objects created by the current AWS account.
The response to a ListSqlInjectionMatchSets request.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListWebACLsRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/ListWebACLsResponse.
A request to list the XssMatchSet objects created by the current AWS account.
The response to a ListXssMatchSets request.
Specifies the ByteMatchSet, IPSet, SqlInjectionMatchSet, XssMatchSet, and SizeConstraintSet objects that you want to add to a Rule and, for each object, indicates whether you want to negate the settings, for example, requests that do NOT originate from the IP address 192.0.2.44.
A RateBasedRule is identical to a regular Rule, with one addition: a RateBasedRule counts the number of requests that arrive from a specified IP address every five minutes.
A combination of ByteMatchSet, IPSet, and/or SqlInjectionMatchSet objects that identify the web requests that you want to allow, block, or count.
Contains the identifier and the friendly name or description of the Rule.
Specifies a Predicate (such as an IPSet) and indicates whether you want to add it to a Rule or delete it from a Rule.
The response from a GetSampledRequests request includes a SampledHTTPRequests complex type that appears as SampledRequests in the response syntax.
Specifies a constraint on the size of a part of the web request.
A complex type that contains SizeConstraint objects, which specify the parts of web requests that you want AWS WAF to inspect the size of.
The Id and Name of a SizeConstraintSet.
Specifies the part of a web request that you want to inspect the size of and indicates whether you want to add the specification to a SizeConstraintSet or delete it from a SizeConstraintSet.
A complex type that contains SqlInjectionMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header.
The Id and Name of a SqlInjectionMatchSet.
Specifies the part of a web request that you want to inspect for snippets of malicious SQL code and indicates whether you want to add the specification to a SqlInjectionMatchSet or delete it from a SqlInjectionMatchSet.
Specifies the part of a web request that you want AWS WAF to inspect for snippets of malicious SQL code and, if you want AWS WAF to inspect a header, the name of the header.
In a GetSampledRequests request, the StartTime and EndTime objects specify the time range for which you want AWS WAF to return a sample of web requests.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateByteMatchSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateByteMatchSetResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateIPSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateIPSetResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateRateBasedRuleRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateRateBasedRuleResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateRuleRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateRuleResponse.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateSizeConstraintSetRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateSizeConstraintSetResponse.
A request to update a SqlInjectionMatchSet.
The response to an UpdateSqlInjectionMatchSets request.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateWebACLRequest.
Please also see https://docs.aws.amazon.com/goto/WebAPI/waf-2015-08-24/UpdateWebACLResponse.
A request to update an XssMatchSet.
The response to an UpdateXssMatchSets request.
WAF provides the API operation methods for making requests to AWS WAF.
For the action that is associated with a rule in a WebACL, specifies the action that you want AWS WAF to perform when a web request matches all of the conditions in a rule.
Contains the Rules that identify the requests that you want to allow, block, or count.
Contains the identifier and the name or description of the WebACL.
Specifies whether to insert a Rule into or delete a Rule from a WebACL.
A complex type that contains XssMatchTuple objects, which specify the parts of web requests that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header.
The Id and Name of an XssMatchSet.
Specifies the part of a web request that you want to inspect for cross-site scripting attacks and indicates whether you want to add the specification to an XssMatchSet or delete it from an XssMatchSet.
Specifies the part of a web request that you want AWS WAF to inspect for cross-site scripting attacks and, if you want AWS WAF to inspect a header, the name of the header.