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 DsSecretRotationArgs { /** * (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; } export class DsSecretRotation extends core.Data { @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * The ARN of the secret. */ @core.attr(Boolean, { computed: true }) public rotationEnabled!: boolean | core.BooleanOut; /** * The decrypted part of the protected secret information that was originally provided as a string. */ @core.attr(String, { computed: true }) public rotationLambdaArn!: string | core.StringOut; /** * The decrypted part of the protected secret information that was originally provided as a binary. Bas * e64 encoded. */ @core.attr(RotationRules, { computed: true, kind: "array" }) public rotationRules!: | core.Array | core.ArrayOut; /** * (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; constructor(name: string, args?: DsSecretRotationArgs) { super(name, "aws_secretsmanager_secret_rotation", args); } public override getNamespace(): string { return "aws_secretsmanager"; } }