| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.OpsWorks.CreateDeployment
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.
Synopsis
- data CreateDeployment = CreateDeployment' {}
- newCreateDeployment :: Text -> DeploymentCommand -> CreateDeployment
- createDeployment_appId :: Lens' CreateDeployment (Maybe Text)
- createDeployment_comment :: Lens' CreateDeployment (Maybe Text)
- createDeployment_customJson :: Lens' CreateDeployment (Maybe Text)
- createDeployment_instanceIds :: Lens' CreateDeployment (Maybe [Text])
- createDeployment_layerIds :: 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.
Constructors
| CreateDeployment' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DeploymentCommand | |
| -> CreateDeployment |
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:
CreateDeployment, createDeployment_appId - The app ID. This parameter is required for app deployments, but not for
other deployment commands.
CreateDeployment, createDeployment_comment - A user-defined comment.
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.
CreateDeployment, createDeployment_instanceIds - The instance IDs for the deployment targets.
CreateDeployment, createDeployment_layerIds - The layer IDs for the deployment targets.
CreateDeployment, createDeployment_stackId - The stack ID.
CreateDeployment, createDeployment_command - A DeploymentCommand object that specifies the deployment command and
any associated arguments.
Request Lenses
createDeployment_appId :: Lens' CreateDeployment (Maybe Text) Source #
The app ID. This parameter is required for app deployments, but not for other deployment commands.
createDeployment_comment :: Lens' CreateDeployment (Maybe Text) Source #
A user-defined comment.
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_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_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.
Constructors
| CreateDeploymentResponse' | |
Fields
| |
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:
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.