@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.189Z") @Stability(value=Stable) public interface IStream extends software.amazon.jsii.JsiiSerializable, IResource
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IStream.Jsii$Default
Internal default implementation for
IStream. |
static class |
IStream.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
default IKey |
getEncryptionKey()
Optional KMS encryption key associated with this stream.
|
String |
getStreamArn()
The ARN of the stream.
|
String |
getStreamName()
The name of the stream.
|
Grant |
grant(IGrantable grantee,
String... actions)
Grant the indicated permissions on this stream to the provided IAM principal.
|
Grant |
grantRead(IGrantable grantee)
Grant read permissions for this stream and its contents to an IAM principal (Role/Group/User).
|
Grant |
grantReadWrite(IGrantable grantee)
Grants read/write permissions for this stream and its contents to an IAM principal (Role/Group/User).
|
Grant |
grantWrite(IGrantable grantee)
Grant write permissions for this stream and its contents to an IAM principal (Role/Group/User).
|
Metric |
metric(String metricName)
Return stream metric based from its metric name.
|
Metric |
metric(String metricName,
MetricOptions props)
Return stream metric based from its metric name.
|
Metric |
metricGetRecords()
The number of records retrieved from the shard, measured over the specified time period.
|
Metric |
metricGetRecords(MetricOptions props)
The number of records retrieved from the shard, measured over the specified time period.
|
Metric |
metricGetRecordsBytes()
The number of bytes retrieved from the Kinesis stream, measured over the specified time period.
|
Metric |
metricGetRecordsBytes(MetricOptions props)
The number of bytes retrieved from the Kinesis stream, measured over the specified time period.
|
Metric |
metricGetRecordsIteratorAgeMilliseconds()
The age of the last record in all GetRecords calls made against a Kinesis stream, measured over the specified time period.
|
Metric |
metricGetRecordsIteratorAgeMilliseconds(MetricOptions props)
The age of the last record in all GetRecords calls made against a Kinesis stream, measured over the specified time period.
|
Metric |
metricGetRecordsLatency()
The time taken per GetRecords operation, measured over the specified time period.
|
Metric |
metricGetRecordsLatency(MetricOptions props)
The time taken per GetRecords operation, measured over the specified time period.
|
Metric |
metricGetRecordsSuccess()
The number of successful GetRecords operations per stream, measured over the specified time period.
|
Metric |
metricGetRecordsSuccess(MetricOptions props)
The number of successful GetRecords operations per stream, measured over the specified time period.
|
Metric |
metricIncomingBytes()
The number of bytes successfully put to the Kinesis stream over the specified time period.
|
Metric |
metricIncomingBytes(MetricOptions props)
The number of bytes successfully put to the Kinesis stream over the specified time period.
|
Metric |
metricIncomingRecords()
The number of records successfully put to the Kinesis stream over the specified time period.
|
Metric |
metricIncomingRecords(MetricOptions props)
The number of records successfully put to the Kinesis stream over the specified time period.
|
Metric |
metricPutRecordBytes()
The number of bytes put to the Kinesis stream using the PutRecord operation over the specified time period.
|
Metric |
metricPutRecordBytes(MetricOptions props)
The number of bytes put to the Kinesis stream using the PutRecord operation over the specified time period.
|
Metric |
metricPutRecordLatency()
The time taken per PutRecord operation, measured over the specified time period.
|
Metric |
metricPutRecordLatency(MetricOptions props)
The time taken per PutRecord operation, measured over the specified time period.
|
Metric |
metricPutRecordsBytes()
The number of bytes put to the Kinesis stream using the PutRecords operation over the specified time period.
|
Metric |
metricPutRecordsBytes(MetricOptions props)
The number of bytes put to the Kinesis stream using the PutRecords operation over the specified time period.
|
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.
|
Metric |
metricPutRecordsFailedRecords(MetricOptions props)
The number of records rejected due to internal failures in a PutRecords operation per Kinesis data stream, measured over the specified time period.
|
Metric |
metricPutRecordsLatency()
The time taken per PutRecords operation, measured over the specified time period.
|
Metric |
metricPutRecordsLatency(MetricOptions props)
The time taken per PutRecords operation, measured over the specified time period.
|
Metric |
metricPutRecordsSuccess()
The number of PutRecords operations where at least one record succeeded, per Kinesis stream, measured over the specified time period.
|
Metric |
metricPutRecordsSuccess(MetricOptions props)
The number of PutRecords operations where at least one record succeeded, per Kinesis stream, measured over the specified time period.
|
Metric |
metricPutRecordsSuccessfulRecords()
The number of successful records in a PutRecords operation per Kinesis data stream, measured over the specified time period.
|
Metric |
metricPutRecordsSuccessfulRecords(MetricOptions props)
The number of successful records in a PutRecords operation per Kinesis data stream, measured over the specified time period.
|
Metric |
metricPutRecordsThrottledRecords()
The number of records rejected due to throttling in a PutRecords operation per Kinesis data stream, measured over the specified time period.
|
Metric |
metricPutRecordsThrottledRecords(MetricOptions props)
The number of records rejected due to throttling in a PutRecords operation per Kinesis data stream, measured over the specified time period.
|
Metric |
metricPutRecordsTotalRecords()
The total number of records sent in a PutRecords operation per Kinesis data stream, measured over the specified time period.
|
Metric |
metricPutRecordsTotalRecords(MetricOptions props)
The total number of records sent in a PutRecords operation per Kinesis data stream, measured over the specified time period.
|
Metric |
metricPutRecordSuccess()
The number of successful PutRecord operations per Kinesis stream, measured over the specified time period.
|
Metric |
metricPutRecordSuccess(MetricOptions props)
The number of successful PutRecord operations per Kinesis stream, measured over the specified time period.
|
Metric |
metricReadProvisionedThroughputExceeded()
The number of GetRecords calls throttled for the stream over the specified time period.
|
Metric |
metricReadProvisionedThroughputExceeded(MetricOptions props)
The number of GetRecords calls throttled for the stream over the specified time period.
|
Metric |
metricWriteProvisionedThroughputExceeded()
The number of records rejected due to throttling for the stream over the specified time period.
|
Metric |
metricWriteProvisionedThroughputExceeded(MetricOptions props)
The number of records rejected due to throttling for the stream over the specified time period.
|
applyRemovalPolicy, getEnv, getStack@Stability(value=Stable) @NotNull String getStreamArn()
@Stability(value=Stable) @NotNull String getStreamName()
@Stability(value=Stable) @Nullable default IKey getEncryptionKey()
@Stability(value=Stable) @NotNull Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
grantee - This parameter is required.actions - This parameter is required.@Stability(value=Stable) @NotNull Grant grantRead(@NotNull IGrantable grantee)
If an encryption key is used, permission to ues the key to decrypt the contents of the stream will also be granted.
grantee - This parameter is required.@Stability(value=Stable) @NotNull Grant grantReadWrite(@NotNull IGrantable grantee)
If an encryption key is used, permission to use the key for encrypt/decrypt will also be granted.
grantee - This parameter is required.@Stability(value=Stable) @NotNull Grant grantWrite(@NotNull IGrantable grantee)
If an encryption key is used, permission to ues the key to encrypt the contents of the stream will also be granted.
grantee - This parameter is required.@Stability(value=Stable) @NotNull Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
metricName - name of the stream metric. This parameter is required.props - properties of the metric.@Stability(value=Stable) @NotNull Metric metric(@NotNull String metricName)
metricName - name of the stream metric. This parameter is required.@Stability(value=Stable) @NotNull Metric metricGetRecords(@Nullable MetricOptions props)
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 and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricGetRecords()
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 and period properties.
@Stability(value=Stable) @NotNull Metric metricGetRecordsBytes(@Nullable MetricOptions props)
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 and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricGetRecordsBytes()
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 and period properties.
@Stability(value=Stable) @NotNull Metric metricGetRecordsIteratorAgeMilliseconds(@Nullable MetricOptions props)
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 and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricGetRecordsIteratorAgeMilliseconds()
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 and period properties.
@Stability(value=Stable) @NotNull Metric metricGetRecordsLatency(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricGetRecordsLatency()
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
@Stability(value=Stable) @NotNull Metric metricGetRecordsSuccess(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricGetRecordsSuccess()
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
@Stability(value=Stable) @NotNull Metric metricIncomingBytes(@Nullable MetricOptions props)
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 and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricIncomingBytes()
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 and period properties.
@Stability(value=Stable) @NotNull Metric metricIncomingRecords(@Nullable MetricOptions props)
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 and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricIncomingRecords()
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 and period properties.
@Stability(value=Stable) @NotNull Metric metricPutRecordBytes(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricPutRecordBytes()
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
@Stability(value=Stable) @NotNull Metric metricPutRecordLatency(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricPutRecordLatency()
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
@Stability(value=Stable) @NotNull Metric metricPutRecordsBytes(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricPutRecordsBytes()
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
@Stability(value=Stable) @NotNull Metric metricPutRecordsFailedRecords(@Nullable MetricOptions props)
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 and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricPutRecordsFailedRecords()
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 and period properties.
@Stability(value=Stable) @NotNull Metric metricPutRecordsLatency(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricPutRecordsLatency()
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
@Stability(value=Stable) @NotNull Metric metricPutRecordsSuccess(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricPutRecordsSuccess()
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
@Stability(value=Stable) @NotNull Metric metricPutRecordsSuccessfulRecords(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricPutRecordsSuccessfulRecords()
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
@Stability(value=Stable) @NotNull Metric metricPutRecordsThrottledRecords(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricPutRecordsThrottledRecords()
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
@Stability(value=Stable) @NotNull Metric metricPutRecordsTotalRecords(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricPutRecordsTotalRecords()
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
@Stability(value=Stable) @NotNull Metric metricPutRecordSuccess(@Nullable MetricOptions props)
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 and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricPutRecordSuccess()
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 and period properties.
@Stability(value=Stable) @NotNull Metric metricReadProvisionedThroughputExceeded(@Nullable MetricOptions props)
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 and period properties
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricReadProvisionedThroughputExceeded()
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 and period properties
@Stability(value=Stable) @NotNull Metric metricWriteProvisionedThroughputExceeded(@Nullable MetricOptions props)
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 and period properties.
props - properties of the metric.@Stability(value=Stable) @NotNull Metric metricWriteProvisionedThroughputExceeded()
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 and period properties.
Copyright © 2022. All rights reserved.