Class ScheduledQueryState.Builder
- java.lang.Object
-
- com.pulumi.aws.timestreamquery.inputs.ScheduledQueryState.Builder
-
- Enclosing class:
- ScheduledQueryState
public static final class ScheduledQueryState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(ScheduledQueryState defaults)
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(ScheduledQueryState defaults)
-
-
Method Detail
-
arn
public ScheduledQueryState.Builder arn(@Nullable com.pulumi.core.Output<java.lang.String> arn)
- Parameters:
arn- ARN of the Scheduled Query.- Returns:
- builder
-
arn
public ScheduledQueryState.Builder arn(java.lang.String arn)
- Parameters:
arn- ARN of the Scheduled Query.- Returns:
- builder
-
creationTime
public ScheduledQueryState.Builder creationTime(@Nullable com.pulumi.core.Output<java.lang.String> creationTime)
- Parameters:
creationTime- Creation time for the scheduled query.- Returns:
- builder
-
creationTime
public ScheduledQueryState.Builder creationTime(java.lang.String creationTime)
- Parameters:
creationTime- Creation time for the scheduled query.- Returns:
- builder
-
errorReportConfiguration
public ScheduledQueryState.Builder errorReportConfiguration(@Nullable com.pulumi.core.Output<ScheduledQueryErrorReportConfigurationArgs> errorReportConfiguration)
- Parameters:
errorReportConfiguration- Configuration block for error reporting configuration. See below.- Returns:
- builder
-
errorReportConfiguration
public ScheduledQueryState.Builder errorReportConfiguration(ScheduledQueryErrorReportConfigurationArgs errorReportConfiguration)
- Parameters:
errorReportConfiguration- Configuration block for error reporting configuration. See below.- Returns:
- builder
-
executionRoleArn
public ScheduledQueryState.Builder executionRoleArn(@Nullable com.pulumi.core.Output<java.lang.String> executionRoleArn)
- Parameters:
executionRoleArn- ARN for the IAM role that Timestream will assume when running the scheduled query.- Returns:
- builder
-
executionRoleArn
public ScheduledQueryState.Builder executionRoleArn(java.lang.String executionRoleArn)
- Parameters:
executionRoleArn- ARN for the IAM role that Timestream will assume when running the scheduled query.- Returns:
- builder
-
kmsKeyId
public ScheduledQueryState.Builder kmsKeyId(@Nullable com.pulumi.core.Output<java.lang.String> kmsKeyId)
- Parameters:
kmsKeyId- Amazon KMS key used to encrypt the scheduled query resource, at-rest. If not specified, the scheduled query resource will be encrypted with a Timestream owned Amazon KMS key. To specify a KMS key, use the key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix the name with "alias/". If `errorReportConfiguration` uses `SSE_KMS` as the encryption type, the same `kmsKeyId` is used to encrypt the error report at rest.- Returns:
- builder
-
kmsKeyId
public ScheduledQueryState.Builder kmsKeyId(java.lang.String kmsKeyId)
- Parameters:
kmsKeyId- Amazon KMS key used to encrypt the scheduled query resource, at-rest. If not specified, the scheduled query resource will be encrypted with a Timestream owned Amazon KMS key. To specify a KMS key, use the key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix the name with "alias/". If `errorReportConfiguration` uses `SSE_KMS` as the encryption type, the same `kmsKeyId` is used to encrypt the error report at rest.- Returns:
- builder
-
lastRunSummaries
public ScheduledQueryState.Builder lastRunSummaries(@Nullable com.pulumi.core.Output<java.util.List<ScheduledQueryLastRunSummaryArgs>> lastRunSummaries)
- Parameters:
lastRunSummaries- Runtime summary for the last scheduled query run. See `lastRunSummary` Block for details.- Returns:
- builder
-
lastRunSummaries
public ScheduledQueryState.Builder lastRunSummaries(java.util.List<ScheduledQueryLastRunSummaryArgs> lastRunSummaries)
- Parameters:
lastRunSummaries- Runtime summary for the last scheduled query run. See `lastRunSummary` Block for details.- Returns:
- builder
-
lastRunSummaries
public ScheduledQueryState.Builder lastRunSummaries(ScheduledQueryLastRunSummaryArgs... lastRunSummaries)
- Parameters:
lastRunSummaries- Runtime summary for the last scheduled query run. See `lastRunSummary` Block for details.- Returns:
- builder
-
name
public ScheduledQueryState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- Name of the scheduled query.- Returns:
- builder
-
name
public ScheduledQueryState.Builder name(java.lang.String name)
- Parameters:
name- Name of the scheduled query.- Returns:
- builder
-
nextInvocationTime
public ScheduledQueryState.Builder nextInvocationTime(@Nullable com.pulumi.core.Output<java.lang.String> nextInvocationTime)
- Parameters:
nextInvocationTime- Next time the scheduled query is scheduled to run.- Returns:
- builder
-
nextInvocationTime
public ScheduledQueryState.Builder nextInvocationTime(java.lang.String nextInvocationTime)
- Parameters:
nextInvocationTime- Next time the scheduled query is scheduled to run.- Returns:
- builder
-
notificationConfiguration
public ScheduledQueryState.Builder notificationConfiguration(@Nullable com.pulumi.core.Output<ScheduledQueryNotificationConfigurationArgs> notificationConfiguration)
- Parameters:
notificationConfiguration- Configuration block for notification configuration for a scheduled query. A notification is sent by Timestream when a scheduled query is created, its state is updated, or when it is deleted. See below.- Returns:
- builder
-
notificationConfiguration
public ScheduledQueryState.Builder notificationConfiguration(ScheduledQueryNotificationConfigurationArgs notificationConfiguration)
- Parameters:
notificationConfiguration- Configuration block for notification configuration for a scheduled query. A notification is sent by Timestream when a scheduled query is created, its state is updated, or when it is deleted. See below.- Returns:
- builder
-
previousInvocationTime
public ScheduledQueryState.Builder previousInvocationTime(@Nullable com.pulumi.core.Output<java.lang.String> previousInvocationTime)
- Parameters:
previousInvocationTime- Last time the scheduled query was run.- Returns:
- builder
-
previousInvocationTime
public ScheduledQueryState.Builder previousInvocationTime(java.lang.String previousInvocationTime)
- Parameters:
previousInvocationTime- Last time the scheduled query was run.- Returns:
- builder
-
queryString
public ScheduledQueryState.Builder queryString(@Nullable com.pulumi.core.Output<java.lang.String> queryString)
- Parameters:
queryString- Query string to run. Parameter names can be specified in the query string using the `@` character followed by an identifier. The named parameter `@scheduled_runtime` is reserved and can be used in the query to get the time at which the query is scheduled to run. The timestamp calculated according to the `scheduleConfiguration` parameter, will be the value of `@scheduled_runtime` parameter for each query run. For example, consider an instance of a scheduled query executing on 2021-12-01 00:00:00. For this instance, the `@scheduled_runtime` parameter is initialized to the timestamp 2021-12-01 00:00:00 when invoking the query.- Returns:
- builder
-
queryString
public ScheduledQueryState.Builder queryString(java.lang.String queryString)
- Parameters:
queryString- Query string to run. Parameter names can be specified in the query string using the `@` character followed by an identifier. The named parameter `@scheduled_runtime` is reserved and can be used in the query to get the time at which the query is scheduled to run. The timestamp calculated according to the `scheduleConfiguration` parameter, will be the value of `@scheduled_runtime` parameter for each query run. For example, consider an instance of a scheduled query executing on 2021-12-01 00:00:00. For this instance, the `@scheduled_runtime` parameter is initialized to the timestamp 2021-12-01 00:00:00 when invoking the query.- Returns:
- builder
-
recentlyFailedRuns
public ScheduledQueryState.Builder recentlyFailedRuns(@Nullable com.pulumi.core.Output<java.util.List<ScheduledQueryRecentlyFailedRunArgs>> recentlyFailedRuns)
- Parameters:
recentlyFailedRuns- Runtime summary for the last five failed scheduled query runs. See `recentlyFailedRuns` Block for details.- Returns:
- builder
-
recentlyFailedRuns
public ScheduledQueryState.Builder recentlyFailedRuns(java.util.List<ScheduledQueryRecentlyFailedRunArgs> recentlyFailedRuns)
- Parameters:
recentlyFailedRuns- Runtime summary for the last five failed scheduled query runs. See `recentlyFailedRuns` Block for details.- Returns:
- builder
-
recentlyFailedRuns
public ScheduledQueryState.Builder recentlyFailedRuns(ScheduledQueryRecentlyFailedRunArgs... recentlyFailedRuns)
- Parameters:
recentlyFailedRuns- Runtime summary for the last five failed scheduled query runs. See `recentlyFailedRuns` Block for details.- Returns:
- builder
-
region
public ScheduledQueryState.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public ScheduledQueryState.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
scheduleConfiguration
public ScheduledQueryState.Builder scheduleConfiguration(@Nullable com.pulumi.core.Output<ScheduledQueryScheduleConfigurationArgs> scheduleConfiguration)
- Parameters:
scheduleConfiguration- Configuration block for schedule configuration for the query. See below.- Returns:
- builder
-
scheduleConfiguration
public ScheduledQueryState.Builder scheduleConfiguration(ScheduledQueryScheduleConfigurationArgs scheduleConfiguration)
- Parameters:
scheduleConfiguration- Configuration block for schedule configuration for the query. See below.- Returns:
- builder
-
state
public ScheduledQueryState.Builder state(@Nullable com.pulumi.core.Output<java.lang.String> state)
- Parameters:
state- State of the scheduled query, either `ENABLED` or `DISABLED`.- Returns:
- builder
-
state
public ScheduledQueryState.Builder state(java.lang.String state)
- Parameters:
state- State of the scheduled query, either `ENABLED` or `DISABLED`.- Returns:
- builder
-
tags
public ScheduledQueryState.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public ScheduledQueryState.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Map of tags assigned to the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tagsAll
public ScheduledQueryState.Builder tagsAll(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)
- Parameters:
tagsAll- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
tagsAll
public ScheduledQueryState.Builder tagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
- Parameters:
tagsAll- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
targetConfiguration
public ScheduledQueryState.Builder targetConfiguration(@Nullable com.pulumi.core.Output<ScheduledQueryTargetConfigurationArgs> targetConfiguration)
- Parameters:
targetConfiguration- Configuration block for writing the result of a query. See below. The following arguments are optional:- Returns:
- builder
-
targetConfiguration
public ScheduledQueryState.Builder targetConfiguration(ScheduledQueryTargetConfigurationArgs targetConfiguration)
- Parameters:
targetConfiguration- Configuration block for writing the result of a query. See below. The following arguments are optional:- Returns:
- builder
-
timeouts
public ScheduledQueryState.Builder timeouts(@Nullable com.pulumi.core.Output<ScheduledQueryTimeoutsArgs> timeouts)
-
timeouts
public ScheduledQueryState.Builder timeouts(ScheduledQueryTimeoutsArgs timeouts)
-
build
public ScheduledQueryState build()
-
-