Struct aws_sdk_shield::types::builders::ApplicationLayerAutomaticResponseConfigurationBuilder
source · #[non_exhaustive]pub struct ApplicationLayerAutomaticResponseConfigurationBuilder { /* private fields */ }
Expand description
A builder for ApplicationLayerAutomaticResponseConfiguration
.
Implementations§
source§impl ApplicationLayerAutomaticResponseConfigurationBuilder
impl ApplicationLayerAutomaticResponseConfigurationBuilder
sourcepub fn status(self, input: ApplicationLayerAutomaticResponseStatus) -> Self
pub fn status(self, input: ApplicationLayerAutomaticResponseStatus) -> Self
Indicates whether automatic application layer DDoS mitigation is enabled for the protection.
This field is required.sourcepub fn set_status(
self,
input: Option<ApplicationLayerAutomaticResponseStatus>,
) -> Self
pub fn set_status( self, input: Option<ApplicationLayerAutomaticResponseStatus>, ) -> Self
Indicates whether automatic application layer DDoS mitigation is enabled for the protection.
sourcepub fn get_status(&self) -> &Option<ApplicationLayerAutomaticResponseStatus>
pub fn get_status(&self) -> &Option<ApplicationLayerAutomaticResponseStatus>
Indicates whether automatic application layer DDoS mitigation is enabled for the protection.
sourcepub fn action(self, input: ResponseAction) -> Self
pub fn action(self, input: ResponseAction) -> Self
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.
This field is required.sourcepub fn set_action(self, input: Option<ResponseAction>) -> Self
pub fn set_action(self, input: Option<ResponseAction>) -> Self
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.
sourcepub fn get_action(&self) -> &Option<ResponseAction>
pub fn get_action(&self) -> &Option<ResponseAction>
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.
sourcepub fn build(
self,
) -> Result<ApplicationLayerAutomaticResponseConfiguration, BuildError>
pub fn build( self, ) -> Result<ApplicationLayerAutomaticResponseConfiguration, BuildError>
Consumes the builder and constructs a ApplicationLayerAutomaticResponseConfiguration
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ApplicationLayerAutomaticResponseConfigurationBuilder
impl Clone for ApplicationLayerAutomaticResponseConfigurationBuilder
source§fn clone(&self) -> ApplicationLayerAutomaticResponseConfigurationBuilder
fn clone(&self) -> ApplicationLayerAutomaticResponseConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ApplicationLayerAutomaticResponseConfigurationBuilder
impl Default for ApplicationLayerAutomaticResponseConfigurationBuilder
source§fn default() -> ApplicationLayerAutomaticResponseConfigurationBuilder
fn default() -> ApplicationLayerAutomaticResponseConfigurationBuilder
source§impl PartialEq for ApplicationLayerAutomaticResponseConfigurationBuilder
impl PartialEq for ApplicationLayerAutomaticResponseConfigurationBuilder
source§fn eq(
&self,
other: &ApplicationLayerAutomaticResponseConfigurationBuilder,
) -> bool
fn eq( &self, other: &ApplicationLayerAutomaticResponseConfigurationBuilder, ) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ApplicationLayerAutomaticResponseConfigurationBuilder
Auto Trait Implementations§
impl Freeze for ApplicationLayerAutomaticResponseConfigurationBuilder
impl RefUnwindSafe for ApplicationLayerAutomaticResponseConfigurationBuilder
impl Send for ApplicationLayerAutomaticResponseConfigurationBuilder
impl Sync for ApplicationLayerAutomaticResponseConfigurationBuilder
impl Unpin for ApplicationLayerAutomaticResponseConfigurationBuilder
impl UnwindSafe for ApplicationLayerAutomaticResponseConfigurationBuilder
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