Struct aws_sdk_shield::types::ResponseAction  
source · #[non_exhaustive]pub struct ResponseAction {
    pub block: Option<BlockAction>,
    pub count: Option<CountAction>,
}Expand description
Specifies the action setting that Shield Advanced should use in the WAF rules that it creates on behalf of the protected resource in response to DDoS attacks. You specify this as part of the configuration for the automatic application layer DDoS mitigation feature, when you enable or update automatic mitigation. Shield Advanced creates the WAF rules in a Shield Advanced-managed rule group, inside the web ACL that you have associated with the resource.
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.block: Option<BlockAction>Specifies that Shield Advanced should configure its WAF rules with the WAF Block action.
You must specify exactly one action, either Block or Count.
count: Option<CountAction>Specifies that Shield Advanced should configure its WAF rules with the WAF Count action.
You must specify exactly one action, either Block or Count.
Implementations§
source§impl ResponseAction
 
impl ResponseAction
sourcepub fn block(&self) -> Option<&BlockAction>
 
pub fn block(&self) -> Option<&BlockAction>
Specifies that Shield Advanced should configure its WAF rules with the WAF Block action.
You must specify exactly one action, either Block or Count.
sourcepub fn count(&self) -> Option<&CountAction>
 
pub fn count(&self) -> Option<&CountAction>
Specifies that Shield Advanced should configure its WAF rules with the WAF Count action.
You must specify exactly one action, either Block or Count.
source§impl ResponseAction
 
impl ResponseAction
sourcepub fn builder() -> ResponseActionBuilder
 
pub fn builder() -> ResponseActionBuilder
Creates a new builder-style object to manufacture ResponseAction.
Trait Implementations§
source§impl Clone for ResponseAction
 
impl Clone for ResponseAction
source§fn clone(&self) -> ResponseAction
 
fn clone(&self) -> ResponseAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResponseAction
 
impl Debug for ResponseAction
source§impl PartialEq for ResponseAction
 
impl PartialEq for ResponseAction
source§fn eq(&self, other: &ResponseAction) -> bool
 
fn eq(&self, other: &ResponseAction) -> bool
self and other values to be equal, and is used
by ==.