{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.MediaTailor.UpdateSourceLocation
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Updates a source location. A source location is a container for sources.
-- For more information about source locations, see
-- <https://docs.aws.amazon.com/mediatailor/latest/ug/channel-assembly-source-locations.html Working with source locations>
-- in the /MediaTailor User Guide/.
module Amazonka.MediaTailor.UpdateSourceLocation
  ( -- * Creating a Request
    UpdateSourceLocation (..),
    newUpdateSourceLocation,

    -- * Request Lenses
    updateSourceLocation_accessConfiguration,
    updateSourceLocation_defaultSegmentDeliveryConfiguration,
    updateSourceLocation_segmentDeliveryConfigurations,
    updateSourceLocation_httpConfiguration,
    updateSourceLocation_sourceLocationName,

    -- * Destructuring the Response
    UpdateSourceLocationResponse (..),
    newUpdateSourceLocationResponse,

    -- * Response Lenses
    updateSourceLocationResponse_accessConfiguration,
    updateSourceLocationResponse_arn,
    updateSourceLocationResponse_creationTime,
    updateSourceLocationResponse_defaultSegmentDeliveryConfiguration,
    updateSourceLocationResponse_httpConfiguration,
    updateSourceLocationResponse_lastModifiedTime,
    updateSourceLocationResponse_segmentDeliveryConfigurations,
    updateSourceLocationResponse_sourceLocationName,
    updateSourceLocationResponse_tags,
    updateSourceLocationResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.MediaTailor.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newUpdateSourceLocation' smart constructor.
data UpdateSourceLocation = UpdateSourceLocation'
  { -- | Access configuration parameters. Configures the type of authentication
    -- used to access content from your source location.
    UpdateSourceLocation -> Maybe AccessConfiguration
accessConfiguration :: Prelude.Maybe AccessConfiguration,
    -- | The optional configuration for the host server that serves segments.
    UpdateSourceLocation -> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration :: Prelude.Maybe DefaultSegmentDeliveryConfiguration,
    -- | A list of the segment delivery configurations associated with this
    -- resource.
    UpdateSourceLocation -> Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations :: Prelude.Maybe [SegmentDeliveryConfiguration],
    -- | The HTTP configuration for the source location.
    UpdateSourceLocation -> HttpConfiguration
httpConfiguration :: HttpConfiguration,
    -- | The name of the source location.
    UpdateSourceLocation -> Text
sourceLocationName :: Prelude.Text
  }
  deriving (UpdateSourceLocation -> UpdateSourceLocation -> Bool
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]
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
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. 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)

-- |
-- Create a value of 'UpdateSourceLocation' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'accessConfiguration', 'updateSourceLocation_accessConfiguration' - Access configuration parameters. Configures the type of authentication
-- used to access content from your source location.
--
-- 'defaultSegmentDeliveryConfiguration', 'updateSourceLocation_defaultSegmentDeliveryConfiguration' - The optional configuration for the host server that serves segments.
--
-- 'segmentDeliveryConfigurations', 'updateSourceLocation_segmentDeliveryConfigurations' - A list of the segment delivery configurations associated with this
-- resource.
--
-- 'httpConfiguration', 'updateSourceLocation_httpConfiguration' - The HTTP configuration for the source location.
--
-- 'sourceLocationName', 'updateSourceLocation_sourceLocationName' - The name of the source location.
newUpdateSourceLocation ::
  -- | 'httpConfiguration'
  HttpConfiguration ->
  -- | 'sourceLocationName'
  Prelude.Text ->
  UpdateSourceLocation
newUpdateSourceLocation :: HttpConfiguration -> Text -> UpdateSourceLocation
newUpdateSourceLocation
  HttpConfiguration
pHttpConfiguration_
  Text
pSourceLocationName_ =
    UpdateSourceLocation'
      { $sel:accessConfiguration:UpdateSourceLocation' :: Maybe AccessConfiguration
accessConfiguration =
          forall a. Maybe a
Prelude.Nothing,
        $sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocation' :: Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration =
          forall a. Maybe a
Prelude.Nothing,
        $sel:segmentDeliveryConfigurations:UpdateSourceLocation' :: Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations = forall a. Maybe a
Prelude.Nothing,
        $sel:httpConfiguration:UpdateSourceLocation' :: HttpConfiguration
httpConfiguration = HttpConfiguration
pHttpConfiguration_,
        $sel:sourceLocationName:UpdateSourceLocation' :: Text
sourceLocationName = Text
pSourceLocationName_
      }

-- | Access configuration parameters. Configures the type of authentication
-- used to access content from your source location.
updateSourceLocation_accessConfiguration :: Lens.Lens' UpdateSourceLocation (Prelude.Maybe AccessConfiguration)
updateSourceLocation_accessConfiguration :: Lens' UpdateSourceLocation (Maybe AccessConfiguration)
updateSourceLocation_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)

-- | The optional configuration for the host server that serves segments.
updateSourceLocation_defaultSegmentDeliveryConfiguration :: Lens.Lens' UpdateSourceLocation (Prelude.Maybe DefaultSegmentDeliveryConfiguration)
updateSourceLocation_defaultSegmentDeliveryConfiguration :: Lens'
  UpdateSourceLocation (Maybe DefaultSegmentDeliveryConfiguration)
updateSourceLocation_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)

-- | A list of the segment delivery configurations associated with this
-- resource.
updateSourceLocation_segmentDeliveryConfigurations :: Lens.Lens' UpdateSourceLocation (Prelude.Maybe [SegmentDeliveryConfiguration])
updateSourceLocation_segmentDeliveryConfigurations :: Lens' UpdateSourceLocation (Maybe [SegmentDeliveryConfiguration])
updateSourceLocation_segmentDeliveryConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocation' {Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations :: Maybe [SegmentDeliveryConfiguration]
$sel:segmentDeliveryConfigurations:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations} -> Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations) (\s :: UpdateSourceLocation
s@UpdateSourceLocation' {} Maybe [SegmentDeliveryConfiguration]
a -> UpdateSourceLocation
s {$sel:segmentDeliveryConfigurations:UpdateSourceLocation' :: Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations = Maybe [SegmentDeliveryConfiguration]
a} :: UpdateSourceLocation) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The HTTP configuration for the source location.
updateSourceLocation_httpConfiguration :: Lens.Lens' UpdateSourceLocation HttpConfiguration
updateSourceLocation_httpConfiguration :: Lens' UpdateSourceLocation HttpConfiguration
updateSourceLocation_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)

-- | The name of the source location.
updateSourceLocation_sourceLocationName :: Lens.Lens' UpdateSourceLocation Prelude.Text
updateSourceLocation_sourceLocationName :: Lens' UpdateSourceLocation Text
updateSourceLocation_sourceLocationName = 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)

instance Core.AWSRequest UpdateSourceLocation where
  type
    AWSResponse UpdateSourceLocation =
      UpdateSourceLocationResponse
  request :: (Service -> Service)
-> UpdateSourceLocation -> Request UpdateSourceLocation
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 UpdateSourceLocation
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateSourceLocation)))
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 AccessConfiguration
-> Maybe Text
-> Maybe POSIX
-> Maybe DefaultSegmentDeliveryConfiguration
-> Maybe HttpConfiguration
-> Maybe POSIX
-> Maybe [SegmentDeliveryConfiguration]
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpdateSourceLocationResponse
UpdateSourceLocationResponse'
            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
"AccessConfiguration")
            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
"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
"DefaultSegmentDeliveryConfiguration")
            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
"HttpConfiguration")
            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
"SegmentDeliveryConfigurations"
                            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
"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 UpdateSourceLocation where
  hashWithSalt :: Int -> UpdateSourceLocation -> Int
hashWithSalt Int
_salt UpdateSourceLocation' {Maybe [SegmentDeliveryConfiguration]
Maybe DefaultSegmentDeliveryConfiguration
Maybe AccessConfiguration
Text
HttpConfiguration
sourceLocationName :: Text
httpConfiguration :: HttpConfiguration
segmentDeliveryConfigurations :: Maybe [SegmentDeliveryConfiguration]
defaultSegmentDeliveryConfiguration :: Maybe DefaultSegmentDeliveryConfiguration
accessConfiguration :: Maybe AccessConfiguration
$sel:sourceLocationName:UpdateSourceLocation' :: UpdateSourceLocation -> Text
$sel:httpConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> HttpConfiguration
$sel:segmentDeliveryConfigurations:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe [SegmentDeliveryConfiguration]
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe DefaultSegmentDeliveryConfiguration
$sel:accessConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe AccessConfiguration
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AccessConfiguration
accessConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` HttpConfiguration
httpConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
sourceLocationName

instance Prelude.NFData UpdateSourceLocation where
  rnf :: UpdateSourceLocation -> ()
rnf UpdateSourceLocation' {Maybe [SegmentDeliveryConfiguration]
Maybe DefaultSegmentDeliveryConfiguration
Maybe AccessConfiguration
Text
HttpConfiguration
sourceLocationName :: Text
httpConfiguration :: HttpConfiguration
segmentDeliveryConfigurations :: Maybe [SegmentDeliveryConfiguration]
defaultSegmentDeliveryConfiguration :: Maybe DefaultSegmentDeliveryConfiguration
accessConfiguration :: Maybe AccessConfiguration
$sel:sourceLocationName:UpdateSourceLocation' :: UpdateSourceLocation -> Text
$sel:httpConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> HttpConfiguration
$sel:segmentDeliveryConfigurations:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe [SegmentDeliveryConfiguration]
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe DefaultSegmentDeliveryConfiguration
$sel:accessConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe AccessConfiguration
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe AccessConfiguration
accessConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf HttpConfiguration
httpConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
sourceLocationName

instance Data.ToHeaders UpdateSourceLocation where
  toHeaders :: UpdateSourceLocation -> 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 UpdateSourceLocation where
  toJSON :: UpdateSourceLocation -> Value
toJSON UpdateSourceLocation' {Maybe [SegmentDeliveryConfiguration]
Maybe DefaultSegmentDeliveryConfiguration
Maybe AccessConfiguration
Text
HttpConfiguration
sourceLocationName :: Text
httpConfiguration :: HttpConfiguration
segmentDeliveryConfigurations :: Maybe [SegmentDeliveryConfiguration]
defaultSegmentDeliveryConfiguration :: Maybe DefaultSegmentDeliveryConfiguration
accessConfiguration :: Maybe AccessConfiguration
$sel:sourceLocationName:UpdateSourceLocation' :: UpdateSourceLocation -> Text
$sel:httpConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> HttpConfiguration
$sel:segmentDeliveryConfigurations:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe [SegmentDeliveryConfiguration]
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe DefaultSegmentDeliveryConfiguration
$sel:accessConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe AccessConfiguration
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Key
"AccessConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AccessConfiguration
accessConfiguration,
            (Key
"DefaultSegmentDeliveryConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration,
            (Key
"SegmentDeliveryConfigurations" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
              forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations,
            forall a. a -> Maybe a
Prelude.Just
              (Key
"HttpConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= HttpConfiguration
httpConfiguration)
          ]
      )

instance Data.ToPath UpdateSourceLocation where
  toPath :: UpdateSourceLocation -> ByteString
toPath UpdateSourceLocation' {Maybe [SegmentDeliveryConfiguration]
Maybe DefaultSegmentDeliveryConfiguration
Maybe AccessConfiguration
Text
HttpConfiguration
sourceLocationName :: Text
httpConfiguration :: HttpConfiguration
segmentDeliveryConfigurations :: Maybe [SegmentDeliveryConfiguration]
defaultSegmentDeliveryConfiguration :: Maybe DefaultSegmentDeliveryConfiguration
accessConfiguration :: Maybe AccessConfiguration
$sel:sourceLocationName:UpdateSourceLocation' :: UpdateSourceLocation -> Text
$sel:httpConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> HttpConfiguration
$sel:segmentDeliveryConfigurations:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe [SegmentDeliveryConfiguration]
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe DefaultSegmentDeliveryConfiguration
$sel:accessConfiguration:UpdateSourceLocation' :: UpdateSourceLocation -> Maybe AccessConfiguration
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/sourceLocation/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
sourceLocationName]

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

-- | /See:/ 'newUpdateSourceLocationResponse' smart constructor.
data UpdateSourceLocationResponse = UpdateSourceLocationResponse'
  { -- | Access configuration parameters. Configures the type of authentication
    -- used to access content from your source location.
    UpdateSourceLocationResponse -> Maybe AccessConfiguration
accessConfiguration :: Prelude.Maybe AccessConfiguration,
    -- | The Amazon Resource Name (ARN) associated with the source location.
    UpdateSourceLocationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The timestamp that indicates when the source location was created.
    UpdateSourceLocationResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The optional configuration for the host server that serves segments.
    UpdateSourceLocationResponse
-> Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration :: Prelude.Maybe DefaultSegmentDeliveryConfiguration,
    -- | The HTTP configuration for the source location.
    UpdateSourceLocationResponse -> Maybe HttpConfiguration
httpConfiguration :: Prelude.Maybe HttpConfiguration,
    -- | The timestamp that indicates when the source location was last modified.
    UpdateSourceLocationResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | The segment delivery configurations for the source location. For
    -- information about MediaTailor configurations, see
    -- <https://docs.aws.amazon.com/mediatailor/latest/ug/configurations.html Working with configurations in AWS Elemental MediaTailor>.
    UpdateSourceLocationResponse
-> Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations :: Prelude.Maybe [SegmentDeliveryConfiguration],
    -- | The name of the source location.
    UpdateSourceLocationResponse -> Maybe Text
sourceLocationName :: Prelude.Maybe Prelude.Text,
    -- | The tags to assign to the source location. Tags are key-value pairs that
    -- you can associate with Amazon resources to help with organization,
    -- access control, and cost tracking. For more information, see
    -- <https://docs.aws.amazon.com/mediatailor/latest/ug/tagging.html Tagging AWS Elemental MediaTailor Resources>.
    UpdateSourceLocationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    UpdateSourceLocationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateSourceLocationResponse
-> UpdateSourceLocationResponse -> Bool
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]
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
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.
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)

-- |
-- Create a value of 'UpdateSourceLocationResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'accessConfiguration', 'updateSourceLocationResponse_accessConfiguration' - Access configuration parameters. Configures the type of authentication
-- used to access content from your source location.
--
-- 'arn', 'updateSourceLocationResponse_arn' - The Amazon Resource Name (ARN) associated with the source location.
--
-- 'creationTime', 'updateSourceLocationResponse_creationTime' - The timestamp that indicates when the source location was created.
--
-- 'defaultSegmentDeliveryConfiguration', 'updateSourceLocationResponse_defaultSegmentDeliveryConfiguration' - The optional configuration for the host server that serves segments.
--
-- 'httpConfiguration', 'updateSourceLocationResponse_httpConfiguration' - The HTTP configuration for the source location.
--
-- 'lastModifiedTime', 'updateSourceLocationResponse_lastModifiedTime' - The timestamp that indicates when the source location was last modified.
--
-- 'segmentDeliveryConfigurations', 'updateSourceLocationResponse_segmentDeliveryConfigurations' - The segment delivery configurations for the source location. For
-- information about MediaTailor configurations, see
-- <https://docs.aws.amazon.com/mediatailor/latest/ug/configurations.html Working with configurations in AWS Elemental MediaTailor>.
--
-- 'sourceLocationName', 'updateSourceLocationResponse_sourceLocationName' - The name of the source location.
--
-- 'tags', 'updateSourceLocationResponse_tags' - The tags to assign to the source location. Tags are key-value pairs that
-- you can associate with Amazon resources to help with organization,
-- access control, and cost tracking. For more information, see
-- <https://docs.aws.amazon.com/mediatailor/latest/ug/tagging.html Tagging AWS Elemental MediaTailor Resources>.
--
-- 'httpStatus', 'updateSourceLocationResponse_httpStatus' - The response's http status code.
newUpdateSourceLocationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateSourceLocationResponse
newUpdateSourceLocationResponse :: Int -> UpdateSourceLocationResponse
newUpdateSourceLocationResponse Int
pHttpStatus_ =
  UpdateSourceLocationResponse'
    { $sel:accessConfiguration:UpdateSourceLocationResponse' :: Maybe AccessConfiguration
accessConfiguration =
        forall a. Maybe a
Prelude.Nothing,
      $sel:arn:UpdateSourceLocationResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:UpdateSourceLocationResponse' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocationResponse' :: Maybe DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration =
        forall a. Maybe a
Prelude.Nothing,
      $sel:httpConfiguration:UpdateSourceLocationResponse' :: Maybe HttpConfiguration
httpConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:UpdateSourceLocationResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:segmentDeliveryConfigurations:UpdateSourceLocationResponse' :: Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations =
        forall a. Maybe a
Prelude.Nothing,
      $sel:sourceLocationName:UpdateSourceLocationResponse' :: Maybe Text
sourceLocationName = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:UpdateSourceLocationResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateSourceLocationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Access configuration parameters. Configures the type of authentication
-- used to access content from your source location.
updateSourceLocationResponse_accessConfiguration :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe AccessConfiguration)
updateSourceLocationResponse_accessConfiguration :: Lens' UpdateSourceLocationResponse (Maybe AccessConfiguration)
updateSourceLocationResponse_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)

-- | The Amazon Resource Name (ARN) associated with the source location.
updateSourceLocationResponse_arn :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe Prelude.Text)
updateSourceLocationResponse_arn :: Lens' UpdateSourceLocationResponse (Maybe Text)
updateSourceLocationResponse_arn = 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)

-- | The timestamp that indicates when the source location was created.
updateSourceLocationResponse_creationTime :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe Prelude.UTCTime)
updateSourceLocationResponse_creationTime :: Lens' UpdateSourceLocationResponse (Maybe UTCTime)
updateSourceLocationResponse_creationTime = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The optional configuration for the host server that serves segments.
updateSourceLocationResponse_defaultSegmentDeliveryConfiguration :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe DefaultSegmentDeliveryConfiguration)
updateSourceLocationResponse_defaultSegmentDeliveryConfiguration :: Lens'
  UpdateSourceLocationResponse
  (Maybe DefaultSegmentDeliveryConfiguration)
updateSourceLocationResponse_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)

-- | The HTTP configuration for the source location.
updateSourceLocationResponse_httpConfiguration :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe HttpConfiguration)
updateSourceLocationResponse_httpConfiguration :: Lens' UpdateSourceLocationResponse (Maybe HttpConfiguration)
updateSourceLocationResponse_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)

-- | The timestamp that indicates when the source location was last modified.
updateSourceLocationResponse_lastModifiedTime :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe Prelude.UTCTime)
updateSourceLocationResponse_lastModifiedTime :: Lens' UpdateSourceLocationResponse (Maybe UTCTime)
updateSourceLocationResponse_lastModifiedTime = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The segment delivery configurations for the source location. For
-- information about MediaTailor configurations, see
-- <https://docs.aws.amazon.com/mediatailor/latest/ug/configurations.html Working with configurations in AWS Elemental MediaTailor>.
updateSourceLocationResponse_segmentDeliveryConfigurations :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe [SegmentDeliveryConfiguration])
updateSourceLocationResponse_segmentDeliveryConfigurations :: Lens'
  UpdateSourceLocationResponse (Maybe [SegmentDeliveryConfiguration])
updateSourceLocationResponse_segmentDeliveryConfigurations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateSourceLocationResponse' {Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations :: Maybe [SegmentDeliveryConfiguration]
$sel:segmentDeliveryConfigurations:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse
-> Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations} -> Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations) (\s :: UpdateSourceLocationResponse
s@UpdateSourceLocationResponse' {} Maybe [SegmentDeliveryConfiguration]
a -> UpdateSourceLocationResponse
s {$sel:segmentDeliveryConfigurations:UpdateSourceLocationResponse' :: Maybe [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations = Maybe [SegmentDeliveryConfiguration]
a} :: UpdateSourceLocationResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The name of the source location.
updateSourceLocationResponse_sourceLocationName :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe Prelude.Text)
updateSourceLocationResponse_sourceLocationName :: Lens' UpdateSourceLocationResponse (Maybe Text)
updateSourceLocationResponse_sourceLocationName = 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)

-- | The tags to assign to the source location. Tags are key-value pairs that
-- you can associate with Amazon resources to help with organization,
-- access control, and cost tracking. For more information, see
-- <https://docs.aws.amazon.com/mediatailor/latest/ug/tagging.html Tagging AWS Elemental MediaTailor Resources>.
updateSourceLocationResponse_tags :: Lens.Lens' UpdateSourceLocationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateSourceLocationResponse_tags :: Lens' UpdateSourceLocationResponse (Maybe (HashMap Text Text))
updateSourceLocationResponse_tags = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
updateSourceLocationResponse_httpStatus :: Lens.Lens' UpdateSourceLocationResponse Prelude.Int
updateSourceLocationResponse_httpStatus :: Lens' UpdateSourceLocationResponse Int
updateSourceLocationResponse_httpStatus = 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 where
  rnf :: UpdateSourceLocationResponse -> ()
rnf UpdateSourceLocationResponse' {Int
Maybe [SegmentDeliveryConfiguration]
Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe DefaultSegmentDeliveryConfiguration
Maybe HttpConfiguration
Maybe AccessConfiguration
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
sourceLocationName :: Maybe Text
segmentDeliveryConfigurations :: Maybe [SegmentDeliveryConfiguration]
lastModifiedTime :: Maybe POSIX
httpConfiguration :: Maybe HttpConfiguration
defaultSegmentDeliveryConfiguration :: Maybe DefaultSegmentDeliveryConfiguration
creationTime :: Maybe POSIX
arn :: Maybe Text
accessConfiguration :: Maybe AccessConfiguration
$sel:httpStatus:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Int
$sel:tags:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe (HashMap Text Text)
$sel:sourceLocationName:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe Text
$sel:segmentDeliveryConfigurations:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse
-> Maybe [SegmentDeliveryConfiguration]
$sel:lastModifiedTime:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe POSIX
$sel:httpConfiguration:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe HttpConfiguration
$sel:defaultSegmentDeliveryConfiguration:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse
-> Maybe DefaultSegmentDeliveryConfiguration
$sel:creationTime:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe POSIX
$sel:arn:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe Text
$sel:accessConfiguration:UpdateSourceLocationResponse' :: UpdateSourceLocationResponse -> Maybe AccessConfiguration
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe AccessConfiguration
accessConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` 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 DefaultSegmentDeliveryConfiguration
defaultSegmentDeliveryConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe HttpConfiguration
httpConfiguration
      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 [SegmentDeliveryConfiguration]
segmentDeliveryConfigurations
      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