Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/iam/deleteinstanceprofile.pyo |
�
��Xc @ sv 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 e f d � � YZ d S( i����( t Arg( t
IAMRequestt
AS_ACCOUNTt arg_iprofile( t
DeleteRole( t GetInstanceProfile( t RemoveRoleFromInstanceProfilet DeleteInstanceProfilec 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( sz Delete an instance profile
This will break any running instances that depend upon access to the deleted instance profile.t helps1 name of the instance profile to delete (required)s -rs --recursivet actiont
store_truet route_tosS remove all IAM resources associated with the instance
profile firsts -ps --pretendsh list the resources that would be deleted instead of
actually deleting them. Implies -r.c C s� | j j d � s$ | j j d � r� t j | d | j d d | j j d � �} | j � } g } x_ | j d i � j d � p� g D]3 } | j i | j d � d 6| j d � d
6� q� Wn g } | j j d � r� i | d 6S| j j d � r�x� | D]} } t j | d | d
d | j d d | j j d � �} | j � t j | d | d
d | j j d � �} | j � q� Wn | j � S( Nt recursivet pretendt InstanceProfileNamet DelegateAccountt InstanceProfilet Rolest Arnt arnt RoleNamet namet roles( t argst getR t
from_othert maint appendR R t send( t selft reqt responseR t role( ( sP /usr/lib/python2.7/site-packages/euca2ools/commands/iam/deleteinstanceprofile.pyR 1 s0 $(
c C s@ | j j d � r<