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
demandé il y a 3 ans551 vues
1 réponse
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
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions