{-# 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.DescribeEndpointConfig
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns the description of an endpoint configuration created using the
-- @CreateEndpointConfig@ API.
module Amazonka.SageMaker.DescribeEndpointConfig
  ( -- * Creating a Request
    DescribeEndpointConfig (..),
    newDescribeEndpointConfig,

    -- * Request Lenses
    describeEndpointConfig_endpointConfigName,

    -- * Destructuring the Response
    DescribeEndpointConfigResponse (..),
    newDescribeEndpointConfigResponse,

    -- * Response Lenses
    describeEndpointConfigResponse_asyncInferenceConfig,
    describeEndpointConfigResponse_kmsKeyId,
    describeEndpointConfigResponse_dataCaptureConfig,
    describeEndpointConfigResponse_httpStatus,
    describeEndpointConfigResponse_endpointConfigName,
    describeEndpointConfigResponse_endpointConfigArn,
    describeEndpointConfigResponse_productionVariants,
    describeEndpointConfigResponse_creationTime,
  )
where

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

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

-- |
-- Create a value of 'DescribeEndpointConfig' 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:
--
-- 'endpointConfigName', 'describeEndpointConfig_endpointConfigName' - The name of the endpoint configuration.
newDescribeEndpointConfig ::
  -- | 'endpointConfigName'
  Prelude.Text ->
  DescribeEndpointConfig
newDescribeEndpointConfig :: Text -> DescribeEndpointConfig
newDescribeEndpointConfig Text
pEndpointConfigName_ =
  DescribeEndpointConfig' :: Text -> DescribeEndpointConfig
DescribeEndpointConfig'
    { $sel:endpointConfigName:DescribeEndpointConfig' :: Text
endpointConfigName =
        Text
pEndpointConfigName_
    }

-- | The name of the endpoint configuration.
describeEndpointConfig_endpointConfigName :: Lens.Lens' DescribeEndpointConfig Prelude.Text
describeEndpointConfig_endpointConfigName :: (Text -> f Text)
-> DescribeEndpointConfig -> f DescribeEndpointConfig
describeEndpointConfig_endpointConfigName = (DescribeEndpointConfig -> Text)
-> (DescribeEndpointConfig -> Text -> DescribeEndpointConfig)
-> Lens DescribeEndpointConfig DescribeEndpointConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointConfig' {Text
endpointConfigName :: Text
$sel:endpointConfigName:DescribeEndpointConfig' :: DescribeEndpointConfig -> Text
endpointConfigName} -> Text
endpointConfigName) (\s :: DescribeEndpointConfig
s@DescribeEndpointConfig' {} Text
a -> DescribeEndpointConfig
s {$sel:endpointConfigName:DescribeEndpointConfig' :: Text
endpointConfigName = Text
a} :: DescribeEndpointConfig)

instance Core.AWSRequest DescribeEndpointConfig where
  type
    AWSResponse DescribeEndpointConfig =
      DescribeEndpointConfigResponse
  request :: DescribeEndpointConfig -> Request DescribeEndpointConfig
request = Service -> DescribeEndpointConfig -> Request DescribeEndpointConfig
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeEndpointConfig
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeEndpointConfig)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeEndpointConfig))
-> Logger
-> Service
-> Proxy DescribeEndpointConfig
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeEndpointConfig)))
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 AsyncInferenceConfig
-> Maybe Text
-> Maybe DataCaptureConfig
-> Int
-> Text
-> Text
-> NonEmpty ProductionVariant
-> POSIX
-> DescribeEndpointConfigResponse
DescribeEndpointConfigResponse'
            (Maybe AsyncInferenceConfig
 -> Maybe Text
 -> Maybe DataCaptureConfig
 -> Int
 -> Text
 -> Text
 -> NonEmpty ProductionVariant
 -> POSIX
 -> DescribeEndpointConfigResponse)
-> Either String (Maybe AsyncInferenceConfig)
-> Either
     String
     (Maybe Text
      -> Maybe DataCaptureConfig
      -> Int
      -> Text
      -> Text
      -> NonEmpty ProductionVariant
      -> POSIX
      -> DescribeEndpointConfigResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe AsyncInferenceConfig)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AsyncInferenceConfig")
            Either
  String
  (Maybe Text
   -> Maybe DataCaptureConfig
   -> Int
   -> Text
   -> Text
   -> NonEmpty ProductionVariant
   -> POSIX
   -> DescribeEndpointConfigResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe DataCaptureConfig
      -> Int
      -> Text
      -> Text
      -> NonEmpty ProductionVariant
      -> POSIX
      -> DescribeEndpointConfigResponse)
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
"KmsKeyId")
            Either
  String
  (Maybe DataCaptureConfig
   -> Int
   -> Text
   -> Text
   -> NonEmpty ProductionVariant
   -> POSIX
   -> DescribeEndpointConfigResponse)
-> Either String (Maybe DataCaptureConfig)
-> Either
     String
     (Int
      -> Text
      -> Text
      -> NonEmpty ProductionVariant
      -> POSIX
      -> DescribeEndpointConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe DataCaptureConfig)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DataCaptureConfig")
            Either
  String
  (Int
   -> Text
   -> Text
   -> NonEmpty ProductionVariant
   -> POSIX
   -> DescribeEndpointConfigResponse)
-> Either String Int
-> Either
     String
     (Text
      -> Text
      -> NonEmpty ProductionVariant
      -> POSIX
      -> DescribeEndpointConfigResponse)
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))
            Either
  String
  (Text
   -> Text
   -> NonEmpty ProductionVariant
   -> POSIX
   -> DescribeEndpointConfigResponse)
-> Either String Text
-> Either
     String
     (Text
      -> NonEmpty ProductionVariant
      -> POSIX
      -> DescribeEndpointConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"EndpointConfigName")
            Either
  String
  (Text
   -> NonEmpty ProductionVariant
   -> POSIX
   -> DescribeEndpointConfigResponse)
-> Either String Text
-> Either
     String
     (NonEmpty ProductionVariant
      -> POSIX -> DescribeEndpointConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"EndpointConfigArn")
            Either
  String
  (NonEmpty ProductionVariant
   -> POSIX -> DescribeEndpointConfigResponse)
-> Either String (NonEmpty ProductionVariant)
-> Either String (POSIX -> DescribeEndpointConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (NonEmpty ProductionVariant)
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"ProductionVariants")
            Either String (POSIX -> DescribeEndpointConfigResponse)
-> Either String POSIX
-> Either String DescribeEndpointConfigResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CreationTime")
      )

instance Prelude.Hashable DescribeEndpointConfig

instance Prelude.NFData DescribeEndpointConfig

instance Core.ToHeaders DescribeEndpointConfig where
  toHeaders :: DescribeEndpointConfig -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeEndpointConfig -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"SageMaker.DescribeEndpointConfig" ::
                          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 DescribeEndpointConfig where
  toJSON :: DescribeEndpointConfig -> Value
toJSON DescribeEndpointConfig' {Text
endpointConfigName :: Text
$sel:endpointConfigName:DescribeEndpointConfig' :: DescribeEndpointConfig -> 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
"EndpointConfigName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
endpointConfigName)
          ]
      )

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

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

-- | /See:/ 'newDescribeEndpointConfigResponse' smart constructor.
data DescribeEndpointConfigResponse = DescribeEndpointConfigResponse'
  { -- | Returns the description of an endpoint configuration created using the
    -- <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpointConfig.html CreateEndpointConfig>
    -- API.
    DescribeEndpointConfigResponse -> Maybe AsyncInferenceConfig
asyncInferenceConfig :: Prelude.Maybe AsyncInferenceConfig,
    -- | Amazon Web Services KMS key ID Amazon SageMaker uses to encrypt data
    -- when storing it on the ML storage volume attached to the instance.
    DescribeEndpointConfigResponse -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
    DescribeEndpointConfigResponse -> Maybe DataCaptureConfig
dataCaptureConfig :: Prelude.Maybe DataCaptureConfig,
    -- | The response's http status code.
    DescribeEndpointConfigResponse -> Int
httpStatus :: Prelude.Int,
    -- | Name of the Amazon SageMaker endpoint configuration.
    DescribeEndpointConfigResponse -> Text
endpointConfigName :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the endpoint configuration.
    DescribeEndpointConfigResponse -> Text
endpointConfigArn :: Prelude.Text,
    -- | An array of @ProductionVariant@ objects, one for each model that you
    -- want to host at this endpoint.
    DescribeEndpointConfigResponse -> NonEmpty ProductionVariant
productionVariants :: Prelude.NonEmpty ProductionVariant,
    -- | A timestamp that shows when the endpoint configuration was created.
    DescribeEndpointConfigResponse -> POSIX
creationTime :: Core.POSIX
  }
  deriving (DescribeEndpointConfigResponse
-> DescribeEndpointConfigResponse -> Bool
(DescribeEndpointConfigResponse
 -> DescribeEndpointConfigResponse -> Bool)
-> (DescribeEndpointConfigResponse
    -> DescribeEndpointConfigResponse -> Bool)
-> Eq DescribeEndpointConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeEndpointConfigResponse
-> DescribeEndpointConfigResponse -> Bool
$c/= :: DescribeEndpointConfigResponse
-> DescribeEndpointConfigResponse -> Bool
== :: DescribeEndpointConfigResponse
-> DescribeEndpointConfigResponse -> Bool
$c== :: DescribeEndpointConfigResponse
-> DescribeEndpointConfigResponse -> Bool
Prelude.Eq, ReadPrec [DescribeEndpointConfigResponse]
ReadPrec DescribeEndpointConfigResponse
Int -> ReadS DescribeEndpointConfigResponse
ReadS [DescribeEndpointConfigResponse]
(Int -> ReadS DescribeEndpointConfigResponse)
-> ReadS [DescribeEndpointConfigResponse]
-> ReadPrec DescribeEndpointConfigResponse
-> ReadPrec [DescribeEndpointConfigResponse]
-> Read DescribeEndpointConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeEndpointConfigResponse]
$creadListPrec :: ReadPrec [DescribeEndpointConfigResponse]
readPrec :: ReadPrec DescribeEndpointConfigResponse
$creadPrec :: ReadPrec DescribeEndpointConfigResponse
readList :: ReadS [DescribeEndpointConfigResponse]
$creadList :: ReadS [DescribeEndpointConfigResponse]
readsPrec :: Int -> ReadS DescribeEndpointConfigResponse
$creadsPrec :: Int -> ReadS DescribeEndpointConfigResponse
Prelude.Read, Int -> DescribeEndpointConfigResponse -> ShowS
[DescribeEndpointConfigResponse] -> ShowS
DescribeEndpointConfigResponse -> String
(Int -> DescribeEndpointConfigResponse -> ShowS)
-> (DescribeEndpointConfigResponse -> String)
-> ([DescribeEndpointConfigResponse] -> ShowS)
-> Show DescribeEndpointConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeEndpointConfigResponse] -> ShowS
$cshowList :: [DescribeEndpointConfigResponse] -> ShowS
show :: DescribeEndpointConfigResponse -> String
$cshow :: DescribeEndpointConfigResponse -> String
showsPrec :: Int -> DescribeEndpointConfigResponse -> ShowS
$cshowsPrec :: Int -> DescribeEndpointConfigResponse -> ShowS
Prelude.Show, (forall x.
 DescribeEndpointConfigResponse
 -> Rep DescribeEndpointConfigResponse x)
-> (forall x.
    Rep DescribeEndpointConfigResponse x
    -> DescribeEndpointConfigResponse)
-> Generic DescribeEndpointConfigResponse
forall x.
Rep DescribeEndpointConfigResponse x
-> DescribeEndpointConfigResponse
forall x.
DescribeEndpointConfigResponse
-> Rep DescribeEndpointConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeEndpointConfigResponse x
-> DescribeEndpointConfigResponse
$cfrom :: forall x.
DescribeEndpointConfigResponse
-> Rep DescribeEndpointConfigResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeEndpointConfigResponse' 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:
--
-- 'asyncInferenceConfig', 'describeEndpointConfigResponse_asyncInferenceConfig' - Returns the description of an endpoint configuration created using the
-- <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpointConfig.html CreateEndpointConfig>
-- API.
--
-- 'kmsKeyId', 'describeEndpointConfigResponse_kmsKeyId' - Amazon Web Services KMS key ID Amazon SageMaker uses to encrypt data
-- when storing it on the ML storage volume attached to the instance.
--
-- 'dataCaptureConfig', 'describeEndpointConfigResponse_dataCaptureConfig' - Undocumented member.
--
-- 'httpStatus', 'describeEndpointConfigResponse_httpStatus' - The response's http status code.
--
-- 'endpointConfigName', 'describeEndpointConfigResponse_endpointConfigName' - Name of the Amazon SageMaker endpoint configuration.
--
-- 'endpointConfigArn', 'describeEndpointConfigResponse_endpointConfigArn' - The Amazon Resource Name (ARN) of the endpoint configuration.
--
-- 'productionVariants', 'describeEndpointConfigResponse_productionVariants' - An array of @ProductionVariant@ objects, one for each model that you
-- want to host at this endpoint.
--
-- 'creationTime', 'describeEndpointConfigResponse_creationTime' - A timestamp that shows when the endpoint configuration was created.
newDescribeEndpointConfigResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'endpointConfigName'
  Prelude.Text ->
  -- | 'endpointConfigArn'
  Prelude.Text ->
  -- | 'productionVariants'
  Prelude.NonEmpty ProductionVariant ->
  -- | 'creationTime'
  Prelude.UTCTime ->
  DescribeEndpointConfigResponse
newDescribeEndpointConfigResponse :: Int
-> Text
-> Text
-> NonEmpty ProductionVariant
-> UTCTime
-> DescribeEndpointConfigResponse
newDescribeEndpointConfigResponse
  Int
pHttpStatus_
  Text
pEndpointConfigName_
  Text
pEndpointConfigArn_
  NonEmpty ProductionVariant
pProductionVariants_
  UTCTime
pCreationTime_ =
    DescribeEndpointConfigResponse' :: Maybe AsyncInferenceConfig
-> Maybe Text
-> Maybe DataCaptureConfig
-> Int
-> Text
-> Text
-> NonEmpty ProductionVariant
-> POSIX
-> DescribeEndpointConfigResponse
DescribeEndpointConfigResponse'
      { $sel:asyncInferenceConfig:DescribeEndpointConfigResponse' :: Maybe AsyncInferenceConfig
asyncInferenceConfig =
          Maybe AsyncInferenceConfig
forall a. Maybe a
Prelude.Nothing,
        $sel:kmsKeyId:DescribeEndpointConfigResponse' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:dataCaptureConfig:DescribeEndpointConfigResponse' :: Maybe DataCaptureConfig
dataCaptureConfig = Maybe DataCaptureConfig
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeEndpointConfigResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:endpointConfigName:DescribeEndpointConfigResponse' :: Text
endpointConfigName = Text
pEndpointConfigName_,
        $sel:endpointConfigArn:DescribeEndpointConfigResponse' :: Text
endpointConfigArn = Text
pEndpointConfigArn_,
        $sel:productionVariants:DescribeEndpointConfigResponse' :: NonEmpty ProductionVariant
productionVariants =
          Tagged
  (NonEmpty ProductionVariant)
  (Identity (NonEmpty ProductionVariant))
-> Tagged
     (NonEmpty ProductionVariant)
     (Identity (NonEmpty ProductionVariant))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged
   (NonEmpty ProductionVariant)
   (Identity (NonEmpty ProductionVariant))
 -> Tagged
      (NonEmpty ProductionVariant)
      (Identity (NonEmpty ProductionVariant)))
-> NonEmpty ProductionVariant -> NonEmpty ProductionVariant
forall t b. AReview t b -> b -> t
Lens.# NonEmpty ProductionVariant
pProductionVariants_,
        $sel:creationTime:DescribeEndpointConfigResponse' :: POSIX
creationTime =
          Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_
      }

-- | Returns the description of an endpoint configuration created using the
-- <https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateEndpointConfig.html CreateEndpointConfig>
-- API.
describeEndpointConfigResponse_asyncInferenceConfig :: Lens.Lens' DescribeEndpointConfigResponse (Prelude.Maybe AsyncInferenceConfig)
describeEndpointConfigResponse_asyncInferenceConfig :: (Maybe AsyncInferenceConfig -> f (Maybe AsyncInferenceConfig))
-> DescribeEndpointConfigResponse
-> f DescribeEndpointConfigResponse
describeEndpointConfigResponse_asyncInferenceConfig = (DescribeEndpointConfigResponse -> Maybe AsyncInferenceConfig)
-> (DescribeEndpointConfigResponse
    -> Maybe AsyncInferenceConfig -> DescribeEndpointConfigResponse)
-> Lens
     DescribeEndpointConfigResponse
     DescribeEndpointConfigResponse
     (Maybe AsyncInferenceConfig)
     (Maybe AsyncInferenceConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointConfigResponse' {Maybe AsyncInferenceConfig
asyncInferenceConfig :: Maybe AsyncInferenceConfig
$sel:asyncInferenceConfig:DescribeEndpointConfigResponse' :: DescribeEndpointConfigResponse -> Maybe AsyncInferenceConfig
asyncInferenceConfig} -> Maybe AsyncInferenceConfig
asyncInferenceConfig) (\s :: DescribeEndpointConfigResponse
s@DescribeEndpointConfigResponse' {} Maybe AsyncInferenceConfig
a -> DescribeEndpointConfigResponse
s {$sel:asyncInferenceConfig:DescribeEndpointConfigResponse' :: Maybe AsyncInferenceConfig
asyncInferenceConfig = Maybe AsyncInferenceConfig
a} :: DescribeEndpointConfigResponse)

-- | Amazon Web Services KMS key ID Amazon SageMaker uses to encrypt data
-- when storing it on the ML storage volume attached to the instance.
describeEndpointConfigResponse_kmsKeyId :: Lens.Lens' DescribeEndpointConfigResponse (Prelude.Maybe Prelude.Text)
describeEndpointConfigResponse_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> DescribeEndpointConfigResponse
-> f DescribeEndpointConfigResponse
describeEndpointConfigResponse_kmsKeyId = (DescribeEndpointConfigResponse -> Maybe Text)
-> (DescribeEndpointConfigResponse
    -> Maybe Text -> DescribeEndpointConfigResponse)
-> Lens
     DescribeEndpointConfigResponse
     DescribeEndpointConfigResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointConfigResponse' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:DescribeEndpointConfigResponse' :: DescribeEndpointConfigResponse -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: DescribeEndpointConfigResponse
s@DescribeEndpointConfigResponse' {} Maybe Text
a -> DescribeEndpointConfigResponse
s {$sel:kmsKeyId:DescribeEndpointConfigResponse' :: Maybe Text
kmsKeyId = Maybe Text
a} :: DescribeEndpointConfigResponse)

-- | Undocumented member.
describeEndpointConfigResponse_dataCaptureConfig :: Lens.Lens' DescribeEndpointConfigResponse (Prelude.Maybe DataCaptureConfig)
describeEndpointConfigResponse_dataCaptureConfig :: (Maybe DataCaptureConfig -> f (Maybe DataCaptureConfig))
-> DescribeEndpointConfigResponse
-> f DescribeEndpointConfigResponse
describeEndpointConfigResponse_dataCaptureConfig = (DescribeEndpointConfigResponse -> Maybe DataCaptureConfig)
-> (DescribeEndpointConfigResponse
    -> Maybe DataCaptureConfig -> DescribeEndpointConfigResponse)
-> Lens
     DescribeEndpointConfigResponse
     DescribeEndpointConfigResponse
     (Maybe DataCaptureConfig)
     (Maybe DataCaptureConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointConfigResponse' {Maybe DataCaptureConfig
dataCaptureConfig :: Maybe DataCaptureConfig
$sel:dataCaptureConfig:DescribeEndpointConfigResponse' :: DescribeEndpointConfigResponse -> Maybe DataCaptureConfig
dataCaptureConfig} -> Maybe DataCaptureConfig
dataCaptureConfig) (\s :: DescribeEndpointConfigResponse
s@DescribeEndpointConfigResponse' {} Maybe DataCaptureConfig
a -> DescribeEndpointConfigResponse
s {$sel:dataCaptureConfig:DescribeEndpointConfigResponse' :: Maybe DataCaptureConfig
dataCaptureConfig = Maybe DataCaptureConfig
a} :: DescribeEndpointConfigResponse)

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

-- | Name of the Amazon SageMaker endpoint configuration.
describeEndpointConfigResponse_endpointConfigName :: Lens.Lens' DescribeEndpointConfigResponse Prelude.Text
describeEndpointConfigResponse_endpointConfigName :: (Text -> f Text)
-> DescribeEndpointConfigResponse
-> f DescribeEndpointConfigResponse
describeEndpointConfigResponse_endpointConfigName = (DescribeEndpointConfigResponse -> Text)
-> (DescribeEndpointConfigResponse
    -> Text -> DescribeEndpointConfigResponse)
-> Lens
     DescribeEndpointConfigResponse
     DescribeEndpointConfigResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointConfigResponse' {Text
endpointConfigName :: Text
$sel:endpointConfigName:DescribeEndpointConfigResponse' :: DescribeEndpointConfigResponse -> Text
endpointConfigName} -> Text
endpointConfigName) (\s :: DescribeEndpointConfigResponse
s@DescribeEndpointConfigResponse' {} Text
a -> DescribeEndpointConfigResponse
s {$sel:endpointConfigName:DescribeEndpointConfigResponse' :: Text
endpointConfigName = Text
a} :: DescribeEndpointConfigResponse)

-- | The Amazon Resource Name (ARN) of the endpoint configuration.
describeEndpointConfigResponse_endpointConfigArn :: Lens.Lens' DescribeEndpointConfigResponse Prelude.Text
describeEndpointConfigResponse_endpointConfigArn :: (Text -> f Text)
-> DescribeEndpointConfigResponse
-> f DescribeEndpointConfigResponse
describeEndpointConfigResponse_endpointConfigArn = (DescribeEndpointConfigResponse -> Text)
-> (DescribeEndpointConfigResponse
    -> Text -> DescribeEndpointConfigResponse)
-> Lens
     DescribeEndpointConfigResponse
     DescribeEndpointConfigResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointConfigResponse' {Text
endpointConfigArn :: Text
$sel:endpointConfigArn:DescribeEndpointConfigResponse' :: DescribeEndpointConfigResponse -> Text
endpointConfigArn} -> Text
endpointConfigArn) (\s :: DescribeEndpointConfigResponse
s@DescribeEndpointConfigResponse' {} Text
a -> DescribeEndpointConfigResponse
s {$sel:endpointConfigArn:DescribeEndpointConfigResponse' :: Text
endpointConfigArn = Text
a} :: DescribeEndpointConfigResponse)

-- | An array of @ProductionVariant@ objects, one for each model that you
-- want to host at this endpoint.
describeEndpointConfigResponse_productionVariants :: Lens.Lens' DescribeEndpointConfigResponse (Prelude.NonEmpty ProductionVariant)
describeEndpointConfigResponse_productionVariants :: (NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
-> DescribeEndpointConfigResponse
-> f DescribeEndpointConfigResponse
describeEndpointConfigResponse_productionVariants = (DescribeEndpointConfigResponse -> NonEmpty ProductionVariant)
-> (DescribeEndpointConfigResponse
    -> NonEmpty ProductionVariant -> DescribeEndpointConfigResponse)
-> Lens
     DescribeEndpointConfigResponse
     DescribeEndpointConfigResponse
     (NonEmpty ProductionVariant)
     (NonEmpty ProductionVariant)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointConfigResponse' {NonEmpty ProductionVariant
productionVariants :: NonEmpty ProductionVariant
$sel:productionVariants:DescribeEndpointConfigResponse' :: DescribeEndpointConfigResponse -> NonEmpty ProductionVariant
productionVariants} -> NonEmpty ProductionVariant
productionVariants) (\s :: DescribeEndpointConfigResponse
s@DescribeEndpointConfigResponse' {} NonEmpty ProductionVariant
a -> DescribeEndpointConfigResponse
s {$sel:productionVariants:DescribeEndpointConfigResponse' :: NonEmpty ProductionVariant
productionVariants = NonEmpty ProductionVariant
a} :: DescribeEndpointConfigResponse) ((NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
 -> DescribeEndpointConfigResponse
 -> f DescribeEndpointConfigResponse)
-> ((NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
    -> NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
-> (NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
-> DescribeEndpointConfigResponse
-> f DescribeEndpointConfigResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
-> NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A timestamp that shows when the endpoint configuration was created.
describeEndpointConfigResponse_creationTime :: Lens.Lens' DescribeEndpointConfigResponse Prelude.UTCTime
describeEndpointConfigResponse_creationTime :: (UTCTime -> f UTCTime)
-> DescribeEndpointConfigResponse
-> f DescribeEndpointConfigResponse
describeEndpointConfigResponse_creationTime = (DescribeEndpointConfigResponse -> POSIX)
-> (DescribeEndpointConfigResponse
    -> POSIX -> DescribeEndpointConfigResponse)
-> Lens
     DescribeEndpointConfigResponse
     DescribeEndpointConfigResponse
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeEndpointConfigResponse' {POSIX
creationTime :: POSIX
$sel:creationTime:DescribeEndpointConfigResponse' :: DescribeEndpointConfigResponse -> POSIX
creationTime} -> POSIX
creationTime) (\s :: DescribeEndpointConfigResponse
s@DescribeEndpointConfigResponse' {} POSIX
a -> DescribeEndpointConfigResponse
s {$sel:creationTime:DescribeEndpointConfigResponse' :: POSIX
creationTime = POSIX
a} :: DescribeEndpointConfigResponse) ((POSIX -> f POSIX)
 -> DescribeEndpointConfigResponse
 -> f DescribeEndpointConfigResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeEndpointConfigResponse
-> f DescribeEndpointConfigResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

instance
  Prelude.NFData
    DescribeEndpointConfigResponse