Current File : //usr/lib/python2.7/site-packages/euca2ools/commands/iam/createopenidconnectprovider.pyc
�
��Xc@sbddlmZddlmZddlZddlmZmZmZdefd��YZ	dS(i����(tArg(t
ArgumentErrorN(t
IAMRequestt
AS_ACCOUNTtutiltCreateOpenIDConnectProviderc
Bs�eZdZeddddd�edddd	dd
dddd
�edddddddddd�egZd�Zd�Zd�ZRS(s.
    Create a new OpenID Connect provider
    tUrltmetavartURLthelps'the URL for the new provider (required)s-cs--client-idtdestsClientIdList.membertCLIENTtactiontappends.a client ID, or audience, for the new providers-ts--thumbprintsThumbprintList.membertHEXs�the SHA-1 thumbprint
                of the new OpenID Connect provider's certificate.  If one is
                not supplied this command will attempt to connect to the
                server to determine it automatically.cCsqtj|�tjjjj|jjd�p1d�}|j	dkrUt
d��n|jsmt
d��ndS(NRtthttpssURL must begin with "https://"s"URL must name a host to connect to(Rt	configuretsixtmovesturllibtparseturlparsetargstgettschemeRtnetloc(tselftparsed((sV/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createopenidconnectprovider.pyR2s
*	cCs?|jjd�s;tj|jdd|j�|jd<ndS(NsThumbprintList.memberRtlogsThumbprintList.member.1(RRRtget_cert_fingerprintRtparams(R((sV/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createopenidconnectprovider.pyt
preprocess:scCs|jd�GHdS(NtOpenIDConnectProviderArn(R(Rtresult((sV/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createopenidconnectprovider.pytprint_result@s(	t__name__t
__module__t__doc__RRtARGSRR R#(((sV/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createopenidconnectprovider.pyR!s			(
trequestbuilderRtrequestbuilder.exceptionsRRteuca2ools.commands.iamRRRR(((sV/usr/lib/python2.7/site-packages/euca2ools/commands/iam/createopenidconnectprovider.pyt<module>s