AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
Container for the parameters to the PutInsightSelectors operation.
Lets you enable Insights event logging by specifying the Insights selectors that you
want to enable on an existing trail or event data store. You also use PutInsightSelectors
to turn off Insights event logging, by passing an empty list of Insights types. The
valid Insights event types are ApiErrorRateInsight
and ApiCallRateInsight
.
To enable Insights on an event data store, you must specify the ARNs (or ID suffix
of the ARNs) for the source event data store (EventDataStore
) and the destination
event data store (InsightsDestination
). The source event data store logs management
events and enables Insights. The destination event data store logs Insights events
based upon the management event activity of the source event data store. The source
and destination event data stores must belong to the same Amazon Web Services account.
To log Insights events for a trail, you must specify the name (TrailName
) of
the CloudTrail trail for which you want to change or add Insights selectors.
To log CloudTrail Insights events on API call volume, the trail or event data store
must log write
management events. To log CloudTrail Insights events on API
error rate, the trail or event data store must log read
or write
management
events. You can call GetEventSelectors
on a trail to check whether the trail
logs management events. You can call GetEventDataStore
on an event data store
to check whether the event data store logs management events.
For more information, see Logging CloudTrail Insights events in the CloudTrail User Guide.
Namespace: Amazon.CloudTrail.Model
Assembly: AWSSDK.CloudTrail.dll
Version: 3.x.y.z
public class PutInsightSelectorsRequest : AmazonCloudTrailRequest IAmazonWebServiceRequest
The PutInsightSelectorsRequest type exposes the following members
Name | Description | |
---|---|---|
PutInsightSelectorsRequest() |
Name | Type | Description | |
---|---|---|---|
EventDataStore | System.String |
Gets and sets the property EventDataStore.
The ARN (or ID suffix of the ARN) of the source event data store for which you want
to change or add Insights selectors. To enable Insights on an event data store, you
must provide both the
You cannot use this parameter with the |
|
InsightsDestination | System.String |
Gets and sets the property InsightsDestination.
The ARN (or ID suffix of the ARN) of the destination event data store that logs Insights
events. To enable Insights on an event data store, you must provide both the
You cannot use this parameter with the |
|
InsightSelectors | System.Collections.Generic.List<Amazon.CloudTrail.Model.InsightSelector> |
Gets and sets the property InsightSelectors.
A JSON string that contains the Insights types you want to log on a trail or event
data store.
The
The |
|
TrailName | System.String |
Gets and sets the property TrailName. The name of the CloudTrail trail for which you want to change or add Insights selectors.
You cannot use this parameter with the |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5