Class CfnDataset
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IDatasetRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceInformation needed to run the "containerAction" to produce data set contents.static final classA fluent builder forCfnDataset.static interfaceInformation needed to run the "containerAction" to produce data set contents.static interfaceThe destination to which dataset contents are delivered.static interfaceWhen dataset contents are created, they are delivered to destination specified here.static interfaceThe dataset whose latest contents are used as input to the notebook or application.static interfaceUsed to limit data to that which has arrived since the last execution of the action.static interfaceA structure that contains the configuration information of a delta time session window.static interfaceInformation which is used to filter message data, to segregate it according to the time frame in which it arrives.static interfaceConfiguration information for coordination with AWS Glue , a fully managed extract, transform and load (ETL) service.static interfaceConfiguration information for delivery of dataset contents to AWS IoT Events .static interfaceThe information needed to configure a delta time session window.static interfaceA structure that contains the name and configuration information of a late data rule.static interfaceThe value of the variable as a structure that specifies an output file URI.static interfaceAn "SqlQueryDatasetAction" object that uses an SQL query to automatically create data set contents.static interfaceThe configuration of the resource used to execute thecontainerAction.static interfaceHow long, in days, message data is kept.static interfaceConfiguration information for delivery of dataset contents to Amazon Simple Storage Service (Amazon S3).static interfaceThe schedule for when to trigger an update.static interfaceInformation about the dataset whose content generation triggers the new dataset content generation.static interfaceThe "DatasetTrigger" that specifies when the data set is automatically updated.static interfaceAn instance of a variable to be passed to thecontainerActionexecution.static interfaceInformation about the versioning of dataset contents.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.iotanalytics.IDatasetRef
IDatasetRef.Jsii$Default, IDatasetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDataset(software.amazon.jsii.JsiiObjectRef objRef) CfnDataset(software.constructs.Construct scope, String id, CfnDatasetProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IDatasetReffromDatasetName(software.constructs.Construct scope, String id, String datasetName) Creates a new IDatasetRef from a datasetName.TheDatasetActionobjects that automatically create the dataset contents.When dataset contents are created they are delivered to destinations specified here.The name of the dataset.A reference to a Dataset resource.A list of data rules that send notifications to CloudWatch, when data arrives late.Optional.getTags()Tag Manager which manages the tags for this resource.Metadata which can be used to manage the data set.TheDatasetTriggerobjects that specify when the dataset is automatically updated.Optional.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetActions(List<Object> value) TheDatasetActionobjects that automatically create the dataset contents.voidsetActions(IResolvable value) TheDatasetActionobjects that automatically create the dataset contents.voidsetContentDeliveryRules(List<Object> value) When dataset contents are created they are delivered to destinations specified here.voidWhen dataset contents are created they are delivered to destinations specified here.voidsetDatasetName(String value) The name of the dataset.voidsetLateDataRules(List<Object> value) A list of data rules that send notifications to CloudWatch, when data arrives late.voidsetLateDataRules(IResolvable value) A list of data rules that send notifications to CloudWatch, when data arrives late.voidsetRetentionPeriod(IResolvable value) Optional.voidOptional.voidsetTagsRaw(List<CfnTag> value) Metadata which can be used to manage the data set.voidsetTriggers(List<Object> value) TheDatasetTriggerobjects that specify when the dataset is automatically updated.voidsetTriggers(IResolvable value) TheDatasetTriggerobjects that specify when the dataset is automatically updated.voidOptional.voidOptional.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDataset
protected CfnDataset(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDataset
protected CfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDataset
@Stability(Stable) public CfnDataset(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDatasetProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
fromDatasetName
@Stability(Stable) @NotNull public static IDatasetRef fromDatasetName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String datasetName) Creates a new IDatasetRef from a datasetName.- Parameters:
scope- This parameter is required.id- This parameter is required.datasetName- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrId
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDatasetRef
A reference to a Dataset resource.- Specified by:
getDatasetRefin interfaceIDatasetRef
-
getTags
Tag Manager which manages the tags for this resource. -
getActions
TheDatasetActionobjects that automatically create the dataset contents.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataset.ActionProperty> -
setActions
TheDatasetActionobjects that automatically create the dataset contents. -
setActions
TheDatasetActionobjects that automatically create the dataset contents. -
getContentDeliveryRules
When dataset contents are created they are delivered to destinations specified here.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataset.DatasetContentDeliveryRuleProperty> -
setContentDeliveryRules
When dataset contents are created they are delivered to destinations specified here. -
setContentDeliveryRules
When dataset contents are created they are delivered to destinations specified here. -
getDatasetName
The name of the dataset. -
setDatasetName
The name of the dataset. -
getLateDataRules
A list of data rules that send notifications to CloudWatch, when data arrives late.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataset.LateDataRuleProperty> -
setLateDataRules
A list of data rules that send notifications to CloudWatch, when data arrives late. -
setLateDataRules
A list of data rules that send notifications to CloudWatch, when data arrives late. -
getRetentionPeriod
Optional.Returns union: either
IResolvableorCfnDataset.RetentionPeriodProperty -
setRetentionPeriod
Optional. -
setRetentionPeriod
@Stability(Stable) public void setRetentionPeriod(@Nullable CfnDataset.RetentionPeriodProperty value) Optional. -
getTagsRaw
Metadata which can be used to manage the data set. -
setTagsRaw
Metadata which can be used to manage the data set. -
getTriggers
TheDatasetTriggerobjects that specify when the dataset is automatically updated.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDataset.TriggerProperty> -
setTriggers
TheDatasetTriggerobjects that specify when the dataset is automatically updated. -
setTriggers
TheDatasetTriggerobjects that specify when the dataset is automatically updated. -
getVersioningConfiguration
Optional.Returns union: either
IResolvableorCfnDataset.VersioningConfigurationProperty -
setVersioningConfiguration
Optional. -
setVersioningConfiguration
@Stability(Stable) public void setVersioningConfiguration(@Nullable CfnDataset.VersioningConfigurationProperty value) Optional.
-