{-# 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.Glue.GetDataQualityRuleset
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Returns an existing ruleset by identifier or name.
module Amazonka.Glue.GetDataQualityRuleset
  ( -- * Creating a Request
    GetDataQualityRuleset (..),
    newGetDataQualityRuleset,

    -- * Request Lenses
    getDataQualityRuleset_name,

    -- * Destructuring the Response
    GetDataQualityRulesetResponse (..),
    newGetDataQualityRulesetResponse,

    -- * Response Lenses
    getDataQualityRulesetResponse_createdOn,
    getDataQualityRulesetResponse_description,
    getDataQualityRulesetResponse_lastModifiedOn,
    getDataQualityRulesetResponse_name,
    getDataQualityRulesetResponse_recommendationRunId,
    getDataQualityRulesetResponse_ruleset,
    getDataQualityRulesetResponse_targetTable,
    getDataQualityRulesetResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Glue.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newGetDataQualityRuleset' smart constructor.
data GetDataQualityRuleset = GetDataQualityRuleset'
  { -- | The name of the ruleset.
    GetDataQualityRuleset -> Text
name :: Prelude.Text
  }
  deriving (GetDataQualityRuleset -> GetDataQualityRuleset -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDataQualityRuleset -> GetDataQualityRuleset -> Bool
$c/= :: GetDataQualityRuleset -> GetDataQualityRuleset -> Bool
== :: GetDataQualityRuleset -> GetDataQualityRuleset -> Bool
$c== :: GetDataQualityRuleset -> GetDataQualityRuleset -> Bool
Prelude.Eq, ReadPrec [GetDataQualityRuleset]
ReadPrec GetDataQualityRuleset
Int -> ReadS GetDataQualityRuleset
ReadS [GetDataQualityRuleset]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDataQualityRuleset]
$creadListPrec :: ReadPrec [GetDataQualityRuleset]
readPrec :: ReadPrec GetDataQualityRuleset
$creadPrec :: ReadPrec GetDataQualityRuleset
readList :: ReadS [GetDataQualityRuleset]
$creadList :: ReadS [GetDataQualityRuleset]
readsPrec :: Int -> ReadS GetDataQualityRuleset
$creadsPrec :: Int -> ReadS GetDataQualityRuleset
Prelude.Read, Int -> GetDataQualityRuleset -> ShowS
[GetDataQualityRuleset] -> ShowS
GetDataQualityRuleset -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDataQualityRuleset] -> ShowS
$cshowList :: [GetDataQualityRuleset] -> ShowS
show :: GetDataQualityRuleset -> String
$cshow :: GetDataQualityRuleset -> String
showsPrec :: Int -> GetDataQualityRuleset -> ShowS
$cshowsPrec :: Int -> GetDataQualityRuleset -> ShowS
Prelude.Show, forall x. Rep GetDataQualityRuleset x -> GetDataQualityRuleset
forall x. GetDataQualityRuleset -> Rep GetDataQualityRuleset x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetDataQualityRuleset x -> GetDataQualityRuleset
$cfrom :: forall x. GetDataQualityRuleset -> Rep GetDataQualityRuleset x
Prelude.Generic)

-- |
-- Create a value of 'GetDataQualityRuleset' 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:
--
-- 'name', 'getDataQualityRuleset_name' - The name of the ruleset.
newGetDataQualityRuleset ::
  -- | 'name'
  Prelude.Text ->
  GetDataQualityRuleset
newGetDataQualityRuleset :: Text -> GetDataQualityRuleset
newGetDataQualityRuleset Text
pName_ =
  GetDataQualityRuleset' {$sel:name:GetDataQualityRuleset' :: Text
name = Text
pName_}

-- | The name of the ruleset.
getDataQualityRuleset_name :: Lens.Lens' GetDataQualityRuleset Prelude.Text
getDataQualityRuleset_name :: Lens' GetDataQualityRuleset Text
getDataQualityRuleset_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataQualityRuleset' {Text
name :: Text
$sel:name:GetDataQualityRuleset' :: GetDataQualityRuleset -> Text
name} -> Text
name) (\s :: GetDataQualityRuleset
s@GetDataQualityRuleset' {} Text
a -> GetDataQualityRuleset
s {$sel:name:GetDataQualityRuleset' :: Text
name = Text
a} :: GetDataQualityRuleset)

instance Core.AWSRequest GetDataQualityRuleset where
  type
    AWSResponse GetDataQualityRuleset =
      GetDataQualityRulesetResponse
  request :: (Service -> Service)
-> GetDataQualityRuleset -> Request GetDataQualityRuleset
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetDataQualityRuleset
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetDataQualityRuleset)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DataQualityTargetTable
-> Int
-> GetDataQualityRulesetResponse
GetDataQualityRulesetResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreatedOn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Description")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LastModifiedOn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"RecommendationRunId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Ruleset")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TargetTable")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance Prelude.Hashable GetDataQualityRuleset where
  hashWithSalt :: Int -> GetDataQualityRuleset -> Int
hashWithSalt Int
_salt GetDataQualityRuleset' {Text
name :: Text
$sel:name:GetDataQualityRuleset' :: GetDataQualityRuleset -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
name

instance Prelude.NFData GetDataQualityRuleset where
  rnf :: GetDataQualityRuleset -> ()
rnf GetDataQualityRuleset' {Text
name :: Text
$sel:name:GetDataQualityRuleset' :: GetDataQualityRuleset -> Text
..} = forall a. NFData a => a -> ()
Prelude.rnf Text
name

instance Data.ToHeaders GetDataQualityRuleset where
  toHeaders :: GetDataQualityRuleset -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AWSGlue.GetDataQualityRuleset" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Data.ToJSON GetDataQualityRuleset where
  toJSON :: GetDataQualityRuleset -> Value
toJSON GetDataQualityRuleset' {Text
name :: Text
$sel:name:GetDataQualityRuleset' :: GetDataQualityRuleset -> Text
..} =
    [Pair] -> Value
Data.object
      ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [forall a. a -> Maybe a
Prelude.Just (Key
"Name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
name)]
      )

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

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

-- | /See:/ 'newGetDataQualityRulesetResponse' smart constructor.
data GetDataQualityRulesetResponse = GetDataQualityRulesetResponse'
  { -- | A timestamp. The time and date that this data quality ruleset was
    -- created.
    GetDataQualityRulesetResponse -> Maybe POSIX
createdOn :: Prelude.Maybe Data.POSIX,
    -- | A description of the ruleset.
    GetDataQualityRulesetResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | A timestamp. The last point in time when this data quality ruleset was
    -- modified.
    GetDataQualityRulesetResponse -> Maybe POSIX
lastModifiedOn :: Prelude.Maybe Data.POSIX,
    -- | The name of the ruleset.
    GetDataQualityRulesetResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | When a ruleset was created from a recommendation run, this run ID is
    -- generated to link the two together.
    GetDataQualityRulesetResponse -> Maybe Text
recommendationRunId :: Prelude.Maybe Prelude.Text,
    -- | A Data Quality Definition Language (DQDL) ruleset. For more information,
    -- see the Glue developer guide.
    GetDataQualityRulesetResponse -> Maybe Text
ruleset :: Prelude.Maybe Prelude.Text,
    -- | The name and database name of the target table.
    GetDataQualityRulesetResponse -> Maybe DataQualityTargetTable
targetTable :: Prelude.Maybe DataQualityTargetTable,
    -- | The response's http status code.
    GetDataQualityRulesetResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetDataQualityRulesetResponse
-> GetDataQualityRulesetResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDataQualityRulesetResponse
-> GetDataQualityRulesetResponse -> Bool
$c/= :: GetDataQualityRulesetResponse
-> GetDataQualityRulesetResponse -> Bool
== :: GetDataQualityRulesetResponse
-> GetDataQualityRulesetResponse -> Bool
$c== :: GetDataQualityRulesetResponse
-> GetDataQualityRulesetResponse -> Bool
Prelude.Eq, ReadPrec [GetDataQualityRulesetResponse]
ReadPrec GetDataQualityRulesetResponse
Int -> ReadS GetDataQualityRulesetResponse
ReadS [GetDataQualityRulesetResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDataQualityRulesetResponse]
$creadListPrec :: ReadPrec [GetDataQualityRulesetResponse]
readPrec :: ReadPrec GetDataQualityRulesetResponse
$creadPrec :: ReadPrec GetDataQualityRulesetResponse
readList :: ReadS [GetDataQualityRulesetResponse]
$creadList :: ReadS [GetDataQualityRulesetResponse]
readsPrec :: Int -> ReadS GetDataQualityRulesetResponse
$creadsPrec :: Int -> ReadS GetDataQualityRulesetResponse
Prelude.Read, Int -> GetDataQualityRulesetResponse -> ShowS
[GetDataQualityRulesetResponse] -> ShowS
GetDataQualityRulesetResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDataQualityRulesetResponse] -> ShowS
$cshowList :: [GetDataQualityRulesetResponse] -> ShowS
show :: GetDataQualityRulesetResponse -> String
$cshow :: GetDataQualityRulesetResponse -> String
showsPrec :: Int -> GetDataQualityRulesetResponse -> ShowS
$cshowsPrec :: Int -> GetDataQualityRulesetResponse -> ShowS
Prelude.Show, forall x.
Rep GetDataQualityRulesetResponse x
-> GetDataQualityRulesetResponse
forall x.
GetDataQualityRulesetResponse
-> Rep GetDataQualityRulesetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDataQualityRulesetResponse x
-> GetDataQualityRulesetResponse
$cfrom :: forall x.
GetDataQualityRulesetResponse
-> Rep GetDataQualityRulesetResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetDataQualityRulesetResponse' 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:
--
-- 'createdOn', 'getDataQualityRulesetResponse_createdOn' - A timestamp. The time and date that this data quality ruleset was
-- created.
--
-- 'description', 'getDataQualityRulesetResponse_description' - A description of the ruleset.
--
-- 'lastModifiedOn', 'getDataQualityRulesetResponse_lastModifiedOn' - A timestamp. The last point in time when this data quality ruleset was
-- modified.
--
-- 'name', 'getDataQualityRulesetResponse_name' - The name of the ruleset.
--
-- 'recommendationRunId', 'getDataQualityRulesetResponse_recommendationRunId' - When a ruleset was created from a recommendation run, this run ID is
-- generated to link the two together.
--
-- 'ruleset', 'getDataQualityRulesetResponse_ruleset' - A Data Quality Definition Language (DQDL) ruleset. For more information,
-- see the Glue developer guide.
--
-- 'targetTable', 'getDataQualityRulesetResponse_targetTable' - The name and database name of the target table.
--
-- 'httpStatus', 'getDataQualityRulesetResponse_httpStatus' - The response's http status code.
newGetDataQualityRulesetResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetDataQualityRulesetResponse
newGetDataQualityRulesetResponse :: Int -> GetDataQualityRulesetResponse
newGetDataQualityRulesetResponse Int
pHttpStatus_ =
  GetDataQualityRulesetResponse'
    { $sel:createdOn:GetDataQualityRulesetResponse' :: Maybe POSIX
createdOn =
        forall a. Maybe a
Prelude.Nothing,
      $sel:description:GetDataQualityRulesetResponse' :: Maybe Text
description = forall a. Maybe a
Prelude.Nothing,
      $sel:lastModifiedOn:GetDataQualityRulesetResponse' :: Maybe POSIX
lastModifiedOn = forall a. Maybe a
Prelude.Nothing,
      $sel:name:GetDataQualityRulesetResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:recommendationRunId:GetDataQualityRulesetResponse' :: Maybe Text
recommendationRunId = forall a. Maybe a
Prelude.Nothing,
      $sel:ruleset:GetDataQualityRulesetResponse' :: Maybe Text
ruleset = forall a. Maybe a
Prelude.Nothing,
      $sel:targetTable:GetDataQualityRulesetResponse' :: Maybe DataQualityTargetTable
targetTable = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetDataQualityRulesetResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A timestamp. The time and date that this data quality ruleset was
-- created.
getDataQualityRulesetResponse_createdOn :: Lens.Lens' GetDataQualityRulesetResponse (Prelude.Maybe Prelude.UTCTime)
getDataQualityRulesetResponse_createdOn :: Lens' GetDataQualityRulesetResponse (Maybe UTCTime)
getDataQualityRulesetResponse_createdOn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataQualityRulesetResponse' {Maybe POSIX
createdOn :: Maybe POSIX
$sel:createdOn:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe POSIX
createdOn} -> Maybe POSIX
createdOn) (\s :: GetDataQualityRulesetResponse
s@GetDataQualityRulesetResponse' {} Maybe POSIX
a -> GetDataQualityRulesetResponse
s {$sel:createdOn:GetDataQualityRulesetResponse' :: Maybe POSIX
createdOn = Maybe POSIX
a} :: GetDataQualityRulesetResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | A description of the ruleset.
getDataQualityRulesetResponse_description :: Lens.Lens' GetDataQualityRulesetResponse (Prelude.Maybe Prelude.Text)
getDataQualityRulesetResponse_description :: Lens' GetDataQualityRulesetResponse (Maybe Text)
getDataQualityRulesetResponse_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataQualityRulesetResponse' {Maybe Text
description :: Maybe Text
$sel:description:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: GetDataQualityRulesetResponse
s@GetDataQualityRulesetResponse' {} Maybe Text
a -> GetDataQualityRulesetResponse
s {$sel:description:GetDataQualityRulesetResponse' :: Maybe Text
description = Maybe Text
a} :: GetDataQualityRulesetResponse)

-- | A timestamp. The last point in time when this data quality ruleset was
-- modified.
getDataQualityRulesetResponse_lastModifiedOn :: Lens.Lens' GetDataQualityRulesetResponse (Prelude.Maybe Prelude.UTCTime)
getDataQualityRulesetResponse_lastModifiedOn :: Lens' GetDataQualityRulesetResponse (Maybe UTCTime)
getDataQualityRulesetResponse_lastModifiedOn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataQualityRulesetResponse' {Maybe POSIX
lastModifiedOn :: Maybe POSIX
$sel:lastModifiedOn:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe POSIX
lastModifiedOn} -> Maybe POSIX
lastModifiedOn) (\s :: GetDataQualityRulesetResponse
s@GetDataQualityRulesetResponse' {} Maybe POSIX
a -> GetDataQualityRulesetResponse
s {$sel:lastModifiedOn:GetDataQualityRulesetResponse' :: Maybe POSIX
lastModifiedOn = Maybe POSIX
a} :: GetDataQualityRulesetResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The name of the ruleset.
getDataQualityRulesetResponse_name :: Lens.Lens' GetDataQualityRulesetResponse (Prelude.Maybe Prelude.Text)
getDataQualityRulesetResponse_name :: Lens' GetDataQualityRulesetResponse (Maybe Text)
getDataQualityRulesetResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataQualityRulesetResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetDataQualityRulesetResponse
s@GetDataQualityRulesetResponse' {} Maybe Text
a -> GetDataQualityRulesetResponse
s {$sel:name:GetDataQualityRulesetResponse' :: Maybe Text
name = Maybe Text
a} :: GetDataQualityRulesetResponse)

-- | When a ruleset was created from a recommendation run, this run ID is
-- generated to link the two together.
getDataQualityRulesetResponse_recommendationRunId :: Lens.Lens' GetDataQualityRulesetResponse (Prelude.Maybe Prelude.Text)
getDataQualityRulesetResponse_recommendationRunId :: Lens' GetDataQualityRulesetResponse (Maybe Text)
getDataQualityRulesetResponse_recommendationRunId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataQualityRulesetResponse' {Maybe Text
recommendationRunId :: Maybe Text
$sel:recommendationRunId:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe Text
recommendationRunId} -> Maybe Text
recommendationRunId) (\s :: GetDataQualityRulesetResponse
s@GetDataQualityRulesetResponse' {} Maybe Text
a -> GetDataQualityRulesetResponse
s {$sel:recommendationRunId:GetDataQualityRulesetResponse' :: Maybe Text
recommendationRunId = Maybe Text
a} :: GetDataQualityRulesetResponse)

-- | A Data Quality Definition Language (DQDL) ruleset. For more information,
-- see the Glue developer guide.
getDataQualityRulesetResponse_ruleset :: Lens.Lens' GetDataQualityRulesetResponse (Prelude.Maybe Prelude.Text)
getDataQualityRulesetResponse_ruleset :: Lens' GetDataQualityRulesetResponse (Maybe Text)
getDataQualityRulesetResponse_ruleset = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataQualityRulesetResponse' {Maybe Text
ruleset :: Maybe Text
$sel:ruleset:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe Text
ruleset} -> Maybe Text
ruleset) (\s :: GetDataQualityRulesetResponse
s@GetDataQualityRulesetResponse' {} Maybe Text
a -> GetDataQualityRulesetResponse
s {$sel:ruleset:GetDataQualityRulesetResponse' :: Maybe Text
ruleset = Maybe Text
a} :: GetDataQualityRulesetResponse)

-- | The name and database name of the target table.
getDataQualityRulesetResponse_targetTable :: Lens.Lens' GetDataQualityRulesetResponse (Prelude.Maybe DataQualityTargetTable)
getDataQualityRulesetResponse_targetTable :: Lens' GetDataQualityRulesetResponse (Maybe DataQualityTargetTable)
getDataQualityRulesetResponse_targetTable = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDataQualityRulesetResponse' {Maybe DataQualityTargetTable
targetTable :: Maybe DataQualityTargetTable
$sel:targetTable:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe DataQualityTargetTable
targetTable} -> Maybe DataQualityTargetTable
targetTable) (\s :: GetDataQualityRulesetResponse
s@GetDataQualityRulesetResponse' {} Maybe DataQualityTargetTable
a -> GetDataQualityRulesetResponse
s {$sel:targetTable:GetDataQualityRulesetResponse' :: Maybe DataQualityTargetTable
targetTable = Maybe DataQualityTargetTable
a} :: GetDataQualityRulesetResponse)

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

instance Prelude.NFData GetDataQualityRulesetResponse where
  rnf :: GetDataQualityRulesetResponse -> ()
rnf GetDataQualityRulesetResponse' {Int
Maybe Text
Maybe POSIX
Maybe DataQualityTargetTable
httpStatus :: Int
targetTable :: Maybe DataQualityTargetTable
ruleset :: Maybe Text
recommendationRunId :: Maybe Text
name :: Maybe Text
lastModifiedOn :: Maybe POSIX
description :: Maybe Text
createdOn :: Maybe POSIX
$sel:httpStatus:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Int
$sel:targetTable:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe DataQualityTargetTable
$sel:ruleset:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe Text
$sel:recommendationRunId:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe Text
$sel:name:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe Text
$sel:lastModifiedOn:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe POSIX
$sel:description:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe Text
$sel:createdOn:GetDataQualityRulesetResponse' :: GetDataQualityRulesetResponse -> Maybe POSIX
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdOn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
description
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastModifiedOn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
recommendationRunId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
ruleset
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DataQualityTargetTable
targetTable
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus