Show / Hide Table of Contents

Interface CfnWebACL.IResponseInspectionJsonProperty

Configures inspection of the response JSON.

Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnWebACL.IResponseInspectionJsonProperty
Syntax (vb)
Public Interface CfnWebACL.IResponseInspectionJsonProperty
Remarks

AWS WAF can inspect the first 65,536 bytes (64 KB) of the response JSON. This is part of the ResponseInspection configuration for AWSManagedRulesATPRuleSet and AWSManagedRulesACFPRuleSet .

Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.WAFv2;

             var responseInspectionJsonProperty = new ResponseInspectionJsonProperty {
                 FailureValues = new [] { "failureValues" },
                 Identifier = "identifier",
                 SuccessValues = new [] { "successValues" }
             };

Synopsis

Properties

FailureValues

Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt.

Identifier

The identifier for the value to match against in the JSON.

SuccessValues

Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt.

Properties

FailureValues

Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt.

string[] FailureValues { get; }
Property Value

string[]

Remarks

To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.

JSON example: "FailureValues": [ "False", "Failed" ]

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html#cfn-wafv2-webacl-responseinspectionjson-failurevalues

Identifier

The identifier for the value to match against in the JSON.

string Identifier { get; }
Property Value

string

Remarks

The identifier must be an exact match, including case.

JSON examples: "Identifier": [ "/login/success" ] and "Identifier": [ "/sign-up/success" ]

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html#cfn-wafv2-webacl-responseinspectionjson-identifier

SuccessValues

Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt.

string[] SuccessValues { get; }
Property Value

string[]

Remarks

To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.

JSON example: "SuccessValues": [ "True", "Succeeded" ]

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html#cfn-wafv2-webacl-responseinspectionjson-successvalues

Back to top Generated by DocFX