{-# 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.DescribePackagingGroup
-- 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)
--
-- Returns a description of a MediaPackage VOD PackagingGroup resource.
module Amazonka.MediaPackageVOD.DescribePackagingGroup
  ( -- * Creating a Request
    DescribePackagingGroup (..),
    newDescribePackagingGroup,

    -- * Request Lenses
    describePackagingGroup_id,

    -- * Destructuring the Response
    DescribePackagingGroupResponse (..),
    newDescribePackagingGroupResponse,

    -- * Response Lenses
    describePackagingGroupResponse_arn,
    describePackagingGroupResponse_authorization,
    describePackagingGroupResponse_domainName,
    describePackagingGroupResponse_id,
    describePackagingGroupResponse_egressAccessLogs,
    describePackagingGroupResponse_tags,
    describePackagingGroupResponse_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

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

-- |
-- Create a value of 'DescribePackagingGroup' 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', 'describePackagingGroup_id' - The ID of a MediaPackage VOD PackagingGroup resource.
newDescribePackagingGroup ::
  -- | 'id'
  Prelude.Text ->
  DescribePackagingGroup
newDescribePackagingGroup :: Text -> DescribePackagingGroup
newDescribePackagingGroup Text
pId_ =
  DescribePackagingGroup' :: Text -> DescribePackagingGroup
DescribePackagingGroup' {$sel:id:DescribePackagingGroup' :: Text
id = Text
pId_}

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

instance Core.AWSRequest DescribePackagingGroup where
  type
    AWSResponse DescribePackagingGroup =
      DescribePackagingGroupResponse
  request :: DescribePackagingGroup -> Request DescribePackagingGroup
request = Service -> DescribePackagingGroup -> Request DescribePackagingGroup
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribePackagingGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribePackagingGroup)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribePackagingGroup))
-> Logger
-> Service
-> Proxy DescribePackagingGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribePackagingGroup)))
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
-> DescribePackagingGroupResponse
DescribePackagingGroupResponse'
            (Maybe Text
 -> Maybe Authorization
 -> Maybe Text
 -> Maybe Text
 -> Maybe EgressAccessLogs
 -> Maybe (HashMap Text Text)
 -> Int
 -> DescribePackagingGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Authorization
      -> Maybe Text
      -> Maybe Text
      -> Maybe EgressAccessLogs
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribePackagingGroupResponse)
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
   -> DescribePackagingGroupResponse)
-> Either String (Maybe Authorization)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe EgressAccessLogs
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribePackagingGroupResponse)
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
   -> DescribePackagingGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe EgressAccessLogs
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribePackagingGroupResponse)
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
   -> DescribePackagingGroupResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe EgressAccessLogs
      -> Maybe (HashMap Text Text)
      -> Int
      -> DescribePackagingGroupResponse)
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
   -> DescribePackagingGroupResponse)
-> Either String (Maybe EgressAccessLogs)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Int -> DescribePackagingGroupResponse)
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 -> DescribePackagingGroupResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> DescribePackagingGroupResponse)
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 -> DescribePackagingGroupResponse)
-> Either String Int
-> Either String DescribePackagingGroupResponse
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 DescribePackagingGroup

instance Prelude.NFData DescribePackagingGroup

instance Core.ToHeaders DescribePackagingGroup where
  toHeaders :: DescribePackagingGroup -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribePackagingGroup -> 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.ToPath DescribePackagingGroup where
  toPath :: DescribePackagingGroup -> ByteString
toPath DescribePackagingGroup' {Text
id :: Text
$sel:id:DescribePackagingGroup' :: DescribePackagingGroup -> Text
..} =
    [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 DescribePackagingGroup where
  toQuery :: DescribePackagingGroup -> QueryString
toQuery = QueryString -> DescribePackagingGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

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

-- |
-- Create a value of 'DescribePackagingGroupResponse' 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', 'describePackagingGroupResponse_arn' - The ARN of the PackagingGroup.
--
-- 'authorization', 'describePackagingGroupResponse_authorization' - Undocumented member.
--
-- 'domainName', 'describePackagingGroupResponse_domainName' - The fully qualified domain name for Assets in the PackagingGroup.
--
-- 'id', 'describePackagingGroupResponse_id' - The ID of the PackagingGroup.
--
-- 'egressAccessLogs', 'describePackagingGroupResponse_egressAccessLogs' - Undocumented member.
--
-- 'tags', 'describePackagingGroupResponse_tags' - Undocumented member.
--
-- 'httpStatus', 'describePackagingGroupResponse_httpStatus' - The response's http status code.
newDescribePackagingGroupResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribePackagingGroupResponse
newDescribePackagingGroupResponse :: Int -> DescribePackagingGroupResponse
newDescribePackagingGroupResponse Int
pHttpStatus_ =
  DescribePackagingGroupResponse' :: Maybe Text
-> Maybe Authorization
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> DescribePackagingGroupResponse
DescribePackagingGroupResponse'
    { $sel:arn:DescribePackagingGroupResponse' :: Maybe Text
arn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:authorization:DescribePackagingGroupResponse' :: Maybe Authorization
authorization = Maybe Authorization
forall a. Maybe a
Prelude.Nothing,
      $sel:domainName:DescribePackagingGroupResponse' :: Maybe Text
domainName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:id:DescribePackagingGroupResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:egressAccessLogs:DescribePackagingGroupResponse' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribePackagingGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribePackagingGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

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

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

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

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

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

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

instance
  Prelude.NFData
    DescribePackagingGroupResponse