AWS::OpsWorks::Apphttp://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-opsworks-app.html.
import { CfnApp } from 'aws-cdk-lib/aws-opsworks';Or use the module namespace:
import * as opsworks from 'aws-cdk-lib/aws-opsworks';
// opsworks.CfnAppConfiguration passed to the constructor as CfnAppProps.
nameRequiredstringThe app name.
stackIdRequiredstringThe stack ID.
typeRequiredstringThe app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. 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` .
appSourceOptionalIResolvable | SourcePropertyA `Source` object that specifies the app repository.
attributesOptional{ [key: string]: string } | IResolvableOne or more user-defined key/value pairs to be added to the stack attributes.
dataSourcesOptionalIResolvable | IResolvable | DataSourceProperty[]The app's data source.
descriptionOptionalstringA description of the app.
domainsOptionalstring[]The app virtual host settings, with multiple domains separated by commas. For example: `'www.example.com, example.com'`
enableSslOptionalboolean | IResolvableWhether to enable SSL for the app.
environmentOptionalIResolvable | IResolvable | EnvironmentVariableProperty[]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](https://docs.aws.amazon.com/opsworks/latest/userguide/workingapps-creating.html#workingapps-creating-environment) . 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.
shortnameOptionalstringThe app's short name.
sslConfigurationOptionalIResolvable | SslConfigurationPropertyAn `SslConfiguration` object with the SSL configuration.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-opsworksAWS::OpsWorks::App