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

export interface AccessPointPolicyArgs extends core.ResourceArgs {
  accessPointArn: string | core.StringOut;

  policy: string | core.StringOut;
}

export class AccessPointPolicy extends core.Resource<AccessPointPolicyArgs> {
  @core.attr(String)
  public accessPointArn!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: AccessPointPolicyArgs) {
    super(name, "aws_s3control_access_point_policy", args);
  }

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