Show / Hide Table of Contents

Class CfnWebACLPropsMixin.ResponseInspectionStatusCodeProperty

Configures inspection of the response status code. This is part of the ResponseInspection configuration for AWSManagedRulesATPRuleSet and AWSManagedRulesACFPRuleSet .

Inheritance
object
CfnWebACLPropsMixin.ResponseInspectionStatusCodeProperty
Implements
CfnWebACLPropsMixin.IResponseInspectionStatusCodeProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.Mixins.Preview.AWS.WAFv2.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnWebACLPropsMixin.ResponseInspectionStatusCodeProperty : CfnWebACLPropsMixin.IResponseInspectionStatusCodeProperty
Syntax (vb)
Public Class CfnWebACLPropsMixin.ResponseInspectionStatusCodeProperty Implements CfnWebACLPropsMixin.IResponseInspectionStatusCodeProperty
Remarks
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-responseinspectionstatuscode.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.Mixins.Preview.AWS.WAFv2.Mixins;

             var responseInspectionStatusCodeProperty = new ResponseInspectionStatusCodeProperty {
                 FailureCodes = new [] { 123 },
                 SuccessCodes = new [] { 123 }
             };

Synopsis

Constructors

ResponseInspectionStatusCodeProperty()

Configures inspection of the response status code. This is part of the ResponseInspection configuration for AWSManagedRulesATPRuleSet and AWSManagedRulesACFPRuleSet .

Properties

FailureCodes

Status codes in the response that indicate a failed login or account creation attempt.

SuccessCodes

Status codes in the response that indicate a successful login or account creation attempt.

Constructors

ResponseInspectionStatusCodeProperty()

Configures inspection of the response status code. This is part of the ResponseInspection configuration for AWSManagedRulesATPRuleSet and AWSManagedRulesACFPRuleSet .

public ResponseInspectionStatusCodeProperty()
Remarks
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-responseinspectionstatuscode.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.Mixins.Preview.AWS.WAFv2.Mixins;

             var responseInspectionStatusCodeProperty = new ResponseInspectionStatusCodeProperty {
                 FailureCodes = new [] { 123 },
                 SuccessCodes = new [] { 123 }
             };

Properties

FailureCodes

Status codes in the response that indicate a failed login or account creation attempt.

public object? FailureCodes { get; set; }
Property Value

object

Remarks

To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.

JSON example: "FailureCodes": [ 400, 404 ]

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

Type union: either (double)[] or IResolvable

SuccessCodes

Status codes in the response that indicate a successful login or account creation attempt.

public object? SuccessCodes { get; set; }
Property Value

object

Remarks

To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.

JSON example: "SuccessCodes": [ 200, 201 ]

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

Type union: either (double)[] or IResolvable

Implements

CfnWebACLPropsMixin.IResponseInspectionStatusCodeProperty
Back to top Generated by DocFX