Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/iam/adduserpolicy.pyc

ó
¡ô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

Back to Directory File Manager