AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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

Note:

For PCL this operation is only available in asynchronous form. Please refer to UpdateConfigurationTemplateAsync.

Namespace: Amazon.ElasticBeanstalk
Assembly: AWSSDK.ElasticBeanstalk.dll
Version: 3.x.y.z

Syntax

C#
public virtual UpdateConfigurationTemplateResponse UpdateConfigurationTemplate(
         UpdateConfigurationTemplateRequest request
)
Parameters
request
Type: Amazon.ElasticBeanstalk.Model.UpdateConfigurationTemplateRequest

Container for the necessary parameters to execute the UpdateConfigurationTemplate service method.

Return Value
The response from the UpdateConfigurationTemplate service method, as returned by ElasticBeanstalk.

Exceptions

ExceptionCondition
InsufficientPrivilegesException The specified account does not have sufficient privileges for one of more AWS services.
TooManyBucketsException The specified account has reached its limit of Amazon S3 buckets.

Examples

The following operation removes the configured CloudWatch custom health metrics configuration ConfigDocument from a saved configuration template named my-template:

To update a configuration template


var response = client.UpdateConfigurationTemplate(new UpdateConfigurationTemplateRequest 
{
    ApplicationName = "my-app",
    OptionsToRemove = new List {
        new OptionSpecification {
            Namespace = "aws:elasticbeanstalk:healthreporting:system",
            OptionName = "ConfigDocument"
        }
    },
    TemplateName = "my-template"
});

string applicationName = response.ApplicationName;
DateTime dateCreated = response.DateCreated;
DateTime dateUpdated = response.DateUpdated;
string solutionStackName = response.SolutionStackName;
string templateName = response.TemplateName;

            

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also