Class DeliveryStream
- All Implemented Interfaces:
IEnvironmentAware,IResource,IConnectable,IGrantable,IDeliveryStream,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Example:
import software.amazon.awscdk.services.kinesisfirehose.*;
Bucket bucket = new Bucket(this, "MyBucket");
DeliveryStream stream = DeliveryStream.Builder.create(this, "MyStream")
.destination(new S3Bucket(bucket))
.build();
TopicRule topicRule = TopicRule.Builder.create(this, "TopicRule")
.sql(IotSql.fromStringAsVer20160323("SELECT * FROM 'device/+/data'"))
.actions(List.of(
FirehosePutRecordAction.Builder.create(stream)
.batchMode(true)
.recordSeparator(FirehoseRecordSeparator.NEWLINE)
.build()))
.build();
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.kinesisfirehose.IDeliveryStream
IDeliveryStream.Jsii$Default, IDeliveryStream.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeliveryStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDeliveryStream(software.amazon.jsii.JsiiObjectRef objRef) DeliveryStream(software.constructs.Construct scope, String id, DeliveryStreamProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IDeliveryStreamfromDeliveryStreamArn(software.constructs.Construct scope, String id, String deliveryStreamArn) Import an existing delivery stream from its ARN.static IDeliveryStreamfromDeliveryStreamAttributes(software.constructs.Construct scope, String id, DeliveryStreamAttributes attrs) Import an existing delivery stream from its attributes.static IDeliveryStreamfromDeliveryStreamName(software.constructs.Construct scope, String id, String deliveryStreamName) Import an existing delivery stream from its name.Network connections between Amazon Data Firehose and other resources, i.e.The ARN of the delivery stream.The name of the delivery stream.The principal to grant permissions to.grant(IGrantable grantee, String... actions) Grant thegranteeidentity permissions to performactions.grantPutRecords(IGrantable grantee) Grant thegranteeidentity permissions to performfirehose:PutRecordandfirehose:PutRecordBatchactions on this delivery stream.Return the given named metric for this delivery stream.metric(String metricName, MetricOptions props) Return the given named metric for this delivery stream.Metric for the number of bytes delivered to Amazon S3 for backup over the specified time period.Metric for the number of bytes delivered to Amazon S3 for backup over the specified time period.Metric for the age (from getting into Amazon Data Firehose to now) of the oldest record in Amazon Data Firehose.Metric for the age (from getting into Amazon Data Firehose to now) of the oldest record in Amazon Data Firehose.Metric for the number of records delivered to Amazon S3 for backup over the specified time period.Metric for the number of records delivered to Amazon S3 for backup over the specified time period.Metric for the number of bytes ingested successfully into the delivery stream over the specified time period after throttling.metricIncomingBytes(MetricOptions props) Metric for the number of bytes ingested successfully into the delivery stream over the specified time period after throttling.Metric for the number of records ingested successfully into the delivery stream over the specified time period after throttling.Metric for the number of records ingested successfully into the delivery stream over the specified time period after throttling.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
DeliveryStream
protected DeliveryStream(software.amazon.jsii.JsiiObjectRef objRef) -
DeliveryStream
protected DeliveryStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DeliveryStream
@Stability(Stable) public DeliveryStream(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DeliveryStreamProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromDeliveryStreamArn
@Stability(Stable) @NotNull public static IDeliveryStream fromDeliveryStreamArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String deliveryStreamArn) Import an existing delivery stream from its ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.deliveryStreamArn- This parameter is required.
-
fromDeliveryStreamAttributes
@Stability(Stable) @NotNull public static IDeliveryStream fromDeliveryStreamAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DeliveryStreamAttributes attrs) Import an existing delivery stream from its attributes.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
fromDeliveryStreamName
@Stability(Stable) @NotNull public static IDeliveryStream fromDeliveryStreamName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String deliveryStreamName) Import an existing delivery stream from its name.- Parameters:
scope- This parameter is required.id- This parameter is required.deliveryStreamName- This parameter is required.
-
grant
@Stability(Stable) @NotNull public Grant grant(@NotNull IGrantable grantee, @NotNull String... actions) Grant thegranteeidentity permissions to performactions.- Specified by:
grantin interfaceIDeliveryStream- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantPutRecords
Grant thegranteeidentity permissions to performfirehose:PutRecordandfirehose:PutRecordBatchactions on this delivery stream.- Specified by:
grantPutRecordsin interfaceIDeliveryStream- Parameters:
grantee- This parameter is required.
-
metric
@Stability(Stable) @NotNull public Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return the given named metric for this delivery stream.- Specified by:
metricin interfaceIDeliveryStream- Parameters:
metricName- This parameter is required.props-
-
metric
Return the given named metric for this delivery stream.- Specified by:
metricin interfaceIDeliveryStream- Parameters:
metricName- This parameter is required.
-
metricBackupToS3Bytes
Metric for the number of bytes delivered to Amazon S3 for backup over the specified time period.By default, this metric will be calculated as an average over a period of 5 minutes.
- Specified by:
metricBackupToS3Bytesin interfaceIDeliveryStream- Parameters:
props-
-
metricBackupToS3Bytes
Metric for the number of bytes delivered to Amazon S3 for backup over the specified time period.By default, this metric will be calculated as an average over a period of 5 minutes.
- Specified by:
metricBackupToS3Bytesin interfaceIDeliveryStream
-
metricBackupToS3DataFreshness
@Stability(Stable) @NotNull public Metric metricBackupToS3DataFreshness(@Nullable MetricOptions props) Metric for the age (from getting into Amazon Data Firehose to now) of the oldest record in Amazon Data Firehose.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.
- Specified by:
metricBackupToS3DataFreshnessin interfaceIDeliveryStream- Parameters:
props-
-
metricBackupToS3DataFreshness
Metric for the age (from getting into Amazon Data Firehose to now) of the oldest record in Amazon Data Firehose.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.
- Specified by:
metricBackupToS3DataFreshnessin interfaceIDeliveryStream
-
metricBackupToS3Records
Metric for the number of records delivered to Amazon S3 for backup over the specified time period.By default, this metric will be calculated as an average over a period of 5 minutes.
- Specified by:
metricBackupToS3Recordsin interfaceIDeliveryStream- Parameters:
props-
-
metricBackupToS3Records
Metric for the number of records delivered to Amazon S3 for backup over the specified time period.By default, this metric will be calculated as an average over a period of 5 minutes.
- Specified by:
metricBackupToS3Recordsin interfaceIDeliveryStream
-
metricIncomingBytes
Metric for the number of bytes ingested successfully into the delivery stream over the specified time period after throttling.By default, this metric will be calculated as an average over a period of 5 minutes.
- Specified by:
metricIncomingBytesin interfaceIDeliveryStream- Parameters:
props-
-
metricIncomingBytes
Metric for the number of bytes ingested successfully into the delivery stream over the specified time period after throttling.By default, this metric will be calculated as an average over a period of 5 minutes.
- Specified by:
metricIncomingBytesin interfaceIDeliveryStream
-
metricIncomingRecords
Metric for the number of records ingested successfully into the delivery stream over the specified time period after throttling.By default, this metric will be calculated as an average over a period of 5 minutes.
- Specified by:
metricIncomingRecordsin interfaceIDeliveryStream- Parameters:
props-
-
metricIncomingRecords
Metric for the number of records ingested successfully into the delivery stream over the specified time period after throttling.By default, this metric will be calculated as an average over a period of 5 minutes.
- Specified by:
metricIncomingRecordsin interfaceIDeliveryStream
-
getConnections
Network connections between Amazon Data Firehose and other resources, i.e. Redshift cluster.- Specified by:
getConnectionsin interfaceIConnectable
-
getDeliveryStreamArn
The ARN of the delivery stream.- Specified by:
getDeliveryStreamArnin interfaceIDeliveryStream
-
getDeliveryStreamName
The name of the delivery stream.- Specified by:
getDeliveryStreamNamein interfaceIDeliveryStream
-
getGrantPrincipal
The principal to grant permissions to.- Specified by:
getGrantPrincipalin interfaceIGrantable
-