Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an app for a specified stack. For more information, see Creating Apps.
Required Permissions: To use this action, an IAM user must have a Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
- createApp :: Text -> Text -> AppType -> CreateApp
- data CreateApp
- caSSLConfiguration :: Lens' CreateApp (Maybe SSLConfiguration)
- caEnvironment :: Lens' CreateApp [EnvironmentVariable]
- caEnableSSL :: Lens' CreateApp (Maybe Bool)
- caShortname :: Lens' CreateApp (Maybe Text)
- caDataSources :: Lens' CreateApp [DataSource]
- caAppSource :: Lens' CreateApp (Maybe Source)
- caAttributes :: Lens' CreateApp (HashMap AppAttributesKeys Text)
- caDomains :: Lens' CreateApp [Text]
- caDescription :: Lens' CreateApp (Maybe Text)
- caStackId :: Lens' CreateApp Text
- caName :: Lens' CreateApp Text
- caType :: Lens' CreateApp AppType
- createAppResponse :: Int -> CreateAppResponse
- data CreateAppResponse
- carsAppId :: Lens' CreateAppResponse (Maybe Text)
- carsResponseStatus :: Lens' CreateAppResponse Int
Creating a Request
Creates a value of CreateApp
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
See: createApp
smart constructor.
Request Lenses
caSSLConfiguration :: Lens' CreateApp (Maybe SSLConfiguration) Source #
An SslConfiguration
object with the SSL configuration.
caEnvironment :: Lens' CreateApp [EnvironmentVariable] Source #
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 10 KB (10240 Bytes). 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 10KB)."
This parameter is supported only by Chef 11.10 stacks. If you have specified one or more environment variables, you cannot modify the stack's Chef version.
caDataSources :: Lens' CreateApp [DataSource] Source #
The app's data source.
caAppSource :: Lens' CreateApp (Maybe Source) Source #
A Source
object that specifies the app repository.
caAttributes :: Lens' CreateApp (HashMap AppAttributesKeys Text) Source #
One or more user-defined key/value pairs to be added to the stack attributes.
caDomains :: Lens' CreateApp [Text] Source #
The app virtual host settings, with multiple domains separated by commas. For example: '\'www.example.com, example.com''
caType :: Lens' CreateApp AppType Source #
The app type. Each supported type is associated with a particular layer. For example, PHP applications are associated with a PHP layer. AWS OpsWorks 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
.
Destructuring the Response
Creates a value of CreateAppResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreateAppResponse Source #
Contains the response to a CreateApp
request.
See: createAppResponse
smart constructor.
Response Lenses
carsResponseStatus :: Lens' CreateAppResponse Int Source #
The response status code.