Class DeliveryStream.Builder

java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.alpha.DeliveryStream.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<DeliveryStream>
Enclosing class:
DeliveryStream

@Stability(Experimental) public static final class DeliveryStream.Builder extends Object implements software.amazon.jsii.Builder<DeliveryStream>
(experimental) A fluent builder for DeliveryStream.
  • Method Details

    • create

      @Stability(Experimental) public static DeliveryStream.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of DeliveryStream.Builder.
    • destination

      @Stability(Experimental) public DeliveryStream.Builder destination(IDestination destination)
      (experimental) The destination that this delivery stream will deliver data to.

      Parameters:
      destination - The destination that this delivery stream will deliver data to. This parameter is required.
      Returns:
      this
    • deliveryStreamName

      @Stability(Experimental) public DeliveryStream.Builder deliveryStreamName(String deliveryStreamName)
      (experimental) A name for the delivery stream.

      Default: - a name is generated by CloudFormation.

      Parameters:
      deliveryStreamName - A name for the delivery stream. This parameter is required.
      Returns:
      this
    • encryption

      @Stability(Experimental) public DeliveryStream.Builder encryption(StreamEncryption encryption)
      (experimental) Indicates the type of customer master key (CMK) to use for server-side encryption, if any.

      Default: StreamEncryption.unencrypted()

      Parameters:
      encryption - Indicates the type of customer master key (CMK) to use for server-side encryption, if any. This parameter is required.
      Returns:
      this
    • role

      @Stability(Experimental) public DeliveryStream.Builder role(IRole role)
      (experimental) The IAM role associated with this delivery stream.

      Assumed by Kinesis Data Firehose to read from sources and encrypt data server-side.

      Default: - a role will be created with default permissions.

      Parameters:
      role - The IAM role associated with this delivery stream. This parameter is required.
      Returns:
      this
    • source

      @Stability(Experimental) public DeliveryStream.Builder source(ISource source)
      (experimental) The Kinesis data stream to use as a source for this delivery stream.

      Default: - data must be written to the delivery stream via a direct put.

      Parameters:
      source - The Kinesis data stream to use as a source for this delivery stream. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public DeliveryStream build()
      Specified by:
      build in interface software.amazon.jsii.Builder<DeliveryStream>
      Returns:
      a newly built instance of DeliveryStream.