| Server IP : 167.99.254.82 / Your IP : 216.73.217.78 Web Server : Apache System : Linux host.techisquad.com 5.15.0-187-generic #197-Ubuntu SMP Fri Jul 17 19:17:01 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/awscli/customizations/cloudtrail/__pycache__/ |
Upload File : |
o
.&�a� � @ 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 role�Account)�get_caller_identity)�
sts_client�responser r r �get_account_id s r c C s: | � � d }|D ]}|�dd�|kr| S qtd| ��)z/Gets trail information based on the trail's ARN� trailList�TrailARNNz!A trail could not be found for %s)�describe_trails�get�
ValueError)�cloudtrail_clientr �trails�trailr r r �get_trail_by_arn s �r N)r r r r r r r �<module> s