Class CfnDataset
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.iotsitewise.CfnDataset
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IDatasetRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:38.503Z")
@Stability(Stable)
public class CfnDataset
extends CfnResource
implements IInspectable, IDatasetRef, ITaggableV2
Creates a dataset to connect an external datasource.
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.iotsitewise.*;
CfnDataset cfnDataset = CfnDataset.Builder.create(this, "MyCfnDataset")
.datasetName("datasetName")
.datasetSource(DatasetSourceProperty.builder()
.sourceFormat("sourceFormat")
.sourceType("sourceType")
// the properties below are optional
.sourceDetail(SourceDetailProperty.builder()
.kendra(KendraSourceDetailProperty.builder()
.knowledgeBaseArn("knowledgeBaseArn")
.roleArn("roleArn")
.build())
.build())
.build())
// the properties below are optional
.datasetDescription("datasetDescription")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDataset.static interfaceThe data source for the dataset.static interfaceThe source details for the Kendra dataset source.static interfaceThe details of the dataset source associated with the dataset.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.interfaces.iotsitewise.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.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.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) Create a newAWS::IoTSiteWise::Dataset. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForDataset(IDatasetRef resource) static IDatasetReffromDatasetArn(software.constructs.Construct scope, String id, String arn) Creates a new IDatasetRef from an ARN.static IDatasetReffromDatasetId(software.constructs.Construct scope, String id, String datasetId) Creates a new IDatasetRef from a datasetId.The ARN of the dataset, which has the following format.The ID of the dataset.Tag Manager which manages the tags for this resource.A description about the dataset, and its functionality.The name of the dataset.A reference to a Dataset resource.The data source for the dataset.getTags()A list of key-value pairs that contain metadata for the access policy.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnDataset.renderProperties(Map<String, Object> props) voidsetDatasetDescription(String value) A description about the dataset, and its functionality.voidsetDatasetName(String value) The name of the dataset.voidsetDatasetSource(IResolvable value) The data source for the dataset.voidThe data source for the dataset.voidA list of key-value pairs that contain metadata for the access policy.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.interfaces.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) Create a newAWS::IoTSiteWise::Dataset.- 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
-
arnForDataset
- Parameters:
resource- This parameter is required.
-
fromDatasetArn
@Stability(Stable) @NotNull public static IDatasetRef fromDatasetArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IDatasetRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromDatasetId
@Stability(Stable) @NotNull public static IDatasetRef fromDatasetId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String datasetId) Creates a new IDatasetRef from a datasetId.- Parameters:
scope- This parameter is required.id- This parameter is required.datasetId- This parameter is required.
-
isCfnDataset
Checks whether the given object is a CfnDataset.- Parameters:
x- 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.
-
getAttrDatasetArn
The ARN of the dataset, which has the following format.arn:${Partition}:iotsitewise:${Region}:${Account}:dataset/${DatasetId} -
getAttrDatasetId
The ID of the dataset. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDatasetRef
A reference to a Dataset resource.- Specified by:
getDatasetRefin interfaceIDatasetRef
-
getDatasetName
The name of the dataset. -
setDatasetName
The name of the dataset. -
getDatasetSource
The data source for the dataset.Returns union: either
IResolvableorCfnDataset.DatasetSourceProperty -
setDatasetSource
The data source for the dataset. -
setDatasetSource
The data source for the dataset. -
getDatasetDescription
A description about the dataset, and its functionality. -
setDatasetDescription
A description about the dataset, and its functionality. -
getTags
A list of key-value pairs that contain metadata for the access policy. -
setTags
A list of key-value pairs that contain metadata for the access policy.
-