Boto3 'Chime' object has no attribute 'create_app_instance'

0

Using the following python code in a lambda function:

import boto3
chime_client = boto3.client('chime', region_name='us-east-1')

def lambda_handler(event, context):

response = chime_client.create_app_instance(  
    Name='my_app_instance'  
)  

Expected result:

Get a new app_instance object with associated arn.

Current result:
"errorMessage": "'Chime' object has no attribute 'create_app_instance'", "errorType": "AttributeError"

Boto3 documentation includes this attribute for the chime client, but includes the following: Only Messaging SDK customers use this API. Who are "Messaging SDK customers" and how do you become one?

egalvan
已提问 3 年前551 查看次数
1 回答
0

Solved it by installing the latest boto3 as a dependency via pip install rather than using the 'default' included version of boto3 in the Lambda service. It seems this preinstalled version does not get updated often enough to include the newest available properties.

egalvan
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则