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

    -- * Request Lenses
    describePackagingGroup_id,

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

    -- * Response Lenses
    describePackagingGroupResponse_approximateAssetCount,
    describePackagingGroupResponse_arn,
    describePackagingGroupResponse_authorization,
    describePackagingGroupResponse_domainName,
    describePackagingGroupResponse_egressAccessLogs,
    describePackagingGroupResponse_id,
    describePackagingGroupResponse_tags,
    describePackagingGroupResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribePackagingGroup' smart constructor.
data DescribePackagingGroup = DescribePackagingGroup'
  { -- | The ID of a MediaPackage VOD PackagingGroup resource.
    DescribePackagingGroup -> Text
id :: Prelude.Text
  }
  deriving (DescribePackagingGroup -> DescribePackagingGroup -> Bool
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]
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
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. 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' {$sel:id:DescribePackagingGroup' :: Text
id = Text
pId_}

-- | The ID of a MediaPackage VOD PackagingGroup resource.
describePackagingGroup_id :: Lens.Lens' DescribePackagingGroup Prelude.Text
describePackagingGroup_id :: Lens' DescribePackagingGroup Text
describePackagingGroup_id = 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 :: (Service -> Service)
-> DescribePackagingGroup -> Request DescribePackagingGroup
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribePackagingGroup
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribePackagingGroup)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe Int
-> Maybe Text
-> Maybe Authorization
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> DescribePackagingGroupResponse
DescribePackagingGroupResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"approximateAssetCount")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"arn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"authorization")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"domainName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"egressAccessLogs")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"id")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"tags" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribePackagingGroup where
  hashWithSalt :: Int -> DescribePackagingGroup -> Int
hashWithSalt Int
_salt DescribePackagingGroup' {Text
id :: Text
$sel:id:DescribePackagingGroup' :: DescribePackagingGroup -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id

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

instance Data.ToHeaders DescribePackagingGroup where
  toHeaders :: DescribePackagingGroup -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

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

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

-- | /See:/ 'newDescribePackagingGroupResponse' smart constructor.
data DescribePackagingGroupResponse = DescribePackagingGroupResponse'
  { -- | The approximate asset count of the PackagingGroup.
    DescribePackagingGroupResponse -> Maybe Int
approximateAssetCount :: Prelude.Maybe Prelude.Int,
    -- | 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,
    DescribePackagingGroupResponse -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
    -- | The ID of the PackagingGroup.
    DescribePackagingGroupResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    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
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]
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
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.
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:
--
-- 'approximateAssetCount', 'describePackagingGroupResponse_approximateAssetCount' - The approximate asset count of the PackagingGroup.
--
-- '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.
--
-- 'egressAccessLogs', 'describePackagingGroupResponse_egressAccessLogs' - Undocumented member.
--
-- 'id', 'describePackagingGroupResponse_id' - The ID of the PackagingGroup.
--
-- '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'
    { $sel:approximateAssetCount:DescribePackagingGroupResponse' :: Maybe Int
approximateAssetCount =
        forall a. Maybe a
Prelude.Nothing,
      $sel:arn:DescribePackagingGroupResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
      $sel:authorization:DescribePackagingGroupResponse' :: Maybe Authorization
authorization = forall a. Maybe a
Prelude.Nothing,
      $sel:domainName:DescribePackagingGroupResponse' :: Maybe Text
domainName = forall a. Maybe a
Prelude.Nothing,
      $sel:egressAccessLogs:DescribePackagingGroupResponse' :: Maybe EgressAccessLogs
egressAccessLogs = forall a. Maybe a
Prelude.Nothing,
      $sel:id:DescribePackagingGroupResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:DescribePackagingGroupResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribePackagingGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The approximate asset count of the PackagingGroup.
describePackagingGroupResponse_approximateAssetCount :: Lens.Lens' DescribePackagingGroupResponse (Prelude.Maybe Prelude.Int)
describePackagingGroupResponse_approximateAssetCount :: Lens' DescribePackagingGroupResponse (Maybe Int)
describePackagingGroupResponse_approximateAssetCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePackagingGroupResponse' {Maybe Int
approximateAssetCount :: Maybe Int
$sel:approximateAssetCount:DescribePackagingGroupResponse' :: DescribePackagingGroupResponse -> Maybe Int
approximateAssetCount} -> Maybe Int
approximateAssetCount) (\s :: DescribePackagingGroupResponse
s@DescribePackagingGroupResponse' {} Maybe Int
a -> DescribePackagingGroupResponse
s {$sel:approximateAssetCount:DescribePackagingGroupResponse' :: Maybe Int
approximateAssetCount = Maybe Int
a} :: DescribePackagingGroupResponse)

-- | The ARN of the PackagingGroup.
describePackagingGroupResponse_arn :: Lens.Lens' DescribePackagingGroupResponse (Prelude.Maybe Prelude.Text)
describePackagingGroupResponse_arn :: Lens' DescribePackagingGroupResponse (Maybe Text)
describePackagingGroupResponse_arn = 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 :: Lens' DescribePackagingGroupResponse (Maybe Authorization)
describePackagingGroupResponse_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 :: Lens' DescribePackagingGroupResponse (Maybe Text)
describePackagingGroupResponse_domainName = 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)

-- | Undocumented member.
describePackagingGroupResponse_egressAccessLogs :: Lens.Lens' DescribePackagingGroupResponse (Prelude.Maybe EgressAccessLogs)
describePackagingGroupResponse_egressAccessLogs :: Lens' DescribePackagingGroupResponse (Maybe EgressAccessLogs)
describePackagingGroupResponse_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)

-- | The ID of the PackagingGroup.
describePackagingGroupResponse_id :: Lens.Lens' DescribePackagingGroupResponse (Prelude.Maybe Prelude.Text)
describePackagingGroupResponse_id :: Lens' DescribePackagingGroupResponse (Maybe Text)
describePackagingGroupResponse_id = 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_tags :: Lens.Lens' DescribePackagingGroupResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describePackagingGroupResponse_tags :: Lens' DescribePackagingGroupResponse (Maybe (HashMap Text Text))
describePackagingGroupResponse_tags = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
describePackagingGroupResponse_httpStatus :: Lens.Lens' DescribePackagingGroupResponse Prelude.Int
describePackagingGroupResponse_httpStatus :: Lens' DescribePackagingGroupResponse Int
describePackagingGroupResponse_httpStatus = 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
  where
  rnf :: DescribePackagingGroupResponse -> ()
rnf DescribePackagingGroupResponse' {Int
Maybe Int
Maybe Text
Maybe (HashMap Text Text)
Maybe Authorization
Maybe EgressAccessLogs
httpStatus :: Int
tags :: Maybe (HashMap Text Text)
id :: Maybe Text
egressAccessLogs :: Maybe EgressAccessLogs
domainName :: Maybe Text
authorization :: Maybe Authorization
arn :: Maybe Text
approximateAssetCount :: Maybe Int
$sel:httpStatus:DescribePackagingGroupResponse' :: DescribePackagingGroupResponse -> Int
$sel:tags:DescribePackagingGroupResponse' :: DescribePackagingGroupResponse -> Maybe (HashMap Text Text)
$sel:id:DescribePackagingGroupResponse' :: DescribePackagingGroupResponse -> Maybe Text
$sel:egressAccessLogs:DescribePackagingGroupResponse' :: DescribePackagingGroupResponse -> Maybe EgressAccessLogs
$sel:domainName:DescribePackagingGroupResponse' :: DescribePackagingGroupResponse -> Maybe Text
$sel:authorization:DescribePackagingGroupResponse' :: DescribePackagingGroupResponse -> Maybe Authorization
$sel:arn:DescribePackagingGroupResponse' :: DescribePackagingGroupResponse -> Maybe Text
$sel:approximateAssetCount:DescribePackagingGroupResponse' :: DescribePackagingGroupResponse -> Maybe Int
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
approximateAssetCount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Authorization
authorization
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
domainName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EgressAccessLogs
egressAccessLogs
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
tags
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus