{-# 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.UpdatePackagingGroup
(
UpdatePackagingGroup (..),
newUpdatePackagingGroup,
updatePackagingGroup_authorization,
updatePackagingGroup_id,
UpdatePackagingGroupResponse (..),
newUpdatePackagingGroupResponse,
updatePackagingGroupResponse_approximateAssetCount,
updatePackagingGroupResponse_arn,
updatePackagingGroupResponse_authorization,
updatePackagingGroupResponse_domainName,
updatePackagingGroupResponse_egressAccessLogs,
updatePackagingGroupResponse_id,
updatePackagingGroupResponse_tags,
updatePackagingGroupResponse_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
data UpdatePackagingGroup = UpdatePackagingGroup'
{ UpdatePackagingGroup -> Maybe Authorization
authorization :: Prelude.Maybe Authorization,
UpdatePackagingGroup -> Text
id :: Prelude.Text
}
deriving (UpdatePackagingGroup -> UpdatePackagingGroup -> Bool
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]
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
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. 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)
newUpdatePackagingGroup ::
Prelude.Text ->
UpdatePackagingGroup
newUpdatePackagingGroup :: Text -> UpdatePackagingGroup
newUpdatePackagingGroup Text
pId_ =
UpdatePackagingGroup'
{ $sel:authorization:UpdatePackagingGroup' :: Maybe Authorization
authorization =
forall a. Maybe a
Prelude.Nothing,
$sel:id:UpdatePackagingGroup' :: Text
id = Text
pId_
}
updatePackagingGroup_authorization :: Lens.Lens' UpdatePackagingGroup (Prelude.Maybe Authorization)
updatePackagingGroup_authorization :: Lens' UpdatePackagingGroup (Maybe Authorization)
updatePackagingGroup_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)
updatePackagingGroup_id :: Lens.Lens' UpdatePackagingGroup Prelude.Text
updatePackagingGroup_id :: Lens' UpdatePackagingGroup Text
updatePackagingGroup_id = 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 :: (Service -> Service)
-> UpdatePackagingGroup -> Request UpdatePackagingGroup
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdatePackagingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdatePackagingGroup)))
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
-> UpdatePackagingGroupResponse
UpdatePackagingGroupResponse'
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 UpdatePackagingGroup where
hashWithSalt :: Int -> UpdatePackagingGroup -> Int
hashWithSalt Int
_salt UpdatePackagingGroup' {Maybe Authorization
Text
id :: Text
authorization :: Maybe Authorization
$sel:id:UpdatePackagingGroup' :: UpdatePackagingGroup -> Text
$sel:authorization:UpdatePackagingGroup' :: UpdatePackagingGroup -> Maybe Authorization
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Authorization
authorization
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
id
instance Prelude.NFData UpdatePackagingGroup where
rnf :: UpdatePackagingGroup -> ()
rnf UpdatePackagingGroup' {Maybe Authorization
Text
id :: Text
authorization :: Maybe Authorization
$sel:id:UpdatePackagingGroup' :: UpdatePackagingGroup -> Text
$sel:authorization:UpdatePackagingGroup' :: UpdatePackagingGroup -> Maybe Authorization
..} =
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 Text
id
instance Data.ToHeaders UpdatePackagingGroup where
toHeaders :: UpdatePackagingGroup -> 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.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
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"authorization" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Authorization
authorization
]
)
instance Data.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
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/packaging_groups/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
id]
instance Data.ToQuery UpdatePackagingGroup where
toQuery :: UpdatePackagingGroup -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdatePackagingGroupResponse = UpdatePackagingGroupResponse'
{
UpdatePackagingGroupResponse -> Maybe Int
approximateAssetCount :: Prelude.Maybe Prelude.Int,
UpdatePackagingGroupResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdatePackagingGroupResponse -> Maybe Authorization
authorization :: Prelude.Maybe Authorization,
UpdatePackagingGroupResponse -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
UpdatePackagingGroupResponse -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
UpdatePackagingGroupResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
UpdatePackagingGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
UpdatePackagingGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdatePackagingGroupResponse
-> UpdatePackagingGroupResponse -> Bool
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]
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
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.
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)
newUpdatePackagingGroupResponse ::
Prelude.Int ->
UpdatePackagingGroupResponse
newUpdatePackagingGroupResponse :: Int -> UpdatePackagingGroupResponse
newUpdatePackagingGroupResponse Int
pHttpStatus_ =
UpdatePackagingGroupResponse'
{ $sel:approximateAssetCount:UpdatePackagingGroupResponse' :: Maybe Int
approximateAssetCount =
forall a. Maybe a
Prelude.Nothing,
$sel:arn:UpdatePackagingGroupResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:authorization:UpdatePackagingGroupResponse' :: Maybe Authorization
authorization = forall a. Maybe a
Prelude.Nothing,
$sel:domainName:UpdatePackagingGroupResponse' :: Maybe Text
domainName = forall a. Maybe a
Prelude.Nothing,
$sel:egressAccessLogs:UpdatePackagingGroupResponse' :: Maybe EgressAccessLogs
egressAccessLogs = forall a. Maybe a
Prelude.Nothing,
$sel:id:UpdatePackagingGroupResponse' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
$sel:tags:UpdatePackagingGroupResponse' :: Maybe (HashMap Text Text)
tags = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdatePackagingGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updatePackagingGroupResponse_approximateAssetCount :: Lens.Lens' UpdatePackagingGroupResponse (Prelude.Maybe Prelude.Int)
updatePackagingGroupResponse_approximateAssetCount :: Lens' UpdatePackagingGroupResponse (Maybe Int)
updatePackagingGroupResponse_approximateAssetCount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdatePackagingGroupResponse' {Maybe Int
approximateAssetCount :: Maybe Int
$sel:approximateAssetCount:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Maybe Int
approximateAssetCount} -> Maybe Int
approximateAssetCount) (\s :: UpdatePackagingGroupResponse
s@UpdatePackagingGroupResponse' {} Maybe Int
a -> UpdatePackagingGroupResponse
s {$sel:approximateAssetCount:UpdatePackagingGroupResponse' :: Maybe Int
approximateAssetCount = Maybe Int
a} :: UpdatePackagingGroupResponse)
updatePackagingGroupResponse_arn :: Lens.Lens' UpdatePackagingGroupResponse (Prelude.Maybe Prelude.Text)
updatePackagingGroupResponse_arn :: Lens' UpdatePackagingGroupResponse (Maybe Text)
updatePackagingGroupResponse_arn = 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)
updatePackagingGroupResponse_authorization :: Lens.Lens' UpdatePackagingGroupResponse (Prelude.Maybe Authorization)
updatePackagingGroupResponse_authorization :: Lens' UpdatePackagingGroupResponse (Maybe Authorization)
updatePackagingGroupResponse_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)
updatePackagingGroupResponse_domainName :: Lens.Lens' UpdatePackagingGroupResponse (Prelude.Maybe Prelude.Text)
updatePackagingGroupResponse_domainName :: Lens' UpdatePackagingGroupResponse (Maybe Text)
updatePackagingGroupResponse_domainName = 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)
updatePackagingGroupResponse_egressAccessLogs :: Lens.Lens' UpdatePackagingGroupResponse (Prelude.Maybe EgressAccessLogs)
updatePackagingGroupResponse_egressAccessLogs :: Lens' UpdatePackagingGroupResponse (Maybe EgressAccessLogs)
updatePackagingGroupResponse_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)
updatePackagingGroupResponse_id :: Lens.Lens' UpdatePackagingGroupResponse (Prelude.Maybe Prelude.Text)
updatePackagingGroupResponse_id :: Lens' UpdatePackagingGroupResponse (Maybe Text)
updatePackagingGroupResponse_id = 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)
updatePackagingGroupResponse_tags :: Lens.Lens' UpdatePackagingGroupResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updatePackagingGroupResponse_tags :: Lens' UpdatePackagingGroupResponse (Maybe (HashMap Text Text))
updatePackagingGroupResponse_tags = 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) 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
updatePackagingGroupResponse_httpStatus :: Lens.Lens' UpdatePackagingGroupResponse Prelude.Int
updatePackagingGroupResponse_httpStatus :: Lens' UpdatePackagingGroupResponse Int
updatePackagingGroupResponse_httpStatus = 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 where
rnf :: UpdatePackagingGroupResponse -> ()
rnf UpdatePackagingGroupResponse' {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:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Int
$sel:tags:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Maybe (HashMap Text Text)
$sel:id:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Maybe Text
$sel:egressAccessLogs:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Maybe EgressAccessLogs
$sel:domainName:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Maybe Text
$sel:authorization:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Maybe Authorization
$sel:arn:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> Maybe Text
$sel:approximateAssetCount:UpdatePackagingGroupResponse' :: UpdatePackagingGroupResponse -> 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