import * as core from "@terrascript/core"; export interface RotationRulesArgs extends core.SchemaArgs { automaticallyAfterDays: number | core.NumberOut; } export class RotationRules extends core.Schema { @core.attr(Number, { computed: true }) public automaticallyAfterDays!: number | core.NumberOut; } export interface DsSecretArgs { /** * (Optional) The Amazon Resource Name (ARN) of the secret to retrieve. */ arn?: string | core.StringOut; /** * (Optional) The name of the secret to retrieve. */ name?: string | core.StringOut; } export class DsSecret extends core.Data { /** * (Optional) The Amazon Resource Name (ARN) of the secret to retrieve. */ @core.attr(String, { computed: true }) public arn?: string | core.StringOut; /** * A description of the secret. */ @core.attr(String, { computed: true }) public description!: string | core.StringOut; /** * The Amazon Resource Name (ARN) of the secret. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The Key Management Service (KMS) Customer Master Key (CMK) associated with the secret. */ @core.attr(String, { computed: true }) public kmsKeyId!: string | core.StringOut; /** * (Optional) The name of the secret to retrieve. */ @core.attr(String, { computed: true }) public name?: string | core.StringOut; /** * The resource-based policy document that's attached to the secret. */ @core.attr(String, { computed: true }) public policy!: string | core.StringOut; /** * Whether rotation is enabled or not. */ @core.attr(Boolean, { computed: true }) public rotationEnabled!: boolean | core.BooleanOut; /** * Rotation Lambda function Amazon Resource Name (ARN) if rotation is enabled. */ @core.attr(String, { computed: true }) public rotationLambdaArn!: string | core.StringOut; /** * Rotation rules if rotation is enabled. */ @core.attr(RotationRules, { computed: true, kind: "array" }) public rotationRules!: | core.Array | core.ArrayOut; /** * Tags of the secret. */ @core.attr(String, { computed: true, kind: "map" }) public tags!: core.Map | core.MapOut; constructor(name: string, args?: DsSecretArgs) { super(name, "aws_secretsmanager_secret", args); } public override getNamespace(): string { return "aws_secretsmanager"; } }