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
gefragt vor 3 Jahren568 Aufrufe
1 Antwort
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
beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen