1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. timestream
  5. ScheduledQuery

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.timestream.ScheduledQuery

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

The AWS::Timestream::ScheduledQuery resource creates a Timestream Scheduled Query.

Create ScheduledQuery Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ScheduledQuery(name: string, args: ScheduledQueryArgs, opts?: CustomResourceOptions);
@overload
def ScheduledQuery(resource_name: str,
                   args: ScheduledQueryArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def ScheduledQuery(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   error_report_configuration: Optional[ScheduledQueryErrorReportConfigurationArgs] = None,
                   notification_configuration: Optional[ScheduledQueryNotificationConfigurationArgs] = None,
                   query_string: Optional[str] = None,
                   schedule_configuration: Optional[ScheduledQueryScheduleConfigurationArgs] = None,
                   scheduled_query_execution_role_arn: Optional[str] = None,
                   client_token: Optional[str] = None,
                   kms_key_id: Optional[str] = None,
                   scheduled_query_name: Optional[str] = None,
                   tags: Optional[Sequence[_root_inputs.TagArgs]] = None,
                   target_configuration: Optional[ScheduledQueryTargetConfigurationArgs] = None)
func NewScheduledQuery(ctx *Context, name string, args ScheduledQueryArgs, opts ...ResourceOption) (*ScheduledQuery, error)
public ScheduledQuery(string name, ScheduledQueryArgs args, CustomResourceOptions? opts = null)
public ScheduledQuery(String name, ScheduledQueryArgs args)
public ScheduledQuery(String name, ScheduledQueryArgs args, CustomResourceOptions options)
type: aws-native:timestream:ScheduledQuery
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ScheduledQueryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ScheduledQueryArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ScheduledQueryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ScheduledQueryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ScheduledQueryArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ScheduledQuery Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ScheduledQuery resource accepts the following input properties:

ErrorReportConfiguration This property is required. Pulumi.AwsNative.Timestream.Inputs.ScheduledQueryErrorReportConfiguration
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
NotificationConfiguration This property is required. Pulumi.AwsNative.Timestream.Inputs.ScheduledQueryNotificationConfiguration
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.
QueryString This property is required. string

The query string to run. Parameter names can be specified in the query string @ 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.

ScheduleConfiguration This property is required. Pulumi.AwsNative.Timestream.Inputs.ScheduledQueryScheduleConfiguration
Schedule configuration.
ScheduledQueryExecutionRoleArn This property is required. string
The ARN for the IAM role that Timestream will assume when running the scheduled query.
ClientToken string
Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result. Making multiple identical CreateScheduledQuery requests has the same effect as making a single request.

  • If CreateScheduledQuery is called without a ClientToken , the Query SDK generates a ClientToken on your behalf.
  • After 8 hours, any request with the same ClientToken is treated as a new request.
KmsKeyId string

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.

ScheduledQueryName string
A name for the query. Scheduled query names must be unique within each Region.
Tags List<Pulumi.AwsNative.Inputs.Tag>
A list of key-value pairs to label the scheduled query.
TargetConfiguration Pulumi.AwsNative.Timestream.Inputs.ScheduledQueryTargetConfiguration
Scheduled query target store configuration.
ErrorReportConfiguration This property is required. ScheduledQueryErrorReportConfigurationArgs
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
NotificationConfiguration This property is required. ScheduledQueryNotificationConfigurationArgs
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.
QueryString This property is required. string

The query string to run. Parameter names can be specified in the query string @ 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.

ScheduleConfiguration This property is required. ScheduledQueryScheduleConfigurationArgs
Schedule configuration.
ScheduledQueryExecutionRoleArn This property is required. string
The ARN for the IAM role that Timestream will assume when running the scheduled query.
ClientToken string
Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result. Making multiple identical CreateScheduledQuery requests has the same effect as making a single request.

  • If CreateScheduledQuery is called without a ClientToken , the Query SDK generates a ClientToken on your behalf.
  • After 8 hours, any request with the same ClientToken is treated as a new request.
KmsKeyId string

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.

ScheduledQueryName string
A name for the query. Scheduled query names must be unique within each Region.
Tags TagArgs
A list of key-value pairs to label the scheduled query.
TargetConfiguration ScheduledQueryTargetConfigurationArgs
Scheduled query target store configuration.
errorReportConfiguration This property is required. ScheduledQueryErrorReportConfiguration
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
notificationConfiguration This property is required. ScheduledQueryNotificationConfiguration
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.
queryString This property is required. String

The query string to run. Parameter names can be specified in the query string @ 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.

scheduleConfiguration This property is required. ScheduledQueryScheduleConfiguration
Schedule configuration.
scheduledQueryExecutionRoleArn This property is required. String
The ARN for the IAM role that Timestream will assume when running the scheduled query.
clientToken String
Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result. Making multiple identical CreateScheduledQuery requests has the same effect as making a single request.

  • If CreateScheduledQuery is called without a ClientToken , the Query SDK generates a ClientToken on your behalf.
  • After 8 hours, any request with the same ClientToken is treated as a new request.
kmsKeyId String

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.

scheduledQueryName String
A name for the query. Scheduled query names must be unique within each Region.
tags List<Tag>
A list of key-value pairs to label the scheduled query.
targetConfiguration ScheduledQueryTargetConfiguration
Scheduled query target store configuration.
errorReportConfiguration This property is required. ScheduledQueryErrorReportConfiguration
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
notificationConfiguration This property is required. ScheduledQueryNotificationConfiguration
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.
queryString This property is required. string

The query string to run. Parameter names can be specified in the query string @ 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.

scheduleConfiguration This property is required. ScheduledQueryScheduleConfiguration
Schedule configuration.
scheduledQueryExecutionRoleArn This property is required. string
The ARN for the IAM role that Timestream will assume when running the scheduled query.
clientToken string
Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result. Making multiple identical CreateScheduledQuery requests has the same effect as making a single request.

  • If CreateScheduledQuery is called without a ClientToken , the Query SDK generates a ClientToken on your behalf.
  • After 8 hours, any request with the same ClientToken is treated as a new request.
kmsKeyId string

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.

scheduledQueryName string
A name for the query. Scheduled query names must be unique within each Region.
tags Tag[]
A list of key-value pairs to label the scheduled query.
targetConfiguration ScheduledQueryTargetConfiguration
Scheduled query target store configuration.
error_report_configuration This property is required. ScheduledQueryErrorReportConfigurationArgs
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
notification_configuration This property is required. ScheduledQueryNotificationConfigurationArgs
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.
query_string This property is required. str

The query string to run. Parameter names can be specified in the query string @ 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.

schedule_configuration This property is required. ScheduledQueryScheduleConfigurationArgs
Schedule configuration.
scheduled_query_execution_role_arn This property is required. str
The ARN for the IAM role that Timestream will assume when running the scheduled query.
client_token str
Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result. Making multiple identical CreateScheduledQuery requests has the same effect as making a single request.

  • If CreateScheduledQuery is called without a ClientToken , the Query SDK generates a ClientToken on your behalf.
  • After 8 hours, any request with the same ClientToken is treated as a new request.
kms_key_id str

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.

scheduled_query_name str
A name for the query. Scheduled query names must be unique within each Region.
tags Sequence[TagArgs]
A list of key-value pairs to label the scheduled query.
target_configuration ScheduledQueryTargetConfigurationArgs
Scheduled query target store configuration.
errorReportConfiguration This property is required. Property Map
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
notificationConfiguration This property is required. Property Map
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.
queryString This property is required. String

The query string to run. Parameter names can be specified in the query string @ 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.

scheduleConfiguration This property is required. Property Map
Schedule configuration.
scheduledQueryExecutionRoleArn This property is required. String
The ARN for the IAM role that Timestream will assume when running the scheduled query.
clientToken String
Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result. Making multiple identical CreateScheduledQuery requests has the same effect as making a single request.

  • If CreateScheduledQuery is called without a ClientToken , the Query SDK generates a ClientToken on your behalf.
  • After 8 hours, any request with the same ClientToken is treated as a new request.
kmsKeyId String

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.

scheduledQueryName String
A name for the query. Scheduled query names must be unique within each Region.
tags List<Property Map>
A list of key-value pairs to label the scheduled query.
targetConfiguration Property Map
Scheduled query target store configuration.

Outputs

All input properties are implicitly available as output properties. Additionally, the ScheduledQuery resource produces the following output properties:

Arn string
The ARN of the scheduled query.
Id string
The provider-assigned unique ID for this managed resource.
SqErrorReportConfiguration string
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
SqKmsKeyId string
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
The name of the scheduled query. Scheduled query names must be unique within each Region.
SqNotificationConfiguration string
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
The query string to run. Parameter names can be specified in the query string @ 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.
SqScheduleConfiguration string
Configuration for when the scheduled query is executed.
SqScheduledQueryExecutionRoleArn string
The ARN for the IAM role that Timestream will assume when running the scheduled query.
SqTargetConfiguration string
Configuration of target store where scheduled query results are written to.
Arn string
The ARN of the scheduled query.
Id string
The provider-assigned unique ID for this managed resource.
SqErrorReportConfiguration string
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
SqKmsKeyId string
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
The name of the scheduled query. Scheduled query names must be unique within each Region.
SqNotificationConfiguration string
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
The query string to run. Parameter names can be specified in the query string @ 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.
SqScheduleConfiguration string
Configuration for when the scheduled query is executed.
SqScheduledQueryExecutionRoleArn string
The ARN for the IAM role that Timestream will assume when running the scheduled query.
SqTargetConfiguration string
Configuration of target store where scheduled query results are written to.
arn String
The ARN of the scheduled query.
id String
The provider-assigned unique ID for this managed resource.
sqErrorReportConfiguration String
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
sqKmsKeyId String
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
The name of the scheduled query. Scheduled query names must be unique within each Region.
sqNotificationConfiguration String
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
The query string to run. Parameter names can be specified in the query string @ 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.
sqScheduleConfiguration String
Configuration for when the scheduled query is executed.
sqScheduledQueryExecutionRoleArn String
The ARN for the IAM role that Timestream will assume when running the scheduled query.
sqTargetConfiguration String
Configuration of target store where scheduled query results are written to.
arn string
The ARN of the scheduled query.
id string
The provider-assigned unique ID for this managed resource.
sqErrorReportConfiguration string
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
sqKmsKeyId string
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
The name of the scheduled query. Scheduled query names must be unique within each Region.
sqNotificationConfiguration string
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
The query string to run. Parameter names can be specified in the query string @ 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.
sqScheduleConfiguration string
Configuration for when the scheduled query is executed.
sqScheduledQueryExecutionRoleArn string
The ARN for the IAM role that Timestream will assume when running the scheduled query.
sqTargetConfiguration string
Configuration of target store where scheduled query results are written to.
arn str
The ARN of the scheduled query.
id str
The provider-assigned unique ID for this managed resource.
sq_error_report_configuration str
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
sq_kms_key_id str
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.
sq_name str
The name of the scheduled query. Scheduled query names must be unique within each Region.
sq_notification_configuration str
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.
sq_query_string str
The query string to run. Parameter names can be specified in the query string @ 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.
sq_schedule_configuration str
Configuration for when the scheduled query is executed.
sq_scheduled_query_execution_role_arn str
The ARN for the IAM role that Timestream will assume when running the scheduled query.
sq_target_configuration str
Configuration of target store where scheduled query results are written to.
arn String
The ARN of the scheduled query.
id String
The provider-assigned unique ID for this managed resource.
sqErrorReportConfiguration String
Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
sqKmsKeyId String
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
The name of the scheduled query. Scheduled query names must be unique within each Region.
sqNotificationConfiguration String
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
The query string to run. Parameter names can be specified in the query string @ 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.
sqScheduleConfiguration String
Configuration for when the scheduled query is executed.
sqScheduledQueryExecutionRoleArn String
The ARN for the IAM role that Timestream will assume when running the scheduled query.
sqTargetConfiguration String
Configuration of target store where scheduled query results are written to.

Supporting Types

ScheduledQueryDimensionMapping
, ScheduledQueryDimensionMappingArgs

DimensionValueType This property is required. Pulumi.AwsNative.Timestream.ScheduledQueryDimensionValueType
Name This property is required. string
DimensionValueType This property is required. ScheduledQueryDimensionValueType
Name This property is required. string
dimensionValueType This property is required. ScheduledQueryDimensionValueType
name This property is required. String
dimensionValueType This property is required. ScheduledQueryDimensionValueType
name This property is required. string
dimension_value_type This property is required. ScheduledQueryDimensionValueType
name This property is required. str
dimensionValueType This property is required. "VARCHAR"
name This property is required. String

ScheduledQueryDimensionValueType
, ScheduledQueryDimensionValueTypeArgs

Varchar
VARCHAR
ScheduledQueryDimensionValueTypeVarchar
VARCHAR
Varchar
VARCHAR
Varchar
VARCHAR
VARCHAR
VARCHAR
"VARCHAR"
VARCHAR

ScheduledQueryEncryptionOption
, ScheduledQueryEncryptionOptionArgs

SseS3
SSE_S3
SseKms
SSE_KMS
ScheduledQueryEncryptionOptionSseS3
SSE_S3
ScheduledQueryEncryptionOptionSseKms
SSE_KMS
SseS3
SSE_S3
SseKms
SSE_KMS
SseS3
SSE_S3
SseKms
SSE_KMS
SSE_S3
SSE_S3
SSE_KMS
SSE_KMS
"SSE_S3"
SSE_S3
"SSE_KMS"
SSE_KMS

ScheduledQueryErrorReportConfiguration
, ScheduledQueryErrorReportConfigurationArgs

S3Configuration This property is required. Pulumi.AwsNative.Timestream.Inputs.ScheduledQueryS3Configuration
The S3 configuration for the error reports.
S3Configuration This property is required. ScheduledQueryS3Configuration
The S3 configuration for the error reports.
s3Configuration This property is required. ScheduledQueryS3Configuration
The S3 configuration for the error reports.
s3Configuration This property is required. ScheduledQueryS3Configuration
The S3 configuration for the error reports.
s3_configuration This property is required. ScheduledQueryS3Configuration
The S3 configuration for the error reports.
s3Configuration This property is required. Property Map
The S3 configuration for the error reports.

ScheduledQueryMixedMeasureMapping
, ScheduledQueryMixedMeasureMappingArgs

ScheduledQueryMixedMeasureMappingMeasureValueType
, ScheduledQueryMixedMeasureMappingMeasureValueTypeArgs

Bigint
BIGINT
Boolean
BOOLEAN
Double
DOUBLE
Varchar
VARCHAR
Multi
MULTI
ScheduledQueryMixedMeasureMappingMeasureValueTypeBigint
BIGINT
ScheduledQueryMixedMeasureMappingMeasureValueTypeBoolean
BOOLEAN
ScheduledQueryMixedMeasureMappingMeasureValueTypeDouble
DOUBLE
ScheduledQueryMixedMeasureMappingMeasureValueTypeVarchar
VARCHAR
ScheduledQueryMixedMeasureMappingMeasureValueTypeMulti
MULTI
Bigint
BIGINT
Boolean
BOOLEAN
Double
DOUBLE
Varchar
VARCHAR
Multi
MULTI
Bigint
BIGINT
Boolean
BOOLEAN
Double
DOUBLE
Varchar
VARCHAR
Multi
MULTI
BIGINT
BIGINT
BOOLEAN
BOOLEAN
DOUBLE
DOUBLE
VARCHAR
VARCHAR
MULTI
MULTI
"BIGINT"
BIGINT
"BOOLEAN"
BOOLEAN
"DOUBLE"
DOUBLE
"VARCHAR"
VARCHAR
"MULTI"
MULTI

ScheduledQueryMultiMeasureAttributeMapping
, ScheduledQueryMultiMeasureAttributeMappingArgs

ScheduledQueryMultiMeasureAttributeMappingMeasureValueType
, ScheduledQueryMultiMeasureAttributeMappingMeasureValueTypeArgs

Bigint
BIGINT
Boolean
BOOLEAN
Double
DOUBLE
Varchar
VARCHAR
Timestamp
TIMESTAMP
ScheduledQueryMultiMeasureAttributeMappingMeasureValueTypeBigint
BIGINT
ScheduledQueryMultiMeasureAttributeMappingMeasureValueTypeBoolean
BOOLEAN
ScheduledQueryMultiMeasureAttributeMappingMeasureValueTypeDouble
DOUBLE
ScheduledQueryMultiMeasureAttributeMappingMeasureValueTypeVarchar
VARCHAR
ScheduledQueryMultiMeasureAttributeMappingMeasureValueTypeTimestamp
TIMESTAMP
Bigint
BIGINT
Boolean
BOOLEAN
Double
DOUBLE
Varchar
VARCHAR
Timestamp
TIMESTAMP
Bigint
BIGINT
Boolean
BOOLEAN
Double
DOUBLE
Varchar
VARCHAR
Timestamp
TIMESTAMP
BIGINT
BIGINT
BOOLEAN
BOOLEAN
DOUBLE
DOUBLE
VARCHAR
VARCHAR
TIMESTAMP
TIMESTAMP
"BIGINT"
BIGINT
"BOOLEAN"
BOOLEAN
"DOUBLE"
DOUBLE
"VARCHAR"
VARCHAR
"TIMESTAMP"
TIMESTAMP

ScheduledQueryMultiMeasureMappings
, ScheduledQueryMultiMeasureMappingsArgs

MultiMeasureAttributeMappings This property is required. List<Pulumi.AwsNative.Timestream.Inputs.ScheduledQueryMultiMeasureAttributeMapping>
Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
TargetMultiMeasureName string
The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.
MultiMeasureAttributeMappings This property is required. []ScheduledQueryMultiMeasureAttributeMapping
Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
TargetMultiMeasureName string
The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.
multiMeasureAttributeMappings This property is required. List<ScheduledQueryMultiMeasureAttributeMapping>
Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
targetMultiMeasureName String
The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.
multiMeasureAttributeMappings This property is required. ScheduledQueryMultiMeasureAttributeMapping[]
Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
targetMultiMeasureName string
The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.
multi_measure_attribute_mappings This property is required. Sequence[ScheduledQueryMultiMeasureAttributeMapping]
Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
target_multi_measure_name str
The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.
multiMeasureAttributeMappings This property is required. List<Property Map>
Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
targetMultiMeasureName String
The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.

ScheduledQueryNotificationConfiguration
, ScheduledQueryNotificationConfigurationArgs

SnsConfiguration This property is required. Pulumi.AwsNative.Timestream.Inputs.ScheduledQuerySnsConfiguration
Details on SNS configuration.
SnsConfiguration This property is required. ScheduledQuerySnsConfiguration
Details on SNS configuration.
snsConfiguration This property is required. ScheduledQuerySnsConfiguration
Details on SNS configuration.
snsConfiguration This property is required. ScheduledQuerySnsConfiguration
Details on SNS configuration.
sns_configuration This property is required. ScheduledQuerySnsConfiguration
Details on SNS configuration.
snsConfiguration This property is required. Property Map
Details on SNS configuration.

ScheduledQueryS3Configuration
, ScheduledQueryS3ConfigurationArgs

BucketName This property is required. string
Name of the S3 bucket under which error reports will be created.
EncryptionOption Pulumi.AwsNative.Timestream.ScheduledQueryEncryptionOption
Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
ObjectKeyPrefix string
Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
BucketName This property is required. string
Name of the S3 bucket under which error reports will be created.
EncryptionOption ScheduledQueryEncryptionOption
Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
ObjectKeyPrefix string
Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
bucketName This property is required. String
Name of the S3 bucket under which error reports will be created.
encryptionOption ScheduledQueryEncryptionOption
Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
objectKeyPrefix String
Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
bucketName This property is required. string
Name of the S3 bucket under which error reports will be created.
encryptionOption ScheduledQueryEncryptionOption
Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
objectKeyPrefix string
Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
bucket_name This property is required. str
Name of the S3 bucket under which error reports will be created.
encryption_option ScheduledQueryEncryptionOption
Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
object_key_prefix str
Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
bucketName This property is required. String
Name of the S3 bucket under which error reports will be created.
encryptionOption "SSE_S3" | "SSE_KMS"
Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
objectKeyPrefix String
Prefix for the error report key. Timestream by default adds the following prefix to the error report path.

ScheduledQueryScheduleConfiguration
, ScheduledQueryScheduleConfigurationArgs

ScheduleExpression This property is required. string
An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.
ScheduleExpression This property is required. string
An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.
scheduleExpression This property is required. String
An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.
scheduleExpression This property is required. string
An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.
schedule_expression This property is required. str
An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.
scheduleExpression This property is required. String
An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.

ScheduledQuerySnsConfiguration
, ScheduledQuerySnsConfigurationArgs

TopicArn This property is required. string
SNS topic ARN that the scheduled query status notifications will be sent to.
TopicArn This property is required. string
SNS topic ARN that the scheduled query status notifications will be sent to.
topicArn This property is required. String
SNS topic ARN that the scheduled query status notifications will be sent to.
topicArn This property is required. string
SNS topic ARN that the scheduled query status notifications will be sent to.
topic_arn This property is required. str
SNS topic ARN that the scheduled query status notifications will be sent to.
topicArn This property is required. String
SNS topic ARN that the scheduled query status notifications will be sent to.

ScheduledQueryTargetConfiguration
, ScheduledQueryTargetConfigurationArgs

TimestreamConfiguration This property is required. Pulumi.AwsNative.Timestream.Inputs.ScheduledQueryTimestreamConfiguration
Configuration needed to write data into the Timestream database and table.
TimestreamConfiguration This property is required. ScheduledQueryTimestreamConfiguration
Configuration needed to write data into the Timestream database and table.
timestreamConfiguration This property is required. ScheduledQueryTimestreamConfiguration
Configuration needed to write data into the Timestream database and table.
timestreamConfiguration This property is required. ScheduledQueryTimestreamConfiguration
Configuration needed to write data into the Timestream database and table.
timestream_configuration This property is required. ScheduledQueryTimestreamConfiguration
Configuration needed to write data into the Timestream database and table.
timestreamConfiguration This property is required. Property Map
Configuration needed to write data into the Timestream database and table.

ScheduledQueryTimestreamConfiguration
, ScheduledQueryTimestreamConfigurationArgs

DatabaseName This property is required. string
Name of Timestream database to which the query result will be written.
DimensionMappings This property is required. List<Pulumi.AwsNative.Timestream.Inputs.ScheduledQueryDimensionMapping>
This is to allow mapping column(s) from the query result to the dimension in the destination table.
TableName This property is required. string
Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.
TimeColumn This property is required. string
Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.
MeasureNameColumn string
Name of the measure column. Also see MultiMeasureMappings and MixedMeasureMappings for how measure name properties on those relate to MeasureNameColumn .
MixedMeasureMappings List<Pulumi.AwsNative.Timestream.Inputs.ScheduledQueryMixedMeasureMapping>
Specifies how to map measures to multi-measure records.
MultiMeasureMappings Pulumi.AwsNative.Timestream.Inputs.ScheduledQueryMultiMeasureMappings
Multi-measure mappings.
DatabaseName This property is required. string
Name of Timestream database to which the query result will be written.
DimensionMappings This property is required. []ScheduledQueryDimensionMapping
This is to allow mapping column(s) from the query result to the dimension in the destination table.
TableName This property is required. string
Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.
TimeColumn This property is required. string
Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.
MeasureNameColumn string
Name of the measure column. Also see MultiMeasureMappings and MixedMeasureMappings for how measure name properties on those relate to MeasureNameColumn .
MixedMeasureMappings []ScheduledQueryMixedMeasureMapping
Specifies how to map measures to multi-measure records.
MultiMeasureMappings ScheduledQueryMultiMeasureMappings
Multi-measure mappings.
databaseName This property is required. String
Name of Timestream database to which the query result will be written.
dimensionMappings This property is required. List<ScheduledQueryDimensionMapping>
This is to allow mapping column(s) from the query result to the dimension in the destination table.
tableName This property is required. String
Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.
timeColumn This property is required. String
Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.
measureNameColumn String
Name of the measure column. Also see MultiMeasureMappings and MixedMeasureMappings for how measure name properties on those relate to MeasureNameColumn .
mixedMeasureMappings List<ScheduledQueryMixedMeasureMapping>
Specifies how to map measures to multi-measure records.
multiMeasureMappings ScheduledQueryMultiMeasureMappings
Multi-measure mappings.
databaseName This property is required. string
Name of Timestream database to which the query result will be written.
dimensionMappings This property is required. ScheduledQueryDimensionMapping[]
This is to allow mapping column(s) from the query result to the dimension in the destination table.
tableName This property is required. string
Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.
timeColumn This property is required. string
Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.
measureNameColumn string
Name of the measure column. Also see MultiMeasureMappings and MixedMeasureMappings for how measure name properties on those relate to MeasureNameColumn .
mixedMeasureMappings ScheduledQueryMixedMeasureMapping[]
Specifies how to map measures to multi-measure records.
multiMeasureMappings ScheduledQueryMultiMeasureMappings
Multi-measure mappings.
database_name This property is required. str
Name of Timestream database to which the query result will be written.
dimension_mappings This property is required. Sequence[ScheduledQueryDimensionMapping]
This is to allow mapping column(s) from the query result to the dimension in the destination table.
table_name This property is required. str
Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.
time_column This property is required. str
Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.
measure_name_column str
Name of the measure column. Also see MultiMeasureMappings and MixedMeasureMappings for how measure name properties on those relate to MeasureNameColumn .
mixed_measure_mappings Sequence[ScheduledQueryMixedMeasureMapping]
Specifies how to map measures to multi-measure records.
multi_measure_mappings ScheduledQueryMultiMeasureMappings
Multi-measure mappings.
databaseName This property is required. String
Name of Timestream database to which the query result will be written.
dimensionMappings This property is required. List<Property Map>
This is to allow mapping column(s) from the query result to the dimension in the destination table.
tableName This property is required. String
Name of Timestream table that the query result will be written to. The table should be within the same database that is provided in Timestream configuration.
timeColumn This property is required. String
Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.
measureNameColumn String
Name of the measure column. Also see MultiMeasureMappings and MixedMeasureMappings for how measure name properties on those relate to MeasureNameColumn .
mixedMeasureMappings List<Property Map>
Specifies how to map measures to multi-measure records.
multiMeasureMappings Property Map
Multi-measure mappings.

Tag
, TagArgs

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi