Boto3 Connect is missing method "put_user_status" #3566
Unanswered
hamishcross
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi thanks for reaching out. It looks like we missed this discussion because it wasn't in the Q&A category, I'll move it over there now. The |
Beta Was this translation helpful? Give feedback.
0 replies
-
This was based off Lambda implementation of Boto3 Unless it has changed, I don't believe this exists |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As the title suggests, the Boto3 library is missing the "put_user_status" method
https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/connect.html#Connect.Client.put_user_status
``
def putUserStatus(instanceId,statusId,userId):
client = boto3.client('connect')
response = client.put_user_status(UserId=userId,InstanceId=instanceId,AgentStatusId=statusId)
print(response)
return 0
This results in the following
{ "errorMessage": "'Connect' object has no attribute 'put_user_status'", "errorType": "AttributeError", "requestId": "9c2c9f99-6d6f-4d83-9e4f-c61c59075b09", "stackTrace": [ " File \"/var/task/lambda_function.py\", line 21, in lambda_handler\n putUserStatus(\removed)\n", " File \"/var/task/lambda_function.py\", line 64, in putUserStatus\n response = client.put_user_status(UserId=userId,InstanceId=instanceId,AgentStatusId=statusId)\n", " File \"/var/runtime/botocore/client.py\", line 657, in __getattr__\n raise AttributeError(\n" ] }
What is required to get this added?
Beta Was this translation helpful? Give feedback.
All reactions