Copyright | (c) 2013-2021 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 |
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.
Synopsis
- data CreateDeployment = CreateDeployment' {}
- newCreateDeployment :: Text -> DeploymentCommand -> CreateDeployment
- createDeployment_customJson :: Lens' CreateDeployment (Maybe Text)
- createDeployment_appId :: Lens' CreateDeployment (Maybe Text)
- createDeployment_instanceIds :: Lens' CreateDeployment (Maybe [Text])
- createDeployment_layerIds :: Lens' CreateDeployment (Maybe [Text])
- createDeployment_comment :: Lens' CreateDeployment (Maybe Text)
- createDeployment_stackId :: Lens' CreateDeployment Text
- createDeployment_command :: Lens' CreateDeployment DeploymentCommand
- data CreateDeploymentResponse = CreateDeploymentResponse' {
- deploymentId :: Maybe Text
- httpStatus :: Int
- newCreateDeploymentResponse :: Int -> CreateDeploymentResponse
- createDeploymentResponse_deploymentId :: Lens' CreateDeploymentResponse (Maybe Text)
- createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int
Creating a Request
data CreateDeployment Source #
See: newCreateDeployment
smart constructor.
CreateDeployment' | |
|
Instances
Create a value of CreateDeployment
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:customJson:CreateDeployment'
, createDeployment_customJson
- A string that contains user-defined, custom JSON. You can use this
parameter to override some corresponding default stack configuration
JSON values. The string should be in the following format:
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information about custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes and Overriding Attributes With Custom JSON.
$sel:appId:CreateDeployment'
, createDeployment_appId
- The app ID. This parameter is required for app deployments, but not for
other deployment commands.
$sel:instanceIds:CreateDeployment'
, createDeployment_instanceIds
- The instance IDs for the deployment targets.
$sel:layerIds:CreateDeployment'
, createDeployment_layerIds
- The layer IDs for the deployment targets.
$sel:comment:CreateDeployment'
, createDeployment_comment
- A user-defined comment.
$sel:stackId:CreateDeployment'
, createDeployment_stackId
- The stack ID.
$sel:command:CreateDeployment'
, createDeployment_command
- A DeploymentCommand
object that specifies the deployment command and
any associated arguments.
Request Lenses
createDeployment_customJson :: Lens' CreateDeployment (Maybe Text) Source #
A string that contains user-defined, custom JSON. You can use this parameter to override some corresponding default stack configuration JSON values. The string should be in the following format:
"{\"key1\": \"value1\", \"key2\": \"value2\",...}"
For more information about custom JSON, see Use Custom JSON to Modify the Stack Configuration Attributes and Overriding Attributes With Custom JSON.
createDeployment_appId :: Lens' CreateDeployment (Maybe Text) Source #
The app ID. This parameter is required for app deployments, but not for other deployment commands.
createDeployment_instanceIds :: Lens' CreateDeployment (Maybe [Text]) Source #
The instance IDs for the deployment targets.
createDeployment_layerIds :: Lens' CreateDeployment (Maybe [Text]) Source #
The layer IDs for the deployment targets.
createDeployment_comment :: Lens' CreateDeployment (Maybe Text) Source #
A user-defined comment.
createDeployment_stackId :: Lens' CreateDeployment Text Source #
The stack ID.
createDeployment_command :: Lens' CreateDeployment DeploymentCommand Source #
A DeploymentCommand
object that specifies the deployment command and
any associated arguments.
Destructuring the Response
data CreateDeploymentResponse Source #
Contains the response to a CreateDeployment
request.
See: newCreateDeploymentResponse
smart constructor.
CreateDeploymentResponse' | |
|
Instances
newCreateDeploymentResponse Source #
Create a value of CreateDeploymentResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:deploymentId:CreateDeploymentResponse'
, createDeploymentResponse_deploymentId
- The deployment ID, which can be used with other requests to identify the
deployment.
$sel:httpStatus:CreateDeploymentResponse'
, createDeploymentResponse_httpStatus
- The response's http status code.
Response Lenses
createDeploymentResponse_deploymentId :: Lens' CreateDeploymentResponse (Maybe Text) Source #
The deployment ID, which can be used with other requests to identify the deployment.
createDeploymentResponse_httpStatus :: Lens' CreateDeploymentResponse Int Source #
The response's http status code.