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

export interface StreamConsumerArgs extends core.ResourceArgs {
  name: string | core.StringOut;

  streamArn: string | core.StringOut;
}

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

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

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

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

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

  constructor(name: string, args?: StreamConsumerArgs) {
    super(name, "aws_kinesis_stream_consumer", args);
  }

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