{-# 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.KinesisAnalytics.DeleteApplicationCloudWatchLoggingOption
-- 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)
--
-- This documentation is for version 1 of the Amazon Kinesis Data Analytics
-- API, which only supports SQL applications. Version 2 of the API supports
-- SQL and Java applications. For more information about version 2, see
-- </kinesisanalytics/latest/apiv2/Welcome.html Amazon Kinesis Data Analytics API V2 Documentation>.
--
-- Deletes a CloudWatch log stream from an application. For more
-- information about using CloudWatch log streams with Amazon Kinesis
-- Analytics applications, see
-- <https://docs.aws.amazon.com/kinesisanalytics/latest/dev/cloudwatch-logs.html Working with Amazon CloudWatch Logs>.
module Amazonka.KinesisAnalytics.DeleteApplicationCloudWatchLoggingOption
  ( -- * Creating a Request
    DeleteApplicationCloudWatchLoggingOption (..),
    newDeleteApplicationCloudWatchLoggingOption,

    -- * Request Lenses
    deleteApplicationCloudWatchLoggingOption_applicationName,
    deleteApplicationCloudWatchLoggingOption_currentApplicationVersionId,
    deleteApplicationCloudWatchLoggingOption_cloudWatchLoggingOptionId,

    -- * Destructuring the Response
    DeleteApplicationCloudWatchLoggingOptionResponse (..),
    newDeleteApplicationCloudWatchLoggingOptionResponse,

    -- * Response Lenses
    deleteApplicationCloudWatchLoggingOptionResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.KinesisAnalytics.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:/ 'newDeleteApplicationCloudWatchLoggingOption' smart constructor.
data DeleteApplicationCloudWatchLoggingOption = DeleteApplicationCloudWatchLoggingOption'
  { -- | The Kinesis Analytics application name.
    DeleteApplicationCloudWatchLoggingOption -> Text
applicationName :: Prelude.Text,
    -- | The version ID of the Kinesis Analytics application.
    DeleteApplicationCloudWatchLoggingOption -> Natural
currentApplicationVersionId :: Prelude.Natural,
    -- | The @CloudWatchLoggingOptionId@ of the CloudWatch logging option to
    -- delete. You can get the @CloudWatchLoggingOptionId@ by using the
    -- <https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html DescribeApplication>
    -- operation.
    DeleteApplicationCloudWatchLoggingOption -> Text
cloudWatchLoggingOptionId :: Prelude.Text
  }
  deriving (DeleteApplicationCloudWatchLoggingOption
-> DeleteApplicationCloudWatchLoggingOption -> Bool
(DeleteApplicationCloudWatchLoggingOption
 -> DeleteApplicationCloudWatchLoggingOption -> Bool)
-> (DeleteApplicationCloudWatchLoggingOption
    -> DeleteApplicationCloudWatchLoggingOption -> Bool)
-> Eq DeleteApplicationCloudWatchLoggingOption
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteApplicationCloudWatchLoggingOption
-> DeleteApplicationCloudWatchLoggingOption -> Bool
$c/= :: DeleteApplicationCloudWatchLoggingOption
-> DeleteApplicationCloudWatchLoggingOption -> Bool
== :: DeleteApplicationCloudWatchLoggingOption
-> DeleteApplicationCloudWatchLoggingOption -> Bool
$c== :: DeleteApplicationCloudWatchLoggingOption
-> DeleteApplicationCloudWatchLoggingOption -> Bool
Prelude.Eq, ReadPrec [DeleteApplicationCloudWatchLoggingOption]
ReadPrec DeleteApplicationCloudWatchLoggingOption
Int -> ReadS DeleteApplicationCloudWatchLoggingOption
ReadS [DeleteApplicationCloudWatchLoggingOption]
(Int -> ReadS DeleteApplicationCloudWatchLoggingOption)
-> ReadS [DeleteApplicationCloudWatchLoggingOption]
-> ReadPrec DeleteApplicationCloudWatchLoggingOption
-> ReadPrec [DeleteApplicationCloudWatchLoggingOption]
-> Read DeleteApplicationCloudWatchLoggingOption
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteApplicationCloudWatchLoggingOption]
$creadListPrec :: ReadPrec [DeleteApplicationCloudWatchLoggingOption]
readPrec :: ReadPrec DeleteApplicationCloudWatchLoggingOption
$creadPrec :: ReadPrec DeleteApplicationCloudWatchLoggingOption
readList :: ReadS [DeleteApplicationCloudWatchLoggingOption]
$creadList :: ReadS [DeleteApplicationCloudWatchLoggingOption]
readsPrec :: Int -> ReadS DeleteApplicationCloudWatchLoggingOption
$creadsPrec :: Int -> ReadS DeleteApplicationCloudWatchLoggingOption
Prelude.Read, Int -> DeleteApplicationCloudWatchLoggingOption -> ShowS
[DeleteApplicationCloudWatchLoggingOption] -> ShowS
DeleteApplicationCloudWatchLoggingOption -> String
(Int -> DeleteApplicationCloudWatchLoggingOption -> ShowS)
-> (DeleteApplicationCloudWatchLoggingOption -> String)
-> ([DeleteApplicationCloudWatchLoggingOption] -> ShowS)
-> Show DeleteApplicationCloudWatchLoggingOption
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteApplicationCloudWatchLoggingOption] -> ShowS
$cshowList :: [DeleteApplicationCloudWatchLoggingOption] -> ShowS
show :: DeleteApplicationCloudWatchLoggingOption -> String
$cshow :: DeleteApplicationCloudWatchLoggingOption -> String
showsPrec :: Int -> DeleteApplicationCloudWatchLoggingOption -> ShowS
$cshowsPrec :: Int -> DeleteApplicationCloudWatchLoggingOption -> ShowS
Prelude.Show, (forall x.
 DeleteApplicationCloudWatchLoggingOption
 -> Rep DeleteApplicationCloudWatchLoggingOption x)
-> (forall x.
    Rep DeleteApplicationCloudWatchLoggingOption x
    -> DeleteApplicationCloudWatchLoggingOption)
-> Generic DeleteApplicationCloudWatchLoggingOption
forall x.
Rep DeleteApplicationCloudWatchLoggingOption x
-> DeleteApplicationCloudWatchLoggingOption
forall x.
DeleteApplicationCloudWatchLoggingOption
-> Rep DeleteApplicationCloudWatchLoggingOption x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteApplicationCloudWatchLoggingOption x
-> DeleteApplicationCloudWatchLoggingOption
$cfrom :: forall x.
DeleteApplicationCloudWatchLoggingOption
-> Rep DeleteApplicationCloudWatchLoggingOption x
Prelude.Generic)

-- |
-- Create a value of 'DeleteApplicationCloudWatchLoggingOption' 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', 'deleteApplicationCloudWatchLoggingOption_applicationName' - The Kinesis Analytics application name.
--
-- 'currentApplicationVersionId', 'deleteApplicationCloudWatchLoggingOption_currentApplicationVersionId' - The version ID of the Kinesis Analytics application.
--
-- 'cloudWatchLoggingOptionId', 'deleteApplicationCloudWatchLoggingOption_cloudWatchLoggingOptionId' - The @CloudWatchLoggingOptionId@ of the CloudWatch logging option to
-- delete. You can get the @CloudWatchLoggingOptionId@ by using the
-- <https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html DescribeApplication>
-- operation.
newDeleteApplicationCloudWatchLoggingOption ::
  -- | 'applicationName'
  Prelude.Text ->
  -- | 'currentApplicationVersionId'
  Prelude.Natural ->
  -- | 'cloudWatchLoggingOptionId'
  Prelude.Text ->
  DeleteApplicationCloudWatchLoggingOption
newDeleteApplicationCloudWatchLoggingOption :: Text -> Natural -> Text -> DeleteApplicationCloudWatchLoggingOption
newDeleteApplicationCloudWatchLoggingOption
  Text
pApplicationName_
  Natural
pCurrentApplicationVersionId_
  Text
pCloudWatchLoggingOptionId_ =
    DeleteApplicationCloudWatchLoggingOption' :: Text -> Natural -> Text -> DeleteApplicationCloudWatchLoggingOption
DeleteApplicationCloudWatchLoggingOption'
      { $sel:applicationName:DeleteApplicationCloudWatchLoggingOption' :: Text
applicationName =
          Text
pApplicationName_,
        $sel:currentApplicationVersionId:DeleteApplicationCloudWatchLoggingOption' :: Natural
currentApplicationVersionId =
          Natural
pCurrentApplicationVersionId_,
        $sel:cloudWatchLoggingOptionId:DeleteApplicationCloudWatchLoggingOption' :: Text
cloudWatchLoggingOptionId =
          Text
pCloudWatchLoggingOptionId_
      }

-- | The Kinesis Analytics application name.
deleteApplicationCloudWatchLoggingOption_applicationName :: Lens.Lens' DeleteApplicationCloudWatchLoggingOption Prelude.Text
deleteApplicationCloudWatchLoggingOption_applicationName :: (Text -> f Text)
-> DeleteApplicationCloudWatchLoggingOption
-> f DeleteApplicationCloudWatchLoggingOption
deleteApplicationCloudWatchLoggingOption_applicationName = (DeleteApplicationCloudWatchLoggingOption -> Text)
-> (DeleteApplicationCloudWatchLoggingOption
    -> Text -> DeleteApplicationCloudWatchLoggingOption)
-> Lens
     DeleteApplicationCloudWatchLoggingOption
     DeleteApplicationCloudWatchLoggingOption
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationCloudWatchLoggingOption' {Text
applicationName :: Text
$sel:applicationName:DeleteApplicationCloudWatchLoggingOption' :: DeleteApplicationCloudWatchLoggingOption -> Text
applicationName} -> Text
applicationName) (\s :: DeleteApplicationCloudWatchLoggingOption
s@DeleteApplicationCloudWatchLoggingOption' {} Text
a -> DeleteApplicationCloudWatchLoggingOption
s {$sel:applicationName:DeleteApplicationCloudWatchLoggingOption' :: Text
applicationName = Text
a} :: DeleteApplicationCloudWatchLoggingOption)

-- | The version ID of the Kinesis Analytics application.
deleteApplicationCloudWatchLoggingOption_currentApplicationVersionId :: Lens.Lens' DeleteApplicationCloudWatchLoggingOption Prelude.Natural
deleteApplicationCloudWatchLoggingOption_currentApplicationVersionId :: (Natural -> f Natural)
-> DeleteApplicationCloudWatchLoggingOption
-> f DeleteApplicationCloudWatchLoggingOption
deleteApplicationCloudWatchLoggingOption_currentApplicationVersionId = (DeleteApplicationCloudWatchLoggingOption -> Natural)
-> (DeleteApplicationCloudWatchLoggingOption
    -> Natural -> DeleteApplicationCloudWatchLoggingOption)
-> Lens
     DeleteApplicationCloudWatchLoggingOption
     DeleteApplicationCloudWatchLoggingOption
     Natural
     Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationCloudWatchLoggingOption' {Natural
currentApplicationVersionId :: Natural
$sel:currentApplicationVersionId:DeleteApplicationCloudWatchLoggingOption' :: DeleteApplicationCloudWatchLoggingOption -> Natural
currentApplicationVersionId} -> Natural
currentApplicationVersionId) (\s :: DeleteApplicationCloudWatchLoggingOption
s@DeleteApplicationCloudWatchLoggingOption' {} Natural
a -> DeleteApplicationCloudWatchLoggingOption
s {$sel:currentApplicationVersionId:DeleteApplicationCloudWatchLoggingOption' :: Natural
currentApplicationVersionId = Natural
a} :: DeleteApplicationCloudWatchLoggingOption)

-- | The @CloudWatchLoggingOptionId@ of the CloudWatch logging option to
-- delete. You can get the @CloudWatchLoggingOptionId@ by using the
-- <https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html DescribeApplication>
-- operation.
deleteApplicationCloudWatchLoggingOption_cloudWatchLoggingOptionId :: Lens.Lens' DeleteApplicationCloudWatchLoggingOption Prelude.Text
deleteApplicationCloudWatchLoggingOption_cloudWatchLoggingOptionId :: (Text -> f Text)
-> DeleteApplicationCloudWatchLoggingOption
-> f DeleteApplicationCloudWatchLoggingOption
deleteApplicationCloudWatchLoggingOption_cloudWatchLoggingOptionId = (DeleteApplicationCloudWatchLoggingOption -> Text)
-> (DeleteApplicationCloudWatchLoggingOption
    -> Text -> DeleteApplicationCloudWatchLoggingOption)
-> Lens
     DeleteApplicationCloudWatchLoggingOption
     DeleteApplicationCloudWatchLoggingOption
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteApplicationCloudWatchLoggingOption' {Text
cloudWatchLoggingOptionId :: Text
$sel:cloudWatchLoggingOptionId:DeleteApplicationCloudWatchLoggingOption' :: DeleteApplicationCloudWatchLoggingOption -> Text
cloudWatchLoggingOptionId} -> Text
cloudWatchLoggingOptionId) (\s :: DeleteApplicationCloudWatchLoggingOption
s@DeleteApplicationCloudWatchLoggingOption' {} Text
a -> DeleteApplicationCloudWatchLoggingOption
s {$sel:cloudWatchLoggingOptionId:DeleteApplicationCloudWatchLoggingOption' :: Text
cloudWatchLoggingOptionId = Text
a} :: DeleteApplicationCloudWatchLoggingOption)

instance
  Core.AWSRequest
    DeleteApplicationCloudWatchLoggingOption
  where
  type
    AWSResponse
      DeleteApplicationCloudWatchLoggingOption =
      DeleteApplicationCloudWatchLoggingOptionResponse
  request :: DeleteApplicationCloudWatchLoggingOption
-> Request DeleteApplicationCloudWatchLoggingOption
request = Service
-> DeleteApplicationCloudWatchLoggingOption
-> Request DeleteApplicationCloudWatchLoggingOption
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteApplicationCloudWatchLoggingOption
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DeleteApplicationCloudWatchLoggingOption)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either
      String (AWSResponse DeleteApplicationCloudWatchLoggingOption))
-> Logger
-> Service
-> Proxy DeleteApplicationCloudWatchLoggingOption
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DeleteApplicationCloudWatchLoggingOption)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> DeleteApplicationCloudWatchLoggingOptionResponse
DeleteApplicationCloudWatchLoggingOptionResponse'
            (Int -> DeleteApplicationCloudWatchLoggingOptionResponse)
-> Either String Int
-> Either String DeleteApplicationCloudWatchLoggingOptionResponse
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))
      )

instance
  Prelude.Hashable
    DeleteApplicationCloudWatchLoggingOption

instance
  Prelude.NFData
    DeleteApplicationCloudWatchLoggingOption

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

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

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

-- | /See:/ 'newDeleteApplicationCloudWatchLoggingOptionResponse' smart constructor.
data DeleteApplicationCloudWatchLoggingOptionResponse = DeleteApplicationCloudWatchLoggingOptionResponse'
  { -- | The response's http status code.
    DeleteApplicationCloudWatchLoggingOptionResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DeleteApplicationCloudWatchLoggingOptionResponse
-> DeleteApplicationCloudWatchLoggingOptionResponse -> Bool
(DeleteApplicationCloudWatchLoggingOptionResponse
 -> DeleteApplicationCloudWatchLoggingOptionResponse -> Bool)
-> (DeleteApplicationCloudWatchLoggingOptionResponse
    -> DeleteApplicationCloudWatchLoggingOptionResponse -> Bool)
-> Eq DeleteApplicationCloudWatchLoggingOptionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteApplicationCloudWatchLoggingOptionResponse
-> DeleteApplicationCloudWatchLoggingOptionResponse -> Bool
$c/= :: DeleteApplicationCloudWatchLoggingOptionResponse
-> DeleteApplicationCloudWatchLoggingOptionResponse -> Bool
== :: DeleteApplicationCloudWatchLoggingOptionResponse
-> DeleteApplicationCloudWatchLoggingOptionResponse -> Bool
$c== :: DeleteApplicationCloudWatchLoggingOptionResponse
-> DeleteApplicationCloudWatchLoggingOptionResponse -> Bool
Prelude.Eq, ReadPrec [DeleteApplicationCloudWatchLoggingOptionResponse]
ReadPrec DeleteApplicationCloudWatchLoggingOptionResponse
Int -> ReadS DeleteApplicationCloudWatchLoggingOptionResponse
ReadS [DeleteApplicationCloudWatchLoggingOptionResponse]
(Int -> ReadS DeleteApplicationCloudWatchLoggingOptionResponse)
-> ReadS [DeleteApplicationCloudWatchLoggingOptionResponse]
-> ReadPrec DeleteApplicationCloudWatchLoggingOptionResponse
-> ReadPrec [DeleteApplicationCloudWatchLoggingOptionResponse]
-> Read DeleteApplicationCloudWatchLoggingOptionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteApplicationCloudWatchLoggingOptionResponse]
$creadListPrec :: ReadPrec [DeleteApplicationCloudWatchLoggingOptionResponse]
readPrec :: ReadPrec DeleteApplicationCloudWatchLoggingOptionResponse
$creadPrec :: ReadPrec DeleteApplicationCloudWatchLoggingOptionResponse
readList :: ReadS [DeleteApplicationCloudWatchLoggingOptionResponse]
$creadList :: ReadS [DeleteApplicationCloudWatchLoggingOptionResponse]
readsPrec :: Int -> ReadS DeleteApplicationCloudWatchLoggingOptionResponse
$creadsPrec :: Int -> ReadS DeleteApplicationCloudWatchLoggingOptionResponse
Prelude.Read, Int -> DeleteApplicationCloudWatchLoggingOptionResponse -> ShowS
[DeleteApplicationCloudWatchLoggingOptionResponse] -> ShowS
DeleteApplicationCloudWatchLoggingOptionResponse -> String
(Int -> DeleteApplicationCloudWatchLoggingOptionResponse -> ShowS)
-> (DeleteApplicationCloudWatchLoggingOptionResponse -> String)
-> ([DeleteApplicationCloudWatchLoggingOptionResponse] -> ShowS)
-> Show DeleteApplicationCloudWatchLoggingOptionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteApplicationCloudWatchLoggingOptionResponse] -> ShowS
$cshowList :: [DeleteApplicationCloudWatchLoggingOptionResponse] -> ShowS
show :: DeleteApplicationCloudWatchLoggingOptionResponse -> String
$cshow :: DeleteApplicationCloudWatchLoggingOptionResponse -> String
showsPrec :: Int -> DeleteApplicationCloudWatchLoggingOptionResponse -> ShowS
$cshowsPrec :: Int -> DeleteApplicationCloudWatchLoggingOptionResponse -> ShowS
Prelude.Show, (forall x.
 DeleteApplicationCloudWatchLoggingOptionResponse
 -> Rep DeleteApplicationCloudWatchLoggingOptionResponse x)
-> (forall x.
    Rep DeleteApplicationCloudWatchLoggingOptionResponse x
    -> DeleteApplicationCloudWatchLoggingOptionResponse)
-> Generic DeleteApplicationCloudWatchLoggingOptionResponse
forall x.
Rep DeleteApplicationCloudWatchLoggingOptionResponse x
-> DeleteApplicationCloudWatchLoggingOptionResponse
forall x.
DeleteApplicationCloudWatchLoggingOptionResponse
-> Rep DeleteApplicationCloudWatchLoggingOptionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteApplicationCloudWatchLoggingOptionResponse x
-> DeleteApplicationCloudWatchLoggingOptionResponse
$cfrom :: forall x.
DeleteApplicationCloudWatchLoggingOptionResponse
-> Rep DeleteApplicationCloudWatchLoggingOptionResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteApplicationCloudWatchLoggingOptionResponse' 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', 'deleteApplicationCloudWatchLoggingOptionResponse_httpStatus' - The response's http status code.
newDeleteApplicationCloudWatchLoggingOptionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteApplicationCloudWatchLoggingOptionResponse
newDeleteApplicationCloudWatchLoggingOptionResponse :: Int -> DeleteApplicationCloudWatchLoggingOptionResponse
newDeleteApplicationCloudWatchLoggingOptionResponse
  Int
pHttpStatus_ =
    DeleteApplicationCloudWatchLoggingOptionResponse' :: Int -> DeleteApplicationCloudWatchLoggingOptionResponse
DeleteApplicationCloudWatchLoggingOptionResponse'
      { $sel:httpStatus:DeleteApplicationCloudWatchLoggingOptionResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

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

instance
  Prelude.NFData
    DeleteApplicationCloudWatchLoggingOptionResponse