{-# 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.DescribeConnectorEntity
-- 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)
--
-- Provides details regarding the entity used with the connector, with a
-- description of the data model for each entity.
module Amazonka.AppFlow.DescribeConnectorEntity
  ( -- * Creating a Request
    DescribeConnectorEntity (..),
    newDescribeConnectorEntity,

    -- * Request Lenses
    describeConnectorEntity_connectorProfileName,
    describeConnectorEntity_connectorType,
    describeConnectorEntity_connectorEntityName,

    -- * Destructuring the Response
    DescribeConnectorEntityResponse (..),
    newDescribeConnectorEntityResponse,

    -- * Response Lenses
    describeConnectorEntityResponse_httpStatus,
    describeConnectorEntityResponse_connectorEntityFields,
  )
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:/ 'newDescribeConnectorEntity' smart constructor.
data DescribeConnectorEntity = DescribeConnectorEntity'
  { -- | The name of the connector profile. The name is unique for each
    -- @ConnectorProfile@ in the Amazon Web Services account.
    DescribeConnectorEntity -> Maybe Text
connectorProfileName :: Prelude.Maybe Prelude.Text,
    -- | The type of connector application, such as Salesforce, Amplitude, and so
    -- on.
    DescribeConnectorEntity -> Maybe ConnectorType
connectorType :: Prelude.Maybe ConnectorType,
    -- | The entity name for that connector.
    DescribeConnectorEntity -> Text
connectorEntityName :: Prelude.Text
  }
  deriving (DescribeConnectorEntity -> DescribeConnectorEntity -> Bool
(DescribeConnectorEntity -> DescribeConnectorEntity -> Bool)
-> (DescribeConnectorEntity -> DescribeConnectorEntity -> Bool)
-> Eq DescribeConnectorEntity
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConnectorEntity -> DescribeConnectorEntity -> Bool
$c/= :: DescribeConnectorEntity -> DescribeConnectorEntity -> Bool
== :: DescribeConnectorEntity -> DescribeConnectorEntity -> Bool
$c== :: DescribeConnectorEntity -> DescribeConnectorEntity -> Bool
Prelude.Eq, ReadPrec [DescribeConnectorEntity]
ReadPrec DescribeConnectorEntity
Int -> ReadS DescribeConnectorEntity
ReadS [DescribeConnectorEntity]
(Int -> ReadS DescribeConnectorEntity)
-> ReadS [DescribeConnectorEntity]
-> ReadPrec DescribeConnectorEntity
-> ReadPrec [DescribeConnectorEntity]
-> Read DescribeConnectorEntity
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConnectorEntity]
$creadListPrec :: ReadPrec [DescribeConnectorEntity]
readPrec :: ReadPrec DescribeConnectorEntity
$creadPrec :: ReadPrec DescribeConnectorEntity
readList :: ReadS [DescribeConnectorEntity]
$creadList :: ReadS [DescribeConnectorEntity]
readsPrec :: Int -> ReadS DescribeConnectorEntity
$creadsPrec :: Int -> ReadS DescribeConnectorEntity
Prelude.Read, Int -> DescribeConnectorEntity -> ShowS
[DescribeConnectorEntity] -> ShowS
DescribeConnectorEntity -> String
(Int -> DescribeConnectorEntity -> ShowS)
-> (DescribeConnectorEntity -> String)
-> ([DescribeConnectorEntity] -> ShowS)
-> Show DescribeConnectorEntity
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConnectorEntity] -> ShowS
$cshowList :: [DescribeConnectorEntity] -> ShowS
show :: DescribeConnectorEntity -> String
$cshow :: DescribeConnectorEntity -> String
showsPrec :: Int -> DescribeConnectorEntity -> ShowS
$cshowsPrec :: Int -> DescribeConnectorEntity -> ShowS
Prelude.Show, (forall x.
 DescribeConnectorEntity -> Rep DescribeConnectorEntity x)
-> (forall x.
    Rep DescribeConnectorEntity x -> DescribeConnectorEntity)
-> Generic DescribeConnectorEntity
forall x. Rep DescribeConnectorEntity x -> DescribeConnectorEntity
forall x. DescribeConnectorEntity -> Rep DescribeConnectorEntity x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeConnectorEntity x -> DescribeConnectorEntity
$cfrom :: forall x. DescribeConnectorEntity -> Rep DescribeConnectorEntity x
Prelude.Generic)

-- |
-- Create a value of 'DescribeConnectorEntity' 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:
--
-- 'connectorProfileName', 'describeConnectorEntity_connectorProfileName' - The name of the connector profile. The name is unique for each
-- @ConnectorProfile@ in the Amazon Web Services account.
--
-- 'connectorType', 'describeConnectorEntity_connectorType' - The type of connector application, such as Salesforce, Amplitude, and so
-- on.
--
-- 'connectorEntityName', 'describeConnectorEntity_connectorEntityName' - The entity name for that connector.
newDescribeConnectorEntity ::
  -- | 'connectorEntityName'
  Prelude.Text ->
  DescribeConnectorEntity
newDescribeConnectorEntity :: Text -> DescribeConnectorEntity
newDescribeConnectorEntity Text
pConnectorEntityName_ =
  DescribeConnectorEntity' :: Maybe Text
-> Maybe ConnectorType -> Text -> DescribeConnectorEntity
DescribeConnectorEntity'
    { $sel:connectorProfileName:DescribeConnectorEntity' :: Maybe Text
connectorProfileName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:connectorType:DescribeConnectorEntity' :: Maybe ConnectorType
connectorType = Maybe ConnectorType
forall a. Maybe a
Prelude.Nothing,
      $sel:connectorEntityName:DescribeConnectorEntity' :: Text
connectorEntityName = Text
pConnectorEntityName_
    }

-- | The name of the connector profile. The name is unique for each
-- @ConnectorProfile@ in the Amazon Web Services account.
describeConnectorEntity_connectorProfileName :: Lens.Lens' DescribeConnectorEntity (Prelude.Maybe Prelude.Text)
describeConnectorEntity_connectorProfileName :: (Maybe Text -> f (Maybe Text))
-> DescribeConnectorEntity -> f DescribeConnectorEntity
describeConnectorEntity_connectorProfileName = (DescribeConnectorEntity -> Maybe Text)
-> (DescribeConnectorEntity
    -> Maybe Text -> DescribeConnectorEntity)
-> Lens
     DescribeConnectorEntity
     DescribeConnectorEntity
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConnectorEntity' {Maybe Text
connectorProfileName :: Maybe Text
$sel:connectorProfileName:DescribeConnectorEntity' :: DescribeConnectorEntity -> Maybe Text
connectorProfileName} -> Maybe Text
connectorProfileName) (\s :: DescribeConnectorEntity
s@DescribeConnectorEntity' {} Maybe Text
a -> DescribeConnectorEntity
s {$sel:connectorProfileName:DescribeConnectorEntity' :: Maybe Text
connectorProfileName = Maybe Text
a} :: DescribeConnectorEntity)

-- | The type of connector application, such as Salesforce, Amplitude, and so
-- on.
describeConnectorEntity_connectorType :: Lens.Lens' DescribeConnectorEntity (Prelude.Maybe ConnectorType)
describeConnectorEntity_connectorType :: (Maybe ConnectorType -> f (Maybe ConnectorType))
-> DescribeConnectorEntity -> f DescribeConnectorEntity
describeConnectorEntity_connectorType = (DescribeConnectorEntity -> Maybe ConnectorType)
-> (DescribeConnectorEntity
    -> Maybe ConnectorType -> DescribeConnectorEntity)
-> Lens
     DescribeConnectorEntity
     DescribeConnectorEntity
     (Maybe ConnectorType)
     (Maybe ConnectorType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConnectorEntity' {Maybe ConnectorType
connectorType :: Maybe ConnectorType
$sel:connectorType:DescribeConnectorEntity' :: DescribeConnectorEntity -> Maybe ConnectorType
connectorType} -> Maybe ConnectorType
connectorType) (\s :: DescribeConnectorEntity
s@DescribeConnectorEntity' {} Maybe ConnectorType
a -> DescribeConnectorEntity
s {$sel:connectorType:DescribeConnectorEntity' :: Maybe ConnectorType
connectorType = Maybe ConnectorType
a} :: DescribeConnectorEntity)

-- | The entity name for that connector.
describeConnectorEntity_connectorEntityName :: Lens.Lens' DescribeConnectorEntity Prelude.Text
describeConnectorEntity_connectorEntityName :: (Text -> f Text)
-> DescribeConnectorEntity -> f DescribeConnectorEntity
describeConnectorEntity_connectorEntityName = (DescribeConnectorEntity -> Text)
-> (DescribeConnectorEntity -> Text -> DescribeConnectorEntity)
-> Lens DescribeConnectorEntity DescribeConnectorEntity Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConnectorEntity' {Text
connectorEntityName :: Text
$sel:connectorEntityName:DescribeConnectorEntity' :: DescribeConnectorEntity -> Text
connectorEntityName} -> Text
connectorEntityName) (\s :: DescribeConnectorEntity
s@DescribeConnectorEntity' {} Text
a -> DescribeConnectorEntity
s {$sel:connectorEntityName:DescribeConnectorEntity' :: Text
connectorEntityName = Text
a} :: DescribeConnectorEntity)

instance Core.AWSRequest DescribeConnectorEntity where
  type
    AWSResponse DescribeConnectorEntity =
      DescribeConnectorEntityResponse
  request :: DescribeConnectorEntity -> Request DescribeConnectorEntity
request = Service
-> DescribeConnectorEntity -> Request DescribeConnectorEntity
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeConnectorEntity
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeConnectorEntity)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeConnectorEntity))
-> Logger
-> Service
-> Proxy DescribeConnectorEntity
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeConnectorEntity)))
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 ->
          Int -> [ConnectorEntityField] -> DescribeConnectorEntityResponse
DescribeConnectorEntityResponse'
            (Int -> [ConnectorEntityField] -> DescribeConnectorEntityResponse)
-> Either String Int
-> Either
     String ([ConnectorEntityField] -> DescribeConnectorEntityResponse)
forall (f :: * -> *) a b. Functor 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))
            Either
  String ([ConnectorEntityField] -> DescribeConnectorEntityResponse)
-> Either String [ConnectorEntityField]
-> Either String DescribeConnectorEntityResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe [ConnectorEntityField])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"connectorEntityFields"
                            Either String (Maybe [ConnectorEntityField])
-> [ConnectorEntityField] -> Either String [ConnectorEntityField]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [ConnectorEntityField]
forall a. Monoid a => a
Prelude.mempty
                        )
      )

instance Prelude.Hashable DescribeConnectorEntity

instance Prelude.NFData DescribeConnectorEntity

instance Core.ToHeaders DescribeConnectorEntity where
  toHeaders :: DescribeConnectorEntity -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeConnectorEntity -> 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 DescribeConnectorEntity where
  toJSON :: DescribeConnectorEntity -> Value
toJSON DescribeConnectorEntity' {Maybe Text
Maybe ConnectorType
Text
connectorEntityName :: Text
connectorType :: Maybe ConnectorType
connectorProfileName :: Maybe Text
$sel:connectorEntityName:DescribeConnectorEntity' :: DescribeConnectorEntity -> Text
$sel:connectorType:DescribeConnectorEntity' :: DescribeConnectorEntity -> Maybe ConnectorType
$sel:connectorProfileName:DescribeConnectorEntity' :: DescribeConnectorEntity -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"connectorProfileName" 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
connectorProfileName,
            (Text
"connectorType" 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
connectorType,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"connectorEntityName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
connectorEntityName)
          ]
      )

instance Core.ToPath DescribeConnectorEntity where
  toPath :: DescribeConnectorEntity -> ByteString
toPath = ByteString -> DescribeConnectorEntity -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/describe-connector-entity"

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

-- | /See:/ 'newDescribeConnectorEntityResponse' smart constructor.
data DescribeConnectorEntityResponse = DescribeConnectorEntityResponse'
  { -- | The response's http status code.
    DescribeConnectorEntityResponse -> Int
httpStatus :: Prelude.Int,
    -- | Describes the fields for that connector entity. For example, for an
    -- /account/ entity, the fields would be /account name/, /account ID/, and
    -- so on.
    DescribeConnectorEntityResponse -> [ConnectorEntityField]
connectorEntityFields :: [ConnectorEntityField]
  }
  deriving (DescribeConnectorEntityResponse
-> DescribeConnectorEntityResponse -> Bool
(DescribeConnectorEntityResponse
 -> DescribeConnectorEntityResponse -> Bool)
-> (DescribeConnectorEntityResponse
    -> DescribeConnectorEntityResponse -> Bool)
-> Eq DescribeConnectorEntityResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeConnectorEntityResponse
-> DescribeConnectorEntityResponse -> Bool
$c/= :: DescribeConnectorEntityResponse
-> DescribeConnectorEntityResponse -> Bool
== :: DescribeConnectorEntityResponse
-> DescribeConnectorEntityResponse -> Bool
$c== :: DescribeConnectorEntityResponse
-> DescribeConnectorEntityResponse -> Bool
Prelude.Eq, ReadPrec [DescribeConnectorEntityResponse]
ReadPrec DescribeConnectorEntityResponse
Int -> ReadS DescribeConnectorEntityResponse
ReadS [DescribeConnectorEntityResponse]
(Int -> ReadS DescribeConnectorEntityResponse)
-> ReadS [DescribeConnectorEntityResponse]
-> ReadPrec DescribeConnectorEntityResponse
-> ReadPrec [DescribeConnectorEntityResponse]
-> Read DescribeConnectorEntityResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeConnectorEntityResponse]
$creadListPrec :: ReadPrec [DescribeConnectorEntityResponse]
readPrec :: ReadPrec DescribeConnectorEntityResponse
$creadPrec :: ReadPrec DescribeConnectorEntityResponse
readList :: ReadS [DescribeConnectorEntityResponse]
$creadList :: ReadS [DescribeConnectorEntityResponse]
readsPrec :: Int -> ReadS DescribeConnectorEntityResponse
$creadsPrec :: Int -> ReadS DescribeConnectorEntityResponse
Prelude.Read, Int -> DescribeConnectorEntityResponse -> ShowS
[DescribeConnectorEntityResponse] -> ShowS
DescribeConnectorEntityResponse -> String
(Int -> DescribeConnectorEntityResponse -> ShowS)
-> (DescribeConnectorEntityResponse -> String)
-> ([DescribeConnectorEntityResponse] -> ShowS)
-> Show DescribeConnectorEntityResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeConnectorEntityResponse] -> ShowS
$cshowList :: [DescribeConnectorEntityResponse] -> ShowS
show :: DescribeConnectorEntityResponse -> String
$cshow :: DescribeConnectorEntityResponse -> String
showsPrec :: Int -> DescribeConnectorEntityResponse -> ShowS
$cshowsPrec :: Int -> DescribeConnectorEntityResponse -> ShowS
Prelude.Show, (forall x.
 DescribeConnectorEntityResponse
 -> Rep DescribeConnectorEntityResponse x)
-> (forall x.
    Rep DescribeConnectorEntityResponse x
    -> DescribeConnectorEntityResponse)
-> Generic DescribeConnectorEntityResponse
forall x.
Rep DescribeConnectorEntityResponse x
-> DescribeConnectorEntityResponse
forall x.
DescribeConnectorEntityResponse
-> Rep DescribeConnectorEntityResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeConnectorEntityResponse x
-> DescribeConnectorEntityResponse
$cfrom :: forall x.
DescribeConnectorEntityResponse
-> Rep DescribeConnectorEntityResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeConnectorEntityResponse' 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:
--
-- 'httpStatus', 'describeConnectorEntityResponse_httpStatus' - The response's http status code.
--
-- 'connectorEntityFields', 'describeConnectorEntityResponse_connectorEntityFields' - Describes the fields for that connector entity. For example, for an
-- /account/ entity, the fields would be /account name/, /account ID/, and
-- so on.
newDescribeConnectorEntityResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeConnectorEntityResponse
newDescribeConnectorEntityResponse :: Int -> DescribeConnectorEntityResponse
newDescribeConnectorEntityResponse Int
pHttpStatus_ =
  DescribeConnectorEntityResponse' :: Int -> [ConnectorEntityField] -> DescribeConnectorEntityResponse
DescribeConnectorEntityResponse'
    { $sel:httpStatus:DescribeConnectorEntityResponse' :: Int
httpStatus =
        Int
pHttpStatus_,
      $sel:connectorEntityFields:DescribeConnectorEntityResponse' :: [ConnectorEntityField]
connectorEntityFields = [ConnectorEntityField]
forall a. Monoid a => a
Prelude.mempty
    }

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

-- | Describes the fields for that connector entity. For example, for an
-- /account/ entity, the fields would be /account name/, /account ID/, and
-- so on.
describeConnectorEntityResponse_connectorEntityFields :: Lens.Lens' DescribeConnectorEntityResponse [ConnectorEntityField]
describeConnectorEntityResponse_connectorEntityFields :: ([ConnectorEntityField] -> f [ConnectorEntityField])
-> DescribeConnectorEntityResponse
-> f DescribeConnectorEntityResponse
describeConnectorEntityResponse_connectorEntityFields = (DescribeConnectorEntityResponse -> [ConnectorEntityField])
-> (DescribeConnectorEntityResponse
    -> [ConnectorEntityField] -> DescribeConnectorEntityResponse)
-> Lens
     DescribeConnectorEntityResponse
     DescribeConnectorEntityResponse
     [ConnectorEntityField]
     [ConnectorEntityField]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeConnectorEntityResponse' {[ConnectorEntityField]
connectorEntityFields :: [ConnectorEntityField]
$sel:connectorEntityFields:DescribeConnectorEntityResponse' :: DescribeConnectorEntityResponse -> [ConnectorEntityField]
connectorEntityFields} -> [ConnectorEntityField]
connectorEntityFields) (\s :: DescribeConnectorEntityResponse
s@DescribeConnectorEntityResponse' {} [ConnectorEntityField]
a -> DescribeConnectorEntityResponse
s {$sel:connectorEntityFields:DescribeConnectorEntityResponse' :: [ConnectorEntityField]
connectorEntityFields = [ConnectorEntityField]
a} :: DescribeConnectorEntityResponse) (([ConnectorEntityField] -> f [ConnectorEntityField])
 -> DescribeConnectorEntityResponse
 -> f DescribeConnectorEntityResponse)
-> (([ConnectorEntityField] -> f [ConnectorEntityField])
    -> [ConnectorEntityField] -> f [ConnectorEntityField])
-> ([ConnectorEntityField] -> f [ConnectorEntityField])
-> DescribeConnectorEntityResponse
-> f DescribeConnectorEntityResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ConnectorEntityField] -> f [ConnectorEntityField])
-> [ConnectorEntityField] -> f [ConnectorEntityField]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    DescribeConnectorEntityResponse