{-# 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.RDS.DeregisterDBProxyTargets
-- 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)
--
-- Remove the association between one or more @DBProxyTarget@ data
-- structures and a @DBProxyTargetGroup@.
module Amazonka.RDS.DeregisterDBProxyTargets
  ( -- * Creating a Request
    DeregisterDBProxyTargets (..),
    newDeregisterDBProxyTargets,

    -- * Request Lenses
    deregisterDBProxyTargets_dbClusterIdentifiers,
    deregisterDBProxyTargets_dbInstanceIdentifiers,
    deregisterDBProxyTargets_targetGroupName,
    deregisterDBProxyTargets_dbProxyName,

    -- * Destructuring the Response
    DeregisterDBProxyTargetsResponse (..),
    newDeregisterDBProxyTargetsResponse,

    -- * Response Lenses
    deregisterDBProxyTargetsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.RDS.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDeregisterDBProxyTargets' smart constructor.
data DeregisterDBProxyTargets = DeregisterDBProxyTargets'
  { -- | One or more DB cluster identifiers.
    DeregisterDBProxyTargets -> Maybe [Text]
dbClusterIdentifiers :: Prelude.Maybe [Prelude.Text],
    -- | One or more DB instance identifiers.
    DeregisterDBProxyTargets -> Maybe [Text]
dbInstanceIdentifiers :: Prelude.Maybe [Prelude.Text],
    -- | The identifier of the @DBProxyTargetGroup@.
    DeregisterDBProxyTargets -> Maybe Text
targetGroupName :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the @DBProxy@ that is associated with the
    -- @DBProxyTargetGroup@.
    DeregisterDBProxyTargets -> Text
dbProxyName :: Prelude.Text
  }
  deriving (DeregisterDBProxyTargets -> DeregisterDBProxyTargets -> Bool
(DeregisterDBProxyTargets -> DeregisterDBProxyTargets -> Bool)
-> (DeregisterDBProxyTargets -> DeregisterDBProxyTargets -> Bool)
-> Eq DeregisterDBProxyTargets
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeregisterDBProxyTargets -> DeregisterDBProxyTargets -> Bool
$c/= :: DeregisterDBProxyTargets -> DeregisterDBProxyTargets -> Bool
== :: DeregisterDBProxyTargets -> DeregisterDBProxyTargets -> Bool
$c== :: DeregisterDBProxyTargets -> DeregisterDBProxyTargets -> Bool
Prelude.Eq, ReadPrec [DeregisterDBProxyTargets]
ReadPrec DeregisterDBProxyTargets
Int -> ReadS DeregisterDBProxyTargets
ReadS [DeregisterDBProxyTargets]
(Int -> ReadS DeregisterDBProxyTargets)
-> ReadS [DeregisterDBProxyTargets]
-> ReadPrec DeregisterDBProxyTargets
-> ReadPrec [DeregisterDBProxyTargets]
-> Read DeregisterDBProxyTargets
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeregisterDBProxyTargets]
$creadListPrec :: ReadPrec [DeregisterDBProxyTargets]
readPrec :: ReadPrec DeregisterDBProxyTargets
$creadPrec :: ReadPrec DeregisterDBProxyTargets
readList :: ReadS [DeregisterDBProxyTargets]
$creadList :: ReadS [DeregisterDBProxyTargets]
readsPrec :: Int -> ReadS DeregisterDBProxyTargets
$creadsPrec :: Int -> ReadS DeregisterDBProxyTargets
Prelude.Read, Int -> DeregisterDBProxyTargets -> ShowS
[DeregisterDBProxyTargets] -> ShowS
DeregisterDBProxyTargets -> String
(Int -> DeregisterDBProxyTargets -> ShowS)
-> (DeregisterDBProxyTargets -> String)
-> ([DeregisterDBProxyTargets] -> ShowS)
-> Show DeregisterDBProxyTargets
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeregisterDBProxyTargets] -> ShowS
$cshowList :: [DeregisterDBProxyTargets] -> ShowS
show :: DeregisterDBProxyTargets -> String
$cshow :: DeregisterDBProxyTargets -> String
showsPrec :: Int -> DeregisterDBProxyTargets -> ShowS
$cshowsPrec :: Int -> DeregisterDBProxyTargets -> ShowS
Prelude.Show, (forall x.
 DeregisterDBProxyTargets -> Rep DeregisterDBProxyTargets x)
-> (forall x.
    Rep DeregisterDBProxyTargets x -> DeregisterDBProxyTargets)
-> Generic DeregisterDBProxyTargets
forall x.
Rep DeregisterDBProxyTargets x -> DeregisterDBProxyTargets
forall x.
DeregisterDBProxyTargets -> Rep DeregisterDBProxyTargets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeregisterDBProxyTargets x -> DeregisterDBProxyTargets
$cfrom :: forall x.
DeregisterDBProxyTargets -> Rep DeregisterDBProxyTargets x
Prelude.Generic)

-- |
-- Create a value of 'DeregisterDBProxyTargets' 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:
--
-- 'dbClusterIdentifiers', 'deregisterDBProxyTargets_dbClusterIdentifiers' - One or more DB cluster identifiers.
--
-- 'dbInstanceIdentifiers', 'deregisterDBProxyTargets_dbInstanceIdentifiers' - One or more DB instance identifiers.
--
-- 'targetGroupName', 'deregisterDBProxyTargets_targetGroupName' - The identifier of the @DBProxyTargetGroup@.
--
-- 'dbProxyName', 'deregisterDBProxyTargets_dbProxyName' - The identifier of the @DBProxy@ that is associated with the
-- @DBProxyTargetGroup@.
newDeregisterDBProxyTargets ::
  -- | 'dbProxyName'
  Prelude.Text ->
  DeregisterDBProxyTargets
newDeregisterDBProxyTargets :: Text -> DeregisterDBProxyTargets
newDeregisterDBProxyTargets Text
pDBProxyName_ =
  DeregisterDBProxyTargets' :: Maybe [Text]
-> Maybe [Text] -> Maybe Text -> Text -> DeregisterDBProxyTargets
DeregisterDBProxyTargets'
    { $sel:dbClusterIdentifiers:DeregisterDBProxyTargets' :: Maybe [Text]
dbClusterIdentifiers =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:dbInstanceIdentifiers:DeregisterDBProxyTargets' :: Maybe [Text]
dbInstanceIdentifiers = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:targetGroupName:DeregisterDBProxyTargets' :: Maybe Text
targetGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dbProxyName:DeregisterDBProxyTargets' :: Text
dbProxyName = Text
pDBProxyName_
    }

-- | One or more DB cluster identifiers.
deregisterDBProxyTargets_dbClusterIdentifiers :: Lens.Lens' DeregisterDBProxyTargets (Prelude.Maybe [Prelude.Text])
deregisterDBProxyTargets_dbClusterIdentifiers :: (Maybe [Text] -> f (Maybe [Text]))
-> DeregisterDBProxyTargets -> f DeregisterDBProxyTargets
deregisterDBProxyTargets_dbClusterIdentifiers = (DeregisterDBProxyTargets -> Maybe [Text])
-> (DeregisterDBProxyTargets
    -> Maybe [Text] -> DeregisterDBProxyTargets)
-> Lens
     DeregisterDBProxyTargets
     DeregisterDBProxyTargets
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeregisterDBProxyTargets' {Maybe [Text]
dbClusterIdentifiers :: Maybe [Text]
$sel:dbClusterIdentifiers:DeregisterDBProxyTargets' :: DeregisterDBProxyTargets -> Maybe [Text]
dbClusterIdentifiers} -> Maybe [Text]
dbClusterIdentifiers) (\s :: DeregisterDBProxyTargets
s@DeregisterDBProxyTargets' {} Maybe [Text]
a -> DeregisterDBProxyTargets
s {$sel:dbClusterIdentifiers:DeregisterDBProxyTargets' :: Maybe [Text]
dbClusterIdentifiers = Maybe [Text]
a} :: DeregisterDBProxyTargets) ((Maybe [Text] -> f (Maybe [Text]))
 -> DeregisterDBProxyTargets -> f DeregisterDBProxyTargets)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DeregisterDBProxyTargets
-> f DeregisterDBProxyTargets
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | One or more DB instance identifiers.
deregisterDBProxyTargets_dbInstanceIdentifiers :: Lens.Lens' DeregisterDBProxyTargets (Prelude.Maybe [Prelude.Text])
deregisterDBProxyTargets_dbInstanceIdentifiers :: (Maybe [Text] -> f (Maybe [Text]))
-> DeregisterDBProxyTargets -> f DeregisterDBProxyTargets
deregisterDBProxyTargets_dbInstanceIdentifiers = (DeregisterDBProxyTargets -> Maybe [Text])
-> (DeregisterDBProxyTargets
    -> Maybe [Text] -> DeregisterDBProxyTargets)
-> Lens
     DeregisterDBProxyTargets
     DeregisterDBProxyTargets
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeregisterDBProxyTargets' {Maybe [Text]
dbInstanceIdentifiers :: Maybe [Text]
$sel:dbInstanceIdentifiers:DeregisterDBProxyTargets' :: DeregisterDBProxyTargets -> Maybe [Text]
dbInstanceIdentifiers} -> Maybe [Text]
dbInstanceIdentifiers) (\s :: DeregisterDBProxyTargets
s@DeregisterDBProxyTargets' {} Maybe [Text]
a -> DeregisterDBProxyTargets
s {$sel:dbInstanceIdentifiers:DeregisterDBProxyTargets' :: Maybe [Text]
dbInstanceIdentifiers = Maybe [Text]
a} :: DeregisterDBProxyTargets) ((Maybe [Text] -> f (Maybe [Text]))
 -> DeregisterDBProxyTargets -> f DeregisterDBProxyTargets)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DeregisterDBProxyTargets
-> f DeregisterDBProxyTargets
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The identifier of the @DBProxyTargetGroup@.
deregisterDBProxyTargets_targetGroupName :: Lens.Lens' DeregisterDBProxyTargets (Prelude.Maybe Prelude.Text)
deregisterDBProxyTargets_targetGroupName :: (Maybe Text -> f (Maybe Text))
-> DeregisterDBProxyTargets -> f DeregisterDBProxyTargets
deregisterDBProxyTargets_targetGroupName = (DeregisterDBProxyTargets -> Maybe Text)
-> (DeregisterDBProxyTargets
    -> Maybe Text -> DeregisterDBProxyTargets)
-> Lens
     DeregisterDBProxyTargets
     DeregisterDBProxyTargets
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeregisterDBProxyTargets' {Maybe Text
targetGroupName :: Maybe Text
$sel:targetGroupName:DeregisterDBProxyTargets' :: DeregisterDBProxyTargets -> Maybe Text
targetGroupName} -> Maybe Text
targetGroupName) (\s :: DeregisterDBProxyTargets
s@DeregisterDBProxyTargets' {} Maybe Text
a -> DeregisterDBProxyTargets
s {$sel:targetGroupName:DeregisterDBProxyTargets' :: Maybe Text
targetGroupName = Maybe Text
a} :: DeregisterDBProxyTargets)

-- | The identifier of the @DBProxy@ that is associated with the
-- @DBProxyTargetGroup@.
deregisterDBProxyTargets_dbProxyName :: Lens.Lens' DeregisterDBProxyTargets Prelude.Text
deregisterDBProxyTargets_dbProxyName :: (Text -> f Text)
-> DeregisterDBProxyTargets -> f DeregisterDBProxyTargets
deregisterDBProxyTargets_dbProxyName = (DeregisterDBProxyTargets -> Text)
-> (DeregisterDBProxyTargets -> Text -> DeregisterDBProxyTargets)
-> Lens DeregisterDBProxyTargets DeregisterDBProxyTargets Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeregisterDBProxyTargets' {Text
dbProxyName :: Text
$sel:dbProxyName:DeregisterDBProxyTargets' :: DeregisterDBProxyTargets -> Text
dbProxyName} -> Text
dbProxyName) (\s :: DeregisterDBProxyTargets
s@DeregisterDBProxyTargets' {} Text
a -> DeregisterDBProxyTargets
s {$sel:dbProxyName:DeregisterDBProxyTargets' :: Text
dbProxyName = Text
a} :: DeregisterDBProxyTargets)

instance Core.AWSRequest DeregisterDBProxyTargets where
  type
    AWSResponse DeregisterDBProxyTargets =
      DeregisterDBProxyTargetsResponse
  request :: DeregisterDBProxyTargets -> Request DeregisterDBProxyTargets
request = Service
-> DeregisterDBProxyTargets -> Request DeregisterDBProxyTargets
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DeregisterDBProxyTargets
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeregisterDBProxyTargets)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DeregisterDBProxyTargets))
-> Logger
-> Service
-> Proxy DeregisterDBProxyTargets
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeregisterDBProxyTargets)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"DeregisterDBProxyTargetsResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Int -> DeregisterDBProxyTargetsResponse
DeregisterDBProxyTargetsResponse'
            (Int -> DeregisterDBProxyTargetsResponse)
-> Either String Int
-> Either String DeregisterDBProxyTargetsResponse
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 DeregisterDBProxyTargets

instance Prelude.NFData DeregisterDBProxyTargets

instance Core.ToHeaders DeregisterDBProxyTargets where
  toHeaders :: DeregisterDBProxyTargets -> ResponseHeaders
toHeaders = ResponseHeaders -> DeregisterDBProxyTargets -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

instance Core.ToQuery DeregisterDBProxyTargets where
  toQuery :: DeregisterDBProxyTargets -> QueryString
toQuery DeregisterDBProxyTargets' {Maybe [Text]
Maybe Text
Text
dbProxyName :: Text
targetGroupName :: Maybe Text
dbInstanceIdentifiers :: Maybe [Text]
dbClusterIdentifiers :: Maybe [Text]
$sel:dbProxyName:DeregisterDBProxyTargets' :: DeregisterDBProxyTargets -> Text
$sel:targetGroupName:DeregisterDBProxyTargets' :: DeregisterDBProxyTargets -> Maybe Text
$sel:dbInstanceIdentifiers:DeregisterDBProxyTargets' :: DeregisterDBProxyTargets -> Maybe [Text]
$sel:dbClusterIdentifiers:DeregisterDBProxyTargets' :: DeregisterDBProxyTargets -> Maybe [Text]
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DeregisterDBProxyTargets" :: Prelude.ByteString),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2014-10-31" :: Prelude.ByteString),
        ByteString
"DBClusterIdentifiers"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            ( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
                ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
dbClusterIdentifiers
            ),
        ByteString
"DBInstanceIdentifiers"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            ( ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member"
                ([Text] -> QueryString) -> Maybe [Text] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
dbInstanceIdentifiers
            ),
        ByteString
"TargetGroupName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
targetGroupName,
        ByteString
"DBProxyName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
dbProxyName
      ]

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

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

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

instance
  Prelude.NFData
    DeregisterDBProxyTargetsResponse