ScheduledQueryState constructor
- Input<
String?> ? arn, - Input<
String?> ? creationTime, - Input<
ScheduledQueryErrorReportConfiguration?> ? errorReportConfiguration, - Input<
String?> ? executionRoleArn, - Input<
String?> ? kmsKeyId, - Input<
List< ? lastRunSummaries,ScheduledQueryLastRunSummary> ?> - Input<
String?> ? name, - Input<
String?> ? nextInvocationTime, - Input<
ScheduledQueryNotificationConfiguration?> ? notificationConfiguration, - Input<
String?> ? previousInvocationTime, - Input<
String?> ? queryString, - Input<
List< ? recentlyFailedRuns,ScheduledQueryRecentlyFailedRun> ?> - Input<
String?> ? region, - Input<
ScheduledQueryScheduleConfiguration?> ? scheduleConfiguration, - Input<
String?> ? state, - Input<
Map< ? tags,String, String> ?> - Input<
Map< ? tagsAll,String, String> ?> - Input<
ScheduledQueryTargetConfiguration?> ? targetConfiguration, - Input<
ScheduledQueryTimeouts?> ? timeouts,
Creates a new ScheduledQueryState.
arn ARN of the Scheduled Query.
creationTime Creation time for the scheduled query.
errorReportConfiguration Configuration block for error reporting configuration. See below.
executionRoleArn ARN for the IAM role that Timestream will assume when running the scheduled query.
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.
lastRunSummaries Runtime summary for the last scheduled query run.
name Name of the scheduled query.
nextInvocationTime Next time the scheduled query is scheduled to run.
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.
previousInvocationTime Last time the scheduled query was run.
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 paramater 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.
recentlyFailedRuns Runtime summary for the last five failed scheduled query runs.
region Region where this resource will be managed. Defaults to the Region set in the provider configuration.
scheduleConfiguration Configuration block for schedule configuration for the query. See below.
state State of the scheduled query, either ENABLED or DISABLED.
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.
tagsAll Map of tags assigned to the resource, including those inherited from the provider defaultTags configuration block.
targetConfiguration Configuration block for writing the result of a query. See below.
timeouts Optional.
Implementation
const ScheduledQueryState({
this.arn,
this.creationTime,
this.errorReportConfiguration,
this.executionRoleArn,
this.kmsKeyId,
this.lastRunSummaries,
this.name,
this.nextInvocationTime,
this.notificationConfiguration,
this.previousInvocationTime,
this.queryString,
this.recentlyFailedRuns,
this.region,
this.scheduleConfiguration,
this.state,
this.tags,
this.tagsAll,
this.targetConfiguration,
this.timeouts,
});