{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# 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.Types.ResolverQueryLogConfigAssociation
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Route53Resolver.Types.ResolverQueryLogConfigAssociation where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import Amazonka.Route53Resolver.Types.ResolverQueryLogConfigAssociationError
import Amazonka.Route53Resolver.Types.ResolverQueryLogConfigAssociationStatus

-- | In the response to an
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_AssociateResolverQueryLogConfig.html AssociateResolverQueryLogConfig>,
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_DisassociateResolverQueryLogConfig.html DisassociateResolverQueryLogConfig>,
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_GetResolverQueryLogConfigAssociation.html GetResolverQueryLogConfigAssociation>,
-- or
-- <https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_ListResolverQueryLogConfigAssociations.html ListResolverQueryLogConfigAssociations>,
-- request, a complex type that contains settings for a specified
-- association between an Amazon VPC and a query logging configuration.
--
-- /See:/ 'newResolverQueryLogConfigAssociation' smart constructor.
data ResolverQueryLogConfigAssociation = ResolverQueryLogConfigAssociation'
  { -- | The date and time that the VPC was associated with the query logging
    -- configuration, in Unix time format and Coordinated Universal Time (UTC).
    ResolverQueryLogConfigAssociation -> Maybe Text
creationTime :: Prelude.Maybe Prelude.Text,
    -- | If the value of @Status@ is @FAILED@, the value of @Error@ indicates the
    -- cause:
    --
    -- -   @DESTINATION_NOT_FOUND@: The specified destination (for example, an
    --     Amazon S3 bucket) was deleted.
    --
    -- -   @ACCESS_DENIED@: Permissions don\'t allow sending logs to the
    --     destination.
    --
    -- If the value of @Status@ is a value other than @FAILED@, @Error@ is
    -- null.
    ResolverQueryLogConfigAssociation
-> Maybe ResolverQueryLogConfigAssociationError
error :: Prelude.Maybe ResolverQueryLogConfigAssociationError,
    -- | Contains additional information about the error. If the value or @Error@
    -- is null, the value of @ErrorMessage@ also is null.
    ResolverQueryLogConfigAssociation -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
    -- | The ID of the query logging association.
    ResolverQueryLogConfigAssociation -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The ID of the query logging configuration that a VPC is associated with.
    ResolverQueryLogConfigAssociation -> Maybe Text
resolverQueryLogConfigId :: Prelude.Maybe Prelude.Text,
    -- | The ID of the Amazon VPC that is associated with the query logging
    -- configuration.
    ResolverQueryLogConfigAssociation -> Maybe Text
resourceId :: Prelude.Maybe Prelude.Text,
    -- | The status of the specified query logging association. Valid values
    -- include the following:
    --
    -- -   @CREATING@: Resolver is creating an association between an Amazon
    --     VPC and a query logging configuration.
    --
    -- -   @CREATED@: The association between an Amazon VPC and a query logging
    --     configuration was successfully created. Resolver is logging queries
    --     that originate in the specified VPC.
    --
    -- -   @DELETING@: Resolver is deleting this query logging association.
    --
    -- -   @FAILED@: Resolver either couldn\'t create or couldn\'t delete the
    --     query logging association.
    ResolverQueryLogConfigAssociation
-> Maybe ResolverQueryLogConfigAssociationStatus
status :: Prelude.Maybe ResolverQueryLogConfigAssociationStatus
  }
  deriving (ResolverQueryLogConfigAssociation
-> ResolverQueryLogConfigAssociation -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ResolverQueryLogConfigAssociation
-> ResolverQueryLogConfigAssociation -> Bool
$c/= :: ResolverQueryLogConfigAssociation
-> ResolverQueryLogConfigAssociation -> Bool
== :: ResolverQueryLogConfigAssociation
-> ResolverQueryLogConfigAssociation -> Bool
$c== :: ResolverQueryLogConfigAssociation
-> ResolverQueryLogConfigAssociation -> Bool
Prelude.Eq, ReadPrec [ResolverQueryLogConfigAssociation]
ReadPrec ResolverQueryLogConfigAssociation
Int -> ReadS ResolverQueryLogConfigAssociation
ReadS [ResolverQueryLogConfigAssociation]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ResolverQueryLogConfigAssociation]
$creadListPrec :: ReadPrec [ResolverQueryLogConfigAssociation]
readPrec :: ReadPrec ResolverQueryLogConfigAssociation
$creadPrec :: ReadPrec ResolverQueryLogConfigAssociation
readList :: ReadS [ResolverQueryLogConfigAssociation]
$creadList :: ReadS [ResolverQueryLogConfigAssociation]
readsPrec :: Int -> ReadS ResolverQueryLogConfigAssociation
$creadsPrec :: Int -> ReadS ResolverQueryLogConfigAssociation
Prelude.Read, Int -> ResolverQueryLogConfigAssociation -> ShowS
[ResolverQueryLogConfigAssociation] -> ShowS
ResolverQueryLogConfigAssociation -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ResolverQueryLogConfigAssociation] -> ShowS
$cshowList :: [ResolverQueryLogConfigAssociation] -> ShowS
show :: ResolverQueryLogConfigAssociation -> String
$cshow :: ResolverQueryLogConfigAssociation -> String
showsPrec :: Int -> ResolverQueryLogConfigAssociation -> ShowS
$cshowsPrec :: Int -> ResolverQueryLogConfigAssociation -> ShowS
Prelude.Show, forall x.
Rep ResolverQueryLogConfigAssociation x
-> ResolverQueryLogConfigAssociation
forall x.
ResolverQueryLogConfigAssociation
-> Rep ResolverQueryLogConfigAssociation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ResolverQueryLogConfigAssociation x
-> ResolverQueryLogConfigAssociation
$cfrom :: forall x.
ResolverQueryLogConfigAssociation
-> Rep ResolverQueryLogConfigAssociation x
Prelude.Generic)

-- |
-- Create a value of 'ResolverQueryLogConfigAssociation' 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:
--
-- 'creationTime', 'resolverQueryLogConfigAssociation_creationTime' - The date and time that the VPC was associated with the query logging
-- configuration, in Unix time format and Coordinated Universal Time (UTC).
--
-- 'error', 'resolverQueryLogConfigAssociation_error' - If the value of @Status@ is @FAILED@, the value of @Error@ indicates the
-- cause:
--
-- -   @DESTINATION_NOT_FOUND@: The specified destination (for example, an
--     Amazon S3 bucket) was deleted.
--
-- -   @ACCESS_DENIED@: Permissions don\'t allow sending logs to the
--     destination.
--
-- If the value of @Status@ is a value other than @FAILED@, @Error@ is
-- null.
--
-- 'errorMessage', 'resolverQueryLogConfigAssociation_errorMessage' - Contains additional information about the error. If the value or @Error@
-- is null, the value of @ErrorMessage@ also is null.
--
-- 'id', 'resolverQueryLogConfigAssociation_id' - The ID of the query logging association.
--
-- 'resolverQueryLogConfigId', 'resolverQueryLogConfigAssociation_resolverQueryLogConfigId' - The ID of the query logging configuration that a VPC is associated with.
--
-- 'resourceId', 'resolverQueryLogConfigAssociation_resourceId' - The ID of the Amazon VPC that is associated with the query logging
-- configuration.
--
-- 'status', 'resolverQueryLogConfigAssociation_status' - The status of the specified query logging association. Valid values
-- include the following:
--
-- -   @CREATING@: Resolver is creating an association between an Amazon
--     VPC and a query logging configuration.
--
-- -   @CREATED@: The association between an Amazon VPC and a query logging
--     configuration was successfully created. Resolver is logging queries
--     that originate in the specified VPC.
--
-- -   @DELETING@: Resolver is deleting this query logging association.
--
-- -   @FAILED@: Resolver either couldn\'t create or couldn\'t delete the
--     query logging association.
newResolverQueryLogConfigAssociation ::
  ResolverQueryLogConfigAssociation
newResolverQueryLogConfigAssociation :: ResolverQueryLogConfigAssociation
newResolverQueryLogConfigAssociation =
  ResolverQueryLogConfigAssociation'
    { $sel:creationTime:ResolverQueryLogConfigAssociation' :: Maybe Text
creationTime =
        forall a. Maybe a
Prelude.Nothing,
      $sel:error:ResolverQueryLogConfigAssociation' :: Maybe ResolverQueryLogConfigAssociationError
error = forall a. Maybe a
Prelude.Nothing,
      $sel:errorMessage:ResolverQueryLogConfigAssociation' :: Maybe Text
errorMessage = forall a. Maybe a
Prelude.Nothing,
      $sel:id:ResolverQueryLogConfigAssociation' :: Maybe Text
id = forall a. Maybe a
Prelude.Nothing,
      $sel:resolverQueryLogConfigId:ResolverQueryLogConfigAssociation' :: Maybe Text
resolverQueryLogConfigId =
        forall a. Maybe a
Prelude.Nothing,
      $sel:resourceId:ResolverQueryLogConfigAssociation' :: Maybe Text
resourceId = forall a. Maybe a
Prelude.Nothing,
      $sel:status:ResolverQueryLogConfigAssociation' :: Maybe ResolverQueryLogConfigAssociationStatus
status = forall a. Maybe a
Prelude.Nothing
    }

-- | The date and time that the VPC was associated with the query logging
-- configuration, in Unix time format and Coordinated Universal Time (UTC).
resolverQueryLogConfigAssociation_creationTime :: Lens.Lens' ResolverQueryLogConfigAssociation (Prelude.Maybe Prelude.Text)
resolverQueryLogConfigAssociation_creationTime :: Lens' ResolverQueryLogConfigAssociation (Maybe Text)
resolverQueryLogConfigAssociation_creationTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResolverQueryLogConfigAssociation' {Maybe Text
creationTime :: Maybe Text
$sel:creationTime:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
creationTime} -> Maybe Text
creationTime) (\s :: ResolverQueryLogConfigAssociation
s@ResolverQueryLogConfigAssociation' {} Maybe Text
a -> ResolverQueryLogConfigAssociation
s {$sel:creationTime:ResolverQueryLogConfigAssociation' :: Maybe Text
creationTime = Maybe Text
a} :: ResolverQueryLogConfigAssociation)

-- | If the value of @Status@ is @FAILED@, the value of @Error@ indicates the
-- cause:
--
-- -   @DESTINATION_NOT_FOUND@: The specified destination (for example, an
--     Amazon S3 bucket) was deleted.
--
-- -   @ACCESS_DENIED@: Permissions don\'t allow sending logs to the
--     destination.
--
-- If the value of @Status@ is a value other than @FAILED@, @Error@ is
-- null.
resolverQueryLogConfigAssociation_error :: Lens.Lens' ResolverQueryLogConfigAssociation (Prelude.Maybe ResolverQueryLogConfigAssociationError)
resolverQueryLogConfigAssociation_error :: Lens'
  ResolverQueryLogConfigAssociation
  (Maybe ResolverQueryLogConfigAssociationError)
resolverQueryLogConfigAssociation_error = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResolverQueryLogConfigAssociation' {Maybe ResolverQueryLogConfigAssociationError
error :: Maybe ResolverQueryLogConfigAssociationError
$sel:error:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation
-> Maybe ResolverQueryLogConfigAssociationError
error} -> Maybe ResolverQueryLogConfigAssociationError
error) (\s :: ResolverQueryLogConfigAssociation
s@ResolverQueryLogConfigAssociation' {} Maybe ResolverQueryLogConfigAssociationError
a -> ResolverQueryLogConfigAssociation
s {$sel:error:ResolverQueryLogConfigAssociation' :: Maybe ResolverQueryLogConfigAssociationError
error = Maybe ResolverQueryLogConfigAssociationError
a} :: ResolverQueryLogConfigAssociation)

-- | Contains additional information about the error. If the value or @Error@
-- is null, the value of @ErrorMessage@ also is null.
resolverQueryLogConfigAssociation_errorMessage :: Lens.Lens' ResolverQueryLogConfigAssociation (Prelude.Maybe Prelude.Text)
resolverQueryLogConfigAssociation_errorMessage :: Lens' ResolverQueryLogConfigAssociation (Maybe Text)
resolverQueryLogConfigAssociation_errorMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResolverQueryLogConfigAssociation' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: ResolverQueryLogConfigAssociation
s@ResolverQueryLogConfigAssociation' {} Maybe Text
a -> ResolverQueryLogConfigAssociation
s {$sel:errorMessage:ResolverQueryLogConfigAssociation' :: Maybe Text
errorMessage = Maybe Text
a} :: ResolverQueryLogConfigAssociation)

-- | The ID of the query logging association.
resolverQueryLogConfigAssociation_id :: Lens.Lens' ResolverQueryLogConfigAssociation (Prelude.Maybe Prelude.Text)
resolverQueryLogConfigAssociation_id :: Lens' ResolverQueryLogConfigAssociation (Maybe Text)
resolverQueryLogConfigAssociation_id = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResolverQueryLogConfigAssociation' {Maybe Text
id :: Maybe Text
$sel:id:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
id} -> Maybe Text
id) (\s :: ResolverQueryLogConfigAssociation
s@ResolverQueryLogConfigAssociation' {} Maybe Text
a -> ResolverQueryLogConfigAssociation
s {$sel:id:ResolverQueryLogConfigAssociation' :: Maybe Text
id = Maybe Text
a} :: ResolverQueryLogConfigAssociation)

-- | The ID of the query logging configuration that a VPC is associated with.
resolverQueryLogConfigAssociation_resolverQueryLogConfigId :: Lens.Lens' ResolverQueryLogConfigAssociation (Prelude.Maybe Prelude.Text)
resolverQueryLogConfigAssociation_resolverQueryLogConfigId :: Lens' ResolverQueryLogConfigAssociation (Maybe Text)
resolverQueryLogConfigAssociation_resolverQueryLogConfigId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResolverQueryLogConfigAssociation' {Maybe Text
resolverQueryLogConfigId :: Maybe Text
$sel:resolverQueryLogConfigId:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
resolverQueryLogConfigId} -> Maybe Text
resolverQueryLogConfigId) (\s :: ResolverQueryLogConfigAssociation
s@ResolverQueryLogConfigAssociation' {} Maybe Text
a -> ResolverQueryLogConfigAssociation
s {$sel:resolverQueryLogConfigId:ResolverQueryLogConfigAssociation' :: Maybe Text
resolverQueryLogConfigId = Maybe Text
a} :: ResolverQueryLogConfigAssociation)

-- | The ID of the Amazon VPC that is associated with the query logging
-- configuration.
resolverQueryLogConfigAssociation_resourceId :: Lens.Lens' ResolverQueryLogConfigAssociation (Prelude.Maybe Prelude.Text)
resolverQueryLogConfigAssociation_resourceId :: Lens' ResolverQueryLogConfigAssociation (Maybe Text)
resolverQueryLogConfigAssociation_resourceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResolverQueryLogConfigAssociation' {Maybe Text
resourceId :: Maybe Text
$sel:resourceId:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
resourceId} -> Maybe Text
resourceId) (\s :: ResolverQueryLogConfigAssociation
s@ResolverQueryLogConfigAssociation' {} Maybe Text
a -> ResolverQueryLogConfigAssociation
s {$sel:resourceId:ResolverQueryLogConfigAssociation' :: Maybe Text
resourceId = Maybe Text
a} :: ResolverQueryLogConfigAssociation)

-- | The status of the specified query logging association. Valid values
-- include the following:
--
-- -   @CREATING@: Resolver is creating an association between an Amazon
--     VPC and a query logging configuration.
--
-- -   @CREATED@: The association between an Amazon VPC and a query logging
--     configuration was successfully created. Resolver is logging queries
--     that originate in the specified VPC.
--
-- -   @DELETING@: Resolver is deleting this query logging association.
--
-- -   @FAILED@: Resolver either couldn\'t create or couldn\'t delete the
--     query logging association.
resolverQueryLogConfigAssociation_status :: Lens.Lens' ResolverQueryLogConfigAssociation (Prelude.Maybe ResolverQueryLogConfigAssociationStatus)
resolverQueryLogConfigAssociation_status :: Lens'
  ResolverQueryLogConfigAssociation
  (Maybe ResolverQueryLogConfigAssociationStatus)
resolverQueryLogConfigAssociation_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ResolverQueryLogConfigAssociation' {Maybe ResolverQueryLogConfigAssociationStatus
status :: Maybe ResolverQueryLogConfigAssociationStatus
$sel:status:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation
-> Maybe ResolverQueryLogConfigAssociationStatus
status} -> Maybe ResolverQueryLogConfigAssociationStatus
status) (\s :: ResolverQueryLogConfigAssociation
s@ResolverQueryLogConfigAssociation' {} Maybe ResolverQueryLogConfigAssociationStatus
a -> ResolverQueryLogConfigAssociation
s {$sel:status:ResolverQueryLogConfigAssociation' :: Maybe ResolverQueryLogConfigAssociationStatus
status = Maybe ResolverQueryLogConfigAssociationStatus
a} :: ResolverQueryLogConfigAssociation)

instance
  Data.FromJSON
    ResolverQueryLogConfigAssociation
  where
  parseJSON :: Value -> Parser ResolverQueryLogConfigAssociation
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ResolverQueryLogConfigAssociation"
      ( \Object
x ->
          Maybe Text
-> Maybe ResolverQueryLogConfigAssociationError
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ResolverQueryLogConfigAssociationStatus
-> ResolverQueryLogConfigAssociation
ResolverQueryLogConfigAssociation'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreationTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Error")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ErrorMessage")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Id")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResolverQueryLogConfigId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"ResourceId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Status")
      )

instance
  Prelude.Hashable
    ResolverQueryLogConfigAssociation
  where
  hashWithSalt :: Int -> ResolverQueryLogConfigAssociation -> Int
hashWithSalt
    Int
_salt
    ResolverQueryLogConfigAssociation' {Maybe Text
Maybe ResolverQueryLogConfigAssociationError
Maybe ResolverQueryLogConfigAssociationStatus
status :: Maybe ResolverQueryLogConfigAssociationStatus
resourceId :: Maybe Text
resolverQueryLogConfigId :: Maybe Text
id :: Maybe Text
errorMessage :: Maybe Text
error :: Maybe ResolverQueryLogConfigAssociationError
creationTime :: Maybe Text
$sel:status:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation
-> Maybe ResolverQueryLogConfigAssociationStatus
$sel:resourceId:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
$sel:resolverQueryLogConfigId:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
$sel:id:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
$sel:errorMessage:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
$sel:error:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation
-> Maybe ResolverQueryLogConfigAssociationError
$sel:creationTime:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
creationTime
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResolverQueryLogConfigAssociationError
error
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
errorMessage
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
id
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resolverQueryLogConfigId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
resourceId
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ResolverQueryLogConfigAssociationStatus
status

instance
  Prelude.NFData
    ResolverQueryLogConfigAssociation
  where
  rnf :: ResolverQueryLogConfigAssociation -> ()
rnf ResolverQueryLogConfigAssociation' {Maybe Text
Maybe ResolverQueryLogConfigAssociationError
Maybe ResolverQueryLogConfigAssociationStatus
status :: Maybe ResolverQueryLogConfigAssociationStatus
resourceId :: Maybe Text
resolverQueryLogConfigId :: Maybe Text
id :: Maybe Text
errorMessage :: Maybe Text
error :: Maybe ResolverQueryLogConfigAssociationError
creationTime :: Maybe Text
$sel:status:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation
-> Maybe ResolverQueryLogConfigAssociationStatus
$sel:resourceId:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
$sel:resolverQueryLogConfigId:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
$sel:id:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
$sel:errorMessage:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
$sel:error:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation
-> Maybe ResolverQueryLogConfigAssociationError
$sel:creationTime:ResolverQueryLogConfigAssociation' :: ResolverQueryLogConfigAssociation -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
creationTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResolverQueryLogConfigAssociationError
error
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
errorMessage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
id
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resolverQueryLogConfigId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
resourceId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ResolverQueryLogConfigAssociationStatus
status