amazonka-opsworks-1.2.0.1: Amazon OpsWorks SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.OpsWorks.CreateDeployment

Contents

Description

Runs deployment or stack commands. 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.

See: AWS API Reference for CreateDeployment.

Synopsis

Creating a Request

createDeployment Source

Creates a value of CreateDeployment with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

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 Attributes.

cdAppId :: Lens' CreateDeployment (Maybe Text) Source

The app ID. This parameter is required for app deployments, but not for other deployment commands.

cdInstanceIds :: Lens' CreateDeployment [Text] Source

The instance IDs for the deployment targets.

cdComment :: Lens' CreateDeployment (Maybe Text) Source

A user-defined comment.

cdCommand :: Lens' CreateDeployment DeploymentCommand Source

A DeploymentCommand object that specifies the deployment command and any associated arguments.

Destructuring the Response

createDeploymentResponse Source

Creates a value of CreateDeploymentResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

cdrsDeploymentId :: Lens' CreateDeploymentResponse (Maybe Text) Source

The deployment ID, which can be used with other requests to identify the deployment.

cdrsStatus :: Lens' CreateDeploymentResponse Int Source

The response status code.