{-# 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.SecurityHub.Types.AwsOpenSearchServiceDomainDetails
-- 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.SecurityHub.Types.AwsOpenSearchServiceDomainDetails where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SecurityHub.Types.AwsOpenSearchServiceDomainClusterConfigDetails
import Amazonka.SecurityHub.Types.AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
import Amazonka.SecurityHub.Types.AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
import Amazonka.SecurityHub.Types.AwsOpenSearchServiceDomainLogPublishingOptionsDetails
import Amazonka.SecurityHub.Types.AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
import Amazonka.SecurityHub.Types.AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
import Amazonka.SecurityHub.Types.AwsOpenSearchServiceDomainVpcOptionsDetails

-- | Information about an Amazon OpenSearch Service domain.
--
-- /See:/ 'newAwsOpenSearchServiceDomainDetails' smart constructor.
data AwsOpenSearchServiceDomainDetails = AwsOpenSearchServiceDomainDetails'
  { -- | The version of the domain engine.
    AwsOpenSearchServiceDomainDetails -> Maybe Text
engineVersion :: Prelude.Maybe Prelude.Text,
    -- | Details about the configuration for node-to-node encryption.
    AwsOpenSearchServiceDomainDetails
-> Maybe
     AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
nodeToNodeEncryptionOptions :: Prelude.Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails,
    -- | IAM policy document that specifies the access policies for the
    -- OpenSearch Service domain.
    AwsOpenSearchServiceDomainDetails -> Maybe Text
accessPolicies :: Prelude.Maybe Prelude.Text,
    -- | Information about the status of a domain relative to the latest service
    -- software.
    AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
serviceSoftwareOptions :: Prelude.Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails,
    -- | The ARN of the OpenSearch Service domain.
    AwsOpenSearchServiceDomainDetails -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | Configures the CloudWatch Logs to publish for the OpenSearch domain.
    AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
logPublishingOptions :: Prelude.Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails,
    -- | Details about the configuration of an OpenSearch cluster.
    AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
clusterConfig :: Prelude.Maybe AwsOpenSearchServiceDomainClusterConfigDetails,
    -- | The name of the endpoint.
    AwsOpenSearchServiceDomainDetails -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
    -- | Details about the configuration for encryption at rest.
    AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
encryptionAtRestOptions :: Prelude.Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails,
    -- | Information that OpenSearch Service derives based on @VPCOptions@ for
    -- the domain.
    AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
vpcOptions :: Prelude.Maybe AwsOpenSearchServiceDomainVpcOptionsDetails,
    -- | The identifier of the domain.
    AwsOpenSearchServiceDomainDetails -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The domain endpoints. Used if the OpenSearch domain resides in a VPC.
    --
    -- This is a map of key-value pairs. The key is always @vpc@. The value is
    -- the endpoint.
    AwsOpenSearchServiceDomainDetails -> Maybe (HashMap Text Text)
domainEndpoints :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The domain endpoint.
    AwsOpenSearchServiceDomainDetails -> Maybe Text
domainEndpoint :: Prelude.Maybe Prelude.Text,
    -- | Additional options for the domain endpoint.
    AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
domainEndpointOptions :: Prelude.Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
  }
  deriving (AwsOpenSearchServiceDomainDetails
-> AwsOpenSearchServiceDomainDetails -> Bool
(AwsOpenSearchServiceDomainDetails
 -> AwsOpenSearchServiceDomainDetails -> Bool)
-> (AwsOpenSearchServiceDomainDetails
    -> AwsOpenSearchServiceDomainDetails -> Bool)
-> Eq AwsOpenSearchServiceDomainDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AwsOpenSearchServiceDomainDetails
-> AwsOpenSearchServiceDomainDetails -> Bool
$c/= :: AwsOpenSearchServiceDomainDetails
-> AwsOpenSearchServiceDomainDetails -> Bool
== :: AwsOpenSearchServiceDomainDetails
-> AwsOpenSearchServiceDomainDetails -> Bool
$c== :: AwsOpenSearchServiceDomainDetails
-> AwsOpenSearchServiceDomainDetails -> Bool
Prelude.Eq, ReadPrec [AwsOpenSearchServiceDomainDetails]
ReadPrec AwsOpenSearchServiceDomainDetails
Int -> ReadS AwsOpenSearchServiceDomainDetails
ReadS [AwsOpenSearchServiceDomainDetails]
(Int -> ReadS AwsOpenSearchServiceDomainDetails)
-> ReadS [AwsOpenSearchServiceDomainDetails]
-> ReadPrec AwsOpenSearchServiceDomainDetails
-> ReadPrec [AwsOpenSearchServiceDomainDetails]
-> Read AwsOpenSearchServiceDomainDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AwsOpenSearchServiceDomainDetails]
$creadListPrec :: ReadPrec [AwsOpenSearchServiceDomainDetails]
readPrec :: ReadPrec AwsOpenSearchServiceDomainDetails
$creadPrec :: ReadPrec AwsOpenSearchServiceDomainDetails
readList :: ReadS [AwsOpenSearchServiceDomainDetails]
$creadList :: ReadS [AwsOpenSearchServiceDomainDetails]
readsPrec :: Int -> ReadS AwsOpenSearchServiceDomainDetails
$creadsPrec :: Int -> ReadS AwsOpenSearchServiceDomainDetails
Prelude.Read, Int -> AwsOpenSearchServiceDomainDetails -> ShowS
[AwsOpenSearchServiceDomainDetails] -> ShowS
AwsOpenSearchServiceDomainDetails -> String
(Int -> AwsOpenSearchServiceDomainDetails -> ShowS)
-> (AwsOpenSearchServiceDomainDetails -> String)
-> ([AwsOpenSearchServiceDomainDetails] -> ShowS)
-> Show AwsOpenSearchServiceDomainDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AwsOpenSearchServiceDomainDetails] -> ShowS
$cshowList :: [AwsOpenSearchServiceDomainDetails] -> ShowS
show :: AwsOpenSearchServiceDomainDetails -> String
$cshow :: AwsOpenSearchServiceDomainDetails -> String
showsPrec :: Int -> AwsOpenSearchServiceDomainDetails -> ShowS
$cshowsPrec :: Int -> AwsOpenSearchServiceDomainDetails -> ShowS
Prelude.Show, (forall x.
 AwsOpenSearchServiceDomainDetails
 -> Rep AwsOpenSearchServiceDomainDetails x)
-> (forall x.
    Rep AwsOpenSearchServiceDomainDetails x
    -> AwsOpenSearchServiceDomainDetails)
-> Generic AwsOpenSearchServiceDomainDetails
forall x.
Rep AwsOpenSearchServiceDomainDetails x
-> AwsOpenSearchServiceDomainDetails
forall x.
AwsOpenSearchServiceDomainDetails
-> Rep AwsOpenSearchServiceDomainDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep AwsOpenSearchServiceDomainDetails x
-> AwsOpenSearchServiceDomainDetails
$cfrom :: forall x.
AwsOpenSearchServiceDomainDetails
-> Rep AwsOpenSearchServiceDomainDetails x
Prelude.Generic)

-- |
-- Create a value of 'AwsOpenSearchServiceDomainDetails' 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:
--
-- 'engineVersion', 'awsOpenSearchServiceDomainDetails_engineVersion' - The version of the domain engine.
--
-- 'nodeToNodeEncryptionOptions', 'awsOpenSearchServiceDomainDetails_nodeToNodeEncryptionOptions' - Details about the configuration for node-to-node encryption.
--
-- 'accessPolicies', 'awsOpenSearchServiceDomainDetails_accessPolicies' - IAM policy document that specifies the access policies for the
-- OpenSearch Service domain.
--
-- 'serviceSoftwareOptions', 'awsOpenSearchServiceDomainDetails_serviceSoftwareOptions' - Information about the status of a domain relative to the latest service
-- software.
--
-- 'arn', 'awsOpenSearchServiceDomainDetails_arn' - The ARN of the OpenSearch Service domain.
--
-- 'logPublishingOptions', 'awsOpenSearchServiceDomainDetails_logPublishingOptions' - Configures the CloudWatch Logs to publish for the OpenSearch domain.
--
-- 'clusterConfig', 'awsOpenSearchServiceDomainDetails_clusterConfig' - Details about the configuration of an OpenSearch cluster.
--
-- 'domainName', 'awsOpenSearchServiceDomainDetails_domainName' - The name of the endpoint.
--
-- 'encryptionAtRestOptions', 'awsOpenSearchServiceDomainDetails_encryptionAtRestOptions' - Details about the configuration for encryption at rest.
--
-- 'vpcOptions', 'awsOpenSearchServiceDomainDetails_vpcOptions' - Information that OpenSearch Service derives based on @VPCOptions@ for
-- the domain.
--
-- 'id', 'awsOpenSearchServiceDomainDetails_id' - The identifier of the domain.
--
-- 'domainEndpoints', 'awsOpenSearchServiceDomainDetails_domainEndpoints' - The domain endpoints. Used if the OpenSearch domain resides in a VPC.
--
-- This is a map of key-value pairs. The key is always @vpc@. The value is
-- the endpoint.
--
-- 'domainEndpoint', 'awsOpenSearchServiceDomainDetails_domainEndpoint' - The domain endpoint.
--
-- 'domainEndpointOptions', 'awsOpenSearchServiceDomainDetails_domainEndpointOptions' - Additional options for the domain endpoint.
newAwsOpenSearchServiceDomainDetails ::
  AwsOpenSearchServiceDomainDetails
newAwsOpenSearchServiceDomainDetails :: AwsOpenSearchServiceDomainDetails
newAwsOpenSearchServiceDomainDetails =
  AwsOpenSearchServiceDomainDetails' :: Maybe Text
-> Maybe
     AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
-> Maybe Text
-> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
-> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
-> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
-> Maybe Text
-> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
-> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
-> AwsOpenSearchServiceDomainDetails
AwsOpenSearchServiceDomainDetails'
    { $sel:engineVersion:AwsOpenSearchServiceDomainDetails' :: Maybe Text
engineVersion =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nodeToNodeEncryptionOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
nodeToNodeEncryptionOptions =
        Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:accessPolicies:AwsOpenSearchServiceDomainDetails' :: Maybe Text
accessPolicies = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:serviceSoftwareOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
serviceSoftwareOptions = Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:AwsOpenSearchServiceDomainDetails' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:logPublishingOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
logPublishingOptions = Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:clusterConfig:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainClusterConfigDetails
clusterConfig = Maybe AwsOpenSearchServiceDomainClusterConfigDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:domainName:AwsOpenSearchServiceDomainDetails' :: Maybe Text
domainName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:encryptionAtRestOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
encryptionAtRestOptions =
        Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:vpcOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
vpcOptions = Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
forall a. Maybe a
Prelude.Nothing,
      $sel:id:AwsOpenSearchServiceDomainDetails' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:domainEndpoints:AwsOpenSearchServiceDomainDetails' :: Maybe (HashMap Text Text)
domainEndpoints = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:domainEndpoint:AwsOpenSearchServiceDomainDetails' :: Maybe Text
domainEndpoint = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:domainEndpointOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
domainEndpointOptions = Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
forall a. Maybe a
Prelude.Nothing
    }

-- | The version of the domain engine.
awsOpenSearchServiceDomainDetails_engineVersion :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainDetails_engineVersion :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_engineVersion = (AwsOpenSearchServiceDomainDetails -> Maybe Text)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe Text -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe Text
engineVersion :: Maybe Text
$sel:engineVersion:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
engineVersion} -> Maybe Text
engineVersion) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainDetails
s {$sel:engineVersion:AwsOpenSearchServiceDomainDetails' :: Maybe Text
engineVersion = Maybe Text
a} :: AwsOpenSearchServiceDomainDetails)

-- | Details about the configuration for node-to-node encryption.
awsOpenSearchServiceDomainDetails_nodeToNodeEncryptionOptions :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails)
awsOpenSearchServiceDomainDetails_nodeToNodeEncryptionOptions :: (Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
 -> f (Maybe
         AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_nodeToNodeEncryptionOptions = (AwsOpenSearchServiceDomainDetails
 -> Maybe
      AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe
         AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
    -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe
        AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails)
     (Maybe
        AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
nodeToNodeEncryptionOptions :: Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
$sel:nodeToNodeEncryptionOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe
     AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
nodeToNodeEncryptionOptions} -> Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
nodeToNodeEncryptionOptions) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
a -> AwsOpenSearchServiceDomainDetails
s {$sel:nodeToNodeEncryptionOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
nodeToNodeEncryptionOptions = Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
a} :: AwsOpenSearchServiceDomainDetails)

-- | IAM policy document that specifies the access policies for the
-- OpenSearch Service domain.
awsOpenSearchServiceDomainDetails_accessPolicies :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainDetails_accessPolicies :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_accessPolicies = (AwsOpenSearchServiceDomainDetails -> Maybe Text)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe Text -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe Text
accessPolicies :: Maybe Text
$sel:accessPolicies:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
accessPolicies} -> Maybe Text
accessPolicies) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainDetails
s {$sel:accessPolicies:AwsOpenSearchServiceDomainDetails' :: Maybe Text
accessPolicies = Maybe Text
a} :: AwsOpenSearchServiceDomainDetails)

-- | Information about the status of a domain relative to the latest service
-- software.
awsOpenSearchServiceDomainDetails_serviceSoftwareOptions :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
awsOpenSearchServiceDomainDetails_serviceSoftwareOptions :: (Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
 -> f (Maybe
         AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_serviceSoftwareOptions = (AwsOpenSearchServiceDomainDetails
 -> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
    -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
     (Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
serviceSoftwareOptions :: Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
$sel:serviceSoftwareOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
serviceSoftwareOptions} -> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
serviceSoftwareOptions) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
a -> AwsOpenSearchServiceDomainDetails
s {$sel:serviceSoftwareOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
serviceSoftwareOptions = Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
a} :: AwsOpenSearchServiceDomainDetails)

-- | The ARN of the OpenSearch Service domain.
awsOpenSearchServiceDomainDetails_arn :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainDetails_arn :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_arn = (AwsOpenSearchServiceDomainDetails -> Maybe Text)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe Text -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe Text
arn :: Maybe Text
$sel:arn:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
arn} -> Maybe Text
arn) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainDetails
s {$sel:arn:AwsOpenSearchServiceDomainDetails' :: Maybe Text
arn = Maybe Text
a} :: AwsOpenSearchServiceDomainDetails)

-- | Configures the CloudWatch Logs to publish for the OpenSearch domain.
awsOpenSearchServiceDomainDetails_logPublishingOptions :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails)
awsOpenSearchServiceDomainDetails_logPublishingOptions :: (Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
 -> f (Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_logPublishingOptions = (AwsOpenSearchServiceDomainDetails
 -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
    -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails)
     (Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
logPublishingOptions :: Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
$sel:logPublishingOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
logPublishingOptions} -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
logPublishingOptions) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
a -> AwsOpenSearchServiceDomainDetails
s {$sel:logPublishingOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
logPublishingOptions = Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
a} :: AwsOpenSearchServiceDomainDetails)

-- | Details about the configuration of an OpenSearch cluster.
awsOpenSearchServiceDomainDetails_clusterConfig :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe AwsOpenSearchServiceDomainClusterConfigDetails)
awsOpenSearchServiceDomainDetails_clusterConfig :: (Maybe AwsOpenSearchServiceDomainClusterConfigDetails
 -> f (Maybe AwsOpenSearchServiceDomainClusterConfigDetails))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_clusterConfig = (AwsOpenSearchServiceDomainDetails
 -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
    -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe AwsOpenSearchServiceDomainClusterConfigDetails)
     (Maybe AwsOpenSearchServiceDomainClusterConfigDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe AwsOpenSearchServiceDomainClusterConfigDetails
clusterConfig :: Maybe AwsOpenSearchServiceDomainClusterConfigDetails
$sel:clusterConfig:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
clusterConfig} -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
clusterConfig) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe AwsOpenSearchServiceDomainClusterConfigDetails
a -> AwsOpenSearchServiceDomainDetails
s {$sel:clusterConfig:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainClusterConfigDetails
clusterConfig = Maybe AwsOpenSearchServiceDomainClusterConfigDetails
a} :: AwsOpenSearchServiceDomainDetails)

-- | The name of the endpoint.
awsOpenSearchServiceDomainDetails_domainName :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainDetails_domainName :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_domainName = (AwsOpenSearchServiceDomainDetails -> Maybe Text)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe Text -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe Text
domainName :: Maybe Text
$sel:domainName:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
domainName} -> Maybe Text
domainName) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainDetails
s {$sel:domainName:AwsOpenSearchServiceDomainDetails' :: Maybe Text
domainName = Maybe Text
a} :: AwsOpenSearchServiceDomainDetails)

-- | Details about the configuration for encryption at rest.
awsOpenSearchServiceDomainDetails_encryptionAtRestOptions :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails)
awsOpenSearchServiceDomainDetails_encryptionAtRestOptions :: (Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
 -> f (Maybe
         AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_encryptionAtRestOptions = (AwsOpenSearchServiceDomainDetails
 -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
    -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails)
     (Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
encryptionAtRestOptions :: Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
$sel:encryptionAtRestOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
encryptionAtRestOptions} -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
encryptionAtRestOptions) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
a -> AwsOpenSearchServiceDomainDetails
s {$sel:encryptionAtRestOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
encryptionAtRestOptions = Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
a} :: AwsOpenSearchServiceDomainDetails)

-- | Information that OpenSearch Service derives based on @VPCOptions@ for
-- the domain.
awsOpenSearchServiceDomainDetails_vpcOptions :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe AwsOpenSearchServiceDomainVpcOptionsDetails)
awsOpenSearchServiceDomainDetails_vpcOptions :: (Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
 -> f (Maybe AwsOpenSearchServiceDomainVpcOptionsDetails))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_vpcOptions = (AwsOpenSearchServiceDomainDetails
 -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
    -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe AwsOpenSearchServiceDomainVpcOptionsDetails)
     (Maybe AwsOpenSearchServiceDomainVpcOptionsDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
vpcOptions :: Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
$sel:vpcOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
vpcOptions} -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
vpcOptions) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
a -> AwsOpenSearchServiceDomainDetails
s {$sel:vpcOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
vpcOptions = Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
a} :: AwsOpenSearchServiceDomainDetails)

-- | The identifier of the domain.
awsOpenSearchServiceDomainDetails_id :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainDetails_id :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_id = (AwsOpenSearchServiceDomainDetails -> Maybe Text)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe Text -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe Text
id :: Maybe Text
$sel:id:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
id} -> Maybe Text
id) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainDetails
s {$sel:id:AwsOpenSearchServiceDomainDetails' :: Maybe Text
id = Maybe Text
a} :: AwsOpenSearchServiceDomainDetails)

-- | The domain endpoints. Used if the OpenSearch domain resides in a VPC.
--
-- This is a map of key-value pairs. The key is always @vpc@. The value is
-- the endpoint.
awsOpenSearchServiceDomainDetails_domainEndpoints :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
awsOpenSearchServiceDomainDetails_domainEndpoints :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_domainEndpoints = (AwsOpenSearchServiceDomainDetails -> Maybe (HashMap Text Text))
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe (HashMap Text Text) -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe (HashMap Text Text)
domainEndpoints :: Maybe (HashMap Text Text)
$sel:domainEndpoints:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe (HashMap Text Text)
domainEndpoints} -> Maybe (HashMap Text Text)
domainEndpoints) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe (HashMap Text Text)
a -> AwsOpenSearchServiceDomainDetails
s {$sel:domainEndpoints:AwsOpenSearchServiceDomainDetails' :: Maybe (HashMap Text Text)
domainEndpoints = Maybe (HashMap Text Text)
a} :: AwsOpenSearchServiceDomainDetails) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> AwsOpenSearchServiceDomainDetails
 -> f AwsOpenSearchServiceDomainDetails)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The domain endpoint.
awsOpenSearchServiceDomainDetails_domainEndpoint :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe Prelude.Text)
awsOpenSearchServiceDomainDetails_domainEndpoint :: (Maybe Text -> f (Maybe Text))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_domainEndpoint = (AwsOpenSearchServiceDomainDetails -> Maybe Text)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe Text -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe Text
domainEndpoint :: Maybe Text
$sel:domainEndpoint:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
domainEndpoint} -> Maybe Text
domainEndpoint) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe Text
a -> AwsOpenSearchServiceDomainDetails
s {$sel:domainEndpoint:AwsOpenSearchServiceDomainDetails' :: Maybe Text
domainEndpoint = Maybe Text
a} :: AwsOpenSearchServiceDomainDetails)

-- | Additional options for the domain endpoint.
awsOpenSearchServiceDomainDetails_domainEndpointOptions :: Lens.Lens' AwsOpenSearchServiceDomainDetails (Prelude.Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails)
awsOpenSearchServiceDomainDetails_domainEndpointOptions :: (Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
 -> f (Maybe
         AwsOpenSearchServiceDomainDomainEndpointOptionsDetails))
-> AwsOpenSearchServiceDomainDetails
-> f AwsOpenSearchServiceDomainDetails
awsOpenSearchServiceDomainDetails_domainEndpointOptions = (AwsOpenSearchServiceDomainDetails
 -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails)
-> (AwsOpenSearchServiceDomainDetails
    -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
    -> AwsOpenSearchServiceDomainDetails)
-> Lens
     AwsOpenSearchServiceDomainDetails
     AwsOpenSearchServiceDomainDetails
     (Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails)
     (Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AwsOpenSearchServiceDomainDetails' {Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
domainEndpointOptions :: Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
$sel:domainEndpointOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
domainEndpointOptions} -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
domainEndpointOptions) (\s :: AwsOpenSearchServiceDomainDetails
s@AwsOpenSearchServiceDomainDetails' {} Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
a -> AwsOpenSearchServiceDomainDetails
s {$sel:domainEndpointOptions:AwsOpenSearchServiceDomainDetails' :: Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
domainEndpointOptions = Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
a} :: AwsOpenSearchServiceDomainDetails)

instance
  Core.FromJSON
    AwsOpenSearchServiceDomainDetails
  where
  parseJSON :: Value -> Parser AwsOpenSearchServiceDomainDetails
parseJSON =
    String
-> (Object -> Parser AwsOpenSearchServiceDomainDetails)
-> Value
-> Parser AwsOpenSearchServiceDomainDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AwsOpenSearchServiceDomainDetails"
      ( \Object
x ->
          Maybe Text
-> Maybe
     AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
-> Maybe Text
-> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Text
-> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
-> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
-> Maybe Text
-> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
-> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Maybe Text
-> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
-> AwsOpenSearchServiceDomainDetails
AwsOpenSearchServiceDomainDetails'
            (Maybe Text
 -> Maybe
      AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
 -> Maybe Text
 -> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
 -> Maybe Text
 -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
 -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
 -> Maybe Text
 -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
 -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Maybe Text
 -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
 -> AwsOpenSearchServiceDomainDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EngineVersion")
            Parser
  (Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser
     (Maybe
        AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails)
-> Parser
     (Maybe Text
      -> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser
     (Maybe
        AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"NodeToNodeEncryptionOptions")
            Parser
  (Maybe Text
   -> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"AccessPolicies")
            Parser
  (Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser
     (Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
-> Parser
     (Maybe Text
      -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser
     (Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ServiceSoftwareOptions")
            Parser
  (Maybe Text
   -> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Arn")
            Parser
  (Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser
     (Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails)
-> Parser
     (Maybe AwsOpenSearchServiceDomainClusterConfigDetails
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser
     (Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LogPublishingOptions")
            Parser
  (Maybe AwsOpenSearchServiceDomainClusterConfigDetails
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser (Maybe AwsOpenSearchServiceDomainClusterConfigDetails)
-> Parser
     (Maybe Text
      -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser (Maybe AwsOpenSearchServiceDomainClusterConfigDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ClusterConfig")
            Parser
  (Maybe Text
   -> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
      -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DomainName")
            Parser
  (Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
   -> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser
     (Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails)
-> Parser
     (Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser
     (Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"EncryptionAtRestOptions")
            Parser
  (Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser (Maybe AwsOpenSearchServiceDomainVpcOptionsDetails)
-> Parser
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser (Maybe AwsOpenSearchServiceDomainVpcOptionsDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"VpcOptions")
            Parser
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe (HashMap Text Text)
      -> Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Id")
            Parser
  (Maybe (HashMap Text Text)
   -> Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser (Maybe (HashMap Text Text))
-> Parser
     (Maybe Text
      -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DomainEndpoints"
                            Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty
                        )
            Parser
  (Maybe Text
   -> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser (Maybe Text)
-> Parser
     (Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
      -> AwsOpenSearchServiceDomainDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DomainEndpoint")
            Parser
  (Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
   -> AwsOpenSearchServiceDomainDetails)
-> Parser
     (Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails)
-> Parser AwsOpenSearchServiceDomainDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Parser
     (Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DomainEndpointOptions")
      )

instance
  Prelude.Hashable
    AwsOpenSearchServiceDomainDetails

instance
  Prelude.NFData
    AwsOpenSearchServiceDomainDetails

instance
  Core.ToJSON
    AwsOpenSearchServiceDomainDetails
  where
  toJSON :: AwsOpenSearchServiceDomainDetails -> Value
toJSON AwsOpenSearchServiceDomainDetails' {Maybe Text
Maybe (HashMap Text Text)
Maybe AwsOpenSearchServiceDomainClusterConfigDetails
Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
domainEndpointOptions :: Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
domainEndpoint :: Maybe Text
domainEndpoints :: Maybe (HashMap Text Text)
id :: Maybe Text
vpcOptions :: Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
encryptionAtRestOptions :: Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
domainName :: Maybe Text
clusterConfig :: Maybe AwsOpenSearchServiceDomainClusterConfigDetails
logPublishingOptions :: Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
arn :: Maybe Text
serviceSoftwareOptions :: Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
accessPolicies :: Maybe Text
nodeToNodeEncryptionOptions :: Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
engineVersion :: Maybe Text
$sel:domainEndpointOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
$sel:domainEndpoint:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
$sel:domainEndpoints:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe (HashMap Text Text)
$sel:id:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
$sel:vpcOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
$sel:encryptionAtRestOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
$sel:domainName:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
$sel:clusterConfig:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
$sel:logPublishingOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
$sel:arn:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
$sel:serviceSoftwareOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
$sel:accessPolicies:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
$sel:nodeToNodeEncryptionOptions:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails
-> Maybe
     AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
$sel:engineVersion:AwsOpenSearchServiceDomainDetails' :: AwsOpenSearchServiceDomainDetails -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"EngineVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
engineVersion,
            (Text
"NodeToNodeEncryptionOptions" Text
-> AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
-> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
 -> Pair)
-> Maybe
     AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsOpenSearchServiceDomainNodeToNodeEncryptionOptionsDetails
nodeToNodeEncryptionOptions,
            (Text
"AccessPolicies" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
accessPolicies,
            (Text
"ServiceSoftwareOptions" Text
-> AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails -> Pair)
-> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsOpenSearchServiceDomainServiceSoftwareOptionsDetails
serviceSoftwareOptions,
            (Text
"Arn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
arn,
            (Text
"LogPublishingOptions" Text
-> AwsOpenSearchServiceDomainLogPublishingOptionsDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsOpenSearchServiceDomainLogPublishingOptionsDetails -> Pair)
-> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsOpenSearchServiceDomainLogPublishingOptionsDetails
logPublishingOptions,
            (Text
"ClusterConfig" Text -> AwsOpenSearchServiceDomainClusterConfigDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AwsOpenSearchServiceDomainClusterConfigDetails -> Pair)
-> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsOpenSearchServiceDomainClusterConfigDetails
clusterConfig,
            (Text
"DomainName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
domainName,
            (Text
"EncryptionAtRestOptions" Text
-> AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails -> Pair)
-> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsOpenSearchServiceDomainEncryptionAtRestOptionsDetails
encryptionAtRestOptions,
            (Text
"VpcOptions" Text -> AwsOpenSearchServiceDomainVpcOptionsDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (AwsOpenSearchServiceDomainVpcOptionsDetails -> Pair)
-> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsOpenSearchServiceDomainVpcOptionsDetails
vpcOptions,
            (Text
"Id" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
id,
            (Text
"DomainEndpoints" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
domainEndpoints,
            (Text
"DomainEndpoint" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
domainEndpoint,
            (Text
"DomainEndpointOptions" Text
-> AwsOpenSearchServiceDomainDomainEndpointOptionsDetails -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (AwsOpenSearchServiceDomainDomainEndpointOptionsDetails -> Pair)
-> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
-> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AwsOpenSearchServiceDomainDomainEndpointOptionsDetails
domainEndpointOptions
          ]
      )