import * as core from "@terrascript/core"; export interface StreamArgs extends core.ResourceArgs { dataRetentionInHours?: number | core.NumberOut; /** * (Optional) The name of the device that is writing to the stream. **In the current implementation, Ki * nesis Video Streams does not use this name.** */ deviceName?: string | core.StringOut; /** * (Optional) The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Stream * s to use to encrypt stream data. If no key ID is specified, the default, Kinesis Video-managed key ( * aws/kinesisvideo`) is used. */ kmsKeyId?: string | core.StringOut; /** * (Optional) The media type of the stream. Consumers of the stream can use this information when proce * ssing the stream. For more information about media types, see [Media Types][2]. If you choose to spe * cify the MediaType, see [Naming Requirements][3] for guidelines. */ mediaType?: string | core.StringOut; /** * (Required) A name to identify the stream. This is unique to the */ name: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class Stream extends core.Resource { /** * The Amazon Resource Name (ARN) specifying the Stream (same as `id`) */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * A time stamp that indicates when the stream was created. */ @core.attr(String, { computed: true }) public creationTime!: string | core.StringOut; @core.attr(Number) public dataRetentionInHours?: number | core.NumberOut; /** * (Optional) The name of the device that is writing to the stream. **In the current implementation, Ki * nesis Video Streams does not use this name.** */ @core.attr(String) public deviceName?: string | core.StringOut; /** * The unique Stream id */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The ID of the AWS Key Management Service (AWS KMS) key that you want Kinesis Video Stream * s to use to encrypt stream data. If no key ID is specified, the default, Kinesis Video-managed key ( * aws/kinesisvideo`) is used. */ @core.attr(String, { computed: true }) public kmsKeyId?: string | core.StringOut; /** * (Optional) The media type of the stream. Consumers of the stream can use this information when proce * ssing the stream. For more information about media types, see [Media Types][2]. If you choose to spe * cify the MediaType, see [Naming Requirements][3] for guidelines. */ @core.attr(String) public mediaType?: string | core.StringOut; /** * (Required) A name to identify the stream. This is unique to the */ @core.attr(String) public name!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * The version of the stream. */ @core.attr(String, { computed: true }) public version!: string | core.StringOut; constructor(name: string, args?: StreamArgs) { super(name, "aws_kinesis_video_stream", args); } public override getNamespace(): string { return "aws_kinesis_video"; } }