{-# 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.MediaLive.DescribeChannel
-- 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)
--
-- Gets details about a channel
module Amazonka.MediaLive.DescribeChannel
  ( -- * Creating a Request
    DescribeChannel (..),
    newDescribeChannel,

    -- * Request Lenses
    describeChannel_channelId,

    -- * Destructuring the Response
    DescribeChannelResponse (..),
    newDescribeChannelResponse,

    -- * Response Lenses
    describeChannelResponse_state,
    describeChannelResponse_logLevel,
    describeChannelResponse_arn,
    describeChannelResponse_pipelinesRunningCount,
    describeChannelResponse_pipelineDetails,
    describeChannelResponse_inputSpecification,
    describeChannelResponse_inputAttachments,
    describeChannelResponse_destinations,
    describeChannelResponse_name,
    describeChannelResponse_cdiInputSpecification,
    describeChannelResponse_id,
    describeChannelResponse_channelClass,
    describeChannelResponse_vpc,
    describeChannelResponse_egressEndpoints,
    describeChannelResponse_tags,
    describeChannelResponse_encoderSettings,
    describeChannelResponse_roleArn,
    describeChannelResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaLive.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | Placeholder documentation for DescribeChannelRequest
--
-- /See:/ 'newDescribeChannel' smart constructor.
data DescribeChannel = DescribeChannel'
  { -- | channel ID
    DescribeChannel -> Text
channelId :: Prelude.Text
  }
  deriving (DescribeChannel -> DescribeChannel -> Bool
(DescribeChannel -> DescribeChannel -> Bool)
-> (DescribeChannel -> DescribeChannel -> Bool)
-> Eq DescribeChannel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeChannel -> DescribeChannel -> Bool
$c/= :: DescribeChannel -> DescribeChannel -> Bool
== :: DescribeChannel -> DescribeChannel -> Bool
$c== :: DescribeChannel -> DescribeChannel -> Bool
Prelude.Eq, ReadPrec [DescribeChannel]
ReadPrec DescribeChannel
Int -> ReadS DescribeChannel
ReadS [DescribeChannel]
(Int -> ReadS DescribeChannel)
-> ReadS [DescribeChannel]
-> ReadPrec DescribeChannel
-> ReadPrec [DescribeChannel]
-> Read DescribeChannel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeChannel]
$creadListPrec :: ReadPrec [DescribeChannel]
readPrec :: ReadPrec DescribeChannel
$creadPrec :: ReadPrec DescribeChannel
readList :: ReadS [DescribeChannel]
$creadList :: ReadS [DescribeChannel]
readsPrec :: Int -> ReadS DescribeChannel
$creadsPrec :: Int -> ReadS DescribeChannel
Prelude.Read, Int -> DescribeChannel -> ShowS
[DescribeChannel] -> ShowS
DescribeChannel -> String
(Int -> DescribeChannel -> ShowS)
-> (DescribeChannel -> String)
-> ([DescribeChannel] -> ShowS)
-> Show DescribeChannel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeChannel] -> ShowS
$cshowList :: [DescribeChannel] -> ShowS
show :: DescribeChannel -> String
$cshow :: DescribeChannel -> String
showsPrec :: Int -> DescribeChannel -> ShowS
$cshowsPrec :: Int -> DescribeChannel -> ShowS
Prelude.Show, (forall x. DescribeChannel -> Rep DescribeChannel x)
-> (forall x. Rep DescribeChannel x -> DescribeChannel)
-> Generic DescribeChannel
forall x. Rep DescribeChannel x -> DescribeChannel
forall x. DescribeChannel -> Rep DescribeChannel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeChannel x -> DescribeChannel
$cfrom :: forall x. DescribeChannel -> Rep DescribeChannel x
Prelude.Generic)

-- |
-- Create a value of 'DescribeChannel' 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:
--
-- 'channelId', 'describeChannel_channelId' - channel ID
newDescribeChannel ::
  -- | 'channelId'
  Prelude.Text ->
  DescribeChannel
newDescribeChannel :: Text -> DescribeChannel
newDescribeChannel Text
pChannelId_ =
  DescribeChannel' :: Text -> DescribeChannel
DescribeChannel' {$sel:channelId:DescribeChannel' :: Text
channelId = Text
pChannelId_}

-- | channel ID
describeChannel_channelId :: Lens.Lens' DescribeChannel Prelude.Text
describeChannel_channelId :: (Text -> f Text) -> DescribeChannel -> f DescribeChannel
describeChannel_channelId = (DescribeChannel -> Text)
-> (DescribeChannel -> Text -> DescribeChannel)
-> Lens DescribeChannel DescribeChannel Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannel' {Text
channelId :: Text
$sel:channelId:DescribeChannel' :: DescribeChannel -> Text
channelId} -> Text
channelId) (\s :: DescribeChannel
s@DescribeChannel' {} Text
a -> DescribeChannel
s {$sel:channelId:DescribeChannel' :: Text
channelId = Text
a} :: DescribeChannel)

instance Core.AWSRequest DescribeChannel where
  type
    AWSResponse DescribeChannel =
      DescribeChannelResponse
  request :: DescribeChannel -> Request DescribeChannel
request = Service -> DescribeChannel -> Request DescribeChannel
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeChannel
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeChannel)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeChannel))
-> Logger
-> Service
-> Proxy DescribeChannel
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeChannel)))
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 ChannelState
-> Maybe LogLevel
-> Maybe Text
-> Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> DescribeChannelResponse
DescribeChannelResponse'
            (Maybe ChannelState
 -> Maybe LogLevel
 -> Maybe Text
 -> Maybe Int
 -> Maybe [PipelineDetail]
 -> Maybe InputSpecification
 -> Maybe [InputAttachment]
 -> Maybe [OutputDestination]
 -> Maybe Text
 -> Maybe CdiInputSpecification
 -> Maybe Text
 -> Maybe ChannelClass
 -> Maybe VpcOutputSettingsDescription
 -> Maybe [ChannelEgressEndpoint]
 -> Maybe (HashMap Text Text)
 -> Maybe EncoderSettings
 -> Maybe Text
 -> Int
 -> DescribeChannelResponse)
-> Either String (Maybe ChannelState)
-> Either
     String
     (Maybe LogLevel
      -> Maybe Text
      -> Maybe Int
      -> Maybe [PipelineDetail]
      -> Maybe InputSpecification
      -> Maybe [InputAttachment]
      -> Maybe [OutputDestination]
      -> Maybe Text
      -> Maybe CdiInputSpecification
      -> Maybe Text
      -> Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe ChannelState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"state")
            Either
  String
  (Maybe LogLevel
   -> Maybe Text
   -> Maybe Int
   -> Maybe [PipelineDetail]
   -> Maybe InputSpecification
   -> Maybe [InputAttachment]
   -> Maybe [OutputDestination]
   -> Maybe Text
   -> Maybe CdiInputSpecification
   -> Maybe Text
   -> Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe LogLevel)
-> Either
     String
     (Maybe Text
      -> Maybe Int
      -> Maybe [PipelineDetail]
      -> Maybe InputSpecification
      -> Maybe [InputAttachment]
      -> Maybe [OutputDestination]
      -> Maybe Text
      -> Maybe CdiInputSpecification
      -> Maybe Text
      -> Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe LogLevel)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"logLevel")
            Either
  String
  (Maybe Text
   -> Maybe Int
   -> Maybe [PipelineDetail]
   -> Maybe InputSpecification
   -> Maybe [InputAttachment]
   -> Maybe [OutputDestination]
   -> Maybe Text
   -> Maybe CdiInputSpecification
   -> Maybe Text
   -> Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Int
      -> Maybe [PipelineDetail]
      -> Maybe InputSpecification
      -> Maybe [InputAttachment]
      -> Maybe [OutputDestination]
      -> Maybe Text
      -> Maybe CdiInputSpecification
      -> Maybe Text
      -> Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
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
"arn")
            Either
  String
  (Maybe Int
   -> Maybe [PipelineDetail]
   -> Maybe InputSpecification
   -> Maybe [InputAttachment]
   -> Maybe [OutputDestination]
   -> Maybe Text
   -> Maybe CdiInputSpecification
   -> Maybe Text
   -> Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe [PipelineDetail]
      -> Maybe InputSpecification
      -> Maybe [InputAttachment]
      -> Maybe [OutputDestination]
      -> Maybe Text
      -> Maybe CdiInputSpecification
      -> Maybe Text
      -> Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"pipelinesRunningCount")
            Either
  String
  (Maybe [PipelineDetail]
   -> Maybe InputSpecification
   -> Maybe [InputAttachment]
   -> Maybe [OutputDestination]
   -> Maybe Text
   -> Maybe CdiInputSpecification
   -> Maybe Text
   -> Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe [PipelineDetail])
-> Either
     String
     (Maybe InputSpecification
      -> Maybe [InputAttachment]
      -> Maybe [OutputDestination]
      -> Maybe Text
      -> Maybe CdiInputSpecification
      -> Maybe Text
      -> Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [PipelineDetail]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"pipelineDetails"
                            Either String (Maybe (Maybe [PipelineDetail]))
-> Maybe [PipelineDetail] -> Either String (Maybe [PipelineDetail])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [PipelineDetail]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe InputSpecification
   -> Maybe [InputAttachment]
   -> Maybe [OutputDestination]
   -> Maybe Text
   -> Maybe CdiInputSpecification
   -> Maybe Text
   -> Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe InputSpecification)
-> Either
     String
     (Maybe [InputAttachment]
      -> Maybe [OutputDestination]
      -> Maybe Text
      -> Maybe CdiInputSpecification
      -> Maybe Text
      -> Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe InputSpecification)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"inputSpecification")
            Either
  String
  (Maybe [InputAttachment]
   -> Maybe [OutputDestination]
   -> Maybe Text
   -> Maybe CdiInputSpecification
   -> Maybe Text
   -> Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe [InputAttachment])
-> Either
     String
     (Maybe [OutputDestination]
      -> Maybe Text
      -> Maybe CdiInputSpecification
      -> Maybe Text
      -> Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [InputAttachment]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"inputAttachments"
                            Either String (Maybe (Maybe [InputAttachment]))
-> Maybe [InputAttachment]
-> Either String (Maybe [InputAttachment])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [InputAttachment]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe [OutputDestination]
   -> Maybe Text
   -> Maybe CdiInputSpecification
   -> Maybe Text
   -> Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe [OutputDestination])
-> Either
     String
     (Maybe Text
      -> Maybe CdiInputSpecification
      -> Maybe Text
      -> Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [OutputDestination]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"destinations" Either String (Maybe (Maybe [OutputDestination]))
-> Maybe [OutputDestination]
-> Either String (Maybe [OutputDestination])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [OutputDestination]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe Text
   -> Maybe CdiInputSpecification
   -> Maybe Text
   -> Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe CdiInputSpecification
      -> Maybe Text
      -> Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
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
"name")
            Either
  String
  (Maybe CdiInputSpecification
   -> Maybe Text
   -> Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe CdiInputSpecification)
-> Either
     String
     (Maybe Text
      -> Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe CdiInputSpecification)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"cdiInputSpecification")
            Either
  String
  (Maybe Text
   -> Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe ChannelClass
      -> Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
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
"id")
            Either
  String
  (Maybe ChannelClass
   -> Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe ChannelClass)
-> Either
     String
     (Maybe VpcOutputSettingsDescription
      -> Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ChannelClass)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"channelClass")
            Either
  String
  (Maybe VpcOutputSettingsDescription
   -> Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe VpcOutputSettingsDescription)
-> Either
     String
     (Maybe [ChannelEgressEndpoint]
      -> Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe VpcOutputSettingsDescription)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"vpc")
            Either
  String
  (Maybe [ChannelEgressEndpoint]
   -> Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe [ChannelEgressEndpoint])
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Maybe EncoderSettings
      -> Maybe Text
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ChannelEgressEndpoint]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"egressEndpoints"
                            Either String (Maybe (Maybe [ChannelEgressEndpoint]))
-> Maybe [ChannelEgressEndpoint]
-> Either String (Maybe [ChannelEgressEndpoint])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ChannelEgressEndpoint]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String
  (Maybe (HashMap Text Text)
   -> Maybe EncoderSettings
   -> Maybe Text
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
     String
     (Maybe EncoderSettings
      -> Maybe Text -> Int -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe EncoderSettings
   -> Maybe Text -> Int -> DescribeChannelResponse)
-> Either String (Maybe EncoderSettings)
-> Either String (Maybe Text -> Int -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe EncoderSettings)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"encoderSettings")
            Either String (Maybe Text -> Int -> DescribeChannelResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeChannelResponse)
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
"roleArn")
            Either String (Int -> DescribeChannelResponse)
-> Either String Int -> Either String DescribeChannelResponse
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 DescribeChannel

instance Prelude.NFData DescribeChannel

instance Core.ToHeaders DescribeChannel where
  toHeaders :: DescribeChannel -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeChannel -> 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.ToPath DescribeChannel where
  toPath :: DescribeChannel -> ByteString
toPath DescribeChannel' {Text
channelId :: Text
$sel:channelId:DescribeChannel' :: DescribeChannel -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/prod/channels/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
channelId]

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

-- | Placeholder documentation for DescribeChannelResponse
--
-- /See:/ 'newDescribeChannelResponse' smart constructor.
data DescribeChannelResponse = DescribeChannelResponse'
  { DescribeChannelResponse -> Maybe ChannelState
state :: Prelude.Maybe ChannelState,
    -- | The log level being written to CloudWatch Logs.
    DescribeChannelResponse -> Maybe LogLevel
logLevel :: Prelude.Maybe LogLevel,
    -- | The unique arn of the channel.
    DescribeChannelResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The number of currently healthy pipelines.
    DescribeChannelResponse -> Maybe Int
pipelinesRunningCount :: Prelude.Maybe Prelude.Int,
    -- | Runtime details for the pipelines of a running channel.
    DescribeChannelResponse -> Maybe [PipelineDetail]
pipelineDetails :: Prelude.Maybe [PipelineDetail],
    -- | Specification of network and file inputs for this channel
    DescribeChannelResponse -> Maybe InputSpecification
inputSpecification :: Prelude.Maybe InputSpecification,
    -- | List of input attachments for channel.
    DescribeChannelResponse -> Maybe [InputAttachment]
inputAttachments :: Prelude.Maybe [InputAttachment],
    -- | A list of destinations of the channel. For UDP outputs, there is one
    -- destination per output. For other types (HLS, for example), there is one
    -- destination per packager.
    DescribeChannelResponse -> Maybe [OutputDestination]
destinations :: Prelude.Maybe [OutputDestination],
    -- | The name of the channel. (user-mutable)
    DescribeChannelResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | Specification of CDI inputs for this channel
    DescribeChannelResponse -> Maybe CdiInputSpecification
cdiInputSpecification :: Prelude.Maybe CdiInputSpecification,
    -- | The unique id of the channel.
    DescribeChannelResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The class for this channel. STANDARD for a channel with two pipelines or
    -- SINGLE_PIPELINE for a channel with one pipeline.
    DescribeChannelResponse -> Maybe ChannelClass
channelClass :: Prelude.Maybe ChannelClass,
    -- | Settings for VPC output
    DescribeChannelResponse -> Maybe VpcOutputSettingsDescription
vpc :: Prelude.Maybe VpcOutputSettingsDescription,
    -- | The endpoints where outgoing connections initiate from
    DescribeChannelResponse -> Maybe [ChannelEgressEndpoint]
egressEndpoints :: Prelude.Maybe [ChannelEgressEndpoint],
    -- | A collection of key-value pairs.
    DescribeChannelResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    DescribeChannelResponse -> Maybe EncoderSettings
encoderSettings :: Prelude.Maybe EncoderSettings,
    -- | The Amazon Resource Name (ARN) of the role assumed when running the
    -- Channel.
    DescribeChannelResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeChannelResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeChannelResponse -> DescribeChannelResponse -> Bool
(DescribeChannelResponse -> DescribeChannelResponse -> Bool)
-> (DescribeChannelResponse -> DescribeChannelResponse -> Bool)
-> Eq DescribeChannelResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeChannelResponse -> DescribeChannelResponse -> Bool
$c/= :: DescribeChannelResponse -> DescribeChannelResponse -> Bool
== :: DescribeChannelResponse -> DescribeChannelResponse -> Bool
$c== :: DescribeChannelResponse -> DescribeChannelResponse -> Bool
Prelude.Eq, ReadPrec [DescribeChannelResponse]
ReadPrec DescribeChannelResponse
Int -> ReadS DescribeChannelResponse
ReadS [DescribeChannelResponse]
(Int -> ReadS DescribeChannelResponse)
-> ReadS [DescribeChannelResponse]
-> ReadPrec DescribeChannelResponse
-> ReadPrec [DescribeChannelResponse]
-> Read DescribeChannelResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeChannelResponse]
$creadListPrec :: ReadPrec [DescribeChannelResponse]
readPrec :: ReadPrec DescribeChannelResponse
$creadPrec :: ReadPrec DescribeChannelResponse
readList :: ReadS [DescribeChannelResponse]
$creadList :: ReadS [DescribeChannelResponse]
readsPrec :: Int -> ReadS DescribeChannelResponse
$creadsPrec :: Int -> ReadS DescribeChannelResponse
Prelude.Read, Int -> DescribeChannelResponse -> ShowS
[DescribeChannelResponse] -> ShowS
DescribeChannelResponse -> String
(Int -> DescribeChannelResponse -> ShowS)
-> (DescribeChannelResponse -> String)
-> ([DescribeChannelResponse] -> ShowS)
-> Show DescribeChannelResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeChannelResponse] -> ShowS
$cshowList :: [DescribeChannelResponse] -> ShowS
show :: DescribeChannelResponse -> String
$cshow :: DescribeChannelResponse -> String
showsPrec :: Int -> DescribeChannelResponse -> ShowS
$cshowsPrec :: Int -> DescribeChannelResponse -> ShowS
Prelude.Show, (forall x.
 DescribeChannelResponse -> Rep DescribeChannelResponse x)
-> (forall x.
    Rep DescribeChannelResponse x -> DescribeChannelResponse)
-> Generic DescribeChannelResponse
forall x. Rep DescribeChannelResponse x -> DescribeChannelResponse
forall x. DescribeChannelResponse -> Rep DescribeChannelResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeChannelResponse x -> DescribeChannelResponse
$cfrom :: forall x. DescribeChannelResponse -> Rep DescribeChannelResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeChannelResponse' 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:
--
-- 'state', 'describeChannelResponse_state' - Undocumented member.
--
-- 'logLevel', 'describeChannelResponse_logLevel' - The log level being written to CloudWatch Logs.
--
-- 'arn', 'describeChannelResponse_arn' - The unique arn of the channel.
--
-- 'pipelinesRunningCount', 'describeChannelResponse_pipelinesRunningCount' - The number of currently healthy pipelines.
--
-- 'pipelineDetails', 'describeChannelResponse_pipelineDetails' - Runtime details for the pipelines of a running channel.
--
-- 'inputSpecification', 'describeChannelResponse_inputSpecification' - Specification of network and file inputs for this channel
--
-- 'inputAttachments', 'describeChannelResponse_inputAttachments' - List of input attachments for channel.
--
-- 'destinations', 'describeChannelResponse_destinations' - A list of destinations of the channel. For UDP outputs, there is one
-- destination per output. For other types (HLS, for example), there is one
-- destination per packager.
--
-- 'name', 'describeChannelResponse_name' - The name of the channel. (user-mutable)
--
-- 'cdiInputSpecification', 'describeChannelResponse_cdiInputSpecification' - Specification of CDI inputs for this channel
--
-- 'id', 'describeChannelResponse_id' - The unique id of the channel.
--
-- 'channelClass', 'describeChannelResponse_channelClass' - The class for this channel. STANDARD for a channel with two pipelines or
-- SINGLE_PIPELINE for a channel with one pipeline.
--
-- 'vpc', 'describeChannelResponse_vpc' - Settings for VPC output
--
-- 'egressEndpoints', 'describeChannelResponse_egressEndpoints' - The endpoints where outgoing connections initiate from
--
-- 'tags', 'describeChannelResponse_tags' - A collection of key-value pairs.
--
-- 'encoderSettings', 'describeChannelResponse_encoderSettings' - Undocumented member.
--
-- 'roleArn', 'describeChannelResponse_roleArn' - The Amazon Resource Name (ARN) of the role assumed when running the
-- Channel.
--
-- 'httpStatus', 'describeChannelResponse_httpStatus' - The response's http status code.
newDescribeChannelResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeChannelResponse
newDescribeChannelResponse :: Int -> DescribeChannelResponse
newDescribeChannelResponse Int
pHttpStatus_ =
  DescribeChannelResponse' :: Maybe ChannelState
-> Maybe LogLevel
-> Maybe Text
-> Maybe Int
-> Maybe [PipelineDetail]
-> Maybe InputSpecification
-> Maybe [InputAttachment]
-> Maybe [OutputDestination]
-> Maybe Text
-> Maybe CdiInputSpecification
-> Maybe Text
-> Maybe ChannelClass
-> Maybe VpcOutputSettingsDescription
-> Maybe [ChannelEgressEndpoint]
-> Maybe (HashMap Text Text)
-> Maybe EncoderSettings
-> Maybe Text
-> Int
-> DescribeChannelResponse
DescribeChannelResponse'
    { $sel:state:DescribeChannelResponse' :: Maybe ChannelState
state = Maybe ChannelState
forall a. Maybe a
Prelude.Nothing,
      $sel:logLevel:DescribeChannelResponse' :: Maybe LogLevel
logLevel = Maybe LogLevel
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:DescribeChannelResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelinesRunningCount:DescribeChannelResponse' :: Maybe Int
pipelinesRunningCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:pipelineDetails:DescribeChannelResponse' :: Maybe [PipelineDetail]
pipelineDetails = Maybe [PipelineDetail]
forall a. Maybe a
Prelude.Nothing,
      $sel:inputSpecification:DescribeChannelResponse' :: Maybe InputSpecification
inputSpecification = Maybe InputSpecification
forall a. Maybe a
Prelude.Nothing,
      $sel:inputAttachments:DescribeChannelResponse' :: Maybe [InputAttachment]
inputAttachments = Maybe [InputAttachment]
forall a. Maybe a
Prelude.Nothing,
      $sel:destinations:DescribeChannelResponse' :: Maybe [OutputDestination]
destinations = Maybe [OutputDestination]
forall a. Maybe a
Prelude.Nothing,
      $sel:name:DescribeChannelResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:cdiInputSpecification:DescribeChannelResponse' :: Maybe CdiInputSpecification
cdiInputSpecification = Maybe CdiInputSpecification
forall a. Maybe a
Prelude.Nothing,
      $sel:id:DescribeChannelResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:channelClass:DescribeChannelResponse' :: Maybe ChannelClass
channelClass = Maybe ChannelClass
forall a. Maybe a
Prelude.Nothing,
      $sel:vpc:DescribeChannelResponse' :: Maybe VpcOutputSettingsDescription
vpc = Maybe VpcOutputSettingsDescription
forall a. Maybe a
Prelude.Nothing,
      $sel:egressEndpoints:DescribeChannelResponse' :: Maybe [ChannelEgressEndpoint]
egressEndpoints = Maybe [ChannelEgressEndpoint]
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeChannelResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:encoderSettings:DescribeChannelResponse' :: Maybe EncoderSettings
encoderSettings = Maybe EncoderSettings
forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:DescribeChannelResponse' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeChannelResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
describeChannelResponse_state :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe ChannelState)
describeChannelResponse_state :: (Maybe ChannelState -> f (Maybe ChannelState))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_state = (DescribeChannelResponse -> Maybe ChannelState)
-> (DescribeChannelResponse
    -> Maybe ChannelState -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe ChannelState)
     (Maybe ChannelState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe ChannelState
state :: Maybe ChannelState
$sel:state:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe ChannelState
state} -> Maybe ChannelState
state) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe ChannelState
a -> DescribeChannelResponse
s {$sel:state:DescribeChannelResponse' :: Maybe ChannelState
state = Maybe ChannelState
a} :: DescribeChannelResponse)

-- | The log level being written to CloudWatch Logs.
describeChannelResponse_logLevel :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe LogLevel)
describeChannelResponse_logLevel :: (Maybe LogLevel -> f (Maybe LogLevel))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_logLevel = (DescribeChannelResponse -> Maybe LogLevel)
-> (DescribeChannelResponse
    -> Maybe LogLevel -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe LogLevel)
     (Maybe LogLevel)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe LogLevel
logLevel :: Maybe LogLevel
$sel:logLevel:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe LogLevel
logLevel} -> Maybe LogLevel
logLevel) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe LogLevel
a -> DescribeChannelResponse
s {$sel:logLevel:DescribeChannelResponse' :: Maybe LogLevel
logLevel = Maybe LogLevel
a} :: DescribeChannelResponse)

-- | The unique arn of the channel.
describeChannelResponse_arn :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.Text)
describeChannelResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_arn = (DescribeChannelResponse -> Maybe Text)
-> (DescribeChannelResponse
    -> Maybe Text -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe Text
a -> DescribeChannelResponse
s {$sel:arn:DescribeChannelResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeChannelResponse)

-- | The number of currently healthy pipelines.
describeChannelResponse_pipelinesRunningCount :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.Int)
describeChannelResponse_pipelinesRunningCount :: (Maybe Int -> f (Maybe Int))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_pipelinesRunningCount = (DescribeChannelResponse -> Maybe Int)
-> (DescribeChannelResponse
    -> Maybe Int -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe Int
pipelinesRunningCount :: Maybe Int
$sel:pipelinesRunningCount:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe Int
pipelinesRunningCount} -> Maybe Int
pipelinesRunningCount) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe Int
a -> DescribeChannelResponse
s {$sel:pipelinesRunningCount:DescribeChannelResponse' :: Maybe Int
pipelinesRunningCount = Maybe Int
a} :: DescribeChannelResponse)

-- | Runtime details for the pipelines of a running channel.
describeChannelResponse_pipelineDetails :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe [PipelineDetail])
describeChannelResponse_pipelineDetails :: (Maybe [PipelineDetail] -> f (Maybe [PipelineDetail]))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_pipelineDetails = (DescribeChannelResponse -> Maybe [PipelineDetail])
-> (DescribeChannelResponse
    -> Maybe [PipelineDetail] -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe [PipelineDetail])
     (Maybe [PipelineDetail])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe [PipelineDetail]
pipelineDetails :: Maybe [PipelineDetail]
$sel:pipelineDetails:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe [PipelineDetail]
pipelineDetails} -> Maybe [PipelineDetail]
pipelineDetails) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe [PipelineDetail]
a -> DescribeChannelResponse
s {$sel:pipelineDetails:DescribeChannelResponse' :: Maybe [PipelineDetail]
pipelineDetails = Maybe [PipelineDetail]
a} :: DescribeChannelResponse) ((Maybe [PipelineDetail] -> f (Maybe [PipelineDetail]))
 -> DescribeChannelResponse -> f DescribeChannelResponse)
-> ((Maybe [PipelineDetail] -> f (Maybe [PipelineDetail]))
    -> Maybe [PipelineDetail] -> f (Maybe [PipelineDetail]))
-> (Maybe [PipelineDetail] -> f (Maybe [PipelineDetail]))
-> DescribeChannelResponse
-> f DescribeChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [PipelineDetail] [PipelineDetail] [PipelineDetail] [PipelineDetail]
-> Iso
     (Maybe [PipelineDetail])
     (Maybe [PipelineDetail])
     (Maybe [PipelineDetail])
     (Maybe [PipelineDetail])
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
  [PipelineDetail] [PipelineDetail] [PipelineDetail] [PipelineDetail]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Specification of network and file inputs for this channel
describeChannelResponse_inputSpecification :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe InputSpecification)
describeChannelResponse_inputSpecification :: (Maybe InputSpecification -> f (Maybe InputSpecification))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_inputSpecification = (DescribeChannelResponse -> Maybe InputSpecification)
-> (DescribeChannelResponse
    -> Maybe InputSpecification -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe InputSpecification)
     (Maybe InputSpecification)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe InputSpecification
inputSpecification :: Maybe InputSpecification
$sel:inputSpecification:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe InputSpecification
inputSpecification} -> Maybe InputSpecification
inputSpecification) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe InputSpecification
a -> DescribeChannelResponse
s {$sel:inputSpecification:DescribeChannelResponse' :: Maybe InputSpecification
inputSpecification = Maybe InputSpecification
a} :: DescribeChannelResponse)

-- | List of input attachments for channel.
describeChannelResponse_inputAttachments :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe [InputAttachment])
describeChannelResponse_inputAttachments :: (Maybe [InputAttachment] -> f (Maybe [InputAttachment]))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_inputAttachments = (DescribeChannelResponse -> Maybe [InputAttachment])
-> (DescribeChannelResponse
    -> Maybe [InputAttachment] -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe [InputAttachment])
     (Maybe [InputAttachment])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe [InputAttachment]
inputAttachments :: Maybe [InputAttachment]
$sel:inputAttachments:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe [InputAttachment]
inputAttachments} -> Maybe [InputAttachment]
inputAttachments) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe [InputAttachment]
a -> DescribeChannelResponse
s {$sel:inputAttachments:DescribeChannelResponse' :: Maybe [InputAttachment]
inputAttachments = Maybe [InputAttachment]
a} :: DescribeChannelResponse) ((Maybe [InputAttachment] -> f (Maybe [InputAttachment]))
 -> DescribeChannelResponse -> f DescribeChannelResponse)
-> ((Maybe [InputAttachment] -> f (Maybe [InputAttachment]))
    -> Maybe [InputAttachment] -> f (Maybe [InputAttachment]))
-> (Maybe [InputAttachment] -> f (Maybe [InputAttachment]))
-> DescribeChannelResponse
-> f DescribeChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [InputAttachment]
  [InputAttachment]
  [InputAttachment]
  [InputAttachment]
-> Iso
     (Maybe [InputAttachment])
     (Maybe [InputAttachment])
     (Maybe [InputAttachment])
     (Maybe [InputAttachment])
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
  [InputAttachment]
  [InputAttachment]
  [InputAttachment]
  [InputAttachment]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A list of destinations of the channel. For UDP outputs, there is one
-- destination per output. For other types (HLS, for example), there is one
-- destination per packager.
describeChannelResponse_destinations :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe [OutputDestination])
describeChannelResponse_destinations :: (Maybe [OutputDestination] -> f (Maybe [OutputDestination]))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_destinations = (DescribeChannelResponse -> Maybe [OutputDestination])
-> (DescribeChannelResponse
    -> Maybe [OutputDestination] -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe [OutputDestination])
     (Maybe [OutputDestination])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe [OutputDestination]
destinations :: Maybe [OutputDestination]
$sel:destinations:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe [OutputDestination]
destinations} -> Maybe [OutputDestination]
destinations) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe [OutputDestination]
a -> DescribeChannelResponse
s {$sel:destinations:DescribeChannelResponse' :: Maybe [OutputDestination]
destinations = Maybe [OutputDestination]
a} :: DescribeChannelResponse) ((Maybe [OutputDestination] -> f (Maybe [OutputDestination]))
 -> DescribeChannelResponse -> f DescribeChannelResponse)
-> ((Maybe [OutputDestination] -> f (Maybe [OutputDestination]))
    -> Maybe [OutputDestination] -> f (Maybe [OutputDestination]))
-> (Maybe [OutputDestination] -> f (Maybe [OutputDestination]))
-> DescribeChannelResponse
-> f DescribeChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [OutputDestination]
  [OutputDestination]
  [OutputDestination]
  [OutputDestination]
-> Iso
     (Maybe [OutputDestination])
     (Maybe [OutputDestination])
     (Maybe [OutputDestination])
     (Maybe [OutputDestination])
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
  [OutputDestination]
  [OutputDestination]
  [OutputDestination]
  [OutputDestination]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the channel. (user-mutable)
describeChannelResponse_name :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.Text)
describeChannelResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_name = (DescribeChannelResponse -> Maybe Text)
-> (DescribeChannelResponse
    -> Maybe Text -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe Text
a -> DescribeChannelResponse
s {$sel:name:DescribeChannelResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeChannelResponse)

-- | Specification of CDI inputs for this channel
describeChannelResponse_cdiInputSpecification :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe CdiInputSpecification)
describeChannelResponse_cdiInputSpecification :: (Maybe CdiInputSpecification -> f (Maybe CdiInputSpecification))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_cdiInputSpecification = (DescribeChannelResponse -> Maybe CdiInputSpecification)
-> (DescribeChannelResponse
    -> Maybe CdiInputSpecification -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe CdiInputSpecification)
     (Maybe CdiInputSpecification)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe CdiInputSpecification
cdiInputSpecification :: Maybe CdiInputSpecification
$sel:cdiInputSpecification:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe CdiInputSpecification
cdiInputSpecification} -> Maybe CdiInputSpecification
cdiInputSpecification) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe CdiInputSpecification
a -> DescribeChannelResponse
s {$sel:cdiInputSpecification:DescribeChannelResponse' :: Maybe CdiInputSpecification
cdiInputSpecification = Maybe CdiInputSpecification
a} :: DescribeChannelResponse)

-- | The unique id of the channel.
describeChannelResponse_id :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.Text)
describeChannelResponse_id :: (Maybe Text -> f (Maybe Text))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_id = (DescribeChannelResponse -> Maybe Text)
-> (DescribeChannelResponse
    -> Maybe Text -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe Text
id :: Maybe Text
$sel:id:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe Text
a -> DescribeChannelResponse
s {$sel:id:DescribeChannelResponse' :: Maybe Text
id = Maybe Text
a} :: DescribeChannelResponse)

-- | The class for this channel. STANDARD for a channel with two pipelines or
-- SINGLE_PIPELINE for a channel with one pipeline.
describeChannelResponse_channelClass :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe ChannelClass)
describeChannelResponse_channelClass :: (Maybe ChannelClass -> f (Maybe ChannelClass))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_channelClass = (DescribeChannelResponse -> Maybe ChannelClass)
-> (DescribeChannelResponse
    -> Maybe ChannelClass -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe ChannelClass)
     (Maybe ChannelClass)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe ChannelClass
channelClass :: Maybe ChannelClass
$sel:channelClass:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe ChannelClass
channelClass} -> Maybe ChannelClass
channelClass) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe ChannelClass
a -> DescribeChannelResponse
s {$sel:channelClass:DescribeChannelResponse' :: Maybe ChannelClass
channelClass = Maybe ChannelClass
a} :: DescribeChannelResponse)

-- | Settings for VPC output
describeChannelResponse_vpc :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe VpcOutputSettingsDescription)
describeChannelResponse_vpc :: (Maybe VpcOutputSettingsDescription
 -> f (Maybe VpcOutputSettingsDescription))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_vpc = (DescribeChannelResponse -> Maybe VpcOutputSettingsDescription)
-> (DescribeChannelResponse
    -> Maybe VpcOutputSettingsDescription -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe VpcOutputSettingsDescription)
     (Maybe VpcOutputSettingsDescription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe VpcOutputSettingsDescription
vpc :: Maybe VpcOutputSettingsDescription
$sel:vpc:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe VpcOutputSettingsDescription
vpc} -> Maybe VpcOutputSettingsDescription
vpc) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe VpcOutputSettingsDescription
a -> DescribeChannelResponse
s {$sel:vpc:DescribeChannelResponse' :: Maybe VpcOutputSettingsDescription
vpc = Maybe VpcOutputSettingsDescription
a} :: DescribeChannelResponse)

-- | The endpoints where outgoing connections initiate from
describeChannelResponse_egressEndpoints :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe [ChannelEgressEndpoint])
describeChannelResponse_egressEndpoints :: (Maybe [ChannelEgressEndpoint]
 -> f (Maybe [ChannelEgressEndpoint]))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_egressEndpoints = (DescribeChannelResponse -> Maybe [ChannelEgressEndpoint])
-> (DescribeChannelResponse
    -> Maybe [ChannelEgressEndpoint] -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe [ChannelEgressEndpoint])
     (Maybe [ChannelEgressEndpoint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe [ChannelEgressEndpoint]
egressEndpoints :: Maybe [ChannelEgressEndpoint]
$sel:egressEndpoints:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe [ChannelEgressEndpoint]
egressEndpoints} -> Maybe [ChannelEgressEndpoint]
egressEndpoints) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe [ChannelEgressEndpoint]
a -> DescribeChannelResponse
s {$sel:egressEndpoints:DescribeChannelResponse' :: Maybe [ChannelEgressEndpoint]
egressEndpoints = Maybe [ChannelEgressEndpoint]
a} :: DescribeChannelResponse) ((Maybe [ChannelEgressEndpoint]
  -> f (Maybe [ChannelEgressEndpoint]))
 -> DescribeChannelResponse -> f DescribeChannelResponse)
-> ((Maybe [ChannelEgressEndpoint]
     -> f (Maybe [ChannelEgressEndpoint]))
    -> Maybe [ChannelEgressEndpoint]
    -> f (Maybe [ChannelEgressEndpoint]))
-> (Maybe [ChannelEgressEndpoint]
    -> f (Maybe [ChannelEgressEndpoint]))
-> DescribeChannelResponse
-> f DescribeChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ChannelEgressEndpoint]
  [ChannelEgressEndpoint]
  [ChannelEgressEndpoint]
  [ChannelEgressEndpoint]
-> Iso
     (Maybe [ChannelEgressEndpoint])
     (Maybe [ChannelEgressEndpoint])
     (Maybe [ChannelEgressEndpoint])
     (Maybe [ChannelEgressEndpoint])
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
  [ChannelEgressEndpoint]
  [ChannelEgressEndpoint]
  [ChannelEgressEndpoint]
  [ChannelEgressEndpoint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A collection of key-value pairs.
describeChannelResponse_tags :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeChannelResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_tags = (DescribeChannelResponse -> Maybe (HashMap Text Text))
-> (DescribeChannelResponse
    -> Maybe (HashMap Text Text) -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe (HashMap Text Text)
a -> DescribeChannelResponse
s {$sel:tags:DescribeChannelResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeChannelResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeChannelResponse -> f DescribeChannelResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeChannelResponse
-> f DescribeChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
describeChannelResponse_encoderSettings :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe EncoderSettings)
describeChannelResponse_encoderSettings :: (Maybe EncoderSettings -> f (Maybe EncoderSettings))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_encoderSettings = (DescribeChannelResponse -> Maybe EncoderSettings)
-> (DescribeChannelResponse
    -> Maybe EncoderSettings -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe EncoderSettings)
     (Maybe EncoderSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe EncoderSettings
encoderSettings :: Maybe EncoderSettings
$sel:encoderSettings:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe EncoderSettings
encoderSettings} -> Maybe EncoderSettings
encoderSettings) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe EncoderSettings
a -> DescribeChannelResponse
s {$sel:encoderSettings:DescribeChannelResponse' :: Maybe EncoderSettings
encoderSettings = Maybe EncoderSettings
a} :: DescribeChannelResponse)

-- | The Amazon Resource Name (ARN) of the role assumed when running the
-- Channel.
describeChannelResponse_roleArn :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.Text)
describeChannelResponse_roleArn :: (Maybe Text -> f (Maybe Text))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_roleArn = (DescribeChannelResponse -> Maybe Text)
-> (DescribeChannelResponse
    -> Maybe Text -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe Text
a -> DescribeChannelResponse
s {$sel:roleArn:DescribeChannelResponse' :: Maybe Text
roleArn = Maybe Text
a} :: DescribeChannelResponse)

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

instance Prelude.NFData DescribeChannelResponse