{-# 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.UpdateLiveSource
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Updates a live source\'s configuration.
module Amazonka.MediaTailor.UpdateLiveSource
  ( -- * Creating a Request
    UpdateLiveSource (..),
    newUpdateLiveSource,

    -- * Request Lenses
    updateLiveSource_httpPackageConfigurations,
    updateLiveSource_liveSourceName,
    updateLiveSource_sourceLocationName,

    -- * Destructuring the Response
    UpdateLiveSourceResponse (..),
    newUpdateLiveSourceResponse,

    -- * Response Lenses
    updateLiveSourceResponse_arn,
    updateLiveSourceResponse_creationTime,
    updateLiveSourceResponse_httpPackageConfigurations,
    updateLiveSourceResponse_lastModifiedTime,
    updateLiveSourceResponse_liveSourceName,
    updateLiveSourceResponse_sourceLocationName,
    updateLiveSourceResponse_tags,
    updateLiveSourceResponse_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:/ 'newUpdateLiveSource' smart constructor.
data UpdateLiveSource = UpdateLiveSource'
  { -- | A list of HTTP package configurations for the live source on this
    -- account.
    UpdateLiveSource -> [HttpPackageConfiguration]
httpPackageConfigurations :: [HttpPackageConfiguration],
    -- | The name of the live source.
    UpdateLiveSource -> Text
liveSourceName :: Prelude.Text,
    -- | The name of the source location associated with this Live Source.
    UpdateLiveSource -> Text
sourceLocationName :: Prelude.Text
  }
  deriving (UpdateLiveSource -> UpdateLiveSource -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLiveSource -> UpdateLiveSource -> Bool
$c/= :: UpdateLiveSource -> UpdateLiveSource -> Bool
== :: UpdateLiveSource -> UpdateLiveSource -> Bool
$c== :: UpdateLiveSource -> UpdateLiveSource -> Bool
Prelude.Eq, ReadPrec [UpdateLiveSource]
ReadPrec UpdateLiveSource
Int -> ReadS UpdateLiveSource
ReadS [UpdateLiveSource]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateLiveSource]
$creadListPrec :: ReadPrec [UpdateLiveSource]
readPrec :: ReadPrec UpdateLiveSource
$creadPrec :: ReadPrec UpdateLiveSource
readList :: ReadS [UpdateLiveSource]
$creadList :: ReadS [UpdateLiveSource]
readsPrec :: Int -> ReadS UpdateLiveSource
$creadsPrec :: Int -> ReadS UpdateLiveSource
Prelude.Read, Int -> UpdateLiveSource -> ShowS
[UpdateLiveSource] -> ShowS
UpdateLiveSource -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLiveSource] -> ShowS
$cshowList :: [UpdateLiveSource] -> ShowS
show :: UpdateLiveSource -> String
$cshow :: UpdateLiveSource -> String
showsPrec :: Int -> UpdateLiveSource -> ShowS
$cshowsPrec :: Int -> UpdateLiveSource -> ShowS
Prelude.Show, forall x. Rep UpdateLiveSource x -> UpdateLiveSource
forall x. UpdateLiveSource -> Rep UpdateLiveSource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateLiveSource x -> UpdateLiveSource
$cfrom :: forall x. UpdateLiveSource -> Rep UpdateLiveSource x
Prelude.Generic)

-- |
-- Create a value of 'UpdateLiveSource' 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:
--
-- 'httpPackageConfigurations', 'updateLiveSource_httpPackageConfigurations' - A list of HTTP package configurations for the live source on this
-- account.
--
-- 'liveSourceName', 'updateLiveSource_liveSourceName' - The name of the live source.
--
-- 'sourceLocationName', 'updateLiveSource_sourceLocationName' - The name of the source location associated with this Live Source.
newUpdateLiveSource ::
  -- | 'liveSourceName'
  Prelude.Text ->
  -- | 'sourceLocationName'
  Prelude.Text ->
  UpdateLiveSource
newUpdateLiveSource :: Text -> Text -> UpdateLiveSource
newUpdateLiveSource
  Text
pLiveSourceName_
  Text
pSourceLocationName_ =
    UpdateLiveSource'
      { $sel:httpPackageConfigurations:UpdateLiveSource' :: [HttpPackageConfiguration]
httpPackageConfigurations =
          forall a. Monoid a => a
Prelude.mempty,
        $sel:liveSourceName:UpdateLiveSource' :: Text
liveSourceName = Text
pLiveSourceName_,
        $sel:sourceLocationName:UpdateLiveSource' :: Text
sourceLocationName = Text
pSourceLocationName_
      }

-- | A list of HTTP package configurations for the live source on this
-- account.
updateLiveSource_httpPackageConfigurations :: Lens.Lens' UpdateLiveSource [HttpPackageConfiguration]
updateLiveSource_httpPackageConfigurations :: Lens' UpdateLiveSource [HttpPackageConfiguration]
updateLiveSource_httpPackageConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLiveSource' {[HttpPackageConfiguration]
httpPackageConfigurations :: [HttpPackageConfiguration]
$sel:httpPackageConfigurations:UpdateLiveSource' :: UpdateLiveSource -> [HttpPackageConfiguration]
httpPackageConfigurations} -> [HttpPackageConfiguration]
httpPackageConfigurations) (\s :: UpdateLiveSource
s@UpdateLiveSource' {} [HttpPackageConfiguration]
a -> UpdateLiveSource
s {$sel:httpPackageConfigurations:UpdateLiveSource' :: [HttpPackageConfiguration]
httpPackageConfigurations = [HttpPackageConfiguration]
a} :: UpdateLiveSource) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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

instance Core.AWSRequest UpdateLiveSource where
  type
    AWSResponse UpdateLiveSource =
      UpdateLiveSourceResponse
  request :: (Service -> Service)
-> UpdateLiveSource -> Request UpdateLiveSource
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateLiveSource
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateLiveSource)))
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
-> UpdateLiveSourceResponse
UpdateLiveSourceResponse'
            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 UpdateLiveSource where
  hashWithSalt :: Int -> UpdateLiveSource -> Int
hashWithSalt Int
_salt UpdateLiveSource' {[HttpPackageConfiguration]
Text
sourceLocationName :: Text
liveSourceName :: Text
httpPackageConfigurations :: [HttpPackageConfiguration]
$sel:sourceLocationName:UpdateLiveSource' :: UpdateLiveSource -> Text
$sel:liveSourceName:UpdateLiveSource' :: UpdateLiveSource -> Text
$sel:httpPackageConfigurations:UpdateLiveSource' :: UpdateLiveSource -> [HttpPackageConfiguration]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` [HttpPackageConfiguration]
httpPackageConfigurations
      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 UpdateLiveSource where
  rnf :: UpdateLiveSource -> ()
rnf UpdateLiveSource' {[HttpPackageConfiguration]
Text
sourceLocationName :: Text
liveSourceName :: Text
httpPackageConfigurations :: [HttpPackageConfiguration]
$sel:sourceLocationName:UpdateLiveSource' :: UpdateLiveSource -> Text
$sel:liveSourceName:UpdateLiveSource' :: UpdateLiveSource -> Text
$sel:httpPackageConfigurations:UpdateLiveSource' :: UpdateLiveSource -> [HttpPackageConfiguration]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf [HttpPackageConfiguration]
httpPackageConfigurations
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 UpdateLiveSource where
  toHeaders :: UpdateLiveSource -> 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.ToJSON UpdateLiveSource where
  toJSON :: UpdateLiveSource -> Value
toJSON UpdateLiveSource' {[HttpPackageConfiguration]
Text
sourceLocationName :: Text
liveSourceName :: Text
httpPackageConfigurations :: [HttpPackageConfiguration]
$sel:sourceLocationName:UpdateLiveSource' :: UpdateLiveSource -> Text
$sel:liveSourceName:UpdateLiveSource' :: UpdateLiveSource -> Text
$sel:httpPackageConfigurations:UpdateLiveSource' :: UpdateLiveSource -> [HttpPackageConfiguration]
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ forall a. a -> Maybe a
Prelude.Just
              ( Key
"HttpPackageConfigurations"
                  forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= [HttpPackageConfiguration]
httpPackageConfigurations
              )
          ]
      )

instance Data.ToPath UpdateLiveSource where
  toPath :: UpdateLiveSource -> ByteString
toPath UpdateLiveSource' {[HttpPackageConfiguration]
Text
sourceLocationName :: Text
liveSourceName :: Text
httpPackageConfigurations :: [HttpPackageConfiguration]
$sel:sourceLocationName:UpdateLiveSource' :: UpdateLiveSource -> Text
$sel:liveSourceName:UpdateLiveSource' :: UpdateLiveSource -> Text
$sel:httpPackageConfigurations:UpdateLiveSource' :: UpdateLiveSource -> [HttpPackageConfiguration]
..} =
    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 UpdateLiveSource where
  toQuery :: UpdateLiveSource -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newUpdateLiveSourceResponse' smart constructor.
data UpdateLiveSourceResponse = UpdateLiveSourceResponse'
  { -- | The Amazon Resource Name (ARN) associated with this live source.
    UpdateLiveSourceResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The timestamp that indicates when the live source was created.
    UpdateLiveSourceResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | A list of HTTP package configurations for the live source on this
    -- account.
    UpdateLiveSourceResponse -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations :: Prelude.Maybe [HttpPackageConfiguration],
    -- | The timestamp that indicates when the live source was last modified.
    UpdateLiveSourceResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | The name of the live source.
    UpdateLiveSourceResponse -> Maybe Text
liveSourceName :: Prelude.Maybe Prelude.Text,
    -- | The name of the source location associated with the live source.
    UpdateLiveSourceResponse -> Maybe Text
sourceLocationName :: Prelude.Maybe Prelude.Text,
    -- | The tags to assign 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>.
    UpdateLiveSourceResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    UpdateLiveSourceResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateLiveSourceResponse -> UpdateLiveSourceResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateLiveSourceResponse -> UpdateLiveSourceResponse -> Bool
$c/= :: UpdateLiveSourceResponse -> UpdateLiveSourceResponse -> Bool
== :: UpdateLiveSourceResponse -> UpdateLiveSourceResponse -> Bool
$c== :: UpdateLiveSourceResponse -> UpdateLiveSourceResponse -> Bool
Prelude.Eq, ReadPrec [UpdateLiveSourceResponse]
ReadPrec UpdateLiveSourceResponse
Int -> ReadS UpdateLiveSourceResponse
ReadS [UpdateLiveSourceResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateLiveSourceResponse]
$creadListPrec :: ReadPrec [UpdateLiveSourceResponse]
readPrec :: ReadPrec UpdateLiveSourceResponse
$creadPrec :: ReadPrec UpdateLiveSourceResponse
readList :: ReadS [UpdateLiveSourceResponse]
$creadList :: ReadS [UpdateLiveSourceResponse]
readsPrec :: Int -> ReadS UpdateLiveSourceResponse
$creadsPrec :: Int -> ReadS UpdateLiveSourceResponse
Prelude.Read, Int -> UpdateLiveSourceResponse -> ShowS
[UpdateLiveSourceResponse] -> ShowS
UpdateLiveSourceResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateLiveSourceResponse] -> ShowS
$cshowList :: [UpdateLiveSourceResponse] -> ShowS
show :: UpdateLiveSourceResponse -> String
$cshow :: UpdateLiveSourceResponse -> String
showsPrec :: Int -> UpdateLiveSourceResponse -> ShowS
$cshowsPrec :: Int -> UpdateLiveSourceResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateLiveSourceResponse x -> UpdateLiveSourceResponse
forall x.
UpdateLiveSourceResponse -> Rep UpdateLiveSourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateLiveSourceResponse x -> UpdateLiveSourceResponse
$cfrom :: forall x.
UpdateLiveSourceResponse -> Rep UpdateLiveSourceResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateLiveSourceResponse' 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', 'updateLiveSourceResponse_arn' - The Amazon Resource Name (ARN) associated with this live source.
--
-- 'creationTime', 'updateLiveSourceResponse_creationTime' - The timestamp that indicates when the live source was created.
--
-- 'httpPackageConfigurations', 'updateLiveSourceResponse_httpPackageConfigurations' - A list of HTTP package configurations for the live source on this
-- account.
--
-- 'lastModifiedTime', 'updateLiveSourceResponse_lastModifiedTime' - The timestamp that indicates when the live source was last modified.
--
-- 'liveSourceName', 'updateLiveSourceResponse_liveSourceName' - The name of the live source.
--
-- 'sourceLocationName', 'updateLiveSourceResponse_sourceLocationName' - The name of the source location associated with the live source.
--
-- 'tags', 'updateLiveSourceResponse_tags' - The tags to assign 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', 'updateLiveSourceResponse_httpStatus' - The response's http status code.
newUpdateLiveSourceResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateLiveSourceResponse
newUpdateLiveSourceResponse :: Int -> UpdateLiveSourceResponse
newUpdateLiveSourceResponse Int
pHttpStatus_ =
  UpdateLiveSourceResponse'
    { $sel:arn:UpdateLiveSourceResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:UpdateLiveSourceResponse' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:httpPackageConfigurations:UpdateLiveSourceResponse' :: Maybe [HttpPackageConfiguration]
httpPackageConfigurations = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:UpdateLiveSourceResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:liveSourceName:UpdateLiveSourceResponse' :: Maybe Text
liveSourceName = forall a. Maybe a
Prelude.Nothing,
      $sel:sourceLocationName:UpdateLiveSourceResponse' :: Maybe Text
sourceLocationName = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:UpdateLiveSourceResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateLiveSourceResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name (ARN) associated with this live source.
updateLiveSourceResponse_arn :: Lens.Lens' UpdateLiveSourceResponse (Prelude.Maybe Prelude.Text)
updateLiveSourceResponse_arn :: Lens' UpdateLiveSourceResponse (Maybe Text)
updateLiveSourceResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLiveSourceResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateLiveSourceResponse
s@UpdateLiveSourceResponse' {} Maybe Text
a -> UpdateLiveSourceResponse
s {$sel:arn:UpdateLiveSourceResponse' :: Maybe Text
arn = Maybe Text
a} :: UpdateLiveSourceResponse)

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

-- | A list of HTTP package configurations for the live source on this
-- account.
updateLiveSourceResponse_httpPackageConfigurations :: Lens.Lens' UpdateLiveSourceResponse (Prelude.Maybe [HttpPackageConfiguration])
updateLiveSourceResponse_httpPackageConfigurations :: Lens' UpdateLiveSourceResponse (Maybe [HttpPackageConfiguration])
updateLiveSourceResponse_httpPackageConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLiveSourceResponse' {Maybe [HttpPackageConfiguration]
httpPackageConfigurations :: Maybe [HttpPackageConfiguration]
$sel:httpPackageConfigurations:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations} -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations) (\s :: UpdateLiveSourceResponse
s@UpdateLiveSourceResponse' {} Maybe [HttpPackageConfiguration]
a -> UpdateLiveSourceResponse
s {$sel:httpPackageConfigurations:UpdateLiveSourceResponse' :: Maybe [HttpPackageConfiguration]
httpPackageConfigurations = Maybe [HttpPackageConfiguration]
a} :: UpdateLiveSourceResponse) 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 last modified.
updateLiveSourceResponse_lastModifiedTime :: Lens.Lens' UpdateLiveSourceResponse (Prelude.Maybe Prelude.UTCTime)
updateLiveSourceResponse_lastModifiedTime :: Lens' UpdateLiveSourceResponse (Maybe UTCTime)
updateLiveSourceResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLiveSourceResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: UpdateLiveSourceResponse
s@UpdateLiveSourceResponse' {} Maybe POSIX
a -> UpdateLiveSourceResponse
s {$sel:lastModifiedTime:UpdateLiveSourceResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: UpdateLiveSourceResponse) 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.
updateLiveSourceResponse_liveSourceName :: Lens.Lens' UpdateLiveSourceResponse (Prelude.Maybe Prelude.Text)
updateLiveSourceResponse_liveSourceName :: Lens' UpdateLiveSourceResponse (Maybe Text)
updateLiveSourceResponse_liveSourceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLiveSourceResponse' {Maybe Text
liveSourceName :: Maybe Text
$sel:liveSourceName:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe Text
liveSourceName} -> Maybe Text
liveSourceName) (\s :: UpdateLiveSourceResponse
s@UpdateLiveSourceResponse' {} Maybe Text
a -> UpdateLiveSourceResponse
s {$sel:liveSourceName:UpdateLiveSourceResponse' :: Maybe Text
liveSourceName = Maybe Text
a} :: UpdateLiveSourceResponse)

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

-- | The tags to assign 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>.
updateLiveSourceResponse_tags :: Lens.Lens' UpdateLiveSourceResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateLiveSourceResponse_tags :: Lens' UpdateLiveSourceResponse (Maybe (HashMap Text Text))
updateLiveSourceResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLiveSourceResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: UpdateLiveSourceResponse
s@UpdateLiveSourceResponse' {} Maybe (HashMap Text Text)
a -> UpdateLiveSourceResponse
s {$sel:tags:UpdateLiveSourceResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: UpdateLiveSourceResponse) 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.
updateLiveSourceResponse_httpStatus :: Lens.Lens' UpdateLiveSourceResponse Prelude.Int
updateLiveSourceResponse_httpStatus :: Lens' UpdateLiveSourceResponse Int
updateLiveSourceResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateLiveSourceResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateLiveSourceResponse
s@UpdateLiveSourceResponse' {} Int
a -> UpdateLiveSourceResponse
s {$sel:httpStatus:UpdateLiveSourceResponse' :: Int
httpStatus = Int
a} :: UpdateLiveSourceResponse)

instance Prelude.NFData UpdateLiveSourceResponse where
  rnf :: UpdateLiveSourceResponse -> ()
rnf UpdateLiveSourceResponse' {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:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Int
$sel:tags:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe (HashMap Text Text)
$sel:sourceLocationName:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe Text
$sel:liveSourceName:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe Text
$sel:lastModifiedTime:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe POSIX
$sel:httpPackageConfigurations:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe [HttpPackageConfiguration]
$sel:creationTime:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> Maybe POSIX
$sel:arn:UpdateLiveSourceResponse' :: UpdateLiveSourceResponse -> 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