Show / Hide Table of Contents

Class CfnWebACL.ResponseInspectionJsonProperty

Configures inspection of the response JSON.

Inheritance
object
CfnWebACL.ResponseInspectionJsonProperty
Implements
CfnWebACL.IResponseInspectionJsonProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnWebACL.ResponseInspectionJsonProperty : CfnWebACL.IResponseInspectionJsonProperty
Syntax (vb)
Public Class CfnWebACL.ResponseInspectionJsonProperty Implements 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

Constructors

ResponseInspectionJsonProperty()

Configures inspection of the response JSON.

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.

Constructors

ResponseInspectionJsonProperty()

Configures inspection of the response JSON.

public ResponseInspectionJsonProperty()
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" }
             };

Properties

FailureValues

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

public string[] FailureValues { get; set; }
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.

public string Identifier { get; set; }
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.

public string[] SuccessValues { get; set; }
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

Implements

CfnWebACL.IResponseInspectionJsonProperty
Back to top Generated by DocFX