def decrypt(message):
try:<EOL><INDENT>ret = kms.decrypt(<EOL>CiphertextBlob=base64.decodestring(message))<EOL>decrypted_data = ret.get('<STR_LIT>')<EOL><DEDENT>except Exception as e:<EOL><INDENT>raise Exception("<STR_LIT>", e)<EOL><DEDENT>return decrypted_data<EOL>
decrypt leverages KMS decrypt and base64-encode decrypted blob

        More info on KMS decrypt API:
        https://docs.aws.amazon.com/kms/latest/APIReference/API_decrypt.html