amazonka-codedeploy-1.6.1: Amazon CodeDeploy 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.CodeDeploy.CreateDeployment

Contents

Description

Deploys an application revision through the specified deployment group.

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:

  • cdDeploymentConfigName - The name of a deployment configuration associated with the applicable IAM user or AWS account. If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.
  • cdFileExistsBehavior - Information about how AWS CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment. The fileExistsBehavior parameter takes any of the following values: * DISALLOW: The deployment fails. This is also the default behavior if no option is specified. * OVERWRITE: The version of the file from the application revision currently being deployed replaces the version already on the instance. * RETAIN: The version of the file already on the instance is kept and used as part of the new deployment.
  • cdTargetInstances - Information about the instances that will belong to the replacement environment in a blue/green deployment.
  • cdRevision - The type and location of the revision to deploy.
  • cdDescription - A comment about the deployment.
  • cdAutoRollbackConfiguration - Configuration information for an automatic rollback that is added when a deployment is created.
  • cdUpdateOutdatedInstancesOnly - Indicates whether to deploy to all instances or only to instances that are not running the latest application revision.
  • cdDeploymentGroupName - The name of the deployment group.
  • cdIgnoreApplicationStopFailures - If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to an instance to fail, the deployment to that instance will not be considered to have failed at that point and will continue on to the BeforeInstall deployment lifecycle event. If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to an instance, the deployment to that instance will stop, and the deployment to that instance will be considered to have failed.
  • cdApplicationName - The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

data CreateDeployment Source #

Represents the input of a CreateDeployment operation.

See: createDeployment smart constructor.

Instances
Eq CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

Data CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.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.CodeDeploy.CreateDeployment

Show CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

Generic CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

Associated Types

type Rep CreateDeployment :: Type -> Type #

Hashable CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

ToJSON CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

AWSRequest CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

Associated Types

type Rs CreateDeployment :: Type #

ToHeaders CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

ToPath CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

ToQuery CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

NFData CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

Methods

rnf :: CreateDeployment -> () #

type Rep CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

type Rep CreateDeployment = D1 (MetaData "CreateDeployment" "Network.AWS.CodeDeploy.CreateDeployment" "amazonka-codedeploy-1.6.1-HbNVyGo5kPb18hi5aHMBMV" False) (C1 (MetaCons "CreateDeployment'" PrefixI True) (((S1 (MetaSel (Just "_cdDeploymentConfigName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cdFileExistsBehavior") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FileExistsBehavior))) :*: (S1 (MetaSel (Just "_cdTargetInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TargetInstances)) :*: (S1 (MetaSel (Just "_cdRevision") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RevisionLocation)) :*: S1 (MetaSel (Just "_cdDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 (MetaSel (Just "_cdAutoRollbackConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AutoRollbackConfiguration)) :*: S1 (MetaSel (Just "_cdUpdateOutdatedInstancesOnly") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 (MetaSel (Just "_cdDeploymentGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_cdIgnoreApplicationStopFailures") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_cdApplicationName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateDeployment Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

Request Lenses

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

The name of a deployment configuration associated with the applicable IAM user or AWS account. If not specified, the value configured in the deployment group will be used as the default. If the deployment group does not have a deployment configuration associated with it, then CodeDeployDefault.OneAtATime will be used by default.

cdFileExistsBehavior :: Lens' CreateDeployment (Maybe FileExistsBehavior) Source #

Information about how AWS CodeDeploy handles files that already exist in a deployment target location but weren't part of the previous successful deployment. The fileExistsBehavior parameter takes any of the following values: * DISALLOW: The deployment fails. This is also the default behavior if no option is specified. * OVERWRITE: The version of the file from the application revision currently being deployed replaces the version already on the instance. * RETAIN: The version of the file already on the instance is kept and used as part of the new deployment.

cdTargetInstances :: Lens' CreateDeployment (Maybe TargetInstances) Source #

Information about the instances that will belong to the replacement environment in a blue/green deployment.

cdRevision :: Lens' CreateDeployment (Maybe RevisionLocation) Source #

The type and location of the revision to deploy.

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

A comment about the deployment.

cdAutoRollbackConfiguration :: Lens' CreateDeployment (Maybe AutoRollbackConfiguration) Source #

Configuration information for an automatic rollback that is added when a deployment is created.

cdUpdateOutdatedInstancesOnly :: Lens' CreateDeployment (Maybe Bool) Source #

Indicates whether to deploy to all instances or only to instances that are not running the latest application revision.

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

The name of the deployment group.

cdIgnoreApplicationStopFailures :: Lens' CreateDeployment (Maybe Bool) Source #

If set to true, then if the deployment causes the ApplicationStop deployment lifecycle event to an instance to fail, the deployment to that instance will not be considered to have failed at that point and will continue on to the BeforeInstall deployment lifecycle event. If set to false or not specified, then if the deployment causes the ApplicationStop deployment lifecycle event to fail to an instance, the deployment to that instance will stop, and the deployment to that instance will be considered to have failed.

cdApplicationName :: Lens' CreateDeployment Text Source #

The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.

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 #

Represents the output of a CreateDeployment operation.

See: createDeploymentResponse smart constructor.

Instances
Eq CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

Data CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.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.CodeDeploy.CreateDeployment

Show CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

Generic CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

Associated Types

type Rep CreateDeploymentResponse :: Type -> Type #

NFData CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

type Rep CreateDeploymentResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeployment

type Rep CreateDeploymentResponse = D1 (MetaData "CreateDeploymentResponse" "Network.AWS.CodeDeploy.CreateDeployment" "amazonka-codedeploy-1.6.1-HbNVyGo5kPb18hi5aHMBMV" 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