---
type: resource-type
title: TimestreamScheduledQuery
description: aws resource type AWS::Timestream::ScheduledQuery
name: TimestreamScheduledQuery
lexicon: aws
resource_type: AWS::Timestream::ScheduledQuery
---
`AWS::Timestream::ScheduledQuery`, a resource type of the aws lexicon.

## Properties

- `ErrorReportConfiguration` (`TimestreamScheduledQuery_ErrorReportConfiguration`, required)
- `NotificationConfiguration` (`TimestreamScheduledQuery_NotificationConfiguration`, required)
- `QueryString` (`string`, required)
- `ScheduleConfiguration` (`TimestreamScheduledQuery_ScheduleConfiguration`, required)
- `ScheduledQueryExecutionRoleArn` (`string`, required)
- `Arn` (`string`, optional)
- `ClientToken` (`string`, optional)
- `KmsKeyId` (`string`, optional)
- `ScheduledQueryName` (`string`, optional)
- `SQErrorReportConfiguration` (`string`, optional): Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
- `SQKmsKeyId` (`string`, optional): The Amazon KMS key used to encrypt the scheduled query resource, at-rest. If the Amazon KMS key is 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 encryption type, the same KmsKeyId is used to encrypt the error report at rest.
- `SQName` (`string`, optional): The name of the scheduled query. Scheduled query names must be unique within each Region.
- `SQNotificationConfiguration` (`string`, optional): Notification configuration for the scheduled query. A notification is sent by Timestream when a query run finishes, when the state is updated or when you delete it.
- `SQQueryString` (`string`, optional): The query string to run. Parameter names can be specified in the query string @ character followed by an identifier. The named Parameter
- `SQScheduleConfiguration` (`string`, optional): Configuration for when the scheduled query is executed.
- `SQScheduledQueryExecutionRoleArn` (`string`, optional): The ARN for the IAM role that Timestream will assume when running the scheduled query.
- `SQTargetConfiguration` (`string`, optional): Configuration of target store where scheduled query results are written to.
- `Tags` (`any`, optional)
- `TargetConfiguration` (`TimestreamScheduledQuery_TargetConfiguration`, optional)

## Attributes

- `Arn`
- `SQErrorReportConfiguration`
- `SQKmsKeyId`
- `SQName`
- `SQNotificationConfiguration`
- `SQQueryString`
- `SQScheduleConfiguration`
- `SQScheduledQueryExecutionRoleArn`
- `SQTargetConfiguration`
