{-# 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.CloudFormation.Types.StackSetSummary
-- 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.CloudFormation.Types.StackSetSummary where

import Amazonka.CloudFormation.Types.AutoDeployment
import Amazonka.CloudFormation.Types.PermissionModels
import Amazonka.CloudFormation.Types.StackDriftStatus
import Amazonka.CloudFormation.Types.StackSetStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The structures that contain summary information about the specified
-- stack set.
--
-- /See:/ 'newStackSetSummary' smart constructor.
data StackSetSummary = StackSetSummary'
  { -- | The status of the stack set.
    StackSetSummary -> Maybe StackSetStatus
status :: Prelude.Maybe StackSetStatus,
    -- | Most recent time when CloudFormation performed a drift detection
    -- operation on the stack set. This value will be @NULL@ for any stack set
    -- on which drift detection has not yet been performed.
    StackSetSummary -> Maybe ISO8601
lastDriftCheckTimestamp :: Prelude.Maybe Core.ISO8601,
    -- | [Service-managed permissions] Describes whether StackSets automatically
    -- deploys to Organizations accounts that are added to a target
    -- organizational unit (OU).
    StackSetSummary -> Maybe AutoDeployment
autoDeployment :: Prelude.Maybe AutoDeployment,
    -- | Status of the stack set\'s actual configuration compared to its expected
    -- template and parameter configuration. A stack set is considered to have
    -- drifted if one or more of its stack instances have drifted from their
    -- expected template and parameter configuration.
    --
    -- -   @DRIFTED@: One or more of the stack instances belonging to the stack
    --     set stack differs from the expected template and parameter
    --     configuration. A stack instance is considered to have drifted if one
    --     or more of the resources in the associated stack have drifted.
    --
    -- -   @NOT_CHECKED@: CloudFormation has not checked the stack set for
    --     drift.
    --
    -- -   @IN_SYNC@: All of the stack instances belonging to the stack set
    --     stack match from the expected template and parameter configuration.
    --
    -- -   @UNKNOWN@: This value is reserved for future use.
    StackSetSummary -> Maybe StackDriftStatus
driftStatus :: Prelude.Maybe StackDriftStatus,
    -- | Describes how the IAM roles required for stack set operations are
    -- created.
    --
    -- -   With @self-managed@ permissions, you must create the administrator
    --     and execution roles required to deploy to target accounts. For more
    --     information, see
    --     <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html Grant Self-Managed Stack Set Permissions>.
    --
    -- -   With @service-managed@ permissions, StackSets automatically creates
    --     the IAM roles required to deploy to accounts managed by
    --     Organizations. For more information, see
    --     <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html Grant Service-Managed Stack Set Permissions>.
    StackSetSummary -> Maybe PermissionModels
permissionModel :: Prelude.Maybe PermissionModels,
    -- | The name of the stack set.
    StackSetSummary -> Maybe Text
stackSetName :: Prelude.Maybe Prelude.Text,
    -- | A description of the stack set that you specify when the stack set is
    -- created or updated.
    StackSetSummary -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The ID of the stack set.
    StackSetSummary -> Maybe Text
stackSetId :: Prelude.Maybe Prelude.Text
  }
  deriving (StackSetSummary -> StackSetSummary -> Bool
(StackSetSummary -> StackSetSummary -> Bool)
-> (StackSetSummary -> StackSetSummary -> Bool)
-> Eq StackSetSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StackSetSummary -> StackSetSummary -> Bool
$c/= :: StackSetSummary -> StackSetSummary -> Bool
== :: StackSetSummary -> StackSetSummary -> Bool
$c== :: StackSetSummary -> StackSetSummary -> Bool
Prelude.Eq, ReadPrec [StackSetSummary]
ReadPrec StackSetSummary
Int -> ReadS StackSetSummary
ReadS [StackSetSummary]
(Int -> ReadS StackSetSummary)
-> ReadS [StackSetSummary]
-> ReadPrec StackSetSummary
-> ReadPrec [StackSetSummary]
-> Read StackSetSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StackSetSummary]
$creadListPrec :: ReadPrec [StackSetSummary]
readPrec :: ReadPrec StackSetSummary
$creadPrec :: ReadPrec StackSetSummary
readList :: ReadS [StackSetSummary]
$creadList :: ReadS [StackSetSummary]
readsPrec :: Int -> ReadS StackSetSummary
$creadsPrec :: Int -> ReadS StackSetSummary
Prelude.Read, Int -> StackSetSummary -> ShowS
[StackSetSummary] -> ShowS
StackSetSummary -> String
(Int -> StackSetSummary -> ShowS)
-> (StackSetSummary -> String)
-> ([StackSetSummary] -> ShowS)
-> Show StackSetSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StackSetSummary] -> ShowS
$cshowList :: [StackSetSummary] -> ShowS
show :: StackSetSummary -> String
$cshow :: StackSetSummary -> String
showsPrec :: Int -> StackSetSummary -> ShowS
$cshowsPrec :: Int -> StackSetSummary -> ShowS
Prelude.Show, (forall x. StackSetSummary -> Rep StackSetSummary x)
-> (forall x. Rep StackSetSummary x -> StackSetSummary)
-> Generic StackSetSummary
forall x. Rep StackSetSummary x -> StackSetSummary
forall x. StackSetSummary -> Rep StackSetSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StackSetSummary x -> StackSetSummary
$cfrom :: forall x. StackSetSummary -> Rep StackSetSummary x
Prelude.Generic)

-- |
-- Create a value of 'StackSetSummary' 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:
--
-- 'status', 'stackSetSummary_status' - The status of the stack set.
--
-- 'lastDriftCheckTimestamp', 'stackSetSummary_lastDriftCheckTimestamp' - Most recent time when CloudFormation performed a drift detection
-- operation on the stack set. This value will be @NULL@ for any stack set
-- on which drift detection has not yet been performed.
--
-- 'autoDeployment', 'stackSetSummary_autoDeployment' - [Service-managed permissions] Describes whether StackSets automatically
-- deploys to Organizations accounts that are added to a target
-- organizational unit (OU).
--
-- 'driftStatus', 'stackSetSummary_driftStatus' - Status of the stack set\'s actual configuration compared to its expected
-- template and parameter configuration. A stack set is considered to have
-- drifted if one or more of its stack instances have drifted from their
-- expected template and parameter configuration.
--
-- -   @DRIFTED@: One or more of the stack instances belonging to the stack
--     set stack differs from the expected template and parameter
--     configuration. A stack instance is considered to have drifted if one
--     or more of the resources in the associated stack have drifted.
--
-- -   @NOT_CHECKED@: CloudFormation has not checked the stack set for
--     drift.
--
-- -   @IN_SYNC@: All of the stack instances belonging to the stack set
--     stack match from the expected template and parameter configuration.
--
-- -   @UNKNOWN@: This value is reserved for future use.
--
-- 'permissionModel', 'stackSetSummary_permissionModel' - Describes how the IAM roles required for stack set operations are
-- created.
--
-- -   With @self-managed@ permissions, you must create the administrator
--     and execution roles required to deploy to target accounts. For more
--     information, see
--     <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html Grant Self-Managed Stack Set Permissions>.
--
-- -   With @service-managed@ permissions, StackSets automatically creates
--     the IAM roles required to deploy to accounts managed by
--     Organizations. For more information, see
--     <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html Grant Service-Managed Stack Set Permissions>.
--
-- 'stackSetName', 'stackSetSummary_stackSetName' - The name of the stack set.
--
-- 'description', 'stackSetSummary_description' - A description of the stack set that you specify when the stack set is
-- created or updated.
--
-- 'stackSetId', 'stackSetSummary_stackSetId' - The ID of the stack set.
newStackSetSummary ::
  StackSetSummary
newStackSetSummary :: StackSetSummary
newStackSetSummary =
  StackSetSummary' :: Maybe StackSetStatus
-> Maybe ISO8601
-> Maybe AutoDeployment
-> Maybe StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary
StackSetSummary'
    { $sel:status:StackSetSummary' :: Maybe StackSetStatus
status = Maybe StackSetStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:lastDriftCheckTimestamp:StackSetSummary' :: Maybe ISO8601
lastDriftCheckTimestamp = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
      $sel:autoDeployment:StackSetSummary' :: Maybe AutoDeployment
autoDeployment = Maybe AutoDeployment
forall a. Maybe a
Prelude.Nothing,
      $sel:driftStatus:StackSetSummary' :: Maybe StackDriftStatus
driftStatus = Maybe StackDriftStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:permissionModel:StackSetSummary' :: Maybe PermissionModels
permissionModel = Maybe PermissionModels
forall a. Maybe a
Prelude.Nothing,
      $sel:stackSetName:StackSetSummary' :: Maybe Text
stackSetName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:StackSetSummary' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:stackSetId:StackSetSummary' :: Maybe Text
stackSetId = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The status of the stack set.
stackSetSummary_status :: Lens.Lens' StackSetSummary (Prelude.Maybe StackSetStatus)
stackSetSummary_status :: (Maybe StackSetStatus -> f (Maybe StackSetStatus))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_status = (StackSetSummary -> Maybe StackSetStatus)
-> (StackSetSummary -> Maybe StackSetStatus -> StackSetSummary)
-> Lens
     StackSetSummary
     StackSetSummary
     (Maybe StackSetStatus)
     (Maybe StackSetStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe StackSetStatus
status :: Maybe StackSetStatus
$sel:status:StackSetSummary' :: StackSetSummary -> Maybe StackSetStatus
status} -> Maybe StackSetStatus
status) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe StackSetStatus
a -> StackSetSummary
s {$sel:status:StackSetSummary' :: Maybe StackSetStatus
status = Maybe StackSetStatus
a} :: StackSetSummary)

-- | Most recent time when CloudFormation performed a drift detection
-- operation on the stack set. This value will be @NULL@ for any stack set
-- on which drift detection has not yet been performed.
stackSetSummary_lastDriftCheckTimestamp :: Lens.Lens' StackSetSummary (Prelude.Maybe Prelude.UTCTime)
stackSetSummary_lastDriftCheckTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_lastDriftCheckTimestamp = (StackSetSummary -> Maybe ISO8601)
-> (StackSetSummary -> Maybe ISO8601 -> StackSetSummary)
-> Lens
     StackSetSummary StackSetSummary (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe ISO8601
lastDriftCheckTimestamp :: Maybe ISO8601
$sel:lastDriftCheckTimestamp:StackSetSummary' :: StackSetSummary -> Maybe ISO8601
lastDriftCheckTimestamp} -> Maybe ISO8601
lastDriftCheckTimestamp) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe ISO8601
a -> StackSetSummary
s {$sel:lastDriftCheckTimestamp:StackSetSummary' :: Maybe ISO8601
lastDriftCheckTimestamp = Maybe ISO8601
a} :: StackSetSummary) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> StackSetSummary -> f StackSetSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> StackSetSummary
-> f StackSetSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
     (Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | [Service-managed permissions] Describes whether StackSets automatically
-- deploys to Organizations accounts that are added to a target
-- organizational unit (OU).
stackSetSummary_autoDeployment :: Lens.Lens' StackSetSummary (Prelude.Maybe AutoDeployment)
stackSetSummary_autoDeployment :: (Maybe AutoDeployment -> f (Maybe AutoDeployment))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_autoDeployment = (StackSetSummary -> Maybe AutoDeployment)
-> (StackSetSummary -> Maybe AutoDeployment -> StackSetSummary)
-> Lens
     StackSetSummary
     StackSetSummary
     (Maybe AutoDeployment)
     (Maybe AutoDeployment)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe AutoDeployment
autoDeployment :: Maybe AutoDeployment
$sel:autoDeployment:StackSetSummary' :: StackSetSummary -> Maybe AutoDeployment
autoDeployment} -> Maybe AutoDeployment
autoDeployment) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe AutoDeployment
a -> StackSetSummary
s {$sel:autoDeployment:StackSetSummary' :: Maybe AutoDeployment
autoDeployment = Maybe AutoDeployment
a} :: StackSetSummary)

-- | Status of the stack set\'s actual configuration compared to its expected
-- template and parameter configuration. A stack set is considered to have
-- drifted if one or more of its stack instances have drifted from their
-- expected template and parameter configuration.
--
-- -   @DRIFTED@: One or more of the stack instances belonging to the stack
--     set stack differs from the expected template and parameter
--     configuration. A stack instance is considered to have drifted if one
--     or more of the resources in the associated stack have drifted.
--
-- -   @NOT_CHECKED@: CloudFormation has not checked the stack set for
--     drift.
--
-- -   @IN_SYNC@: All of the stack instances belonging to the stack set
--     stack match from the expected template and parameter configuration.
--
-- -   @UNKNOWN@: This value is reserved for future use.
stackSetSummary_driftStatus :: Lens.Lens' StackSetSummary (Prelude.Maybe StackDriftStatus)
stackSetSummary_driftStatus :: (Maybe StackDriftStatus -> f (Maybe StackDriftStatus))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_driftStatus = (StackSetSummary -> Maybe StackDriftStatus)
-> (StackSetSummary -> Maybe StackDriftStatus -> StackSetSummary)
-> Lens
     StackSetSummary
     StackSetSummary
     (Maybe StackDriftStatus)
     (Maybe StackDriftStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe StackDriftStatus
driftStatus :: Maybe StackDriftStatus
$sel:driftStatus:StackSetSummary' :: StackSetSummary -> Maybe StackDriftStatus
driftStatus} -> Maybe StackDriftStatus
driftStatus) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe StackDriftStatus
a -> StackSetSummary
s {$sel:driftStatus:StackSetSummary' :: Maybe StackDriftStatus
driftStatus = Maybe StackDriftStatus
a} :: StackSetSummary)

-- | Describes how the IAM roles required for stack set operations are
-- created.
--
-- -   With @self-managed@ permissions, you must create the administrator
--     and execution roles required to deploy to target accounts. For more
--     information, see
--     <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-self-managed.html Grant Self-Managed Stack Set Permissions>.
--
-- -   With @service-managed@ permissions, StackSets automatically creates
--     the IAM roles required to deploy to accounts managed by
--     Organizations. For more information, see
--     <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-prereqs-service-managed.html Grant Service-Managed Stack Set Permissions>.
stackSetSummary_permissionModel :: Lens.Lens' StackSetSummary (Prelude.Maybe PermissionModels)
stackSetSummary_permissionModel :: (Maybe PermissionModels -> f (Maybe PermissionModels))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_permissionModel = (StackSetSummary -> Maybe PermissionModels)
-> (StackSetSummary -> Maybe PermissionModels -> StackSetSummary)
-> Lens
     StackSetSummary
     StackSetSummary
     (Maybe PermissionModels)
     (Maybe PermissionModels)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe PermissionModels
permissionModel :: Maybe PermissionModels
$sel:permissionModel:StackSetSummary' :: StackSetSummary -> Maybe PermissionModels
permissionModel} -> Maybe PermissionModels
permissionModel) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe PermissionModels
a -> StackSetSummary
s {$sel:permissionModel:StackSetSummary' :: Maybe PermissionModels
permissionModel = Maybe PermissionModels
a} :: StackSetSummary)

-- | The name of the stack set.
stackSetSummary_stackSetName :: Lens.Lens' StackSetSummary (Prelude.Maybe Prelude.Text)
stackSetSummary_stackSetName :: (Maybe Text -> f (Maybe Text))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_stackSetName = (StackSetSummary -> Maybe Text)
-> (StackSetSummary -> Maybe Text -> StackSetSummary)
-> Lens StackSetSummary StackSetSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe Text
stackSetName :: Maybe Text
$sel:stackSetName:StackSetSummary' :: StackSetSummary -> Maybe Text
stackSetName} -> Maybe Text
stackSetName) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe Text
a -> StackSetSummary
s {$sel:stackSetName:StackSetSummary' :: Maybe Text
stackSetName = Maybe Text
a} :: StackSetSummary)

-- | A description of the stack set that you specify when the stack set is
-- created or updated.
stackSetSummary_description :: Lens.Lens' StackSetSummary (Prelude.Maybe Prelude.Text)
stackSetSummary_description :: (Maybe Text -> f (Maybe Text))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_description = (StackSetSummary -> Maybe Text)
-> (StackSetSummary -> Maybe Text -> StackSetSummary)
-> Lens StackSetSummary StackSetSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe Text
description :: Maybe Text
$sel:description:StackSetSummary' :: StackSetSummary -> Maybe Text
description} -> Maybe Text
description) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe Text
a -> StackSetSummary
s {$sel:description:StackSetSummary' :: Maybe Text
description = Maybe Text
a} :: StackSetSummary)

-- | The ID of the stack set.
stackSetSummary_stackSetId :: Lens.Lens' StackSetSummary (Prelude.Maybe Prelude.Text)
stackSetSummary_stackSetId :: (Maybe Text -> f (Maybe Text))
-> StackSetSummary -> f StackSetSummary
stackSetSummary_stackSetId = (StackSetSummary -> Maybe Text)
-> (StackSetSummary -> Maybe Text -> StackSetSummary)
-> Lens StackSetSummary StackSetSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StackSetSummary' {Maybe Text
stackSetId :: Maybe Text
$sel:stackSetId:StackSetSummary' :: StackSetSummary -> Maybe Text
stackSetId} -> Maybe Text
stackSetId) (\s :: StackSetSummary
s@StackSetSummary' {} Maybe Text
a -> StackSetSummary
s {$sel:stackSetId:StackSetSummary' :: Maybe Text
stackSetId = Maybe Text
a} :: StackSetSummary)

instance Core.FromXML StackSetSummary where
  parseXML :: [Node] -> Either String StackSetSummary
parseXML [Node]
x =
    Maybe StackSetStatus
-> Maybe ISO8601
-> Maybe AutoDeployment
-> Maybe StackDriftStatus
-> Maybe PermissionModels
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> StackSetSummary
StackSetSummary'
      (Maybe StackSetStatus
 -> Maybe ISO8601
 -> Maybe AutoDeployment
 -> Maybe StackDriftStatus
 -> Maybe PermissionModels
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> StackSetSummary)
-> Either String (Maybe StackSetStatus)
-> Either
     String
     (Maybe ISO8601
      -> Maybe AutoDeployment
      -> Maybe StackDriftStatus
      -> Maybe PermissionModels
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StackSetSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe StackSetStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Status")
      Either
  String
  (Maybe ISO8601
   -> Maybe AutoDeployment
   -> Maybe StackDriftStatus
   -> Maybe PermissionModels
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StackSetSummary)
-> Either String (Maybe ISO8601)
-> Either
     String
     (Maybe AutoDeployment
      -> Maybe StackDriftStatus
      -> Maybe PermissionModels
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StackSetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"LastDriftCheckTimestamp")
      Either
  String
  (Maybe AutoDeployment
   -> Maybe StackDriftStatus
   -> Maybe PermissionModels
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StackSetSummary)
-> Either String (Maybe AutoDeployment)
-> Either
     String
     (Maybe StackDriftStatus
      -> Maybe PermissionModels
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> StackSetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe AutoDeployment)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AutoDeployment")
      Either
  String
  (Maybe StackDriftStatus
   -> Maybe PermissionModels
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> StackSetSummary)
-> Either String (Maybe StackDriftStatus)
-> Either
     String
     (Maybe PermissionModels
      -> Maybe Text -> Maybe Text -> Maybe Text -> StackSetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe StackDriftStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DriftStatus")
      Either
  String
  (Maybe PermissionModels
   -> Maybe Text -> Maybe Text -> Maybe Text -> StackSetSummary)
-> Either String (Maybe PermissionModels)
-> Either
     String (Maybe Text -> Maybe Text -> Maybe Text -> StackSetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe PermissionModels)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"PermissionModel")
      Either
  String (Maybe Text -> Maybe Text -> Maybe Text -> StackSetSummary)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Maybe Text -> StackSetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"StackSetName")
      Either String (Maybe Text -> Maybe Text -> StackSetSummary)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> StackSetSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Description")
      Either String (Maybe Text -> StackSetSummary)
-> Either String (Maybe Text) -> Either String StackSetSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"StackSetId")

instance Prelude.Hashable StackSetSummary

instance Prelude.NFData StackSetSummary