def get_table_arn()

in ddbtools/table.py [0:0]


    def get_table_arn(self, table_name:str) -> str:
        """Given a table's name, return its ARN"""
        try:
            response = self.dynamodb_client.describe_table(TableName=table_name)
        except Exception as e:
            raise Exception(f"Failed to describe table {table_name}: {e}.") from None

        table_data = response['Table']
        table_arn = table_data['TableArn']

        return table_arn