{-# 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.SageMaker.CreateCompilationJob
(
CreateCompilationJob (..),
newCreateCompilationJob,
createCompilationJob_vpcConfig,
createCompilationJob_tags,
createCompilationJob_compilationJobName,
createCompilationJob_roleArn,
createCompilationJob_inputConfig,
createCompilationJob_outputConfig,
createCompilationJob_stoppingCondition,
CreateCompilationJobResponse (..),
newCreateCompilationJobResponse,
createCompilationJobResponse_httpStatus,
createCompilationJobResponse_compilationJobArn,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types
data CreateCompilationJob = CreateCompilationJob'
{
CreateCompilationJob -> Maybe NeoVpcConfig
vpcConfig :: Prelude.Maybe NeoVpcConfig,
CreateCompilationJob -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateCompilationJob -> Text
compilationJobName :: Prelude.Text,
CreateCompilationJob -> Text
roleArn :: Prelude.Text,
CreateCompilationJob -> InputConfig
inputConfig :: InputConfig,
CreateCompilationJob -> OutputConfig
outputConfig :: OutputConfig,
CreateCompilationJob -> StoppingCondition
stoppingCondition :: StoppingCondition
}
deriving (CreateCompilationJob -> CreateCompilationJob -> Bool
(CreateCompilationJob -> CreateCompilationJob -> Bool)
-> (CreateCompilationJob -> CreateCompilationJob -> Bool)
-> Eq CreateCompilationJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateCompilationJob -> CreateCompilationJob -> Bool
$c/= :: CreateCompilationJob -> CreateCompilationJob -> Bool
== :: CreateCompilationJob -> CreateCompilationJob -> Bool
$c== :: CreateCompilationJob -> CreateCompilationJob -> Bool
Prelude.Eq, ReadPrec [CreateCompilationJob]
ReadPrec CreateCompilationJob
Int -> ReadS CreateCompilationJob
ReadS [CreateCompilationJob]
(Int -> ReadS CreateCompilationJob)
-> ReadS [CreateCompilationJob]
-> ReadPrec CreateCompilationJob
-> ReadPrec [CreateCompilationJob]
-> Read CreateCompilationJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateCompilationJob]
$creadListPrec :: ReadPrec [CreateCompilationJob]
readPrec :: ReadPrec CreateCompilationJob
$creadPrec :: ReadPrec CreateCompilationJob
readList :: ReadS [CreateCompilationJob]
$creadList :: ReadS [CreateCompilationJob]
readsPrec :: Int -> ReadS CreateCompilationJob
$creadsPrec :: Int -> ReadS CreateCompilationJob
Prelude.Read, Int -> CreateCompilationJob -> ShowS
[CreateCompilationJob] -> ShowS
CreateCompilationJob -> String
(Int -> CreateCompilationJob -> ShowS)
-> (CreateCompilationJob -> String)
-> ([CreateCompilationJob] -> ShowS)
-> Show CreateCompilationJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateCompilationJob] -> ShowS
$cshowList :: [CreateCompilationJob] -> ShowS
show :: CreateCompilationJob -> String
$cshow :: CreateCompilationJob -> String
showsPrec :: Int -> CreateCompilationJob -> ShowS
$cshowsPrec :: Int -> CreateCompilationJob -> ShowS
Prelude.Show, (forall x. CreateCompilationJob -> Rep CreateCompilationJob x)
-> (forall x. Rep CreateCompilationJob x -> CreateCompilationJob)
-> Generic CreateCompilationJob
forall x. Rep CreateCompilationJob x -> CreateCompilationJob
forall x. CreateCompilationJob -> Rep CreateCompilationJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateCompilationJob x -> CreateCompilationJob
$cfrom :: forall x. CreateCompilationJob -> Rep CreateCompilationJob x
Prelude.Generic)
newCreateCompilationJob ::
Prelude.Text ->
Prelude.Text ->
InputConfig ->
OutputConfig ->
StoppingCondition ->
CreateCompilationJob
newCreateCompilationJob :: Text
-> Text
-> InputConfig
-> OutputConfig
-> StoppingCondition
-> CreateCompilationJob
newCreateCompilationJob
Text
pCompilationJobName_
Text
pRoleArn_
InputConfig
pInputConfig_
OutputConfig
pOutputConfig_
StoppingCondition
pStoppingCondition_ =
CreateCompilationJob' :: Maybe NeoVpcConfig
-> Maybe [Tag]
-> Text
-> Text
-> InputConfig
-> OutputConfig
-> StoppingCondition
-> CreateCompilationJob
CreateCompilationJob'
{ $sel:vpcConfig:CreateCompilationJob' :: Maybe NeoVpcConfig
vpcConfig = Maybe NeoVpcConfig
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateCompilationJob' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:compilationJobName:CreateCompilationJob' :: Text
compilationJobName = Text
pCompilationJobName_,
$sel:roleArn:CreateCompilationJob' :: Text
roleArn = Text
pRoleArn_,
$sel:inputConfig:CreateCompilationJob' :: InputConfig
inputConfig = InputConfig
pInputConfig_,
$sel:outputConfig:CreateCompilationJob' :: OutputConfig
outputConfig = OutputConfig
pOutputConfig_,
$sel:stoppingCondition:CreateCompilationJob' :: StoppingCondition
stoppingCondition = StoppingCondition
pStoppingCondition_
}
createCompilationJob_vpcConfig :: Lens.Lens' CreateCompilationJob (Prelude.Maybe NeoVpcConfig)
createCompilationJob_vpcConfig :: (Maybe NeoVpcConfig -> f (Maybe NeoVpcConfig))
-> CreateCompilationJob -> f CreateCompilationJob
createCompilationJob_vpcConfig = (CreateCompilationJob -> Maybe NeoVpcConfig)
-> (CreateCompilationJob
-> Maybe NeoVpcConfig -> CreateCompilationJob)
-> Lens
CreateCompilationJob
CreateCompilationJob
(Maybe NeoVpcConfig)
(Maybe NeoVpcConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCompilationJob' {Maybe NeoVpcConfig
vpcConfig :: Maybe NeoVpcConfig
$sel:vpcConfig:CreateCompilationJob' :: CreateCompilationJob -> Maybe NeoVpcConfig
vpcConfig} -> Maybe NeoVpcConfig
vpcConfig) (\s :: CreateCompilationJob
s@CreateCompilationJob' {} Maybe NeoVpcConfig
a -> CreateCompilationJob
s {$sel:vpcConfig:CreateCompilationJob' :: Maybe NeoVpcConfig
vpcConfig = Maybe NeoVpcConfig
a} :: CreateCompilationJob)
createCompilationJob_tags :: Lens.Lens' CreateCompilationJob (Prelude.Maybe [Tag])
createCompilationJob_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateCompilationJob -> f CreateCompilationJob
createCompilationJob_tags = (CreateCompilationJob -> Maybe [Tag])
-> (CreateCompilationJob -> Maybe [Tag] -> CreateCompilationJob)
-> Lens
CreateCompilationJob
CreateCompilationJob
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCompilationJob' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateCompilationJob' :: CreateCompilationJob -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateCompilationJob
s@CreateCompilationJob' {} Maybe [Tag]
a -> CreateCompilationJob
s {$sel:tags:CreateCompilationJob' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateCompilationJob) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateCompilationJob -> f CreateCompilationJob)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateCompilationJob
-> f CreateCompilationJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createCompilationJob_compilationJobName :: Lens.Lens' CreateCompilationJob Prelude.Text
createCompilationJob_compilationJobName :: (Text -> f Text) -> CreateCompilationJob -> f CreateCompilationJob
createCompilationJob_compilationJobName = (CreateCompilationJob -> Text)
-> (CreateCompilationJob -> Text -> CreateCompilationJob)
-> Lens CreateCompilationJob CreateCompilationJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCompilationJob' {Text
compilationJobName :: Text
$sel:compilationJobName:CreateCompilationJob' :: CreateCompilationJob -> Text
compilationJobName} -> Text
compilationJobName) (\s :: CreateCompilationJob
s@CreateCompilationJob' {} Text
a -> CreateCompilationJob
s {$sel:compilationJobName:CreateCompilationJob' :: Text
compilationJobName = Text
a} :: CreateCompilationJob)
createCompilationJob_roleArn :: Lens.Lens' CreateCompilationJob Prelude.Text
createCompilationJob_roleArn :: (Text -> f Text) -> CreateCompilationJob -> f CreateCompilationJob
createCompilationJob_roleArn = (CreateCompilationJob -> Text)
-> (CreateCompilationJob -> Text -> CreateCompilationJob)
-> Lens CreateCompilationJob CreateCompilationJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCompilationJob' {Text
roleArn :: Text
$sel:roleArn:CreateCompilationJob' :: CreateCompilationJob -> Text
roleArn} -> Text
roleArn) (\s :: CreateCompilationJob
s@CreateCompilationJob' {} Text
a -> CreateCompilationJob
s {$sel:roleArn:CreateCompilationJob' :: Text
roleArn = Text
a} :: CreateCompilationJob)
createCompilationJob_inputConfig :: Lens.Lens' CreateCompilationJob InputConfig
createCompilationJob_inputConfig :: (InputConfig -> f InputConfig)
-> CreateCompilationJob -> f CreateCompilationJob
createCompilationJob_inputConfig = (CreateCompilationJob -> InputConfig)
-> (CreateCompilationJob -> InputConfig -> CreateCompilationJob)
-> Lens
CreateCompilationJob CreateCompilationJob InputConfig InputConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCompilationJob' {InputConfig
inputConfig :: InputConfig
$sel:inputConfig:CreateCompilationJob' :: CreateCompilationJob -> InputConfig
inputConfig} -> InputConfig
inputConfig) (\s :: CreateCompilationJob
s@CreateCompilationJob' {} InputConfig
a -> CreateCompilationJob
s {$sel:inputConfig:CreateCompilationJob' :: InputConfig
inputConfig = InputConfig
a} :: CreateCompilationJob)
createCompilationJob_outputConfig :: Lens.Lens' CreateCompilationJob OutputConfig
createCompilationJob_outputConfig :: (OutputConfig -> f OutputConfig)
-> CreateCompilationJob -> f CreateCompilationJob
createCompilationJob_outputConfig = (CreateCompilationJob -> OutputConfig)
-> (CreateCompilationJob -> OutputConfig -> CreateCompilationJob)
-> Lens
CreateCompilationJob CreateCompilationJob OutputConfig OutputConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCompilationJob' {OutputConfig
outputConfig :: OutputConfig
$sel:outputConfig:CreateCompilationJob' :: CreateCompilationJob -> OutputConfig
outputConfig} -> OutputConfig
outputConfig) (\s :: CreateCompilationJob
s@CreateCompilationJob' {} OutputConfig
a -> CreateCompilationJob
s {$sel:outputConfig:CreateCompilationJob' :: OutputConfig
outputConfig = OutputConfig
a} :: CreateCompilationJob)
createCompilationJob_stoppingCondition :: Lens.Lens' CreateCompilationJob StoppingCondition
createCompilationJob_stoppingCondition :: (StoppingCondition -> f StoppingCondition)
-> CreateCompilationJob -> f CreateCompilationJob
createCompilationJob_stoppingCondition = (CreateCompilationJob -> StoppingCondition)
-> (CreateCompilationJob
-> StoppingCondition -> CreateCompilationJob)
-> Lens
CreateCompilationJob
CreateCompilationJob
StoppingCondition
StoppingCondition
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCompilationJob' {StoppingCondition
stoppingCondition :: StoppingCondition
$sel:stoppingCondition:CreateCompilationJob' :: CreateCompilationJob -> StoppingCondition
stoppingCondition} -> StoppingCondition
stoppingCondition) (\s :: CreateCompilationJob
s@CreateCompilationJob' {} StoppingCondition
a -> CreateCompilationJob
s {$sel:stoppingCondition:CreateCompilationJob' :: StoppingCondition
stoppingCondition = StoppingCondition
a} :: CreateCompilationJob)
instance Core.AWSRequest CreateCompilationJob where
type
AWSResponse CreateCompilationJob =
CreateCompilationJobResponse
request :: CreateCompilationJob -> Request CreateCompilationJob
request = Service -> CreateCompilationJob -> Request CreateCompilationJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateCompilationJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateCompilationJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateCompilationJob))
-> Logger
-> Service
-> Proxy CreateCompilationJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateCompilationJob)))
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 -> CreateCompilationJobResponse
CreateCompilationJobResponse'
(Int -> Text -> CreateCompilationJobResponse)
-> Either String Int
-> Either String (Text -> CreateCompilationJobResponse)
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 -> CreateCompilationJobResponse)
-> Either String Text -> Either String CreateCompilationJobResponse
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
"CompilationJobArn")
)
instance Prelude.Hashable CreateCompilationJob
instance Prelude.NFData CreateCompilationJob
instance Core.ToHeaders CreateCompilationJob where
toHeaders :: CreateCompilationJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateCompilationJob -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"SageMaker.CreateCompilationJob" ::
Prelude.ByteString
),
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 CreateCompilationJob where
toJSON :: CreateCompilationJob -> Value
toJSON CreateCompilationJob' {Maybe [Tag]
Maybe NeoVpcConfig
Text
InputConfig
StoppingCondition
OutputConfig
stoppingCondition :: StoppingCondition
outputConfig :: OutputConfig
inputConfig :: InputConfig
roleArn :: Text
compilationJobName :: Text
tags :: Maybe [Tag]
vpcConfig :: Maybe NeoVpcConfig
$sel:stoppingCondition:CreateCompilationJob' :: CreateCompilationJob -> StoppingCondition
$sel:outputConfig:CreateCompilationJob' :: CreateCompilationJob -> OutputConfig
$sel:inputConfig:CreateCompilationJob' :: CreateCompilationJob -> InputConfig
$sel:roleArn:CreateCompilationJob' :: CreateCompilationJob -> Text
$sel:compilationJobName:CreateCompilationJob' :: CreateCompilationJob -> Text
$sel:tags:CreateCompilationJob' :: CreateCompilationJob -> Maybe [Tag]
$sel:vpcConfig:CreateCompilationJob' :: CreateCompilationJob -> Maybe NeoVpcConfig
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"VpcConfig" Text -> NeoVpcConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NeoVpcConfig -> Pair) -> Maybe NeoVpcConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NeoVpcConfig
vpcConfig,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"CompilationJobName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
compilationJobName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"RoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
roleArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"InputConfig" Text -> InputConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= InputConfig
inputConfig),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"OutputConfig" Text -> OutputConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= OutputConfig
outputConfig),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"StoppingCondition" Text -> StoppingCondition -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= StoppingCondition
stoppingCondition)
]
)
instance Core.ToPath CreateCompilationJob where
toPath :: CreateCompilationJob -> ByteString
toPath = ByteString -> CreateCompilationJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateCompilationJob where
toQuery :: CreateCompilationJob -> QueryString
toQuery = QueryString -> CreateCompilationJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateCompilationJobResponse = CreateCompilationJobResponse'
{
CreateCompilationJobResponse -> Int
httpStatus :: Prelude.Int,
CreateCompilationJobResponse -> Text
compilationJobArn :: Prelude.Text
}
deriving (CreateCompilationJobResponse
-> CreateCompilationJobResponse -> Bool
(CreateCompilationJobResponse
-> CreateCompilationJobResponse -> Bool)
-> (CreateCompilationJobResponse
-> CreateCompilationJobResponse -> Bool)
-> Eq CreateCompilationJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateCompilationJobResponse
-> CreateCompilationJobResponse -> Bool
$c/= :: CreateCompilationJobResponse
-> CreateCompilationJobResponse -> Bool
== :: CreateCompilationJobResponse
-> CreateCompilationJobResponse -> Bool
$c== :: CreateCompilationJobResponse
-> CreateCompilationJobResponse -> Bool
Prelude.Eq, ReadPrec [CreateCompilationJobResponse]
ReadPrec CreateCompilationJobResponse
Int -> ReadS CreateCompilationJobResponse
ReadS [CreateCompilationJobResponse]
(Int -> ReadS CreateCompilationJobResponse)
-> ReadS [CreateCompilationJobResponse]
-> ReadPrec CreateCompilationJobResponse
-> ReadPrec [CreateCompilationJobResponse]
-> Read CreateCompilationJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateCompilationJobResponse]
$creadListPrec :: ReadPrec [CreateCompilationJobResponse]
readPrec :: ReadPrec CreateCompilationJobResponse
$creadPrec :: ReadPrec CreateCompilationJobResponse
readList :: ReadS [CreateCompilationJobResponse]
$creadList :: ReadS [CreateCompilationJobResponse]
readsPrec :: Int -> ReadS CreateCompilationJobResponse
$creadsPrec :: Int -> ReadS CreateCompilationJobResponse
Prelude.Read, Int -> CreateCompilationJobResponse -> ShowS
[CreateCompilationJobResponse] -> ShowS
CreateCompilationJobResponse -> String
(Int -> CreateCompilationJobResponse -> ShowS)
-> (CreateCompilationJobResponse -> String)
-> ([CreateCompilationJobResponse] -> ShowS)
-> Show CreateCompilationJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateCompilationJobResponse] -> ShowS
$cshowList :: [CreateCompilationJobResponse] -> ShowS
show :: CreateCompilationJobResponse -> String
$cshow :: CreateCompilationJobResponse -> String
showsPrec :: Int -> CreateCompilationJobResponse -> ShowS
$cshowsPrec :: Int -> CreateCompilationJobResponse -> ShowS
Prelude.Show, (forall x.
CreateCompilationJobResponse -> Rep CreateCompilationJobResponse x)
-> (forall x.
Rep CreateCompilationJobResponse x -> CreateCompilationJobResponse)
-> Generic CreateCompilationJobResponse
forall x.
Rep CreateCompilationJobResponse x -> CreateCompilationJobResponse
forall x.
CreateCompilationJobResponse -> Rep CreateCompilationJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateCompilationJobResponse x -> CreateCompilationJobResponse
$cfrom :: forall x.
CreateCompilationJobResponse -> Rep CreateCompilationJobResponse x
Prelude.Generic)
newCreateCompilationJobResponse ::
Prelude.Int ->
Prelude.Text ->
CreateCompilationJobResponse
newCreateCompilationJobResponse :: Int -> Text -> CreateCompilationJobResponse
newCreateCompilationJobResponse
Int
pHttpStatus_
Text
pCompilationJobArn_ =
CreateCompilationJobResponse' :: Int -> Text -> CreateCompilationJobResponse
CreateCompilationJobResponse'
{ $sel:httpStatus:CreateCompilationJobResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:compilationJobArn:CreateCompilationJobResponse' :: Text
compilationJobArn = Text
pCompilationJobArn_
}
createCompilationJobResponse_httpStatus :: Lens.Lens' CreateCompilationJobResponse Prelude.Int
createCompilationJobResponse_httpStatus :: (Int -> f Int)
-> CreateCompilationJobResponse -> f CreateCompilationJobResponse
createCompilationJobResponse_httpStatus = (CreateCompilationJobResponse -> Int)
-> (CreateCompilationJobResponse
-> Int -> CreateCompilationJobResponse)
-> Lens
CreateCompilationJobResponse CreateCompilationJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCompilationJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateCompilationJobResponse' :: CreateCompilationJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateCompilationJobResponse
s@CreateCompilationJobResponse' {} Int
a -> CreateCompilationJobResponse
s {$sel:httpStatus:CreateCompilationJobResponse' :: Int
httpStatus = Int
a} :: CreateCompilationJobResponse)
createCompilationJobResponse_compilationJobArn :: Lens.Lens' CreateCompilationJobResponse Prelude.Text
createCompilationJobResponse_compilationJobArn :: (Text -> f Text)
-> CreateCompilationJobResponse -> f CreateCompilationJobResponse
createCompilationJobResponse_compilationJobArn = (CreateCompilationJobResponse -> Text)
-> (CreateCompilationJobResponse
-> Text -> CreateCompilationJobResponse)
-> Lens
CreateCompilationJobResponse CreateCompilationJobResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateCompilationJobResponse' {Text
compilationJobArn :: Text
$sel:compilationJobArn:CreateCompilationJobResponse' :: CreateCompilationJobResponse -> Text
compilationJobArn} -> Text
compilationJobArn) (\s :: CreateCompilationJobResponse
s@CreateCompilationJobResponse' {} Text
a -> CreateCompilationJobResponse
s {$sel:compilationJobArn:CreateCompilationJobResponse' :: Text
compilationJobArn = Text
a} :: CreateCompilationJobResponse)
instance Prelude.NFData CreateCompilationJobResponse