{-# 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.UpdateVodSource
-- 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 VOD source\'s configuration.
module Amazonka.MediaTailor.UpdateVodSource
  ( -- * Creating a Request
    UpdateVodSource (..),
    newUpdateVodSource,

    -- * Request Lenses
    updateVodSource_httpPackageConfigurations,
    updateVodSource_sourceLocationName,
    updateVodSource_vodSourceName,

    -- * Destructuring the Response
    UpdateVodSourceResponse (..),
    newUpdateVodSourceResponse,

    -- * Response Lenses
    updateVodSourceResponse_arn,
    updateVodSourceResponse_creationTime,
    updateVodSourceResponse_httpPackageConfigurations,
    updateVodSourceResponse_lastModifiedTime,
    updateVodSourceResponse_sourceLocationName,
    updateVodSourceResponse_tags,
    updateVodSourceResponse_vodSourceName,
    updateVodSourceResponse_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:/ 'newUpdateVodSource' smart constructor.
data UpdateVodSource = UpdateVodSource'
  { -- | A list of HTTP package configurations for the VOD source on this
    -- account.
    UpdateVodSource -> [HttpPackageConfiguration]
httpPackageConfigurations :: [HttpPackageConfiguration],
    -- | The name of the source location associated with this VOD Source.
    UpdateVodSource -> Text
sourceLocationName :: Prelude.Text,
    -- | The name of the VOD source.
    UpdateVodSource -> Text
vodSourceName :: Prelude.Text
  }
  deriving (UpdateVodSource -> UpdateVodSource -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateVodSource -> UpdateVodSource -> Bool
$c/= :: UpdateVodSource -> UpdateVodSource -> Bool
== :: UpdateVodSource -> UpdateVodSource -> Bool
$c== :: UpdateVodSource -> UpdateVodSource -> Bool
Prelude.Eq, ReadPrec [UpdateVodSource]
ReadPrec UpdateVodSource
Int -> ReadS UpdateVodSource
ReadS [UpdateVodSource]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateVodSource]
$creadListPrec :: ReadPrec [UpdateVodSource]
readPrec :: ReadPrec UpdateVodSource
$creadPrec :: ReadPrec UpdateVodSource
readList :: ReadS [UpdateVodSource]
$creadList :: ReadS [UpdateVodSource]
readsPrec :: Int -> ReadS UpdateVodSource
$creadsPrec :: Int -> ReadS UpdateVodSource
Prelude.Read, Int -> UpdateVodSource -> ShowS
[UpdateVodSource] -> ShowS
UpdateVodSource -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateVodSource] -> ShowS
$cshowList :: [UpdateVodSource] -> ShowS
show :: UpdateVodSource -> String
$cshow :: UpdateVodSource -> String
showsPrec :: Int -> UpdateVodSource -> ShowS
$cshowsPrec :: Int -> UpdateVodSource -> ShowS
Prelude.Show, forall x. Rep UpdateVodSource x -> UpdateVodSource
forall x. UpdateVodSource -> Rep UpdateVodSource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateVodSource x -> UpdateVodSource
$cfrom :: forall x. UpdateVodSource -> Rep UpdateVodSource x
Prelude.Generic)

-- |
-- Create a value of 'UpdateVodSource' 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', 'updateVodSource_httpPackageConfigurations' - A list of HTTP package configurations for the VOD source on this
-- account.
--
-- 'sourceLocationName', 'updateVodSource_sourceLocationName' - The name of the source location associated with this VOD Source.
--
-- 'vodSourceName', 'updateVodSource_vodSourceName' - The name of the VOD source.
newUpdateVodSource ::
  -- | 'sourceLocationName'
  Prelude.Text ->
  -- | 'vodSourceName'
  Prelude.Text ->
  UpdateVodSource
newUpdateVodSource :: Text -> Text -> UpdateVodSource
newUpdateVodSource
  Text
pSourceLocationName_
  Text
pVodSourceName_ =
    UpdateVodSource'
      { $sel:httpPackageConfigurations:UpdateVodSource' :: [HttpPackageConfiguration]
httpPackageConfigurations =
          forall a. Monoid a => a
Prelude.mempty,
        $sel:sourceLocationName:UpdateVodSource' :: Text
sourceLocationName = Text
pSourceLocationName_,
        $sel:vodSourceName:UpdateVodSource' :: Text
vodSourceName = Text
pVodSourceName_
      }

-- | A list of HTTP package configurations for the VOD source on this
-- account.
updateVodSource_httpPackageConfigurations :: Lens.Lens' UpdateVodSource [HttpPackageConfiguration]
updateVodSource_httpPackageConfigurations :: Lens' UpdateVodSource [HttpPackageConfiguration]
updateVodSource_httpPackageConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVodSource' {[HttpPackageConfiguration]
httpPackageConfigurations :: [HttpPackageConfiguration]
$sel:httpPackageConfigurations:UpdateVodSource' :: UpdateVodSource -> [HttpPackageConfiguration]
httpPackageConfigurations} -> [HttpPackageConfiguration]
httpPackageConfigurations) (\s :: UpdateVodSource
s@UpdateVodSource' {} [HttpPackageConfiguration]
a -> UpdateVodSource
s {$sel:httpPackageConfigurations:UpdateVodSource' :: [HttpPackageConfiguration]
httpPackageConfigurations = [HttpPackageConfiguration]
a} :: UpdateVodSource) 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 source location associated with this VOD Source.
updateVodSource_sourceLocationName :: Lens.Lens' UpdateVodSource Prelude.Text
updateVodSource_sourceLocationName :: Lens' UpdateVodSource Text
updateVodSource_sourceLocationName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVodSource' {Text
sourceLocationName :: Text
$sel:sourceLocationName:UpdateVodSource' :: UpdateVodSource -> Text
sourceLocationName} -> Text
sourceLocationName) (\s :: UpdateVodSource
s@UpdateVodSource' {} Text
a -> UpdateVodSource
s {$sel:sourceLocationName:UpdateVodSource' :: Text
sourceLocationName = Text
a} :: UpdateVodSource)

-- | The name of the VOD source.
updateVodSource_vodSourceName :: Lens.Lens' UpdateVodSource Prelude.Text
updateVodSource_vodSourceName :: Lens' UpdateVodSource Text
updateVodSource_vodSourceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVodSource' {Text
vodSourceName :: Text
$sel:vodSourceName:UpdateVodSource' :: UpdateVodSource -> Text
vodSourceName} -> Text
vodSourceName) (\s :: UpdateVodSource
s@UpdateVodSource' {} Text
a -> UpdateVodSource
s {$sel:vodSourceName:UpdateVodSource' :: Text
vodSourceName = Text
a} :: UpdateVodSource)

instance Core.AWSRequest UpdateVodSource where
  type
    AWSResponse UpdateVodSource =
      UpdateVodSourceResponse
  request :: (Service -> Service) -> UpdateVodSource -> Request UpdateVodSource
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 UpdateVodSource
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateVodSource)))
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 (HashMap Text Text)
-> Maybe Text
-> Int
-> UpdateVodSourceResponse
UpdateVodSourceResponse'
            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
"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.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"VodSourceName")
            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 UpdateVodSource where
  hashWithSalt :: Int -> UpdateVodSource -> Int
hashWithSalt Int
_salt UpdateVodSource' {[HttpPackageConfiguration]
Text
vodSourceName :: Text
sourceLocationName :: Text
httpPackageConfigurations :: [HttpPackageConfiguration]
$sel:vodSourceName:UpdateVodSource' :: UpdateVodSource -> Text
$sel:sourceLocationName:UpdateVodSource' :: UpdateVodSource -> Text
$sel:httpPackageConfigurations:UpdateVodSource' :: UpdateVodSource -> [HttpPackageConfiguration]
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` [HttpPackageConfiguration]
httpPackageConfigurations
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
sourceLocationName
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
vodSourceName

instance Prelude.NFData UpdateVodSource where
  rnf :: UpdateVodSource -> ()
rnf UpdateVodSource' {[HttpPackageConfiguration]
Text
vodSourceName :: Text
sourceLocationName :: Text
httpPackageConfigurations :: [HttpPackageConfiguration]
$sel:vodSourceName:UpdateVodSource' :: UpdateVodSource -> Text
$sel:sourceLocationName:UpdateVodSource' :: UpdateVodSource -> Text
$sel:httpPackageConfigurations:UpdateVodSource' :: UpdateVodSource -> [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
sourceLocationName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
vodSourceName

instance Data.ToHeaders UpdateVodSource where
  toHeaders :: UpdateVodSource -> 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 UpdateVodSource where
  toJSON :: UpdateVodSource -> Value
toJSON UpdateVodSource' {[HttpPackageConfiguration]
Text
vodSourceName :: Text
sourceLocationName :: Text
httpPackageConfigurations :: [HttpPackageConfiguration]
$sel:vodSourceName:UpdateVodSource' :: UpdateVodSource -> Text
$sel:sourceLocationName:UpdateVodSource' :: UpdateVodSource -> Text
$sel:httpPackageConfigurations:UpdateVodSource' :: UpdateVodSource -> [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 UpdateVodSource where
  toPath :: UpdateVodSource -> ByteString
toPath UpdateVodSource' {[HttpPackageConfiguration]
Text
vodSourceName :: Text
sourceLocationName :: Text
httpPackageConfigurations :: [HttpPackageConfiguration]
$sel:vodSourceName:UpdateVodSource' :: UpdateVodSource -> Text
$sel:sourceLocationName:UpdateVodSource' :: UpdateVodSource -> Text
$sel:httpPackageConfigurations:UpdateVodSource' :: UpdateVodSource -> [HttpPackageConfiguration]
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/sourceLocation/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
sourceLocationName,
        ByteString
"/vodSource/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
vodSourceName
      ]

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

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

-- |
-- Create a value of 'UpdateVodSourceResponse' 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', 'updateVodSourceResponse_arn' - The Amazon Resource Name (ARN) associated with the VOD source.
--
-- 'creationTime', 'updateVodSourceResponse_creationTime' - The timestamp that indicates when the VOD source was created.
--
-- 'httpPackageConfigurations', 'updateVodSourceResponse_httpPackageConfigurations' - A list of HTTP package configurations for the VOD source on this
-- account.
--
-- 'lastModifiedTime', 'updateVodSourceResponse_lastModifiedTime' - The timestamp that indicates when the VOD source was last modified.
--
-- 'sourceLocationName', 'updateVodSourceResponse_sourceLocationName' - The name of the source location associated with the VOD source.
--
-- 'tags', 'updateVodSourceResponse_tags' - The tags to assign to the VOD 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>.
--
-- 'vodSourceName', 'updateVodSourceResponse_vodSourceName' - The name of the VOD source.
--
-- 'httpStatus', 'updateVodSourceResponse_httpStatus' - The response's http status code.
newUpdateVodSourceResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateVodSourceResponse
newUpdateVodSourceResponse :: Int -> UpdateVodSourceResponse
newUpdateVodSourceResponse Int
pHttpStatus_ =
  UpdateVodSourceResponse'
    { $sel:arn:UpdateVodSourceResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:UpdateVodSourceResponse' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:httpPackageConfigurations:UpdateVodSourceResponse' :: Maybe [HttpPackageConfiguration]
httpPackageConfigurations = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:UpdateVodSourceResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:sourceLocationName:UpdateVodSourceResponse' :: Maybe Text
sourceLocationName = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:UpdateVodSourceResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:vodSourceName:UpdateVodSourceResponse' :: Maybe Text
vodSourceName = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateVodSourceResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

-- | The timestamp that indicates when the VOD source was created.
updateVodSourceResponse_creationTime :: Lens.Lens' UpdateVodSourceResponse (Prelude.Maybe Prelude.UTCTime)
updateVodSourceResponse_creationTime :: Lens' UpdateVodSourceResponse (Maybe UTCTime)
updateVodSourceResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVodSourceResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: UpdateVodSourceResponse
s@UpdateVodSourceResponse' {} Maybe POSIX
a -> UpdateVodSourceResponse
s {$sel:creationTime:UpdateVodSourceResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: UpdateVodSourceResponse) 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 VOD source on this
-- account.
updateVodSourceResponse_httpPackageConfigurations :: Lens.Lens' UpdateVodSourceResponse (Prelude.Maybe [HttpPackageConfiguration])
updateVodSourceResponse_httpPackageConfigurations :: Lens' UpdateVodSourceResponse (Maybe [HttpPackageConfiguration])
updateVodSourceResponse_httpPackageConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVodSourceResponse' {Maybe [HttpPackageConfiguration]
httpPackageConfigurations :: Maybe [HttpPackageConfiguration]
$sel:httpPackageConfigurations:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations} -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations) (\s :: UpdateVodSourceResponse
s@UpdateVodSourceResponse' {} Maybe [HttpPackageConfiguration]
a -> UpdateVodSourceResponse
s {$sel:httpPackageConfigurations:UpdateVodSourceResponse' :: Maybe [HttpPackageConfiguration]
httpPackageConfigurations = Maybe [HttpPackageConfiguration]
a} :: UpdateVodSourceResponse) 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 VOD source was last modified.
updateVodSourceResponse_lastModifiedTime :: Lens.Lens' UpdateVodSourceResponse (Prelude.Maybe Prelude.UTCTime)
updateVodSourceResponse_lastModifiedTime :: Lens' UpdateVodSourceResponse (Maybe UTCTime)
updateVodSourceResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVodSourceResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: UpdateVodSourceResponse
s@UpdateVodSourceResponse' {} Maybe POSIX
a -> UpdateVodSourceResponse
s {$sel:lastModifiedTime:UpdateVodSourceResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: UpdateVodSourceResponse) 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 source location associated with the VOD source.
updateVodSourceResponse_sourceLocationName :: Lens.Lens' UpdateVodSourceResponse (Prelude.Maybe Prelude.Text)
updateVodSourceResponse_sourceLocationName :: Lens' UpdateVodSourceResponse (Maybe Text)
updateVodSourceResponse_sourceLocationName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVodSourceResponse' {Maybe Text
sourceLocationName :: Maybe Text
$sel:sourceLocationName:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe Text
sourceLocationName} -> Maybe Text
sourceLocationName) (\s :: UpdateVodSourceResponse
s@UpdateVodSourceResponse' {} Maybe Text
a -> UpdateVodSourceResponse
s {$sel:sourceLocationName:UpdateVodSourceResponse' :: Maybe Text
sourceLocationName = Maybe Text
a} :: UpdateVodSourceResponse)

-- | The tags to assign to the VOD 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>.
updateVodSourceResponse_tags :: Lens.Lens' UpdateVodSourceResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateVodSourceResponse_tags :: Lens' UpdateVodSourceResponse (Maybe (HashMap Text Text))
updateVodSourceResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVodSourceResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: UpdateVodSourceResponse
s@UpdateVodSourceResponse' {} Maybe (HashMap Text Text)
a -> UpdateVodSourceResponse
s {$sel:tags:UpdateVodSourceResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: UpdateVodSourceResponse) 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 name of the VOD source.
updateVodSourceResponse_vodSourceName :: Lens.Lens' UpdateVodSourceResponse (Prelude.Maybe Prelude.Text)
updateVodSourceResponse_vodSourceName :: Lens' UpdateVodSourceResponse (Maybe Text)
updateVodSourceResponse_vodSourceName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateVodSourceResponse' {Maybe Text
vodSourceName :: Maybe Text
$sel:vodSourceName:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe Text
vodSourceName} -> Maybe Text
vodSourceName) (\s :: UpdateVodSourceResponse
s@UpdateVodSourceResponse' {} Maybe Text
a -> UpdateVodSourceResponse
s {$sel:vodSourceName:UpdateVodSourceResponse' :: Maybe Text
vodSourceName = Maybe Text
a} :: UpdateVodSourceResponse)

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

instance Prelude.NFData UpdateVodSourceResponse where
  rnf :: UpdateVodSourceResponse -> ()
rnf UpdateVodSourceResponse' {Int
Maybe [HttpPackageConfiguration]
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
httpStatus :: Int
vodSourceName :: Maybe Text
tags :: Maybe (HashMap Text Text)
sourceLocationName :: Maybe Text
lastModifiedTime :: Maybe POSIX
httpPackageConfigurations :: Maybe [HttpPackageConfiguration]
creationTime :: Maybe POSIX
arn :: Maybe Text
$sel:httpStatus:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Int
$sel:vodSourceName:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe Text
$sel:tags:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe (HashMap Text Text)
$sel:sourceLocationName:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe Text
$sel:lastModifiedTime:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe POSIX
$sel:httpPackageConfigurations:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe [HttpPackageConfiguration]
$sel:creationTime:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> Maybe POSIX
$sel:arn:UpdateVodSourceResponse' :: UpdateVodSourceResponse -> 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
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 Maybe Text
vodSourceName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus