amazonka-opsworks-1.6.0: 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 # 
Data CreateDeployment Source # 

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 # 
Show CreateDeployment Source # 
Generic CreateDeployment Source # 
Hashable CreateDeployment Source # 
ToJSON CreateDeployment Source # 
NFData CreateDeployment Source # 

Methods

rnf :: CreateDeployment -> () #

AWSRequest CreateDeployment Source # 
ToHeaders CreateDeployment Source # 
ToPath CreateDeployment Source # 
ToQuery CreateDeployment Source # 
type Rep CreateDeployment Source # 
type Rs CreateDeployment Source # 

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 # 
Data CreateDeploymentResponse Source # 

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 # 
Show CreateDeploymentResponse Source # 
Generic CreateDeploymentResponse Source # 
NFData CreateDeploymentResponse Source # 
type Rep CreateDeploymentResponse Source # 
type Rep CreateDeploymentResponse = D1 * (MetaData "CreateDeploymentResponse" "Network.AWS.OpsWorks.CreateDeployment" "amazonka-opsworks-1.6.0-dhw3H9lmJm2qKjEl8vg7Z" False) (C1 * (MetaCons "CreateDeploymentResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdrsDeploymentId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_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.