{-# 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.TypeConfigurationDetails
-- 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.TypeConfigurationDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | Detailed information concerning the specification of a CloudFormation
-- extension in a given account and region.
--
-- For more information, see
-- <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration Configuring extensions at the account level>
-- in the /CloudFormation User Guide/.
--
-- /See:/ 'newTypeConfigurationDetails' smart constructor.
data TypeConfigurationDetails = TypeConfigurationDetails'
  { -- | When the configuration data was last updated for this extension.
    --
    -- If a configuration has not been set for a specified extension,
    -- CloudFormation returns @null@.
    TypeConfigurationDetails -> Maybe ISO8601
lastUpdated :: Prelude.Maybe Core.ISO8601,
    -- | The name of the extension.
    TypeConfigurationDetails -> Maybe Text
typeName :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) for the configuration data, in this
    -- account and region.
    TypeConfigurationDetails -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The alias specified for this configuration, if one was specified when
    -- the configuration was set.
    TypeConfigurationDetails -> Maybe Text
alias :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) for the extension, in this account and
    -- region.
    --
    -- For public extensions, this will be the ARN assigned when you
    -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ActivateType.html activate the type>
    -- in this account and region. For private extensions, this will be the ARN
    -- assigned when you
    -- <https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html register the type>
    -- in this account and region.
    TypeConfigurationDetails -> Maybe Text
typeArn :: Prelude.Maybe Prelude.Text,
    -- | A JSON string specifying the configuration data for the extension, in
    -- this account and region.
    --
    -- If a configuration has not been set for a specified extension,
    -- CloudFormation returns @{}@.
    TypeConfigurationDetails -> Maybe Text
configuration :: Prelude.Maybe Prelude.Text,
    -- | Whether or not this configuration data is the default configuration for
    -- the extension.
    TypeConfigurationDetails -> Maybe Bool
isDefaultConfiguration :: Prelude.Maybe Prelude.Bool
  }
  deriving (TypeConfigurationDetails -> TypeConfigurationDetails -> Bool
(TypeConfigurationDetails -> TypeConfigurationDetails -> Bool)
-> (TypeConfigurationDetails -> TypeConfigurationDetails -> Bool)
-> Eq TypeConfigurationDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TypeConfigurationDetails -> TypeConfigurationDetails -> Bool
$c/= :: TypeConfigurationDetails -> TypeConfigurationDetails -> Bool
== :: TypeConfigurationDetails -> TypeConfigurationDetails -> Bool
$c== :: TypeConfigurationDetails -> TypeConfigurationDetails -> Bool
Prelude.Eq, ReadPrec [TypeConfigurationDetails]
ReadPrec TypeConfigurationDetails
Int -> ReadS TypeConfigurationDetails
ReadS [TypeConfigurationDetails]
(Int -> ReadS TypeConfigurationDetails)
-> ReadS [TypeConfigurationDetails]
-> ReadPrec TypeConfigurationDetails
-> ReadPrec [TypeConfigurationDetails]
-> Read TypeConfigurationDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TypeConfigurationDetails]
$creadListPrec :: ReadPrec [TypeConfigurationDetails]
readPrec :: ReadPrec TypeConfigurationDetails
$creadPrec :: ReadPrec TypeConfigurationDetails
readList :: ReadS [TypeConfigurationDetails]
$creadList :: ReadS [TypeConfigurationDetails]
readsPrec :: Int -> ReadS TypeConfigurationDetails
$creadsPrec :: Int -> ReadS TypeConfigurationDetails
Prelude.Read, Int -> TypeConfigurationDetails -> ShowS
[TypeConfigurationDetails] -> ShowS
TypeConfigurationDetails -> String
(Int -> TypeConfigurationDetails -> ShowS)
-> (TypeConfigurationDetails -> String)
-> ([TypeConfigurationDetails] -> ShowS)
-> Show TypeConfigurationDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TypeConfigurationDetails] -> ShowS
$cshowList :: [TypeConfigurationDetails] -> ShowS
show :: TypeConfigurationDetails -> String
$cshow :: TypeConfigurationDetails -> String
showsPrec :: Int -> TypeConfigurationDetails -> ShowS
$cshowsPrec :: Int -> TypeConfigurationDetails -> ShowS
Prelude.Show, (forall x.
 TypeConfigurationDetails -> Rep TypeConfigurationDetails x)
-> (forall x.
    Rep TypeConfigurationDetails x -> TypeConfigurationDetails)
-> Generic TypeConfigurationDetails
forall x.
Rep TypeConfigurationDetails x -> TypeConfigurationDetails
forall x.
TypeConfigurationDetails -> Rep TypeConfigurationDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TypeConfigurationDetails x -> TypeConfigurationDetails
$cfrom :: forall x.
TypeConfigurationDetails -> Rep TypeConfigurationDetails x
Prelude.Generic)

-- |
-- Create a value of 'TypeConfigurationDetails' 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:
--
-- 'lastUpdated', 'typeConfigurationDetails_lastUpdated' - When the configuration data was last updated for this extension.
--
-- If a configuration has not been set for a specified extension,
-- CloudFormation returns @null@.
--
-- 'typeName', 'typeConfigurationDetails_typeName' - The name of the extension.
--
-- 'arn', 'typeConfigurationDetails_arn' - The Amazon Resource Name (ARN) for the configuration data, in this
-- account and region.
--
-- 'alias', 'typeConfigurationDetails_alias' - The alias specified for this configuration, if one was specified when
-- the configuration was set.
--
-- 'typeArn', 'typeConfigurationDetails_typeArn' - The Amazon Resource Name (ARN) for the extension, in this account and
-- region.
--
-- For public extensions, this will be the ARN assigned when you
-- <https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ActivateType.html activate the type>
-- in this account and region. For private extensions, this will be the ARN
-- assigned when you
-- <https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html register the type>
-- in this account and region.
--
-- 'configuration', 'typeConfigurationDetails_configuration' - A JSON string specifying the configuration data for the extension, in
-- this account and region.
--
-- If a configuration has not been set for a specified extension,
-- CloudFormation returns @{}@.
--
-- 'isDefaultConfiguration', 'typeConfigurationDetails_isDefaultConfiguration' - Whether or not this configuration data is the default configuration for
-- the extension.
newTypeConfigurationDetails ::
  TypeConfigurationDetails
newTypeConfigurationDetails :: TypeConfigurationDetails
newTypeConfigurationDetails =
  TypeConfigurationDetails' :: Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails
TypeConfigurationDetails'
    { $sel:lastUpdated:TypeConfigurationDetails' :: Maybe ISO8601
lastUpdated =
        Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
      $sel:typeName:TypeConfigurationDetails' :: Maybe Text
typeName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:TypeConfigurationDetails' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:alias:TypeConfigurationDetails' :: Maybe Text
alias = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:typeArn:TypeConfigurationDetails' :: Maybe Text
typeArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:configuration:TypeConfigurationDetails' :: Maybe Text
configuration = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:isDefaultConfiguration:TypeConfigurationDetails' :: Maybe Bool
isDefaultConfiguration = Maybe Bool
forall a. Maybe a
Prelude.Nothing
    }

-- | When the configuration data was last updated for this extension.
--
-- If a configuration has not been set for a specified extension,
-- CloudFormation returns @null@.
typeConfigurationDetails_lastUpdated :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.UTCTime)
typeConfigurationDetails_lastUpdated :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_lastUpdated = (TypeConfigurationDetails -> Maybe ISO8601)
-> (TypeConfigurationDetails
    -> Maybe ISO8601 -> TypeConfigurationDetails)
-> Lens
     TypeConfigurationDetails
     TypeConfigurationDetails
     (Maybe ISO8601)
     (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe ISO8601
lastUpdated :: Maybe ISO8601
$sel:lastUpdated:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe ISO8601
lastUpdated} -> Maybe ISO8601
lastUpdated) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe ISO8601
a -> TypeConfigurationDetails
s {$sel:lastUpdated:TypeConfigurationDetails' :: Maybe ISO8601
lastUpdated = Maybe ISO8601
a} :: TypeConfigurationDetails) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> TypeConfigurationDetails -> f TypeConfigurationDetails)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TypeConfigurationDetails
-> f TypeConfigurationDetails
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

-- | The name of the extension.
typeConfigurationDetails_typeName :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Text)
typeConfigurationDetails_typeName :: (Maybe Text -> f (Maybe Text))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_typeName = (TypeConfigurationDetails -> Maybe Text)
-> (TypeConfigurationDetails
    -> Maybe Text -> TypeConfigurationDetails)
-> Lens
     TypeConfigurationDetails
     TypeConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Text
typeName :: Maybe Text
$sel:typeName:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Text
typeName} -> Maybe Text
typeName) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Text
a -> TypeConfigurationDetails
s {$sel:typeName:TypeConfigurationDetails' :: Maybe Text
typeName = Maybe Text
a} :: TypeConfigurationDetails)

-- | The Amazon Resource Name (ARN) for the configuration data, in this
-- account and region.
typeConfigurationDetails_arn :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Text)
typeConfigurationDetails_arn :: (Maybe Text -> f (Maybe Text))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_arn = (TypeConfigurationDetails -> Maybe Text)
-> (TypeConfigurationDetails
    -> Maybe Text -> TypeConfigurationDetails)
-> Lens
     TypeConfigurationDetails
     TypeConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Text
arn :: Maybe Text
$sel:arn:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Text
arn} -> Maybe Text
arn) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Text
a -> TypeConfigurationDetails
s {$sel:arn:TypeConfigurationDetails' :: Maybe Text
arn = Maybe Text
a} :: TypeConfigurationDetails)

-- | The alias specified for this configuration, if one was specified when
-- the configuration was set.
typeConfigurationDetails_alias :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Text)
typeConfigurationDetails_alias :: (Maybe Text -> f (Maybe Text))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_alias = (TypeConfigurationDetails -> Maybe Text)
-> (TypeConfigurationDetails
    -> Maybe Text -> TypeConfigurationDetails)
-> Lens
     TypeConfigurationDetails
     TypeConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Text
alias :: Maybe Text
$sel:alias:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Text
alias} -> Maybe Text
alias) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Text
a -> TypeConfigurationDetails
s {$sel:alias:TypeConfigurationDetails' :: Maybe Text
alias = Maybe Text
a} :: TypeConfigurationDetails)

-- | The Amazon Resource Name (ARN) for the extension, in this account and
-- region.
--
-- For public extensions, this will be the ARN assigned when you
-- <https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_ActivateType.html activate the type>
-- in this account and region. For private extensions, this will be the ARN
-- assigned when you
-- <https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_RegisterType.html register the type>
-- in this account and region.
typeConfigurationDetails_typeArn :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Text)
typeConfigurationDetails_typeArn :: (Maybe Text -> f (Maybe Text))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_typeArn = (TypeConfigurationDetails -> Maybe Text)
-> (TypeConfigurationDetails
    -> Maybe Text -> TypeConfigurationDetails)
-> Lens
     TypeConfigurationDetails
     TypeConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Text
typeArn :: Maybe Text
$sel:typeArn:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Text
typeArn} -> Maybe Text
typeArn) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Text
a -> TypeConfigurationDetails
s {$sel:typeArn:TypeConfigurationDetails' :: Maybe Text
typeArn = Maybe Text
a} :: TypeConfigurationDetails)

-- | A JSON string specifying the configuration data for the extension, in
-- this account and region.
--
-- If a configuration has not been set for a specified extension,
-- CloudFormation returns @{}@.
typeConfigurationDetails_configuration :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Text)
typeConfigurationDetails_configuration :: (Maybe Text -> f (Maybe Text))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_configuration = (TypeConfigurationDetails -> Maybe Text)
-> (TypeConfigurationDetails
    -> Maybe Text -> TypeConfigurationDetails)
-> Lens
     TypeConfigurationDetails
     TypeConfigurationDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Text
configuration :: Maybe Text
$sel:configuration:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Text
configuration} -> Maybe Text
configuration) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Text
a -> TypeConfigurationDetails
s {$sel:configuration:TypeConfigurationDetails' :: Maybe Text
configuration = Maybe Text
a} :: TypeConfigurationDetails)

-- | Whether or not this configuration data is the default configuration for
-- the extension.
typeConfigurationDetails_isDefaultConfiguration :: Lens.Lens' TypeConfigurationDetails (Prelude.Maybe Prelude.Bool)
typeConfigurationDetails_isDefaultConfiguration :: (Maybe Bool -> f (Maybe Bool))
-> TypeConfigurationDetails -> f TypeConfigurationDetails
typeConfigurationDetails_isDefaultConfiguration = (TypeConfigurationDetails -> Maybe Bool)
-> (TypeConfigurationDetails
    -> Maybe Bool -> TypeConfigurationDetails)
-> Lens
     TypeConfigurationDetails
     TypeConfigurationDetails
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TypeConfigurationDetails' {Maybe Bool
isDefaultConfiguration :: Maybe Bool
$sel:isDefaultConfiguration:TypeConfigurationDetails' :: TypeConfigurationDetails -> Maybe Bool
isDefaultConfiguration} -> Maybe Bool
isDefaultConfiguration) (\s :: TypeConfigurationDetails
s@TypeConfigurationDetails' {} Maybe Bool
a -> TypeConfigurationDetails
s {$sel:isDefaultConfiguration:TypeConfigurationDetails' :: Maybe Bool
isDefaultConfiguration = Maybe Bool
a} :: TypeConfigurationDetails)

instance Core.FromXML TypeConfigurationDetails where
  parseXML :: [Node] -> Either String TypeConfigurationDetails
parseXML [Node]
x =
    Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> TypeConfigurationDetails
TypeConfigurationDetails'
      (Maybe ISO8601
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Bool
 -> TypeConfigurationDetails)
-> Either String (Maybe ISO8601)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> TypeConfigurationDetails)
forall (f :: * -> *) a b. Functor 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
"LastUpdated")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> TypeConfigurationDetails)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> TypeConfigurationDetails)
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
"TypeName")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> TypeConfigurationDetails)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Bool
      -> TypeConfigurationDetails)
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
"Arn")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Bool
   -> TypeConfigurationDetails)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text -> Maybe Bool -> TypeConfigurationDetails)
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
"Alias")
      Either
  String
  (Maybe Text
   -> Maybe Text -> Maybe Bool -> TypeConfigurationDetails)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Maybe Bool -> TypeConfigurationDetails)
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
"TypeArn")
      Either
  String (Maybe Text -> Maybe Bool -> TypeConfigurationDetails)
-> Either String (Maybe Text)
-> Either String (Maybe Bool -> TypeConfigurationDetails)
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
"Configuration")
      Either String (Maybe Bool -> TypeConfigurationDetails)
-> Either String (Maybe Bool)
-> Either String TypeConfigurationDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"IsDefaultConfiguration")

instance Prelude.Hashable TypeConfigurationDetails

instance Prelude.NFData TypeConfigurationDetails