CloudTrailClient.put_insight_selectors
rboto-cloudtrail==0.4.0 · Service index · Types
Model summary (excerpt): Lets you enable Insights event logging on specific event categories 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 , and valid EventCategories are...
Install and imports
from rboto import CloudTrailClient
from collections.abc import Sequence
from rboto_cloudtrail.types import (
InsightSelector,
PutInsightSelectorsOutput,
)
Signature
async def put_insight_selectors(
*,
insight_selectors: Sequence[InsightSelector],
trail_name: str | None = None,
event_data_store: str | None = None,
insights_destination: str | None = None,
) -> PutInsightSelectorsOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
insight_selectors |
Yes | Contains the Insights types you want to log on a specific category of events on a trail or event data store. ApiCallRateInsight and ApiErrorRateInsight are valid Insight types.The EventCategory field can specify Management or Data events or both. For event data store, you can log Insights for management events only. The ApiCallRateInsight Insights type analyzes write-only management API calls... |
trail_name |
No | The name of the CloudTrail trail for which you want to change or add Insights selectors. You cannot use this parameter with the EventDataStore and InsightsDestination parameters. |
event_data_store |
No | 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 EventDataStore and InsightsDestination parameters. You cannot use this parameter with the TrailName parameter. |
insights_destination |
No | 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 EventDataStore and InsightsDestination parameters. You cannot use this parameter with the TrailName parameter. |
Output
PutInsightSelectorsOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
trail_arn |
str | None |
Always present | — |
insight_selectors |
list[InsightSelectorOutput] | None |
Always present | InsightSelectorOutput |
event_data_store_arn |
str | None |
Always present | — |
insights_destination |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
InsightSelector, PutInsightSelectorsOutput
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_cloudtrail.exceptions:
CloudTrailARNInvalidError, ConflictError, InsufficientEncryptionPolicyError, InsufficientS3BucketPolicyError, InvalidHomeRegionError, InvalidInsightSelectorsError, InvalidParameterCombinationError, InvalidParameterError, InvalidTrailNameError, KmsError, NoManagementAccountSLRExistsError, NotOrganizationMasterAccountError, OperationNotPermittedError, S3BucketDoesNotExistError, ThrottlingError, TrailNotFoundError, UnsupportedOperationError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.