@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.934Z") @Stability(value=Stable) public class CfnDataset extends CfnResource implements IInspectable
The AWS::IoTAnalytics::Dataset resource stores data retrieved from a data store by applying a queryAction (an SQL query) or a containerAction (executing a containerized application). The data set can be populated manually by calling CreateDatasetContent or automatically according to a trigger you specify. For more information, see How to Use AWS IoT Analytics in the AWS IoT Analytics User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iotanalytics.*;
CfnDataset cfnDataset = CfnDataset.Builder.create(this, "MyCfnDataset")
.actions(List.of(ActionProperty.builder()
.actionName("actionName")
// the properties below are optional
.containerAction(ContainerActionProperty.builder()
.executionRoleArn("executionRoleArn")
.image("image")
.resourceConfiguration(ResourceConfigurationProperty.builder()
.computeType("computeType")
.volumeSizeInGb(123)
.build())
// the properties below are optional
.variables(List.of(VariableProperty.builder()
.variableName("variableName")
// the properties below are optional
.datasetContentVersionValue(DatasetContentVersionValueProperty.builder()
.datasetName("datasetName")
.build())
.doubleValue(123)
.outputFileUriValue(OutputFileUriValueProperty.builder()
.fileName("fileName")
.build())
.stringValue("stringValue")
.build()))
.build())
.queryAction(QueryActionProperty.builder()
.sqlQuery("sqlQuery")
// the properties below are optional
.filters(List.of(FilterProperty.builder()
.deltaTime(DeltaTimeProperty.builder()
.offsetSeconds(123)
.timeExpression("timeExpression")
.build())
.build()))
.build())
.build()))
// the properties below are optional
.contentDeliveryRules(List.of(DatasetContentDeliveryRuleProperty.builder()
.destination(DatasetContentDeliveryRuleDestinationProperty.builder()
.iotEventsDestinationConfiguration(IotEventsDestinationConfigurationProperty.builder()
.inputName("inputName")
.roleArn("roleArn")
.build())
.s3DestinationConfiguration(S3DestinationConfigurationProperty.builder()
.bucket("bucket")
.key("key")
.roleArn("roleArn")
// the properties below are optional
.glueConfiguration(GlueConfigurationProperty.builder()
.databaseName("databaseName")
.tableName("tableName")
.build())
.build())
.build())
// the properties below are optional
.entryName("entryName")
.build()))
.datasetName("datasetName")
.lateDataRules(List.of(LateDataRuleProperty.builder()
.ruleConfiguration(LateDataRuleConfigurationProperty.builder()
.deltaTimeSessionWindowConfiguration(DeltaTimeSessionWindowConfigurationProperty.builder()
.timeoutInMinutes(123)
.build())
.build())
// the properties below are optional
.ruleName("ruleName")
.build()))
.retentionPeriod(RetentionPeriodProperty.builder()
.numberOfDays(123)
.unlimited(false)
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.triggers(List.of(TriggerProperty.builder()
.schedule(ScheduleProperty.builder()
.scheduleExpression("scheduleExpression")
.build())
.triggeringDataset(TriggeringDatasetProperty.builder()
.datasetName("datasetName")
.build())
.build()))
.versioningConfiguration(VersioningConfigurationProperty.builder()
.maxVersions(123)
.unlimited(false)
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static interface |
CfnDataset.ActionProperty
Information needed to run the "containerAction" to produce data set contents.
|
static class |
CfnDataset.Builder
A fluent builder for
CfnDataset. |
static interface |
CfnDataset.ContainerActionProperty
Information needed to run the "containerAction" to produce data set contents.
|
static interface |
CfnDataset.DatasetContentDeliveryRuleDestinationProperty
The destination to which dataset contents are delivered.
|
static interface |
CfnDataset.DatasetContentDeliveryRuleProperty
When dataset contents are created, they are delivered to destination specified here.
|
static interface |
CfnDataset.DatasetContentVersionValueProperty
The dataset whose latest contents are used as input to the notebook or application.
|
static interface |
CfnDataset.DeltaTimeProperty
Used to limit data to that which has arrived since the last execution of the action.
|
static interface |
CfnDataset.DeltaTimeSessionWindowConfigurationProperty
A structure that contains the configuration information of a delta time session window.
|
static interface |
CfnDataset.FilterProperty
Information which is used to filter message data, to segregate it according to the time frame in which it arrives.
|
static interface |
CfnDataset.GlueConfigurationProperty
Configuration information for coordination with AWS Glue , a fully managed extract, transform and load (ETL) service.
|
static interface |
CfnDataset.IotEventsDestinationConfigurationProperty
Configuration information for delivery of dataset contents to AWS IoT Events .
|
static interface |
CfnDataset.LateDataRuleConfigurationProperty
The information needed to configure a delta time session window.
|
static interface |
CfnDataset.LateDataRuleProperty
A structure that contains the name and configuration information of a late data rule.
|
static interface |
CfnDataset.OutputFileUriValueProperty
The value of the variable as a structure that specifies an output file URI.
|
static interface |
CfnDataset.QueryActionProperty
An "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.
|
static interface |
CfnDataset.ResourceConfigurationProperty
The configuration of the resource used to execute the `containerAction` .
|
static interface |
CfnDataset.RetentionPeriodProperty
How long, in days, message data is kept.
|
static interface |
CfnDataset.S3DestinationConfigurationProperty
Configuration information for delivery of dataset contents to Amazon Simple Storage Service (Amazon S3).
|
static interface |
CfnDataset.ScheduleProperty
The schedule for when to trigger an update.
|
static interface |
CfnDataset.TriggeringDatasetProperty
Information about the dataset whose content generation triggers the new dataset content generation.
|
static interface |
CfnDataset.TriggerProperty
The "DatasetTrigger" that specifies when the data set is automatically updated.
|
static interface |
CfnDataset.VariableProperty
An instance of a variable to be passed to the `containerAction` execution.
|
static interface |
CfnDataset.VersioningConfigurationProperty
Information about the versioning of dataset contents.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDataset(software.constructs.Construct scope,
String id,
CfnDatasetProps props)
Create a new `AWS::IoTAnalytics::Dataset`.
|
protected |
CfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDataset(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getActions()
The `DatasetAction` objects that automatically create the dataset contents.
|
String |
getAttrId() |
protected Map<String,Object> |
getCfnProperties() |
Object |
getContentDeliveryRules()
When dataset contents are created they are delivered to destinations specified here.
|
String |
getDatasetName()
The name of the dataset.
|
Object |
getLateDataRules()
A list of data rules that send notifications to CloudWatch, when data arrives late.
|
Object |
getRetentionPeriod()
Optional.
|
TagManager |
getTags()
Metadata which can be used to manage the data set.
|
Object |
getTriggers()
The `DatasetTrigger` objects that specify when the dataset is automatically updated.
|
Object |
getVersioningConfiguration()
Optional.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setActions(IResolvable value)
The `DatasetAction` objects that automatically create the dataset contents.
|
void |
setActions(List<Object> value)
The `DatasetAction` objects that automatically create the dataset contents.
|
void |
setContentDeliveryRules(IResolvable value)
When dataset contents are created they are delivered to destinations specified here.
|
void |
setContentDeliveryRules(List<Object> value)
When dataset contents are created they are delivered to destinations specified here.
|
void |
setDatasetName(String value)
The name of the dataset.
|
void |
setLateDataRules(IResolvable value)
A list of data rules that send notifications to CloudWatch, when data arrives late.
|
void |
setLateDataRules(List<Object> value)
A list of data rules that send notifications to CloudWatch, when data arrives late.
|
void |
setRetentionPeriod(CfnDataset.RetentionPeriodProperty value)
Optional.
|
void |
setRetentionPeriod(IResolvable value)
Optional.
|
void |
setTriggers(IResolvable value)
The `DatasetTrigger` objects that specify when the dataset is automatically updated.
|
void |
setTriggers(List<Object> value)
The `DatasetTrigger` objects that specify when the dataset is automatically updated.
|
void |
setVersioningConfiguration(CfnDataset.VersioningConfigurationProperty value)
Optional.
|
void |
setVersioningConfiguration(IResolvable value)
Optional.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDataset(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDataset(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDatasetProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
For more information, see Tag .
@Stability(value=Stable) @NotNull public Object getActions()
@Stability(value=Stable)
public void setActions(@NotNull
IResolvable value)
@Stability(value=Stable)
public void setActions(@NotNull
List<Object> value)
@Stability(value=Stable) @Nullable public Object getContentDeliveryRules()
@Stability(value=Stable)
public void setContentDeliveryRules(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setContentDeliveryRules(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getDatasetName()
@Stability(value=Stable)
public void setDatasetName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getLateDataRules()
To specify lateDataRules , the dataset must use a DeltaTimer filter.
@Stability(value=Stable)
public void setLateDataRules(@Nullable
IResolvable value)
To specify lateDataRules , the dataset must use a DeltaTimer filter.
@Stability(value=Stable)
public void setLateDataRules(@Nullable
List<Object> value)
To specify lateDataRules , the dataset must use a DeltaTimer filter.
@Stability(value=Stable) @Nullable public Object getRetentionPeriod()
How long, in days, message data is kept for the dataset.
@Stability(value=Stable)
public void setRetentionPeriod(@Nullable
CfnDataset.RetentionPeriodProperty value)
How long, in days, message data is kept for the dataset.
@Stability(value=Stable)
public void setRetentionPeriod(@Nullable
IResolvable value)
How long, in days, message data is kept for the dataset.
@Stability(value=Stable) @Nullable public Object getTriggers()
@Stability(value=Stable)
public void setTriggers(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setTriggers(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getVersioningConfiguration()
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 .
@Stability(value=Stable)
public void setVersioningConfiguration(@Nullable
CfnDataset.VersioningConfigurationProperty value)
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 .
@Stability(value=Stable)
public void setVersioningConfiguration(@Nullable
IResolvable value)
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 .
Copyright © 2022. All rights reserved.