{-# 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.UpdateSourceLocation
(
UpdateSourceLocation (..),
newUpdateSourceLocation,
updateSourceLocation_accessConfiguration,
updateSourceLocation_defaultSegmentDeliveryConfiguration,
updateSourceLocation_sourceLocationName,
updateSourceLocation_httpConfiguration,
UpdateSourceLocationResponse (..),
newUpdateSourceLocationResponse,
updateSourceLocationResponse_creationTime,
updateSourceLocationResponse_sourceLocationName,
updateSourceLocationResponse_arn,
updateSourceLocationResponse_httpConfiguration,
updateSourceLocationResponse_lastModifiedTime,
updateSourceLocationResponse_accessConfiguration,
updateSourceLocationResponse_defaultSegmentDeliveryConfiguration,
updateSourceLocationResponse_tags,
updateSourceLocationResponse_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 UpdateSourceLocation = UpdateSourceLocation'
{
UpdateSourceLocation -> Maybe AccessConfiguration
accessConfiguration :: Prelude.Maybe AccessConfiguration,
UpdateSourceLocation -> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration :: Prelude.Maybe DefaultSegmentDeliveryConfiguration,
UpdateSourceLocation -> Text
sourceLocationName :: Prelude.Text,
UpdateSourceLocation -> HttpConfiguration
httpConfiguration :: HttpConfiguration
}
deriving (UpdateSourceLocation -> UpdateSourceLocation -> Bool
(UpdateSourceLocation -> UpdateSourceLocation -> Bool)
-> (UpdateSourceLocation -> UpdateSourceLocation -> Bool)
-> Eq UpdateSourceLocation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateSourceLocation -> UpdateSourceLocation -> Bool
$c/= :: UpdateSourceLocation -> UpdateSourceLocation -> Bool
== :: UpdateSourceLocation -> UpdateSourceLocation -> Bool
$c== :: UpdateSourceLocation -> UpdateSourceLocation -> Bool
Prelude.Eq, ReadPrec [UpdateSourceLocation]
ReadPrec UpdateSourceLocation
Int -> ReadS UpdateSourceLocation
ReadS [UpdateSourceLocation]
(Int -> ReadS UpdateSourceLocation)
-> ReadS [UpdateSourceLocation]
-> ReadPrec UpdateSourceLocation
-> ReadPrec [UpdateSourceLocation]
-> Read UpdateSourceLocation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateSourceLocation]
$creadListPrec :: ReadPrec [UpdateSourceLocation]
readPrec :: ReadPrec UpdateSourceLocation
$creadPrec :: ReadPrec UpdateSourceLocation
readList :: ReadS [UpdateSourceLocation]
$creadList :: ReadS [UpdateSourceLocation]
readsPrec :: Int -> ReadS UpdateSourceLocation
$creadsPrec :: Int -> ReadS UpdateSourceLocation
Prelude.Read, Int -> UpdateSourceLocation -> ShowS
[UpdateSourceLocation] -> ShowS
UpdateSourceLocation -> String
(Int -> UpdateSourceLocation -> ShowS)
-> (UpdateSourceLocation -> String)
-> ([UpdateSourceLocation] -> ShowS)
-> Show UpdateSourceLocation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateSourceLocation] -> ShowS
$cshowList :: [UpdateSourceLocation] -> ShowS
show :: UpdateSourceLocation -> String
$cshow :: UpdateSourceLocation -> String
showsPrec :: Int -> UpdateSourceLocation -> ShowS
$cshowsPrec :: Int -> UpdateSourceLocation -> ShowS
Prelude.Show, (forall x. UpdateSourceLocation -> Rep UpdateSourceLocation x)
-> (forall x. Rep UpdateSourceLocation x -> UpdateSourceLocation)
-> Generic UpdateSourceLocation
forall x. Rep UpdateSourceLocation x -> UpdateSourceLocation
forall x. UpdateSourceLocation -> Rep UpdateSourceLocation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateSourceLocation x -> UpdateSourceLocation
$cfrom :: forall x. UpdateSourceLocation -> Rep UpdateSourceLocation x
Prelude.Generic)
newUpdateSourceLocation ::
Prelude.Text ->
HttpConfiguration ->
UpdateSourceLocation
newUpdateSourceLocation :: Text -> HttpConfiguration -> UpdateSourceLocation
newUpdateSourceLocation
Text
pSourceLocationName_
HttpConfiguration
pHttpConfiguration_ =
UpdateSourceLocation' :: Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Text
-> HttpConfiguration
-> UpdateSourceLocation
UpdateSourceLocation'
{ $sel:accessConfiguration:UpdateSourceLocation' :: Maybe AccessConfiguration
accessConfiguration =
Maybe AccessConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocation' :: Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration =
Maybe DefaultSegmentDeliveryConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:sourceLocationName:UpdateSourceLocation' :: Text
sourceLocationName = Text
pSourceLocationName_,
$sel:httpConfiguration:UpdateSourceLocation' :: HttpConfiguration
httpConfiguration = HttpConfiguration
pHttpConfiguration_
}
updateSourceLocation_accessConfiguration :: Lens.Lens' UpdateSourceLocation (Prelude.Maybe AccessConfiguration)
updateSourceLocation_accessConfiguration :: (Maybe AccessConfiguration -> f (Maybe AccessConfiguration))
-> UpdateSourceLocation -> f UpdateSourceLocation
updateSourceLocation_accessConfiguration = (UpdateSourceLocation -> Maybe AccessConfiguration)
-> (UpdateSourceLocation
-> Maybe AccessConfiguration -> UpdateSourceLocation)
-> Lens
UpdateSourceLocation
UpdateSourceLocation
(Maybe AccessConfiguration)
(Maybe AccessConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocation' {Maybe AccessConfiguration
accessConfiguration :: Maybe AccessConfiguration
$sel:accessConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe AccessConfiguration
accessConfiguration} -> Maybe AccessConfiguration
accessConfiguration) (\s :: UpdateSourceLocation
s@UpdateSourceLocation' {} Maybe AccessConfiguration
a -> UpdateSourceLocation
s {$sel:accessConfiguration:UpdateSourceLocation' :: Maybe AccessConfiguration
accessConfiguration = Maybe AccessConfiguration
a} :: UpdateSourceLocation)
updateSourceLocation_defaultSegmentDeliveryConfiguration :: Lens.Lens' UpdateSourceLocation (Prelude.Maybe DefaultSegmentDeliveryConfiguration)
updateSourceLocation_defaultSegmentDeliveryConfiguration :: (Maybe DefaultSegmentDeliveryConfiguration
-> f (Maybe DefaultSegmentDeliveryConfiguration))
-> UpdateSourceLocation -> f UpdateSourceLocation
updateSourceLocation_defaultSegmentDeliveryConfiguration = (UpdateSourceLocation -> Maybe DefaultSegmentDeliveryConfiguration)
-> (UpdateSourceLocation
-> Maybe DefaultSegmentDeliveryConfiguration
-> UpdateSourceLocation)
-> Lens
UpdateSourceLocation
UpdateSourceLocation
(Maybe DefaultSegmentDeliveryConfiguration)
(Maybe DefaultSegmentDeliveryConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocation' {Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration :: Maybe DefaultSegmentDeliveryConfiguration
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration} -> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration) (\s :: UpdateSourceLocation
s@UpdateSourceLocation' {} Maybe DefaultSegmentDeliveryConfiguration
a -> UpdateSourceLocation
s {$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocation' :: Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration = Maybe DefaultSegmentDeliveryConfiguration
a} :: UpdateSourceLocation)
updateSourceLocation_sourceLocationName :: Lens.Lens' UpdateSourceLocation Prelude.Text
updateSourceLocation_sourceLocationName :: (Text -> f Text) -> UpdateSourceLocation -> f UpdateSourceLocation
updateSourceLocation_sourceLocationName = (UpdateSourceLocation -> Text)
-> (UpdateSourceLocation -> Text -> UpdateSourceLocation)
-> Lens UpdateSourceLocation UpdateSourceLocation Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocation' {Text
sourceLocationName :: Text
$sel:sourceLocationName:UpdateSourceLocation' :: UpdateSourceLocation -> Text
sourceLocationName} -> Text
sourceLocationName) (\s :: UpdateSourceLocation
s@UpdateSourceLocation' {} Text
a -> UpdateSourceLocation
s {$sel:sourceLocationName:UpdateSourceLocation' :: Text
sourceLocationName = Text
a} :: UpdateSourceLocation)
updateSourceLocation_httpConfiguration :: Lens.Lens' UpdateSourceLocation HttpConfiguration
updateSourceLocation_httpConfiguration :: (HttpConfiguration -> f HttpConfiguration)
-> UpdateSourceLocation -> f UpdateSourceLocation
updateSourceLocation_httpConfiguration = (UpdateSourceLocation -> HttpConfiguration)
-> (UpdateSourceLocation
-> HttpConfiguration -> UpdateSourceLocation)
-> Lens
UpdateSourceLocation
UpdateSourceLocation
HttpConfiguration
HttpConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocation' {HttpConfiguration
httpConfiguration :: HttpConfiguration
$sel:httpConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> HttpConfiguration
httpConfiguration} -> HttpConfiguration
httpConfiguration) (\s :: UpdateSourceLocation
s@UpdateSourceLocation' {} HttpConfiguration
a -> UpdateSourceLocation
s {$sel:httpConfiguration:UpdateSourceLocation' :: HttpConfiguration
httpConfiguration = HttpConfiguration
a} :: UpdateSourceLocation)
instance Core.AWSRequest UpdateSourceLocation where
type
AWSResponse UpdateSourceLocation =
UpdateSourceLocationResponse
request :: UpdateSourceLocation -> Request UpdateSourceLocation
request = Service -> UpdateSourceLocation -> Request UpdateSourceLocation
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateSourceLocation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateSourceLocation)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateSourceLocation))
-> Logger
-> Service
-> Proxy UpdateSourceLocation
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateSourceLocation)))
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
-> UpdateSourceLocationResponse
UpdateSourceLocationResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> UpdateSourceLocationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> UpdateSourceLocationResponse)
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
-> UpdateSourceLocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> UpdateSourceLocationResponse)
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
-> UpdateSourceLocationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> UpdateSourceLocationResponse)
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
-> UpdateSourceLocationResponse)
-> Either String (Maybe HttpConfiguration)
-> Either
String
(Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> UpdateSourceLocationResponse)
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
-> UpdateSourceLocationResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> UpdateSourceLocationResponse)
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
-> UpdateSourceLocationResponse)
-> Either String (Maybe AccessConfiguration)
-> Either
String
(Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> UpdateSourceLocationResponse)
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
-> UpdateSourceLocationResponse)
-> Either String (Maybe DefaultSegmentDeliveryConfiguration)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> UpdateSourceLocationResponse)
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 -> UpdateSourceLocationResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> UpdateSourceLocationResponse)
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 -> UpdateSourceLocationResponse)
-> Either String Int -> Either String UpdateSourceLocationResponse
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 UpdateSourceLocation
instance Prelude.NFData UpdateSourceLocation
instance Core.ToHeaders UpdateSourceLocation where
toHeaders :: UpdateSourceLocation -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateSourceLocation -> 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.ToJSON UpdateSourceLocation where
toJSON :: UpdateSourceLocation -> Value
toJSON UpdateSourceLocation' {Maybe DefaultSegmentDeliveryConfiguration
Maybe AccessConfiguration
Text
HttpConfiguration
httpConfiguration :: HttpConfiguration
sourceLocationName :: Text
defaultSegmentDeliveryConfiguration :: Maybe DefaultSegmentDeliveryConfiguration
accessConfiguration :: Maybe AccessConfiguration
$sel:httpConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> HttpConfiguration
$sel:sourceLocationName:UpdateSourceLocation' :: UpdateSourceLocation -> Text
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe DefaultSegmentDeliveryConfiguration
$sel:accessConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe AccessConfiguration
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"AccessConfiguration" Text -> AccessConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(AccessConfiguration -> Pair)
-> Maybe AccessConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AccessConfiguration
accessConfiguration,
(Text
"DefaultSegmentDeliveryConfiguration" Text -> DefaultSegmentDeliveryConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DefaultSegmentDeliveryConfiguration -> Pair)
-> Maybe DefaultSegmentDeliveryConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"HttpConfiguration" Text -> HttpConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= HttpConfiguration
httpConfiguration)
]
)
instance Core.ToPath UpdateSourceLocation where
toPath :: UpdateSourceLocation -> ByteString
toPath UpdateSourceLocation' {Maybe DefaultSegmentDeliveryConfiguration
Maybe AccessConfiguration
Text
HttpConfiguration
httpConfiguration :: HttpConfiguration
sourceLocationName :: Text
defaultSegmentDeliveryConfiguration :: Maybe DefaultSegmentDeliveryConfiguration
accessConfiguration :: Maybe AccessConfiguration
$sel:httpConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> HttpConfiguration
$sel:sourceLocationName:UpdateSourceLocation' :: UpdateSourceLocation -> Text
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe DefaultSegmentDeliveryConfiguration
$sel:accessConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe AccessConfiguration
..} =
[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 UpdateSourceLocation where
toQuery :: UpdateSourceLocation -> QueryString
toQuery = QueryString -> UpdateSourceLocation -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateSourceLocationResponse = UpdateSourceLocationResponse'
{
UpdateSourceLocationResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
UpdateSourceLocationResponse -> Maybe Text
sourceLocationName :: Prelude.Maybe Prelude.Text,
UpdateSourceLocationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdateSourceLocationResponse -> Maybe HttpConfiguration
httpConfiguration :: Prelude.Maybe HttpConfiguration,
UpdateSourceLocationResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
UpdateSourceLocationResponse -> Maybe AccessConfiguration
accessConfiguration :: Prelude.Maybe AccessConfiguration,
UpdateSourceLocationResponse
-> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration :: Prelude.Maybe DefaultSegmentDeliveryConfiguration,
UpdateSourceLocationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
UpdateSourceLocationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateSourceLocationResponse
-> UpdateSourceLocationResponse -> Bool
(UpdateSourceLocationResponse
-> UpdateSourceLocationResponse -> Bool)
-> (UpdateSourceLocationResponse
-> UpdateSourceLocationResponse -> Bool)
-> Eq UpdateSourceLocationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateSourceLocationResponse
-> UpdateSourceLocationResponse -> Bool
$c/= :: UpdateSourceLocationResponse
-> UpdateSourceLocationResponse -> Bool
== :: UpdateSourceLocationResponse
-> UpdateSourceLocationResponse -> Bool
$c== :: UpdateSourceLocationResponse
-> UpdateSourceLocationResponse -> Bool
Prelude.Eq, ReadPrec [UpdateSourceLocationResponse]
ReadPrec UpdateSourceLocationResponse
Int -> ReadS UpdateSourceLocationResponse
ReadS [UpdateSourceLocationResponse]
(Int -> ReadS UpdateSourceLocationResponse)
-> ReadS [UpdateSourceLocationResponse]
-> ReadPrec UpdateSourceLocationResponse
-> ReadPrec [UpdateSourceLocationResponse]
-> Read UpdateSourceLocationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateSourceLocationResponse]
$creadListPrec :: ReadPrec [UpdateSourceLocationResponse]
readPrec :: ReadPrec UpdateSourceLocationResponse
$creadPrec :: ReadPrec UpdateSourceLocationResponse
readList :: ReadS [UpdateSourceLocationResponse]
$creadList :: ReadS [UpdateSourceLocationResponse]
readsPrec :: Int -> ReadS UpdateSourceLocationResponse
$creadsPrec :: Int -> ReadS UpdateSourceLocationResponse
Prelude.Read, Int -> UpdateSourceLocationResponse -> ShowS
[UpdateSourceLocationResponse] -> ShowS
UpdateSourceLocationResponse -> String
(Int -> UpdateSourceLocationResponse -> ShowS)
-> (UpdateSourceLocationResponse -> String)
-> ([UpdateSourceLocationResponse] -> ShowS)
-> Show UpdateSourceLocationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateSourceLocationResponse] -> ShowS
$cshowList :: [UpdateSourceLocationResponse] -> ShowS
show :: UpdateSourceLocationResponse -> String
$cshow :: UpdateSourceLocationResponse -> String
showsPrec :: Int -> UpdateSourceLocationResponse -> ShowS
$cshowsPrec :: Int -> UpdateSourceLocationResponse -> ShowS
Prelude.Show, (forall x.
UpdateSourceLocationResponse -> Rep UpdateSourceLocationResponse x)
-> (forall x.
Rep UpdateSourceLocationResponse x -> UpdateSourceLocationResponse)
-> Generic UpdateSourceLocationResponse
forall x.
Rep UpdateSourceLocationResponse x -> UpdateSourceLocationResponse
forall x.
UpdateSourceLocationResponse -> Rep UpdateSourceLocationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateSourceLocationResponse x -> UpdateSourceLocationResponse
$cfrom :: forall x.
UpdateSourceLocationResponse -> Rep UpdateSourceLocationResponse x
Prelude.Generic)
newUpdateSourceLocationResponse ::
Prelude.Int ->
UpdateSourceLocationResponse
newUpdateSourceLocationResponse :: Int -> UpdateSourceLocationResponse
newUpdateSourceLocationResponse Int
pHttpStatus_ =
UpdateSourceLocationResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe AccessConfiguration
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe (HashMap Text Text)
-> Int
-> UpdateSourceLocationResponse
UpdateSourceLocationResponse'
{ $sel:creationTime:UpdateSourceLocationResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:sourceLocationName:UpdateSourceLocationResponse' :: Maybe Text
sourceLocationName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:UpdateSourceLocationResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpConfiguration:UpdateSourceLocationResponse' :: Maybe HttpConfiguration
httpConfiguration = Maybe HttpConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:UpdateSourceLocationResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:accessConfiguration:UpdateSourceLocationResponse' :: Maybe AccessConfiguration
accessConfiguration = Maybe AccessConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocationResponse' :: Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration =
Maybe DefaultSegmentDeliveryConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:tags:UpdateSourceLocationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateSourceLocationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateSourceLocationResponse_creationTime :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe Prelude.UTCTime)
updateSourceLocationResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse
updateSourceLocationResponse_creationTime = (UpdateSourceLocationResponse -> Maybe POSIX)
-> (UpdateSourceLocationResponse
-> Maybe POSIX -> UpdateSourceLocationResponse)
-> Lens
UpdateSourceLocationResponse
UpdateSourceLocationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocationResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: UpdateSourceLocationResponse
s@UpdateSourceLocationResponse' {} Maybe POSIX
a -> UpdateSourceLocationResponse
s {$sel:creationTime:UpdateSourceLocationResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: UpdateSourceLocationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateSourceLocationResponse
-> f UpdateSourceLocationResponse
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
updateSourceLocationResponse_sourceLocationName :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe Prelude.Text)
updateSourceLocationResponse_sourceLocationName :: (Maybe Text -> f (Maybe Text))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse
updateSourceLocationResponse_sourceLocationName = (UpdateSourceLocationResponse -> Maybe Text)
-> (UpdateSourceLocationResponse
-> Maybe Text -> UpdateSourceLocationResponse)
-> Lens
UpdateSourceLocationResponse
UpdateSourceLocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocationResponse' {Maybe Text
sourceLocationName :: Maybe Text
$sel:sourceLocationName:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe Text
sourceLocationName} -> Maybe Text
sourceLocationName) (\s :: UpdateSourceLocationResponse
s@UpdateSourceLocationResponse' {} Maybe Text
a -> UpdateSourceLocationResponse
s {$sel:sourceLocationName:UpdateSourceLocationResponse' :: Maybe Text
sourceLocationName = Maybe Text
a} :: UpdateSourceLocationResponse)
updateSourceLocationResponse_arn :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe Prelude.Text)
updateSourceLocationResponse_arn :: (Maybe Text -> f (Maybe Text))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse
updateSourceLocationResponse_arn = (UpdateSourceLocationResponse -> Maybe Text)
-> (UpdateSourceLocationResponse
-> Maybe Text -> UpdateSourceLocationResponse)
-> Lens
UpdateSourceLocationResponse
UpdateSourceLocationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocationResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateSourceLocationResponse
s@UpdateSourceLocationResponse' {} Maybe Text
a -> UpdateSourceLocationResponse
s {$sel:arn:UpdateSourceLocationResponse' :: Maybe Text
arn = Maybe Text
a} :: UpdateSourceLocationResponse)
updateSourceLocationResponse_httpConfiguration :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe HttpConfiguration)
updateSourceLocationResponse_httpConfiguration :: (Maybe HttpConfiguration -> f (Maybe HttpConfiguration))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse
updateSourceLocationResponse_httpConfiguration = (UpdateSourceLocationResponse -> Maybe HttpConfiguration)
-> (UpdateSourceLocationResponse
-> Maybe HttpConfiguration -> UpdateSourceLocationResponse)
-> Lens
UpdateSourceLocationResponse
UpdateSourceLocationResponse
(Maybe HttpConfiguration)
(Maybe HttpConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocationResponse' {Maybe HttpConfiguration
httpConfiguration :: Maybe HttpConfiguration
$sel:httpConfiguration:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe HttpConfiguration
httpConfiguration} -> Maybe HttpConfiguration
httpConfiguration) (\s :: UpdateSourceLocationResponse
s@UpdateSourceLocationResponse' {} Maybe HttpConfiguration
a -> UpdateSourceLocationResponse
s {$sel:httpConfiguration:UpdateSourceLocationResponse' :: Maybe HttpConfiguration
httpConfiguration = Maybe HttpConfiguration
a} :: UpdateSourceLocationResponse)
updateSourceLocationResponse_lastModifiedTime :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe Prelude.UTCTime)
updateSourceLocationResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse
updateSourceLocationResponse_lastModifiedTime = (UpdateSourceLocationResponse -> Maybe POSIX)
-> (UpdateSourceLocationResponse
-> Maybe POSIX -> UpdateSourceLocationResponse)
-> Lens
UpdateSourceLocationResponse
UpdateSourceLocationResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocationResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: UpdateSourceLocationResponse
s@UpdateSourceLocationResponse' {} Maybe POSIX
a -> UpdateSourceLocationResponse
s {$sel:lastModifiedTime:UpdateSourceLocationResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: UpdateSourceLocationResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateSourceLocationResponse
-> f UpdateSourceLocationResponse
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
updateSourceLocationResponse_accessConfiguration :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe AccessConfiguration)
updateSourceLocationResponse_accessConfiguration :: (Maybe AccessConfiguration -> f (Maybe AccessConfiguration))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse
updateSourceLocationResponse_accessConfiguration = (UpdateSourceLocationResponse -> Maybe AccessConfiguration)
-> (UpdateSourceLocationResponse
-> Maybe AccessConfiguration -> UpdateSourceLocationResponse)
-> Lens
UpdateSourceLocationResponse
UpdateSourceLocationResponse
(Maybe AccessConfiguration)
(Maybe AccessConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocationResponse' {Maybe AccessConfiguration
accessConfiguration :: Maybe AccessConfiguration
$sel:accessConfiguration:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe AccessConfiguration
accessConfiguration} -> Maybe AccessConfiguration
accessConfiguration) (\s :: UpdateSourceLocationResponse
s@UpdateSourceLocationResponse' {} Maybe AccessConfiguration
a -> UpdateSourceLocationResponse
s {$sel:accessConfiguration:UpdateSourceLocationResponse' :: Maybe AccessConfiguration
accessConfiguration = Maybe AccessConfiguration
a} :: UpdateSourceLocationResponse)
updateSourceLocationResponse_defaultSegmentDeliveryConfiguration :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe DefaultSegmentDeliveryConfiguration)
updateSourceLocationResponse_defaultSegmentDeliveryConfiguration :: (Maybe DefaultSegmentDeliveryConfiguration
-> f (Maybe DefaultSegmentDeliveryConfiguration))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse
updateSourceLocationResponse_defaultSegmentDeliveryConfiguration = (UpdateSourceLocationResponse
-> Maybe DefaultSegmentDeliveryConfiguration)
-> (UpdateSourceLocationResponse
-> Maybe DefaultSegmentDeliveryConfiguration
-> UpdateSourceLocationResponse)
-> Lens
UpdateSourceLocationResponse
UpdateSourceLocationResponse
(Maybe DefaultSegmentDeliveryConfiguration)
(Maybe DefaultSegmentDeliveryConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocationResponse' {Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration :: Maybe DefaultSegmentDeliveryConfiguration
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse
-> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration} -> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration) (\s :: UpdateSourceLocationResponse
s@UpdateSourceLocationResponse' {} Maybe DefaultSegmentDeliveryConfiguration
a -> UpdateSourceLocationResponse
s {$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocationResponse' :: Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration = Maybe DefaultSegmentDeliveryConfiguration
a} :: UpdateSourceLocationResponse)
updateSourceLocationResponse_tags :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateSourceLocationResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse
updateSourceLocationResponse_tags = (UpdateSourceLocationResponse -> Maybe (HashMap Text Text))
-> (UpdateSourceLocationResponse
-> Maybe (HashMap Text Text) -> UpdateSourceLocationResponse)
-> Lens
UpdateSourceLocationResponse
UpdateSourceLocationResponse
(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 (\UpdateSourceLocationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: UpdateSourceLocationResponse
s@UpdateSourceLocationResponse' {} Maybe (HashMap Text Text)
a -> UpdateSourceLocationResponse
s {$sel:tags:UpdateSourceLocationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: UpdateSourceLocationResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse)
-> ((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)))
-> UpdateSourceLocationResponse
-> f UpdateSourceLocationResponse
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
updateSourceLocationResponse_httpStatus :: Lens.Lens' UpdateSourceLocationResponse Prelude.Int
updateSourceLocationResponse_httpStatus :: (Int -> f Int)
-> UpdateSourceLocationResponse -> f UpdateSourceLocationResponse
updateSourceLocationResponse_httpStatus = (UpdateSourceLocationResponse -> Int)
-> (UpdateSourceLocationResponse
-> Int -> UpdateSourceLocationResponse)
-> Lens
UpdateSourceLocationResponse UpdateSourceLocationResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocationResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateSourceLocationResponse
s@UpdateSourceLocationResponse' {} Int
a -> UpdateSourceLocationResponse
s {$sel:httpStatus:UpdateSourceLocationResponse' :: Int
httpStatus = Int
a} :: UpdateSourceLocationResponse)
instance Prelude.NFData UpdateSourceLocationResponse