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

export interface SecretPolicyArgs extends core.ResourceArgs {
  blockPublicPolicy?: boolean | core.BooleanOut;

  policy: string | core.StringOut;

  secretArn: string | core.StringOut;
}

export class SecretPolicy extends core.Resource<SecretPolicyArgs> {
  @core.attr(Boolean)
  public blockPublicPolicy?: boolean | core.BooleanOut;

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

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

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

  constructor(name: string, args?: SecretPolicyArgs) {
    super(name, "aws_secretsmanager_secret_policy", args);
  }

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