Class CfnDataset.S3DestinationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iotanalytics.CfnDataset.S3DestinationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataset.S3DestinationConfigurationProperty>
- Enclosing interface:
CfnDataset.S3DestinationConfigurationProperty
@Stability(Stable)
public static final class CfnDataset.S3DestinationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataset.S3DestinationConfigurationProperty>
A builder for
CfnDataset.S3DestinationConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDataset.S3DestinationConfigurationProperty.getBucket()
build()
Builds the configured instance.glueConfiguration
(IResolvable glueConfiguration) Sets the value ofCfnDataset.S3DestinationConfigurationProperty.getGlueConfiguration()
glueConfiguration
(CfnDataset.GlueConfigurationProperty glueConfiguration) Sets the value ofCfnDataset.S3DestinationConfigurationProperty.getGlueConfiguration()
Sets the value ofCfnDataset.S3DestinationConfigurationProperty.getKey()
Sets the value ofCfnDataset.S3DestinationConfigurationProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
@Stability(Stable) public CfnDataset.S3DestinationConfigurationProperty.Builder bucket(String bucket) Sets the value ofCfnDataset.S3DestinationConfigurationProperty.getBucket()
- Parameters:
bucket
- The name of the S3 bucket to which dataset contents are delivered. This parameter is required.- Returns:
this
-
key
Sets the value ofCfnDataset.S3DestinationConfigurationProperty.getKey()
- Parameters:
key
- The key of the dataset contents object in an S3 bucket. This parameter is required. Each object has a key that is a unique identifier. Each object has exactly one key.You can create a unique key with the following options:
- Use
!{iotanalytics:scheduleTime}
to insert the time of a scheduled SQL query run. - Use
!{iotanalytics:versionId}
to insert a unique hash that identifies a dataset content. - Use
!{iotanalytics:creationTime}
to insert the creation time of a dataset content.
The following example creates a unique key for a CSV file:
dataset/mydataset/!{iotanalytics:scheduleTime}/!{iotanalytics:versionId}.csv
If you don't use
!{iotanalytics:versionId}
to specify the key, you might get duplicate keys. For example, you might have two dataset contents with the samescheduleTime
but differentversionId
s. This means that one dataset content overwrites the other.- Use
- Returns:
this
-
roleArn
@Stability(Stable) public CfnDataset.S3DestinationConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnDataset.S3DestinationConfigurationProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon S3 and AWS Glue resources. This parameter is required.- Returns:
this
-
glueConfiguration
@Stability(Stable) public CfnDataset.S3DestinationConfigurationProperty.Builder glueConfiguration(IResolvable glueConfiguration) Sets the value ofCfnDataset.S3DestinationConfigurationProperty.getGlueConfiguration()
- Parameters:
glueConfiguration
- Configuration information for coordination with AWS Glue , a fully managed extract, transform and load (ETL) service.- Returns:
this
-
glueConfiguration
@Stability(Stable) public CfnDataset.S3DestinationConfigurationProperty.Builder glueConfiguration(CfnDataset.GlueConfigurationProperty glueConfiguration) Sets the value ofCfnDataset.S3DestinationConfigurationProperty.getGlueConfiguration()
- Parameters:
glueConfiguration
- Configuration information for coordination with AWS Glue , a fully managed extract, transform and load (ETL) service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataset.S3DestinationConfigurationProperty>
- Returns:
- a new instance of
CfnDataset.S3DestinationConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-