{-# 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.Config.DescribeDeliveryChannelStatus
-- 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 the current status of the specified delivery channel. If a
-- delivery channel is not specified, this action returns the current
-- status of all delivery channels associated with the account.
--
-- Currently, you can specify only one delivery channel per region in your
-- account.
module Amazonka.Config.DescribeDeliveryChannelStatus
  ( -- * Creating a Request
    DescribeDeliveryChannelStatus (..),
    newDescribeDeliveryChannelStatus,

    -- * Request Lenses
    describeDeliveryChannelStatus_deliveryChannelNames,

    -- * Destructuring the Response
    DescribeDeliveryChannelStatusResponse (..),
    newDescribeDeliveryChannelStatusResponse,

    -- * Response Lenses
    describeDeliveryChannelStatusResponse_deliveryChannelsStatus,
    describeDeliveryChannelStatusResponse_httpStatus,
  )
where

import Amazonka.Config.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

-- | The input for the DeliveryChannelStatus action.
--
-- /See:/ 'newDescribeDeliveryChannelStatus' smart constructor.
data DescribeDeliveryChannelStatus = DescribeDeliveryChannelStatus'
  { -- | A list of delivery channel names.
    DescribeDeliveryChannelStatus -> Maybe [Text]
deliveryChannelNames :: Prelude.Maybe [Prelude.Text]
  }
  deriving (DescribeDeliveryChannelStatus
-> DescribeDeliveryChannelStatus -> Bool
(DescribeDeliveryChannelStatus
 -> DescribeDeliveryChannelStatus -> Bool)
-> (DescribeDeliveryChannelStatus
    -> DescribeDeliveryChannelStatus -> Bool)
-> Eq DescribeDeliveryChannelStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDeliveryChannelStatus
-> DescribeDeliveryChannelStatus -> Bool
$c/= :: DescribeDeliveryChannelStatus
-> DescribeDeliveryChannelStatus -> Bool
== :: DescribeDeliveryChannelStatus
-> DescribeDeliveryChannelStatus -> Bool
$c== :: DescribeDeliveryChannelStatus
-> DescribeDeliveryChannelStatus -> Bool
Prelude.Eq, ReadPrec [DescribeDeliveryChannelStatus]
ReadPrec DescribeDeliveryChannelStatus
Int -> ReadS DescribeDeliveryChannelStatus
ReadS [DescribeDeliveryChannelStatus]
(Int -> ReadS DescribeDeliveryChannelStatus)
-> ReadS [DescribeDeliveryChannelStatus]
-> ReadPrec DescribeDeliveryChannelStatus
-> ReadPrec [DescribeDeliveryChannelStatus]
-> Read DescribeDeliveryChannelStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDeliveryChannelStatus]
$creadListPrec :: ReadPrec [DescribeDeliveryChannelStatus]
readPrec :: ReadPrec DescribeDeliveryChannelStatus
$creadPrec :: ReadPrec DescribeDeliveryChannelStatus
readList :: ReadS [DescribeDeliveryChannelStatus]
$creadList :: ReadS [DescribeDeliveryChannelStatus]
readsPrec :: Int -> ReadS DescribeDeliveryChannelStatus
$creadsPrec :: Int -> ReadS DescribeDeliveryChannelStatus
Prelude.Read, Int -> DescribeDeliveryChannelStatus -> ShowS
[DescribeDeliveryChannelStatus] -> ShowS
DescribeDeliveryChannelStatus -> String
(Int -> DescribeDeliveryChannelStatus -> ShowS)
-> (DescribeDeliveryChannelStatus -> String)
-> ([DescribeDeliveryChannelStatus] -> ShowS)
-> Show DescribeDeliveryChannelStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDeliveryChannelStatus] -> ShowS
$cshowList :: [DescribeDeliveryChannelStatus] -> ShowS
show :: DescribeDeliveryChannelStatus -> String
$cshow :: DescribeDeliveryChannelStatus -> String
showsPrec :: Int -> DescribeDeliveryChannelStatus -> ShowS
$cshowsPrec :: Int -> DescribeDeliveryChannelStatus -> ShowS
Prelude.Show, (forall x.
 DescribeDeliveryChannelStatus
 -> Rep DescribeDeliveryChannelStatus x)
-> (forall x.
    Rep DescribeDeliveryChannelStatus x
    -> DescribeDeliveryChannelStatus)
-> Generic DescribeDeliveryChannelStatus
forall x.
Rep DescribeDeliveryChannelStatus x
-> DescribeDeliveryChannelStatus
forall x.
DescribeDeliveryChannelStatus
-> Rep DescribeDeliveryChannelStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDeliveryChannelStatus x
-> DescribeDeliveryChannelStatus
$cfrom :: forall x.
DescribeDeliveryChannelStatus
-> Rep DescribeDeliveryChannelStatus x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDeliveryChannelStatus' 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:
--
-- 'deliveryChannelNames', 'describeDeliveryChannelStatus_deliveryChannelNames' - A list of delivery channel names.
newDescribeDeliveryChannelStatus ::
  DescribeDeliveryChannelStatus
newDescribeDeliveryChannelStatus :: DescribeDeliveryChannelStatus
newDescribeDeliveryChannelStatus =
  DescribeDeliveryChannelStatus' :: Maybe [Text] -> DescribeDeliveryChannelStatus
DescribeDeliveryChannelStatus'
    { $sel:deliveryChannelNames:DescribeDeliveryChannelStatus' :: Maybe [Text]
deliveryChannelNames =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing
    }

-- | A list of delivery channel names.
describeDeliveryChannelStatus_deliveryChannelNames :: Lens.Lens' DescribeDeliveryChannelStatus (Prelude.Maybe [Prelude.Text])
describeDeliveryChannelStatus_deliveryChannelNames :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeDeliveryChannelStatus -> f DescribeDeliveryChannelStatus
describeDeliveryChannelStatus_deliveryChannelNames = (DescribeDeliveryChannelStatus -> Maybe [Text])
-> (DescribeDeliveryChannelStatus
    -> Maybe [Text] -> DescribeDeliveryChannelStatus)
-> Lens
     DescribeDeliveryChannelStatus
     DescribeDeliveryChannelStatus
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeliveryChannelStatus' {Maybe [Text]
deliveryChannelNames :: Maybe [Text]
$sel:deliveryChannelNames:DescribeDeliveryChannelStatus' :: DescribeDeliveryChannelStatus -> Maybe [Text]
deliveryChannelNames} -> Maybe [Text]
deliveryChannelNames) (\s :: DescribeDeliveryChannelStatus
s@DescribeDeliveryChannelStatus' {} Maybe [Text]
a -> DescribeDeliveryChannelStatus
s {$sel:deliveryChannelNames:DescribeDeliveryChannelStatus' :: Maybe [Text]
deliveryChannelNames = Maybe [Text]
a} :: DescribeDeliveryChannelStatus) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeDeliveryChannelStatus
 -> f DescribeDeliveryChannelStatus)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeDeliveryChannelStatus
-> f DescribeDeliveryChannelStatus
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData DescribeDeliveryChannelStatus

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

instance Core.ToJSON DescribeDeliveryChannelStatus where
  toJSON :: DescribeDeliveryChannelStatus -> Value
toJSON DescribeDeliveryChannelStatus' {Maybe [Text]
deliveryChannelNames :: Maybe [Text]
$sel:deliveryChannelNames:DescribeDeliveryChannelStatus' :: DescribeDeliveryChannelStatus -> Maybe [Text]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"DeliveryChannelNames" 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]
deliveryChannelNames
          ]
      )

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

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

-- | The output for the DescribeDeliveryChannelStatus action.
--
-- /See:/ 'newDescribeDeliveryChannelStatusResponse' smart constructor.
data DescribeDeliveryChannelStatusResponse = DescribeDeliveryChannelStatusResponse'
  { -- | A list that contains the status of a specified delivery channel.
    DescribeDeliveryChannelStatusResponse
-> Maybe [DeliveryChannelStatus]
deliveryChannelsStatus :: Prelude.Maybe [DeliveryChannelStatus],
    -- | The response's http status code.
    DescribeDeliveryChannelStatusResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeDeliveryChannelStatusResponse
-> DescribeDeliveryChannelStatusResponse -> Bool
(DescribeDeliveryChannelStatusResponse
 -> DescribeDeliveryChannelStatusResponse -> Bool)
-> (DescribeDeliveryChannelStatusResponse
    -> DescribeDeliveryChannelStatusResponse -> Bool)
-> Eq DescribeDeliveryChannelStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDeliveryChannelStatusResponse
-> DescribeDeliveryChannelStatusResponse -> Bool
$c/= :: DescribeDeliveryChannelStatusResponse
-> DescribeDeliveryChannelStatusResponse -> Bool
== :: DescribeDeliveryChannelStatusResponse
-> DescribeDeliveryChannelStatusResponse -> Bool
$c== :: DescribeDeliveryChannelStatusResponse
-> DescribeDeliveryChannelStatusResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDeliveryChannelStatusResponse]
ReadPrec DescribeDeliveryChannelStatusResponse
Int -> ReadS DescribeDeliveryChannelStatusResponse
ReadS [DescribeDeliveryChannelStatusResponse]
(Int -> ReadS DescribeDeliveryChannelStatusResponse)
-> ReadS [DescribeDeliveryChannelStatusResponse]
-> ReadPrec DescribeDeliveryChannelStatusResponse
-> ReadPrec [DescribeDeliveryChannelStatusResponse]
-> Read DescribeDeliveryChannelStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDeliveryChannelStatusResponse]
$creadListPrec :: ReadPrec [DescribeDeliveryChannelStatusResponse]
readPrec :: ReadPrec DescribeDeliveryChannelStatusResponse
$creadPrec :: ReadPrec DescribeDeliveryChannelStatusResponse
readList :: ReadS [DescribeDeliveryChannelStatusResponse]
$creadList :: ReadS [DescribeDeliveryChannelStatusResponse]
readsPrec :: Int -> ReadS DescribeDeliveryChannelStatusResponse
$creadsPrec :: Int -> ReadS DescribeDeliveryChannelStatusResponse
Prelude.Read, Int -> DescribeDeliveryChannelStatusResponse -> ShowS
[DescribeDeliveryChannelStatusResponse] -> ShowS
DescribeDeliveryChannelStatusResponse -> String
(Int -> DescribeDeliveryChannelStatusResponse -> ShowS)
-> (DescribeDeliveryChannelStatusResponse -> String)
-> ([DescribeDeliveryChannelStatusResponse] -> ShowS)
-> Show DescribeDeliveryChannelStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDeliveryChannelStatusResponse] -> ShowS
$cshowList :: [DescribeDeliveryChannelStatusResponse] -> ShowS
show :: DescribeDeliveryChannelStatusResponse -> String
$cshow :: DescribeDeliveryChannelStatusResponse -> String
showsPrec :: Int -> DescribeDeliveryChannelStatusResponse -> ShowS
$cshowsPrec :: Int -> DescribeDeliveryChannelStatusResponse -> ShowS
Prelude.Show, (forall x.
 DescribeDeliveryChannelStatusResponse
 -> Rep DescribeDeliveryChannelStatusResponse x)
-> (forall x.
    Rep DescribeDeliveryChannelStatusResponse x
    -> DescribeDeliveryChannelStatusResponse)
-> Generic DescribeDeliveryChannelStatusResponse
forall x.
Rep DescribeDeliveryChannelStatusResponse x
-> DescribeDeliveryChannelStatusResponse
forall x.
DescribeDeliveryChannelStatusResponse
-> Rep DescribeDeliveryChannelStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDeliveryChannelStatusResponse x
-> DescribeDeliveryChannelStatusResponse
$cfrom :: forall x.
DescribeDeliveryChannelStatusResponse
-> Rep DescribeDeliveryChannelStatusResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeDeliveryChannelStatusResponse' 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:
--
-- 'deliveryChannelsStatus', 'describeDeliveryChannelStatusResponse_deliveryChannelsStatus' - A list that contains the status of a specified delivery channel.
--
-- 'httpStatus', 'describeDeliveryChannelStatusResponse_httpStatus' - The response's http status code.
newDescribeDeliveryChannelStatusResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeDeliveryChannelStatusResponse
newDescribeDeliveryChannelStatusResponse :: Int -> DescribeDeliveryChannelStatusResponse
newDescribeDeliveryChannelStatusResponse Int
pHttpStatus_ =
  DescribeDeliveryChannelStatusResponse' :: Maybe [DeliveryChannelStatus]
-> Int -> DescribeDeliveryChannelStatusResponse
DescribeDeliveryChannelStatusResponse'
    { $sel:deliveryChannelsStatus:DescribeDeliveryChannelStatusResponse' :: Maybe [DeliveryChannelStatus]
deliveryChannelsStatus =
        Maybe [DeliveryChannelStatus]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeDeliveryChannelStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list that contains the status of a specified delivery channel.
describeDeliveryChannelStatusResponse_deliveryChannelsStatus :: Lens.Lens' DescribeDeliveryChannelStatusResponse (Prelude.Maybe [DeliveryChannelStatus])
describeDeliveryChannelStatusResponse_deliveryChannelsStatus :: (Maybe [DeliveryChannelStatus]
 -> f (Maybe [DeliveryChannelStatus]))
-> DescribeDeliveryChannelStatusResponse
-> f DescribeDeliveryChannelStatusResponse
describeDeliveryChannelStatusResponse_deliveryChannelsStatus = (DescribeDeliveryChannelStatusResponse
 -> Maybe [DeliveryChannelStatus])
-> (DescribeDeliveryChannelStatusResponse
    -> Maybe [DeliveryChannelStatus]
    -> DescribeDeliveryChannelStatusResponse)
-> Lens
     DescribeDeliveryChannelStatusResponse
     DescribeDeliveryChannelStatusResponse
     (Maybe [DeliveryChannelStatus])
     (Maybe [DeliveryChannelStatus])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDeliveryChannelStatusResponse' {Maybe [DeliveryChannelStatus]
deliveryChannelsStatus :: Maybe [DeliveryChannelStatus]
$sel:deliveryChannelsStatus:DescribeDeliveryChannelStatusResponse' :: DescribeDeliveryChannelStatusResponse
-> Maybe [DeliveryChannelStatus]
deliveryChannelsStatus} -> Maybe [DeliveryChannelStatus]
deliveryChannelsStatus) (\s :: DescribeDeliveryChannelStatusResponse
s@DescribeDeliveryChannelStatusResponse' {} Maybe [DeliveryChannelStatus]
a -> DescribeDeliveryChannelStatusResponse
s {$sel:deliveryChannelsStatus:DescribeDeliveryChannelStatusResponse' :: Maybe [DeliveryChannelStatus]
deliveryChannelsStatus = Maybe [DeliveryChannelStatus]
a} :: DescribeDeliveryChannelStatusResponse) ((Maybe [DeliveryChannelStatus]
  -> f (Maybe [DeliveryChannelStatus]))
 -> DescribeDeliveryChannelStatusResponse
 -> f DescribeDeliveryChannelStatusResponse)
-> ((Maybe [DeliveryChannelStatus]
     -> f (Maybe [DeliveryChannelStatus]))
    -> Maybe [DeliveryChannelStatus]
    -> f (Maybe [DeliveryChannelStatus]))
-> (Maybe [DeliveryChannelStatus]
    -> f (Maybe [DeliveryChannelStatus]))
-> DescribeDeliveryChannelStatusResponse
-> f DescribeDeliveryChannelStatusResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [DeliveryChannelStatus]
  [DeliveryChannelStatus]
  [DeliveryChannelStatus]
  [DeliveryChannelStatus]
-> Iso
     (Maybe [DeliveryChannelStatus])
     (Maybe [DeliveryChannelStatus])
     (Maybe [DeliveryChannelStatus])
     (Maybe [DeliveryChannelStatus])
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
  [DeliveryChannelStatus]
  [DeliveryChannelStatus]
  [DeliveryChannelStatus]
  [DeliveryChannelStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeDeliveryChannelStatusResponse