amazonka-codedeploy-1.4.4: Amazon CodeDeploy SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeDeploy.CreateDeploymentGroup

Contents

Description

Creates a deployment group to which application revisions will be deployed.

Synopsis

Creating a Request

data CreateDeploymentGroup Source #

Represents the input of a create deployment group operation.

See: createDeploymentGroup smart constructor.

Instances

Eq CreateDeploymentGroup Source # 
Data CreateDeploymentGroup Source # 

Methods

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

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

toConstr :: CreateDeploymentGroup -> Constr #

dataTypeOf :: CreateDeploymentGroup -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDeploymentGroup Source # 
Show CreateDeploymentGroup Source # 
Generic CreateDeploymentGroup Source # 
Hashable CreateDeploymentGroup Source # 
NFData CreateDeploymentGroup Source # 

Methods

rnf :: CreateDeploymentGroup -> () #

AWSRequest CreateDeploymentGroup Source # 
ToPath CreateDeploymentGroup Source # 
ToHeaders CreateDeploymentGroup Source # 
ToQuery CreateDeploymentGroup Source # 
ToJSON CreateDeploymentGroup Source # 
type Rep CreateDeploymentGroup Source # 
type Rep CreateDeploymentGroup = D1 (MetaData "CreateDeploymentGroup" "Network.AWS.CodeDeploy.CreateDeploymentGroup" "amazonka-codedeploy-1.4.4-Huu7Ojj4Bf81ynvsJ5IuvU" False) (C1 (MetaCons "CreateDeploymentGroup'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cdgDeploymentConfigName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cdgEc2TagFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [EC2TagFilter])))) ((:*:) (S1 (MetaSel (Just Symbol "_cdgOnPremisesInstanceTagFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TagFilter]))) (S1 (MetaSel (Just Symbol "_cdgTriggerConfigurations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TriggerConfig]))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_cdgAutoScalingGroups") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_cdgApplicationName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_cdgDeploymentGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_cdgServiceRoleARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs CreateDeploymentGroup Source # 

Request Lenses

cdgDeploymentConfigName :: Lens' CreateDeploymentGroup (Maybe Text) Source #

If specified, the deployment configuration name can be either one of the predefined configurations provided with AWS CodeDeploy or a custom deployment configuration that you create by calling the create deployment configuration operation.

CodeDeployDefault.OneAtATime is the default deployment configuration. It is used if a configuration isn't specified for the deployment or the deployment group.

The predefined deployment configurations include the following:

  • CodeDeployDefault.AllAtOnce attempts to deploy an application revision to as many instance as possible at once. The status of the overall deployment will be displayed as Succeeded if the application revision is deployed to one or more of the instances. The status of the overall deployment will be displayed as Failed if the application revision is not deployed to any of the instances. Using an example of nine instance, CodeDeployDefault.AllAtOnce will attempt to deploy to all nine instance at once. The overall deployment will succeed if deployment to even a single instance is successful; it will fail only if deployments to all nine instance fail.
  • CodeDeployDefault.HalfAtATime deploys to up to half of the instances at a time (with fractions rounded down). The overall deployment succeeds if the application revision is deployed to at least half of the instances (with fractions rounded up); otherwise, the deployment fails. In the example of nine instances, it will deploy to up to four instance at a time. The overall deployment succeeds if deployment to five or more instances succeed; otherwise, the deployment fails. The deployment may be successfully deployed to some instances even if the overall deployment fails.
  • CodeDeployDefault.OneAtATime deploys the application revision to only one instance at a time.

    For deployment groups that contain more than one instance:

    • The overall deployment succeeds if the application revision is deployed to all of the instances. The exception to this rule is if deployment to the last instance fails, the overall deployment still succeeds. This is because AWS CodeDeploy allows only one instance at a time to be taken offline with the CodeDeployDefault.OneAtATime configuration.
    • The overall deployment fails as soon as the application revision fails to be deployed to any but the last instance. The deployment may be successfully deployed to some instances even if the overall deployment fails.
    • In an example using nine instance, it will deploy to one instance at a time. The overall deployment succeeds if deployment to the first eight instance is successful; the overall deployment fails if deployment to any of the first eight instance fails.

    For deployment groups that contain only one instance, the overall deployment is successful only if deployment to the single instance is successful

cdgEc2TagFilters :: Lens' CreateDeploymentGroup [EC2TagFilter] Source #

The Amazon EC2 tags on which to filter.

cdgOnPremisesInstanceTagFilters :: Lens' CreateDeploymentGroup [TagFilter] Source #

The on-premises instance tags on which to filter.

cdgTriggerConfigurations :: Lens' CreateDeploymentGroup [TriggerConfig] Source #

Information about triggers to create when the deployment group is created.

cdgAutoScalingGroups :: Lens' CreateDeploymentGroup [Text] Source #

A list of associated Auto Scaling groups.

cdgApplicationName :: Lens' CreateDeploymentGroup Text Source #

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

cdgDeploymentGroupName :: Lens' CreateDeploymentGroup Text Source #

The name of a new deployment group for the specified application.

cdgServiceRoleARN :: Lens' CreateDeploymentGroup Text Source #

A service role ARN that allows AWS CodeDeploy to act on the user's behalf when interacting with AWS services.

Destructuring the Response

createDeploymentGroupResponse Source #

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

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

data CreateDeploymentGroupResponse Source #

Represents the output of a create deployment group operation.

See: createDeploymentGroupResponse smart constructor.

Instances

Eq CreateDeploymentGroupResponse Source # 
Data CreateDeploymentGroupResponse Source # 

Methods

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

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

toConstr :: CreateDeploymentGroupResponse -> Constr #

dataTypeOf :: CreateDeploymentGroupResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreateDeploymentGroupResponse Source # 
Show CreateDeploymentGroupResponse Source # 
Generic CreateDeploymentGroupResponse Source # 
NFData CreateDeploymentGroupResponse Source # 
type Rep CreateDeploymentGroupResponse Source # 
type Rep CreateDeploymentGroupResponse = D1 (MetaData "CreateDeploymentGroupResponse" "Network.AWS.CodeDeploy.CreateDeploymentGroup" "amazonka-codedeploy-1.4.4-Huu7Ojj4Bf81ynvsJ5IuvU" False) (C1 (MetaCons "CreateDeploymentGroupResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cdgrsDeploymentGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cdgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses