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.
boto3are you using? You canprint(boto3.__version__)to show it.1.34.32.