{-# 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.GetResolverQueryLogConfigAssociation
-- 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)
--
-- Gets information about a specified association between a Resolver query
-- logging configuration and an Amazon VPC. When you associate a VPC with a
-- query logging configuration, Resolver logs DNS queries that originate in
-- that VPC.
module Amazonka.Route53Resolver.GetResolverQueryLogConfigAssociation
  ( -- * Creating a Request
    GetResolverQueryLogConfigAssociation (..),
    newGetResolverQueryLogConfigAssociation,

    -- * Request Lenses
    getResolverQueryLogConfigAssociation_resolverQueryLogConfigAssociationId,

    -- * Destructuring the Response
    GetResolverQueryLogConfigAssociationResponse (..),
    newGetResolverQueryLogConfigAssociationResponse,

    -- * Response Lenses
    getResolverQueryLogConfigAssociationResponse_resolverQueryLogConfigAssociation,
    getResolverQueryLogConfigAssociationResponse_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:/ 'newGetResolverQueryLogConfigAssociation' smart constructor.
data GetResolverQueryLogConfigAssociation = GetResolverQueryLogConfigAssociation'
  { -- | The ID of the Resolver query logging configuration association that you
    -- want to get information about.
    GetResolverQueryLogConfigAssociation -> Text
resolverQueryLogConfigAssociationId :: Prelude.Text
  }
  deriving (GetResolverQueryLogConfigAssociation
-> GetResolverQueryLogConfigAssociation -> Bool
(GetResolverQueryLogConfigAssociation
 -> GetResolverQueryLogConfigAssociation -> Bool)
-> (GetResolverQueryLogConfigAssociation
    -> GetResolverQueryLogConfigAssociation -> Bool)
-> Eq GetResolverQueryLogConfigAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetResolverQueryLogConfigAssociation
-> GetResolverQueryLogConfigAssociation -> Bool
$c/= :: GetResolverQueryLogConfigAssociation
-> GetResolverQueryLogConfigAssociation -> Bool
== :: GetResolverQueryLogConfigAssociation
-> GetResolverQueryLogConfigAssociation -> Bool
$c== :: GetResolverQueryLogConfigAssociation
-> GetResolverQueryLogConfigAssociation -> Bool
Prelude.Eq, ReadPrec [GetResolverQueryLogConfigAssociation]
ReadPrec GetResolverQueryLogConfigAssociation
Int -> ReadS GetResolverQueryLogConfigAssociation
ReadS [GetResolverQueryLogConfigAssociation]
(Int -> ReadS GetResolverQueryLogConfigAssociation)
-> ReadS [GetResolverQueryLogConfigAssociation]
-> ReadPrec GetResolverQueryLogConfigAssociation
-> ReadPrec [GetResolverQueryLogConfigAssociation]
-> Read GetResolverQueryLogConfigAssociation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetResolverQueryLogConfigAssociation]
$creadListPrec :: ReadPrec [GetResolverQueryLogConfigAssociation]
readPrec :: ReadPrec GetResolverQueryLogConfigAssociation
$creadPrec :: ReadPrec GetResolverQueryLogConfigAssociation
readList :: ReadS [GetResolverQueryLogConfigAssociation]
$creadList :: ReadS [GetResolverQueryLogConfigAssociation]
readsPrec :: Int -> ReadS GetResolverQueryLogConfigAssociation
$creadsPrec :: Int -> ReadS GetResolverQueryLogConfigAssociation
Prelude.Read, Int -> GetResolverQueryLogConfigAssociation -> ShowS
[GetResolverQueryLogConfigAssociation] -> ShowS
GetResolverQueryLogConfigAssociation -> String
(Int -> GetResolverQueryLogConfigAssociation -> ShowS)
-> (GetResolverQueryLogConfigAssociation -> String)
-> ([GetResolverQueryLogConfigAssociation] -> ShowS)
-> Show GetResolverQueryLogConfigAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetResolverQueryLogConfigAssociation] -> ShowS
$cshowList :: [GetResolverQueryLogConfigAssociation] -> ShowS
show :: GetResolverQueryLogConfigAssociation -> String
$cshow :: GetResolverQueryLogConfigAssociation -> String
showsPrec :: Int -> GetResolverQueryLogConfigAssociation -> ShowS
$cshowsPrec :: Int -> GetResolverQueryLogConfigAssociation -> ShowS
Prelude.Show, (forall x.
 GetResolverQueryLogConfigAssociation
 -> Rep GetResolverQueryLogConfigAssociation x)
-> (forall x.
    Rep GetResolverQueryLogConfigAssociation x
    -> GetResolverQueryLogConfigAssociation)
-> Generic GetResolverQueryLogConfigAssociation
forall x.
Rep GetResolverQueryLogConfigAssociation x
-> GetResolverQueryLogConfigAssociation
forall x.
GetResolverQueryLogConfigAssociation
-> Rep GetResolverQueryLogConfigAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetResolverQueryLogConfigAssociation x
-> GetResolverQueryLogConfigAssociation
$cfrom :: forall x.
GetResolverQueryLogConfigAssociation
-> Rep GetResolverQueryLogConfigAssociation x
Prelude.Generic)

-- |
-- Create a value of 'GetResolverQueryLogConfigAssociation' 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:
--
-- 'resolverQueryLogConfigAssociationId', 'getResolverQueryLogConfigAssociation_resolverQueryLogConfigAssociationId' - The ID of the Resolver query logging configuration association that you
-- want to get information about.
newGetResolverQueryLogConfigAssociation ::
  -- | 'resolverQueryLogConfigAssociationId'
  Prelude.Text ->
  GetResolverQueryLogConfigAssociation
newGetResolverQueryLogConfigAssociation :: Text -> GetResolverQueryLogConfigAssociation
newGetResolverQueryLogConfigAssociation
  Text
pResolverQueryLogConfigAssociationId_ =
    GetResolverQueryLogConfigAssociation' :: Text -> GetResolverQueryLogConfigAssociation
GetResolverQueryLogConfigAssociation'
      { $sel:resolverQueryLogConfigAssociationId:GetResolverQueryLogConfigAssociation' :: Text
resolverQueryLogConfigAssociationId =
          Text
pResolverQueryLogConfigAssociationId_
      }

-- | The ID of the Resolver query logging configuration association that you
-- want to get information about.
getResolverQueryLogConfigAssociation_resolverQueryLogConfigAssociationId :: Lens.Lens' GetResolverQueryLogConfigAssociation Prelude.Text
getResolverQueryLogConfigAssociation_resolverQueryLogConfigAssociationId :: (Text -> f Text)
-> GetResolverQueryLogConfigAssociation
-> f GetResolverQueryLogConfigAssociation
getResolverQueryLogConfigAssociation_resolverQueryLogConfigAssociationId = (GetResolverQueryLogConfigAssociation -> Text)
-> (GetResolverQueryLogConfigAssociation
    -> Text -> GetResolverQueryLogConfigAssociation)
-> Lens
     GetResolverQueryLogConfigAssociation
     GetResolverQueryLogConfigAssociation
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResolverQueryLogConfigAssociation' {Text
resolverQueryLogConfigAssociationId :: Text
$sel:resolverQueryLogConfigAssociationId:GetResolverQueryLogConfigAssociation' :: GetResolverQueryLogConfigAssociation -> Text
resolverQueryLogConfigAssociationId} -> Text
resolverQueryLogConfigAssociationId) (\s :: GetResolverQueryLogConfigAssociation
s@GetResolverQueryLogConfigAssociation' {} Text
a -> GetResolverQueryLogConfigAssociation
s {$sel:resolverQueryLogConfigAssociationId:GetResolverQueryLogConfigAssociation' :: Text
resolverQueryLogConfigAssociationId = Text
a} :: GetResolverQueryLogConfigAssociation)

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

instance
  Prelude.NFData
    GetResolverQueryLogConfigAssociation

instance
  Core.ToHeaders
    GetResolverQueryLogConfigAssociation
  where
  toHeaders :: GetResolverQueryLogConfigAssociation -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> GetResolverQueryLogConfigAssociation -> 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.GetResolverQueryLogConfigAssociation" ::
                          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
    GetResolverQueryLogConfigAssociation
  where
  toJSON :: GetResolverQueryLogConfigAssociation -> Value
toJSON GetResolverQueryLogConfigAssociation' {Text
resolverQueryLogConfigAssociationId :: Text
$sel:resolverQueryLogConfigAssociationId:GetResolverQueryLogConfigAssociation' :: GetResolverQueryLogConfigAssociation -> 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
"ResolverQueryLogConfigAssociationId"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
resolverQueryLogConfigAssociationId
              )
          ]
      )

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

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

-- | /See:/ 'newGetResolverQueryLogConfigAssociationResponse' smart constructor.
data GetResolverQueryLogConfigAssociationResponse = GetResolverQueryLogConfigAssociationResponse'
  { -- | Information about the Resolver query logging configuration association
    -- that you specified in a @GetQueryLogConfigAssociation@ request.
    GetResolverQueryLogConfigAssociationResponse
-> Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation :: Prelude.Maybe ResolverQueryLogConfigAssociation,
    -- | The response's http status code.
    GetResolverQueryLogConfigAssociationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetResolverQueryLogConfigAssociationResponse
-> GetResolverQueryLogConfigAssociationResponse -> Bool
(GetResolverQueryLogConfigAssociationResponse
 -> GetResolverQueryLogConfigAssociationResponse -> Bool)
-> (GetResolverQueryLogConfigAssociationResponse
    -> GetResolverQueryLogConfigAssociationResponse -> Bool)
-> Eq GetResolverQueryLogConfigAssociationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetResolverQueryLogConfigAssociationResponse
-> GetResolverQueryLogConfigAssociationResponse -> Bool
$c/= :: GetResolverQueryLogConfigAssociationResponse
-> GetResolverQueryLogConfigAssociationResponse -> Bool
== :: GetResolverQueryLogConfigAssociationResponse
-> GetResolverQueryLogConfigAssociationResponse -> Bool
$c== :: GetResolverQueryLogConfigAssociationResponse
-> GetResolverQueryLogConfigAssociationResponse -> Bool
Prelude.Eq, ReadPrec [GetResolverQueryLogConfigAssociationResponse]
ReadPrec GetResolverQueryLogConfigAssociationResponse
Int -> ReadS GetResolverQueryLogConfigAssociationResponse
ReadS [GetResolverQueryLogConfigAssociationResponse]
(Int -> ReadS GetResolverQueryLogConfigAssociationResponse)
-> ReadS [GetResolverQueryLogConfigAssociationResponse]
-> ReadPrec GetResolverQueryLogConfigAssociationResponse
-> ReadPrec [GetResolverQueryLogConfigAssociationResponse]
-> Read GetResolverQueryLogConfigAssociationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetResolverQueryLogConfigAssociationResponse]
$creadListPrec :: ReadPrec [GetResolverQueryLogConfigAssociationResponse]
readPrec :: ReadPrec GetResolverQueryLogConfigAssociationResponse
$creadPrec :: ReadPrec GetResolverQueryLogConfigAssociationResponse
readList :: ReadS [GetResolverQueryLogConfigAssociationResponse]
$creadList :: ReadS [GetResolverQueryLogConfigAssociationResponse]
readsPrec :: Int -> ReadS GetResolverQueryLogConfigAssociationResponse
$creadsPrec :: Int -> ReadS GetResolverQueryLogConfigAssociationResponse
Prelude.Read, Int -> GetResolverQueryLogConfigAssociationResponse -> ShowS
[GetResolverQueryLogConfigAssociationResponse] -> ShowS
GetResolverQueryLogConfigAssociationResponse -> String
(Int -> GetResolverQueryLogConfigAssociationResponse -> ShowS)
-> (GetResolverQueryLogConfigAssociationResponse -> String)
-> ([GetResolverQueryLogConfigAssociationResponse] -> ShowS)
-> Show GetResolverQueryLogConfigAssociationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetResolverQueryLogConfigAssociationResponse] -> ShowS
$cshowList :: [GetResolverQueryLogConfigAssociationResponse] -> ShowS
show :: GetResolverQueryLogConfigAssociationResponse -> String
$cshow :: GetResolverQueryLogConfigAssociationResponse -> String
showsPrec :: Int -> GetResolverQueryLogConfigAssociationResponse -> ShowS
$cshowsPrec :: Int -> GetResolverQueryLogConfigAssociationResponse -> ShowS
Prelude.Show, (forall x.
 GetResolverQueryLogConfigAssociationResponse
 -> Rep GetResolverQueryLogConfigAssociationResponse x)
-> (forall x.
    Rep GetResolverQueryLogConfigAssociationResponse x
    -> GetResolverQueryLogConfigAssociationResponse)
-> Generic GetResolverQueryLogConfigAssociationResponse
forall x.
Rep GetResolverQueryLogConfigAssociationResponse x
-> GetResolverQueryLogConfigAssociationResponse
forall x.
GetResolverQueryLogConfigAssociationResponse
-> Rep GetResolverQueryLogConfigAssociationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetResolverQueryLogConfigAssociationResponse x
-> GetResolverQueryLogConfigAssociationResponse
$cfrom :: forall x.
GetResolverQueryLogConfigAssociationResponse
-> Rep GetResolverQueryLogConfigAssociationResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetResolverQueryLogConfigAssociationResponse' 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', 'getResolverQueryLogConfigAssociationResponse_resolverQueryLogConfigAssociation' - Information about the Resolver query logging configuration association
-- that you specified in a @GetQueryLogConfigAssociation@ request.
--
-- 'httpStatus', 'getResolverQueryLogConfigAssociationResponse_httpStatus' - The response's http status code.
newGetResolverQueryLogConfigAssociationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetResolverQueryLogConfigAssociationResponse
newGetResolverQueryLogConfigAssociationResponse :: Int -> GetResolverQueryLogConfigAssociationResponse
newGetResolverQueryLogConfigAssociationResponse
  Int
pHttpStatus_ =
    GetResolverQueryLogConfigAssociationResponse' :: Maybe ResolverQueryLogConfigAssociation
-> Int -> GetResolverQueryLogConfigAssociationResponse
GetResolverQueryLogConfigAssociationResponse'
      { $sel:resolverQueryLogConfigAssociation:GetResolverQueryLogConfigAssociationResponse' :: Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation =
          Maybe ResolverQueryLogConfigAssociation
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetResolverQueryLogConfigAssociationResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | Information about the Resolver query logging configuration association
-- that you specified in a @GetQueryLogConfigAssociation@ request.
getResolverQueryLogConfigAssociationResponse_resolverQueryLogConfigAssociation :: Lens.Lens' GetResolverQueryLogConfigAssociationResponse (Prelude.Maybe ResolverQueryLogConfigAssociation)
getResolverQueryLogConfigAssociationResponse_resolverQueryLogConfigAssociation :: (Maybe ResolverQueryLogConfigAssociation
 -> f (Maybe ResolverQueryLogConfigAssociation))
-> GetResolverQueryLogConfigAssociationResponse
-> f GetResolverQueryLogConfigAssociationResponse
getResolverQueryLogConfigAssociationResponse_resolverQueryLogConfigAssociation = (GetResolverQueryLogConfigAssociationResponse
 -> Maybe ResolverQueryLogConfigAssociation)
-> (GetResolverQueryLogConfigAssociationResponse
    -> Maybe ResolverQueryLogConfigAssociation
    -> GetResolverQueryLogConfigAssociationResponse)
-> Lens
     GetResolverQueryLogConfigAssociationResponse
     GetResolverQueryLogConfigAssociationResponse
     (Maybe ResolverQueryLogConfigAssociation)
     (Maybe ResolverQueryLogConfigAssociation)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetResolverQueryLogConfigAssociationResponse' {Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation :: Maybe ResolverQueryLogConfigAssociation
$sel:resolverQueryLogConfigAssociation:GetResolverQueryLogConfigAssociationResponse' :: GetResolverQueryLogConfigAssociationResponse
-> Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation} -> Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation) (\s :: GetResolverQueryLogConfigAssociationResponse
s@GetResolverQueryLogConfigAssociationResponse' {} Maybe ResolverQueryLogConfigAssociation
a -> GetResolverQueryLogConfigAssociationResponse
s {$sel:resolverQueryLogConfigAssociation:GetResolverQueryLogConfigAssociationResponse' :: Maybe ResolverQueryLogConfigAssociation
resolverQueryLogConfigAssociation = Maybe ResolverQueryLogConfigAssociation
a} :: GetResolverQueryLogConfigAssociationResponse)

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

instance
  Prelude.NFData
    GetResolverQueryLogConfigAssociationResponse