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.

Container for the parameters to the CreateConfigurationTemplate operation. 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.

Related Topics

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ElasticBeanstalk.AmazonElasticBeanstalkRequest
      Amazon.ElasticBeanstalk.Model.CreateConfigurationTemplateRequest

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

Syntax

C#
public class CreateConfigurationTemplateRequest : AmazonElasticBeanstalkRequest
         IAmazonWebServiceRequest

The CreateConfigurationTemplateRequest type exposes the following members

Constructors

NameDescription
Public Method CreateConfigurationTemplateRequest()

Empty constructor used to set properties independently even when a simple constructor is available

Public Method CreateConfigurationTemplateRequest(string, string)

Instantiates CreateConfigurationTemplateRequest with the parameterized properties

Properties

NameTypeDescription
Public Property ApplicationName System.String

Gets and sets the property ApplicationName.

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.

Public Property Description System.String

Gets and sets the property Description.

Describes this configuration.

Public Property EnvironmentId System.String

Gets and sets the property EnvironmentId.

The ID of the environment used with this configuration template.

Public Property OptionSettings System.Collections.Generic.List<Amazon.ElasticBeanstalk.Model.ConfigurationOptionSetting>

Gets and sets the property OptionSettings.

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.

Public Property PlatformArn System.String

Gets and sets the property PlatformArn.

The ARN of the custome platform.

Public Property SolutionStackName System.String

Gets and sets the property SolutionStackName.

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.

A solution stack name or a source configuration parameter must be specified, otherwise AWS Elastic Beanstalk returns an InvalidParameterValue error.

If a solution stack name is not specified and the source configuration parameter is specified, AWS Elastic Beanstalk uses the same solution stack as the source configuration template.

Public Property SourceConfiguration Amazon.ElasticBeanstalk.Model.SourceConfiguration

Gets and sets the property SourceConfiguration.

If specified, AWS Elastic Beanstalk uses the configuration values from the specified configuration template to create a new configuration.

Values specified in the OptionSettings parameter of this call overrides any values obtained from the SourceConfiguration.

If no configuration template is found, returns an InvalidParameterValue error.

Constraint: If both the solution stack name parameter and the source configuration parameters are specified, the solution stack of the source configuration template must match the specified solution stack name or else AWS Elastic Beanstalk returns an InvalidParameterCombination error.

Public Property TemplateName System.String

Gets and sets the property TemplateName.

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.

Examples

The following operation creates a configuration template named my-app-v1 from the settings applied to an environment with the id e-rpqsewtp2j:

To create a configuration template


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;

            

Version Information

.NET Standard:
Supported in: 1.3

.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