{-# 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 #-}

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

-- |
-- Module      : Amazonka.HealthLake.DeleteFHIRDatastore
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Deletes a Data Store.
module Amazonka.HealthLake.DeleteFHIRDatastore
  ( -- * Creating a Request
    DeleteFHIRDatastore (..),
    newDeleteFHIRDatastore,

    -- * Request Lenses
    deleteFHIRDatastore_datastoreId,

    -- * Destructuring the Response
    DeleteFHIRDatastoreResponse (..),
    newDeleteFHIRDatastoreResponse,

    -- * Response Lenses
    deleteFHIRDatastoreResponse_httpStatus,
    deleteFHIRDatastoreResponse_datastoreId,
    deleteFHIRDatastoreResponse_datastoreArn,
    deleteFHIRDatastoreResponse_datastoreStatus,
    deleteFHIRDatastoreResponse_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

-- | /See:/ 'newDeleteFHIRDatastore' smart constructor.
data DeleteFHIRDatastore = DeleteFHIRDatastore'
  { -- | The AWS-generated ID for the Data Store to be deleted.
    DeleteFHIRDatastore -> Maybe Text
datastoreId :: Prelude.Maybe Prelude.Text
  }
  deriving (DeleteFHIRDatastore -> DeleteFHIRDatastore -> Bool
(DeleteFHIRDatastore -> DeleteFHIRDatastore -> Bool)
-> (DeleteFHIRDatastore -> DeleteFHIRDatastore -> Bool)
-> Eq DeleteFHIRDatastore
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteFHIRDatastore -> DeleteFHIRDatastore -> Bool
$c/= :: DeleteFHIRDatastore -> DeleteFHIRDatastore -> Bool
== :: DeleteFHIRDatastore -> DeleteFHIRDatastore -> Bool
$c== :: DeleteFHIRDatastore -> DeleteFHIRDatastore -> Bool
Prelude.Eq, ReadPrec [DeleteFHIRDatastore]
ReadPrec DeleteFHIRDatastore
Int -> ReadS DeleteFHIRDatastore
ReadS [DeleteFHIRDatastore]
(Int -> ReadS DeleteFHIRDatastore)
-> ReadS [DeleteFHIRDatastore]
-> ReadPrec DeleteFHIRDatastore
-> ReadPrec [DeleteFHIRDatastore]
-> Read DeleteFHIRDatastore
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteFHIRDatastore]
$creadListPrec :: ReadPrec [DeleteFHIRDatastore]
readPrec :: ReadPrec DeleteFHIRDatastore
$creadPrec :: ReadPrec DeleteFHIRDatastore
readList :: ReadS [DeleteFHIRDatastore]
$creadList :: ReadS [DeleteFHIRDatastore]
readsPrec :: Int -> ReadS DeleteFHIRDatastore
$creadsPrec :: Int -> ReadS DeleteFHIRDatastore
Prelude.Read, Int -> DeleteFHIRDatastore -> ShowS
[DeleteFHIRDatastore] -> ShowS
DeleteFHIRDatastore -> String
(Int -> DeleteFHIRDatastore -> ShowS)
-> (DeleteFHIRDatastore -> String)
-> ([DeleteFHIRDatastore] -> ShowS)
-> Show DeleteFHIRDatastore
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteFHIRDatastore] -> ShowS
$cshowList :: [DeleteFHIRDatastore] -> ShowS
show :: DeleteFHIRDatastore -> String
$cshow :: DeleteFHIRDatastore -> String
showsPrec :: Int -> DeleteFHIRDatastore -> ShowS
$cshowsPrec :: Int -> DeleteFHIRDatastore -> ShowS
Prelude.Show, (forall x. DeleteFHIRDatastore -> Rep DeleteFHIRDatastore x)
-> (forall x. Rep DeleteFHIRDatastore x -> DeleteFHIRDatastore)
-> Generic DeleteFHIRDatastore
forall x. Rep DeleteFHIRDatastore x -> DeleteFHIRDatastore
forall x. DeleteFHIRDatastore -> Rep DeleteFHIRDatastore x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteFHIRDatastore x -> DeleteFHIRDatastore
$cfrom :: forall x. DeleteFHIRDatastore -> Rep DeleteFHIRDatastore x
Prelude.Generic)

-- |
-- Create a value of 'DeleteFHIRDatastore' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'datastoreId', 'deleteFHIRDatastore_datastoreId' - The AWS-generated ID for the Data Store to be deleted.
newDeleteFHIRDatastore ::
  DeleteFHIRDatastore
newDeleteFHIRDatastore :: DeleteFHIRDatastore
newDeleteFHIRDatastore =
  DeleteFHIRDatastore' :: Maybe Text -> DeleteFHIRDatastore
DeleteFHIRDatastore' {$sel:datastoreId:DeleteFHIRDatastore' :: Maybe Text
datastoreId = Maybe Text
forall a. Maybe a
Prelude.Nothing}

-- | The AWS-generated ID for the Data Store to be deleted.
deleteFHIRDatastore_datastoreId :: Lens.Lens' DeleteFHIRDatastore (Prelude.Maybe Prelude.Text)
deleteFHIRDatastore_datastoreId :: (Maybe Text -> f (Maybe Text))
-> DeleteFHIRDatastore -> f DeleteFHIRDatastore
deleteFHIRDatastore_datastoreId = (DeleteFHIRDatastore -> Maybe Text)
-> (DeleteFHIRDatastore -> Maybe Text -> DeleteFHIRDatastore)
-> Lens
     DeleteFHIRDatastore DeleteFHIRDatastore (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFHIRDatastore' {Maybe Text
datastoreId :: Maybe Text
$sel:datastoreId:DeleteFHIRDatastore' :: DeleteFHIRDatastore -> Maybe Text
datastoreId} -> Maybe Text
datastoreId) (\s :: DeleteFHIRDatastore
s@DeleteFHIRDatastore' {} Maybe Text
a -> DeleteFHIRDatastore
s {$sel:datastoreId:DeleteFHIRDatastore' :: Maybe Text
datastoreId = Maybe Text
a} :: DeleteFHIRDatastore)

instance Core.AWSRequest DeleteFHIRDatastore where
  type
    AWSResponse DeleteFHIRDatastore =
      DeleteFHIRDatastoreResponse
  request :: DeleteFHIRDatastore -> Request DeleteFHIRDatastore
request = Service -> DeleteFHIRDatastore -> Request DeleteFHIRDatastore
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteFHIRDatastore
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteFHIRDatastore)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DeleteFHIRDatastore))
-> Logger
-> Service
-> Proxy DeleteFHIRDatastore
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteFHIRDatastore)))
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
-> DeleteFHIRDatastoreResponse
DeleteFHIRDatastoreResponse'
            (Int
 -> Text
 -> Text
 -> DatastoreStatus
 -> Text
 -> DeleteFHIRDatastoreResponse)
-> Either String Int
-> Either
     String
     (Text
      -> Text -> DatastoreStatus -> Text -> DeleteFHIRDatastoreResponse)
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 -> DeleteFHIRDatastoreResponse)
-> Either String Text
-> Either
     String
     (Text -> DatastoreStatus -> Text -> DeleteFHIRDatastoreResponse)
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 -> DeleteFHIRDatastoreResponse)
-> Either String Text
-> Either
     String (DatastoreStatus -> Text -> DeleteFHIRDatastoreResponse)
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 -> DeleteFHIRDatastoreResponse)
-> Either String DatastoreStatus
-> Either String (Text -> DeleteFHIRDatastoreResponse)
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 -> DeleteFHIRDatastoreResponse)
-> Either String Text -> Either String DeleteFHIRDatastoreResponse
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 DeleteFHIRDatastore

instance Prelude.NFData DeleteFHIRDatastore

instance Core.ToHeaders DeleteFHIRDatastore where
  toHeaders :: DeleteFHIRDatastore -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DeleteFHIRDatastore -> 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.DeleteFHIRDatastore" ::
                          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 DeleteFHIRDatastore where
  toJSON :: DeleteFHIRDatastore -> Value
toJSON DeleteFHIRDatastore' {Maybe Text
datastoreId :: Maybe Text
$sel:datastoreId:DeleteFHIRDatastore' :: DeleteFHIRDatastore -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [(Text
"DatastoreId" 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
datastoreId]
      )

instance Core.ToPath DeleteFHIRDatastore where
  toPath :: DeleteFHIRDatastore -> ByteString
toPath = ByteString -> DeleteFHIRDatastore -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery DeleteFHIRDatastore where
  toQuery :: DeleteFHIRDatastore -> QueryString
toQuery = QueryString -> DeleteFHIRDatastore -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDeleteFHIRDatastoreResponse' smart constructor.
data DeleteFHIRDatastoreResponse = DeleteFHIRDatastoreResponse'
  { -- | The response's http status code.
    DeleteFHIRDatastoreResponse -> Int
httpStatus :: Prelude.Int,
    -- | The AWS-generated ID for the Data Store to be deleted.
    DeleteFHIRDatastoreResponse -> Text
datastoreId :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) that gives Amazon HealthLake access
    -- permission.
    DeleteFHIRDatastoreResponse -> Text
datastoreArn :: Prelude.Text,
    -- | The status of the Data Store that the user has requested to be deleted.
    DeleteFHIRDatastoreResponse -> DatastoreStatus
datastoreStatus :: DatastoreStatus,
    -- | The AWS endpoint for the Data Store the user has requested to be
    -- deleted.
    DeleteFHIRDatastoreResponse -> Text
datastoreEndpoint :: Prelude.Text
  }
  deriving (DeleteFHIRDatastoreResponse -> DeleteFHIRDatastoreResponse -> Bool
(DeleteFHIRDatastoreResponse
 -> DeleteFHIRDatastoreResponse -> Bool)
-> (DeleteFHIRDatastoreResponse
    -> DeleteFHIRDatastoreResponse -> Bool)
-> Eq DeleteFHIRDatastoreResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteFHIRDatastoreResponse -> DeleteFHIRDatastoreResponse -> Bool
$c/= :: DeleteFHIRDatastoreResponse -> DeleteFHIRDatastoreResponse -> Bool
== :: DeleteFHIRDatastoreResponse -> DeleteFHIRDatastoreResponse -> Bool
$c== :: DeleteFHIRDatastoreResponse -> DeleteFHIRDatastoreResponse -> Bool
Prelude.Eq, ReadPrec [DeleteFHIRDatastoreResponse]
ReadPrec DeleteFHIRDatastoreResponse
Int -> ReadS DeleteFHIRDatastoreResponse
ReadS [DeleteFHIRDatastoreResponse]
(Int -> ReadS DeleteFHIRDatastoreResponse)
-> ReadS [DeleteFHIRDatastoreResponse]
-> ReadPrec DeleteFHIRDatastoreResponse
-> ReadPrec [DeleteFHIRDatastoreResponse]
-> Read DeleteFHIRDatastoreResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteFHIRDatastoreResponse]
$creadListPrec :: ReadPrec [DeleteFHIRDatastoreResponse]
readPrec :: ReadPrec DeleteFHIRDatastoreResponse
$creadPrec :: ReadPrec DeleteFHIRDatastoreResponse
readList :: ReadS [DeleteFHIRDatastoreResponse]
$creadList :: ReadS [DeleteFHIRDatastoreResponse]
readsPrec :: Int -> ReadS DeleteFHIRDatastoreResponse
$creadsPrec :: Int -> ReadS DeleteFHIRDatastoreResponse
Prelude.Read, Int -> DeleteFHIRDatastoreResponse -> ShowS
[DeleteFHIRDatastoreResponse] -> ShowS
DeleteFHIRDatastoreResponse -> String
(Int -> DeleteFHIRDatastoreResponse -> ShowS)
-> (DeleteFHIRDatastoreResponse -> String)
-> ([DeleteFHIRDatastoreResponse] -> ShowS)
-> Show DeleteFHIRDatastoreResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteFHIRDatastoreResponse] -> ShowS
$cshowList :: [DeleteFHIRDatastoreResponse] -> ShowS
show :: DeleteFHIRDatastoreResponse -> String
$cshow :: DeleteFHIRDatastoreResponse -> String
showsPrec :: Int -> DeleteFHIRDatastoreResponse -> ShowS
$cshowsPrec :: Int -> DeleteFHIRDatastoreResponse -> ShowS
Prelude.Show, (forall x.
 DeleteFHIRDatastoreResponse -> Rep DeleteFHIRDatastoreResponse x)
-> (forall x.
    Rep DeleteFHIRDatastoreResponse x -> DeleteFHIRDatastoreResponse)
-> Generic DeleteFHIRDatastoreResponse
forall x.
Rep DeleteFHIRDatastoreResponse x -> DeleteFHIRDatastoreResponse
forall x.
DeleteFHIRDatastoreResponse -> Rep DeleteFHIRDatastoreResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteFHIRDatastoreResponse x -> DeleteFHIRDatastoreResponse
$cfrom :: forall x.
DeleteFHIRDatastoreResponse -> Rep DeleteFHIRDatastoreResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteFHIRDatastoreResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'httpStatus', 'deleteFHIRDatastoreResponse_httpStatus' - The response's http status code.
--
-- 'datastoreId', 'deleteFHIRDatastoreResponse_datastoreId' - The AWS-generated ID for the Data Store to be deleted.
--
-- 'datastoreArn', 'deleteFHIRDatastoreResponse_datastoreArn' - The Amazon Resource Name (ARN) that gives Amazon HealthLake access
-- permission.
--
-- 'datastoreStatus', 'deleteFHIRDatastoreResponse_datastoreStatus' - The status of the Data Store that the user has requested to be deleted.
--
-- 'datastoreEndpoint', 'deleteFHIRDatastoreResponse_datastoreEndpoint' - The AWS endpoint for the Data Store the user has requested to be
-- deleted.
newDeleteFHIRDatastoreResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'datastoreId'
  Prelude.Text ->
  -- | 'datastoreArn'
  Prelude.Text ->
  -- | 'datastoreStatus'
  DatastoreStatus ->
  -- | 'datastoreEndpoint'
  Prelude.Text ->
  DeleteFHIRDatastoreResponse
newDeleteFHIRDatastoreResponse :: Int
-> Text
-> Text
-> DatastoreStatus
-> Text
-> DeleteFHIRDatastoreResponse
newDeleteFHIRDatastoreResponse
  Int
pHttpStatus_
  Text
pDatastoreId_
  Text
pDatastoreArn_
  DatastoreStatus
pDatastoreStatus_
  Text
pDatastoreEndpoint_ =
    DeleteFHIRDatastoreResponse' :: Int
-> Text
-> Text
-> DatastoreStatus
-> Text
-> DeleteFHIRDatastoreResponse
DeleteFHIRDatastoreResponse'
      { $sel:httpStatus:DeleteFHIRDatastoreResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:datastoreId:DeleteFHIRDatastoreResponse' :: Text
datastoreId = Text
pDatastoreId_,
        $sel:datastoreArn:DeleteFHIRDatastoreResponse' :: Text
datastoreArn = Text
pDatastoreArn_,
        $sel:datastoreStatus:DeleteFHIRDatastoreResponse' :: DatastoreStatus
datastoreStatus = DatastoreStatus
pDatastoreStatus_,
        $sel:datastoreEndpoint:DeleteFHIRDatastoreResponse' :: Text
datastoreEndpoint = Text
pDatastoreEndpoint_
      }

-- | The response's http status code.
deleteFHIRDatastoreResponse_httpStatus :: Lens.Lens' DeleteFHIRDatastoreResponse Prelude.Int
deleteFHIRDatastoreResponse_httpStatus :: (Int -> f Int)
-> DeleteFHIRDatastoreResponse -> f DeleteFHIRDatastoreResponse
deleteFHIRDatastoreResponse_httpStatus = (DeleteFHIRDatastoreResponse -> Int)
-> (DeleteFHIRDatastoreResponse
    -> Int -> DeleteFHIRDatastoreResponse)
-> Lens
     DeleteFHIRDatastoreResponse DeleteFHIRDatastoreResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFHIRDatastoreResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteFHIRDatastoreResponse' :: DeleteFHIRDatastoreResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteFHIRDatastoreResponse
s@DeleteFHIRDatastoreResponse' {} Int
a -> DeleteFHIRDatastoreResponse
s {$sel:httpStatus:DeleteFHIRDatastoreResponse' :: Int
httpStatus = Int
a} :: DeleteFHIRDatastoreResponse)

-- | The AWS-generated ID for the Data Store to be deleted.
deleteFHIRDatastoreResponse_datastoreId :: Lens.Lens' DeleteFHIRDatastoreResponse Prelude.Text
deleteFHIRDatastoreResponse_datastoreId :: (Text -> f Text)
-> DeleteFHIRDatastoreResponse -> f DeleteFHIRDatastoreResponse
deleteFHIRDatastoreResponse_datastoreId = (DeleteFHIRDatastoreResponse -> Text)
-> (DeleteFHIRDatastoreResponse
    -> Text -> DeleteFHIRDatastoreResponse)
-> Lens
     DeleteFHIRDatastoreResponse DeleteFHIRDatastoreResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFHIRDatastoreResponse' {Text
datastoreId :: Text
$sel:datastoreId:DeleteFHIRDatastoreResponse' :: DeleteFHIRDatastoreResponse -> Text
datastoreId} -> Text
datastoreId) (\s :: DeleteFHIRDatastoreResponse
s@DeleteFHIRDatastoreResponse' {} Text
a -> DeleteFHIRDatastoreResponse
s {$sel:datastoreId:DeleteFHIRDatastoreResponse' :: Text
datastoreId = Text
a} :: DeleteFHIRDatastoreResponse)

-- | The Amazon Resource Name (ARN) that gives Amazon HealthLake access
-- permission.
deleteFHIRDatastoreResponse_datastoreArn :: Lens.Lens' DeleteFHIRDatastoreResponse Prelude.Text
deleteFHIRDatastoreResponse_datastoreArn :: (Text -> f Text)
-> DeleteFHIRDatastoreResponse -> f DeleteFHIRDatastoreResponse
deleteFHIRDatastoreResponse_datastoreArn = (DeleteFHIRDatastoreResponse -> Text)
-> (DeleteFHIRDatastoreResponse
    -> Text -> DeleteFHIRDatastoreResponse)
-> Lens
     DeleteFHIRDatastoreResponse DeleteFHIRDatastoreResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFHIRDatastoreResponse' {Text
datastoreArn :: Text
$sel:datastoreArn:DeleteFHIRDatastoreResponse' :: DeleteFHIRDatastoreResponse -> Text
datastoreArn} -> Text
datastoreArn) (\s :: DeleteFHIRDatastoreResponse
s@DeleteFHIRDatastoreResponse' {} Text
a -> DeleteFHIRDatastoreResponse
s {$sel:datastoreArn:DeleteFHIRDatastoreResponse' :: Text
datastoreArn = Text
a} :: DeleteFHIRDatastoreResponse)

-- | The status of the Data Store that the user has requested to be deleted.
deleteFHIRDatastoreResponse_datastoreStatus :: Lens.Lens' DeleteFHIRDatastoreResponse DatastoreStatus
deleteFHIRDatastoreResponse_datastoreStatus :: (DatastoreStatus -> f DatastoreStatus)
-> DeleteFHIRDatastoreResponse -> f DeleteFHIRDatastoreResponse
deleteFHIRDatastoreResponse_datastoreStatus = (DeleteFHIRDatastoreResponse -> DatastoreStatus)
-> (DeleteFHIRDatastoreResponse
    -> DatastoreStatus -> DeleteFHIRDatastoreResponse)
-> Lens
     DeleteFHIRDatastoreResponse
     DeleteFHIRDatastoreResponse
     DatastoreStatus
     DatastoreStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFHIRDatastoreResponse' {DatastoreStatus
datastoreStatus :: DatastoreStatus
$sel:datastoreStatus:DeleteFHIRDatastoreResponse' :: DeleteFHIRDatastoreResponse -> DatastoreStatus
datastoreStatus} -> DatastoreStatus
datastoreStatus) (\s :: DeleteFHIRDatastoreResponse
s@DeleteFHIRDatastoreResponse' {} DatastoreStatus
a -> DeleteFHIRDatastoreResponse
s {$sel:datastoreStatus:DeleteFHIRDatastoreResponse' :: DatastoreStatus
datastoreStatus = DatastoreStatus
a} :: DeleteFHIRDatastoreResponse)

-- | The AWS endpoint for the Data Store the user has requested to be
-- deleted.
deleteFHIRDatastoreResponse_datastoreEndpoint :: Lens.Lens' DeleteFHIRDatastoreResponse Prelude.Text
deleteFHIRDatastoreResponse_datastoreEndpoint :: (Text -> f Text)
-> DeleteFHIRDatastoreResponse -> f DeleteFHIRDatastoreResponse
deleteFHIRDatastoreResponse_datastoreEndpoint = (DeleteFHIRDatastoreResponse -> Text)
-> (DeleteFHIRDatastoreResponse
    -> Text -> DeleteFHIRDatastoreResponse)
-> Lens
     DeleteFHIRDatastoreResponse DeleteFHIRDatastoreResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteFHIRDatastoreResponse' {Text
datastoreEndpoint :: Text
$sel:datastoreEndpoint:DeleteFHIRDatastoreResponse' :: DeleteFHIRDatastoreResponse -> Text
datastoreEndpoint} -> Text
datastoreEndpoint) (\s :: DeleteFHIRDatastoreResponse
s@DeleteFHIRDatastoreResponse' {} Text
a -> DeleteFHIRDatastoreResponse
s {$sel:datastoreEndpoint:DeleteFHIRDatastoreResponse' :: Text
datastoreEndpoint = Text
a} :: DeleteFHIRDatastoreResponse)

instance Prelude.NFData DeleteFHIRDatastoreResponse