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

export interface AccountPublicAccessBlockArgs extends core.ResourceArgs {
  accountId?: string | core.StringOut;

  blockPublicAcls?: boolean | core.BooleanOut;

  blockPublicPolicy?: boolean | core.BooleanOut;

  ignorePublicAcls?: boolean | core.BooleanOut;

  restrictPublicBuckets?: boolean | core.BooleanOut;
}

export class AccountPublicAccessBlock extends core.Resource<AccountPublicAccessBlockArgs> {
  @core.attr(String, { computed: true })
  public accountId?: string | core.StringOut;

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

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

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

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

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

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

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