{-# 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.AppIntegrationS.CreateDataIntegration
(
CreateDataIntegration (..),
newCreateDataIntegration,
createDataIntegration_scheduleConfig,
createDataIntegration_clientToken,
createDataIntegration_kmsKey,
createDataIntegration_sourceURI,
createDataIntegration_description,
createDataIntegration_tags,
createDataIntegration_name,
CreateDataIntegrationResponse (..),
newCreateDataIntegrationResponse,
createDataIntegrationResponse_clientToken,
createDataIntegrationResponse_kmsKey,
createDataIntegrationResponse_arn,
createDataIntegrationResponse_scheduleConfiguration,
createDataIntegrationResponse_name,
createDataIntegrationResponse_id,
createDataIntegrationResponse_sourceURI,
createDataIntegrationResponse_description,
createDataIntegrationResponse_tags,
createDataIntegrationResponse_httpStatus,
)
where
import Amazonka.AppIntegrationS.Types
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
data CreateDataIntegration = CreateDataIntegration'
{
CreateDataIntegration -> Maybe ScheduleConfiguration
scheduleConfig :: Prelude.Maybe ScheduleConfiguration,
CreateDataIntegration -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateDataIntegration -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
CreateDataIntegration -> Maybe Text
sourceURI :: Prelude.Maybe Prelude.Text,
CreateDataIntegration -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateDataIntegration -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateDataIntegration -> Text
name :: Prelude.Text
}
deriving (CreateDataIntegration -> CreateDataIntegration -> Bool
(CreateDataIntegration -> CreateDataIntegration -> Bool)
-> (CreateDataIntegration -> CreateDataIntegration -> Bool)
-> Eq CreateDataIntegration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDataIntegration -> CreateDataIntegration -> Bool
$c/= :: CreateDataIntegration -> CreateDataIntegration -> Bool
== :: CreateDataIntegration -> CreateDataIntegration -> Bool
$c== :: CreateDataIntegration -> CreateDataIntegration -> Bool
Prelude.Eq, ReadPrec [CreateDataIntegration]
ReadPrec CreateDataIntegration
Int -> ReadS CreateDataIntegration
ReadS [CreateDataIntegration]
(Int -> ReadS CreateDataIntegration)
-> ReadS [CreateDataIntegration]
-> ReadPrec CreateDataIntegration
-> ReadPrec [CreateDataIntegration]
-> Read CreateDataIntegration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDataIntegration]
$creadListPrec :: ReadPrec [CreateDataIntegration]
readPrec :: ReadPrec CreateDataIntegration
$creadPrec :: ReadPrec CreateDataIntegration
readList :: ReadS [CreateDataIntegration]
$creadList :: ReadS [CreateDataIntegration]
readsPrec :: Int -> ReadS CreateDataIntegration
$creadsPrec :: Int -> ReadS CreateDataIntegration
Prelude.Read, Int -> CreateDataIntegration -> ShowS
[CreateDataIntegration] -> ShowS
CreateDataIntegration -> String
(Int -> CreateDataIntegration -> ShowS)
-> (CreateDataIntegration -> String)
-> ([CreateDataIntegration] -> ShowS)
-> Show CreateDataIntegration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDataIntegration] -> ShowS
$cshowList :: [CreateDataIntegration] -> ShowS
show :: CreateDataIntegration -> String
$cshow :: CreateDataIntegration -> String
showsPrec :: Int -> CreateDataIntegration -> ShowS
$cshowsPrec :: Int -> CreateDataIntegration -> ShowS
Prelude.Show, (forall x. CreateDataIntegration -> Rep CreateDataIntegration x)
-> (forall x. Rep CreateDataIntegration x -> CreateDataIntegration)
-> Generic CreateDataIntegration
forall x. Rep CreateDataIntegration x -> CreateDataIntegration
forall x. CreateDataIntegration -> Rep CreateDataIntegration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateDataIntegration x -> CreateDataIntegration
$cfrom :: forall x. CreateDataIntegration -> Rep CreateDataIntegration x
Prelude.Generic)
newCreateDataIntegration ::
Prelude.Text ->
CreateDataIntegration
newCreateDataIntegration :: Text -> CreateDataIntegration
newCreateDataIntegration Text
pName_ =
CreateDataIntegration' :: Maybe ScheduleConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Text
-> CreateDataIntegration
CreateDataIntegration'
{ $sel:scheduleConfig:CreateDataIntegration' :: Maybe ScheduleConfiguration
scheduleConfig =
Maybe ScheduleConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:clientToken:CreateDataIntegration' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKey:CreateDataIntegration' :: Maybe Text
kmsKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceURI:CreateDataIntegration' :: Maybe Text
sourceURI = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateDataIntegration' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateDataIntegration' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateDataIntegration' :: Text
name = Text
pName_
}
createDataIntegration_scheduleConfig :: Lens.Lens' CreateDataIntegration (Prelude.Maybe ScheduleConfiguration)
createDataIntegration_scheduleConfig :: (Maybe ScheduleConfiguration -> f (Maybe ScheduleConfiguration))
-> CreateDataIntegration -> f CreateDataIntegration
createDataIntegration_scheduleConfig = (CreateDataIntegration -> Maybe ScheduleConfiguration)
-> (CreateDataIntegration
-> Maybe ScheduleConfiguration -> CreateDataIntegration)
-> Lens
CreateDataIntegration
CreateDataIntegration
(Maybe ScheduleConfiguration)
(Maybe ScheduleConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegration' {Maybe ScheduleConfiguration
scheduleConfig :: Maybe ScheduleConfiguration
$sel:scheduleConfig:CreateDataIntegration' :: CreateDataIntegration -> Maybe ScheduleConfiguration
scheduleConfig} -> Maybe ScheduleConfiguration
scheduleConfig) (\s :: CreateDataIntegration
s@CreateDataIntegration' {} Maybe ScheduleConfiguration
a -> CreateDataIntegration
s {$sel:scheduleConfig:CreateDataIntegration' :: Maybe ScheduleConfiguration
scheduleConfig = Maybe ScheduleConfiguration
a} :: CreateDataIntegration)
createDataIntegration_clientToken :: Lens.Lens' CreateDataIntegration (Prelude.Maybe Prelude.Text)
createDataIntegration_clientToken :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegration -> f CreateDataIntegration
createDataIntegration_clientToken = (CreateDataIntegration -> Maybe Text)
-> (CreateDataIntegration -> Maybe Text -> CreateDataIntegration)
-> Lens
CreateDataIntegration
CreateDataIntegration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegration' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateDataIntegration' :: CreateDataIntegration -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateDataIntegration
s@CreateDataIntegration' {} Maybe Text
a -> CreateDataIntegration
s {$sel:clientToken:CreateDataIntegration' :: Maybe Text
clientToken = Maybe Text
a} :: CreateDataIntegration)
createDataIntegration_kmsKey :: Lens.Lens' CreateDataIntegration (Prelude.Maybe Prelude.Text)
createDataIntegration_kmsKey :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegration -> f CreateDataIntegration
createDataIntegration_kmsKey = (CreateDataIntegration -> Maybe Text)
-> (CreateDataIntegration -> Maybe Text -> CreateDataIntegration)
-> Lens
CreateDataIntegration
CreateDataIntegration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegration' {Maybe Text
kmsKey :: Maybe Text
$sel:kmsKey:CreateDataIntegration' :: CreateDataIntegration -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: CreateDataIntegration
s@CreateDataIntegration' {} Maybe Text
a -> CreateDataIntegration
s {$sel:kmsKey:CreateDataIntegration' :: Maybe Text
kmsKey = Maybe Text
a} :: CreateDataIntegration)
createDataIntegration_sourceURI :: Lens.Lens' CreateDataIntegration (Prelude.Maybe Prelude.Text)
createDataIntegration_sourceURI :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegration -> f CreateDataIntegration
createDataIntegration_sourceURI = (CreateDataIntegration -> Maybe Text)
-> (CreateDataIntegration -> Maybe Text -> CreateDataIntegration)
-> Lens
CreateDataIntegration
CreateDataIntegration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegration' {Maybe Text
sourceURI :: Maybe Text
$sel:sourceURI:CreateDataIntegration' :: CreateDataIntegration -> Maybe Text
sourceURI} -> Maybe Text
sourceURI) (\s :: CreateDataIntegration
s@CreateDataIntegration' {} Maybe Text
a -> CreateDataIntegration
s {$sel:sourceURI:CreateDataIntegration' :: Maybe Text
sourceURI = Maybe Text
a} :: CreateDataIntegration)
createDataIntegration_description :: Lens.Lens' CreateDataIntegration (Prelude.Maybe Prelude.Text)
createDataIntegration_description :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegration -> f CreateDataIntegration
createDataIntegration_description = (CreateDataIntegration -> Maybe Text)
-> (CreateDataIntegration -> Maybe Text -> CreateDataIntegration)
-> Lens
CreateDataIntegration
CreateDataIntegration
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegration' {Maybe Text
description :: Maybe Text
$sel:description:CreateDataIntegration' :: CreateDataIntegration -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateDataIntegration
s@CreateDataIntegration' {} Maybe Text
a -> CreateDataIntegration
s {$sel:description:CreateDataIntegration' :: Maybe Text
description = Maybe Text
a} :: CreateDataIntegration)
createDataIntegration_tags :: Lens.Lens' CreateDataIntegration (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createDataIntegration_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDataIntegration -> f CreateDataIntegration
createDataIntegration_tags = (CreateDataIntegration -> Maybe (HashMap Text Text))
-> (CreateDataIntegration
-> Maybe (HashMap Text Text) -> CreateDataIntegration)
-> Lens
CreateDataIntegration
CreateDataIntegration
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegration' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateDataIntegration' :: CreateDataIntegration -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateDataIntegration
s@CreateDataIntegration' {} Maybe (HashMap Text Text)
a -> CreateDataIntegration
s {$sel:tags:CreateDataIntegration' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateDataIntegration) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDataIntegration -> f CreateDataIntegration)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDataIntegration
-> f CreateDataIntegration
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDataIntegration_name :: Lens.Lens' CreateDataIntegration Prelude.Text
createDataIntegration_name :: (Text -> f Text)
-> CreateDataIntegration -> f CreateDataIntegration
createDataIntegration_name = (CreateDataIntegration -> Text)
-> (CreateDataIntegration -> Text -> CreateDataIntegration)
-> Lens CreateDataIntegration CreateDataIntegration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegration' {Text
name :: Text
$sel:name:CreateDataIntegration' :: CreateDataIntegration -> Text
name} -> Text
name) (\s :: CreateDataIntegration
s@CreateDataIntegration' {} Text
a -> CreateDataIntegration
s {$sel:name:CreateDataIntegration' :: Text
name = Text
a} :: CreateDataIntegration)
instance Core.AWSRequest CreateDataIntegration where
type
AWSResponse CreateDataIntegration =
CreateDataIntegrationResponse
request :: CreateDataIntegration -> Request CreateDataIntegration
request = Service -> CreateDataIntegration -> Request CreateDataIntegration
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateDataIntegration
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDataIntegration)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateDataIntegration))
-> Logger
-> Service
-> Proxy CreateDataIntegration
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateDataIntegration)))
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 Text
-> Maybe Text
-> Maybe Text
-> Maybe ScheduleConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse
CreateDataIntegrationResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ScheduleConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe ScheduleConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
forall (f :: * -> *) a b. Functor 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
"ClientToken")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe ScheduleConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe ScheduleConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
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
"KmsKey")
Either
String
(Maybe Text
-> Maybe ScheduleConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ScheduleConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
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
"Arn")
Either
String
(Maybe ScheduleConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
-> Either String (Maybe ScheduleConfiguration)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ScheduleConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ScheduleConfiguration")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
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
"Name")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
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
"Id")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
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
"SourceURI")
Either
String
(Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (HashMap Text Text) -> Int -> CreateDataIntegrationResponse)
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
"Description")
Either
String
(Maybe (HashMap Text Text) -> Int -> CreateDataIntegrationResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> CreateDataIntegrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> CreateDataIntegrationResponse)
-> Either String Int -> Either String CreateDataIntegrationResponse
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))
)
instance Prelude.Hashable CreateDataIntegration
instance Prelude.NFData CreateDataIntegration
instance Core.ToHeaders CreateDataIntegration where
toHeaders :: CreateDataIntegration -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateDataIntegration -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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 CreateDataIntegration where
toJSON :: CreateDataIntegration -> Value
toJSON CreateDataIntegration' {Maybe Text
Maybe (HashMap Text Text)
Maybe ScheduleConfiguration
Text
name :: Text
tags :: Maybe (HashMap Text Text)
description :: Maybe Text
sourceURI :: Maybe Text
kmsKey :: Maybe Text
clientToken :: Maybe Text
scheduleConfig :: Maybe ScheduleConfiguration
$sel:name:CreateDataIntegration' :: CreateDataIntegration -> Text
$sel:tags:CreateDataIntegration' :: CreateDataIntegration -> Maybe (HashMap Text Text)
$sel:description:CreateDataIntegration' :: CreateDataIntegration -> Maybe Text
$sel:sourceURI:CreateDataIntegration' :: CreateDataIntegration -> Maybe Text
$sel:kmsKey:CreateDataIntegration' :: CreateDataIntegration -> Maybe Text
$sel:clientToken:CreateDataIntegration' :: CreateDataIntegration -> Maybe Text
$sel:scheduleConfig:CreateDataIntegration' :: CreateDataIntegration -> Maybe ScheduleConfiguration
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ScheduleConfig" Text -> ScheduleConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(ScheduleConfiguration -> Pair)
-> Maybe ScheduleConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ScheduleConfiguration
scheduleConfig,
(Text
"ClientToken" 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
clientToken,
(Text
"KmsKey" 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
kmsKey,
(Text
"SourceURI" 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
sourceURI,
(Text
"Description" 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
description,
(Text
"Tags" Text -> HashMap Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (HashMap Text Text -> Pair)
-> Maybe (HashMap Text Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)
]
)
instance Core.ToPath CreateDataIntegration where
toPath :: CreateDataIntegration -> ByteString
toPath = ByteString -> CreateDataIntegration -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/dataIntegrations"
instance Core.ToQuery CreateDataIntegration where
toQuery :: CreateDataIntegration -> QueryString
toQuery = QueryString -> CreateDataIntegration -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateDataIntegrationResponse = CreateDataIntegrationResponse'
{
CreateDataIntegrationResponse -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateDataIntegrationResponse -> Maybe Text
kmsKey :: Prelude.Maybe Prelude.Text,
CreateDataIntegrationResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
CreateDataIntegrationResponse -> Maybe ScheduleConfiguration
scheduleConfiguration :: Prelude.Maybe ScheduleConfiguration,
CreateDataIntegrationResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
CreateDataIntegrationResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
CreateDataIntegrationResponse -> Maybe Text
sourceURI :: Prelude.Maybe Prelude.Text,
CreateDataIntegrationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
CreateDataIntegrationResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
CreateDataIntegrationResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateDataIntegrationResponse
-> CreateDataIntegrationResponse -> Bool
(CreateDataIntegrationResponse
-> CreateDataIntegrationResponse -> Bool)
-> (CreateDataIntegrationResponse
-> CreateDataIntegrationResponse -> Bool)
-> Eq CreateDataIntegrationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateDataIntegrationResponse
-> CreateDataIntegrationResponse -> Bool
$c/= :: CreateDataIntegrationResponse
-> CreateDataIntegrationResponse -> Bool
== :: CreateDataIntegrationResponse
-> CreateDataIntegrationResponse -> Bool
$c== :: CreateDataIntegrationResponse
-> CreateDataIntegrationResponse -> Bool
Prelude.Eq, ReadPrec [CreateDataIntegrationResponse]
ReadPrec CreateDataIntegrationResponse
Int -> ReadS CreateDataIntegrationResponse
ReadS [CreateDataIntegrationResponse]
(Int -> ReadS CreateDataIntegrationResponse)
-> ReadS [CreateDataIntegrationResponse]
-> ReadPrec CreateDataIntegrationResponse
-> ReadPrec [CreateDataIntegrationResponse]
-> Read CreateDataIntegrationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateDataIntegrationResponse]
$creadListPrec :: ReadPrec [CreateDataIntegrationResponse]
readPrec :: ReadPrec CreateDataIntegrationResponse
$creadPrec :: ReadPrec CreateDataIntegrationResponse
readList :: ReadS [CreateDataIntegrationResponse]
$creadList :: ReadS [CreateDataIntegrationResponse]
readsPrec :: Int -> ReadS CreateDataIntegrationResponse
$creadsPrec :: Int -> ReadS CreateDataIntegrationResponse
Prelude.Read, Int -> CreateDataIntegrationResponse -> ShowS
[CreateDataIntegrationResponse] -> ShowS
CreateDataIntegrationResponse -> String
(Int -> CreateDataIntegrationResponse -> ShowS)
-> (CreateDataIntegrationResponse -> String)
-> ([CreateDataIntegrationResponse] -> ShowS)
-> Show CreateDataIntegrationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateDataIntegrationResponse] -> ShowS
$cshowList :: [CreateDataIntegrationResponse] -> ShowS
show :: CreateDataIntegrationResponse -> String
$cshow :: CreateDataIntegrationResponse -> String
showsPrec :: Int -> CreateDataIntegrationResponse -> ShowS
$cshowsPrec :: Int -> CreateDataIntegrationResponse -> ShowS
Prelude.Show, (forall x.
CreateDataIntegrationResponse
-> Rep CreateDataIntegrationResponse x)
-> (forall x.
Rep CreateDataIntegrationResponse x
-> CreateDataIntegrationResponse)
-> Generic CreateDataIntegrationResponse
forall x.
Rep CreateDataIntegrationResponse x
-> CreateDataIntegrationResponse
forall x.
CreateDataIntegrationResponse
-> Rep CreateDataIntegrationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateDataIntegrationResponse x
-> CreateDataIntegrationResponse
$cfrom :: forall x.
CreateDataIntegrationResponse
-> Rep CreateDataIntegrationResponse x
Prelude.Generic)
newCreateDataIntegrationResponse ::
Prelude.Int ->
CreateDataIntegrationResponse
newCreateDataIntegrationResponse :: Int -> CreateDataIntegrationResponse
newCreateDataIntegrationResponse Int
pHttpStatus_ =
CreateDataIntegrationResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ScheduleConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> CreateDataIntegrationResponse
CreateDataIntegrationResponse'
{ $sel:clientToken:CreateDataIntegrationResponse' :: Maybe Text
clientToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKey:CreateDataIntegrationResponse' :: Maybe Text
kmsKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:arn:CreateDataIntegrationResponse' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:scheduleConfiguration:CreateDataIntegrationResponse' :: Maybe ScheduleConfiguration
scheduleConfiguration = Maybe ScheduleConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:name:CreateDataIntegrationResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:CreateDataIntegrationResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sourceURI:CreateDataIntegrationResponse' :: Maybe Text
sourceURI = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:description:CreateDataIntegrationResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateDataIntegrationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateDataIntegrationResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createDataIntegrationResponse_clientToken :: Lens.Lens' CreateDataIntegrationResponse (Prelude.Maybe Prelude.Text)
createDataIntegrationResponse_clientToken :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegrationResponse -> f CreateDataIntegrationResponse
createDataIntegrationResponse_clientToken = (CreateDataIntegrationResponse -> Maybe Text)
-> (CreateDataIntegrationResponse
-> Maybe Text -> CreateDataIntegrationResponse)
-> Lens
CreateDataIntegrationResponse
CreateDataIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegrationResponse' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateDataIntegrationResponse' :: CreateDataIntegrationResponse -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateDataIntegrationResponse
s@CreateDataIntegrationResponse' {} Maybe Text
a -> CreateDataIntegrationResponse
s {$sel:clientToken:CreateDataIntegrationResponse' :: Maybe Text
clientToken = Maybe Text
a} :: CreateDataIntegrationResponse)
createDataIntegrationResponse_kmsKey :: Lens.Lens' CreateDataIntegrationResponse (Prelude.Maybe Prelude.Text)
createDataIntegrationResponse_kmsKey :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegrationResponse -> f CreateDataIntegrationResponse
createDataIntegrationResponse_kmsKey = (CreateDataIntegrationResponse -> Maybe Text)
-> (CreateDataIntegrationResponse
-> Maybe Text -> CreateDataIntegrationResponse)
-> Lens
CreateDataIntegrationResponse
CreateDataIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegrationResponse' {Maybe Text
kmsKey :: Maybe Text
$sel:kmsKey:CreateDataIntegrationResponse' :: CreateDataIntegrationResponse -> Maybe Text
kmsKey} -> Maybe Text
kmsKey) (\s :: CreateDataIntegrationResponse
s@CreateDataIntegrationResponse' {} Maybe Text
a -> CreateDataIntegrationResponse
s {$sel:kmsKey:CreateDataIntegrationResponse' :: Maybe Text
kmsKey = Maybe Text
a} :: CreateDataIntegrationResponse)
createDataIntegrationResponse_arn :: Lens.Lens' CreateDataIntegrationResponse (Prelude.Maybe Prelude.Text)
createDataIntegrationResponse_arn :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegrationResponse -> f CreateDataIntegrationResponse
createDataIntegrationResponse_arn = (CreateDataIntegrationResponse -> Maybe Text)
-> (CreateDataIntegrationResponse
-> Maybe Text -> CreateDataIntegrationResponse)
-> Lens
CreateDataIntegrationResponse
CreateDataIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegrationResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:CreateDataIntegrationResponse' :: CreateDataIntegrationResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: CreateDataIntegrationResponse
s@CreateDataIntegrationResponse' {} Maybe Text
a -> CreateDataIntegrationResponse
s {$sel:arn:CreateDataIntegrationResponse' :: Maybe Text
arn = Maybe Text
a} :: CreateDataIntegrationResponse)
createDataIntegrationResponse_scheduleConfiguration :: Lens.Lens' CreateDataIntegrationResponse (Prelude.Maybe ScheduleConfiguration)
createDataIntegrationResponse_scheduleConfiguration :: (Maybe ScheduleConfiguration -> f (Maybe ScheduleConfiguration))
-> CreateDataIntegrationResponse -> f CreateDataIntegrationResponse
createDataIntegrationResponse_scheduleConfiguration = (CreateDataIntegrationResponse -> Maybe ScheduleConfiguration)
-> (CreateDataIntegrationResponse
-> Maybe ScheduleConfiguration -> CreateDataIntegrationResponse)
-> Lens
CreateDataIntegrationResponse
CreateDataIntegrationResponse
(Maybe ScheduleConfiguration)
(Maybe ScheduleConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegrationResponse' {Maybe ScheduleConfiguration
scheduleConfiguration :: Maybe ScheduleConfiguration
$sel:scheduleConfiguration:CreateDataIntegrationResponse' :: CreateDataIntegrationResponse -> Maybe ScheduleConfiguration
scheduleConfiguration} -> Maybe ScheduleConfiguration
scheduleConfiguration) (\s :: CreateDataIntegrationResponse
s@CreateDataIntegrationResponse' {} Maybe ScheduleConfiguration
a -> CreateDataIntegrationResponse
s {$sel:scheduleConfiguration:CreateDataIntegrationResponse' :: Maybe ScheduleConfiguration
scheduleConfiguration = Maybe ScheduleConfiguration
a} :: CreateDataIntegrationResponse)
createDataIntegrationResponse_name :: Lens.Lens' CreateDataIntegrationResponse (Prelude.Maybe Prelude.Text)
createDataIntegrationResponse_name :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegrationResponse -> f CreateDataIntegrationResponse
createDataIntegrationResponse_name = (CreateDataIntegrationResponse -> Maybe Text)
-> (CreateDataIntegrationResponse
-> Maybe Text -> CreateDataIntegrationResponse)
-> Lens
CreateDataIntegrationResponse
CreateDataIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegrationResponse' {Maybe Text
name :: Maybe Text
$sel:name:CreateDataIntegrationResponse' :: CreateDataIntegrationResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: CreateDataIntegrationResponse
s@CreateDataIntegrationResponse' {} Maybe Text
a -> CreateDataIntegrationResponse
s {$sel:name:CreateDataIntegrationResponse' :: Maybe Text
name = Maybe Text
a} :: CreateDataIntegrationResponse)
createDataIntegrationResponse_id :: Lens.Lens' CreateDataIntegrationResponse (Prelude.Maybe Prelude.Text)
createDataIntegrationResponse_id :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegrationResponse -> f CreateDataIntegrationResponse
createDataIntegrationResponse_id = (CreateDataIntegrationResponse -> Maybe Text)
-> (CreateDataIntegrationResponse
-> Maybe Text -> CreateDataIntegrationResponse)
-> Lens
CreateDataIntegrationResponse
CreateDataIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegrationResponse' {Maybe Text
id :: Maybe Text
$sel:id:CreateDataIntegrationResponse' :: CreateDataIntegrationResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: CreateDataIntegrationResponse
s@CreateDataIntegrationResponse' {} Maybe Text
a -> CreateDataIntegrationResponse
s {$sel:id:CreateDataIntegrationResponse' :: Maybe Text
id = Maybe Text
a} :: CreateDataIntegrationResponse)
createDataIntegrationResponse_sourceURI :: Lens.Lens' CreateDataIntegrationResponse (Prelude.Maybe Prelude.Text)
createDataIntegrationResponse_sourceURI :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegrationResponse -> f CreateDataIntegrationResponse
createDataIntegrationResponse_sourceURI = (CreateDataIntegrationResponse -> Maybe Text)
-> (CreateDataIntegrationResponse
-> Maybe Text -> CreateDataIntegrationResponse)
-> Lens
CreateDataIntegrationResponse
CreateDataIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegrationResponse' {Maybe Text
sourceURI :: Maybe Text
$sel:sourceURI:CreateDataIntegrationResponse' :: CreateDataIntegrationResponse -> Maybe Text
sourceURI} -> Maybe Text
sourceURI) (\s :: CreateDataIntegrationResponse
s@CreateDataIntegrationResponse' {} Maybe Text
a -> CreateDataIntegrationResponse
s {$sel:sourceURI:CreateDataIntegrationResponse' :: Maybe Text
sourceURI = Maybe Text
a} :: CreateDataIntegrationResponse)
createDataIntegrationResponse_description :: Lens.Lens' CreateDataIntegrationResponse (Prelude.Maybe Prelude.Text)
createDataIntegrationResponse_description :: (Maybe Text -> f (Maybe Text))
-> CreateDataIntegrationResponse -> f CreateDataIntegrationResponse
createDataIntegrationResponse_description = (CreateDataIntegrationResponse -> Maybe Text)
-> (CreateDataIntegrationResponse
-> Maybe Text -> CreateDataIntegrationResponse)
-> Lens
CreateDataIntegrationResponse
CreateDataIntegrationResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegrationResponse' {Maybe Text
description :: Maybe Text
$sel:description:CreateDataIntegrationResponse' :: CreateDataIntegrationResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: CreateDataIntegrationResponse
s@CreateDataIntegrationResponse' {} Maybe Text
a -> CreateDataIntegrationResponse
s {$sel:description:CreateDataIntegrationResponse' :: Maybe Text
description = Maybe Text
a} :: CreateDataIntegrationResponse)
createDataIntegrationResponse_tags :: Lens.Lens' CreateDataIntegrationResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
createDataIntegrationResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDataIntegrationResponse -> f CreateDataIntegrationResponse
createDataIntegrationResponse_tags = (CreateDataIntegrationResponse -> Maybe (HashMap Text Text))
-> (CreateDataIntegrationResponse
-> Maybe (HashMap Text Text) -> CreateDataIntegrationResponse)
-> Lens
CreateDataIntegrationResponse
CreateDataIntegrationResponse
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegrationResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:CreateDataIntegrationResponse' :: CreateDataIntegrationResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: CreateDataIntegrationResponse
s@CreateDataIntegrationResponse' {} Maybe (HashMap Text Text)
a -> CreateDataIntegrationResponse
s {$sel:tags:CreateDataIntegrationResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: CreateDataIntegrationResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDataIntegrationResponse
-> f CreateDataIntegrationResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> CreateDataIntegrationResponse
-> f CreateDataIntegrationResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
-> Iso
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
(Maybe (HashMap Text Text))
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
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
(HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createDataIntegrationResponse_httpStatus :: Lens.Lens' CreateDataIntegrationResponse Prelude.Int
createDataIntegrationResponse_httpStatus :: (Int -> f Int)
-> CreateDataIntegrationResponse -> f CreateDataIntegrationResponse
createDataIntegrationResponse_httpStatus = (CreateDataIntegrationResponse -> Int)
-> (CreateDataIntegrationResponse
-> Int -> CreateDataIntegrationResponse)
-> Lens
CreateDataIntegrationResponse CreateDataIntegrationResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateDataIntegrationResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateDataIntegrationResponse' :: CreateDataIntegrationResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateDataIntegrationResponse
s@CreateDataIntegrationResponse' {} Int
a -> CreateDataIntegrationResponse
s {$sel:httpStatus:CreateDataIntegrationResponse' :: Int
httpStatus = Int
a} :: CreateDataIntegrationResponse)
instance Prelude.NFData CreateDataIntegrationResponse