Current File : //lib/python2.7/site-packages/euca2ools/commands/iam/createrole.pyc
�
��Xc@s�ddlZddlZddlZddlmZmZddlmZddlm	Z	m
Z
mZde	fd��YZdS(i����N(tArgtMutuallyExclusiveArgList(t
file_contents(t
IAMRequestt
AS_ACCOUNTtarg_rolet
CreateRolecBs�eZdZedd�edddddd�eedd	dd
ddd
edd�edddddddddd�eddddej	��j
�edddddddd�egZd�Z
d�ZRS(sCreate a new rolethelpsname of the new role (required)s-ps--pathtdesttPaths$path for the new role (default: "/")s-fs--trust-policytAssumeRolePolicyDocumenttmetavartFILEttypes1file containing the trust policy for the new roles-ss	--servicetservice_tSERVICEtroute_tosPservice to allow access to
                    the role (e.g. ec2.amazonaws.com)s
--service_s-vs	--verbosetactiont
store_trues*print the new role's ARN, GUID, and policycCsu|jjd�rqidd6i|jdgd6d6dgd6}idd	6|gd
6}tj|�|jd<ndS(NRtAllowtEffecttServicet	Principalssts:AssumeRoletActions
2008-10-17tVersiont	StatementR
(targstgettjsontdumpstparams(tselft	statementtpolicy((sE/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createrole.pyt
preprocess7s



cCsp|jjd�rl|jdi�jd�GH|jdi�jd�GHtj|jdi�jd��GHndS(NtverbosetRoletArntRoleIdR
(RRturllibtunquote(Rtresult((sE/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createrole.pytprint_result@s
N(t__name__t
__module__tDESCRIPTIONRRRRtNonetargparsetSUPPRESStrequiredRtARGSR"R*(((sE/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createrole.pyR$s"!			(
R/RR'trequestbuilderRRteuca2ools.commands.argtypesRteuca2ools.commands.iamRRRR(((sE/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createrole.pyt<module>s