%PDF- %PDF-
Direktori : /proc/self/root/usr/lib/python2.7/site-packages/euca2ools/commands/iam/ |
Current File : //proc/self/root/usr/lib/python2.7/site-packages/euca2ools/commands/iam/deleterole.pyo |
� ��Xc @ s� d d l m Z d d l m Z m Z m Z d d l m Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d S( i����( t Arg( t IAMRequestt AS_ACCOUNTt arg_role( t DeleteRolePolicy( t ListInstanceProfilesForRole( t ListRolePolicies( t RemoveRoleFromInstanceProfilet DeleteRolec B sq e Z d Z e d d � e d d d d d d d d �e d d d d d d d d �e g Z d � Z d � Z RS( s Delete a rolet helps% name of the role to delete (required)s -cs --recursivet actiont store_truet route_tosG remove all IAM resources associated with the role firsts -ps --pretendsh list the resources that would be deleted instead of actually deleting them. Implies -c.c C s | j j d � s$ | j j d � r!t j | d | j d d | j j d � �} | j � } g } xJ | j d � py g D]3 } | j i | j d � d 6| j d � d 6� qz Wt j | d | j d d | j j d � �} | j � } g } x9 | j d � pg D] } | j | � qWn g } g } | j j d � rQi | d 6| d 6S| j j d � rxP | D]H } t j | d | j d d | d d | j j d � �} | j � qjWxO | D]D } t j | d | j d d | d | j j d � �} | j � q�Wn | j � S( Nt recursivet pretendt RoleNamet DelegateAccountt InstanceProfilest Arnt arnt InstanceProfileNamet namet PolicyNamest instance_profilest policiest PolicyName( t argst getR t from_othert maint appendR R R t send( t selft reqt responseR t profileR t policy( ( sE /usr/lib/python2.7/site-packages/euca2ools/commands/iam/deleterole.pyR 0 sH $ c C sc | j j d � r_ d GHx | d D] } d | d GHq"