{-# 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.DescribeSourceLocation
(
DescribeSourceLocation (..),
newDescribeSourceLocation,
describeSourceLocation_sourceLocationName,
DescribeSourceLocationResponse (..),
newDescribeSourceLocationResponse,
describeSourceLocationResponse_creationTime,
describeSourceLocationResponse_sourceLocationName,
describeSourceLocationResponse_arn,
describeSourceLocationResponse_httpConfiguration,
describeSourceLocationResponse_lastModifiedTime,
describeSourceLocationResponse_accessConfiguration,
describeSourceLocationResponse_defaultSegmentDeliveryConfiguration,
describeSourceLocationResponse_tags,
describeSourceLocationResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MediaTailor.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeSourceLocation = DescribeSourceLocation'
{
DescribeSourceLocation -> Text
sourceLocationName :: Prelude.Text
}
deriving (DescribeSourceLocation -> DescribeSourceLocation -> Bool
(DescribeSourceLocation -> DescribeSourceLocation -> Bool)
-> (DescribeSourceLocation -> DescribeSourceLocation -> Bool)
-> Eq DescribeSourceLocation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSourceLocation -> DescribeSourceLocation -> Bool
$c/= :: DescribeSourceLocation -> DescribeSourceLocation -> Bool
== :: DescribeSourceLocation -> DescribeSourceLocation -> Bool
$c== :: DescribeSourceLocation -> DescribeSourceLocation -> Bool
Prelude.Eq, ReadPrec [DescribeSourceLocation]
ReadPrec DescribeSourceLocation
Int -> ReadS DescribeSourceLocation
ReadS [DescribeSourceLocation]
(Int -> ReadS DescribeSourceLocation)
-> ReadS [DescribeSourceLocation]
-> ReadPrec DescribeSourceLocation
-> ReadPrec [DescribeSourceLocation]
-> Read DescribeSourceLocation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSourceLocation]
$creadListPrec :: ReadPrec [DescribeSourceLocation]
readPrec :: ReadPrec DescribeSourceLocation
$creadPrec :: ReadPrec DescribeSourceLocation
readList :: ReadS [DescribeSourceLocation]
$creadList :: ReadS [DescribeSourceLocation]
readsPrec :: Int -> ReadS DescribeSourceLocation
$creadsPrec :: Int -> ReadS DescribeSourceLocation
Prelude.Read, Int -> DescribeSourceLocation -> ShowS
[DescribeSourceLocation] -> ShowS
DescribeSourceLocation -> String
(Int -> DescribeSourceLocation -> ShowS)
-> (DescribeSourceLocation -> String)
-> ([DescribeSourceLocation] -> ShowS)
-> Show DescribeSourceLocation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSourceLocation] -> ShowS
$cshowList :: [DescribeSourceLocation] -> ShowS
show :: DescribeSourceLocation -> String
$cshow :: DescribeSourceLocation -> String
showsPrec :: Int -> DescribeSourceLocation -> ShowS
$cshowsPrec :: Int -> DescribeSourceLocation -> ShowS
Prelude.Show, (forall x. DescribeSourceLocation -> Rep DescribeSourceLocation x)
-> (forall x.
Rep DescribeSourceLocation x -> DescribeSourceLocation)
-> Generic DescribeSourceLocation
forall x. Rep DescribeSourceLocation x -> DescribeSourceLocation
forall x. DescribeSourceLocation -> Rep DescribeSourceLocation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeSourceLocation x -> DescribeSourceLocation
$cfrom :: forall x. DescribeSourceLocation -> Rep DescribeSourceLocation x
Prelude.Generic)
newDescribeSourceLocation ::
Prelude.Text ->
DescribeSourceLocation
newDescribeSourceLocation :: Text -> DescribeSourceLocation
newDescribeSourceLocation Text
pSourceLocationName_ =
DescribeSourceLocation' :: Text -> DescribeSourceLocation
DescribeSourceLocation'
{ $sel:sourceLocationName:DescribeSourceLocation' :: Text
sourceLocationName =
Text
pSourceLocationName_
}
describeSourceLocation_sourceLocationName :: Lens.Lens' DescribeSourceLocation Prelude.Text
describeSourceLocation_sourceLocationName :: (Text -> f Text)
-> DescribeSourceLocation -> f DescribeSourceLocation
describeSourceLocation_sourceLocationName = (DescribeSourceLocation -> Text)
-> (DescribeSourceLocation -> Text -> DescribeSourceLocation)
-> Lens DescribeSourceLocation DescribeSourceLocation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSourceLocation' {Text
sourceLocationName :: Text
$sel:sourceLocationName:DescribeSourceLocation' :: DescribeSourceLocation -> Text
sourceLocationName} -> Text
sourceLocationName) (\s :: DescribeSourceLocation
s@DescribeSourceLocation' {} Text
a -> DescribeSourceLocation
s {$sel:sourceLocationName:DescribeSourceLocation' :: Text
sourceLocationName = Text
a} :: DescribeSourceLocation)
instance Core.AWSRequest DescribeSourceLocation where
type
AWSResponse DescribeSourceLocation =
DescribeSourceLocationResponse
request :: DescribeSourceLocation -> Request DescribeSourceLocation
request = Service -> DescribeSourceLocation -> Request DescribeSourceLocation
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeSourceLocation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeSourceLocation)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeSourceLocation))
-> Logger
-> Service
-> Proxy DescribeSourceLocation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeSourceLocation)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse
DescribeSourceLocationResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CreationTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"SourceLocationName")
Either
String
(Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Arn")
Either
String
(Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
-> Either String (Maybe HttpConfiguration)
-> Either
String
(Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe HttpConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"HttpConfiguration")
Either
String
(Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LastModifiedTime")
Either
String
(Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
-> Either String (Maybe AccessConfiguration)
-> Either
String
(Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe AccessConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AccessConfiguration")
Either
String
(Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse)
-> Either String (Maybe DefaultSegmentDeliveryConfiguration)
-> Either
String
(Maybe (HashMap Text Text)
-> Int -> DescribeSourceLocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe DefaultSegmentDeliveryConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DefaultSegmentDeliveryConfiguration")
Either
String
(Maybe (HashMap Text Text)
-> Int -> DescribeSourceLocationResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribeSourceLocationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeSourceLocationResponse)
-> Either String Int
-> Either String DescribeSourceLocationResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeSourceLocation
instance Prelude.NFData DescribeSourceLocation
instance Core.ToHeaders DescribeSourceLocation where
toHeaders :: DescribeSourceLocation -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeSourceLocation -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToPath DescribeSourceLocation where
toPath :: DescribeSourceLocation -> ByteString
toPath DescribeSourceLocation' {Text
sourceLocationName :: Text
$sel:sourceLocationName:DescribeSourceLocation' :: DescribeSourceLocation -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/sourceLocation/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
sourceLocationName]
instance Core.ToQuery DescribeSourceLocation where
toQuery :: DescribeSourceLocation -> QueryString
toQuery = QueryString -> DescribeSourceLocation -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeSourceLocationResponse = DescribeSourceLocationResponse'
{
DescribeSourceLocationResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeSourceLocationResponse -> Maybe Text
sourceLocationName :: Prelude.Maybe Prelude.Text,
DescribeSourceLocationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribeSourceLocationResponse -> Maybe HttpConfiguration
httpConfiguration :: Prelude.Maybe HttpConfiguration,
DescribeSourceLocationResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
DescribeSourceLocationResponse -> Maybe AccessConfiguration
accessConfiguration :: Prelude.Maybe AccessConfiguration,
DescribeSourceLocationResponse
-> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration :: Prelude.Maybe DefaultSegmentDeliveryConfiguration,
DescribeSourceLocationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
DescribeSourceLocationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeSourceLocationResponse
-> DescribeSourceLocationResponse -> Bool
(DescribeSourceLocationResponse
-> DescribeSourceLocationResponse -> Bool)
-> (DescribeSourceLocationResponse
-> DescribeSourceLocationResponse -> Bool)
-> Eq DescribeSourceLocationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeSourceLocationResponse
-> DescribeSourceLocationResponse -> Bool
$c/= :: DescribeSourceLocationResponse
-> DescribeSourceLocationResponse -> Bool
== :: DescribeSourceLocationResponse
-> DescribeSourceLocationResponse -> Bool
$c== :: DescribeSourceLocationResponse
-> DescribeSourceLocationResponse -> Bool
Prelude.Eq, ReadPrec [DescribeSourceLocationResponse]
ReadPrec DescribeSourceLocationResponse
Int -> ReadS DescribeSourceLocationResponse
ReadS [DescribeSourceLocationResponse]
(Int -> ReadS DescribeSourceLocationResponse)
-> ReadS [DescribeSourceLocationResponse]
-> ReadPrec DescribeSourceLocationResponse
-> ReadPrec [DescribeSourceLocationResponse]
-> Read DescribeSourceLocationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeSourceLocationResponse]
$creadListPrec :: ReadPrec [DescribeSourceLocationResponse]
readPrec :: ReadPrec DescribeSourceLocationResponse
$creadPrec :: ReadPrec DescribeSourceLocationResponse
readList :: ReadS [DescribeSourceLocationResponse]
$creadList :: ReadS [DescribeSourceLocationResponse]
readsPrec :: Int -> ReadS DescribeSourceLocationResponse
$creadsPrec :: Int -> ReadS DescribeSourceLocationResponse
Prelude.Read, Int -> DescribeSourceLocationResponse -> ShowS
[DescribeSourceLocationResponse] -> ShowS
DescribeSourceLocationResponse -> String
(Int -> DescribeSourceLocationResponse -> ShowS)
-> (DescribeSourceLocationResponse -> String)
-> ([DescribeSourceLocationResponse] -> ShowS)
-> Show DescribeSourceLocationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeSourceLocationResponse] -> ShowS
$cshowList :: [DescribeSourceLocationResponse] -> ShowS
show :: DescribeSourceLocationResponse -> String
$cshow :: DescribeSourceLocationResponse -> String
showsPrec :: Int -> DescribeSourceLocationResponse -> ShowS
$cshowsPrec :: Int -> DescribeSourceLocationResponse -> ShowS
Prelude.Show, (forall x.
DescribeSourceLocationResponse
-> Rep DescribeSourceLocationResponse x)
-> (forall x.
Rep DescribeSourceLocationResponse x
-> DescribeSourceLocationResponse)
-> Generic DescribeSourceLocationResponse
forall x.
Rep DescribeSourceLocationResponse x
-> DescribeSourceLocationResponse
forall x.
DescribeSourceLocationResponse
-> Rep DescribeSourceLocationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeSourceLocationResponse x
-> DescribeSourceLocationResponse
$cfrom :: forall x.
DescribeSourceLocationResponse
-> Rep DescribeSourceLocationResponse x
Prelude.Generic)
newDescribeSourceLocationResponse ::
Prelude.Int ->
DescribeSourceLocationResponse
newDescribeSourceLocationResponse :: Int -> DescribeSourceLocationResponse
newDescribeSourceLocationResponse Int
pHttpStatus_ =
DescribeSourceLocationResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> DescribeSourceLocationResponse
DescribeSourceLocationResponse'
{ $sel:creationTime:DescribeSourceLocationResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:sourceLocationName:DescribeSourceLocationResponse' :: Maybe Text
sourceLocationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DescribeSourceLocationResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpConfiguration:DescribeSourceLocationResponse' :: Maybe HttpConfiguration
httpConfiguration = Maybe HttpConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:DescribeSourceLocationResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:accessConfiguration:DescribeSourceLocationResponse' :: Maybe AccessConfiguration
accessConfiguration = Maybe AccessConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:defaultSegmentDeliveryConfiguration:DescribeSourceLocationResponse' :: Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration =
Maybe DefaultSegmentDeliveryConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:tags:DescribeSourceLocationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeSourceLocationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeSourceLocationResponse_creationTime :: Lens.Lens' DescribeSourceLocationResponse (Prelude.Maybe Prelude.UTCTime)
describeSourceLocationResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
describeSourceLocationResponse_creationTime = (DescribeSourceLocationResponse -> Maybe POSIX)
-> (DescribeSourceLocationResponse
-> Maybe POSIX -> DescribeSourceLocationResponse)
-> Lens
DescribeSourceLocationResponse
DescribeSourceLocationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSourceLocationResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeSourceLocationResponse' :: DescribeSourceLocationResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeSourceLocationResponse
s@DescribeSourceLocationResponse' {} Maybe POSIX
a -> DescribeSourceLocationResponse
s {$sel:creationTime:DescribeSourceLocationResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeSourceLocationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeSourceLocationResponse_sourceLocationName :: Lens.Lens' DescribeSourceLocationResponse (Prelude.Maybe Prelude.Text)
describeSourceLocationResponse_sourceLocationName :: (Maybe Text -> f (Maybe Text))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
describeSourceLocationResponse_sourceLocationName = (DescribeSourceLocationResponse -> Maybe Text)
-> (DescribeSourceLocationResponse
-> Maybe Text -> DescribeSourceLocationResponse)
-> Lens
DescribeSourceLocationResponse
DescribeSourceLocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSourceLocationResponse' {Maybe Text
sourceLocationName :: Maybe Text
$sel:sourceLocationName:DescribeSourceLocationResponse' :: DescribeSourceLocationResponse -> Maybe Text
sourceLocationName} -> Maybe Text
sourceLocationName) (\s :: DescribeSourceLocationResponse
s@DescribeSourceLocationResponse' {} Maybe Text
a -> DescribeSourceLocationResponse
s {$sel:sourceLocationName:DescribeSourceLocationResponse' :: Maybe Text
sourceLocationName = Maybe Text
a} :: DescribeSourceLocationResponse)
describeSourceLocationResponse_arn :: Lens.Lens' DescribeSourceLocationResponse (Prelude.Maybe Prelude.Text)
describeSourceLocationResponse_arn :: (Maybe Text -> f (Maybe Text))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
describeSourceLocationResponse_arn = (DescribeSourceLocationResponse -> Maybe Text)
-> (DescribeSourceLocationResponse
-> Maybe Text -> DescribeSourceLocationResponse)
-> Lens
DescribeSourceLocationResponse
DescribeSourceLocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSourceLocationResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribeSourceLocationResponse' :: DescribeSourceLocationResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribeSourceLocationResponse
s@DescribeSourceLocationResponse' {} Maybe Text
a -> DescribeSourceLocationResponse
s {$sel:arn:DescribeSourceLocationResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribeSourceLocationResponse)
describeSourceLocationResponse_httpConfiguration :: Lens.Lens' DescribeSourceLocationResponse (Prelude.Maybe HttpConfiguration)
describeSourceLocationResponse_httpConfiguration :: (Maybe HttpConfiguration -> f (Maybe HttpConfiguration))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
describeSourceLocationResponse_httpConfiguration = (DescribeSourceLocationResponse -> Maybe HttpConfiguration)
-> (DescribeSourceLocationResponse
-> Maybe HttpConfiguration -> DescribeSourceLocationResponse)
-> Lens
DescribeSourceLocationResponse
DescribeSourceLocationResponse
(Maybe HttpConfiguration)
(Maybe HttpConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSourceLocationResponse' {Maybe HttpConfiguration
httpConfiguration :: Maybe HttpConfiguration
$sel:httpConfiguration:DescribeSourceLocationResponse' :: DescribeSourceLocationResponse -> Maybe HttpConfiguration
httpConfiguration} -> Maybe HttpConfiguration
httpConfiguration) (\s :: DescribeSourceLocationResponse
s@DescribeSourceLocationResponse' {} Maybe HttpConfiguration
a -> DescribeSourceLocationResponse
s {$sel:httpConfiguration:DescribeSourceLocationResponse' :: Maybe HttpConfiguration
httpConfiguration = Maybe HttpConfiguration
a} :: DescribeSourceLocationResponse)
describeSourceLocationResponse_lastModifiedTime :: Lens.Lens' DescribeSourceLocationResponse (Prelude.Maybe Prelude.UTCTime)
describeSourceLocationResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
describeSourceLocationResponse_lastModifiedTime = (DescribeSourceLocationResponse -> Maybe POSIX)
-> (DescribeSourceLocationResponse
-> Maybe POSIX -> DescribeSourceLocationResponse)
-> Lens
DescribeSourceLocationResponse
DescribeSourceLocationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSourceLocationResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeSourceLocationResponse' :: DescribeSourceLocationResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeSourceLocationResponse
s@DescribeSourceLocationResponse' {} Maybe POSIX
a -> DescribeSourceLocationResponse
s {$sel:lastModifiedTime:DescribeSourceLocationResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeSourceLocationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
describeSourceLocationResponse_accessConfiguration :: Lens.Lens' DescribeSourceLocationResponse (Prelude.Maybe AccessConfiguration)
describeSourceLocationResponse_accessConfiguration :: (Maybe AccessConfiguration -> f (Maybe AccessConfiguration))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
describeSourceLocationResponse_accessConfiguration = (DescribeSourceLocationResponse -> Maybe AccessConfiguration)
-> (DescribeSourceLocationResponse
-> Maybe AccessConfiguration -> DescribeSourceLocationResponse)
-> Lens
DescribeSourceLocationResponse
DescribeSourceLocationResponse
(Maybe AccessConfiguration)
(Maybe AccessConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSourceLocationResponse' {Maybe AccessConfiguration
accessConfiguration :: Maybe AccessConfiguration
$sel:accessConfiguration:DescribeSourceLocationResponse' :: DescribeSourceLocationResponse -> Maybe AccessConfiguration
accessConfiguration} -> Maybe AccessConfiguration
accessConfiguration) (\s :: DescribeSourceLocationResponse
s@DescribeSourceLocationResponse' {} Maybe AccessConfiguration
a -> DescribeSourceLocationResponse
s {$sel:accessConfiguration:DescribeSourceLocationResponse' :: Maybe AccessConfiguration
accessConfiguration = Maybe AccessConfiguration
a} :: DescribeSourceLocationResponse)
describeSourceLocationResponse_defaultSegmentDeliveryConfiguration :: Lens.Lens' DescribeSourceLocationResponse (Prelude.Maybe DefaultSegmentDeliveryConfiguration)
describeSourceLocationResponse_defaultSegmentDeliveryConfiguration :: (Maybe DefaultSegmentDeliveryConfiguration
-> f (Maybe DefaultSegmentDeliveryConfiguration))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
describeSourceLocationResponse_defaultSegmentDeliveryConfiguration = (DescribeSourceLocationResponse
-> Maybe DefaultSegmentDeliveryConfiguration)
-> (DescribeSourceLocationResponse
-> Maybe DefaultSegmentDeliveryConfiguration
-> DescribeSourceLocationResponse)
-> Lens
DescribeSourceLocationResponse
DescribeSourceLocationResponse
(Maybe DefaultSegmentDeliveryConfiguration)
(Maybe DefaultSegmentDeliveryConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSourceLocationResponse' {Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration :: Maybe DefaultSegmentDeliveryConfiguration
$sel:defaultSegmentDeliveryConfiguration:DescribeSourceLocationResponse' :: DescribeSourceLocationResponse
-> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration} -> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration) (\s :: DescribeSourceLocationResponse
s@DescribeSourceLocationResponse' {} Maybe DefaultSegmentDeliveryConfiguration
a -> DescribeSourceLocationResponse
s {$sel:defaultSegmentDeliveryConfiguration:DescribeSourceLocationResponse' :: Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration = Maybe DefaultSegmentDeliveryConfiguration
a} :: DescribeSourceLocationResponse)
describeSourceLocationResponse_tags :: Lens.Lens' DescribeSourceLocationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeSourceLocationResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
describeSourceLocationResponse_tags = (DescribeSourceLocationResponse -> Maybe (HashMap Text Text))
-> (DescribeSourceLocationResponse
-> Maybe (HashMap Text Text) -> DescribeSourceLocationResponse)
-> Lens
DescribeSourceLocationResponse
DescribeSourceLocationResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSourceLocationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeSourceLocationResponse' :: DescribeSourceLocationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeSourceLocationResponse
s@DescribeSourceLocationResponse' {} Maybe (HashMap Text Text)
a -> DescribeSourceLocationResponse
s {$sel:tags:DescribeSourceLocationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeSourceLocationResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeSourceLocationResponse_httpStatus :: Lens.Lens' DescribeSourceLocationResponse Prelude.Int
describeSourceLocationResponse_httpStatus :: (Int -> f Int)
-> DescribeSourceLocationResponse
-> f DescribeSourceLocationResponse
describeSourceLocationResponse_httpStatus = (DescribeSourceLocationResponse -> Int)
-> (DescribeSourceLocationResponse
-> Int -> DescribeSourceLocationResponse)
-> Lens
DescribeSourceLocationResponse
DescribeSourceLocationResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeSourceLocationResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeSourceLocationResponse' :: DescribeSourceLocationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeSourceLocationResponse
s@DescribeSourceLocationResponse' {} Int
a -> DescribeSourceLocationResponse
s {$sel:httpStatus:DescribeSourceLocationResponse' :: Int
httpStatus = Int
a} :: DescribeSourceLocationResponse)
instance
Prelude.NFData
DescribeSourceLocationResponse