Viewing File: /usr/lib/python2.7/site-packages/euca2ools/commands/iam/addgrouppolicy.pyo

ó
¡ôXc@srddlZddlmZddlmZmZmZddlmZddl	m
Z
defd„ƒYZdS(iÿÿÿÿN(tArg(t
IAMRequestt
AS_ACCOUNTt	arg_group(tPutGroupPolicy(tbuild_iam_policytAddGroupPolicycBsÑeZdZeddƒedddddeddƒed	d
dd deddƒedddddddeddƒedddddddeddƒeddddddƒegZd„Zd„Z	RS(!srAdd a new policy to a group. To add more complex policies than this tool supports, see euare-groupuploadpolicy(1).thelps(group 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(	NteffectRRt	GroupNamet
PolicyNametpolicy_nametPolicyDocumenttDelegateAccount(RtargstjsontdumpsRt
from_othertparamstmain(tselftpolicyt
policy_doctreqtresponse((sI/usr/lib/python2.7/site-packages/euca2ools/commands/iam/addgrouppolicy.pyR5s

cCs|jdr|dGHndS(NtoutputR(R(R tresult((sI/usr/lib/python2.7/site-packages/euca2ools/commands/iam/addgrouppolicy.pytprint_resultBs
(RR
(
t__name__t
__module__tDESCRIPTIONRRtTrueRtARGSRR'(((sI/usr/lib/python2.7/site-packages/euca2ools/commands/iam/addgrouppolicy.pyR#s"		
(RtrequestbuilderRteuca2ools.commands.iamRRRt%euca2ools.commands.iam.putgrouppolicyRteuca2ools.utilRR(((sI/usr/lib/python2.7/site-packages/euca2ools/commands/iam/addgrouppolicy.pyt<module>s

Back to Directory File Manager