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 #

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 #

Represents the input of a CreateDeploymentConfig operation.

See: createDeploymentConfig smart constructor.

Instances

Eq CreateDeploymentConfig # 
Data CreateDeploymentConfig # 

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

Methods

rnf :: CreateDeploymentConfig -> () #

AWSRequest CreateDeploymentConfig # 
ToHeaders CreateDeploymentConfig # 
ToPath CreateDeploymentConfig # 
ToQuery CreateDeploymentConfig # 
type Rep CreateDeploymentConfig # 
type Rep CreateDeploymentConfig = D1 * (MetaData "CreateDeploymentConfig" "Network.AWS.CodeDeploy.CreateDeploymentConfig" "amazonka-codedeploy-1.6.0-CVWt8A18BUaA4vTP8zhKgA" 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 # 

Request Lenses

cdcComputePlatform :: Lens' CreateDeploymentConfig (Maybe ComputePlatform) #

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

cdcMinimumHealthyHosts :: Lens' CreateDeploymentConfig (Maybe MinimumHealthyHosts) #

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) #

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

cdcDeploymentConfigName :: Lens' CreateDeploymentConfig Text #

The name of the deployment configuration to create.

Destructuring the Response

createDeploymentConfigResponse #

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 #

Represents the output of a CreateDeploymentConfig operation.

See: createDeploymentConfigResponse smart constructor.

Instances

Eq CreateDeploymentConfigResponse # 
Data CreateDeploymentConfigResponse # 

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 # 
Show CreateDeploymentConfigResponse # 
Generic CreateDeploymentConfigResponse # 
NFData CreateDeploymentConfigResponse # 
type Rep CreateDeploymentConfigResponse # 
type Rep CreateDeploymentConfigResponse = D1 * (MetaData "CreateDeploymentConfigResponse" "Network.AWS.CodeDeploy.CreateDeploymentConfig" "amazonka-codedeploy-1.6.0-CVWt8A18BUaA4vTP8zhKgA" 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

cdcrsDeploymentConfigId :: Lens' CreateDeploymentConfigResponse (Maybe Text) #

A unique deployment configuration ID.