{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.SageMaker.DescribeTrialComponent
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Provides a list of a trials component\'s properties.
module Amazonka.SageMaker.DescribeTrialComponent
  ( -- * Creating a Request
    DescribeTrialComponent (..),
    newDescribeTrialComponent,

    -- * Request Lenses
    describeTrialComponent_trialComponentName,

    -- * Destructuring the Response
    DescribeTrialComponentResponse (..),
    newDescribeTrialComponentResponse,

    -- * Response Lenses
    describeTrialComponentResponse_createdBy,
    describeTrialComponentResponse_creationTime,
    describeTrialComponentResponse_displayName,
    describeTrialComponentResponse_endTime,
    describeTrialComponentResponse_inputArtifacts,
    describeTrialComponentResponse_lastModifiedBy,
    describeTrialComponentResponse_lastModifiedTime,
    describeTrialComponentResponse_lineageGroupArn,
    describeTrialComponentResponse_metadataProperties,
    describeTrialComponentResponse_metrics,
    describeTrialComponentResponse_outputArtifacts,
    describeTrialComponentResponse_parameters,
    describeTrialComponentResponse_source,
    describeTrialComponentResponse_sources,
    describeTrialComponentResponse_startTime,
    describeTrialComponentResponse_status,
    describeTrialComponentResponse_trialComponentArn,
    describeTrialComponentResponse_trialComponentName,
    describeTrialComponentResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SageMaker.Types

-- | /See:/ 'newDescribeTrialComponent' smart constructor.
data DescribeTrialComponent = DescribeTrialComponent'
  { -- | The name of the trial component to describe.
    DescribeTrialComponent -> Text
trialComponentName :: Prelude.Text
  }
  deriving (DescribeTrialComponent -> DescribeTrialComponent -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTrialComponent -> DescribeTrialComponent -> Bool
$c/= :: DescribeTrialComponent -> DescribeTrialComponent -> Bool
== :: DescribeTrialComponent -> DescribeTrialComponent -> Bool
$c== :: DescribeTrialComponent -> DescribeTrialComponent -> Bool
Prelude.Eq, ReadPrec [DescribeTrialComponent]
ReadPrec DescribeTrialComponent
Int -> ReadS DescribeTrialComponent
ReadS [DescribeTrialComponent]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTrialComponent]
$creadListPrec :: ReadPrec [DescribeTrialComponent]
readPrec :: ReadPrec DescribeTrialComponent
$creadPrec :: ReadPrec DescribeTrialComponent
readList :: ReadS [DescribeTrialComponent]
$creadList :: ReadS [DescribeTrialComponent]
readsPrec :: Int -> ReadS DescribeTrialComponent
$creadsPrec :: Int -> ReadS DescribeTrialComponent
Prelude.Read, Int -> DescribeTrialComponent -> ShowS
[DescribeTrialComponent] -> ShowS
DescribeTrialComponent -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTrialComponent] -> ShowS
$cshowList :: [DescribeTrialComponent] -> ShowS
show :: DescribeTrialComponent -> String
$cshow :: DescribeTrialComponent -> String
showsPrec :: Int -> DescribeTrialComponent -> ShowS
$cshowsPrec :: Int -> DescribeTrialComponent -> ShowS
Prelude.Show, forall x. Rep DescribeTrialComponent x -> DescribeTrialComponent
forall x. DescribeTrialComponent -> Rep DescribeTrialComponent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeTrialComponent x -> DescribeTrialComponent
$cfrom :: forall x. DescribeTrialComponent -> Rep DescribeTrialComponent x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTrialComponent' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'trialComponentName', 'describeTrialComponent_trialComponentName' - The name of the trial component to describe.
newDescribeTrialComponent ::
  -- | 'trialComponentName'
  Prelude.Text ->
  DescribeTrialComponent
newDescribeTrialComponent :: Text -> DescribeTrialComponent
newDescribeTrialComponent Text
pTrialComponentName_ =
  DescribeTrialComponent'
    { $sel:trialComponentName:DescribeTrialComponent' :: Text
trialComponentName =
        Text
pTrialComponentName_
    }

-- | The name of the trial component to describe.
describeTrialComponent_trialComponentName :: Lens.Lens' DescribeTrialComponent Prelude.Text
describeTrialComponent_trialComponentName :: Lens' DescribeTrialComponent Text
describeTrialComponent_trialComponentName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponent' {Text
trialComponentName :: Text
$sel:trialComponentName:DescribeTrialComponent' :: DescribeTrialComponent -> Text
trialComponentName} -> Text
trialComponentName) (\s :: DescribeTrialComponent
s@DescribeTrialComponent' {} Text
a -> DescribeTrialComponent
s {$sel:trialComponentName:DescribeTrialComponent' :: Text
trialComponentName = Text
a} :: DescribeTrialComponent)

instance Core.AWSRequest DescribeTrialComponent where
  type
    AWSResponse DescribeTrialComponent =
      DescribeTrialComponentResponse
  request :: (Service -> Service)
-> DescribeTrialComponent -> Request DescribeTrialComponent
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeTrialComponent
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeTrialComponent)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe UserContext
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe (HashMap Text TrialComponentArtifact)
-> Maybe UserContext
-> Maybe POSIX
-> Maybe Text
-> Maybe MetadataProperties
-> Maybe [TrialComponentMetricSummary]
-> Maybe (HashMap Text TrialComponentArtifact)
-> Maybe (HashMap Text TrialComponentParameterValue)
-> Maybe TrialComponentSource
-> Maybe [TrialComponentSource]
-> Maybe POSIX
-> Maybe TrialComponentStatus
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeTrialComponentResponse
DescribeTrialComponentResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreatedBy")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreationTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DisplayName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"EndTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"InputArtifacts" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedBy")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LineageGroupArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"MetadataProperties")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Metrics" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OutputArtifacts"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Parameters" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Source")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Sources" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"StartTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Status")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TrialComponentArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TrialComponentName")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable DescribeTrialComponent where
  hashWithSalt :: Int -> DescribeTrialComponent -> Int
hashWithSalt Int
_salt DescribeTrialComponent' {Text
trialComponentName :: Text
$sel:trialComponentName:DescribeTrialComponent' :: DescribeTrialComponent -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
trialComponentName

instance Prelude.NFData DescribeTrialComponent where
  rnf :: DescribeTrialComponent -> ()
rnf DescribeTrialComponent' {Text
trialComponentName :: Text
$sel:trialComponentName:DescribeTrialComponent' :: DescribeTrialComponent -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
trialComponentName

instance Data.ToHeaders DescribeTrialComponent where
  toHeaders :: DescribeTrialComponent -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"SageMaker.DescribeTrialComponent" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON DescribeTrialComponent where
  toJSON :: DescribeTrialComponent -> Value
toJSON DescribeTrialComponent' {Text
trialComponentName :: Text
$sel:trialComponentName:DescribeTrialComponent' :: DescribeTrialComponent -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ forall a. a -> Maybe a
Prelude.Just
              (Key
"TrialComponentName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
trialComponentName)
          ]
      )

instance Data.ToPath DescribeTrialComponent where
  toPath :: DescribeTrialComponent -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Data.ToQuery DescribeTrialComponent where
  toQuery :: DescribeTrialComponent -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeTrialComponentResponse' smart constructor.
data DescribeTrialComponentResponse = DescribeTrialComponentResponse'
  { -- | Who created the trial component.
    DescribeTrialComponentResponse -> Maybe UserContext
createdBy :: Prelude.Maybe UserContext,
    -- | When the component was created.
    DescribeTrialComponentResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The name of the component as displayed. If @DisplayName@ isn\'t
    -- specified, @TrialComponentName@ is displayed.
    DescribeTrialComponentResponse -> Maybe Text
displayName :: Prelude.Maybe Prelude.Text,
    -- | When the component ended.
    DescribeTrialComponentResponse -> Maybe POSIX
endTime :: Prelude.Maybe Data.POSIX,
    -- | The input artifacts of the component.
    DescribeTrialComponentResponse
-> Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts :: Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentArtifact),
    -- | Who last modified the component.
    DescribeTrialComponentResponse -> Maybe UserContext
lastModifiedBy :: Prelude.Maybe UserContext,
    -- | When the component was last modified.
    DescribeTrialComponentResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | The Amazon Resource Name (ARN) of the lineage group.
    DescribeTrialComponentResponse -> Maybe Text
lineageGroupArn :: Prelude.Maybe Prelude.Text,
    DescribeTrialComponentResponse -> Maybe MetadataProperties
metadataProperties :: Prelude.Maybe MetadataProperties,
    -- | The metrics for the component.
    DescribeTrialComponentResponse
-> Maybe [TrialComponentMetricSummary]
metrics :: Prelude.Maybe [TrialComponentMetricSummary],
    -- | The output artifacts of the component.
    DescribeTrialComponentResponse
-> Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts :: Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentArtifact),
    -- | The hyperparameters of the component.
    DescribeTrialComponentResponse
-> Maybe (HashMap Text TrialComponentParameterValue)
parameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentParameterValue),
    -- | The Amazon Resource Name (ARN) of the source and, optionally, the job
    -- type.
    DescribeTrialComponentResponse -> Maybe TrialComponentSource
source :: Prelude.Maybe TrialComponentSource,
    -- | A list of ARNs and, if applicable, job types for multiple sources of an
    -- experiment run.
    DescribeTrialComponentResponse -> Maybe [TrialComponentSource]
sources :: Prelude.Maybe [TrialComponentSource],
    -- | When the component started.
    DescribeTrialComponentResponse -> Maybe POSIX
startTime :: Prelude.Maybe Data.POSIX,
    -- | The status of the component. States include:
    --
    -- -   InProgress
    --
    -- -   Completed
    --
    -- -   Failed
    DescribeTrialComponentResponse -> Maybe TrialComponentStatus
status :: Prelude.Maybe TrialComponentStatus,
    -- | The Amazon Resource Name (ARN) of the trial component.
    DescribeTrialComponentResponse -> Maybe Text
trialComponentArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the trial component.
    DescribeTrialComponentResponse -> Maybe Text
trialComponentName :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeTrialComponentResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeTrialComponentResponse
-> DescribeTrialComponentResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTrialComponentResponse
-> DescribeTrialComponentResponse -> Bool
$c/= :: DescribeTrialComponentResponse
-> DescribeTrialComponentResponse -> Bool
== :: DescribeTrialComponentResponse
-> DescribeTrialComponentResponse -> Bool
$c== :: DescribeTrialComponentResponse
-> DescribeTrialComponentResponse -> Bool
Prelude.Eq, ReadPrec [DescribeTrialComponentResponse]
ReadPrec DescribeTrialComponentResponse
Int -> ReadS DescribeTrialComponentResponse
ReadS [DescribeTrialComponentResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTrialComponentResponse]
$creadListPrec :: ReadPrec [DescribeTrialComponentResponse]
readPrec :: ReadPrec DescribeTrialComponentResponse
$creadPrec :: ReadPrec DescribeTrialComponentResponse
readList :: ReadS [DescribeTrialComponentResponse]
$creadList :: ReadS [DescribeTrialComponentResponse]
readsPrec :: Int -> ReadS DescribeTrialComponentResponse
$creadsPrec :: Int -> ReadS DescribeTrialComponentResponse
Prelude.Read, Int -> DescribeTrialComponentResponse -> ShowS
[DescribeTrialComponentResponse] -> ShowS
DescribeTrialComponentResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTrialComponentResponse] -> ShowS
$cshowList :: [DescribeTrialComponentResponse] -> ShowS
show :: DescribeTrialComponentResponse -> String
$cshow :: DescribeTrialComponentResponse -> String
showsPrec :: Int -> DescribeTrialComponentResponse -> ShowS
$cshowsPrec :: Int -> DescribeTrialComponentResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeTrialComponentResponse x
-> DescribeTrialComponentResponse
forall x.
DescribeTrialComponentResponse
-> Rep DescribeTrialComponentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTrialComponentResponse x
-> DescribeTrialComponentResponse
$cfrom :: forall x.
DescribeTrialComponentResponse
-> Rep DescribeTrialComponentResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTrialComponentResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'createdBy', 'describeTrialComponentResponse_createdBy' - Who created the trial component.
--
-- 'creationTime', 'describeTrialComponentResponse_creationTime' - When the component was created.
--
-- 'displayName', 'describeTrialComponentResponse_displayName' - The name of the component as displayed. If @DisplayName@ isn\'t
-- specified, @TrialComponentName@ is displayed.
--
-- 'endTime', 'describeTrialComponentResponse_endTime' - When the component ended.
--
-- 'inputArtifacts', 'describeTrialComponentResponse_inputArtifacts' - The input artifacts of the component.
--
-- 'lastModifiedBy', 'describeTrialComponentResponse_lastModifiedBy' - Who last modified the component.
--
-- 'lastModifiedTime', 'describeTrialComponentResponse_lastModifiedTime' - When the component was last modified.
--
-- 'lineageGroupArn', 'describeTrialComponentResponse_lineageGroupArn' - The Amazon Resource Name (ARN) of the lineage group.
--
-- 'metadataProperties', 'describeTrialComponentResponse_metadataProperties' - Undocumented member.
--
-- 'metrics', 'describeTrialComponentResponse_metrics' - The metrics for the component.
--
-- 'outputArtifacts', 'describeTrialComponentResponse_outputArtifacts' - The output artifacts of the component.
--
-- 'parameters', 'describeTrialComponentResponse_parameters' - The hyperparameters of the component.
--
-- 'source', 'describeTrialComponentResponse_source' - The Amazon Resource Name (ARN) of the source and, optionally, the job
-- type.
--
-- 'sources', 'describeTrialComponentResponse_sources' - A list of ARNs and, if applicable, job types for multiple sources of an
-- experiment run.
--
-- 'startTime', 'describeTrialComponentResponse_startTime' - When the component started.
--
-- 'status', 'describeTrialComponentResponse_status' - The status of the component. States include:
--
-- -   InProgress
--
-- -   Completed
--
-- -   Failed
--
-- 'trialComponentArn', 'describeTrialComponentResponse_trialComponentArn' - The Amazon Resource Name (ARN) of the trial component.
--
-- 'trialComponentName', 'describeTrialComponentResponse_trialComponentName' - The name of the trial component.
--
-- 'httpStatus', 'describeTrialComponentResponse_httpStatus' - The response's http status code.
newDescribeTrialComponentResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeTrialComponentResponse
newDescribeTrialComponentResponse :: Int -> DescribeTrialComponentResponse
newDescribeTrialComponentResponse Int
pHttpStatus_ =
  DescribeTrialComponentResponse'
    { $sel:createdBy:DescribeTrialComponentResponse' :: Maybe UserContext
createdBy =
        forall a. Maybe a
Prelude.Nothing,
      $sel:creationTime:DescribeTrialComponentResponse' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:displayName:DescribeTrialComponentResponse' :: Maybe Text
displayName = forall a. Maybe a
Prelude.Nothing,
      $sel:endTime:DescribeTrialComponentResponse' :: Maybe POSIX
endTime = forall a. Maybe a
Prelude.Nothing,
      $sel:inputArtifacts:DescribeTrialComponentResponse' :: Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedBy:DescribeTrialComponentResponse' :: Maybe UserContext
lastModifiedBy = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:DescribeTrialComponentResponse' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:lineageGroupArn:DescribeTrialComponentResponse' :: Maybe Text
lineageGroupArn = forall a. Maybe a
Prelude.Nothing,
      $sel:metadataProperties:DescribeTrialComponentResponse' :: Maybe MetadataProperties
metadataProperties = forall a. Maybe a
Prelude.Nothing,
      $sel:metrics:DescribeTrialComponentResponse' :: Maybe [TrialComponentMetricSummary]
metrics = forall a. Maybe a
Prelude.Nothing,
      $sel:outputArtifacts:DescribeTrialComponentResponse' :: Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts = forall a. Maybe a
Prelude.Nothing,
      $sel:parameters:DescribeTrialComponentResponse' :: Maybe (HashMap Text TrialComponentParameterValue)
parameters = forall a. Maybe a
Prelude.Nothing,
      $sel:source:DescribeTrialComponentResponse' :: Maybe TrialComponentSource
source = forall a. Maybe a
Prelude.Nothing,
      $sel:sources:DescribeTrialComponentResponse' :: Maybe [TrialComponentSource]
sources = forall a. Maybe a
Prelude.Nothing,
      $sel:startTime:DescribeTrialComponentResponse' :: Maybe POSIX
startTime = forall a. Maybe a
Prelude.Nothing,
      $sel:status:DescribeTrialComponentResponse' :: Maybe TrialComponentStatus
status = forall a. Maybe a
Prelude.Nothing,
      $sel:trialComponentArn:DescribeTrialComponentResponse' :: Maybe Text
trialComponentArn = forall a. Maybe a
Prelude.Nothing,
      $sel:trialComponentName:DescribeTrialComponentResponse' :: Maybe Text
trialComponentName = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeTrialComponentResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Who created the trial component.
describeTrialComponentResponse_createdBy :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe UserContext)
describeTrialComponentResponse_createdBy :: Lens' DescribeTrialComponentResponse (Maybe UserContext)
describeTrialComponentResponse_createdBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe UserContext
createdBy :: Maybe UserContext
$sel:createdBy:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe UserContext
createdBy} -> Maybe UserContext
createdBy) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe UserContext
a -> DescribeTrialComponentResponse
s {$sel:createdBy:DescribeTrialComponentResponse' :: Maybe UserContext
createdBy = Maybe UserContext
a} :: DescribeTrialComponentResponse)

-- | When the component was created.
describeTrialComponentResponse_creationTime :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe Prelude.UTCTime)
describeTrialComponentResponse_creationTime :: Lens' DescribeTrialComponentResponse (Maybe UTCTime)
describeTrialComponentResponse_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe POSIX
a -> DescribeTrialComponentResponse
s {$sel:creationTime:DescribeTrialComponentResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeTrialComponentResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The name of the component as displayed. If @DisplayName@ isn\'t
-- specified, @TrialComponentName@ is displayed.
describeTrialComponentResponse_displayName :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe Prelude.Text)
describeTrialComponentResponse_displayName :: Lens' DescribeTrialComponentResponse (Maybe Text)
describeTrialComponentResponse_displayName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe Text
displayName :: Maybe Text
$sel:displayName:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe Text
displayName} -> Maybe Text
displayName) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe Text
a -> DescribeTrialComponentResponse
s {$sel:displayName:DescribeTrialComponentResponse' :: Maybe Text
displayName = Maybe Text
a} :: DescribeTrialComponentResponse)

-- | When the component ended.
describeTrialComponentResponse_endTime :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe Prelude.UTCTime)
describeTrialComponentResponse_endTime :: Lens' DescribeTrialComponentResponse (Maybe UTCTime)
describeTrialComponentResponse_endTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe POSIX
a -> DescribeTrialComponentResponse
s {$sel:endTime:DescribeTrialComponentResponse' :: Maybe POSIX
endTime = Maybe POSIX
a} :: DescribeTrialComponentResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The input artifacts of the component.
describeTrialComponentResponse_inputArtifacts :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentArtifact))
describeTrialComponentResponse_inputArtifacts :: Lens'
  DescribeTrialComponentResponse
  (Maybe (HashMap Text TrialComponentArtifact))
describeTrialComponentResponse_inputArtifacts = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts :: Maybe (HashMap Text TrialComponentArtifact)
$sel:inputArtifacts:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse
-> Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts} -> Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe (HashMap Text TrialComponentArtifact)
a -> DescribeTrialComponentResponse
s {$sel:inputArtifacts:DescribeTrialComponentResponse' :: Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts = Maybe (HashMap Text TrialComponentArtifact)
a} :: DescribeTrialComponentResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Who last modified the component.
describeTrialComponentResponse_lastModifiedBy :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe UserContext)
describeTrialComponentResponse_lastModifiedBy :: Lens' DescribeTrialComponentResponse (Maybe UserContext)
describeTrialComponentResponse_lastModifiedBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe UserContext
lastModifiedBy :: Maybe UserContext
$sel:lastModifiedBy:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe UserContext
lastModifiedBy} -> Maybe UserContext
lastModifiedBy) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe UserContext
a -> DescribeTrialComponentResponse
s {$sel:lastModifiedBy:DescribeTrialComponentResponse' :: Maybe UserContext
lastModifiedBy = Maybe UserContext
a} :: DescribeTrialComponentResponse)

-- | When the component was last modified.
describeTrialComponentResponse_lastModifiedTime :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe Prelude.UTCTime)
describeTrialComponentResponse_lastModifiedTime :: Lens' DescribeTrialComponentResponse (Maybe UTCTime)
describeTrialComponentResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe POSIX
a -> DescribeTrialComponentResponse
s {$sel:lastModifiedTime:DescribeTrialComponentResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeTrialComponentResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The Amazon Resource Name (ARN) of the lineage group.
describeTrialComponentResponse_lineageGroupArn :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe Prelude.Text)
describeTrialComponentResponse_lineageGroupArn :: Lens' DescribeTrialComponentResponse (Maybe Text)
describeTrialComponentResponse_lineageGroupArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe Text
lineageGroupArn :: Maybe Text
$sel:lineageGroupArn:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe Text
lineageGroupArn} -> Maybe Text
lineageGroupArn) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe Text
a -> DescribeTrialComponentResponse
s {$sel:lineageGroupArn:DescribeTrialComponentResponse' :: Maybe Text
lineageGroupArn = Maybe Text
a} :: DescribeTrialComponentResponse)

-- | Undocumented member.
describeTrialComponentResponse_metadataProperties :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe MetadataProperties)
describeTrialComponentResponse_metadataProperties :: Lens' DescribeTrialComponentResponse (Maybe MetadataProperties)
describeTrialComponentResponse_metadataProperties = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe MetadataProperties
metadataProperties :: Maybe MetadataProperties
$sel:metadataProperties:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe MetadataProperties
metadataProperties} -> Maybe MetadataProperties
metadataProperties) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe MetadataProperties
a -> DescribeTrialComponentResponse
s {$sel:metadataProperties:DescribeTrialComponentResponse' :: Maybe MetadataProperties
metadataProperties = Maybe MetadataProperties
a} :: DescribeTrialComponentResponse)

-- | The metrics for the component.
describeTrialComponentResponse_metrics :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe [TrialComponentMetricSummary])
describeTrialComponentResponse_metrics :: Lens'
  DescribeTrialComponentResponse
  (Maybe [TrialComponentMetricSummary])
describeTrialComponentResponse_metrics = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe [TrialComponentMetricSummary]
metrics :: Maybe [TrialComponentMetricSummary]
$sel:metrics:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse
-> Maybe [TrialComponentMetricSummary]
metrics} -> Maybe [TrialComponentMetricSummary]
metrics) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe [TrialComponentMetricSummary]
a -> DescribeTrialComponentResponse
s {$sel:metrics:DescribeTrialComponentResponse' :: Maybe [TrialComponentMetricSummary]
metrics = Maybe [TrialComponentMetricSummary]
a} :: DescribeTrialComponentResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The output artifacts of the component.
describeTrialComponentResponse_outputArtifacts :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentArtifact))
describeTrialComponentResponse_outputArtifacts :: Lens'
  DescribeTrialComponentResponse
  (Maybe (HashMap Text TrialComponentArtifact))
describeTrialComponentResponse_outputArtifacts = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts :: Maybe (HashMap Text TrialComponentArtifact)
$sel:outputArtifacts:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse
-> Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts} -> Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe (HashMap Text TrialComponentArtifact)
a -> DescribeTrialComponentResponse
s {$sel:outputArtifacts:DescribeTrialComponentResponse' :: Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts = Maybe (HashMap Text TrialComponentArtifact)
a} :: DescribeTrialComponentResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The hyperparameters of the component.
describeTrialComponentResponse_parameters :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text TrialComponentParameterValue))
describeTrialComponentResponse_parameters :: Lens'
  DescribeTrialComponentResponse
  (Maybe (HashMap Text TrialComponentParameterValue))
describeTrialComponentResponse_parameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe (HashMap Text TrialComponentParameterValue)
parameters :: Maybe (HashMap Text TrialComponentParameterValue)
$sel:parameters:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse
-> Maybe (HashMap Text TrialComponentParameterValue)
parameters} -> Maybe (HashMap Text TrialComponentParameterValue)
parameters) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe (HashMap Text TrialComponentParameterValue)
a -> DescribeTrialComponentResponse
s {$sel:parameters:DescribeTrialComponentResponse' :: Maybe (HashMap Text TrialComponentParameterValue)
parameters = Maybe (HashMap Text TrialComponentParameterValue)
a} :: DescribeTrialComponentResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The Amazon Resource Name (ARN) of the source and, optionally, the job
-- type.
describeTrialComponentResponse_source :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe TrialComponentSource)
describeTrialComponentResponse_source :: Lens' DescribeTrialComponentResponse (Maybe TrialComponentSource)
describeTrialComponentResponse_source = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe TrialComponentSource
source :: Maybe TrialComponentSource
$sel:source:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe TrialComponentSource
source} -> Maybe TrialComponentSource
source) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe TrialComponentSource
a -> DescribeTrialComponentResponse
s {$sel:source:DescribeTrialComponentResponse' :: Maybe TrialComponentSource
source = Maybe TrialComponentSource
a} :: DescribeTrialComponentResponse)

-- | A list of ARNs and, if applicable, job types for multiple sources of an
-- experiment run.
describeTrialComponentResponse_sources :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe [TrialComponentSource])
describeTrialComponentResponse_sources :: Lens' DescribeTrialComponentResponse (Maybe [TrialComponentSource])
describeTrialComponentResponse_sources = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe [TrialComponentSource]
sources :: Maybe [TrialComponentSource]
$sel:sources:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe [TrialComponentSource]
sources} -> Maybe [TrialComponentSource]
sources) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe [TrialComponentSource]
a -> DescribeTrialComponentResponse
s {$sel:sources:DescribeTrialComponentResponse' :: Maybe [TrialComponentSource]
sources = Maybe [TrialComponentSource]
a} :: DescribeTrialComponentResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | When the component started.
describeTrialComponentResponse_startTime :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe Prelude.UTCTime)
describeTrialComponentResponse_startTime :: Lens' DescribeTrialComponentResponse (Maybe UTCTime)
describeTrialComponentResponse_startTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe POSIX
a -> DescribeTrialComponentResponse
s {$sel:startTime:DescribeTrialComponentResponse' :: Maybe POSIX
startTime = Maybe POSIX
a} :: DescribeTrialComponentResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The status of the component. States include:
--
-- -   InProgress
--
-- -   Completed
--
-- -   Failed
describeTrialComponentResponse_status :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe TrialComponentStatus)
describeTrialComponentResponse_status :: Lens' DescribeTrialComponentResponse (Maybe TrialComponentStatus)
describeTrialComponentResponse_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe TrialComponentStatus
status :: Maybe TrialComponentStatus
$sel:status:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe TrialComponentStatus
status} -> Maybe TrialComponentStatus
status) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe TrialComponentStatus
a -> DescribeTrialComponentResponse
s {$sel:status:DescribeTrialComponentResponse' :: Maybe TrialComponentStatus
status = Maybe TrialComponentStatus
a} :: DescribeTrialComponentResponse)

-- | The Amazon Resource Name (ARN) of the trial component.
describeTrialComponentResponse_trialComponentArn :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe Prelude.Text)
describeTrialComponentResponse_trialComponentArn :: Lens' DescribeTrialComponentResponse (Maybe Text)
describeTrialComponentResponse_trialComponentArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe Text
trialComponentArn :: Maybe Text
$sel:trialComponentArn:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe Text
trialComponentArn} -> Maybe Text
trialComponentArn) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe Text
a -> DescribeTrialComponentResponse
s {$sel:trialComponentArn:DescribeTrialComponentResponse' :: Maybe Text
trialComponentArn = Maybe Text
a} :: DescribeTrialComponentResponse)

-- | The name of the trial component.
describeTrialComponentResponse_trialComponentName :: Lens.Lens' DescribeTrialComponentResponse (Prelude.Maybe Prelude.Text)
describeTrialComponentResponse_trialComponentName :: Lens' DescribeTrialComponentResponse (Maybe Text)
describeTrialComponentResponse_trialComponentName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Maybe Text
trialComponentName :: Maybe Text
$sel:trialComponentName:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe Text
trialComponentName} -> Maybe Text
trialComponentName) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Maybe Text
a -> DescribeTrialComponentResponse
s {$sel:trialComponentName:DescribeTrialComponentResponse' :: Maybe Text
trialComponentName = Maybe Text
a} :: DescribeTrialComponentResponse)

-- | The response's http status code.
describeTrialComponentResponse_httpStatus :: Lens.Lens' DescribeTrialComponentResponse Prelude.Int
describeTrialComponentResponse_httpStatus :: Lens' DescribeTrialComponentResponse Int
describeTrialComponentResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTrialComponentResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeTrialComponentResponse
s@DescribeTrialComponentResponse' {} Int
a -> DescribeTrialComponentResponse
s {$sel:httpStatus:DescribeTrialComponentResponse' :: Int
httpStatus = Int
a} :: DescribeTrialComponentResponse)

instance
  Prelude.NFData
    DescribeTrialComponentResponse
  where
  rnf :: DescribeTrialComponentResponse -> ()
rnf DescribeTrialComponentResponse' {Int
Maybe [TrialComponentMetricSummary]
Maybe [TrialComponentSource]
Maybe Text
Maybe (HashMap Text TrialComponentArtifact)
Maybe (HashMap Text TrialComponentParameterValue)
Maybe POSIX
Maybe MetadataProperties
Maybe TrialComponentSource
Maybe TrialComponentStatus
Maybe UserContext
httpStatus :: Int
trialComponentName :: Maybe Text
trialComponentArn :: Maybe Text
status :: Maybe TrialComponentStatus
startTime :: Maybe POSIX
sources :: Maybe [TrialComponentSource]
source :: Maybe TrialComponentSource
parameters :: Maybe (HashMap Text TrialComponentParameterValue)
outputArtifacts :: Maybe (HashMap Text TrialComponentArtifact)
metrics :: Maybe [TrialComponentMetricSummary]
metadataProperties :: Maybe MetadataProperties
lineageGroupArn :: Maybe Text
lastModifiedTime :: Maybe POSIX
lastModifiedBy :: Maybe UserContext
inputArtifacts :: Maybe (HashMap Text TrialComponentArtifact)
endTime :: Maybe POSIX
displayName :: Maybe Text
creationTime :: Maybe POSIX
createdBy :: Maybe UserContext
$sel:httpStatus:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Int
$sel:trialComponentName:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe Text
$sel:trialComponentArn:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe Text
$sel:status:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe TrialComponentStatus
$sel:startTime:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe POSIX
$sel:sources:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe [TrialComponentSource]
$sel:source:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe TrialComponentSource
$sel:parameters:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse
-> Maybe (HashMap Text TrialComponentParameterValue)
$sel:outputArtifacts:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse
-> Maybe (HashMap Text TrialComponentArtifact)
$sel:metrics:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse
-> Maybe [TrialComponentMetricSummary]
$sel:metadataProperties:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe MetadataProperties
$sel:lineageGroupArn:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe Text
$sel:lastModifiedTime:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe POSIX
$sel:lastModifiedBy:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe UserContext
$sel:inputArtifacts:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse
-> Maybe (HashMap Text TrialComponentArtifact)
$sel:endTime:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe POSIX
$sel:displayName:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe Text
$sel:creationTime:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe POSIX
$sel:createdBy:DescribeTrialComponentResponse' :: DescribeTrialComponentResponse -> Maybe UserContext
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe UserContext
createdBy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
displayName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
endTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text TrialComponentArtifact)
inputArtifacts
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UserContext
lastModifiedBy
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
lineageGroupArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe MetadataProperties
metadataProperties
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [TrialComponentMetricSummary]
metrics
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text TrialComponentArtifact)
outputArtifacts
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text TrialComponentParameterValue)
parameters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TrialComponentSource
source
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [TrialComponentSource]
sources
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
startTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe TrialComponentStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
trialComponentArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
trialComponentName
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus