@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-17T17:31:16.086Z") 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 . |
IDeliveryStream.Jsii$Default, IDeliveryStream.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
DeliveryStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DeliveryStream(software.amazon.jsii.JsiiObjectRef objRef) |
|
DeliveryStream(software.constructs.Construct scope,
java.lang.String id,
DeliveryStreamProps props) |
Modifier and Type | Method and Description |
---|---|
static IDeliveryStream |
fromDeliveryStreamArn(software.constructs.Construct scope,
java.lang.String id,
java.lang.String deliveryStreamArn)
(experimental) Import an existing delivery stream from its ARN.
|
static IDeliveryStream |
fromDeliveryStreamAttributes(software.constructs.Construct scope,
java.lang.String id,
DeliveryStreamAttributes attrs)
(experimental) Import an existing delivery stream from its attributes.
|
static IDeliveryStream |
fromDeliveryStreamName(software.constructs.Construct scope,
java.lang.String id,
java.lang.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.
|
java.lang.String |
getDeliveryStreamArn()
(experimental) The ARN of the delivery stream.
|
java.lang.String |
getDeliveryStreamName()
(experimental) The name of the delivery stream.
|
IPrincipal |
getGrantPrincipal()
(experimental) The principal to grant permissions to.
|
Grant |
grant(IGrantable grantee,
java.lang.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(java.lang.String metricName)
(experimental) Return the given named metric for this delivery stream.
|
Metric |
metric(java.lang.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, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected DeliveryStream(software.amazon.jsii.JsiiObjectRef objRef)
protected DeliveryStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public DeliveryStream(software.constructs.Construct scope, java.lang.String id, DeliveryStreamProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IDeliveryStream fromDeliveryStreamArn(software.constructs.Construct scope, java.lang.String id, java.lang.String deliveryStreamArn)
scope
- This parameter is required.id
- This parameter is required.deliveryStreamArn
- This parameter is required.public static IDeliveryStream fromDeliveryStreamAttributes(software.constructs.Construct scope, java.lang.String id, DeliveryStreamAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.public static IDeliveryStream fromDeliveryStreamName(software.constructs.Construct scope, java.lang.String id, java.lang.String deliveryStreamName)
scope
- This parameter is required.id
- This parameter is required.deliveryStreamName
- This parameter is required.public Grant grant(IGrantable grantee, java.lang.String... actions)
grant
in interface IDeliveryStream
grantee
- This parameter is required.actions
- This parameter is required.public Grant grantPutRecords(IGrantable grantee)
grantPutRecords
in interface IDeliveryStream
grantee
- This parameter is required.public Metric metric(java.lang.String metricName, MetricOptions props)
metric
in interface IDeliveryStream
metricName
- This parameter is required.props
- public Metric metric(java.lang.String metricName)
metric
in interface IDeliveryStream
metricName
- This parameter is required.public Metric metricBackupToS3Bytes(MetricOptions props)
By default, this metric will be calculated as an average over a period of 5 minutes.
metricBackupToS3Bytes
in interface IDeliveryStream
props
- public Metric metricBackupToS3Bytes()
By default, this metric will be calculated as an average over a period of 5 minutes.
metricBackupToS3Bytes
in interface IDeliveryStream
public Metric metricBackupToS3DataFreshness(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 IDeliveryStream
props
- 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
public Metric metricBackupToS3Records(MetricOptions props)
By default, this metric will be calculated as an average over a period of 5 minutes.
metricBackupToS3Records
in interface IDeliveryStream
props
- public Metric metricBackupToS3Records()
By default, this metric will be calculated as an average over a period of 5 minutes.
metricBackupToS3Records
in interface IDeliveryStream
public Metric metricIncomingBytes(MetricOptions props)
By default, this metric will be calculated as an average over a period of 5 minutes.
metricIncomingBytes
in interface IDeliveryStream
props
- public Metric metricIncomingBytes()
By default, this metric will be calculated as an average over a period of 5 minutes.
metricIncomingBytes
in interface IDeliveryStream
public Metric metricIncomingRecords(MetricOptions props)
By default, this metric will be calculated as an average over a period of 5 minutes.
metricIncomingRecords
in interface IDeliveryStream
props
- public Metric metricIncomingRecords()
By default, this metric will be calculated as an average over a period of 5 minutes.
metricIncomingRecords
in interface IDeliveryStream
public Connections getConnections()
getConnections
in interface IConnectable
public java.lang.String getDeliveryStreamArn()
getDeliveryStreamArn
in interface IDeliveryStream
public java.lang.String getDeliveryStreamName()
getDeliveryStreamName
in interface IDeliveryStream
public IPrincipal getGrantPrincipal()
getGrantPrincipal
in interface IGrantable