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

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

Creating a Request

data CreateDeployment Source #

See: newCreateDeployment smart constructor.

Constructors

CreateDeployment' 

Fields

Instances

Instances details
Eq CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Read CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Show CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Generic CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Associated Types

type Rep CreateDeployment :: Type -> Type #

NFData CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Methods

rnf :: CreateDeployment -> () #

Hashable CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

ToJSON CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

AWSRequest CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Associated Types

type AWSResponse CreateDeployment #

ToHeaders CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

ToPath CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

ToQuery CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

type Rep CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

type AWSResponse CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

newCreateDeployment Source #

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_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

Instances details
Eq CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Read CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Show CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Generic CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Associated Types

type Rep CreateDeploymentResponse :: Type -> Type #

NFData CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

type Rep CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

type Rep CreateDeploymentResponse = D1 ('MetaData "CreateDeploymentResponse" "Amazonka.OpsWorks.CreateDeployment" "libZSservicesZSamazonka-opsworksZSamazonka-opsworks" 'False) (C1 ('MetaCons "CreateDeploymentResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "deploymentId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.