Class CfnConfigurationTemplate
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::ElasticBeanstalk::ConfigurationTemplate.
Specify an AWS Elastic Beanstalk configuration template by using the AWS::ElasticBeanstalk::ConfigurationTemplate resource in an AWS CloudFormation template.
The AWS::ElasticBeanstalk::ConfigurationTemplate resource is an AWS Elastic Beanstalk resource type that specifies an 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.
The Elastic Beanstalk console and documentation often refer to configuration templates as saved configurations . When you set configuration options in a saved configuration (configuration template), Elastic Beanstalk applies them with a particular precedence as part of applying options from multiple sources. For more information, see Configuration Options in the AWS Elastic Beanstalk Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.elasticbeanstalk.*;
CfnConfigurationTemplate cfnConfigurationTemplate = CfnConfigurationTemplate.Builder.create(this, "MyCfnConfigurationTemplate")
.applicationName("applicationName")
// the properties below are optional
.description("description")
.environmentId("environmentId")
.optionSettings(List.of(ConfigurationOptionSettingProperty.builder()
.namespace("namespace")
.optionName("optionName")
// the properties below are optional
.resourceName("resourceName")
.value("value")
.build()))
.platformArn("platformArn")
.solutionStackName("solutionStackName")
.sourceConfiguration(SourceConfigurationProperty.builder()
.applicationName("applicationName")
.templateName("templateName")
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnConfigurationTemplate.static interfaceUse theConfigurationOptionSettingproperty type to specify an option for an AWS Elastic Beanstalk configuration template when defining an AWS::ElasticBeanstalk::ConfigurationTemplate resource in an AWS CloudFormation template.static interfaceUse theSourceConfigurationproperty type to specify another AWS Elastic Beanstalk configuration template as the base to creating a new AWS::ElasticBeanstalk::ConfigurationTemplate resource in an AWS CloudFormation template.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnConfigurationTemplate(Construct scope, String id, CfnConfigurationTemplateProps props) Create a newAWS::ElasticBeanstalk::ConfigurationTemplate.protectedCfnConfigurationTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnConfigurationTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe name of the Elastic Beanstalk application to associate with this configuration template.An optional description for this configuration.The ID of an environment whose settings you want to use to create the configuration template.Option values for the Elastic Beanstalk configuration, such as the instance type.The Amazon Resource Name (ARN) of the custom platform.The name of an Elastic Beanstalk solution stack (platform version) that this configuration uses.An Elastic Beanstalk configuration template to base this one on.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetApplicationName(String value) The name of the Elastic Beanstalk application to associate with this configuration template.voidsetDescription(String value) An optional description for this configuration.voidsetEnvironmentId(String value) The ID of an environment whose settings you want to use to create the configuration template.voidsetOptionSettings(List<Object> value) Option values for the Elastic Beanstalk configuration, such as the instance type.voidsetOptionSettings(IResolvable value) Option values for the Elastic Beanstalk configuration, such as the instance type.voidsetPlatformArn(String value) The Amazon Resource Name (ARN) of the custom platform.voidsetSolutionStackName(String value) The name of an Elastic Beanstalk solution stack (platform version) that this configuration uses.voidAn Elastic Beanstalk configuration template to base this one on.voidAn Elastic Beanstalk configuration template to base this one on.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnConfigurationTemplate
protected CfnConfigurationTemplate(software.amazon.jsii.JsiiObjectRef objRef) -
CfnConfigurationTemplate
protected CfnConfigurationTemplate(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnConfigurationTemplate
@Stability(Stable) public CfnConfigurationTemplate(@NotNull Construct scope, @NotNull String id, @NotNull CfnConfigurationTemplateProps props) Create a newAWS::ElasticBeanstalk::ConfigurationTemplate.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrTemplateName
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getApplicationName
The name of the Elastic Beanstalk application to associate with this configuration template. -
setApplicationName
The name of the Elastic Beanstalk application to associate with this configuration template. -
getDescription
An optional description for this configuration. -
setDescription
An optional description for this configuration. -
getEnvironmentId
The ID of an environment whose settings you want to use to create the configuration template.You must specify
EnvironmentIdif you don't specifyPlatformArn,SolutionStackName, orSourceConfiguration. -
setEnvironmentId
The ID of an environment whose settings you want to use to create the configuration template.You must specify
EnvironmentIdif you don't specifyPlatformArn,SolutionStackName, orSourceConfiguration. -
getOptionSettings
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 .
-
setOptionSettings
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 .
-
setOptionSettings
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 .
-
getPlatformArn
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
PlatformArn, then don't specifySolutionStackName. -
setPlatformArn
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
PlatformArn, then don't specifySolutionStackName. -
getSolutionStackName
The name of an Elastic Beanstalk solution stack (platform version) that this configuration uses.For example,
64bit Amazon Linux 2013.09 running Tomcat 7 Java 7. A solution stack specifies the operating system, runtime, and application server for a configuration template. It also determines the set of configuration options as well as the possible and default values. For more information, see Supported Platforms in the AWS Elastic Beanstalk Developer Guide .You must specify
SolutionStackNameif you don't specifyPlatformArn,EnvironmentId, orSourceConfiguration.Use the
ListAvailableSolutionStacksAPI to obtain a list of available solution stacks. -
setSolutionStackName
The name of an Elastic Beanstalk solution stack (platform version) that this configuration uses.For example,
64bit Amazon Linux 2013.09 running Tomcat 7 Java 7. A solution stack specifies the operating system, runtime, and application server for a configuration template. It also determines the set of configuration options as well as the possible and default values. For more information, see Supported Platforms in the AWS Elastic Beanstalk Developer Guide .You must specify
SolutionStackNameif you don't specifyPlatformArn,EnvironmentId, orSourceConfiguration.Use the
ListAvailableSolutionStacksAPI to obtain a list of available solution stacks. -
getSourceConfiguration
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
OptionSettingsoverride any values obtained from theSourceConfiguration.You must specify
SourceConfigurationif you don't specifyPlatformArn,EnvironmentId, orSolutionStackName.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.
-
setSourceConfiguration
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
OptionSettingsoverride any values obtained from theSourceConfiguration.You must specify
SourceConfigurationif you don't specifyPlatformArn,EnvironmentId, orSolutionStackName.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.
-
setSourceConfiguration
@Stability(Stable) public void setSourceConfiguration(@Nullable CfnConfigurationTemplate.SourceConfigurationProperty value) 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
OptionSettingsoverride any values obtained from theSourceConfiguration.You must specify
SourceConfigurationif you don't specifyPlatformArn,EnvironmentId, orSolutionStackName.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.
-