pub struct UpdateProtectionGroupRequest {
pub aggregation: String,
pub members: Option<Vec<String>>,
pub pattern: String,
pub protection_group_id: String,
pub resource_type: Option<String>,
}
Fields
aggregation: String
Defines how AWS 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 CloudFront distributions and origin resources for CloudFront distributions.
members: Option<Vec<String>>
The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set Pattern
to ARBITRARY
and you must not set it for any other Pattern
setting.
pattern: String
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.
protection_group_id: String
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.
resource_type: Option<String>
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
sourceimpl Clone for UpdateProtectionGroupRequest
impl Clone for UpdateProtectionGroupRequest
sourcefn clone(&self) -> UpdateProtectionGroupRequest
fn clone(&self) -> UpdateProtectionGroupRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UpdateProtectionGroupRequest
impl Debug for UpdateProtectionGroupRequest
sourceimpl Default for UpdateProtectionGroupRequest
impl Default for UpdateProtectionGroupRequest
sourcefn default() -> UpdateProtectionGroupRequest
fn default() -> UpdateProtectionGroupRequest
Returns the “default value” for a type. Read more
sourceimpl PartialEq<UpdateProtectionGroupRequest> for UpdateProtectionGroupRequest
impl PartialEq<UpdateProtectionGroupRequest> for UpdateProtectionGroupRequest
sourcefn eq(&self, other: &UpdateProtectionGroupRequest) -> bool
fn eq(&self, other: &UpdateProtectionGroupRequest) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UpdateProtectionGroupRequest) -> bool
fn ne(&self, other: &UpdateProtectionGroupRequest) -> bool
This method tests for !=
.
impl StructuralPartialEq for UpdateProtectionGroupRequest
Auto Trait Implementations
impl RefUnwindSafe for UpdateProtectionGroupRequest
impl Send for UpdateProtectionGroupRequest
impl Sync for UpdateProtectionGroupRequest
impl Unpin for UpdateProtectionGroupRequest
impl UnwindSafe for UpdateProtectionGroupRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more