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.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 # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

Data CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.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 Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

Show CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

Generic CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

Associated Types

type Rep CreateDeploymentConfig :: Type -> Type #

Hashable CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

ToJSON CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

AWSRequest CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

Associated Types

type Rs CreateDeploymentConfig :: Type #

ToHeaders CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

ToPath CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

ToQuery CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

NFData CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

Methods

rnf :: CreateDeploymentConfig -> () #

type Rep CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

type Rep CreateDeploymentConfig = D1 (MetaData "CreateDeploymentConfig" "Network.AWS.CodeDeploy.CreateDeploymentConfig" "amazonka-codedeploy-1.6.1-HbNVyGo5kPb18hi5aHMBMV" False) (C1 (MetaCons "CreateDeploymentConfig'" PrefixI True) ((S1 (MetaSel (Just "_cdcComputePlatform") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ComputePlatform)) :*: S1 (MetaSel (Just "_cdcMinimumHealthyHosts") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe MinimumHealthyHosts))) :*: (S1 (MetaSel (Just "_cdcTrafficRoutingConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TrafficRoutingConfig)) :*: S1 (MetaSel (Just "_cdcDeploymentConfigName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs CreateDeploymentConfig Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

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 # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

Data CreateDeploymentConfigResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

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 # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

Show CreateDeploymentConfigResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

Generic CreateDeploymentConfigResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

Associated Types

type Rep CreateDeploymentConfigResponse :: Type -> Type #

NFData CreateDeploymentConfigResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

type Rep CreateDeploymentConfigResponse Source # 
Instance details

Defined in Network.AWS.CodeDeploy.CreateDeploymentConfig

type Rep CreateDeploymentConfigResponse = D1 (MetaData "CreateDeploymentConfigResponse" "Network.AWS.CodeDeploy.CreateDeploymentConfig" "amazonka-codedeploy-1.6.1-HbNVyGo5kPb18hi5aHMBMV" False) (C1 (MetaCons "CreateDeploymentConfigResponse'" PrefixI True) (S1 (MetaSel (Just "_cdcrsDeploymentConfigId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_cdcrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses