Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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 .
- createDeployment :: Text -> DeploymentCommand -> CreateDeployment
- data CreateDeployment
- cdCustomJSON :: Lens' CreateDeployment (Maybe Text)
- cdAppId :: Lens' CreateDeployment (Maybe Text)
- cdInstanceIds :: Lens' CreateDeployment [Text]
- cdLayerIds :: 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:
cdCustomJSON
- 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:"{"key1": "value1", "key2": "value2",...}"
For more information on custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes .cdAppId
- The app ID. This parameter is required for app deployments, but not for other deployment commands.cdInstanceIds
- The instance IDs for the deployment targets.cdLayerIds
- The layer IDs for the deployment targets.cdComment
- A user-defined comment.cdStackId
- The stack ID.cdCommand
- ADeploymentCommand
object that specifies the deployment command and any associated arguments.
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: "{"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.
cdLayerIds :: Lens' CreateDeployment [Text] Source #
The layer IDs for the deployment targets.
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:
cdrsDeploymentId
- The deployment ID, which can be used with other requests to identify the deployment.cdrsResponseStatus
- -- | The response status code.
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.