pub struct CreateFindingAggregator { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateFindingAggregator
.
Used to enable finding aggregation. Must be called from the aggregation Region.
For more details about cross-Region replication, see Configuring finding aggregation in the Security Hub User Guide.
Implementations§
source§impl CreateFindingAggregator
impl CreateFindingAggregator
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateFindingAggregator, AwsResponseRetryClassifier>, SdkError<CreateFindingAggregatorError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateFindingAggregator, AwsResponseRetryClassifier>, SdkError<CreateFindingAggregatorError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateFindingAggregatorOutput, SdkError<CreateFindingAggregatorError>>
pub async fn send(
self
) -> Result<CreateFindingAggregatorOutput, SdkError<CreateFindingAggregatorError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn region_linking_mode(self, input: impl Into<String>) -> Self
pub fn region_linking_mode(self, input: impl Into<String>) -> Self
Indicates whether to aggregate findings from all of the available Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.
The selected option also determines how to use the Regions provided in the Regions list.
The options are as follows:
-
ALL_REGIONS
- Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
ALL_REGIONS_EXCEPT_SPECIFIED
- Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in theRegions
parameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
SPECIFIED_REGIONS
- Indicates to aggregate findings only from the Regions listed in theRegions
parameter. Security Hub does not automatically aggregate findings from new Regions.
sourcepub fn set_region_linking_mode(self, input: Option<String>) -> Self
pub fn set_region_linking_mode(self, input: Option<String>) -> Self
Indicates whether to aggregate findings from all of the available Regions in the current partition. Also determines whether to automatically aggregate findings from new Regions as Security Hub supports them and you opt into them.
The selected option also determines how to use the Regions provided in the Regions list.
The options are as follows:
-
ALL_REGIONS
- Indicates to aggregate findings from all of the Regions where Security Hub is enabled. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
ALL_REGIONS_EXCEPT_SPECIFIED
- Indicates to aggregate findings from all of the Regions where Security Hub is enabled, except for the Regions listed in theRegions
parameter. When you choose this option, Security Hub also automatically aggregates findings from new Regions as Security Hub supports them and you opt into them. -
SPECIFIED_REGIONS
- Indicates to aggregate findings only from the Regions listed in theRegions
parameter. Security Hub does not automatically aggregate findings from new Regions.
sourcepub fn regions(self, input: impl Into<String>) -> Self
pub fn regions(self, input: impl Into<String>) -> Self
Appends an item to Regions
.
To override the contents of this collection use set_regions
.
If RegionLinkingMode
is ALL_REGIONS_EXCEPT_SPECIFIED
, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.
If RegionLinkingMode
is SPECIFIED_REGIONS
, then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.
sourcepub fn set_regions(self, input: Option<Vec<String>>) -> Self
pub fn set_regions(self, input: Option<Vec<String>>) -> Self
If RegionLinkingMode
is ALL_REGIONS_EXCEPT_SPECIFIED
, then this is a space-separated list of Regions that do not aggregate findings to the aggregation Region.
If RegionLinkingMode
is SPECIFIED_REGIONS
, then this is a space-separated list of Regions that do aggregate findings to the aggregation Region.
Trait Implementations§
source§impl Clone for CreateFindingAggregator
impl Clone for CreateFindingAggregator
source§fn clone(&self) -> CreateFindingAggregator
fn clone(&self) -> CreateFindingAggregator
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more