Stream Args
Provides a Kinesis Stream resource. Amazon Kinesis is a managed service that scales elastically for real-time processing of streaming big data. For more details, see the Amazon Kinesis Documentation.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.kinesis.Stream;
import com.pulumi.aws.kinesis.StreamArgs;
import com.pulumi.aws.kinesis.inputs.StreamStreamModeDetailsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testStream = new Stream("testStream", StreamArgs.builder()
.retentionPeriod(48)
.shardCount(1)
.shardLevelMetrics(
"IncomingBytes",
"OutgoingBytes")
.streamModeDetails(StreamStreamModeDetailsArgs.builder()
.streamMode("PROVISIONED")
.build())
.tags(Map.of("Environment", "test"))
.build());
}
}
Import
Kinesis Streams can be imported using the name
, e.g.,
$ pulumi import aws:kinesis/stream:Stream test_stream kinesis-test
1https://aws.amazon.com/documentation/kinesis/ 2https://docs.aws.amazon.com/kinesis/latest/dev/amazon-kinesis-streams.html 3https://docs.aws.amazon.com/streams/latest/dev/monitoring-with-cloudwatch.html
Constructors
Properties
The encryption type to use. The only acceptable values are NONE
or KMS
. The default value is NONE
.
A boolean that indicates all registered consumers should be deregistered from the stream so that the stream can be destroyed without error. The default value is false
.
Length of time data records are accessible after they are added to the stream. The maximum value of a stream's retention period is 8760 hours. Minimum value is 24. Default is 24.
The number of shards that the stream will use. If the stream_mode
is PROVISIONED
, this field is required. Amazon has guidelines for specifying the Stream size that should be referenced when creating a Kinesis stream. See Amazon Kinesis Streams for more.
A list of shard-level CloudWatch metrics which can be enabled for the stream. See Monitoring with CloudWatch for more. Note that the value ALL should not be used; instead you should provide an explicit list of metrics you wish to enable.
Indicates the capacity mode of the data stream. Detailed below.