Class CfnApp.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApp>
- Enclosing class:
CfnApp
CfnApp
.-
Method Summary
Modifier and TypeMethodDescriptionappSource
(IResolvable appSource) ASource
object that specifies the app repository.appSource
(CfnApp.SourceProperty appSource) ASource
object that specifies the app repository.attributes
(Map<String, String> attributes) One or more user-defined key/value pairs to be added to the stack attributes.attributes
(IResolvable attributes) One or more user-defined key/value pairs to be added to the stack attributes.build()
static CfnApp.Builder
dataSources
(List<? extends Object> dataSources) The app's data source.dataSources
(IResolvable dataSources) The app's data source.description
(String description) A description of the app.The app virtual host settings, with multiple domains separated by commas.Whether to enable SSL for the app.enableSsl
(IResolvable enableSsl) Whether to enable SSL for the app.environment
(List<? extends Object> environment) An array ofEnvironmentVariable
objects that specify environment variables to be associated with the app.environment
(IResolvable environment) An array ofEnvironmentVariable
objects that specify environment variables to be associated with the app.The app name.The app's short name.sslConfiguration
(IResolvable sslConfiguration) AnSslConfiguration
object with the SSL configuration.sslConfiguration
(CfnApp.SslConfigurationProperty sslConfiguration) AnSslConfiguration
object with the SSL configuration.The stack ID.The app type.
-
Method Details
-
create
@Stability(Stable) public static CfnApp.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnApp.Builder
.
-
name
The app name.- Parameters:
name
- The app name. This parameter is required.- Returns:
this
- See Also:
-
stackId
The stack ID.- Parameters:
stackId
- The stack ID. This parameter is required.- Returns:
this
- See Also:
-
type
The app type.Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. AWS OpsWorks Stacks deploys an application to those instances that are members of the corresponding layer. If your app isn't one of the standard types, or you prefer to implement your own Deploy recipes, specify
other
.- Parameters:
type
- The app type. This parameter is required.- Returns:
this
- See Also:
-
appSource
ASource
object that specifies the app repository.- Parameters:
appSource
- ASource
object that specifies the app repository. This parameter is required.- Returns:
this
- See Also:
-
appSource
ASource
object that specifies the app repository.- Parameters:
appSource
- ASource
object that specifies the app repository. This parameter is required.- Returns:
this
- See Also:
-
attributes
One or more user-defined key/value pairs to be added to the stack attributes.- Parameters:
attributes
- One or more user-defined key/value pairs to be added to the stack attributes. This parameter is required.- Returns:
this
- See Also:
-
attributes
One or more user-defined key/value pairs to be added to the stack attributes.- Parameters:
attributes
- One or more user-defined key/value pairs to be added to the stack attributes. This parameter is required.- Returns:
this
- See Also:
-
dataSources
The app's data source.- Parameters:
dataSources
- The app's data source. This parameter is required.- Returns:
this
- See Also:
-
dataSources
The app's data source.- Parameters:
dataSources
- The app's data source. This parameter is required.- Returns:
this
- See Also:
-
description
A description of the app.- Parameters:
description
- A description of the app. This parameter is required.- Returns:
this
- See Also:
-
domains
The app virtual host settings, with multiple domains separated by commas.For example:
'www.example.com, example.com'
- Parameters:
domains
- The app virtual host settings, with multiple domains separated by commas. This parameter is required.- Returns:
this
- See Also:
-
enableSsl
Whether to enable SSL for the app.- Parameters:
enableSsl
- Whether to enable SSL for the app. This parameter is required.- Returns:
this
- See Also:
-
enableSsl
Whether to enable SSL for the app.- Parameters:
enableSsl
- Whether to enable SSL for the app. This parameter is required.- Returns:
this
- See Also:
-
environment
An array ofEnvironmentVariable
objects that specify environment variables to be associated with the app.After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables .
There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 20 KB. This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 20KB)."
If you have specified one or more environment variables, you cannot modify the stack's Chef version.
- Parameters:
environment
- An array ofEnvironmentVariable
objects that specify environment variables to be associated with the app. This parameter is required.- Returns:
this
- See Also:
-
environment
An array ofEnvironmentVariable
objects that specify environment variables to be associated with the app.After you deploy the app, these variables are defined on the associated app server instance. For more information, see Environment Variables .
There is no specific limit on the number of environment variables. However, the size of the associated data structure - which includes the variables' names, values, and protected flag values - cannot exceed 20 KB. This limit should accommodate most if not all use cases. Exceeding it will cause an exception with the message, "Environment: is too large (maximum is 20KB)."
If you have specified one or more environment variables, you cannot modify the stack's Chef version.
- Parameters:
environment
- An array ofEnvironmentVariable
objects that specify environment variables to be associated with the app. This parameter is required.- Returns:
this
- See Also:
-
shortname
The app's short name.- Parameters:
shortname
- The app's short name. This parameter is required.- Returns:
this
- See Also:
-
sslConfiguration
AnSslConfiguration
object with the SSL configuration.- Parameters:
sslConfiguration
- AnSslConfiguration
object with the SSL configuration. This parameter is required.- Returns:
this
- See Also:
-
sslConfiguration
@Stability(Stable) public CfnApp.Builder sslConfiguration(CfnApp.SslConfigurationProperty sslConfiguration) AnSslConfiguration
object with the SSL configuration.- Parameters:
sslConfiguration
- AnSslConfiguration
object with the SSL configuration. This parameter is required.- Returns:
this
- See Also:
-
build
-