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

export interface DsBucketArgs {
  bucket: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsBucketArgs) {
    super(name, "aws_s3_bucket", args);
  }

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