Class CfnChannel.CustomerManagedS3Property.Builder
java.lang.Object
software.amazon.awscdk.services.iotanalytics.CfnChannel.CustomerManagedS3Property.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.CustomerManagedS3Property>
- Enclosing interface:
- CfnChannel.CustomerManagedS3Property
@Stability(Stable)
public static final class CfnChannel.CustomerManagedS3Property.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.CustomerManagedS3Property>
A builder for
CfnChannel.CustomerManagedS3Property
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannel.CustomerManagedS3Property.getBucket()
build()
Builds the configured instance.Sets the value ofCfnChannel.CustomerManagedS3Property.getKeyPrefix()
Sets the value ofCfnChannel.CustomerManagedS3Property.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnChannel.CustomerManagedS3Property.getBucket()
- Parameters:
bucket
- The name of the S3 bucket in which channel data is stored. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnChannel.CustomerManagedS3Property.getRoleArn()
- Parameters:
roleArn
- The ARN of the role that grants AWS IoT Analytics permission to interact with your Amazon S3 resources. This parameter is required.- Returns:
this
-
keyPrefix
Sets the value ofCfnChannel.CustomerManagedS3Property.getKeyPrefix()
- Parameters:
keyPrefix
- (Optional) The prefix used to create the keys of the channel data objects. Each object in an S3 bucket has a key that is its unique identifier within the bucket (each object in a bucket has exactly one key). The prefix must end with a forward slash (/).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.CustomerManagedS3Property>
- Returns:
- a new instance of
CfnChannel.CustomerManagedS3Property
- Throws:
NullPointerException
- if any required attribute was not provided
-