Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/iam/addgrouppolicy.pyc |
�
��Xc @ sr d d l Z 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 e f d � � YZ d S( i����N( t Arg( t
IAMRequestt
AS_ACCOUNTt arg_group( t PutGroupPolicy( t build_iam_policyt AddGroupPolicyc B s� e Z d Z e d d � e d d d d d e d d �e d d
d d d e d d �e d d d d d d d e d d �e d d d d d d d e d d �e d d d d d d �e g Z d � Z d � Z RS(! sr Add a new policy to a group. To add more complex policies than this tool supports, see euare-groupuploadpolicy(1).t helps( group to attach the policy to (required)s -ps
--policy-namet metavart POLICYt requireds! name of the new policy (required)s -es --effectt choicest Allowt Denys6 whether the new policy should Allow or Deny (required)s -as --actiont destt actionst actiont appendsL action(s) the policy should apply to
(at least one required)s -rs
--resourcet resourcessN resource(s) the policy should apply to
(at least one required)s -os --outputt
store_trues display the newly-created policyc C s� t | j d | j d | j d � } t j | � } t j | d | j d d | j d d | d | j d �} | j � } | | d <| S( Nt effectR R t GroupNamet
PolicyNamet policy_namet PolicyDocumentt DelegateAccount( R t argst jsont dumpsR t
from_othert paramst main( t selft policyt
policy_doct reqt response( ( sI /usr/lib/python2.7/site-packages/euca2ools/commands/iam/addgrouppolicy.pyR 5 s
c C s | j d r | d GHn d S( Nt outputR ( R ( R t result( ( sI /usr/lib/python2.7/site-packages/euca2ools/commands/iam/addgrouppolicy.pyt print_resultB s
( R R
(
t __name__t
__module__t DESCRIPTIONR R t TrueR t ARGSR R'