Struct aws_sdk_shield::model::ResponseAction
source · [−]#[non_exhaustive]pub struct ResponseAction { /* private fields */ }
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.
Implementations
sourceimpl 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
.
sourceimpl ResponseAction
impl ResponseAction
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ResponseAction
.
Trait Implementations
sourceimpl Clone for ResponseAction
impl Clone for ResponseAction
sourcefn clone(&self) -> ResponseAction
fn clone(&self) -> ResponseAction
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more