- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
UpdateConfigurationTemplateCommand
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
-
DescribeConfigurationOptions
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { ElasticBeanstalkClient, UpdateConfigurationTemplateCommand } from "@aws-sdk/client-elastic-beanstalk"; // ES Modules import
// const { ElasticBeanstalkClient, UpdateConfigurationTemplateCommand } = require("@aws-sdk/client-elastic-beanstalk"); // CommonJS import
const client = new ElasticBeanstalkClient(config);
const input = { // UpdateConfigurationTemplateMessage
ApplicationName: "STRING_VALUE", // required
TemplateName: "STRING_VALUE", // required
Description: "STRING_VALUE",
OptionSettings: [ // ConfigurationOptionSettingsList
{ // ConfigurationOptionSetting
ResourceName: "STRING_VALUE",
Namespace: "STRING_VALUE",
OptionName: "STRING_VALUE",
Value: "STRING_VALUE",
},
],
OptionsToRemove: [ // OptionsSpecifierList
{ // OptionSpecification
ResourceName: "STRING_VALUE",
Namespace: "STRING_VALUE",
OptionName: "STRING_VALUE",
},
],
};
const command = new UpdateConfigurationTemplateCommand(input);
const response = await client.send(command);
// { // ConfigurationSettingsDescription
// SolutionStackName: "STRING_VALUE",
// PlatformArn: "STRING_VALUE",
// ApplicationName: "STRING_VALUE",
// TemplateName: "STRING_VALUE",
// Description: "STRING_VALUE",
// EnvironmentName: "STRING_VALUE",
// DeploymentStatus: "deployed" || "pending" || "failed",
// DateCreated: new Date("TIMESTAMP"),
// DateUpdated: new Date("TIMESTAMP"),
// OptionSettings: [ // ConfigurationOptionSettingsList
// { // ConfigurationOptionSetting
// ResourceName: "STRING_VALUE",
// Namespace: "STRING_VALUE",
// OptionName: "STRING_VALUE",
// Value: "STRING_VALUE",
// },
// ],
// };
Example Usage
UpdateConfigurationTemplateCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
ApplicationName Required | string | undefined | The name of the application associated with the configuration template to update. If no application is found with this name, |
TemplateName Required | string | undefined | The name of the configuration template to update. If no configuration template is found with this name, |
Description | string | undefined | A new description for the configuration. |
OptionSettings | ConfigurationOptionSetting[] | undefined | A list of configuration option settings to update with the new specified option value. |
OptionsToRemove | OptionSpecification[] | undefined | A list of configuration options to remove from the configuration set. Constraint: You can remove only |
UpdateConfigurationTemplateCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
ApplicationName | string | undefined | The name of the application associated with this configuration set. |
DateCreated | Date | undefined | The date (in UTC time) when this configuration set was created. |
DateUpdated | Date | undefined | The date (in UTC time) when this configuration set was last modified. |
DeploymentStatus | ConfigurationDeploymentStatus | undefined | If this configuration set is associated with an environment, the
|
Description | string | undefined | Describes this configuration set. |
EnvironmentName | string | undefined | If not |
OptionSettings | ConfigurationOptionSetting[] | undefined | A list of the configuration options and their values in this configuration set. |
PlatformArn | string | undefined | The ARN of the platform version. |
SolutionStackName | string | undefined | The name of the solution stack this configuration set uses. |
TemplateName | string | undefined | If not |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
InsufficientPrivilegesException | client | The specified account does not have sufficient privileges for one or more AWS services. |
TooManyBucketsException | client | The specified account has reached its limit of Amazon S3 buckets. |
ElasticBeanstalkServiceException | Base exception class for all service exceptions from ElasticBeanstalk service. |