{-# 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 #-}
module Amazonka.MediaTailor.UpdateLiveSource
(
UpdateLiveSource (..),
newUpdateLiveSource,
updateLiveSource_httpPackageConfigurations,
updateLiveSource_liveSourceName,
updateLiveSource_sourceLocationName,
UpdateLiveSourceResponse (..),
newUpdateLiveSourceResponse,
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
data UpdateLiveSource = UpdateLiveSource'
{
UpdateLiveSource -> [HttpPackageConfiguration]
httpPackageConfigurations :: [HttpPackageConfiguration],
UpdateLiveSource -> Text
liveSourceName :: Prelude.Text,
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)
newUpdateLiveSource ::
Prelude.Text ->
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_
}
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
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)
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
data UpdateLiveSourceResponse = UpdateLiveSourceResponse'
{
UpdateLiveSourceResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdateLiveSourceResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
UpdateLiveSourceResponse -> Maybe [HttpPackageConfiguration]
httpPackageConfigurations :: Prelude.Maybe [HttpPackageConfiguration],
UpdateLiveSourceResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
UpdateLiveSourceResponse -> Maybe Text
liveSourceName :: Prelude.Maybe Prelude.Text,
UpdateLiveSourceResponse -> Maybe Text
sourceLocationName :: Prelude.Maybe Prelude.Text,
UpdateLiveSourceResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
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)
newUpdateLiveSourceResponse ::
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_
}
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)
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
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
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
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)
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)
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
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