{-# 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 #-}
module Amazonka.MigrationHubReFactorSpaces.Types.LambdaEndpointConfig 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
data LambdaEndpointConfig = LambdaEndpointConfig'
{
LambdaEndpointConfig -> Maybe Text
arn :: Prelude.Maybe Prelude.Text
}
deriving (LambdaEndpointConfig -> LambdaEndpointConfig -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LambdaEndpointConfig -> LambdaEndpointConfig -> Bool
$c/= :: LambdaEndpointConfig -> LambdaEndpointConfig -> Bool
== :: LambdaEndpointConfig -> LambdaEndpointConfig -> Bool
$c== :: LambdaEndpointConfig -> LambdaEndpointConfig -> Bool
Prelude.Eq, ReadPrec [LambdaEndpointConfig]
ReadPrec LambdaEndpointConfig
Int -> ReadS LambdaEndpointConfig
ReadS [LambdaEndpointConfig]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LambdaEndpointConfig]
$creadListPrec :: ReadPrec [LambdaEndpointConfig]
readPrec :: ReadPrec LambdaEndpointConfig
$creadPrec :: ReadPrec LambdaEndpointConfig
readList :: ReadS [LambdaEndpointConfig]
$creadList :: ReadS [LambdaEndpointConfig]
readsPrec :: Int -> ReadS LambdaEndpointConfig
$creadsPrec :: Int -> ReadS LambdaEndpointConfig
Prelude.Read, Int -> LambdaEndpointConfig -> ShowS
[LambdaEndpointConfig] -> ShowS
LambdaEndpointConfig -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LambdaEndpointConfig] -> ShowS
$cshowList :: [LambdaEndpointConfig] -> ShowS
show :: LambdaEndpointConfig -> String
$cshow :: LambdaEndpointConfig -> String
showsPrec :: Int -> LambdaEndpointConfig -> ShowS
$cshowsPrec :: Int -> LambdaEndpointConfig -> ShowS
Prelude.Show, forall x. Rep LambdaEndpointConfig x -> LambdaEndpointConfig
forall x. LambdaEndpointConfig -> Rep LambdaEndpointConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LambdaEndpointConfig x -> LambdaEndpointConfig
$cfrom :: forall x. LambdaEndpointConfig -> Rep LambdaEndpointConfig x
Prelude.Generic)
newLambdaEndpointConfig ::
LambdaEndpointConfig
newLambdaEndpointConfig :: LambdaEndpointConfig
newLambdaEndpointConfig =
LambdaEndpointConfig' {$sel:arn:LambdaEndpointConfig' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing}
lambdaEndpointConfig_arn :: Lens.Lens' LambdaEndpointConfig (Prelude.Maybe Prelude.Text)
lambdaEndpointConfig_arn :: Lens' LambdaEndpointConfig (Maybe Text)
lambdaEndpointConfig_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LambdaEndpointConfig' {Maybe Text
arn :: Maybe Text
$sel:arn:LambdaEndpointConfig' :: LambdaEndpointConfig -> Maybe Text
arn} -> Maybe Text
arn) (\s :: LambdaEndpointConfig
s@LambdaEndpointConfig' {} Maybe Text
a -> LambdaEndpointConfig
s {$sel:arn:LambdaEndpointConfig' :: Maybe Text
arn = Maybe Text
a} :: LambdaEndpointConfig)
instance Data.FromJSON LambdaEndpointConfig where
parseJSON :: Value -> Parser LambdaEndpointConfig
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"LambdaEndpointConfig"
( \Object
x ->
Maybe Text -> LambdaEndpointConfig
LambdaEndpointConfig' 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
"Arn")
)
instance Prelude.Hashable LambdaEndpointConfig where
hashWithSalt :: Int -> LambdaEndpointConfig -> Int
hashWithSalt Int
_salt LambdaEndpointConfig' {Maybe Text
arn :: Maybe Text
$sel:arn:LambdaEndpointConfig' :: LambdaEndpointConfig -> Maybe Text
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
arn
instance Prelude.NFData LambdaEndpointConfig where
rnf :: LambdaEndpointConfig -> ()
rnf LambdaEndpointConfig' {Maybe Text
arn :: Maybe Text
$sel:arn:LambdaEndpointConfig' :: LambdaEndpointConfig -> Maybe Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn