Class CfnAppProps.Builder

java.lang.Object
software.amazon.awscdk.services.opsworks.CfnAppProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAppProps>
Enclosing interface:
CfnAppProps

@Stability(Stable) public static final class CfnAppProps.Builder extends Object implements software.amazon.jsii.Builder<CfnAppProps>
A builder for CfnAppProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      @Stability(Stable) public CfnAppProps.Builder name(String name)
      Sets the value of CfnAppProps.getName()
      Parameters:
      name - The app name. This parameter is required.
      Returns:
      this
    • stackId

      @Stability(Stable) public CfnAppProps.Builder stackId(String stackId)
      Sets the value of CfnAppProps.getStackId()
      Parameters:
      stackId - The stack ID. This parameter is required.
      Returns:
      this
    • type

      @Stability(Stable) public CfnAppProps.Builder type(String type)
      Sets the value of CfnAppProps.getType()
      Parameters:
      type - The app type. This parameter is required. 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 .
      Returns:
      this
    • appSource

      @Stability(Stable) public CfnAppProps.Builder appSource(IResolvable appSource)
      Sets the value of CfnAppProps.getAppSource()
      Parameters:
      appSource - A Source object that specifies the app repository.
      Returns:
      this
    • appSource

      @Stability(Stable) public CfnAppProps.Builder appSource(CfnApp.SourceProperty appSource)
      Sets the value of CfnAppProps.getAppSource()
      Parameters:
      appSource - A Source object that specifies the app repository.
      Returns:
      this
    • attributes

      @Stability(Stable) public CfnAppProps.Builder attributes(IResolvable attributes)
      Sets the value of CfnAppProps.getAttributes()
      Parameters:
      attributes - One or more user-defined key/value pairs to be added to the stack attributes.
      Returns:
      this
    • attributes

      @Stability(Stable) public CfnAppProps.Builder attributes(Map<String,String> attributes)
      Sets the value of CfnAppProps.getAttributes()
      Parameters:
      attributes - One or more user-defined key/value pairs to be added to the stack attributes.
      Returns:
      this
    • dataSources

      @Stability(Stable) public CfnAppProps.Builder dataSources(IResolvable dataSources)
      Parameters:
      dataSources - The app's data source.
      Returns:
      this
    • dataSources

      @Stability(Stable) public CfnAppProps.Builder dataSources(List<? extends Object> dataSources)
      Parameters:
      dataSources - The app's data source.
      Returns:
      this
    • description

      @Stability(Stable) public CfnAppProps.Builder description(String description)
      Parameters:
      description - A description of the app.
      Returns:
      this
    • domains

      @Stability(Stable) public CfnAppProps.Builder domains(List<String> domains)
      Sets the value of CfnAppProps.getDomains()
      Parameters:
      domains - The app virtual host settings, with multiple domains separated by commas. For example: 'www.example.com, example.com'
      Returns:
      this
    • enableSsl

      @Stability(Stable) public CfnAppProps.Builder enableSsl(Boolean enableSsl)
      Sets the value of CfnAppProps.getEnableSsl()
      Parameters:
      enableSsl - Whether to enable SSL for the app.
      Returns:
      this
    • enableSsl

      @Stability(Stable) public CfnAppProps.Builder enableSsl(IResolvable enableSsl)
      Sets the value of CfnAppProps.getEnableSsl()
      Parameters:
      enableSsl - Whether to enable SSL for the app.
      Returns:
      this
    • environment

      @Stability(Stable) public CfnAppProps.Builder environment(IResolvable environment)
      Parameters:
      environment - An array of EnvironmentVariable 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.

      Returns:
      this
    • environment

      @Stability(Stable) public CfnAppProps.Builder environment(List<? extends Object> environment)
      Parameters:
      environment - An array of EnvironmentVariable 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.

      Returns:
      this
    • shortname

      @Stability(Stable) public CfnAppProps.Builder shortname(String shortname)
      Sets the value of CfnAppProps.getShortname()
      Parameters:
      shortname - The app's short name.
      Returns:
      this
    • sslConfiguration

      @Stability(Stable) public CfnAppProps.Builder sslConfiguration(IResolvable sslConfiguration)
      Parameters:
      sslConfiguration - An SslConfiguration object with the SSL configuration.
      Returns:
      this
    • sslConfiguration

      @Stability(Stable) public CfnAppProps.Builder sslConfiguration(CfnApp.SslConfigurationProperty sslConfiguration)
      Parameters:
      sslConfiguration - An SslConfiguration object with the SSL configuration.
      Returns:
      this
    • build

      @Stability(Stable) public CfnAppProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnAppProps>
      Returns:
      a new instance of CfnAppProps
      Throws:
      NullPointerException - if any required attribute was not provided