{-# 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.DeleteApplicationVpcConfiguration
-- 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)
--
-- Removes a VPC configuration from a Kinesis Data Analytics application.
module Amazonka.KinesisAnalyticsV2.DeleteApplicationVpcConfiguration
  ( -- * Creating a Request
    DeleteApplicationVpcConfiguration (..),
    newDeleteApplicationVpcConfiguration,

    -- * Request Lenses
    deleteApplicationVpcConfiguration_currentApplicationVersionId,
    deleteApplicationVpcConfiguration_conditionalToken,
    deleteApplicationVpcConfiguration_applicationName,
    deleteApplicationVpcConfiguration_vpcConfigurationId,

    -- * Destructuring the Response
    DeleteApplicationVpcConfigurationResponse (..),
    newDeleteApplicationVpcConfigurationResponse,

    -- * Response Lenses
    deleteApplicationVpcConfigurationResponse_applicationARN,
    deleteApplicationVpcConfigurationResponse_applicationVersionId,
    deleteApplicationVpcConfigurationResponse_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:/ 'newDeleteApplicationVpcConfiguration' smart constructor.
data DeleteApplicationVpcConfiguration = DeleteApplicationVpcConfiguration'
  { -- | The current application version ID. You must provide the
    -- @CurrentApplicationVersionId@ or the @ConditionalToken@. You can
    -- retrieve the application version ID using DescribeApplication. For
    -- better concurrency support, use the @ConditionalToken@ parameter instead
    -- of @CurrentApplicationVersionId@.
    DeleteApplicationVpcConfiguration -> Maybe Natural
currentApplicationVersionId :: Prelude.Maybe Prelude.Natural,
    -- | A value you use to implement strong concurrency for application updates.
    -- You must provide the @CurrentApplicationVersionId@ or the
    -- @ConditionalToken@. You get the application\'s current
    -- @ConditionalToken@ using DescribeApplication. For better concurrency
    -- support, use the @ConditionalToken@ parameter instead of
    -- @CurrentApplicationVersionId@.
    DeleteApplicationVpcConfiguration -> Maybe Text
conditionalToken :: Prelude.Maybe Prelude.Text,
    -- | The name of an existing application.
    DeleteApplicationVpcConfiguration -> Text
applicationName :: Prelude.Text,
    -- | The ID of the VPC configuration to delete.
    DeleteApplicationVpcConfiguration -> Text
vpcConfigurationId :: Prelude.Text
  }
  deriving (DeleteApplicationVpcConfiguration
-> DeleteApplicationVpcConfiguration -> Bool
(DeleteApplicationVpcConfiguration
 -> DeleteApplicationVpcConfiguration -> Bool)
-> (DeleteApplicationVpcConfiguration
    -> DeleteApplicationVpcConfiguration -> Bool)
-> Eq DeleteApplicationVpcConfiguration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteApplicationVpcConfiguration
-> DeleteApplicationVpcConfiguration -> Bool
$c/= :: DeleteApplicationVpcConfiguration
-> DeleteApplicationVpcConfiguration -> Bool
== :: DeleteApplicationVpcConfiguration
-> DeleteApplicationVpcConfiguration -> Bool
$c== :: DeleteApplicationVpcConfiguration
-> DeleteApplicationVpcConfiguration -> Bool
Prelude.Eq, ReadPrec [DeleteApplicationVpcConfiguration]
ReadPrec DeleteApplicationVpcConfiguration
Int -> ReadS DeleteApplicationVpcConfiguration
ReadS [DeleteApplicationVpcConfiguration]
(Int -> ReadS DeleteApplicationVpcConfiguration)
-> ReadS [DeleteApplicationVpcConfiguration]
-> ReadPrec DeleteApplicationVpcConfiguration
-> ReadPrec [DeleteApplicationVpcConfiguration]
-> Read DeleteApplicationVpcConfiguration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteApplicationVpcConfiguration]
$creadListPrec :: ReadPrec [DeleteApplicationVpcConfiguration]
readPrec :: ReadPrec DeleteApplicationVpcConfiguration
$creadPrec :: ReadPrec DeleteApplicationVpcConfiguration
readList :: ReadS [DeleteApplicationVpcConfiguration]
$creadList :: ReadS [DeleteApplicationVpcConfiguration]
readsPrec :: Int -> ReadS DeleteApplicationVpcConfiguration
$creadsPrec :: Int -> ReadS DeleteApplicationVpcConfiguration
Prelude.Read, Int -> DeleteApplicationVpcConfiguration -> ShowS
[DeleteApplicationVpcConfiguration] -> ShowS
DeleteApplicationVpcConfiguration -> String
(Int -> DeleteApplicationVpcConfiguration -> ShowS)
-> (DeleteApplicationVpcConfiguration -> String)
-> ([DeleteApplicationVpcConfiguration] -> ShowS)
-> Show DeleteApplicationVpcConfiguration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteApplicationVpcConfiguration] -> ShowS
$cshowList :: [DeleteApplicationVpcConfiguration] -> ShowS
show :: DeleteApplicationVpcConfiguration -> String
$cshow :: DeleteApplicationVpcConfiguration -> String
showsPrec :: Int -> DeleteApplicationVpcConfiguration -> ShowS
$cshowsPrec :: Int -> DeleteApplicationVpcConfiguration -> ShowS
Prelude.Show, (forall x.
 DeleteApplicationVpcConfiguration
 -> Rep DeleteApplicationVpcConfiguration x)
-> (forall x.
    Rep DeleteApplicationVpcConfiguration x
    -> DeleteApplicationVpcConfiguration)
-> Generic DeleteApplicationVpcConfiguration
forall x.
Rep DeleteApplicationVpcConfiguration x
-> DeleteApplicationVpcConfiguration
forall x.
DeleteApplicationVpcConfiguration
-> Rep DeleteApplicationVpcConfiguration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteApplicationVpcConfiguration x
-> DeleteApplicationVpcConfiguration
$cfrom :: forall x.
DeleteApplicationVpcConfiguration
-> Rep DeleteApplicationVpcConfiguration x
Prelude.Generic)

-- |
-- Create a value of 'DeleteApplicationVpcConfiguration' 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:
--
-- 'currentApplicationVersionId', 'deleteApplicationVpcConfiguration_currentApplicationVersionId' - The current application version ID. You must provide the
-- @CurrentApplicationVersionId@ or the @ConditionalToken@. You can
-- retrieve the application version ID using DescribeApplication. For
-- better concurrency support, use the @ConditionalToken@ parameter instead
-- of @CurrentApplicationVersionId@.
--
-- 'conditionalToken', 'deleteApplicationVpcConfiguration_conditionalToken' - A value you use to implement strong concurrency for application updates.
-- You must provide the @CurrentApplicationVersionId@ or the
-- @ConditionalToken@. You get the application\'s current
-- @ConditionalToken@ using DescribeApplication. For better concurrency
-- support, use the @ConditionalToken@ parameter instead of
-- @CurrentApplicationVersionId@.
--
-- 'applicationName', 'deleteApplicationVpcConfiguration_applicationName' - The name of an existing application.
--
-- 'vpcConfigurationId', 'deleteApplicationVpcConfiguration_vpcConfigurationId' - The ID of the VPC configuration to delete.
newDeleteApplicationVpcConfiguration ::
  -- | 'applicationName'
  Prelude.Text ->
  -- | 'vpcConfigurationId'
  Prelude.Text ->
  DeleteApplicationVpcConfiguration
newDeleteApplicationVpcConfiguration :: Text -> Text -> DeleteApplicationVpcConfiguration
newDeleteApplicationVpcConfiguration
  Text
pApplicationName_
  Text
pVpcConfigurationId_ =
    DeleteApplicationVpcConfiguration' :: Maybe Natural
-> Maybe Text -> Text -> Text -> DeleteApplicationVpcConfiguration
DeleteApplicationVpcConfiguration'
      { $sel:currentApplicationVersionId:DeleteApplicationVpcConfiguration' :: Maybe Natural
currentApplicationVersionId =
          Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:conditionalToken:DeleteApplicationVpcConfiguration' :: Maybe Text
conditionalToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationName:DeleteApplicationVpcConfiguration' :: Text
applicationName = Text
pApplicationName_,
        $sel:vpcConfigurationId:DeleteApplicationVpcConfiguration' :: Text
vpcConfigurationId =
          Text
pVpcConfigurationId_
      }

-- | The current application version ID. You must provide the
-- @CurrentApplicationVersionId@ or the @ConditionalToken@. You can
-- retrieve the application version ID using DescribeApplication. For
-- better concurrency support, use the @ConditionalToken@ parameter instead
-- of @CurrentApplicationVersionId@.
deleteApplicationVpcConfiguration_currentApplicationVersionId :: Lens.Lens' DeleteApplicationVpcConfiguration (Prelude.Maybe Prelude.Natural)
deleteApplicationVpcConfiguration_currentApplicationVersionId :: (Maybe Natural -> f (Maybe Natural))
-> DeleteApplicationVpcConfiguration
-> f DeleteApplicationVpcConfiguration
deleteApplicationVpcConfiguration_currentApplicationVersionId = (DeleteApplicationVpcConfiguration -> Maybe Natural)
-> (DeleteApplicationVpcConfiguration
    -> Maybe Natural -> DeleteApplicationVpcConfiguration)
-> Lens
     DeleteApplicationVpcConfiguration
     DeleteApplicationVpcConfiguration
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationVpcConfiguration' {Maybe Natural
currentApplicationVersionId :: Maybe Natural
$sel:currentApplicationVersionId:DeleteApplicationVpcConfiguration' :: DeleteApplicationVpcConfiguration -> Maybe Natural
currentApplicationVersionId} -> Maybe Natural
currentApplicationVersionId) (\s :: DeleteApplicationVpcConfiguration
s@DeleteApplicationVpcConfiguration' {} Maybe Natural
a -> DeleteApplicationVpcConfiguration
s {$sel:currentApplicationVersionId:DeleteApplicationVpcConfiguration' :: Maybe Natural
currentApplicationVersionId = Maybe Natural
a} :: DeleteApplicationVpcConfiguration)

-- | A value you use to implement strong concurrency for application updates.
-- You must provide the @CurrentApplicationVersionId@ or the
-- @ConditionalToken@. You get the application\'s current
-- @ConditionalToken@ using DescribeApplication. For better concurrency
-- support, use the @ConditionalToken@ parameter instead of
-- @CurrentApplicationVersionId@.
deleteApplicationVpcConfiguration_conditionalToken :: Lens.Lens' DeleteApplicationVpcConfiguration (Prelude.Maybe Prelude.Text)
deleteApplicationVpcConfiguration_conditionalToken :: (Maybe Text -> f (Maybe Text))
-> DeleteApplicationVpcConfiguration
-> f DeleteApplicationVpcConfiguration
deleteApplicationVpcConfiguration_conditionalToken = (DeleteApplicationVpcConfiguration -> Maybe Text)
-> (DeleteApplicationVpcConfiguration
    -> Maybe Text -> DeleteApplicationVpcConfiguration)
-> Lens
     DeleteApplicationVpcConfiguration
     DeleteApplicationVpcConfiguration
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationVpcConfiguration' {Maybe Text
conditionalToken :: Maybe Text
$sel:conditionalToken:DeleteApplicationVpcConfiguration' :: DeleteApplicationVpcConfiguration -> Maybe Text
conditionalToken} -> Maybe Text
conditionalToken) (\s :: DeleteApplicationVpcConfiguration
s@DeleteApplicationVpcConfiguration' {} Maybe Text
a -> DeleteApplicationVpcConfiguration
s {$sel:conditionalToken:DeleteApplicationVpcConfiguration' :: Maybe Text
conditionalToken = Maybe Text
a} :: DeleteApplicationVpcConfiguration)

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

-- | The ID of the VPC configuration to delete.
deleteApplicationVpcConfiguration_vpcConfigurationId :: Lens.Lens' DeleteApplicationVpcConfiguration Prelude.Text
deleteApplicationVpcConfiguration_vpcConfigurationId :: (Text -> f Text)
-> DeleteApplicationVpcConfiguration
-> f DeleteApplicationVpcConfiguration
deleteApplicationVpcConfiguration_vpcConfigurationId = (DeleteApplicationVpcConfiguration -> Text)
-> (DeleteApplicationVpcConfiguration
    -> Text -> DeleteApplicationVpcConfiguration)
-> Lens
     DeleteApplicationVpcConfiguration
     DeleteApplicationVpcConfiguration
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationVpcConfiguration' {Text
vpcConfigurationId :: Text
$sel:vpcConfigurationId:DeleteApplicationVpcConfiguration' :: DeleteApplicationVpcConfiguration -> Text
vpcConfigurationId} -> Text
vpcConfigurationId) (\s :: DeleteApplicationVpcConfiguration
s@DeleteApplicationVpcConfiguration' {} Text
a -> DeleteApplicationVpcConfiguration
s {$sel:vpcConfigurationId:DeleteApplicationVpcConfiguration' :: Text
vpcConfigurationId = Text
a} :: DeleteApplicationVpcConfiguration)

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

instance
  Prelude.NFData
    DeleteApplicationVpcConfiguration

instance
  Core.ToHeaders
    DeleteApplicationVpcConfiguration
  where
  toHeaders :: DeleteApplicationVpcConfiguration -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DeleteApplicationVpcConfiguration -> 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.DeleteApplicationVpcConfiguration" ::
                          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
    DeleteApplicationVpcConfiguration
  where
  toJSON :: DeleteApplicationVpcConfiguration -> Value
toJSON DeleteApplicationVpcConfiguration' {Maybe Natural
Maybe Text
Text
vpcConfigurationId :: Text
applicationName :: Text
conditionalToken :: Maybe Text
currentApplicationVersionId :: Maybe Natural
$sel:vpcConfigurationId:DeleteApplicationVpcConfiguration' :: DeleteApplicationVpcConfiguration -> Text
$sel:applicationName:DeleteApplicationVpcConfiguration' :: DeleteApplicationVpcConfiguration -> Text
$sel:conditionalToken:DeleteApplicationVpcConfiguration' :: DeleteApplicationVpcConfiguration -> Maybe Text
$sel:currentApplicationVersionId:DeleteApplicationVpcConfiguration' :: DeleteApplicationVpcConfiguration -> Maybe Natural
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"CurrentApplicationVersionId" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
currentApplicationVersionId,
            (Text
"ConditionalToken" 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
conditionalToken,
            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
"VpcConfigurationId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
vpcConfigurationId)
          ]
      )

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

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

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

-- |
-- Create a value of 'DeleteApplicationVpcConfigurationResponse' 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', 'deleteApplicationVpcConfigurationResponse_applicationARN' - The ARN of the Kinesis Data Analytics application.
--
-- 'applicationVersionId', 'deleteApplicationVpcConfigurationResponse_applicationVersionId' - The updated version ID of the application.
--
-- 'httpStatus', 'deleteApplicationVpcConfigurationResponse_httpStatus' - The response's http status code.
newDeleteApplicationVpcConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteApplicationVpcConfigurationResponse
newDeleteApplicationVpcConfigurationResponse :: Int -> DeleteApplicationVpcConfigurationResponse
newDeleteApplicationVpcConfigurationResponse
  Int
pHttpStatus_ =
    DeleteApplicationVpcConfigurationResponse' :: Maybe Text
-> Maybe Natural
-> Int
-> DeleteApplicationVpcConfigurationResponse
DeleteApplicationVpcConfigurationResponse'
      { $sel:applicationARN:DeleteApplicationVpcConfigurationResponse' :: Maybe Text
applicationARN =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationVersionId:DeleteApplicationVpcConfigurationResponse' :: Maybe Natural
applicationVersionId =
          Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DeleteApplicationVpcConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The ARN of the Kinesis Data Analytics application.
deleteApplicationVpcConfigurationResponse_applicationARN :: Lens.Lens' DeleteApplicationVpcConfigurationResponse (Prelude.Maybe Prelude.Text)
deleteApplicationVpcConfigurationResponse_applicationARN :: (Maybe Text -> f (Maybe Text))
-> DeleteApplicationVpcConfigurationResponse
-> f DeleteApplicationVpcConfigurationResponse
deleteApplicationVpcConfigurationResponse_applicationARN = (DeleteApplicationVpcConfigurationResponse -> Maybe Text)
-> (DeleteApplicationVpcConfigurationResponse
    -> Maybe Text -> DeleteApplicationVpcConfigurationResponse)
-> Lens
     DeleteApplicationVpcConfigurationResponse
     DeleteApplicationVpcConfigurationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationVpcConfigurationResponse' {Maybe Text
applicationARN :: Maybe Text
$sel:applicationARN:DeleteApplicationVpcConfigurationResponse' :: DeleteApplicationVpcConfigurationResponse -> Maybe Text
applicationARN} -> Maybe Text
applicationARN) (\s :: DeleteApplicationVpcConfigurationResponse
s@DeleteApplicationVpcConfigurationResponse' {} Maybe Text
a -> DeleteApplicationVpcConfigurationResponse
s {$sel:applicationARN:DeleteApplicationVpcConfigurationResponse' :: Maybe Text
applicationARN = Maybe Text
a} :: DeleteApplicationVpcConfigurationResponse)

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

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

instance
  Prelude.NFData
    DeleteApplicationVpcConfigurationResponse