Interface CreateScheduledQueryRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchLogsRequest.Builder,CopyableBuilder<CreateScheduledQueryRequest.Builder,,CreateScheduledQueryRequest> SdkBuilder<CreateScheduledQueryRequest.Builder,,CreateScheduledQueryRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateScheduledQueryRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) An optional description for the scheduled query to help identify its purpose and functionality.destinationConfiguration(Consumer<DestinationConfiguration.Builder> destinationConfiguration) Configuration for where to deliver query results.destinationConfiguration(DestinationConfiguration destinationConfiguration) Configuration for where to deliver query results.executionRoleArn(String executionRoleArn) The ARN of the IAM role that grants permissions to execute the query and deliver results to the specified destination.logGroupIdentifiers(String... logGroupIdentifiers) An array of log group names or ARNs to query.logGroupIdentifiers(Collection<String> logGroupIdentifiers) An array of log group names or ARNs to query.The name of the scheduled query.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.queryLanguage(String queryLanguage) The query language to use for the scheduled query.queryLanguage(QueryLanguage queryLanguage) The query language to use for the scheduled query.queryString(String queryString) The query string to execute.scheduleEndTime(Long scheduleEndTime) The end time for the scheduled query in Unix epoch format.scheduleExpression(String scheduleExpression) A cron expression that defines when the scheduled query runs.scheduleStartTime(Long scheduleStartTime) The start time for the scheduled query in Unix epoch format.startTimeOffset(Long startTimeOffset) The time offset in seconds that defines the lookback period for the query.The initial state of the scheduled query.state(ScheduledQueryState state) The initial state of the scheduled query.Key-value pairs to associate with the scheduled query for resource management and cost allocation.The timezone for evaluating the schedule expression.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatchlogs.model.CloudWatchLogsRequest.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, sdkFieldNameToField, sdkFields
-
Method Details
-
name
The name of the scheduled query. The name must be unique within your account and region. Valid characters are alphanumeric characters, hyphens, underscores, and periods. Length must be between 1 and 255 characters.
- Parameters:
name- The name of the scheduled query. The name must be unique within your account and region. Valid characters are alphanumeric characters, hyphens, underscores, and periods. Length must be between 1 and 255 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
An optional description for the scheduled query to help identify its purpose and functionality.
- Parameters:
description- An optional description for the scheduled query to help identify its purpose and functionality.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
queryLanguage
The query language to use for the scheduled query. Valid values are
LogsQL,PPL, andSQL.- Parameters:
queryLanguage- The query language to use for the scheduled query. Valid values areLogsQL,PPL, andSQL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
queryLanguage
The query language to use for the scheduled query. Valid values are
LogsQL,PPL, andSQL.- Parameters:
queryLanguage- The query language to use for the scheduled query. Valid values areLogsQL,PPL, andSQL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
queryString
The query string to execute. This is the same query syntax used in CloudWatch Logs Insights. Maximum length is 10,000 characters.
- Parameters:
queryString- The query string to execute. This is the same query syntax used in CloudWatch Logs Insights. Maximum length is 10,000 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupIdentifiers
An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN.
- Parameters:
logGroupIdentifiers- An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logGroupIdentifiers
An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN.
- Parameters:
logGroupIdentifiers- An array of log group names or ARNs to query. You can specify between 1 and 50 log groups. Log groups can be identified by name or full ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleExpression
A cron expression that defines when the scheduled query runs. The expression uses standard cron syntax and supports minute-level precision. Maximum length is 256 characters.
- Parameters:
scheduleExpression- A cron expression that defines when the scheduled query runs. The expression uses standard cron syntax and supports minute-level precision. Maximum length is 256 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
timezone
The timezone for evaluating the schedule expression. This determines when the scheduled query executes relative to the specified timezone.
- Parameters:
timezone- The timezone for evaluating the schedule expression. This determines when the scheduled query executes relative to the specified timezone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTimeOffset
The time offset in seconds that defines the lookback period for the query. This determines how far back in time the query searches from the execution time.
- Parameters:
startTimeOffset- The time offset in seconds that defines the lookback period for the query. This determines how far back in time the query searches from the execution time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationConfiguration
CreateScheduledQueryRequest.Builder destinationConfiguration(DestinationConfiguration destinationConfiguration) Configuration for where to deliver query results. Currently supports Amazon S3 destinations for storing query output.
- Parameters:
destinationConfiguration- Configuration for where to deliver query results. Currently supports Amazon S3 destinations for storing query output.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationConfiguration
default CreateScheduledQueryRequest.Builder destinationConfiguration(Consumer<DestinationConfiguration.Builder> destinationConfiguration) Configuration for where to deliver query results. Currently supports Amazon S3 destinations for storing query output.
This is a convenience method that creates an instance of theDestinationConfiguration.Builderavoiding the need to create one manually viaDestinationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todestinationConfiguration(DestinationConfiguration).- Parameters:
destinationConfiguration- a consumer that will call methods onDestinationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scheduleStartTime
The start time for the scheduled query in Unix epoch format. The query will not execute before this time.
- Parameters:
scheduleStartTime- The start time for the scheduled query in Unix epoch format. The query will not execute before this time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheduleEndTime
The end time for the scheduled query in Unix epoch format. The query will stop executing after this time.
- Parameters:
scheduleEndTime- The end time for the scheduled query in Unix epoch format. The query will stop executing after this time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
executionRoleArn
The ARN of the IAM role that grants permissions to execute the query and deliver results to the specified destination. The role must have permissions to read from the specified log groups and write to the destination.
- Parameters:
executionRoleArn- The ARN of the IAM role that grants permissions to execute the query and deliver results to the specified destination. The role must have permissions to read from the specified log groups and write to the destination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The initial state of the scheduled query. Valid values are
ENABLEDandDISABLED. Default isENABLED.- Parameters:
state- The initial state of the scheduled query. Valid values areENABLEDandDISABLED. Default isENABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
The initial state of the scheduled query. Valid values are
ENABLEDandDISABLED. Default isENABLED.- Parameters:
state- The initial state of the scheduled query. Valid values areENABLEDandDISABLED. Default isENABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Key-value pairs to associate with the scheduled query for resource management and cost allocation.
- Parameters:
tags- Key-value pairs to associate with the scheduled query for resource management and cost allocation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateScheduledQueryRequest.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
CreateScheduledQueryRequest.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.
-