amazonka-codedeploy-1.6.0: 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.CreateDeploymentConfig

Contents

Description

Creates a deployment configuration.

Synopsis

Creating a Request

createDeploymentConfig Source #

Creates a value of CreateDeploymentConfig with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cdcComputePlatform - The destination platform type for the deployment (Lambda or Server >).
  • cdcMinimumHealthyHosts - The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value. The type parameter takes either of the following values: * HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value. * FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. The value parameter takes an integer. For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.
  • cdcTrafficRoutingConfig - The configuration that specifies how the deployment traffic will be routed.
  • cdcDeploymentConfigName - The name of the deployment configuration to create.

data CreateDeploymentConfig Source #

Represents the input of a CreateDeploymentConfig operation.

See: createDeploymentConfig smart constructor.

Instances

Eq CreateDeploymentConfig Source # 
Data CreateDeploymentConfig Source # 

Methods

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

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

toConstr :: CreateDeploymentConfig -> Constr #

dataTypeOf :: CreateDeploymentConfig -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDeploymentConfig Source # 
Show CreateDeploymentConfig Source # 
Generic CreateDeploymentConfig Source # 
Hashable CreateDeploymentConfig Source # 
ToJSON CreateDeploymentConfig Source # 
NFData CreateDeploymentConfig Source # 

Methods

rnf :: CreateDeploymentConfig -> () #

AWSRequest CreateDeploymentConfig Source # 
ToHeaders CreateDeploymentConfig Source # 
ToPath CreateDeploymentConfig Source # 
ToQuery CreateDeploymentConfig Source # 
type Rep CreateDeploymentConfig Source # 
type Rep CreateDeploymentConfig = D1 * (MetaData "CreateDeploymentConfig" "Network.AWS.CodeDeploy.CreateDeploymentConfig" "amazonka-codedeploy-1.6.0-FbexHQXokzbCl7hnYMiCm8" False) (C1 * (MetaCons "CreateDeploymentConfig'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cdcComputePlatform") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe ComputePlatform))) (S1 * (MetaSel (Just Symbol "_cdcMinimumHealthyHosts") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe MinimumHealthyHosts)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdcTrafficRoutingConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe TrafficRoutingConfig))) (S1 * (MetaSel (Just Symbol "_cdcDeploymentConfigName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs CreateDeploymentConfig Source # 

Request Lenses

cdcComputePlatform :: Lens' CreateDeploymentConfig (Maybe ComputePlatform) Source #

The destination platform type for the deployment (Lambda or Server >).

cdcMinimumHealthyHosts :: Lens' CreateDeploymentConfig (Maybe MinimumHealthyHosts) Source #

The minimum number of healthy instances that should be available at any time during the deployment. There are two parameters expected in the input: type and value. The type parameter takes either of the following values: * HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value. * FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances. The value parameter takes an integer. For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.

cdcTrafficRoutingConfig :: Lens' CreateDeploymentConfig (Maybe TrafficRoutingConfig) Source #

The configuration that specifies how the deployment traffic will be routed.

cdcDeploymentConfigName :: Lens' CreateDeploymentConfig Text Source #

The name of the deployment configuration to create.

Destructuring the Response

createDeploymentConfigResponse Source #

Creates a value of CreateDeploymentConfigResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreateDeploymentConfigResponse Source #

Represents the output of a CreateDeploymentConfig operation.

See: createDeploymentConfigResponse smart constructor.

Instances

Eq CreateDeploymentConfigResponse Source # 
Data CreateDeploymentConfigResponse Source # 

Methods

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

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

toConstr :: CreateDeploymentConfigResponse -> Constr #

dataTypeOf :: CreateDeploymentConfigResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDeploymentConfigResponse Source # 
Show CreateDeploymentConfigResponse Source # 
Generic CreateDeploymentConfigResponse Source # 
NFData CreateDeploymentConfigResponse Source # 
type Rep CreateDeploymentConfigResponse Source # 
type Rep CreateDeploymentConfigResponse = D1 * (MetaData "CreateDeploymentConfigResponse" "Network.AWS.CodeDeploy.CreateDeploymentConfig" "amazonka-codedeploy-1.6.0-FbexHQXokzbCl7hnYMiCm8" False) (C1 * (MetaCons "CreateDeploymentConfigResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdcrsDeploymentConfigId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cdcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses