ó FRTc@s˜ddlZddlmZmZmZddlmZmZddlmZddl m Z ddl m Z ddl mZde fd „ƒYZdS( iÿÿÿÿN(tStackt StackSummaryt StackEvent(t StackResourcetStackResourceSummary(tTemplate(tAWSQueryConnection(t RegionInfo(tjsontCloudFormationConnectioncBsÁeZdZejjdddƒZejjdddƒZejjdddƒZd.Z d/d/e d/d/d/d/d/dd/d/dd/d/e d/d„Z d„Z d„Zd/d/d„Zd„Zd/d/d/d/d/d/d/d/d/d/d/d„ Zd/d/d/d/ed/d/d/d/d/d/d/d „ Zd!„Zd/d/d"„Zd#„Zd/d/d/d$„Zd/d/d%„Zd&„Zd/d'„Zd/d/d(„Zd/d/d)„Zd/d*„Zd/d/d/d+„Zd,„Zd/d/d-„Z RS(0sL AWS CloudFormation AWS CloudFormation enables you to create and manage AWS infrastructure deployments predictably and repeatedly. AWS CloudFormation helps you leverage AWS products such as Amazon EC2, EBS, Amazon SNS, ELB, and Auto Scaling to build highly-reliable, highly scalable, cost effective applications without worrying about creating and configuring the underlying AWS infrastructure. With AWS CloudFormation, you declare all of your resources and dependencies in a template file. The template defines a collection of resources as a single unit called a stack. AWS CloudFormation creates and deletes all member resources of the stack together and manages all dependencies between the resources for you. For more information about this product, go to the `CloudFormation Product Page`_. Amazon CloudFormation makes use of other AWS products. If you need additional technical information about a specific AWS product, you can find the product's technical documentation at `http://aws.amazon.com/documentation/`_. tBotot cfn_versions 2010-05-15tcfn_region_names us-east-1tcfn_region_endpoints&cloudformation.us-east-1.amazonaws.comtCREATE_IN_PROGRESSt CREATE_FAILEDtCREATE_COMPLETEtROLLBACK_IN_PROGRESStROLLBACK_FAILEDtROLLBACK_COMPLETEtDELETE_IN_PROGRESSt DELETE_FAILEDtDELETE_COMPLETEtUPDATE_IN_PROGRESSt#UPDATE_COMPLETE_CLEANUP_IN_PROGRESStUPDATE_COMPLETEtUPDATE_ROLLBACK_IN_PROGRESStUPDATE_ROLLBACK_FAILEDt,UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESStUPDATE_ROLLBACK_COMPLETEit/cCs}| s$t||j|jtƒ} n| |_tt|ƒj|||||||||jj| | | |d|d|ƒ dS(Ntvalidate_certst profile_name(RtDefaultRegionNametDefaultRegionEndpointR tregiontsupert__init__tendpoint(tselftaws_access_key_idtaws_secret_access_keyt is_securetporttproxyt proxy_portt proxy_usert proxy_passtdebugthttps_connection_factoryR#tpatht convertertsecurity_tokenRR ((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pyR%Gs    cCsdgS(Nshmac-v4((R'((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pyt_required_auth_capability[scCs"t|ƒ}idt6dt6|S(Nttruetfalse(tbooltTruetFalse(R'tv((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pyt encode_bool^s cCsFidd6|d6|j|ƒd6}|r7||dR?t DeleteStackRtGET(Rs(R'tstack_name_or_idRb((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pyt delete_stackùs cCsHi}|r||dR?tLogicalResourceIdtDescribeStackResourceRR(Rs(R'R€tlogical_resource_idRb((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pytdescribe_stack_resource#s cCs[i}|r||dR?t GetTemplateRR(Rs(R'R€Rb((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pyt get_template‘scCs<i|d6}|r ||dRARBis!Parameters.member.%d.ParameterKeyis#Parameters.member.%d.ParameterValuetEstimateTemplateCostRRutEstimateTemplateCostResponsetEstimateTemplateCostResulttUrlN(RQRLRMRs( R'RURVRWRbRcRdReRr((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pytestimate_template_costs     cCs<idd6|d6}|jd|ddƒ}|ddd S( sq Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned. :type stack_name_or_id: string :param stack_name_or_id: The name or stack ID that is associated with the stack whose policy you want to get. :rtype: string :return: The policy JSON document R=R>R?tGetStackPolicyRRutGetStackPolicyResponsetGetStackPolicyResultRE(Rs(R'R€RbRr((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pytget_stack_policyFs cCsjidd6|d6}|d k r-||dR?RERFtSetStackPolicyRRutSetStackPolicyResponsetSetStackPolicyResultN(RQRs(R'R€R]R^RbRr((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pytset_stack_policyXs    (RRRRRRRRRRRRRRRRN(!t__name__t __module__t__doc__RItconfigtgett APIVersionR!R"t valid_statesRQR9R%R5R<RfRsRyR:R}RR‡R‹RR‘R“R•R˜RœRŸR¤R¨R¬(((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pyR sf         ˜   a  u   =    , (RItboto.cloudformation.stackRRRRRtboto.cloudformation.templateRtboto.connectionRtboto.regioninfoRt boto.compatRR (((sK/opt/freeware/lib/python2.7/site-packages/boto/cloudformation/connection.pyts