Skip to content
v2.278.0

AWSManagedRulesACFPRuleSetProperty Struct ​

Details for your use of the account creation fraud prevention managed rule group, AWSManagedRulesACFPRuleSet .

This configuration is used in ManagedRuleGroupConfig .

For additional information about this and the other intelligent threat mitigation rule groups, see Intelligent threat mitigation in AWS WAF and AWS Managed Rules rule groups list in the AWS WAF Developer Guide .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const aWSManagedRulesACFPRuleSetProperty: wafv2.CfnWebACL.AWSManagedRulesACFPRuleSetProperty = {
  creationPath: 'creationPath',
  registrationPagePath: 'registrationPagePath',
  requestInspection: {
    payloadType: 'payloadType',

    // the properties below are optional
    addressFields: [{
      identifier: 'identifier',
    }],
    emailField: {
      identifier: 'identifier',
    },
    passwordField: {
      identifier: 'identifier',
    },
    phoneNumberFields: [{
      identifier: 'identifier',
    }],
    usernameField: {
      identifier: 'identifier',
    },
  },

  // the properties below are optional
  enableRegexInPath: false,
  responseInspection: {
    bodyContains: {
      failureStrings: ['failureStrings'],
      successStrings: ['successStrings'],
    },
    header: {
      failureValues: ['failureValues'],
      name: 'name',
      successValues: ['successValues'],
    },
    json: {
      failureValues: ['failureValues'],
      identifier: 'identifier',
      successValues: ['successValues'],
    },
    statusCode: {
      failureCodes: [123],
      successCodes: [123],
    },
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_wafv2 as wafv2

a_ws_managed_rules_acfp_rule_set_property = wafv2.CfnWebACL.AWSManagedRulesACFPRuleSetProperty(
    creation_path="creationPath",
    registration_page_path="registrationPagePath",
    request_inspection=wafv2.CfnWebACL.RequestInspectionACFPProperty(
        payload_type="payloadType",

        # the properties below are optional
        address_fields=[wafv2.CfnWebACL.FieldIdentifierProperty(
            identifier="identifier"
        )],
        email_field=wafv2.CfnWebACL.FieldIdentifierProperty(
            identifier="identifier"
        ),
        password_field=wafv2.CfnWebACL.FieldIdentifierProperty(
            identifier="identifier"
        ),
        phone_number_fields=[wafv2.CfnWebACL.FieldIdentifierProperty(
            identifier="identifier"
        )],
        username_field=wafv2.CfnWebACL.FieldIdentifierProperty(
            identifier="identifier"
        )
    ),

    # the properties below are optional
    enable_regex_in_path=False,
    response_inspection=wafv2.CfnWebACL.ResponseInspectionProperty(
        body_contains=wafv2.CfnWebACL.ResponseInspectionBodyContainsProperty(
            failure_strings=["failureStrings"],
            success_strings=["successStrings"]
        ),
        header=wafv2.CfnWebACL.ResponseInspectionHeaderProperty(
            failure_values=["failureValues"],
            name="name",
            success_values=["successValues"]
        ),
        json=wafv2.CfnWebACL.ResponseInspectionJsonProperty(
            failure_values=["failureValues"],
            identifier="identifier",
            success_values=["successValues"]
        ),
        status_code=wafv2.CfnWebACL.ResponseInspectionStatusCodeProperty(
            failure_codes=[123],
            success_codes=[123]
        )
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wafv2.*;

AWSManagedRulesACFPRuleSetProperty aWSManagedRulesACFPRuleSetProperty = AWSManagedRulesACFPRuleSetProperty.builder()
        .creationPath("creationPath")
        .registrationPagePath("registrationPagePath")
        .requestInspection(RequestInspectionACFPProperty.builder()
                .payloadType("payloadType")

                // the properties below are optional
                .addressFields(List.of(FieldIdentifierProperty.builder()
                        .identifier("identifier")
                        .build()))
                .emailField(FieldIdentifierProperty.builder()
                        .identifier("identifier")
                        .build())
                .passwordField(FieldIdentifierProperty.builder()
                        .identifier("identifier")
                        .build())
                .phoneNumberFields(List.of(FieldIdentifierProperty.builder()
                        .identifier("identifier")
                        .build()))
                .usernameField(FieldIdentifierProperty.builder()
                        .identifier("identifier")
                        .build())
                .build())

        // the properties below are optional
        .enableRegexInPath(false)
        .responseInspection(ResponseInspectionProperty.builder()
                .bodyContains(ResponseInspectionBodyContainsProperty.builder()
                        .failureStrings(List.of("failureStrings"))
                        .successStrings(List.of("successStrings"))
                        .build())
                .header(ResponseInspectionHeaderProperty.builder()
                        .failureValues(List.of("failureValues"))
                        .name("name")
                        .successValues(List.of("successValues"))
                        .build())
                .json(ResponseInspectionJsonProperty.builder()
                        .failureValues(List.of("failureValues"))
                        .identifier("identifier")
                        .successValues(List.of("successValues"))
                        .build())
                .statusCode(ResponseInspectionStatusCodeProperty.builder()
                        .failureCodes(List.of(123))
                        .successCodes(List.of(123))
                        .build())
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 aWSManagedRulesACFPRuleSetProperty = new AWSManagedRulesACFPRuleSetProperty {
    CreationPath = "creationPath",
    RegistrationPagePath = "registrationPagePath",
    RequestInspection = new RequestInspectionACFPProperty {
        PayloadType = "payloadType",

        // the properties below are optional
        AddressFields = new [] { new FieldIdentifierProperty {
            Identifier = "identifier"
        } },
        EmailField = new FieldIdentifierProperty {
            Identifier = "identifier"
        },
        PasswordField = new FieldIdentifierProperty {
            Identifier = "identifier"
        },
        PhoneNumberFields = new [] { new FieldIdentifierProperty {
            Identifier = "identifier"
        } },
        UsernameField = new FieldIdentifierProperty {
            Identifier = "identifier"
        }
    },

    // the properties below are optional
    EnableRegexInPath = false,
    ResponseInspection = new ResponseInspectionProperty {
        BodyContains = new ResponseInspectionBodyContainsProperty {
            FailureStrings = new [] { "failureStrings" },
            SuccessStrings = new [] { "successStrings" }
        },
        Header = new ResponseInspectionHeaderProperty {
            FailureValues = new [] { "failureValues" },
            Name = "name",
            SuccessValues = new [] { "successValues" }
        },
        Json = new ResponseInspectionJsonProperty {
            FailureValues = new [] { "failureValues" },
            Identifier = "identifier",
            SuccessValues = new [] { "successValues" }
        },
        StatusCode = new ResponseInspectionStatusCodeProperty {
            FailureCodes = new [] { 123 },
            SuccessCodes = new [] { 123 }
        }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

aWSManagedRulesACFPRuleSetProperty := &AWSManagedRulesACFPRuleSetProperty{
	CreationPath: jsii.String("creationPath"),
	RegistrationPagePath: jsii.String("registrationPagePath"),
	RequestInspection: &RequestInspectionACFPProperty{
		PayloadType: jsii.String("payloadType"),

		// the properties below are optional
		AddressFields: []interface{}{
			&FieldIdentifierProperty{
				Identifier: jsii.String("identifier"),
			},
		},
		EmailField: &FieldIdentifierProperty{
			Identifier: jsii.String("identifier"),
		},
		PasswordField: &FieldIdentifierProperty{
			Identifier: jsii.String("identifier"),
		},
		PhoneNumberFields: []interface{}{
			&FieldIdentifierProperty{
				Identifier: jsii.String("identifier"),
			},
		},
		UsernameField: &FieldIdentifierProperty{
			Identifier: jsii.String("identifier"),
		},
	},

	// the properties below are optional
	EnableRegexInPath: jsii.Boolean(false),
	ResponseInspection: &ResponseInspectionProperty{
		BodyContains: &ResponseInspectionBodyContainsProperty{
			FailureStrings: []*string{
				jsii.String("failureStrings"),
			},
			SuccessStrings: []*string{
				jsii.String("successStrings"),
			},
		},
		Header: &ResponseInspectionHeaderProperty{
			FailureValues: []*string{
				jsii.String("failureValues"),
			},
			Name: jsii.String("name"),
			SuccessValues: []*string{
				jsii.String("successValues"),
			},
		},
		Json: &ResponseInspectionJsonProperty{
			FailureValues: []*string{
				jsii.String("failureValues"),
			},
			Identifier: jsii.String("identifier"),
			SuccessValues: []*string{
				jsii.String("successValues"),
			},
		},
		StatusCode: &ResponseInspectionStatusCodeProperty{
			FailureCodes: []interface{}{
				jsii.Number(123),
			},
			SuccessCodes: []interface{}{
				jsii.Number(123),
			},
		},
	},
}

Properties ​

creationPathstringcreation_pathstrcreationPathStringCreationPathstringCreationPath*string required #
The path of the account creation endpoint for your application.
notes

This is the page on your website that accepts the completed registration form for a new user. This page must accept POST requests.

For example, for the URL https://example.com/web/newaccount , you would provide the path /web/newaccount . Account creation page paths that start with the path that you provide are considered a match. For example /web/newaccount matches the account creation paths /web/newaccount , /web/newaccount/ , /web/newaccountPage , and /web/newaccount/thisPage , but doesn't match the path /home/web/newaccount or /website/newaccount .

enableRegexInPathoptionalboolean | IResolvableenable_regex_in_pathoptionaltyping.Union[bool, IResolvable]enableRegexInPathoptionalBooleanEnableRegexInPathoptionalboolEnableRegexInPathoptionalinterface{} #
Allow the use of regular expressions in the registration page path and the account creation path.
registrationPagePathstringregistration_page_pathstrregistrationPagePathStringRegistrationPagePathstringRegistrationPagePath*string required #
The path of the account registration endpoint for your application.
notes

This is the page on your website that presents the registration form to new users.

This page must accept GET text/html requests.

For example, for the URL https://example.com/web/registration , you would provide the path /web/registration . Registration page paths that start with the path that you provide are considered a match. For example /web/registration matches the registration paths /web/registration , /web/registration/ , /web/registrationPage , and /web/registration/thisPage , but doesn't match the path /home/web/registration or /website/registration .

requestInspectionIResolvable | CfnWebACL.RequestInspectionACFPPropertyrequest_inspectiontyping.Union[IResolvable, RequestInspectionACFPProperty]requestInspectionIResolvableRequestInspectionIResolvableRequestInspectioninterface{} required #
The criteria for inspecting account creation requests, used by the ACFP rule group to validate and track account creation attempts.
responseInspectionoptionalIResolvable | CfnWebACL.ResponseInspectionPropertyresponse_inspectionoptionaltyping.Union[IResolvable, ResponseInspectionProperty]responseInspectionoptionalIResolvableResponseInspectionoptionalIResolvableResponseInspectionoptionalinterface{} #
The criteria for inspecting responses to account creation requests, used by the ACFP rule group to track account creation success rates.
notes

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

The ACFP rule group evaluates the responses that your protected resources send back to client account creation attempts, keeping count of successful and failed attempts from each IP address and client session. Using this information, the rule group labels and mitigates requests from client sessions and IP addresses that have had too many successful account creation attempts in a short amount of time.