{-# 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.DisassociateResolverQueryLogConfig
-- 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)
--
-- Disassociates a VPC from a query logging configuration.
--
-- Before you can delete a query logging configuration, you must first
-- disassociate all VPCs from the configuration. If you used Resource
-- Access Manager (RAM) to share a query logging configuration with other
-- accounts, VPCs can be disassociated from the configuration in the
-- following ways:
--
-- -   The accounts that you shared the configuration with can disassociate
--     VPCs from the configuration.
--
-- -   You can stop sharing the configuration.
module Amazonka.Route53Resolver.DisassociateResolverQueryLogConfig
  ( -- * Creating a Request
    DisassociateResolverQueryLogConfig (..),
    newDisassociateResolverQueryLogConfig,

    -- * Request Lenses
    disassociateResolverQueryLogConfig_resolverQueryLogConfigId,
    disassociateResolverQueryLogConfig_resourceId,

    -- * Destructuring the Response
    DisassociateResolverQueryLogConfigResponse (..),
    newDisassociateResolverQueryLogConfigResponse,

    -- * Response Lenses
    disassociateResolverQueryLogConfigResponse_resolverQueryLogConfigAssociation,
    disassociateResolverQueryLogConfigResponse_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:/ 'newDisassociateResolverQueryLogConfig' smart constructor.
data DisassociateResolverQueryLogConfig = DisassociateResolverQueryLogConfig'
  { -- | The ID of the query logging configuration that you want to disassociate
    -- a specified VPC from.
    DisassociateResolverQueryLogConfig -> Text
resolverQueryLogConfigId :: Prelude.Text,
    -- | The ID of the Amazon VPC that you want to disassociate from a specified
    -- query logging configuration.
    DisassociateResolverQueryLogConfig -> Text
resourceId :: Prelude.Text
  }
  deriving (DisassociateResolverQueryLogConfig
-> DisassociateResolverQueryLogConfig -> Bool
(DisassociateResolverQueryLogConfig
 -> DisassociateResolverQueryLogConfig -> Bool)
-> (DisassociateResolverQueryLogConfig
    -> DisassociateResolverQueryLogConfig -> Bool)
-> Eq DisassociateResolverQueryLogConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateResolverQueryLogConfig
-> DisassociateResolverQueryLogConfig -> Bool
$c/= :: DisassociateResolverQueryLogConfig
-> DisassociateResolverQueryLogConfig -> Bool
== :: DisassociateResolverQueryLogConfig
-> DisassociateResolverQueryLogConfig -> Bool
$c== :: DisassociateResolverQueryLogConfig
-> DisassociateResolverQueryLogConfig -> Bool
Prelude.Eq, ReadPrec [DisassociateResolverQueryLogConfig]
ReadPrec DisassociateResolverQueryLogConfig
Int -> ReadS DisassociateResolverQueryLogConfig
ReadS [DisassociateResolverQueryLogConfig]
(Int -> ReadS DisassociateResolverQueryLogConfig)
-> ReadS [DisassociateResolverQueryLogConfig]
-> ReadPrec DisassociateResolverQueryLogConfig
-> ReadPrec [DisassociateResolverQueryLogConfig]
-> Read DisassociateResolverQueryLogConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateResolverQueryLogConfig]
$creadListPrec :: ReadPrec [DisassociateResolverQueryLogConfig]
readPrec :: ReadPrec DisassociateResolverQueryLogConfig
$creadPrec :: ReadPrec DisassociateResolverQueryLogConfig
readList :: ReadS [DisassociateResolverQueryLogConfig]
$creadList :: ReadS [DisassociateResolverQueryLogConfig]
readsPrec :: Int -> ReadS DisassociateResolverQueryLogConfig
$creadsPrec :: Int -> ReadS DisassociateResolverQueryLogConfig
Prelude.Read, Int -> DisassociateResolverQueryLogConfig -> ShowS
[DisassociateResolverQueryLogConfig] -> ShowS
DisassociateResolverQueryLogConfig -> String
(Int -> DisassociateResolverQueryLogConfig -> ShowS)
-> (DisassociateResolverQueryLogConfig -> String)
-> ([DisassociateResolverQueryLogConfig] -> ShowS)
-> Show DisassociateResolverQueryLogConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateResolverQueryLogConfig] -> ShowS
$cshowList :: [DisassociateResolverQueryLogConfig] -> ShowS
show :: DisassociateResolverQueryLogConfig -> String
$cshow :: DisassociateResolverQueryLogConfig -> String
showsPrec :: Int -> DisassociateResolverQueryLogConfig -> ShowS
$cshowsPrec :: Int -> DisassociateResolverQueryLogConfig -> ShowS
Prelude.Show, (forall x.
 DisassociateResolverQueryLogConfig
 -> Rep DisassociateResolverQueryLogConfig x)
-> (forall x.
    Rep DisassociateResolverQueryLogConfig x
    -> DisassociateResolverQueryLogConfig)
-> Generic DisassociateResolverQueryLogConfig
forall x.
Rep DisassociateResolverQueryLogConfig x
-> DisassociateResolverQueryLogConfig
forall x.
DisassociateResolverQueryLogConfig
-> Rep DisassociateResolverQueryLogConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateResolverQueryLogConfig x
-> DisassociateResolverQueryLogConfig
$cfrom :: forall x.
DisassociateResolverQueryLogConfig
-> Rep DisassociateResolverQueryLogConfig x
Prelude.Generic)

-- |
-- Create a value of 'DisassociateResolverQueryLogConfig' 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:
--
-- 'resolverQueryLogConfigId', 'disassociateResolverQueryLogConfig_resolverQueryLogConfigId' - The ID of the query logging configuration that you want to disassociate
-- a specified VPC from.
--
-- 'resourceId', 'disassociateResolverQueryLogConfig_resourceId' - The ID of the Amazon VPC that you want to disassociate from a specified
-- query logging configuration.
newDisassociateResolverQueryLogConfig ::
  -- | 'resolverQueryLogConfigId'
  Prelude.Text ->
  -- | 'resourceId'
  Prelude.Text ->
  DisassociateResolverQueryLogConfig
newDisassociateResolverQueryLogConfig :: Text -> Text -> DisassociateResolverQueryLogConfig
newDisassociateResolverQueryLogConfig
  Text
pResolverQueryLogConfigId_
  Text
pResourceId_ =
    DisassociateResolverQueryLogConfig' :: Text -> Text -> DisassociateResolverQueryLogConfig
DisassociateResolverQueryLogConfig'
      { $sel:resolverQueryLogConfigId:DisassociateResolverQueryLogConfig' :: Text
resolverQueryLogConfigId =
          Text
pResolverQueryLogConfigId_,
        $sel:resourceId:DisassociateResolverQueryLogConfig' :: Text
resourceId = Text
pResourceId_
      }

-- | The ID of the query logging configuration that you want to disassociate
-- a specified VPC from.
disassociateResolverQueryLogConfig_resolverQueryLogConfigId :: Lens.Lens' DisassociateResolverQueryLogConfig Prelude.Text
disassociateResolverQueryLogConfig_resolverQueryLogConfigId :: (Text -> f Text)
-> DisassociateResolverQueryLogConfig
-> f DisassociateResolverQueryLogConfig
disassociateResolverQueryLogConfig_resolverQueryLogConfigId = (DisassociateResolverQueryLogConfig -> Text)
-> (DisassociateResolverQueryLogConfig
    -> Text -> DisassociateResolverQueryLogConfig)
-> Lens
     DisassociateResolverQueryLogConfig
     DisassociateResolverQueryLogConfig
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResolverQueryLogConfig' {Text
resolverQueryLogConfigId :: Text
$sel:resolverQueryLogConfigId:DisassociateResolverQueryLogConfig' :: DisassociateResolverQueryLogConfig -> Text
resolverQueryLogConfigId} -> Text
resolverQueryLogConfigId) (\s :: DisassociateResolverQueryLogConfig
s@DisassociateResolverQueryLogConfig' {} Text
a -> DisassociateResolverQueryLogConfig
s {$sel:resolverQueryLogConfigId:DisassociateResolverQueryLogConfig' :: Text
resolverQueryLogConfigId = Text
a} :: DisassociateResolverQueryLogConfig)

-- | The ID of the Amazon VPC that you want to disassociate from a specified
-- query logging configuration.
disassociateResolverQueryLogConfig_resourceId :: Lens.Lens' DisassociateResolverQueryLogConfig Prelude.Text
disassociateResolverQueryLogConfig_resourceId :: (Text -> f Text)
-> DisassociateResolverQueryLogConfig
-> f DisassociateResolverQueryLogConfig
disassociateResolverQueryLogConfig_resourceId = (DisassociateResolverQueryLogConfig -> Text)
-> (DisassociateResolverQueryLogConfig
    -> Text -> DisassociateResolverQueryLogConfig)
-> Lens
     DisassociateResolverQueryLogConfig
     DisassociateResolverQueryLogConfig
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResolverQueryLogConfig' {Text
resourceId :: Text
$sel:resourceId:DisassociateResolverQueryLogConfig' :: DisassociateResolverQueryLogConfig -> Text
resourceId} -> Text
resourceId) (\s :: DisassociateResolverQueryLogConfig
s@DisassociateResolverQueryLogConfig' {} Text
a -> DisassociateResolverQueryLogConfig
s {$sel:resourceId:DisassociateResolverQueryLogConfig' :: Text
resourceId = Text
a} :: DisassociateResolverQueryLogConfig)

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

instance
  Prelude.NFData
    DisassociateResolverQueryLogConfig

instance
  Core.ToHeaders
    DisassociateResolverQueryLogConfig
  where
  toHeaders :: DisassociateResolverQueryLogConfig -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DisassociateResolverQueryLogConfig -> 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.DisassociateResolverQueryLogConfig" ::
                          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
    DisassociateResolverQueryLogConfig
  where
  toJSON :: DisassociateResolverQueryLogConfig -> Value
toJSON DisassociateResolverQueryLogConfig' {Text
resourceId :: Text
resolverQueryLogConfigId :: Text
$sel:resourceId:DisassociateResolverQueryLogConfig' :: DisassociateResolverQueryLogConfig -> Text
$sel:resolverQueryLogConfigId:DisassociateResolverQueryLogConfig' :: DisassociateResolverQueryLogConfig -> 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
"ResolverQueryLogConfigId"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resolverQueryLogConfigId
              ),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ResourceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resourceId)
          ]
      )

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

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

-- | /See:/ 'newDisassociateResolverQueryLogConfigResponse' smart constructor.
data DisassociateResolverQueryLogConfigResponse = DisassociateResolverQueryLogConfigResponse'
  { -- | A complex type that contains settings for the association that you
    -- deleted between an Amazon VPC and a query logging configuration.
    DisassociateResolverQueryLogConfigResponse
-> Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation :: Prelude.Maybe ResolverQueryLogConfigAssociation,
    -- | The response's http status code.
    DisassociateResolverQueryLogConfigResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DisassociateResolverQueryLogConfigResponse
-> DisassociateResolverQueryLogConfigResponse -> Bool
(DisassociateResolverQueryLogConfigResponse
 -> DisassociateResolverQueryLogConfigResponse -> Bool)
-> (DisassociateResolverQueryLogConfigResponse
    -> DisassociateResolverQueryLogConfigResponse -> Bool)
-> Eq DisassociateResolverQueryLogConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateResolverQueryLogConfigResponse
-> DisassociateResolverQueryLogConfigResponse -> Bool
$c/= :: DisassociateResolverQueryLogConfigResponse
-> DisassociateResolverQueryLogConfigResponse -> Bool
== :: DisassociateResolverQueryLogConfigResponse
-> DisassociateResolverQueryLogConfigResponse -> Bool
$c== :: DisassociateResolverQueryLogConfigResponse
-> DisassociateResolverQueryLogConfigResponse -> Bool
Prelude.Eq, ReadPrec [DisassociateResolverQueryLogConfigResponse]
ReadPrec DisassociateResolverQueryLogConfigResponse
Int -> ReadS DisassociateResolverQueryLogConfigResponse
ReadS [DisassociateResolverQueryLogConfigResponse]
(Int -> ReadS DisassociateResolverQueryLogConfigResponse)
-> ReadS [DisassociateResolverQueryLogConfigResponse]
-> ReadPrec DisassociateResolverQueryLogConfigResponse
-> ReadPrec [DisassociateResolverQueryLogConfigResponse]
-> Read DisassociateResolverQueryLogConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateResolverQueryLogConfigResponse]
$creadListPrec :: ReadPrec [DisassociateResolverQueryLogConfigResponse]
readPrec :: ReadPrec DisassociateResolverQueryLogConfigResponse
$creadPrec :: ReadPrec DisassociateResolverQueryLogConfigResponse
readList :: ReadS [DisassociateResolverQueryLogConfigResponse]
$creadList :: ReadS [DisassociateResolverQueryLogConfigResponse]
readsPrec :: Int -> ReadS DisassociateResolverQueryLogConfigResponse
$creadsPrec :: Int -> ReadS DisassociateResolverQueryLogConfigResponse
Prelude.Read, Int -> DisassociateResolverQueryLogConfigResponse -> ShowS
[DisassociateResolverQueryLogConfigResponse] -> ShowS
DisassociateResolverQueryLogConfigResponse -> String
(Int -> DisassociateResolverQueryLogConfigResponse -> ShowS)
-> (DisassociateResolverQueryLogConfigResponse -> String)
-> ([DisassociateResolverQueryLogConfigResponse] -> ShowS)
-> Show DisassociateResolverQueryLogConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateResolverQueryLogConfigResponse] -> ShowS
$cshowList :: [DisassociateResolverQueryLogConfigResponse] -> ShowS
show :: DisassociateResolverQueryLogConfigResponse -> String
$cshow :: DisassociateResolverQueryLogConfigResponse -> String
showsPrec :: Int -> DisassociateResolverQueryLogConfigResponse -> ShowS
$cshowsPrec :: Int -> DisassociateResolverQueryLogConfigResponse -> ShowS
Prelude.Show, (forall x.
 DisassociateResolverQueryLogConfigResponse
 -> Rep DisassociateResolverQueryLogConfigResponse x)
-> (forall x.
    Rep DisassociateResolverQueryLogConfigResponse x
    -> DisassociateResolverQueryLogConfigResponse)
-> Generic DisassociateResolverQueryLogConfigResponse
forall x.
Rep DisassociateResolverQueryLogConfigResponse x
-> DisassociateResolverQueryLogConfigResponse
forall x.
DisassociateResolverQueryLogConfigResponse
-> Rep DisassociateResolverQueryLogConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateResolverQueryLogConfigResponse x
-> DisassociateResolverQueryLogConfigResponse
$cfrom :: forall x.
DisassociateResolverQueryLogConfigResponse
-> Rep DisassociateResolverQueryLogConfigResponse x
Prelude.Generic)

-- |
-- Create a value of 'DisassociateResolverQueryLogConfigResponse' 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:
--
-- 'resolverQueryLogConfigAssociation', 'disassociateResolverQueryLogConfigResponse_resolverQueryLogConfigAssociation' - A complex type that contains settings for the association that you
-- deleted between an Amazon VPC and a query logging configuration.
--
-- 'httpStatus', 'disassociateResolverQueryLogConfigResponse_httpStatus' - The response's http status code.
newDisassociateResolverQueryLogConfigResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DisassociateResolverQueryLogConfigResponse
newDisassociateResolverQueryLogConfigResponse :: Int -> DisassociateResolverQueryLogConfigResponse
newDisassociateResolverQueryLogConfigResponse
  Int
pHttpStatus_ =
    DisassociateResolverQueryLogConfigResponse' :: Maybe ResolverQueryLogConfigAssociation
-> Int -> DisassociateResolverQueryLogConfigResponse
DisassociateResolverQueryLogConfigResponse'
      { $sel:resolverQueryLogConfigAssociation:DisassociateResolverQueryLogConfigResponse' :: Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation =
          Maybe ResolverQueryLogConfigAssociation
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DisassociateResolverQueryLogConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A complex type that contains settings for the association that you
-- deleted between an Amazon VPC and a query logging configuration.
disassociateResolverQueryLogConfigResponse_resolverQueryLogConfigAssociation :: Lens.Lens' DisassociateResolverQueryLogConfigResponse (Prelude.Maybe ResolverQueryLogConfigAssociation)
disassociateResolverQueryLogConfigResponse_resolverQueryLogConfigAssociation :: (Maybe ResolverQueryLogConfigAssociation
 -> f (Maybe ResolverQueryLogConfigAssociation))
-> DisassociateResolverQueryLogConfigResponse
-> f DisassociateResolverQueryLogConfigResponse
disassociateResolverQueryLogConfigResponse_resolverQueryLogConfigAssociation = (DisassociateResolverQueryLogConfigResponse
 -> Maybe ResolverQueryLogConfigAssociation)
-> (DisassociateResolverQueryLogConfigResponse
    -> Maybe ResolverQueryLogConfigAssociation
    -> DisassociateResolverQueryLogConfigResponse)
-> Lens
     DisassociateResolverQueryLogConfigResponse
     DisassociateResolverQueryLogConfigResponse
     (Maybe ResolverQueryLogConfigAssociation)
     (Maybe ResolverQueryLogConfigAssociation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociateResolverQueryLogConfigResponse' {Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation :: Maybe ResolverQueryLogConfigAssociation
$sel:resolverQueryLogConfigAssociation:DisassociateResolverQueryLogConfigResponse' :: DisassociateResolverQueryLogConfigResponse
-> Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation} -> Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation) (\s :: DisassociateResolverQueryLogConfigResponse
s@DisassociateResolverQueryLogConfigResponse' {} Maybe ResolverQueryLogConfigAssociation
a -> DisassociateResolverQueryLogConfigResponse
s {$sel:resolverQueryLogConfigAssociation:DisassociateResolverQueryLogConfigResponse' :: Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation = Maybe ResolverQueryLogConfigAssociation
a} :: DisassociateResolverQueryLogConfigResponse)

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

instance
  Prelude.NFData
    DisassociateResolverQueryLogConfigResponse