diff --git a/moto/ssm/responses.py b/moto/ssm/responses.py index ca0339693..3b75ada09 100644 --- a/moto/ssm/responses.py +++ b/moto/ssm/responses.py @@ -56,13 +56,8 @@ class SimpleSystemManagerResponse(BaseResponse): return json.dumps(error), dict(status=400) response = { - 'Parameter': { - 'Name': name, - 'Type': result.type, - 'Value': result.value - } + 'Parameter': result.response_object(with_decryption) } - return json.dumps(response) def get_parameters(self):