Class CfnDatastore.Builder
java.lang.Object
software.amazon.awscdk.services.iotanalytics.CfnDatastore.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatastore>
- Enclosing class:
CfnDatastore
@Stability(Stable)
public static final class CfnDatastore.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatastore>
A fluent builder for
CfnDatastore
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnDatastore.Builder
datastoreName
(String datastoreName) The name of the data store.datastorePartitions
(IResolvable datastorePartitions) Information about the partition dimensions in a data store.datastorePartitions
(CfnDatastore.DatastorePartitionsProperty datastorePartitions) Information about the partition dimensions in a data store.datastoreStorage
(IResolvable datastoreStorage) Where data store data is stored.datastoreStorage
(CfnDatastore.DatastoreStorageProperty datastoreStorage) Where data store data is stored.fileFormatConfiguration
(IResolvable fileFormatConfiguration) Contains the configuration information of file formats.fileFormatConfiguration
(CfnDatastore.FileFormatConfigurationProperty fileFormatConfiguration) Contains the configuration information of file formats.retentionPeriod
(IResolvable retentionPeriod) How long, in days, message data is kept for the data store.retentionPeriod
(CfnDatastore.RetentionPeriodProperty retentionPeriod) How long, in days, message data is kept for the data store.Metadata which can be used to manage the data store.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnDatastore.Builder
.
-
datastoreName
The name of the data store.- Parameters:
datastoreName
- The name of the data store. This parameter is required.- Returns:
this
-
datastorePartitions
Information about the partition dimensions in a data store.- Parameters:
datastorePartitions
- Information about the partition dimensions in a data store. This parameter is required.- Returns:
this
-
datastorePartitions
@Stability(Stable) public CfnDatastore.Builder datastorePartitions(CfnDatastore.DatastorePartitionsProperty datastorePartitions) Information about the partition dimensions in a data store.- Parameters:
datastorePartitions
- Information about the partition dimensions in a data store. This parameter is required.- Returns:
this
-
datastoreStorage
Where data store data is stored.- Parameters:
datastoreStorage
- Where data store data is stored. This parameter is required.- Returns:
this
-
datastoreStorage
@Stability(Stable) public CfnDatastore.Builder datastoreStorage(CfnDatastore.DatastoreStorageProperty datastoreStorage) Where data store data is stored.- Parameters:
datastoreStorage
- Where data store data is stored. This parameter is required.- Returns:
this
-
fileFormatConfiguration
@Stability(Stable) public CfnDatastore.Builder fileFormatConfiguration(IResolvable fileFormatConfiguration) Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet .The default file format is JSON. You can specify only one format.
You can't change the file format after you create the data store.
- Parameters:
fileFormatConfiguration
- Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet . This parameter is required.- Returns:
this
-
fileFormatConfiguration
@Stability(Stable) public CfnDatastore.Builder fileFormatConfiguration(CfnDatastore.FileFormatConfigurationProperty fileFormatConfiguration) Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet .The default file format is JSON. You can specify only one format.
You can't change the file format after you create the data store.
- Parameters:
fileFormatConfiguration
- Contains the configuration information of file formats. AWS IoT Analytics data stores support JSON and Parquet . This parameter is required.- Returns:
this
-
retentionPeriod
How long, in days, message data is kept for the data store.When
customerManagedS3
storage is selected, this parameter is ignored.- Parameters:
retentionPeriod
- How long, in days, message data is kept for the data store. This parameter is required.- Returns:
this
-
retentionPeriod
@Stability(Stable) public CfnDatastore.Builder retentionPeriod(CfnDatastore.RetentionPeriodProperty retentionPeriod) How long, in days, message data is kept for the data store.When
customerManagedS3
storage is selected, this parameter is ignored.- Parameters:
retentionPeriod
- How long, in days, message data is kept for the data store. This parameter is required.- Returns:
this
-
tags
Metadata which can be used to manage the data store.For more information, see Tag .
- Parameters:
tags
- Metadata which can be used to manage the data store. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDatastore>
- Returns:
- a newly built instance of
CfnDatastore
.
-