{-# 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.UpdatePackagingGroup
-- 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)
--
-- Updates a specific packaging group. You can\'t change the id attribute
-- or any other system-generated attributes.
module Amazonka.MediaPackageVOD.UpdatePackagingGroup
  ( -- * Creating a Request
    UpdatePackagingGroup (..),
    newUpdatePackagingGroup,

    -- * Request Lenses
    updatePackagingGroup_authorization,
    updatePackagingGroup_id,

    -- * Destructuring the Response
    UpdatePackagingGroupResponse (..),
    newUpdatePackagingGroupResponse,

    -- * Response Lenses
    updatePackagingGroupResponse_arn,
    updatePackagingGroupResponse_authorization,
    updatePackagingGroupResponse_domainName,
    updatePackagingGroupResponse_id,
    updatePackagingGroupResponse_egressAccessLogs,
    updatePackagingGroupResponse_tags,
    updatePackagingGroupResponse_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 MediaPackage VOD PackagingGroup resource configuration.
--
-- /See:/ 'newUpdatePackagingGroup' smart constructor.
data UpdatePackagingGroup = UpdatePackagingGroup'
  { UpdatePackagingGroup -> Maybe Authorization
authorization :: Prelude.Maybe Authorization,
    -- | The ID of a MediaPackage VOD PackagingGroup resource.
    UpdatePackagingGroup -> Text
id :: Prelude.Text
  }
  deriving (UpdatePackagingGroup -> UpdatePackagingGroup -> Bool
(UpdatePackagingGroup -> UpdatePackagingGroup -> Bool)
-> (UpdatePackagingGroup -> UpdatePackagingGroup -> Bool)
-> Eq UpdatePackagingGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdatePackagingGroup -> UpdatePackagingGroup -> Bool
$c/= :: UpdatePackagingGroup -> UpdatePackagingGroup -> Bool
== :: UpdatePackagingGroup -> UpdatePackagingGroup -> Bool
$c== :: UpdatePackagingGroup -> UpdatePackagingGroup -> Bool
Prelude.Eq, ReadPrec [UpdatePackagingGroup]
ReadPrec UpdatePackagingGroup
Int -> ReadS UpdatePackagingGroup
ReadS [UpdatePackagingGroup]
(Int -> ReadS UpdatePackagingGroup)
-> ReadS [UpdatePackagingGroup]
-> ReadPrec UpdatePackagingGroup
-> ReadPrec [UpdatePackagingGroup]
-> Read UpdatePackagingGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdatePackagingGroup]
$creadListPrec :: ReadPrec [UpdatePackagingGroup]
readPrec :: ReadPrec UpdatePackagingGroup
$creadPrec :: ReadPrec UpdatePackagingGroup
readList :: ReadS [UpdatePackagingGroup]
$creadList :: ReadS [UpdatePackagingGroup]
readsPrec :: Int -> ReadS UpdatePackagingGroup
$creadsPrec :: Int -> ReadS UpdatePackagingGroup
Prelude.Read, Int -> UpdatePackagingGroup -> ShowS
[UpdatePackagingGroup] -> ShowS
UpdatePackagingGroup -> String
(Int -> UpdatePackagingGroup -> ShowS)
-> (UpdatePackagingGroup -> String)
-> ([UpdatePackagingGroup] -> ShowS)
-> Show UpdatePackagingGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdatePackagingGroup] -> ShowS
$cshowList :: [UpdatePackagingGroup] -> ShowS
show :: UpdatePackagingGroup -> String
$cshow :: UpdatePackagingGroup -> String
showsPrec :: Int -> UpdatePackagingGroup -> ShowS
$cshowsPrec :: Int -> UpdatePackagingGroup -> ShowS
Prelude.Show, (forall x. UpdatePackagingGroup -> Rep UpdatePackagingGroup x)
-> (forall x. Rep UpdatePackagingGroup x -> UpdatePackagingGroup)
-> Generic UpdatePackagingGroup
forall x. Rep UpdatePackagingGroup x -> UpdatePackagingGroup
forall x. UpdatePackagingGroup -> Rep UpdatePackagingGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdatePackagingGroup x -> UpdatePackagingGroup
$cfrom :: forall x. UpdatePackagingGroup -> Rep UpdatePackagingGroup x
Prelude.Generic)

-- |
-- Create a value of 'UpdatePackagingGroup' 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:
--
-- 'authorization', 'updatePackagingGroup_authorization' - Undocumented member.
--
-- 'id', 'updatePackagingGroup_id' - The ID of a MediaPackage VOD PackagingGroup resource.
newUpdatePackagingGroup ::
  -- | 'id'
  Prelude.Text ->
  UpdatePackagingGroup
newUpdatePackagingGroup :: Text -> UpdatePackagingGroup
newUpdatePackagingGroup Text
pId_ =
  UpdatePackagingGroup' :: Maybe Authorization -> Text -> UpdatePackagingGroup
UpdatePackagingGroup'
    { $sel:authorization:UpdatePackagingGroup' :: Maybe Authorization
authorization =
        Maybe Authorization
forall a. Maybe a
Prelude.Nothing,
      $sel:id:UpdatePackagingGroup' :: Text
id = Text
pId_
    }

-- | Undocumented member.
updatePackagingGroup_authorization :: Lens.Lens' UpdatePackagingGroup (Prelude.Maybe Authorization)
updatePackagingGroup_authorization :: (Maybe Authorization -> f (Maybe Authorization))
-> UpdatePackagingGroup -> f UpdatePackagingGroup
updatePackagingGroup_authorization = (UpdatePackagingGroup -> Maybe Authorization)
-> (UpdatePackagingGroup
    -> Maybe Authorization -> UpdatePackagingGroup)
-> Lens
     UpdatePackagingGroup
     UpdatePackagingGroup
     (Maybe Authorization)
     (Maybe Authorization)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePackagingGroup' {Maybe Authorization
authorization :: Maybe Authorization
$sel:authorization:UpdatePackagingGroup' :: UpdatePackagingGroup -> Maybe Authorization
authorization} -> Maybe Authorization
authorization) (\s :: UpdatePackagingGroup
s@UpdatePackagingGroup' {} Maybe Authorization
a -> UpdatePackagingGroup
s {$sel:authorization:UpdatePackagingGroup' :: Maybe Authorization
authorization = Maybe Authorization
a} :: UpdatePackagingGroup)

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

instance Core.AWSRequest UpdatePackagingGroup where
  type
    AWSResponse UpdatePackagingGroup =
      UpdatePackagingGroupResponse
  request :: UpdatePackagingGroup -> Request UpdatePackagingGroup
request = Service -> UpdatePackagingGroup -> Request UpdatePackagingGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdatePackagingGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdatePackagingGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdatePackagingGroup))
-> Logger
-> Service
-> Proxy UpdatePackagingGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdatePackagingGroup)))
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 Text
-> Maybe Authorization
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> UpdatePackagingGroupResponse
UpdatePackagingGroupResponse'
            (Maybe Text
 -> Maybe Authorization
 -> Maybe Text
 -> Maybe Text
 -> Maybe EgressAccessLogs
 -> Maybe (HashMap Text Text)
 -> Int
 -> UpdatePackagingGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Authorization
      -> Maybe Text
      -> Maybe Text
      -> Maybe EgressAccessLogs
      -> Maybe (HashMap Text Text)
      -> Int
      -> UpdatePackagingGroupResponse)
forall (f :: * -> *) a b. Functor 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 Authorization
   -> Maybe Text
   -> Maybe Text
   -> Maybe EgressAccessLogs
   -> Maybe (HashMap Text Text)
   -> Int
   -> UpdatePackagingGroupResponse)
-> Either String (Maybe Authorization)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe EgressAccessLogs
      -> Maybe (HashMap Text Text)
      -> Int
      -> UpdatePackagingGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Authorization)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"authorization")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe EgressAccessLogs
   -> Maybe (HashMap Text Text)
   -> Int
   -> UpdatePackagingGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe EgressAccessLogs
      -> Maybe (HashMap Text Text)
      -> Int
      -> UpdatePackagingGroupResponse)
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
"domainName")
            Either
  String
  (Maybe Text
   -> Maybe EgressAccessLogs
   -> Maybe (HashMap Text Text)
   -> Int
   -> UpdatePackagingGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe EgressAccessLogs
      -> Maybe (HashMap Text Text)
      -> Int
      -> UpdatePackagingGroupResponse)
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 EgressAccessLogs
   -> Maybe (HashMap Text Text)
   -> Int
   -> UpdatePackagingGroupResponse)
-> Either String (Maybe EgressAccessLogs)
-> Either
     String
     (Maybe (HashMap Text Text) -> Int -> UpdatePackagingGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe EgressAccessLogs)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"egressAccessLogs")
            Either
  String
  (Maybe (HashMap Text Text) -> Int -> UpdatePackagingGroupResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> UpdatePackagingGroupResponse)
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 -> UpdatePackagingGroupResponse)
-> Either String Int -> Either String UpdatePackagingGroupResponse
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 UpdatePackagingGroup

instance Prelude.NFData UpdatePackagingGroup

instance Core.ToHeaders UpdatePackagingGroup where
  toHeaders :: UpdatePackagingGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdatePackagingGroup -> 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 UpdatePackagingGroup where
  toJSON :: UpdatePackagingGroup -> Value
toJSON UpdatePackagingGroup' {Maybe Authorization
Text
id :: Text
authorization :: Maybe Authorization
$sel:id:UpdatePackagingGroup' :: UpdatePackagingGroup -> Text
$sel:authorization:UpdatePackagingGroup' :: UpdatePackagingGroup -> Maybe Authorization
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"authorization" Text -> Authorization -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Authorization -> Pair) -> Maybe Authorization -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Authorization
authorization
          ]
      )

instance Core.ToPath UpdatePackagingGroup where
  toPath :: UpdatePackagingGroup -> ByteString
toPath UpdatePackagingGroup' {Maybe Authorization
Text
id :: Text
authorization :: Maybe Authorization
$sel:id:UpdatePackagingGroup' :: UpdatePackagingGroup -> Text
$sel:authorization:UpdatePackagingGroup' :: UpdatePackagingGroup -> Maybe Authorization
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/packaging_groups/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id]

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

-- | /See:/ 'newUpdatePackagingGroupResponse' smart constructor.
data UpdatePackagingGroupResponse = UpdatePackagingGroupResponse'
  { -- | The ARN of the PackagingGroup.
    UpdatePackagingGroupResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    UpdatePackagingGroupResponse -> Maybe Authorization
authorization :: Prelude.Maybe Authorization,
    -- | The fully qualified domain name for Assets in the PackagingGroup.
    UpdatePackagingGroupResponse -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
    -- | The ID of the PackagingGroup.
    UpdatePackagingGroupResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    UpdatePackagingGroupResponse -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
    UpdatePackagingGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    UpdatePackagingGroupResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdatePackagingGroupResponse
-> UpdatePackagingGroupResponse -> Bool
(UpdatePackagingGroupResponse
 -> UpdatePackagingGroupResponse -> Bool)
-> (UpdatePackagingGroupResponse
    -> UpdatePackagingGroupResponse -> Bool)
-> Eq UpdatePackagingGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdatePackagingGroupResponse
-> UpdatePackagingGroupResponse -> Bool
$c/= :: UpdatePackagingGroupResponse
-> UpdatePackagingGroupResponse -> Bool
== :: UpdatePackagingGroupResponse
-> UpdatePackagingGroupResponse -> Bool
$c== :: UpdatePackagingGroupResponse
-> UpdatePackagingGroupResponse -> Bool
Prelude.Eq, ReadPrec [UpdatePackagingGroupResponse]
ReadPrec UpdatePackagingGroupResponse
Int -> ReadS UpdatePackagingGroupResponse
ReadS [UpdatePackagingGroupResponse]
(Int -> ReadS UpdatePackagingGroupResponse)
-> ReadS [UpdatePackagingGroupResponse]
-> ReadPrec UpdatePackagingGroupResponse
-> ReadPrec [UpdatePackagingGroupResponse]
-> Read UpdatePackagingGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdatePackagingGroupResponse]
$creadListPrec :: ReadPrec [UpdatePackagingGroupResponse]
readPrec :: ReadPrec UpdatePackagingGroupResponse
$creadPrec :: ReadPrec UpdatePackagingGroupResponse
readList :: ReadS [UpdatePackagingGroupResponse]
$creadList :: ReadS [UpdatePackagingGroupResponse]
readsPrec :: Int -> ReadS UpdatePackagingGroupResponse
$creadsPrec :: Int -> ReadS UpdatePackagingGroupResponse
Prelude.Read, Int -> UpdatePackagingGroupResponse -> ShowS
[UpdatePackagingGroupResponse] -> ShowS
UpdatePackagingGroupResponse -> String
(Int -> UpdatePackagingGroupResponse -> ShowS)
-> (UpdatePackagingGroupResponse -> String)
-> ([UpdatePackagingGroupResponse] -> ShowS)
-> Show UpdatePackagingGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdatePackagingGroupResponse] -> ShowS
$cshowList :: [UpdatePackagingGroupResponse] -> ShowS
show :: UpdatePackagingGroupResponse -> String
$cshow :: UpdatePackagingGroupResponse -> String
showsPrec :: Int -> UpdatePackagingGroupResponse -> ShowS
$cshowsPrec :: Int -> UpdatePackagingGroupResponse -> ShowS
Prelude.Show, (forall x.
 UpdatePackagingGroupResponse -> Rep UpdatePackagingGroupResponse x)
-> (forall x.
    Rep UpdatePackagingGroupResponse x -> UpdatePackagingGroupResponse)
-> Generic UpdatePackagingGroupResponse
forall x.
Rep UpdatePackagingGroupResponse x -> UpdatePackagingGroupResponse
forall x.
UpdatePackagingGroupResponse -> Rep UpdatePackagingGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdatePackagingGroupResponse x -> UpdatePackagingGroupResponse
$cfrom :: forall x.
UpdatePackagingGroupResponse -> Rep UpdatePackagingGroupResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdatePackagingGroupResponse' 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', 'updatePackagingGroupResponse_arn' - The ARN of the PackagingGroup.
--
-- 'authorization', 'updatePackagingGroupResponse_authorization' - Undocumented member.
--
-- 'domainName', 'updatePackagingGroupResponse_domainName' - The fully qualified domain name for Assets in the PackagingGroup.
--
-- 'id', 'updatePackagingGroupResponse_id' - The ID of the PackagingGroup.
--
-- 'egressAccessLogs', 'updatePackagingGroupResponse_egressAccessLogs' - Undocumented member.
--
-- 'tags', 'updatePackagingGroupResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'updatePackagingGroupResponse_httpStatus' - The response's http status code.
newUpdatePackagingGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdatePackagingGroupResponse
newUpdatePackagingGroupResponse :: Int -> UpdatePackagingGroupResponse
newUpdatePackagingGroupResponse Int
pHttpStatus_ =
  UpdatePackagingGroupResponse' :: Maybe Text
-> Maybe Authorization
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> UpdatePackagingGroupResponse
UpdatePackagingGroupResponse'
    { $sel:arn:UpdatePackagingGroupResponse' :: Maybe Text
arn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:authorization:UpdatePackagingGroupResponse' :: Maybe Authorization
authorization = Maybe Authorization
forall a. Maybe a
Prelude.Nothing,
      $sel:domainName:UpdatePackagingGroupResponse' :: Maybe Text
domainName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:UpdatePackagingGroupResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:egressAccessLogs:UpdatePackagingGroupResponse' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:UpdatePackagingGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdatePackagingGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

-- | Undocumented member.
updatePackagingGroupResponse_authorization :: Lens.Lens' UpdatePackagingGroupResponse (Prelude.Maybe Authorization)
updatePackagingGroupResponse_authorization :: (Maybe Authorization -> f (Maybe Authorization))
-> UpdatePackagingGroupResponse -> f UpdatePackagingGroupResponse
updatePackagingGroupResponse_authorization = (UpdatePackagingGroupResponse -> Maybe Authorization)
-> (UpdatePackagingGroupResponse
    -> Maybe Authorization -> UpdatePackagingGroupResponse)
-> Lens
     UpdatePackagingGroupResponse
     UpdatePackagingGroupResponse
     (Maybe Authorization)
     (Maybe Authorization)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePackagingGroupResponse' {Maybe Authorization
authorization :: Maybe Authorization
$sel:authorization:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Maybe Authorization
authorization} -> Maybe Authorization
authorization) (\s :: UpdatePackagingGroupResponse
s@UpdatePackagingGroupResponse' {} Maybe Authorization
a -> UpdatePackagingGroupResponse
s {$sel:authorization:UpdatePackagingGroupResponse' :: Maybe Authorization
authorization = Maybe Authorization
a} :: UpdatePackagingGroupResponse)

-- | The fully qualified domain name for Assets in the PackagingGroup.
updatePackagingGroupResponse_domainName :: Lens.Lens' UpdatePackagingGroupResponse (Prelude.Maybe Prelude.Text)
updatePackagingGroupResponse_domainName :: (Maybe Text -> f (Maybe Text))
-> UpdatePackagingGroupResponse -> f UpdatePackagingGroupResponse
updatePackagingGroupResponse_domainName = (UpdatePackagingGroupResponse -> Maybe Text)
-> (UpdatePackagingGroupResponse
    -> Maybe Text -> UpdatePackagingGroupResponse)
-> Lens
     UpdatePackagingGroupResponse
     UpdatePackagingGroupResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePackagingGroupResponse' {Maybe Text
domainName :: Maybe Text
$sel:domainName:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Maybe Text
domainName} -> Maybe Text
domainName) (\s :: UpdatePackagingGroupResponse
s@UpdatePackagingGroupResponse' {} Maybe Text
a -> UpdatePackagingGroupResponse
s {$sel:domainName:UpdatePackagingGroupResponse' :: Maybe Text
domainName = Maybe Text
a} :: UpdatePackagingGroupResponse)

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

-- | Undocumented member.
updatePackagingGroupResponse_egressAccessLogs :: Lens.Lens' UpdatePackagingGroupResponse (Prelude.Maybe EgressAccessLogs)
updatePackagingGroupResponse_egressAccessLogs :: (Maybe EgressAccessLogs -> f (Maybe EgressAccessLogs))
-> UpdatePackagingGroupResponse -> f UpdatePackagingGroupResponse
updatePackagingGroupResponse_egressAccessLogs = (UpdatePackagingGroupResponse -> Maybe EgressAccessLogs)
-> (UpdatePackagingGroupResponse
    -> Maybe EgressAccessLogs -> UpdatePackagingGroupResponse)
-> Lens
     UpdatePackagingGroupResponse
     UpdatePackagingGroupResponse
     (Maybe EgressAccessLogs)
     (Maybe EgressAccessLogs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePackagingGroupResponse' {Maybe EgressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:egressAccessLogs:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Maybe EgressAccessLogs
egressAccessLogs} -> Maybe EgressAccessLogs
egressAccessLogs) (\s :: UpdatePackagingGroupResponse
s@UpdatePackagingGroupResponse' {} Maybe EgressAccessLogs
a -> UpdatePackagingGroupResponse
s {$sel:egressAccessLogs:UpdatePackagingGroupResponse' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
a} :: UpdatePackagingGroupResponse)

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

instance Prelude.NFData UpdatePackagingGroupResponse