Is there any possible method by which i can update key/values in AWS Secret Manager without having to retrieve the current values and then updating them?
The current solutions i have found first retrieve the value from secrets manager:
original_secret = client.get_secret_value(SecretId="my_first_secret")
Then do an update on them and run the update-secret command:
updated_secret = original_secret.update({"UPDATE_KEY": "update_value"})
client.update_secret(SecretId="my_secret_name", SecretString=json.dumps(updated_secret))
But i dont want to retrieve the secret values. Preferred language is python.