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

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

  delimiter?: string | core.StringOut;

  encodingType?: string | core.StringOut;

  fetchOwner?: boolean | core.BooleanOut;

  maxKeys?: number | core.NumberOut;

  prefix?: string | core.StringOut;

  startAfter?: string | core.StringOut;
}

export class DsBucketObjects extends core.Data<DsBucketObjectsArgs> {
  @core.attr(String)
  public bucket!: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsBucketObjectsArgs) {
    super(name, "aws_s3_bucket_objects", args);
  }

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