Add support for IoT attach_policy
This commit is contained in:
parent
71a054af92
commit
80f860727f
4 changed files with 48 additions and 2 deletions
|
|
@ -224,6 +224,15 @@ class IoTResponse(BaseResponse):
|
|||
)
|
||||
return json.dumps(dict())
|
||||
|
||||
def attach_policy(self):
|
||||
policy_name = self._get_param("policyName")
|
||||
target = self._get_param('target')
|
||||
self.iot_backend.attach_policy(
|
||||
policy_name=policy_name,
|
||||
target=target,
|
||||
)
|
||||
return json.dumps(dict())
|
||||
|
||||
def attach_principal_policy(self):
|
||||
policy_name = self._get_param("policyName")
|
||||
principal = self.headers.get('x-amzn-iot-principal')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue