{-# 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.GetCustomDataIdentifier
-- 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)
--
-- Retrieves the criteria and other settings for a custom data identifier.
module Amazonka.MacieV2.GetCustomDataIdentifier
  ( -- * Creating a Request
    GetCustomDataIdentifier (..),
    newGetCustomDataIdentifier,

    -- * Request Lenses
    getCustomDataIdentifier_id,

    -- * Destructuring the Response
    GetCustomDataIdentifierResponse (..),
    newGetCustomDataIdentifierResponse,

    -- * Response Lenses
    getCustomDataIdentifierResponse_arn,
    getCustomDataIdentifierResponse_createdAt,
    getCustomDataIdentifierResponse_regex,
    getCustomDataIdentifierResponse_name,
    getCustomDataIdentifierResponse_keywords,
    getCustomDataIdentifierResponse_ignoreWords,
    getCustomDataIdentifierResponse_id,
    getCustomDataIdentifierResponse_deleted,
    getCustomDataIdentifierResponse_maximumMatchDistance,
    getCustomDataIdentifierResponse_description,
    getCustomDataIdentifierResponse_tags,
    getCustomDataIdentifierResponse_httpStatus,
  )
where

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

-- | /See:/ 'newGetCustomDataIdentifier' smart constructor.
data GetCustomDataIdentifier = GetCustomDataIdentifier'
  { -- | The unique identifier for the Amazon Macie resource or account that the
    -- request applies to.
    GetCustomDataIdentifier -> Text
id :: Prelude.Text
  }
  deriving (GetCustomDataIdentifier -> GetCustomDataIdentifier -> Bool
(GetCustomDataIdentifier -> GetCustomDataIdentifier -> Bool)
-> (GetCustomDataIdentifier -> GetCustomDataIdentifier -> Bool)
-> Eq GetCustomDataIdentifier
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCustomDataIdentifier -> GetCustomDataIdentifier -> Bool
$c/= :: GetCustomDataIdentifier -> GetCustomDataIdentifier -> Bool
== :: GetCustomDataIdentifier -> GetCustomDataIdentifier -> Bool
$c== :: GetCustomDataIdentifier -> GetCustomDataIdentifier -> Bool
Prelude.Eq, ReadPrec [GetCustomDataIdentifier]
ReadPrec GetCustomDataIdentifier
Int -> ReadS GetCustomDataIdentifier
ReadS [GetCustomDataIdentifier]
(Int -> ReadS GetCustomDataIdentifier)
-> ReadS [GetCustomDataIdentifier]
-> ReadPrec GetCustomDataIdentifier
-> ReadPrec [GetCustomDataIdentifier]
-> Read GetCustomDataIdentifier
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCustomDataIdentifier]
$creadListPrec :: ReadPrec [GetCustomDataIdentifier]
readPrec :: ReadPrec GetCustomDataIdentifier
$creadPrec :: ReadPrec GetCustomDataIdentifier
readList :: ReadS [GetCustomDataIdentifier]
$creadList :: ReadS [GetCustomDataIdentifier]
readsPrec :: Int -> ReadS GetCustomDataIdentifier
$creadsPrec :: Int -> ReadS GetCustomDataIdentifier
Prelude.Read, Int -> GetCustomDataIdentifier -> ShowS
[GetCustomDataIdentifier] -> ShowS
GetCustomDataIdentifier -> String
(Int -> GetCustomDataIdentifier -> ShowS)
-> (GetCustomDataIdentifier -> String)
-> ([GetCustomDataIdentifier] -> ShowS)
-> Show GetCustomDataIdentifier
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCustomDataIdentifier] -> ShowS
$cshowList :: [GetCustomDataIdentifier] -> ShowS
show :: GetCustomDataIdentifier -> String
$cshow :: GetCustomDataIdentifier -> String
showsPrec :: Int -> GetCustomDataIdentifier -> ShowS
$cshowsPrec :: Int -> GetCustomDataIdentifier -> ShowS
Prelude.Show, (forall x.
 GetCustomDataIdentifier -> Rep GetCustomDataIdentifier x)
-> (forall x.
    Rep GetCustomDataIdentifier x -> GetCustomDataIdentifier)
-> Generic GetCustomDataIdentifier
forall x. Rep GetCustomDataIdentifier x -> GetCustomDataIdentifier
forall x. GetCustomDataIdentifier -> Rep GetCustomDataIdentifier x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetCustomDataIdentifier x -> GetCustomDataIdentifier
$cfrom :: forall x. GetCustomDataIdentifier -> Rep GetCustomDataIdentifier x
Prelude.Generic)

-- |
-- Create a value of 'GetCustomDataIdentifier' 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:
--
-- 'id', 'getCustomDataIdentifier_id' - The unique identifier for the Amazon Macie resource or account that the
-- request applies to.
newGetCustomDataIdentifier ::
  -- | 'id'
  Prelude.Text ->
  GetCustomDataIdentifier
newGetCustomDataIdentifier :: Text -> GetCustomDataIdentifier
newGetCustomDataIdentifier Text
pId_ =
  GetCustomDataIdentifier' :: Text -> GetCustomDataIdentifier
GetCustomDataIdentifier' {$sel:id:GetCustomDataIdentifier' :: Text
id = Text
pId_}

-- | The unique identifier for the Amazon Macie resource or account that the
-- request applies to.
getCustomDataIdentifier_id :: Lens.Lens' GetCustomDataIdentifier Prelude.Text
getCustomDataIdentifier_id :: (Text -> f Text)
-> GetCustomDataIdentifier -> f GetCustomDataIdentifier
getCustomDataIdentifier_id = (GetCustomDataIdentifier -> Text)
-> (GetCustomDataIdentifier -> Text -> GetCustomDataIdentifier)
-> Lens GetCustomDataIdentifier GetCustomDataIdentifier Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifier' {Text
id :: Text
$sel:id:GetCustomDataIdentifier' :: GetCustomDataIdentifier -> Text
id} -> Text
id) (\s :: GetCustomDataIdentifier
s@GetCustomDataIdentifier' {} Text
a -> GetCustomDataIdentifier
s {$sel:id:GetCustomDataIdentifier' :: Text
id = Text
a} :: GetCustomDataIdentifier)

instance Core.AWSRequest GetCustomDataIdentifier where
  type
    AWSResponse GetCustomDataIdentifier =
      GetCustomDataIdentifierResponse
  request :: GetCustomDataIdentifier -> Request GetCustomDataIdentifier
request = Service
-> GetCustomDataIdentifier -> Request GetCustomDataIdentifier
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetCustomDataIdentifier
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetCustomDataIdentifier)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetCustomDataIdentifier))
-> Logger
-> Service
-> Proxy GetCustomDataIdentifier
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetCustomDataIdentifier)))
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 Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe [Text]
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCustomDataIdentifierResponse
GetCustomDataIdentifierResponse'
            (Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe [Text]
 -> Maybe [Text]
 -> Maybe Text
 -> Maybe Bool
 -> Maybe Int
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> GetCustomDataIdentifierResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"arn")
            Either
  String
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCustomDataIdentifierResponse)
-> Either String (Maybe POSIX)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"createdAt")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCustomDataIdentifierResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe [Text]
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"regex")
            Either
  String
  (Maybe Text
   -> Maybe [Text]
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCustomDataIdentifierResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [Text]
      -> Maybe [Text]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"name")
            Either
  String
  (Maybe [Text]
   -> Maybe [Text]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCustomDataIdentifierResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe [Text]
      -> Maybe Text
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"keywords" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe [Text]
   -> Maybe Text
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCustomDataIdentifierResponse)
-> Either String (Maybe [Text])
-> Either
     String
     (Maybe Text
      -> Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ignoreWords" Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Maybe Text
   -> Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCustomDataIdentifierResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Bool
      -> Maybe Int
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"id")
            Either
  String
  (Maybe Bool
   -> Maybe Int
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCustomDataIdentifierResponse)
-> Either String (Maybe Bool)
-> Either
     String
     (Maybe Int
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"deleted")
            Either
  String
  (Maybe Int
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCustomDataIdentifierResponse)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"maximumMatchDistance")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> GetCustomDataIdentifierResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe (HashMap Text Text)
      -> Int -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"description")
            Either
  String
  (Maybe (HashMap Text Text)
   -> Int -> GetCustomDataIdentifierResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetCustomDataIdentifierResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> GetCustomDataIdentifierResponse)
-> Either String Int
-> Either String GetCustomDataIdentifierResponse
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 GetCustomDataIdentifier

instance Prelude.NFData GetCustomDataIdentifier

instance Core.ToHeaders GetCustomDataIdentifier where
  toHeaders :: GetCustomDataIdentifier -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetCustomDataIdentifier -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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.ToPath GetCustomDataIdentifier where
  toPath :: GetCustomDataIdentifier -> ByteString
toPath GetCustomDataIdentifier' {Text
id :: Text
$sel:id:GetCustomDataIdentifier' :: GetCustomDataIdentifier -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/custom-data-identifiers/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id]

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

-- | /See:/ 'newGetCustomDataIdentifierResponse' smart constructor.
data GetCustomDataIdentifierResponse = GetCustomDataIdentifierResponse'
  { -- | The Amazon Resource Name (ARN) of the custom data identifier.
    GetCustomDataIdentifierResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The date and time, in UTC and extended ISO 8601 format, when the custom
    -- data identifier was created.
    GetCustomDataIdentifierResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
    -- | The regular expression (/regex/) that defines the pattern to match.
    GetCustomDataIdentifierResponse -> Maybe Text
regex :: Prelude.Maybe Prelude.Text,
    -- | The custom name of the custom data identifier.
    GetCustomDataIdentifierResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | An array that lists specific character sequences (keywords), one of
    -- which must be within proximity (maximumMatchDistance) of the regular
    -- expression to match. Keywords aren\'t case sensitive.
    GetCustomDataIdentifierResponse -> Maybe [Text]
keywords :: Prelude.Maybe [Prelude.Text],
    -- | An array that lists specific character sequences (ignore words) to
    -- exclude from the results. If the text matched by the regular expression
    -- is the same as any string in this array, Amazon Macie ignores it. Ignore
    -- words are case sensitive.
    GetCustomDataIdentifierResponse -> Maybe [Text]
ignoreWords :: Prelude.Maybe [Prelude.Text],
    -- | The unique identifier for the custom data identifier.
    GetCustomDataIdentifierResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | Specifies whether the custom data identifier was deleted. If you delete
    -- a custom data identifier, Amazon Macie doesn\'t delete it permanently.
    -- Instead, it soft deletes the identifier.
    GetCustomDataIdentifierResponse -> Maybe Bool
deleted :: Prelude.Maybe Prelude.Bool,
    -- | The maximum number of characters that can exist between text that
    -- matches the regex pattern and the character sequences specified by the
    -- keywords array. Amazon Macie includes or excludes a result based on the
    -- proximity of a keyword to text that matches the regex pattern.
    GetCustomDataIdentifierResponse -> Maybe Int
maximumMatchDistance :: Prelude.Maybe Prelude.Int,
    -- | The custom description of the custom data identifier.
    GetCustomDataIdentifierResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | A map of key-value pairs that identifies the tags (keys and values) that
    -- are associated with the custom data identifier.
    GetCustomDataIdentifierResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    GetCustomDataIdentifierResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetCustomDataIdentifierResponse
-> GetCustomDataIdentifierResponse -> Bool
(GetCustomDataIdentifierResponse
 -> GetCustomDataIdentifierResponse -> Bool)
-> (GetCustomDataIdentifierResponse
    -> GetCustomDataIdentifierResponse -> Bool)
-> Eq GetCustomDataIdentifierResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCustomDataIdentifierResponse
-> GetCustomDataIdentifierResponse -> Bool
$c/= :: GetCustomDataIdentifierResponse
-> GetCustomDataIdentifierResponse -> Bool
== :: GetCustomDataIdentifierResponse
-> GetCustomDataIdentifierResponse -> Bool
$c== :: GetCustomDataIdentifierResponse
-> GetCustomDataIdentifierResponse -> Bool
Prelude.Eq, ReadPrec [GetCustomDataIdentifierResponse]
ReadPrec GetCustomDataIdentifierResponse
Int -> ReadS GetCustomDataIdentifierResponse
ReadS [GetCustomDataIdentifierResponse]
(Int -> ReadS GetCustomDataIdentifierResponse)
-> ReadS [GetCustomDataIdentifierResponse]
-> ReadPrec GetCustomDataIdentifierResponse
-> ReadPrec [GetCustomDataIdentifierResponse]
-> Read GetCustomDataIdentifierResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCustomDataIdentifierResponse]
$creadListPrec :: ReadPrec [GetCustomDataIdentifierResponse]
readPrec :: ReadPrec GetCustomDataIdentifierResponse
$creadPrec :: ReadPrec GetCustomDataIdentifierResponse
readList :: ReadS [GetCustomDataIdentifierResponse]
$creadList :: ReadS [GetCustomDataIdentifierResponse]
readsPrec :: Int -> ReadS GetCustomDataIdentifierResponse
$creadsPrec :: Int -> ReadS GetCustomDataIdentifierResponse
Prelude.Read, Int -> GetCustomDataIdentifierResponse -> ShowS
[GetCustomDataIdentifierResponse] -> ShowS
GetCustomDataIdentifierResponse -> String
(Int -> GetCustomDataIdentifierResponse -> ShowS)
-> (GetCustomDataIdentifierResponse -> String)
-> ([GetCustomDataIdentifierResponse] -> ShowS)
-> Show GetCustomDataIdentifierResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCustomDataIdentifierResponse] -> ShowS
$cshowList :: [GetCustomDataIdentifierResponse] -> ShowS
show :: GetCustomDataIdentifierResponse -> String
$cshow :: GetCustomDataIdentifierResponse -> String
showsPrec :: Int -> GetCustomDataIdentifierResponse -> ShowS
$cshowsPrec :: Int -> GetCustomDataIdentifierResponse -> ShowS
Prelude.Show, (forall x.
 GetCustomDataIdentifierResponse
 -> Rep GetCustomDataIdentifierResponse x)
-> (forall x.
    Rep GetCustomDataIdentifierResponse x
    -> GetCustomDataIdentifierResponse)
-> Generic GetCustomDataIdentifierResponse
forall x.
Rep GetCustomDataIdentifierResponse x
-> GetCustomDataIdentifierResponse
forall x.
GetCustomDataIdentifierResponse
-> Rep GetCustomDataIdentifierResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetCustomDataIdentifierResponse x
-> GetCustomDataIdentifierResponse
$cfrom :: forall x.
GetCustomDataIdentifierResponse
-> Rep GetCustomDataIdentifierResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetCustomDataIdentifierResponse' 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:
--
-- 'arn', 'getCustomDataIdentifierResponse_arn' - The Amazon Resource Name (ARN) of the custom data identifier.
--
-- 'createdAt', 'getCustomDataIdentifierResponse_createdAt' - The date and time, in UTC and extended ISO 8601 format, when the custom
-- data identifier was created.
--
-- 'regex', 'getCustomDataIdentifierResponse_regex' - The regular expression (/regex/) that defines the pattern to match.
--
-- 'name', 'getCustomDataIdentifierResponse_name' - The custom name of the custom data identifier.
--
-- 'keywords', 'getCustomDataIdentifierResponse_keywords' - An array that lists specific character sequences (keywords), one of
-- which must be within proximity (maximumMatchDistance) of the regular
-- expression to match. Keywords aren\'t case sensitive.
--
-- 'ignoreWords', 'getCustomDataIdentifierResponse_ignoreWords' - An array that lists specific character sequences (ignore words) to
-- exclude from the results. If the text matched by the regular expression
-- is the same as any string in this array, Amazon Macie ignores it. Ignore
-- words are case sensitive.
--
-- 'id', 'getCustomDataIdentifierResponse_id' - The unique identifier for the custom data identifier.
--
-- 'deleted', 'getCustomDataIdentifierResponse_deleted' - Specifies whether the custom data identifier was deleted. If you delete
-- a custom data identifier, Amazon Macie doesn\'t delete it permanently.
-- Instead, it soft deletes the identifier.
--
-- 'maximumMatchDistance', 'getCustomDataIdentifierResponse_maximumMatchDistance' - The maximum number of characters that can exist between text that
-- matches the regex pattern and the character sequences specified by the
-- keywords array. Amazon Macie includes or excludes a result based on the
-- proximity of a keyword to text that matches the regex pattern.
--
-- 'description', 'getCustomDataIdentifierResponse_description' - The custom description of the custom data identifier.
--
-- 'tags', 'getCustomDataIdentifierResponse_tags' - A map of key-value pairs that identifies the tags (keys and values) that
-- are associated with the custom data identifier.
--
-- 'httpStatus', 'getCustomDataIdentifierResponse_httpStatus' - The response's http status code.
newGetCustomDataIdentifierResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetCustomDataIdentifierResponse
newGetCustomDataIdentifierResponse :: Int -> GetCustomDataIdentifierResponse
newGetCustomDataIdentifierResponse Int
pHttpStatus_ =
  GetCustomDataIdentifierResponse' :: Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe [Text]
-> Maybe [Text]
-> Maybe Text
-> Maybe Bool
-> Maybe Int
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> GetCustomDataIdentifierResponse
GetCustomDataIdentifierResponse'
    { $sel:arn:GetCustomDataIdentifierResponse' :: Maybe Text
arn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdAt:GetCustomDataIdentifierResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:regex:GetCustomDataIdentifierResponse' :: Maybe Text
regex = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:GetCustomDataIdentifierResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:keywords:GetCustomDataIdentifierResponse' :: Maybe [Text]
keywords = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:ignoreWords:GetCustomDataIdentifierResponse' :: Maybe [Text]
ignoreWords = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:id:GetCustomDataIdentifierResponse' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deleted:GetCustomDataIdentifierResponse' :: Maybe Bool
deleted = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
      $sel:maximumMatchDistance:GetCustomDataIdentifierResponse' :: Maybe Int
maximumMatchDistance = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:description:GetCustomDataIdentifierResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:GetCustomDataIdentifierResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetCustomDataIdentifierResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name (ARN) of the custom data identifier.
getCustomDataIdentifierResponse_arn :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe Prelude.Text)
getCustomDataIdentifierResponse_arn :: (Maybe Text -> f (Maybe Text))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_arn = (GetCustomDataIdentifierResponse -> Maybe Text)
-> (GetCustomDataIdentifierResponse
    -> Maybe Text -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe Text
a -> GetCustomDataIdentifierResponse
s {$sel:arn:GetCustomDataIdentifierResponse' :: Maybe Text
arn = Maybe Text
a} :: GetCustomDataIdentifierResponse)

-- | The date and time, in UTC and extended ISO 8601 format, when the custom
-- data identifier was created.
getCustomDataIdentifierResponse_createdAt :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe Prelude.UTCTime)
getCustomDataIdentifierResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_createdAt = (GetCustomDataIdentifierResponse -> Maybe POSIX)
-> (GetCustomDataIdentifierResponse
    -> Maybe POSIX -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe POSIX
a -> GetCustomDataIdentifierResponse
s {$sel:createdAt:GetCustomDataIdentifierResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: GetCustomDataIdentifierResponse) ((Maybe POSIX -> f (Maybe POSIX))
 -> GetCustomDataIdentifierResponse
 -> f GetCustomDataIdentifierResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The regular expression (/regex/) that defines the pattern to match.
getCustomDataIdentifierResponse_regex :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe Prelude.Text)
getCustomDataIdentifierResponse_regex :: (Maybe Text -> f (Maybe Text))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_regex = (GetCustomDataIdentifierResponse -> Maybe Text)
-> (GetCustomDataIdentifierResponse
    -> Maybe Text -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe Text
regex :: Maybe Text
$sel:regex:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe Text
regex} -> Maybe Text
regex) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe Text
a -> GetCustomDataIdentifierResponse
s {$sel:regex:GetCustomDataIdentifierResponse' :: Maybe Text
regex = Maybe Text
a} :: GetCustomDataIdentifierResponse)

-- | The custom name of the custom data identifier.
getCustomDataIdentifierResponse_name :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe Prelude.Text)
getCustomDataIdentifierResponse_name :: (Maybe Text -> f (Maybe Text))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_name = (GetCustomDataIdentifierResponse -> Maybe Text)
-> (GetCustomDataIdentifierResponse
    -> Maybe Text -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe Text
a -> GetCustomDataIdentifierResponse
s {$sel:name:GetCustomDataIdentifierResponse' :: Maybe Text
name = Maybe Text
a} :: GetCustomDataIdentifierResponse)

-- | An array that lists specific character sequences (keywords), one of
-- which must be within proximity (maximumMatchDistance) of the regular
-- expression to match. Keywords aren\'t case sensitive.
getCustomDataIdentifierResponse_keywords :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe [Prelude.Text])
getCustomDataIdentifierResponse_keywords :: (Maybe [Text] -> f (Maybe [Text]))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_keywords = (GetCustomDataIdentifierResponse -> Maybe [Text])
-> (GetCustomDataIdentifierResponse
    -> Maybe [Text] -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe [Text]
keywords :: Maybe [Text]
$sel:keywords:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe [Text]
keywords} -> Maybe [Text]
keywords) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe [Text]
a -> GetCustomDataIdentifierResponse
s {$sel:keywords:GetCustomDataIdentifierResponse' :: Maybe [Text]
keywords = Maybe [Text]
a} :: GetCustomDataIdentifierResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> GetCustomDataIdentifierResponse
 -> f GetCustomDataIdentifierResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | An array that lists specific character sequences (ignore words) to
-- exclude from the results. If the text matched by the regular expression
-- is the same as any string in this array, Amazon Macie ignores it. Ignore
-- words are case sensitive.
getCustomDataIdentifierResponse_ignoreWords :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe [Prelude.Text])
getCustomDataIdentifierResponse_ignoreWords :: (Maybe [Text] -> f (Maybe [Text]))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_ignoreWords = (GetCustomDataIdentifierResponse -> Maybe [Text])
-> (GetCustomDataIdentifierResponse
    -> Maybe [Text] -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe [Text]
ignoreWords :: Maybe [Text]
$sel:ignoreWords:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe [Text]
ignoreWords} -> Maybe [Text]
ignoreWords) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe [Text]
a -> GetCustomDataIdentifierResponse
s {$sel:ignoreWords:GetCustomDataIdentifierResponse' :: Maybe [Text]
ignoreWords = Maybe [Text]
a} :: GetCustomDataIdentifierResponse) ((Maybe [Text] -> f (Maybe [Text]))
 -> GetCustomDataIdentifierResponse
 -> f GetCustomDataIdentifierResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The unique identifier for the custom data identifier.
getCustomDataIdentifierResponse_id :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe Prelude.Text)
getCustomDataIdentifierResponse_id :: (Maybe Text -> f (Maybe Text))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_id = (GetCustomDataIdentifierResponse -> Maybe Text)
-> (GetCustomDataIdentifierResponse
    -> Maybe Text -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe Text
id :: Maybe Text
$sel:id:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe Text
id} -> Maybe Text
id) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe Text
a -> GetCustomDataIdentifierResponse
s {$sel:id:GetCustomDataIdentifierResponse' :: Maybe Text
id = Maybe Text
a} :: GetCustomDataIdentifierResponse)

-- | Specifies whether the custom data identifier was deleted. If you delete
-- a custom data identifier, Amazon Macie doesn\'t delete it permanently.
-- Instead, it soft deletes the identifier.
getCustomDataIdentifierResponse_deleted :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe Prelude.Bool)
getCustomDataIdentifierResponse_deleted :: (Maybe Bool -> f (Maybe Bool))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_deleted = (GetCustomDataIdentifierResponse -> Maybe Bool)
-> (GetCustomDataIdentifierResponse
    -> Maybe Bool -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe Bool
deleted :: Maybe Bool
$sel:deleted:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe Bool
deleted} -> Maybe Bool
deleted) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe Bool
a -> GetCustomDataIdentifierResponse
s {$sel:deleted:GetCustomDataIdentifierResponse' :: Maybe Bool
deleted = Maybe Bool
a} :: GetCustomDataIdentifierResponse)

-- | The maximum number of characters that can exist between text that
-- matches the regex pattern and the character sequences specified by the
-- keywords array. Amazon Macie includes or excludes a result based on the
-- proximity of a keyword to text that matches the regex pattern.
getCustomDataIdentifierResponse_maximumMatchDistance :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe Prelude.Int)
getCustomDataIdentifierResponse_maximumMatchDistance :: (Maybe Int -> f (Maybe Int))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_maximumMatchDistance = (GetCustomDataIdentifierResponse -> Maybe Int)
-> (GetCustomDataIdentifierResponse
    -> Maybe Int -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe Int
maximumMatchDistance :: Maybe Int
$sel:maximumMatchDistance:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe Int
maximumMatchDistance} -> Maybe Int
maximumMatchDistance) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe Int
a -> GetCustomDataIdentifierResponse
s {$sel:maximumMatchDistance:GetCustomDataIdentifierResponse' :: Maybe Int
maximumMatchDistance = Maybe Int
a} :: GetCustomDataIdentifierResponse)

-- | The custom description of the custom data identifier.
getCustomDataIdentifierResponse_description :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe Prelude.Text)
getCustomDataIdentifierResponse_description :: (Maybe Text -> f (Maybe Text))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_description = (GetCustomDataIdentifierResponse -> Maybe Text)
-> (GetCustomDataIdentifierResponse
    -> Maybe Text -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe Text
description :: Maybe Text
$sel:description:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe Text
a -> GetCustomDataIdentifierResponse
s {$sel:description:GetCustomDataIdentifierResponse' :: Maybe Text
description = Maybe Text
a} :: GetCustomDataIdentifierResponse)

-- | A map of key-value pairs that identifies the tags (keys and values) that
-- are associated with the custom data identifier.
getCustomDataIdentifierResponse_tags :: Lens.Lens' GetCustomDataIdentifierResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getCustomDataIdentifierResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
getCustomDataIdentifierResponse_tags = (GetCustomDataIdentifierResponse -> Maybe (HashMap Text Text))
-> (GetCustomDataIdentifierResponse
    -> Maybe (HashMap Text Text) -> GetCustomDataIdentifierResponse)
-> Lens
     GetCustomDataIdentifierResponse
     GetCustomDataIdentifierResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCustomDataIdentifierResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:GetCustomDataIdentifierResponse' :: GetCustomDataIdentifierResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: GetCustomDataIdentifierResponse
s@GetCustomDataIdentifierResponse' {} Maybe (HashMap Text Text)
a -> GetCustomDataIdentifierResponse
s {$sel:tags:GetCustomDataIdentifierResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: GetCustomDataIdentifierResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> GetCustomDataIdentifierResponse
 -> f GetCustomDataIdentifierResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetCustomDataIdentifierResponse
-> f GetCustomDataIdentifierResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
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 AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    GetCustomDataIdentifierResponse