import * as core from "@terrascript/core";

export interface StreamModeDetailsArgs extends core.SchemaArgs {
  streamMode: string | core.StringOut;
}

export class StreamModeDetails extends core.Schema<StreamModeDetailsArgs> {
  @core.attr(String, { computed: true })
  public streamMode!: string | core.StringOut;
}

export interface DsStreamArgs {
  name: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class DsStream extends core.Data<DsStreamArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(String, { computed: true, kind: "array" })
  public closedShards!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(Number, { computed: true })
  public creationTimestamp!: number | core.NumberOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public name!: string | core.StringOut;

  @core.attr(String, { computed: true, kind: "array" })
  public openShards!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(Number, { computed: true })
  public retentionPeriod!: number | core.NumberOut;

  @core.attr(String, { computed: true, kind: "array" })
  public shardLevelMetrics!: core.Array<string> | core.ArrayOut<core.StringOut>;

  @core.attr(String, { computed: true })
  public status!: string | core.StringOut;

  @core.attr(StreamModeDetails, { computed: true, kind: "array" })
  public streamModeDetails!:
    | core.Array<StreamModeDetails>
    | core.ArrayOut<StreamModeDetails>;

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: DsStreamArgs) {
    super(name, "aws_kinesis_stream", args);
  }

  public override getNamespace(): string {
    return "aws_kinesis";
  }
}
