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년 전524회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠