Class CfnScheduledQuery
Create a scheduled query that will be run on your behalf at the configured schedule.
Inherited Members
Namespace: Amazon.CDK.AWS.Timestream
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnScheduledQuery : CfnResource, IInspectable, ITaggable
Syntax (vb)
Public Class CfnScheduledQuery
Inherits CfnResource
Implements IInspectable, ITaggable
Remarks
Timestream assumes the execution role provided as part of the ScheduledQueryExecutionRoleArn
parameter to run the query. You can use the NotificationConfiguration
parameter to configure notification for your scheduled query operations.
CloudformationResource: AWS::Timestream::ScheduledQuery
ExampleMetadata: fixture=_generated
Examples
// 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 cfnScheduledQuery = new CfnScheduledQuery(this, "MyCfnScheduledQuery", 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"
}
}
}
});
Synopsis
Constructors
CfnScheduledQuery(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnScheduledQuery(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnScheduledQuery(Construct, String, ICfnScheduledQueryProps) |
Properties
AttrArn | The |
AttrSqErrorReportConfiguration | The scheduled query error reporting configuration. |
AttrSqKmsKeyId | The KMS key used to encrypt the query resource, if a customer managed KMS key was provided. |
AttrSqName | The scheduled query name. |
AttrSqNotificationConfiguration | The scheduled query notification configuration. |
AttrSqQueryString | The scheduled query string.. |
AttrSqScheduleConfiguration | The scheduled query schedule configuration. |
AttrSqScheduledQueryExecutionRoleArn | The ARN of the IAM role that will be used by Timestream to run the query. |
AttrSqTargetConfiguration | The configuration for query output. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
ClientToken | Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result. |
ErrorReportConfiguration | Configuration for error reporting. |
KmsKeyId | The Amazon KMS key used to encrypt the scheduled query resource, at-rest. |
NotificationConfiguration | Notification configuration for the scheduled query. |
QueryString | The query string to run. |
ScheduleConfiguration | Schedule configuration. |
ScheduledQueryExecutionRoleArn | The ARN for the IAM role that Timestream will assume when running the scheduled query. |
ScheduledQueryName | A name for the query. |
Tags | Tag Manager which manages the tags for this resource. |
TagsRaw | A list of key-value pairs to label the scheduled query. |
TargetConfiguration | Scheduled query target store configuration. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnScheduledQuery(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnScheduledQuery(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnScheduledQuery(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnScheduledQuery(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnScheduledQuery(Construct, String, ICfnScheduledQueryProps)
public CfnScheduledQuery(Construct scope, string id, ICfnScheduledQueryProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnScheduledQueryProps
Resource properties.
Properties
AttrArn
The ARN
of the scheduled query.
public virtual string AttrArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Arn
AttrSqErrorReportConfiguration
The scheduled query error reporting configuration.
public virtual string AttrSqErrorReportConfiguration { get; }
Property Value
System.String
Remarks
CloudformationAttribute: SQErrorReportConfiguration
AttrSqKmsKeyId
The KMS key used to encrypt the query resource, if a customer managed KMS key was provided.
public virtual string AttrSqKmsKeyId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: SQKmsKeyId
AttrSqName
The scheduled query name.
public virtual string AttrSqName { get; }
Property Value
System.String
Remarks
CloudformationAttribute: SQName
AttrSqNotificationConfiguration
The scheduled query notification configuration.
public virtual string AttrSqNotificationConfiguration { get; }
Property Value
System.String
Remarks
CloudformationAttribute: SQNotificationConfiguration
AttrSqQueryString
The scheduled query string..
public virtual string AttrSqQueryString { get; }
Property Value
System.String
Remarks
CloudformationAttribute: SQQueryString
AttrSqScheduleConfiguration
The scheduled query schedule configuration.
public virtual string AttrSqScheduleConfiguration { get; }
Property Value
System.String
Remarks
CloudformationAttribute: SQScheduleConfiguration
AttrSqScheduledQueryExecutionRoleArn
The ARN of the IAM role that will be used by Timestream to run the query.
public virtual string AttrSqScheduledQueryExecutionRoleArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: SQScheduledQueryExecutionRoleArn
AttrSqTargetConfiguration
The configuration for query output.
public virtual string AttrSqTargetConfiguration { get; }
Property Value
System.String
Remarks
CloudformationAttribute: SQTargetConfiguration
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
ClientToken
Using a ClientToken makes the call to CreateScheduledQuery idempotent, in other words, making the same request repeatedly will produce the same result.
public virtual string ClientToken { get; set; }
Property Value
System.String
ErrorReportConfiguration
Configuration for error reporting.
public virtual object ErrorReportConfiguration { get; set; }
Property Value
System.Object
KmsKeyId
The Amazon KMS key used to encrypt the scheduled query resource, at-rest.
public virtual string KmsKeyId { get; set; }
Property Value
System.String
NotificationConfiguration
Notification configuration for the scheduled query.
public virtual object NotificationConfiguration { get; set; }
Property Value
System.Object
QueryString
The query string to run.
public virtual string QueryString { get; set; }
Property Value
System.String
ScheduleConfiguration
Schedule configuration.
public virtual object ScheduleConfiguration { get; set; }
Property Value
System.Object
ScheduledQueryExecutionRoleArn
The ARN for the IAM role that Timestream will assume when running the scheduled query.
public virtual string ScheduledQueryExecutionRoleArn { get; set; }
Property Value
System.String
ScheduledQueryName
A name for the query.
public virtual string ScheduledQueryName { get; set; }
Property Value
System.String
Tags
Tag Manager which manages the tags for this resource.
public virtual TagManager Tags { get; }
Property Value
TagsRaw
A list of key-value pairs to label the scheduled query.
public virtual ICfnTag[] TagsRaw { get; set; }
Property Value
ICfnTag[]
TargetConfiguration
Scheduled query target store configuration.
public virtual object TargetConfiguration { get; set; }
Property Value
System.Object
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>