Current File : //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