import * as core from "@terrascript/core"; export interface DsSecretVersionArgs { /** * (Required) Specifies the secret containing the version that you want to retrieve. You can specify ei * ther the Amazon Resource Name (ARN) or the friendly name of the secret. */ secretId: string | core.StringOut; /** * (Optional) Specifies the unique identifier of the version of the secret that you want to retrieve. O * verrides `version_stage`. */ versionId?: string | core.StringOut; /** * (Optional) Specifies the secret version that you want to retrieve by the staging label attached to t * he version. Defaults to `AWSCURRENT`. */ versionStage?: string | core.StringOut; } export class DsSecretVersion extends core.Data { /** * The ARN of the secret. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * The unique identifier of this version of the secret. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The decrypted part of the protected secret information that was originally provided as a binary. */ @core.attr(String, { computed: true }) public secretBinary!: string | core.StringOut; /** * (Required) Specifies the secret containing the version that you want to retrieve. You can specify ei * ther the Amazon Resource Name (ARN) or the friendly name of the secret. */ @core.attr(String) public secretId!: string | core.StringOut; /** * The decrypted part of the protected secret information that was originally provided as a string. */ @core.attr(String, { computed: true }) public secretString!: string | core.StringOut; /** * (Optional) Specifies the unique identifier of the version of the secret that you want to retrieve. O * verrides `version_stage`. */ @core.attr(String, { computed: true }) public versionId?: string | core.StringOut; /** * (Optional) Specifies the secret version that you want to retrieve by the staging label attached to t * he version. Defaults to `AWSCURRENT`. */ @core.attr(String) public versionStage?: string | core.StringOut; @core.attr(String, { computed: true, kind: "array" }) public versionStages!: core.Array | core.ArrayOut; constructor(name: string, args?: DsSecretVersionArgs) { super(name, "aws_secretsmanager_secret_version", args); } public override getNamespace(): string { return "aws_secretsmanager"; } }