Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Lets you enable Insights event logging by specifying the Insights
selectors that you want to enable on an existing trail. You also use
PutInsightSelectors
to turn off Insights event logging, by passing an
empty list of insight types. The valid Insights event types in this
release are ApiErrorRateInsight
and ApiCallRateInsight
.
Synopsis
- data PutInsightSelectors = PutInsightSelectors' {}
- newPutInsightSelectors :: Text -> PutInsightSelectors
- putInsightSelectors_trailName :: Lens' PutInsightSelectors Text
- putInsightSelectors_insightSelectors :: Lens' PutInsightSelectors [InsightSelector]
- data PutInsightSelectorsResponse = PutInsightSelectorsResponse' {}
- newPutInsightSelectorsResponse :: Int -> PutInsightSelectorsResponse
- putInsightSelectorsResponse_insightSelectors :: Lens' PutInsightSelectorsResponse (Maybe [InsightSelector])
- putInsightSelectorsResponse_trailARN :: Lens' PutInsightSelectorsResponse (Maybe Text)
- putInsightSelectorsResponse_httpStatus :: Lens' PutInsightSelectorsResponse Int
Creating a Request
data PutInsightSelectors Source #
See: newPutInsightSelectors
smart constructor.
PutInsightSelectors' | |
|
Instances
newPutInsightSelectors Source #
Create a value of PutInsightSelectors
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:trailName:PutInsightSelectors'
, putInsightSelectors_trailName
- The name of the CloudTrail trail for which you want to change or add
Insights selectors.
PutInsightSelectors
, putInsightSelectors_insightSelectors
- A JSON string that contains the insight types you want to log on a
trail. ApiCallRateInsight
and ApiErrorRateInsight
are valid insight
types.
Request Lenses
putInsightSelectors_trailName :: Lens' PutInsightSelectors Text Source #
The name of the CloudTrail trail for which you want to change or add Insights selectors.
putInsightSelectors_insightSelectors :: Lens' PutInsightSelectors [InsightSelector] Source #
A JSON string that contains the insight types you want to log on a
trail. ApiCallRateInsight
and ApiErrorRateInsight
are valid insight
types.
Destructuring the Response
data PutInsightSelectorsResponse Source #
See: newPutInsightSelectorsResponse
smart constructor.
PutInsightSelectorsResponse' | |
|
Instances
newPutInsightSelectorsResponse Source #
Create a value of PutInsightSelectorsResponse
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:
PutInsightSelectors
, putInsightSelectorsResponse_insightSelectors
- A JSON string that contains the Insights event types that you want to
log on a trail. The valid Insights types in this release are
ApiErrorRateInsight
and ApiCallRateInsight
.
PutInsightSelectorsResponse
, putInsightSelectorsResponse_trailARN
- The Amazon Resource Name (ARN) of a trail for which you want to change
or add Insights selectors.
$sel:httpStatus:PutInsightSelectorsResponse'
, putInsightSelectorsResponse_httpStatus
- The response's http status code.
Response Lenses
putInsightSelectorsResponse_insightSelectors :: Lens' PutInsightSelectorsResponse (Maybe [InsightSelector]) Source #
A JSON string that contains the Insights event types that you want to
log on a trail. The valid Insights types in this release are
ApiErrorRateInsight
and ApiCallRateInsight
.
putInsightSelectorsResponse_trailARN :: Lens' PutInsightSelectorsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.
putInsightSelectorsResponse_httpStatus :: Lens' PutInsightSelectorsResponse Int Source #
The response's http status code.