@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProtectionGroup extends Object implements Serializable, Cloneable, StructuredPojo
A grouping of protected resources that you and Shield Advanced can monitor as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
| Constructor and Description |
|---|
ProtectionGroup() |
| Modifier and Type | Method and Description |
|---|---|
ProtectionGroup |
clone() |
boolean |
equals(Object obj) |
String |
getAggregation()
Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.
|
List<String> |
getMembers()
The ARNs (Amazon Resource Names) of the resources to include in the protection group.
|
String |
getPattern()
The criteria to use to choose the protected resources for inclusion in the group.
|
String |
getProtectionGroupArn()
The ARN (Amazon Resource Name) of the protection group.
|
String |
getProtectionGroupId()
The name of the protection group.
|
String |
getResourceType()
The resource type to include in the protection group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAggregation(String aggregation)
Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.
|
void |
setMembers(Collection<String> members)
The ARNs (Amazon Resource Names) of the resources to include in the protection group.
|
void |
setPattern(String pattern)
The criteria to use to choose the protected resources for inclusion in the group.
|
void |
setProtectionGroupArn(String protectionGroupArn)
The ARN (Amazon Resource Name) of the protection group.
|
void |
setProtectionGroupId(String protectionGroupId)
The name of the protection group.
|
void |
setResourceType(String resourceType)
The resource type to include in the protection group.
|
String |
toString()
Returns a string representation of this object.
|
ProtectionGroup |
withAggregation(ProtectionGroupAggregation aggregation)
Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.
|
ProtectionGroup |
withAggregation(String aggregation)
Defines how Shield combines resource data for the group in order to detect, mitigate, and report events.
|
ProtectionGroup |
withMembers(Collection<String> members)
The ARNs (Amazon Resource Names) of the resources to include in the protection group.
|
ProtectionGroup |
withMembers(String... members)
The ARNs (Amazon Resource Names) of the resources to include in the protection group.
|
ProtectionGroup |
withPattern(ProtectionGroupPattern pattern)
The criteria to use to choose the protected resources for inclusion in the group.
|
ProtectionGroup |
withPattern(String pattern)
The criteria to use to choose the protected resources for inclusion in the group.
|
ProtectionGroup |
withProtectionGroupArn(String protectionGroupArn)
The ARN (Amazon Resource Name) of the protection group.
|
ProtectionGroup |
withProtectionGroupId(String protectionGroupId)
The name of the protection group.
|
ProtectionGroup |
withResourceType(ProtectedResourceType resourceType)
The resource type to include in the protection group.
|
ProtectionGroup |
withResourceType(String resourceType)
The resource type to include in the protection group.
|
public void setProtectionGroupId(String protectionGroupId)
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.
protectionGroupId - 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.public String getProtectionGroupId()
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.
public ProtectionGroup withProtectionGroupId(String protectionGroupId)
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.
protectionGroupId - 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.public void setAggregation(String aggregation)
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.
aggregation - 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.
ProtectionGroupAggregationpublic String getAggregation()
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.
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.
ProtectionGroupAggregationpublic ProtectionGroup withAggregation(String aggregation)
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.
aggregation - 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.
ProtectionGroupAggregationpublic ProtectionGroup withAggregation(ProtectionGroupAggregation aggregation)
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.
aggregation - 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.
ProtectionGroupAggregationpublic void setPattern(String pattern)
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 ARNs (Amazon Resource Names), or include all resources of a specified resource type.
pattern - 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 ARNs (Amazon Resource Names), or include all
resources of a specified resource type.ProtectionGroupPatternpublic String getPattern()
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 ARNs (Amazon Resource Names), or include all resources of a specified resource type.
ProtectionGroupPatternpublic ProtectionGroup withPattern(String pattern)
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 ARNs (Amazon Resource Names), or include all resources of a specified resource type.
pattern - 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 ARNs (Amazon Resource Names), or include all
resources of a specified resource type.ProtectionGroupPatternpublic ProtectionGroup withPattern(ProtectionGroupPattern pattern)
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 ARNs (Amazon Resource Names), or include all resources of a specified resource type.
pattern - 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 ARNs (Amazon Resource Names), or include all
resources of a specified resource type.ProtectionGroupPatternpublic void setResourceType(String resourceType)
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.
resourceType - 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.ProtectedResourceTypepublic String getResourceType()
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.
Pattern to
BY_RESOURCE_TYPE and you must not set it for any other Pattern setting.ProtectedResourceTypepublic ProtectionGroup withResourceType(String resourceType)
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.
resourceType - 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.ProtectedResourceTypepublic ProtectionGroup withResourceType(ProtectedResourceType resourceType)
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.
resourceType - 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.ProtectedResourceTypepublic List<String> getMembers()
The ARNs (Amazon Resource Names) 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 to ARBITRARY and you must not set it for any other
Pattern setting.public void setMembers(Collection<String> members)
The ARNs (Amazon Resource Names) 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.
members - The ARNs (Amazon Resource Names) 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.public ProtectionGroup withMembers(String... members)
The ARNs (Amazon Resource Names) 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.
NOTE: This method appends the values to the existing list (if any). Use
setMembers(java.util.Collection) or withMembers(java.util.Collection) if you want to override
the existing values.
members - The ARNs (Amazon Resource Names) 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.public ProtectionGroup withMembers(Collection<String> members)
The ARNs (Amazon Resource Names) 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.
members - The ARNs (Amazon Resource Names) 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.public void setProtectionGroupArn(String protectionGroupArn)
The ARN (Amazon Resource Name) of the protection group.
protectionGroupArn - The ARN (Amazon Resource Name) of the protection group.public String getProtectionGroupArn()
The ARN (Amazon Resource Name) of the protection group.
public ProtectionGroup withProtectionGroupArn(String protectionGroupArn)
The ARN (Amazon Resource Name) of the protection group.
protectionGroupArn - The ARN (Amazon Resource Name) of the protection group.public String toString()
toString in class ObjectObject.toString()public ProtectionGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.