{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CodeDeploy.Types.DeploymentGroupInfo
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.CodeDeploy.Types.DeploymentGroupInfo where

import Amazonka.CodeDeploy.Types.AlarmConfiguration
import Amazonka.CodeDeploy.Types.AutoRollbackConfiguration
import Amazonka.CodeDeploy.Types.AutoScalingGroup
import Amazonka.CodeDeploy.Types.BlueGreenDeploymentConfiguration
import Amazonka.CodeDeploy.Types.ComputePlatform
import Amazonka.CodeDeploy.Types.DeploymentStyle
import Amazonka.CodeDeploy.Types.EC2TagFilter
import Amazonka.CodeDeploy.Types.EC2TagSet
import Amazonka.CodeDeploy.Types.ECSService
import Amazonka.CodeDeploy.Types.LastDeploymentInfo
import Amazonka.CodeDeploy.Types.LoadBalancerInfo
import Amazonka.CodeDeploy.Types.OnPremisesTagSet
import Amazonka.CodeDeploy.Types.OutdatedInstancesStrategy
import Amazonka.CodeDeploy.Types.RevisionLocation
import Amazonka.CodeDeploy.Types.TagFilter
import Amazonka.CodeDeploy.Types.TriggerConfig
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Information about a deployment group.
--
-- /See:/ 'newDeploymentGroupInfo' smart constructor.
data DeploymentGroupInfo = DeploymentGroupInfo'
  { -- | A service role Amazon Resource Name (ARN) that grants CodeDeploy
    -- permission to make calls to AWS services on your behalf. For more
    -- information, see
    -- <https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-service-role.html Create a Service Role for AWS CodeDeploy>
    -- in the /AWS CodeDeploy User Guide/.
    DeploymentGroupInfo -> Maybe Text
serviceRoleArn :: Prelude.Maybe Prelude.Text,
    -- | Information about groups of tags applied to an EC2 instance. The
    -- deployment group includes only EC2 instances identified by all of the
    -- tag groups. Cannot be used in the same call as ec2TagFilters.
    DeploymentGroupInfo -> Maybe EC2TagSet
ec2TagSet :: Prelude.Maybe EC2TagSet,
    -- | The deployment configuration name.
    DeploymentGroupInfo -> Maybe Text
deploymentConfigName :: Prelude.Maybe Prelude.Text,
    -- | Information about the most recent attempted deployment to the deployment
    -- group.
    DeploymentGroupInfo -> Maybe LastDeploymentInfo
lastAttemptedDeployment :: Prelude.Maybe LastDeploymentInfo,
    -- | Information about groups of tags applied to an on-premises instance. The
    -- deployment group includes only on-premises instances identified by all
    -- the tag groups. Cannot be used in the same call as
    -- onPremisesInstanceTagFilters.
    DeploymentGroupInfo -> Maybe OnPremisesTagSet
onPremisesTagSet :: Prelude.Maybe OnPremisesTagSet,
    -- | The destination platform type for the deployment (@Lambda@, @Server@, or
    -- @ECS@).
    DeploymentGroupInfo -> Maybe ComputePlatform
computePlatform :: Prelude.Maybe ComputePlatform,
    -- | Information about the deployment group\'s target revision, including
    -- type and location.
    DeploymentGroupInfo -> Maybe RevisionLocation
targetRevision :: Prelude.Maybe RevisionLocation,
    -- | The Amazon EC2 tags on which to filter. The deployment group includes
    -- EC2 instances with any of the specified tags.
    DeploymentGroupInfo -> Maybe [EC2TagFilter]
ec2TagFilters :: Prelude.Maybe [EC2TagFilter],
    -- | The target Amazon ECS services in the deployment group. This applies
    -- only to deployment groups that use the Amazon ECS compute platform. A
    -- target Amazon ECS service is specified as an Amazon ECS cluster and
    -- service name pair using the format @\<clustername>:\<servicename>@.
    DeploymentGroupInfo -> Maybe [ECSService]
ecsServices :: Prelude.Maybe [ECSService],
    -- | Information about blue\/green deployment options for a deployment group.
    DeploymentGroupInfo -> Maybe BlueGreenDeploymentConfiguration
blueGreenDeploymentConfiguration :: Prelude.Maybe BlueGreenDeploymentConfiguration,
    -- | Information about the load balancer to use in a deployment.
    DeploymentGroupInfo -> Maybe LoadBalancerInfo
loadBalancerInfo :: Prelude.Maybe LoadBalancerInfo,
    -- | Indicates what happens when new EC2 instances are launched
    -- mid-deployment and do not receive the deployed application revision.
    --
    -- If this option is set to @UPDATE@ or is unspecified, CodeDeploy
    -- initiates one or more \'auto-update outdated instances\' deployments to
    -- apply the deployed application revision to the new EC2 instances.
    --
    -- If this option is set to @IGNORE@, CodeDeploy does not initiate a
    -- deployment to update the new EC2 instances. This may result in instances
    -- having different revisions.
    DeploymentGroupInfo -> Maybe OutdatedInstancesStrategy
outdatedInstancesStrategy :: Prelude.Maybe OutdatedInstancesStrategy,
    -- | The on-premises instance tags on which to filter. The deployment group
    -- includes on-premises instances with any of the specified tags.
    DeploymentGroupInfo -> Maybe [TagFilter]
onPremisesInstanceTagFilters :: Prelude.Maybe [TagFilter],
    -- | Information about the most recent successful deployment to the
    -- deployment group.
    DeploymentGroupInfo -> Maybe LastDeploymentInfo
lastSuccessfulDeployment :: Prelude.Maybe LastDeploymentInfo,
    -- | The application name.
    DeploymentGroupInfo -> Maybe Text
applicationName :: Prelude.Maybe Prelude.Text,
    -- | A list of alarms associated with the deployment group.
    DeploymentGroupInfo -> Maybe AlarmConfiguration
alarmConfiguration :: Prelude.Maybe AlarmConfiguration,
    -- | Information about triggers associated with the deployment group.
    DeploymentGroupInfo -> Maybe [TriggerConfig]
triggerConfigurations :: Prelude.Maybe [TriggerConfig],
    -- | The deployment group ID.
    DeploymentGroupInfo -> Maybe Text
deploymentGroupId :: Prelude.Maybe Prelude.Text,
    -- | A list of associated Auto Scaling groups.
    DeploymentGroupInfo -> Maybe [AutoScalingGroup]
autoScalingGroups :: Prelude.Maybe [AutoScalingGroup],
    -- | Information about the type of deployment, either in-place or
    -- blue\/green, you want to run and whether to route deployment traffic
    -- behind a load balancer.
    DeploymentGroupInfo -> Maybe DeploymentStyle
deploymentStyle :: Prelude.Maybe DeploymentStyle,
    -- | Information about the automatic rollback configuration associated with
    -- the deployment group.
    DeploymentGroupInfo -> Maybe AutoRollbackConfiguration
autoRollbackConfiguration :: Prelude.Maybe AutoRollbackConfiguration,
    -- | The deployment group name.
    DeploymentGroupInfo -> Maybe Text
deploymentGroupName :: Prelude.Maybe Prelude.Text
  }
  deriving (DeploymentGroupInfo -> DeploymentGroupInfo -> Bool
(DeploymentGroupInfo -> DeploymentGroupInfo -> Bool)
-> (DeploymentGroupInfo -> DeploymentGroupInfo -> Bool)
-> Eq DeploymentGroupInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeploymentGroupInfo -> DeploymentGroupInfo -> Bool
$c/= :: DeploymentGroupInfo -> DeploymentGroupInfo -> Bool
== :: DeploymentGroupInfo -> DeploymentGroupInfo -> Bool
$c== :: DeploymentGroupInfo -> DeploymentGroupInfo -> Bool
Prelude.Eq, ReadPrec [DeploymentGroupInfo]
ReadPrec DeploymentGroupInfo
Int -> ReadS DeploymentGroupInfo
ReadS [DeploymentGroupInfo]
(Int -> ReadS DeploymentGroupInfo)
-> ReadS [DeploymentGroupInfo]
-> ReadPrec DeploymentGroupInfo
-> ReadPrec [DeploymentGroupInfo]
-> Read DeploymentGroupInfo
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeploymentGroupInfo]
$creadListPrec :: ReadPrec [DeploymentGroupInfo]
readPrec :: ReadPrec DeploymentGroupInfo
$creadPrec :: ReadPrec DeploymentGroupInfo
readList :: ReadS [DeploymentGroupInfo]
$creadList :: ReadS [DeploymentGroupInfo]
readsPrec :: Int -> ReadS DeploymentGroupInfo
$creadsPrec :: Int -> ReadS DeploymentGroupInfo
Prelude.Read, Int -> DeploymentGroupInfo -> ShowS
[DeploymentGroupInfo] -> ShowS
DeploymentGroupInfo -> String
(Int -> DeploymentGroupInfo -> ShowS)
-> (DeploymentGroupInfo -> String)
-> ([DeploymentGroupInfo] -> ShowS)
-> Show DeploymentGroupInfo
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeploymentGroupInfo] -> ShowS
$cshowList :: [DeploymentGroupInfo] -> ShowS
show :: DeploymentGroupInfo -> String
$cshow :: DeploymentGroupInfo -> String
showsPrec :: Int -> DeploymentGroupInfo -> ShowS
$cshowsPrec :: Int -> DeploymentGroupInfo -> ShowS
Prelude.Show, (forall x. DeploymentGroupInfo -> Rep DeploymentGroupInfo x)
-> (forall x. Rep DeploymentGroupInfo x -> DeploymentGroupInfo)
-> Generic DeploymentGroupInfo
forall x. Rep DeploymentGroupInfo x -> DeploymentGroupInfo
forall x. DeploymentGroupInfo -> Rep DeploymentGroupInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeploymentGroupInfo x -> DeploymentGroupInfo
$cfrom :: forall x. DeploymentGroupInfo -> Rep DeploymentGroupInfo x
Prelude.Generic)

-- |
-- Create a value of 'DeploymentGroupInfo' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'serviceRoleArn', 'deploymentGroupInfo_serviceRoleArn' - A service role Amazon Resource Name (ARN) that grants CodeDeploy
-- permission to make calls to AWS services on your behalf. For more
-- information, see
-- <https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-service-role.html Create a Service Role for AWS CodeDeploy>
-- in the /AWS CodeDeploy User Guide/.
--
-- 'ec2TagSet', 'deploymentGroupInfo_ec2TagSet' - Information about groups of tags applied to an EC2 instance. The
-- deployment group includes only EC2 instances identified by all of the
-- tag groups. Cannot be used in the same call as ec2TagFilters.
--
-- 'deploymentConfigName', 'deploymentGroupInfo_deploymentConfigName' - The deployment configuration name.
--
-- 'lastAttemptedDeployment', 'deploymentGroupInfo_lastAttemptedDeployment' - Information about the most recent attempted deployment to the deployment
-- group.
--
-- 'onPremisesTagSet', 'deploymentGroupInfo_onPremisesTagSet' - Information about groups of tags applied to an on-premises instance. The
-- deployment group includes only on-premises instances identified by all
-- the tag groups. Cannot be used in the same call as
-- onPremisesInstanceTagFilters.
--
-- 'computePlatform', 'deploymentGroupInfo_computePlatform' - The destination platform type for the deployment (@Lambda@, @Server@, or
-- @ECS@).
--
-- 'targetRevision', 'deploymentGroupInfo_targetRevision' - Information about the deployment group\'s target revision, including
-- type and location.
--
-- 'ec2TagFilters', 'deploymentGroupInfo_ec2TagFilters' - The Amazon EC2 tags on which to filter. The deployment group includes
-- EC2 instances with any of the specified tags.
--
-- 'ecsServices', 'deploymentGroupInfo_ecsServices' - The target Amazon ECS services in the deployment group. This applies
-- only to deployment groups that use the Amazon ECS compute platform. A
-- target Amazon ECS service is specified as an Amazon ECS cluster and
-- service name pair using the format @\<clustername>:\<servicename>@.
--
-- 'blueGreenDeploymentConfiguration', 'deploymentGroupInfo_blueGreenDeploymentConfiguration' - Information about blue\/green deployment options for a deployment group.
--
-- 'loadBalancerInfo', 'deploymentGroupInfo_loadBalancerInfo' - Information about the load balancer to use in a deployment.
--
-- 'outdatedInstancesStrategy', 'deploymentGroupInfo_outdatedInstancesStrategy' - Indicates what happens when new EC2 instances are launched
-- mid-deployment and do not receive the deployed application revision.
--
-- If this option is set to @UPDATE@ or is unspecified, CodeDeploy
-- initiates one or more \'auto-update outdated instances\' deployments to
-- apply the deployed application revision to the new EC2 instances.
--
-- If this option is set to @IGNORE@, CodeDeploy does not initiate a
-- deployment to update the new EC2 instances. This may result in instances
-- having different revisions.
--
-- 'onPremisesInstanceTagFilters', 'deploymentGroupInfo_onPremisesInstanceTagFilters' - The on-premises instance tags on which to filter. The deployment group
-- includes on-premises instances with any of the specified tags.
--
-- 'lastSuccessfulDeployment', 'deploymentGroupInfo_lastSuccessfulDeployment' - Information about the most recent successful deployment to the
-- deployment group.
--
-- 'applicationName', 'deploymentGroupInfo_applicationName' - The application name.
--
-- 'alarmConfiguration', 'deploymentGroupInfo_alarmConfiguration' - A list of alarms associated with the deployment group.
--
-- 'triggerConfigurations', 'deploymentGroupInfo_triggerConfigurations' - Information about triggers associated with the deployment group.
--
-- 'deploymentGroupId', 'deploymentGroupInfo_deploymentGroupId' - The deployment group ID.
--
-- 'autoScalingGroups', 'deploymentGroupInfo_autoScalingGroups' - A list of associated Auto Scaling groups.
--
-- 'deploymentStyle', 'deploymentGroupInfo_deploymentStyle' - Information about the type of deployment, either in-place or
-- blue\/green, you want to run and whether to route deployment traffic
-- behind a load balancer.
--
-- 'autoRollbackConfiguration', 'deploymentGroupInfo_autoRollbackConfiguration' - Information about the automatic rollback configuration associated with
-- the deployment group.
--
-- 'deploymentGroupName', 'deploymentGroupInfo_deploymentGroupName' - The deployment group name.
newDeploymentGroupInfo ::
  DeploymentGroupInfo
newDeploymentGroupInfo :: DeploymentGroupInfo
newDeploymentGroupInfo =
  DeploymentGroupInfo' :: Maybe Text
-> Maybe EC2TagSet
-> Maybe Text
-> Maybe LastDeploymentInfo
-> Maybe OnPremisesTagSet
-> Maybe ComputePlatform
-> Maybe RevisionLocation
-> Maybe [EC2TagFilter]
-> Maybe [ECSService]
-> Maybe BlueGreenDeploymentConfiguration
-> Maybe LoadBalancerInfo
-> Maybe OutdatedInstancesStrategy
-> Maybe [TagFilter]
-> Maybe LastDeploymentInfo
-> Maybe Text
-> Maybe AlarmConfiguration
-> Maybe [TriggerConfig]
-> Maybe Text
-> Maybe [AutoScalingGroup]
-> Maybe DeploymentStyle
-> Maybe AutoRollbackConfiguration
-> Maybe Text
-> DeploymentGroupInfo
DeploymentGroupInfo'
    { $sel:serviceRoleArn:DeploymentGroupInfo' :: Maybe Text
serviceRoleArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:ec2TagSet:DeploymentGroupInfo' :: Maybe EC2TagSet
ec2TagSet = Maybe EC2TagSet
forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentConfigName:DeploymentGroupInfo' :: Maybe Text
deploymentConfigName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastAttemptedDeployment:DeploymentGroupInfo' :: Maybe LastDeploymentInfo
lastAttemptedDeployment = Maybe LastDeploymentInfo
forall a. Maybe a
Prelude.Nothing,
      $sel:onPremisesTagSet:DeploymentGroupInfo' :: Maybe OnPremisesTagSet
onPremisesTagSet = Maybe OnPremisesTagSet
forall a. Maybe a
Prelude.Nothing,
      $sel:computePlatform:DeploymentGroupInfo' :: Maybe ComputePlatform
computePlatform = Maybe ComputePlatform
forall a. Maybe a
Prelude.Nothing,
      $sel:targetRevision:DeploymentGroupInfo' :: Maybe RevisionLocation
targetRevision = Maybe RevisionLocation
forall a. Maybe a
Prelude.Nothing,
      $sel:ec2TagFilters:DeploymentGroupInfo' :: Maybe [EC2TagFilter]
ec2TagFilters = Maybe [EC2TagFilter]
forall a. Maybe a
Prelude.Nothing,
      $sel:ecsServices:DeploymentGroupInfo' :: Maybe [ECSService]
ecsServices = Maybe [ECSService]
forall a. Maybe a
Prelude.Nothing,
      $sel:blueGreenDeploymentConfiguration:DeploymentGroupInfo' :: Maybe BlueGreenDeploymentConfiguration
blueGreenDeploymentConfiguration = Maybe BlueGreenDeploymentConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:loadBalancerInfo:DeploymentGroupInfo' :: Maybe LoadBalancerInfo
loadBalancerInfo = Maybe LoadBalancerInfo
forall a. Maybe a
Prelude.Nothing,
      $sel:outdatedInstancesStrategy:DeploymentGroupInfo' :: Maybe OutdatedInstancesStrategy
outdatedInstancesStrategy = Maybe OutdatedInstancesStrategy
forall a. Maybe a
Prelude.Nothing,
      $sel:onPremisesInstanceTagFilters:DeploymentGroupInfo' :: Maybe [TagFilter]
onPremisesInstanceTagFilters = Maybe [TagFilter]
forall a. Maybe a
Prelude.Nothing,
      $sel:lastSuccessfulDeployment:DeploymentGroupInfo' :: Maybe LastDeploymentInfo
lastSuccessfulDeployment = Maybe LastDeploymentInfo
forall a. Maybe a
Prelude.Nothing,
      $sel:applicationName:DeploymentGroupInfo' :: Maybe Text
applicationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:alarmConfiguration:DeploymentGroupInfo' :: Maybe AlarmConfiguration
alarmConfiguration = Maybe AlarmConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:triggerConfigurations:DeploymentGroupInfo' :: Maybe [TriggerConfig]
triggerConfigurations = Maybe [TriggerConfig]
forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentGroupId:DeploymentGroupInfo' :: Maybe Text
deploymentGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:autoScalingGroups:DeploymentGroupInfo' :: Maybe [AutoScalingGroup]
autoScalingGroups = Maybe [AutoScalingGroup]
forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentStyle:DeploymentGroupInfo' :: Maybe DeploymentStyle
deploymentStyle = Maybe DeploymentStyle
forall a. Maybe a
Prelude.Nothing,
      $sel:autoRollbackConfiguration:DeploymentGroupInfo' :: Maybe AutoRollbackConfiguration
autoRollbackConfiguration = Maybe AutoRollbackConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentGroupName:DeploymentGroupInfo' :: Maybe Text
deploymentGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | A service role Amazon Resource Name (ARN) that grants CodeDeploy
-- permission to make calls to AWS services on your behalf. For more
-- information, see
-- <https://docs.aws.amazon.com/codedeploy/latest/userguide/getting-started-create-service-role.html Create a Service Role for AWS CodeDeploy>
-- in the /AWS CodeDeploy User Guide/.
deploymentGroupInfo_serviceRoleArn :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe Prelude.Text)
deploymentGroupInfo_serviceRoleArn :: (Maybe Text -> f (Maybe Text))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_serviceRoleArn = (DeploymentGroupInfo -> Maybe Text)
-> (DeploymentGroupInfo -> Maybe Text -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo DeploymentGroupInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe Text
serviceRoleArn :: Maybe Text
$sel:serviceRoleArn:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
serviceRoleArn} -> Maybe Text
serviceRoleArn) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe Text
a -> DeploymentGroupInfo
s {$sel:serviceRoleArn:DeploymentGroupInfo' :: Maybe Text
serviceRoleArn = Maybe Text
a} :: DeploymentGroupInfo)

-- | Information about groups of tags applied to an EC2 instance. The
-- deployment group includes only EC2 instances identified by all of the
-- tag groups. Cannot be used in the same call as ec2TagFilters.
deploymentGroupInfo_ec2TagSet :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe EC2TagSet)
deploymentGroupInfo_ec2TagSet :: (Maybe EC2TagSet -> f (Maybe EC2TagSet))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_ec2TagSet = (DeploymentGroupInfo -> Maybe EC2TagSet)
-> (DeploymentGroupInfo -> Maybe EC2TagSet -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe EC2TagSet)
     (Maybe EC2TagSet)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe EC2TagSet
ec2TagSet :: Maybe EC2TagSet
$sel:ec2TagSet:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe EC2TagSet
ec2TagSet} -> Maybe EC2TagSet
ec2TagSet) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe EC2TagSet
a -> DeploymentGroupInfo
s {$sel:ec2TagSet:DeploymentGroupInfo' :: Maybe EC2TagSet
ec2TagSet = Maybe EC2TagSet
a} :: DeploymentGroupInfo)

-- | The deployment configuration name.
deploymentGroupInfo_deploymentConfigName :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe Prelude.Text)
deploymentGroupInfo_deploymentConfigName :: (Maybe Text -> f (Maybe Text))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_deploymentConfigName = (DeploymentGroupInfo -> Maybe Text)
-> (DeploymentGroupInfo -> Maybe Text -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo DeploymentGroupInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe Text
deploymentConfigName :: Maybe Text
$sel:deploymentConfigName:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
deploymentConfigName} -> Maybe Text
deploymentConfigName) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe Text
a -> DeploymentGroupInfo
s {$sel:deploymentConfigName:DeploymentGroupInfo' :: Maybe Text
deploymentConfigName = Maybe Text
a} :: DeploymentGroupInfo)

-- | Information about the most recent attempted deployment to the deployment
-- group.
deploymentGroupInfo_lastAttemptedDeployment :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe LastDeploymentInfo)
deploymentGroupInfo_lastAttemptedDeployment :: (Maybe LastDeploymentInfo -> f (Maybe LastDeploymentInfo))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_lastAttemptedDeployment = (DeploymentGroupInfo -> Maybe LastDeploymentInfo)
-> (DeploymentGroupInfo
    -> Maybe LastDeploymentInfo -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe LastDeploymentInfo)
     (Maybe LastDeploymentInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe LastDeploymentInfo
lastAttemptedDeployment :: Maybe LastDeploymentInfo
$sel:lastAttemptedDeployment:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe LastDeploymentInfo
lastAttemptedDeployment} -> Maybe LastDeploymentInfo
lastAttemptedDeployment) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe LastDeploymentInfo
a -> DeploymentGroupInfo
s {$sel:lastAttemptedDeployment:DeploymentGroupInfo' :: Maybe LastDeploymentInfo
lastAttemptedDeployment = Maybe LastDeploymentInfo
a} :: DeploymentGroupInfo)

-- | Information about groups of tags applied to an on-premises instance. The
-- deployment group includes only on-premises instances identified by all
-- the tag groups. Cannot be used in the same call as
-- onPremisesInstanceTagFilters.
deploymentGroupInfo_onPremisesTagSet :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe OnPremisesTagSet)
deploymentGroupInfo_onPremisesTagSet :: (Maybe OnPremisesTagSet -> f (Maybe OnPremisesTagSet))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_onPremisesTagSet = (DeploymentGroupInfo -> Maybe OnPremisesTagSet)
-> (DeploymentGroupInfo
    -> Maybe OnPremisesTagSet -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe OnPremisesTagSet)
     (Maybe OnPremisesTagSet)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe OnPremisesTagSet
onPremisesTagSet :: Maybe OnPremisesTagSet
$sel:onPremisesTagSet:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe OnPremisesTagSet
onPremisesTagSet} -> Maybe OnPremisesTagSet
onPremisesTagSet) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe OnPremisesTagSet
a -> DeploymentGroupInfo
s {$sel:onPremisesTagSet:DeploymentGroupInfo' :: Maybe OnPremisesTagSet
onPremisesTagSet = Maybe OnPremisesTagSet
a} :: DeploymentGroupInfo)

-- | The destination platform type for the deployment (@Lambda@, @Server@, or
-- @ECS@).
deploymentGroupInfo_computePlatform :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe ComputePlatform)
deploymentGroupInfo_computePlatform :: (Maybe ComputePlatform -> f (Maybe ComputePlatform))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_computePlatform = (DeploymentGroupInfo -> Maybe ComputePlatform)
-> (DeploymentGroupInfo
    -> Maybe ComputePlatform -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe ComputePlatform)
     (Maybe ComputePlatform)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe ComputePlatform
computePlatform :: Maybe ComputePlatform
$sel:computePlatform:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe ComputePlatform
computePlatform} -> Maybe ComputePlatform
computePlatform) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe ComputePlatform
a -> DeploymentGroupInfo
s {$sel:computePlatform:DeploymentGroupInfo' :: Maybe ComputePlatform
computePlatform = Maybe ComputePlatform
a} :: DeploymentGroupInfo)

-- | Information about the deployment group\'s target revision, including
-- type and location.
deploymentGroupInfo_targetRevision :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe RevisionLocation)
deploymentGroupInfo_targetRevision :: (Maybe RevisionLocation -> f (Maybe RevisionLocation))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_targetRevision = (DeploymentGroupInfo -> Maybe RevisionLocation)
-> (DeploymentGroupInfo
    -> Maybe RevisionLocation -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe RevisionLocation)
     (Maybe RevisionLocation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe RevisionLocation
targetRevision :: Maybe RevisionLocation
$sel:targetRevision:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe RevisionLocation
targetRevision} -> Maybe RevisionLocation
targetRevision) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe RevisionLocation
a -> DeploymentGroupInfo
s {$sel:targetRevision:DeploymentGroupInfo' :: Maybe RevisionLocation
targetRevision = Maybe RevisionLocation
a} :: DeploymentGroupInfo)

-- | The Amazon EC2 tags on which to filter. The deployment group includes
-- EC2 instances with any of the specified tags.
deploymentGroupInfo_ec2TagFilters :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe [EC2TagFilter])
deploymentGroupInfo_ec2TagFilters :: (Maybe [EC2TagFilter] -> f (Maybe [EC2TagFilter]))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_ec2TagFilters = (DeploymentGroupInfo -> Maybe [EC2TagFilter])
-> (DeploymentGroupInfo
    -> Maybe [EC2TagFilter] -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe [EC2TagFilter])
     (Maybe [EC2TagFilter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe [EC2TagFilter]
ec2TagFilters :: Maybe [EC2TagFilter]
$sel:ec2TagFilters:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [EC2TagFilter]
ec2TagFilters} -> Maybe [EC2TagFilter]
ec2TagFilters) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe [EC2TagFilter]
a -> DeploymentGroupInfo
s {$sel:ec2TagFilters:DeploymentGroupInfo' :: Maybe [EC2TagFilter]
ec2TagFilters = Maybe [EC2TagFilter]
a} :: DeploymentGroupInfo) ((Maybe [EC2TagFilter] -> f (Maybe [EC2TagFilter]))
 -> DeploymentGroupInfo -> f DeploymentGroupInfo)
-> ((Maybe [EC2TagFilter] -> f (Maybe [EC2TagFilter]))
    -> Maybe [EC2TagFilter] -> f (Maybe [EC2TagFilter]))
-> (Maybe [EC2TagFilter] -> f (Maybe [EC2TagFilter]))
-> DeploymentGroupInfo
-> f DeploymentGroupInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [EC2TagFilter] [EC2TagFilter] [EC2TagFilter] [EC2TagFilter]
-> Iso
     (Maybe [EC2TagFilter])
     (Maybe [EC2TagFilter])
     (Maybe [EC2TagFilter])
     (Maybe [EC2TagFilter])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [EC2TagFilter] [EC2TagFilter] [EC2TagFilter] [EC2TagFilter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The target Amazon ECS services in the deployment group. This applies
-- only to deployment groups that use the Amazon ECS compute platform. A
-- target Amazon ECS service is specified as an Amazon ECS cluster and
-- service name pair using the format @\<clustername>:\<servicename>@.
deploymentGroupInfo_ecsServices :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe [ECSService])
deploymentGroupInfo_ecsServices :: (Maybe [ECSService] -> f (Maybe [ECSService]))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_ecsServices = (DeploymentGroupInfo -> Maybe [ECSService])
-> (DeploymentGroupInfo
    -> Maybe [ECSService] -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe [ECSService])
     (Maybe [ECSService])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe [ECSService]
ecsServices :: Maybe [ECSService]
$sel:ecsServices:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [ECSService]
ecsServices} -> Maybe [ECSService]
ecsServices) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe [ECSService]
a -> DeploymentGroupInfo
s {$sel:ecsServices:DeploymentGroupInfo' :: Maybe [ECSService]
ecsServices = Maybe [ECSService]
a} :: DeploymentGroupInfo) ((Maybe [ECSService] -> f (Maybe [ECSService]))
 -> DeploymentGroupInfo -> f DeploymentGroupInfo)
-> ((Maybe [ECSService] -> f (Maybe [ECSService]))
    -> Maybe [ECSService] -> f (Maybe [ECSService]))
-> (Maybe [ECSService] -> f (Maybe [ECSService]))
-> DeploymentGroupInfo
-> f DeploymentGroupInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ECSService] [ECSService] [ECSService] [ECSService]
-> Iso
     (Maybe [ECSService])
     (Maybe [ECSService])
     (Maybe [ECSService])
     (Maybe [ECSService])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [ECSService] [ECSService] [ECSService] [ECSService]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Information about blue\/green deployment options for a deployment group.
deploymentGroupInfo_blueGreenDeploymentConfiguration :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe BlueGreenDeploymentConfiguration)
deploymentGroupInfo_blueGreenDeploymentConfiguration :: (Maybe BlueGreenDeploymentConfiguration
 -> f (Maybe BlueGreenDeploymentConfiguration))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_blueGreenDeploymentConfiguration = (DeploymentGroupInfo -> Maybe BlueGreenDeploymentConfiguration)
-> (DeploymentGroupInfo
    -> Maybe BlueGreenDeploymentConfiguration -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe BlueGreenDeploymentConfiguration)
     (Maybe BlueGreenDeploymentConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe BlueGreenDeploymentConfiguration
blueGreenDeploymentConfiguration :: Maybe BlueGreenDeploymentConfiguration
$sel:blueGreenDeploymentConfiguration:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe BlueGreenDeploymentConfiguration
blueGreenDeploymentConfiguration} -> Maybe BlueGreenDeploymentConfiguration
blueGreenDeploymentConfiguration) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe BlueGreenDeploymentConfiguration
a -> DeploymentGroupInfo
s {$sel:blueGreenDeploymentConfiguration:DeploymentGroupInfo' :: Maybe BlueGreenDeploymentConfiguration
blueGreenDeploymentConfiguration = Maybe BlueGreenDeploymentConfiguration
a} :: DeploymentGroupInfo)

-- | Information about the load balancer to use in a deployment.
deploymentGroupInfo_loadBalancerInfo :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe LoadBalancerInfo)
deploymentGroupInfo_loadBalancerInfo :: (Maybe LoadBalancerInfo -> f (Maybe LoadBalancerInfo))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_loadBalancerInfo = (DeploymentGroupInfo -> Maybe LoadBalancerInfo)
-> (DeploymentGroupInfo
    -> Maybe LoadBalancerInfo -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe LoadBalancerInfo)
     (Maybe LoadBalancerInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe LoadBalancerInfo
loadBalancerInfo :: Maybe LoadBalancerInfo
$sel:loadBalancerInfo:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe LoadBalancerInfo
loadBalancerInfo} -> Maybe LoadBalancerInfo
loadBalancerInfo) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe LoadBalancerInfo
a -> DeploymentGroupInfo
s {$sel:loadBalancerInfo:DeploymentGroupInfo' :: Maybe LoadBalancerInfo
loadBalancerInfo = Maybe LoadBalancerInfo
a} :: DeploymentGroupInfo)

-- | Indicates what happens when new EC2 instances are launched
-- mid-deployment and do not receive the deployed application revision.
--
-- If this option is set to @UPDATE@ or is unspecified, CodeDeploy
-- initiates one or more \'auto-update outdated instances\' deployments to
-- apply the deployed application revision to the new EC2 instances.
--
-- If this option is set to @IGNORE@, CodeDeploy does not initiate a
-- deployment to update the new EC2 instances. This may result in instances
-- having different revisions.
deploymentGroupInfo_outdatedInstancesStrategy :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe OutdatedInstancesStrategy)
deploymentGroupInfo_outdatedInstancesStrategy :: (Maybe OutdatedInstancesStrategy
 -> f (Maybe OutdatedInstancesStrategy))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_outdatedInstancesStrategy = (DeploymentGroupInfo -> Maybe OutdatedInstancesStrategy)
-> (DeploymentGroupInfo
    -> Maybe OutdatedInstancesStrategy -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe OutdatedInstancesStrategy)
     (Maybe OutdatedInstancesStrategy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe OutdatedInstancesStrategy
outdatedInstancesStrategy :: Maybe OutdatedInstancesStrategy
$sel:outdatedInstancesStrategy:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe OutdatedInstancesStrategy
outdatedInstancesStrategy} -> Maybe OutdatedInstancesStrategy
outdatedInstancesStrategy) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe OutdatedInstancesStrategy
a -> DeploymentGroupInfo
s {$sel:outdatedInstancesStrategy:DeploymentGroupInfo' :: Maybe OutdatedInstancesStrategy
outdatedInstancesStrategy = Maybe OutdatedInstancesStrategy
a} :: DeploymentGroupInfo)

-- | The on-premises instance tags on which to filter. The deployment group
-- includes on-premises instances with any of the specified tags.
deploymentGroupInfo_onPremisesInstanceTagFilters :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe [TagFilter])
deploymentGroupInfo_onPremisesInstanceTagFilters :: (Maybe [TagFilter] -> f (Maybe [TagFilter]))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_onPremisesInstanceTagFilters = (DeploymentGroupInfo -> Maybe [TagFilter])
-> (DeploymentGroupInfo
    -> Maybe [TagFilter] -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe [TagFilter])
     (Maybe [TagFilter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe [TagFilter]
onPremisesInstanceTagFilters :: Maybe [TagFilter]
$sel:onPremisesInstanceTagFilters:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [TagFilter]
onPremisesInstanceTagFilters} -> Maybe [TagFilter]
onPremisesInstanceTagFilters) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe [TagFilter]
a -> DeploymentGroupInfo
s {$sel:onPremisesInstanceTagFilters:DeploymentGroupInfo' :: Maybe [TagFilter]
onPremisesInstanceTagFilters = Maybe [TagFilter]
a} :: DeploymentGroupInfo) ((Maybe [TagFilter] -> f (Maybe [TagFilter]))
 -> DeploymentGroupInfo -> f DeploymentGroupInfo)
-> ((Maybe [TagFilter] -> f (Maybe [TagFilter]))
    -> Maybe [TagFilter] -> f (Maybe [TagFilter]))
-> (Maybe [TagFilter] -> f (Maybe [TagFilter]))
-> DeploymentGroupInfo
-> f DeploymentGroupInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [TagFilter] [TagFilter] [TagFilter] [TagFilter]
-> Iso
     (Maybe [TagFilter])
     (Maybe [TagFilter])
     (Maybe [TagFilter])
     (Maybe [TagFilter])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [TagFilter] [TagFilter] [TagFilter] [TagFilter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Information about the most recent successful deployment to the
-- deployment group.
deploymentGroupInfo_lastSuccessfulDeployment :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe LastDeploymentInfo)
deploymentGroupInfo_lastSuccessfulDeployment :: (Maybe LastDeploymentInfo -> f (Maybe LastDeploymentInfo))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_lastSuccessfulDeployment = (DeploymentGroupInfo -> Maybe LastDeploymentInfo)
-> (DeploymentGroupInfo
    -> Maybe LastDeploymentInfo -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe LastDeploymentInfo)
     (Maybe LastDeploymentInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe LastDeploymentInfo
lastSuccessfulDeployment :: Maybe LastDeploymentInfo
$sel:lastSuccessfulDeployment:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe LastDeploymentInfo
lastSuccessfulDeployment} -> Maybe LastDeploymentInfo
lastSuccessfulDeployment) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe LastDeploymentInfo
a -> DeploymentGroupInfo
s {$sel:lastSuccessfulDeployment:DeploymentGroupInfo' :: Maybe LastDeploymentInfo
lastSuccessfulDeployment = Maybe LastDeploymentInfo
a} :: DeploymentGroupInfo)

-- | The application name.
deploymentGroupInfo_applicationName :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe Prelude.Text)
deploymentGroupInfo_applicationName :: (Maybe Text -> f (Maybe Text))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_applicationName = (DeploymentGroupInfo -> Maybe Text)
-> (DeploymentGroupInfo -> Maybe Text -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo DeploymentGroupInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe Text
applicationName :: Maybe Text
$sel:applicationName:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
applicationName} -> Maybe Text
applicationName) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe Text
a -> DeploymentGroupInfo
s {$sel:applicationName:DeploymentGroupInfo' :: Maybe Text
applicationName = Maybe Text
a} :: DeploymentGroupInfo)

-- | A list of alarms associated with the deployment group.
deploymentGroupInfo_alarmConfiguration :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe AlarmConfiguration)
deploymentGroupInfo_alarmConfiguration :: (Maybe AlarmConfiguration -> f (Maybe AlarmConfiguration))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_alarmConfiguration = (DeploymentGroupInfo -> Maybe AlarmConfiguration)
-> (DeploymentGroupInfo
    -> Maybe AlarmConfiguration -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe AlarmConfiguration)
     (Maybe AlarmConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe AlarmConfiguration
alarmConfiguration :: Maybe AlarmConfiguration
$sel:alarmConfiguration:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe AlarmConfiguration
alarmConfiguration} -> Maybe AlarmConfiguration
alarmConfiguration) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe AlarmConfiguration
a -> DeploymentGroupInfo
s {$sel:alarmConfiguration:DeploymentGroupInfo' :: Maybe AlarmConfiguration
alarmConfiguration = Maybe AlarmConfiguration
a} :: DeploymentGroupInfo)

-- | Information about triggers associated with the deployment group.
deploymentGroupInfo_triggerConfigurations :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe [TriggerConfig])
deploymentGroupInfo_triggerConfigurations :: (Maybe [TriggerConfig] -> f (Maybe [TriggerConfig]))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_triggerConfigurations = (DeploymentGroupInfo -> Maybe [TriggerConfig])
-> (DeploymentGroupInfo
    -> Maybe [TriggerConfig] -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe [TriggerConfig])
     (Maybe [TriggerConfig])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe [TriggerConfig]
triggerConfigurations :: Maybe [TriggerConfig]
$sel:triggerConfigurations:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [TriggerConfig]
triggerConfigurations} -> Maybe [TriggerConfig]
triggerConfigurations) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe [TriggerConfig]
a -> DeploymentGroupInfo
s {$sel:triggerConfigurations:DeploymentGroupInfo' :: Maybe [TriggerConfig]
triggerConfigurations = Maybe [TriggerConfig]
a} :: DeploymentGroupInfo) ((Maybe [TriggerConfig] -> f (Maybe [TriggerConfig]))
 -> DeploymentGroupInfo -> f DeploymentGroupInfo)
-> ((Maybe [TriggerConfig] -> f (Maybe [TriggerConfig]))
    -> Maybe [TriggerConfig] -> f (Maybe [TriggerConfig]))
-> (Maybe [TriggerConfig] -> f (Maybe [TriggerConfig]))
-> DeploymentGroupInfo
-> f DeploymentGroupInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [TriggerConfig] [TriggerConfig] [TriggerConfig] [TriggerConfig]
-> Iso
     (Maybe [TriggerConfig])
     (Maybe [TriggerConfig])
     (Maybe [TriggerConfig])
     (Maybe [TriggerConfig])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [TriggerConfig] [TriggerConfig] [TriggerConfig] [TriggerConfig]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The deployment group ID.
deploymentGroupInfo_deploymentGroupId :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe Prelude.Text)
deploymentGroupInfo_deploymentGroupId :: (Maybe Text -> f (Maybe Text))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_deploymentGroupId = (DeploymentGroupInfo -> Maybe Text)
-> (DeploymentGroupInfo -> Maybe Text -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo DeploymentGroupInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe Text
deploymentGroupId :: Maybe Text
$sel:deploymentGroupId:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
deploymentGroupId} -> Maybe Text
deploymentGroupId) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe Text
a -> DeploymentGroupInfo
s {$sel:deploymentGroupId:DeploymentGroupInfo' :: Maybe Text
deploymentGroupId = Maybe Text
a} :: DeploymentGroupInfo)

-- | A list of associated Auto Scaling groups.
deploymentGroupInfo_autoScalingGroups :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe [AutoScalingGroup])
deploymentGroupInfo_autoScalingGroups :: (Maybe [AutoScalingGroup] -> f (Maybe [AutoScalingGroup]))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_autoScalingGroups = (DeploymentGroupInfo -> Maybe [AutoScalingGroup])
-> (DeploymentGroupInfo
    -> Maybe [AutoScalingGroup] -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe [AutoScalingGroup])
     (Maybe [AutoScalingGroup])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe [AutoScalingGroup]
autoScalingGroups :: Maybe [AutoScalingGroup]
$sel:autoScalingGroups:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [AutoScalingGroup]
autoScalingGroups} -> Maybe [AutoScalingGroup]
autoScalingGroups) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe [AutoScalingGroup]
a -> DeploymentGroupInfo
s {$sel:autoScalingGroups:DeploymentGroupInfo' :: Maybe [AutoScalingGroup]
autoScalingGroups = Maybe [AutoScalingGroup]
a} :: DeploymentGroupInfo) ((Maybe [AutoScalingGroup] -> f (Maybe [AutoScalingGroup]))
 -> DeploymentGroupInfo -> f DeploymentGroupInfo)
-> ((Maybe [AutoScalingGroup] -> f (Maybe [AutoScalingGroup]))
    -> Maybe [AutoScalingGroup] -> f (Maybe [AutoScalingGroup]))
-> (Maybe [AutoScalingGroup] -> f (Maybe [AutoScalingGroup]))
-> DeploymentGroupInfo
-> f DeploymentGroupInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [AutoScalingGroup]
  [AutoScalingGroup]
  [AutoScalingGroup]
  [AutoScalingGroup]
-> Iso
     (Maybe [AutoScalingGroup])
     (Maybe [AutoScalingGroup])
     (Maybe [AutoScalingGroup])
     (Maybe [AutoScalingGroup])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [AutoScalingGroup]
  [AutoScalingGroup]
  [AutoScalingGroup]
  [AutoScalingGroup]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Information about the type of deployment, either in-place or
-- blue\/green, you want to run and whether to route deployment traffic
-- behind a load balancer.
deploymentGroupInfo_deploymentStyle :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe DeploymentStyle)
deploymentGroupInfo_deploymentStyle :: (Maybe DeploymentStyle -> f (Maybe DeploymentStyle))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_deploymentStyle = (DeploymentGroupInfo -> Maybe DeploymentStyle)
-> (DeploymentGroupInfo
    -> Maybe DeploymentStyle -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe DeploymentStyle)
     (Maybe DeploymentStyle)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe DeploymentStyle
deploymentStyle :: Maybe DeploymentStyle
$sel:deploymentStyle:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe DeploymentStyle
deploymentStyle} -> Maybe DeploymentStyle
deploymentStyle) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe DeploymentStyle
a -> DeploymentGroupInfo
s {$sel:deploymentStyle:DeploymentGroupInfo' :: Maybe DeploymentStyle
deploymentStyle = Maybe DeploymentStyle
a} :: DeploymentGroupInfo)

-- | Information about the automatic rollback configuration associated with
-- the deployment group.
deploymentGroupInfo_autoRollbackConfiguration :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe AutoRollbackConfiguration)
deploymentGroupInfo_autoRollbackConfiguration :: (Maybe AutoRollbackConfiguration
 -> f (Maybe AutoRollbackConfiguration))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_autoRollbackConfiguration = (DeploymentGroupInfo -> Maybe AutoRollbackConfiguration)
-> (DeploymentGroupInfo
    -> Maybe AutoRollbackConfiguration -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo
     DeploymentGroupInfo
     (Maybe AutoRollbackConfiguration)
     (Maybe AutoRollbackConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe AutoRollbackConfiguration
autoRollbackConfiguration :: Maybe AutoRollbackConfiguration
$sel:autoRollbackConfiguration:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe AutoRollbackConfiguration
autoRollbackConfiguration} -> Maybe AutoRollbackConfiguration
autoRollbackConfiguration) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe AutoRollbackConfiguration
a -> DeploymentGroupInfo
s {$sel:autoRollbackConfiguration:DeploymentGroupInfo' :: Maybe AutoRollbackConfiguration
autoRollbackConfiguration = Maybe AutoRollbackConfiguration
a} :: DeploymentGroupInfo)

-- | The deployment group name.
deploymentGroupInfo_deploymentGroupName :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe Prelude.Text)
deploymentGroupInfo_deploymentGroupName :: (Maybe Text -> f (Maybe Text))
-> DeploymentGroupInfo -> f DeploymentGroupInfo
deploymentGroupInfo_deploymentGroupName = (DeploymentGroupInfo -> Maybe Text)
-> (DeploymentGroupInfo -> Maybe Text -> DeploymentGroupInfo)
-> Lens
     DeploymentGroupInfo DeploymentGroupInfo (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeploymentGroupInfo' {Maybe Text
deploymentGroupName :: Maybe Text
$sel:deploymentGroupName:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
deploymentGroupName} -> Maybe Text
deploymentGroupName) (\s :: DeploymentGroupInfo
s@DeploymentGroupInfo' {} Maybe Text
a -> DeploymentGroupInfo
s {$sel:deploymentGroupName:DeploymentGroupInfo' :: Maybe Text
deploymentGroupName = Maybe Text
a} :: DeploymentGroupInfo)

instance Core.FromJSON DeploymentGroupInfo where
  parseJSON :: Value -> Parser DeploymentGroupInfo
parseJSON =
    String
-> (Object -> Parser DeploymentGroupInfo)
-> Value
-> Parser DeploymentGroupInfo
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"DeploymentGroupInfo"
      ( \Object
x ->
          Maybe Text
-> Maybe EC2TagSet
-> Maybe Text
-> Maybe LastDeploymentInfo
-> Maybe OnPremisesTagSet
-> Maybe ComputePlatform
-> Maybe RevisionLocation
-> Maybe [EC2TagFilter]
-> Maybe [ECSService]
-> Maybe BlueGreenDeploymentConfiguration
-> Maybe LoadBalancerInfo
-> Maybe OutdatedInstancesStrategy
-> Maybe [TagFilter]
-> Maybe LastDeploymentInfo
-> Maybe Text
-> Maybe AlarmConfiguration
-> Maybe [TriggerConfig]
-> Maybe Text
-> Maybe [AutoScalingGroup]
-> Maybe DeploymentStyle
-> Maybe AutoRollbackConfiguration
-> Maybe Text
-> DeploymentGroupInfo
DeploymentGroupInfo'
            (Maybe Text
 -> Maybe EC2TagSet
 -> Maybe Text
 -> Maybe LastDeploymentInfo
 -> Maybe OnPremisesTagSet
 -> Maybe ComputePlatform
 -> Maybe RevisionLocation
 -> Maybe [EC2TagFilter]
 -> Maybe [ECSService]
 -> Maybe BlueGreenDeploymentConfiguration
 -> Maybe LoadBalancerInfo
 -> Maybe OutdatedInstancesStrategy
 -> Maybe [TagFilter]
 -> Maybe LastDeploymentInfo
 -> Maybe Text
 -> Maybe AlarmConfiguration
 -> Maybe [TriggerConfig]
 -> Maybe Text
 -> Maybe [AutoScalingGroup]
 -> Maybe DeploymentStyle
 -> Maybe AutoRollbackConfiguration
 -> Maybe Text
 -> DeploymentGroupInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe EC2TagSet
      -> Maybe Text
      -> Maybe LastDeploymentInfo
      -> Maybe OnPremisesTagSet
      -> Maybe ComputePlatform
      -> Maybe RevisionLocation
      -> Maybe [EC2TagFilter]
      -> Maybe [ECSService]
      -> Maybe BlueGreenDeploymentConfiguration
      -> Maybe LoadBalancerInfo
      -> Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"serviceRoleArn")
            Parser
  (Maybe EC2TagSet
   -> Maybe Text
   -> Maybe LastDeploymentInfo
   -> Maybe OnPremisesTagSet
   -> Maybe ComputePlatform
   -> Maybe RevisionLocation
   -> Maybe [EC2TagFilter]
   -> Maybe [ECSService]
   -> Maybe BlueGreenDeploymentConfiguration
   -> Maybe LoadBalancerInfo
   -> Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe EC2TagSet)
-> Parser
     (Maybe Text
      -> Maybe LastDeploymentInfo
      -> Maybe OnPremisesTagSet
      -> Maybe ComputePlatform
      -> Maybe RevisionLocation
      -> Maybe [EC2TagFilter]
      -> Maybe [ECSService]
      -> Maybe BlueGreenDeploymentConfiguration
      -> Maybe LoadBalancerInfo
      -> Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe EC2TagSet)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ec2TagSet")
            Parser
  (Maybe Text
   -> Maybe LastDeploymentInfo
   -> Maybe OnPremisesTagSet
   -> Maybe ComputePlatform
   -> Maybe RevisionLocation
   -> Maybe [EC2TagFilter]
   -> Maybe [ECSService]
   -> Maybe BlueGreenDeploymentConfiguration
   -> Maybe LoadBalancerInfo
   -> Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe LastDeploymentInfo
      -> Maybe OnPremisesTagSet
      -> Maybe ComputePlatform
      -> Maybe RevisionLocation
      -> Maybe [EC2TagFilter]
      -> Maybe [ECSService]
      -> Maybe BlueGreenDeploymentConfiguration
      -> Maybe LoadBalancerInfo
      -> Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"deploymentConfigName")
            Parser
  (Maybe LastDeploymentInfo
   -> Maybe OnPremisesTagSet
   -> Maybe ComputePlatform
   -> Maybe RevisionLocation
   -> Maybe [EC2TagFilter]
   -> Maybe [ECSService]
   -> Maybe BlueGreenDeploymentConfiguration
   -> Maybe LoadBalancerInfo
   -> Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe LastDeploymentInfo)
-> Parser
     (Maybe OnPremisesTagSet
      -> Maybe ComputePlatform
      -> Maybe RevisionLocation
      -> Maybe [EC2TagFilter]
      -> Maybe [ECSService]
      -> Maybe BlueGreenDeploymentConfiguration
      -> Maybe LoadBalancerInfo
      -> Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LastDeploymentInfo)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lastAttemptedDeployment")
            Parser
  (Maybe OnPremisesTagSet
   -> Maybe ComputePlatform
   -> Maybe RevisionLocation
   -> Maybe [EC2TagFilter]
   -> Maybe [ECSService]
   -> Maybe BlueGreenDeploymentConfiguration
   -> Maybe LoadBalancerInfo
   -> Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe OnPremisesTagSet)
-> Parser
     (Maybe ComputePlatform
      -> Maybe RevisionLocation
      -> Maybe [EC2TagFilter]
      -> Maybe [ECSService]
      -> Maybe BlueGreenDeploymentConfiguration
      -> Maybe LoadBalancerInfo
      -> Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe OnPremisesTagSet)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"onPremisesTagSet")
            Parser
  (Maybe ComputePlatform
   -> Maybe RevisionLocation
   -> Maybe [EC2TagFilter]
   -> Maybe [ECSService]
   -> Maybe BlueGreenDeploymentConfiguration
   -> Maybe LoadBalancerInfo
   -> Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe ComputePlatform)
-> Parser
     (Maybe RevisionLocation
      -> Maybe [EC2TagFilter]
      -> Maybe [ECSService]
      -> Maybe BlueGreenDeploymentConfiguration
      -> Maybe LoadBalancerInfo
      -> Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ComputePlatform)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"computePlatform")
            Parser
  (Maybe RevisionLocation
   -> Maybe [EC2TagFilter]
   -> Maybe [ECSService]
   -> Maybe BlueGreenDeploymentConfiguration
   -> Maybe LoadBalancerInfo
   -> Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe RevisionLocation)
-> Parser
     (Maybe [EC2TagFilter]
      -> Maybe [ECSService]
      -> Maybe BlueGreenDeploymentConfiguration
      -> Maybe LoadBalancerInfo
      -> Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RevisionLocation)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"targetRevision")
            Parser
  (Maybe [EC2TagFilter]
   -> Maybe [ECSService]
   -> Maybe BlueGreenDeploymentConfiguration
   -> Maybe LoadBalancerInfo
   -> Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe [EC2TagFilter])
-> Parser
     (Maybe [ECSService]
      -> Maybe BlueGreenDeploymentConfiguration
      -> Maybe LoadBalancerInfo
      -> Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [EC2TagFilter]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ec2TagFilters" Parser (Maybe (Maybe [EC2TagFilter]))
-> Maybe [EC2TagFilter] -> Parser (Maybe [EC2TagFilter])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [EC2TagFilter]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe [ECSService]
   -> Maybe BlueGreenDeploymentConfiguration
   -> Maybe LoadBalancerInfo
   -> Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe [ECSService])
-> Parser
     (Maybe BlueGreenDeploymentConfiguration
      -> Maybe LoadBalancerInfo
      -> Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe [ECSService]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ecsServices" Parser (Maybe (Maybe [ECSService]))
-> Maybe [ECSService] -> Parser (Maybe [ECSService])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [ECSService]
forall a. Monoid a => a
Prelude.mempty)
            Parser
  (Maybe BlueGreenDeploymentConfiguration
   -> Maybe LoadBalancerInfo
   -> Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe BlueGreenDeploymentConfiguration)
-> Parser
     (Maybe LoadBalancerInfo
      -> Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe BlueGreenDeploymentConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"blueGreenDeploymentConfiguration")
            Parser
  (Maybe LoadBalancerInfo
   -> Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe LoadBalancerInfo)
-> Parser
     (Maybe OutdatedInstancesStrategy
      -> Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LoadBalancerInfo)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"loadBalancerInfo")
            Parser
  (Maybe OutdatedInstancesStrategy
   -> Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe OutdatedInstancesStrategy)
-> Parser
     (Maybe [TagFilter]
      -> Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe OutdatedInstancesStrategy)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"outdatedInstancesStrategy")
            Parser
  (Maybe [TagFilter]
   -> Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe [TagFilter])
-> Parser
     (Maybe LastDeploymentInfo
      -> Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [TagFilter]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"onPremisesInstanceTagFilters"
                            Parser (Maybe (Maybe [TagFilter]))
-> Maybe [TagFilter] -> Parser (Maybe [TagFilter])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [TagFilter]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe LastDeploymentInfo
   -> Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe LastDeploymentInfo)
-> Parser
     (Maybe Text
      -> Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe LastDeploymentInfo)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"lastSuccessfulDeployment")
            Parser
  (Maybe Text
   -> Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe AlarmConfiguration
      -> Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"applicationName")
            Parser
  (Maybe AlarmConfiguration
   -> Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe AlarmConfiguration)
-> Parser
     (Maybe [TriggerConfig]
      -> Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AlarmConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"alarmConfiguration")
            Parser
  (Maybe [TriggerConfig]
   -> Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe [TriggerConfig])
-> Parser
     (Maybe Text
      -> Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [TriggerConfig]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"triggerConfigurations"
                            Parser (Maybe (Maybe [TriggerConfig]))
-> Maybe [TriggerConfig] -> Parser (Maybe [TriggerConfig])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [TriggerConfig]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Text
   -> Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe Text)
-> Parser
     (Maybe [AutoScalingGroup]
      -> Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"deploymentGroupId")
            Parser
  (Maybe [AutoScalingGroup]
   -> Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe [AutoScalingGroup])
-> Parser
     (Maybe DeploymentStyle
      -> Maybe AutoRollbackConfiguration
      -> Maybe Text
      -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe [AutoScalingGroup]))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"autoScalingGroups"
                            Parser (Maybe (Maybe [AutoScalingGroup]))
-> Maybe [AutoScalingGroup] -> Parser (Maybe [AutoScalingGroup])
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe [AutoScalingGroup]
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe DeploymentStyle
   -> Maybe AutoRollbackConfiguration
   -> Maybe Text
   -> DeploymentGroupInfo)
-> Parser (Maybe DeploymentStyle)
-> Parser
     (Maybe AutoRollbackConfiguration
      -> Maybe Text -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DeploymentStyle)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"deploymentStyle")
            Parser
  (Maybe AutoRollbackConfiguration
   -> Maybe Text -> DeploymentGroupInfo)
-> Parser (Maybe AutoRollbackConfiguration)
-> Parser (Maybe Text -> DeploymentGroupInfo)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AutoRollbackConfiguration)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"autoRollbackConfiguration")
            Parser (Maybe Text -> DeploymentGroupInfo)
-> Parser (Maybe Text) -> Parser DeploymentGroupInfo
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"deploymentGroupName")
      )

instance Prelude.Hashable DeploymentGroupInfo

instance Prelude.NFData DeploymentGroupInfo