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

export interface DsAccountPublicAccessBlockArgs {
  accountId?: string | core.StringOut;
}

export class DsAccountPublicAccessBlock extends core.Data<DsAccountPublicAccessBlockArgs> {
  @core.attr(String)
  public accountId?: string | core.StringOut;

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

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

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

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

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

  constructor(name: string, args?: DsAccountPublicAccessBlockArgs) {
    super(name, "aws_s3_account_public_access_block", args);
  }

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