{-# 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.DescribeLiveSource
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- The live source to describe.
module Amazonka.MediaTailor.DescribeLiveSource
  ( -- * Creating a Request
    DescribeLiveSource (..),
    newDescribeLiveSource,

    -- * Request Lenses
    describeLiveSource_liveSourceName,
    describeLiveSource_sourceLocationName,

    -- * Destructuring the Response
    DescribeLiveSourceResponse (..),
    newDescribeLiveSourceResponse,

    -- * Response Lenses
    describeLiveSourceResponse_arn,
    describeLiveSourceResponse_creationTime,
    describeLiveSourceResponse_httpPackageConfigurations,
    describeLiveSourceResponse_lastModifiedTime,
    describeLiveSourceResponse_liveSourceName,
    describeLiveSourceResponse_sourceLocationName,
    describeLiveSourceResponse_tags,
    describeLiveSourceResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeLiveSource' smart constructor.
data DescribeLiveSource = DescribeLiveSource'
  { -- | The name of the live source.
    DescribeLiveSource -> Text
liveSourceName :: Prelude.Text,
    -- | The name of the source location associated with this Live Source.
    DescribeLiveSource -> Text
sourceLocationName :: Prelude.Text
  }
  deriving (DescribeLiveSource -> DescribeLiveSource -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLiveSource -> DescribeLiveSource -> Bool
$c/= :: DescribeLiveSource -> DescribeLiveSource -> Bool
== :: DescribeLiveSource -> DescribeLiveSource -> Bool
$c== :: DescribeLiveSource -> DescribeLiveSource -> Bool
Prelude.Eq, ReadPrec [DescribeLiveSource]
ReadPrec DescribeLiveSource
Int -> ReadS DescribeLiveSource
ReadS [DescribeLiveSource]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLiveSource]
$creadListPrec :: ReadPrec [DescribeLiveSource]
readPrec :: ReadPrec DescribeLiveSource
$creadPrec :: ReadPrec DescribeLiveSource
readList :: ReadS [DescribeLiveSource]
$creadList :: ReadS [DescribeLiveSource]
readsPrec :: Int -> ReadS DescribeLiveSource
$creadsPrec :: Int -> ReadS DescribeLiveSource
Prelude.Read, Int -> DescribeLiveSource -> ShowS
[DescribeLiveSource] -> ShowS
DescribeLiveSource -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLiveSource] -> ShowS
$cshowList :: [DescribeLiveSource] -> ShowS
show :: DescribeLiveSource -> String
$cshow :: DescribeLiveSource -> String
showsPrec :: Int -> DescribeLiveSource -> ShowS
$cshowsPrec :: Int -> DescribeLiveSource -> ShowS
Prelude.Show, forall x. Rep DescribeLiveSource x -> DescribeLiveSource
forall x. DescribeLiveSource -> Rep DescribeLiveSource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeLiveSource x -> DescribeLiveSource
$cfrom :: forall x. DescribeLiveSource -> Rep DescribeLiveSource x
Prelude.Generic)

-- |
-- Create a value of 'DescribeLiveSource' 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:
--
-- 'liveSourceName', 'describeLiveSource_liveSourceName' - The name of the live source.
--
-- 'sourceLocationName', 'describeLiveSource_sourceLocationName' - The name of the source location associated with this Live Source.
newDescribeLiveSource ::
  -- | 'liveSourceName'
  Prelude.Text ->
  -- | 'sourceLocationName'
  Prelude.Text ->
  DescribeLiveSource
newDescribeLiveSource :: Text -> Text -> DescribeLiveSource
newDescribeLiveSource
  Text
pLiveSourceName_
  Text
pSourceLocationName_ =
    DescribeLiveSource'
      { $sel:liveSourceName:DescribeLiveSource' :: Text
liveSourceName =
          Text
pLiveSourceName_,
        $sel:sourceLocationName:DescribeLiveSource' :: Text
sourceLocationName = Text
pSourceLocationName_
      }

-- | The name of the live source.
describeLiveSource_liveSourceName :: Lens.Lens' DescribeLiveSource Prelude.Text
describeLiveSource_liveSourceName :: Lens' DescribeLiveSource Text
describeLiveSource_liveSourceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLiveSource' {Text
liveSourceName :: Text
$sel:liveSourceName:DescribeLiveSource' :: DescribeLiveSource -> Text
liveSourceName} -> Text
liveSourceName) (\s :: DescribeLiveSource
s@DescribeLiveSource' {} Text
a -> DescribeLiveSource
s {$sel:liveSourceName:DescribeLiveSource' :: Text
liveSourceName = Text
a} :: DescribeLiveSource)

-- | The name of the source location associated with this Live Source.
describeLiveSource_sourceLocationName :: Lens.Lens' DescribeLiveSource Prelude.Text
describeLiveSource_sourceLocationName :: Lens' DescribeLiveSource Text
describeLiveSource_sourceLocationName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLiveSource' {Text
sourceLocationName :: Text
$sel:sourceLocationName:DescribeLiveSource' :: DescribeLiveSource -> Text
sourceLocationName} -> Text
sourceLocationName) (\s :: DescribeLiveSource
s@DescribeLiveSource' {} Text
a -> DescribeLiveSource
s {$sel:sourceLocationName:DescribeLiveSource' :: Text
sourceLocationName = Text
a} :: DescribeLiveSource)

instance Core.AWSRequest DescribeLiveSource where
  type
    AWSResponse DescribeLiveSource =
      DescribeLiveSourceResponse
  request :: (Service -> Service)
-> DescribeLiveSource -> Request DescribeLiveSource
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeLiveSource
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeLiveSource)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe POSIX
-> Maybe [HttpPackageConfiguration]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribeLiveSourceResponse
DescribeLiveSourceResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreationTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"HttpPackageConfigurations"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LiveSourceName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"SourceLocationName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeLiveSource where
  hashWithSalt :: Int -> DescribeLiveSource -> Int
hashWithSalt Int
_salt DescribeLiveSource' {Text
sourceLocationName :: Text
liveSourceName :: Text
$sel:sourceLocationName:DescribeLiveSource' :: DescribeLiveSource -> Text
$sel:liveSourceName:DescribeLiveSource' :: DescribeLiveSource -> Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
liveSourceName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
sourceLocationName

instance Prelude.NFData DescribeLiveSource where
  rnf :: DescribeLiveSource -> ()
rnf DescribeLiveSource' {Text
sourceLocationName :: Text
liveSourceName :: Text
$sel:sourceLocationName:DescribeLiveSource' :: DescribeLiveSource -> Text
$sel:liveSourceName:DescribeLiveSource' :: DescribeLiveSource -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
liveSourceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
sourceLocationName

instance Data.ToHeaders DescribeLiveSource where
  toHeaders :: DescribeLiveSource -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToPath DescribeLiveSource where
  toPath :: DescribeLiveSource -> ByteString
toPath DescribeLiveSource' {Text
sourceLocationName :: Text
liveSourceName :: Text
$sel:sourceLocationName:DescribeLiveSource' :: DescribeLiveSource -> Text
$sel:liveSourceName:DescribeLiveSource' :: DescribeLiveSource -> Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/sourceLocation/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
sourceLocationName,
        ByteString
"/liveSource/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
liveSourceName
      ]

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

-- | /See:/ 'newDescribeLiveSourceResponse' smart constructor.
data DescribeLiveSourceResponse = DescribeLiveSourceResponse'
  { -- | The ARN of the live source.
    DescribeLiveSourceResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The timestamp that indicates when the live source was created.
    DescribeLiveSourceResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The HTTP package configurations.
    DescribeLiveSourceResponse -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations :: Prelude.Maybe [HttpPackageConfiguration],
    -- | The timestamp that indicates when the live source was modified.
    DescribeLiveSourceResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | The name of the live source.
    DescribeLiveSourceResponse -> Maybe Text
liveSourceName :: Prelude.Maybe Prelude.Text,
    -- | The name of the source location associated with the live source.
    DescribeLiveSourceResponse -> Maybe Text
sourceLocationName :: Prelude.Maybe Prelude.Text,
    -- | The tags assigned to the live source. Tags are key-value pairs that you
    -- can associate with Amazon resources to help with organization, access
    -- control, and cost tracking. For more information, see
    -- <https://docs.aws.amazon.com/mediatailor/latest/ug/tagging.html Tagging AWS Elemental MediaTailor Resources>.
    DescribeLiveSourceResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeLiveSourceResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeLiveSourceResponse -> DescribeLiveSourceResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLiveSourceResponse -> DescribeLiveSourceResponse -> Bool
$c/= :: DescribeLiveSourceResponse -> DescribeLiveSourceResponse -> Bool
== :: DescribeLiveSourceResponse -> DescribeLiveSourceResponse -> Bool
$c== :: DescribeLiveSourceResponse -> DescribeLiveSourceResponse -> Bool
Prelude.Eq, ReadPrec [DescribeLiveSourceResponse]
ReadPrec DescribeLiveSourceResponse
Int -> ReadS DescribeLiveSourceResponse
ReadS [DescribeLiveSourceResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLiveSourceResponse]
$creadListPrec :: ReadPrec [DescribeLiveSourceResponse]
readPrec :: ReadPrec DescribeLiveSourceResponse
$creadPrec :: ReadPrec DescribeLiveSourceResponse
readList :: ReadS [DescribeLiveSourceResponse]
$creadList :: ReadS [DescribeLiveSourceResponse]
readsPrec :: Int -> ReadS DescribeLiveSourceResponse
$creadsPrec :: Int -> ReadS DescribeLiveSourceResponse
Prelude.Read, Int -> DescribeLiveSourceResponse -> ShowS
[DescribeLiveSourceResponse] -> ShowS
DescribeLiveSourceResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLiveSourceResponse] -> ShowS
$cshowList :: [DescribeLiveSourceResponse] -> ShowS
show :: DescribeLiveSourceResponse -> String
$cshow :: DescribeLiveSourceResponse -> String
showsPrec :: Int -> DescribeLiveSourceResponse -> ShowS
$cshowsPrec :: Int -> DescribeLiveSourceResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeLiveSourceResponse x -> DescribeLiveSourceResponse
forall x.
DescribeLiveSourceResponse -> Rep DescribeLiveSourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeLiveSourceResponse x -> DescribeLiveSourceResponse
$cfrom :: forall x.
DescribeLiveSourceResponse -> Rep DescribeLiveSourceResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeLiveSourceResponse' 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:
--
-- 'arn', 'describeLiveSourceResponse_arn' - The ARN of the live source.
--
-- 'creationTime', 'describeLiveSourceResponse_creationTime' - The timestamp that indicates when the live source was created.
--
-- 'httpPackageConfigurations', 'describeLiveSourceResponse_httpPackageConfigurations' - The HTTP package configurations.
--
-- 'lastModifiedTime', 'describeLiveSourceResponse_lastModifiedTime' - The timestamp that indicates when the live source was modified.
--
-- 'liveSourceName', 'describeLiveSourceResponse_liveSourceName' - The name of the live source.
--
-- 'sourceLocationName', 'describeLiveSourceResponse_sourceLocationName' - The name of the source location associated with the live source.
--
-- 'tags', 'describeLiveSourceResponse_tags' - The tags assigned to the live source. Tags are key-value pairs that you
-- can associate with Amazon resources to help with organization, access
-- control, and cost tracking. For more information, see
-- <https://docs.aws.amazon.com/mediatailor/latest/ug/tagging.html Tagging AWS Elemental MediaTailor Resources>.
--
-- 'httpStatus', 'describeLiveSourceResponse_httpStatus' - The response's http status code.
newDescribeLiveSourceResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeLiveSourceResponse
newDescribeLiveSourceResponse :: Int -> DescribeLiveSourceResponse
newDescribeLiveSourceResponse Int
pHttpStatus_ =
  DescribeLiveSourceResponse'
    { $sel:arn:DescribeLiveSourceResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:DescribeLiveSourceResponse' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:httpPackageConfigurations:DescribeLiveSourceResponse' :: Maybe [HttpPackageConfiguration]
httpPackageConfigurations = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:DescribeLiveSourceResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:liveSourceName:DescribeLiveSourceResponse' :: Maybe Text
liveSourceName = forall a. Maybe a
Prelude.Nothing,
      $sel:sourceLocationName:DescribeLiveSourceResponse' :: Maybe Text
sourceLocationName = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribeLiveSourceResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeLiveSourceResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The ARN of the live source.
describeLiveSourceResponse_arn :: Lens.Lens' DescribeLiveSourceResponse (Prelude.Maybe Prelude.Text)
describeLiveSourceResponse_arn :: Lens' DescribeLiveSourceResponse (Maybe Text)
describeLiveSourceResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLiveSourceResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeLiveSourceResponse
s@DescribeLiveSourceResponse' {} Maybe Text
a -> DescribeLiveSourceResponse
s {$sel:arn:DescribeLiveSourceResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeLiveSourceResponse)

-- | The timestamp that indicates when the live source was created.
describeLiveSourceResponse_creationTime :: Lens.Lens' DescribeLiveSourceResponse (Prelude.Maybe Prelude.UTCTime)
describeLiveSourceResponse_creationTime :: Lens' DescribeLiveSourceResponse (Maybe UTCTime)
describeLiveSourceResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLiveSourceResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeLiveSourceResponse
s@DescribeLiveSourceResponse' {} Maybe POSIX
a -> DescribeLiveSourceResponse
s {$sel:creationTime:DescribeLiveSourceResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeLiveSourceResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The HTTP package configurations.
describeLiveSourceResponse_httpPackageConfigurations :: Lens.Lens' DescribeLiveSourceResponse (Prelude.Maybe [HttpPackageConfiguration])
describeLiveSourceResponse_httpPackageConfigurations :: Lens' DescribeLiveSourceResponse (Maybe [HttpPackageConfiguration])
describeLiveSourceResponse_httpPackageConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLiveSourceResponse' {Maybe [HttpPackageConfiguration]
httpPackageConfigurations :: Maybe [HttpPackageConfiguration]
$sel:httpPackageConfigurations:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations} -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations) (\s :: DescribeLiveSourceResponse
s@DescribeLiveSourceResponse' {} Maybe [HttpPackageConfiguration]
a -> DescribeLiveSourceResponse
s {$sel:httpPackageConfigurations:DescribeLiveSourceResponse' :: Maybe [HttpPackageConfiguration]
httpPackageConfigurations = Maybe [HttpPackageConfiguration]
a} :: DescribeLiveSourceResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The timestamp that indicates when the live source was modified.
describeLiveSourceResponse_lastModifiedTime :: Lens.Lens' DescribeLiveSourceResponse (Prelude.Maybe Prelude.UTCTime)
describeLiveSourceResponse_lastModifiedTime :: Lens' DescribeLiveSourceResponse (Maybe UTCTime)
describeLiveSourceResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLiveSourceResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeLiveSourceResponse
s@DescribeLiveSourceResponse' {} Maybe POSIX
a -> DescribeLiveSourceResponse
s {$sel:lastModifiedTime:DescribeLiveSourceResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeLiveSourceResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The name of the live source.
describeLiveSourceResponse_liveSourceName :: Lens.Lens' DescribeLiveSourceResponse (Prelude.Maybe Prelude.Text)
describeLiveSourceResponse_liveSourceName :: Lens' DescribeLiveSourceResponse (Maybe Text)
describeLiveSourceResponse_liveSourceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLiveSourceResponse' {Maybe Text
liveSourceName :: Maybe Text
$sel:liveSourceName:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe Text
liveSourceName} -> Maybe Text
liveSourceName) (\s :: DescribeLiveSourceResponse
s@DescribeLiveSourceResponse' {} Maybe Text
a -> DescribeLiveSourceResponse
s {$sel:liveSourceName:DescribeLiveSourceResponse' :: Maybe Text
liveSourceName = Maybe Text
a} :: DescribeLiveSourceResponse)

-- | The name of the source location associated with the live source.
describeLiveSourceResponse_sourceLocationName :: Lens.Lens' DescribeLiveSourceResponse (Prelude.Maybe Prelude.Text)
describeLiveSourceResponse_sourceLocationName :: Lens' DescribeLiveSourceResponse (Maybe Text)
describeLiveSourceResponse_sourceLocationName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLiveSourceResponse' {Maybe Text
sourceLocationName :: Maybe Text
$sel:sourceLocationName:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe Text
sourceLocationName} -> Maybe Text
sourceLocationName) (\s :: DescribeLiveSourceResponse
s@DescribeLiveSourceResponse' {} Maybe Text
a -> DescribeLiveSourceResponse
s {$sel:sourceLocationName:DescribeLiveSourceResponse' :: Maybe Text
sourceLocationName = Maybe Text
a} :: DescribeLiveSourceResponse)

-- | The tags assigned to the live source. Tags are key-value pairs that you
-- can associate with Amazon resources to help with organization, access
-- control, and cost tracking. For more information, see
-- <https://docs.aws.amazon.com/mediatailor/latest/ug/tagging.html Tagging AWS Elemental MediaTailor Resources>.
describeLiveSourceResponse_tags :: Lens.Lens' DescribeLiveSourceResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeLiveSourceResponse_tags :: Lens' DescribeLiveSourceResponse (Maybe (HashMap Text Text))
describeLiveSourceResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLiveSourceResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeLiveSourceResponse
s@DescribeLiveSourceResponse' {} Maybe (HashMap Text Text)
a -> DescribeLiveSourceResponse
s {$sel:tags:DescribeLiveSourceResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeLiveSourceResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData DescribeLiveSourceResponse where
  rnf :: DescribeLiveSourceResponse -> ()
rnf DescribeLiveSourceResponse' {Int
Maybe [HttpPackageConfiguration]
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
sourceLocationName :: Maybe Text
liveSourceName :: Maybe Text
lastModifiedTime :: Maybe POSIX
httpPackageConfigurations :: Maybe [HttpPackageConfiguration]
creationTime :: Maybe POSIX
arn :: Maybe Text
$sel:httpStatus:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Int
$sel:tags:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe (HashMap Text Text)
$sel:sourceLocationName:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe Text
$sel:liveSourceName:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe Text
$sel:lastModifiedTime:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe POSIX
$sel:httpPackageConfigurations:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe [HttpPackageConfiguration]
$sel:creationTime:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe POSIX
$sel:arn:DescribeLiveSourceResponse' :: DescribeLiveSourceResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [HttpPackageConfiguration]
httpPackageConfigurations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
liveSourceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sourceLocationName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus