{-# 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.MediaPackageVOD.DescribePackagingConfiguration
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns a description of a MediaPackage VOD PackagingConfiguration
-- resource.
module Amazonka.MediaPackageVOD.DescribePackagingConfiguration
  ( -- * Creating a Request
    DescribePackagingConfiguration (..),
    newDescribePackagingConfiguration,

    -- * Request Lenses
    describePackagingConfiguration_id,

    -- * Destructuring the Response
    DescribePackagingConfigurationResponse (..),
    newDescribePackagingConfigurationResponse,

    -- * Response Lenses
    describePackagingConfigurationResponse_arn,
    describePackagingConfigurationResponse_cmafPackage,
    describePackagingConfigurationResponse_dashPackage,
    describePackagingConfigurationResponse_hlsPackage,
    describePackagingConfigurationResponse_id,
    describePackagingConfigurationResponse_mssPackage,
    describePackagingConfigurationResponse_packagingGroupId,
    describePackagingConfigurationResponse_tags,
    describePackagingConfigurationResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribePackagingConfiguration' smart constructor.
data DescribePackagingConfiguration = DescribePackagingConfiguration'
  { -- | The ID of a MediaPackage VOD PackagingConfiguration resource.
    DescribePackagingConfiguration -> Text
id :: Prelude.Text
  }
  deriving (DescribePackagingConfiguration
-> DescribePackagingConfiguration -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePackagingConfiguration
-> DescribePackagingConfiguration -> Bool
$c/= :: DescribePackagingConfiguration
-> DescribePackagingConfiguration -> Bool
== :: DescribePackagingConfiguration
-> DescribePackagingConfiguration -> Bool
$c== :: DescribePackagingConfiguration
-> DescribePackagingConfiguration -> Bool
Prelude.Eq, ReadPrec [DescribePackagingConfiguration]
ReadPrec DescribePackagingConfiguration
Int -> ReadS DescribePackagingConfiguration
ReadS [DescribePackagingConfiguration]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePackagingConfiguration]
$creadListPrec :: ReadPrec [DescribePackagingConfiguration]
readPrec :: ReadPrec DescribePackagingConfiguration
$creadPrec :: ReadPrec DescribePackagingConfiguration
readList :: ReadS [DescribePackagingConfiguration]
$creadList :: ReadS [DescribePackagingConfiguration]
readsPrec :: Int -> ReadS DescribePackagingConfiguration
$creadsPrec :: Int -> ReadS DescribePackagingConfiguration
Prelude.Read, Int -> DescribePackagingConfiguration -> ShowS
[DescribePackagingConfiguration] -> ShowS
DescribePackagingConfiguration -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePackagingConfiguration] -> ShowS
$cshowList :: [DescribePackagingConfiguration] -> ShowS
show :: DescribePackagingConfiguration -> String
$cshow :: DescribePackagingConfiguration -> String
showsPrec :: Int -> DescribePackagingConfiguration -> ShowS
$cshowsPrec :: Int -> DescribePackagingConfiguration -> ShowS
Prelude.Show, forall x.
Rep DescribePackagingConfiguration x
-> DescribePackagingConfiguration
forall x.
DescribePackagingConfiguration
-> Rep DescribePackagingConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePackagingConfiguration x
-> DescribePackagingConfiguration
$cfrom :: forall x.
DescribePackagingConfiguration
-> Rep DescribePackagingConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'DescribePackagingConfiguration' 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:
--
-- 'id', 'describePackagingConfiguration_id' - The ID of a MediaPackage VOD PackagingConfiguration resource.
newDescribePackagingConfiguration ::
  -- | 'id'
  Prelude.Text ->
  DescribePackagingConfiguration
newDescribePackagingConfiguration :: Text -> DescribePackagingConfiguration
newDescribePackagingConfiguration Text
pId_ =
  DescribePackagingConfiguration' {$sel:id:DescribePackagingConfiguration' :: Text
id = Text
pId_}

-- | The ID of a MediaPackage VOD PackagingConfiguration resource.
describePackagingConfiguration_id :: Lens.Lens' DescribePackagingConfiguration Prelude.Text
describePackagingConfiguration_id :: Lens' DescribePackagingConfiguration Text
describePackagingConfiguration_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingConfiguration' {Text
id :: Text
$sel:id:DescribePackagingConfiguration' :: DescribePackagingConfiguration -> Text
id} -> Text
id) (\s :: DescribePackagingConfiguration
s@DescribePackagingConfiguration' {} Text
a -> DescribePackagingConfiguration
s {$sel:id:DescribePackagingConfiguration' :: Text
id = Text
a} :: DescribePackagingConfiguration)

instance
  Core.AWSRequest
    DescribePackagingConfiguration
  where
  type
    AWSResponse DescribePackagingConfiguration =
      DescribePackagingConfigurationResponse
  request :: (Service -> Service)
-> DescribePackagingConfiguration
-> Request DescribePackagingConfiguration
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribePackagingConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribePackagingConfiguration)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Text
-> Maybe CmafPackage
-> Maybe DashPackage
-> Maybe HlsPackage
-> Maybe Text
-> Maybe MssPackage
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribePackagingConfigurationResponse
DescribePackagingConfigurationResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"cmafPackage")
            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
"dashPackage")
            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
"hlsPackage")
            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
"id")
            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
"mssPackage")
            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
"packagingGroupId")
            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
    DescribePackagingConfiguration
  where
  hashWithSalt :: Int -> DescribePackagingConfiguration -> Int
hashWithSalt
    Int
_salt
    DescribePackagingConfiguration' {Text
id :: Text
$sel:id:DescribePackagingConfiguration' :: DescribePackagingConfiguration -> Text
..} =
      Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id

instance
  Prelude.NFData
    DescribePackagingConfiguration
  where
  rnf :: DescribePackagingConfiguration -> ()
rnf DescribePackagingConfiguration' {Text
id :: Text
$sel:id:DescribePackagingConfiguration' :: DescribePackagingConfiguration -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
id

instance
  Data.ToHeaders
    DescribePackagingConfiguration
  where
  toHeaders :: DescribePackagingConfiguration -> 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.ToPath DescribePackagingConfiguration where
  toPath :: DescribePackagingConfiguration -> ByteString
toPath DescribePackagingConfiguration' {Text
id :: Text
$sel:id:DescribePackagingConfiguration' :: DescribePackagingConfiguration -> Text
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/packaging_configurations/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
id]

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

-- | /See:/ 'newDescribePackagingConfigurationResponse' smart constructor.
data DescribePackagingConfigurationResponse = DescribePackagingConfigurationResponse'
  { -- | The ARN of the PackagingConfiguration.
    DescribePackagingConfigurationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    DescribePackagingConfigurationResponse -> Maybe CmafPackage
cmafPackage :: Prelude.Maybe CmafPackage,
    DescribePackagingConfigurationResponse -> Maybe DashPackage
dashPackage :: Prelude.Maybe DashPackage,
    DescribePackagingConfigurationResponse -> Maybe HlsPackage
hlsPackage :: Prelude.Maybe HlsPackage,
    -- | The ID of the PackagingConfiguration.
    DescribePackagingConfigurationResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    DescribePackagingConfigurationResponse -> Maybe MssPackage
mssPackage :: Prelude.Maybe MssPackage,
    -- | The ID of a PackagingGroup.
    DescribePackagingConfigurationResponse -> Maybe Text
packagingGroupId :: Prelude.Maybe Prelude.Text,
    DescribePackagingConfigurationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribePackagingConfigurationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribePackagingConfigurationResponse
-> DescribePackagingConfigurationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePackagingConfigurationResponse
-> DescribePackagingConfigurationResponse -> Bool
$c/= :: DescribePackagingConfigurationResponse
-> DescribePackagingConfigurationResponse -> Bool
== :: DescribePackagingConfigurationResponse
-> DescribePackagingConfigurationResponse -> Bool
$c== :: DescribePackagingConfigurationResponse
-> DescribePackagingConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [DescribePackagingConfigurationResponse]
ReadPrec DescribePackagingConfigurationResponse
Int -> ReadS DescribePackagingConfigurationResponse
ReadS [DescribePackagingConfigurationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePackagingConfigurationResponse]
$creadListPrec :: ReadPrec [DescribePackagingConfigurationResponse]
readPrec :: ReadPrec DescribePackagingConfigurationResponse
$creadPrec :: ReadPrec DescribePackagingConfigurationResponse
readList :: ReadS [DescribePackagingConfigurationResponse]
$creadList :: ReadS [DescribePackagingConfigurationResponse]
readsPrec :: Int -> ReadS DescribePackagingConfigurationResponse
$creadsPrec :: Int -> ReadS DescribePackagingConfigurationResponse
Prelude.Read, Int -> DescribePackagingConfigurationResponse -> ShowS
[DescribePackagingConfigurationResponse] -> ShowS
DescribePackagingConfigurationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePackagingConfigurationResponse] -> ShowS
$cshowList :: [DescribePackagingConfigurationResponse] -> ShowS
show :: DescribePackagingConfigurationResponse -> String
$cshow :: DescribePackagingConfigurationResponse -> String
showsPrec :: Int -> DescribePackagingConfigurationResponse -> ShowS
$cshowsPrec :: Int -> DescribePackagingConfigurationResponse -> ShowS
Prelude.Show, forall x.
Rep DescribePackagingConfigurationResponse x
-> DescribePackagingConfigurationResponse
forall x.
DescribePackagingConfigurationResponse
-> Rep DescribePackagingConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePackagingConfigurationResponse x
-> DescribePackagingConfigurationResponse
$cfrom :: forall x.
DescribePackagingConfigurationResponse
-> Rep DescribePackagingConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribePackagingConfigurationResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'arn', 'describePackagingConfigurationResponse_arn' - The ARN of the PackagingConfiguration.
--
-- 'cmafPackage', 'describePackagingConfigurationResponse_cmafPackage' - Undocumented member.
--
-- 'dashPackage', 'describePackagingConfigurationResponse_dashPackage' - Undocumented member.
--
-- 'hlsPackage', 'describePackagingConfigurationResponse_hlsPackage' - Undocumented member.
--
-- 'id', 'describePackagingConfigurationResponse_id' - The ID of the PackagingConfiguration.
--
-- 'mssPackage', 'describePackagingConfigurationResponse_mssPackage' - Undocumented member.
--
-- 'packagingGroupId', 'describePackagingConfigurationResponse_packagingGroupId' - The ID of a PackagingGroup.
--
-- 'tags', 'describePackagingConfigurationResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'describePackagingConfigurationResponse_httpStatus' - The response's http status code.
newDescribePackagingConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribePackagingConfigurationResponse
newDescribePackagingConfigurationResponse :: Int -> DescribePackagingConfigurationResponse
newDescribePackagingConfigurationResponse
  Int
pHttpStatus_ =
    DescribePackagingConfigurationResponse'
      { $sel:arn:DescribePackagingConfigurationResponse' :: Maybe Text
arn =
          forall a. Maybe a
Prelude.Nothing,
        $sel:cmafPackage:DescribePackagingConfigurationResponse' :: Maybe CmafPackage
cmafPackage = forall a. Maybe a
Prelude.Nothing,
        $sel:dashPackage:DescribePackagingConfigurationResponse' :: Maybe DashPackage
dashPackage = forall a. Maybe a
Prelude.Nothing,
        $sel:hlsPackage:DescribePackagingConfigurationResponse' :: Maybe HlsPackage
hlsPackage = forall a. Maybe a
Prelude.Nothing,
        $sel:id:DescribePackagingConfigurationResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
        $sel:mssPackage:DescribePackagingConfigurationResponse' :: Maybe MssPackage
mssPackage = forall a. Maybe a
Prelude.Nothing,
        $sel:packagingGroupId:DescribePackagingConfigurationResponse' :: Maybe Text
packagingGroupId = forall a. Maybe a
Prelude.Nothing,
        $sel:tags:DescribePackagingConfigurationResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribePackagingConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The ARN of the PackagingConfiguration.
describePackagingConfigurationResponse_arn :: Lens.Lens' DescribePackagingConfigurationResponse (Prelude.Maybe Prelude.Text)
describePackagingConfigurationResponse_arn :: Lens' DescribePackagingConfigurationResponse (Maybe Text)
describePackagingConfigurationResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingConfigurationResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DescribePackagingConfigurationResponse
s@DescribePackagingConfigurationResponse' {} Maybe Text
a -> DescribePackagingConfigurationResponse
s {$sel:arn:DescribePackagingConfigurationResponse' :: Maybe Text
arn = Maybe Text
a} :: DescribePackagingConfigurationResponse)

-- | Undocumented member.
describePackagingConfigurationResponse_cmafPackage :: Lens.Lens' DescribePackagingConfigurationResponse (Prelude.Maybe CmafPackage)
describePackagingConfigurationResponse_cmafPackage :: Lens' DescribePackagingConfigurationResponse (Maybe CmafPackage)
describePackagingConfigurationResponse_cmafPackage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingConfigurationResponse' {Maybe CmafPackage
cmafPackage :: Maybe CmafPackage
$sel:cmafPackage:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe CmafPackage
cmafPackage} -> Maybe CmafPackage
cmafPackage) (\s :: DescribePackagingConfigurationResponse
s@DescribePackagingConfigurationResponse' {} Maybe CmafPackage
a -> DescribePackagingConfigurationResponse
s {$sel:cmafPackage:DescribePackagingConfigurationResponse' :: Maybe CmafPackage
cmafPackage = Maybe CmafPackage
a} :: DescribePackagingConfigurationResponse)

-- | Undocumented member.
describePackagingConfigurationResponse_dashPackage :: Lens.Lens' DescribePackagingConfigurationResponse (Prelude.Maybe DashPackage)
describePackagingConfigurationResponse_dashPackage :: Lens' DescribePackagingConfigurationResponse (Maybe DashPackage)
describePackagingConfigurationResponse_dashPackage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingConfigurationResponse' {Maybe DashPackage
dashPackage :: Maybe DashPackage
$sel:dashPackage:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe DashPackage
dashPackage} -> Maybe DashPackage
dashPackage) (\s :: DescribePackagingConfigurationResponse
s@DescribePackagingConfigurationResponse' {} Maybe DashPackage
a -> DescribePackagingConfigurationResponse
s {$sel:dashPackage:DescribePackagingConfigurationResponse' :: Maybe DashPackage
dashPackage = Maybe DashPackage
a} :: DescribePackagingConfigurationResponse)

-- | Undocumented member.
describePackagingConfigurationResponse_hlsPackage :: Lens.Lens' DescribePackagingConfigurationResponse (Prelude.Maybe HlsPackage)
describePackagingConfigurationResponse_hlsPackage :: Lens' DescribePackagingConfigurationResponse (Maybe HlsPackage)
describePackagingConfigurationResponse_hlsPackage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingConfigurationResponse' {Maybe HlsPackage
hlsPackage :: Maybe HlsPackage
$sel:hlsPackage:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe HlsPackage
hlsPackage} -> Maybe HlsPackage
hlsPackage) (\s :: DescribePackagingConfigurationResponse
s@DescribePackagingConfigurationResponse' {} Maybe HlsPackage
a -> DescribePackagingConfigurationResponse
s {$sel:hlsPackage:DescribePackagingConfigurationResponse' :: Maybe HlsPackage
hlsPackage = Maybe HlsPackage
a} :: DescribePackagingConfigurationResponse)

-- | The ID of the PackagingConfiguration.
describePackagingConfigurationResponse_id :: Lens.Lens' DescribePackagingConfigurationResponse (Prelude.Maybe Prelude.Text)
describePackagingConfigurationResponse_id :: Lens' DescribePackagingConfigurationResponse (Maybe Text)
describePackagingConfigurationResponse_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingConfigurationResponse' {Maybe Text
id :: Maybe Text
$sel:id:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: DescribePackagingConfigurationResponse
s@DescribePackagingConfigurationResponse' {} Maybe Text
a -> DescribePackagingConfigurationResponse
s {$sel:id:DescribePackagingConfigurationResponse' :: Maybe Text
id = Maybe Text
a} :: DescribePackagingConfigurationResponse)

-- | Undocumented member.
describePackagingConfigurationResponse_mssPackage :: Lens.Lens' DescribePackagingConfigurationResponse (Prelude.Maybe MssPackage)
describePackagingConfigurationResponse_mssPackage :: Lens' DescribePackagingConfigurationResponse (Maybe MssPackage)
describePackagingConfigurationResponse_mssPackage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingConfigurationResponse' {Maybe MssPackage
mssPackage :: Maybe MssPackage
$sel:mssPackage:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe MssPackage
mssPackage} -> Maybe MssPackage
mssPackage) (\s :: DescribePackagingConfigurationResponse
s@DescribePackagingConfigurationResponse' {} Maybe MssPackage
a -> DescribePackagingConfigurationResponse
s {$sel:mssPackage:DescribePackagingConfigurationResponse' :: Maybe MssPackage
mssPackage = Maybe MssPackage
a} :: DescribePackagingConfigurationResponse)

-- | The ID of a PackagingGroup.
describePackagingConfigurationResponse_packagingGroupId :: Lens.Lens' DescribePackagingConfigurationResponse (Prelude.Maybe Prelude.Text)
describePackagingConfigurationResponse_packagingGroupId :: Lens' DescribePackagingConfigurationResponse (Maybe Text)
describePackagingConfigurationResponse_packagingGroupId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingConfigurationResponse' {Maybe Text
packagingGroupId :: Maybe Text
$sel:packagingGroupId:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe Text
packagingGroupId} -> Maybe Text
packagingGroupId) (\s :: DescribePackagingConfigurationResponse
s@DescribePackagingConfigurationResponse' {} Maybe Text
a -> DescribePackagingConfigurationResponse
s {$sel:packagingGroupId:DescribePackagingConfigurationResponse' :: Maybe Text
packagingGroupId = Maybe Text
a} :: DescribePackagingConfigurationResponse)

-- | Undocumented member.
describePackagingConfigurationResponse_tags :: Lens.Lens' DescribePackagingConfigurationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describePackagingConfigurationResponse_tags :: Lens'
  DescribePackagingConfigurationResponse (Maybe (HashMap Text Text))
describePackagingConfigurationResponse_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingConfigurationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribePackagingConfigurationResponse
s@DescribePackagingConfigurationResponse' {} Maybe (HashMap Text Text)
a -> DescribePackagingConfigurationResponse
s {$sel:tags:DescribePackagingConfigurationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribePackagingConfigurationResponse) 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.
describePackagingConfigurationResponse_httpStatus :: Lens.Lens' DescribePackagingConfigurationResponse Prelude.Int
describePackagingConfigurationResponse_httpStatus :: Lens' DescribePackagingConfigurationResponse Int
describePackagingConfigurationResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingConfigurationResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribePackagingConfigurationResponse
s@DescribePackagingConfigurationResponse' {} Int
a -> DescribePackagingConfigurationResponse
s {$sel:httpStatus:DescribePackagingConfigurationResponse' :: Int
httpStatus = Int
a} :: DescribePackagingConfigurationResponse)

instance
  Prelude.NFData
    DescribePackagingConfigurationResponse
  where
  rnf :: DescribePackagingConfigurationResponse -> ()
rnf DescribePackagingConfigurationResponse' {Int
Maybe Text
Maybe (HashMap Text Text)
Maybe MssPackage
Maybe HlsPackage
Maybe CmafPackage
Maybe DashPackage
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
packagingGroupId :: Maybe Text
mssPackage :: Maybe MssPackage
id :: Maybe Text
hlsPackage :: Maybe HlsPackage
dashPackage :: Maybe DashPackage
cmafPackage :: Maybe CmafPackage
arn :: Maybe Text
$sel:httpStatus:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Int
$sel:tags:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe (HashMap Text Text)
$sel:packagingGroupId:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe Text
$sel:mssPackage:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe MssPackage
$sel:id:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe Text
$sel:hlsPackage:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe HlsPackage
$sel:dashPackage:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe DashPackage
$sel:cmafPackage:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe CmafPackage
$sel:arn:DescribePackagingConfigurationResponse' :: DescribePackagingConfigurationResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CmafPackage
cmafPackage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DashPackage
dashPackage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe HlsPackage
hlsPackage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MssPackage
mssPackage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
packagingGroupId
      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