{-# 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.MediaTailor.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)
--
-- Describes the properties of a specific channel.
module Amazonka.MediaTailor.DescribeChannel
  ( -- * Creating a Request
    DescribeChannel (..),
    newDescribeChannel,

    -- * Request Lenses
    describeChannel_channelName,

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

    -- * Response Lenses
    describeChannelResponse_creationTime,
    describeChannelResponse_arn,
    describeChannelResponse_lastModifiedTime,
    describeChannelResponse_playbackMode,
    describeChannelResponse_channelName,
    describeChannelResponse_outputs,
    describeChannelResponse_channelState,
    describeChannelResponse_fillerSlate,
    describeChannelResponse_tags,
    describeChannelResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeChannel' smart constructor.
data DescribeChannel = DescribeChannel'
  { -- | The identifier for the channel you are working on.
    DescribeChannel -> Text
channelName :: 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:
--
-- 'channelName', 'describeChannel_channelName' - The identifier for the channel you are working on.
newDescribeChannel ::
  -- | 'channelName'
  Prelude.Text ->
  DescribeChannel
newDescribeChannel :: Text -> DescribeChannel
newDescribeChannel Text
pChannelName_ =
  DescribeChannel' :: Text -> DescribeChannel
DescribeChannel' {$sel:channelName:DescribeChannel' :: Text
channelName = Text
pChannelName_}

-- | The identifier for the channel you are working on.
describeChannel_channelName :: Lens.Lens' DescribeChannel Prelude.Text
describeChannel_channelName :: (Text -> f Text) -> DescribeChannel -> f DescribeChannel
describeChannel_channelName = (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
channelName :: Text
$sel:channelName:DescribeChannel' :: DescribeChannel -> Text
channelName} -> Text
channelName) (\s :: DescribeChannel
s@DescribeChannel' {} Text
a -> DescribeChannel
s {$sel:channelName:DescribeChannel' :: Text
channelName = 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 POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe [ResponseOutputItem]
-> Maybe ChannelState
-> Maybe SlateSource
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse
DescribeChannelResponse'
            (Maybe POSIX
 -> Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe [ResponseOutputItem]
 -> Maybe ChannelState
 -> Maybe SlateSource
 -> Maybe (HashMap Text Text)
 -> Int
 -> DescribeChannelResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe [ResponseOutputItem]
      -> Maybe ChannelState
      -> Maybe SlateSource
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationTime")
            Either
  String
  (Maybe Text
   -> Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe [ResponseOutputItem]
   -> Maybe ChannelState
   -> Maybe SlateSource
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe [ResponseOutputItem]
      -> Maybe ChannelState
      -> Maybe SlateSource
      -> Maybe (HashMap Text 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 POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe [ResponseOutputItem]
   -> Maybe ChannelState
   -> Maybe SlateSource
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe [ResponseOutputItem]
      -> Maybe ChannelState
      -> Maybe SlateSource
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedTime")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe [ResponseOutputItem]
   -> Maybe ChannelState
   -> Maybe SlateSource
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe [ResponseOutputItem]
      -> Maybe ChannelState
      -> Maybe SlateSource
      -> Maybe (HashMap Text 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
"PlaybackMode")
            Either
  String
  (Maybe Text
   -> Maybe [ResponseOutputItem]
   -> Maybe ChannelState
   -> Maybe SlateSource
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [ResponseOutputItem]
      -> Maybe ChannelState
      -> Maybe SlateSource
      -> Maybe (HashMap Text 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
"ChannelName")
            Either
  String
  (Maybe [ResponseOutputItem]
   -> Maybe ChannelState
   -> Maybe SlateSource
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe [ResponseOutputItem])
-> Either
     String
     (Maybe ChannelState
      -> Maybe SlateSource
      -> Maybe (HashMap Text 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 [ResponseOutputItem]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Outputs" Either String (Maybe (Maybe [ResponseOutputItem]))
-> Maybe [ResponseOutputItem]
-> Either String (Maybe [ResponseOutputItem])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ResponseOutputItem]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe ChannelState
   -> Maybe SlateSource
   -> Maybe (HashMap Text Text)
   -> Int
   -> DescribeChannelResponse)
-> Either String (Maybe ChannelState)
-> Either
     String
     (Maybe SlateSource
      -> Maybe (HashMap Text Text) -> Int -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => 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
"ChannelState")
            Either
  String
  (Maybe SlateSource
   -> Maybe (HashMap Text Text) -> Int -> DescribeChannelResponse)
-> Either String (Maybe SlateSource)
-> Either
     String
     (Maybe (HashMap Text Text) -> Int -> DescribeChannelResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe SlateSource)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FillerSlate")
            Either
  String
  (Maybe (HashMap Text Text) -> Int -> DescribeChannelResponse)
-> Either String (Maybe (HashMap Text 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 (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 (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
channelName :: Text
$sel:channelName:DescribeChannel' :: DescribeChannel -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/channel/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
channelName]

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

-- | /See:/ 'newDescribeChannelResponse' smart constructor.
data DescribeChannelResponse = DescribeChannelResponse'
  { -- | The timestamp of when the channel was created.
    DescribeChannelResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The ARN of the channel.
    DescribeChannelResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The timestamp of when the channel was last modified.
    DescribeChannelResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
    -- | The channel\'s playback mode.
    DescribeChannelResponse -> Maybe Text
playbackMode :: Prelude.Maybe Prelude.Text,
    -- | The name of the channel.
    DescribeChannelResponse -> Maybe Text
channelName :: Prelude.Maybe Prelude.Text,
    -- | The channel\'s output properties.
    DescribeChannelResponse -> Maybe [ResponseOutputItem]
outputs :: Prelude.Maybe [ResponseOutputItem],
    -- | Indicates whether the channel is in a running state or not.
    DescribeChannelResponse -> Maybe ChannelState
channelState :: Prelude.Maybe ChannelState,
    -- | Contains information about the slate used to fill gaps between programs
    -- in the schedule.
    DescribeChannelResponse -> Maybe SlateSource
fillerSlate :: Prelude.Maybe SlateSource,
    -- | The tags assigned to the channel.
    DescribeChannelResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text 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:
--
-- 'creationTime', 'describeChannelResponse_creationTime' - The timestamp of when the channel was created.
--
-- 'arn', 'describeChannelResponse_arn' - The ARN of the channel.
--
-- 'lastModifiedTime', 'describeChannelResponse_lastModifiedTime' - The timestamp of when the channel was last modified.
--
-- 'playbackMode', 'describeChannelResponse_playbackMode' - The channel\'s playback mode.
--
-- 'channelName', 'describeChannelResponse_channelName' - The name of the channel.
--
-- 'outputs', 'describeChannelResponse_outputs' - The channel\'s output properties.
--
-- 'channelState', 'describeChannelResponse_channelState' - Indicates whether the channel is in a running state or not.
--
-- 'fillerSlate', 'describeChannelResponse_fillerSlate' - Contains information about the slate used to fill gaps between programs
-- in the schedule.
--
-- 'tags', 'describeChannelResponse_tags' - The tags assigned to the channel.
--
-- 'httpStatus', 'describeChannelResponse_httpStatus' - The response's http status code.
newDescribeChannelResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeChannelResponse
newDescribeChannelResponse :: Int -> DescribeChannelResponse
newDescribeChannelResponse Int
pHttpStatus_ =
  DescribeChannelResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe [ResponseOutputItem]
-> Maybe ChannelState
-> Maybe SlateSource
-> Maybe (HashMap Text Text)
-> Int
-> DescribeChannelResponse
DescribeChannelResponse'
    { $sel:creationTime:DescribeChannelResponse' :: Maybe POSIX
creationTime =
        Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:DescribeChannelResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:DescribeChannelResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:playbackMode:DescribeChannelResponse' :: Maybe Text
playbackMode = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:channelName:DescribeChannelResponse' :: Maybe Text
channelName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:outputs:DescribeChannelResponse' :: Maybe [ResponseOutputItem]
outputs = Maybe [ResponseOutputItem]
forall a. Maybe a
Prelude.Nothing,
      $sel:channelState:DescribeChannelResponse' :: Maybe ChannelState
channelState = Maybe ChannelState
forall a. Maybe a
Prelude.Nothing,
      $sel:fillerSlate:DescribeChannelResponse' :: Maybe SlateSource
fillerSlate = Maybe SlateSource
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:httpStatus:DescribeChannelResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The timestamp of when the channel was created.
describeChannelResponse_creationTime :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.UTCTime)
describeChannelResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_creationTime = (DescribeChannelResponse -> Maybe POSIX)
-> (DescribeChannelResponse
    -> Maybe POSIX -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe POSIX
a -> DescribeChannelResponse
s {$sel:creationTime:DescribeChannelResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeChannelResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeChannelResponse -> f DescribeChannelResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeChannelResponse
-> f DescribeChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The 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 timestamp of when the channel was last modified.
describeChannelResponse_lastModifiedTime :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.UTCTime)
describeChannelResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_lastModifiedTime = (DescribeChannelResponse -> Maybe POSIX)
-> (DescribeChannelResponse
    -> Maybe POSIX -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe POSIX
a -> DescribeChannelResponse
s {$sel:lastModifiedTime:DescribeChannelResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeChannelResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> DescribeChannelResponse -> f DescribeChannelResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeChannelResponse
-> f DescribeChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The channel\'s playback mode.
describeChannelResponse_playbackMode :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.Text)
describeChannelResponse_playbackMode :: (Maybe Text -> f (Maybe Text))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_playbackMode = (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
playbackMode :: Maybe Text
$sel:playbackMode:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe Text
playbackMode} -> Maybe Text
playbackMode) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe Text
a -> DescribeChannelResponse
s {$sel:playbackMode:DescribeChannelResponse' :: Maybe Text
playbackMode = Maybe Text
a} :: DescribeChannelResponse)

-- | The name of the channel.
describeChannelResponse_channelName :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe Prelude.Text)
describeChannelResponse_channelName :: (Maybe Text -> f (Maybe Text))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_channelName = (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
channelName :: Maybe Text
$sel:channelName:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe Text
channelName} -> Maybe Text
channelName) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe Text
a -> DescribeChannelResponse
s {$sel:channelName:DescribeChannelResponse' :: Maybe Text
channelName = Maybe Text
a} :: DescribeChannelResponse)

-- | The channel\'s output properties.
describeChannelResponse_outputs :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe [ResponseOutputItem])
describeChannelResponse_outputs :: (Maybe [ResponseOutputItem] -> f (Maybe [ResponseOutputItem]))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_outputs = (DescribeChannelResponse -> Maybe [ResponseOutputItem])
-> (DescribeChannelResponse
    -> Maybe [ResponseOutputItem] -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe [ResponseOutputItem])
     (Maybe [ResponseOutputItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe [ResponseOutputItem]
outputs :: Maybe [ResponseOutputItem]
$sel:outputs:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe [ResponseOutputItem]
outputs} -> Maybe [ResponseOutputItem]
outputs) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe [ResponseOutputItem]
a -> DescribeChannelResponse
s {$sel:outputs:DescribeChannelResponse' :: Maybe [ResponseOutputItem]
outputs = Maybe [ResponseOutputItem]
a} :: DescribeChannelResponse) ((Maybe [ResponseOutputItem] -> f (Maybe [ResponseOutputItem]))
 -> DescribeChannelResponse -> f DescribeChannelResponse)
-> ((Maybe [ResponseOutputItem] -> f (Maybe [ResponseOutputItem]))
    -> Maybe [ResponseOutputItem] -> f (Maybe [ResponseOutputItem]))
-> (Maybe [ResponseOutputItem] -> f (Maybe [ResponseOutputItem]))
-> DescribeChannelResponse
-> f DescribeChannelResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ResponseOutputItem]
  [ResponseOutputItem]
  [ResponseOutputItem]
  [ResponseOutputItem]
-> Iso
     (Maybe [ResponseOutputItem])
     (Maybe [ResponseOutputItem])
     (Maybe [ResponseOutputItem])
     (Maybe [ResponseOutputItem])
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
  [ResponseOutputItem]
  [ResponseOutputItem]
  [ResponseOutputItem]
  [ResponseOutputItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Indicates whether the channel is in a running state or not.
describeChannelResponse_channelState :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe ChannelState)
describeChannelResponse_channelState :: (Maybe ChannelState -> f (Maybe ChannelState))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_channelState = (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
channelState :: Maybe ChannelState
$sel:channelState:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe ChannelState
channelState} -> Maybe ChannelState
channelState) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe ChannelState
a -> DescribeChannelResponse
s {$sel:channelState:DescribeChannelResponse' :: Maybe ChannelState
channelState = Maybe ChannelState
a} :: DescribeChannelResponse)

-- | Contains information about the slate used to fill gaps between programs
-- in the schedule.
describeChannelResponse_fillerSlate :: Lens.Lens' DescribeChannelResponse (Prelude.Maybe SlateSource)
describeChannelResponse_fillerSlate :: (Maybe SlateSource -> f (Maybe SlateSource))
-> DescribeChannelResponse -> f DescribeChannelResponse
describeChannelResponse_fillerSlate = (DescribeChannelResponse -> Maybe SlateSource)
-> (DescribeChannelResponse
    -> Maybe SlateSource -> DescribeChannelResponse)
-> Lens
     DescribeChannelResponse
     DescribeChannelResponse
     (Maybe SlateSource)
     (Maybe SlateSource)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeChannelResponse' {Maybe SlateSource
fillerSlate :: Maybe SlateSource
$sel:fillerSlate:DescribeChannelResponse' :: DescribeChannelResponse -> Maybe SlateSource
fillerSlate} -> Maybe SlateSource
fillerSlate) (\s :: DescribeChannelResponse
s@DescribeChannelResponse' {} Maybe SlateSource
a -> DescribeChannelResponse
s {$sel:fillerSlate:DescribeChannelResponse' :: Maybe SlateSource
fillerSlate = Maybe SlateSource
a} :: DescribeChannelResponse)

-- | The tags assigned to the channel.
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

-- | 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