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

export interface QueueArgs extends core.ResourceArgs {
  contentBasedDeduplication?: boolean | core.BooleanOut;

  deduplicationScope?: string | core.StringOut;

  delaySeconds?: number | core.NumberOut;

  fifoQueue?: boolean | core.BooleanOut;

  fifoThroughputLimit?: string | core.StringOut;

  kmsDataKeyReusePeriodSeconds?: number | core.NumberOut;

  kmsMasterKeyId?: string | core.StringOut;

  maxMessageSize?: number | core.NumberOut;

  messageRetentionSeconds?: number | core.NumberOut;

  name?: string | core.StringOut;

  namePrefix?: string | core.StringOut;

  policy?: string | core.StringOut;

  receiveWaitTimeSeconds?: number | core.NumberOut;

  redriveAllowPolicy?: string | core.StringOut;

  redrivePolicy?: string | core.StringOut;

  sqsManagedSseEnabled?: boolean | core.BooleanOut;

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

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

  visibilityTimeoutSeconds?: number | core.NumberOut;
}

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

  @core.attr(Boolean)
  public contentBasedDeduplication?: boolean | core.BooleanOut;

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

  @core.attr(Number)
  public delaySeconds?: number | core.NumberOut;

  @core.attr(Boolean)
  public fifoQueue?: boolean | core.BooleanOut;

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

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

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

  @core.attr(String)
  public kmsMasterKeyId?: string | core.StringOut;

  @core.attr(Number)
  public maxMessageSize?: number | core.NumberOut;

  @core.attr(Number)
  public messageRetentionSeconds?: number | core.NumberOut;

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

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

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

  @core.attr(Number)
  public receiveWaitTimeSeconds?: number | core.NumberOut;

  @core.attr(String)
  public redriveAllowPolicy?: string | core.StringOut;

  @core.attr(String)
  public redrivePolicy?: string | core.StringOut;

  @core.attr(Boolean)
  public sqsManagedSseEnabled?: boolean | core.BooleanOut;

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

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

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

  @core.attr(Number)
  public visibilityTimeoutSeconds?: number | core.NumberOut;

  constructor(name: string, args?: QueueArgs) {
    super(name, "aws_sqs_queue", args);
  }

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