Viewing File: /usr/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
Back to Directory File Manager