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.CreateDeploymentGroup

Contents

Description

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

Synopsis

Creating a Request

createDeploymentGroup Source #

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

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

  • cdgEc2TagSet - Information about groups of tags applied to EC2 instances. The deployment group will include only EC2 instances identified by all the tag groups. Cannot be used in the same call as ec2TagFilters.
  • cdgDeploymentConfigName - 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. For more information about the predefined deployment configurations in AWS CodeDeploy, see Working with Deployment Groups in AWS CodeDeploy in the AWS CodeDeploy User Guide.
  • cdgOnPremisesTagSet - Information about groups of tags applied to on-premises instances. The deployment group will include only on-premises instances identified by all the tag groups. Cannot be used in the same call as onPremisesInstanceTagFilters.
  • cdgEc2TagFilters - The Amazon EC2 tags on which to filter. The deployment group will include EC2 instances with any of the specified tags. Cannot be used in the same call as ec2TagSet.
  • cdgBlueGreenDeploymentConfiguration - Information about blue/green deployment options for a deployment group.
  • cdgLoadBalancerInfo - Information about the load balancer used in a deployment.
  • cdgOnPremisesInstanceTagFilters - The on-premises instance tags on which to filter. The deployment group will include on-premises instances with any of the specified tags. Cannot be used in the same call as OnPremisesTagSet.
  • cdgAlarmConfiguration - Information to add about Amazon CloudWatch alarms when the deployment group is created.
  • cdgTriggerConfigurations - Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for an AWS CodeDeploy Event in the AWS CodeDeploy User Guide.
  • cdgAutoScalingGroups - A list of associated Auto Scaling groups.
  • cdgDeploymentStyle - Information about the type of deployment, in-place or blue/green, that you want to run and whether to route deployment traffic behind a load balancer.
  • cdgAutoRollbackConfiguration - Configuration information for an automatic rollback that is added when a deployment group is created.
  • cdgApplicationName - The name of an AWS CodeDeploy application associated with the applicable IAM user or AWS account.
  • cdgDeploymentGroupName - The name of a new deployment group for the specified application.
  • cdgServiceRoleARN - A service role ARN that allows AWS CodeDeploy to act on the user's behalf when interacting with AWS services.

data CreateDeploymentGroup Source #

Represents the input of a CreateDeploymentGroup 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 # 
ToJSON CreateDeploymentGroup Source # 
NFData CreateDeploymentGroup Source # 

Methods

rnf :: CreateDeploymentGroup -> () #

AWSRequest CreateDeploymentGroup Source # 
ToHeaders CreateDeploymentGroup Source # 
ToPath CreateDeploymentGroup Source # 
ToQuery CreateDeploymentGroup Source # 
type Rep CreateDeploymentGroup Source # 
type Rep CreateDeploymentGroup = D1 * (MetaData "CreateDeploymentGroup" "Network.AWS.CodeDeploy.CreateDeploymentGroup" "amazonka-codedeploy-1.6.0-FbexHQXokzbCl7hnYMiCm8" False) (C1 * (MetaCons "CreateDeploymentGroup'" PrefixI True) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cdgEc2TagSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe EC2TagSet))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdgDeploymentConfigName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cdgOnPremisesTagSet") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe OnPremisesTagSet))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cdgEc2TagFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [EC2TagFilter]))) (S1 * (MetaSel (Just Symbol "_cdgBlueGreenDeploymentConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe BlueGreenDeploymentConfiguration)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdgLoadBalancerInfo") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe LoadBalancerInfo))) (S1 * (MetaSel (Just Symbol "_cdgOnPremisesInstanceTagFilters") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [TagFilter])))))) ((:*:) * ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cdgAlarmConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AlarmConfiguration))) (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 "_cdgDeploymentStyle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe DeploymentStyle))))) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cdgAutoRollbackConfiguration") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe AutoRollbackConfiguration))) (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

cdgEc2TagSet :: Lens' CreateDeploymentGroup (Maybe EC2TagSet) Source #

Information about groups of tags applied to EC2 instances. The deployment group will include only EC2 instances identified by all the tag groups. Cannot be used in the same call as ec2TagFilters.

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. For more information about the predefined deployment configurations in AWS CodeDeploy, see Working with Deployment Groups in AWS CodeDeploy in the AWS CodeDeploy User Guide.

cdgOnPremisesTagSet :: Lens' CreateDeploymentGroup (Maybe OnPremisesTagSet) Source #

Information about groups of tags applied to on-premises instances. The deployment group will include only on-premises instances identified by all the tag groups. Cannot be used in the same call as onPremisesInstanceTagFilters.

cdgEc2TagFilters :: Lens' CreateDeploymentGroup [EC2TagFilter] Source #

The Amazon EC2 tags on which to filter. The deployment group will include EC2 instances with any of the specified tags. Cannot be used in the same call as ec2TagSet.

cdgBlueGreenDeploymentConfiguration :: Lens' CreateDeploymentGroup (Maybe BlueGreenDeploymentConfiguration) Source #

Information about blue/green deployment options for a deployment group.

cdgLoadBalancerInfo :: Lens' CreateDeploymentGroup (Maybe LoadBalancerInfo) Source #

Information about the load balancer used in a deployment.

cdgOnPremisesInstanceTagFilters :: Lens' CreateDeploymentGroup [TagFilter] Source #

The on-premises instance tags on which to filter. The deployment group will include on-premises instances with any of the specified tags. Cannot be used in the same call as OnPremisesTagSet.

cdgAlarmConfiguration :: Lens' CreateDeploymentGroup (Maybe AlarmConfiguration) Source #

Information to add about Amazon CloudWatch alarms when the deployment group is created.

cdgTriggerConfigurations :: Lens' CreateDeploymentGroup [TriggerConfig] Source #

Information about triggers to create when the deployment group is created. For examples, see Create a Trigger for an AWS CodeDeploy Event in the AWS CodeDeploy User Guide.

cdgAutoScalingGroups :: Lens' CreateDeploymentGroup [Text] Source #

A list of associated Auto Scaling groups.

cdgDeploymentStyle :: Lens' CreateDeploymentGroup (Maybe DeploymentStyle) Source #

Information about the type of deployment, in-place or blue/green, that you want to run and whether to route deployment traffic behind a load balancer.

cdgAutoRollbackConfiguration :: Lens' CreateDeploymentGroup (Maybe AutoRollbackConfiguration) Source #

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

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 CreateDeploymentGroup 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.6.0-FbexHQXokzbCl7hnYMiCm8" False) (C1 * (MetaCons "CreateDeploymentGroupResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cdgrsDeploymentGroupId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cdgrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses