{-# 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.KinesisAnalyticsV2.DeleteApplicationReferenceDataSource
-- 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 reference data source configuration from the specified
-- SQL-based Kinesis Data Analytics application\'s configuration.
--
-- If the application is running, Kinesis Data Analytics immediately
-- removes the in-application table that you created using the
-- AddApplicationReferenceDataSource operation.
module Amazonka.KinesisAnalyticsV2.DeleteApplicationReferenceDataSource
  ( -- * Creating a Request
    DeleteApplicationReferenceDataSource (..),
    newDeleteApplicationReferenceDataSource,

    -- * Request Lenses
    deleteApplicationReferenceDataSource_applicationName,
    deleteApplicationReferenceDataSource_currentApplicationVersionId,
    deleteApplicationReferenceDataSource_referenceId,

    -- * Destructuring the Response
    DeleteApplicationReferenceDataSourceResponse (..),
    newDeleteApplicationReferenceDataSourceResponse,

    -- * Response Lenses
    deleteApplicationReferenceDataSourceResponse_applicationARN,
    deleteApplicationReferenceDataSourceResponse_applicationVersionId,
    deleteApplicationReferenceDataSourceResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalyticsV2.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:/ 'newDeleteApplicationReferenceDataSource' smart constructor.
data DeleteApplicationReferenceDataSource = DeleteApplicationReferenceDataSource'
  { -- | The name of an existing application.
    DeleteApplicationReferenceDataSource -> Text
applicationName :: Prelude.Text,
    -- | The current application version. You can use the DescribeApplication
    -- operation to get the current application version. If the version
    -- specified is not the current version, the
    -- @ConcurrentModificationException@ is returned.
    DeleteApplicationReferenceDataSource -> Natural
currentApplicationVersionId :: Prelude.Natural,
    -- | The ID of the reference data source. When you add a reference data
    -- source to your application using the AddApplicationReferenceDataSource,
    -- Kinesis Data Analytics assigns an ID. You can use the
    -- DescribeApplication operation to get the reference ID.
    DeleteApplicationReferenceDataSource -> Text
referenceId :: Prelude.Text
  }
  deriving (DeleteApplicationReferenceDataSource
-> DeleteApplicationReferenceDataSource -> Bool
(DeleteApplicationReferenceDataSource
 -> DeleteApplicationReferenceDataSource -> Bool)
-> (DeleteApplicationReferenceDataSource
    -> DeleteApplicationReferenceDataSource -> Bool)
-> Eq DeleteApplicationReferenceDataSource
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteApplicationReferenceDataSource
-> DeleteApplicationReferenceDataSource -> Bool
$c/= :: DeleteApplicationReferenceDataSource
-> DeleteApplicationReferenceDataSource -> Bool
== :: DeleteApplicationReferenceDataSource
-> DeleteApplicationReferenceDataSource -> Bool
$c== :: DeleteApplicationReferenceDataSource
-> DeleteApplicationReferenceDataSource -> Bool
Prelude.Eq, ReadPrec [DeleteApplicationReferenceDataSource]
ReadPrec DeleteApplicationReferenceDataSource
Int -> ReadS DeleteApplicationReferenceDataSource
ReadS [DeleteApplicationReferenceDataSource]
(Int -> ReadS DeleteApplicationReferenceDataSource)
-> ReadS [DeleteApplicationReferenceDataSource]
-> ReadPrec DeleteApplicationReferenceDataSource
-> ReadPrec [DeleteApplicationReferenceDataSource]
-> Read DeleteApplicationReferenceDataSource
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteApplicationReferenceDataSource]
$creadListPrec :: ReadPrec [DeleteApplicationReferenceDataSource]
readPrec :: ReadPrec DeleteApplicationReferenceDataSource
$creadPrec :: ReadPrec DeleteApplicationReferenceDataSource
readList :: ReadS [DeleteApplicationReferenceDataSource]
$creadList :: ReadS [DeleteApplicationReferenceDataSource]
readsPrec :: Int -> ReadS DeleteApplicationReferenceDataSource
$creadsPrec :: Int -> ReadS DeleteApplicationReferenceDataSource
Prelude.Read, Int -> DeleteApplicationReferenceDataSource -> ShowS
[DeleteApplicationReferenceDataSource] -> ShowS
DeleteApplicationReferenceDataSource -> String
(Int -> DeleteApplicationReferenceDataSource -> ShowS)
-> (DeleteApplicationReferenceDataSource -> String)
-> ([DeleteApplicationReferenceDataSource] -> ShowS)
-> Show DeleteApplicationReferenceDataSource
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteApplicationReferenceDataSource] -> ShowS
$cshowList :: [DeleteApplicationReferenceDataSource] -> ShowS
show :: DeleteApplicationReferenceDataSource -> String
$cshow :: DeleteApplicationReferenceDataSource -> String
showsPrec :: Int -> DeleteApplicationReferenceDataSource -> ShowS
$cshowsPrec :: Int -> DeleteApplicationReferenceDataSource -> ShowS
Prelude.Show, (forall x.
 DeleteApplicationReferenceDataSource
 -> Rep DeleteApplicationReferenceDataSource x)
-> (forall x.
    Rep DeleteApplicationReferenceDataSource x
    -> DeleteApplicationReferenceDataSource)
-> Generic DeleteApplicationReferenceDataSource
forall x.
Rep DeleteApplicationReferenceDataSource x
-> DeleteApplicationReferenceDataSource
forall x.
DeleteApplicationReferenceDataSource
-> Rep DeleteApplicationReferenceDataSource x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteApplicationReferenceDataSource x
-> DeleteApplicationReferenceDataSource
$cfrom :: forall x.
DeleteApplicationReferenceDataSource
-> Rep DeleteApplicationReferenceDataSource x
Prelude.Generic)

-- |
-- Create a value of 'DeleteApplicationReferenceDataSource' 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:
--
-- 'applicationName', 'deleteApplicationReferenceDataSource_applicationName' - The name of an existing application.
--
-- 'currentApplicationVersionId', 'deleteApplicationReferenceDataSource_currentApplicationVersionId' - The current application version. You can use the DescribeApplication
-- operation to get the current application version. If the version
-- specified is not the current version, the
-- @ConcurrentModificationException@ is returned.
--
-- 'referenceId', 'deleteApplicationReferenceDataSource_referenceId' - The ID of the reference data source. When you add a reference data
-- source to your application using the AddApplicationReferenceDataSource,
-- Kinesis Data Analytics assigns an ID. You can use the
-- DescribeApplication operation to get the reference ID.
newDeleteApplicationReferenceDataSource ::
  -- | 'applicationName'
  Prelude.Text ->
  -- | 'currentApplicationVersionId'
  Prelude.Natural ->
  -- | 'referenceId'
  Prelude.Text ->
  DeleteApplicationReferenceDataSource
newDeleteApplicationReferenceDataSource :: Text -> Natural -> Text -> DeleteApplicationReferenceDataSource
newDeleteApplicationReferenceDataSource
  Text
pApplicationName_
  Natural
pCurrentApplicationVersionId_
  Text
pReferenceId_ =
    DeleteApplicationReferenceDataSource' :: Text -> Natural -> Text -> DeleteApplicationReferenceDataSource
DeleteApplicationReferenceDataSource'
      { $sel:applicationName:DeleteApplicationReferenceDataSource' :: Text
applicationName =
          Text
pApplicationName_,
        $sel:currentApplicationVersionId:DeleteApplicationReferenceDataSource' :: Natural
currentApplicationVersionId =
          Natural
pCurrentApplicationVersionId_,
        $sel:referenceId:DeleteApplicationReferenceDataSource' :: Text
referenceId = Text
pReferenceId_
      }

-- | The name of an existing application.
deleteApplicationReferenceDataSource_applicationName :: Lens.Lens' DeleteApplicationReferenceDataSource Prelude.Text
deleteApplicationReferenceDataSource_applicationName :: (Text -> f Text)
-> DeleteApplicationReferenceDataSource
-> f DeleteApplicationReferenceDataSource
deleteApplicationReferenceDataSource_applicationName = (DeleteApplicationReferenceDataSource -> Text)
-> (DeleteApplicationReferenceDataSource
    -> Text -> DeleteApplicationReferenceDataSource)
-> Lens
     DeleteApplicationReferenceDataSource
     DeleteApplicationReferenceDataSource
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationReferenceDataSource' {Text
applicationName :: Text
$sel:applicationName:DeleteApplicationReferenceDataSource' :: DeleteApplicationReferenceDataSource -> Text
applicationName} -> Text
applicationName) (\s :: DeleteApplicationReferenceDataSource
s@DeleteApplicationReferenceDataSource' {} Text
a -> DeleteApplicationReferenceDataSource
s {$sel:applicationName:DeleteApplicationReferenceDataSource' :: Text
applicationName = Text
a} :: DeleteApplicationReferenceDataSource)

-- | The current application version. You can use the DescribeApplication
-- operation to get the current application version. If the version
-- specified is not the current version, the
-- @ConcurrentModificationException@ is returned.
deleteApplicationReferenceDataSource_currentApplicationVersionId :: Lens.Lens' DeleteApplicationReferenceDataSource Prelude.Natural
deleteApplicationReferenceDataSource_currentApplicationVersionId :: (Natural -> f Natural)
-> DeleteApplicationReferenceDataSource
-> f DeleteApplicationReferenceDataSource
deleteApplicationReferenceDataSource_currentApplicationVersionId = (DeleteApplicationReferenceDataSource -> Natural)
-> (DeleteApplicationReferenceDataSource
    -> Natural -> DeleteApplicationReferenceDataSource)
-> Lens
     DeleteApplicationReferenceDataSource
     DeleteApplicationReferenceDataSource
     Natural
     Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationReferenceDataSource' {Natural
currentApplicationVersionId :: Natural
$sel:currentApplicationVersionId:DeleteApplicationReferenceDataSource' :: DeleteApplicationReferenceDataSource -> Natural
currentApplicationVersionId} -> Natural
currentApplicationVersionId) (\s :: DeleteApplicationReferenceDataSource
s@DeleteApplicationReferenceDataSource' {} Natural
a -> DeleteApplicationReferenceDataSource
s {$sel:currentApplicationVersionId:DeleteApplicationReferenceDataSource' :: Natural
currentApplicationVersionId = Natural
a} :: DeleteApplicationReferenceDataSource)

-- | The ID of the reference data source. When you add a reference data
-- source to your application using the AddApplicationReferenceDataSource,
-- Kinesis Data Analytics assigns an ID. You can use the
-- DescribeApplication operation to get the reference ID.
deleteApplicationReferenceDataSource_referenceId :: Lens.Lens' DeleteApplicationReferenceDataSource Prelude.Text
deleteApplicationReferenceDataSource_referenceId :: (Text -> f Text)
-> DeleteApplicationReferenceDataSource
-> f DeleteApplicationReferenceDataSource
deleteApplicationReferenceDataSource_referenceId = (DeleteApplicationReferenceDataSource -> Text)
-> (DeleteApplicationReferenceDataSource
    -> Text -> DeleteApplicationReferenceDataSource)
-> Lens
     DeleteApplicationReferenceDataSource
     DeleteApplicationReferenceDataSource
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationReferenceDataSource' {Text
referenceId :: Text
$sel:referenceId:DeleteApplicationReferenceDataSource' :: DeleteApplicationReferenceDataSource -> Text
referenceId} -> Text
referenceId) (\s :: DeleteApplicationReferenceDataSource
s@DeleteApplicationReferenceDataSource' {} Text
a -> DeleteApplicationReferenceDataSource
s {$sel:referenceId:DeleteApplicationReferenceDataSource' :: Text
referenceId = Text
a} :: DeleteApplicationReferenceDataSource)

instance
  Core.AWSRequest
    DeleteApplicationReferenceDataSource
  where
  type
    AWSResponse DeleteApplicationReferenceDataSource =
      DeleteApplicationReferenceDataSourceResponse
  request :: DeleteApplicationReferenceDataSource
-> Request DeleteApplicationReferenceDataSource
request = Service
-> DeleteApplicationReferenceDataSource
-> Request DeleteApplicationReferenceDataSource
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteApplicationReferenceDataSource
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DeleteApplicationReferenceDataSource)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DeleteApplicationReferenceDataSource))
-> Logger
-> Service
-> Proxy DeleteApplicationReferenceDataSource
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DeleteApplicationReferenceDataSource)))
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 Natural
-> Int
-> DeleteApplicationReferenceDataSourceResponse
DeleteApplicationReferenceDataSourceResponse'
            (Maybe Text
 -> Maybe Natural
 -> Int
 -> DeleteApplicationReferenceDataSourceResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Natural
      -> Int -> DeleteApplicationReferenceDataSourceResponse)
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
"ApplicationARN")
              Either
  String
  (Maybe Natural
   -> Int -> DeleteApplicationReferenceDataSourceResponse)
-> Either String (Maybe Natural)
-> Either
     String (Int -> DeleteApplicationReferenceDataSourceResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ApplicationVersionId")
              Either String (Int -> DeleteApplicationReferenceDataSourceResponse)
-> Either String Int
-> Either String DeleteApplicationReferenceDataSourceResponse
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
    DeleteApplicationReferenceDataSource

instance
  Prelude.NFData
    DeleteApplicationReferenceDataSource

instance
  Core.ToHeaders
    DeleteApplicationReferenceDataSource
  where
  toHeaders :: DeleteApplicationReferenceDataSource -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DeleteApplicationReferenceDataSource -> 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
"KinesisAnalytics_20180523.DeleteApplicationReferenceDataSource" ::
                          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
    DeleteApplicationReferenceDataSource
  where
  toJSON :: DeleteApplicationReferenceDataSource -> Value
toJSON DeleteApplicationReferenceDataSource' {Natural
Text
referenceId :: Text
currentApplicationVersionId :: Natural
applicationName :: Text
$sel:referenceId:DeleteApplicationReferenceDataSource' :: DeleteApplicationReferenceDataSource -> Text
$sel:currentApplicationVersionId:DeleteApplicationReferenceDataSource' :: DeleteApplicationReferenceDataSource -> Natural
$sel:applicationName:DeleteApplicationReferenceDataSource' :: DeleteApplicationReferenceDataSource -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"ApplicationName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
applicationName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"CurrentApplicationVersionId"
                  Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
currentApplicationVersionId
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ReferenceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
referenceId)
          ]
      )

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

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

-- | /See:/ 'newDeleteApplicationReferenceDataSourceResponse' smart constructor.
data DeleteApplicationReferenceDataSourceResponse = DeleteApplicationReferenceDataSourceResponse'
  { -- | The application Amazon Resource Name (ARN).
    DeleteApplicationReferenceDataSourceResponse -> Maybe Text
applicationARN :: Prelude.Maybe Prelude.Text,
    -- | The updated version ID of the application.
    DeleteApplicationReferenceDataSourceResponse -> Maybe Natural
applicationVersionId :: Prelude.Maybe Prelude.Natural,
    -- | The response's http status code.
    DeleteApplicationReferenceDataSourceResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DeleteApplicationReferenceDataSourceResponse
-> DeleteApplicationReferenceDataSourceResponse -> Bool
(DeleteApplicationReferenceDataSourceResponse
 -> DeleteApplicationReferenceDataSourceResponse -> Bool)
-> (DeleteApplicationReferenceDataSourceResponse
    -> DeleteApplicationReferenceDataSourceResponse -> Bool)
-> Eq DeleteApplicationReferenceDataSourceResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteApplicationReferenceDataSourceResponse
-> DeleteApplicationReferenceDataSourceResponse -> Bool
$c/= :: DeleteApplicationReferenceDataSourceResponse
-> DeleteApplicationReferenceDataSourceResponse -> Bool
== :: DeleteApplicationReferenceDataSourceResponse
-> DeleteApplicationReferenceDataSourceResponse -> Bool
$c== :: DeleteApplicationReferenceDataSourceResponse
-> DeleteApplicationReferenceDataSourceResponse -> Bool
Prelude.Eq, ReadPrec [DeleteApplicationReferenceDataSourceResponse]
ReadPrec DeleteApplicationReferenceDataSourceResponse
Int -> ReadS DeleteApplicationReferenceDataSourceResponse
ReadS [DeleteApplicationReferenceDataSourceResponse]
(Int -> ReadS DeleteApplicationReferenceDataSourceResponse)
-> ReadS [DeleteApplicationReferenceDataSourceResponse]
-> ReadPrec DeleteApplicationReferenceDataSourceResponse
-> ReadPrec [DeleteApplicationReferenceDataSourceResponse]
-> Read DeleteApplicationReferenceDataSourceResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteApplicationReferenceDataSourceResponse]
$creadListPrec :: ReadPrec [DeleteApplicationReferenceDataSourceResponse]
readPrec :: ReadPrec DeleteApplicationReferenceDataSourceResponse
$creadPrec :: ReadPrec DeleteApplicationReferenceDataSourceResponse
readList :: ReadS [DeleteApplicationReferenceDataSourceResponse]
$creadList :: ReadS [DeleteApplicationReferenceDataSourceResponse]
readsPrec :: Int -> ReadS DeleteApplicationReferenceDataSourceResponse
$creadsPrec :: Int -> ReadS DeleteApplicationReferenceDataSourceResponse
Prelude.Read, Int -> DeleteApplicationReferenceDataSourceResponse -> ShowS
[DeleteApplicationReferenceDataSourceResponse] -> ShowS
DeleteApplicationReferenceDataSourceResponse -> String
(Int -> DeleteApplicationReferenceDataSourceResponse -> ShowS)
-> (DeleteApplicationReferenceDataSourceResponse -> String)
-> ([DeleteApplicationReferenceDataSourceResponse] -> ShowS)
-> Show DeleteApplicationReferenceDataSourceResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteApplicationReferenceDataSourceResponse] -> ShowS
$cshowList :: [DeleteApplicationReferenceDataSourceResponse] -> ShowS
show :: DeleteApplicationReferenceDataSourceResponse -> String
$cshow :: DeleteApplicationReferenceDataSourceResponse -> String
showsPrec :: Int -> DeleteApplicationReferenceDataSourceResponse -> ShowS
$cshowsPrec :: Int -> DeleteApplicationReferenceDataSourceResponse -> ShowS
Prelude.Show, (forall x.
 DeleteApplicationReferenceDataSourceResponse
 -> Rep DeleteApplicationReferenceDataSourceResponse x)
-> (forall x.
    Rep DeleteApplicationReferenceDataSourceResponse x
    -> DeleteApplicationReferenceDataSourceResponse)
-> Generic DeleteApplicationReferenceDataSourceResponse
forall x.
Rep DeleteApplicationReferenceDataSourceResponse x
-> DeleteApplicationReferenceDataSourceResponse
forall x.
DeleteApplicationReferenceDataSourceResponse
-> Rep DeleteApplicationReferenceDataSourceResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteApplicationReferenceDataSourceResponse x
-> DeleteApplicationReferenceDataSourceResponse
$cfrom :: forall x.
DeleteApplicationReferenceDataSourceResponse
-> Rep DeleteApplicationReferenceDataSourceResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteApplicationReferenceDataSourceResponse' 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:
--
-- 'applicationARN', 'deleteApplicationReferenceDataSourceResponse_applicationARN' - The application Amazon Resource Name (ARN).
--
-- 'applicationVersionId', 'deleteApplicationReferenceDataSourceResponse_applicationVersionId' - The updated version ID of the application.
--
-- 'httpStatus', 'deleteApplicationReferenceDataSourceResponse_httpStatus' - The response's http status code.
newDeleteApplicationReferenceDataSourceResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteApplicationReferenceDataSourceResponse
newDeleteApplicationReferenceDataSourceResponse :: Int -> DeleteApplicationReferenceDataSourceResponse
newDeleteApplicationReferenceDataSourceResponse
  Int
pHttpStatus_ =
    DeleteApplicationReferenceDataSourceResponse' :: Maybe Text
-> Maybe Natural
-> Int
-> DeleteApplicationReferenceDataSourceResponse
DeleteApplicationReferenceDataSourceResponse'
      { $sel:applicationARN:DeleteApplicationReferenceDataSourceResponse' :: Maybe Text
applicationARN =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationVersionId:DeleteApplicationReferenceDataSourceResponse' :: Maybe Natural
applicationVersionId =
          Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DeleteApplicationReferenceDataSourceResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The application Amazon Resource Name (ARN).
deleteApplicationReferenceDataSourceResponse_applicationARN :: Lens.Lens' DeleteApplicationReferenceDataSourceResponse (Prelude.Maybe Prelude.Text)
deleteApplicationReferenceDataSourceResponse_applicationARN :: (Maybe Text -> f (Maybe Text))
-> DeleteApplicationReferenceDataSourceResponse
-> f DeleteApplicationReferenceDataSourceResponse
deleteApplicationReferenceDataSourceResponse_applicationARN = (DeleteApplicationReferenceDataSourceResponse -> Maybe Text)
-> (DeleteApplicationReferenceDataSourceResponse
    -> Maybe Text -> DeleteApplicationReferenceDataSourceResponse)
-> Lens
     DeleteApplicationReferenceDataSourceResponse
     DeleteApplicationReferenceDataSourceResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationReferenceDataSourceResponse' {Maybe Text
applicationARN :: Maybe Text
$sel:applicationARN:DeleteApplicationReferenceDataSourceResponse' :: DeleteApplicationReferenceDataSourceResponse -> Maybe Text
applicationARN} -> Maybe Text
applicationARN) (\s :: DeleteApplicationReferenceDataSourceResponse
s@DeleteApplicationReferenceDataSourceResponse' {} Maybe Text
a -> DeleteApplicationReferenceDataSourceResponse
s {$sel:applicationARN:DeleteApplicationReferenceDataSourceResponse' :: Maybe Text
applicationARN = Maybe Text
a} :: DeleteApplicationReferenceDataSourceResponse)

-- | The updated version ID of the application.
deleteApplicationReferenceDataSourceResponse_applicationVersionId :: Lens.Lens' DeleteApplicationReferenceDataSourceResponse (Prelude.Maybe Prelude.Natural)
deleteApplicationReferenceDataSourceResponse_applicationVersionId :: (Maybe Natural -> f (Maybe Natural))
-> DeleteApplicationReferenceDataSourceResponse
-> f DeleteApplicationReferenceDataSourceResponse
deleteApplicationReferenceDataSourceResponse_applicationVersionId = (DeleteApplicationReferenceDataSourceResponse -> Maybe Natural)
-> (DeleteApplicationReferenceDataSourceResponse
    -> Maybe Natural -> DeleteApplicationReferenceDataSourceResponse)
-> Lens
     DeleteApplicationReferenceDataSourceResponse
     DeleteApplicationReferenceDataSourceResponse
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationReferenceDataSourceResponse' {Maybe Natural
applicationVersionId :: Maybe Natural
$sel:applicationVersionId:DeleteApplicationReferenceDataSourceResponse' :: DeleteApplicationReferenceDataSourceResponse -> Maybe Natural
applicationVersionId} -> Maybe Natural
applicationVersionId) (\s :: DeleteApplicationReferenceDataSourceResponse
s@DeleteApplicationReferenceDataSourceResponse' {} Maybe Natural
a -> DeleteApplicationReferenceDataSourceResponse
s {$sel:applicationVersionId:DeleteApplicationReferenceDataSourceResponse' :: Maybe Natural
applicationVersionId = Maybe Natural
a} :: DeleteApplicationReferenceDataSourceResponse)

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

instance
  Prelude.NFData
    DeleteApplicationReferenceDataSourceResponse