{-# 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.DeleteApplicationInputProcessingConfiguration
-- 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 an InputProcessingConfiguration from an input.
module Amazonka.KinesisAnalyticsV2.DeleteApplicationInputProcessingConfiguration
  ( -- * Creating a Request
    DeleteApplicationInputProcessingConfiguration (..),
    newDeleteApplicationInputProcessingConfiguration,

    -- * Request Lenses
    deleteApplicationInputProcessingConfiguration_applicationName,
    deleteApplicationInputProcessingConfiguration_currentApplicationVersionId,
    deleteApplicationInputProcessingConfiguration_inputId,

    -- * Destructuring the Response
    DeleteApplicationInputProcessingConfigurationResponse (..),
    newDeleteApplicationInputProcessingConfigurationResponse,

    -- * Response Lenses
    deleteApplicationInputProcessingConfigurationResponse_applicationARN,
    deleteApplicationInputProcessingConfigurationResponse_applicationVersionId,
    deleteApplicationInputProcessingConfigurationResponse_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:/ 'newDeleteApplicationInputProcessingConfiguration' smart constructor.
data DeleteApplicationInputProcessingConfiguration = DeleteApplicationInputProcessingConfiguration'
  { -- | The name of the application.
    DeleteApplicationInputProcessingConfiguration -> Text
applicationName :: Prelude.Text,
    -- | The 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.
    DeleteApplicationInputProcessingConfiguration -> Natural
currentApplicationVersionId :: Prelude.Natural,
    -- | The ID of the input configuration from which to delete the input
    -- processing configuration. You can get a list of the input IDs for an
    -- application by using the DescribeApplication operation.
    DeleteApplicationInputProcessingConfiguration -> Text
inputId :: Prelude.Text
  }
  deriving (DeleteApplicationInputProcessingConfiguration
-> DeleteApplicationInputProcessingConfiguration -> Bool
(DeleteApplicationInputProcessingConfiguration
 -> DeleteApplicationInputProcessingConfiguration -> Bool)
-> (DeleteApplicationInputProcessingConfiguration
    -> DeleteApplicationInputProcessingConfiguration -> Bool)
-> Eq DeleteApplicationInputProcessingConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteApplicationInputProcessingConfiguration
-> DeleteApplicationInputProcessingConfiguration -> Bool
$c/= :: DeleteApplicationInputProcessingConfiguration
-> DeleteApplicationInputProcessingConfiguration -> Bool
== :: DeleteApplicationInputProcessingConfiguration
-> DeleteApplicationInputProcessingConfiguration -> Bool
$c== :: DeleteApplicationInputProcessingConfiguration
-> DeleteApplicationInputProcessingConfiguration -> Bool
Prelude.Eq, ReadPrec [DeleteApplicationInputProcessingConfiguration]
ReadPrec DeleteApplicationInputProcessingConfiguration
Int -> ReadS DeleteApplicationInputProcessingConfiguration
ReadS [DeleteApplicationInputProcessingConfiguration]
(Int -> ReadS DeleteApplicationInputProcessingConfiguration)
-> ReadS [DeleteApplicationInputProcessingConfiguration]
-> ReadPrec DeleteApplicationInputProcessingConfiguration
-> ReadPrec [DeleteApplicationInputProcessingConfiguration]
-> Read DeleteApplicationInputProcessingConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteApplicationInputProcessingConfiguration]
$creadListPrec :: ReadPrec [DeleteApplicationInputProcessingConfiguration]
readPrec :: ReadPrec DeleteApplicationInputProcessingConfiguration
$creadPrec :: ReadPrec DeleteApplicationInputProcessingConfiguration
readList :: ReadS [DeleteApplicationInputProcessingConfiguration]
$creadList :: ReadS [DeleteApplicationInputProcessingConfiguration]
readsPrec :: Int -> ReadS DeleteApplicationInputProcessingConfiguration
$creadsPrec :: Int -> ReadS DeleteApplicationInputProcessingConfiguration
Prelude.Read, Int -> DeleteApplicationInputProcessingConfiguration -> ShowS
[DeleteApplicationInputProcessingConfiguration] -> ShowS
DeleteApplicationInputProcessingConfiguration -> String
(Int -> DeleteApplicationInputProcessingConfiguration -> ShowS)
-> (DeleteApplicationInputProcessingConfiguration -> String)
-> ([DeleteApplicationInputProcessingConfiguration] -> ShowS)
-> Show DeleteApplicationInputProcessingConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteApplicationInputProcessingConfiguration] -> ShowS
$cshowList :: [DeleteApplicationInputProcessingConfiguration] -> ShowS
show :: DeleteApplicationInputProcessingConfiguration -> String
$cshow :: DeleteApplicationInputProcessingConfiguration -> String
showsPrec :: Int -> DeleteApplicationInputProcessingConfiguration -> ShowS
$cshowsPrec :: Int -> DeleteApplicationInputProcessingConfiguration -> ShowS
Prelude.Show, (forall x.
 DeleteApplicationInputProcessingConfiguration
 -> Rep DeleteApplicationInputProcessingConfiguration x)
-> (forall x.
    Rep DeleteApplicationInputProcessingConfiguration x
    -> DeleteApplicationInputProcessingConfiguration)
-> Generic DeleteApplicationInputProcessingConfiguration
forall x.
Rep DeleteApplicationInputProcessingConfiguration x
-> DeleteApplicationInputProcessingConfiguration
forall x.
DeleteApplicationInputProcessingConfiguration
-> Rep DeleteApplicationInputProcessingConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteApplicationInputProcessingConfiguration x
-> DeleteApplicationInputProcessingConfiguration
$cfrom :: forall x.
DeleteApplicationInputProcessingConfiguration
-> Rep DeleteApplicationInputProcessingConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'DeleteApplicationInputProcessingConfiguration' 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', 'deleteApplicationInputProcessingConfiguration_applicationName' - The name of the application.
--
-- 'currentApplicationVersionId', 'deleteApplicationInputProcessingConfiguration_currentApplicationVersionId' - The 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.
--
-- 'inputId', 'deleteApplicationInputProcessingConfiguration_inputId' - The ID of the input configuration from which to delete the input
-- processing configuration. You can get a list of the input IDs for an
-- application by using the DescribeApplication operation.
newDeleteApplicationInputProcessingConfiguration ::
  -- | 'applicationName'
  Prelude.Text ->
  -- | 'currentApplicationVersionId'
  Prelude.Natural ->
  -- | 'inputId'
  Prelude.Text ->
  DeleteApplicationInputProcessingConfiguration
newDeleteApplicationInputProcessingConfiguration :: Text
-> Natural -> Text -> DeleteApplicationInputProcessingConfiguration
newDeleteApplicationInputProcessingConfiguration
  Text
pApplicationName_
  Natural
pCurrentApplicationVersionId_
  Text
pInputId_ =
    DeleteApplicationInputProcessingConfiguration' :: Text
-> Natural -> Text -> DeleteApplicationInputProcessingConfiguration
DeleteApplicationInputProcessingConfiguration'
      { $sel:applicationName:DeleteApplicationInputProcessingConfiguration' :: Text
applicationName =
          Text
pApplicationName_,
        $sel:currentApplicationVersionId:DeleteApplicationInputProcessingConfiguration' :: Natural
currentApplicationVersionId =
          Natural
pCurrentApplicationVersionId_,
        $sel:inputId:DeleteApplicationInputProcessingConfiguration' :: Text
inputId = Text
pInputId_
      }

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

-- | The 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.
deleteApplicationInputProcessingConfiguration_currentApplicationVersionId :: Lens.Lens' DeleteApplicationInputProcessingConfiguration Prelude.Natural
deleteApplicationInputProcessingConfiguration_currentApplicationVersionId :: (Natural -> f Natural)
-> DeleteApplicationInputProcessingConfiguration
-> f DeleteApplicationInputProcessingConfiguration
deleteApplicationInputProcessingConfiguration_currentApplicationVersionId = (DeleteApplicationInputProcessingConfiguration -> Natural)
-> (DeleteApplicationInputProcessingConfiguration
    -> Natural -> DeleteApplicationInputProcessingConfiguration)
-> Lens
     DeleteApplicationInputProcessingConfiguration
     DeleteApplicationInputProcessingConfiguration
     Natural
     Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationInputProcessingConfiguration' {Natural
currentApplicationVersionId :: Natural
$sel:currentApplicationVersionId:DeleteApplicationInputProcessingConfiguration' :: DeleteApplicationInputProcessingConfiguration -> Natural
currentApplicationVersionId} -> Natural
currentApplicationVersionId) (\s :: DeleteApplicationInputProcessingConfiguration
s@DeleteApplicationInputProcessingConfiguration' {} Natural
a -> DeleteApplicationInputProcessingConfiguration
s {$sel:currentApplicationVersionId:DeleteApplicationInputProcessingConfiguration' :: Natural
currentApplicationVersionId = Natural
a} :: DeleteApplicationInputProcessingConfiguration)

-- | The ID of the input configuration from which to delete the input
-- processing configuration. You can get a list of the input IDs for an
-- application by using the DescribeApplication operation.
deleteApplicationInputProcessingConfiguration_inputId :: Lens.Lens' DeleteApplicationInputProcessingConfiguration Prelude.Text
deleteApplicationInputProcessingConfiguration_inputId :: (Text -> f Text)
-> DeleteApplicationInputProcessingConfiguration
-> f DeleteApplicationInputProcessingConfiguration
deleteApplicationInputProcessingConfiguration_inputId = (DeleteApplicationInputProcessingConfiguration -> Text)
-> (DeleteApplicationInputProcessingConfiguration
    -> Text -> DeleteApplicationInputProcessingConfiguration)
-> Lens
     DeleteApplicationInputProcessingConfiguration
     DeleteApplicationInputProcessingConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationInputProcessingConfiguration' {Text
inputId :: Text
$sel:inputId:DeleteApplicationInputProcessingConfiguration' :: DeleteApplicationInputProcessingConfiguration -> Text
inputId} -> Text
inputId) (\s :: DeleteApplicationInputProcessingConfiguration
s@DeleteApplicationInputProcessingConfiguration' {} Text
a -> DeleteApplicationInputProcessingConfiguration
s {$sel:inputId:DeleteApplicationInputProcessingConfiguration' :: Text
inputId = Text
a} :: DeleteApplicationInputProcessingConfiguration)

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

instance
  Prelude.NFData
    DeleteApplicationInputProcessingConfiguration

instance
  Core.ToHeaders
    DeleteApplicationInputProcessingConfiguration
  where
  toHeaders :: DeleteApplicationInputProcessingConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DeleteApplicationInputProcessingConfiguration -> 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.DeleteApplicationInputProcessingConfiguration" ::
                          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
    DeleteApplicationInputProcessingConfiguration
  where
  toJSON :: DeleteApplicationInputProcessingConfiguration -> Value
toJSON
    DeleteApplicationInputProcessingConfiguration' {Natural
Text
inputId :: Text
currentApplicationVersionId :: Natural
applicationName :: Text
$sel:inputId:DeleteApplicationInputProcessingConfiguration' :: DeleteApplicationInputProcessingConfiguration -> Text
$sel:currentApplicationVersionId:DeleteApplicationInputProcessingConfiguration' :: DeleteApplicationInputProcessingConfiguration -> Natural
$sel:applicationName:DeleteApplicationInputProcessingConfiguration' :: DeleteApplicationInputProcessingConfiguration -> 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
"InputId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
inputId)
            ]
        )

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

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

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

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

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

-- | The current application version ID.
deleteApplicationInputProcessingConfigurationResponse_applicationVersionId :: Lens.Lens' DeleteApplicationInputProcessingConfigurationResponse (Prelude.Maybe Prelude.Natural)
deleteApplicationInputProcessingConfigurationResponse_applicationVersionId :: (Maybe Natural -> f (Maybe Natural))
-> DeleteApplicationInputProcessingConfigurationResponse
-> f DeleteApplicationInputProcessingConfigurationResponse
deleteApplicationInputProcessingConfigurationResponse_applicationVersionId = (DeleteApplicationInputProcessingConfigurationResponse
 -> Maybe Natural)
-> (DeleteApplicationInputProcessingConfigurationResponse
    -> Maybe Natural
    -> DeleteApplicationInputProcessingConfigurationResponse)
-> Lens
     DeleteApplicationInputProcessingConfigurationResponse
     DeleteApplicationInputProcessingConfigurationResponse
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationInputProcessingConfigurationResponse' {Maybe Natural
applicationVersionId :: Maybe Natural
$sel:applicationVersionId:DeleteApplicationInputProcessingConfigurationResponse' :: DeleteApplicationInputProcessingConfigurationResponse
-> Maybe Natural
applicationVersionId} -> Maybe Natural
applicationVersionId) (\s :: DeleteApplicationInputProcessingConfigurationResponse
s@DeleteApplicationInputProcessingConfigurationResponse' {} Maybe Natural
a -> DeleteApplicationInputProcessingConfigurationResponse
s {$sel:applicationVersionId:DeleteApplicationInputProcessingConfigurationResponse' :: Maybe Natural
applicationVersionId = Maybe Natural
a} :: DeleteApplicationInputProcessingConfigurationResponse)

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

instance
  Prelude.NFData
    DeleteApplicationInputProcessingConfigurationResponse