{-# 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.CreatePackagingConfiguration
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Creates a new MediaPackage VOD PackagingConfiguration resource.
module Amazonka.MediaPackageVOD.CreatePackagingConfiguration
  ( -- * Creating a Request
    CreatePackagingConfiguration (..),
    newCreatePackagingConfiguration,

    -- * Request Lenses
    createPackagingConfiguration_hlsPackage,
    createPackagingConfiguration_dashPackage,
    createPackagingConfiguration_mssPackage,
    createPackagingConfiguration_cmafPackage,
    createPackagingConfiguration_tags,
    createPackagingConfiguration_id,
    createPackagingConfiguration_packagingGroupId,

    -- * Destructuring the Response
    CreatePackagingConfigurationResponse (..),
    newCreatePackagingConfigurationResponse,

    -- * Response Lenses
    createPackagingConfigurationResponse_hlsPackage,
    createPackagingConfigurationResponse_arn,
    createPackagingConfigurationResponse_packagingGroupId,
    createPackagingConfigurationResponse_dashPackage,
    createPackagingConfigurationResponse_mssPackage,
    createPackagingConfigurationResponse_id,
    createPackagingConfigurationResponse_cmafPackage,
    createPackagingConfigurationResponse_tags,
    createPackagingConfigurationResponse_httpStatus,
  )
where

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

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

-- |
-- Create a value of 'CreatePackagingConfiguration' 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:
--
-- 'hlsPackage', 'createPackagingConfiguration_hlsPackage' - Undocumented member.
--
-- 'dashPackage', 'createPackagingConfiguration_dashPackage' - Undocumented member.
--
-- 'mssPackage', 'createPackagingConfiguration_mssPackage' - Undocumented member.
--
-- 'cmafPackage', 'createPackagingConfiguration_cmafPackage' - Undocumented member.
--
-- 'tags', 'createPackagingConfiguration_tags' - Undocumented member.
--
-- 'id', 'createPackagingConfiguration_id' - The ID of the PackagingConfiguration.
--
-- 'packagingGroupId', 'createPackagingConfiguration_packagingGroupId' - The ID of a PackagingGroup.
newCreatePackagingConfiguration ::
  -- | 'id'
  Prelude.Text ->
  -- | 'packagingGroupId'
  Prelude.Text ->
  CreatePackagingConfiguration
newCreatePackagingConfiguration :: Text -> Text -> CreatePackagingConfiguration
newCreatePackagingConfiguration
  Text
pId_
  Text
pPackagingGroupId_ =
    CreatePackagingConfiguration' :: Maybe HlsPackage
-> Maybe DashPackage
-> Maybe MssPackage
-> Maybe CmafPackage
-> Maybe (HashMap Text Text)
-> Text
-> Text
-> CreatePackagingConfiguration
CreatePackagingConfiguration'
      { $sel:hlsPackage:CreatePackagingConfiguration' :: Maybe HlsPackage
hlsPackage =
          Maybe HlsPackage
forall a. Maybe a
Prelude.Nothing,
        $sel:dashPackage:CreatePackagingConfiguration' :: Maybe DashPackage
dashPackage = Maybe DashPackage
forall a. Maybe a
Prelude.Nothing,
        $sel:mssPackage:CreatePackagingConfiguration' :: Maybe MssPackage
mssPackage = Maybe MssPackage
forall a. Maybe a
Prelude.Nothing,
        $sel:cmafPackage:CreatePackagingConfiguration' :: Maybe CmafPackage
cmafPackage = Maybe CmafPackage
forall a. Maybe a
Prelude.Nothing,
        $sel:tags:CreatePackagingConfiguration' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:id:CreatePackagingConfiguration' :: Text
id = Text
pId_,
        $sel:packagingGroupId:CreatePackagingConfiguration' :: Text
packagingGroupId = Text
pPackagingGroupId_
      }

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

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

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

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

-- | Undocumented member.
createPackagingConfiguration_tags :: Lens.Lens' CreatePackagingConfiguration (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createPackagingConfiguration_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreatePackagingConfiguration -> f CreatePackagingConfiguration
createPackagingConfiguration_tags = (CreatePackagingConfiguration -> Maybe (HashMap Text Text))
-> (CreatePackagingConfiguration
    -> Maybe (HashMap Text Text) -> CreatePackagingConfiguration)
-> Lens
     CreatePackagingConfiguration
     CreatePackagingConfiguration
     (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 (\CreatePackagingConfiguration' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreatePackagingConfiguration' :: CreatePackagingConfiguration -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreatePackagingConfiguration
s@CreatePackagingConfiguration' {} Maybe (HashMap Text Text)
a -> CreatePackagingConfiguration
s {$sel:tags:CreatePackagingConfiguration' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreatePackagingConfiguration) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> CreatePackagingConfiguration -> f CreatePackagingConfiguration)
-> ((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)))
-> CreatePackagingConfiguration
-> f CreatePackagingConfiguration
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

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

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

instance Core.AWSRequest CreatePackagingConfiguration where
  type
    AWSResponse CreatePackagingConfiguration =
      CreatePackagingConfigurationResponse
  request :: CreatePackagingConfiguration
-> Request CreatePackagingConfiguration
request = Service
-> CreatePackagingConfiguration
-> Request CreatePackagingConfiguration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreatePackagingConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreatePackagingConfiguration)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse CreatePackagingConfiguration))
-> Logger
-> Service
-> Proxy CreatePackagingConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreatePackagingConfiguration)))
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 HlsPackage
-> Maybe Text
-> Maybe Text
-> Maybe DashPackage
-> Maybe MssPackage
-> Maybe Text
-> Maybe CmafPackage
-> Maybe (HashMap Text Text)
-> Int
-> CreatePackagingConfigurationResponse
CreatePackagingConfigurationResponse'
            (Maybe HlsPackage
 -> Maybe Text
 -> Maybe Text
 -> Maybe DashPackage
 -> Maybe MssPackage
 -> Maybe Text
 -> Maybe CmafPackage
 -> Maybe (HashMap Text Text)
 -> Int
 -> CreatePackagingConfigurationResponse)
-> Either String (Maybe HlsPackage)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe DashPackage
      -> Maybe MssPackage
      -> Maybe Text
      -> Maybe CmafPackage
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreatePackagingConfigurationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe HlsPackage)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"hlsPackage")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe DashPackage
   -> Maybe MssPackage
   -> Maybe Text
   -> Maybe CmafPackage
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreatePackagingConfigurationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe DashPackage
      -> Maybe MssPackage
      -> Maybe Text
      -> Maybe CmafPackage
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreatePackagingConfigurationResponse)
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 Text
   -> Maybe DashPackage
   -> Maybe MssPackage
   -> Maybe Text
   -> Maybe CmafPackage
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreatePackagingConfigurationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe DashPackage
      -> Maybe MssPackage
      -> Maybe Text
      -> Maybe CmafPackage
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreatePackagingConfigurationResponse)
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
"packagingGroupId")
            Either
  String
  (Maybe DashPackage
   -> Maybe MssPackage
   -> Maybe Text
   -> Maybe CmafPackage
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreatePackagingConfigurationResponse)
-> Either String (Maybe DashPackage)
-> Either
     String
     (Maybe MssPackage
      -> Maybe Text
      -> Maybe CmafPackage
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreatePackagingConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DashPackage)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"dashPackage")
            Either
  String
  (Maybe MssPackage
   -> Maybe Text
   -> Maybe CmafPackage
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreatePackagingConfigurationResponse)
-> Either String (Maybe MssPackage)
-> Either
     String
     (Maybe Text
      -> Maybe CmafPackage
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreatePackagingConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe MssPackage)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"mssPackage")
            Either
  String
  (Maybe Text
   -> Maybe CmafPackage
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreatePackagingConfigurationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe CmafPackage
      -> Maybe (HashMap Text Text)
      -> Int
      -> CreatePackagingConfigurationResponse)
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
"id")
            Either
  String
  (Maybe CmafPackage
   -> Maybe (HashMap Text Text)
   -> Int
   -> CreatePackagingConfigurationResponse)
-> Either String (Maybe CmafPackage)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Int -> CreatePackagingConfigurationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe CmafPackage)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"cmafPackage")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Int -> CreatePackagingConfigurationResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> CreatePackagingConfigurationResponse)
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 -> CreatePackagingConfigurationResponse)
-> Either String Int
-> Either String CreatePackagingConfigurationResponse
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
    CreatePackagingConfiguration

instance Prelude.NFData CreatePackagingConfiguration

instance Core.ToHeaders CreatePackagingConfiguration where
  toHeaders :: CreatePackagingConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreatePackagingConfiguration -> 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 CreatePackagingConfiguration where
  toJSON :: CreatePackagingConfiguration -> Value
toJSON CreatePackagingConfiguration' {Maybe (HashMap Text Text)
Maybe MssPackage
Maybe HlsPackage
Maybe CmafPackage
Maybe DashPackage
Text
packagingGroupId :: Text
id :: Text
tags :: Maybe (HashMap Text Text)
cmafPackage :: Maybe CmafPackage
mssPackage :: Maybe MssPackage
dashPackage :: Maybe DashPackage
hlsPackage :: Maybe HlsPackage
$sel:packagingGroupId:CreatePackagingConfiguration' :: CreatePackagingConfiguration -> Text
$sel:id:CreatePackagingConfiguration' :: CreatePackagingConfiguration -> Text
$sel:tags:CreatePackagingConfiguration' :: CreatePackagingConfiguration -> Maybe (HashMap Text Text)
$sel:cmafPackage:CreatePackagingConfiguration' :: CreatePackagingConfiguration -> Maybe CmafPackage
$sel:mssPackage:CreatePackagingConfiguration' :: CreatePackagingConfiguration -> Maybe MssPackage
$sel:dashPackage:CreatePackagingConfiguration' :: CreatePackagingConfiguration -> Maybe DashPackage
$sel:hlsPackage:CreatePackagingConfiguration' :: CreatePackagingConfiguration -> Maybe HlsPackage
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"hlsPackage" Text -> HlsPackage -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HlsPackage -> Pair) -> Maybe HlsPackage -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe HlsPackage
hlsPackage,
            (Text
"dashPackage" Text -> DashPackage -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (DashPackage -> Pair) -> Maybe DashPackage -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DashPackage
dashPackage,
            (Text
"mssPackage" Text -> MssPackage -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (MssPackage -> Pair) -> Maybe MssPackage -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MssPackage
mssPackage,
            (Text
"cmafPackage" Text -> CmafPackage -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (CmafPackage -> Pair) -> Maybe CmafPackage -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CmafPackage
cmafPackage,
            (Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"id" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
id),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"packagingGroupId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
packagingGroupId)
          ]
      )

instance Core.ToPath CreatePackagingConfiguration where
  toPath :: CreatePackagingConfiguration -> ByteString
toPath = ByteString -> CreatePackagingConfiguration -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/packaging_configurations"

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

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

-- |
-- Create a value of 'CreatePackagingConfigurationResponse' 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:
--
-- 'hlsPackage', 'createPackagingConfigurationResponse_hlsPackage' - Undocumented member.
--
-- 'arn', 'createPackagingConfigurationResponse_arn' - The ARN of the PackagingConfiguration.
--
-- 'packagingGroupId', 'createPackagingConfigurationResponse_packagingGroupId' - The ID of a PackagingGroup.
--
-- 'dashPackage', 'createPackagingConfigurationResponse_dashPackage' - Undocumented member.
--
-- 'mssPackage', 'createPackagingConfigurationResponse_mssPackage' - Undocumented member.
--
-- 'id', 'createPackagingConfigurationResponse_id' - The ID of the PackagingConfiguration.
--
-- 'cmafPackage', 'createPackagingConfigurationResponse_cmafPackage' - Undocumented member.
--
-- 'tags', 'createPackagingConfigurationResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'createPackagingConfigurationResponse_httpStatus' - The response's http status code.
newCreatePackagingConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreatePackagingConfigurationResponse
newCreatePackagingConfigurationResponse :: Int -> CreatePackagingConfigurationResponse
newCreatePackagingConfigurationResponse Int
pHttpStatus_ =
  CreatePackagingConfigurationResponse' :: Maybe HlsPackage
-> Maybe Text
-> Maybe Text
-> Maybe DashPackage
-> Maybe MssPackage
-> Maybe Text
-> Maybe CmafPackage
-> Maybe (HashMap Text Text)
-> Int
-> CreatePackagingConfigurationResponse
CreatePackagingConfigurationResponse'
    { $sel:hlsPackage:CreatePackagingConfigurationResponse' :: Maybe HlsPackage
hlsPackage =
        Maybe HlsPackage
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:CreatePackagingConfigurationResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:packagingGroupId:CreatePackagingConfigurationResponse' :: Maybe Text
packagingGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dashPackage:CreatePackagingConfigurationResponse' :: Maybe DashPackage
dashPackage = Maybe DashPackage
forall a. Maybe a
Prelude.Nothing,
      $sel:mssPackage:CreatePackagingConfigurationResponse' :: Maybe MssPackage
mssPackage = Maybe MssPackage
forall a. Maybe a
Prelude.Nothing,
      $sel:id:CreatePackagingConfigurationResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:cmafPackage:CreatePackagingConfigurationResponse' :: Maybe CmafPackage
cmafPackage = Maybe CmafPackage
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:CreatePackagingConfigurationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:CreatePackagingConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

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

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

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

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

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

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

-- | Undocumented member.
createPackagingConfigurationResponse_tags :: Lens.Lens' CreatePackagingConfigurationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createPackagingConfigurationResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreatePackagingConfigurationResponse
-> f CreatePackagingConfigurationResponse
createPackagingConfigurationResponse_tags = (CreatePackagingConfigurationResponse -> Maybe (HashMap Text Text))
-> (CreatePackagingConfigurationResponse
    -> Maybe (HashMap Text Text)
    -> CreatePackagingConfigurationResponse)
-> Lens
     CreatePackagingConfigurationResponse
     CreatePackagingConfigurationResponse
     (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 (\CreatePackagingConfigurationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreatePackagingConfigurationResponse' :: CreatePackagingConfigurationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreatePackagingConfigurationResponse
s@CreatePackagingConfigurationResponse' {} Maybe (HashMap Text Text)
a -> CreatePackagingConfigurationResponse
s {$sel:tags:CreatePackagingConfigurationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreatePackagingConfigurationResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> CreatePackagingConfigurationResponse
 -> f CreatePackagingConfigurationResponse)
-> ((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)))
-> CreatePackagingConfigurationResponse
-> f CreatePackagingConfigurationResponse
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

-- | The response's http status code.
createPackagingConfigurationResponse_httpStatus :: Lens.Lens' CreatePackagingConfigurationResponse Prelude.Int
createPackagingConfigurationResponse_httpStatus :: (Int -> f Int)
-> CreatePackagingConfigurationResponse
-> f CreatePackagingConfigurationResponse
createPackagingConfigurationResponse_httpStatus = (CreatePackagingConfigurationResponse -> Int)
-> (CreatePackagingConfigurationResponse
    -> Int -> CreatePackagingConfigurationResponse)
-> Lens
     CreatePackagingConfigurationResponse
     CreatePackagingConfigurationResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackagingConfigurationResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreatePackagingConfigurationResponse' :: CreatePackagingConfigurationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreatePackagingConfigurationResponse
s@CreatePackagingConfigurationResponse' {} Int
a -> CreatePackagingConfigurationResponse
s {$sel:httpStatus:CreatePackagingConfigurationResponse' :: Int
httpStatus = Int
a} :: CreatePackagingConfigurationResponse)

instance
  Prelude.NFData
    CreatePackagingConfigurationResponse