describe_secret - Boto3 1.34.74 documentation

Publish date: 2024-05-05
  • ARN (string) –

    The ARN of the secret.

  • Name (string) –

    The name of the secret.

  • Description (string) –

    The description of the secret.

  • KmsKeyId (string) –

    The key ID or alias ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the secret is encrypted with the Amazon Web Services managed key aws/secretsmanager, this field is omitted. Secrets created using the console use an KMS key ID.

  • RotationEnabled (boolean) –

    Specifies whether automatic rotation is turned on for this secret.

    To turn on rotation, use RotateSecret. To turn off rotation, use CancelRotateSecret.

  • RotationLambdaARN (string) –

    The ARN of the Lambda function that Secrets Manager invokes to rotate the secret.

  • RotationRules (dict) –

    The rotation schedule and Lambda function for this secret. If the secret previously had rotation turned on, but it is now turned off, this field shows the previous rotation schedule and rotation function. If the secret never had rotation turned on, this field is omitted.

  • LastRotatedDate (datetime) –

    The last date and time that Secrets Manager rotated the secret. If the secret isn’t configured for rotation or rotation has been disabled, Secrets Manager returns null.

  • LastChangedDate (datetime) –

    The last date and time that this secret was modified in any way.

  • LastAccessedDate (datetime) –

    The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.

  • DeletedDate (datetime) –

    The date the secret is scheduled for deletion. If it is not scheduled for deletion, this field is omitted. When you delete a secret, Secrets Manager requires a recovery window of at least 7 days before deleting the secret. Some time after the deleted date, Secrets Manager deletes the secret, including all of its versions.

    If a secret is scheduled for deletion, then its details, including the encrypted secret value, is not accessible. To cancel a scheduled deletion and restore access to the secret, use RestoreSecret.

  • NextRotationDate (datetime) –

    The next rotation is scheduled to occur on or before this date. If the secret isn’t configured for rotation or rotation has been disabled, Secrets Manager returns null. If rotation fails, Secrets Manager retries the entire rotation process multiple times. If rotation is unsuccessful, this date may be in the past.

    This date represents the latest date that rotation will occur, but it is not an approximate rotation date. In some cases, for example if you turn off automatic rotation and then turn it back on, the next rotation may occur much sooner than this date.

  • Tags (list) –

    The list of tags attached to the secret. To add tags to a secret, use TagResource. To remove tags, use UntagResource.

  • VersionIdsToStages (dict) –

    A list of the versions of the secret that have staging labels attached. Versions that don’t have staging labels are considered deprecated and Secrets Manager can delete them.

    Secrets Manager uses staging labels to indicate the status of a secret version during rotation. The three staging labels for rotation are:

    For more information about rotation and staging labels, see How rotation works.

  • OwningService (string) –

    The ID of the service that created this secret. For more information, see Secrets managed by other Amazon Web Services services.

  • CreatedDate (datetime) –

    The date the secret was created.

  • PrimaryRegion (string) –

    The Region the secret is in. If a secret is replicated to other Regions, the replicas are listed in ReplicationStatus.

  • ReplicationStatus (list) –

    A list of the replicas of this secret and their status:

  • ncG1vNJzZmian6m8dHrAppizp56WxLR6wqikaK5hZLGwr9SmnKeskam2sLqOmqeiZ5yWwaa%2F02ipnp6Vp7Kvr8Roqp6qpp6wpr%2BOrJycqpWpwK6tzZqenqpfmLmqsc2tZp2do5i%2Fqq7EmKqem6KawW%2B006aj