HEX
Server: Apache
System: Linux 162-240-236-42.bluehost.com 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
User: bt667 (1004)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //proc/self/root/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