VideoStreamArgs

data class VideoStreamArgs(val dataRetentionInHours: Output<Int>? = null, val deviceName: Output<String>? = null, val kmsKeyId: Output<String>? = null, val mediaType: Output<String>? = null, val name: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<VideoStreamArgs>

Provides a Kinesis Video Stream resource. Amazon Kinesis Video Streams makes it easy to securely stream video from connected devices to AWS for analytics, machine learning (ML), playback, and other processing. 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.VideoStream;
import com.pulumi.aws.kinesis.VideoStreamArgs;
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 default_ = new VideoStream("default", VideoStreamArgs.builder()
.dataRetentionInHours(1)
.deviceName("kinesis-video-device-name")
.mediaType("video/h264")
.tags(Map.of("Name", "kinesis-video-stream"))
.build());
}
}

Import

Kinesis Streams can be imported using the arn, e.g.,

$ pulumi import aws:kinesis/videoStream:VideoStream test_stream arn:aws:kinesisvideo:us-west-2:123456789012:stream/terraform-kinesis-test/1554978910975

1https://aws.amazon.com/documentation/kinesis/ 2http://www.iana.org/assignments/media-types/media-types.xhtml 3https://tools.ietf.org/html/rfc6838#section-4.2

Constructors

Link copied to clipboard
constructor(dataRetentionInHours: Output<Int>? = null, deviceName: Output<String>? = null, kmsKeyId: Output<String>? = null, mediaType: Output<String>? = null, name: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val dataRetentionInHours: Output<Int>? = null

The number of hours that you want to retain the data in the stream. Kinesis Video Streams retains the data in a data store that is associated with the stream. The default value is 0, indicating that the stream does not persist data.

Link copied to clipboard
val deviceName: Output<String>? = null

The name of the device that is writing to the stream. In the current implementation, Kinesis Video Streams does not use this name.

Link copied to clipboard
val kmsKeyId: Output<String>? = null

The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Streams to use to encrypt stream data. If no key ID is specified, the default, Kinesis Video-managed key (aws/kinesisvideo) is used.

Link copied to clipboard
val mediaType: Output<String>? = null

The media type of the stream. Consumers of the stream can use this information when processing the stream. For more information about media types, see Media Types. If you choose to specify the MediaType, see Naming Requirements for guidelines.

Link copied to clipboard
val name: Output<String>? = null

A name to identify the stream. This is unique to the AWS account and region the Stream is created in.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A map of tags to assign to the resource. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): VideoStreamArgs