import { _UnmarshalledRotationRulesType } from "./_RotationRulesType"; import { _UnmarshalledTag } from "./_Tag"; import * as __aws_sdk_types from "@aws-sdk/types"; /** * DescribeSecretOutput shape */ export interface DescribeSecretOutput extends __aws_sdk_types.MetadataBearer { /** *
The ARN of the secret.
*/ ARN?: string; /** *The user-provided friendly name of the secret.
*/ Name?: string; /** *The user-provided description of the secret.
*/ Description?: string; /** *The ARN or alias of the AWS KMS customer master key (CMK) that's used to encrypt the SecretString or SecretBinary fields in each version of the secret. If you don't provide a key, then Secrets Manager defaults to encrypting the secret fields with the default AWS KMS CMK (the one named awssecretsmanager) for this account.
Specifies whether automatic rotation is enabled for this secret.
To enable rotation, use RotateSecret with AutomaticallyRotateAfterDays set to a value greater than 0. To disable rotation, use CancelRotateSecret.
The ARN of a Lambda function that's invoked by Secrets Manager to rotate the secret either automatically per the schedule or manually by a call to RotateSecret.
A structure that contains the rotation configuration for this secret.
*/ RotationRules?: _UnmarshalledRotationRulesType; /** *The most recent date and time that the Secrets Manager rotation process was successfully completed. This value is null if the secret has never rotated.
*/ LastRotatedDate?: Date; /** *The last date and time that this secret was modified in any way.
*/ LastChangedDate?: Date; /** *The last date that this secret was accessed. This value is truncated to midnight of the date and therefore shows only the date, not the time.
*/ LastAccessedDate?: Date; /** *This value exists if the secret is scheduled for deletion. Some time after the specified date and time, Secrets Manager deletes the secret and all of its versions.
If a secret is scheduled for deletion, then its details, including the encrypted secret information, is not accessible. To cancel a scheduled deletion and restore access, use RestoreSecret.
*/ DeletedDate?: Date; /** *The list of user-defined tags that are associated with the secret. To add tags to a secret, use TagResource. To remove tags, use UntagResource.
*/ Tags?: Array<_UnmarshalledTag>; /** *A list of all of the currently assigned VersionStage staging labels and the VersionId that each is attached to. Staging labels are used to keep track of the different versions during the rotation process.
A version that does not have any staging labels attached is considered deprecated and subject to deletion. Such versions are not included in this list.