{-# 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.FraudDetector.GetModelVersion
(
GetModelVersion (..),
newGetModelVersion,
getModelVersion_modelId,
getModelVersion_modelType,
getModelVersion_modelVersionNumber,
GetModelVersionResponse (..),
newGetModelVersionResponse,
getModelVersionResponse_status,
getModelVersionResponse_modelType,
getModelVersionResponse_modelId,
getModelVersionResponse_arn,
getModelVersionResponse_trainingDataSource,
getModelVersionResponse_externalEventsDetail,
getModelVersionResponse_ingestedEventsDetail,
getModelVersionResponse_modelVersionNumber,
getModelVersionResponse_trainingDataSchema,
getModelVersionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.FraudDetector.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetModelVersion = GetModelVersion'
{
GetModelVersion -> Text
modelId :: Prelude.Text,
GetModelVersion -> ModelTypeEnum
modelType :: ModelTypeEnum,
GetModelVersion -> Text
modelVersionNumber :: Prelude.Text
}
deriving (GetModelVersion -> GetModelVersion -> Bool
(GetModelVersion -> GetModelVersion -> Bool)
-> (GetModelVersion -> GetModelVersion -> Bool)
-> Eq GetModelVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetModelVersion -> GetModelVersion -> Bool
$c/= :: GetModelVersion -> GetModelVersion -> Bool
== :: GetModelVersion -> GetModelVersion -> Bool
$c== :: GetModelVersion -> GetModelVersion -> Bool
Prelude.Eq, ReadPrec [GetModelVersion]
ReadPrec GetModelVersion
Int -> ReadS GetModelVersion
ReadS [GetModelVersion]
(Int -> ReadS GetModelVersion)
-> ReadS [GetModelVersion]
-> ReadPrec GetModelVersion
-> ReadPrec [GetModelVersion]
-> Read GetModelVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetModelVersion]
$creadListPrec :: ReadPrec [GetModelVersion]
readPrec :: ReadPrec GetModelVersion
$creadPrec :: ReadPrec GetModelVersion
readList :: ReadS [GetModelVersion]
$creadList :: ReadS [GetModelVersion]
readsPrec :: Int -> ReadS GetModelVersion
$creadsPrec :: Int -> ReadS GetModelVersion
Prelude.Read, Int -> GetModelVersion -> ShowS
[GetModelVersion] -> ShowS
GetModelVersion -> String
(Int -> GetModelVersion -> ShowS)
-> (GetModelVersion -> String)
-> ([GetModelVersion] -> ShowS)
-> Show GetModelVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetModelVersion] -> ShowS
$cshowList :: [GetModelVersion] -> ShowS
show :: GetModelVersion -> String
$cshow :: GetModelVersion -> String
showsPrec :: Int -> GetModelVersion -> ShowS
$cshowsPrec :: Int -> GetModelVersion -> ShowS
Prelude.Show, (forall x. GetModelVersion -> Rep GetModelVersion x)
-> (forall x. Rep GetModelVersion x -> GetModelVersion)
-> Generic GetModelVersion
forall x. Rep GetModelVersion x -> GetModelVersion
forall x. GetModelVersion -> Rep GetModelVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetModelVersion x -> GetModelVersion
$cfrom :: forall x. GetModelVersion -> Rep GetModelVersion x
Prelude.Generic)
newGetModelVersion ::
Prelude.Text ->
ModelTypeEnum ->
Prelude.Text ->
GetModelVersion
newGetModelVersion :: Text -> ModelTypeEnum -> Text -> GetModelVersion
newGetModelVersion
Text
pModelId_
ModelTypeEnum
pModelType_
Text
pModelVersionNumber_ =
GetModelVersion' :: Text -> ModelTypeEnum -> Text -> GetModelVersion
GetModelVersion'
{ $sel:modelId:GetModelVersion' :: Text
modelId = Text
pModelId_,
$sel:modelType:GetModelVersion' :: ModelTypeEnum
modelType = ModelTypeEnum
pModelType_,
$sel:modelVersionNumber:GetModelVersion' :: Text
modelVersionNumber = Text
pModelVersionNumber_
}
getModelVersion_modelId :: Lens.Lens' GetModelVersion Prelude.Text
getModelVersion_modelId :: (Text -> f Text) -> GetModelVersion -> f GetModelVersion
getModelVersion_modelId = (GetModelVersion -> Text)
-> (GetModelVersion -> Text -> GetModelVersion)
-> Lens GetModelVersion GetModelVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersion' {Text
modelId :: Text
$sel:modelId:GetModelVersion' :: GetModelVersion -> Text
modelId} -> Text
modelId) (\s :: GetModelVersion
s@GetModelVersion' {} Text
a -> GetModelVersion
s {$sel:modelId:GetModelVersion' :: Text
modelId = Text
a} :: GetModelVersion)
getModelVersion_modelType :: Lens.Lens' GetModelVersion ModelTypeEnum
getModelVersion_modelType :: (ModelTypeEnum -> f ModelTypeEnum)
-> GetModelVersion -> f GetModelVersion
getModelVersion_modelType = (GetModelVersion -> ModelTypeEnum)
-> (GetModelVersion -> ModelTypeEnum -> GetModelVersion)
-> Lens GetModelVersion GetModelVersion ModelTypeEnum ModelTypeEnum
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersion' {ModelTypeEnum
modelType :: ModelTypeEnum
$sel:modelType:GetModelVersion' :: GetModelVersion -> ModelTypeEnum
modelType} -> ModelTypeEnum
modelType) (\s :: GetModelVersion
s@GetModelVersion' {} ModelTypeEnum
a -> GetModelVersion
s {$sel:modelType:GetModelVersion' :: ModelTypeEnum
modelType = ModelTypeEnum
a} :: GetModelVersion)
getModelVersion_modelVersionNumber :: Lens.Lens' GetModelVersion Prelude.Text
getModelVersion_modelVersionNumber :: (Text -> f Text) -> GetModelVersion -> f GetModelVersion
getModelVersion_modelVersionNumber = (GetModelVersion -> Text)
-> (GetModelVersion -> Text -> GetModelVersion)
-> Lens GetModelVersion GetModelVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersion' {Text
modelVersionNumber :: Text
$sel:modelVersionNumber:GetModelVersion' :: GetModelVersion -> Text
modelVersionNumber} -> Text
modelVersionNumber) (\s :: GetModelVersion
s@GetModelVersion' {} Text
a -> GetModelVersion
s {$sel:modelVersionNumber:GetModelVersion' :: Text
modelVersionNumber = Text
a} :: GetModelVersion)
instance Core.AWSRequest GetModelVersion where
type
AWSResponse GetModelVersion =
GetModelVersionResponse
request :: GetModelVersion -> Request GetModelVersion
request = Service -> GetModelVersion -> Request GetModelVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetModelVersion
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetModelVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetModelVersion))
-> Logger
-> Service
-> Proxy GetModelVersion
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetModelVersion)))
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 ModelTypeEnum
-> Maybe Text
-> Maybe Text
-> Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse
GetModelVersionResponse'
(Maybe Text
-> Maybe ModelTypeEnum
-> Maybe Text
-> Maybe Text
-> Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ModelTypeEnum
-> Maybe Text
-> Maybe Text
-> Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
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
"status")
Either
String
(Maybe ModelTypeEnum
-> Maybe Text
-> Maybe Text
-> Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
-> Either String (Maybe ModelTypeEnum)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ModelTypeEnum)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"modelType")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
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
"modelId")
Either
String
(Maybe Text
-> Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
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
"arn")
Either
String
(Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
-> Either String (Maybe TrainingDataSourceEnum)
-> Either
String
(Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe TrainingDataSourceEnum)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"trainingDataSource")
Either
String
(Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
-> Either String (Maybe ExternalEventsDetail)
-> Either
String
(Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ExternalEventsDetail)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"externalEventsDetail")
Either
String
(Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse)
-> Either String (Maybe IngestedEventsDetail)
-> Either
String
(Maybe Text
-> Maybe TrainingDataSchema -> Int -> GetModelVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe IngestedEventsDetail)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ingestedEventsDetail")
Either
String
(Maybe Text
-> Maybe TrainingDataSchema -> Int -> GetModelVersionResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe TrainingDataSchema -> Int -> GetModelVersionResponse)
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
"modelVersionNumber")
Either
String (Maybe TrainingDataSchema -> Int -> GetModelVersionResponse)
-> Either String (Maybe TrainingDataSchema)
-> Either String (Int -> GetModelVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe TrainingDataSchema)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"trainingDataSchema")
Either String (Int -> GetModelVersionResponse)
-> Either String Int -> Either String GetModelVersionResponse
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 GetModelVersion
instance Prelude.NFData GetModelVersion
instance Core.ToHeaders GetModelVersion where
toHeaders :: GetModelVersion -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetModelVersion -> 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
"AWSHawksNestServiceFacade.GetModelVersion" ::
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 GetModelVersion where
toJSON :: GetModelVersion -> Value
toJSON GetModelVersion' {Text
ModelTypeEnum
modelVersionNumber :: Text
modelType :: ModelTypeEnum
modelId :: Text
$sel:modelVersionNumber:GetModelVersion' :: GetModelVersion -> Text
$sel:modelType:GetModelVersion' :: GetModelVersion -> ModelTypeEnum
$sel:modelId:GetModelVersion' :: GetModelVersion -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"modelId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
modelId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"modelType" Text -> ModelTypeEnum -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ModelTypeEnum
modelType),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"modelVersionNumber" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
modelVersionNumber)
]
)
instance Core.ToPath GetModelVersion where
toPath :: GetModelVersion -> ByteString
toPath = ByteString -> GetModelVersion -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetModelVersion where
toQuery :: GetModelVersion -> QueryString
toQuery = QueryString -> GetModelVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetModelVersionResponse = GetModelVersionResponse'
{
GetModelVersionResponse -> Maybe Text
status :: Prelude.Maybe Prelude.Text,
GetModelVersionResponse -> Maybe ModelTypeEnum
modelType :: Prelude.Maybe ModelTypeEnum,
GetModelVersionResponse -> Maybe Text
modelId :: Prelude.Maybe Prelude.Text,
GetModelVersionResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetModelVersionResponse -> Maybe TrainingDataSourceEnum
trainingDataSource :: Prelude.Maybe TrainingDataSourceEnum,
GetModelVersionResponse -> Maybe ExternalEventsDetail
externalEventsDetail :: Prelude.Maybe ExternalEventsDetail,
GetModelVersionResponse -> Maybe IngestedEventsDetail
ingestedEventsDetail :: Prelude.Maybe IngestedEventsDetail,
GetModelVersionResponse -> Maybe Text
modelVersionNumber :: Prelude.Maybe Prelude.Text,
GetModelVersionResponse -> Maybe TrainingDataSchema
trainingDataSchema :: Prelude.Maybe TrainingDataSchema,
GetModelVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetModelVersionResponse -> GetModelVersionResponse -> Bool
(GetModelVersionResponse -> GetModelVersionResponse -> Bool)
-> (GetModelVersionResponse -> GetModelVersionResponse -> Bool)
-> Eq GetModelVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetModelVersionResponse -> GetModelVersionResponse -> Bool
$c/= :: GetModelVersionResponse -> GetModelVersionResponse -> Bool
== :: GetModelVersionResponse -> GetModelVersionResponse -> Bool
$c== :: GetModelVersionResponse -> GetModelVersionResponse -> Bool
Prelude.Eq, ReadPrec [GetModelVersionResponse]
ReadPrec GetModelVersionResponse
Int -> ReadS GetModelVersionResponse
ReadS [GetModelVersionResponse]
(Int -> ReadS GetModelVersionResponse)
-> ReadS [GetModelVersionResponse]
-> ReadPrec GetModelVersionResponse
-> ReadPrec [GetModelVersionResponse]
-> Read GetModelVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetModelVersionResponse]
$creadListPrec :: ReadPrec [GetModelVersionResponse]
readPrec :: ReadPrec GetModelVersionResponse
$creadPrec :: ReadPrec GetModelVersionResponse
readList :: ReadS [GetModelVersionResponse]
$creadList :: ReadS [GetModelVersionResponse]
readsPrec :: Int -> ReadS GetModelVersionResponse
$creadsPrec :: Int -> ReadS GetModelVersionResponse
Prelude.Read, Int -> GetModelVersionResponse -> ShowS
[GetModelVersionResponse] -> ShowS
GetModelVersionResponse -> String
(Int -> GetModelVersionResponse -> ShowS)
-> (GetModelVersionResponse -> String)
-> ([GetModelVersionResponse] -> ShowS)
-> Show GetModelVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetModelVersionResponse] -> ShowS
$cshowList :: [GetModelVersionResponse] -> ShowS
show :: GetModelVersionResponse -> String
$cshow :: GetModelVersionResponse -> String
showsPrec :: Int -> GetModelVersionResponse -> ShowS
$cshowsPrec :: Int -> GetModelVersionResponse -> ShowS
Prelude.Show, (forall x.
GetModelVersionResponse -> Rep GetModelVersionResponse x)
-> (forall x.
Rep GetModelVersionResponse x -> GetModelVersionResponse)
-> Generic GetModelVersionResponse
forall x. Rep GetModelVersionResponse x -> GetModelVersionResponse
forall x. GetModelVersionResponse -> Rep GetModelVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetModelVersionResponse x -> GetModelVersionResponse
$cfrom :: forall x. GetModelVersionResponse -> Rep GetModelVersionResponse x
Prelude.Generic)
newGetModelVersionResponse ::
Prelude.Int ->
GetModelVersionResponse
newGetModelVersionResponse :: Int -> GetModelVersionResponse
newGetModelVersionResponse Int
pHttpStatus_ =
GetModelVersionResponse' :: Maybe Text
-> Maybe ModelTypeEnum
-> Maybe Text
-> Maybe Text
-> Maybe TrainingDataSourceEnum
-> Maybe ExternalEventsDetail
-> Maybe IngestedEventsDetail
-> Maybe Text
-> Maybe TrainingDataSchema
-> Int
-> GetModelVersionResponse
GetModelVersionResponse'
{ $sel:status:GetModelVersionResponse' :: Maybe Text
status = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:modelType:GetModelVersionResponse' :: Maybe ModelTypeEnum
modelType = Maybe ModelTypeEnum
forall a. Maybe a
Prelude.Nothing,
$sel:modelId:GetModelVersionResponse' :: Maybe Text
modelId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:GetModelVersionResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:trainingDataSource:GetModelVersionResponse' :: Maybe TrainingDataSourceEnum
trainingDataSource = Maybe TrainingDataSourceEnum
forall a. Maybe a
Prelude.Nothing,
$sel:externalEventsDetail:GetModelVersionResponse' :: Maybe ExternalEventsDetail
externalEventsDetail = Maybe ExternalEventsDetail
forall a. Maybe a
Prelude.Nothing,
$sel:ingestedEventsDetail:GetModelVersionResponse' :: Maybe IngestedEventsDetail
ingestedEventsDetail = Maybe IngestedEventsDetail
forall a. Maybe a
Prelude.Nothing,
$sel:modelVersionNumber:GetModelVersionResponse' :: Maybe Text
modelVersionNumber = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:trainingDataSchema:GetModelVersionResponse' :: Maybe TrainingDataSchema
trainingDataSchema = Maybe TrainingDataSchema
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetModelVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getModelVersionResponse_status :: Lens.Lens' GetModelVersionResponse (Prelude.Maybe Prelude.Text)
getModelVersionResponse_status :: (Maybe Text -> f (Maybe Text))
-> GetModelVersionResponse -> f GetModelVersionResponse
getModelVersionResponse_status = (GetModelVersionResponse -> Maybe Text)
-> (GetModelVersionResponse
-> Maybe Text -> GetModelVersionResponse)
-> Lens
GetModelVersionResponse
GetModelVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersionResponse' {Maybe Text
status :: Maybe Text
$sel:status:GetModelVersionResponse' :: GetModelVersionResponse -> Maybe Text
status} -> Maybe Text
status) (\s :: GetModelVersionResponse
s@GetModelVersionResponse' {} Maybe Text
a -> GetModelVersionResponse
s {$sel:status:GetModelVersionResponse' :: Maybe Text
status = Maybe Text
a} :: GetModelVersionResponse)
getModelVersionResponse_modelType :: Lens.Lens' GetModelVersionResponse (Prelude.Maybe ModelTypeEnum)
getModelVersionResponse_modelType :: (Maybe ModelTypeEnum -> f (Maybe ModelTypeEnum))
-> GetModelVersionResponse -> f GetModelVersionResponse
getModelVersionResponse_modelType = (GetModelVersionResponse -> Maybe ModelTypeEnum)
-> (GetModelVersionResponse
-> Maybe ModelTypeEnum -> GetModelVersionResponse)
-> Lens
GetModelVersionResponse
GetModelVersionResponse
(Maybe ModelTypeEnum)
(Maybe ModelTypeEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersionResponse' {Maybe ModelTypeEnum
modelType :: Maybe ModelTypeEnum
$sel:modelType:GetModelVersionResponse' :: GetModelVersionResponse -> Maybe ModelTypeEnum
modelType} -> Maybe ModelTypeEnum
modelType) (\s :: GetModelVersionResponse
s@GetModelVersionResponse' {} Maybe ModelTypeEnum
a -> GetModelVersionResponse
s {$sel:modelType:GetModelVersionResponse' :: Maybe ModelTypeEnum
modelType = Maybe ModelTypeEnum
a} :: GetModelVersionResponse)
getModelVersionResponse_modelId :: Lens.Lens' GetModelVersionResponse (Prelude.Maybe Prelude.Text)
getModelVersionResponse_modelId :: (Maybe Text -> f (Maybe Text))
-> GetModelVersionResponse -> f GetModelVersionResponse
getModelVersionResponse_modelId = (GetModelVersionResponse -> Maybe Text)
-> (GetModelVersionResponse
-> Maybe Text -> GetModelVersionResponse)
-> Lens
GetModelVersionResponse
GetModelVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersionResponse' {Maybe Text
modelId :: Maybe Text
$sel:modelId:GetModelVersionResponse' :: GetModelVersionResponse -> Maybe Text
modelId} -> Maybe Text
modelId) (\s :: GetModelVersionResponse
s@GetModelVersionResponse' {} Maybe Text
a -> GetModelVersionResponse
s {$sel:modelId:GetModelVersionResponse' :: Maybe Text
modelId = Maybe Text
a} :: GetModelVersionResponse)
getModelVersionResponse_arn :: Lens.Lens' GetModelVersionResponse (Prelude.Maybe Prelude.Text)
getModelVersionResponse_arn :: (Maybe Text -> f (Maybe Text))
-> GetModelVersionResponse -> f GetModelVersionResponse
getModelVersionResponse_arn = (GetModelVersionResponse -> Maybe Text)
-> (GetModelVersionResponse
-> Maybe Text -> GetModelVersionResponse)
-> Lens
GetModelVersionResponse
GetModelVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersionResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetModelVersionResponse' :: GetModelVersionResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetModelVersionResponse
s@GetModelVersionResponse' {} Maybe Text
a -> GetModelVersionResponse
s {$sel:arn:GetModelVersionResponse' :: Maybe Text
arn = Maybe Text
a} :: GetModelVersionResponse)
getModelVersionResponse_trainingDataSource :: Lens.Lens' GetModelVersionResponse (Prelude.Maybe TrainingDataSourceEnum)
getModelVersionResponse_trainingDataSource :: (Maybe TrainingDataSourceEnum -> f (Maybe TrainingDataSourceEnum))
-> GetModelVersionResponse -> f GetModelVersionResponse
getModelVersionResponse_trainingDataSource = (GetModelVersionResponse -> Maybe TrainingDataSourceEnum)
-> (GetModelVersionResponse
-> Maybe TrainingDataSourceEnum -> GetModelVersionResponse)
-> Lens
GetModelVersionResponse
GetModelVersionResponse
(Maybe TrainingDataSourceEnum)
(Maybe TrainingDataSourceEnum)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersionResponse' {Maybe TrainingDataSourceEnum
trainingDataSource :: Maybe TrainingDataSourceEnum
$sel:trainingDataSource:GetModelVersionResponse' :: GetModelVersionResponse -> Maybe TrainingDataSourceEnum
trainingDataSource} -> Maybe TrainingDataSourceEnum
trainingDataSource) (\s :: GetModelVersionResponse
s@GetModelVersionResponse' {} Maybe TrainingDataSourceEnum
a -> GetModelVersionResponse
s {$sel:trainingDataSource:GetModelVersionResponse' :: Maybe TrainingDataSourceEnum
trainingDataSource = Maybe TrainingDataSourceEnum
a} :: GetModelVersionResponse)
getModelVersionResponse_externalEventsDetail :: Lens.Lens' GetModelVersionResponse (Prelude.Maybe ExternalEventsDetail)
getModelVersionResponse_externalEventsDetail :: (Maybe ExternalEventsDetail -> f (Maybe ExternalEventsDetail))
-> GetModelVersionResponse -> f GetModelVersionResponse
getModelVersionResponse_externalEventsDetail = (GetModelVersionResponse -> Maybe ExternalEventsDetail)
-> (GetModelVersionResponse
-> Maybe ExternalEventsDetail -> GetModelVersionResponse)
-> Lens
GetModelVersionResponse
GetModelVersionResponse
(Maybe ExternalEventsDetail)
(Maybe ExternalEventsDetail)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersionResponse' {Maybe ExternalEventsDetail
externalEventsDetail :: Maybe ExternalEventsDetail
$sel:externalEventsDetail:GetModelVersionResponse' :: GetModelVersionResponse -> Maybe ExternalEventsDetail
externalEventsDetail} -> Maybe ExternalEventsDetail
externalEventsDetail) (\s :: GetModelVersionResponse
s@GetModelVersionResponse' {} Maybe ExternalEventsDetail
a -> GetModelVersionResponse
s {$sel:externalEventsDetail:GetModelVersionResponse' :: Maybe ExternalEventsDetail
externalEventsDetail = Maybe ExternalEventsDetail
a} :: GetModelVersionResponse)
getModelVersionResponse_ingestedEventsDetail :: Lens.Lens' GetModelVersionResponse (Prelude.Maybe IngestedEventsDetail)
getModelVersionResponse_ingestedEventsDetail :: (Maybe IngestedEventsDetail -> f (Maybe IngestedEventsDetail))
-> GetModelVersionResponse -> f GetModelVersionResponse
getModelVersionResponse_ingestedEventsDetail = (GetModelVersionResponse -> Maybe IngestedEventsDetail)
-> (GetModelVersionResponse
-> Maybe IngestedEventsDetail -> GetModelVersionResponse)
-> Lens
GetModelVersionResponse
GetModelVersionResponse
(Maybe IngestedEventsDetail)
(Maybe IngestedEventsDetail)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersionResponse' {Maybe IngestedEventsDetail
ingestedEventsDetail :: Maybe IngestedEventsDetail
$sel:ingestedEventsDetail:GetModelVersionResponse' :: GetModelVersionResponse -> Maybe IngestedEventsDetail
ingestedEventsDetail} -> Maybe IngestedEventsDetail
ingestedEventsDetail) (\s :: GetModelVersionResponse
s@GetModelVersionResponse' {} Maybe IngestedEventsDetail
a -> GetModelVersionResponse
s {$sel:ingestedEventsDetail:GetModelVersionResponse' :: Maybe IngestedEventsDetail
ingestedEventsDetail = Maybe IngestedEventsDetail
a} :: GetModelVersionResponse)
getModelVersionResponse_modelVersionNumber :: Lens.Lens' GetModelVersionResponse (Prelude.Maybe Prelude.Text)
getModelVersionResponse_modelVersionNumber :: (Maybe Text -> f (Maybe Text))
-> GetModelVersionResponse -> f GetModelVersionResponse
getModelVersionResponse_modelVersionNumber = (GetModelVersionResponse -> Maybe Text)
-> (GetModelVersionResponse
-> Maybe Text -> GetModelVersionResponse)
-> Lens
GetModelVersionResponse
GetModelVersionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersionResponse' {Maybe Text
modelVersionNumber :: Maybe Text
$sel:modelVersionNumber:GetModelVersionResponse' :: GetModelVersionResponse -> Maybe Text
modelVersionNumber} -> Maybe Text
modelVersionNumber) (\s :: GetModelVersionResponse
s@GetModelVersionResponse' {} Maybe Text
a -> GetModelVersionResponse
s {$sel:modelVersionNumber:GetModelVersionResponse' :: Maybe Text
modelVersionNumber = Maybe Text
a} :: GetModelVersionResponse)
getModelVersionResponse_trainingDataSchema :: Lens.Lens' GetModelVersionResponse (Prelude.Maybe TrainingDataSchema)
getModelVersionResponse_trainingDataSchema :: (Maybe TrainingDataSchema -> f (Maybe TrainingDataSchema))
-> GetModelVersionResponse -> f GetModelVersionResponse
getModelVersionResponse_trainingDataSchema = (GetModelVersionResponse -> Maybe TrainingDataSchema)
-> (GetModelVersionResponse
-> Maybe TrainingDataSchema -> GetModelVersionResponse)
-> Lens
GetModelVersionResponse
GetModelVersionResponse
(Maybe TrainingDataSchema)
(Maybe TrainingDataSchema)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersionResponse' {Maybe TrainingDataSchema
trainingDataSchema :: Maybe TrainingDataSchema
$sel:trainingDataSchema:GetModelVersionResponse' :: GetModelVersionResponse -> Maybe TrainingDataSchema
trainingDataSchema} -> Maybe TrainingDataSchema
trainingDataSchema) (\s :: GetModelVersionResponse
s@GetModelVersionResponse' {} Maybe TrainingDataSchema
a -> GetModelVersionResponse
s {$sel:trainingDataSchema:GetModelVersionResponse' :: Maybe TrainingDataSchema
trainingDataSchema = Maybe TrainingDataSchema
a} :: GetModelVersionResponse)
getModelVersionResponse_httpStatus :: Lens.Lens' GetModelVersionResponse Prelude.Int
getModelVersionResponse_httpStatus :: (Int -> f Int)
-> GetModelVersionResponse -> f GetModelVersionResponse
getModelVersionResponse_httpStatus = (GetModelVersionResponse -> Int)
-> (GetModelVersionResponse -> Int -> GetModelVersionResponse)
-> Lens GetModelVersionResponse GetModelVersionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetModelVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetModelVersionResponse' :: GetModelVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetModelVersionResponse
s@GetModelVersionResponse' {} Int
a -> GetModelVersionResponse
s {$sel:httpStatus:GetModelVersionResponse' :: Int
httpStatus = Int
a} :: GetModelVersionResponse)
instance Prelude.NFData GetModelVersionResponse