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

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

  name: string | core.StringOut;

  policy: string | core.StringOut;
}

export class ObjectLambdaAccessPointPolicy extends core.Resource<ObjectLambdaAccessPointPolicyArgs> {
  @core.attr(String, { computed: true })
  public accountId?: 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 name!: string | core.StringOut;

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

  constructor(name: string, args?: ObjectLambdaAccessPointPolicyArgs) {
    super(name, "aws_s3control_object_lambda_access_point_policy", args);
  }

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