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
posta 3 anni fa547 visualizzazioni
1 Risposta
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
con risposta 3 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande