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

export interface DsSecretVersionArgs {
  secretId: string | core.StringOut;

  versionId?: string | core.StringOut;

  versionStage?: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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