{-# 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 #-}
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
data DomainStatus = DomainStatus'
{
DomainStatus -> Maybe Natural
searchInstanceCount :: Prelude.Maybe Prelude.Natural,
DomainStatus -> Maybe Text
searchInstanceType :: Prelude.Maybe Prelude.Text,
DomainStatus -> Maybe ServiceEndpoint
docService :: Prelude.Maybe ServiceEndpoint,
DomainStatus -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DomainStatus -> Maybe Bool
created :: Prelude.Maybe Prelude.Bool,
DomainStatus -> Maybe ServiceEndpoint
searchService :: Prelude.Maybe ServiceEndpoint,
DomainStatus -> Maybe Limits
limits :: Prelude.Maybe Limits,
DomainStatus -> Maybe Natural
searchPartitionCount :: Prelude.Maybe Prelude.Natural,
DomainStatus -> Maybe Bool
deleted :: Prelude.Maybe Prelude.Bool,
DomainStatus -> Maybe Bool
processing :: Prelude.Maybe Prelude.Bool,
DomainStatus -> Text
domainId :: Prelude.Text,
DomainStatus -> Text
domainName :: Prelude.Text,
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)
newDomainStatus ::
Prelude.Text ->
Prelude.Text ->
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_
}
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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