{-# 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.AppFlow.DescribeConnectors
-- 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)
--
-- Describes the connectors vended by Amazon AppFlow for specified
-- connector types. If you don\'t specify a connector type, this operation
-- describes all connectors vended by Amazon AppFlow. If there are more
-- connectors than can be returned in one page, the response contains a
-- @nextToken@ object, which can be be passed in to the next call to the
-- @DescribeConnectors@ API operation to retrieve the next page.
module Amazonka.AppFlow.DescribeConnectors
  ( -- * Creating a Request
    DescribeConnectors (..),
    newDescribeConnectors,

    -- * Request Lenses
    describeConnectors_nextToken,
    describeConnectors_connectorTypes,

    -- * Destructuring the Response
    DescribeConnectorsResponse (..),
    newDescribeConnectorsResponse,

    -- * Response Lenses
    describeConnectorsResponse_connectorConfigurations,
    describeConnectorsResponse_nextToken,
    describeConnectorsResponse_httpStatus,
  )
where

import Amazonka.AppFlow.Types
import qualified Amazonka.Core as Core
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:/ 'newDescribeConnectors' smart constructor.
data DescribeConnectors = DescribeConnectors'
  { -- | The pagination token for the next page of data.
    DescribeConnectors -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The type of connector, such as Salesforce, Amplitude, and so on.
    DescribeConnectors -> Maybe [ConnectorType]
connectorTypes :: Prelude.Maybe [ConnectorType]
  }
  deriving (DescribeConnectors -> DescribeConnectors -> Bool
(DescribeConnectors -> DescribeConnectors -> Bool)
-> (DescribeConnectors -> DescribeConnectors -> Bool)
-> Eq DescribeConnectors
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConnectors -> DescribeConnectors -> Bool
$c/= :: DescribeConnectors -> DescribeConnectors -> Bool
== :: DescribeConnectors -> DescribeConnectors -> Bool
$c== :: DescribeConnectors -> DescribeConnectors -> Bool
Prelude.Eq, ReadPrec [DescribeConnectors]
ReadPrec DescribeConnectors
Int -> ReadS DescribeConnectors
ReadS [DescribeConnectors]
(Int -> ReadS DescribeConnectors)
-> ReadS [DescribeConnectors]
-> ReadPrec DescribeConnectors
-> ReadPrec [DescribeConnectors]
-> Read DescribeConnectors
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConnectors]
$creadListPrec :: ReadPrec [DescribeConnectors]
readPrec :: ReadPrec DescribeConnectors
$creadPrec :: ReadPrec DescribeConnectors
readList :: ReadS [DescribeConnectors]
$creadList :: ReadS [DescribeConnectors]
readsPrec :: Int -> ReadS DescribeConnectors
$creadsPrec :: Int -> ReadS DescribeConnectors
Prelude.Read, Int -> DescribeConnectors -> ShowS
[DescribeConnectors] -> ShowS
DescribeConnectors -> String
(Int -> DescribeConnectors -> ShowS)
-> (DescribeConnectors -> String)
-> ([DescribeConnectors] -> ShowS)
-> Show DescribeConnectors
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConnectors] -> ShowS
$cshowList :: [DescribeConnectors] -> ShowS
show :: DescribeConnectors -> String
$cshow :: DescribeConnectors -> String
showsPrec :: Int -> DescribeConnectors -> ShowS
$cshowsPrec :: Int -> DescribeConnectors -> ShowS
Prelude.Show, (forall x. DescribeConnectors -> Rep DescribeConnectors x)
-> (forall x. Rep DescribeConnectors x -> DescribeConnectors)
-> Generic DescribeConnectors
forall x. Rep DescribeConnectors x -> DescribeConnectors
forall x. DescribeConnectors -> Rep DescribeConnectors x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeConnectors x -> DescribeConnectors
$cfrom :: forall x. DescribeConnectors -> Rep DescribeConnectors x
Prelude.Generic)

-- |
-- Create a value of 'DescribeConnectors' 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:
--
-- 'nextToken', 'describeConnectors_nextToken' - The pagination token for the next page of data.
--
-- 'connectorTypes', 'describeConnectors_connectorTypes' - The type of connector, such as Salesforce, Amplitude, and so on.
newDescribeConnectors ::
  DescribeConnectors
newDescribeConnectors :: DescribeConnectors
newDescribeConnectors =
  DescribeConnectors' :: Maybe Text -> Maybe [ConnectorType] -> DescribeConnectors
DescribeConnectors'
    { $sel:nextToken:DescribeConnectors' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:connectorTypes:DescribeConnectors' :: Maybe [ConnectorType]
connectorTypes = Maybe [ConnectorType]
forall a. Maybe a
Prelude.Nothing
    }

-- | The pagination token for the next page of data.
describeConnectors_nextToken :: Lens.Lens' DescribeConnectors (Prelude.Maybe Prelude.Text)
describeConnectors_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeConnectors -> f DescribeConnectors
describeConnectors_nextToken = (DescribeConnectors -> Maybe Text)
-> (DescribeConnectors -> Maybe Text -> DescribeConnectors)
-> Lens
     DescribeConnectors DescribeConnectors (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConnectors' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeConnectors' :: DescribeConnectors -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeConnectors
s@DescribeConnectors' {} Maybe Text
a -> DescribeConnectors
s {$sel:nextToken:DescribeConnectors' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeConnectors)

-- | The type of connector, such as Salesforce, Amplitude, and so on.
describeConnectors_connectorTypes :: Lens.Lens' DescribeConnectors (Prelude.Maybe [ConnectorType])
describeConnectors_connectorTypes :: (Maybe [ConnectorType] -> f (Maybe [ConnectorType]))
-> DescribeConnectors -> f DescribeConnectors
describeConnectors_connectorTypes = (DescribeConnectors -> Maybe [ConnectorType])
-> (DescribeConnectors
    -> Maybe [ConnectorType] -> DescribeConnectors)
-> Lens
     DescribeConnectors
     DescribeConnectors
     (Maybe [ConnectorType])
     (Maybe [ConnectorType])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConnectors' {Maybe [ConnectorType]
connectorTypes :: Maybe [ConnectorType]
$sel:connectorTypes:DescribeConnectors' :: DescribeConnectors -> Maybe [ConnectorType]
connectorTypes} -> Maybe [ConnectorType]
connectorTypes) (\s :: DescribeConnectors
s@DescribeConnectors' {} Maybe [ConnectorType]
a -> DescribeConnectors
s {$sel:connectorTypes:DescribeConnectors' :: Maybe [ConnectorType]
connectorTypes = Maybe [ConnectorType]
a} :: DescribeConnectors) ((Maybe [ConnectorType] -> f (Maybe [ConnectorType]))
 -> DescribeConnectors -> f DescribeConnectors)
-> ((Maybe [ConnectorType] -> f (Maybe [ConnectorType]))
    -> Maybe [ConnectorType] -> f (Maybe [ConnectorType]))
-> (Maybe [ConnectorType] -> f (Maybe [ConnectorType]))
-> DescribeConnectors
-> f DescribeConnectors
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ConnectorType] [ConnectorType] [ConnectorType] [ConnectorType]
-> Iso
     (Maybe [ConnectorType])
     (Maybe [ConnectorType])
     (Maybe [ConnectorType])
     (Maybe [ConnectorType])
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
  [ConnectorType] [ConnectorType] [ConnectorType] [ConnectorType]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest DescribeConnectors where
  type
    AWSResponse DescribeConnectors =
      DescribeConnectorsResponse
  request :: DescribeConnectors -> Request DescribeConnectors
request = Service -> DescribeConnectors -> Request DescribeConnectors
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeConnectors
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeConnectors)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeConnectors))
-> Logger
-> Service
-> Proxy DescribeConnectors
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeConnectors)))
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 (HashMap ConnectorType ConnectorConfiguration)
-> Maybe Text -> Int -> DescribeConnectorsResponse
DescribeConnectorsResponse'
            (Maybe (HashMap ConnectorType ConnectorConfiguration)
 -> Maybe Text -> Int -> DescribeConnectorsResponse)
-> Either
     String (Maybe (HashMap ConnectorType ConnectorConfiguration))
-> Either String (Maybe Text -> Int -> DescribeConnectorsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either
     String
     (Maybe (Maybe (HashMap ConnectorType ConnectorConfiguration)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"connectorConfigurations"
                            Either
  String
  (Maybe (Maybe (HashMap ConnectorType ConnectorConfiguration)))
-> Maybe (HashMap ConnectorType ConnectorConfiguration)
-> Either
     String (Maybe (HashMap ConnectorType ConnectorConfiguration))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap ConnectorType ConnectorConfiguration)
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Maybe Text -> Int -> DescribeConnectorsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeConnectorsResponse)
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
"nextToken")
            Either String (Int -> DescribeConnectorsResponse)
-> Either String Int -> Either String DescribeConnectorsResponse
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 DescribeConnectors

instance Prelude.NFData DescribeConnectors

instance Core.ToHeaders DescribeConnectors where
  toHeaders :: DescribeConnectors -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeConnectors -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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 DescribeConnectors where
  toJSON :: DescribeConnectors -> Value
toJSON DescribeConnectors' {Maybe [ConnectorType]
Maybe Text
connectorTypes :: Maybe [ConnectorType]
nextToken :: Maybe Text
$sel:connectorTypes:DescribeConnectors' :: DescribeConnectors -> Maybe [ConnectorType]
$sel:nextToken:DescribeConnectors' :: DescribeConnectors -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"nextToken" 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
nextToken,
            (Text
"connectorTypes" Text -> [ConnectorType] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              ([ConnectorType] -> Pair) -> Maybe [ConnectorType] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConnectorType]
connectorTypes
          ]
      )

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

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

-- | /See:/ 'newDescribeConnectorsResponse' smart constructor.
data DescribeConnectorsResponse = DescribeConnectorsResponse'
  { -- | The configuration that is applied to the connectors used in the flow.
    DescribeConnectorsResponse
-> Maybe (HashMap ConnectorType ConnectorConfiguration)
connectorConfigurations :: Prelude.Maybe (Prelude.HashMap ConnectorType ConnectorConfiguration),
    -- | The pagination token for the next page of data.
    DescribeConnectorsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeConnectorsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeConnectorsResponse -> DescribeConnectorsResponse -> Bool
(DescribeConnectorsResponse -> DescribeConnectorsResponse -> Bool)
-> (DescribeConnectorsResponse
    -> DescribeConnectorsResponse -> Bool)
-> Eq DescribeConnectorsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConnectorsResponse -> DescribeConnectorsResponse -> Bool
$c/= :: DescribeConnectorsResponse -> DescribeConnectorsResponse -> Bool
== :: DescribeConnectorsResponse -> DescribeConnectorsResponse -> Bool
$c== :: DescribeConnectorsResponse -> DescribeConnectorsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeConnectorsResponse]
ReadPrec DescribeConnectorsResponse
Int -> ReadS DescribeConnectorsResponse
ReadS [DescribeConnectorsResponse]
(Int -> ReadS DescribeConnectorsResponse)
-> ReadS [DescribeConnectorsResponse]
-> ReadPrec DescribeConnectorsResponse
-> ReadPrec [DescribeConnectorsResponse]
-> Read DescribeConnectorsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConnectorsResponse]
$creadListPrec :: ReadPrec [DescribeConnectorsResponse]
readPrec :: ReadPrec DescribeConnectorsResponse
$creadPrec :: ReadPrec DescribeConnectorsResponse
readList :: ReadS [DescribeConnectorsResponse]
$creadList :: ReadS [DescribeConnectorsResponse]
readsPrec :: Int -> ReadS DescribeConnectorsResponse
$creadsPrec :: Int -> ReadS DescribeConnectorsResponse
Prelude.Read, Int -> DescribeConnectorsResponse -> ShowS
[DescribeConnectorsResponse] -> ShowS
DescribeConnectorsResponse -> String
(Int -> DescribeConnectorsResponse -> ShowS)
-> (DescribeConnectorsResponse -> String)
-> ([DescribeConnectorsResponse] -> ShowS)
-> Show DescribeConnectorsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConnectorsResponse] -> ShowS
$cshowList :: [DescribeConnectorsResponse] -> ShowS
show :: DescribeConnectorsResponse -> String
$cshow :: DescribeConnectorsResponse -> String
showsPrec :: Int -> DescribeConnectorsResponse -> ShowS
$cshowsPrec :: Int -> DescribeConnectorsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeConnectorsResponse -> Rep DescribeConnectorsResponse x)
-> (forall x.
    Rep DescribeConnectorsResponse x -> DescribeConnectorsResponse)
-> Generic DescribeConnectorsResponse
forall x.
Rep DescribeConnectorsResponse x -> DescribeConnectorsResponse
forall x.
DescribeConnectorsResponse -> Rep DescribeConnectorsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConnectorsResponse x -> DescribeConnectorsResponse
$cfrom :: forall x.
DescribeConnectorsResponse -> Rep DescribeConnectorsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeConnectorsResponse' 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:
--
-- 'connectorConfigurations', 'describeConnectorsResponse_connectorConfigurations' - The configuration that is applied to the connectors used in the flow.
--
-- 'nextToken', 'describeConnectorsResponse_nextToken' - The pagination token for the next page of data.
--
-- 'httpStatus', 'describeConnectorsResponse_httpStatus' - The response's http status code.
newDescribeConnectorsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeConnectorsResponse
newDescribeConnectorsResponse :: Int -> DescribeConnectorsResponse
newDescribeConnectorsResponse Int
pHttpStatus_ =
  DescribeConnectorsResponse' :: Maybe (HashMap ConnectorType ConnectorConfiguration)
-> Maybe Text -> Int -> DescribeConnectorsResponse
DescribeConnectorsResponse'
    { $sel:connectorConfigurations:DescribeConnectorsResponse' :: Maybe (HashMap ConnectorType ConnectorConfiguration)
connectorConfigurations =
        Maybe (HashMap ConnectorType ConnectorConfiguration)
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:DescribeConnectorsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeConnectorsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The configuration that is applied to the connectors used in the flow.
describeConnectorsResponse_connectorConfigurations :: Lens.Lens' DescribeConnectorsResponse (Prelude.Maybe (Prelude.HashMap ConnectorType ConnectorConfiguration))
describeConnectorsResponse_connectorConfigurations :: (Maybe (HashMap ConnectorType ConnectorConfiguration)
 -> f (Maybe (HashMap ConnectorType ConnectorConfiguration)))
-> DescribeConnectorsResponse -> f DescribeConnectorsResponse
describeConnectorsResponse_connectorConfigurations = (DescribeConnectorsResponse
 -> Maybe (HashMap ConnectorType ConnectorConfiguration))
-> (DescribeConnectorsResponse
    -> Maybe (HashMap ConnectorType ConnectorConfiguration)
    -> DescribeConnectorsResponse)
-> Lens
     DescribeConnectorsResponse
     DescribeConnectorsResponse
     (Maybe (HashMap ConnectorType ConnectorConfiguration))
     (Maybe (HashMap ConnectorType ConnectorConfiguration))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConnectorsResponse' {Maybe (HashMap ConnectorType ConnectorConfiguration)
connectorConfigurations :: Maybe (HashMap ConnectorType ConnectorConfiguration)
$sel:connectorConfigurations:DescribeConnectorsResponse' :: DescribeConnectorsResponse
-> Maybe (HashMap ConnectorType ConnectorConfiguration)
connectorConfigurations} -> Maybe (HashMap ConnectorType ConnectorConfiguration)
connectorConfigurations) (\s :: DescribeConnectorsResponse
s@DescribeConnectorsResponse' {} Maybe (HashMap ConnectorType ConnectorConfiguration)
a -> DescribeConnectorsResponse
s {$sel:connectorConfigurations:DescribeConnectorsResponse' :: Maybe (HashMap ConnectorType ConnectorConfiguration)
connectorConfigurations = Maybe (HashMap ConnectorType ConnectorConfiguration)
a} :: DescribeConnectorsResponse) ((Maybe (HashMap ConnectorType ConnectorConfiguration)
  -> f (Maybe (HashMap ConnectorType ConnectorConfiguration)))
 -> DescribeConnectorsResponse -> f DescribeConnectorsResponse)
-> ((Maybe (HashMap ConnectorType ConnectorConfiguration)
     -> f (Maybe (HashMap ConnectorType ConnectorConfiguration)))
    -> Maybe (HashMap ConnectorType ConnectorConfiguration)
    -> f (Maybe (HashMap ConnectorType ConnectorConfiguration)))
-> (Maybe (HashMap ConnectorType ConnectorConfiguration)
    -> f (Maybe (HashMap ConnectorType ConnectorConfiguration)))
-> DescribeConnectorsResponse
-> f DescribeConnectorsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap ConnectorType ConnectorConfiguration)
  (HashMap ConnectorType ConnectorConfiguration)
  (HashMap ConnectorType ConnectorConfiguration)
  (HashMap ConnectorType ConnectorConfiguration)
-> Iso
     (Maybe (HashMap ConnectorType ConnectorConfiguration))
     (Maybe (HashMap ConnectorType ConnectorConfiguration))
     (Maybe (HashMap ConnectorType ConnectorConfiguration))
     (Maybe (HashMap ConnectorType ConnectorConfiguration))
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 ConnectorType ConnectorConfiguration)
  (HashMap ConnectorType ConnectorConfiguration)
  (HashMap ConnectorType ConnectorConfiguration)
  (HashMap ConnectorType ConnectorConfiguration)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The pagination token for the next page of data.
describeConnectorsResponse_nextToken :: Lens.Lens' DescribeConnectorsResponse (Prelude.Maybe Prelude.Text)
describeConnectorsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeConnectorsResponse -> f DescribeConnectorsResponse
describeConnectorsResponse_nextToken = (DescribeConnectorsResponse -> Maybe Text)
-> (DescribeConnectorsResponse
    -> Maybe Text -> DescribeConnectorsResponse)
-> Lens
     DescribeConnectorsResponse
     DescribeConnectorsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConnectorsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeConnectorsResponse' :: DescribeConnectorsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeConnectorsResponse
s@DescribeConnectorsResponse' {} Maybe Text
a -> DescribeConnectorsResponse
s {$sel:nextToken:DescribeConnectorsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeConnectorsResponse)

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

instance Prelude.NFData DescribeConnectorsResponse