#[non_exhaustive]pub struct AwsManagedRulesAtpRuleSetBuilder { /* private fields */ }
Expand description
A builder for AwsManagedRulesAtpRuleSet
.
Implementations§
source§impl AwsManagedRulesAtpRuleSetBuilder
impl AwsManagedRulesAtpRuleSetBuilder
sourcepub fn login_path(self, input: impl Into<String>) -> Self
pub fn login_path(self, input: impl Into<String>) -> Self
The path of the login endpoint for your application. For example, for the URL https://example.com/web/login
, you would provide the path /web/login
. Login paths that start with the path that you provide are considered a match. For example /web/login
matches the login paths /web/login
, /web/login/
, /web/loginPage
, and /web/login/thisPage
, but doesn't match the login path /home/web/login
or /website/login
.
The rule group inspects only HTTP POST
requests to your specified login endpoint.
sourcepub fn set_login_path(self, input: Option<String>) -> Self
pub fn set_login_path(self, input: Option<String>) -> Self
The path of the login endpoint for your application. For example, for the URL https://example.com/web/login
, you would provide the path /web/login
. Login paths that start with the path that you provide are considered a match. For example /web/login
matches the login paths /web/login
, /web/login/
, /web/loginPage
, and /web/login/thisPage
, but doesn't match the login path /home/web/login
or /website/login
.
The rule group inspects only HTTP POST
requests to your specified login endpoint.
sourcepub fn get_login_path(&self) -> &Option<String>
pub fn get_login_path(&self) -> &Option<String>
The path of the login endpoint for your application. For example, for the URL https://example.com/web/login
, you would provide the path /web/login
. Login paths that start with the path that you provide are considered a match. For example /web/login
matches the login paths /web/login
, /web/login/
, /web/loginPage
, and /web/login/thisPage
, but doesn't match the login path /home/web/login
or /website/login
.
The rule group inspects only HTTP POST
requests to your specified login endpoint.
sourcepub fn request_inspection(self, input: RequestInspection) -> Self
pub fn request_inspection(self, input: RequestInspection) -> Self
The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.
sourcepub fn set_request_inspection(self, input: Option<RequestInspection>) -> Self
pub fn set_request_inspection(self, input: Option<RequestInspection>) -> Self
The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.
sourcepub fn get_request_inspection(&self) -> &Option<RequestInspection>
pub fn get_request_inspection(&self) -> &Option<RequestInspection>
The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.
sourcepub fn response_inspection(self, input: ResponseInspection) -> Self
pub fn response_inspection(self, input: ResponseInspection) -> Self
The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates.
Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
The ATP rule group evaluates the responses that your protected resources send back to client login attempts, keeping count of successful and failed attempts for 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 failed login 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 login requests, used by the ATP rule group to track login failure rates.
Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
The ATP rule group evaluates the responses that your protected resources send back to client login attempts, keeping count of successful and failed attempts for 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 failed login 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 login requests, used by the ATP rule group to track login failure rates.
Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
The ATP rule group evaluates the responses that your protected resources send back to client login attempts, keeping count of successful and failed attempts for 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 failed login 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 login page 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 login page 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 login page path.
sourcepub fn build(self) -> Result<AwsManagedRulesAtpRuleSet, BuildError>
pub fn build(self) -> Result<AwsManagedRulesAtpRuleSet, BuildError>
Consumes the builder and constructs a AwsManagedRulesAtpRuleSet
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AwsManagedRulesAtpRuleSetBuilder
impl Clone for AwsManagedRulesAtpRuleSetBuilder
source§fn clone(&self) -> AwsManagedRulesAtpRuleSetBuilder
fn clone(&self) -> AwsManagedRulesAtpRuleSetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsManagedRulesAtpRuleSetBuilder
impl Default for AwsManagedRulesAtpRuleSetBuilder
source§fn default() -> AwsManagedRulesAtpRuleSetBuilder
fn default() -> AwsManagedRulesAtpRuleSetBuilder
source§impl PartialEq for AwsManagedRulesAtpRuleSetBuilder
impl PartialEq for AwsManagedRulesAtpRuleSetBuilder
source§fn eq(&self, other: &AwsManagedRulesAtpRuleSetBuilder) -> bool
fn eq(&self, other: &AwsManagedRulesAtpRuleSetBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.