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

export interface SecretVersionArgs extends core.ResourceArgs {
  secretBinary?: string | core.StringOut;

  secretId: string | core.StringOut;

  secretString?: string | core.StringOut;

  versionStages?: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class SecretVersion extends core.Resource<SecretVersionArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

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

  @core.attr(String)
  public secretBinary?: string | core.StringOut;

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

  @core.attr(String)
  public secretString?: string | core.StringOut;

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

  @core.attr(String, { computed: true, kind: "array" })
  public versionStages?: core.Array<string> | core.ArrayOut<core.StringOut>;

  constructor(name: string, args?: SecretVersionArgs) {
    super(name, "aws_secretsmanager_secret_version", args);
  }

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