{-# 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.MacieV2.GetAutomatedDiscoveryConfiguration
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves the configuration settings and status of automated sensitive
-- data discovery for an account.
module Amazonka.MacieV2.GetAutomatedDiscoveryConfiguration
  ( -- * Creating a Request
    GetAutomatedDiscoveryConfiguration (..),
    newGetAutomatedDiscoveryConfiguration,

    -- * Destructuring the Response
    GetAutomatedDiscoveryConfigurationResponse (..),
    newGetAutomatedDiscoveryConfigurationResponse,

    -- * Response Lenses
    getAutomatedDiscoveryConfigurationResponse_classificationScopeId,
    getAutomatedDiscoveryConfigurationResponse_disabledAt,
    getAutomatedDiscoveryConfigurationResponse_firstEnabledAt,
    getAutomatedDiscoveryConfigurationResponse_lastUpdatedAt,
    getAutomatedDiscoveryConfigurationResponse_sensitivityInspectionTemplateId,
    getAutomatedDiscoveryConfigurationResponse_status,
    getAutomatedDiscoveryConfigurationResponse_httpStatus,
  )
where

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

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

-- |
-- Create a value of 'GetAutomatedDiscoveryConfiguration' 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.
newGetAutomatedDiscoveryConfiguration ::
  GetAutomatedDiscoveryConfiguration
newGetAutomatedDiscoveryConfiguration :: GetAutomatedDiscoveryConfiguration
newGetAutomatedDiscoveryConfiguration =
  GetAutomatedDiscoveryConfiguration
GetAutomatedDiscoveryConfiguration'

instance
  Core.AWSRequest
    GetAutomatedDiscoveryConfiguration
  where
  type
    AWSResponse GetAutomatedDiscoveryConfiguration =
      GetAutomatedDiscoveryConfigurationResponse
  request :: (Service -> Service)
-> GetAutomatedDiscoveryConfiguration
-> Request GetAutomatedDiscoveryConfiguration
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy GetAutomatedDiscoveryConfiguration
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetAutomatedDiscoveryConfiguration)))
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 Text
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe AutomatedDiscoveryStatus
-> Int
-> GetAutomatedDiscoveryConfigurationResponse
GetAutomatedDiscoveryConfigurationResponse'
            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
"classificationScopeId")
            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
"disabledAt")
            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
"firstEnabledAt")
            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
"lastUpdatedAt")
            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
"sensitivityInspectionTemplateId")
            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
"status")
            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
    GetAutomatedDiscoveryConfiguration
  where
  hashWithSalt :: Int -> GetAutomatedDiscoveryConfiguration -> Int
hashWithSalt Int
_salt GetAutomatedDiscoveryConfiguration
_ =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ()

instance
  Prelude.NFData
    GetAutomatedDiscoveryConfiguration
  where
  rnf :: GetAutomatedDiscoveryConfiguration -> ()
rnf GetAutomatedDiscoveryConfiguration
_ = ()

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

instance
  Data.ToPath
    GetAutomatedDiscoveryConfiguration
  where
  toPath :: GetAutomatedDiscoveryConfiguration -> ByteString
toPath =
    forall a b. a -> b -> a
Prelude.const ByteString
"/automated-discovery/configuration"

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

-- | /See:/ 'newGetAutomatedDiscoveryConfigurationResponse' smart constructor.
data GetAutomatedDiscoveryConfigurationResponse = GetAutomatedDiscoveryConfigurationResponse'
  { -- | The unique identifier for the classification scope that\'s used when
    -- performing automated sensitive data discovery for the account. The
    -- classification scope specifies S3 buckets to exclude from automated
    -- sensitive data discovery.
    GetAutomatedDiscoveryConfigurationResponse -> Maybe Text
classificationScopeId :: Prelude.Maybe Prelude.Text,
    -- | The date and time, in UTC and extended ISO 8601 format, when automated
    -- sensitive data discovery was most recently disabled for the account.
    -- This value is null if automated sensitive data discovery wasn\'t enabled
    -- and subsequently disabled for the account.
    GetAutomatedDiscoveryConfigurationResponse -> Maybe ISO8601
disabledAt :: Prelude.Maybe Data.ISO8601,
    -- | The date and time, in UTC and extended ISO 8601 format, when automated
    -- sensitive data discovery was initially enabled for the account. This
    -- value is null if automated sensitive data discovery has never been
    -- enabled for the account.
    GetAutomatedDiscoveryConfigurationResponse -> Maybe ISO8601
firstEnabledAt :: Prelude.Maybe Data.ISO8601,
    -- | The date and time, in UTC and extended ISO 8601 format, when automated
    -- sensitive data discovery was most recently enabled or disabled for the
    -- account.
    GetAutomatedDiscoveryConfigurationResponse -> Maybe ISO8601
lastUpdatedAt :: Prelude.Maybe Data.ISO8601,
    -- | The unique identifier for the sensitivity inspection template that\'s
    -- used when performing automated sensitive data discovery for the account.
    -- The template specifies which allow lists, custom data identifiers, and
    -- managed data identifiers to use when analyzing data.
    GetAutomatedDiscoveryConfigurationResponse -> Maybe Text
sensitivityInspectionTemplateId :: Prelude.Maybe Prelude.Text,
    -- | The current status of the automated sensitive data discovery
    -- configuration for the account. Possible values are: ENABLED, use the
    -- specified settings to perform automated sensitive data discovery
    -- activities for the account; and, DISABLED, don\'t perform automated
    -- sensitive data discovery activities for the account.
    GetAutomatedDiscoveryConfigurationResponse
-> Maybe AutomatedDiscoveryStatus
status :: Prelude.Maybe AutomatedDiscoveryStatus,
    -- | The response's http status code.
    GetAutomatedDiscoveryConfigurationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetAutomatedDiscoveryConfigurationResponse
-> GetAutomatedDiscoveryConfigurationResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetAutomatedDiscoveryConfigurationResponse
-> GetAutomatedDiscoveryConfigurationResponse -> Bool
$c/= :: GetAutomatedDiscoveryConfigurationResponse
-> GetAutomatedDiscoveryConfigurationResponse -> Bool
== :: GetAutomatedDiscoveryConfigurationResponse
-> GetAutomatedDiscoveryConfigurationResponse -> Bool
$c== :: GetAutomatedDiscoveryConfigurationResponse
-> GetAutomatedDiscoveryConfigurationResponse -> Bool
Prelude.Eq, ReadPrec [GetAutomatedDiscoveryConfigurationResponse]
ReadPrec GetAutomatedDiscoveryConfigurationResponse
Int -> ReadS GetAutomatedDiscoveryConfigurationResponse
ReadS [GetAutomatedDiscoveryConfigurationResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetAutomatedDiscoveryConfigurationResponse]
$creadListPrec :: ReadPrec [GetAutomatedDiscoveryConfigurationResponse]
readPrec :: ReadPrec GetAutomatedDiscoveryConfigurationResponse
$creadPrec :: ReadPrec GetAutomatedDiscoveryConfigurationResponse
readList :: ReadS [GetAutomatedDiscoveryConfigurationResponse]
$creadList :: ReadS [GetAutomatedDiscoveryConfigurationResponse]
readsPrec :: Int -> ReadS GetAutomatedDiscoveryConfigurationResponse
$creadsPrec :: Int -> ReadS GetAutomatedDiscoveryConfigurationResponse
Prelude.Read, Int -> GetAutomatedDiscoveryConfigurationResponse -> ShowS
[GetAutomatedDiscoveryConfigurationResponse] -> ShowS
GetAutomatedDiscoveryConfigurationResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetAutomatedDiscoveryConfigurationResponse] -> ShowS
$cshowList :: [GetAutomatedDiscoveryConfigurationResponse] -> ShowS
show :: GetAutomatedDiscoveryConfigurationResponse -> String
$cshow :: GetAutomatedDiscoveryConfigurationResponse -> String
showsPrec :: Int -> GetAutomatedDiscoveryConfigurationResponse -> ShowS
$cshowsPrec :: Int -> GetAutomatedDiscoveryConfigurationResponse -> ShowS
Prelude.Show, forall x.
Rep GetAutomatedDiscoveryConfigurationResponse x
-> GetAutomatedDiscoveryConfigurationResponse
forall x.
GetAutomatedDiscoveryConfigurationResponse
-> Rep GetAutomatedDiscoveryConfigurationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetAutomatedDiscoveryConfigurationResponse x
-> GetAutomatedDiscoveryConfigurationResponse
$cfrom :: forall x.
GetAutomatedDiscoveryConfigurationResponse
-> Rep GetAutomatedDiscoveryConfigurationResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetAutomatedDiscoveryConfigurationResponse' 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:
--
-- 'classificationScopeId', 'getAutomatedDiscoveryConfigurationResponse_classificationScopeId' - The unique identifier for the classification scope that\'s used when
-- performing automated sensitive data discovery for the account. The
-- classification scope specifies S3 buckets to exclude from automated
-- sensitive data discovery.
--
-- 'disabledAt', 'getAutomatedDiscoveryConfigurationResponse_disabledAt' - The date and time, in UTC and extended ISO 8601 format, when automated
-- sensitive data discovery was most recently disabled for the account.
-- This value is null if automated sensitive data discovery wasn\'t enabled
-- and subsequently disabled for the account.
--
-- 'firstEnabledAt', 'getAutomatedDiscoveryConfigurationResponse_firstEnabledAt' - The date and time, in UTC and extended ISO 8601 format, when automated
-- sensitive data discovery was initially enabled for the account. This
-- value is null if automated sensitive data discovery has never been
-- enabled for the account.
--
-- 'lastUpdatedAt', 'getAutomatedDiscoveryConfigurationResponse_lastUpdatedAt' - The date and time, in UTC and extended ISO 8601 format, when automated
-- sensitive data discovery was most recently enabled or disabled for the
-- account.
--
-- 'sensitivityInspectionTemplateId', 'getAutomatedDiscoveryConfigurationResponse_sensitivityInspectionTemplateId' - The unique identifier for the sensitivity inspection template that\'s
-- used when performing automated sensitive data discovery for the account.
-- The template specifies which allow lists, custom data identifiers, and
-- managed data identifiers to use when analyzing data.
--
-- 'status', 'getAutomatedDiscoveryConfigurationResponse_status' - The current status of the automated sensitive data discovery
-- configuration for the account. Possible values are: ENABLED, use the
-- specified settings to perform automated sensitive data discovery
-- activities for the account; and, DISABLED, don\'t perform automated
-- sensitive data discovery activities for the account.
--
-- 'httpStatus', 'getAutomatedDiscoveryConfigurationResponse_httpStatus' - The response's http status code.
newGetAutomatedDiscoveryConfigurationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetAutomatedDiscoveryConfigurationResponse
newGetAutomatedDiscoveryConfigurationResponse :: Int -> GetAutomatedDiscoveryConfigurationResponse
newGetAutomatedDiscoveryConfigurationResponse
  Int
pHttpStatus_ =
    GetAutomatedDiscoveryConfigurationResponse'
      { $sel:classificationScopeId:GetAutomatedDiscoveryConfigurationResponse' :: Maybe Text
classificationScopeId =
          forall a. Maybe a
Prelude.Nothing,
        $sel:disabledAt:GetAutomatedDiscoveryConfigurationResponse' :: Maybe ISO8601
disabledAt = forall a. Maybe a
Prelude.Nothing,
        $sel:firstEnabledAt:GetAutomatedDiscoveryConfigurationResponse' :: Maybe ISO8601
firstEnabledAt =
          forall a. Maybe a
Prelude.Nothing,
        $sel:lastUpdatedAt:GetAutomatedDiscoveryConfigurationResponse' :: Maybe ISO8601
lastUpdatedAt = forall a. Maybe a
Prelude.Nothing,
        $sel:sensitivityInspectionTemplateId:GetAutomatedDiscoveryConfigurationResponse' :: Maybe Text
sensitivityInspectionTemplateId =
          forall a. Maybe a
Prelude.Nothing,
        $sel:status:GetAutomatedDiscoveryConfigurationResponse' :: Maybe AutomatedDiscoveryStatus
status = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetAutomatedDiscoveryConfigurationResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The unique identifier for the classification scope that\'s used when
-- performing automated sensitive data discovery for the account. The
-- classification scope specifies S3 buckets to exclude from automated
-- sensitive data discovery.
getAutomatedDiscoveryConfigurationResponse_classificationScopeId :: Lens.Lens' GetAutomatedDiscoveryConfigurationResponse (Prelude.Maybe Prelude.Text)
getAutomatedDiscoveryConfigurationResponse_classificationScopeId :: Lens' GetAutomatedDiscoveryConfigurationResponse (Maybe Text)
getAutomatedDiscoveryConfigurationResponse_classificationScopeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAutomatedDiscoveryConfigurationResponse' {Maybe Text
classificationScopeId :: Maybe Text
$sel:classificationScopeId:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Maybe Text
classificationScopeId} -> Maybe Text
classificationScopeId) (\s :: GetAutomatedDiscoveryConfigurationResponse
s@GetAutomatedDiscoveryConfigurationResponse' {} Maybe Text
a -> GetAutomatedDiscoveryConfigurationResponse
s {$sel:classificationScopeId:GetAutomatedDiscoveryConfigurationResponse' :: Maybe Text
classificationScopeId = Maybe Text
a} :: GetAutomatedDiscoveryConfigurationResponse)

-- | The date and time, in UTC and extended ISO 8601 format, when automated
-- sensitive data discovery was most recently disabled for the account.
-- This value is null if automated sensitive data discovery wasn\'t enabled
-- and subsequently disabled for the account.
getAutomatedDiscoveryConfigurationResponse_disabledAt :: Lens.Lens' GetAutomatedDiscoveryConfigurationResponse (Prelude.Maybe Prelude.UTCTime)
getAutomatedDiscoveryConfigurationResponse_disabledAt :: Lens' GetAutomatedDiscoveryConfigurationResponse (Maybe UTCTime)
getAutomatedDiscoveryConfigurationResponse_disabledAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAutomatedDiscoveryConfigurationResponse' {Maybe ISO8601
disabledAt :: Maybe ISO8601
$sel:disabledAt:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Maybe ISO8601
disabledAt} -> Maybe ISO8601
disabledAt) (\s :: GetAutomatedDiscoveryConfigurationResponse
s@GetAutomatedDiscoveryConfigurationResponse' {} Maybe ISO8601
a -> GetAutomatedDiscoveryConfigurationResponse
s {$sel:disabledAt:GetAutomatedDiscoveryConfigurationResponse' :: Maybe ISO8601
disabledAt = Maybe ISO8601
a} :: GetAutomatedDiscoveryConfigurationResponse) 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 date and time, in UTC and extended ISO 8601 format, when automated
-- sensitive data discovery was initially enabled for the account. This
-- value is null if automated sensitive data discovery has never been
-- enabled for the account.
getAutomatedDiscoveryConfigurationResponse_firstEnabledAt :: Lens.Lens' GetAutomatedDiscoveryConfigurationResponse (Prelude.Maybe Prelude.UTCTime)
getAutomatedDiscoveryConfigurationResponse_firstEnabledAt :: Lens' GetAutomatedDiscoveryConfigurationResponse (Maybe UTCTime)
getAutomatedDiscoveryConfigurationResponse_firstEnabledAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAutomatedDiscoveryConfigurationResponse' {Maybe ISO8601
firstEnabledAt :: Maybe ISO8601
$sel:firstEnabledAt:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Maybe ISO8601
firstEnabledAt} -> Maybe ISO8601
firstEnabledAt) (\s :: GetAutomatedDiscoveryConfigurationResponse
s@GetAutomatedDiscoveryConfigurationResponse' {} Maybe ISO8601
a -> GetAutomatedDiscoveryConfigurationResponse
s {$sel:firstEnabledAt:GetAutomatedDiscoveryConfigurationResponse' :: Maybe ISO8601
firstEnabledAt = Maybe ISO8601
a} :: GetAutomatedDiscoveryConfigurationResponse) 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 date and time, in UTC and extended ISO 8601 format, when automated
-- sensitive data discovery was most recently enabled or disabled for the
-- account.
getAutomatedDiscoveryConfigurationResponse_lastUpdatedAt :: Lens.Lens' GetAutomatedDiscoveryConfigurationResponse (Prelude.Maybe Prelude.UTCTime)
getAutomatedDiscoveryConfigurationResponse_lastUpdatedAt :: Lens' GetAutomatedDiscoveryConfigurationResponse (Maybe UTCTime)
getAutomatedDiscoveryConfigurationResponse_lastUpdatedAt = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAutomatedDiscoveryConfigurationResponse' {Maybe ISO8601
lastUpdatedAt :: Maybe ISO8601
$sel:lastUpdatedAt:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Maybe ISO8601
lastUpdatedAt} -> Maybe ISO8601
lastUpdatedAt) (\s :: GetAutomatedDiscoveryConfigurationResponse
s@GetAutomatedDiscoveryConfigurationResponse' {} Maybe ISO8601
a -> GetAutomatedDiscoveryConfigurationResponse
s {$sel:lastUpdatedAt:GetAutomatedDiscoveryConfigurationResponse' :: Maybe ISO8601
lastUpdatedAt = Maybe ISO8601
a} :: GetAutomatedDiscoveryConfigurationResponse) 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 unique identifier for the sensitivity inspection template that\'s
-- used when performing automated sensitive data discovery for the account.
-- The template specifies which allow lists, custom data identifiers, and
-- managed data identifiers to use when analyzing data.
getAutomatedDiscoveryConfigurationResponse_sensitivityInspectionTemplateId :: Lens.Lens' GetAutomatedDiscoveryConfigurationResponse (Prelude.Maybe Prelude.Text)
getAutomatedDiscoveryConfigurationResponse_sensitivityInspectionTemplateId :: Lens' GetAutomatedDiscoveryConfigurationResponse (Maybe Text)
getAutomatedDiscoveryConfigurationResponse_sensitivityInspectionTemplateId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAutomatedDiscoveryConfigurationResponse' {Maybe Text
sensitivityInspectionTemplateId :: Maybe Text
$sel:sensitivityInspectionTemplateId:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Maybe Text
sensitivityInspectionTemplateId} -> Maybe Text
sensitivityInspectionTemplateId) (\s :: GetAutomatedDiscoveryConfigurationResponse
s@GetAutomatedDiscoveryConfigurationResponse' {} Maybe Text
a -> GetAutomatedDiscoveryConfigurationResponse
s {$sel:sensitivityInspectionTemplateId:GetAutomatedDiscoveryConfigurationResponse' :: Maybe Text
sensitivityInspectionTemplateId = Maybe Text
a} :: GetAutomatedDiscoveryConfigurationResponse)

-- | The current status of the automated sensitive data discovery
-- configuration for the account. Possible values are: ENABLED, use the
-- specified settings to perform automated sensitive data discovery
-- activities for the account; and, DISABLED, don\'t perform automated
-- sensitive data discovery activities for the account.
getAutomatedDiscoveryConfigurationResponse_status :: Lens.Lens' GetAutomatedDiscoveryConfigurationResponse (Prelude.Maybe AutomatedDiscoveryStatus)
getAutomatedDiscoveryConfigurationResponse_status :: Lens'
  GetAutomatedDiscoveryConfigurationResponse
  (Maybe AutomatedDiscoveryStatus)
getAutomatedDiscoveryConfigurationResponse_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetAutomatedDiscoveryConfigurationResponse' {Maybe AutomatedDiscoveryStatus
status :: Maybe AutomatedDiscoveryStatus
$sel:status:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse
-> Maybe AutomatedDiscoveryStatus
status} -> Maybe AutomatedDiscoveryStatus
status) (\s :: GetAutomatedDiscoveryConfigurationResponse
s@GetAutomatedDiscoveryConfigurationResponse' {} Maybe AutomatedDiscoveryStatus
a -> GetAutomatedDiscoveryConfigurationResponse
s {$sel:status:GetAutomatedDiscoveryConfigurationResponse' :: Maybe AutomatedDiscoveryStatus
status = Maybe AutomatedDiscoveryStatus
a} :: GetAutomatedDiscoveryConfigurationResponse)

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

instance
  Prelude.NFData
    GetAutomatedDiscoveryConfigurationResponse
  where
  rnf :: GetAutomatedDiscoveryConfigurationResponse -> ()
rnf GetAutomatedDiscoveryConfigurationResponse' {Int
Maybe Text
Maybe ISO8601
Maybe AutomatedDiscoveryStatus
httpStatus :: Int
status :: Maybe AutomatedDiscoveryStatus
sensitivityInspectionTemplateId :: Maybe Text
lastUpdatedAt :: Maybe ISO8601
firstEnabledAt :: Maybe ISO8601
disabledAt :: Maybe ISO8601
classificationScopeId :: Maybe Text
$sel:httpStatus:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Int
$sel:status:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse
-> Maybe AutomatedDiscoveryStatus
$sel:sensitivityInspectionTemplateId:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Maybe Text
$sel:lastUpdatedAt:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Maybe ISO8601
$sel:firstEnabledAt:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Maybe ISO8601
$sel:disabledAt:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Maybe ISO8601
$sel:classificationScopeId:GetAutomatedDiscoveryConfigurationResponse' :: GetAutomatedDiscoveryConfigurationResponse -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
classificationScopeId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
disabledAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
firstEnabledAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ISO8601
lastUpdatedAt
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sensitivityInspectionTemplateId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AutomatedDiscoveryStatus
status
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus