{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DMS.DescribeEndpointSettings
-- 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)
--
-- Returns information about the possible endpoint settings available when
-- you create an endpoint for a specific database engine.
module Amazonka.DMS.DescribeEndpointSettings
  ( -- * Creating a Request
    DescribeEndpointSettings (..),
    newDescribeEndpointSettings,

    -- * Request Lenses
    describeEndpointSettings_marker,
    describeEndpointSettings_maxRecords,
    describeEndpointSettings_engineName,

    -- * Destructuring the Response
    DescribeEndpointSettingsResponse (..),
    newDescribeEndpointSettingsResponse,

    -- * Response Lenses
    describeEndpointSettingsResponse_endpointSettings,
    describeEndpointSettingsResponse_marker,
    describeEndpointSettingsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DMS.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeEndpointSettings' smart constructor.
data DescribeEndpointSettings = DescribeEndpointSettings'
  { -- | An optional pagination token provided by a previous request. If this
    -- parameter is specified, the response includes only records beyond the
    -- marker, up to the value specified by @MaxRecords@.
    DescribeEndpointSettings -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of records to include in the response. If more
    -- records exist than the specified @MaxRecords@ value, a pagination token
    -- called a marker is included in the response so that the remaining
    -- results can be retrieved.
    DescribeEndpointSettings -> Maybe Int
maxRecords :: Prelude.Maybe Prelude.Int,
    -- | The databse engine used for your source or target endpoint.
    DescribeEndpointSettings -> Text
engineName :: Prelude.Text
  }
  deriving (DescribeEndpointSettings -> DescribeEndpointSettings -> Bool
(DescribeEndpointSettings -> DescribeEndpointSettings -> Bool)
-> (DescribeEndpointSettings -> DescribeEndpointSettings -> Bool)
-> Eq DescribeEndpointSettings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEndpointSettings -> DescribeEndpointSettings -> Bool
$c/= :: DescribeEndpointSettings -> DescribeEndpointSettings -> Bool
== :: DescribeEndpointSettings -> DescribeEndpointSettings -> Bool
$c== :: DescribeEndpointSettings -> DescribeEndpointSettings -> Bool
Prelude.Eq, ReadPrec [DescribeEndpointSettings]
ReadPrec DescribeEndpointSettings
Int -> ReadS DescribeEndpointSettings
ReadS [DescribeEndpointSettings]
(Int -> ReadS DescribeEndpointSettings)
-> ReadS [DescribeEndpointSettings]
-> ReadPrec DescribeEndpointSettings
-> ReadPrec [DescribeEndpointSettings]
-> Read DescribeEndpointSettings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEndpointSettings]
$creadListPrec :: ReadPrec [DescribeEndpointSettings]
readPrec :: ReadPrec DescribeEndpointSettings
$creadPrec :: ReadPrec DescribeEndpointSettings
readList :: ReadS [DescribeEndpointSettings]
$creadList :: ReadS [DescribeEndpointSettings]
readsPrec :: Int -> ReadS DescribeEndpointSettings
$creadsPrec :: Int -> ReadS DescribeEndpointSettings
Prelude.Read, Int -> DescribeEndpointSettings -> ShowS
[DescribeEndpointSettings] -> ShowS
DescribeEndpointSettings -> String
(Int -> DescribeEndpointSettings -> ShowS)
-> (DescribeEndpointSettings -> String)
-> ([DescribeEndpointSettings] -> ShowS)
-> Show DescribeEndpointSettings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEndpointSettings] -> ShowS
$cshowList :: [DescribeEndpointSettings] -> ShowS
show :: DescribeEndpointSettings -> String
$cshow :: DescribeEndpointSettings -> String
showsPrec :: Int -> DescribeEndpointSettings -> ShowS
$cshowsPrec :: Int -> DescribeEndpointSettings -> ShowS
Prelude.Show, (forall x.
 DescribeEndpointSettings -> Rep DescribeEndpointSettings x)
-> (forall x.
    Rep DescribeEndpointSettings x -> DescribeEndpointSettings)
-> Generic DescribeEndpointSettings
forall x.
Rep DescribeEndpointSettings x -> DescribeEndpointSettings
forall x.
DescribeEndpointSettings -> Rep DescribeEndpointSettings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEndpointSettings x -> DescribeEndpointSettings
$cfrom :: forall x.
DescribeEndpointSettings -> Rep DescribeEndpointSettings x
Prelude.Generic)

-- |
-- Create a value of 'DescribeEndpointSettings' 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:
--
-- 'marker', 'describeEndpointSettings_marker' - An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
--
-- 'maxRecords', 'describeEndpointSettings_maxRecords' - The maximum number of records to include in the response. If more
-- records exist than the specified @MaxRecords@ value, a pagination token
-- called a marker is included in the response so that the remaining
-- results can be retrieved.
--
-- 'engineName', 'describeEndpointSettings_engineName' - The databse engine used for your source or target endpoint.
newDescribeEndpointSettings ::
  -- | 'engineName'
  Prelude.Text ->
  DescribeEndpointSettings
newDescribeEndpointSettings :: Text -> DescribeEndpointSettings
newDescribeEndpointSettings Text
pEngineName_ =
  DescribeEndpointSettings' :: Maybe Text -> Maybe Int -> Text -> DescribeEndpointSettings
DescribeEndpointSettings'
    { $sel:marker:DescribeEndpointSettings' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxRecords:DescribeEndpointSettings' :: Maybe Int
maxRecords = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:engineName:DescribeEndpointSettings' :: Text
engineName = Text
pEngineName_
    }

-- | An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
describeEndpointSettings_marker :: Lens.Lens' DescribeEndpointSettings (Prelude.Maybe Prelude.Text)
describeEndpointSettings_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeEndpointSettings -> f DescribeEndpointSettings
describeEndpointSettings_marker = (DescribeEndpointSettings -> Maybe Text)
-> (DescribeEndpointSettings
    -> Maybe Text -> DescribeEndpointSettings)
-> Lens
     DescribeEndpointSettings
     DescribeEndpointSettings
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointSettings' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeEndpointSettings' :: DescribeEndpointSettings -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeEndpointSettings
s@DescribeEndpointSettings' {} Maybe Text
a -> DescribeEndpointSettings
s {$sel:marker:DescribeEndpointSettings' :: Maybe Text
marker = Maybe Text
a} :: DescribeEndpointSettings)

-- | The maximum number of records to include in the response. If more
-- records exist than the specified @MaxRecords@ value, a pagination token
-- called a marker is included in the response so that the remaining
-- results can be retrieved.
describeEndpointSettings_maxRecords :: Lens.Lens' DescribeEndpointSettings (Prelude.Maybe Prelude.Int)
describeEndpointSettings_maxRecords :: (Maybe Int -> f (Maybe Int))
-> DescribeEndpointSettings -> f DescribeEndpointSettings
describeEndpointSettings_maxRecords = (DescribeEndpointSettings -> Maybe Int)
-> (DescribeEndpointSettings
    -> Maybe Int -> DescribeEndpointSettings)
-> Lens
     DescribeEndpointSettings
     DescribeEndpointSettings
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointSettings' {Maybe Int
maxRecords :: Maybe Int
$sel:maxRecords:DescribeEndpointSettings' :: DescribeEndpointSettings -> Maybe Int
maxRecords} -> Maybe Int
maxRecords) (\s :: DescribeEndpointSettings
s@DescribeEndpointSettings' {} Maybe Int
a -> DescribeEndpointSettings
s {$sel:maxRecords:DescribeEndpointSettings' :: Maybe Int
maxRecords = Maybe Int
a} :: DescribeEndpointSettings)

-- | The databse engine used for your source or target endpoint.
describeEndpointSettings_engineName :: Lens.Lens' DescribeEndpointSettings Prelude.Text
describeEndpointSettings_engineName :: (Text -> f Text)
-> DescribeEndpointSettings -> f DescribeEndpointSettings
describeEndpointSettings_engineName = (DescribeEndpointSettings -> Text)
-> (DescribeEndpointSettings -> Text -> DescribeEndpointSettings)
-> Lens DescribeEndpointSettings DescribeEndpointSettings Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointSettings' {Text
engineName :: Text
$sel:engineName:DescribeEndpointSettings' :: DescribeEndpointSettings -> Text
engineName} -> Text
engineName) (\s :: DescribeEndpointSettings
s@DescribeEndpointSettings' {} Text
a -> DescribeEndpointSettings
s {$sel:engineName:DescribeEndpointSettings' :: Text
engineName = Text
a} :: DescribeEndpointSettings)

instance Core.AWSRequest DescribeEndpointSettings where
  type
    AWSResponse DescribeEndpointSettings =
      DescribeEndpointSettingsResponse
  request :: DescribeEndpointSettings -> Request DescribeEndpointSettings
request = Service
-> DescribeEndpointSettings -> Request DescribeEndpointSettings
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeEndpointSettings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeEndpointSettings)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeEndpointSettings))
-> Logger
-> Service
-> Proxy DescribeEndpointSettings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeEndpointSettings)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [EndpointSetting]
-> Maybe Text -> Int -> DescribeEndpointSettingsResponse
DescribeEndpointSettingsResponse'
            (Maybe [EndpointSetting]
 -> Maybe Text -> Int -> DescribeEndpointSettingsResponse)
-> Either String (Maybe [EndpointSetting])
-> Either
     String (Maybe Text -> Int -> DescribeEndpointSettingsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object -> Text -> Either String (Maybe (Maybe [EndpointSetting]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EndpointSettings"
                            Either String (Maybe (Maybe [EndpointSetting]))
-> Maybe [EndpointSetting]
-> Either String (Maybe [EndpointSetting])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [EndpointSetting]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String (Maybe Text -> Int -> DescribeEndpointSettingsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeEndpointSettingsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Marker")
            Either String (Int -> DescribeEndpointSettingsResponse)
-> Either String Int
-> Either String DescribeEndpointSettingsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeEndpointSettings

instance Prelude.NFData DescribeEndpointSettings

instance Core.ToHeaders DescribeEndpointSettings where
  toHeaders :: DescribeEndpointSettings -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeEndpointSettings -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonDMSv20160101.DescribeEndpointSettings" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON DescribeEndpointSettings where
  toJSON :: DescribeEndpointSettings -> Value
toJSON DescribeEndpointSettings' {Maybe Int
Maybe Text
Text
engineName :: Text
maxRecords :: Maybe Int
marker :: Maybe Text
$sel:engineName:DescribeEndpointSettings' :: DescribeEndpointSettings -> Text
$sel:maxRecords:DescribeEndpointSettings' :: DescribeEndpointSettings -> Maybe Int
$sel:marker:DescribeEndpointSettings' :: DescribeEndpointSettings -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"Marker" 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
marker,
            (Text
"MaxRecords" Text -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxRecords,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"EngineName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
engineName)
          ]
      )

instance Core.ToPath DescribeEndpointSettings where
  toPath :: DescribeEndpointSettings -> ByteString
toPath = ByteString -> DescribeEndpointSettings -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery DescribeEndpointSettings where
  toQuery :: DescribeEndpointSettings -> QueryString
toQuery = QueryString -> DescribeEndpointSettings -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeEndpointSettingsResponse' smart constructor.
data DescribeEndpointSettingsResponse = DescribeEndpointSettingsResponse'
  { -- | Descriptions of the endpoint settings available for your source or
    -- target database engine.
    DescribeEndpointSettingsResponse -> Maybe [EndpointSetting]
endpointSettings :: Prelude.Maybe [EndpointSetting],
    -- | An optional pagination token provided by a previous request. If this
    -- parameter is specified, the response includes only records beyond the
    -- marker, up to the value specified by @MaxRecords@.
    DescribeEndpointSettingsResponse -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeEndpointSettingsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeEndpointSettingsResponse
-> DescribeEndpointSettingsResponse -> Bool
(DescribeEndpointSettingsResponse
 -> DescribeEndpointSettingsResponse -> Bool)
-> (DescribeEndpointSettingsResponse
    -> DescribeEndpointSettingsResponse -> Bool)
-> Eq DescribeEndpointSettingsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEndpointSettingsResponse
-> DescribeEndpointSettingsResponse -> Bool
$c/= :: DescribeEndpointSettingsResponse
-> DescribeEndpointSettingsResponse -> Bool
== :: DescribeEndpointSettingsResponse
-> DescribeEndpointSettingsResponse -> Bool
$c== :: DescribeEndpointSettingsResponse
-> DescribeEndpointSettingsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeEndpointSettingsResponse]
ReadPrec DescribeEndpointSettingsResponse
Int -> ReadS DescribeEndpointSettingsResponse
ReadS [DescribeEndpointSettingsResponse]
(Int -> ReadS DescribeEndpointSettingsResponse)
-> ReadS [DescribeEndpointSettingsResponse]
-> ReadPrec DescribeEndpointSettingsResponse
-> ReadPrec [DescribeEndpointSettingsResponse]
-> Read DescribeEndpointSettingsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEndpointSettingsResponse]
$creadListPrec :: ReadPrec [DescribeEndpointSettingsResponse]
readPrec :: ReadPrec DescribeEndpointSettingsResponse
$creadPrec :: ReadPrec DescribeEndpointSettingsResponse
readList :: ReadS [DescribeEndpointSettingsResponse]
$creadList :: ReadS [DescribeEndpointSettingsResponse]
readsPrec :: Int -> ReadS DescribeEndpointSettingsResponse
$creadsPrec :: Int -> ReadS DescribeEndpointSettingsResponse
Prelude.Read, Int -> DescribeEndpointSettingsResponse -> ShowS
[DescribeEndpointSettingsResponse] -> ShowS
DescribeEndpointSettingsResponse -> String
(Int -> DescribeEndpointSettingsResponse -> ShowS)
-> (DescribeEndpointSettingsResponse -> String)
-> ([DescribeEndpointSettingsResponse] -> ShowS)
-> Show DescribeEndpointSettingsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEndpointSettingsResponse] -> ShowS
$cshowList :: [DescribeEndpointSettingsResponse] -> ShowS
show :: DescribeEndpointSettingsResponse -> String
$cshow :: DescribeEndpointSettingsResponse -> String
showsPrec :: Int -> DescribeEndpointSettingsResponse -> ShowS
$cshowsPrec :: Int -> DescribeEndpointSettingsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeEndpointSettingsResponse
 -> Rep DescribeEndpointSettingsResponse x)
-> (forall x.
    Rep DescribeEndpointSettingsResponse x
    -> DescribeEndpointSettingsResponse)
-> Generic DescribeEndpointSettingsResponse
forall x.
Rep DescribeEndpointSettingsResponse x
-> DescribeEndpointSettingsResponse
forall x.
DescribeEndpointSettingsResponse
-> Rep DescribeEndpointSettingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEndpointSettingsResponse x
-> DescribeEndpointSettingsResponse
$cfrom :: forall x.
DescribeEndpointSettingsResponse
-> Rep DescribeEndpointSettingsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeEndpointSettingsResponse' 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:
--
-- 'endpointSettings', 'describeEndpointSettingsResponse_endpointSettings' - Descriptions of the endpoint settings available for your source or
-- target database engine.
--
-- 'marker', 'describeEndpointSettingsResponse_marker' - An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
--
-- 'httpStatus', 'describeEndpointSettingsResponse_httpStatus' - The response's http status code.
newDescribeEndpointSettingsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeEndpointSettingsResponse
newDescribeEndpointSettingsResponse :: Int -> DescribeEndpointSettingsResponse
newDescribeEndpointSettingsResponse Int
pHttpStatus_ =
  DescribeEndpointSettingsResponse' :: Maybe [EndpointSetting]
-> Maybe Text -> Int -> DescribeEndpointSettingsResponse
DescribeEndpointSettingsResponse'
    { $sel:endpointSettings:DescribeEndpointSettingsResponse' :: Maybe [EndpointSetting]
endpointSettings =
        Maybe [EndpointSetting]
forall a. Maybe a
Prelude.Nothing,
      $sel:marker:DescribeEndpointSettingsResponse' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeEndpointSettingsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Descriptions of the endpoint settings available for your source or
-- target database engine.
describeEndpointSettingsResponse_endpointSettings :: Lens.Lens' DescribeEndpointSettingsResponse (Prelude.Maybe [EndpointSetting])
describeEndpointSettingsResponse_endpointSettings :: (Maybe [EndpointSetting] -> f (Maybe [EndpointSetting]))
-> DescribeEndpointSettingsResponse
-> f DescribeEndpointSettingsResponse
describeEndpointSettingsResponse_endpointSettings = (DescribeEndpointSettingsResponse -> Maybe [EndpointSetting])
-> (DescribeEndpointSettingsResponse
    -> Maybe [EndpointSetting] -> DescribeEndpointSettingsResponse)
-> Lens
     DescribeEndpointSettingsResponse
     DescribeEndpointSettingsResponse
     (Maybe [EndpointSetting])
     (Maybe [EndpointSetting])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointSettingsResponse' {Maybe [EndpointSetting]
endpointSettings :: Maybe [EndpointSetting]
$sel:endpointSettings:DescribeEndpointSettingsResponse' :: DescribeEndpointSettingsResponse -> Maybe [EndpointSetting]
endpointSettings} -> Maybe [EndpointSetting]
endpointSettings) (\s :: DescribeEndpointSettingsResponse
s@DescribeEndpointSettingsResponse' {} Maybe [EndpointSetting]
a -> DescribeEndpointSettingsResponse
s {$sel:endpointSettings:DescribeEndpointSettingsResponse' :: Maybe [EndpointSetting]
endpointSettings = Maybe [EndpointSetting]
a} :: DescribeEndpointSettingsResponse) ((Maybe [EndpointSetting] -> f (Maybe [EndpointSetting]))
 -> DescribeEndpointSettingsResponse
 -> f DescribeEndpointSettingsResponse)
-> ((Maybe [EndpointSetting] -> f (Maybe [EndpointSetting]))
    -> Maybe [EndpointSetting] -> f (Maybe [EndpointSetting]))
-> (Maybe [EndpointSetting] -> f (Maybe [EndpointSetting]))
-> DescribeEndpointSettingsResponse
-> f DescribeEndpointSettingsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [EndpointSetting]
  [EndpointSetting]
  [EndpointSetting]
  [EndpointSetting]
-> Iso
     (Maybe [EndpointSetting])
     (Maybe [EndpointSetting])
     (Maybe [EndpointSetting])
     (Maybe [EndpointSetting])
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
  [EndpointSetting]
  [EndpointSetting]
  [EndpointSetting]
  [EndpointSetting]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An optional pagination token provided by a previous request. If this
-- parameter is specified, the response includes only records beyond the
-- marker, up to the value specified by @MaxRecords@.
describeEndpointSettingsResponse_marker :: Lens.Lens' DescribeEndpointSettingsResponse (Prelude.Maybe Prelude.Text)
describeEndpointSettingsResponse_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeEndpointSettingsResponse
-> f DescribeEndpointSettingsResponse
describeEndpointSettingsResponse_marker = (DescribeEndpointSettingsResponse -> Maybe Text)
-> (DescribeEndpointSettingsResponse
    -> Maybe Text -> DescribeEndpointSettingsResponse)
-> Lens
     DescribeEndpointSettingsResponse
     DescribeEndpointSettingsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointSettingsResponse' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeEndpointSettingsResponse' :: DescribeEndpointSettingsResponse -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeEndpointSettingsResponse
s@DescribeEndpointSettingsResponse' {} Maybe Text
a -> DescribeEndpointSettingsResponse
s {$sel:marker:DescribeEndpointSettingsResponse' :: Maybe Text
marker = Maybe Text
a} :: DescribeEndpointSettingsResponse)

-- | The response's http status code.
describeEndpointSettingsResponse_httpStatus :: Lens.Lens' DescribeEndpointSettingsResponse Prelude.Int
describeEndpointSettingsResponse_httpStatus :: (Int -> f Int)
-> DescribeEndpointSettingsResponse
-> f DescribeEndpointSettingsResponse
describeEndpointSettingsResponse_httpStatus = (DescribeEndpointSettingsResponse -> Int)
-> (DescribeEndpointSettingsResponse
    -> Int -> DescribeEndpointSettingsResponse)
-> Lens
     DescribeEndpointSettingsResponse
     DescribeEndpointSettingsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointSettingsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeEndpointSettingsResponse' :: DescribeEndpointSettingsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeEndpointSettingsResponse
s@DescribeEndpointSettingsResponse' {} Int
a -> DescribeEndpointSettingsResponse
s {$sel:httpStatus:DescribeEndpointSettingsResponse' :: Int
httpStatus = Int
a} :: DescribeEndpointSettingsResponse)

instance
  Prelude.NFData
    DescribeEndpointSettingsResponse