0

I found the following documentation about this: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift/client/describe_endpoint_access.html

In theory there should be a describe_endpoint_access which looks like what I need. I tried running the code below:

redshift = boto3.client('redshift',
                   region_name="us-west-2",
                   aws_access_key_id=KEY,
                   aws_secret_access_key=SECRET
                   )
redshift.describe_endpoint_access(ClusterIdentifier=DWH_CLUSTER_IDENTIFIER)

I got the error: AttributeError: 'Redshift' object has no attribute 'describe_endpoint_access'

I also tried redshift.client.describe_endpoint_access(ClusterIdentifier=DWH_CLUSTER_IDENTIFIER)

and I got the same result.

2
  • Which version of boto3 are you using? You can print(boto3.__version__) to show it. Commented Aug 19, 2024 at 10:02
  • It worked for me and I'm using version 1.34.32. Commented Aug 19, 2024 at 10:12

1 Answer 1

0

I see no issue with what is being attempted. Check to ensure the correct version of boto3 is being used. You can check that from the Python interpreter to ensure you are using the version of boto3 that supports that function for reshift client.

>>> boto3.__version__
'1.34.153'
>>>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.