amazonka-opsworks-1.6.1: Amazon OpsWorks SDK.

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

Network.AWS.OpsWorks.CreateDeployment

Contents

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

createDeployment Source #

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 - A DeploymentCommand object that specifies the deployment command and any associated arguments.

data CreateDeployment Source #

See: createDeployment smart constructor.

Instances
Eq CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Data CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateDeployment -> c CreateDeployment #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateDeployment #

toConstr :: CreateDeployment -> Constr #

dataTypeOf :: CreateDeployment -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateDeployment) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateDeployment) #

gmapT :: (forall b. Data b => b -> b) -> CreateDeployment -> CreateDeployment #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateDeployment -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateDeployment -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateDeployment -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateDeployment -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateDeployment -> m CreateDeployment #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDeployment -> m CreateDeployment #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDeployment -> m CreateDeployment #

Read CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Show CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Generic CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Associated Types

type Rep CreateDeployment :: Type -> Type #

Hashable CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

ToJSON CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

AWSRequest CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Associated Types

type Rs CreateDeployment :: Type #

ToHeaders CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

ToPath CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

ToQuery CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

NFData CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Methods

rnf :: CreateDeployment -> () #

type Rep CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

type Rs CreateDeployment Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

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.

cdComment :: Lens' CreateDeployment (Maybe Text) Source #

A user-defined comment.

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:

data CreateDeploymentResponse Source #

Contains the response to a CreateDeployment request.

See: createDeploymentResponse smart constructor.

Instances
Eq CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Data CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CreateDeploymentResponse -> c CreateDeploymentResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CreateDeploymentResponse #

toConstr :: CreateDeploymentResponse -> Constr #

dataTypeOf :: CreateDeploymentResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c CreateDeploymentResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CreateDeploymentResponse) #

gmapT :: (forall b. Data b => b -> b) -> CreateDeploymentResponse -> CreateDeploymentResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CreateDeploymentResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CreateDeploymentResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CreateDeploymentResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CreateDeploymentResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CreateDeploymentResponse -> m CreateDeploymentResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDeploymentResponse -> m CreateDeploymentResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CreateDeploymentResponse -> m CreateDeploymentResponse #

Read CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Show CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Generic CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

Associated Types

type Rep CreateDeploymentResponse :: Type -> Type #

NFData CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

type Rep CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.OpsWorks.CreateDeployment

type Rep CreateDeploymentResponse = D1 (MetaData "CreateDeploymentResponse" "Network.AWS.OpsWorks.CreateDeployment" "amazonka-opsworks-1.6.1-DPqCyF3LO9t3rjfO10vXJE" False) (C1 (MetaCons "CreateDeploymentResponse'" PrefixI True) (S1 (MetaSel (Just "_cdrsDeploymentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cdrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

cdrsDeploymentId :: Lens' CreateDeploymentResponse (Maybe Text) Source #

The deployment ID, which can be used with other requests to identify the deployment.