Class CfnEnvironmentMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEnvironmentMixinProps>
- Enclosing interface:
CfnEnvironmentMixinProps
CfnEnvironmentMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplicationName(String applicationName) Sets the value ofCfnEnvironmentMixinProps.getApplicationName()applicationName(IApplicationRef applicationName) Sets the value ofCfnEnvironmentMixinProps.getApplicationName()build()Builds the configured instance.cnamePrefix(String cnamePrefix) Sets the value ofCfnEnvironmentMixinProps.getCnamePrefix()description(String description) Sets the value ofCfnEnvironmentMixinProps.getDescription()environmentName(String environmentName) Sets the value ofCfnEnvironmentMixinProps.getEnvironmentName()operationsRole(String operationsRole) Sets the value ofCfnEnvironmentMixinProps.getOperationsRole()optionSettings(List<? extends Object> optionSettings) Sets the value ofCfnEnvironmentMixinProps.getOptionSettings()optionSettings(IResolvable optionSettings) Sets the value ofCfnEnvironmentMixinProps.getOptionSettings()platformArn(String platformArn) Sets the value ofCfnEnvironmentMixinProps.getPlatformArn()solutionStackName(String solutionStackName) Sets the value ofCfnEnvironmentMixinProps.getSolutionStackName()Sets the value ofCfnEnvironmentMixinProps.getTags()templateName(String templateName) Sets the value ofCfnEnvironmentMixinProps.getTemplateName()templateName(IConfigurationTemplateRef templateName) Sets the value ofCfnEnvironmentMixinProps.getTemplateName()Sets the value ofCfnEnvironmentMixinProps.getTier()tier(IResolvable tier) Sets the value ofCfnEnvironmentMixinProps.getTier()versionLabel(String versionLabel) Sets the value ofCfnEnvironmentMixinProps.getVersionLabel()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationName
Sets the value ofCfnEnvironmentMixinProps.getApplicationName()- Parameters:
applicationName- The name of the application that is associated with this environment.- Returns:
this
-
applicationName
@Stability(Stable) public CfnEnvironmentMixinProps.Builder applicationName(IApplicationRef applicationName) Sets the value ofCfnEnvironmentMixinProps.getApplicationName()- Parameters:
applicationName- The name of the application that is associated with this environment.- Returns:
this
-
cnamePrefix
Sets the value ofCfnEnvironmentMixinProps.getCnamePrefix()- Parameters:
cnamePrefix- If specified, the environment attempts to use this value as the prefix for the CNAME in your Elastic Beanstalk environment URL. If not specified, the CNAME is generated automatically by appending a random alphanumeric string to the environment name.- Returns:
this
-
description
Sets the value ofCfnEnvironmentMixinProps.getDescription()- Parameters:
description- Your description for this environment.- Returns:
this
-
environmentName
Sets the value ofCfnEnvironmentMixinProps.getEnvironmentName()- Parameters:
environmentName- A unique name for the environment. Constraint: Must be from 4 to 40 characters in length. The name can contain only letters, numbers, and hyphens. It can't start or end with a hyphen. This name must be unique within a region in your account.If you don't specify the
CNAMEPrefixparameter, the environment name becomes part of the CNAME, and therefore part of the visible URL for your application.If you don't specify an environment name, AWS CloudFormation generates a unique physical ID and uses that ID for the environment name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
- Returns:
this
-
operationsRole
Sets the value ofCfnEnvironmentMixinProps.getOperationsRole()- Parameters:
operationsRole-
The Amazon Resource Name (ARN) of an existing IAM role to be used as the environment's operations role. If specified, Elastic Beanstalk uses the operations role for permissions to downstream services during this call and during subsequent calls acting on this environment. To specify an operations role, you must have theThe operations role feature of AWS Elastic Beanstalk is in beta release and is subject to change.
iam:PassRolepermission for the role.- Returns:
this
-
optionSettings
@Stability(Stable) public CfnEnvironmentMixinProps.Builder optionSettings(IResolvable optionSettings) Sets the value ofCfnEnvironmentMixinProps.getOptionSettings()- Parameters:
optionSettings- Key-value pairs defining configuration options for this environment, such as the instance type. These options override the values that are defined in the solution stack or the configuration template . If you remove any options during a stack update, the removed options retain their current values.- Returns:
this
-
optionSettings
@Stability(Stable) public CfnEnvironmentMixinProps.Builder optionSettings(List<? extends Object> optionSettings) Sets the value ofCfnEnvironmentMixinProps.getOptionSettings()- Parameters:
optionSettings- Key-value pairs defining configuration options for this environment, such as the instance type. These options override the values that are defined in the solution stack or the configuration template . If you remove any options during a stack update, the removed options retain their current values.- Returns:
this
-
platformArn
Sets the value ofCfnEnvironmentMixinProps.getPlatformArn()- Parameters:
platformArn- The Amazon Resource Name (ARN) of the custom platform to use with the environment. For more information, see Custom Platforms in the AWS Elastic Beanstalk Developer Guide .If you specify
PlatformArn, don't specifySolutionStackName.- Returns:
this
-
solutionStackName
@Stability(Stable) public CfnEnvironmentMixinProps.Builder solutionStackName(String solutionStackName) Sets the value ofCfnEnvironmentMixinProps.getSolutionStackName()- Parameters:
solutionStackName- The name of an Elastic Beanstalk solution stack (platform version) to use with the environment. If specified, Elastic Beanstalk sets the configuration values to the default values associated with the specified solution stack. For a list of current solution stacks, see Elastic Beanstalk Supported Platforms in the AWS Elastic Beanstalk Platforms guide.If you specify
SolutionStackName, don't specifyPlatformArnorTemplateName.- Returns:
this
-
tags
Sets the value ofCfnEnvironmentMixinProps.getTags()- Parameters:
tags- Specifies the tags applied to resources in the environment.- Returns:
this
-
templateName
Sets the value ofCfnEnvironmentMixinProps.getTemplateName()- Parameters:
templateName- The name of the Elastic Beanstalk configuration template to use with the environment.If you specify
TemplateName, then don't specifySolutionStackName.- Returns:
this
-
templateName
@Stability(Stable) public CfnEnvironmentMixinProps.Builder templateName(IConfigurationTemplateRef templateName) Sets the value ofCfnEnvironmentMixinProps.getTemplateName()- Parameters:
templateName- The name of the Elastic Beanstalk configuration template to use with the environment.If you specify
TemplateName, then don't specifySolutionStackName.- Returns:
this
-
tier
Sets the value ofCfnEnvironmentMixinProps.getTier()- Parameters:
tier- Specifies the tier to use in creating this environment. The environment tier that you choose determines whether Elastic Beanstalk provisions resources to support a web application that handles HTTP(S) requests or a web application that handles background-processing tasks.- Returns:
this
-
tier
@Stability(Stable) public CfnEnvironmentMixinProps.Builder tier(CfnEnvironmentPropsMixin.TierProperty tier) Sets the value ofCfnEnvironmentMixinProps.getTier()- Parameters:
tier- Specifies the tier to use in creating this environment. The environment tier that you choose determines whether Elastic Beanstalk provisions resources to support a web application that handles HTTP(S) requests or a web application that handles background-processing tasks.- Returns:
this
-
versionLabel
Sets the value ofCfnEnvironmentMixinProps.getVersionLabel()- Parameters:
versionLabel- The name of the application version to deploy. Default: If not specified, Elastic Beanstalk attempts to deploy the sample application.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEnvironmentMixinProps>- Returns:
- a new instance of
CfnEnvironmentMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-