@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:51.770Z") @Stability(value=Experimental) public interface DeliveryStreamProps extends software.amazon.jsii.JsiiSerializable
Example:
Bucket bucket;
// Provide a Lambda function that will transform records before delivery, with custom
// buffering and retry configuration
Function lambdaFunction = Function.Builder.create(this, "Processor")
.runtime(Runtime.NODEJS_14_X)
.handler("index.handler")
.code(Code.fromAsset(join(__dirname, "process-records")))
.build();
LambdaFunctionProcessor lambdaProcessor = LambdaFunctionProcessor.Builder.create(lambdaFunction)
.bufferInterval(Duration.minutes(5))
.bufferSize(Size.mebibytes(5))
.retries(5)
.build();
S3Bucket s3Destination = S3Bucket.Builder.create(bucket)
.processor(lambdaProcessor)
.build();
DeliveryStream.Builder.create(this, "Delivery Stream")
.destinations(List.of(s3Destination))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DeliveryStreamProps.Builder
A builder for
DeliveryStreamProps |
static class |
DeliveryStreamProps.Jsii$Proxy
An implementation for
DeliveryStreamProps |
| Modifier and Type | Method and Description |
|---|---|
static DeliveryStreamProps.Builder |
builder() |
default String |
getDeliveryStreamName()
(experimental) A name for the delivery stream.
|
List<IDestination> |
getDestinations()
(experimental) The destinations that this delivery stream will deliver data to.
|
default StreamEncryption |
getEncryption()
(experimental) Indicates the type of customer master key (CMK) to use for server-side encryption, if any.
|
default IKey |
getEncryptionKey()
(experimental) Customer managed key to server-side encrypt data in the stream.
|
default IRole |
getRole()
(experimental) The IAM role associated with this delivery stream.
|
default IStream |
getSourceStream()
(experimental) The Kinesis data stream to use as a source for this delivery stream.
|
@Stability(value=Experimental) @NotNull List<IDestination> getDestinations()
Only a singleton array is supported at this time.
@Stability(value=Experimental) @Nullable default String getDeliveryStreamName()
Default: - a name is generated by CloudFormation.
@Stability(value=Experimental) @Nullable default StreamEncryption getEncryption()
Default: StreamEncryption.UNENCRYPTED - unless `encryptionKey` is provided, in which case this will be implicitly set to `StreamEncryption.CUSTOMER_MANAGED`
@Stability(value=Experimental) @Nullable default IKey getEncryptionKey()
Default: - no KMS key will be used; if `encryption` is set to `CUSTOMER_MANAGED`, a KMS key will be created for you
@Stability(value=Experimental) @Nullable default IRole getRole()
Assumed by Kinesis Data Firehose to read from sources and encrypt data server-side.
Default: - a role will be created with default permissions.
@Stability(value=Experimental) @Nullable default IStream getSourceStream()
Default: - data must be written to the delivery stream via a direct put.
@Stability(value=Experimental) static DeliveryStreamProps.Builder builder()
DeliveryStreamProps.Builder of DeliveryStreamPropsCopyright © 2022. All rights reserved.