{-# 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.CloudSearch.Types.DomainStatus
-- 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.CloudSearch.Types.DomainStatus where

import Amazonka.CloudSearch.Types.Limits
import Amazonka.CloudSearch.Types.ServiceEndpoint
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The current status of the search domain.
--
-- /See:/ 'newDomainStatus' smart constructor.
data DomainStatus = DomainStatus'
  { -- | The number of search instances that are available to process search
    -- requests.
    DomainStatus -> Maybe Natural
searchInstanceCount :: Prelude.Maybe Prelude.Natural,
    -- | The instance type that is being used to process search requests.
    DomainStatus -> Maybe Text
searchInstanceType :: Prelude.Maybe Prelude.Text,
    -- | The service endpoint for updating documents in a search domain.
    DomainStatus -> Maybe ServiceEndpoint
docService :: Prelude.Maybe ServiceEndpoint,
    DomainStatus -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | True if the search domain is created. It can take several minutes to
    -- initialize a domain when CreateDomain is called. Newly created search
    -- domains are returned from DescribeDomains with a false value for Created
    -- until domain creation is complete.
    DomainStatus -> Maybe Bool
created :: Prelude.Maybe Prelude.Bool,
    -- | The service endpoint for requesting search results from a search domain.
    DomainStatus -> Maybe ServiceEndpoint
searchService :: Prelude.Maybe ServiceEndpoint,
    DomainStatus -> Maybe Limits
limits :: Prelude.Maybe Limits,
    -- | The number of partitions across which the search index is spread.
    DomainStatus -> Maybe Natural
searchPartitionCount :: Prelude.Maybe Prelude.Natural,
    -- | True if the search domain has been deleted. The system must clean up
    -- resources dedicated to the search domain when DeleteDomain is called.
    -- Newly deleted search domains are returned from DescribeDomains with a
    -- true value for IsDeleted for several minutes until resource cleanup is
    -- complete.
    DomainStatus -> Maybe Bool
deleted :: Prelude.Maybe Prelude.Bool,
    -- | True if processing is being done to activate the current domain
    -- configuration.
    DomainStatus -> Maybe Bool
processing :: Prelude.Maybe Prelude.Bool,
    DomainStatus -> Text
domainId :: Prelude.Text,
    DomainStatus -> Text
domainName :: Prelude.Text,
    -- | True if IndexDocuments needs to be called to activate the current domain
    -- configuration.
    DomainStatus -> Bool
requiresIndexDocuments :: Prelude.Bool
  }
  deriving (DomainStatus -> DomainStatus -> Bool
(DomainStatus -> DomainStatus -> Bool)
-> (DomainStatus -> DomainStatus -> Bool) -> Eq DomainStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DomainStatus -> DomainStatus -> Bool
$c/= :: DomainStatus -> DomainStatus -> Bool
== :: DomainStatus -> DomainStatus -> Bool
$c== :: DomainStatus -> DomainStatus -> Bool
Prelude.Eq, ReadPrec [DomainStatus]
ReadPrec DomainStatus
Int -> ReadS DomainStatus
ReadS [DomainStatus]
(Int -> ReadS DomainStatus)
-> ReadS [DomainStatus]
-> ReadPrec DomainStatus
-> ReadPrec [DomainStatus]
-> Read DomainStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DomainStatus]
$creadListPrec :: ReadPrec [DomainStatus]
readPrec :: ReadPrec DomainStatus
$creadPrec :: ReadPrec DomainStatus
readList :: ReadS [DomainStatus]
$creadList :: ReadS [DomainStatus]
readsPrec :: Int -> ReadS DomainStatus
$creadsPrec :: Int -> ReadS DomainStatus
Prelude.Read, Int -> DomainStatus -> ShowS
[DomainStatus] -> ShowS
DomainStatus -> String
(Int -> DomainStatus -> ShowS)
-> (DomainStatus -> String)
-> ([DomainStatus] -> ShowS)
-> Show DomainStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DomainStatus] -> ShowS
$cshowList :: [DomainStatus] -> ShowS
show :: DomainStatus -> String
$cshow :: DomainStatus -> String
showsPrec :: Int -> DomainStatus -> ShowS
$cshowsPrec :: Int -> DomainStatus -> ShowS
Prelude.Show, (forall x. DomainStatus -> Rep DomainStatus x)
-> (forall x. Rep DomainStatus x -> DomainStatus)
-> Generic DomainStatus
forall x. Rep DomainStatus x -> DomainStatus
forall x. DomainStatus -> Rep DomainStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DomainStatus x -> DomainStatus
$cfrom :: forall x. DomainStatus -> Rep DomainStatus x
Prelude.Generic)

-- |
-- Create a value of 'DomainStatus' 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:
--
-- 'searchInstanceCount', 'domainStatus_searchInstanceCount' - The number of search instances that are available to process search
-- requests.
--
-- 'searchInstanceType', 'domainStatus_searchInstanceType' - The instance type that is being used to process search requests.
--
-- 'docService', 'domainStatus_docService' - The service endpoint for updating documents in a search domain.
--
-- 'arn', 'domainStatus_arn' - Undocumented member.
--
-- 'created', 'domainStatus_created' - True if the search domain is created. It can take several minutes to
-- initialize a domain when CreateDomain is called. Newly created search
-- domains are returned from DescribeDomains with a false value for Created
-- until domain creation is complete.
--
-- 'searchService', 'domainStatus_searchService' - The service endpoint for requesting search results from a search domain.
--
-- 'limits', 'domainStatus_limits' - Undocumented member.
--
-- 'searchPartitionCount', 'domainStatus_searchPartitionCount' - The number of partitions across which the search index is spread.
--
-- 'deleted', 'domainStatus_deleted' - True if the search domain has been deleted. The system must clean up
-- resources dedicated to the search domain when DeleteDomain is called.
-- Newly deleted search domains are returned from DescribeDomains with a
-- true value for IsDeleted for several minutes until resource cleanup is
-- complete.
--
-- 'processing', 'domainStatus_processing' - True if processing is being done to activate the current domain
-- configuration.
--
-- 'domainId', 'domainStatus_domainId' - Undocumented member.
--
-- 'domainName', 'domainStatus_domainName' - Undocumented member.
--
-- 'requiresIndexDocuments', 'domainStatus_requiresIndexDocuments' - True if IndexDocuments needs to be called to activate the current domain
-- configuration.
newDomainStatus ::
  -- | 'domainId'
  Prelude.Text ->
  -- | 'domainName'
  Prelude.Text ->
  -- | 'requiresIndexDocuments'
  Prelude.Bool ->
  DomainStatus
newDomainStatus :: Text -> Text -> Bool -> DomainStatus
newDomainStatus
  Text
pDomainId_
  Text
pDomainName_
  Bool
pRequiresIndexDocuments_ =
    DomainStatus' :: Maybe Natural
-> Maybe Text
-> Maybe ServiceEndpoint
-> Maybe Text
-> Maybe Bool
-> Maybe ServiceEndpoint
-> Maybe Limits
-> Maybe Natural
-> Maybe Bool
-> Maybe Bool
-> Text
-> Text
-> Bool
-> DomainStatus
DomainStatus'
      { $sel:searchInstanceCount:DomainStatus' :: Maybe Natural
searchInstanceCount =
          Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:searchInstanceType:DomainStatus' :: Maybe Text
searchInstanceType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:docService:DomainStatus' :: Maybe ServiceEndpoint
docService = Maybe ServiceEndpoint
forall a. Maybe a
Prelude.Nothing,
        $sel:arn:DomainStatus' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:created:DomainStatus' :: Maybe Bool
created = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:searchService:DomainStatus' :: Maybe ServiceEndpoint
searchService = Maybe ServiceEndpoint
forall a. Maybe a
Prelude.Nothing,
        $sel:limits:DomainStatus' :: Maybe Limits
limits = Maybe Limits
forall a. Maybe a
Prelude.Nothing,
        $sel:searchPartitionCount:DomainStatus' :: Maybe Natural
searchPartitionCount = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:deleted:DomainStatus' :: Maybe Bool
deleted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:processing:DomainStatus' :: Maybe Bool
processing = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:domainId:DomainStatus' :: Text
domainId = Text
pDomainId_,
        $sel:domainName:DomainStatus' :: Text
domainName = Text
pDomainName_,
        $sel:requiresIndexDocuments:DomainStatus' :: Bool
requiresIndexDocuments = Bool
pRequiresIndexDocuments_
      }

-- | The number of search instances that are available to process search
-- requests.
domainStatus_searchInstanceCount :: Lens.Lens' DomainStatus (Prelude.Maybe Prelude.Natural)
domainStatus_searchInstanceCount :: (Maybe Natural -> f (Maybe Natural))
-> DomainStatus -> f DomainStatus
domainStatus_searchInstanceCount = (DomainStatus -> Maybe Natural)
-> (DomainStatus -> Maybe Natural -> DomainStatus)
-> Lens DomainStatus DomainStatus (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Maybe Natural
searchInstanceCount :: Maybe Natural
$sel:searchInstanceCount:DomainStatus' :: DomainStatus -> Maybe Natural
searchInstanceCount} -> Maybe Natural
searchInstanceCount) (\s :: DomainStatus
s@DomainStatus' {} Maybe Natural
a -> DomainStatus
s {$sel:searchInstanceCount:DomainStatus' :: Maybe Natural
searchInstanceCount = Maybe Natural
a} :: DomainStatus)

-- | The instance type that is being used to process search requests.
domainStatus_searchInstanceType :: Lens.Lens' DomainStatus (Prelude.Maybe Prelude.Text)
domainStatus_searchInstanceType :: (Maybe Text -> f (Maybe Text)) -> DomainStatus -> f DomainStatus
domainStatus_searchInstanceType = (DomainStatus -> Maybe Text)
-> (DomainStatus -> Maybe Text -> DomainStatus)
-> Lens DomainStatus DomainStatus (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Maybe Text
searchInstanceType :: Maybe Text
$sel:searchInstanceType:DomainStatus' :: DomainStatus -> Maybe Text
searchInstanceType} -> Maybe Text
searchInstanceType) (\s :: DomainStatus
s@DomainStatus' {} Maybe Text
a -> DomainStatus
s {$sel:searchInstanceType:DomainStatus' :: Maybe Text
searchInstanceType = Maybe Text
a} :: DomainStatus)

-- | The service endpoint for updating documents in a search domain.
domainStatus_docService :: Lens.Lens' DomainStatus (Prelude.Maybe ServiceEndpoint)
domainStatus_docService :: (Maybe ServiceEndpoint -> f (Maybe ServiceEndpoint))
-> DomainStatus -> f DomainStatus
domainStatus_docService = (DomainStatus -> Maybe ServiceEndpoint)
-> (DomainStatus -> Maybe ServiceEndpoint -> DomainStatus)
-> Lens
     DomainStatus
     DomainStatus
     (Maybe ServiceEndpoint)
     (Maybe ServiceEndpoint)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Maybe ServiceEndpoint
docService :: Maybe ServiceEndpoint
$sel:docService:DomainStatus' :: DomainStatus -> Maybe ServiceEndpoint
docService} -> Maybe ServiceEndpoint
docService) (\s :: DomainStatus
s@DomainStatus' {} Maybe ServiceEndpoint
a -> DomainStatus
s {$sel:docService:DomainStatus' :: Maybe ServiceEndpoint
docService = Maybe ServiceEndpoint
a} :: DomainStatus)

-- | Undocumented member.
domainStatus_arn :: Lens.Lens' DomainStatus (Prelude.Maybe Prelude.Text)
domainStatus_arn :: (Maybe Text -> f (Maybe Text)) -> DomainStatus -> f DomainStatus
domainStatus_arn = (DomainStatus -> Maybe Text)
-> (DomainStatus -> Maybe Text -> DomainStatus)
-> Lens DomainStatus DomainStatus (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Maybe Text
arn :: Maybe Text
$sel:arn:DomainStatus' :: DomainStatus -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DomainStatus
s@DomainStatus' {} Maybe Text
a -> DomainStatus
s {$sel:arn:DomainStatus' :: Maybe Text
arn = Maybe Text
a} :: DomainStatus)

-- | True if the search domain is created. It can take several minutes to
-- initialize a domain when CreateDomain is called. Newly created search
-- domains are returned from DescribeDomains with a false value for Created
-- until domain creation is complete.
domainStatus_created :: Lens.Lens' DomainStatus (Prelude.Maybe Prelude.Bool)
domainStatus_created :: (Maybe Bool -> f (Maybe Bool)) -> DomainStatus -> f DomainStatus
domainStatus_created = (DomainStatus -> Maybe Bool)
-> (DomainStatus -> Maybe Bool -> DomainStatus)
-> Lens DomainStatus DomainStatus (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Maybe Bool
created :: Maybe Bool
$sel:created:DomainStatus' :: DomainStatus -> Maybe Bool
created} -> Maybe Bool
created) (\s :: DomainStatus
s@DomainStatus' {} Maybe Bool
a -> DomainStatus
s {$sel:created:DomainStatus' :: Maybe Bool
created = Maybe Bool
a} :: DomainStatus)

-- | The service endpoint for requesting search results from a search domain.
domainStatus_searchService :: Lens.Lens' DomainStatus (Prelude.Maybe ServiceEndpoint)
domainStatus_searchService :: (Maybe ServiceEndpoint -> f (Maybe ServiceEndpoint))
-> DomainStatus -> f DomainStatus
domainStatus_searchService = (DomainStatus -> Maybe ServiceEndpoint)
-> (DomainStatus -> Maybe ServiceEndpoint -> DomainStatus)
-> Lens
     DomainStatus
     DomainStatus
     (Maybe ServiceEndpoint)
     (Maybe ServiceEndpoint)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Maybe ServiceEndpoint
searchService :: Maybe ServiceEndpoint
$sel:searchService:DomainStatus' :: DomainStatus -> Maybe ServiceEndpoint
searchService} -> Maybe ServiceEndpoint
searchService) (\s :: DomainStatus
s@DomainStatus' {} Maybe ServiceEndpoint
a -> DomainStatus
s {$sel:searchService:DomainStatus' :: Maybe ServiceEndpoint
searchService = Maybe ServiceEndpoint
a} :: DomainStatus)

-- | Undocumented member.
domainStatus_limits :: Lens.Lens' DomainStatus (Prelude.Maybe Limits)
domainStatus_limits :: (Maybe Limits -> f (Maybe Limits))
-> DomainStatus -> f DomainStatus
domainStatus_limits = (DomainStatus -> Maybe Limits)
-> (DomainStatus -> Maybe Limits -> DomainStatus)
-> Lens DomainStatus DomainStatus (Maybe Limits) (Maybe Limits)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Maybe Limits
limits :: Maybe Limits
$sel:limits:DomainStatus' :: DomainStatus -> Maybe Limits
limits} -> Maybe Limits
limits) (\s :: DomainStatus
s@DomainStatus' {} Maybe Limits
a -> DomainStatus
s {$sel:limits:DomainStatus' :: Maybe Limits
limits = Maybe Limits
a} :: DomainStatus)

-- | The number of partitions across which the search index is spread.
domainStatus_searchPartitionCount :: Lens.Lens' DomainStatus (Prelude.Maybe Prelude.Natural)
domainStatus_searchPartitionCount :: (Maybe Natural -> f (Maybe Natural))
-> DomainStatus -> f DomainStatus
domainStatus_searchPartitionCount = (DomainStatus -> Maybe Natural)
-> (DomainStatus -> Maybe Natural -> DomainStatus)
-> Lens DomainStatus DomainStatus (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Maybe Natural
searchPartitionCount :: Maybe Natural
$sel:searchPartitionCount:DomainStatus' :: DomainStatus -> Maybe Natural
searchPartitionCount} -> Maybe Natural
searchPartitionCount) (\s :: DomainStatus
s@DomainStatus' {} Maybe Natural
a -> DomainStatus
s {$sel:searchPartitionCount:DomainStatus' :: Maybe Natural
searchPartitionCount = Maybe Natural
a} :: DomainStatus)

-- | True if the search domain has been deleted. The system must clean up
-- resources dedicated to the search domain when DeleteDomain is called.
-- Newly deleted search domains are returned from DescribeDomains with a
-- true value for IsDeleted for several minutes until resource cleanup is
-- complete.
domainStatus_deleted :: Lens.Lens' DomainStatus (Prelude.Maybe Prelude.Bool)
domainStatus_deleted :: (Maybe Bool -> f (Maybe Bool)) -> DomainStatus -> f DomainStatus
domainStatus_deleted = (DomainStatus -> Maybe Bool)
-> (DomainStatus -> Maybe Bool -> DomainStatus)
-> Lens DomainStatus DomainStatus (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Maybe Bool
deleted :: Maybe Bool
$sel:deleted:DomainStatus' :: DomainStatus -> Maybe Bool
deleted} -> Maybe Bool
deleted) (\s :: DomainStatus
s@DomainStatus' {} Maybe Bool
a -> DomainStatus
s {$sel:deleted:DomainStatus' :: Maybe Bool
deleted = Maybe Bool
a} :: DomainStatus)

-- | True if processing is being done to activate the current domain
-- configuration.
domainStatus_processing :: Lens.Lens' DomainStatus (Prelude.Maybe Prelude.Bool)
domainStatus_processing :: (Maybe Bool -> f (Maybe Bool)) -> DomainStatus -> f DomainStatus
domainStatus_processing = (DomainStatus -> Maybe Bool)
-> (DomainStatus -> Maybe Bool -> DomainStatus)
-> Lens DomainStatus DomainStatus (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Maybe Bool
processing :: Maybe Bool
$sel:processing:DomainStatus' :: DomainStatus -> Maybe Bool
processing} -> Maybe Bool
processing) (\s :: DomainStatus
s@DomainStatus' {} Maybe Bool
a -> DomainStatus
s {$sel:processing:DomainStatus' :: Maybe Bool
processing = Maybe Bool
a} :: DomainStatus)

-- | Undocumented member.
domainStatus_domainId :: Lens.Lens' DomainStatus Prelude.Text
domainStatus_domainId :: (Text -> f Text) -> DomainStatus -> f DomainStatus
domainStatus_domainId = (DomainStatus -> Text)
-> (DomainStatus -> Text -> DomainStatus)
-> Lens DomainStatus DomainStatus Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Text
domainId :: Text
$sel:domainId:DomainStatus' :: DomainStatus -> Text
domainId} -> Text
domainId) (\s :: DomainStatus
s@DomainStatus' {} Text
a -> DomainStatus
s {$sel:domainId:DomainStatus' :: Text
domainId = Text
a} :: DomainStatus)

-- | Undocumented member.
domainStatus_domainName :: Lens.Lens' DomainStatus Prelude.Text
domainStatus_domainName :: (Text -> f Text) -> DomainStatus -> f DomainStatus
domainStatus_domainName = (DomainStatus -> Text)
-> (DomainStatus -> Text -> DomainStatus)
-> Lens DomainStatus DomainStatus Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Text
domainName :: Text
$sel:domainName:DomainStatus' :: DomainStatus -> Text
domainName} -> Text
domainName) (\s :: DomainStatus
s@DomainStatus' {} Text
a -> DomainStatus
s {$sel:domainName:DomainStatus' :: Text
domainName = Text
a} :: DomainStatus)

-- | True if IndexDocuments needs to be called to activate the current domain
-- configuration.
domainStatus_requiresIndexDocuments :: Lens.Lens' DomainStatus Prelude.Bool
domainStatus_requiresIndexDocuments :: (Bool -> f Bool) -> DomainStatus -> f DomainStatus
domainStatus_requiresIndexDocuments = (DomainStatus -> Bool)
-> (DomainStatus -> Bool -> DomainStatus)
-> Lens DomainStatus DomainStatus Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DomainStatus' {Bool
requiresIndexDocuments :: Bool
$sel:requiresIndexDocuments:DomainStatus' :: DomainStatus -> Bool
requiresIndexDocuments} -> Bool
requiresIndexDocuments) (\s :: DomainStatus
s@DomainStatus' {} Bool
a -> DomainStatus
s {$sel:requiresIndexDocuments:DomainStatus' :: Bool
requiresIndexDocuments = Bool
a} :: DomainStatus)

instance Core.FromXML DomainStatus where
  parseXML :: [Node] -> Either String DomainStatus
parseXML [Node]
x =
    Maybe Natural
-> Maybe Text
-> Maybe ServiceEndpoint
-> Maybe Text
-> Maybe Bool
-> Maybe ServiceEndpoint
-> Maybe Limits
-> Maybe Natural
-> Maybe Bool
-> Maybe Bool
-> Text
-> Text
-> Bool
-> DomainStatus
DomainStatus'
      (Maybe Natural
 -> Maybe Text
 -> Maybe ServiceEndpoint
 -> Maybe Text
 -> Maybe Bool
 -> Maybe ServiceEndpoint
 -> Maybe Limits
 -> Maybe Natural
 -> Maybe Bool
 -> Maybe Bool
 -> Text
 -> Text
 -> Bool
 -> DomainStatus)
-> Either String (Maybe Natural)
-> Either
     String
     (Maybe Text
      -> Maybe ServiceEndpoint
      -> Maybe Text
      -> Maybe Bool
      -> Maybe ServiceEndpoint
      -> Maybe Limits
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Bool
      -> Text
      -> Text
      -> Bool
      -> DomainStatus)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Natural)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SearchInstanceCount")
      Either
  String
  (Maybe Text
   -> Maybe ServiceEndpoint
   -> Maybe Text
   -> Maybe Bool
   -> Maybe ServiceEndpoint
   -> Maybe Limits
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Bool
   -> Text
   -> Text
   -> Bool
   -> DomainStatus)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe ServiceEndpoint
      -> Maybe Text
      -> Maybe Bool
      -> Maybe ServiceEndpoint
      -> Maybe Limits
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Bool
      -> Text
      -> Text
      -> Bool
      -> DomainStatus)
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
"SearchInstanceType")
      Either
  String
  (Maybe ServiceEndpoint
   -> Maybe Text
   -> Maybe Bool
   -> Maybe ServiceEndpoint
   -> Maybe Limits
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Bool
   -> Text
   -> Text
   -> Bool
   -> DomainStatus)
-> Either String (Maybe ServiceEndpoint)
-> Either
     String
     (Maybe Text
      -> Maybe Bool
      -> Maybe ServiceEndpoint
      -> Maybe Limits
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Bool
      -> Text
      -> Text
      -> Bool
      -> DomainStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ServiceEndpoint)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"DocService")
      Either
  String
  (Maybe Text
   -> Maybe Bool
   -> Maybe ServiceEndpoint
   -> Maybe Limits
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Bool
   -> Text
   -> Text
   -> Bool
   -> DomainStatus)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Bool
      -> Maybe ServiceEndpoint
      -> Maybe Limits
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Bool
      -> Text
      -> Text
      -> Bool
      -> DomainStatus)
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 Bool
   -> Maybe ServiceEndpoint
   -> Maybe Limits
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Bool
   -> Text
   -> Text
   -> Bool
   -> DomainStatus)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe ServiceEndpoint
      -> Maybe Limits
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Bool
      -> Text
      -> Text
      -> Bool
      -> DomainStatus)
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
"Created")
      Either
  String
  (Maybe ServiceEndpoint
   -> Maybe Limits
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Bool
   -> Text
   -> Text
   -> Bool
   -> DomainStatus)
-> Either String (Maybe ServiceEndpoint)
-> Either
     String
     (Maybe Limits
      -> Maybe Natural
      -> Maybe Bool
      -> Maybe Bool
      -> Text
      -> Text
      -> Bool
      -> DomainStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ServiceEndpoint)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SearchService")
      Either
  String
  (Maybe Limits
   -> Maybe Natural
   -> Maybe Bool
   -> Maybe Bool
   -> Text
   -> Text
   -> Bool
   -> DomainStatus)
-> Either String (Maybe Limits)
-> Either
     String
     (Maybe Natural
      -> Maybe Bool
      -> Maybe Bool
      -> Text
      -> Text
      -> Bool
      -> DomainStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Limits)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Limits")
      Either
  String
  (Maybe Natural
   -> Maybe Bool
   -> Maybe Bool
   -> Text
   -> Text
   -> Bool
   -> DomainStatus)
-> Either String (Maybe Natural)
-> Either
     String
     (Maybe Bool -> Maybe Bool -> Text -> Text -> Bool -> DomainStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Natural)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"SearchPartitionCount")
      Either
  String
  (Maybe Bool -> Maybe Bool -> Text -> Text -> Bool -> DomainStatus)
-> Either String (Maybe Bool)
-> Either
     String (Maybe Bool -> Text -> Text -> Bool -> DomainStatus)
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
"Deleted")
      Either String (Maybe Bool -> Text -> Text -> Bool -> DomainStatus)
-> Either String (Maybe Bool)
-> Either String (Text -> Text -> Bool -> DomainStatus)
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
"Processing")
      Either String (Text -> Text -> Bool -> DomainStatus)
-> Either String Text
-> Either String (Text -> Bool -> DomainStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"DomainId")
      Either String (Text -> Bool -> DomainStatus)
-> Either String Text -> Either String (Bool -> DomainStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Text
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"DomainName")
      Either String (Bool -> DomainStatus)
-> Either String Bool -> Either String DomainStatus
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String Bool
forall a. FromXML a => [Node] -> Text -> Either String a
Core..@ Text
"RequiresIndexDocuments")

instance Prelude.Hashable DomainStatus

instance Prelude.NFData DomainStatus