{-# 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.DynamoDB.DescribeKinesisStreamingDestination
-- 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 status of Kinesis streaming.
module Amazonka.DynamoDB.DescribeKinesisStreamingDestination
  ( -- * Creating a Request
    DescribeKinesisStreamingDestination (..),
    newDescribeKinesisStreamingDestination,

    -- * Request Lenses
    describeKinesisStreamingDestination_tableName,

    -- * Destructuring the Response
    DescribeKinesisStreamingDestinationResponse (..),
    newDescribeKinesisStreamingDestinationResponse,

    -- * Response Lenses
    describeKinesisStreamingDestinationResponse_kinesisDataStreamDestinations,
    describeKinesisStreamingDestinationResponse_tableName,
    describeKinesisStreamingDestinationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.DynamoDB.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:/ 'newDescribeKinesisStreamingDestination' smart constructor.
data DescribeKinesisStreamingDestination = DescribeKinesisStreamingDestination'
  { -- | The name of the table being described.
    DescribeKinesisStreamingDestination -> Text
tableName :: Prelude.Text
  }
  deriving (DescribeKinesisStreamingDestination
-> DescribeKinesisStreamingDestination -> Bool
(DescribeKinesisStreamingDestination
 -> DescribeKinesisStreamingDestination -> Bool)
-> (DescribeKinesisStreamingDestination
    -> DescribeKinesisStreamingDestination -> Bool)
-> Eq DescribeKinesisStreamingDestination
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeKinesisStreamingDestination
-> DescribeKinesisStreamingDestination -> Bool
$c/= :: DescribeKinesisStreamingDestination
-> DescribeKinesisStreamingDestination -> Bool
== :: DescribeKinesisStreamingDestination
-> DescribeKinesisStreamingDestination -> Bool
$c== :: DescribeKinesisStreamingDestination
-> DescribeKinesisStreamingDestination -> Bool
Prelude.Eq, ReadPrec [DescribeKinesisStreamingDestination]
ReadPrec DescribeKinesisStreamingDestination
Int -> ReadS DescribeKinesisStreamingDestination
ReadS [DescribeKinesisStreamingDestination]
(Int -> ReadS DescribeKinesisStreamingDestination)
-> ReadS [DescribeKinesisStreamingDestination]
-> ReadPrec DescribeKinesisStreamingDestination
-> ReadPrec [DescribeKinesisStreamingDestination]
-> Read DescribeKinesisStreamingDestination
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeKinesisStreamingDestination]
$creadListPrec :: ReadPrec [DescribeKinesisStreamingDestination]
readPrec :: ReadPrec DescribeKinesisStreamingDestination
$creadPrec :: ReadPrec DescribeKinesisStreamingDestination
readList :: ReadS [DescribeKinesisStreamingDestination]
$creadList :: ReadS [DescribeKinesisStreamingDestination]
readsPrec :: Int -> ReadS DescribeKinesisStreamingDestination
$creadsPrec :: Int -> ReadS DescribeKinesisStreamingDestination
Prelude.Read, Int -> DescribeKinesisStreamingDestination -> ShowS
[DescribeKinesisStreamingDestination] -> ShowS
DescribeKinesisStreamingDestination -> String
(Int -> DescribeKinesisStreamingDestination -> ShowS)
-> (DescribeKinesisStreamingDestination -> String)
-> ([DescribeKinesisStreamingDestination] -> ShowS)
-> Show DescribeKinesisStreamingDestination
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeKinesisStreamingDestination] -> ShowS
$cshowList :: [DescribeKinesisStreamingDestination] -> ShowS
show :: DescribeKinesisStreamingDestination -> String
$cshow :: DescribeKinesisStreamingDestination -> String
showsPrec :: Int -> DescribeKinesisStreamingDestination -> ShowS
$cshowsPrec :: Int -> DescribeKinesisStreamingDestination -> ShowS
Prelude.Show, (forall x.
 DescribeKinesisStreamingDestination
 -> Rep DescribeKinesisStreamingDestination x)
-> (forall x.
    Rep DescribeKinesisStreamingDestination x
    -> DescribeKinesisStreamingDestination)
-> Generic DescribeKinesisStreamingDestination
forall x.
Rep DescribeKinesisStreamingDestination x
-> DescribeKinesisStreamingDestination
forall x.
DescribeKinesisStreamingDestination
-> Rep DescribeKinesisStreamingDestination x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeKinesisStreamingDestination x
-> DescribeKinesisStreamingDestination
$cfrom :: forall x.
DescribeKinesisStreamingDestination
-> Rep DescribeKinesisStreamingDestination x
Prelude.Generic)

-- |
-- Create a value of 'DescribeKinesisStreamingDestination' 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:
--
-- 'tableName', 'describeKinesisStreamingDestination_tableName' - The name of the table being described.
newDescribeKinesisStreamingDestination ::
  -- | 'tableName'
  Prelude.Text ->
  DescribeKinesisStreamingDestination
newDescribeKinesisStreamingDestination :: Text -> DescribeKinesisStreamingDestination
newDescribeKinesisStreamingDestination Text
pTableName_ =
  DescribeKinesisStreamingDestination' :: Text -> DescribeKinesisStreamingDestination
DescribeKinesisStreamingDestination'
    { $sel:tableName:DescribeKinesisStreamingDestination' :: Text
tableName =
        Text
pTableName_
    }

-- | The name of the table being described.
describeKinesisStreamingDestination_tableName :: Lens.Lens' DescribeKinesisStreamingDestination Prelude.Text
describeKinesisStreamingDestination_tableName :: (Text -> f Text)
-> DescribeKinesisStreamingDestination
-> f DescribeKinesisStreamingDestination
describeKinesisStreamingDestination_tableName = (DescribeKinesisStreamingDestination -> Text)
-> (DescribeKinesisStreamingDestination
    -> Text -> DescribeKinesisStreamingDestination)
-> Lens
     DescribeKinesisStreamingDestination
     DescribeKinesisStreamingDestination
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeKinesisStreamingDestination' {Text
tableName :: Text
$sel:tableName:DescribeKinesisStreamingDestination' :: DescribeKinesisStreamingDestination -> Text
tableName} -> Text
tableName) (\s :: DescribeKinesisStreamingDestination
s@DescribeKinesisStreamingDestination' {} Text
a -> DescribeKinesisStreamingDestination
s {$sel:tableName:DescribeKinesisStreamingDestination' :: Text
tableName = Text
a} :: DescribeKinesisStreamingDestination)

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

instance
  Prelude.NFData
    DescribeKinesisStreamingDestination

instance
  Core.ToHeaders
    DescribeKinesisStreamingDestination
  where
  toHeaders :: DescribeKinesisStreamingDestination -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeKinesisStreamingDestination -> 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
"DynamoDB_20120810.DescribeKinesisStreamingDestination" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Core.ToJSON
    DescribeKinesisStreamingDestination
  where
  toJSON :: DescribeKinesisStreamingDestination -> Value
toJSON DescribeKinesisStreamingDestination' {Text
tableName :: Text
$sel:tableName:DescribeKinesisStreamingDestination' :: DescribeKinesisStreamingDestination -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"TableName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
tableName)]
      )

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

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

-- | /See:/ 'newDescribeKinesisStreamingDestinationResponse' smart constructor.
data DescribeKinesisStreamingDestinationResponse = DescribeKinesisStreamingDestinationResponse'
  { -- | The list of replica structures for the table being described.
    DescribeKinesisStreamingDestinationResponse
-> Maybe [KinesisDataStreamDestination]
kinesisDataStreamDestinations :: Prelude.Maybe [KinesisDataStreamDestination],
    -- | The name of the table being described.
    DescribeKinesisStreamingDestinationResponse -> Maybe Text
tableName :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeKinesisStreamingDestinationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeKinesisStreamingDestinationResponse
-> DescribeKinesisStreamingDestinationResponse -> Bool
(DescribeKinesisStreamingDestinationResponse
 -> DescribeKinesisStreamingDestinationResponse -> Bool)
-> (DescribeKinesisStreamingDestinationResponse
    -> DescribeKinesisStreamingDestinationResponse -> Bool)
-> Eq DescribeKinesisStreamingDestinationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeKinesisStreamingDestinationResponse
-> DescribeKinesisStreamingDestinationResponse -> Bool
$c/= :: DescribeKinesisStreamingDestinationResponse
-> DescribeKinesisStreamingDestinationResponse -> Bool
== :: DescribeKinesisStreamingDestinationResponse
-> DescribeKinesisStreamingDestinationResponse -> Bool
$c== :: DescribeKinesisStreamingDestinationResponse
-> DescribeKinesisStreamingDestinationResponse -> Bool
Prelude.Eq, ReadPrec [DescribeKinesisStreamingDestinationResponse]
ReadPrec DescribeKinesisStreamingDestinationResponse
Int -> ReadS DescribeKinesisStreamingDestinationResponse
ReadS [DescribeKinesisStreamingDestinationResponse]
(Int -> ReadS DescribeKinesisStreamingDestinationResponse)
-> ReadS [DescribeKinesisStreamingDestinationResponse]
-> ReadPrec DescribeKinesisStreamingDestinationResponse
-> ReadPrec [DescribeKinesisStreamingDestinationResponse]
-> Read DescribeKinesisStreamingDestinationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeKinesisStreamingDestinationResponse]
$creadListPrec :: ReadPrec [DescribeKinesisStreamingDestinationResponse]
readPrec :: ReadPrec DescribeKinesisStreamingDestinationResponse
$creadPrec :: ReadPrec DescribeKinesisStreamingDestinationResponse
readList :: ReadS [DescribeKinesisStreamingDestinationResponse]
$creadList :: ReadS [DescribeKinesisStreamingDestinationResponse]
readsPrec :: Int -> ReadS DescribeKinesisStreamingDestinationResponse
$creadsPrec :: Int -> ReadS DescribeKinesisStreamingDestinationResponse
Prelude.Read, Int -> DescribeKinesisStreamingDestinationResponse -> ShowS
[DescribeKinesisStreamingDestinationResponse] -> ShowS
DescribeKinesisStreamingDestinationResponse -> String
(Int -> DescribeKinesisStreamingDestinationResponse -> ShowS)
-> (DescribeKinesisStreamingDestinationResponse -> String)
-> ([DescribeKinesisStreamingDestinationResponse] -> ShowS)
-> Show DescribeKinesisStreamingDestinationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeKinesisStreamingDestinationResponse] -> ShowS
$cshowList :: [DescribeKinesisStreamingDestinationResponse] -> ShowS
show :: DescribeKinesisStreamingDestinationResponse -> String
$cshow :: DescribeKinesisStreamingDestinationResponse -> String
showsPrec :: Int -> DescribeKinesisStreamingDestinationResponse -> ShowS
$cshowsPrec :: Int -> DescribeKinesisStreamingDestinationResponse -> ShowS
Prelude.Show, (forall x.
 DescribeKinesisStreamingDestinationResponse
 -> Rep DescribeKinesisStreamingDestinationResponse x)
-> (forall x.
    Rep DescribeKinesisStreamingDestinationResponse x
    -> DescribeKinesisStreamingDestinationResponse)
-> Generic DescribeKinesisStreamingDestinationResponse
forall x.
Rep DescribeKinesisStreamingDestinationResponse x
-> DescribeKinesisStreamingDestinationResponse
forall x.
DescribeKinesisStreamingDestinationResponse
-> Rep DescribeKinesisStreamingDestinationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeKinesisStreamingDestinationResponse x
-> DescribeKinesisStreamingDestinationResponse
$cfrom :: forall x.
DescribeKinesisStreamingDestinationResponse
-> Rep DescribeKinesisStreamingDestinationResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeKinesisStreamingDestinationResponse' 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:
--
-- 'kinesisDataStreamDestinations', 'describeKinesisStreamingDestinationResponse_kinesisDataStreamDestinations' - The list of replica structures for the table being described.
--
-- 'tableName', 'describeKinesisStreamingDestinationResponse_tableName' - The name of the table being described.
--
-- 'httpStatus', 'describeKinesisStreamingDestinationResponse_httpStatus' - The response's http status code.
newDescribeKinesisStreamingDestinationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeKinesisStreamingDestinationResponse
newDescribeKinesisStreamingDestinationResponse :: Int -> DescribeKinesisStreamingDestinationResponse
newDescribeKinesisStreamingDestinationResponse
  Int
pHttpStatus_ =
    DescribeKinesisStreamingDestinationResponse' :: Maybe [KinesisDataStreamDestination]
-> Maybe Text -> Int -> DescribeKinesisStreamingDestinationResponse
DescribeKinesisStreamingDestinationResponse'
      { $sel:kinesisDataStreamDestinations:DescribeKinesisStreamingDestinationResponse' :: Maybe [KinesisDataStreamDestination]
kinesisDataStreamDestinations =
          Maybe [KinesisDataStreamDestination]
forall a. Maybe a
Prelude.Nothing,
        $sel:tableName:DescribeKinesisStreamingDestinationResponse' :: Maybe Text
tableName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeKinesisStreamingDestinationResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The list of replica structures for the table being described.
describeKinesisStreamingDestinationResponse_kinesisDataStreamDestinations :: Lens.Lens' DescribeKinesisStreamingDestinationResponse (Prelude.Maybe [KinesisDataStreamDestination])
describeKinesisStreamingDestinationResponse_kinesisDataStreamDestinations :: (Maybe [KinesisDataStreamDestination]
 -> f (Maybe [KinesisDataStreamDestination]))
-> DescribeKinesisStreamingDestinationResponse
-> f DescribeKinesisStreamingDestinationResponse
describeKinesisStreamingDestinationResponse_kinesisDataStreamDestinations = (DescribeKinesisStreamingDestinationResponse
 -> Maybe [KinesisDataStreamDestination])
-> (DescribeKinesisStreamingDestinationResponse
    -> Maybe [KinesisDataStreamDestination]
    -> DescribeKinesisStreamingDestinationResponse)
-> Lens
     DescribeKinesisStreamingDestinationResponse
     DescribeKinesisStreamingDestinationResponse
     (Maybe [KinesisDataStreamDestination])
     (Maybe [KinesisDataStreamDestination])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeKinesisStreamingDestinationResponse' {Maybe [KinesisDataStreamDestination]
kinesisDataStreamDestinations :: Maybe [KinesisDataStreamDestination]
$sel:kinesisDataStreamDestinations:DescribeKinesisStreamingDestinationResponse' :: DescribeKinesisStreamingDestinationResponse
-> Maybe [KinesisDataStreamDestination]
kinesisDataStreamDestinations} -> Maybe [KinesisDataStreamDestination]
kinesisDataStreamDestinations) (\s :: DescribeKinesisStreamingDestinationResponse
s@DescribeKinesisStreamingDestinationResponse' {} Maybe [KinesisDataStreamDestination]
a -> DescribeKinesisStreamingDestinationResponse
s {$sel:kinesisDataStreamDestinations:DescribeKinesisStreamingDestinationResponse' :: Maybe [KinesisDataStreamDestination]
kinesisDataStreamDestinations = Maybe [KinesisDataStreamDestination]
a} :: DescribeKinesisStreamingDestinationResponse) ((Maybe [KinesisDataStreamDestination]
  -> f (Maybe [KinesisDataStreamDestination]))
 -> DescribeKinesisStreamingDestinationResponse
 -> f DescribeKinesisStreamingDestinationResponse)
-> ((Maybe [KinesisDataStreamDestination]
     -> f (Maybe [KinesisDataStreamDestination]))
    -> Maybe [KinesisDataStreamDestination]
    -> f (Maybe [KinesisDataStreamDestination]))
-> (Maybe [KinesisDataStreamDestination]
    -> f (Maybe [KinesisDataStreamDestination]))
-> DescribeKinesisStreamingDestinationResponse
-> f DescribeKinesisStreamingDestinationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [KinesisDataStreamDestination]
  [KinesisDataStreamDestination]
  [KinesisDataStreamDestination]
  [KinesisDataStreamDestination]
-> Iso
     (Maybe [KinesisDataStreamDestination])
     (Maybe [KinesisDataStreamDestination])
     (Maybe [KinesisDataStreamDestination])
     (Maybe [KinesisDataStreamDestination])
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
  [KinesisDataStreamDestination]
  [KinesisDataStreamDestination]
  [KinesisDataStreamDestination]
  [KinesisDataStreamDestination]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the table being described.
describeKinesisStreamingDestinationResponse_tableName :: Lens.Lens' DescribeKinesisStreamingDestinationResponse (Prelude.Maybe Prelude.Text)
describeKinesisStreamingDestinationResponse_tableName :: (Maybe Text -> f (Maybe Text))
-> DescribeKinesisStreamingDestinationResponse
-> f DescribeKinesisStreamingDestinationResponse
describeKinesisStreamingDestinationResponse_tableName = (DescribeKinesisStreamingDestinationResponse -> Maybe Text)
-> (DescribeKinesisStreamingDestinationResponse
    -> Maybe Text -> DescribeKinesisStreamingDestinationResponse)
-> Lens
     DescribeKinesisStreamingDestinationResponse
     DescribeKinesisStreamingDestinationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeKinesisStreamingDestinationResponse' {Maybe Text
tableName :: Maybe Text
$sel:tableName:DescribeKinesisStreamingDestinationResponse' :: DescribeKinesisStreamingDestinationResponse -> Maybe Text
tableName} -> Maybe Text
tableName) (\s :: DescribeKinesisStreamingDestinationResponse
s@DescribeKinesisStreamingDestinationResponse' {} Maybe Text
a -> DescribeKinesisStreamingDestinationResponse
s {$sel:tableName:DescribeKinesisStreamingDestinationResponse' :: Maybe Text
tableName = Maybe Text
a} :: DescribeKinesisStreamingDestinationResponse)

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

instance
  Prelude.NFData
    DescribeKinesisStreamingDestinationResponse