#[non_exhaustive]pub struct GetSampledRequestsInput {
pub web_acl_id: Option<String>,
pub rule_id: Option<String>,
pub time_window: Option<TimeWindow>,
pub max_items: Option<i64>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.web_acl_id: Option<String>The WebACLId of the WebACL for which you want GetSampledRequests to return a sample of requests.
rule_id: Option<String>RuleId is one of three values:
-
The
RuleIdof theRuleor theRuleGroupIdof theRuleGroupfor which you wantGetSampledRequeststo return a sample of requests. -
Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
time_window: Option<TimeWindow>The start date and time and the end date and time of the range for which you want GetSampledRequests to return a sample of requests. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z". You can specify any time range in the previous three hours.
max_items: Option<i64>The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of MaxItems, GetSampledRequests returns information about all of them.
Implementations§
source§impl GetSampledRequestsInput
impl GetSampledRequestsInput
sourcepub fn web_acl_id(&self) -> Option<&str>
pub fn web_acl_id(&self) -> Option<&str>
The WebACLId of the WebACL for which you want GetSampledRequests to return a sample of requests.
sourcepub fn rule_id(&self) -> Option<&str>
pub fn rule_id(&self) -> Option<&str>
RuleId is one of three values:
-
The
RuleIdof theRuleor theRuleGroupIdof theRuleGroupfor which you wantGetSampledRequeststo return a sample of requests. -
Default_Action, which causesGetSampledRequeststo return a sample of the requests that didn't match any of the rules in the specifiedWebACL.
sourcepub fn time_window(&self) -> Option<&TimeWindow>
pub fn time_window(&self) -> Option<&TimeWindow>
The start date and time and the end date and time of the range for which you want GetSampledRequests to return a sample of requests. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z". You can specify any time range in the previous three hours.
sourcepub fn max_items(&self) -> Option<i64>
pub fn max_items(&self) -> Option<i64>
The number of requests that you want AWS WAF to return from among the first 5,000 requests that your AWS resource received during the time range. If your resource received fewer requests than the value of MaxItems, GetSampledRequests returns information about all of them.
source§impl GetSampledRequestsInput
impl GetSampledRequestsInput
sourcepub fn builder() -> GetSampledRequestsInputBuilder
pub fn builder() -> GetSampledRequestsInputBuilder
Creates a new builder-style object to manufacture GetSampledRequestsInput.
Trait Implementations§
source§impl Clone for GetSampledRequestsInput
impl Clone for GetSampledRequestsInput
source§fn clone(&self) -> GetSampledRequestsInput
fn clone(&self) -> GetSampledRequestsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetSampledRequestsInput
impl Debug for GetSampledRequestsInput
source§impl PartialEq for GetSampledRequestsInput
impl PartialEq for GetSampledRequestsInput
source§fn eq(&self, other: &GetSampledRequestsInput) -> bool
fn eq(&self, other: &GetSampledRequestsInput) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GetSampledRequestsInput
Auto Trait Implementations§
impl Freeze for GetSampledRequestsInput
impl RefUnwindSafe for GetSampledRequestsInput
impl Send for GetSampledRequestsInput
impl Sync for GetSampledRequestsInput
impl Unpin for GetSampledRequestsInput
impl UnwindSafe for GetSampledRequestsInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more