{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

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

-- |
-- Module      : Amazonka.Comprehend.Types.EndpointProperties
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Comprehend.Types.EndpointProperties where

import Amazonka.Comprehend.Types.EndpointStatus
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

-- | Specifies information about the specified endpoint. For information
-- about endpoints, see
-- <https://docs.aws.amazon.com/comprehend/latest/dg/manage-endpoints.html Managing endpoints>.
--
-- /See:/ 'newEndpointProperties' smart constructor.
data EndpointProperties = EndpointProperties'
  { -- | The creation date and time of the endpoint.
    EndpointProperties -> Maybe POSIX
creationTime :: Prelude.Maybe Data.POSIX,
    -- | The number of inference units currently used by the model using this
    -- endpoint.
    EndpointProperties -> Maybe Natural
currentInferenceUnits :: Prelude.Maybe Prelude.Natural,
    -- | The Amazon Resource Name (ARN) of the AWS identity and Access Management
    -- (IAM) role that grants Amazon Comprehend read access to trained custom
    -- models encrypted with a customer managed key (ModelKmsKeyId).
    EndpointProperties -> Maybe Text
dataAccessRoleArn :: Prelude.Maybe Prelude.Text,
    -- | Data access role ARN to use in case the new model is encrypted with a
    -- customer KMS key.
    EndpointProperties -> Maybe Text
desiredDataAccessRoleArn :: Prelude.Maybe Prelude.Text,
    -- | The desired number of inference units to be used by the model using this
    -- endpoint. Each inference unit represents of a throughput of 100
    -- characters per second.
    EndpointProperties -> Maybe Natural
desiredInferenceUnits :: Prelude.Maybe Prelude.Natural,
    -- | ARN of the new model to use for updating an existing endpoint. This ARN
    -- is going to be different from the model ARN when the update is in
    -- progress
    EndpointProperties -> Maybe Text
desiredModelArn :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Number (ARN) of the endpoint.
    EndpointProperties -> Maybe Text
endpointArn :: Prelude.Maybe Prelude.Text,
    -- | The date and time that the endpoint was last modified.
    EndpointProperties -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Data.POSIX,
    -- | Specifies a reason for failure in cases of @Failed@ status.
    EndpointProperties -> Maybe Text
message :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Number (ARN) of the model to which the endpoint is
    -- attached.
    EndpointProperties -> Maybe Text
modelArn :: Prelude.Maybe Prelude.Text,
    -- | Specifies the status of the endpoint. Because the endpoint updates and
    -- creation are asynchronous, so customers will need to wait for the
    -- endpoint to be @Ready@ status before making inference requests.
    EndpointProperties -> Maybe EndpointStatus
status :: Prelude.Maybe EndpointStatus
  }
  deriving (EndpointProperties -> EndpointProperties -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EndpointProperties -> EndpointProperties -> Bool
$c/= :: EndpointProperties -> EndpointProperties -> Bool
== :: EndpointProperties -> EndpointProperties -> Bool
$c== :: EndpointProperties -> EndpointProperties -> Bool
Prelude.Eq, ReadPrec [EndpointProperties]
ReadPrec EndpointProperties
Int -> ReadS EndpointProperties
ReadS [EndpointProperties]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [EndpointProperties]
$creadListPrec :: ReadPrec [EndpointProperties]
readPrec :: ReadPrec EndpointProperties
$creadPrec :: ReadPrec EndpointProperties
readList :: ReadS [EndpointProperties]
$creadList :: ReadS [EndpointProperties]
readsPrec :: Int -> ReadS EndpointProperties
$creadsPrec :: Int -> ReadS EndpointProperties
Prelude.Read, Int -> EndpointProperties -> ShowS
[EndpointProperties] -> ShowS
EndpointProperties -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EndpointProperties] -> ShowS
$cshowList :: [EndpointProperties] -> ShowS
show :: EndpointProperties -> String
$cshow :: EndpointProperties -> String
showsPrec :: Int -> EndpointProperties -> ShowS
$cshowsPrec :: Int -> EndpointProperties -> ShowS
Prelude.Show, forall x. Rep EndpointProperties x -> EndpointProperties
forall x. EndpointProperties -> Rep EndpointProperties x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EndpointProperties x -> EndpointProperties
$cfrom :: forall x. EndpointProperties -> Rep EndpointProperties x
Prelude.Generic)

-- |
-- Create a value of 'EndpointProperties' 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:
--
-- 'creationTime', 'endpointProperties_creationTime' - The creation date and time of the endpoint.
--
-- 'currentInferenceUnits', 'endpointProperties_currentInferenceUnits' - The number of inference units currently used by the model using this
-- endpoint.
--
-- 'dataAccessRoleArn', 'endpointProperties_dataAccessRoleArn' - The Amazon Resource Name (ARN) of the AWS identity and Access Management
-- (IAM) role that grants Amazon Comprehend read access to trained custom
-- models encrypted with a customer managed key (ModelKmsKeyId).
--
-- 'desiredDataAccessRoleArn', 'endpointProperties_desiredDataAccessRoleArn' - Data access role ARN to use in case the new model is encrypted with a
-- customer KMS key.
--
-- 'desiredInferenceUnits', 'endpointProperties_desiredInferenceUnits' - The desired number of inference units to be used by the model using this
-- endpoint. Each inference unit represents of a throughput of 100
-- characters per second.
--
-- 'desiredModelArn', 'endpointProperties_desiredModelArn' - ARN of the new model to use for updating an existing endpoint. This ARN
-- is going to be different from the model ARN when the update is in
-- progress
--
-- 'endpointArn', 'endpointProperties_endpointArn' - The Amazon Resource Number (ARN) of the endpoint.
--
-- 'lastModifiedTime', 'endpointProperties_lastModifiedTime' - The date and time that the endpoint was last modified.
--
-- 'message', 'endpointProperties_message' - Specifies a reason for failure in cases of @Failed@ status.
--
-- 'modelArn', 'endpointProperties_modelArn' - The Amazon Resource Number (ARN) of the model to which the endpoint is
-- attached.
--
-- 'status', 'endpointProperties_status' - Specifies the status of the endpoint. Because the endpoint updates and
-- creation are asynchronous, so customers will need to wait for the
-- endpoint to be @Ready@ status before making inference requests.
newEndpointProperties ::
  EndpointProperties
newEndpointProperties :: EndpointProperties
newEndpointProperties =
  EndpointProperties'
    { $sel:creationTime:EndpointProperties' :: Maybe POSIX
creationTime = forall a. Maybe a
Prelude.Nothing,
      $sel:currentInferenceUnits:EndpointProperties' :: Maybe Natural
currentInferenceUnits = forall a. Maybe a
Prelude.Nothing,
      $sel:dataAccessRoleArn:EndpointProperties' :: Maybe Text
dataAccessRoleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:desiredDataAccessRoleArn:EndpointProperties' :: Maybe Text
desiredDataAccessRoleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:desiredInferenceUnits:EndpointProperties' :: Maybe Natural
desiredInferenceUnits = forall a. Maybe a
Prelude.Nothing,
      $sel:desiredModelArn:EndpointProperties' :: Maybe Text
desiredModelArn = forall a. Maybe a
Prelude.Nothing,
      $sel:endpointArn:EndpointProperties' :: Maybe Text
endpointArn = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedTime:EndpointProperties' :: Maybe POSIX
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
      $sel:message:EndpointProperties' :: Maybe Text
message = forall a. Maybe a
Prelude.Nothing,
      $sel:modelArn:EndpointProperties' :: Maybe Text
modelArn = forall a. Maybe a
Prelude.Nothing,
      $sel:status:EndpointProperties' :: Maybe EndpointStatus
status = forall a. Maybe a
Prelude.Nothing
    }

-- | The creation date and time of the endpoint.
endpointProperties_creationTime :: Lens.Lens' EndpointProperties (Prelude.Maybe Prelude.UTCTime)
endpointProperties_creationTime :: Lens' EndpointProperties (Maybe UTCTime)
endpointProperties_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:EndpointProperties' :: EndpointProperties -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe POSIX
a -> EndpointProperties
s {$sel:creationTime:EndpointProperties' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: EndpointProperties) 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 number of inference units currently used by the model using this
-- endpoint.
endpointProperties_currentInferenceUnits :: Lens.Lens' EndpointProperties (Prelude.Maybe Prelude.Natural)
endpointProperties_currentInferenceUnits :: Lens' EndpointProperties (Maybe Natural)
endpointProperties_currentInferenceUnits = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe Natural
currentInferenceUnits :: Maybe Natural
$sel:currentInferenceUnits:EndpointProperties' :: EndpointProperties -> Maybe Natural
currentInferenceUnits} -> Maybe Natural
currentInferenceUnits) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe Natural
a -> EndpointProperties
s {$sel:currentInferenceUnits:EndpointProperties' :: Maybe Natural
currentInferenceUnits = Maybe Natural
a} :: EndpointProperties)

-- | The Amazon Resource Name (ARN) of the AWS identity and Access Management
-- (IAM) role that grants Amazon Comprehend read access to trained custom
-- models encrypted with a customer managed key (ModelKmsKeyId).
endpointProperties_dataAccessRoleArn :: Lens.Lens' EndpointProperties (Prelude.Maybe Prelude.Text)
endpointProperties_dataAccessRoleArn :: Lens' EndpointProperties (Maybe Text)
endpointProperties_dataAccessRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe Text
dataAccessRoleArn :: Maybe Text
$sel:dataAccessRoleArn:EndpointProperties' :: EndpointProperties -> Maybe Text
dataAccessRoleArn} -> Maybe Text
dataAccessRoleArn) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe Text
a -> EndpointProperties
s {$sel:dataAccessRoleArn:EndpointProperties' :: Maybe Text
dataAccessRoleArn = Maybe Text
a} :: EndpointProperties)

-- | Data access role ARN to use in case the new model is encrypted with a
-- customer KMS key.
endpointProperties_desiredDataAccessRoleArn :: Lens.Lens' EndpointProperties (Prelude.Maybe Prelude.Text)
endpointProperties_desiredDataAccessRoleArn :: Lens' EndpointProperties (Maybe Text)
endpointProperties_desiredDataAccessRoleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe Text
desiredDataAccessRoleArn :: Maybe Text
$sel:desiredDataAccessRoleArn:EndpointProperties' :: EndpointProperties -> Maybe Text
desiredDataAccessRoleArn} -> Maybe Text
desiredDataAccessRoleArn) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe Text
a -> EndpointProperties
s {$sel:desiredDataAccessRoleArn:EndpointProperties' :: Maybe Text
desiredDataAccessRoleArn = Maybe Text
a} :: EndpointProperties)

-- | The desired number of inference units to be used by the model using this
-- endpoint. Each inference unit represents of a throughput of 100
-- characters per second.
endpointProperties_desiredInferenceUnits :: Lens.Lens' EndpointProperties (Prelude.Maybe Prelude.Natural)
endpointProperties_desiredInferenceUnits :: Lens' EndpointProperties (Maybe Natural)
endpointProperties_desiredInferenceUnits = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe Natural
desiredInferenceUnits :: Maybe Natural
$sel:desiredInferenceUnits:EndpointProperties' :: EndpointProperties -> Maybe Natural
desiredInferenceUnits} -> Maybe Natural
desiredInferenceUnits) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe Natural
a -> EndpointProperties
s {$sel:desiredInferenceUnits:EndpointProperties' :: Maybe Natural
desiredInferenceUnits = Maybe Natural
a} :: EndpointProperties)

-- | ARN of the new model to use for updating an existing endpoint. This ARN
-- is going to be different from the model ARN when the update is in
-- progress
endpointProperties_desiredModelArn :: Lens.Lens' EndpointProperties (Prelude.Maybe Prelude.Text)
endpointProperties_desiredModelArn :: Lens' EndpointProperties (Maybe Text)
endpointProperties_desiredModelArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe Text
desiredModelArn :: Maybe Text
$sel:desiredModelArn:EndpointProperties' :: EndpointProperties -> Maybe Text
desiredModelArn} -> Maybe Text
desiredModelArn) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe Text
a -> EndpointProperties
s {$sel:desiredModelArn:EndpointProperties' :: Maybe Text
desiredModelArn = Maybe Text
a} :: EndpointProperties)

-- | The Amazon Resource Number (ARN) of the endpoint.
endpointProperties_endpointArn :: Lens.Lens' EndpointProperties (Prelude.Maybe Prelude.Text)
endpointProperties_endpointArn :: Lens' EndpointProperties (Maybe Text)
endpointProperties_endpointArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe Text
endpointArn :: Maybe Text
$sel:endpointArn:EndpointProperties' :: EndpointProperties -> Maybe Text
endpointArn} -> Maybe Text
endpointArn) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe Text
a -> EndpointProperties
s {$sel:endpointArn:EndpointProperties' :: Maybe Text
endpointArn = Maybe Text
a} :: EndpointProperties)

-- | The date and time that the endpoint was last modified.
endpointProperties_lastModifiedTime :: Lens.Lens' EndpointProperties (Prelude.Maybe Prelude.UTCTime)
endpointProperties_lastModifiedTime :: Lens' EndpointProperties (Maybe UTCTime)
endpointProperties_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:EndpointProperties' :: EndpointProperties -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe POSIX
a -> EndpointProperties
s {$sel:lastModifiedTime:EndpointProperties' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: EndpointProperties) 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

-- | Specifies a reason for failure in cases of @Failed@ status.
endpointProperties_message :: Lens.Lens' EndpointProperties (Prelude.Maybe Prelude.Text)
endpointProperties_message :: Lens' EndpointProperties (Maybe Text)
endpointProperties_message = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe Text
message :: Maybe Text
$sel:message:EndpointProperties' :: EndpointProperties -> Maybe Text
message} -> Maybe Text
message) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe Text
a -> EndpointProperties
s {$sel:message:EndpointProperties' :: Maybe Text
message = Maybe Text
a} :: EndpointProperties)

-- | The Amazon Resource Number (ARN) of the model to which the endpoint is
-- attached.
endpointProperties_modelArn :: Lens.Lens' EndpointProperties (Prelude.Maybe Prelude.Text)
endpointProperties_modelArn :: Lens' EndpointProperties (Maybe Text)
endpointProperties_modelArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe Text
modelArn :: Maybe Text
$sel:modelArn:EndpointProperties' :: EndpointProperties -> Maybe Text
modelArn} -> Maybe Text
modelArn) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe Text
a -> EndpointProperties
s {$sel:modelArn:EndpointProperties' :: Maybe Text
modelArn = Maybe Text
a} :: EndpointProperties)

-- | Specifies the status of the endpoint. Because the endpoint updates and
-- creation are asynchronous, so customers will need to wait for the
-- endpoint to be @Ready@ status before making inference requests.
endpointProperties_status :: Lens.Lens' EndpointProperties (Prelude.Maybe EndpointStatus)
endpointProperties_status :: Lens' EndpointProperties (Maybe EndpointStatus)
endpointProperties_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EndpointProperties' {Maybe EndpointStatus
status :: Maybe EndpointStatus
$sel:status:EndpointProperties' :: EndpointProperties -> Maybe EndpointStatus
status} -> Maybe EndpointStatus
status) (\s :: EndpointProperties
s@EndpointProperties' {} Maybe EndpointStatus
a -> EndpointProperties
s {$sel:status:EndpointProperties' :: Maybe EndpointStatus
status = Maybe EndpointStatus
a} :: EndpointProperties)

instance Data.FromJSON EndpointProperties where
  parseJSON :: Value -> Parser EndpointProperties
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"EndpointProperties"
      ( \Object
x ->
          Maybe POSIX
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe EndpointStatus
-> EndpointProperties
EndpointProperties'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (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 -> Parser (Maybe a)
Data..:? Key
"CurrentInferenceUnits")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DataAccessRoleArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DesiredDataAccessRoleArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DesiredInferenceUnits")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DesiredModelArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EndpointArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (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 -> Parser (Maybe a)
Data..:? Key
"Message")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ModelArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Status")
      )

instance Prelude.Hashable EndpointProperties where
  hashWithSalt :: Int -> EndpointProperties -> Int
hashWithSalt Int
_salt EndpointProperties' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe EndpointStatus
status :: Maybe EndpointStatus
modelArn :: Maybe Text
message :: Maybe Text
lastModifiedTime :: Maybe POSIX
endpointArn :: Maybe Text
desiredModelArn :: Maybe Text
desiredInferenceUnits :: Maybe Natural
desiredDataAccessRoleArn :: Maybe Text
dataAccessRoleArn :: Maybe Text
currentInferenceUnits :: Maybe Natural
creationTime :: Maybe POSIX
$sel:status:EndpointProperties' :: EndpointProperties -> Maybe EndpointStatus
$sel:modelArn:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:message:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:lastModifiedTime:EndpointProperties' :: EndpointProperties -> Maybe POSIX
$sel:endpointArn:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:desiredModelArn:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:desiredInferenceUnits:EndpointProperties' :: EndpointProperties -> Maybe Natural
$sel:desiredDataAccessRoleArn:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:dataAccessRoleArn:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:currentInferenceUnits:EndpointProperties' :: EndpointProperties -> Maybe Natural
$sel:creationTime:EndpointProperties' :: EndpointProperties -> Maybe POSIX
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
currentInferenceUnits
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dataAccessRoleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
desiredDataAccessRoleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
desiredInferenceUnits
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
desiredModelArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
endpointArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastModifiedTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
message
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
modelArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EndpointStatus
status

instance Prelude.NFData EndpointProperties where
  rnf :: EndpointProperties -> ()
rnf EndpointProperties' {Maybe Natural
Maybe Text
Maybe POSIX
Maybe EndpointStatus
status :: Maybe EndpointStatus
modelArn :: Maybe Text
message :: Maybe Text
lastModifiedTime :: Maybe POSIX
endpointArn :: Maybe Text
desiredModelArn :: Maybe Text
desiredInferenceUnits :: Maybe Natural
desiredDataAccessRoleArn :: Maybe Text
dataAccessRoleArn :: Maybe Text
currentInferenceUnits :: Maybe Natural
creationTime :: Maybe POSIX
$sel:status:EndpointProperties' :: EndpointProperties -> Maybe EndpointStatus
$sel:modelArn:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:message:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:lastModifiedTime:EndpointProperties' :: EndpointProperties -> Maybe POSIX
$sel:endpointArn:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:desiredModelArn:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:desiredInferenceUnits:EndpointProperties' :: EndpointProperties -> Maybe Natural
$sel:desiredDataAccessRoleArn:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:dataAccessRoleArn:EndpointProperties' :: EndpointProperties -> Maybe Text
$sel:currentInferenceUnits:EndpointProperties' :: EndpointProperties -> Maybe Natural
$sel:creationTime:EndpointProperties' :: EndpointProperties -> Maybe POSIX
..} =
    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 Natural
currentInferenceUnits
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dataAccessRoleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
desiredDataAccessRoleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
desiredInferenceUnits
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
desiredModelArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
endpointArn
      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
message
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
modelArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EndpointStatus
status