Add describe_parameters support
This commit is contained in:
parent
b0fe1d8eae
commit
c118d12e6f
@ -46,6 +46,12 @@ class SimpleSystemManagerBackend(BaseBackend):
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
def get_all_parameters(self):
|
||||
result = []
|
||||
for k, _ in self._parameters.iteritems():
|
||||
result.append(self._parameters[k])
|
||||
return result
|
||||
|
||||
def get_parameters(self, names, with_decryption):
|
||||
result = []
|
||||
for name in names:
|
||||
|
@ -43,6 +43,20 @@ class SimpleSystemManagerResponse(BaseResponse):
|
||||
|
||||
return json.dumps(response)
|
||||
|
||||
def describe_parameters(self):
|
||||
# filters = self._get_param('Filters')
|
||||
result = self.ssm_backend.get_all_parameters()
|
||||
|
||||
response = {
|
||||
'Parameters': [],
|
||||
}
|
||||
|
||||
for parameter in result:
|
||||
param_data = parameter.response_object(False)
|
||||
response['Parameters'].append(param_data)
|
||||
|
||||
return json.dumps(response)
|
||||
|
||||
def put_parameter(self):
|
||||
name = self._get_param('Name')
|
||||
description = self._get_param('Description')
|
||||
|
Loading…
Reference in New Issue
Block a user