update_configuration_template
¶
update_configuration_template(
application_name: ApplicationName,
template_name: ConfigurationTemplateName,
*,
config_overrides: Optional[ElasticBeanstalkClientConfig] = None,
description: Optional[Description] = None,
option_settings: Optional[ConfigurationOptionSettingsList] = None,
options_to_remove: Optional[OptionsSpecifierList] = None,
) -> ConfigurationSettingsDescription
Updates the specified configuration template to have the specified properties or configuration option values.
If a property (for example, ApplicationName) is not provided, its value remains unchanged. To clear such properties, specify an empty string.
Related Topics
Parameters:
-
application_name(ApplicationName) –The name of the application associated with the configuration template to update.
If no application is found with this name,
UpdateConfigurationTemplatereturns anInvalidParameterValueerror. -
template_name(ConfigurationTemplateName) –The name of the configuration template to update.
If no configuration template is found with this name,
UpdateConfigurationTemplatereturns anInvalidParameterValueerror. -
description(Optional[Description], default:None) –A new description for the configuration.
-
option_settings(Optional[ConfigurationOptionSettingsList], default:None) –A list of configuration option settings to update with the new specified option value.
-
options_to_remove(Optional[OptionsSpecifierList], default:None) –A list of configuration options to remove from the configuration set.
Constraint: You can remove only
UserDefinedconfiguration options.
Raises:
-
InsufficientPrivilegesException–The specified account does not have sufficient privileges for one or more Amazon Web Services services.
-
TooManyBucketsException–The specified account has reached its limit of Amazon S3 buckets.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update a configuration template The following operation removes the configured CloudWatch custom health metrics configuration ConfigDocument from a saved configuration template named my-template:
>>> client.update_configuration_template(application_name='my-app', template_name='my-template', options_to_remove=[{'Namespace': 'aws:elasticbeanstalk:healthreporting:system', 'OptionName': 'ConfigDocument'}])
Source code in docs_src/capo_elastic_beanstalk/_services/elastic_beanstalk.py
3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 | |