awswrangler.sts.get_account_id

awswrangler.sts.get_account_id(boto3_session: Session | None = None) str

Get Account ID.

Parameters:

boto3_session (Session | None) – The default boto3 session will be used if boto3_session is None.

Return type:

str

Returns:

Account ID.

Examples

>>> import awswrangler as wr
>>> account_id = wr.sts.get_account_id()