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

export interface FileSystemPolicyArgs extends core.ResourceArgs {
  bypassPolicyLockoutSafetyCheck?: boolean | core.BooleanOut;

  fileSystemId: string | core.StringOut;

  policy: string | core.StringOut;
}

export class FileSystemPolicy extends core.Resource<FileSystemPolicyArgs> {
  @core.attr(Boolean)
  public bypassPolicyLockoutSafetyCheck?: boolean | core.BooleanOut;

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

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

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

  constructor(name: string, args?: FileSystemPolicyArgs) {
    super(name, "aws_efs_file_system_policy", args);
  }

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