FRTc@sbddlZddlZddlmZddlmZddlmZdefdYZdS(iN(tjson(t RegionInfo(tAWSQueryConnectiontLayer1cBseZdZdZdZd*d*ed*d*d*d*d*dd*d*dd*d*d*dZdZdZ ddd Z d Z d*d Z d*d*d*d*d Z d*d*d*d*d*d*d Zd*d*d*d*d*d*d*d*d*dd ZdZd*dZd*dZdZdZd*d*dZd*dZd*d*d*d*d*dZd*d*dZd*d*dZd*d*d*d*d*d*dZd*d*d*d*d*d*d*d*d*d*d*d ZdZd*d*dZdd*d*dZd*d*d Zdd*d*d!Z d*d*d*d*d"Z!d*d*d*d#Z"d*d$Z#d*d%Z$d*d*d*d&Z%d*d*d*d*d*d*d*d*d*dd' Z&d*d*d(Z'd)Z(RS(+s 2010-12-01s us-east-1s(elasticbeanstalk.us-east-1.amazonaws.comit/cCst| s!t||j|j} n| |_tt|j|||||||||jj| | | |d| dS(Nt profile_name(RtDefaultRegionNametDefaultRegionEndpointtregiontsuperRt__init__tendpoint(tselftaws_access_key_idtaws_secret_access_keyt is_securetporttproxyt proxy_portt proxy_usert proxy_passtdebugthttps_connection_factoryRtpatht api_versiontsecurity_tokenR((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pyR &s    cCsdgS(Nshmac-v4((R ((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pyt_required_auth_capability8scCs"t|}idt6dt6|S(Nttruetfalse(tbooltTruetFalse(R tv((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pyt _encode_bool;s tGETcCsd|d<|j||||}|jjd}tjj||jdkrctj|S|j |j|j |dS(NtJSONt ContentTypesutf-8i( t make_requesttreadtdecodetbototlogRtstatusRtloadst ResponseErrortreason(R tactiontparamsRtverbtresponsetbody((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pyt _get_response?s  cCsi|d6}|jd|S(sChecks if the specified CNAME is available. :type cname_prefix: string :param cname_prefix: The prefix used when this CNAME is reserved. t CNAMEPrefixtCheckDNSAvailability(R3(R t cname_prefixR/((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytcheck_dns_availabilityIs cCs0i|d6}|r ||dRFRGR4R9sOptionSettings.memberRIRJRKsOptionsToRemove.members Tier.Names Tier.Types Tier.VersiontCreateEnvironment(s Namespaces OptionNamesValue(RMtbuild_list_paramsR3(R R;tenvironment_nameRARNROR6R<RStoptions_to_removet tier_namet tier_typet tier_versionR/((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytcreate_environments0b              cCs|jddiS(s Creates the Amazon S3 storage location for the account. This location is used to store user log files. :raises: TooManyBucketsException, S3SubscriptionRequiredException, InsufficientPrivilegesException tCreateStorageLocationR/(R3(R ((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytcreate_storage_locationgs cCs9i|d6}|r)|j||dtDeleteSourceBundletDeleteApplicationVersion(R!R3(R R;RAtdelete_source_bundleR/((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytdelete_application_versions   cCs$i|d6|d6}|jd|S(sDeletes the specified configuration template. :type application_name: string :param application_name: The name of the application to delete the configuration template from. :type template_name: string :param template_name: The name of the configuration template to delete. :raises: OperationInProgressException R8RFtDeleteConfigurationTemplate(R3(R R;RNR/((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytdelete_configuration_templates  cCs$i|d6|d6}|jd|S(sm Deletes the draft configuration associated with the running environment. Updating a running environment with any configuration changes creates a draft configuration set. You can get the draft configuration using DescribeConfigurationSettings while the update is in progress or if the update fails. The DeploymentStatus for the draft configuration indicates whether the deployment is in process or has failed. The draft configuration remains in existence until it is deleted with this action. :type application_name: string :param application_name: The name of the application the environment is associated with. :type environment_name: string :param environment_name: The name of the environment to delete the draft configuration from. R8RUtDeleteEnvironmentConfiguration(R3(R R;RXR/((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pyt delete_environment_configurations  cCsEi}|r||d Returns a description of the settings for the specified configuration set, that is, either a configuration template or the configuration set associated with a running environment. When describing the settings for the configuration set associated with a running environment, it is possible to receive two sets of setting descriptions. One is the deployed configuration set, and the other is a draft configuration of an environment that is either in the process of deployment or that failed to deploy. :type application_name: string :param application_name: The application for the environment or configuration template. :type template_name: string :param template_name: The name of the configuration template to describe. Conditional: You must specify either this parameter or an EnvironmentName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns a MissingRequiredParameter error. :type environment_name: string :param environment_name: The name of the environment to describe. Condition: You must specify either this or a TemplateName, but not both. If you specify both, AWS Elastic Beanstalk returns an InvalidParameterCombination error. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. R8RFRUtDescribeConfigurationSettings(R3(R R;RNRXR/((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytdescribe_configuration_settings(s !   cCs<i}|r||dsEnvironmentIds.membersEnvironmentNames.membertIncludeDeletedtIncludedDeletedBackTotDescribeEnvironments(RWR!R3(R R;RAtenvironment_idstenvironment_namestinclude_deletedtincluded_deleted_back_toR/((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytdescribe_environmentsis %       c Csi} |r|| dRFRHRUt RequestIdtSeverityt StartTimetEndTimet MaxRecordst NextTokentDescribeEvents(R3( R R;RARNRRRXt request_idtseverityt start_timetend_timet max_recordst next_tokenR/((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytdescribe_eventss0:           cCs|jddiS(s5Returns a list of the available solution stack names.tListAvailableSolutionStacksR/(R3(R ((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytlist_available_solution_stacksscCs<i}|r||dR9tUpdateApplicationVersion(R3(R R;RAR<R/((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytupdate_application_versions    cCsri|d6|d6}|r'||dRFR9sOptionSettings.memberRIRJRKsOptionsToRemove.members Tier.Names Tier.Types Tier.VersiontUpdateEnvironment(s Namespaces OptionNamesValue(RMRWR3( R RRRXRARNR<RSRYRZR[R\R/((sB/opt/freeware/lib/python2.7/site-packages/boto/beanstalk/layer1.pytupdate_environments.M            cCsYi|d6}|j||dd |r6||ds