@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:09.698Z") @Stability(value=Experimental) public class DeliveryStream extends Resource implements IDeliveryStream
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_12_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 | Class and Description |
|---|---|
static class |
DeliveryStream.Builder
(experimental) A fluent builder for
DeliveryStream. |
software.amazon.jsii.JsiiObject.InitializationModeIDeliveryStream.Jsii$Default, IDeliveryStream.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
DeliveryStream(software.constructs.Construct scope,
String id,
DeliveryStreamProps props) |
protected |
DeliveryStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DeliveryStream(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IDeliveryStream |
fromDeliveryStreamArn(software.constructs.Construct scope,
String id,
String deliveryStreamArn)
(experimental) Import an existing delivery stream from its ARN.
|
static IDeliveryStream |
fromDeliveryStreamAttributes(software.constructs.Construct scope,
String id,
DeliveryStreamAttributes attrs)
(experimental) Import an existing delivery stream from its attributes.
|
static IDeliveryStream |
fromDeliveryStreamName(software.constructs.Construct scope,
String id,
String deliveryStreamName)
(experimental) Import an existing delivery stream from its name.
|
Connections |
getConnections()
(experimental) Network connections between Kinesis Data Firehose and other resources, i.e.
|
String |
getDeliveryStreamArn()
(experimental) The ARN of the delivery stream.
|
String |
getDeliveryStreamName()
(experimental) The name of the delivery stream.
|
IPrincipal |
getGrantPrincipal()
(experimental) The principal to grant permissions to.
|
Grant |
grant(IGrantable grantee,
String... actions)
(experimental) Grant the `grantee` identity permissions to perform `actions`.
|
Grant |
grantPutRecords(IGrantable grantee)
(experimental) Grant the `grantee` identity permissions to perform `firehose:PutRecord` and `firehose:PutRecordBatch` actions on this delivery stream.
|
Metric |
metric(String metricName)
(experimental) Return the given named metric for this delivery stream.
|
Metric |
metric(String metricName,
MetricOptions props)
(experimental) Return the given named metric for this delivery stream.
|
Metric |
metricBackupToS3Bytes()
(experimental) Metric for the number of bytes delivered to Amazon S3 for backup over the specified time period.
|
Metric |
metricBackupToS3Bytes(MetricOptions props)
(experimental) Metric for the number of bytes delivered to Amazon S3 for backup over the specified time period.
|
Metric |
metricBackupToS3DataFreshness()
(experimental) Metric for the age (from getting into Kinesis Data Firehose to now) of the oldest record in Kinesis Data Firehose.
|
Metric |
metricBackupToS3DataFreshness(MetricOptions props)
(experimental) Metric for the age (from getting into Kinesis Data Firehose to now) of the oldest record in Kinesis Data Firehose.
|
Metric |
metricBackupToS3Records()
(experimental) Metric for the number of records delivered to Amazon S3 for backup over the specified time period.
|
Metric |
metricBackupToS3Records(MetricOptions props)
(experimental) Metric for the number of records delivered to Amazon S3 for backup over the specified time period.
|
Metric |
metricIncomingBytes()
(experimental) Metric for the number of bytes ingested successfully into the delivery stream over the specified time period after throttling.
|
Metric |
metricIncomingBytes(MetricOptions props)
(experimental) Metric for the number of bytes ingested successfully into the delivery stream over the specified time period after throttling.
|
Metric |
metricIncomingRecords()
(experimental) Metric for the number of records ingested successfully into the delivery stream over the specified time period after throttling.
|
Metric |
metricIncomingRecords(MetricOptions props)
(experimental) Metric for the number of records ingested successfully into the delivery stream over the specified time period after throttling.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected DeliveryStream(software.amazon.jsii.JsiiObjectRef objRef)
protected DeliveryStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public DeliveryStream(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
DeliveryStreamProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IDeliveryStream fromDeliveryStreamArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String deliveryStreamArn)
scope - This parameter is required.id - This parameter is required.deliveryStreamArn - This parameter is required.@Stability(value=Experimental) @NotNull public static IDeliveryStream fromDeliveryStreamAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DeliveryStreamAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Experimental) @NotNull public static IDeliveryStream fromDeliveryStreamName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String deliveryStreamName)
scope - This parameter is required.id - This parameter is required.deliveryStreamName - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grant in interface IDeliveryStreamgrantee - This parameter is required.actions - This parameter is required.@Stability(value=Experimental) @NotNull public Grant grantPutRecords(@NotNull IGrantable grantee)
grantPutRecords in interface IDeliveryStreamgrantee - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metric in interface IDeliveryStreammetricName - This parameter is required.props - @Stability(value=Experimental) @NotNull public Metric metric(@NotNull String metricName)
metric in interface IDeliveryStreammetricName - This parameter is required.@Stability(value=Experimental) @NotNull public Metric metricBackupToS3Bytes(@Nullable MetricOptions props)
By default, this metric will be calculated as an average over a period of 5 minutes.
metricBackupToS3Bytes in interface IDeliveryStreamprops - @Stability(value=Experimental) @NotNull public Metric metricBackupToS3Bytes()
By default, this metric will be calculated as an average over a period of 5 minutes.
metricBackupToS3Bytes in interface IDeliveryStream@Stability(value=Experimental) @NotNull public Metric metricBackupToS3DataFreshness(@Nullable MetricOptions props)
Any record older than this age has been delivered to the Amazon S3 bucket for backup.
By default, this metric will be calculated as an average over a period of 5 minutes.
metricBackupToS3DataFreshness in interface IDeliveryStreamprops - @Stability(value=Experimental) @NotNull public Metric metricBackupToS3DataFreshness()
Any record older than this age has been delivered to the Amazon S3 bucket for backup.
By default, this metric will be calculated as an average over a period of 5 minutes.
metricBackupToS3DataFreshness in interface IDeliveryStream@Stability(value=Experimental) @NotNull public Metric metricBackupToS3Records(@Nullable MetricOptions props)
By default, this metric will be calculated as an average over a period of 5 minutes.
metricBackupToS3Records in interface IDeliveryStreamprops - @Stability(value=Experimental) @NotNull public Metric metricBackupToS3Records()
By default, this metric will be calculated as an average over a period of 5 minutes.
metricBackupToS3Records in interface IDeliveryStream@Stability(value=Experimental) @NotNull public Metric metricIncomingBytes(@Nullable MetricOptions props)
By default, this metric will be calculated as an average over a period of 5 minutes.
metricIncomingBytes in interface IDeliveryStreamprops - @Stability(value=Experimental) @NotNull public Metric metricIncomingBytes()
By default, this metric will be calculated as an average over a period of 5 minutes.
metricIncomingBytes in interface IDeliveryStream@Stability(value=Experimental) @NotNull public Metric metricIncomingRecords(@Nullable MetricOptions props)
By default, this metric will be calculated as an average over a period of 5 minutes.
metricIncomingRecords in interface IDeliveryStreamprops - @Stability(value=Experimental) @NotNull public Metric metricIncomingRecords()
By default, this metric will be calculated as an average over a period of 5 minutes.
metricIncomingRecords in interface IDeliveryStream@Stability(value=Experimental) @NotNull public Connections getConnections()
getConnections in interface IConnectable@Stability(value=Experimental) @NotNull public String getDeliveryStreamArn()
getDeliveryStreamArn in interface IDeliveryStream@Stability(value=Experimental) @NotNull public String getDeliveryStreamName()
getDeliveryStreamName in interface IDeliveryStream@Stability(value=Experimental) @NotNull public IPrincipal getGrantPrincipal()
getGrantPrincipal in interface IGrantableCopyright © 2022. All rights reserved.