QuickSight object has no attribute 'list_refresh_schedules'

Hi there,

I am getting this error when trying to get a list of refresh schedules with Python boto3 library
I am using Python 3.10.6 and boto3==1.26.73

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/quicksight/client/list_refresh_schedules.html#QuickSight.Client.list_refresh_schedules

here is the code.

from boto3.session import Session
session = Session(
        aws_access_key_id=ACCESS_KEY,
        aws_secret_access_key=SECRET_KEY,
        aws_session_token=SESSION_TOKEN,
        region_name='us-east-1'
    )
client = session.client('quicksight')
response = client.list_refresh_schedules(
                        AwsAccountId=account_id,
                        DataSetId=dataset_id
                    )

Any help will be appreciated.

upgrading to boto3>=1.26.116 solved the issue.

2 Likes

Hi @neelay - Can you please provide the error details?

Regards - Sanjeeb

1 Like

Thanks, looks like it is a compatible issue. Glad to know the issue is resolved.

Regards - Sanjeeb

1 Like