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.
Container for the parameters to the CreateConfigurationTemplate operation. Creates an AWS Elastic Beanstalk configuration template, associated with a specific Elastic Beanstalk application. You define application configuration settings in a configuration template. You can then use the configuration template to deploy different versions of the application with the same configuration settings.
Templates aren't associated with any environment. The EnvironmentName
response
element is always null
.
Related Topics
Namespace: Amazon.ElasticBeanstalk.Model
Assembly: AWSSDK.ElasticBeanstalk.dll
Version: 3.x.y.z
public class CreateConfigurationTemplateRequest : AmazonElasticBeanstalkRequest IAmazonWebServiceRequest
The CreateConfigurationTemplateRequest type exposes the following members
Name | Description | |
---|---|---|
![]() |
CreateConfigurationTemplateRequest() |
Empty constructor used to set properties independently even when a simple constructor is available |
![]() |
CreateConfigurationTemplateRequest(string, string) |
Instantiates CreateConfigurationTemplateRequest with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
![]() |
ApplicationName | System.String |
Gets and sets the property ApplicationName. The name of the Elastic Beanstalk application to associate with this configuration template. |
![]() |
Description | System.String |
Gets and sets the property Description. An optional description for this configuration. |
![]() |
EnvironmentId | System.String |
Gets and sets the property EnvironmentId.
The ID of an environment whose settings you want to use to create the configuration
template. You must specify |
![]() |
OptionSettings | System.Collections.Generic.List<Amazon.ElasticBeanstalk.Model.ConfigurationOptionSetting> |
Gets and sets the property OptionSettings. Option values for the Elastic Beanstalk configuration, such as the instance type. If specified, these values override the values obtained from the solution stack or the source configuration template. For a complete list of Elastic Beanstalk configuration options, see Option Values in the AWS Elastic Beanstalk Developer Guide. |
![]() |
PlatformArn | System.String |
Gets and sets the property PlatformArn. The Amazon Resource Name (ARN) of the custom platform. For more information, see Custom Platforms in the AWS Elastic Beanstalk Developer Guide.
If you specify |
![]() |
SolutionStackName | System.String |
Gets and sets the property SolutionStackName.
The name of an Elastic Beanstalk solution stack (platform version) that this configuration
uses. For example,
You must specify
Use the |
![]() |
SourceConfiguration | Amazon.ElasticBeanstalk.Model.SourceConfiguration |
Gets and sets the property SourceConfiguration. An Elastic Beanstalk configuration template to base this one on. If specified, Elastic Beanstalk uses the configuration values from the specified configuration template to create a new configuration.
Values specified in
You must specify Constraint: If both solution stack name and source configuration are specified, the solution stack of the source configuration template must match the specified solution stack name. |
![]() |
Tags | System.Collections.Generic.List<Amazon.ElasticBeanstalk.Model.Tag> |
Gets and sets the property Tags. Specifies the tags applied to the configuration template. |
![]() |
TemplateName | System.String |
Gets and sets the property TemplateName. The name of the configuration template. Constraint: This name must be unique per application. |
The following operation creates a configuration template named my-app-v1 from the settings applied to an environment with the id e-rpqsewtp2j:
var client = new AmazonElasticBeanstalkClient(); var response = client.CreateConfigurationTemplate(new CreateConfigurationTemplateRequest { ApplicationName = "my-app", EnvironmentId = "e-rpqsewtp2j", TemplateName = "my-app-v1" }); string applicationName = response.ApplicationName; DateTime dateCreated = response.DateCreated; DateTime dateUpdated = response.DateUpdated; string solutionStackName = response.SolutionStackName; string templateName = response.TemplateName;
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5