amazonka-opsworks-2.0: Amazon OpsWorks SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.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

AWSRequest CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Associated Types

type AWSResponse CreateDeployment #

Generic CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Associated Types

type Rep CreateDeployment :: Type -> Type #

Read CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Show CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

NFData CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Methods

rnf :: CreateDeployment -> () #

Eq CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Hashable CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

type AWSResponse CreateDeployment Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

type Rep 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:

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_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_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
Generic CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Associated Types

type Rep CreateDeploymentResponse :: Type -> Type #

Read CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Show CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

NFData CreateDeploymentResponse Source # 
Instance details

Defined in Amazonka.OpsWorks.CreateDeployment

Eq 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" "amazonka-opsworks-2.0-7XrzSD2vbuN9lVUGWMVZ7S" '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:

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.