awswrangler.quicksight.get_template_id

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

Get QuickSight template ID given a name and fails if there is more than 1 ID associated with this name.

Parameters
  • name (str) – Template 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

Template ID.

Return type

str

Examples

>>> import awswrangler as wr
>>> my_id = wr.quicksight.get_template_id(name="...")