Struct rusoto_shield::ProtectionGroup
source · [−]pub struct ProtectionGroup {
pub aggregation: String,
pub members: Vec<String>,
pub pattern: String,
pub protection_group_arn: Option<String>,
pub protection_group_id: String,
pub resource_type: Option<String>,
}
Expand description
A grouping of protected resources that you and AWS Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
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: 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_arn: Option<String>
The ARN (Amazon Resource Name) of the protection group.
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 ProtectionGroup
impl Clone for ProtectionGroup
sourcefn clone(&self) -> ProtectionGroup
fn clone(&self) -> ProtectionGroup
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 ProtectionGroup
impl Debug for ProtectionGroup
sourceimpl Default for ProtectionGroup
impl Default for ProtectionGroup
sourcefn default() -> ProtectionGroup
fn default() -> ProtectionGroup
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ProtectionGroup
impl<'de> Deserialize<'de> for ProtectionGroup
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ProtectionGroup> for ProtectionGroup
impl PartialEq<ProtectionGroup> for ProtectionGroup
sourcefn eq(&self, other: &ProtectionGroup) -> bool
fn eq(&self, other: &ProtectionGroup) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProtectionGroup) -> bool
fn ne(&self, other: &ProtectionGroup) -> bool
This method tests for !=
.
impl StructuralPartialEq for ProtectionGroup
Auto Trait Implementations
impl RefUnwindSafe for ProtectionGroup
impl Send for ProtectionGroup
impl Sync for ProtectionGroup
impl Unpin for ProtectionGroup
impl UnwindSafe for ProtectionGroup
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