#[non_exhaustive]pub struct CreateProtectionGroupInput {
pub protection_group_id: Option<String>,
pub aggregation: Option<ProtectionGroupAggregation>,
pub pattern: Option<ProtectionGroupPattern>,
pub resource_type: Option<ProtectedResourceType>,
pub members: Option<Vec<String>>,
pub tags: Option<Vec<Tag>>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.protection_group_id: Option<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.
aggregation: 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 and origin resources for CloudFront distributions.
pattern: 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.
resource_type: Option<ProtectedResourceType>
The resource type to include in the protection group. All protected resources of this type are included in the protection group. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern
to BY_RESOURCE_TYPE
and you must not set it for any other Pattern
setting.
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.
One or more tag key-value pairs for the protection group.
Implementations§
source§impl CreateProtectionGroupInput
impl CreateProtectionGroupInput
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 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. Newly protected resources of this type are automatically added to the group. You must set this when you set Pattern
to BY_RESOURCE_TYPE
and you must not set it for any other Pattern
setting.
sourcepub fn members(&self) -> &[String]
pub fn members(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .members.is_none()
.
One or more tag key-value pairs for the protection group.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .tags.is_none()
.
source§impl CreateProtectionGroupInput
impl CreateProtectionGroupInput
sourcepub fn builder() -> CreateProtectionGroupInputBuilder
pub fn builder() -> CreateProtectionGroupInputBuilder
Creates a new builder-style object to manufacture CreateProtectionGroupInput
.
Trait Implementations§
source§impl Clone for CreateProtectionGroupInput
impl Clone for CreateProtectionGroupInput
source§fn clone(&self) -> CreateProtectionGroupInput
fn clone(&self) -> CreateProtectionGroupInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateProtectionGroupInput
impl Debug for CreateProtectionGroupInput
impl StructuralPartialEq for CreateProtectionGroupInput
Auto Trait Implementations§
impl Freeze for CreateProtectionGroupInput
impl RefUnwindSafe for CreateProtectionGroupInput
impl Send for CreateProtectionGroupInput
impl Sync for CreateProtectionGroupInput
impl Unpin for CreateProtectionGroupInput
impl UnwindSafe for CreateProtectionGroupInput
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