U
<�^� � @ s d d� Z dd� Zdd� ZdS )c C s | � d�d S )z%Gets the account ID portion of an ARN�:� )�split)� trail_arn� r �H/usr/lib/python3/dist-packages/awscli/customizations/cloudtrail/utils.py�get_account_id_from_arn s r c C s | � � }|d S )z>Retrieve the AWS account ID for the authenticated user or roleZAccount)Zget_caller_identity)Z
sts_clientZresponser r r �get_account_id s r c C s>