#[non_exhaustive]pub struct AwsManagedRulesAcfpRuleSetBuilder { /* private fields */ }
Expand description
A builder for AwsManagedRulesAcfpRuleSet
.
Implementations§
source§impl AwsManagedRulesAcfpRuleSetBuilder
impl AwsManagedRulesAcfpRuleSetBuilder
sourcepub fn creation_path(self, input: impl Into<String>) -> Self
pub fn creation_path(self, input: impl Into<String>) -> Self
The path of the account creation endpoint for your application. 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
.
sourcepub fn set_creation_path(self, input: Option<String>) -> Self
pub fn set_creation_path(self, input: Option<String>) -> Self
The path of the account creation endpoint for your application. 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
.
sourcepub fn get_creation_path(&self) -> &Option<String>
pub fn get_creation_path(&self) -> &Option<String>
The path of the account creation endpoint for your application. 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
.
sourcepub fn registration_page_path(self, input: impl Into<String>) -> Self
pub fn registration_page_path(self, input: impl Into<String>) -> Self
The path of the account registration endpoint for your application. 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
.
sourcepub fn set_registration_page_path(self, input: Option<String>) -> Self
pub fn set_registration_page_path(self, input: Option<String>) -> Self
The path of the account registration endpoint for your application. 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
.
sourcepub fn get_registration_page_path(&self) -> &Option<String>
pub fn get_registration_page_path(&self) -> &Option<String>
The path of the account registration endpoint for your application. 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
.
sourcepub fn request_inspection(self, input: RequestInspectionAcfp) -> Self
pub fn request_inspection(self, input: RequestInspectionAcfp) -> Self
The criteria for inspecting account creation requests, used by the ACFP rule group to validate and track account creation attempts.
This field is required.sourcepub fn set_request_inspection(
self,
input: Option<RequestInspectionAcfp>
) -> Self
pub fn set_request_inspection( self, input: Option<RequestInspectionAcfp> ) -> Self
The criteria for inspecting account creation requests, used by the ACFP rule group to validate and track account creation attempts.
sourcepub fn get_request_inspection(&self) -> &Option<RequestInspectionAcfp>
pub fn get_request_inspection(&self) -> &Option<RequestInspectionAcfp>
The criteria for inspecting account creation requests, used by the ACFP rule group to validate and track account creation attempts.
sourcepub fn response_inspection(self, input: ResponseInspection) -> Self
pub fn response_inspection(self, input: ResponseInspection) -> Self
The criteria for inspecting responses to account creation requests, used by the ACFP rule group to track account creation success rates.
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.
sourcepub fn set_response_inspection(self, input: Option<ResponseInspection>) -> Self
pub fn set_response_inspection(self, input: Option<ResponseInspection>) -> Self
The criteria for inspecting responses to account creation requests, used by the ACFP rule group to track account creation success rates.
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.
sourcepub fn get_response_inspection(&self) -> &Option<ResponseInspection>
pub fn get_response_inspection(&self) -> &Option<ResponseInspection>
The criteria for inspecting responses to account creation requests, used by the ACFP rule group to track account creation success rates.
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.
sourcepub fn enable_regex_in_path(self, input: bool) -> Self
pub fn enable_regex_in_path(self, input: bool) -> Self
Allow the use of regular expressions in the registration page path and the account creation path.
sourcepub fn set_enable_regex_in_path(self, input: Option<bool>) -> Self
pub fn set_enable_regex_in_path(self, input: Option<bool>) -> Self
Allow the use of regular expressions in the registration page path and the account creation path.
sourcepub fn get_enable_regex_in_path(&self) -> &Option<bool>
pub fn get_enable_regex_in_path(&self) -> &Option<bool>
Allow the use of regular expressions in the registration page path and the account creation path.
sourcepub fn build(self) -> Result<AwsManagedRulesAcfpRuleSet, BuildError>
pub fn build(self) -> Result<AwsManagedRulesAcfpRuleSet, BuildError>
Consumes the builder and constructs a AwsManagedRulesAcfpRuleSet
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AwsManagedRulesAcfpRuleSetBuilder
impl Clone for AwsManagedRulesAcfpRuleSetBuilder
source§fn clone(&self) -> AwsManagedRulesAcfpRuleSetBuilder
fn clone(&self) -> AwsManagedRulesAcfpRuleSetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsManagedRulesAcfpRuleSetBuilder
impl Default for AwsManagedRulesAcfpRuleSetBuilder
source§fn default() -> AwsManagedRulesAcfpRuleSetBuilder
fn default() -> AwsManagedRulesAcfpRuleSetBuilder
source§impl PartialEq for AwsManagedRulesAcfpRuleSetBuilder
impl PartialEq for AwsManagedRulesAcfpRuleSetBuilder
source§fn eq(&self, other: &AwsManagedRulesAcfpRuleSetBuilder) -> bool
fn eq(&self, other: &AwsManagedRulesAcfpRuleSetBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.