Interface PutInsightSelectorsRequest.Builder

  • Method Details

    • trailName

      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.

      Parameters:
      trailName - 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.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightSelectors

      PutInsightSelectorsRequest.Builder insightSelectors(Collection<InsightSelector> insightSelectors)

      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 or read and write data API calls that are aggregated per minute against a baseline API call volume.

      The ApiErrorRateInsight Insights type analyzes management and data API calls that result in error codes. The error is shown if the API call is unsuccessful.

      Parameters:
      insightSelectors - 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 or read and write data API calls that are aggregated per minute against a baseline API call volume.

      The ApiErrorRateInsight Insights type analyzes management and data API calls that result in error codes. The error is shown if the API call is unsuccessful.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightSelectors

      PutInsightSelectorsRequest.Builder insightSelectors(InsightSelector... insightSelectors)

      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 or read and write data API calls that are aggregated per minute against a baseline API call volume.

      The ApiErrorRateInsight Insights type analyzes management and data API calls that result in error codes. The error is shown if the API call is unsuccessful.

      Parameters:
      insightSelectors - 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 or read and write data API calls that are aggregated per minute against a baseline API call volume.

      The ApiErrorRateInsight Insights type analyzes management and data API calls that result in error codes. The error is shown if the API call is unsuccessful.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightSelectors

      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 or read and write data API calls that are aggregated per minute against a baseline API call volume.

      The ApiErrorRateInsight Insights type analyzes management and data API calls that result in error codes. The error is shown if the API call is unsuccessful.

      This is a convenience method that creates an instance of the InsightSelector.Builder avoiding the need to create one manually via InsightSelector.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to insightSelectors(List<InsightSelector>).

      Parameters:
      insightSelectors - a consumer that will call methods on InsightSelector.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • eventDataStore

      PutInsightSelectorsRequest.Builder eventDataStore(String 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 EventDataStore and InsightsDestination parameters.

      You cannot use this parameter with the TrailName parameter.

      Parameters:
      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 EventDataStore and InsightsDestination parameters.

      You cannot use this parameter with the TrailName parameter.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightsDestination

      PutInsightSelectorsRequest.Builder insightsDestination(String 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 EventDataStore and InsightsDestination parameters.

      You cannot use this parameter with the TrailName parameter.

      Parameters:
      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 EventDataStore and InsightsDestination parameters.

      You cannot use this parameter with the TrailName parameter.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      PutInsightSelectorsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.