Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
Synopsis
- data CreateFindingAggregator = CreateFindingAggregator' {
- regions :: Maybe [Text]
- regionLinkingMode :: Text
- newCreateFindingAggregator :: Text -> CreateFindingAggregator
- createFindingAggregator_regions :: Lens' CreateFindingAggregator (Maybe [Text])
- createFindingAggregator_regionLinkingMode :: Lens' CreateFindingAggregator Text
- data CreateFindingAggregatorResponse = CreateFindingAggregatorResponse' {}
- newCreateFindingAggregatorResponse :: Int -> CreateFindingAggregatorResponse
- createFindingAggregatorResponse_regions :: Lens' CreateFindingAggregatorResponse (Maybe [Text])
- createFindingAggregatorResponse_findingAggregatorArn :: Lens' CreateFindingAggregatorResponse (Maybe Text)
- createFindingAggregatorResponse_regionLinkingMode :: Lens' CreateFindingAggregatorResponse (Maybe Text)
- createFindingAggregatorResponse_findingAggregationRegion :: Lens' CreateFindingAggregatorResponse (Maybe Text)
- createFindingAggregatorResponse_httpStatus :: Lens' CreateFindingAggregatorResponse Int
Creating a Request
data CreateFindingAggregator Source #
See: newCreateFindingAggregator
smart constructor.
CreateFindingAggregator' | |
|
Instances
newCreateFindingAggregator Source #
Create a value of CreateFindingAggregator
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:regions:CreateFindingAggregator'
, createFindingAggregator_regions
- If RegionLinkingMode
is ALL_REGIONS_EXCEPT_SPECIFIED
, then this is a
comma-separated list of Regions that do not aggregate findings to the
aggregation Region.
If RegionLinkingMode
is SPECIFIED_REGIONS
, then this is a
comma-separated list of Regions that do aggregate findings to the
aggregation Region.
$sel:regionLinkingMode:CreateFindingAggregator'
, createFindingAggregator_regionLinkingMode
- 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.
Request Lenses
createFindingAggregator_regions :: Lens' CreateFindingAggregator (Maybe [Text]) Source #
If RegionLinkingMode
is ALL_REGIONS_EXCEPT_SPECIFIED
, then this is a
comma-separated list of Regions that do not aggregate findings to the
aggregation Region.
If RegionLinkingMode
is SPECIFIED_REGIONS
, then this is a
comma-separated list of Regions that do aggregate findings to the
aggregation Region.
createFindingAggregator_regionLinkingMode :: Lens' CreateFindingAggregator Text Source #
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.
Destructuring the Response
data CreateFindingAggregatorResponse Source #
See: newCreateFindingAggregatorResponse
smart constructor.
CreateFindingAggregatorResponse' | |
|
Instances
newCreateFindingAggregatorResponse Source #
Create a value of CreateFindingAggregatorResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:regions:CreateFindingAggregator'
, createFindingAggregatorResponse_regions
- The list of excluded Regions or included Regions.
$sel:findingAggregatorArn:CreateFindingAggregatorResponse'
, createFindingAggregatorResponse_findingAggregatorArn
- The ARN of the finding aggregator. You use the finding aggregator ARN to
retrieve details for, update, and stop finding aggregation.
$sel:regionLinkingMode:CreateFindingAggregator'
, createFindingAggregatorResponse_regionLinkingMode
- Indicates whether to link all Regions, all Regions except for a list of
excluded Regions, or a list of included Regions.
$sel:findingAggregationRegion:CreateFindingAggregatorResponse'
, createFindingAggregatorResponse_findingAggregationRegion
- The aggregation Region.
$sel:httpStatus:CreateFindingAggregatorResponse'
, createFindingAggregatorResponse_httpStatus
- The response's http status code.
Response Lenses
createFindingAggregatorResponse_regions :: Lens' CreateFindingAggregatorResponse (Maybe [Text]) Source #
The list of excluded Regions or included Regions.
createFindingAggregatorResponse_findingAggregatorArn :: Lens' CreateFindingAggregatorResponse (Maybe Text) Source #
The ARN of the finding aggregator. You use the finding aggregator ARN to retrieve details for, update, and stop finding aggregation.
createFindingAggregatorResponse_regionLinkingMode :: Lens' CreateFindingAggregatorResponse (Maybe Text) Source #
Indicates whether to link all Regions, all Regions except for a list of excluded Regions, or a list of included Regions.
createFindingAggregatorResponse_findingAggregationRegion :: Lens' CreateFindingAggregatorResponse (Maybe Text) Source #
The aggregation Region.
createFindingAggregatorResponse_httpStatus :: Lens' CreateFindingAggregatorResponse Int Source #
The response's http status code.