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 |
Creates a custom insight in Security Hub. An insight is a consolidation of findings that relate to a security issue that requires attention or remediation.
To group the related findings in the insight, use the
GroupByAttribute
.
Synopsis
- data CreateInsight = CreateInsight' {}
- newCreateInsight :: Text -> AwsSecurityFindingFilters -> Text -> CreateInsight
- createInsight_name :: Lens' CreateInsight Text
- createInsight_filters :: Lens' CreateInsight AwsSecurityFindingFilters
- createInsight_groupByAttribute :: Lens' CreateInsight Text
- data CreateInsightResponse = CreateInsightResponse' {
- httpStatus :: Int
- insightArn :: Text
- newCreateInsightResponse :: Int -> Text -> CreateInsightResponse
- createInsightResponse_httpStatus :: Lens' CreateInsightResponse Int
- createInsightResponse_insightArn :: Lens' CreateInsightResponse Text
Creating a Request
data CreateInsight Source #
See: newCreateInsight
smart constructor.
CreateInsight' | |
|
Instances
:: Text | |
-> AwsSecurityFindingFilters | |
-> Text | |
-> CreateInsight |
Create a value of CreateInsight
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:name:CreateInsight'
, createInsight_name
- The name of the custom insight to create.
$sel:filters:CreateInsight'
, createInsight_filters
- One or more attributes used to filter the findings included in the
insight. The insight only includes findings that match the criteria
defined in the filters.
$sel:groupByAttribute:CreateInsight'
, createInsight_groupByAttribute
- The attribute used to group the findings for the insight. The grouping
attribute identifies the type of item that the insight applies to. For
example, if an insight is grouped by resource identifier, then the
insight produces a list of resource identifiers.
Request Lenses
createInsight_name :: Lens' CreateInsight Text Source #
The name of the custom insight to create.
createInsight_filters :: Lens' CreateInsight AwsSecurityFindingFilters Source #
One or more attributes used to filter the findings included in the insight. The insight only includes findings that match the criteria defined in the filters.
createInsight_groupByAttribute :: Lens' CreateInsight Text Source #
The attribute used to group the findings for the insight. The grouping attribute identifies the type of item that the insight applies to. For example, if an insight is grouped by resource identifier, then the insight produces a list of resource identifiers.
Destructuring the Response
data CreateInsightResponse Source #
See: newCreateInsightResponse
smart constructor.
CreateInsightResponse' | |
|
Instances
newCreateInsightResponse Source #
:: Int | |
-> Text | |
-> CreateInsightResponse |
Create a value of CreateInsightResponse
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:httpStatus:CreateInsightResponse'
, createInsightResponse_httpStatus
- The response's http status code.
$sel:insightArn:CreateInsightResponse'
, createInsightResponse_insightArn
- The ARN of the insight created.
Response Lenses
createInsightResponse_httpStatus :: Lens' CreateInsightResponse Int Source #
The response's http status code.
createInsightResponse_insightArn :: Lens' CreateInsightResponse Text Source #
The ARN of the insight created.