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 UserPermissions.
http://docs.aws.amazon.com/opsworks/latest/APIReference/API_CreateApp.html
- data CreateApp
- createApp :: Text -> Text -> AppType -> CreateApp
- caAppSource :: Lens' CreateApp (Maybe Source)
- caAttributes :: Lens' CreateApp (HashMap AppAttributesKeys Text)
- caDataSources :: Lens' CreateApp [DataSource]
- caDescription :: Lens' CreateApp (Maybe Text)
- caDomains :: Lens' CreateApp [Text]
- caEnableSsl :: Lens' CreateApp (Maybe Bool)
- caEnvironment :: Lens' CreateApp [EnvironmentVariable]
- caName :: Lens' CreateApp Text
- caShortname :: Lens' CreateApp (Maybe Text)
- caSslConfiguration :: Lens' CreateApp (Maybe SslConfiguration)
- caStackId :: Lens' CreateApp Text
- caType :: Lens' CreateApp AppType
- data CreateAppResponse
- createAppResponse :: CreateAppResponse
- carAppId :: Lens' CreateAppResponse (Maybe Text)
Request
Request constructor
CreateApp
constructor.
The fields accessible through corresponding lenses are:
caAppSource
::
Maybe
Source
caAttributes
::
HashMap
AppAttributesKeys
Text
caDataSources
::
[DataSource
]caDescription
::
Maybe
Text
caDomains
::
[Text
]caEnableSsl
::
Maybe
Bool
caEnvironment
::
[EnvironmentVariable
]caName
::
Text
caShortname
::
Maybe
Text
caSslConfiguration
::
Maybe
SslConfiguration
caStackId
::
Text
caType
::
AppType
Request lenses
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.
caDataSources :: Lens' CreateApp [DataSource] Source
The app's data source.
caDomains :: Lens' CreateApp [Text] Source
The app virtual host settings, with multiple domains separated by commas. For example: ''www.example.com, example.com''
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.
caSslConfiguration :: Lens' CreateApp (Maybe SslConfiguration) Source
An SslConfiguration
object with the SSL configuration.
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
.
Response
data CreateAppResponse Source
Response constructor
createAppResponse :: CreateAppResponse Source
CreateAppResponse
constructor.
The fields accessible through corresponding lenses are: