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

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

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

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

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

  constructor(name: string, args?: DsBucketPolicyArgs) {
    super(name, "aws_s3_bucket_policy", args);
  }

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