{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude

-- | Information about a deployment group.
--
-- /See:/ 'newDeploymentGroupInfo' smart constructor.
data DeploymentGroupInfo = DeploymentGroupInfo'
  { -- | A list of alarms associated with the deployment group.
    DeploymentGroupInfo -> Maybe AlarmConfiguration
alarmConfiguration :: Prelude.Maybe AlarmConfiguration,
    -- | The application name.
    DeploymentGroupInfo -> Maybe Text
applicationName :: Prelude.Maybe Prelude.Text,
    -- | Information about the automatic rollback configuration associated with
    -- the deployment group.
    DeploymentGroupInfo -> Maybe AutoRollbackConfiguration
autoRollbackConfiguration :: Prelude.Maybe AutoRollbackConfiguration,
    -- | A list of associated Auto Scaling groups.
    DeploymentGroupInfo -> Maybe [AutoScalingGroup]
autoScalingGroups :: Prelude.Maybe [AutoScalingGroup],
    -- | Information about blue\/green deployment options for a deployment group.
    DeploymentGroupInfo -> Maybe BlueGreenDeploymentConfiguration
blueGreenDeploymentConfiguration :: Prelude.Maybe BlueGreenDeploymentConfiguration,
    -- | The destination platform type for the deployment (@Lambda@, @Server@, or
    -- @ECS@).
    DeploymentGroupInfo -> Maybe ComputePlatform
computePlatform :: Prelude.Maybe ComputePlatform,
    -- | The deployment configuration name.
    DeploymentGroupInfo -> Maybe Text
deploymentConfigName :: Prelude.Maybe Prelude.Text,
    -- | The deployment group ID.
    DeploymentGroupInfo -> Maybe Text
deploymentGroupId :: Prelude.Maybe Prelude.Text,
    -- | The deployment group name.
    DeploymentGroupInfo -> Maybe Text
deploymentGroupName :: Prelude.Maybe Prelude.Text,
    -- | 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,
    -- | 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],
    -- | Information about groups of tags applied to an Amazon EC2 instance. The
    -- deployment group includes only Amazon 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 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 the most recent attempted deployment to the deployment
    -- group.
    DeploymentGroupInfo -> Maybe LastDeploymentInfo
lastAttemptedDeployment :: Prelude.Maybe LastDeploymentInfo,
    -- | Information about the most recent successful deployment to the
    -- deployment group.
    DeploymentGroupInfo -> Maybe LastDeploymentInfo
lastSuccessfulDeployment :: Prelude.Maybe LastDeploymentInfo,
    -- | Information about the load balancer to use in a deployment.
    DeploymentGroupInfo -> Maybe LoadBalancerInfo
loadBalancerInfo :: Prelude.Maybe LoadBalancerInfo,
    -- | 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 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,
    -- | Indicates what happens when new Amazon 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 Amazon EC2 instances.
    --
    -- If this option is set to @IGNORE@, CodeDeploy does not initiate a
    -- deployment to update the new Amazon EC2 instances. This may result in
    -- instances having different revisions.
    DeploymentGroupInfo -> Maybe OutdatedInstancesStrategy
outdatedInstancesStrategy :: Prelude.Maybe OutdatedInstancesStrategy,
    -- | A service role Amazon Resource Name (ARN) that grants CodeDeploy
    -- permission to make calls to Amazon Web Services 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 CodeDeploy>
    -- in the /CodeDeploy User Guide/.
    DeploymentGroupInfo -> Maybe Text
serviceRoleArn :: Prelude.Maybe Prelude.Text,
    -- | Information about the deployment group\'s target revision, including
    -- type and location.
    DeploymentGroupInfo -> Maybe RevisionLocation
targetRevision :: Prelude.Maybe RevisionLocation,
    -- | Information about triggers associated with the deployment group.
    DeploymentGroupInfo -> Maybe [TriggerConfig]
triggerConfigurations :: Prelude.Maybe [TriggerConfig]
  }
  deriving (DeploymentGroupInfo -> DeploymentGroupInfo -> Bool
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]
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
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. 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:
--
-- 'alarmConfiguration', 'deploymentGroupInfo_alarmConfiguration' - A list of alarms associated with the deployment group.
--
-- 'applicationName', 'deploymentGroupInfo_applicationName' - The application name.
--
-- 'autoRollbackConfiguration', 'deploymentGroupInfo_autoRollbackConfiguration' - Information about the automatic rollback configuration associated with
-- the deployment group.
--
-- 'autoScalingGroups', 'deploymentGroupInfo_autoScalingGroups' - A list of associated Auto Scaling groups.
--
-- 'blueGreenDeploymentConfiguration', 'deploymentGroupInfo_blueGreenDeploymentConfiguration' - Information about blue\/green deployment options for a deployment group.
--
-- 'computePlatform', 'deploymentGroupInfo_computePlatform' - The destination platform type for the deployment (@Lambda@, @Server@, or
-- @ECS@).
--
-- 'deploymentConfigName', 'deploymentGroupInfo_deploymentConfigName' - The deployment configuration name.
--
-- 'deploymentGroupId', 'deploymentGroupInfo_deploymentGroupId' - The deployment group ID.
--
-- 'deploymentGroupName', 'deploymentGroupInfo_deploymentGroupName' - The deployment group name.
--
-- '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.
--
-- 'ec2TagFilters', 'deploymentGroupInfo_ec2TagFilters' - The Amazon EC2 tags on which to filter. The deployment group includes
-- EC2 instances with any of the specified tags.
--
-- 'ec2TagSet', 'deploymentGroupInfo_ec2TagSet' - Information about groups of tags applied to an Amazon EC2 instance. The
-- deployment group includes only Amazon EC2 instances identified by all of
-- the tag groups. Cannot be used in the same call as ec2TagFilters.
--
-- '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>@.
--
-- 'lastAttemptedDeployment', 'deploymentGroupInfo_lastAttemptedDeployment' - Information about the most recent attempted deployment to the deployment
-- group.
--
-- 'lastSuccessfulDeployment', 'deploymentGroupInfo_lastSuccessfulDeployment' - Information about the most recent successful deployment to the
-- deployment group.
--
-- 'loadBalancerInfo', 'deploymentGroupInfo_loadBalancerInfo' - Information about the load balancer to use in a deployment.
--
-- '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.
--
-- '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.
--
-- 'outdatedInstancesStrategy', 'deploymentGroupInfo_outdatedInstancesStrategy' - Indicates what happens when new Amazon 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 Amazon EC2 instances.
--
-- If this option is set to @IGNORE@, CodeDeploy does not initiate a
-- deployment to update the new Amazon EC2 instances. This may result in
-- instances having different revisions.
--
-- 'serviceRoleArn', 'deploymentGroupInfo_serviceRoleArn' - A service role Amazon Resource Name (ARN) that grants CodeDeploy
-- permission to make calls to Amazon Web Services 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 CodeDeploy>
-- in the /CodeDeploy User Guide/.
--
-- 'targetRevision', 'deploymentGroupInfo_targetRevision' - Information about the deployment group\'s target revision, including
-- type and location.
--
-- 'triggerConfigurations', 'deploymentGroupInfo_triggerConfigurations' - Information about triggers associated with the deployment group.
newDeploymentGroupInfo ::
  DeploymentGroupInfo
newDeploymentGroupInfo :: DeploymentGroupInfo
newDeploymentGroupInfo =
  DeploymentGroupInfo'
    { $sel:alarmConfiguration:DeploymentGroupInfo' :: Maybe AlarmConfiguration
alarmConfiguration =
        forall a. Maybe a
Prelude.Nothing,
      $sel:applicationName:DeploymentGroupInfo' :: Maybe Text
applicationName = forall a. Maybe a
Prelude.Nothing,
      $sel:autoRollbackConfiguration:DeploymentGroupInfo' :: Maybe AutoRollbackConfiguration
autoRollbackConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:autoScalingGroups:DeploymentGroupInfo' :: Maybe [AutoScalingGroup]
autoScalingGroups = forall a. Maybe a
Prelude.Nothing,
      $sel:blueGreenDeploymentConfiguration:DeploymentGroupInfo' :: Maybe BlueGreenDeploymentConfiguration
blueGreenDeploymentConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:computePlatform:DeploymentGroupInfo' :: Maybe ComputePlatform
computePlatform = forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentConfigName:DeploymentGroupInfo' :: Maybe Text
deploymentConfigName = forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentGroupId:DeploymentGroupInfo' :: Maybe Text
deploymentGroupId = forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentGroupName:DeploymentGroupInfo' :: Maybe Text
deploymentGroupName = forall a. Maybe a
Prelude.Nothing,
      $sel:deploymentStyle:DeploymentGroupInfo' :: Maybe DeploymentStyle
deploymentStyle = forall a. Maybe a
Prelude.Nothing,
      $sel:ec2TagFilters:DeploymentGroupInfo' :: Maybe [EC2TagFilter]
ec2TagFilters = forall a. Maybe a
Prelude.Nothing,
      $sel:ec2TagSet:DeploymentGroupInfo' :: Maybe EC2TagSet
ec2TagSet = forall a. Maybe a
Prelude.Nothing,
      $sel:ecsServices:DeploymentGroupInfo' :: Maybe [ECSService]
ecsServices = forall a. Maybe a
Prelude.Nothing,
      $sel:lastAttemptedDeployment:DeploymentGroupInfo' :: Maybe LastDeploymentInfo
lastAttemptedDeployment = forall a. Maybe a
Prelude.Nothing,
      $sel:lastSuccessfulDeployment:DeploymentGroupInfo' :: Maybe LastDeploymentInfo
lastSuccessfulDeployment = forall a. Maybe a
Prelude.Nothing,
      $sel:loadBalancerInfo:DeploymentGroupInfo' :: Maybe LoadBalancerInfo
loadBalancerInfo = forall a. Maybe a
Prelude.Nothing,
      $sel:onPremisesInstanceTagFilters:DeploymentGroupInfo' :: Maybe [TagFilter]
onPremisesInstanceTagFilters = forall a. Maybe a
Prelude.Nothing,
      $sel:onPremisesTagSet:DeploymentGroupInfo' :: Maybe OnPremisesTagSet
onPremisesTagSet = forall a. Maybe a
Prelude.Nothing,
      $sel:outdatedInstancesStrategy:DeploymentGroupInfo' :: Maybe OutdatedInstancesStrategy
outdatedInstancesStrategy = forall a. Maybe a
Prelude.Nothing,
      $sel:serviceRoleArn:DeploymentGroupInfo' :: Maybe Text
serviceRoleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:targetRevision:DeploymentGroupInfo' :: Maybe RevisionLocation
targetRevision = forall a. Maybe a
Prelude.Nothing,
      $sel:triggerConfigurations:DeploymentGroupInfo' :: Maybe [TriggerConfig]
triggerConfigurations = forall a. Maybe a
Prelude.Nothing
    }

-- | A list of alarms associated with the deployment group.
deploymentGroupInfo_alarmConfiguration :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe AlarmConfiguration)
deploymentGroupInfo_alarmConfiguration :: Lens' DeploymentGroupInfo (Maybe AlarmConfiguration)
deploymentGroupInfo_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)

-- | The application name.
deploymentGroupInfo_applicationName :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe Prelude.Text)
deploymentGroupInfo_applicationName :: Lens' DeploymentGroupInfo (Maybe Text)
deploymentGroupInfo_applicationName = 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)

-- | Information about the automatic rollback configuration associated with
-- the deployment group.
deploymentGroupInfo_autoRollbackConfiguration :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe AutoRollbackConfiguration)
deploymentGroupInfo_autoRollbackConfiguration :: Lens' DeploymentGroupInfo (Maybe AutoRollbackConfiguration)
deploymentGroupInfo_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)

-- | A list of associated Auto Scaling groups.
deploymentGroupInfo_autoScalingGroups :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe [AutoScalingGroup])
deploymentGroupInfo_autoScalingGroups :: Lens' DeploymentGroupInfo (Maybe [AutoScalingGroup])
deploymentGroupInfo_autoScalingGroups = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 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 :: Lens' DeploymentGroupInfo (Maybe BlueGreenDeploymentConfiguration)
deploymentGroupInfo_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)

-- | The destination platform type for the deployment (@Lambda@, @Server@, or
-- @ECS@).
deploymentGroupInfo_computePlatform :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe ComputePlatform)
deploymentGroupInfo_computePlatform :: Lens' DeploymentGroupInfo (Maybe ComputePlatform)
deploymentGroupInfo_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)

-- | The deployment configuration name.
deploymentGroupInfo_deploymentConfigName :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe Prelude.Text)
deploymentGroupInfo_deploymentConfigName :: Lens' DeploymentGroupInfo (Maybe Text)
deploymentGroupInfo_deploymentConfigName = 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)

-- | The deployment group ID.
deploymentGroupInfo_deploymentGroupId :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe Prelude.Text)
deploymentGroupInfo_deploymentGroupId :: Lens' DeploymentGroupInfo (Maybe Text)
deploymentGroupInfo_deploymentGroupId = 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)

-- | The deployment group name.
deploymentGroupInfo_deploymentGroupName :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe Prelude.Text)
deploymentGroupInfo_deploymentGroupName :: Lens' DeploymentGroupInfo (Maybe Text)
deploymentGroupInfo_deploymentGroupName = 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)

-- | 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 :: Lens' DeploymentGroupInfo (Maybe DeploymentStyle)
deploymentGroupInfo_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)

-- | 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 :: Lens' DeploymentGroupInfo (Maybe [EC2TagFilter])
deploymentGroupInfo_ec2TagFilters = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Information about groups of tags applied to an Amazon EC2 instance. The
-- deployment group includes only Amazon 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 :: Lens' DeploymentGroupInfo (Maybe EC2TagSet)
deploymentGroupInfo_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 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 :: Lens' DeploymentGroupInfo (Maybe [ECSService])
deploymentGroupInfo_ecsServices = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Information about the most recent attempted deployment to the deployment
-- group.
deploymentGroupInfo_lastAttemptedDeployment :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe LastDeploymentInfo)
deploymentGroupInfo_lastAttemptedDeployment :: Lens' DeploymentGroupInfo (Maybe LastDeploymentInfo)
deploymentGroupInfo_lastAttemptedDeployment = 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 the most recent successful deployment to the
-- deployment group.
deploymentGroupInfo_lastSuccessfulDeployment :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe LastDeploymentInfo)
deploymentGroupInfo_lastSuccessfulDeployment :: Lens' DeploymentGroupInfo (Maybe LastDeploymentInfo)
deploymentGroupInfo_lastSuccessfulDeployment = 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)

-- | Information about the load balancer to use in a deployment.
deploymentGroupInfo_loadBalancerInfo :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe LoadBalancerInfo)
deploymentGroupInfo_loadBalancerInfo :: Lens' DeploymentGroupInfo (Maybe LoadBalancerInfo)
deploymentGroupInfo_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)

-- | 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 :: Lens' DeploymentGroupInfo (Maybe [TagFilter])
deploymentGroupInfo_onPremisesInstanceTagFilters = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | 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 :: Lens' DeploymentGroupInfo (Maybe OnPremisesTagSet)
deploymentGroupInfo_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)

-- | Indicates what happens when new Amazon 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 Amazon EC2 instances.
--
-- If this option is set to @IGNORE@, CodeDeploy does not initiate a
-- deployment to update the new Amazon EC2 instances. This may result in
-- instances having different revisions.
deploymentGroupInfo_outdatedInstancesStrategy :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe OutdatedInstancesStrategy)
deploymentGroupInfo_outdatedInstancesStrategy :: Lens' DeploymentGroupInfo (Maybe OutdatedInstancesStrategy)
deploymentGroupInfo_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)

-- | A service role Amazon Resource Name (ARN) that grants CodeDeploy
-- permission to make calls to Amazon Web Services 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 CodeDeploy>
-- in the /CodeDeploy User Guide/.
deploymentGroupInfo_serviceRoleArn :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe Prelude.Text)
deploymentGroupInfo_serviceRoleArn :: Lens' DeploymentGroupInfo (Maybe Text)
deploymentGroupInfo_serviceRoleArn = 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 the deployment group\'s target revision, including
-- type and location.
deploymentGroupInfo_targetRevision :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe RevisionLocation)
deploymentGroupInfo_targetRevision :: Lens' DeploymentGroupInfo (Maybe RevisionLocation)
deploymentGroupInfo_targetRevision = 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)

-- | Information about triggers associated with the deployment group.
deploymentGroupInfo_triggerConfigurations :: Lens.Lens' DeploymentGroupInfo (Prelude.Maybe [TriggerConfig])
deploymentGroupInfo_triggerConfigurations :: Lens' DeploymentGroupInfo (Maybe [TriggerConfig])
deploymentGroupInfo_triggerConfigurations = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.Hashable DeploymentGroupInfo where
  hashWithSalt :: Int -> DeploymentGroupInfo -> Int
hashWithSalt Int
_salt DeploymentGroupInfo' {Maybe [AutoScalingGroup]
Maybe [EC2TagFilter]
Maybe [ECSService]
Maybe [TagFilter]
Maybe [TriggerConfig]
Maybe Text
Maybe AlarmConfiguration
Maybe AutoRollbackConfiguration
Maybe ComputePlatform
Maybe DeploymentStyle
Maybe EC2TagSet
Maybe BlueGreenDeploymentConfiguration
Maybe LastDeploymentInfo
Maybe OutdatedInstancesStrategy
Maybe RevisionLocation
Maybe OnPremisesTagSet
Maybe LoadBalancerInfo
triggerConfigurations :: Maybe [TriggerConfig]
targetRevision :: Maybe RevisionLocation
serviceRoleArn :: Maybe Text
outdatedInstancesStrategy :: Maybe OutdatedInstancesStrategy
onPremisesTagSet :: Maybe OnPremisesTagSet
onPremisesInstanceTagFilters :: Maybe [TagFilter]
loadBalancerInfo :: Maybe LoadBalancerInfo
lastSuccessfulDeployment :: Maybe LastDeploymentInfo
lastAttemptedDeployment :: Maybe LastDeploymentInfo
ecsServices :: Maybe [ECSService]
ec2TagSet :: Maybe EC2TagSet
ec2TagFilters :: Maybe [EC2TagFilter]
deploymentStyle :: Maybe DeploymentStyle
deploymentGroupName :: Maybe Text
deploymentGroupId :: Maybe Text
deploymentConfigName :: Maybe Text
computePlatform :: Maybe ComputePlatform
blueGreenDeploymentConfiguration :: Maybe BlueGreenDeploymentConfiguration
autoScalingGroups :: Maybe [AutoScalingGroup]
autoRollbackConfiguration :: Maybe AutoRollbackConfiguration
applicationName :: Maybe Text
alarmConfiguration :: Maybe AlarmConfiguration
$sel:triggerConfigurations:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [TriggerConfig]
$sel:targetRevision:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe RevisionLocation
$sel:serviceRoleArn:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
$sel:outdatedInstancesStrategy:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe OutdatedInstancesStrategy
$sel:onPremisesTagSet:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe OnPremisesTagSet
$sel:onPremisesInstanceTagFilters:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [TagFilter]
$sel:loadBalancerInfo:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe LoadBalancerInfo
$sel:lastSuccessfulDeployment:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe LastDeploymentInfo
$sel:lastAttemptedDeployment:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe LastDeploymentInfo
$sel:ecsServices:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [ECSService]
$sel:ec2TagSet:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe EC2TagSet
$sel:ec2TagFilters:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [EC2TagFilter]
$sel:deploymentStyle:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe DeploymentStyle
$sel:deploymentGroupName:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
$sel:deploymentGroupId:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
$sel:deploymentConfigName:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
$sel:computePlatform:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe ComputePlatform
$sel:blueGreenDeploymentConfiguration:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe BlueGreenDeploymentConfiguration
$sel:autoScalingGroups:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [AutoScalingGroup]
$sel:autoRollbackConfiguration:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe AutoRollbackConfiguration
$sel:applicationName:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
$sel:alarmConfiguration:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe AlarmConfiguration
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AlarmConfiguration
alarmConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
applicationName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AutoRollbackConfiguration
autoRollbackConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [AutoScalingGroup]
autoScalingGroups
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe BlueGreenDeploymentConfiguration
blueGreenDeploymentConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ComputePlatform
computePlatform
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
deploymentConfigName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
deploymentGroupId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
deploymentGroupName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DeploymentStyle
deploymentStyle
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [EC2TagFilter]
ec2TagFilters
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EC2TagSet
ec2TagSet
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ECSService]
ecsServices
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LastDeploymentInfo
lastAttemptedDeployment
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LastDeploymentInfo
lastSuccessfulDeployment
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LoadBalancerInfo
loadBalancerInfo
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [TagFilter]
onPremisesInstanceTagFilters
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OnPremisesTagSet
onPremisesTagSet
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe OutdatedInstancesStrategy
outdatedInstancesStrategy
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
serviceRoleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe RevisionLocation
targetRevision
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [TriggerConfig]
triggerConfigurations

instance Prelude.NFData DeploymentGroupInfo where
  rnf :: DeploymentGroupInfo -> ()
rnf DeploymentGroupInfo' {Maybe [AutoScalingGroup]
Maybe [EC2TagFilter]
Maybe [ECSService]
Maybe [TagFilter]
Maybe [TriggerConfig]
Maybe Text
Maybe AlarmConfiguration
Maybe AutoRollbackConfiguration
Maybe ComputePlatform
Maybe DeploymentStyle
Maybe EC2TagSet
Maybe BlueGreenDeploymentConfiguration
Maybe LastDeploymentInfo
Maybe OutdatedInstancesStrategy
Maybe RevisionLocation
Maybe OnPremisesTagSet
Maybe LoadBalancerInfo
triggerConfigurations :: Maybe [TriggerConfig]
targetRevision :: Maybe RevisionLocation
serviceRoleArn :: Maybe Text
outdatedInstancesStrategy :: Maybe OutdatedInstancesStrategy
onPremisesTagSet :: Maybe OnPremisesTagSet
onPremisesInstanceTagFilters :: Maybe [TagFilter]
loadBalancerInfo :: Maybe LoadBalancerInfo
lastSuccessfulDeployment :: Maybe LastDeploymentInfo
lastAttemptedDeployment :: Maybe LastDeploymentInfo
ecsServices :: Maybe [ECSService]
ec2TagSet :: Maybe EC2TagSet
ec2TagFilters :: Maybe [EC2TagFilter]
deploymentStyle :: Maybe DeploymentStyle
deploymentGroupName :: Maybe Text
deploymentGroupId :: Maybe Text
deploymentConfigName :: Maybe Text
computePlatform :: Maybe ComputePlatform
blueGreenDeploymentConfiguration :: Maybe BlueGreenDeploymentConfiguration
autoScalingGroups :: Maybe [AutoScalingGroup]
autoRollbackConfiguration :: Maybe AutoRollbackConfiguration
applicationName :: Maybe Text
alarmConfiguration :: Maybe AlarmConfiguration
$sel:triggerConfigurations:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [TriggerConfig]
$sel:targetRevision:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe RevisionLocation
$sel:serviceRoleArn:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
$sel:outdatedInstancesStrategy:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe OutdatedInstancesStrategy
$sel:onPremisesTagSet:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe OnPremisesTagSet
$sel:onPremisesInstanceTagFilters:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [TagFilter]
$sel:loadBalancerInfo:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe LoadBalancerInfo
$sel:lastSuccessfulDeployment:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe LastDeploymentInfo
$sel:lastAttemptedDeployment:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe LastDeploymentInfo
$sel:ecsServices:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [ECSService]
$sel:ec2TagSet:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe EC2TagSet
$sel:ec2TagFilters:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [EC2TagFilter]
$sel:deploymentStyle:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe DeploymentStyle
$sel:deploymentGroupName:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
$sel:deploymentGroupId:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
$sel:deploymentConfigName:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
$sel:computePlatform:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe ComputePlatform
$sel:blueGreenDeploymentConfiguration:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe BlueGreenDeploymentConfiguration
$sel:autoScalingGroups:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe [AutoScalingGroup]
$sel:autoRollbackConfiguration:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe AutoRollbackConfiguration
$sel:applicationName:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe Text
$sel:alarmConfiguration:DeploymentGroupInfo' :: DeploymentGroupInfo -> Maybe AlarmConfiguration
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe AlarmConfiguration
alarmConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
applicationName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AutoRollbackConfiguration
autoRollbackConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [AutoScalingGroup]
autoScalingGroups
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BlueGreenDeploymentConfiguration
blueGreenDeploymentConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ComputePlatform
computePlatform
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
deploymentConfigName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
deploymentGroupId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
deploymentGroupName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DeploymentStyle
deploymentStyle
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [EC2TagFilter]
ec2TagFilters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EC2TagSet
ec2TagSet
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ECSService]
ecsServices
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LastDeploymentInfo
lastAttemptedDeployment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LastDeploymentInfo
lastSuccessfulDeployment
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LoadBalancerInfo
loadBalancerInfo
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [TagFilter]
onPremisesInstanceTagFilters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe OnPremisesTagSet
onPremisesTagSet
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe OutdatedInstancesStrategy
outdatedInstancesStrategy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
serviceRoleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RevisionLocation
targetRevision
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
        Maybe [TriggerConfig]
triggerConfigurations