{-# 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.HealthLake.CreateFHIRDatastore
(
CreateFHIRDatastore (..),
newCreateFHIRDatastore,
createFHIRDatastore_clientToken,
createFHIRDatastore_sseConfiguration,
createFHIRDatastore_datastoreName,
createFHIRDatastore_preloadDataConfig,
createFHIRDatastore_tags,
createFHIRDatastore_datastoreTypeVersion,
CreateFHIRDatastoreResponse (..),
newCreateFHIRDatastoreResponse,
createFHIRDatastoreResponse_httpStatus,
createFHIRDatastoreResponse_datastoreId,
createFHIRDatastoreResponse_datastoreArn,
createFHIRDatastoreResponse_datastoreStatus,
createFHIRDatastoreResponse_datastoreEndpoint,
)
where
import qualified Amazonka.Core as Core
import Amazonka.HealthLake.Types
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 CreateFHIRDatastore = CreateFHIRDatastore'
{
CreateFHIRDatastore -> Maybe Text
clientToken :: Prelude.Maybe Prelude.Text,
CreateFHIRDatastore -> Maybe SseConfiguration
sseConfiguration :: Prelude.Maybe SseConfiguration,
CreateFHIRDatastore -> Maybe Text
datastoreName :: Prelude.Maybe Prelude.Text,
CreateFHIRDatastore -> Maybe PreloadDataConfig
preloadDataConfig :: Prelude.Maybe PreloadDataConfig,
CreateFHIRDatastore -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
CreateFHIRDatastore -> FHIRVersion
datastoreTypeVersion :: FHIRVersion
}
deriving (CreateFHIRDatastore -> CreateFHIRDatastore -> Bool
(CreateFHIRDatastore -> CreateFHIRDatastore -> Bool)
-> (CreateFHIRDatastore -> CreateFHIRDatastore -> Bool)
-> Eq CreateFHIRDatastore
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateFHIRDatastore -> CreateFHIRDatastore -> Bool
$c/= :: CreateFHIRDatastore -> CreateFHIRDatastore -> Bool
== :: CreateFHIRDatastore -> CreateFHIRDatastore -> Bool
$c== :: CreateFHIRDatastore -> CreateFHIRDatastore -> Bool
Prelude.Eq, ReadPrec [CreateFHIRDatastore]
ReadPrec CreateFHIRDatastore
Int -> ReadS CreateFHIRDatastore
ReadS [CreateFHIRDatastore]
(Int -> ReadS CreateFHIRDatastore)
-> ReadS [CreateFHIRDatastore]
-> ReadPrec CreateFHIRDatastore
-> ReadPrec [CreateFHIRDatastore]
-> Read CreateFHIRDatastore
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateFHIRDatastore]
$creadListPrec :: ReadPrec [CreateFHIRDatastore]
readPrec :: ReadPrec CreateFHIRDatastore
$creadPrec :: ReadPrec CreateFHIRDatastore
readList :: ReadS [CreateFHIRDatastore]
$creadList :: ReadS [CreateFHIRDatastore]
readsPrec :: Int -> ReadS CreateFHIRDatastore
$creadsPrec :: Int -> ReadS CreateFHIRDatastore
Prelude.Read, Int -> CreateFHIRDatastore -> ShowS
[CreateFHIRDatastore] -> ShowS
CreateFHIRDatastore -> String
(Int -> CreateFHIRDatastore -> ShowS)
-> (CreateFHIRDatastore -> String)
-> ([CreateFHIRDatastore] -> ShowS)
-> Show CreateFHIRDatastore
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateFHIRDatastore] -> ShowS
$cshowList :: [CreateFHIRDatastore] -> ShowS
show :: CreateFHIRDatastore -> String
$cshow :: CreateFHIRDatastore -> String
showsPrec :: Int -> CreateFHIRDatastore -> ShowS
$cshowsPrec :: Int -> CreateFHIRDatastore -> ShowS
Prelude.Show, (forall x. CreateFHIRDatastore -> Rep CreateFHIRDatastore x)
-> (forall x. Rep CreateFHIRDatastore x -> CreateFHIRDatastore)
-> Generic CreateFHIRDatastore
forall x. Rep CreateFHIRDatastore x -> CreateFHIRDatastore
forall x. CreateFHIRDatastore -> Rep CreateFHIRDatastore x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateFHIRDatastore x -> CreateFHIRDatastore
$cfrom :: forall x. CreateFHIRDatastore -> Rep CreateFHIRDatastore x
Prelude.Generic)
newCreateFHIRDatastore ::
FHIRVersion ->
CreateFHIRDatastore
newCreateFHIRDatastore :: FHIRVersion -> CreateFHIRDatastore
newCreateFHIRDatastore FHIRVersion
pDatastoreTypeVersion_ =
CreateFHIRDatastore' :: Maybe Text
-> Maybe SseConfiguration
-> Maybe Text
-> Maybe PreloadDataConfig
-> Maybe [Tag]
-> FHIRVersion
-> CreateFHIRDatastore
CreateFHIRDatastore'
{ $sel:clientToken:CreateFHIRDatastore' :: Maybe Text
clientToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sseConfiguration:CreateFHIRDatastore' :: Maybe SseConfiguration
sseConfiguration = Maybe SseConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:datastoreName:CreateFHIRDatastore' :: Maybe Text
datastoreName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:preloadDataConfig:CreateFHIRDatastore' :: Maybe PreloadDataConfig
preloadDataConfig = Maybe PreloadDataConfig
forall a. Maybe a
Prelude.Nothing,
$sel:tags:CreateFHIRDatastore' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:datastoreTypeVersion:CreateFHIRDatastore' :: FHIRVersion
datastoreTypeVersion = FHIRVersion
pDatastoreTypeVersion_
}
createFHIRDatastore_clientToken :: Lens.Lens' CreateFHIRDatastore (Prelude.Maybe Prelude.Text)
createFHIRDatastore_clientToken :: (Maybe Text -> f (Maybe Text))
-> CreateFHIRDatastore -> f CreateFHIRDatastore
createFHIRDatastore_clientToken = (CreateFHIRDatastore -> Maybe Text)
-> (CreateFHIRDatastore -> Maybe Text -> CreateFHIRDatastore)
-> Lens
CreateFHIRDatastore CreateFHIRDatastore (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastore' {Maybe Text
clientToken :: Maybe Text
$sel:clientToken:CreateFHIRDatastore' :: CreateFHIRDatastore -> Maybe Text
clientToken} -> Maybe Text
clientToken) (\s :: CreateFHIRDatastore
s@CreateFHIRDatastore' {} Maybe Text
a -> CreateFHIRDatastore
s {$sel:clientToken:CreateFHIRDatastore' :: Maybe Text
clientToken = Maybe Text
a} :: CreateFHIRDatastore)
createFHIRDatastore_sseConfiguration :: Lens.Lens' CreateFHIRDatastore (Prelude.Maybe SseConfiguration)
createFHIRDatastore_sseConfiguration :: (Maybe SseConfiguration -> f (Maybe SseConfiguration))
-> CreateFHIRDatastore -> f CreateFHIRDatastore
createFHIRDatastore_sseConfiguration = (CreateFHIRDatastore -> Maybe SseConfiguration)
-> (CreateFHIRDatastore
-> Maybe SseConfiguration -> CreateFHIRDatastore)
-> Lens
CreateFHIRDatastore
CreateFHIRDatastore
(Maybe SseConfiguration)
(Maybe SseConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastore' {Maybe SseConfiguration
sseConfiguration :: Maybe SseConfiguration
$sel:sseConfiguration:CreateFHIRDatastore' :: CreateFHIRDatastore -> Maybe SseConfiguration
sseConfiguration} -> Maybe SseConfiguration
sseConfiguration) (\s :: CreateFHIRDatastore
s@CreateFHIRDatastore' {} Maybe SseConfiguration
a -> CreateFHIRDatastore
s {$sel:sseConfiguration:CreateFHIRDatastore' :: Maybe SseConfiguration
sseConfiguration = Maybe SseConfiguration
a} :: CreateFHIRDatastore)
createFHIRDatastore_datastoreName :: Lens.Lens' CreateFHIRDatastore (Prelude.Maybe Prelude.Text)
createFHIRDatastore_datastoreName :: (Maybe Text -> f (Maybe Text))
-> CreateFHIRDatastore -> f CreateFHIRDatastore
createFHIRDatastore_datastoreName = (CreateFHIRDatastore -> Maybe Text)
-> (CreateFHIRDatastore -> Maybe Text -> CreateFHIRDatastore)
-> Lens
CreateFHIRDatastore CreateFHIRDatastore (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastore' {Maybe Text
datastoreName :: Maybe Text
$sel:datastoreName:CreateFHIRDatastore' :: CreateFHIRDatastore -> Maybe Text
datastoreName} -> Maybe Text
datastoreName) (\s :: CreateFHIRDatastore
s@CreateFHIRDatastore' {} Maybe Text
a -> CreateFHIRDatastore
s {$sel:datastoreName:CreateFHIRDatastore' :: Maybe Text
datastoreName = Maybe Text
a} :: CreateFHIRDatastore)
createFHIRDatastore_preloadDataConfig :: Lens.Lens' CreateFHIRDatastore (Prelude.Maybe PreloadDataConfig)
createFHIRDatastore_preloadDataConfig :: (Maybe PreloadDataConfig -> f (Maybe PreloadDataConfig))
-> CreateFHIRDatastore -> f CreateFHIRDatastore
createFHIRDatastore_preloadDataConfig = (CreateFHIRDatastore -> Maybe PreloadDataConfig)
-> (CreateFHIRDatastore
-> Maybe PreloadDataConfig -> CreateFHIRDatastore)
-> Lens
CreateFHIRDatastore
CreateFHIRDatastore
(Maybe PreloadDataConfig)
(Maybe PreloadDataConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastore' {Maybe PreloadDataConfig
preloadDataConfig :: Maybe PreloadDataConfig
$sel:preloadDataConfig:CreateFHIRDatastore' :: CreateFHIRDatastore -> Maybe PreloadDataConfig
preloadDataConfig} -> Maybe PreloadDataConfig
preloadDataConfig) (\s :: CreateFHIRDatastore
s@CreateFHIRDatastore' {} Maybe PreloadDataConfig
a -> CreateFHIRDatastore
s {$sel:preloadDataConfig:CreateFHIRDatastore' :: Maybe PreloadDataConfig
preloadDataConfig = Maybe PreloadDataConfig
a} :: CreateFHIRDatastore)
createFHIRDatastore_tags :: Lens.Lens' CreateFHIRDatastore (Prelude.Maybe [Tag])
createFHIRDatastore_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateFHIRDatastore -> f CreateFHIRDatastore
createFHIRDatastore_tags = (CreateFHIRDatastore -> Maybe [Tag])
-> (CreateFHIRDatastore -> Maybe [Tag] -> CreateFHIRDatastore)
-> Lens
CreateFHIRDatastore CreateFHIRDatastore (Maybe [Tag]) (Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastore' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:CreateFHIRDatastore' :: CreateFHIRDatastore -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: CreateFHIRDatastore
s@CreateFHIRDatastore' {} Maybe [Tag]
a -> CreateFHIRDatastore
s {$sel:tags:CreateFHIRDatastore' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: CreateFHIRDatastore) ((Maybe [Tag] -> f (Maybe [Tag]))
-> CreateFHIRDatastore -> f CreateFHIRDatastore)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> CreateFHIRDatastore
-> f CreateFHIRDatastore
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
createFHIRDatastore_datastoreTypeVersion :: Lens.Lens' CreateFHIRDatastore FHIRVersion
createFHIRDatastore_datastoreTypeVersion :: (FHIRVersion -> f FHIRVersion)
-> CreateFHIRDatastore -> f CreateFHIRDatastore
createFHIRDatastore_datastoreTypeVersion = (CreateFHIRDatastore -> FHIRVersion)
-> (CreateFHIRDatastore -> FHIRVersion -> CreateFHIRDatastore)
-> Lens
CreateFHIRDatastore CreateFHIRDatastore FHIRVersion FHIRVersion
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastore' {FHIRVersion
datastoreTypeVersion :: FHIRVersion
$sel:datastoreTypeVersion:CreateFHIRDatastore' :: CreateFHIRDatastore -> FHIRVersion
datastoreTypeVersion} -> FHIRVersion
datastoreTypeVersion) (\s :: CreateFHIRDatastore
s@CreateFHIRDatastore' {} FHIRVersion
a -> CreateFHIRDatastore
s {$sel:datastoreTypeVersion:CreateFHIRDatastore' :: FHIRVersion
datastoreTypeVersion = FHIRVersion
a} :: CreateFHIRDatastore)
instance Core.AWSRequest CreateFHIRDatastore where
type
AWSResponse CreateFHIRDatastore =
CreateFHIRDatastoreResponse
request :: CreateFHIRDatastore -> Request CreateFHIRDatastore
request = Service -> CreateFHIRDatastore -> Request CreateFHIRDatastore
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateFHIRDatastore
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateFHIRDatastore)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateFHIRDatastore))
-> Logger
-> Service
-> Proxy CreateFHIRDatastore
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateFHIRDatastore)))
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
-> Text
-> DatastoreStatus
-> Text
-> CreateFHIRDatastoreResponse
CreateFHIRDatastoreResponse'
(Int
-> Text
-> Text
-> DatastoreStatus
-> Text
-> CreateFHIRDatastoreResponse)
-> Either String Int
-> Either
String
(Text
-> Text -> DatastoreStatus -> Text -> CreateFHIRDatastoreResponse)
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
-> Text -> DatastoreStatus -> Text -> CreateFHIRDatastoreResponse)
-> Either String Text
-> Either
String
(Text -> DatastoreStatus -> Text -> CreateFHIRDatastoreResponse)
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
"DatastoreId")
Either
String
(Text -> DatastoreStatus -> Text -> CreateFHIRDatastoreResponse)
-> Either String Text
-> Either
String (DatastoreStatus -> Text -> CreateFHIRDatastoreResponse)
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
"DatastoreArn")
Either
String (DatastoreStatus -> Text -> CreateFHIRDatastoreResponse)
-> Either String DatastoreStatus
-> Either String (Text -> CreateFHIRDatastoreResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String DatastoreStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"DatastoreStatus")
Either String (Text -> CreateFHIRDatastoreResponse)
-> Either String Text -> Either String CreateFHIRDatastoreResponse
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
"DatastoreEndpoint")
)
instance Prelude.Hashable CreateFHIRDatastore
instance Prelude.NFData CreateFHIRDatastore
instance Core.ToHeaders CreateFHIRDatastore where
toHeaders :: CreateFHIRDatastore -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateFHIRDatastore -> 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
"HealthLake.CreateFHIRDatastore" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON CreateFHIRDatastore where
toJSON :: CreateFHIRDatastore -> Value
toJSON CreateFHIRDatastore' {Maybe [Tag]
Maybe Text
Maybe PreloadDataConfig
Maybe SseConfiguration
FHIRVersion
datastoreTypeVersion :: FHIRVersion
tags :: Maybe [Tag]
preloadDataConfig :: Maybe PreloadDataConfig
datastoreName :: Maybe Text
sseConfiguration :: Maybe SseConfiguration
clientToken :: Maybe Text
$sel:datastoreTypeVersion:CreateFHIRDatastore' :: CreateFHIRDatastore -> FHIRVersion
$sel:tags:CreateFHIRDatastore' :: CreateFHIRDatastore -> Maybe [Tag]
$sel:preloadDataConfig:CreateFHIRDatastore' :: CreateFHIRDatastore -> Maybe PreloadDataConfig
$sel:datastoreName:CreateFHIRDatastore' :: CreateFHIRDatastore -> Maybe Text
$sel:sseConfiguration:CreateFHIRDatastore' :: CreateFHIRDatastore -> Maybe SseConfiguration
$sel:clientToken:CreateFHIRDatastore' :: CreateFHIRDatastore -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (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
"SseConfiguration" Text -> SseConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(SseConfiguration -> Pair) -> Maybe SseConfiguration -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SseConfiguration
sseConfiguration,
(Text
"DatastoreName" 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
datastoreName,
(Text
"PreloadDataConfig" Text -> PreloadDataConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(PreloadDataConfig -> Pair)
-> Maybe PreloadDataConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe PreloadDataConfig
preloadDataConfig,
(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
"DatastoreTypeVersion"
Text -> FHIRVersion -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= FHIRVersion
datastoreTypeVersion
)
]
)
instance Core.ToPath CreateFHIRDatastore where
toPath :: CreateFHIRDatastore -> ByteString
toPath = ByteString -> CreateFHIRDatastore -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateFHIRDatastore where
toQuery :: CreateFHIRDatastore -> QueryString
toQuery = QueryString -> CreateFHIRDatastore -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateFHIRDatastoreResponse = CreateFHIRDatastoreResponse'
{
CreateFHIRDatastoreResponse -> Int
httpStatus :: Prelude.Int,
CreateFHIRDatastoreResponse -> Text
datastoreId :: Prelude.Text,
CreateFHIRDatastoreResponse -> Text
datastoreArn :: Prelude.Text,
CreateFHIRDatastoreResponse -> DatastoreStatus
datastoreStatus :: DatastoreStatus,
CreateFHIRDatastoreResponse -> Text
datastoreEndpoint :: Prelude.Text
}
deriving (CreateFHIRDatastoreResponse -> CreateFHIRDatastoreResponse -> Bool
(CreateFHIRDatastoreResponse
-> CreateFHIRDatastoreResponse -> Bool)
-> (CreateFHIRDatastoreResponse
-> CreateFHIRDatastoreResponse -> Bool)
-> Eq CreateFHIRDatastoreResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateFHIRDatastoreResponse -> CreateFHIRDatastoreResponse -> Bool
$c/= :: CreateFHIRDatastoreResponse -> CreateFHIRDatastoreResponse -> Bool
== :: CreateFHIRDatastoreResponse -> CreateFHIRDatastoreResponse -> Bool
$c== :: CreateFHIRDatastoreResponse -> CreateFHIRDatastoreResponse -> Bool
Prelude.Eq, ReadPrec [CreateFHIRDatastoreResponse]
ReadPrec CreateFHIRDatastoreResponse
Int -> ReadS CreateFHIRDatastoreResponse
ReadS [CreateFHIRDatastoreResponse]
(Int -> ReadS CreateFHIRDatastoreResponse)
-> ReadS [CreateFHIRDatastoreResponse]
-> ReadPrec CreateFHIRDatastoreResponse
-> ReadPrec [CreateFHIRDatastoreResponse]
-> Read CreateFHIRDatastoreResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateFHIRDatastoreResponse]
$creadListPrec :: ReadPrec [CreateFHIRDatastoreResponse]
readPrec :: ReadPrec CreateFHIRDatastoreResponse
$creadPrec :: ReadPrec CreateFHIRDatastoreResponse
readList :: ReadS [CreateFHIRDatastoreResponse]
$creadList :: ReadS [CreateFHIRDatastoreResponse]
readsPrec :: Int -> ReadS CreateFHIRDatastoreResponse
$creadsPrec :: Int -> ReadS CreateFHIRDatastoreResponse
Prelude.Read, Int -> CreateFHIRDatastoreResponse -> ShowS
[CreateFHIRDatastoreResponse] -> ShowS
CreateFHIRDatastoreResponse -> String
(Int -> CreateFHIRDatastoreResponse -> ShowS)
-> (CreateFHIRDatastoreResponse -> String)
-> ([CreateFHIRDatastoreResponse] -> ShowS)
-> Show CreateFHIRDatastoreResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateFHIRDatastoreResponse] -> ShowS
$cshowList :: [CreateFHIRDatastoreResponse] -> ShowS
show :: CreateFHIRDatastoreResponse -> String
$cshow :: CreateFHIRDatastoreResponse -> String
showsPrec :: Int -> CreateFHIRDatastoreResponse -> ShowS
$cshowsPrec :: Int -> CreateFHIRDatastoreResponse -> ShowS
Prelude.Show, (forall x.
CreateFHIRDatastoreResponse -> Rep CreateFHIRDatastoreResponse x)
-> (forall x.
Rep CreateFHIRDatastoreResponse x -> CreateFHIRDatastoreResponse)
-> Generic CreateFHIRDatastoreResponse
forall x.
Rep CreateFHIRDatastoreResponse x -> CreateFHIRDatastoreResponse
forall x.
CreateFHIRDatastoreResponse -> Rep CreateFHIRDatastoreResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateFHIRDatastoreResponse x -> CreateFHIRDatastoreResponse
$cfrom :: forall x.
CreateFHIRDatastoreResponse -> Rep CreateFHIRDatastoreResponse x
Prelude.Generic)
newCreateFHIRDatastoreResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
DatastoreStatus ->
Prelude.Text ->
CreateFHIRDatastoreResponse
newCreateFHIRDatastoreResponse :: Int
-> Text
-> Text
-> DatastoreStatus
-> Text
-> CreateFHIRDatastoreResponse
newCreateFHIRDatastoreResponse
Int
pHttpStatus_
Text
pDatastoreId_
Text
pDatastoreArn_
DatastoreStatus
pDatastoreStatus_
Text
pDatastoreEndpoint_ =
CreateFHIRDatastoreResponse' :: Int
-> Text
-> Text
-> DatastoreStatus
-> Text
-> CreateFHIRDatastoreResponse
CreateFHIRDatastoreResponse'
{ $sel:httpStatus:CreateFHIRDatastoreResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:datastoreId:CreateFHIRDatastoreResponse' :: Text
datastoreId = Text
pDatastoreId_,
$sel:datastoreArn:CreateFHIRDatastoreResponse' :: Text
datastoreArn = Text
pDatastoreArn_,
$sel:datastoreStatus:CreateFHIRDatastoreResponse' :: DatastoreStatus
datastoreStatus = DatastoreStatus
pDatastoreStatus_,
$sel:datastoreEndpoint:CreateFHIRDatastoreResponse' :: Text
datastoreEndpoint = Text
pDatastoreEndpoint_
}
createFHIRDatastoreResponse_httpStatus :: Lens.Lens' CreateFHIRDatastoreResponse Prelude.Int
createFHIRDatastoreResponse_httpStatus :: (Int -> f Int)
-> CreateFHIRDatastoreResponse -> f CreateFHIRDatastoreResponse
createFHIRDatastoreResponse_httpStatus = (CreateFHIRDatastoreResponse -> Int)
-> (CreateFHIRDatastoreResponse
-> Int -> CreateFHIRDatastoreResponse)
-> Lens
CreateFHIRDatastoreResponse CreateFHIRDatastoreResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastoreResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateFHIRDatastoreResponse' :: CreateFHIRDatastoreResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateFHIRDatastoreResponse
s@CreateFHIRDatastoreResponse' {} Int
a -> CreateFHIRDatastoreResponse
s {$sel:httpStatus:CreateFHIRDatastoreResponse' :: Int
httpStatus = Int
a} :: CreateFHIRDatastoreResponse)
createFHIRDatastoreResponse_datastoreId :: Lens.Lens' CreateFHIRDatastoreResponse Prelude.Text
createFHIRDatastoreResponse_datastoreId :: (Text -> f Text)
-> CreateFHIRDatastoreResponse -> f CreateFHIRDatastoreResponse
createFHIRDatastoreResponse_datastoreId = (CreateFHIRDatastoreResponse -> Text)
-> (CreateFHIRDatastoreResponse
-> Text -> CreateFHIRDatastoreResponse)
-> Lens
CreateFHIRDatastoreResponse CreateFHIRDatastoreResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastoreResponse' {Text
datastoreId :: Text
$sel:datastoreId:CreateFHIRDatastoreResponse' :: CreateFHIRDatastoreResponse -> Text
datastoreId} -> Text
datastoreId) (\s :: CreateFHIRDatastoreResponse
s@CreateFHIRDatastoreResponse' {} Text
a -> CreateFHIRDatastoreResponse
s {$sel:datastoreId:CreateFHIRDatastoreResponse' :: Text
datastoreId = Text
a} :: CreateFHIRDatastoreResponse)
createFHIRDatastoreResponse_datastoreArn :: Lens.Lens' CreateFHIRDatastoreResponse Prelude.Text
createFHIRDatastoreResponse_datastoreArn :: (Text -> f Text)
-> CreateFHIRDatastoreResponse -> f CreateFHIRDatastoreResponse
createFHIRDatastoreResponse_datastoreArn = (CreateFHIRDatastoreResponse -> Text)
-> (CreateFHIRDatastoreResponse
-> Text -> CreateFHIRDatastoreResponse)
-> Lens
CreateFHIRDatastoreResponse CreateFHIRDatastoreResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastoreResponse' {Text
datastoreArn :: Text
$sel:datastoreArn:CreateFHIRDatastoreResponse' :: CreateFHIRDatastoreResponse -> Text
datastoreArn} -> Text
datastoreArn) (\s :: CreateFHIRDatastoreResponse
s@CreateFHIRDatastoreResponse' {} Text
a -> CreateFHIRDatastoreResponse
s {$sel:datastoreArn:CreateFHIRDatastoreResponse' :: Text
datastoreArn = Text
a} :: CreateFHIRDatastoreResponse)
createFHIRDatastoreResponse_datastoreStatus :: Lens.Lens' CreateFHIRDatastoreResponse DatastoreStatus
createFHIRDatastoreResponse_datastoreStatus :: (DatastoreStatus -> f DatastoreStatus)
-> CreateFHIRDatastoreResponse -> f CreateFHIRDatastoreResponse
createFHIRDatastoreResponse_datastoreStatus = (CreateFHIRDatastoreResponse -> DatastoreStatus)
-> (CreateFHIRDatastoreResponse
-> DatastoreStatus -> CreateFHIRDatastoreResponse)
-> Lens
CreateFHIRDatastoreResponse
CreateFHIRDatastoreResponse
DatastoreStatus
DatastoreStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastoreResponse' {DatastoreStatus
datastoreStatus :: DatastoreStatus
$sel:datastoreStatus:CreateFHIRDatastoreResponse' :: CreateFHIRDatastoreResponse -> DatastoreStatus
datastoreStatus} -> DatastoreStatus
datastoreStatus) (\s :: CreateFHIRDatastoreResponse
s@CreateFHIRDatastoreResponse' {} DatastoreStatus
a -> CreateFHIRDatastoreResponse
s {$sel:datastoreStatus:CreateFHIRDatastoreResponse' :: DatastoreStatus
datastoreStatus = DatastoreStatus
a} :: CreateFHIRDatastoreResponse)
createFHIRDatastoreResponse_datastoreEndpoint :: Lens.Lens' CreateFHIRDatastoreResponse Prelude.Text
createFHIRDatastoreResponse_datastoreEndpoint :: (Text -> f Text)
-> CreateFHIRDatastoreResponse -> f CreateFHIRDatastoreResponse
createFHIRDatastoreResponse_datastoreEndpoint = (CreateFHIRDatastoreResponse -> Text)
-> (CreateFHIRDatastoreResponse
-> Text -> CreateFHIRDatastoreResponse)
-> Lens
CreateFHIRDatastoreResponse CreateFHIRDatastoreResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateFHIRDatastoreResponse' {Text
datastoreEndpoint :: Text
$sel:datastoreEndpoint:CreateFHIRDatastoreResponse' :: CreateFHIRDatastoreResponse -> Text
datastoreEndpoint} -> Text
datastoreEndpoint) (\s :: CreateFHIRDatastoreResponse
s@CreateFHIRDatastoreResponse' {} Text
a -> CreateFHIRDatastoreResponse
s {$sel:datastoreEndpoint:CreateFHIRDatastoreResponse' :: Text
datastoreEndpoint = Text
a} :: CreateFHIRDatastoreResponse)
instance Prelude.NFData CreateFHIRDatastoreResponse