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

export interface DsBucketObjectArgs {
  bucket: string | core.StringOut;

  key: string | core.StringOut;

  range?: string | core.StringOut;

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

  versionId?: string | core.StringOut;
}

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

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

  @core.attr(Boolean, { computed: true })
  public bucketKeyEnabled!: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsBucketObjectArgs) {
    super(name, "aws_s3_bucket_object", args);
  }

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