Interface IStream
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IDependable
,IResource
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IStream.Jsii$Default
- All Known Implementing Classes:
IStream.Jsii$Proxy
,Stream
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Internal default implementation forIStream
.static final class
A proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptiondefault IKey
Optional KMS encryption key associated with this stream.The ARN of the stream.The name of the stream.grant
(IGrantable grantee, @NotNull String... actions) Grant the indicated permissions on this stream to the provided IAM principal.grantRead
(IGrantable grantee) Grant read permissions for this stream and its contents to an IAM principal (Role/Group/User).grantReadWrite
(IGrantable grantee) Grants read/write permissions for this stream and its contents to an IAM principal (Role/Group/User).grantWrite
(IGrantable grantee) Grant write permissions for this stream and its contents to an IAM principal (Role/Group/User).Return stream metric based from its metric name.metric
(String metricName, MetricOptions props) Return stream metric based from its metric name.The number of records retrieved from the shard, measured over the specified time period.metricGetRecords
(MetricOptions props) The number of records retrieved from the shard, measured over the specified time period.The number of bytes retrieved from the Kinesis stream, measured over the specified time period.The number of bytes retrieved from the Kinesis stream, measured over the specified time period.The age of the last record in all GetRecords calls made against a Kinesis stream, measured over the specified time period.The age of the last record in all GetRecords calls made against a Kinesis stream, measured over the specified time period.The time taken per GetRecords operation, measured over the specified time period.The time taken per GetRecords operation, measured over the specified time period.The number of successful GetRecords operations per stream, measured over the specified time period.The number of successful GetRecords operations per stream, measured over the specified time period.The number of bytes successfully put to the Kinesis stream over the specified time period.metricIncomingBytes
(MetricOptions props) The number of bytes successfully put to the Kinesis stream over the specified time period.The number of records successfully put to the Kinesis stream over the specified time period.The number of records successfully put to the Kinesis stream over the specified time period.The number of bytes put to the Kinesis stream using the PutRecord operation over the specified time period.The number of bytes put to the Kinesis stream using the PutRecord operation over the specified time period.The time taken per PutRecord operation, measured over the specified time period.The time taken per PutRecord operation, measured over the specified time period.The number of bytes put to the Kinesis stream using the PutRecords operation over the specified time period.The number of bytes put to the Kinesis stream using the PutRecords operation over the specified time period.The number of records rejected due to internal failures in a PutRecords operation per Kinesis data stream, measured over the specified time period.The number of records rejected due to internal failures in a PutRecords operation per Kinesis data stream, measured over the specified time period.The time taken per PutRecords operation, measured over the specified time period.The time taken per PutRecords operation, measured over the specified time period.The number of PutRecords operations where at least one record succeeded, per Kinesis stream, measured over the specified time period.The number of PutRecords operations where at least one record succeeded, per Kinesis stream, measured over the specified time period.The number of successful records in a PutRecords operation per Kinesis data stream, measured over the specified time period.The number of successful records in a PutRecords operation per Kinesis data stream, measured over the specified time period.The number of records rejected due to throttling in a PutRecords operation per Kinesis data stream, measured over the specified time period.The number of records rejected due to throttling in a PutRecords operation per Kinesis data stream, measured over the specified time period.The total number of records sent in a PutRecords operation per Kinesis data stream, measured over the specified time period.The total number of records sent in a PutRecords operation per Kinesis data stream, measured over the specified time period.The number of successful PutRecord operations per Kinesis stream, measured over the specified time period.The number of successful PutRecord operations per Kinesis stream, measured over the specified time period.The number of GetRecords calls throttled for the stream over the specified time period.The number of GetRecords calls throttled for the stream over the specified time period.The number of records rejected due to throttling for the stream over the specified time period.The number of records rejected due to throttling for the stream over the specified time period.Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStreamArn
The ARN of the stream. -
getStreamName
The name of the stream. -
getEncryptionKey
Optional KMS encryption key associated with this stream. -
grant
@Stability(Stable) @NotNull Grant grant(@NotNull IGrantable grantee, @NotNull @NotNull String... actions) Grant the indicated permissions on this stream to the provided IAM principal.- Parameters:
grantee
- This parameter is required.actions
- This parameter is required.
-
grantRead
Grant read permissions for this stream and its contents to an IAM principal (Role/Group/User).If an encryption key is used, permission to ues the key to decrypt the contents of the stream will also be granted.
- Parameters:
grantee
- This parameter is required.
-
grantReadWrite
Grants read/write permissions for this stream and its contents to an IAM principal (Role/Group/User).If an encryption key is used, permission to use the key for encrypt/decrypt will also be granted.
- Parameters:
grantee
- This parameter is required.
-
grantWrite
Grant write permissions for this stream and its contents to an IAM principal (Role/Group/User).If an encryption key is used, permission to ues the key to encrypt the contents of the stream will also be granted.
- Parameters:
grantee
- This parameter is required.
-
metric
@Stability(Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props) Return stream metric based from its metric name.- Parameters:
metricName
- name of the stream metric. This parameter is required.props
- properties of the metric.
-
metric
Return stream metric based from its metric name.- Parameters:
metricName
- name of the stream metric. This parameter is required.
-
metricGetRecords
The number of records retrieved from the shard, measured over the specified time period.Minimum, Maximum, and Average statistics represent the records in a single GetRecords operation for the stream in the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricGetRecords
The number of records retrieved from the shard, measured over the specified time period.Minimum, Maximum, and Average statistics represent the records in a single GetRecords operation for the stream in the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricGetRecordsBytes
The number of bytes retrieved from the Kinesis stream, measured over the specified time period.Minimum, Maximum, and Average statistics represent the bytes in a single GetRecords operation for the stream in the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricGetRecordsBytes
The number of bytes retrieved from the Kinesis stream, measured over the specified time period.Minimum, Maximum, and Average statistics represent the bytes in a single GetRecords operation for the stream in the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricGetRecordsIteratorAgeMilliseconds
@Stability(Stable) @NotNull Metric metricGetRecordsIteratorAgeMilliseconds(@Nullable MetricOptions props) The age of the last record in all GetRecords calls made against a Kinesis stream, measured over the specified time period.Age is the difference between the current time and when the last record of the GetRecords call was written to the stream. The Minimum and Maximum statistics can be used to track the progress of Kinesis consumer applications. A value of zero indicates that the records being read are completely caught up with the stream.
The metric defaults to maximum over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricGetRecordsIteratorAgeMilliseconds
The age of the last record in all GetRecords calls made against a Kinesis stream, measured over the specified time period.Age is the difference between the current time and when the last record of the GetRecords call was written to the stream. The Minimum and Maximum statistics can be used to track the progress of Kinesis consumer applications. A value of zero indicates that the records being read are completely caught up with the stream.
The metric defaults to maximum over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricGetRecordsLatency
The time taken per GetRecords operation, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricGetRecordsLatency
The time taken per GetRecords operation, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricGetRecordsSuccess
The number of successful GetRecords operations per stream, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricGetRecordsSuccess
The number of successful GetRecords operations per stream, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricIncomingBytes
The number of bytes successfully put to the Kinesis stream over the specified time period.This metric includes bytes from PutRecord and PutRecords operations. Minimum, Maximum, and Average statistics represent the bytes in a single put operation for the stream in the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricIncomingBytes
The number of bytes successfully put to the Kinesis stream over the specified time period.This metric includes bytes from PutRecord and PutRecords operations. Minimum, Maximum, and Average statistics represent the bytes in a single put operation for the stream in the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricIncomingRecords
The number of records successfully put to the Kinesis stream over the specified time period.This metric includes record counts from PutRecord and PutRecords operations. Minimum, Maximum, and Average statistics represent the records in a single put operation for the stream in the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricIncomingRecords
The number of records successfully put to the Kinesis stream over the specified time period.This metric includes record counts from PutRecord and PutRecords operations. Minimum, Maximum, and Average statistics represent the records in a single put operation for the stream in the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricPutRecordBytes
The number of bytes put to the Kinesis stream using the PutRecord operation over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricPutRecordBytes
The number of bytes put to the Kinesis stream using the PutRecord operation over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricPutRecordLatency
The time taken per PutRecord operation, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricPutRecordLatency
The time taken per PutRecord operation, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricPutRecordsBytes
The number of bytes put to the Kinesis stream using the PutRecords operation over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricPutRecordsBytes
The number of bytes put to the Kinesis stream using the PutRecords operation over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricPutRecordsFailedRecords
The number of records rejected due to internal failures in a PutRecords operation per Kinesis data stream, measured over the specified time period.Occasional internal failures are to be expected and should be retried.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricPutRecordsFailedRecords
The number of records rejected due to internal failures in a PutRecords operation per Kinesis data stream, measured over the specified time period.Occasional internal failures are to be expected and should be retried.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricPutRecordsLatency
The time taken per PutRecords operation, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricPutRecordsLatency
The time taken per PutRecords operation, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricPutRecordsSuccess
The number of PutRecords operations where at least one record succeeded, per Kinesis stream, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricPutRecordsSuccess
The number of PutRecords operations where at least one record succeeded, per Kinesis stream, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricPutRecordsSuccessfulRecords
The number of successful records in a PutRecords operation per Kinesis data stream, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricPutRecordsSuccessfulRecords
The number of successful records in a PutRecords operation per Kinesis data stream, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricPutRecordsThrottledRecords
The number of records rejected due to throttling in a PutRecords operation per Kinesis data stream, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricPutRecordsThrottledRecords
The number of records rejected due to throttling in a PutRecords operation per Kinesis data stream, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricPutRecordsTotalRecords
The total number of records sent in a PutRecords operation per Kinesis data stream, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricPutRecordsTotalRecords
The total number of records sent in a PutRecords operation per Kinesis data stream, measured over the specified time period.The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricPutRecordSuccess
The number of successful PutRecord operations per Kinesis stream, measured over the specified time period.Average reflects the percentage of successful writes to a stream.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricPutRecordSuccess
The number of successful PutRecord operations per Kinesis stream, measured over the specified time period.Average reflects the percentage of successful writes to a stream.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties. -
metricReadProvisionedThroughputExceeded
@Stability(Stable) @NotNull Metric metricReadProvisionedThroughputExceeded(@Nullable MetricOptions props) The number of GetRecords calls throttled for the stream over the specified time period.The most commonly used statistic for this metric is Average.
When the Minimum statistic has a value of 1, all records were throttled for the stream during the specified time period.
When the Maximum statistic has a value of 0 (zero), no records were throttled for the stream during the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties- Parameters:
props
- properties of the metric.
-
metricReadProvisionedThroughputExceeded
The number of GetRecords calls throttled for the stream over the specified time period.The most commonly used statistic for this metric is Average.
When the Minimum statistic has a value of 1, all records were throttled for the stream during the specified time period.
When the Maximum statistic has a value of 0 (zero), no records were throttled for the stream during the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties -
metricWriteProvisionedThroughputExceeded
@Stability(Stable) @NotNull Metric metricWriteProvisionedThroughputExceeded(@Nullable MetricOptions props) The number of records rejected due to throttling for the stream over the specified time period.This metric includes throttling from PutRecord and PutRecords operations.
When the Minimum statistic has a non-zero value, records were being throttled for the stream during the specified time period.
When the Maximum statistic has a value of 0 (zero), no records were being throttled for the stream during the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.- Parameters:
props
- properties of the metric.
-
metricWriteProvisionedThroughputExceeded
The number of records rejected due to throttling for the stream over the specified time period.This metric includes throttling from PutRecord and PutRecords operations.
When the Minimum statistic has a non-zero value, records were being throttled for the stream during the specified time period.
When the Maximum statistic has a value of 0 (zero), no records were being throttled for the stream during the specified time period.
The metric defaults to average over 5 minutes, it can be changed by passing
statistic
andperiod
properties.
-