{-# 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.CreatePackagingGroup
(
CreatePackagingGroup (..),
newCreatePackagingGroup,
createPackagingGroup_authorization,
createPackagingGroup_egressAccessLogs,
createPackagingGroup_tags,
createPackagingGroup_id,
CreatePackagingGroupResponse (..),
newCreatePackagingGroupResponse,
createPackagingGroupResponse_arn,
createPackagingGroupResponse_authorization,
createPackagingGroupResponse_domainName,
createPackagingGroupResponse_id,
createPackagingGroupResponse_egressAccessLogs,
createPackagingGroupResponse_tags,
createPackagingGroupResponse_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 CreatePackagingGroup = CreatePackagingGroup'
{ CreatePackagingGroup -> Maybe Authorization
authorization :: Prelude.Maybe Authorization,
CreatePackagingGroup -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
CreatePackagingGroup -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreatePackagingGroup -> Text
id :: Prelude.Text
}
deriving (CreatePackagingGroup -> CreatePackagingGroup -> Bool
(CreatePackagingGroup -> CreatePackagingGroup -> Bool)
-> (CreatePackagingGroup -> CreatePackagingGroup -> Bool)
-> Eq CreatePackagingGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreatePackagingGroup -> CreatePackagingGroup -> Bool
$c/= :: CreatePackagingGroup -> CreatePackagingGroup -> Bool
== :: CreatePackagingGroup -> CreatePackagingGroup -> Bool
$c== :: CreatePackagingGroup -> CreatePackagingGroup -> Bool
Prelude.Eq, ReadPrec [CreatePackagingGroup]
ReadPrec CreatePackagingGroup
Int -> ReadS CreatePackagingGroup
ReadS [CreatePackagingGroup]
(Int -> ReadS CreatePackagingGroup)
-> ReadS [CreatePackagingGroup]
-> ReadPrec CreatePackagingGroup
-> ReadPrec [CreatePackagingGroup]
-> Read CreatePackagingGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreatePackagingGroup]
$creadListPrec :: ReadPrec [CreatePackagingGroup]
readPrec :: ReadPrec CreatePackagingGroup
$creadPrec :: ReadPrec CreatePackagingGroup
readList :: ReadS [CreatePackagingGroup]
$creadList :: ReadS [CreatePackagingGroup]
readsPrec :: Int -> ReadS CreatePackagingGroup
$creadsPrec :: Int -> ReadS CreatePackagingGroup
Prelude.Read, Int -> CreatePackagingGroup -> ShowS
[CreatePackagingGroup] -> ShowS
CreatePackagingGroup -> String
(Int -> CreatePackagingGroup -> ShowS)
-> (CreatePackagingGroup -> String)
-> ([CreatePackagingGroup] -> ShowS)
-> Show CreatePackagingGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreatePackagingGroup] -> ShowS
$cshowList :: [CreatePackagingGroup] -> ShowS
show :: CreatePackagingGroup -> String
$cshow :: CreatePackagingGroup -> String
showsPrec :: Int -> CreatePackagingGroup -> ShowS
$cshowsPrec :: Int -> CreatePackagingGroup -> ShowS
Prelude.Show, (forall x. CreatePackagingGroup -> Rep CreatePackagingGroup x)
-> (forall x. Rep CreatePackagingGroup x -> CreatePackagingGroup)
-> Generic CreatePackagingGroup
forall x. Rep CreatePackagingGroup x -> CreatePackagingGroup
forall x. CreatePackagingGroup -> Rep CreatePackagingGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreatePackagingGroup x -> CreatePackagingGroup
$cfrom :: forall x. CreatePackagingGroup -> Rep CreatePackagingGroup x
Prelude.Generic)
newCreatePackagingGroup ::
Prelude.Text ->
CreatePackagingGroup
newCreatePackagingGroup :: Text -> CreatePackagingGroup
newCreatePackagingGroup Text
pId_ =
CreatePackagingGroup' :: Maybe Authorization
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Text
-> CreatePackagingGroup
CreatePackagingGroup'
{ $sel:authorization:CreatePackagingGroup' :: Maybe Authorization
authorization =
Maybe Authorization
forall a. Maybe a
Prelude.Nothing,
$sel:egressAccessLogs:CreatePackagingGroup' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreatePackagingGroup' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreatePackagingGroup' :: Text
id = Text
pId_
}
createPackagingGroup_authorization :: Lens.Lens' CreatePackagingGroup (Prelude.Maybe Authorization)
createPackagingGroup_authorization :: (Maybe Authorization -> f (Maybe Authorization))
-> CreatePackagingGroup -> f CreatePackagingGroup
createPackagingGroup_authorization = (CreatePackagingGroup -> Maybe Authorization)
-> (CreatePackagingGroup
-> Maybe Authorization -> CreatePackagingGroup)
-> Lens
CreatePackagingGroup
CreatePackagingGroup
(Maybe Authorization)
(Maybe Authorization)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackagingGroup' {Maybe Authorization
authorization :: Maybe Authorization
$sel:authorization:CreatePackagingGroup' :: CreatePackagingGroup -> Maybe Authorization
authorization} -> Maybe Authorization
authorization) (\s :: CreatePackagingGroup
s@CreatePackagingGroup' {} Maybe Authorization
a -> CreatePackagingGroup
s {$sel:authorization:CreatePackagingGroup' :: Maybe Authorization
authorization = Maybe Authorization
a} :: CreatePackagingGroup)
createPackagingGroup_egressAccessLogs :: Lens.Lens' CreatePackagingGroup (Prelude.Maybe EgressAccessLogs)
createPackagingGroup_egressAccessLogs :: (Maybe EgressAccessLogs -> f (Maybe EgressAccessLogs))
-> CreatePackagingGroup -> f CreatePackagingGroup
createPackagingGroup_egressAccessLogs = (CreatePackagingGroup -> Maybe EgressAccessLogs)
-> (CreatePackagingGroup
-> Maybe EgressAccessLogs -> CreatePackagingGroup)
-> Lens
CreatePackagingGroup
CreatePackagingGroup
(Maybe EgressAccessLogs)
(Maybe EgressAccessLogs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackagingGroup' {Maybe EgressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:egressAccessLogs:CreatePackagingGroup' :: CreatePackagingGroup -> Maybe EgressAccessLogs
egressAccessLogs} -> Maybe EgressAccessLogs
egressAccessLogs) (\s :: CreatePackagingGroup
s@CreatePackagingGroup' {} Maybe EgressAccessLogs
a -> CreatePackagingGroup
s {$sel:egressAccessLogs:CreatePackagingGroup' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
a} :: CreatePackagingGroup)
createPackagingGroup_tags :: Lens.Lens' CreatePackagingGroup (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createPackagingGroup_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreatePackagingGroup -> f CreatePackagingGroup
createPackagingGroup_tags = (CreatePackagingGroup -> Maybe (HashMap Text Text))
-> (CreatePackagingGroup
-> Maybe (HashMap Text Text) -> CreatePackagingGroup)
-> Lens
CreatePackagingGroup
CreatePackagingGroup
(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 (\CreatePackagingGroup' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreatePackagingGroup' :: CreatePackagingGroup -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreatePackagingGroup
s@CreatePackagingGroup' {} Maybe (HashMap Text Text)
a -> CreatePackagingGroup
s {$sel:tags:CreatePackagingGroup' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreatePackagingGroup) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreatePackagingGroup -> f CreatePackagingGroup)
-> ((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)))
-> CreatePackagingGroup
-> f CreatePackagingGroup
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
createPackagingGroup_id :: Lens.Lens' CreatePackagingGroup Prelude.Text
createPackagingGroup_id :: (Text -> f Text) -> CreatePackagingGroup -> f CreatePackagingGroup
createPackagingGroup_id = (CreatePackagingGroup -> Text)
-> (CreatePackagingGroup -> Text -> CreatePackagingGroup)
-> Lens CreatePackagingGroup CreatePackagingGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackagingGroup' {Text
id :: Text
$sel:id:CreatePackagingGroup' :: CreatePackagingGroup -> Text
id} -> Text
id) (\s :: CreatePackagingGroup
s@CreatePackagingGroup' {} Text
a -> CreatePackagingGroup
s {$sel:id:CreatePackagingGroup' :: Text
id = Text
a} :: CreatePackagingGroup)
instance Core.AWSRequest CreatePackagingGroup where
type
AWSResponse CreatePackagingGroup =
CreatePackagingGroupResponse
request :: CreatePackagingGroup -> Request CreatePackagingGroup
request = Service -> CreatePackagingGroup -> Request CreatePackagingGroup
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreatePackagingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreatePackagingGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreatePackagingGroup))
-> Logger
-> Service
-> Proxy CreatePackagingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreatePackagingGroup)))
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
-> CreatePackagingGroupResponse
CreatePackagingGroupResponse'
(Maybe Text
-> Maybe Authorization
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> CreatePackagingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Authorization
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> CreatePackagingGroupResponse)
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
-> CreatePackagingGroupResponse)
-> Either String (Maybe Authorization)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> CreatePackagingGroupResponse)
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
-> CreatePackagingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> CreatePackagingGroupResponse)
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
-> CreatePackagingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> CreatePackagingGroupResponse)
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
-> CreatePackagingGroupResponse)
-> Either String (Maybe EgressAccessLogs)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> CreatePackagingGroupResponse)
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 -> CreatePackagingGroupResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> CreatePackagingGroupResponse)
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 -> CreatePackagingGroupResponse)
-> Either String Int -> Either String CreatePackagingGroupResponse
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 CreatePackagingGroup
instance Prelude.NFData CreatePackagingGroup
instance Core.ToHeaders CreatePackagingGroup where
toHeaders :: CreatePackagingGroup -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreatePackagingGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreatePackagingGroup where
toJSON :: CreatePackagingGroup -> Value
toJSON CreatePackagingGroup' {Maybe (HashMap Text Text)
Maybe Authorization
Maybe EgressAccessLogs
Text
id :: Text
tags :: Maybe (HashMap Text Text)
egressAccessLogs :: Maybe EgressAccessLogs
authorization :: Maybe Authorization
$sel:id:CreatePackagingGroup' :: CreatePackagingGroup -> Text
$sel:tags:CreatePackagingGroup' :: CreatePackagingGroup -> Maybe (HashMap Text Text)
$sel:egressAccessLogs:CreatePackagingGroup' :: CreatePackagingGroup -> Maybe EgressAccessLogs
$sel:authorization:CreatePackagingGroup' :: CreatePackagingGroup -> Maybe Authorization
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"authorization" Text -> Authorization -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Authorization -> Pair) -> Maybe Authorization -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Authorization
authorization,
(Text
"egressAccessLogs" Text -> EgressAccessLogs -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(EgressAccessLogs -> Pair) -> Maybe EgressAccessLogs -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EgressAccessLogs
egressAccessLogs,
(Text
"tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"id" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
id)
]
)
instance Core.ToPath CreatePackagingGroup where
toPath :: CreatePackagingGroup -> ByteString
toPath = ByteString -> CreatePackagingGroup -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/packaging_groups"
instance Core.ToQuery CreatePackagingGroup where
toQuery :: CreatePackagingGroup -> QueryString
toQuery = QueryString -> CreatePackagingGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreatePackagingGroupResponse = CreatePackagingGroupResponse'
{
CreatePackagingGroupResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreatePackagingGroupResponse -> Maybe Authorization
authorization :: Prelude.Maybe Authorization,
CreatePackagingGroupResponse -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
CreatePackagingGroupResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
CreatePackagingGroupResponse -> Maybe EgressAccessLogs
egressAccessLogs :: Prelude.Maybe EgressAccessLogs,
CreatePackagingGroupResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreatePackagingGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreatePackagingGroupResponse
-> CreatePackagingGroupResponse -> Bool
(CreatePackagingGroupResponse
-> CreatePackagingGroupResponse -> Bool)
-> (CreatePackagingGroupResponse
-> CreatePackagingGroupResponse -> Bool)
-> Eq CreatePackagingGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreatePackagingGroupResponse
-> CreatePackagingGroupResponse -> Bool
$c/= :: CreatePackagingGroupResponse
-> CreatePackagingGroupResponse -> Bool
== :: CreatePackagingGroupResponse
-> CreatePackagingGroupResponse -> Bool
$c== :: CreatePackagingGroupResponse
-> CreatePackagingGroupResponse -> Bool
Prelude.Eq, ReadPrec [CreatePackagingGroupResponse]
ReadPrec CreatePackagingGroupResponse
Int -> ReadS CreatePackagingGroupResponse
ReadS [CreatePackagingGroupResponse]
(Int -> ReadS CreatePackagingGroupResponse)
-> ReadS [CreatePackagingGroupResponse]
-> ReadPrec CreatePackagingGroupResponse
-> ReadPrec [CreatePackagingGroupResponse]
-> Read CreatePackagingGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreatePackagingGroupResponse]
$creadListPrec :: ReadPrec [CreatePackagingGroupResponse]
readPrec :: ReadPrec CreatePackagingGroupResponse
$creadPrec :: ReadPrec CreatePackagingGroupResponse
readList :: ReadS [CreatePackagingGroupResponse]
$creadList :: ReadS [CreatePackagingGroupResponse]
readsPrec :: Int -> ReadS CreatePackagingGroupResponse
$creadsPrec :: Int -> ReadS CreatePackagingGroupResponse
Prelude.Read, Int -> CreatePackagingGroupResponse -> ShowS
[CreatePackagingGroupResponse] -> ShowS
CreatePackagingGroupResponse -> String
(Int -> CreatePackagingGroupResponse -> ShowS)
-> (CreatePackagingGroupResponse -> String)
-> ([CreatePackagingGroupResponse] -> ShowS)
-> Show CreatePackagingGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreatePackagingGroupResponse] -> ShowS
$cshowList :: [CreatePackagingGroupResponse] -> ShowS
show :: CreatePackagingGroupResponse -> String
$cshow :: CreatePackagingGroupResponse -> String
showsPrec :: Int -> CreatePackagingGroupResponse -> ShowS
$cshowsPrec :: Int -> CreatePackagingGroupResponse -> ShowS
Prelude.Show, (forall x.
CreatePackagingGroupResponse -> Rep CreatePackagingGroupResponse x)
-> (forall x.
Rep CreatePackagingGroupResponse x -> CreatePackagingGroupResponse)
-> Generic CreatePackagingGroupResponse
forall x.
Rep CreatePackagingGroupResponse x -> CreatePackagingGroupResponse
forall x.
CreatePackagingGroupResponse -> Rep CreatePackagingGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreatePackagingGroupResponse x -> CreatePackagingGroupResponse
$cfrom :: forall x.
CreatePackagingGroupResponse -> Rep CreatePackagingGroupResponse x
Prelude.Generic)
newCreatePackagingGroupResponse ::
Prelude.Int ->
CreatePackagingGroupResponse
newCreatePackagingGroupResponse :: Int -> CreatePackagingGroupResponse
newCreatePackagingGroupResponse Int
pHttpStatus_ =
CreatePackagingGroupResponse' :: Maybe Text
-> Maybe Authorization
-> Maybe Text
-> Maybe Text
-> Maybe EgressAccessLogs
-> Maybe (HashMap Text Text)
-> Int
-> CreatePackagingGroupResponse
CreatePackagingGroupResponse'
{ $sel:arn:CreatePackagingGroupResponse' :: Maybe Text
arn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:authorization:CreatePackagingGroupResponse' :: Maybe Authorization
authorization = Maybe Authorization
forall a. Maybe a
Prelude.Nothing,
$sel:domainName:CreatePackagingGroupResponse' :: Maybe Text
domainName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreatePackagingGroupResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:egressAccessLogs:CreatePackagingGroupResponse' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreatePackagingGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreatePackagingGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createPackagingGroupResponse_arn :: Lens.Lens' CreatePackagingGroupResponse (Prelude.Maybe Prelude.Text)
createPackagingGroupResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreatePackagingGroupResponse -> f CreatePackagingGroupResponse
createPackagingGroupResponse_arn = (CreatePackagingGroupResponse -> Maybe Text)
-> (CreatePackagingGroupResponse
-> Maybe Text -> CreatePackagingGroupResponse)
-> Lens
CreatePackagingGroupResponse
CreatePackagingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackagingGroupResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreatePackagingGroupResponse' :: CreatePackagingGroupResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreatePackagingGroupResponse
s@CreatePackagingGroupResponse' {} Maybe Text
a -> CreatePackagingGroupResponse
s {$sel:arn:CreatePackagingGroupResponse' :: Maybe Text
arn = Maybe Text
a} :: CreatePackagingGroupResponse)
createPackagingGroupResponse_authorization :: Lens.Lens' CreatePackagingGroupResponse (Prelude.Maybe Authorization)
createPackagingGroupResponse_authorization :: (Maybe Authorization -> f (Maybe Authorization))
-> CreatePackagingGroupResponse -> f CreatePackagingGroupResponse
createPackagingGroupResponse_authorization = (CreatePackagingGroupResponse -> Maybe Authorization)
-> (CreatePackagingGroupResponse
-> Maybe Authorization -> CreatePackagingGroupResponse)
-> Lens
CreatePackagingGroupResponse
CreatePackagingGroupResponse
(Maybe Authorization)
(Maybe Authorization)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackagingGroupResponse' {Maybe Authorization
authorization :: Maybe Authorization
$sel:authorization:CreatePackagingGroupResponse' :: CreatePackagingGroupResponse -> Maybe Authorization
authorization} -> Maybe Authorization
authorization) (\s :: CreatePackagingGroupResponse
s@CreatePackagingGroupResponse' {} Maybe Authorization
a -> CreatePackagingGroupResponse
s {$sel:authorization:CreatePackagingGroupResponse' :: Maybe Authorization
authorization = Maybe Authorization
a} :: CreatePackagingGroupResponse)
createPackagingGroupResponse_domainName :: Lens.Lens' CreatePackagingGroupResponse (Prelude.Maybe Prelude.Text)
createPackagingGroupResponse_domainName :: (Maybe Text -> f (Maybe Text))
-> CreatePackagingGroupResponse -> f CreatePackagingGroupResponse
createPackagingGroupResponse_domainName = (CreatePackagingGroupResponse -> Maybe Text)
-> (CreatePackagingGroupResponse
-> Maybe Text -> CreatePackagingGroupResponse)
-> Lens
CreatePackagingGroupResponse
CreatePackagingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackagingGroupResponse' {Maybe Text
domainName :: Maybe Text
$sel:domainName:CreatePackagingGroupResponse' :: CreatePackagingGroupResponse -> Maybe Text
domainName} -> Maybe Text
domainName) (\s :: CreatePackagingGroupResponse
s@CreatePackagingGroupResponse' {} Maybe Text
a -> CreatePackagingGroupResponse
s {$sel:domainName:CreatePackagingGroupResponse' :: Maybe Text
domainName = Maybe Text
a} :: CreatePackagingGroupResponse)
createPackagingGroupResponse_id :: Lens.Lens' CreatePackagingGroupResponse (Prelude.Maybe Prelude.Text)
createPackagingGroupResponse_id :: (Maybe Text -> f (Maybe Text))
-> CreatePackagingGroupResponse -> f CreatePackagingGroupResponse
createPackagingGroupResponse_id = (CreatePackagingGroupResponse -> Maybe Text)
-> (CreatePackagingGroupResponse
-> Maybe Text -> CreatePackagingGroupResponse)
-> Lens
CreatePackagingGroupResponse
CreatePackagingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackagingGroupResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreatePackagingGroupResponse' :: CreatePackagingGroupResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreatePackagingGroupResponse
s@CreatePackagingGroupResponse' {} Maybe Text
a -> CreatePackagingGroupResponse
s {$sel:id:CreatePackagingGroupResponse' :: Maybe Text
id = Maybe Text
a} :: CreatePackagingGroupResponse)
createPackagingGroupResponse_egressAccessLogs :: Lens.Lens' CreatePackagingGroupResponse (Prelude.Maybe EgressAccessLogs)
createPackagingGroupResponse_egressAccessLogs :: (Maybe EgressAccessLogs -> f (Maybe EgressAccessLogs))
-> CreatePackagingGroupResponse -> f CreatePackagingGroupResponse
createPackagingGroupResponse_egressAccessLogs = (CreatePackagingGroupResponse -> Maybe EgressAccessLogs)
-> (CreatePackagingGroupResponse
-> Maybe EgressAccessLogs -> CreatePackagingGroupResponse)
-> Lens
CreatePackagingGroupResponse
CreatePackagingGroupResponse
(Maybe EgressAccessLogs)
(Maybe EgressAccessLogs)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackagingGroupResponse' {Maybe EgressAccessLogs
egressAccessLogs :: Maybe EgressAccessLogs
$sel:egressAccessLogs:CreatePackagingGroupResponse' :: CreatePackagingGroupResponse -> Maybe EgressAccessLogs
egressAccessLogs} -> Maybe EgressAccessLogs
egressAccessLogs) (\s :: CreatePackagingGroupResponse
s@CreatePackagingGroupResponse' {} Maybe EgressAccessLogs
a -> CreatePackagingGroupResponse
s {$sel:egressAccessLogs:CreatePackagingGroupResponse' :: Maybe EgressAccessLogs
egressAccessLogs = Maybe EgressAccessLogs
a} :: CreatePackagingGroupResponse)
createPackagingGroupResponse_tags :: Lens.Lens' CreatePackagingGroupResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createPackagingGroupResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreatePackagingGroupResponse -> f CreatePackagingGroupResponse
createPackagingGroupResponse_tags = (CreatePackagingGroupResponse -> Maybe (HashMap Text Text))
-> (CreatePackagingGroupResponse
-> Maybe (HashMap Text Text) -> CreatePackagingGroupResponse)
-> Lens
CreatePackagingGroupResponse
CreatePackagingGroupResponse
(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 (\CreatePackagingGroupResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreatePackagingGroupResponse' :: CreatePackagingGroupResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreatePackagingGroupResponse
s@CreatePackagingGroupResponse' {} Maybe (HashMap Text Text)
a -> CreatePackagingGroupResponse
s {$sel:tags:CreatePackagingGroupResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreatePackagingGroupResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreatePackagingGroupResponse -> f CreatePackagingGroupResponse)
-> ((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)))
-> CreatePackagingGroupResponse
-> f CreatePackagingGroupResponse
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
createPackagingGroupResponse_httpStatus :: Lens.Lens' CreatePackagingGroupResponse Prelude.Int
createPackagingGroupResponse_httpStatus :: (Int -> f Int)
-> CreatePackagingGroupResponse -> f CreatePackagingGroupResponse
createPackagingGroupResponse_httpStatus = (CreatePackagingGroupResponse -> Int)
-> (CreatePackagingGroupResponse
-> Int -> CreatePackagingGroupResponse)
-> Lens
CreatePackagingGroupResponse CreatePackagingGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackagingGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreatePackagingGroupResponse' :: CreatePackagingGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreatePackagingGroupResponse
s@CreatePackagingGroupResponse' {} Int
a -> CreatePackagingGroupResponse
s {$sel:httpStatus:CreatePackagingGroupResponse' :: Int
httpStatus = Int
a} :: CreatePackagingGroupResponse)
instance Prelude.NFData CreatePackagingGroupResponse