{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SageMaker.CreateEndpointConfig
(
CreateEndpointConfig (..),
newCreateEndpointConfig,
createEndpointConfig_asyncInferenceConfig,
createEndpointConfig_kmsKeyId,
createEndpointConfig_dataCaptureConfig,
createEndpointConfig_tags,
createEndpointConfig_endpointConfigName,
createEndpointConfig_productionVariants,
CreateEndpointConfigResponse (..),
newCreateEndpointConfigResponse,
createEndpointConfigResponse_httpStatus,
createEndpointConfigResponse_endpointConfigArn,
)
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
data CreateEndpointConfig = CreateEndpointConfig'
{
CreateEndpointConfig -> Maybe AsyncInferenceConfig
asyncInferenceConfig :: Prelude.Maybe AsyncInferenceConfig,
CreateEndpointConfig -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
CreateEndpointConfig -> Maybe DataCaptureConfig
dataCaptureConfig :: Prelude.Maybe DataCaptureConfig,
CreateEndpointConfig -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateEndpointConfig -> Text
endpointConfigName :: Prelude.Text,
CreateEndpointConfig -> NonEmpty ProductionVariant
productionVariants :: Prelude.NonEmpty ProductionVariant
}
deriving (CreateEndpointConfig -> CreateEndpointConfig -> Bool
(CreateEndpointConfig -> CreateEndpointConfig -> Bool)
-> (CreateEndpointConfig -> CreateEndpointConfig -> Bool)
-> Eq CreateEndpointConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEndpointConfig -> CreateEndpointConfig -> Bool
$c/= :: CreateEndpointConfig -> CreateEndpointConfig -> Bool
== :: CreateEndpointConfig -> CreateEndpointConfig -> Bool
$c== :: CreateEndpointConfig -> CreateEndpointConfig -> Bool
Prelude.Eq, ReadPrec [CreateEndpointConfig]
ReadPrec CreateEndpointConfig
Int -> ReadS CreateEndpointConfig
ReadS [CreateEndpointConfig]
(Int -> ReadS CreateEndpointConfig)
-> ReadS [CreateEndpointConfig]
-> ReadPrec CreateEndpointConfig
-> ReadPrec [CreateEndpointConfig]
-> Read CreateEndpointConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateEndpointConfig]
$creadListPrec :: ReadPrec [CreateEndpointConfig]
readPrec :: ReadPrec CreateEndpointConfig
$creadPrec :: ReadPrec CreateEndpointConfig
readList :: ReadS [CreateEndpointConfig]
$creadList :: ReadS [CreateEndpointConfig]
readsPrec :: Int -> ReadS CreateEndpointConfig
$creadsPrec :: Int -> ReadS CreateEndpointConfig
Prelude.Read, Int -> CreateEndpointConfig -> ShowS
[CreateEndpointConfig] -> ShowS
CreateEndpointConfig -> String
(Int -> CreateEndpointConfig -> ShowS)
-> (CreateEndpointConfig -> String)
-> ([CreateEndpointConfig] -> ShowS)
-> Show CreateEndpointConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEndpointConfig] -> ShowS
$cshowList :: [CreateEndpointConfig] -> ShowS
show :: CreateEndpointConfig -> String
$cshow :: CreateEndpointConfig -> String
showsPrec :: Int -> CreateEndpointConfig -> ShowS
$cshowsPrec :: Int -> CreateEndpointConfig -> ShowS
Prelude.Show, (forall x. CreateEndpointConfig -> Rep CreateEndpointConfig x)
-> (forall x. Rep CreateEndpointConfig x -> CreateEndpointConfig)
-> Generic CreateEndpointConfig
forall x. Rep CreateEndpointConfig x -> CreateEndpointConfig
forall x. CreateEndpointConfig -> Rep CreateEndpointConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateEndpointConfig x -> CreateEndpointConfig
$cfrom :: forall x. CreateEndpointConfig -> Rep CreateEndpointConfig x
Prelude.Generic)
newCreateEndpointConfig ::
Prelude.Text ->
Prelude.NonEmpty ProductionVariant ->
CreateEndpointConfig
newCreateEndpointConfig :: Text -> NonEmpty ProductionVariant -> CreateEndpointConfig
newCreateEndpointConfig
Text
pEndpointConfigName_
NonEmpty ProductionVariant
pProductionVariants_ =
CreateEndpointConfig' :: Maybe AsyncInferenceConfig
-> Maybe Text
-> Maybe DataCaptureConfig
-> Maybe [Tag]
-> Text
-> NonEmpty ProductionVariant
-> CreateEndpointConfig
CreateEndpointConfig'
{ $sel:asyncInferenceConfig:CreateEndpointConfig' :: Maybe AsyncInferenceConfig
asyncInferenceConfig =
Maybe AsyncInferenceConfig
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:CreateEndpointConfig' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dataCaptureConfig:CreateEndpointConfig' :: Maybe DataCaptureConfig
dataCaptureConfig = Maybe DataCaptureConfig
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateEndpointConfig' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:endpointConfigName:CreateEndpointConfig' :: Text
endpointConfigName = Text
pEndpointConfigName_,
$sel:productionVariants:CreateEndpointConfig' :: 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_
}
createEndpointConfig_asyncInferenceConfig :: Lens.Lens' CreateEndpointConfig (Prelude.Maybe AsyncInferenceConfig)
createEndpointConfig_asyncInferenceConfig :: (Maybe AsyncInferenceConfig -> f (Maybe AsyncInferenceConfig))
-> CreateEndpointConfig -> f CreateEndpointConfig
createEndpointConfig_asyncInferenceConfig = (CreateEndpointConfig -> Maybe AsyncInferenceConfig)
-> (CreateEndpointConfig
-> Maybe AsyncInferenceConfig -> CreateEndpointConfig)
-> Lens
CreateEndpointConfig
CreateEndpointConfig
(Maybe AsyncInferenceConfig)
(Maybe AsyncInferenceConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEndpointConfig' {Maybe AsyncInferenceConfig
asyncInferenceConfig :: Maybe AsyncInferenceConfig
$sel:asyncInferenceConfig:CreateEndpointConfig' :: CreateEndpointConfig -> Maybe AsyncInferenceConfig
asyncInferenceConfig} -> Maybe AsyncInferenceConfig
asyncInferenceConfig) (\s :: CreateEndpointConfig
s@CreateEndpointConfig' {} Maybe AsyncInferenceConfig
a -> CreateEndpointConfig
s {$sel:asyncInferenceConfig:CreateEndpointConfig' :: Maybe AsyncInferenceConfig
asyncInferenceConfig = Maybe AsyncInferenceConfig
a} :: CreateEndpointConfig)
createEndpointConfig_kmsKeyId :: Lens.Lens' CreateEndpointConfig (Prelude.Maybe Prelude.Text)
createEndpointConfig_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> CreateEndpointConfig -> f CreateEndpointConfig
createEndpointConfig_kmsKeyId = (CreateEndpointConfig -> Maybe Text)
-> (CreateEndpointConfig -> Maybe Text -> CreateEndpointConfig)
-> Lens
CreateEndpointConfig CreateEndpointConfig (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEndpointConfig' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:CreateEndpointConfig' :: CreateEndpointConfig -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: CreateEndpointConfig
s@CreateEndpointConfig' {} Maybe Text
a -> CreateEndpointConfig
s {$sel:kmsKeyId:CreateEndpointConfig' :: Maybe Text
kmsKeyId = Maybe Text
a} :: CreateEndpointConfig)
createEndpointConfig_dataCaptureConfig :: Lens.Lens' CreateEndpointConfig (Prelude.Maybe DataCaptureConfig)
createEndpointConfig_dataCaptureConfig :: (Maybe DataCaptureConfig -> f (Maybe DataCaptureConfig))
-> CreateEndpointConfig -> f CreateEndpointConfig
createEndpointConfig_dataCaptureConfig = (CreateEndpointConfig -> Maybe DataCaptureConfig)
-> (CreateEndpointConfig
-> Maybe DataCaptureConfig -> CreateEndpointConfig)
-> Lens
CreateEndpointConfig
CreateEndpointConfig
(Maybe DataCaptureConfig)
(Maybe DataCaptureConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEndpointConfig' {Maybe DataCaptureConfig
dataCaptureConfig :: Maybe DataCaptureConfig
$sel:dataCaptureConfig:CreateEndpointConfig' :: CreateEndpointConfig -> Maybe DataCaptureConfig
dataCaptureConfig} -> Maybe DataCaptureConfig
dataCaptureConfig) (\s :: CreateEndpointConfig
s@CreateEndpointConfig' {} Maybe DataCaptureConfig
a -> CreateEndpointConfig
s {$sel:dataCaptureConfig:CreateEndpointConfig' :: Maybe DataCaptureConfig
dataCaptureConfig = Maybe DataCaptureConfig
a} :: CreateEndpointConfig)
createEndpointConfig_tags :: Lens.Lens' CreateEndpointConfig (Prelude.Maybe [Tag])
createEndpointConfig_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateEndpointConfig -> f CreateEndpointConfig
createEndpointConfig_tags = (CreateEndpointConfig -> Maybe [Tag])
-> (CreateEndpointConfig -> Maybe [Tag] -> CreateEndpointConfig)
-> Lens
CreateEndpointConfig
CreateEndpointConfig
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEndpointConfig' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateEndpointConfig' :: CreateEndpointConfig -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateEndpointConfig
s@CreateEndpointConfig' {} Maybe [Tag]
a -> CreateEndpointConfig
s {$sel:tags:CreateEndpointConfig' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateEndpointConfig) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateEndpointConfig -> f CreateEndpointConfig)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateEndpointConfig
-> f CreateEndpointConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createEndpointConfig_endpointConfigName :: Lens.Lens' CreateEndpointConfig Prelude.Text
createEndpointConfig_endpointConfigName :: (Text -> f Text) -> CreateEndpointConfig -> f CreateEndpointConfig
createEndpointConfig_endpointConfigName = (CreateEndpointConfig -> Text)
-> (CreateEndpointConfig -> Text -> CreateEndpointConfig)
-> Lens CreateEndpointConfig CreateEndpointConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEndpointConfig' {Text
endpointConfigName :: Text
$sel:endpointConfigName:CreateEndpointConfig' :: CreateEndpointConfig -> Text
endpointConfigName} -> Text
endpointConfigName) (\s :: CreateEndpointConfig
s@CreateEndpointConfig' {} Text
a -> CreateEndpointConfig
s {$sel:endpointConfigName:CreateEndpointConfig' :: Text
endpointConfigName = Text
a} :: CreateEndpointConfig)
createEndpointConfig_productionVariants :: Lens.Lens' CreateEndpointConfig (Prelude.NonEmpty ProductionVariant)
createEndpointConfig_productionVariants :: (NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
-> CreateEndpointConfig -> f CreateEndpointConfig
createEndpointConfig_productionVariants = (CreateEndpointConfig -> NonEmpty ProductionVariant)
-> (CreateEndpointConfig
-> NonEmpty ProductionVariant -> CreateEndpointConfig)
-> Lens
CreateEndpointConfig
CreateEndpointConfig
(NonEmpty ProductionVariant)
(NonEmpty ProductionVariant)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEndpointConfig' {NonEmpty ProductionVariant
productionVariants :: NonEmpty ProductionVariant
$sel:productionVariants:CreateEndpointConfig' :: CreateEndpointConfig -> NonEmpty ProductionVariant
productionVariants} -> NonEmpty ProductionVariant
productionVariants) (\s :: CreateEndpointConfig
s@CreateEndpointConfig' {} NonEmpty ProductionVariant
a -> CreateEndpointConfig
s {$sel:productionVariants:CreateEndpointConfig' :: NonEmpty ProductionVariant
productionVariants = NonEmpty ProductionVariant
a} :: CreateEndpointConfig) ((NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
-> CreateEndpointConfig -> f CreateEndpointConfig)
-> ((NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
-> NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
-> (NonEmpty ProductionVariant -> f (NonEmpty ProductionVariant))
-> CreateEndpointConfig
-> f CreateEndpointConfig
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
instance Core.AWSRequest CreateEndpointConfig where
type
AWSResponse CreateEndpointConfig =
CreateEndpointConfigResponse
request :: CreateEndpointConfig -> Request CreateEndpointConfig
request = Service -> CreateEndpointConfig -> Request CreateEndpointConfig
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateEndpointConfig
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateEndpointConfig)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateEndpointConfig))
-> Logger
-> Service
-> Proxy CreateEndpointConfig
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateEndpointConfig)))
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 ->
Int -> Text -> CreateEndpointConfigResponse
CreateEndpointConfigResponse'
(Int -> Text -> CreateEndpointConfigResponse)
-> Either String Int
-> Either String (Text -> CreateEndpointConfigResponse)
forall (f :: * -> *) a b. Functor 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 -> CreateEndpointConfigResponse)
-> Either String Text -> Either String CreateEndpointConfigResponse
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")
)
instance Prelude.Hashable CreateEndpointConfig
instance Prelude.NFData CreateEndpointConfig
instance Core.ToHeaders CreateEndpointConfig where
toHeaders :: CreateEndpointConfig -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateEndpointConfig -> 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.CreateEndpointConfig" ::
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 CreateEndpointConfig where
toJSON :: CreateEndpointConfig -> Value
toJSON CreateEndpointConfig' {Maybe [Tag]
Maybe Text
Maybe AsyncInferenceConfig
Maybe DataCaptureConfig
NonEmpty ProductionVariant
Text
productionVariants :: NonEmpty ProductionVariant
endpointConfigName :: Text
tags :: Maybe [Tag]
dataCaptureConfig :: Maybe DataCaptureConfig
kmsKeyId :: Maybe Text
asyncInferenceConfig :: Maybe AsyncInferenceConfig
$sel:productionVariants:CreateEndpointConfig' :: CreateEndpointConfig -> NonEmpty ProductionVariant
$sel:endpointConfigName:CreateEndpointConfig' :: CreateEndpointConfig -> Text
$sel:tags:CreateEndpointConfig' :: CreateEndpointConfig -> Maybe [Tag]
$sel:dataCaptureConfig:CreateEndpointConfig' :: CreateEndpointConfig -> Maybe DataCaptureConfig
$sel:kmsKeyId:CreateEndpointConfig' :: CreateEndpointConfig -> Maybe Text
$sel:asyncInferenceConfig:CreateEndpointConfig' :: CreateEndpointConfig -> Maybe AsyncInferenceConfig
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"AsyncInferenceConfig" Text -> AsyncInferenceConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(AsyncInferenceConfig -> Pair)
-> Maybe AsyncInferenceConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AsyncInferenceConfig
asyncInferenceConfig,
(Text
"KmsKeyId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
kmsKeyId,
(Text
"DataCaptureConfig" Text -> DataCaptureConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(DataCaptureConfig -> Pair)
-> Maybe DataCaptureConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DataCaptureConfig
dataCaptureConfig,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
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),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ProductionVariants" Text -> NonEmpty ProductionVariant -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty ProductionVariant
productionVariants)
]
)
instance Core.ToPath CreateEndpointConfig where
toPath :: CreateEndpointConfig -> ByteString
toPath = ByteString -> CreateEndpointConfig -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateEndpointConfig where
toQuery :: CreateEndpointConfig -> QueryString
toQuery = QueryString -> CreateEndpointConfig -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateEndpointConfigResponse = CreateEndpointConfigResponse'
{
CreateEndpointConfigResponse -> Int
httpStatus :: Prelude.Int,
CreateEndpointConfigResponse -> Text
endpointConfigArn :: Prelude.Text
}
deriving (CreateEndpointConfigResponse
-> CreateEndpointConfigResponse -> Bool
(CreateEndpointConfigResponse
-> CreateEndpointConfigResponse -> Bool)
-> (CreateEndpointConfigResponse
-> CreateEndpointConfigResponse -> Bool)
-> Eq CreateEndpointConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEndpointConfigResponse
-> CreateEndpointConfigResponse -> Bool
$c/= :: CreateEndpointConfigResponse
-> CreateEndpointConfigResponse -> Bool
== :: CreateEndpointConfigResponse
-> CreateEndpointConfigResponse -> Bool
$c== :: CreateEndpointConfigResponse
-> CreateEndpointConfigResponse -> Bool
Prelude.Eq, ReadPrec [CreateEndpointConfigResponse]
ReadPrec CreateEndpointConfigResponse
Int -> ReadS CreateEndpointConfigResponse
ReadS [CreateEndpointConfigResponse]
(Int -> ReadS CreateEndpointConfigResponse)
-> ReadS [CreateEndpointConfigResponse]
-> ReadPrec CreateEndpointConfigResponse
-> ReadPrec [CreateEndpointConfigResponse]
-> Read CreateEndpointConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateEndpointConfigResponse]
$creadListPrec :: ReadPrec [CreateEndpointConfigResponse]
readPrec :: ReadPrec CreateEndpointConfigResponse
$creadPrec :: ReadPrec CreateEndpointConfigResponse
readList :: ReadS [CreateEndpointConfigResponse]
$creadList :: ReadS [CreateEndpointConfigResponse]
readsPrec :: Int -> ReadS CreateEndpointConfigResponse
$creadsPrec :: Int -> ReadS CreateEndpointConfigResponse
Prelude.Read, Int -> CreateEndpointConfigResponse -> ShowS
[CreateEndpointConfigResponse] -> ShowS
CreateEndpointConfigResponse -> String
(Int -> CreateEndpointConfigResponse -> ShowS)
-> (CreateEndpointConfigResponse -> String)
-> ([CreateEndpointConfigResponse] -> ShowS)
-> Show CreateEndpointConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEndpointConfigResponse] -> ShowS
$cshowList :: [CreateEndpointConfigResponse] -> ShowS
show :: CreateEndpointConfigResponse -> String
$cshow :: CreateEndpointConfigResponse -> String
showsPrec :: Int -> CreateEndpointConfigResponse -> ShowS
$cshowsPrec :: Int -> CreateEndpointConfigResponse -> ShowS
Prelude.Show, (forall x.
CreateEndpointConfigResponse -> Rep CreateEndpointConfigResponse x)
-> (forall x.
Rep CreateEndpointConfigResponse x -> CreateEndpointConfigResponse)
-> Generic CreateEndpointConfigResponse
forall x.
Rep CreateEndpointConfigResponse x -> CreateEndpointConfigResponse
forall x.
CreateEndpointConfigResponse -> Rep CreateEndpointConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateEndpointConfigResponse x -> CreateEndpointConfigResponse
$cfrom :: forall x.
CreateEndpointConfigResponse -> Rep CreateEndpointConfigResponse x
Prelude.Generic)
newCreateEndpointConfigResponse ::
Prelude.Int ->
Prelude.Text ->
CreateEndpointConfigResponse
newCreateEndpointConfigResponse :: Int -> Text -> CreateEndpointConfigResponse
newCreateEndpointConfigResponse
Int
pHttpStatus_
Text
pEndpointConfigArn_ =
CreateEndpointConfigResponse' :: Int -> Text -> CreateEndpointConfigResponse
CreateEndpointConfigResponse'
{ $sel:httpStatus:CreateEndpointConfigResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:endpointConfigArn:CreateEndpointConfigResponse' :: Text
endpointConfigArn = Text
pEndpointConfigArn_
}
createEndpointConfigResponse_httpStatus :: Lens.Lens' CreateEndpointConfigResponse Prelude.Int
createEndpointConfigResponse_httpStatus :: (Int -> f Int)
-> CreateEndpointConfigResponse -> f CreateEndpointConfigResponse
createEndpointConfigResponse_httpStatus = (CreateEndpointConfigResponse -> Int)
-> (CreateEndpointConfigResponse
-> Int -> CreateEndpointConfigResponse)
-> Lens
CreateEndpointConfigResponse CreateEndpointConfigResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEndpointConfigResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateEndpointConfigResponse' :: CreateEndpointConfigResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateEndpointConfigResponse
s@CreateEndpointConfigResponse' {} Int
a -> CreateEndpointConfigResponse
s {$sel:httpStatus:CreateEndpointConfigResponse' :: Int
httpStatus = Int
a} :: CreateEndpointConfigResponse)
createEndpointConfigResponse_endpointConfigArn :: Lens.Lens' CreateEndpointConfigResponse Prelude.Text
createEndpointConfigResponse_endpointConfigArn :: (Text -> f Text)
-> CreateEndpointConfigResponse -> f CreateEndpointConfigResponse
createEndpointConfigResponse_endpointConfigArn = (CreateEndpointConfigResponse -> Text)
-> (CreateEndpointConfigResponse
-> Text -> CreateEndpointConfigResponse)
-> Lens
CreateEndpointConfigResponse CreateEndpointConfigResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEndpointConfigResponse' {Text
endpointConfigArn :: Text
$sel:endpointConfigArn:CreateEndpointConfigResponse' :: CreateEndpointConfigResponse -> Text
endpointConfigArn} -> Text
endpointConfigArn) (\s :: CreateEndpointConfigResponse
s@CreateEndpointConfigResponse' {} Text
a -> CreateEndpointConfigResponse
s {$sel:endpointConfigArn:CreateEndpointConfigResponse' :: Text
endpointConfigArn = Text
a} :: CreateEndpointConfigResponse)
instance Prelude.NFData CreateEndpointConfigResponse