Exemplo n.º 1
0
def describe_db_cluster(cluster_id: str, client: boto3.client) -> AWSResponse:
    try:
        return client.describe_db_clusters(
            DBClusterIdentifier=cluster_id)['DBClusters'][0]
    except ClientError as e:
        raise FailedActivity('unable to identify cluster %s: %s' % (
            cluster_id, e.response['Error']['Message']))
def describe_db_cluster(cluster_id: str, client: boto3.client) -> AWSResponse:
    try:
        return client.describe_db_clusters(
            DBClusterIdentifier=cluster_id)["DBClusters"][0]
    except ClientError as e:
        raise FailedActivity("unable to identify cluster %s: %s" %
                             (cluster_id, e.response["Error"]["Message"]))