o .&ßaÈã@sdd„Zdd„Zdd„ZdS)cCs| d¡dS)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_arnsrcCs| ¡}|dS)z>Retrieve the AWS account ID for the authenticated user or roleÚAccount)Úget_caller_identity)Ú sts_clientÚresponserrrÚget_account_idsr cCs:| ¡d}|D]}| dd¡|kr|Sqtd|ƒ‚)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ÚtrailrrrÚget_trail_by_arns ÿ rN)rr rrrrrÚs