@Internal public static interface IStream.Jsii$Default extends IStream, IResource.Jsii$Default
IStream.IStream.Jsii$Default, IStream.Jsii$Proxy| Modifier and Type | Method and Description |
|---|---|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default IKey |
getEncryptionKey()
Optional KMS encryption key associated with this stream.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default software.constructs.Node |
getNode()
The tree node.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default String |
getStreamArn()
The ARN of the stream.
|
default String |
getStreamName()
The name of the stream.
|
default Grant |
grant(IGrantable grantee,
String... actions)
Grant the indicated permissions on this stream to the provided IAM principal.
|
default Grant |
grantRead(IGrantable grantee)
Grant read permissions for this stream and its contents to an IAM principal (Role/Group/User).
|
default Grant |
grantReadWrite(IGrantable grantee)
Grants read/write permissions for this stream and its contents to an IAM principal (Role/Group/User).
|
default Grant |
grantWrite(IGrantable grantee)
Grant write permissions for this stream and its contents to an IAM principal (Role/Group/User).
|
default Metric |
metric(String metricName,
MetricOptions props)
Return stream metric based from its metric name.
|
default Metric |
metricGetRecords(MetricOptions props)
The number of records retrieved from the shard, measured over the specified time period.
|
default Metric |
metricGetRecordsBytes(MetricOptions props)
The number of bytes retrieved from the Kinesis stream, measured over the specified time period.
|
default 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.
|
default Metric |
metricGetRecordsLatency(MetricOptions props)
The time taken per GetRecords operation, measured over the specified time period.
|
default Metric |
metricGetRecordsSuccess(MetricOptions props)
The number of successful GetRecords operations per stream, measured over the specified time period.
|
default Metric |
metricIncomingBytes(MetricOptions props)
The number of bytes successfully put to the Kinesis stream over the specified time period.
|
default Metric |
metricIncomingRecords(MetricOptions props)
The number of records successfully put to the Kinesis stream over the specified time period.
|
default Metric |
metricPutRecordBytes(MetricOptions props)
The number of bytes put to the Kinesis stream using the PutRecord operation over the specified time period.
|
default Metric |
metricPutRecordLatency(MetricOptions props)
The time taken per PutRecord operation, measured over the specified time period.
|
default Metric |
metricPutRecordsBytes(MetricOptions props)
The number of bytes put to the Kinesis stream using the PutRecords operation over the specified time period.
|
default 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.
|
default Metric |
metricPutRecordsLatency(MetricOptions props)
The time taken per PutRecords operation, measured over the specified time period.
|
default Metric |
metricPutRecordsSuccess(MetricOptions props)
The number of PutRecords operations where at least one record succeeded, per Kinesis stream, measured over the specified time period.
|
default Metric |
metricPutRecordsSuccessfulRecords(MetricOptions props)
The number of successful records in a PutRecords operation per Kinesis data stream, measured over the specified time period.
|
default 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.
|
default Metric |
metricPutRecordsTotalRecords(MetricOptions props)
The total number of records sent in a PutRecords operation per Kinesis data stream, measured over the specified time period.
|
default Metric |
metricPutRecordSuccess(MetricOptions props)
The number of successful PutRecord operations per Kinesis stream, measured over the specified time period.
|
default Metric |
metricReadProvisionedThroughputExceeded(MetricOptions props)
The number of GetRecords calls throttled for the stream over the specified time period.
|
default Metric |
metricWriteProvisionedThroughputExceeded(MetricOptions props)
The number of records rejected due to throttling for the stream over the specified time period.
|
metric, metricGetRecords, metricGetRecordsBytes, metricGetRecordsIteratorAgeMilliseconds, metricGetRecordsLatency, metricGetRecordsSuccess, metricIncomingBytes, metricIncomingRecords, metricPutRecordBytes, metricPutRecordLatency, metricPutRecordsBytes, metricPutRecordsFailedRecords, metricPutRecordsLatency, metricPutRecordsSuccess, metricPutRecordsSuccessfulRecords, metricPutRecordsThrottledRecords, metricPutRecordsTotalRecords, metricPutRecordSuccess, metricReadProvisionedThroughputExceeded, metricWriteProvisionedThroughputExceeded@Stability(value=Stable) @NotNull default software.constructs.Node getNode()
getNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$DefaultgetNode in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv in interface IResourcegetEnv in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$Default@Stability(value=Stable) @NotNull default String getStreamArn()
getStreamArn in interface IStream@Stability(value=Stable) @NotNull default String getStreamName()
getStreamName in interface IStream@Stability(value=Stable) @Nullable default IKey getEncryptionKey()
getEncryptionKey in interface IStream@Stability(value=Stable)
default void applyRemovalPolicy(@NotNull
RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN).
applyRemovalPolicy in interface IResourceapplyRemovalPolicy in interface IResource.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull default Grant grant(@NotNull IGrantable grantee, @NotNull String... actions)
@Stability(value=Stable) @NotNull default 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.
@Stability(value=Stable) @NotNull default Grant grantReadWrite(@NotNull IGrantable grantee)
If an encryption key is used, permission to use the key for encrypt/decrypt will also be granted.
grantReadWrite in interface IStreamgrantee - This parameter is required.@Stability(value=Stable) @NotNull default 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.
grantWrite in interface IStreamgrantee - This parameter is required.@Stability(value=Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props)
@Stability(value=Stable) @NotNull default 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.
metricGetRecords in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default 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.
metricGetRecordsBytes in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default 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.
metricGetRecordsIteratorAgeMilliseconds in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default Metric metricGetRecordsLatency(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
metricGetRecordsLatency in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default Metric metricGetRecordsSuccess(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
metricGetRecordsSuccess in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default 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.
metricIncomingBytes in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default 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.
metricIncomingRecords in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default Metric metricPutRecordBytes(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
metricPutRecordBytes in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default Metric metricPutRecordLatency(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
metricPutRecordLatency in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default Metric metricPutRecordsBytes(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
metricPutRecordsBytes in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default 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.
metricPutRecordsFailedRecords in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default Metric metricPutRecordsLatency(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
metricPutRecordsLatency in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default Metric metricPutRecordsSuccess(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
metricPutRecordsSuccess in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default Metric metricPutRecordsSuccessfulRecords(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
metricPutRecordsSuccessfulRecords in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default Metric metricPutRecordsThrottledRecords(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
metricPutRecordsThrottledRecords in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default Metric metricPutRecordsTotalRecords(@Nullable MetricOptions props)
The metric defaults to average over 5 minutes, it can be changed by passing statistic and period properties.
metricPutRecordsTotalRecords in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default 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.
metricPutRecordSuccess in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default 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
metricReadProvisionedThroughputExceeded in interface IStreamprops - properties of the metric.@Stability(value=Stable) @NotNull default 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.
metricWriteProvisionedThroughputExceeded in interface IStreamprops - properties of the metric.Copyright © 2022. All rights reserved.