{-# 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.Route53Resolver.DisassociateResolverEndpointIpAddress
-- 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 IP addresses from an inbound or an outbound Resolver endpoint.
-- If you want to remove more than one IP address, submit one
-- @DisassociateResolverEndpointIpAddress@ request for each IP address.
--
-- To add an IP address to an endpoint, see
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_AssociateResolverEndpointIpAddress.html AssociateResolverEndpointIpAddress>.
module Amazonka.Route53Resolver.DisassociateResolverEndpointIpAddress
  ( -- * Creating a Request
    DisassociateResolverEndpointIpAddress (..),
    newDisassociateResolverEndpointIpAddress,

    -- * Request Lenses
    disassociateResolverEndpointIpAddress_resolverEndpointId,
    disassociateResolverEndpointIpAddress_ipAddress,

    -- * Destructuring the Response
    DisassociateResolverEndpointIpAddressResponse (..),
    newDisassociateResolverEndpointIpAddressResponse,

    -- * Response Lenses
    disassociateResolverEndpointIpAddressResponse_resolverEndpoint,
    disassociateResolverEndpointIpAddressResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDisassociateResolverEndpointIpAddress' smart constructor.
data DisassociateResolverEndpointIpAddress = DisassociateResolverEndpointIpAddress'
  { -- | The ID of the Resolver endpoint that you want to disassociate an IP
    -- address from.
    DisassociateResolverEndpointIpAddress -> Text
resolverEndpointId :: Prelude.Text,
    -- | The IPv4 address that you want to remove from a Resolver endpoint.
    DisassociateResolverEndpointIpAddress -> IpAddressUpdate
ipAddress :: IpAddressUpdate
  }
  deriving (DisassociateResolverEndpointIpAddress
-> DisassociateResolverEndpointIpAddress -> Bool
(DisassociateResolverEndpointIpAddress
 -> DisassociateResolverEndpointIpAddress -> Bool)
-> (DisassociateResolverEndpointIpAddress
    -> DisassociateResolverEndpointIpAddress -> Bool)
-> Eq DisassociateResolverEndpointIpAddress
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateResolverEndpointIpAddress
-> DisassociateResolverEndpointIpAddress -> Bool
$c/= :: DisassociateResolverEndpointIpAddress
-> DisassociateResolverEndpointIpAddress -> Bool
== :: DisassociateResolverEndpointIpAddress
-> DisassociateResolverEndpointIpAddress -> Bool
$c== :: DisassociateResolverEndpointIpAddress
-> DisassociateResolverEndpointIpAddress -> Bool
Prelude.Eq, ReadPrec [DisassociateResolverEndpointIpAddress]
ReadPrec DisassociateResolverEndpointIpAddress
Int -> ReadS DisassociateResolverEndpointIpAddress
ReadS [DisassociateResolverEndpointIpAddress]
(Int -> ReadS DisassociateResolverEndpointIpAddress)
-> ReadS [DisassociateResolverEndpointIpAddress]
-> ReadPrec DisassociateResolverEndpointIpAddress
-> ReadPrec [DisassociateResolverEndpointIpAddress]
-> Read DisassociateResolverEndpointIpAddress
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateResolverEndpointIpAddress]
$creadListPrec :: ReadPrec [DisassociateResolverEndpointIpAddress]
readPrec :: ReadPrec DisassociateResolverEndpointIpAddress
$creadPrec :: ReadPrec DisassociateResolverEndpointIpAddress
readList :: ReadS [DisassociateResolverEndpointIpAddress]
$creadList :: ReadS [DisassociateResolverEndpointIpAddress]
readsPrec :: Int -> ReadS DisassociateResolverEndpointIpAddress
$creadsPrec :: Int -> ReadS DisassociateResolverEndpointIpAddress
Prelude.Read, Int -> DisassociateResolverEndpointIpAddress -> ShowS
[DisassociateResolverEndpointIpAddress] -> ShowS
DisassociateResolverEndpointIpAddress -> String
(Int -> DisassociateResolverEndpointIpAddress -> ShowS)
-> (DisassociateResolverEndpointIpAddress -> String)
-> ([DisassociateResolverEndpointIpAddress] -> ShowS)
-> Show DisassociateResolverEndpointIpAddress
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateResolverEndpointIpAddress] -> ShowS
$cshowList :: [DisassociateResolverEndpointIpAddress] -> ShowS
show :: DisassociateResolverEndpointIpAddress -> String
$cshow :: DisassociateResolverEndpointIpAddress -> String
showsPrec :: Int -> DisassociateResolverEndpointIpAddress -> ShowS
$cshowsPrec :: Int -> DisassociateResolverEndpointIpAddress -> ShowS
Prelude.Show, (forall x.
 DisassociateResolverEndpointIpAddress
 -> Rep DisassociateResolverEndpointIpAddress x)
-> (forall x.
    Rep DisassociateResolverEndpointIpAddress x
    -> DisassociateResolverEndpointIpAddress)
-> Generic DisassociateResolverEndpointIpAddress
forall x.
Rep DisassociateResolverEndpointIpAddress x
-> DisassociateResolverEndpointIpAddress
forall x.
DisassociateResolverEndpointIpAddress
-> Rep DisassociateResolverEndpointIpAddress x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateResolverEndpointIpAddress x
-> DisassociateResolverEndpointIpAddress
$cfrom :: forall x.
DisassociateResolverEndpointIpAddress
-> Rep DisassociateResolverEndpointIpAddress x
Prelude.Generic)

-- |
-- Create a value of 'DisassociateResolverEndpointIpAddress' 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:
--
-- 'resolverEndpointId', 'disassociateResolverEndpointIpAddress_resolverEndpointId' - The ID of the Resolver endpoint that you want to disassociate an IP
-- address from.
--
-- 'ipAddress', 'disassociateResolverEndpointIpAddress_ipAddress' - The IPv4 address that you want to remove from a Resolver endpoint.
newDisassociateResolverEndpointIpAddress ::
  -- | 'resolverEndpointId'
  Prelude.Text ->
  -- | 'ipAddress'
  IpAddressUpdate ->
  DisassociateResolverEndpointIpAddress
newDisassociateResolverEndpointIpAddress :: Text -> IpAddressUpdate -> DisassociateResolverEndpointIpAddress
newDisassociateResolverEndpointIpAddress
  Text
pResolverEndpointId_
  IpAddressUpdate
pIpAddress_ =
    DisassociateResolverEndpointIpAddress' :: Text -> IpAddressUpdate -> DisassociateResolverEndpointIpAddress
DisassociateResolverEndpointIpAddress'
      { $sel:resolverEndpointId:DisassociateResolverEndpointIpAddress' :: Text
resolverEndpointId =
          Text
pResolverEndpointId_,
        $sel:ipAddress:DisassociateResolverEndpointIpAddress' :: IpAddressUpdate
ipAddress = IpAddressUpdate
pIpAddress_
      }

-- | The ID of the Resolver endpoint that you want to disassociate an IP
-- address from.
disassociateResolverEndpointIpAddress_resolverEndpointId :: Lens.Lens' DisassociateResolverEndpointIpAddress Prelude.Text
disassociateResolverEndpointIpAddress_resolverEndpointId :: (Text -> f Text)
-> DisassociateResolverEndpointIpAddress
-> f DisassociateResolverEndpointIpAddress
disassociateResolverEndpointIpAddress_resolverEndpointId = (DisassociateResolverEndpointIpAddress -> Text)
-> (DisassociateResolverEndpointIpAddress
    -> Text -> DisassociateResolverEndpointIpAddress)
-> Lens
     DisassociateResolverEndpointIpAddress
     DisassociateResolverEndpointIpAddress
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResolverEndpointIpAddress' {Text
resolverEndpointId :: Text
$sel:resolverEndpointId:DisassociateResolverEndpointIpAddress' :: DisassociateResolverEndpointIpAddress -> Text
resolverEndpointId} -> Text
resolverEndpointId) (\s :: DisassociateResolverEndpointIpAddress
s@DisassociateResolverEndpointIpAddress' {} Text
a -> DisassociateResolverEndpointIpAddress
s {$sel:resolverEndpointId:DisassociateResolverEndpointIpAddress' :: Text
resolverEndpointId = Text
a} :: DisassociateResolverEndpointIpAddress)

-- | The IPv4 address that you want to remove from a Resolver endpoint.
disassociateResolverEndpointIpAddress_ipAddress :: Lens.Lens' DisassociateResolverEndpointIpAddress IpAddressUpdate
disassociateResolverEndpointIpAddress_ipAddress :: (IpAddressUpdate -> f IpAddressUpdate)
-> DisassociateResolverEndpointIpAddress
-> f DisassociateResolverEndpointIpAddress
disassociateResolverEndpointIpAddress_ipAddress = (DisassociateResolverEndpointIpAddress -> IpAddressUpdate)
-> (DisassociateResolverEndpointIpAddress
    -> IpAddressUpdate -> DisassociateResolverEndpointIpAddress)
-> Lens
     DisassociateResolverEndpointIpAddress
     DisassociateResolverEndpointIpAddress
     IpAddressUpdate
     IpAddressUpdate
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResolverEndpointIpAddress' {IpAddressUpdate
ipAddress :: IpAddressUpdate
$sel:ipAddress:DisassociateResolverEndpointIpAddress' :: DisassociateResolverEndpointIpAddress -> IpAddressUpdate
ipAddress} -> IpAddressUpdate
ipAddress) (\s :: DisassociateResolverEndpointIpAddress
s@DisassociateResolverEndpointIpAddress' {} IpAddressUpdate
a -> DisassociateResolverEndpointIpAddress
s {$sel:ipAddress:DisassociateResolverEndpointIpAddress' :: IpAddressUpdate
ipAddress = IpAddressUpdate
a} :: DisassociateResolverEndpointIpAddress)

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

instance
  Prelude.NFData
    DisassociateResolverEndpointIpAddress

instance
  Core.ToHeaders
    DisassociateResolverEndpointIpAddress
  where
  toHeaders :: DisassociateResolverEndpointIpAddress -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DisassociateResolverEndpointIpAddress -> 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
"Route53Resolver.DisassociateResolverEndpointIpAddress" ::
                          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
    DisassociateResolverEndpointIpAddress
  where
  toJSON :: DisassociateResolverEndpointIpAddress -> Value
toJSON DisassociateResolverEndpointIpAddress' {Text
IpAddressUpdate
ipAddress :: IpAddressUpdate
resolverEndpointId :: Text
$sel:ipAddress:DisassociateResolverEndpointIpAddress' :: DisassociateResolverEndpointIpAddress -> IpAddressUpdate
$sel:resolverEndpointId:DisassociateResolverEndpointIpAddress' :: DisassociateResolverEndpointIpAddress -> 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
"ResolverEndpointId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resolverEndpointId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"IpAddress" Text -> IpAddressUpdate -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= IpAddressUpdate
ipAddress)
          ]
      )

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

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

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

-- |
-- Create a value of 'DisassociateResolverEndpointIpAddressResponse' 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:
--
-- 'resolverEndpoint', 'disassociateResolverEndpointIpAddressResponse_resolverEndpoint' - The response to an @DisassociateResolverEndpointIpAddress@ request.
--
-- 'httpStatus', 'disassociateResolverEndpointIpAddressResponse_httpStatus' - The response's http status code.
newDisassociateResolverEndpointIpAddressResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DisassociateResolverEndpointIpAddressResponse
newDisassociateResolverEndpointIpAddressResponse :: Int -> DisassociateResolverEndpointIpAddressResponse
newDisassociateResolverEndpointIpAddressResponse
  Int
pHttpStatus_ =
    DisassociateResolverEndpointIpAddressResponse' :: Maybe ResolverEndpoint
-> Int -> DisassociateResolverEndpointIpAddressResponse
DisassociateResolverEndpointIpAddressResponse'
      { $sel:resolverEndpoint:DisassociateResolverEndpointIpAddressResponse' :: Maybe ResolverEndpoint
resolverEndpoint =
          Maybe ResolverEndpoint
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DisassociateResolverEndpointIpAddressResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The response to an @DisassociateResolverEndpointIpAddress@ request.
disassociateResolverEndpointIpAddressResponse_resolverEndpoint :: Lens.Lens' DisassociateResolverEndpointIpAddressResponse (Prelude.Maybe ResolverEndpoint)
disassociateResolverEndpointIpAddressResponse_resolverEndpoint :: (Maybe ResolverEndpoint -> f (Maybe ResolverEndpoint))
-> DisassociateResolverEndpointIpAddressResponse
-> f DisassociateResolverEndpointIpAddressResponse
disassociateResolverEndpointIpAddressResponse_resolverEndpoint = (DisassociateResolverEndpointIpAddressResponse
 -> Maybe ResolverEndpoint)
-> (DisassociateResolverEndpointIpAddressResponse
    -> Maybe ResolverEndpoint
    -> DisassociateResolverEndpointIpAddressResponse)
-> Lens
     DisassociateResolverEndpointIpAddressResponse
     DisassociateResolverEndpointIpAddressResponse
     (Maybe ResolverEndpoint)
     (Maybe ResolverEndpoint)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResolverEndpointIpAddressResponse' {Maybe ResolverEndpoint
resolverEndpoint :: Maybe ResolverEndpoint
$sel:resolverEndpoint:DisassociateResolverEndpointIpAddressResponse' :: DisassociateResolverEndpointIpAddressResponse
-> Maybe ResolverEndpoint
resolverEndpoint} -> Maybe ResolverEndpoint
resolverEndpoint) (\s :: DisassociateResolverEndpointIpAddressResponse
s@DisassociateResolverEndpointIpAddressResponse' {} Maybe ResolverEndpoint
a -> DisassociateResolverEndpointIpAddressResponse
s {$sel:resolverEndpoint:DisassociateResolverEndpointIpAddressResponse' :: Maybe ResolverEndpoint
resolverEndpoint = Maybe ResolverEndpoint
a} :: DisassociateResolverEndpointIpAddressResponse)

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

instance
  Prelude.NFData
    DisassociateResolverEndpointIpAddressResponse