CfnScheduledQueryProps Struct
Properties for defining a CfnScheduledQuery.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_timestream as timestream } from 'aws-cdk-lib';
const cfnScheduledQueryProps: timestream.CfnScheduledQueryProps = {
errorReportConfiguration: {
s3Configuration: {
bucketName: 'bucketName',
// the properties below are optional
encryptionOption: 'encryptionOption',
objectKeyPrefix: 'objectKeyPrefix',
},
},
notificationConfiguration: {
snsConfiguration: {
topicArn: 'topicArn',
},
},
queryString: 'queryString',
scheduleConfiguration: {
scheduleExpression: 'scheduleExpression',
},
scheduledQueryExecutionRoleArn: 'scheduledQueryExecutionRoleArn',
// the properties below are optional
clientToken: 'clientToken',
kmsKeyId: 'kmsKeyId',
scheduledQueryName: 'scheduledQueryName',
tags: [{
key: 'key',
value: 'value',
}],
targetConfiguration: {
timestreamConfiguration: {
databaseName: 'databaseName',
dimensionMappings: [{
dimensionValueType: 'dimensionValueType',
name: 'name',
}],
tableName: 'tableName',
timeColumn: 'timeColumn',
// the properties below are optional
measureNameColumn: 'measureNameColumn',
mixedMeasureMappings: [{
measureValueType: 'measureValueType',
// the properties below are optional
measureName: 'measureName',
multiMeasureAttributeMappings: [{
measureValueType: 'measureValueType',
sourceColumn: 'sourceColumn',
// the properties below are optional
targetMultiMeasureAttributeName: 'targetMultiMeasureAttributeName',
}],
sourceColumn: 'sourceColumn',
targetMeasureName: 'targetMeasureName',
}],
multiMeasureMappings: {
multiMeasureAttributeMappings: [{
measureValueType: 'measureValueType',
sourceColumn: 'sourceColumn',
// the properties below are optional
targetMultiMeasureAttributeName: 'targetMultiMeasureAttributeName',
}],
// the properties below are optional
targetMultiMeasureName: 'targetMultiMeasureName',
},
},
},
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_timestream as timestream
cfn_scheduled_query_props = timestream.CfnScheduledQueryProps(
error_report_configuration=timestream.CfnScheduledQuery.ErrorReportConfigurationProperty(
s3_configuration=timestream.CfnScheduledQuery.S3ConfigurationProperty(
bucket_name="bucketName",
# the properties below are optional
encryption_option="encryptionOption",
object_key_prefix="objectKeyPrefix"
)
),
notification_configuration=timestream.CfnScheduledQuery.NotificationConfigurationProperty(
sns_configuration=timestream.CfnScheduledQuery.SnsConfigurationProperty(
topic_arn="topicArn"
)
),
query_string="queryString",
schedule_configuration=timestream.CfnScheduledQuery.ScheduleConfigurationProperty(
schedule_expression="scheduleExpression"
),
scheduled_query_execution_role_arn="scheduledQueryExecutionRoleArn",
# the properties below are optional
client_token="clientToken",
kms_key_id="kmsKeyId",
scheduled_query_name="scheduledQueryName",
tags=[CfnTag(
key="key",
value="value"
)],
target_configuration=timestream.CfnScheduledQuery.TargetConfigurationProperty(
timestream_configuration=timestream.CfnScheduledQuery.TimestreamConfigurationProperty(
database_name="databaseName",
dimension_mappings=[timestream.CfnScheduledQuery.DimensionMappingProperty(
dimension_value_type="dimensionValueType",
name="name"
)],
table_name="tableName",
time_column="timeColumn",
# the properties below are optional
measure_name_column="measureNameColumn",
mixed_measure_mappings=[timestream.CfnScheduledQuery.MixedMeasureMappingProperty(
measure_value_type="measureValueType",
# the properties below are optional
measure_name="measureName",
multi_measure_attribute_mappings=[timestream.CfnScheduledQuery.MultiMeasureAttributeMappingProperty(
measure_value_type="measureValueType",
source_column="sourceColumn",
# the properties below are optional
target_multi_measure_attribute_name="targetMultiMeasureAttributeName"
)],
source_column="sourceColumn",
target_measure_name="targetMeasureName"
)],
multi_measure_mappings=timestream.CfnScheduledQuery.MultiMeasureMappingsProperty(
multi_measure_attribute_mappings=[timestream.CfnScheduledQuery.MultiMeasureAttributeMappingProperty(
measure_value_type="measureValueType",
source_column="sourceColumn",
# the properties below are optional
target_multi_measure_attribute_name="targetMultiMeasureAttributeName"
)],
# the properties below are optional
target_multi_measure_name="targetMultiMeasureName"
)
)
)
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.timestream.*;
CfnScheduledQueryProps cfnScheduledQueryProps = CfnScheduledQueryProps.builder()
.errorReportConfiguration(ErrorReportConfigurationProperty.builder()
.s3Configuration(S3ConfigurationProperty.builder()
.bucketName("bucketName")
// the properties below are optional
.encryptionOption("encryptionOption")
.objectKeyPrefix("objectKeyPrefix")
.build())
.build())
.notificationConfiguration(NotificationConfigurationProperty.builder()
.snsConfiguration(SnsConfigurationProperty.builder()
.topicArn("topicArn")
.build())
.build())
.queryString("queryString")
.scheduleConfiguration(ScheduleConfigurationProperty.builder()
.scheduleExpression("scheduleExpression")
.build())
.scheduledQueryExecutionRoleArn("scheduledQueryExecutionRoleArn")
// the properties below are optional
.clientToken("clientToken")
.kmsKeyId("kmsKeyId")
.scheduledQueryName("scheduledQueryName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.targetConfiguration(TargetConfigurationProperty.builder()
.timestreamConfiguration(TimestreamConfigurationProperty.builder()
.databaseName("databaseName")
.dimensionMappings(List.of(DimensionMappingProperty.builder()
.dimensionValueType("dimensionValueType")
.name("name")
.build()))
.tableName("tableName")
.timeColumn("timeColumn")
// the properties below are optional
.measureNameColumn("measureNameColumn")
.mixedMeasureMappings(List.of(MixedMeasureMappingProperty.builder()
.measureValueType("measureValueType")
// the properties below are optional
.measureName("measureName")
.multiMeasureAttributeMappings(List.of(MultiMeasureAttributeMappingProperty.builder()
.measureValueType("measureValueType")
.sourceColumn("sourceColumn")
// the properties below are optional
.targetMultiMeasureAttributeName("targetMultiMeasureAttributeName")
.build()))
.sourceColumn("sourceColumn")
.targetMeasureName("targetMeasureName")
.build()))
.multiMeasureMappings(MultiMeasureMappingsProperty.builder()
.multiMeasureAttributeMappings(List.of(MultiMeasureAttributeMappingProperty.builder()
.measureValueType("measureValueType")
.sourceColumn("sourceColumn")
// the properties below are optional
.targetMultiMeasureAttributeName("targetMultiMeasureAttributeName")
.build()))
// the properties below are optional
.targetMultiMeasureName("targetMultiMeasureName")
.build())
.build())
.build())
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Timestream;
var cfnScheduledQueryProps = new CfnScheduledQueryProps {
ErrorReportConfiguration = new ErrorReportConfigurationProperty {
S3Configuration = new S3ConfigurationProperty {
BucketName = "bucketName",
// the properties below are optional
EncryptionOption = "encryptionOption",
ObjectKeyPrefix = "objectKeyPrefix"
}
},
NotificationConfiguration = new NotificationConfigurationProperty {
SnsConfiguration = new SnsConfigurationProperty {
TopicArn = "topicArn"
}
},
QueryString = "queryString",
ScheduleConfiguration = new ScheduleConfigurationProperty {
ScheduleExpression = "scheduleExpression"
},
ScheduledQueryExecutionRoleArn = "scheduledQueryExecutionRoleArn",
// the properties below are optional
ClientToken = "clientToken",
KmsKeyId = "kmsKeyId",
ScheduledQueryName = "scheduledQueryName",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TargetConfiguration = new TargetConfigurationProperty {
TimestreamConfiguration = new TimestreamConfigurationProperty {
DatabaseName = "databaseName",
DimensionMappings = new [] { new DimensionMappingProperty {
DimensionValueType = "dimensionValueType",
Name = "name"
} },
TableName = "tableName",
TimeColumn = "timeColumn",
// the properties below are optional
MeasureNameColumn = "measureNameColumn",
MixedMeasureMappings = new [] { new MixedMeasureMappingProperty {
MeasureValueType = "measureValueType",
// the properties below are optional
MeasureName = "measureName",
MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
MeasureValueType = "measureValueType",
SourceColumn = "sourceColumn",
// the properties below are optional
TargetMultiMeasureAttributeName = "targetMultiMeasureAttributeName"
} },
SourceColumn = "sourceColumn",
TargetMeasureName = "targetMeasureName"
} },
MultiMeasureMappings = new MultiMeasureMappingsProperty {
MultiMeasureAttributeMappings = new [] { new MultiMeasureAttributeMappingProperty {
MeasureValueType = "measureValueType",
SourceColumn = "sourceColumn",
// the properties below are optional
TargetMultiMeasureAttributeName = "targetMultiMeasureAttributeName"
} },
// the properties below are optional
TargetMultiMeasureName = "targetMultiMeasureName"
}
}
}
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnScheduledQueryProps := &CfnScheduledQueryProps{
ErrorReportConfiguration: &ErrorReportConfigurationProperty{
S3Configuration: &S3ConfigurationProperty{
BucketName: jsii.String("bucketName"),
// the properties below are optional
EncryptionOption: jsii.String("encryptionOption"),
ObjectKeyPrefix: jsii.String("objectKeyPrefix"),
},
},
NotificationConfiguration: &NotificationConfigurationProperty{
SnsConfiguration: &SnsConfigurationProperty{
TopicArn: jsii.String("topicArn"),
},
},
QueryString: jsii.String("queryString"),
ScheduleConfiguration: &ScheduleConfigurationProperty{
ScheduleExpression: jsii.String("scheduleExpression"),
},
ScheduledQueryExecutionRoleArn: jsii.String("scheduledQueryExecutionRoleArn"),
// the properties below are optional
ClientToken: jsii.String("clientToken"),
KmsKeyId: jsii.String("kmsKeyId"),
ScheduledQueryName: jsii.String("scheduledQueryName"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
TargetConfiguration: &TargetConfigurationProperty{
TimestreamConfiguration: &TimestreamConfigurationProperty{
DatabaseName: jsii.String("databaseName"),
DimensionMappings: []interface{}{
&DimensionMappingProperty{
DimensionValueType: jsii.String("dimensionValueType"),
Name: jsii.String("name"),
},
},
TableName: jsii.String("tableName"),
TimeColumn: jsii.String("timeColumn"),
// the properties below are optional
MeasureNameColumn: jsii.String("measureNameColumn"),
MixedMeasureMappings: []interface{}{
&MixedMeasureMappingProperty{
MeasureValueType: jsii.String("measureValueType"),
// the properties below are optional
MeasureName: jsii.String("measureName"),
MultiMeasureAttributeMappings: []interface{}{
&MultiMeasureAttributeMappingProperty{
MeasureValueType: jsii.String("measureValueType"),
SourceColumn: jsii.String("sourceColumn"),
// the properties below are optional
TargetMultiMeasureAttributeName: jsii.String("targetMultiMeasureAttributeName"),
},
},
SourceColumn: jsii.String("sourceColumn"),
TargetMeasureName: jsii.String("targetMeasureName"),
},
},
MultiMeasureMappings: &MultiMeasureMappingsProperty{
MultiMeasureAttributeMappings: []interface{}{
&MultiMeasureAttributeMappingProperty{
MeasureValueType: jsii.String("measureValueType"),
SourceColumn: jsii.String("sourceColumn"),
// the properties below are optional
TargetMultiMeasureAttributeName: jsii.String("targetMultiMeasureAttributeName"),
},
},
// the properties below are optional
TargetMultiMeasureName: jsii.String("targetMultiMeasureName"),
},
},
},
}
Properties
clientTokenoptionalstringclient_tokenoptionalstrclientTokenoptionalStringClientTokenoptionalstringClientTokenoptional*string #notes
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 aClientTokenon your behalf. - After 8 hours, any request with the same
ClientTokenis treated as a new request.
errorReportConfigurationIResolvable | CfnScheduledQuery.error_report_configurationtyping.Union[IResolvable, ErrorReportConfigurationProperty]errorReportConfigurationIResolvableErrorReportConfigurationIResolvableErrorReportConfigurationinterface{} required #Error reports will be generated when a problem is encountered when writing the query results.
kmsKeyIdoptionalstring | IKeyRefkms_key_idoptionaltyping.Union[str, IKeyRef]kmsKeyIdoptionalStringKmsKeyIdoptionalstringKmsKeyIdoptionalinterface{} #notes
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.
notificationConfigurationIResolvable | CfnScheduledQuery.notification_configurationtyping.Union[IResolvable, NotificationConfigurationProperty]notificationConfigurationIResolvableNotificationConfigurationIResolvableNotificationConfigurationinterface{} required #A notification is sent by Timestream when a query run finishes, when the state is updated or when you delete it.
notes
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.
scheduleConfigurationIResolvable | CfnScheduledQuery.schedule_configurationtyping.Union[IResolvable, ScheduleConfigurationProperty]scheduleConfigurationIResolvableScheduleConfigurationIResolvableScheduleConfigurationinterface{} required #scheduledQueryExecutionRoleArnstring | IRoleRefscheduled_query_execution_role_arntyping.Union[str, IRoleRef]scheduledQueryExecutionRoleArnStringScheduledQueryExecutionRoleArnstringScheduledQueryExecutionRoleArninterface{} required #scheduledQueryNameoptionalstringscheduled_query_nameoptionalstrscheduledQueryNameoptionalStringScheduledQueryNameoptionalstringScheduledQueryNameoptional*string #Scheduled query names must be unique within each Region.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #targetConfigurationoptionalIResolvable | CfnScheduledQuery.target_configurationoptionaltyping.Union[IResolvable, TargetConfigurationProperty]targetConfigurationoptionalIResolvableTargetConfigurationoptionalIResolvableTargetConfigurationoptionalinterface{} #