Interface PutInsightSelectorsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudTrailRequest.Builder,CopyableBuilder<PutInsightSelectorsRequest.Builder,,PutInsightSelectorsRequest> SdkBuilder<PutInsightSelectorsRequest.Builder,,PutInsightSelectorsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
PutInsightSelectorsRequest
-
Method Summary
Modifier and TypeMethodDescriptioneventDataStore(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.insightsDestination(String insightsDestination) The ARN (or ID suffix of the ARN) of the destination event data store that logs Insights events.insightSelectors(Collection<InsightSelector> insightSelectors) A JSON string that contains the Insights types you want to log on a trail or event data store.insightSelectors(Consumer<InsightSelector.Builder>... insightSelectors) A JSON string that contains the Insights types you want to log on a trail or event data store.insightSelectors(InsightSelector... insightSelectors) A JSON string that contains the Insights types you want to log on a trail or event data store.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The name of the CloudTrail trail for which you want to change or add Insights selectors.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudtrail.model.CloudTrailRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
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
EventDataStoreandInsightsDestinationparameters.- 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
EventDataStoreandInsightsDestinationparameters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
insightSelectors
A JSON string that contains the Insights types you want to log on a trail or event data store.
ApiCallRateInsightandApiErrorRateInsightare valid Insight types.The
ApiCallRateInsightInsights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.The
ApiErrorRateInsightInsights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.- Parameters:
insightSelectors- A JSON string that contains the Insights types you want to log on a trail or event data store.ApiCallRateInsightandApiErrorRateInsightare valid Insight types.The
ApiCallRateInsightInsights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.The
ApiErrorRateInsightInsights type analyzes management 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
A JSON string that contains the Insights types you want to log on a trail or event data store.
ApiCallRateInsightandApiErrorRateInsightare valid Insight types.The
ApiCallRateInsightInsights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.The
ApiErrorRateInsightInsights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.- Parameters:
insightSelectors- A JSON string that contains the Insights types you want to log on a trail or event data store.ApiCallRateInsightandApiErrorRateInsightare valid Insight types.The
ApiCallRateInsightInsights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.The
ApiErrorRateInsightInsights type analyzes management 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(Consumer<InsightSelector.Builder>... insightSelectors) A JSON string that contains the Insights types you want to log on a trail or event data store.
ApiCallRateInsightandApiErrorRateInsightare valid Insight types.The
ApiCallRateInsightInsights type analyzes write-only management API calls that are aggregated per minute against a baseline API call volume.The
This is a convenience method that creates an instance of theApiErrorRateInsightInsights type analyzes management API calls that result in error codes. The error is shown if the API call is unsuccessful.InsightSelector.Builderavoiding the need to create one manually viaInsightSelector.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinsightSelectors(List<InsightSelector>).- Parameters:
insightSelectors- a consumer that will call methods onInsightSelector.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
EventDataStoreandInsightsDestinationparameters.You cannot use this parameter with the
TrailNameparameter.- 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 theEventDataStoreandInsightsDestinationparameters.You cannot use this parameter with the
TrailNameparameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
EventDataStoreandInsightsDestinationparameters.You cannot use this parameter with the
TrailNameparameter.- 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 theEventDataStoreandInsightsDestinationparameters.You cannot use this parameter with the
TrailNameparameter.- 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutInsightSelectorsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-