{-# 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 #-}
module Amazonka.MediaPackageVOD.DescribePackagingGroup
(
DescribePackagingGroup (..),
newDescribePackagingGroup,
describePackagingGroup_id,
DescribePackagingGroupResponse (..),
newDescribePackagingGroupResponse,
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
data DescribePackagingGroup = DescribePackagingGroup'
{
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)
newDescribePackagingGroup ::
Prelude.Text ->
DescribePackagingGroup
newDescribePackagingGroup :: Text -> DescribePackagingGroup
newDescribePackagingGroup Text
pId_ =
DescribePackagingGroup' :: Text -> DescribePackagingGroup
DescribePackagingGroup' {$sel:id:DescribePackagingGroup' :: Text
id = Text
pId_}
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
data DescribePackagingGroupResponse = DescribePackagingGroupResponse'
{
DescribePackagingGroupResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DescribePackagingGroupResponse -> Maybe Authorization
authorization :: Prelude.Maybe Authorization,
DescribePackagingGroupResponse -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
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),
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)
newDescribePackagingGroupResponse ::
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_
}
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)
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)
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)
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)
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)
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
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