class Aws::OpsWorks::Types::CreateAppRequest

@note When making an API call, you may pass CreateAppRequest

data as a hash:

    {
      stack_id: "String", # required
      shortname: "String",
      name: "String", # required
      description: "String",
      data_sources: [
        {
          type: "String",
          arn: "String",
          database_name: "String",
        },
      ],
      type: "aws-flow-ruby", # required, accepts aws-flow-ruby, java, rails, php, nodejs, static, other
      app_source: {
        type: "git", # accepts git, svn, archive, s3
        url: "String",
        username: "String",
        password: "String",
        ssh_key: "String",
        revision: "String",
      },
      domains: ["String"],
      enable_ssl: false,
      ssl_configuration: {
        certificate: "String", # required
        private_key: "String", # required
        chain: "String",
      },
      attributes: {
        "DocumentRoot" => "String",
      },
      environment: [
        {
          key: "String", # required
          value: "String", # required
          secure: false,
        },
      ],
    }

@!attribute [rw] stack_id

The stack ID.
@return [String]

@!attribute [rw] shortname

The app's short name.
@return [String]

@!attribute [rw] name

The app name.
@return [String]

@!attribute [rw] description

A description of the app.
@return [String]

@!attribute [rw] data_sources

The app's data source.
@return [Array<Types::DataSource>]

@!attribute [rw] 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`.
@return [String]

@!attribute [rw] app_source

A `Source` object that specifies the app repository.
@return [Types::Source]

@!attribute [rw] domains

The app virtual host settings, with multiple domains separated by
commas. For example: `'www.example.com, example.com'`
@return [Array<String>]

@!attribute [rw] enable_ssl

Whether to enable SSL for the app.
@return [Boolean]

@!attribute [rw] ssl_configuration

An `SslConfiguration` object with the SSL configuration.
@return [Types::SslConfiguration]

@!attribute [rw] attributes

One or more user-defined key/value pairs to be added to the stack
attributes.
@return [Hash<String,String>]

@!attribute [rw] 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][1].

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)."

<note markdown="1"> If you have specified one or more environment variables, you cannot
modify the stack's Chef version.

 </note>

[1]: https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment
@return [Array<Types::EnvironmentVariable>]

@see docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/CreateAppRequest AWS API Documentation

Constants

SENSITIVE