We recommend new projects start with resources from the AWS provider.
aws-native.timestream.ScheduledQuery
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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:
- Error
Report Configuration This property is required. Pulumi.Aws Native. Timestream. Inputs. Scheduled Query Error Report Configuration - 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. Pulumi.Aws Native. Timestream. Inputs. Scheduled Query Notification Configuration - 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. 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.- Schedule
Configuration This property is required. Pulumi.Aws Native. Timestream. Inputs. Scheduled Query Schedule Configuration - Schedule configuration.
- Scheduled
Query Execution Role Arn This property is required. string - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- Client
Token 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 aClientToken
on your behalf. - After 8 hours, any request with the same
ClientToken
is treated as a new request.
- If CreateScheduledQuery is called without a
- Kms
Key stringId 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 stringName - A name for the query. Scheduled query names must be unique within each Region.
- List<Pulumi.
Aws Native. Inputs. Tag> - A list of key-value pairs to label the scheduled query.
- Target
Configuration Pulumi.Aws Native. Timestream. Inputs. Scheduled Query Target Configuration - Scheduled query target store configuration.
- Error
Report Configuration This property is required. ScheduledQuery Error Report Configuration Args - 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. ScheduledQuery Notification Configuration Args - 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. 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.- Schedule
Configuration This property is required. ScheduledQuery Schedule Configuration Args - Schedule configuration.
- Scheduled
Query Execution Role Arn This property is required. string - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- Client
Token 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 aClientToken
on your behalf. - After 8 hours, any request with the same
ClientToken
is treated as a new request.
- If CreateScheduledQuery is called without a
- Kms
Key stringId 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 stringName - A name for the query. Scheduled query names must be unique within each Region.
- Tag
Args - A list of key-value pairs to label the scheduled query.
- Target
Configuration ScheduledQuery Target Configuration Args - Scheduled query target store configuration.
- error
Report Configuration This property is required. ScheduledQuery Error Report Configuration - 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. ScheduledQuery Notification Configuration - 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. 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.- schedule
Configuration This property is required. ScheduledQuery Schedule Configuration - Schedule configuration.
- scheduled
Query Execution Role Arn This property is required. String - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- client
Token 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 aClientToken
on your behalf. - After 8 hours, any request with the same
ClientToken
is treated as a new request.
- If CreateScheduledQuery is called without a
- kms
Key StringId 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 StringName - A name for the query. Scheduled query names must be unique within each Region.
- List<Tag>
- A list of key-value pairs to label the scheduled query.
- target
Configuration ScheduledQuery Target Configuration - Scheduled query target store configuration.
- error
Report Configuration This property is required. ScheduledQuery Error Report Configuration - 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. ScheduledQuery Notification Configuration - 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. 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.- schedule
Configuration This property is required. ScheduledQuery Schedule Configuration - Schedule configuration.
- scheduled
Query Execution Role Arn This property is required. string - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- client
Token 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 aClientToken
on your behalf. - After 8 hours, any request with the same
ClientToken
is treated as a new request.
- If CreateScheduledQuery is called without a
- kms
Key stringId 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 stringName - A name for the query. Scheduled query names must be unique within each Region.
- Tag[]
- A list of key-value pairs to label the scheduled query.
- target
Configuration ScheduledQuery Target Configuration - Scheduled query target store configuration.
- error_
report_ configuration This property is required. ScheduledQuery Error Report Configuration Args - 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. ScheduledQuery Notification Configuration Args - 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. ScheduledQuery Schedule Configuration Args - 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 aClientToken
on your behalf. - After 8 hours, any request with the same
ClientToken
is treated as a new request.
- If CreateScheduledQuery is called without a
- kms_
key_ strid 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_ strname - A name for the query. Scheduled query names must be unique within each Region.
- Sequence[Tag
Args] - A list of key-value pairs to label the scheduled query.
- target_
configuration ScheduledQuery Target Configuration Args - Scheduled query target store configuration.
- error
Report Configuration 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.
- notification
Configuration 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.
- query
String 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.- schedule
Configuration This property is required. Property Map - Schedule configuration.
- scheduled
Query Execution Role Arn This property is required. String - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- client
Token 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 aClientToken
on your behalf. - After 8 hours, any request with the same
ClientToken
is treated as a new request.
- If CreateScheduledQuery is called without a
- kms
Key StringId 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 StringName - A name for the query. Scheduled query names must be unique within each Region.
- List<Property Map>
- A list of key-value pairs to label the scheduled query.
- target
Configuration 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.
- Sq
Error stringReport Configuration - Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
- Sq
Kms stringKey Id - 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 string - The name of the scheduled query. Scheduled query names must be unique within each Region.
- Sq
Notification stringConfiguration - 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 stringString - 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 stringConfiguration - Configuration for when the scheduled query is executed.
- Sq
Scheduled stringQuery Execution Role Arn - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- Sq
Target stringConfiguration - 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.
- Sq
Error stringReport Configuration - Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
- Sq
Kms stringKey Id - 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 string - The name of the scheduled query. Scheduled query names must be unique within each Region.
- Sq
Notification stringConfiguration - 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 stringString - 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 stringConfiguration - Configuration for when the scheduled query is executed.
- Sq
Scheduled stringQuery Execution Role Arn - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- Sq
Target stringConfiguration - 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.
- sq
Error StringReport Configuration - Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
- sq
Kms StringKey Id - 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 String - The name of the scheduled query. Scheduled query names must be unique within each Region.
- sq
Notification StringConfiguration - 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 StringString - 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 StringConfiguration - Configuration for when the scheduled query is executed.
- sq
Scheduled StringQuery Execution Role Arn - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- sq
Target StringConfiguration - 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.
- sq
Error stringReport Configuration - Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
- sq
Kms stringKey Id - 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 string - The name of the scheduled query. Scheduled query names must be unique within each Region.
- sq
Notification stringConfiguration - 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 stringString - 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 stringConfiguration - Configuration for when the scheduled query is executed.
- sq
Scheduled stringQuery Execution Role Arn - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- sq
Target stringConfiguration - 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_ strreport_ configuration - Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
- sq_
kms_ strkey_ id - 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_ strconfiguration - 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_ strstring - 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_ strconfiguration - Configuration for when the scheduled query is executed.
- sq_
scheduled_ strquery_ execution_ role_ arn - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- sq_
target_ strconfiguration - 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.
- sq
Error StringReport Configuration - Configuration for error reporting. Error reports will be generated when a problem is encountered when writing the query results.
- sq
Kms StringKey Id - 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 String - The name of the scheduled query. Scheduled query names must be unique within each Region.
- sq
Notification StringConfiguration - 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 StringString - 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 StringConfiguration - Configuration for when the scheduled query is executed.
- sq
Scheduled StringQuery Execution Role Arn - The ARN for the IAM role that Timestream will assume when running the scheduled query.
- sq
Target StringConfiguration - Configuration of target store where scheduled query results are written to.
Supporting Types
ScheduledQueryDimensionMapping, ScheduledQueryDimensionMappingArgs
- Dimension
Value Type This property is required. Pulumi.Aws Native. Timestream. Scheduled Query Dimension Value Type - Name
This property is required. string
- Dimension
Value Type This property is required. ScheduledQuery Dimension Value Type - Name
This property is required. string
- dimension
Value Type This property is required. ScheduledQuery Dimension Value Type - name
This property is required. String
- dimension
Value Type This property is required. ScheduledQuery Dimension Value Type - name
This property is required. string
- dimension_
value_ type This property is required. ScheduledQuery Dimension Value Type - name
This property is required. str
- dimension
Value Type This property is required. "VARCHAR" - name
This property is required. String
ScheduledQueryDimensionValueType, ScheduledQueryDimensionValueTypeArgs
- Varchar
- VARCHAR
- Scheduled
Query Dimension Value Type Varchar - VARCHAR
- Varchar
- VARCHAR
- Varchar
- VARCHAR
- VARCHAR
- VARCHAR
- "VARCHAR"
- VARCHAR
ScheduledQueryEncryptionOption, ScheduledQueryEncryptionOptionArgs
- Sse
S3 - SSE_S3
- Sse
Kms - SSE_KMS
- Scheduled
Query Encryption Option Sse S3 - SSE_S3
- Scheduled
Query Encryption Option Sse Kms - SSE_KMS
- Sse
S3 - SSE_S3
- Sse
Kms - SSE_KMS
- Sse
S3 - SSE_S3
- Sse
Kms - 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.Aws Native. Timestream. Inputs. Scheduled Query S3Configuration - The S3 configuration for the error reports.
- S3Configuration
This property is required. ScheduledQuery S3Configuration - The S3 configuration for the error reports.
- s3Configuration
This property is required. ScheduledQuery S3Configuration - The S3 configuration for the error reports.
- s3Configuration
This property is required. ScheduledQuery S3Configuration - The S3 configuration for the error reports.
- s3_
configuration This property is required. ScheduledQuery S3Configuration - The S3 configuration for the error reports.
- s3Configuration
This property is required. Property Map - The S3 configuration for the error reports.
ScheduledQueryMixedMeasureMapping, ScheduledQueryMixedMeasureMappingArgs
- Measure
Value Type This property is required. ScheduledQuery Mixed Measure Mapping Measure Value Type - Measure
Name string - Multi
Measure []ScheduledAttribute Mappings Query Multi Measure Attribute Mapping - Source
Column string - Target
Measure stringName
- measure
Value Type This property is required. ScheduledQuery Mixed Measure Mapping Measure Value Type - measure
Name String - multi
Measure List<ScheduledAttribute Mappings Query Multi Measure Attribute Mapping> - source
Column String - target
Measure StringName
- measure
Value Type This property is required. ScheduledQuery Mixed Measure Mapping Measure Value Type - measure
Name string - multi
Measure ScheduledAttribute Mappings Query Multi Measure Attribute Mapping[] - source
Column string - target
Measure stringName
- measure
Value Type This property is required. "BIGINT" | "BOOLEAN" | "DOUBLE" | "VARCHAR" | "MULTI" - measure
Name String - multi
Measure List<Property Map>Attribute Mappings - source
Column String - target
Measure StringName
ScheduledQueryMixedMeasureMappingMeasureValueType, ScheduledQueryMixedMeasureMappingMeasureValueTypeArgs
- Bigint
- BIGINT
- Boolean
- BOOLEAN
- Double
- DOUBLE
- Varchar
- VARCHAR
- Multi
- MULTI
- Scheduled
Query Mixed Measure Mapping Measure Value Type Bigint - BIGINT
- Scheduled
Query Mixed Measure Mapping Measure Value Type Boolean - BOOLEAN
- Scheduled
Query Mixed Measure Mapping Measure Value Type Double - DOUBLE
- Scheduled
Query Mixed Measure Mapping Measure Value Type Varchar - VARCHAR
- Scheduled
Query Mixed Measure Mapping Measure Value Type 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
- "BIGINT"
- BIGINT
- "BOOLEAN"
- BOOLEAN
- "DOUBLE"
- DOUBLE
- "VARCHAR"
- VARCHAR
- "MULTI"
- MULTI
ScheduledQueryMultiMeasureAttributeMapping, ScheduledQueryMultiMeasureAttributeMappingArgs
- Measure
Value Type This property is required. Pulumi.Aws Native. Timestream. Scheduled Query Multi Measure Attribute Mapping Measure Value Type - Source
Column This property is required. string - Target
Multi stringMeasure Attribute Name
- Measure
Value Type This property is required. ScheduledQuery Multi Measure Attribute Mapping Measure Value Type - Source
Column This property is required. string - Target
Multi stringMeasure Attribute Name
- measure
Value Type This property is required. ScheduledQuery Multi Measure Attribute Mapping Measure Value Type - source
Column This property is required. String - target
Multi StringMeasure Attribute Name
- measure
Value Type This property is required. ScheduledQuery Multi Measure Attribute Mapping Measure Value Type - source
Column This property is required. string - target
Multi stringMeasure Attribute Name
- measure_
value_ type This property is required. ScheduledQuery Multi Measure Attribute Mapping Measure Value Type - source_
column This property is required. str - target_
multi_ strmeasure_ attribute_ name
- measure
Value Type This property is required. "BIGINT" | "BOOLEAN" | "DOUBLE" | "VARCHAR" | "TIMESTAMP" - source
Column This property is required. String - target
Multi StringMeasure Attribute Name
ScheduledQueryMultiMeasureAttributeMappingMeasureValueType, ScheduledQueryMultiMeasureAttributeMappingMeasureValueTypeArgs
- Bigint
- BIGINT
- Boolean
- BOOLEAN
- Double
- DOUBLE
- Varchar
- VARCHAR
- Timestamp
- TIMESTAMP
- Scheduled
Query Multi Measure Attribute Mapping Measure Value Type Bigint - BIGINT
- Scheduled
Query Multi Measure Attribute Mapping Measure Value Type Boolean - BOOLEAN
- Scheduled
Query Multi Measure Attribute Mapping Measure Value Type Double - DOUBLE
- Scheduled
Query Multi Measure Attribute Mapping Measure Value Type Varchar - VARCHAR
- Scheduled
Query Multi Measure Attribute Mapping Measure Value Type 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
- "BIGINT"
- BIGINT
- "BOOLEAN"
- BOOLEAN
- "DOUBLE"
- DOUBLE
- "VARCHAR"
- VARCHAR
- "TIMESTAMP"
- TIMESTAMP
ScheduledQueryMultiMeasureMappings, ScheduledQueryMultiMeasureMappingsArgs
- Multi
Measure Attribute Mappings This property is required. List<Pulumi.Aws Native. Timestream. Inputs. Scheduled Query Multi Measure Attribute Mapping> - Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
- Target
Multi stringMeasure Name - 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. []ScheduledQuery Multi Measure Attribute Mapping - Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
- Target
Multi stringMeasure Name - 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. List<ScheduledQuery Multi Measure Attribute Mapping> - Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
- target
Multi StringMeasure Name - 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. ScheduledQuery Multi Measure Attribute Mapping[] - Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
- target
Multi stringMeasure Name - 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[ScheduledQuery Multi Measure Attribute Mapping] - Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
- target_
multi_ strmeasure_ name - 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. List<Property Map> - Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
- target
Multi StringMeasure Name - 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
- Sns
Configuration This property is required. Pulumi.Aws Native. Timestream. Inputs. Scheduled Query Sns Configuration - Details on SNS configuration.
- Sns
Configuration This property is required. ScheduledQuery Sns Configuration - Details on SNS configuration.
- sns
Configuration This property is required. ScheduledQuery Sns Configuration - Details on SNS configuration.
- sns
Configuration This property is required. ScheduledQuery Sns Configuration - Details on SNS configuration.
- sns_
configuration This property is required. ScheduledQuery Sns Configuration - Details on SNS configuration.
- sns
Configuration This property is required. Property Map - Details on SNS configuration.
ScheduledQueryS3Configuration, ScheduledQueryS3ConfigurationArgs
- Bucket
Name This property is required. string - Name of the S3 bucket under which error reports will be created.
- Encryption
Option Pulumi.Aws Native. Timestream. Scheduled Query Encryption Option - Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
- Object
Key stringPrefix - Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
- Bucket
Name This property is required. string - Name of the S3 bucket under which error reports will be created.
- Encryption
Option ScheduledQuery Encryption Option - Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
- Object
Key stringPrefix - Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
- bucket
Name This property is required. String - Name of the S3 bucket under which error reports will be created.
- encryption
Option ScheduledQuery Encryption Option - Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
- object
Key StringPrefix - Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
- bucket
Name This property is required. string - Name of the S3 bucket under which error reports will be created.
- encryption
Option ScheduledQuery Encryption Option - Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
- object
Key stringPrefix - 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 ScheduledQuery Encryption Option - Encryption at rest options for the error reports. If no encryption option is specified, Timestream will choose SSE_S3 as default.
- object_
key_ strprefix - Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
- bucket
Name This property is required. String - Name of the S3 bucket under which error reports will be created.
- encryption
Option "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.
- object
Key StringPrefix - Prefix for the error report key. Timestream by default adds the following prefix to the error report path.
ScheduledQueryScheduleConfiguration, ScheduledQueryScheduleConfigurationArgs
- Schedule
Expression 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. 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. 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. 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.
- schedule
Expression 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
- Topic
Arn This property is required. string - SNS topic ARN that the scheduled query status notifications will be sent to.
- Topic
Arn This property is required. string - SNS topic ARN that the scheduled query status notifications will be sent to.
- topic
Arn This property is required. String - SNS topic ARN that the scheduled query status notifications will be sent to.
- topic
Arn 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.
- topic
Arn This property is required. String - SNS topic ARN that the scheduled query status notifications will be sent to.
ScheduledQueryTargetConfiguration, ScheduledQueryTargetConfigurationArgs
- Timestream
Configuration This property is required. Pulumi.Aws Native. Timestream. Inputs. Scheduled Query Timestream Configuration - Configuration needed to write data into the Timestream database and table.
- Timestream
Configuration This property is required. ScheduledQuery Timestream Configuration - Configuration needed to write data into the Timestream database and table.
- timestream
Configuration This property is required. ScheduledQuery Timestream Configuration - Configuration needed to write data into the Timestream database and table.
- timestream
Configuration This property is required. ScheduledQuery Timestream Configuration - Configuration needed to write data into the Timestream database and table.
- timestream_
configuration This property is required. ScheduledQuery Timestream Configuration - Configuration needed to write data into the Timestream database and table.
- timestream
Configuration This property is required. Property Map - Configuration needed to write data into the Timestream database and table.
ScheduledQueryTimestreamConfiguration, ScheduledQueryTimestreamConfigurationArgs
- Database
Name This property is required. string - Name of Timestream database to which the query result will be written.
- Dimension
Mappings This property is required. List<Pulumi.Aws Native. Timestream. Inputs. Scheduled Query Dimension Mapping> - This is to allow mapping column(s) from the query result to the dimension in the destination table.
- Table
Name 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.
- Time
Column 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.
- Measure
Name stringColumn - Name of the measure column. Also see
MultiMeasureMappings
andMixedMeasureMappings
for how measure name properties on those relate toMeasureNameColumn
. - Mixed
Measure List<Pulumi.Mappings Aws Native. Timestream. Inputs. Scheduled Query Mixed Measure Mapping> - Specifies how to map measures to multi-measure records.
- Multi
Measure Pulumi.Mappings Aws Native. Timestream. Inputs. Scheduled Query Multi Measure Mappings - Multi-measure mappings.
- Database
Name This property is required. string - Name of Timestream database to which the query result will be written.
- Dimension
Mappings This property is required. []ScheduledQuery Dimension Mapping - This is to allow mapping column(s) from the query result to the dimension in the destination table.
- Table
Name 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.
- Time
Column 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.
- Measure
Name stringColumn - Name of the measure column. Also see
MultiMeasureMappings
andMixedMeasureMappings
for how measure name properties on those relate toMeasureNameColumn
. - Mixed
Measure []ScheduledMappings Query Mixed Measure Mapping - Specifies how to map measures to multi-measure records.
- Multi
Measure ScheduledMappings Query Multi Measure Mappings - Multi-measure mappings.
- database
Name This property is required. String - Name of Timestream database to which the query result will be written.
- dimension
Mappings This property is required. List<ScheduledQuery Dimension Mapping> - This is to allow mapping column(s) from the query result to the dimension in the destination table.
- table
Name 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.
- time
Column 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.
- measure
Name StringColumn - Name of the measure column. Also see
MultiMeasureMappings
andMixedMeasureMappings
for how measure name properties on those relate toMeasureNameColumn
. - mixed
Measure List<ScheduledMappings Query Mixed Measure Mapping> - Specifies how to map measures to multi-measure records.
- multi
Measure ScheduledMappings Query Multi Measure Mappings - Multi-measure mappings.
- database
Name This property is required. string - Name of Timestream database to which the query result will be written.
- dimension
Mappings This property is required. ScheduledQuery Dimension Mapping[] - This is to allow mapping column(s) from the query result to the dimension in the destination table.
- table
Name 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.
- time
Column 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.
- measure
Name stringColumn - Name of the measure column. Also see
MultiMeasureMappings
andMixedMeasureMappings
for how measure name properties on those relate toMeasureNameColumn
. - mixed
Measure ScheduledMappings Query Mixed Measure Mapping[] - Specifies how to map measures to multi-measure records.
- multi
Measure ScheduledMappings Query Multi Measure Mappings - 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[ScheduledQuery Dimension Mapping] - 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_ strcolumn - Name of the measure column. Also see
MultiMeasureMappings
andMixedMeasureMappings
for how measure name properties on those relate toMeasureNameColumn
. - mixed_
measure_ Sequence[Scheduledmappings Query Mixed Measure Mapping] - Specifies how to map measures to multi-measure records.
- multi_
measure_ Scheduledmappings Query Multi Measure Mappings - Multi-measure mappings.
- database
Name This property is required. String - Name of Timestream database to which the query result will be written.
- dimension
Mappings 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.
- table
Name 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.
- time
Column 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.
- measure
Name StringColumn - Name of the measure column. Also see
MultiMeasureMappings
andMixedMeasureMappings
for how measure name properties on those relate toMeasureNameColumn
. - mixed
Measure List<Property Map>Mappings - Specifies how to map measures to multi-measure records.
- multi
Measure Property MapMappings - Multi-measure mappings.
Tag, TagArgs
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.