{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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_connectorTypes,
    describeConnectors_maxResults,
    describeConnectors_nextToken,

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

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

import Amazonka.AppFlow.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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 type of connector, such as Salesforce, Amplitude, and so on.
    DescribeConnectors -> Maybe [ConnectorType]
connectorTypes :: Prelude.Maybe [ConnectorType],
    -- | The maximum number of items that should be returned in the result set.
    -- The default is 20.
    DescribeConnectors -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The pagination token for the next page of data.
    DescribeConnectors -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (DescribeConnectors -> DescribeConnectors -> Bool
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]
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
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. 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:
--
-- 'connectorTypes', 'describeConnectors_connectorTypes' - The type of connector, such as Salesforce, Amplitude, and so on.
--
-- 'maxResults', 'describeConnectors_maxResults' - The maximum number of items that should be returned in the result set.
-- The default is 20.
--
-- 'nextToken', 'describeConnectors_nextToken' - The pagination token for the next page of data.
newDescribeConnectors ::
  DescribeConnectors
newDescribeConnectors :: DescribeConnectors
newDescribeConnectors =
  DescribeConnectors'
    { $sel:connectorTypes:DescribeConnectors' :: Maybe [ConnectorType]
connectorTypes =
        forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:DescribeConnectors' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:DescribeConnectors' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

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

-- | The maximum number of items that should be returned in the result set.
-- The default is 20.
describeConnectors_maxResults :: Lens.Lens' DescribeConnectors (Prelude.Maybe Prelude.Natural)
describeConnectors_maxResults :: Lens' DescribeConnectors (Maybe Natural)
describeConnectors_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConnectors' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeConnectors' :: DescribeConnectors -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeConnectors
s@DescribeConnectors' {} Maybe Natural
a -> DescribeConnectors
s {$sel:maxResults:DescribeConnectors' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeConnectors)

-- | The pagination token for the next page of data.
describeConnectors_nextToken :: Lens.Lens' DescribeConnectors (Prelude.Maybe Prelude.Text)
describeConnectors_nextToken :: Lens' DescribeConnectors (Maybe Text)
describeConnectors_nextToken = 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)

instance Core.AWSRequest DescribeConnectors where
  type
    AWSResponse DescribeConnectors =
      DescribeConnectorsResponse
  request :: (Service -> Service)
-> DescribeConnectors -> Request DescribeConnectors
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeConnectors
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeConnectors)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe (HashMap ConnectorType ConnectorConfiguration)
-> Maybe [ConnectorDetail]
-> Maybe Text
-> Int
-> DescribeConnectorsResponse
DescribeConnectorsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"connectorConfigurations"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"connectors" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"nextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeConnectors where
  hashWithSalt :: Int -> DescribeConnectors -> Int
hashWithSalt Int
_salt DescribeConnectors' {Maybe Natural
Maybe [ConnectorType]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
connectorTypes :: Maybe [ConnectorType]
$sel:nextToken:DescribeConnectors' :: DescribeConnectors -> Maybe Text
$sel:maxResults:DescribeConnectors' :: DescribeConnectors -> Maybe Natural
$sel:connectorTypes:DescribeConnectors' :: DescribeConnectors -> Maybe [ConnectorType]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [ConnectorType]
connectorTypes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken

instance Prelude.NFData DescribeConnectors where
  rnf :: DescribeConnectors -> ()
rnf DescribeConnectors' {Maybe Natural
Maybe [ConnectorType]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
connectorTypes :: Maybe [ConnectorType]
$sel:nextToken:DescribeConnectors' :: DescribeConnectors -> Maybe Text
$sel:maxResults:DescribeConnectors' :: DescribeConnectors -> Maybe Natural
$sel:connectorTypes:DescribeConnectors' :: DescribeConnectors -> Maybe [ConnectorType]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [ConnectorType]
connectorTypes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken

instance Data.ToHeaders DescribeConnectors where
  toHeaders :: DescribeConnectors -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON DescribeConnectors where
  toJSON :: DescribeConnectors -> Value
toJSON DescribeConnectors' {Maybe Natural
Maybe [ConnectorType]
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
connectorTypes :: Maybe [ConnectorType]
$sel:nextToken:DescribeConnectors' :: DescribeConnectors -> Maybe Text
$sel:maxResults:DescribeConnectors' :: DescribeConnectors -> Maybe Natural
$sel:connectorTypes:DescribeConnectors' :: DescribeConnectors -> Maybe [ConnectorType]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"connectorTypes" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ConnectorType]
connectorTypes,
            (Key
"maxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
            (Key
"nextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
          ]
      )

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

instance Data.ToQuery DescribeConnectors where
  toQuery :: DescribeConnectors -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const 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),
    -- | Information about the connectors supported in Amazon AppFlow.
    DescribeConnectorsResponse -> Maybe [ConnectorDetail]
connectors :: Prelude.Maybe [ConnectorDetail],
    -- | 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
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]
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
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.
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.
--
-- 'connectors', 'describeConnectorsResponse_connectors' - Information about the connectors supported in Amazon AppFlow.
--
-- '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'
    { $sel:connectorConfigurations:DescribeConnectorsResponse' :: Maybe (HashMap ConnectorType ConnectorConfiguration)
connectorConfigurations =
        forall a. Maybe a
Prelude.Nothing,
      $sel:connectors:DescribeConnectorsResponse' :: Maybe [ConnectorDetail]
connectors = forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:DescribeConnectorsResponse' :: Maybe Text
nextToken = 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 :: Lens'
  DescribeConnectorsResponse
  (Maybe (HashMap ConnectorType ConnectorConfiguration))
describeConnectorsResponse_connectorConfigurations = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Information about the connectors supported in Amazon AppFlow.
describeConnectorsResponse_connectors :: Lens.Lens' DescribeConnectorsResponse (Prelude.Maybe [ConnectorDetail])
describeConnectorsResponse_connectors :: Lens' DescribeConnectorsResponse (Maybe [ConnectorDetail])
describeConnectorsResponse_connectors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConnectorsResponse' {Maybe [ConnectorDetail]
connectors :: Maybe [ConnectorDetail]
$sel:connectors:DescribeConnectorsResponse' :: DescribeConnectorsResponse -> Maybe [ConnectorDetail]
connectors} -> Maybe [ConnectorDetail]
connectors) (\s :: DescribeConnectorsResponse
s@DescribeConnectorsResponse' {} Maybe [ConnectorDetail]
a -> DescribeConnectorsResponse
s {$sel:connectors:DescribeConnectorsResponse' :: Maybe [ConnectorDetail]
connectors = Maybe [ConnectorDetail]
a} :: DescribeConnectorsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 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 :: Lens' DescribeConnectorsResponse (Maybe Text)
describeConnectorsResponse_nextToken = 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 :: Lens' DescribeConnectorsResponse Int
describeConnectorsResponse_httpStatus = 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 where
  rnf :: DescribeConnectorsResponse -> ()
rnf DescribeConnectorsResponse' {Int
Maybe [ConnectorDetail]
Maybe Text
Maybe (HashMap ConnectorType ConnectorConfiguration)
httpStatus :: Int
nextToken :: Maybe Text
connectors :: Maybe [ConnectorDetail]
connectorConfigurations :: Maybe (HashMap ConnectorType ConnectorConfiguration)
$sel:httpStatus:DescribeConnectorsResponse' :: DescribeConnectorsResponse -> Int
$sel:nextToken:DescribeConnectorsResponse' :: DescribeConnectorsResponse -> Maybe Text
$sel:connectors:DescribeConnectorsResponse' :: DescribeConnectorsResponse -> Maybe [ConnectorDetail]
$sel:connectorConfigurations:DescribeConnectorsResponse' :: DescribeConnectorsResponse
-> Maybe (HashMap ConnectorType ConnectorConfiguration)
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap ConnectorType ConnectorConfiguration)
connectorConfigurations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [ConnectorDetail]
connectors
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus