o ckF[.@sHddlZddlZddlmZddlmZddlmZGdddeZdS)N)json) RegionInfo)AWSQueryConnectioncseZdZdZdZdZ      dOfdd Zd d Zd d ZdPddZ ddZ dQddZ  dRddZ     dSddZ     dTddZddZ dQddZ dQd d!Zd"d#Zd$d%Z  dUd&d'ZdQd(d)Z    dVd*d+Z  dUd,d-Z  dUd.d/Z    dSd0d1Z     dWd2d3Zd4d5ZdUd6d7Z  dXd9d:ZdUd;d<Z  dXd=d>Z    dRd?d@Z  dYdAdBZ!dQdCdDZ" dQdEdFZ#  dYdGdHZ$     dTdIdJZ%  dUdKdLZ&dMdNZ'Z(S)ZLayer1z 2010-12-01z us-east-1z(elasticbeanstalk.us-east-1.amazonaws.comNTr/csN| s t||j|j} | |_tt|j|||||||||jj| | | ||ddS)N) profile_name)rDefaultRegionNameDefaultRegionEndpointregionsuperr__init__endpoint)selfaws_access_key_idaws_secret_access_key is_secureportproxy proxy_port proxy_user proxy_passdebughttps_connection_factoryr path api_versionsecurity_tokenr __class__7/usr/lib/python3/dist-packages/boto/beanstalk/layer1.pyr &s  zLayer1.__init__cCsdgS)Nzhmac-v4rrrrr_required_auth_capability8sz Layer1._required_auth_capabilitycCst|}ddd|S)Ntruefalse)TF)bool)rvrrr _encode_bool;szLayer1._encode_boolGETcCsXd|d<|||||}|d}tj||jdkr#t|S| |j|j |)NJSON ContentTypezutf-8) make_requestreaddecodebotologrstatusrloads ResponseErrorreason)ractionparamsrverbresponsebodyrrr _get_response?s   zLayer1._get_responsecCsd|i}|d|S)zChecks if the specified CNAME is available. :type cname_prefix: string :param cname_prefix: The prefix used when this CNAME is reserved. CNAMEPrefixCheckDNSAvailabilityr9)r cname_prefixr5rrrcheck_dns_availabilityIs zLayer1.check_dns_availabilitycC d|i}|r ||d<|d|S)a% Creates an application that has one configuration template named default and no application versions. :type application_name: string :param application_name: The name of the application. Constraint: This name must be unique within your account. If the specified name already exists, the action returns an InvalidParameterValue error. :type description: string :param description: Describes the application. :raises: TooManyApplicationsException ApplicationName DescriptionCreateApplicationr<rapplication_name descriptionr5rrrcreate_applicationSs zLayer1.create_applicationcCsL||d}|r ||d<|r|r||d<||d<|r |||d<|d|S)aACreates an application version for the specified application. :type application_name: string :param application_name: The name of the application. If no application is found with this name, and AutoCreateApplication is false, returns an InvalidParameterValue error. :type version_label: string :param version_label: A label identifying this version. Constraint: Must be unique per application. If an application version already exists with this label for the specified application, AWS Elastic Beanstalk returns an InvalidParameterValue error. :type description: string :param description: Describes this version. :type s3_bucket: string :param s3_bucket: The Amazon S3 bucket where the data is located. :type s3_key: string :param s3_key: The Amazon S3 key where the data is located. Both s3_bucket and s3_key must be specified in order to use a specific source bundle. If both of these values are not specified the sample application will be used. :type auto_create_application: boolean :param auto_create_application: Determines how the system behaves if the specified application for this version does not already exist: true: Automatically creates the specified application for this version if it does not already exist. false: Returns an InvalidParameterValue if the specified application for this version does not already exist. Default: false Valid Values: true | false :raises: TooManyApplicationsException, TooManyApplicationVersionsException, InsufficientPrivilegesException, S3LocationNotInServiceRegionException r@ VersionLabelrAzSourceBundle.S3BucketzSourceBundle.S3KeyAutoCreateApplicationCreateApplicationVersionr&r9)rrD version_labelrE s3_buckets3_keyauto_create_applicationr5rrrcreate_application_versionhs* z!Layer1.create_application_versionc Csf||d} |r || d<|r|| d<|r|| d<|r|| d<|r#|| d<|r-|| |dd|d | S) a Creates a configuration template. Templates are associated with a specific application and are used to deploy different versions of the application with the same configuration settings. :type application_name: string :param application_name: The name of the application to associate with this configuration template. If no application is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error. :type template_name: string :param template_name: The name of the configuration template. Constraint: This name must be unique per application. Default: If a configuration template already exists with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error. :type solution_stack_name: string :param solution_stack_name: The name of the solution stack used by this configuration. The solution stack specifies the operating system, architecture, and application server for a configuration template. It determines the set of configuration options as well as the possible and default values. Use ListAvailableSolutionStacks to obtain a list of available solution stacks. Default: If the SolutionStackName is not specified and the source configuration parameter is blank, AWS Elastic Beanstalk uses the default solution stack. If not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template. :type source_configuration_application_name: string :param source_configuration_application_name: The name of the application associated with the configuration. :type source_configuration_template_name: string :param source_configuration_template_name: The name of the configuration template. :type environment_id: string :param environment_id: The ID of the environment used with this configuration template. :type description: string :param description: Describes this configuration. :type option_settings: list :param option_settings: If specified, AWS Elastic Beanstalk sets the specified configuration option to the requested value. The new value overrides the value obtained from the solution stack or the source configuration template. :raises: InsufficientPrivilegesException, TooManyConfigurationTemplatesException r@ TemplateNameSolutionStackNamez#SourceConfiguration.ApplicationNamez SourceConfiguration.TemplateName EnvironmentIdrAOptionSettings.member Namespace OptionNameValueCreateConfigurationTemplate_build_list_paramsr9) rrD template_namesolution_stack_name%source_configuration_application_name"source_configuration_template_nameenvironment_idrEoption_settingsr5rrrcreate_configuration_templates&< z$Layer1.create_configuration_template1.0c Cs||d} |r || d<|r|| d<|r|| d<|r|| d<|r#|| d<|r-|| |dd| r6|| | d | rH| rH| rH| | d <| | d <| | d <|d | S)aOLaunches an environment for the application using a configuration. :type application_name: string :param application_name: The name of the application that contains the version to be deployed. If no application is found with this name, CreateEnvironment returns an InvalidParameterValue error. :type environment_name: string :param environment_name: A unique name for the deployment environment. Used in the application URL. Constraint: Must be from 4 to 23 characters in length. The name can contain only letters, numbers, and hyphens. It cannot start or end with a hyphen. This name must be unique in your account. If the specified name already exists, AWS Elastic Beanstalk returns an InvalidParameterValue error. Default: If the CNAME parameter is not specified, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application. :type version_label: string :param version_label: The name of the application version to deploy. If the specified application has no associated application versions, AWS Elastic Beanstalk UpdateEnvironment returns an InvalidParameterValue error. Default: If not specified, AWS Elastic Beanstalk attempts to launch the most recently created application version. :type template_name: string :param template_name: The name of the configuration template to use in deployment. If no configuration template is found with this name, AWS Elastic Beanstalk returns an InvalidParameterValue error. Condition: You must specify either this parameter or a SolutionStackName, 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 solution_stack_name: string :param solution_stack_name: This is an alternative to specifying a configuration name. If specified, AWS Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack. 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 a MissingRequiredParameter error. :type cname_prefix: string :param cname_prefix: If specified, the environment attempts to use this value as the prefix for the CNAME. If not specified, the environment uses the environment name. :type description: string :param description: Describes this environment. :type option_settings: list :param option_settings: If specified, AWS Elastic Beanstalk sets the specified configuration options to the requested value in the configuration set for the new environment. These override the values obtained from the solution stack or the configuration template. Each element in the list is a tuple of (Namespace, OptionName, Value), for example:: [('aws:autoscaling:launchconfiguration', 'Ec2KeyName', 'mykeypair')] :type options_to_remove: list :param options_to_remove: A list of custom user-defined configuration options to remove from the configuration set for this new environment. :type tier_name: string :param tier_name: The name of the tier. Valid values are "WebServer" and "Worker". Defaults to "WebServer". The ``tier_name`` and a ``tier_type`` parameters are related and the values provided must be valid. The possible combinations are: * "WebServer" and "Standard" (the default) * "Worker" and "SQS/HTTP" :type tier_type: string :param tier_type: The type of the tier. Valid values are "Standard" if ``tier_name`` is "WebServer" and "SQS/HTTP" if ``tier_name`` is "Worker". Defaults to "Standard". :type tier_version: string :type tier_version: The version of the tier. Valid values currently are "1.0". Defaults to "1.0". :raises: TooManyEnvironmentsException, InsufficientPrivilegesException r@EnvironmentNamerHrRrSr:rArUrVOptionsToRemove.member Tier.Name Tier.Type Tier.VersionCreateEnvironmentr\build_list_paramsr9)rrDenvironment_namerLr]r^r=rErboptions_to_remove tier_name tier_type tier_versionr5rrrcreate_environments6b  zLayer1.create_environmentcC|jdidS)a Creates the Amazon S3 storage location for the account. This location is used to store user log files. :raises: TooManyBucketsException, S3SubscriptionRequiredException, InsufficientPrivilegesException CreateStorageLocationr5r<r rrrcreate_storage_locationgs zLayer1.create_storage_locationcCs&d|i}|r |||d<|d|S)a  Deletes the specified application along with all associated versions and configurations. The application versions will not be deleted from your Amazon S3 bucket. :type application_name: string :param application_name: The name of the application to delete. :type terminate_env_by_force: boolean :param terminate_env_by_force: When set to true, running environments will be terminated before deleting the application. :raises: OperationInProgressException r@TerminateEnvByForceDeleteApplicationrK)rrDterminate_env_by_forcer5rrrdelete_applicationss  zLayer1.delete_applicationcCs(||d}|r|||d<|d|S)aDeletes the specified version from the specified application. :type application_name: string :param application_name: The name of the application to delete releases from. :type version_label: string :param version_label: The label of the version to delete. :type delete_source_bundle: boolean :param delete_source_bundle: Indicates whether to delete the associated source bundle from Amazon S3. Valid Values: true | false :raises: SourceBundleDeletionException, InsufficientPrivilegesException, OperationInProgressException, S3LocationNotInServiceRegionException rGDeleteSourceBundleDeleteApplicationVersionrK)rrDrLdelete_source_bundler5rrrdelete_application_versions z!Layer1.delete_application_versioncC||d}|d|S)aDeletes 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 rQDeleteConfigurationTemplater<)rrDr]r5rrrdelete_configuration_templates z$Layer1.delete_configuration_templatecCr)am 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. reDeleteEnvironmentConfigurationr<)rrDrnr5rrr delete_environment_configurations z'Layer1.delete_environment_configurationcCs.i}|r||d<|r|||d|d|S)aReturns descriptions for existing application versions. :type application_name: string :param application_name: If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include ones that are associated with the specified application. :type version_labels: list :param version_labels: If specified, restricts the returned descriptions to only include ones that have the specified version labels. r@zVersionLabels.memberDescribeApplicationVersionsrmr9)rrDversion_labelsr5rrrdescribe_application_versionss z$Layer1.describe_application_versionscCs"i}|r |||d|d|S)aReturns the descriptions of existing applications. :type application_names: list :param application_names: If specified, AWS Elastic Beanstalk restricts the returned descriptions to only include those with the specified names. zApplicationNames.memberDescribeApplicationsr)rapplication_namesr5rrrdescribe_applicationss   zLayer1.describe_applicationscCsRi}|r||d<|r||d<|r||d<|r||d<|r#|||d|d|S)a}Describes configuration options used in a template or environment. Describes the configuration options that are used in a particular configuration template or environment, or that a specified solution stack defines. The description includes the values the options, their default values, and an indication of the required action on a running environment if an option value is changed. :type application_name: string :param application_name: The name of the application associated with the configuration template or environment. Only needed if you want to describe the configuration options associated with either the configuration template or environment. :type template_name: string :param template_name: The name of the configuration template whose configuration options you want to describe. :type environment_name: string :param environment_name: The name of the environment whose configuration options you want to describe. :type solution_stack_name: string :param solution_stack_name: The name of the solution stack whose configuration options you want to describe. :type options: list :param options: If specified, restricts the descriptions to only the specified options. r@rRrfrSzOptions.memberDescribeConfigurationOptionsr)rrDr]rnr^optionsr5rrrdescribe_configuration_optionss# z%Layer1.describe_configuration_optionscC,d|i}|r ||d<|r||d<|d|S)a> 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. r@rRrfDescribeConfigurationSettingsr<)rrDr]rnr5rrrdescribe_configuration_settings(s ! z&Layer1.describe_configuration_settingscC(i}|r||d<|r||d<|d|S)aReturns AWS resources for this environment. :type environment_id: string :param environment_id: The ID of the environment to retrieve AWS resource usage data. Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :type environment_name: string :param environment_name: The name of the environment to retrieve AWS resource usage data. Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :raises: InsufficientPrivilegesException rTrfDescribeEnvironmentResourcesr<rrarnr5rrrdescribe_environment_resourcesPs  z%Layer1.describe_environment_resourcescCsji}|r||d<|r||d<|r|||d|r |||d|r)|||d<|r/||d<|d|S)aReturns descriptions for existing environments. :type application_name: string :param application_name: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application. :type version_label: string :param version_label: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that are associated with this application version. :type environment_ids: list :param environment_ids: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified IDs. :type environment_names: list :param environment_names: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those that have the specified names. :type include_deleted: boolean :param include_deleted: Indicates whether to include deleted environments: true: Environments that have been deleted after IncludedDeletedBackTo are displayed. false: Do not include deleted environments. :type included_deleted_back_to: timestamp :param included_deleted_back_to: If specified when IncludeDeleted is set to true, then environments deleted after this date are displayed. r@rHzEnvironmentIds.memberzEnvironmentNames.memberIncludeDeletedIncludedDeletedBackToDescribeEnvironments)rmr&r9)rrDrLenvironment_idsenvironment_namesinclude_deletedincluded_deleted_back_tor5rrrdescribe_environmentsis$% zLayer1.describe_environmentsc Csi} |r|| d<|r|| d<|r|| d<|r|| d<|r || d<|r&|| d<|r,|| d<|r2|| d<| r8| | d <| r>| | d <| rD| | d <|d | S) aReturns event descriptions matching criteria up to the last 6 weeks. :type application_name: string :param application_name: If specified, AWS Elastic Beanstalk restricts the returned descriptions to include only those associated with this application. :type version_label: string :param version_label: If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this application version. :type template_name: string :param template_name: If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that are associated with this environment configuration. :type environment_id: string :param environment_id: If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment. :type environment_name: string :param environment_name: If specified, AWS Elastic Beanstalk restricts the returned descriptions to those associated with this environment. :type request_id: string :param request_id: If specified, AWS Elastic Beanstalk restricts the described events to include only those associated with this request ID. :type severity: string :param severity: If specified, limits the events returned from this call to include only those with the specified severity or higher. :type start_time: timestamp :param start_time: If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur on or after this time. :type end_time: timestamp :param end_time: If specified, AWS Elastic Beanstalk restricts the returned descriptions to those that occur up to, but not including, the EndTime. :type max_records: integer :param max_records: Specifies the maximum number of events that can be returned, beginning with the most recent event. :type next_token: string :param next_token: Pagination token. If specified, the events return the next batch of results. r@rHrRrTrf RequestIdSeverity StartTimeEndTime MaxRecords NextTokenDescribeEventsr<) rrDrLr]rarn request_idseverity start_timeend_time max_records next_tokenr5rrrdescribe_eventss0: zLayer1.describe_eventscCrt)z5Returns a list of the available solution stack names.ListAvailableSolutionStacksrvr<r rrrlist_available_solution_stackssz%Layer1.list_available_solution_stackscCr)a Deletes and recreates all of the AWS resources (for example: the Auto Scaling group, load balancer, etc.) for a specified environment and forces a restart. :type environment_id: string :param environment_id: The ID of the environment to rebuild. Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :type environment_name: string :param environment_name: The name of the environment to rebuild. Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :raises InvalidParameterValue: If environment_name doesn't refer to a currently active environment :raises: InsufficientPrivilegesException rTrfRebuildEnvironmentr<rrrrrebuild_environments  zLayer1.rebuild_environmenttailcCr)a, Initiates a request to compile the specified type of information of the deployed environment. Setting the InfoType to tail compiles the last lines from the application server log files of every Amazon EC2 instance in your environment. Use RetrieveEnvironmentInfo to access the compiled information. :type info_type: string :param info_type: The type of information to request. :type environment_id: string :param environment_id: The ID of the environment of the requested data. If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue error. Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :type environment_name: string :param environment_name: The name of the environment of the requested data. If no such environment is found, RequestEnvironmentInfo returns an InvalidParameterValue error. Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. InfoTyperTrfRequestEnvironmentInfor<r info_typerarnr5rrrrequest_environment_infos  zLayer1.request_environment_infocCr)a  Causes the environment to restart the application container server running on each Amazon EC2 instance. :type environment_id: string :param environment_id: The ID of the environment to restart the server for. Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :type environment_name: string :param environment_name: The name of the environment to restart the server for. Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. rTrfRestartAppServerr<rrrrrestart_app_server5s  zLayer1.restart_app_servercCr)a Retrieves the compiled information from a RequestEnvironmentInfo request. :type info_type: string :param info_type: The type of information to retrieve. :type environment_id: string :param environment_id: The ID of the data's environment. If no such environment is found, returns an InvalidParameterValue error. Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :type environment_name: string :param environment_name: The name of the data's environment. If no such environment is found, returns an InvalidParameterValue error. Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. rrTrfRetrieveEnvironmentInfor<rrrrretrieve_environment_infoMs  z Layer1.retrieve_environment_infocCs@i}|r||d<|r||d<|r||d<|r||d<|d|S)a(Swaps the CNAMEs of two environments. :type source_environment_id: string :param source_environment_id: The ID of the source environment. Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentId, you must specify the DestinationEnvironmentId. :type source_environment_name: string :param source_environment_name: The name of the source environment. Condition: You must specify at least the SourceEnvironmentID or the SourceEnvironmentName. You may also specify both. If you specify the SourceEnvironmentName, you must specify the DestinationEnvironmentName. :type destination_environment_id: string :param destination_environment_id: The ID of the destination environment. Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentId with the DestinationEnvironmentId. :type destination_environment_name: string :param destination_environment_name: The name of the destination environment. Condition: You must specify at least the DestinationEnvironmentID or the DestinationEnvironmentName. You may also specify both. You must specify the SourceEnvironmentName with the DestinationEnvironmentName. SourceEnvironmentIdSourceEnvironmentNameDestinationEnvironmentIdDestinationEnvironmentNameSwapEnvironmentCNAMEsr<)rsource_environment_idsource_environment_namedestination_environment_iddestination_environment_namer5rrrswap_environment_cnamesks" zLayer1.swap_environment_cnamescCs:i}|r||d<|r||d<|r|||d<|d|S)a=Terminates the specified environment. :type environment_id: string :param environment_id: The ID of the environment to terminate. Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :type environment_name: string :param environment_name: The name of the environment to terminate. Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :type terminate_resources: boolean :param terminate_resources: Indicates whether the associated AWS resources should shut down when the environment is terminated: true: (default) The user AWS resources (for example, the Auto Scaling group, LoadBalancer, etc.) are terminated along with the environment. false: The environment is removed from the AWS Elastic Beanstalk but the AWS resources continue to operate. For more information, see the AWS Elastic Beanstalk User Guide. Default: true Valid Values: true | false :raises: InsufficientPrivilegesException rTrfTerminateResourcesTerminateEnvironmentrK)rrarnterminate_resourcesr5rrrterminate_environments zLayer1.terminate_environmentcCr?)a Updates the specified application to have the specified properties. :type application_name: string :param application_name: The name of the application to update. If no such application is found, UpdateApplication returns an InvalidParameterValue error. :type description: string :param description: A new description for the application. Default: If not specified, AWS Elastic Beanstalk does not update the description. r@rAUpdateApplicationr<rCrrrupdate_applications zLayer1.update_applicationcCs"||d}|r ||d<|d|S)aUpdates the application version to have the properties. :type application_name: string :param application_name: The name of the application associated with this version. If no application is found with this name, UpdateApplication returns an InvalidParameterValue error. :type version_label: string :param version_label: The name of the version to update. If no application version is found with this label, UpdateApplication returns an InvalidParameterValue error. :type description: string :param description: A new description for this release. rGrAUpdateApplicationVersionr<)rrDrLrEr5rrrupdate_application_versions  z!Layer1.update_application_versioncCsH||d}|r ||d<|r|||dd|r|||d|d|S)a Updates the specified configuration template to have the specified properties or configuration option values. :type application_name: string :param application_name: The name of the application associated with the configuration template to update. If no application is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error. :type template_name: string :param template_name: The name of the configuration template to update. If no configuration template is found with this name, UpdateConfigurationTemplate returns an InvalidParameterValue error. :type description: string :param description: A new description for the configuration. :type option_settings: list :param option_settings: A list of configuration option settings to update with the new specified option value. :type options_to_remove: list :param options_to_remove: A list of configuration options to remove from the configuration set. Constraint: You can remove only UserDefined configuration options. :raises: InsufficientPrivilegesException rQrArUrVrgUpdateConfigurationTemplaterl)rrDr]rErbror5rrrupdate_configuration_templates  z$Layer1.update_configuration_templatec Csi} |r|| d<|r|| d<|r|| d<|r|| d<|r || d<|r*|| |dd|r3|| |d|rE| rE| rE|| d <| | d <| | d <|d | S) aU Updates the environment description, deploys a new application version, updates the configuration settings to an entirely new configuration template, or updates select configuration option values in the running environment. Attempting to update both the release and configuration is not allowed and AWS Elastic Beanstalk returns an InvalidParameterCombination error. When updating the configuration settings to a new template or individual settings, a draft configuration is created and DescribeConfigurationSettings for this environment returns two setting descriptions with different DeploymentStatus values. :type environment_id: string :param environment_id: The ID of the environment to update. If no environment with this ID exists, AWS Elastic Beanstalk returns an InvalidParameterValue error. Condition: You must specify either this or an EnvironmentName, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :type environment_name: string :param environment_name: The name of the environment to update. If no environment with this name exists, AWS Elastic Beanstalk returns an InvalidParameterValue error. Condition: You must specify either this or an EnvironmentId, or both. If you do not specify either, AWS Elastic Beanstalk returns MissingRequiredParameter error. :type version_label: string :param version_label: If this parameter is specified, AWS Elastic Beanstalk deploys the named application version to the environment. If no such application version is found, returns an InvalidParameterValue error. :type template_name: string :param template_name: If this parameter is specified, AWS Elastic Beanstalk deploys this configuration template to the environment. If no such configuration template is found, AWS Elastic Beanstalk returns an InvalidParameterValue error. :type description: string :param description: If this parameter is specified, AWS Elastic Beanstalk updates the description of this environment. :type option_settings: list :param option_settings: If specified, AWS Elastic Beanstalk updates the configuration set associated with the running environment and sets the specified configuration options to the requested value. :type options_to_remove: list :param options_to_remove: A list of custom user-defined configuration options to remove from the configuration set for this environment. :type tier_name: string :param tier_name: The name of the tier. Valid values are "WebServer" and "Worker". Defaults to "WebServer". The ``tier_name`` and a ``tier_type`` parameters are related and the values provided must be valid. The possible combinations are: * "WebServer" and "Standard" (the default) * "Worker" and "SQS/HTTP" :type tier_type: string :param tier_type: The type of the tier. Valid values are "Standard" if ``tier_name`` is "WebServer" and "SQS/HTTP" if ``tier_name`` is "Worker". Defaults to "Standard". :type tier_version: string :type tier_version: The version of the tier. Valid values currently are "1.0". Defaults to "1.0". :raises: InsufficientPrivilegesException rTrfrHrRrArUrVrgrhrirjUpdateEnvironmentrl) rrarnrLr]rErbrorprqrrr5rrrupdate_environments2M  zLayer1.update_environmentcCs<d|i}|||dd|r||d<|r||d<|d|S)aj Takes a set of configuration settings and either a configuration template or environment, and determines whether those values are valid. This action returns a list of messages indicating any errors or warnings associated with the selection of option values. :type application_name: string :param application_name: The name of the application that the configuration template or environment belongs to. :type template_name: string :param template_name: The name of the configuration template to validate the settings against. Condition: You cannot specify both this and an environment name. :type environment_name: string :param environment_name: The name of the environment to validate the settings against. Condition: You cannot specify both this and a configuration template name. :type option_settings: list :param option_settings: A list of the options and desired values to evaluate. :raises: InsufficientPrivilegesException r@rUrVrRrfValidateConfigurationSettingsr[)rrDrbr]rnr5rrrvalidate_configuration_settings{s z&Layer1.validate_configuration_settingsc CsLt|dD]\}}d||f}t||D]\}} d||f} | || <qqdS)Nz%s.%s) enumeratezip) rr5 user_valuesprefix tuple_namesi user_valuecurrent_prefixkeyvaluefull_keyrrrr\s   zLayer1._build_list_params)NNTNNNNNrNNrNNN)rr')N)NNNN)NNNNNN) NNNNNNNNNrd)NN)NNNNN) NNNNNNNNNNN)rNN)NNN))__name__ __module__ __qualname__ APIVersionrr r r!r&r9r>rFrPrcrsrwr{rrrrrrrrrrrrrrrrrrrrrrr\ __classcell__rrrrr s   7 O {    1 (  6 S  #  - &  - f (r) r.boto.jsonresponse boto.compatrboto.regioninforboto.connectionrrrrrrs