awswrangler.quicksight.get_data_source_arn¶
- awswrangler.quicksight.get_data_source_arn(name: str, account_id: str | None = None, boto3_session: Session | None = None) str¶
Get QuickSight data source ARN given a name and fails if there is more than 1 ARN associated with this 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|None) – If None, the account ID will be inferred from your boto3 session.boto3_session (
Session|None) – The default boto3 session will be used if boto3_session isNone.
- Return type:
str- Returns:
Data source ARN.
Examples
>>> import awswrangler as wr >>> arn = wr.quicksight.get_data_source_arn("...")