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
DescribeConfigurationOptions
DescribeConfigurationSettings
ListAvailableSolutionStacks
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The name of the application to associate with this configuration template. If no application is found with this name, AWS Elastic Beanstalk returns an |
|
|
Required |
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 |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Creates a new configuration template.
// Instantiate the class $bean = new AmazonElasticBeanstalk(); $response = $bean->create_configuration_template('my-application', 'my-template', array( 'SolutionStackName' => '32bit Amazon Linux running Tomcat 6', 'Description' => 'This is my default template.', 'OptionSettings' => array( array( 'Namespace' => 'aws:elasticbeanstalk:sns:topics', 'OptionName' => 'Notification Topic Name', 'Value' => 'elasticbeanstalk-event-topic' ), array( 'Namespace' => 'aws:elasticbeanstalk:sns:topics', 'OptionName' => 'Notification Protocol', 'Value' => 'sqs' ), array( 'Namespace' => 'aws:elasticbeanstalk:sns:topics', 'OptionName' => 'Notification Topic ARN', 'Value' => 'arn:aws:sqs:us-east-1:0123456789012:elasticbeanstalk-event-queue' ) ) )); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/elasticbeanstalk.class.php | Toggle source view (26 lines) | View on GitHub