Class CfnDataset.DataSourceProperty.Builder

java.lang.Object
software.amazon.awscdk.services.personalize.CfnDataset.DataSourceProperty.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataset.DataSourceProperty>
Enclosing interface:
CfnDataset.DataSourceProperty

@Stability(Stable) public static final class CfnDataset.DataSourceProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnDataset.DataSourceProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • dataLocation

      @Stability(Stable) public CfnDataset.DataSourceProperty.Builder dataLocation(String dataLocation)
      Parameters:
      dataLocation - For dataset import jobs, the path to the Amazon S3 bucket where the data that you want to upload to your dataset is stored. For data deletion jobs, the path to the Amazon S3 bucket that stores the list of records to delete.

      For example:

      s3://bucket-name/folder-name/fileName.csv

      If your CSV files are in a folder in your Amazon S3 bucket and you want your import job or data deletion job to consider multiple files, you can specify the path to the folder. With a data deletion job, Amazon Personalize uses all files in the folder and any sub folder. Use the following syntax with a / after the folder name:

      s3://bucket-name/folder-name/

      Returns:
      this
    • build

      @Stability(Stable) public CfnDataset.DataSourceProperty build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDataset.DataSourceProperty>
      Returns:
      a new instance of CfnDataset.DataSourceProperty
      Throws:
      NullPointerException - if any required attribute was not provided