update_protection_group
async
¶
update_protection_group(
protection_group_id: ProtectionGroupId,
aggregation: ProtectionGroupAggregation,
pattern: ProtectionGroupPattern,
*,
config_overrides: Optional[AsyncShieldClientConfig] = None,
resource_type: Optional[ProtectedResourceType] = None,
members: Optional[ProtectionGroupMembers] = None,
) -> UpdateProtectionGroupResponse
Updates an existing protection group. A protection group is a grouping of protected resources so they can be handled as a collective. This resource grouping improves the accuracy of detection and reduces false positives.
Parameters:
-
protection_group_id(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.
-
aggregation(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.
-
-
pattern(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(Optional[ProtectedResourceType], default:None) –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
PatterntoBY_RESOURCE_TYPEand you must not set it for any otherPatternsetting. -
members(Optional[ProtectionGroupMembers], default:None) –The Amazon Resource Names (ARNs) of the resources to include in the protection group. You must set this when you set
PatterntoARBITRARYand you must not set it for any otherPatternsetting.
Raises:
-
InternalErrorException–Exception that indicates that a problem occurred with the service infrastructure. You can retry the request.
-
InvalidParameterException–Exception that indicates that the parameters passed to the API are invalid. If available, this exception includes details in additional properties.
-
OptimisticLockException–Exception that indicates that the resource state has been modified by another client. Retrieve the resource and then retry your request.
-
ResourceNotFoundException–Exception indicating the specified resource does not exist. If available, this exception includes details in additional properties.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_shield/_services/async_shield.py
2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 | |