{-# 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.KinesisVideo.GetSignalingChannelEndpoint
-- 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 an endpoint for the specified signaling channel to send and
-- receive messages. This API uses the
-- @SingleMasterChannelEndpointConfiguration@ input parameter, which
-- consists of the @Protocols@ and @Role@ properties.
--
-- @Protocols@ is used to determine the communication mechanism. For
-- example, if you specify @WSS@ as the protocol, this API produces a
-- secure websocket endpoint. If you specify @HTTPS@ as the protocol, this
-- API generates an HTTPS endpoint.
--
-- @Role@ determines the messaging permissions. A @MASTER@ role results in
-- this API generating an endpoint that a client can use to communicate
-- with any of the viewers on the channel. A @VIEWER@ role results in this
-- API generating an endpoint that a client can use to communicate only
-- with a @MASTER@.
module Amazonka.KinesisVideo.GetSignalingChannelEndpoint
  ( -- * Creating a Request
    GetSignalingChannelEndpoint (..),
    newGetSignalingChannelEndpoint,

    -- * Request Lenses
    getSignalingChannelEndpoint_singleMasterChannelEndpointConfiguration,
    getSignalingChannelEndpoint_channelARN,

    -- * Destructuring the Response
    GetSignalingChannelEndpointResponse (..),
    newGetSignalingChannelEndpointResponse,

    -- * Response Lenses
    getSignalingChannelEndpointResponse_resourceEndpointList,
    getSignalingChannelEndpointResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.KinesisVideo.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:/ 'newGetSignalingChannelEndpoint' smart constructor.
data GetSignalingChannelEndpoint = GetSignalingChannelEndpoint'
  { -- | A structure containing the endpoint configuration for the
    -- @SINGLE_MASTER@ channel type.
    GetSignalingChannelEndpoint
-> Maybe SingleMasterChannelEndpointConfiguration
singleMasterChannelEndpointConfiguration :: Prelude.Maybe SingleMasterChannelEndpointConfiguration,
    -- | The Amazon Resource Name (ARN) of the signalling channel for which you
    -- want to get an endpoint.
    GetSignalingChannelEndpoint -> Text
channelARN :: Prelude.Text
  }
  deriving (GetSignalingChannelEndpoint -> GetSignalingChannelEndpoint -> Bool
(GetSignalingChannelEndpoint
 -> GetSignalingChannelEndpoint -> Bool)
-> (GetSignalingChannelEndpoint
    -> GetSignalingChannelEndpoint -> Bool)
-> Eq GetSignalingChannelEndpoint
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSignalingChannelEndpoint -> GetSignalingChannelEndpoint -> Bool
$c/= :: GetSignalingChannelEndpoint -> GetSignalingChannelEndpoint -> Bool
== :: GetSignalingChannelEndpoint -> GetSignalingChannelEndpoint -> Bool
$c== :: GetSignalingChannelEndpoint -> GetSignalingChannelEndpoint -> Bool
Prelude.Eq, ReadPrec [GetSignalingChannelEndpoint]
ReadPrec GetSignalingChannelEndpoint
Int -> ReadS GetSignalingChannelEndpoint
ReadS [GetSignalingChannelEndpoint]
(Int -> ReadS GetSignalingChannelEndpoint)
-> ReadS [GetSignalingChannelEndpoint]
-> ReadPrec GetSignalingChannelEndpoint
-> ReadPrec [GetSignalingChannelEndpoint]
-> Read GetSignalingChannelEndpoint
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSignalingChannelEndpoint]
$creadListPrec :: ReadPrec [GetSignalingChannelEndpoint]
readPrec :: ReadPrec GetSignalingChannelEndpoint
$creadPrec :: ReadPrec GetSignalingChannelEndpoint
readList :: ReadS [GetSignalingChannelEndpoint]
$creadList :: ReadS [GetSignalingChannelEndpoint]
readsPrec :: Int -> ReadS GetSignalingChannelEndpoint
$creadsPrec :: Int -> ReadS GetSignalingChannelEndpoint
Prelude.Read, Int -> GetSignalingChannelEndpoint -> ShowS
[GetSignalingChannelEndpoint] -> ShowS
GetSignalingChannelEndpoint -> String
(Int -> GetSignalingChannelEndpoint -> ShowS)
-> (GetSignalingChannelEndpoint -> String)
-> ([GetSignalingChannelEndpoint] -> ShowS)
-> Show GetSignalingChannelEndpoint
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSignalingChannelEndpoint] -> ShowS
$cshowList :: [GetSignalingChannelEndpoint] -> ShowS
show :: GetSignalingChannelEndpoint -> String
$cshow :: GetSignalingChannelEndpoint -> String
showsPrec :: Int -> GetSignalingChannelEndpoint -> ShowS
$cshowsPrec :: Int -> GetSignalingChannelEndpoint -> ShowS
Prelude.Show, (forall x.
 GetSignalingChannelEndpoint -> Rep GetSignalingChannelEndpoint x)
-> (forall x.
    Rep GetSignalingChannelEndpoint x -> GetSignalingChannelEndpoint)
-> Generic GetSignalingChannelEndpoint
forall x.
Rep GetSignalingChannelEndpoint x -> GetSignalingChannelEndpoint
forall x.
GetSignalingChannelEndpoint -> Rep GetSignalingChannelEndpoint x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetSignalingChannelEndpoint x -> GetSignalingChannelEndpoint
$cfrom :: forall x.
GetSignalingChannelEndpoint -> Rep GetSignalingChannelEndpoint x
Prelude.Generic)

-- |
-- Create a value of 'GetSignalingChannelEndpoint' 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:
--
-- 'singleMasterChannelEndpointConfiguration', 'getSignalingChannelEndpoint_singleMasterChannelEndpointConfiguration' - A structure containing the endpoint configuration for the
-- @SINGLE_MASTER@ channel type.
--
-- 'channelARN', 'getSignalingChannelEndpoint_channelARN' - The Amazon Resource Name (ARN) of the signalling channel for which you
-- want to get an endpoint.
newGetSignalingChannelEndpoint ::
  -- | 'channelARN'
  Prelude.Text ->
  GetSignalingChannelEndpoint
newGetSignalingChannelEndpoint :: Text -> GetSignalingChannelEndpoint
newGetSignalingChannelEndpoint Text
pChannelARN_ =
  GetSignalingChannelEndpoint' :: Maybe SingleMasterChannelEndpointConfiguration
-> Text -> GetSignalingChannelEndpoint
GetSignalingChannelEndpoint'
    { $sel:singleMasterChannelEndpointConfiguration:GetSignalingChannelEndpoint' :: Maybe SingleMasterChannelEndpointConfiguration
singleMasterChannelEndpointConfiguration =
        Maybe SingleMasterChannelEndpointConfiguration
forall a. Maybe a
Prelude.Nothing,
      $sel:channelARN:GetSignalingChannelEndpoint' :: Text
channelARN = Text
pChannelARN_
    }

-- | A structure containing the endpoint configuration for the
-- @SINGLE_MASTER@ channel type.
getSignalingChannelEndpoint_singleMasterChannelEndpointConfiguration :: Lens.Lens' GetSignalingChannelEndpoint (Prelude.Maybe SingleMasterChannelEndpointConfiguration)
getSignalingChannelEndpoint_singleMasterChannelEndpointConfiguration :: (Maybe SingleMasterChannelEndpointConfiguration
 -> f (Maybe SingleMasterChannelEndpointConfiguration))
-> GetSignalingChannelEndpoint -> f GetSignalingChannelEndpoint
getSignalingChannelEndpoint_singleMasterChannelEndpointConfiguration = (GetSignalingChannelEndpoint
 -> Maybe SingleMasterChannelEndpointConfiguration)
-> (GetSignalingChannelEndpoint
    -> Maybe SingleMasterChannelEndpointConfiguration
    -> GetSignalingChannelEndpoint)
-> Lens
     GetSignalingChannelEndpoint
     GetSignalingChannelEndpoint
     (Maybe SingleMasterChannelEndpointConfiguration)
     (Maybe SingleMasterChannelEndpointConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSignalingChannelEndpoint' {Maybe SingleMasterChannelEndpointConfiguration
singleMasterChannelEndpointConfiguration :: Maybe SingleMasterChannelEndpointConfiguration
$sel:singleMasterChannelEndpointConfiguration:GetSignalingChannelEndpoint' :: GetSignalingChannelEndpoint
-> Maybe SingleMasterChannelEndpointConfiguration
singleMasterChannelEndpointConfiguration} -> Maybe SingleMasterChannelEndpointConfiguration
singleMasterChannelEndpointConfiguration) (\s :: GetSignalingChannelEndpoint
s@GetSignalingChannelEndpoint' {} Maybe SingleMasterChannelEndpointConfiguration
a -> GetSignalingChannelEndpoint
s {$sel:singleMasterChannelEndpointConfiguration:GetSignalingChannelEndpoint' :: Maybe SingleMasterChannelEndpointConfiguration
singleMasterChannelEndpointConfiguration = Maybe SingleMasterChannelEndpointConfiguration
a} :: GetSignalingChannelEndpoint)

-- | The Amazon Resource Name (ARN) of the signalling channel for which you
-- want to get an endpoint.
getSignalingChannelEndpoint_channelARN :: Lens.Lens' GetSignalingChannelEndpoint Prelude.Text
getSignalingChannelEndpoint_channelARN :: (Text -> f Text)
-> GetSignalingChannelEndpoint -> f GetSignalingChannelEndpoint
getSignalingChannelEndpoint_channelARN = (GetSignalingChannelEndpoint -> Text)
-> (GetSignalingChannelEndpoint
    -> Text -> GetSignalingChannelEndpoint)
-> Lens
     GetSignalingChannelEndpoint GetSignalingChannelEndpoint Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSignalingChannelEndpoint' {Text
channelARN :: Text
$sel:channelARN:GetSignalingChannelEndpoint' :: GetSignalingChannelEndpoint -> Text
channelARN} -> Text
channelARN) (\s :: GetSignalingChannelEndpoint
s@GetSignalingChannelEndpoint' {} Text
a -> GetSignalingChannelEndpoint
s {$sel:channelARN:GetSignalingChannelEndpoint' :: Text
channelARN = Text
a} :: GetSignalingChannelEndpoint)

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

instance Prelude.NFData GetSignalingChannelEndpoint

instance Core.ToHeaders GetSignalingChannelEndpoint where
  toHeaders :: GetSignalingChannelEndpoint -> ResponseHeaders
toHeaders = ResponseHeaders -> GetSignalingChannelEndpoint -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToJSON GetSignalingChannelEndpoint where
  toJSON :: GetSignalingChannelEndpoint -> Value
toJSON GetSignalingChannelEndpoint' {Maybe SingleMasterChannelEndpointConfiguration
Text
channelARN :: Text
singleMasterChannelEndpointConfiguration :: Maybe SingleMasterChannelEndpointConfiguration
$sel:channelARN:GetSignalingChannelEndpoint' :: GetSignalingChannelEndpoint -> Text
$sel:singleMasterChannelEndpointConfiguration:GetSignalingChannelEndpoint' :: GetSignalingChannelEndpoint
-> Maybe SingleMasterChannelEndpointConfiguration
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"SingleMasterChannelEndpointConfiguration" Text -> SingleMasterChannelEndpointConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (SingleMasterChannelEndpointConfiguration -> Pair)
-> Maybe SingleMasterChannelEndpointConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SingleMasterChannelEndpointConfiguration
singleMasterChannelEndpointConfiguration,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ChannelARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
channelARN)
          ]
      )

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

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

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

-- |
-- Create a value of 'GetSignalingChannelEndpointResponse' 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:
--
-- 'resourceEndpointList', 'getSignalingChannelEndpointResponse_resourceEndpointList' - A list of endpoints for the specified signaling channel.
--
-- 'httpStatus', 'getSignalingChannelEndpointResponse_httpStatus' - The response's http status code.
newGetSignalingChannelEndpointResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetSignalingChannelEndpointResponse
newGetSignalingChannelEndpointResponse :: Int -> GetSignalingChannelEndpointResponse
newGetSignalingChannelEndpointResponse Int
pHttpStatus_ =
  GetSignalingChannelEndpointResponse' :: Maybe [ResourceEndpointListItem]
-> Int -> GetSignalingChannelEndpointResponse
GetSignalingChannelEndpointResponse'
    { $sel:resourceEndpointList:GetSignalingChannelEndpointResponse' :: Maybe [ResourceEndpointListItem]
resourceEndpointList =
        Maybe [ResourceEndpointListItem]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetSignalingChannelEndpointResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of endpoints for the specified signaling channel.
getSignalingChannelEndpointResponse_resourceEndpointList :: Lens.Lens' GetSignalingChannelEndpointResponse (Prelude.Maybe [ResourceEndpointListItem])
getSignalingChannelEndpointResponse_resourceEndpointList :: (Maybe [ResourceEndpointListItem]
 -> f (Maybe [ResourceEndpointListItem]))
-> GetSignalingChannelEndpointResponse
-> f GetSignalingChannelEndpointResponse
getSignalingChannelEndpointResponse_resourceEndpointList = (GetSignalingChannelEndpointResponse
 -> Maybe [ResourceEndpointListItem])
-> (GetSignalingChannelEndpointResponse
    -> Maybe [ResourceEndpointListItem]
    -> GetSignalingChannelEndpointResponse)
-> Lens
     GetSignalingChannelEndpointResponse
     GetSignalingChannelEndpointResponse
     (Maybe [ResourceEndpointListItem])
     (Maybe [ResourceEndpointListItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSignalingChannelEndpointResponse' {Maybe [ResourceEndpointListItem]
resourceEndpointList :: Maybe [ResourceEndpointListItem]
$sel:resourceEndpointList:GetSignalingChannelEndpointResponse' :: GetSignalingChannelEndpointResponse
-> Maybe [ResourceEndpointListItem]
resourceEndpointList} -> Maybe [ResourceEndpointListItem]
resourceEndpointList) (\s :: GetSignalingChannelEndpointResponse
s@GetSignalingChannelEndpointResponse' {} Maybe [ResourceEndpointListItem]
a -> GetSignalingChannelEndpointResponse
s {$sel:resourceEndpointList:GetSignalingChannelEndpointResponse' :: Maybe [ResourceEndpointListItem]
resourceEndpointList = Maybe [ResourceEndpointListItem]
a} :: GetSignalingChannelEndpointResponse) ((Maybe [ResourceEndpointListItem]
  -> f (Maybe [ResourceEndpointListItem]))
 -> GetSignalingChannelEndpointResponse
 -> f GetSignalingChannelEndpointResponse)
-> ((Maybe [ResourceEndpointListItem]
     -> f (Maybe [ResourceEndpointListItem]))
    -> Maybe [ResourceEndpointListItem]
    -> f (Maybe [ResourceEndpointListItem]))
-> (Maybe [ResourceEndpointListItem]
    -> f (Maybe [ResourceEndpointListItem]))
-> GetSignalingChannelEndpointResponse
-> f GetSignalingChannelEndpointResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ResourceEndpointListItem]
  [ResourceEndpointListItem]
  [ResourceEndpointListItem]
  [ResourceEndpointListItem]
-> Iso
     (Maybe [ResourceEndpointListItem])
     (Maybe [ResourceEndpointListItem])
     (Maybe [ResourceEndpointListItem])
     (Maybe [ResourceEndpointListItem])
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
  [ResourceEndpointListItem]
  [ResourceEndpointListItem]
  [ResourceEndpointListItem]
  [ResourceEndpointListItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    GetSignalingChannelEndpointResponse