Retrieves the details of a secret. It does not include the encrypted secret value. Secrets Manager only returns fields that have a value in the response.
The
VersionIdsToStages field in the response includes every version ID that has a staging label attached, even if that version doesn't contain a secret value. In contrast,
ListSecretVersionIds only returns versions that contain a secret value. To check whether a secret version contains a value, call
GetSecretValue.
Secrets Manager generates a CloudTrail log entry when you call this action. Do not include sensitive information in request parameters because it might be logged. For more information, see
Logging Secrets Manager events with CloudTrail.
Required permissions: secretsmanager:DescribeSecret. For more information, see
IAM policy actions for Secrets Manager and
Authentication and access control in Secrets Manager.