Safe Haskell | None |
---|---|
Language | Haskell2010 |
Deploys a stack or app. App deployment generates a deploy event, which runs the associated recipes and passes them a JSON stack configuration object that includes information about the app. Stack deployment runs the deploy recipes but does not raise an event. For more information, see Deploying Apps and Run Stack Commands. Required Permissions: To use this action, an IAM user must have a Deploy or Manage permissions level for the stack, or an attached policy that explicitly grants permissions. For more information on user permissions, see Managing User Permissions.
http://docs.aws.amazon.com/opsworks/latest/APIReference/API_CreateDeployment.html
- data CreateDeployment
- createDeployment :: Text -> DeploymentCommand -> CreateDeployment
- cdAppId :: Lens' CreateDeployment (Maybe Text)
- cdCommand :: Lens' CreateDeployment DeploymentCommand
- cdComment :: Lens' CreateDeployment (Maybe Text)
- cdCustomJson :: Lens' CreateDeployment (Maybe Text)
- cdInstanceIds :: Lens' CreateDeployment [Text]
- cdStackId :: Lens' CreateDeployment Text
- data CreateDeploymentResponse
- createDeploymentResponse :: CreateDeploymentResponse
- cdrDeploymentId :: Lens' CreateDeploymentResponse (Maybe Text)
Request
data CreateDeployment Source
Request constructor
CreateDeployment
constructor.
The fields accessible through corresponding lenses are:
cdAppId
::
Maybe
Text
cdCommand
::
DeploymentCommand
cdComment
::
Maybe
Text
cdCustomJson
::
Maybe
Text
cdInstanceIds
::
[Text
]cdStackId
::
Text
Request lenses
cdAppId :: Lens' CreateDeployment (Maybe Text) Source
The app ID. This parameter is required for app deployments, but not for other deployment commands.
cdCommand :: Lens' CreateDeployment DeploymentCommand Source
A DeploymentCommand object that specifies the deployment command and any associated arguments.
cdCustomJson :: Lens' CreateDeployment (Maybe Text) Source
A string that contains user-defined, custom JSON. It is used to override the corresponding default stack configuration JSON values. The string should be in the following format and must escape characters such as '"'.: "{"key1": "value1", "key2": "value2",...}" For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration JSON.
cdInstanceIds :: Lens' CreateDeployment [Text] Source
The instance IDs for the deployment targets.
cdStackId :: Lens' CreateDeployment Text Source
The stack ID.
Response
Response constructor
createDeploymentResponse :: CreateDeploymentResponse Source
CreateDeploymentResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
cdrDeploymentId :: Lens' CreateDeploymentResponse (Maybe Text) Source
The deployment ID, which can be used with other requests to identify the deployment.