Copyright | (c) 2013-2015 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 |
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.
- createDeployment :: Text -> DeploymentCommand -> CreateDeployment
- data CreateDeployment
- cdCustomJSON :: Lens' CreateDeployment (Maybe Text)
- cdAppId :: Lens' CreateDeployment (Maybe Text)
- cdInstanceIds :: Lens' CreateDeployment [Text]
- cdComment :: Lens' CreateDeployment (Maybe Text)
- cdStackId :: Lens' CreateDeployment Text
- cdCommand :: Lens' CreateDeployment DeploymentCommand
- createDeploymentResponse :: Int -> CreateDeploymentResponse
- data CreateDeploymentResponse
- cdrsDeploymentId :: Lens' CreateDeploymentResponse (Maybe Text)
- cdrsResponseStatus :: Lens' CreateDeploymentResponse Int
Creating a Request
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:
data CreateDeployment Source
See: createDeployment
smart constructor.
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.
cdStackId :: Lens' CreateDeployment Text Source
The stack ID.
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:
data CreateDeploymentResponse Source
Contains the response to a CreateDeployment
request.
See: createDeploymentResponse
smart constructor.
Response Lenses
cdrsDeploymentId :: Lens' CreateDeploymentResponse (Maybe Text) Source
The deployment ID, which can be used with other requests to identify the deployment.
cdrsResponseStatus :: Lens' CreateDeploymentResponse Int Source
The response status code.