Class CfnDatasetPropsMixin.S3DestinationConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iotanalytics.CfnDatasetPropsMixin.S3DestinationConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDatasetPropsMixin.S3DestinationConfigurationProperty>
- Enclosing interface:
CfnDatasetPropsMixin.S3DestinationConfigurationProperty
@Stability(Stable)
public static final class CfnDatasetPropsMixin.S3DestinationConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDatasetPropsMixin.S3DestinationConfigurationProperty>
A builder for
CfnDatasetPropsMixin.S3DestinationConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDatasetPropsMixin.S3DestinationConfigurationProperty.getBucket()bucket(IBucketRef bucket) Sets the value ofCfnDatasetPropsMixin.S3DestinationConfigurationProperty.getBucket()build()Builds the configured instance.glueConfiguration(CfnDatasetPropsMixin.GlueConfigurationProperty glueConfiguration) glueConfiguration(IResolvable glueConfiguration) Sets the value ofCfnDatasetPropsMixin.S3DestinationConfigurationProperty.getKey()Sets the value ofCfnDatasetPropsMixin.S3DestinationConfigurationProperty.getRoleArn()Sets the value ofCfnDatasetPropsMixin.S3DestinationConfigurationProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
@Stability(Stable) public CfnDatasetPropsMixin.S3DestinationConfigurationProperty.Builder bucket(String bucket) Sets the value ofCfnDatasetPropsMixin.S3DestinationConfigurationProperty.getBucket()- Parameters:
bucket- The name of the S3 bucket to which dataset contents are delivered.- Returns:
this
-
bucket
@Stability(Stable) public CfnDatasetPropsMixin.S3DestinationConfigurationProperty.Builder bucket(IBucketRef bucket) Sets the value ofCfnDatasetPropsMixin.S3DestinationConfigurationProperty.getBucket()- Parameters:
bucket- The name of the S3 bucket to which dataset contents are delivered.- Returns:
this
-
glueConfiguration
@Stability(Stable) public CfnDatasetPropsMixin.S3DestinationConfigurationProperty.Builder glueConfiguration(IResolvable glueConfiguration) - Parameters:
glueConfiguration- Configuration information for coordination with AWS Glue , a fully managed extract, transform and load (ETL) service.- Returns:
this
-
glueConfiguration
@Stability(Stable) public CfnDatasetPropsMixin.S3DestinationConfigurationProperty.Builder glueConfiguration(CfnDatasetPropsMixin.GlueConfigurationProperty glueConfiguration) - Parameters:
glueConfiguration- Configuration information for coordination with AWS Glue , a fully managed extract, transform and load (ETL) service.- Returns:
this
-
key
@Stability(Stable) public CfnDatasetPropsMixin.S3DestinationConfigurationProperty.Builder key(String key) Sets the value ofCfnDatasetPropsMixin.S3DestinationConfigurationProperty.getKey()- Parameters:
key- The key of the dataset contents object in an S3 bucket. 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}.csvIf 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 samescheduleTimebut differentversionIds. This means that one dataset content overwrites the other.- Use
- Returns:
this
-
roleArn
@Stability(Stable) public CfnDatasetPropsMixin.S3DestinationConfigurationProperty.Builder roleArn(String roleArn) Sets the value ofCfnDatasetPropsMixin.S3DestinationConfigurationProperty.getRoleArn()- Parameters:
roleArn- The ARN of the role that grants ITA permission to interact with your Amazon S3 and AWS Glue resources.- Returns:
this
-
roleArn
@Stability(Stable) public CfnDatasetPropsMixin.S3DestinationConfigurationProperty.Builder roleArn(IRoleRef roleArn) Sets the value ofCfnDatasetPropsMixin.S3DestinationConfigurationProperty.getRoleArn()- Parameters:
roleArn- The ARN of the role that grants ITA permission to interact with your Amazon S3 and AWS Glue resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDatasetPropsMixin.S3DestinationConfigurationProperty>- Returns:
- a new instance of
CfnDatasetPropsMixin.S3DestinationConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-