Current File : //lib/python2.7/site-packages/euca2ools/commands/iam/adduserpolicy.pyo
�
��Xc@srddlZddlmZddlmZmZmZddlmZddl	m
Z
defd��YZdS(i����N(tArg(t
IAMRequestt
AS_ACCOUNTtarg_user(t
PutUserPolicy(tbuild_iam_policyt
AddUserPolicycBs�eZdZedd�edddddedd�ed	d
dd dedd�edddddddedd�edddddddedd�edddddd�egZd�Zd�Z	RS(!spAdd a new policy to a user. To add more complex policies than this tool supports, see euare-useruploadpolicy(1).thelps'user to attach the policy to (required)s-ps
--policy-nametmetavartPOLICYtrequireds!name of the new policy (required)s-es--effecttchoicestAllowtDenys6whether the new policy should Allow or Deny (required)s-as--actiontdesttactionstactiontappendsLaction(s) the policy should apply to
                (at least one required)s-rs
--resourcet	resourcessNresource(s) the policy should apply to
                (at least one required)s-os--outputt
store_trues display the newly-created policycCs�t|jd|jd|jd�}tj|�}tj|d|jdd|jdd|d|jd�}|j�}||d<|S(	NteffectRRtUserNamet
PolicyNametpolicy_nametPolicyDocumenttDelegateAccount(RtargstjsontdumpsRt
from_othertparamstmain(tselftpolicyt
policy_doctreqtresponse((sH/usr/lib/python2.7/site-packages/euca2ools/commands/iam/adduserpolicy.pyR5s
cCs|jdr|dGHndS(NtoutputR(R(R tresult((sH/usr/lib/python2.7/site-packages/euca2ools/commands/iam/adduserpolicy.pytprint_resultAs
(RR
(
t__name__t
__module__tDESCRIPTIONRRtTrueRtARGSRR'(((sH/usr/lib/python2.7/site-packages/euca2ools/commands/iam/adduserpolicy.pyR#s"		(RtrequestbuilderRteuca2ools.commands.iamRRRt$euca2ools.commands.iam.putuserpolicyRteuca2ools.utilRR(((sH/usr/lib/python2.7/site-packages/euca2ools/commands/iam/adduserpolicy.pyt<module>s