{-# 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 #-}
module Amazonka.MacieV2.GetCustomDataIdentifier
(
GetCustomDataIdentifier (..),
newGetCustomDataIdentifier,
getCustomDataIdentifier_id,
GetCustomDataIdentifierResponse (..),
newGetCustomDataIdentifierResponse,
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
data GetCustomDataIdentifier = GetCustomDataIdentifier'
{
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)
newGetCustomDataIdentifier ::
Prelude.Text ->
GetCustomDataIdentifier
newGetCustomDataIdentifier :: Text -> GetCustomDataIdentifier
newGetCustomDataIdentifier Text
pId_ =
GetCustomDataIdentifier' :: Text -> GetCustomDataIdentifier
GetCustomDataIdentifier' {$sel:id:GetCustomDataIdentifier' :: Text
id = Text
pId_}
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
data GetCustomDataIdentifierResponse = GetCustomDataIdentifierResponse'
{
GetCustomDataIdentifierResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
GetCustomDataIdentifierResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
GetCustomDataIdentifierResponse -> Maybe Text
regex :: Prelude.Maybe Prelude.Text,
GetCustomDataIdentifierResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetCustomDataIdentifierResponse -> Maybe [Text]
keywords :: Prelude.Maybe [Prelude.Text],
GetCustomDataIdentifierResponse -> Maybe [Text]
ignoreWords :: Prelude.Maybe [Prelude.Text],
GetCustomDataIdentifierResponse -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
GetCustomDataIdentifierResponse -> Maybe Bool
deleted :: Prelude.Maybe Prelude.Bool,
GetCustomDataIdentifierResponse -> Maybe Int
maximumMatchDistance :: Prelude.Maybe Prelude.Int,
GetCustomDataIdentifierResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
GetCustomDataIdentifierResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
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)
newGetCustomDataIdentifierResponse ::
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_
}
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)
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
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)
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)
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
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
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)
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)
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)
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)
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
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