awswrangler.quicksight.get_data_source_arns

awswrangler.quicksight.get_data_source_arns(name: str, account_id: Optional[str] = None, boto3_session: Optional[boto3.session.Session] = None) → List[str]

Get QuickSight Data source ARNs given a name.

Note

This function returns a list of ARNs because Quicksight accepts duplicated data source names, so you may have more than 1 ARN for a given name.

Parameters
  • name (str) – Data source name.

  • account_id (str, optional) – If None, the account ID will be inferred from your boto3 session.

  • boto3_session (boto3.Session(), optional) – Boto3 Session. The default boto3 session will be used if boto3_session receive None.

Returns

Data source ARNs.

Return type

List[str]

Examples

>>> import awswrangler as wr
>>> arns = wr.quicksight.get_data_source_arns(name="...")