interface CfnDatasetProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.IoTAnalytics.CfnDatasetProps |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiotanalytics#CfnDatasetProps |
Java | software.amazon.awscdk.services.iotanalytics.CfnDatasetProps |
Python | aws_cdk.aws_iotanalytics.CfnDatasetProps |
TypeScript | aws-cdk-lib » aws_iotanalytics » CfnDatasetProps |
Properties for defining a CfnDataset
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-iotanalytics-dataset.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iotanalytics as iotanalytics } from 'aws-cdk-lib';
const cfnDatasetProps: iotanalytics.CfnDatasetProps = {
actions: [{
actionName: 'actionName',
// the properties below are optional
containerAction: {
executionRoleArn: 'executionRoleArn',
image: 'image',
resourceConfiguration: {
computeType: 'computeType',
volumeSizeInGb: 123,
},
// the properties below are optional
variables: [{
variableName: 'variableName',
// the properties below are optional
datasetContentVersionValue: {
datasetName: 'datasetName',
},
doubleValue: 123,
outputFileUriValue: {
fileName: 'fileName',
},
stringValue: 'stringValue',
}],
},
queryAction: {
sqlQuery: 'sqlQuery',
// the properties below are optional
filters: [{
deltaTime: {
offsetSeconds: 123,
timeExpression: 'timeExpression',
},
}],
},
}],
// the properties below are optional
contentDeliveryRules: [{
destination: {
iotEventsDestinationConfiguration: {
inputName: 'inputName',
roleArn: 'roleArn',
},
s3DestinationConfiguration: {
bucket: 'bucket',
key: 'key',
roleArn: 'roleArn',
// the properties below are optional
glueConfiguration: {
databaseName: 'databaseName',
tableName: 'tableName',
},
},
},
// the properties below are optional
entryName: 'entryName',
}],
datasetName: 'datasetName',
lateDataRules: [{
ruleConfiguration: {
deltaTimeSessionWindowConfiguration: {
timeoutInMinutes: 123,
},
},
// the properties below are optional
ruleName: 'ruleName',
}],
retentionPeriod: {
numberOfDays: 123,
unlimited: false,
},
tags: [{
key: 'key',
value: 'value',
}],
triggers: [{
schedule: {
scheduleExpression: 'scheduleExpression',
},
triggeringDataset: {
datasetName: 'datasetName',
},
}],
versioningConfiguration: {
maxVersions: 123,
unlimited: false,
},
};
Properties
Name | Type | Description |
---|---|---|
actions | IResolvable | IResolvable | Action [] | The DatasetAction objects that automatically create the dataset contents. |
content | IResolvable | IResolvable | Dataset [] | When dataset contents are created they are delivered to destinations specified here. |
dataset | string | The name of the dataset. |
late | IResolvable | IResolvable | Late [] | A list of data rules that send notifications to CloudWatch, when data arrives late. |
retention | IResolvable | Retention | Optional. |
tags? | Cfn [] | Metadata which can be used to manage the data set. |
triggers? | IResolvable | IResolvable | Trigger [] | The DatasetTrigger objects that specify when the dataset is automatically updated. |
versioning | IResolvable | Versioning | Optional. |
actions
Type:
IResolvable
|
IResolvable
|
Action
[]
The DatasetAction
objects that automatically create the dataset contents.
contentDeliveryRules?
Type:
IResolvable
|
IResolvable
|
Dataset
[]
(optional)
When dataset contents are created they are delivered to destinations specified here.
datasetName?
Type:
string
(optional)
The name of the dataset.
lateDataRules?
Type:
IResolvable
|
IResolvable
|
Late
[]
(optional)
A list of data rules that send notifications to CloudWatch, when data arrives late.
To specify lateDataRules
, the dataset must use a DeltaTimer filter.
retentionPeriod?
Type:
IResolvable
|
Retention
(optional)
Optional.
How long, in days, message data is kept for the dataset.
tags?
Type:
Cfn
[]
(optional)
Metadata which can be used to manage the data set.
For more information, see Tag .
triggers?
Type:
IResolvable
|
IResolvable
|
Trigger
[]
(optional)
The DatasetTrigger
objects that specify when the dataset is automatically updated.
versioningConfiguration?
Type:
IResolvable
|
Versioning
(optional)
Optional.
How many versions of dataset contents are kept. If not specified or set to null, only the latest version plus the latest succeeded version (if they are different) are kept for the time period specified by the retentionPeriod
parameter. For more information, see Keeping Multiple Versions of AWS IoT Analytics datasets in the AWS IoT Analytics User Guide .