Class CfnChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesis.CfnChannelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelProps>
- Enclosing interface:
CfnChannelProps
@Stability(Stable)
public static final class CfnChannelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelProps>
A builder for
CfnChannelProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.channelName(String channelName) Sets the value ofCfnChannelProps.getChannelName()encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnChannelProps.getEncryptionConfiguration()encryptionConfiguration(CfnChannel.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnChannelProps.getEncryptionConfiguration()loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnChannelProps.getLoggingConfiguration()loggingConfiguration(CfnChannel.LoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnChannelProps.getLoggingConfiguration()s3DestinationConfiguration(IResolvable s3DestinationConfiguration) Sets the value ofCfnChannelProps.getS3DestinationConfiguration()s3DestinationConfiguration(CfnChannel.S3DestinationConfigurationProperty s3DestinationConfiguration) Sets the value ofCfnChannelProps.getS3DestinationConfiguration()s3TablesDestinationConfiguration(IResolvable s3TablesDestinationConfiguration) Sets the value ofCfnChannelProps.getS3TablesDestinationConfiguration()s3TablesDestinationConfiguration(CfnChannel.S3TablesDestinationConfigurationProperty s3TablesDestinationConfiguration) Sets the value ofCfnChannelProps.getS3TablesDestinationConfiguration()serviceExecutionRoleArn(String serviceExecutionRoleArn) Sets the value ofCfnChannelProps.getServiceExecutionRoleArn()streamConfigurationList(List<? extends Object> streamConfigurationList) Sets the value ofCfnChannelProps.getStreamConfigurationList()streamConfigurationList(IResolvable streamConfigurationList) Sets the value ofCfnChannelProps.getStreamConfigurationList()Sets the value ofCfnChannelProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channelName
Sets the value ofCfnChannelProps.getChannelName()- Parameters:
channelName- The name of the channel. This parameter is required. The name's uniqueness is scoped per AWS account and region.- Returns:
this
-
serviceExecutionRoleArn
@Stability(Stable) public CfnChannelProps.Builder serviceExecutionRoleArn(String serviceExecutionRoleArn) Sets the value ofCfnChannelProps.getServiceExecutionRoleArn()- Parameters:
serviceExecutionRoleArn- The ARN of the IAM role that the channel assumes to read from the source stream, deliver records to the destination, and (when enabled) write CloudWatch Logs. This parameter is required.- Returns:
this
-
streamConfigurationList
@Stability(Stable) public CfnChannelProps.Builder streamConfigurationList(IResolvable streamConfigurationList) Sets the value ofCfnChannelProps.getStreamConfigurationList()- Parameters:
streamConfigurationList- List of stream configurations associated with the channel. This parameter is required. v1 supports a single element; the list shape allows future extensibility to fan in from multiple streams.- Returns:
this
-
streamConfigurationList
@Stability(Stable) public CfnChannelProps.Builder streamConfigurationList(List<? extends Object> streamConfigurationList) Sets the value ofCfnChannelProps.getStreamConfigurationList()- Parameters:
streamConfigurationList- List of stream configurations associated with the channel. This parameter is required. v1 supports a single element; the list shape allows future extensibility to fan in from multiple streams.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnChannelProps.Builder encryptionConfiguration(IResolvable encryptionConfiguration) Sets the value ofCfnChannelProps.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- Server-side encryption configuration for data at rest in the destination. Data delivered to S3 / S3 Tables is encrypted with the same key.- Returns:
this
-
encryptionConfiguration
@Stability(Stable) public CfnChannelProps.Builder encryptionConfiguration(CfnChannel.EncryptionConfigurationProperty encryptionConfiguration) Sets the value ofCfnChannelProps.getEncryptionConfiguration()- Parameters:
encryptionConfiguration- Server-side encryption configuration for data at rest in the destination. Data delivered to S3 / S3 Tables is encrypted with the same key.- Returns:
this
-
loggingConfiguration
@Stability(Stable) public CfnChannelProps.Builder loggingConfiguration(IResolvable loggingConfiguration) Sets the value ofCfnChannelProps.getLoggingConfiguration()- Parameters:
loggingConfiguration- Configuration for delivering channel operational logs.- Returns:
this
-
loggingConfiguration
@Stability(Stable) public CfnChannelProps.Builder loggingConfiguration(CfnChannel.LoggingConfigurationProperty loggingConfiguration) Sets the value ofCfnChannelProps.getLoggingConfiguration()- Parameters:
loggingConfiguration- Configuration for delivering channel operational logs.- Returns:
this
-
s3DestinationConfiguration
@Stability(Stable) public CfnChannelProps.Builder s3DestinationConfiguration(IResolvable s3DestinationConfiguration) Sets the value ofCfnChannelProps.getS3DestinationConfiguration()- Parameters:
s3DestinationConfiguration- Configuration for delivery to a vanilla S3 bucket destination. Exactly one of S3DestinationConfiguration and S3TablesDestinationConfiguration must be specified on the channel.- Returns:
this
-
s3DestinationConfiguration
@Stability(Stable) public CfnChannelProps.Builder s3DestinationConfiguration(CfnChannel.S3DestinationConfigurationProperty s3DestinationConfiguration) Sets the value ofCfnChannelProps.getS3DestinationConfiguration()- Parameters:
s3DestinationConfiguration- Configuration for delivery to a vanilla S3 bucket destination. Exactly one of S3DestinationConfiguration and S3TablesDestinationConfiguration must be specified on the channel.- Returns:
this
-
s3TablesDestinationConfiguration
@Stability(Stable) public CfnChannelProps.Builder s3TablesDestinationConfiguration(IResolvable s3TablesDestinationConfiguration) Sets the value ofCfnChannelProps.getS3TablesDestinationConfiguration()- Parameters:
s3TablesDestinationConfiguration- Configuration for delivery to S3 Tables destinations. Exactly one of S3DestinationConfiguration and S3TablesDestinationConfiguration must be specified on the channel.- Returns:
this
-
s3TablesDestinationConfiguration
@Stability(Stable) public CfnChannelProps.Builder s3TablesDestinationConfiguration(CfnChannel.S3TablesDestinationConfigurationProperty s3TablesDestinationConfiguration) Sets the value ofCfnChannelProps.getS3TablesDestinationConfiguration()- Parameters:
s3TablesDestinationConfiguration- Configuration for delivery to S3 Tables destinations. Exactly one of S3DestinationConfiguration and S3TablesDestinationConfiguration must be specified on the channel.- Returns:
this
-
tags
Sets the value ofCfnChannelProps.getTags()- Parameters:
tags- An arbitrary set of tags (key-value pairs) to associate with the Kinesis channel.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannelProps>- Returns:
- a new instance of
CfnChannelProps - Throws:
NullPointerException- if any required attribute was not provided
-