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 Details

    • create

      @Stability(Stable) public static CfnDatastore.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnDatastore.Builder.
    • datastoreName

      @Stability(Stable) public CfnDatastore.Builder datastoreName(String datastoreName)
      The name of the data store.

      Parameters:
      datastoreName - The name of the data store. This parameter is required.
      Returns:
      this
    • datastorePartitions

      @Stability(Stable) public CfnDatastore.Builder datastorePartitions(IResolvable 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

      @Stability(Stable) public CfnDatastore.Builder datastoreStorage(IResolvable 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

      @Stability(Stable) public CfnDatastore.Builder retentionPeriod(IResolvable 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

      @Stability(Stable) public CfnDatastore.Builder tags(List<? extends CfnTag> 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

      @Stability(Stable) public CfnDatastore build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDatastore>
      Returns:
      a newly built instance of CfnDatastore.