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 |
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 type in this
release is 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_trailARN :: Lens' PutInsightSelectorsResponse (Maybe Text)
- putInsightSelectorsResponse_insightSelectors :: Lens' PutInsightSelectorsResponse (Maybe [InsightSelector])
- 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.
$sel:insightSelectors:PutInsightSelectors'
, putInsightSelectors_insightSelectors
- A JSON string that contains the Insights types that you want to log on a
trail. The valid Insights type in this release is ApiCallRateInsight
.
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 Insights types that you want to log on a
trail. The valid Insights type in this release is ApiCallRateInsight
.
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:
$sel:trailARN:PutInsightSelectorsResponse'
, putInsightSelectorsResponse_trailARN
- The Amazon Resource Name (ARN) of a trail for which you want to change
or add Insights selectors.
$sel:insightSelectors:PutInsightSelectors'
, putInsightSelectorsResponse_insightSelectors
- A JSON string that contains the Insights event types that you want to
log on a trail. The valid Insights type in this release is
ApiCallRateInsight
.
$sel:httpStatus:PutInsightSelectorsResponse'
, putInsightSelectorsResponse_httpStatus
- The response's http status code.
Response Lenses
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_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 type in this release is
ApiCallRateInsight
.
putInsightSelectorsResponse_httpStatus :: Lens' PutInsightSelectorsResponse Int Source #
The response's http status code.