Struct aws_sdk_shield::input::UpdateProtectionGroupInput
source · #[non_exhaustive]pub struct UpdateProtectionGroupInput { /* private fields */ }
Implementations§
source§impl UpdateProtectionGroupInput
impl UpdateProtectionGroupInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateProtectionGroup, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<UpdateProtectionGroup, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<UpdateProtectionGroup
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture UpdateProtectionGroupInput
.
source§impl UpdateProtectionGroupInput
impl UpdateProtectionGroupInput
sourcepub fn protection_group_id(&self) -> Option<&str>
pub fn protection_group_id(&self) -> Option<&str>
The name of the protection group. You use this to identify the protection group in lists and to manage the protection group, for example to update, delete, or describe it.
sourcepub fn aggregation(&self) -> Option<&ProtectionGroupAggregation>
pub fn aggregation(&self) -> Option<&ProtectionGroupAggregation>
Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.
-
Sum - Use the total traffic across the group. This is a good choice for most cases. Examples include Elastic IP addresses for EC2 instances that scale manually or automatically.
-
Mean - Use the average of the traffic across the group. This is a good choice for resources that share traffic uniformly. Examples include accelerators and load balancers.
-
Max - Use the highest traffic from each resource. This is useful for resources that don't share traffic and for resources that share that traffic in a non-uniform way. Examples include Amazon CloudFront distributions and origin resources for CloudFront distributions.
sourcepub fn pattern(&self) -> Option<&ProtectionGroupPattern>
pub fn pattern(&self) -> Option<&ProtectionGroupPattern>
The criteria to use to choose the protected resources for inclusion in the group. You can include all resources that have protections, provide a list of resource Amazon Resource Names (ARNs), or include all resources of a specified resource type.
sourcepub fn resource_type(&self) -> Option<&ProtectedResourceType>
pub fn resource_type(&self) -> Option<&ProtectedResourceType>
The resource type to include in the protection group. All protected resources of this type are included in the protection group. You must set this when you set Pattern
to BY_RESOURCE_TYPE
and you must not set it for any other Pattern
setting.
Trait Implementations§
source§impl Clone for UpdateProtectionGroupInput
impl Clone for UpdateProtectionGroupInput
source§fn clone(&self) -> UpdateProtectionGroupInput
fn clone(&self) -> UpdateProtectionGroupInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateProtectionGroupInput
impl Debug for UpdateProtectionGroupInput
source§impl PartialEq<UpdateProtectionGroupInput> for UpdateProtectionGroupInput
impl PartialEq<UpdateProtectionGroupInput> for UpdateProtectionGroupInput
source§fn eq(&self, other: &UpdateProtectionGroupInput) -> bool
fn eq(&self, other: &UpdateProtectionGroupInput) -> bool
self
and other
values to be equal, and is used
by ==
.