Type object
Schema URL https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-timestream-scheduledquery.json
Parent schema serverless-framework-configuration
Type: object

The AWS::Timestream::ScheduledQuery resource creates a Timestream Scheduled Query.. Source:- https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-timestream.git

Properties

QueryString string | Aws_CF_FunctionString required

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 object required

Configuration for when the scheduled query is executed.

1 nested properties
ScheduleExpression string | Aws_CF_FunctionString required

An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.

NotificationConfiguration object required

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.

1 nested properties
SnsConfiguration object required

SNS configuration for notification upon scheduled query execution.

1 nested properties
TopicArn string | Aws_CF_FunctionString required

SNS topic ARN that the scheduled query status notifications will be sent to.

ScheduledQueryExecutionRoleArn string | Aws_CF_FunctionString required

The ARN for the IAM role that Timestream will assume when running the scheduled query.

ErrorReportConfiguration object required

Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.

1 nested properties
S3Configuration object required

Details on S3 location for error reports that result from running a query.

3 nested properties
BucketName string | Aws_CF_FunctionString required

Name of the S3 bucket under which error reports will be created.

ObjectKeyPrefix string | Aws_CF_FunctionString

Prefix for error report keys.

EncryptionOption string | Aws_CF_FunctionString

Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.

ScheduledQueryName string | Aws_CF_FunctionString

The name of the scheduled query. Scheduled query names must be unique within each Region.

ClientToken string | Aws_CF_FunctionString

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.

TargetConfiguration object

Configuration of target store where scheduled query results are written to.

1 nested properties
TimestreamConfiguration object required

Configuration needed to write data into the Timestream database and table.

7 nested properties
DatabaseName string | Aws_CF_FunctionString required

Name of Timestream database to which the query result will be written.

TableName string | Aws_CF_FunctionString required

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 string | Aws_CF_FunctionString required

Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.

DimensionMappings DimensionMapping[] required

This is to allow mapping column(s) from the query result to the dimension in the destination table.

MultiMeasureMappings object

Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided. MultiMeasureMappings can be used to ingest data as multi measures in the derived table.

2 nested properties
MultiMeasureAttributeMappings MultiMeasureAttributeMapping[] required

Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.

minItems=1
TargetMultiMeasureName string | Aws_CF_FunctionString

Name of the target multi-measure in the derived table. Required if MeasureNameColumn is not provided. If MeasureNameColumn is provided then the value from that column will be used as the multi-measure name.

MixedMeasureMappings MixedMeasureMapping[]

Specifies how to map measures to multi-measure records.

minItems=1
MeasureNameColumn string | Aws_CF_FunctionString

Name of the measure name column from the query result.

KmsKeyId string | Aws_CF_FunctionString

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.

Tags Tag[]

A list of key-value pairs to label the scheduled query.

maxItems=200

Definitions

Arn string | Aws_CF_FunctionString

Amazon Resource Name of the scheduled query that is generated upon creation.

ScheduledQueryName string | Aws_CF_FunctionString

The name of the scheduled query. Scheduled query names must be unique within each Region.

QueryString string | Aws_CF_FunctionString

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 object

Configuration for when the scheduled query is executed.

ScheduleExpression string | Aws_CF_FunctionString required

An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.

NotificationConfiguration object

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.

SnsConfiguration object required

SNS configuration for notification upon scheduled query execution.

1 nested properties
TopicArn string | Aws_CF_FunctionString required

SNS topic ARN that the scheduled query status notifications will be sent to.

ClientToken string | Aws_CF_FunctionString

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.

ScheduledQueryExecutionRoleArn string | Aws_CF_FunctionString

The ARN for the IAM role that Timestream will assume when running the scheduled query.

TargetConfiguration object

Configuration of target store where scheduled query results are written to.

TimestreamConfiguration object required

Configuration needed to write data into the Timestream database and table.

7 nested properties
DatabaseName string | Aws_CF_FunctionString required

Name of Timestream database to which the query result will be written.

TableName string | Aws_CF_FunctionString required

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 string | Aws_CF_FunctionString required

Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.

DimensionMappings DimensionMapping[] required

This is to allow mapping column(s) from the query result to the dimension in the destination table.

MultiMeasureMappings object

Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided. MultiMeasureMappings can be used to ingest data as multi measures in the derived table.

2 nested properties
MultiMeasureAttributeMappings MultiMeasureAttributeMapping[] required

Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.

minItems=1
TargetMultiMeasureName string | Aws_CF_FunctionString

Name of the target multi-measure in the derived table. Required if MeasureNameColumn is not provided. If MeasureNameColumn is provided then the value from that column will be used as the multi-measure name.

MixedMeasureMappings MixedMeasureMapping[]

Specifies how to map measures to multi-measure records.

minItems=1
MeasureNameColumn string | Aws_CF_FunctionString

Name of the measure name column from the query result.

ErrorReportConfiguration object

Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.

S3Configuration object required

Details on S3 location for error reports that result from running a query.

3 nested properties
BucketName string | Aws_CF_FunctionString required

Name of the S3 bucket under which error reports will be created.

ObjectKeyPrefix string | Aws_CF_FunctionString

Prefix for error report keys.

EncryptionOption string | Aws_CF_FunctionString

Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.

KmsKeyId string | Aws_CF_FunctionString

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.

Tags Tag[]

A list of key-value pairs to label the scheduled query.

ScheduleExpression string | Aws_CF_FunctionString

An expression that denotes when to trigger the scheduled query run. This can be a cron expression or a rate expression.

SnsConfiguration object

SNS configuration for notification upon scheduled query execution.

TopicArn string | Aws_CF_FunctionString required

SNS topic ARN that the scheduled query status notifications will be sent to.

TopicArn string | Aws_CF_FunctionString

SNS topic ARN that the scheduled query status notifications will be sent to.

TimestreamConfiguration object

Configuration needed to write data into the Timestream database and table.

DatabaseName string | Aws_CF_FunctionString required

Name of Timestream database to which the query result will be written.

TableName string | Aws_CF_FunctionString required

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 string | Aws_CF_FunctionString required

Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.

DimensionMappings DimensionMapping[] required

This is to allow mapping column(s) from the query result to the dimension in the destination table.

MultiMeasureMappings object

Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided. MultiMeasureMappings can be used to ingest data as multi measures in the derived table.

2 nested properties
MultiMeasureAttributeMappings MultiMeasureAttributeMapping[] required

Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.

minItems=1
TargetMultiMeasureName string | Aws_CF_FunctionString

Name of the target multi-measure in the derived table. Required if MeasureNameColumn is not provided. If MeasureNameColumn is provided then the value from that column will be used as the multi-measure name.

MixedMeasureMappings MixedMeasureMapping[]

Specifies how to map measures to multi-measure records.

minItems=1
MeasureNameColumn string | Aws_CF_FunctionString

Name of the measure name column from the query result.

DatabaseName string | Aws_CF_FunctionString

Name of Timestream database to which the query result will be written.

TableName string | Aws_CF_FunctionString

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 string | Aws_CF_FunctionString

Column from query result that should be used as the time column in destination table. Column type for this should be TIMESTAMP.

DimensionMappings DimensionMapping[]

This is to allow mapping column(s) from the query result to the dimension in the destination table.

DimensionMapping object

This type is used to map column(s) from the query result to a dimension in the destination table.

Name string | Aws_CF_FunctionString required

Column name from query result.

DimensionValueType string | Aws_CF_FunctionString required

Type for the dimension.

DimensionMappingName string | Aws_CF_FunctionString

Column name from query result.

DimensionValueType string | Aws_CF_FunctionString

Type for the dimension.

MultiMeasureMappings object

Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided. MultiMeasureMappings can be used to ingest data as multi measures in the derived table.

MultiMeasureAttributeMappings MultiMeasureAttributeMapping[] required

Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.

minItems=1
TargetMultiMeasureName string | Aws_CF_FunctionString

Name of the target multi-measure in the derived table. Required if MeasureNameColumn is not provided. If MeasureNameColumn is provided then the value from that column will be used as the multi-measure name.

TargetMultiMeasureName string | Aws_CF_FunctionString

Name of the target multi-measure in the derived table. Required if MeasureNameColumn is not provided. If MeasureNameColumn is provided then the value from that column will be used as the multi-measure name.

MultiMeasureAttributeMappingList MultiMeasureAttributeMapping[]

Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.

MultiMeasureAttributeMapping object

An attribute mapping to be used for mapping query results to ingest data for multi-measure attributes.

SourceColumn string | Aws_CF_FunctionString required

Source measure value column in the query result where the attribute value is to be read.

MeasureValueType string | Aws_CF_FunctionString required

Value type of the measure value column to be read from the query result.

TargetMultiMeasureAttributeName string | Aws_CF_FunctionString

Custom name to be used for attribute name in derived table. If not provided, source column name would be used.

MultiMeasureAttributeMappingSourceColumn string | Aws_CF_FunctionString

Source measure value column in the query result where the attribute value is to be read.

MultiMeasureAttributeMappingMeasureValueType string | Aws_CF_FunctionString

Value type of the measure value column to be read from the query result.

TargetMultiMeasureAttributeName string | Aws_CF_FunctionString

Custom name to be used for attribute name in derived table. If not provided, source column name would be used.

MixedMeasureMappings MixedMeasureMapping[]

Specifies how to map measures to multi-measure records.

MixedMeasureMapping object

MixedMeasureMappings are mappings that can be used to ingest data into a mixture of narrow and multi measures in the derived table.

MeasureValueType string | Aws_CF_FunctionString required

Type of the value that is to be read from SourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.

MeasureName string | Aws_CF_FunctionString

Refers to the value of the measure name in a result row. This field is required if MeasureNameColumn is provided.

SourceColumn string | Aws_CF_FunctionString

This field refers to the source column from which the measure value is to be read for result materialization.

TargetMeasureName string | Aws_CF_FunctionString

Target measure name to be used. If not provided, the target measure name by default would be MeasureName if provided, or SourceColumn otherwise.

MultiMeasureAttributeMappings MultiMeasureAttributeMapping[]

Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.

minItems=1
MixedMeasureMappingMeasureName string | Aws_CF_FunctionString

Refers to the value of the measure name in a result row. This field is required if MeasureNameColumn is provided.

MixedMeasureMappingSourceColumn string | Aws_CF_FunctionString

This field refers to the source column from which the measure value is to be read for result materialization.

MixedMeasureMappingTargetMeasureName string | Aws_CF_FunctionString

Target measure name to be used. If not provided, the target measure name by default would be MeasureName if provided, or SourceColumn otherwise.

MixedMeasureMappingMeasureValueType string | Aws_CF_FunctionString

Type of the value that is to be read from SourceColumn. If the mapping is for MULTI, use MeasureValueType.MULTI.

MeasureNameColumn string | Aws_CF_FunctionString

Name of the measure name column from the query result.

S3Configuration object

Details on S3 location for error reports that result from running a query.

BucketName string | Aws_CF_FunctionString required

Name of the S3 bucket under which error reports will be created.

ObjectKeyPrefix string | Aws_CF_FunctionString

Prefix for error report keys.

EncryptionOption string | Aws_CF_FunctionString

Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.

BucketName string | Aws_CF_FunctionString

Name of the S3 bucket under which error reports will be created.

ObjectKeyPrefix string | Aws_CF_FunctionString

Prefix for error report keys.

EncryptionOption string | Aws_CF_FunctionString

Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.

Tag object

A key-value pair to label the scheduled query.

Key string | Aws_CF_FunctionString required

The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

Value string | Aws_CF_FunctionString required

The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

Key string | Aws_CF_FunctionString

The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.

Value string | Aws_CF_FunctionString

The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.