{-# 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.Panorama.CreatePackageImportJob
(
CreatePackageImportJob (..),
newCreatePackageImportJob,
createPackageImportJob_jobTags,
createPackageImportJob_jobType,
createPackageImportJob_inputConfig,
createPackageImportJob_outputConfig,
createPackageImportJob_clientToken,
CreatePackageImportJobResponse (..),
newCreatePackageImportJobResponse,
createPackageImportJobResponse_httpStatus,
createPackageImportJobResponse_jobId,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Panorama.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data CreatePackageImportJob = CreatePackageImportJob'
{
CreatePackageImportJob -> Maybe [JobResourceTags]
jobTags :: Prelude.Maybe [JobResourceTags],
CreatePackageImportJob -> PackageImportJobType
jobType :: PackageImportJobType,
CreatePackageImportJob -> PackageImportJobInputConfig
inputConfig :: PackageImportJobInputConfig,
CreatePackageImportJob -> PackageImportJobOutputConfig
outputConfig :: PackageImportJobOutputConfig,
CreatePackageImportJob -> Text
clientToken :: Prelude.Text
}
deriving (CreatePackageImportJob -> CreatePackageImportJob -> Bool
(CreatePackageImportJob -> CreatePackageImportJob -> Bool)
-> (CreatePackageImportJob -> CreatePackageImportJob -> Bool)
-> Eq CreatePackageImportJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreatePackageImportJob -> CreatePackageImportJob -> Bool
$c/= :: CreatePackageImportJob -> CreatePackageImportJob -> Bool
== :: CreatePackageImportJob -> CreatePackageImportJob -> Bool
$c== :: CreatePackageImportJob -> CreatePackageImportJob -> Bool
Prelude.Eq, ReadPrec [CreatePackageImportJob]
ReadPrec CreatePackageImportJob
Int -> ReadS CreatePackageImportJob
ReadS [CreatePackageImportJob]
(Int -> ReadS CreatePackageImportJob)
-> ReadS [CreatePackageImportJob]
-> ReadPrec CreatePackageImportJob
-> ReadPrec [CreatePackageImportJob]
-> Read CreatePackageImportJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreatePackageImportJob]
$creadListPrec :: ReadPrec [CreatePackageImportJob]
readPrec :: ReadPrec CreatePackageImportJob
$creadPrec :: ReadPrec CreatePackageImportJob
readList :: ReadS [CreatePackageImportJob]
$creadList :: ReadS [CreatePackageImportJob]
readsPrec :: Int -> ReadS CreatePackageImportJob
$creadsPrec :: Int -> ReadS CreatePackageImportJob
Prelude.Read, Int -> CreatePackageImportJob -> ShowS
[CreatePackageImportJob] -> ShowS
CreatePackageImportJob -> String
(Int -> CreatePackageImportJob -> ShowS)
-> (CreatePackageImportJob -> String)
-> ([CreatePackageImportJob] -> ShowS)
-> Show CreatePackageImportJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreatePackageImportJob] -> ShowS
$cshowList :: [CreatePackageImportJob] -> ShowS
show :: CreatePackageImportJob -> String
$cshow :: CreatePackageImportJob -> String
showsPrec :: Int -> CreatePackageImportJob -> ShowS
$cshowsPrec :: Int -> CreatePackageImportJob -> ShowS
Prelude.Show, (forall x. CreatePackageImportJob -> Rep CreatePackageImportJob x)
-> (forall x.
Rep CreatePackageImportJob x -> CreatePackageImportJob)
-> Generic CreatePackageImportJob
forall x. Rep CreatePackageImportJob x -> CreatePackageImportJob
forall x. CreatePackageImportJob -> Rep CreatePackageImportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreatePackageImportJob x -> CreatePackageImportJob
$cfrom :: forall x. CreatePackageImportJob -> Rep CreatePackageImportJob x
Prelude.Generic)
newCreatePackageImportJob ::
PackageImportJobType ->
PackageImportJobInputConfig ->
PackageImportJobOutputConfig ->
Prelude.Text ->
CreatePackageImportJob
newCreatePackageImportJob :: PackageImportJobType
-> PackageImportJobInputConfig
-> PackageImportJobOutputConfig
-> Text
-> CreatePackageImportJob
newCreatePackageImportJob
PackageImportJobType
pJobType_
PackageImportJobInputConfig
pInputConfig_
PackageImportJobOutputConfig
pOutputConfig_
Text
pClientToken_ =
CreatePackageImportJob' :: Maybe [JobResourceTags]
-> PackageImportJobType
-> PackageImportJobInputConfig
-> PackageImportJobOutputConfig
-> Text
-> CreatePackageImportJob
CreatePackageImportJob'
{ $sel:jobTags:CreatePackageImportJob' :: Maybe [JobResourceTags]
jobTags = Maybe [JobResourceTags]
forall a. Maybe a
Prelude.Nothing,
$sel:jobType:CreatePackageImportJob' :: PackageImportJobType
jobType = PackageImportJobType
pJobType_,
$sel:inputConfig:CreatePackageImportJob' :: PackageImportJobInputConfig
inputConfig = PackageImportJobInputConfig
pInputConfig_,
$sel:outputConfig:CreatePackageImportJob' :: PackageImportJobOutputConfig
outputConfig = PackageImportJobOutputConfig
pOutputConfig_,
$sel:clientToken:CreatePackageImportJob' :: Text
clientToken = Text
pClientToken_
}
createPackageImportJob_jobTags :: Lens.Lens' CreatePackageImportJob (Prelude.Maybe [JobResourceTags])
createPackageImportJob_jobTags :: (Maybe [JobResourceTags] -> f (Maybe [JobResourceTags]))
-> CreatePackageImportJob -> f CreatePackageImportJob
createPackageImportJob_jobTags = (CreatePackageImportJob -> Maybe [JobResourceTags])
-> (CreatePackageImportJob
-> Maybe [JobResourceTags] -> CreatePackageImportJob)
-> Lens
CreatePackageImportJob
CreatePackageImportJob
(Maybe [JobResourceTags])
(Maybe [JobResourceTags])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackageImportJob' {Maybe [JobResourceTags]
jobTags :: Maybe [JobResourceTags]
$sel:jobTags:CreatePackageImportJob' :: CreatePackageImportJob -> Maybe [JobResourceTags]
jobTags} -> Maybe [JobResourceTags]
jobTags) (\s :: CreatePackageImportJob
s@CreatePackageImportJob' {} Maybe [JobResourceTags]
a -> CreatePackageImportJob
s {$sel:jobTags:CreatePackageImportJob' :: Maybe [JobResourceTags]
jobTags = Maybe [JobResourceTags]
a} :: CreatePackageImportJob) ((Maybe [JobResourceTags] -> f (Maybe [JobResourceTags]))
-> CreatePackageImportJob -> f CreatePackageImportJob)
-> ((Maybe [JobResourceTags] -> f (Maybe [JobResourceTags]))
-> Maybe [JobResourceTags] -> f (Maybe [JobResourceTags]))
-> (Maybe [JobResourceTags] -> f (Maybe [JobResourceTags]))
-> CreatePackageImportJob
-> f CreatePackageImportJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[JobResourceTags]
[JobResourceTags]
[JobResourceTags]
[JobResourceTags]
-> Iso
(Maybe [JobResourceTags])
(Maybe [JobResourceTags])
(Maybe [JobResourceTags])
(Maybe [JobResourceTags])
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
[JobResourceTags]
[JobResourceTags]
[JobResourceTags]
[JobResourceTags]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createPackageImportJob_jobType :: Lens.Lens' CreatePackageImportJob PackageImportJobType
createPackageImportJob_jobType :: (PackageImportJobType -> f PackageImportJobType)
-> CreatePackageImportJob -> f CreatePackageImportJob
createPackageImportJob_jobType = (CreatePackageImportJob -> PackageImportJobType)
-> (CreatePackageImportJob
-> PackageImportJobType -> CreatePackageImportJob)
-> Lens
CreatePackageImportJob
CreatePackageImportJob
PackageImportJobType
PackageImportJobType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackageImportJob' {PackageImportJobType
jobType :: PackageImportJobType
$sel:jobType:CreatePackageImportJob' :: CreatePackageImportJob -> PackageImportJobType
jobType} -> PackageImportJobType
jobType) (\s :: CreatePackageImportJob
s@CreatePackageImportJob' {} PackageImportJobType
a -> CreatePackageImportJob
s {$sel:jobType:CreatePackageImportJob' :: PackageImportJobType
jobType = PackageImportJobType
a} :: CreatePackageImportJob)
createPackageImportJob_inputConfig :: Lens.Lens' CreatePackageImportJob PackageImportJobInputConfig
createPackageImportJob_inputConfig :: (PackageImportJobInputConfig -> f PackageImportJobInputConfig)
-> CreatePackageImportJob -> f CreatePackageImportJob
createPackageImportJob_inputConfig = (CreatePackageImportJob -> PackageImportJobInputConfig)
-> (CreatePackageImportJob
-> PackageImportJobInputConfig -> CreatePackageImportJob)
-> Lens
CreatePackageImportJob
CreatePackageImportJob
PackageImportJobInputConfig
PackageImportJobInputConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackageImportJob' {PackageImportJobInputConfig
inputConfig :: PackageImportJobInputConfig
$sel:inputConfig:CreatePackageImportJob' :: CreatePackageImportJob -> PackageImportJobInputConfig
inputConfig} -> PackageImportJobInputConfig
inputConfig) (\s :: CreatePackageImportJob
s@CreatePackageImportJob' {} PackageImportJobInputConfig
a -> CreatePackageImportJob
s {$sel:inputConfig:CreatePackageImportJob' :: PackageImportJobInputConfig
inputConfig = PackageImportJobInputConfig
a} :: CreatePackageImportJob)
createPackageImportJob_outputConfig :: Lens.Lens' CreatePackageImportJob PackageImportJobOutputConfig
createPackageImportJob_outputConfig :: (PackageImportJobOutputConfig -> f PackageImportJobOutputConfig)
-> CreatePackageImportJob -> f CreatePackageImportJob
createPackageImportJob_outputConfig = (CreatePackageImportJob -> PackageImportJobOutputConfig)
-> (CreatePackageImportJob
-> PackageImportJobOutputConfig -> CreatePackageImportJob)
-> Lens
CreatePackageImportJob
CreatePackageImportJob
PackageImportJobOutputConfig
PackageImportJobOutputConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackageImportJob' {PackageImportJobOutputConfig
outputConfig :: PackageImportJobOutputConfig
$sel:outputConfig:CreatePackageImportJob' :: CreatePackageImportJob -> PackageImportJobOutputConfig
outputConfig} -> PackageImportJobOutputConfig
outputConfig) (\s :: CreatePackageImportJob
s@CreatePackageImportJob' {} PackageImportJobOutputConfig
a -> CreatePackageImportJob
s {$sel:outputConfig:CreatePackageImportJob' :: PackageImportJobOutputConfig
outputConfig = PackageImportJobOutputConfig
a} :: CreatePackageImportJob)
createPackageImportJob_clientToken :: Lens.Lens' CreatePackageImportJob Prelude.Text
createPackageImportJob_clientToken :: (Text -> f Text)
-> CreatePackageImportJob -> f CreatePackageImportJob
createPackageImportJob_clientToken = (CreatePackageImportJob -> Text)
-> (CreatePackageImportJob -> Text -> CreatePackageImportJob)
-> Lens CreatePackageImportJob CreatePackageImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackageImportJob' {Text
clientToken :: Text
$sel:clientToken:CreatePackageImportJob' :: CreatePackageImportJob -> Text
clientToken} -> Text
clientToken) (\s :: CreatePackageImportJob
s@CreatePackageImportJob' {} Text
a -> CreatePackageImportJob
s {$sel:clientToken:CreatePackageImportJob' :: Text
clientToken = Text
a} :: CreatePackageImportJob)
instance Core.AWSRequest CreatePackageImportJob where
type
AWSResponse CreatePackageImportJob =
CreatePackageImportJobResponse
request :: CreatePackageImportJob -> Request CreatePackageImportJob
request = Service -> CreatePackageImportJob -> Request CreatePackageImportJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreatePackageImportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreatePackageImportJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreatePackageImportJob))
-> Logger
-> Service
-> Proxy CreatePackageImportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreatePackageImportJob)))
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 ->
Int -> Text -> CreatePackageImportJobResponse
CreatePackageImportJobResponse'
(Int -> Text -> CreatePackageImportJobResponse)
-> Either String Int
-> Either String (Text -> CreatePackageImportJobResponse)
forall (f :: * -> *) a b. Functor 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))
Either String (Text -> CreatePackageImportJobResponse)
-> Either String Text
-> Either String CreatePackageImportJobResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"JobId")
)
instance Prelude.Hashable CreatePackageImportJob
instance Prelude.NFData CreatePackageImportJob
instance Core.ToHeaders CreatePackageImportJob where
toHeaders :: CreatePackageImportJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreatePackageImportJob -> 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 CreatePackageImportJob where
toJSON :: CreatePackageImportJob -> Value
toJSON CreatePackageImportJob' {Maybe [JobResourceTags]
Text
PackageImportJobType
PackageImportJobOutputConfig
PackageImportJobInputConfig
clientToken :: Text
outputConfig :: PackageImportJobOutputConfig
inputConfig :: PackageImportJobInputConfig
jobType :: PackageImportJobType
jobTags :: Maybe [JobResourceTags]
$sel:clientToken:CreatePackageImportJob' :: CreatePackageImportJob -> Text
$sel:outputConfig:CreatePackageImportJob' :: CreatePackageImportJob -> PackageImportJobOutputConfig
$sel:inputConfig:CreatePackageImportJob' :: CreatePackageImportJob -> PackageImportJobInputConfig
$sel:jobType:CreatePackageImportJob' :: CreatePackageImportJob -> PackageImportJobType
$sel:jobTags:CreatePackageImportJob' :: CreatePackageImportJob -> Maybe [JobResourceTags]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"JobTags" Text -> [JobResourceTags] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([JobResourceTags] -> Pair)
-> Maybe [JobResourceTags] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [JobResourceTags]
jobTags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"JobType" Text -> PackageImportJobType -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= PackageImportJobType
jobType),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InputConfig" Text -> PackageImportJobInputConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= PackageImportJobInputConfig
inputConfig),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"OutputConfig" Text -> PackageImportJobOutputConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= PackageImportJobOutputConfig
outputConfig),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ClientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientToken)
]
)
instance Core.ToPath CreatePackageImportJob where
toPath :: CreatePackageImportJob -> ByteString
toPath = ByteString -> CreatePackageImportJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/packages/import-jobs"
instance Core.ToQuery CreatePackageImportJob where
toQuery :: CreatePackageImportJob -> QueryString
toQuery = QueryString -> CreatePackageImportJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreatePackageImportJobResponse = CreatePackageImportJobResponse'
{
CreatePackageImportJobResponse -> Int
httpStatus :: Prelude.Int,
CreatePackageImportJobResponse -> Text
jobId :: Prelude.Text
}
deriving (CreatePackageImportJobResponse
-> CreatePackageImportJobResponse -> Bool
(CreatePackageImportJobResponse
-> CreatePackageImportJobResponse -> Bool)
-> (CreatePackageImportJobResponse
-> CreatePackageImportJobResponse -> Bool)
-> Eq CreatePackageImportJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreatePackageImportJobResponse
-> CreatePackageImportJobResponse -> Bool
$c/= :: CreatePackageImportJobResponse
-> CreatePackageImportJobResponse -> Bool
== :: CreatePackageImportJobResponse
-> CreatePackageImportJobResponse -> Bool
$c== :: CreatePackageImportJobResponse
-> CreatePackageImportJobResponse -> Bool
Prelude.Eq, ReadPrec [CreatePackageImportJobResponse]
ReadPrec CreatePackageImportJobResponse
Int -> ReadS CreatePackageImportJobResponse
ReadS [CreatePackageImportJobResponse]
(Int -> ReadS CreatePackageImportJobResponse)
-> ReadS [CreatePackageImportJobResponse]
-> ReadPrec CreatePackageImportJobResponse
-> ReadPrec [CreatePackageImportJobResponse]
-> Read CreatePackageImportJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreatePackageImportJobResponse]
$creadListPrec :: ReadPrec [CreatePackageImportJobResponse]
readPrec :: ReadPrec CreatePackageImportJobResponse
$creadPrec :: ReadPrec CreatePackageImportJobResponse
readList :: ReadS [CreatePackageImportJobResponse]
$creadList :: ReadS [CreatePackageImportJobResponse]
readsPrec :: Int -> ReadS CreatePackageImportJobResponse
$creadsPrec :: Int -> ReadS CreatePackageImportJobResponse
Prelude.Read, Int -> CreatePackageImportJobResponse -> ShowS
[CreatePackageImportJobResponse] -> ShowS
CreatePackageImportJobResponse -> String
(Int -> CreatePackageImportJobResponse -> ShowS)
-> (CreatePackageImportJobResponse -> String)
-> ([CreatePackageImportJobResponse] -> ShowS)
-> Show CreatePackageImportJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreatePackageImportJobResponse] -> ShowS
$cshowList :: [CreatePackageImportJobResponse] -> ShowS
show :: CreatePackageImportJobResponse -> String
$cshow :: CreatePackageImportJobResponse -> String
showsPrec :: Int -> CreatePackageImportJobResponse -> ShowS
$cshowsPrec :: Int -> CreatePackageImportJobResponse -> ShowS
Prelude.Show, (forall x.
CreatePackageImportJobResponse
-> Rep CreatePackageImportJobResponse x)
-> (forall x.
Rep CreatePackageImportJobResponse x
-> CreatePackageImportJobResponse)
-> Generic CreatePackageImportJobResponse
forall x.
Rep CreatePackageImportJobResponse x
-> CreatePackageImportJobResponse
forall x.
CreatePackageImportJobResponse
-> Rep CreatePackageImportJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreatePackageImportJobResponse x
-> CreatePackageImportJobResponse
$cfrom :: forall x.
CreatePackageImportJobResponse
-> Rep CreatePackageImportJobResponse x
Prelude.Generic)
newCreatePackageImportJobResponse ::
Prelude.Int ->
Prelude.Text ->
CreatePackageImportJobResponse
newCreatePackageImportJobResponse :: Int -> Text -> CreatePackageImportJobResponse
newCreatePackageImportJobResponse
Int
pHttpStatus_
Text
pJobId_ =
CreatePackageImportJobResponse' :: Int -> Text -> CreatePackageImportJobResponse
CreatePackageImportJobResponse'
{ $sel:httpStatus:CreatePackageImportJobResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:jobId:CreatePackageImportJobResponse' :: Text
jobId = Text
pJobId_
}
createPackageImportJobResponse_httpStatus :: Lens.Lens' CreatePackageImportJobResponse Prelude.Int
createPackageImportJobResponse_httpStatus :: (Int -> f Int)
-> CreatePackageImportJobResponse
-> f CreatePackageImportJobResponse
createPackageImportJobResponse_httpStatus = (CreatePackageImportJobResponse -> Int)
-> (CreatePackageImportJobResponse
-> Int -> CreatePackageImportJobResponse)
-> Lens
CreatePackageImportJobResponse
CreatePackageImportJobResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackageImportJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreatePackageImportJobResponse' :: CreatePackageImportJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreatePackageImportJobResponse
s@CreatePackageImportJobResponse' {} Int
a -> CreatePackageImportJobResponse
s {$sel:httpStatus:CreatePackageImportJobResponse' :: Int
httpStatus = Int
a} :: CreatePackageImportJobResponse)
createPackageImportJobResponse_jobId :: Lens.Lens' CreatePackageImportJobResponse Prelude.Text
createPackageImportJobResponse_jobId :: (Text -> f Text)
-> CreatePackageImportJobResponse
-> f CreatePackageImportJobResponse
createPackageImportJobResponse_jobId = (CreatePackageImportJobResponse -> Text)
-> (CreatePackageImportJobResponse
-> Text -> CreatePackageImportJobResponse)
-> Lens
CreatePackageImportJobResponse
CreatePackageImportJobResponse
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreatePackageImportJobResponse' {Text
jobId :: Text
$sel:jobId:CreatePackageImportJobResponse' :: CreatePackageImportJobResponse -> Text
jobId} -> Text
jobId) (\s :: CreatePackageImportJobResponse
s@CreatePackageImportJobResponse' {} Text
a -> CreatePackageImportJobResponse
s {$sel:jobId:CreatePackageImportJobResponse' :: Text
jobId = Text
a} :: CreatePackageImportJobResponse)
instance
Prelude.NFData
CreatePackageImportJobResponse