I used the code snippet from the post How to update AWS Secrets Manager via python?
But I am running into an issue with the update secret. After execution of the code in the AWS console, I get the below error when I try to retrieve the secret
The secret value can't be converted to key name and value pairs
Code snippet:
updated_secret = original_secret.update({"password":"123admin"}) client.update_secret(SecretId="mysecret", SecretString=json.dumps(updated_secret))