{-# 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.VoiceId.StartSpeakerEnrollmentJob
(
StartSpeakerEnrollmentJob (..),
newStartSpeakerEnrollmentJob,
startSpeakerEnrollmentJob_clientToken,
startSpeakerEnrollmentJob_jobName,
startSpeakerEnrollmentJob_enrollmentConfig,
startSpeakerEnrollmentJob_dataAccessRoleArn,
startSpeakerEnrollmentJob_domainId,
startSpeakerEnrollmentJob_inputDataConfig,
startSpeakerEnrollmentJob_outputDataConfig,
StartSpeakerEnrollmentJobResponse (..),
newStartSpeakerEnrollmentJobResponse,
startSpeakerEnrollmentJobResponse_job,
startSpeakerEnrollmentJobResponse_httpStatus,
)
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.VoiceId.Types
data StartSpeakerEnrollmentJob = StartSpeakerEnrollmentJob'
{
StartSpeakerEnrollmentJob -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
StartSpeakerEnrollmentJob -> Maybe (Sensitive Text)
jobName :: Prelude.Maybe (Core.Sensitive Prelude.Text),
StartSpeakerEnrollmentJob -> Maybe EnrollmentConfig
enrollmentConfig :: Prelude.Maybe EnrollmentConfig,
StartSpeakerEnrollmentJob -> Text
dataAccessRoleArn :: Prelude.Text,
StartSpeakerEnrollmentJob -> Text
domainId :: Prelude.Text,
StartSpeakerEnrollmentJob -> InputDataConfig
inputDataConfig :: InputDataConfig,
StartSpeakerEnrollmentJob -> OutputDataConfig
outputDataConfig :: OutputDataConfig
}
deriving (StartSpeakerEnrollmentJob -> StartSpeakerEnrollmentJob -> Bool
(StartSpeakerEnrollmentJob -> StartSpeakerEnrollmentJob -> Bool)
-> (StartSpeakerEnrollmentJob -> StartSpeakerEnrollmentJob -> Bool)
-> Eq StartSpeakerEnrollmentJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartSpeakerEnrollmentJob -> StartSpeakerEnrollmentJob -> Bool
$c/= :: StartSpeakerEnrollmentJob -> StartSpeakerEnrollmentJob -> Bool
== :: StartSpeakerEnrollmentJob -> StartSpeakerEnrollmentJob -> Bool
$c== :: StartSpeakerEnrollmentJob -> StartSpeakerEnrollmentJob -> Bool
Prelude.Eq, Int -> StartSpeakerEnrollmentJob -> ShowS
[StartSpeakerEnrollmentJob] -> ShowS
StartSpeakerEnrollmentJob -> String
(Int -> StartSpeakerEnrollmentJob -> ShowS)
-> (StartSpeakerEnrollmentJob -> String)
-> ([StartSpeakerEnrollmentJob] -> ShowS)
-> Show StartSpeakerEnrollmentJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartSpeakerEnrollmentJob] -> ShowS
$cshowList :: [StartSpeakerEnrollmentJob] -> ShowS
show :: StartSpeakerEnrollmentJob -> String
$cshow :: StartSpeakerEnrollmentJob -> String
showsPrec :: Int -> StartSpeakerEnrollmentJob -> ShowS
$cshowsPrec :: Int -> StartSpeakerEnrollmentJob -> ShowS
Prelude.Show, (forall x.
StartSpeakerEnrollmentJob -> Rep StartSpeakerEnrollmentJob x)
-> (forall x.
Rep StartSpeakerEnrollmentJob x -> StartSpeakerEnrollmentJob)
-> Generic StartSpeakerEnrollmentJob
forall x.
Rep StartSpeakerEnrollmentJob x -> StartSpeakerEnrollmentJob
forall x.
StartSpeakerEnrollmentJob -> Rep StartSpeakerEnrollmentJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartSpeakerEnrollmentJob x -> StartSpeakerEnrollmentJob
$cfrom :: forall x.
StartSpeakerEnrollmentJob -> Rep StartSpeakerEnrollmentJob x
Prelude.Generic)
newStartSpeakerEnrollmentJob ::
Prelude.Text ->
Prelude.Text ->
InputDataConfig ->
OutputDataConfig ->
StartSpeakerEnrollmentJob
newStartSpeakerEnrollmentJob :: Text
-> Text
-> InputDataConfig
-> OutputDataConfig
-> StartSpeakerEnrollmentJob
newStartSpeakerEnrollmentJob
Text
pDataAccessRoleArn_
Text
pDomainId_
InputDataConfig
pInputDataConfig_
OutputDataConfig
pOutputDataConfig_ =
StartSpeakerEnrollmentJob' :: Maybe Text
-> Maybe (Sensitive Text)
-> Maybe EnrollmentConfig
-> Text
-> Text
-> InputDataConfig
-> OutputDataConfig
-> StartSpeakerEnrollmentJob
StartSpeakerEnrollmentJob'
{ $sel:clientToken:StartSpeakerEnrollmentJob' :: Maybe Text
clientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobName:StartSpeakerEnrollmentJob' :: Maybe (Sensitive Text)
jobName = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:enrollmentConfig:StartSpeakerEnrollmentJob' :: Maybe EnrollmentConfig
enrollmentConfig = Maybe EnrollmentConfig
forall a. Maybe a
Prelude.Nothing,
$sel:dataAccessRoleArn:StartSpeakerEnrollmentJob' :: Text
dataAccessRoleArn = Text
pDataAccessRoleArn_,
$sel:domainId:StartSpeakerEnrollmentJob' :: Text
domainId = Text
pDomainId_,
$sel:inputDataConfig:StartSpeakerEnrollmentJob' :: InputDataConfig
inputDataConfig = InputDataConfig
pInputDataConfig_,
$sel:outputDataConfig:StartSpeakerEnrollmentJob' :: OutputDataConfig
outputDataConfig = OutputDataConfig
pOutputDataConfig_
}
startSpeakerEnrollmentJob_clientToken :: Lens.Lens' StartSpeakerEnrollmentJob (Prelude.Maybe Prelude.Text)
startSpeakerEnrollmentJob_clientToken :: (Maybe Text -> f (Maybe Text))
-> StartSpeakerEnrollmentJob -> f StartSpeakerEnrollmentJob
startSpeakerEnrollmentJob_clientToken = (StartSpeakerEnrollmentJob -> Maybe Text)
-> (StartSpeakerEnrollmentJob
-> Maybe Text -> StartSpeakerEnrollmentJob)
-> Lens
StartSpeakerEnrollmentJob
StartSpeakerEnrollmentJob
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSpeakerEnrollmentJob' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: StartSpeakerEnrollmentJob
s@StartSpeakerEnrollmentJob' {} Maybe Text
a -> StartSpeakerEnrollmentJob
s {$sel:clientToken:StartSpeakerEnrollmentJob' :: Maybe Text
clientToken = Maybe Text
a} :: StartSpeakerEnrollmentJob)
startSpeakerEnrollmentJob_jobName :: Lens.Lens' StartSpeakerEnrollmentJob (Prelude.Maybe Prelude.Text)
startSpeakerEnrollmentJob_jobName :: (Maybe Text -> f (Maybe Text))
-> StartSpeakerEnrollmentJob -> f StartSpeakerEnrollmentJob
startSpeakerEnrollmentJob_jobName = (StartSpeakerEnrollmentJob -> Maybe (Sensitive Text))
-> (StartSpeakerEnrollmentJob
-> Maybe (Sensitive Text) -> StartSpeakerEnrollmentJob)
-> Lens
StartSpeakerEnrollmentJob
StartSpeakerEnrollmentJob
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSpeakerEnrollmentJob' {Maybe (Sensitive Text)
jobName :: Maybe (Sensitive Text)
$sel:jobName:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> Maybe (Sensitive Text)
jobName} -> Maybe (Sensitive Text)
jobName) (\s :: StartSpeakerEnrollmentJob
s@StartSpeakerEnrollmentJob' {} Maybe (Sensitive Text)
a -> StartSpeakerEnrollmentJob
s {$sel:jobName:StartSpeakerEnrollmentJob' :: Maybe (Sensitive Text)
jobName = Maybe (Sensitive Text)
a} :: StartSpeakerEnrollmentJob) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> StartSpeakerEnrollmentJob -> f StartSpeakerEnrollmentJob)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> StartSpeakerEnrollmentJob
-> f StartSpeakerEnrollmentJob
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe 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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
startSpeakerEnrollmentJob_enrollmentConfig :: Lens.Lens' StartSpeakerEnrollmentJob (Prelude.Maybe EnrollmentConfig)
startSpeakerEnrollmentJob_enrollmentConfig :: (Maybe EnrollmentConfig -> f (Maybe EnrollmentConfig))
-> StartSpeakerEnrollmentJob -> f StartSpeakerEnrollmentJob
startSpeakerEnrollmentJob_enrollmentConfig = (StartSpeakerEnrollmentJob -> Maybe EnrollmentConfig)
-> (StartSpeakerEnrollmentJob
-> Maybe EnrollmentConfig -> StartSpeakerEnrollmentJob)
-> Lens
StartSpeakerEnrollmentJob
StartSpeakerEnrollmentJob
(Maybe EnrollmentConfig)
(Maybe EnrollmentConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSpeakerEnrollmentJob' {Maybe EnrollmentConfig
enrollmentConfig :: Maybe EnrollmentConfig
$sel:enrollmentConfig:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> Maybe EnrollmentConfig
enrollmentConfig} -> Maybe EnrollmentConfig
enrollmentConfig) (\s :: StartSpeakerEnrollmentJob
s@StartSpeakerEnrollmentJob' {} Maybe EnrollmentConfig
a -> StartSpeakerEnrollmentJob
s {$sel:enrollmentConfig:StartSpeakerEnrollmentJob' :: Maybe EnrollmentConfig
enrollmentConfig = Maybe EnrollmentConfig
a} :: StartSpeakerEnrollmentJob)
startSpeakerEnrollmentJob_dataAccessRoleArn :: Lens.Lens' StartSpeakerEnrollmentJob Prelude.Text
startSpeakerEnrollmentJob_dataAccessRoleArn :: (Text -> f Text)
-> StartSpeakerEnrollmentJob -> f StartSpeakerEnrollmentJob
startSpeakerEnrollmentJob_dataAccessRoleArn = (StartSpeakerEnrollmentJob -> Text)
-> (StartSpeakerEnrollmentJob -> Text -> StartSpeakerEnrollmentJob)
-> Lens
StartSpeakerEnrollmentJob StartSpeakerEnrollmentJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSpeakerEnrollmentJob' {Text
dataAccessRoleArn :: Text
$sel:dataAccessRoleArn:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> Text
dataAccessRoleArn} -> Text
dataAccessRoleArn) (\s :: StartSpeakerEnrollmentJob
s@StartSpeakerEnrollmentJob' {} Text
a -> StartSpeakerEnrollmentJob
s {$sel:dataAccessRoleArn:StartSpeakerEnrollmentJob' :: Text
dataAccessRoleArn = Text
a} :: StartSpeakerEnrollmentJob)
startSpeakerEnrollmentJob_domainId :: Lens.Lens' StartSpeakerEnrollmentJob Prelude.Text
startSpeakerEnrollmentJob_domainId :: (Text -> f Text)
-> StartSpeakerEnrollmentJob -> f StartSpeakerEnrollmentJob
startSpeakerEnrollmentJob_domainId = (StartSpeakerEnrollmentJob -> Text)
-> (StartSpeakerEnrollmentJob -> Text -> StartSpeakerEnrollmentJob)
-> Lens
StartSpeakerEnrollmentJob StartSpeakerEnrollmentJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSpeakerEnrollmentJob' {Text
domainId :: Text
$sel:domainId:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> Text
domainId} -> Text
domainId) (\s :: StartSpeakerEnrollmentJob
s@StartSpeakerEnrollmentJob' {} Text
a -> StartSpeakerEnrollmentJob
s {$sel:domainId:StartSpeakerEnrollmentJob' :: Text
domainId = Text
a} :: StartSpeakerEnrollmentJob)
startSpeakerEnrollmentJob_inputDataConfig :: Lens.Lens' StartSpeakerEnrollmentJob InputDataConfig
startSpeakerEnrollmentJob_inputDataConfig :: (InputDataConfig -> f InputDataConfig)
-> StartSpeakerEnrollmentJob -> f StartSpeakerEnrollmentJob
startSpeakerEnrollmentJob_inputDataConfig = (StartSpeakerEnrollmentJob -> InputDataConfig)
-> (StartSpeakerEnrollmentJob
-> InputDataConfig -> StartSpeakerEnrollmentJob)
-> Lens
StartSpeakerEnrollmentJob
StartSpeakerEnrollmentJob
InputDataConfig
InputDataConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSpeakerEnrollmentJob' {InputDataConfig
inputDataConfig :: InputDataConfig
$sel:inputDataConfig:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> InputDataConfig
inputDataConfig} -> InputDataConfig
inputDataConfig) (\s :: StartSpeakerEnrollmentJob
s@StartSpeakerEnrollmentJob' {} InputDataConfig
a -> StartSpeakerEnrollmentJob
s {$sel:inputDataConfig:StartSpeakerEnrollmentJob' :: InputDataConfig
inputDataConfig = InputDataConfig
a} :: StartSpeakerEnrollmentJob)
startSpeakerEnrollmentJob_outputDataConfig :: Lens.Lens' StartSpeakerEnrollmentJob OutputDataConfig
startSpeakerEnrollmentJob_outputDataConfig :: (OutputDataConfig -> f OutputDataConfig)
-> StartSpeakerEnrollmentJob -> f StartSpeakerEnrollmentJob
startSpeakerEnrollmentJob_outputDataConfig = (StartSpeakerEnrollmentJob -> OutputDataConfig)
-> (StartSpeakerEnrollmentJob
-> OutputDataConfig -> StartSpeakerEnrollmentJob)
-> Lens
StartSpeakerEnrollmentJob
StartSpeakerEnrollmentJob
OutputDataConfig
OutputDataConfig
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSpeakerEnrollmentJob' {OutputDataConfig
outputDataConfig :: OutputDataConfig
$sel:outputDataConfig:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> OutputDataConfig
outputDataConfig} -> OutputDataConfig
outputDataConfig) (\s :: StartSpeakerEnrollmentJob
s@StartSpeakerEnrollmentJob' {} OutputDataConfig
a -> StartSpeakerEnrollmentJob
s {$sel:outputDataConfig:StartSpeakerEnrollmentJob' :: OutputDataConfig
outputDataConfig = OutputDataConfig
a} :: StartSpeakerEnrollmentJob)
instance Core.AWSRequest StartSpeakerEnrollmentJob where
type
AWSResponse StartSpeakerEnrollmentJob =
StartSpeakerEnrollmentJobResponse
request :: StartSpeakerEnrollmentJob -> Request StartSpeakerEnrollmentJob
request = Service
-> StartSpeakerEnrollmentJob -> Request StartSpeakerEnrollmentJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartSpeakerEnrollmentJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartSpeakerEnrollmentJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartSpeakerEnrollmentJob))
-> Logger
-> Service
-> Proxy StartSpeakerEnrollmentJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartSpeakerEnrollmentJob)))
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 SpeakerEnrollmentJob
-> Int -> StartSpeakerEnrollmentJobResponse
StartSpeakerEnrollmentJobResponse'
(Maybe SpeakerEnrollmentJob
-> Int -> StartSpeakerEnrollmentJobResponse)
-> Either String (Maybe SpeakerEnrollmentJob)
-> Either String (Int -> StartSpeakerEnrollmentJobResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe SpeakerEnrollmentJob)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Job")
Either String (Int -> StartSpeakerEnrollmentJobResponse)
-> Either String Int
-> Either String StartSpeakerEnrollmentJobResponse
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 StartSpeakerEnrollmentJob
instance Prelude.NFData StartSpeakerEnrollmentJob
instance Core.ToHeaders StartSpeakerEnrollmentJob where
toHeaders :: StartSpeakerEnrollmentJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartSpeakerEnrollmentJob -> 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
"VoiceID.StartSpeakerEnrollmentJob" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON StartSpeakerEnrollmentJob where
toJSON :: StartSpeakerEnrollmentJob -> Value
toJSON StartSpeakerEnrollmentJob' {Maybe Text
Maybe (Sensitive Text)
Maybe EnrollmentConfig
Text
InputDataConfig
OutputDataConfig
outputDataConfig :: OutputDataConfig
inputDataConfig :: InputDataConfig
domainId :: Text
dataAccessRoleArn :: Text
enrollmentConfig :: Maybe EnrollmentConfig
jobName :: Maybe (Sensitive Text)
clientToken :: Maybe Text
$sel:outputDataConfig:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> OutputDataConfig
$sel:inputDataConfig:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> InputDataConfig
$sel:domainId:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> Text
$sel:dataAccessRoleArn:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> Text
$sel:enrollmentConfig:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> Maybe EnrollmentConfig
$sel:jobName:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> Maybe (Sensitive Text)
$sel:clientToken:StartSpeakerEnrollmentJob' :: StartSpeakerEnrollmentJob -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ClientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
clientToken,
(Text
"JobName" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
jobName,
(Text
"EnrollmentConfig" Text -> EnrollmentConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(EnrollmentConfig -> Pair) -> Maybe EnrollmentConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EnrollmentConfig
enrollmentConfig,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"DataAccessRoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
dataAccessRoleArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DomainId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domainId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"InputDataConfig" Text -> InputDataConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= InputDataConfig
inputDataConfig),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"OutputDataConfig" Text -> OutputDataConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= OutputDataConfig
outputDataConfig)
]
)
instance Core.ToPath StartSpeakerEnrollmentJob where
toPath :: StartSpeakerEnrollmentJob -> ByteString
toPath = ByteString -> StartSpeakerEnrollmentJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery StartSpeakerEnrollmentJob where
toQuery :: StartSpeakerEnrollmentJob -> QueryString
toQuery = QueryString -> StartSpeakerEnrollmentJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartSpeakerEnrollmentJobResponse = StartSpeakerEnrollmentJobResponse'
{
StartSpeakerEnrollmentJobResponse -> Maybe SpeakerEnrollmentJob
job :: Prelude.Maybe SpeakerEnrollmentJob,
StartSpeakerEnrollmentJobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartSpeakerEnrollmentJobResponse
-> StartSpeakerEnrollmentJobResponse -> Bool
(StartSpeakerEnrollmentJobResponse
-> StartSpeakerEnrollmentJobResponse -> Bool)
-> (StartSpeakerEnrollmentJobResponse
-> StartSpeakerEnrollmentJobResponse -> Bool)
-> Eq StartSpeakerEnrollmentJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartSpeakerEnrollmentJobResponse
-> StartSpeakerEnrollmentJobResponse -> Bool
$c/= :: StartSpeakerEnrollmentJobResponse
-> StartSpeakerEnrollmentJobResponse -> Bool
== :: StartSpeakerEnrollmentJobResponse
-> StartSpeakerEnrollmentJobResponse -> Bool
$c== :: StartSpeakerEnrollmentJobResponse
-> StartSpeakerEnrollmentJobResponse -> Bool
Prelude.Eq, Int -> StartSpeakerEnrollmentJobResponse -> ShowS
[StartSpeakerEnrollmentJobResponse] -> ShowS
StartSpeakerEnrollmentJobResponse -> String
(Int -> StartSpeakerEnrollmentJobResponse -> ShowS)
-> (StartSpeakerEnrollmentJobResponse -> String)
-> ([StartSpeakerEnrollmentJobResponse] -> ShowS)
-> Show StartSpeakerEnrollmentJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartSpeakerEnrollmentJobResponse] -> ShowS
$cshowList :: [StartSpeakerEnrollmentJobResponse] -> ShowS
show :: StartSpeakerEnrollmentJobResponse -> String
$cshow :: StartSpeakerEnrollmentJobResponse -> String
showsPrec :: Int -> StartSpeakerEnrollmentJobResponse -> ShowS
$cshowsPrec :: Int -> StartSpeakerEnrollmentJobResponse -> ShowS
Prelude.Show, (forall x.
StartSpeakerEnrollmentJobResponse
-> Rep StartSpeakerEnrollmentJobResponse x)
-> (forall x.
Rep StartSpeakerEnrollmentJobResponse x
-> StartSpeakerEnrollmentJobResponse)
-> Generic StartSpeakerEnrollmentJobResponse
forall x.
Rep StartSpeakerEnrollmentJobResponse x
-> StartSpeakerEnrollmentJobResponse
forall x.
StartSpeakerEnrollmentJobResponse
-> Rep StartSpeakerEnrollmentJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartSpeakerEnrollmentJobResponse x
-> StartSpeakerEnrollmentJobResponse
$cfrom :: forall x.
StartSpeakerEnrollmentJobResponse
-> Rep StartSpeakerEnrollmentJobResponse x
Prelude.Generic)
newStartSpeakerEnrollmentJobResponse ::
Prelude.Int ->
StartSpeakerEnrollmentJobResponse
newStartSpeakerEnrollmentJobResponse :: Int -> StartSpeakerEnrollmentJobResponse
newStartSpeakerEnrollmentJobResponse Int
pHttpStatus_ =
StartSpeakerEnrollmentJobResponse' :: Maybe SpeakerEnrollmentJob
-> Int -> StartSpeakerEnrollmentJobResponse
StartSpeakerEnrollmentJobResponse'
{ $sel:job:StartSpeakerEnrollmentJobResponse' :: Maybe SpeakerEnrollmentJob
job =
Maybe SpeakerEnrollmentJob
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartSpeakerEnrollmentJobResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startSpeakerEnrollmentJobResponse_job :: Lens.Lens' StartSpeakerEnrollmentJobResponse (Prelude.Maybe SpeakerEnrollmentJob)
startSpeakerEnrollmentJobResponse_job :: (Maybe SpeakerEnrollmentJob -> f (Maybe SpeakerEnrollmentJob))
-> StartSpeakerEnrollmentJobResponse
-> f StartSpeakerEnrollmentJobResponse
startSpeakerEnrollmentJobResponse_job = (StartSpeakerEnrollmentJobResponse -> Maybe SpeakerEnrollmentJob)
-> (StartSpeakerEnrollmentJobResponse
-> Maybe SpeakerEnrollmentJob -> StartSpeakerEnrollmentJobResponse)
-> Lens
StartSpeakerEnrollmentJobResponse
StartSpeakerEnrollmentJobResponse
(Maybe SpeakerEnrollmentJob)
(Maybe SpeakerEnrollmentJob)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSpeakerEnrollmentJobResponse' {Maybe SpeakerEnrollmentJob
job :: Maybe SpeakerEnrollmentJob
$sel:job:StartSpeakerEnrollmentJobResponse' :: StartSpeakerEnrollmentJobResponse -> Maybe SpeakerEnrollmentJob
job} -> Maybe SpeakerEnrollmentJob
job) (\s :: StartSpeakerEnrollmentJobResponse
s@StartSpeakerEnrollmentJobResponse' {} Maybe SpeakerEnrollmentJob
a -> StartSpeakerEnrollmentJobResponse
s {$sel:job:StartSpeakerEnrollmentJobResponse' :: Maybe SpeakerEnrollmentJob
job = Maybe SpeakerEnrollmentJob
a} :: StartSpeakerEnrollmentJobResponse)
startSpeakerEnrollmentJobResponse_httpStatus :: Lens.Lens' StartSpeakerEnrollmentJobResponse Prelude.Int
startSpeakerEnrollmentJobResponse_httpStatus :: (Int -> f Int)
-> StartSpeakerEnrollmentJobResponse
-> f StartSpeakerEnrollmentJobResponse
startSpeakerEnrollmentJobResponse_httpStatus = (StartSpeakerEnrollmentJobResponse -> Int)
-> (StartSpeakerEnrollmentJobResponse
-> Int -> StartSpeakerEnrollmentJobResponse)
-> Lens
StartSpeakerEnrollmentJobResponse
StartSpeakerEnrollmentJobResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartSpeakerEnrollmentJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartSpeakerEnrollmentJobResponse' :: StartSpeakerEnrollmentJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartSpeakerEnrollmentJobResponse
s@StartSpeakerEnrollmentJobResponse' {} Int
a -> StartSpeakerEnrollmentJobResponse
s {$sel:httpStatus:StartSpeakerEnrollmentJobResponse' :: Int
httpStatus = Int
a} :: StartSpeakerEnrollmentJobResponse)
instance
Prelude.NFData
StartSpeakerEnrollmentJobResponse