amazonka-opsworks-0.0.3: Amazon OpsWorks SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.OpsWorks.CreateDeployment

Contents

Description

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 ManagingUser Permissions.

http://docs.aws.amazon.com/opsworks/latest/APIReference/API_CreateDeployment.html

Synopsis

Request

Request constructor

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.

cdComment :: Lens' CreateDeployment (Maybe Text) Source

A user-defined comment.

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 StackConfiguration JSON.

cdInstanceIds :: Lens' CreateDeployment [Text] Source

The instance IDs for the deployment targets.

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.