{-# 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.SSM.ListDocumentMetadataHistory
(
ListDocumentMetadataHistory (..),
newListDocumentMetadataHistory,
listDocumentMetadataHistory_nextToken,
listDocumentMetadataHistory_documentVersion,
listDocumentMetadataHistory_maxResults,
listDocumentMetadataHistory_name,
listDocumentMetadataHistory_metadata,
ListDocumentMetadataHistoryResponse (..),
newListDocumentMetadataHistoryResponse,
listDocumentMetadataHistoryResponse_nextToken,
listDocumentMetadataHistoryResponse_name,
listDocumentMetadataHistoryResponse_documentVersion,
listDocumentMetadataHistoryResponse_author,
listDocumentMetadataHistoryResponse_metadata,
listDocumentMetadataHistoryResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SSM.Types
data ListDocumentMetadataHistory = ListDocumentMetadataHistory'
{
ListDocumentMetadataHistory -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDocumentMetadataHistory -> Maybe Text
documentVersion :: Prelude.Maybe Prelude.Text,
ListDocumentMetadataHistory -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListDocumentMetadataHistory -> Text
name :: Prelude.Text,
ListDocumentMetadataHistory -> DocumentMetadataEnum
metadata :: DocumentMetadataEnum
}
deriving (ListDocumentMetadataHistory -> ListDocumentMetadataHistory -> Bool
(ListDocumentMetadataHistory
-> ListDocumentMetadataHistory -> Bool)
-> (ListDocumentMetadataHistory
-> ListDocumentMetadataHistory -> Bool)
-> Eq ListDocumentMetadataHistory
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDocumentMetadataHistory -> ListDocumentMetadataHistory -> Bool
$c/= :: ListDocumentMetadataHistory -> ListDocumentMetadataHistory -> Bool
== :: ListDocumentMetadataHistory -> ListDocumentMetadataHistory -> Bool
$c== :: ListDocumentMetadataHistory -> ListDocumentMetadataHistory -> Bool
Prelude.Eq, ReadPrec [ListDocumentMetadataHistory]
ReadPrec ListDocumentMetadataHistory
Int -> ReadS ListDocumentMetadataHistory
ReadS [ListDocumentMetadataHistory]
(Int -> ReadS ListDocumentMetadataHistory)
-> ReadS [ListDocumentMetadataHistory]
-> ReadPrec ListDocumentMetadataHistory
-> ReadPrec [ListDocumentMetadataHistory]
-> Read ListDocumentMetadataHistory
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDocumentMetadataHistory]
$creadListPrec :: ReadPrec [ListDocumentMetadataHistory]
readPrec :: ReadPrec ListDocumentMetadataHistory
$creadPrec :: ReadPrec ListDocumentMetadataHistory
readList :: ReadS [ListDocumentMetadataHistory]
$creadList :: ReadS [ListDocumentMetadataHistory]
readsPrec :: Int -> ReadS ListDocumentMetadataHistory
$creadsPrec :: Int -> ReadS ListDocumentMetadataHistory
Prelude.Read, Int -> ListDocumentMetadataHistory -> ShowS
[ListDocumentMetadataHistory] -> ShowS
ListDocumentMetadataHistory -> String
(Int -> ListDocumentMetadataHistory -> ShowS)
-> (ListDocumentMetadataHistory -> String)
-> ([ListDocumentMetadataHistory] -> ShowS)
-> Show ListDocumentMetadataHistory
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDocumentMetadataHistory] -> ShowS
$cshowList :: [ListDocumentMetadataHistory] -> ShowS
show :: ListDocumentMetadataHistory -> String
$cshow :: ListDocumentMetadataHistory -> String
showsPrec :: Int -> ListDocumentMetadataHistory -> ShowS
$cshowsPrec :: Int -> ListDocumentMetadataHistory -> ShowS
Prelude.Show, (forall x.
ListDocumentMetadataHistory -> Rep ListDocumentMetadataHistory x)
-> (forall x.
Rep ListDocumentMetadataHistory x -> ListDocumentMetadataHistory)
-> Generic ListDocumentMetadataHistory
forall x.
Rep ListDocumentMetadataHistory x -> ListDocumentMetadataHistory
forall x.
ListDocumentMetadataHistory -> Rep ListDocumentMetadataHistory x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDocumentMetadataHistory x -> ListDocumentMetadataHistory
$cfrom :: forall x.
ListDocumentMetadataHistory -> Rep ListDocumentMetadataHistory x
Prelude.Generic)
newListDocumentMetadataHistory ::
Prelude.Text ->
DocumentMetadataEnum ->
ListDocumentMetadataHistory
newListDocumentMetadataHistory :: Text -> DocumentMetadataEnum -> ListDocumentMetadataHistory
newListDocumentMetadataHistory Text
pName_ DocumentMetadataEnum
pMetadata_ =
ListDocumentMetadataHistory' :: Maybe Text
-> Maybe Text
-> Maybe Natural
-> Text
-> DocumentMetadataEnum
-> ListDocumentMetadataHistory
ListDocumentMetadataHistory'
{ $sel:nextToken:ListDocumentMetadataHistory' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:documentVersion:ListDocumentMetadataHistory' :: Maybe Text
documentVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListDocumentMetadataHistory' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:name:ListDocumentMetadataHistory' :: Text
name = Text
pName_,
$sel:metadata:ListDocumentMetadataHistory' :: DocumentMetadataEnum
metadata = DocumentMetadataEnum
pMetadata_
}
listDocumentMetadataHistory_nextToken :: Lens.Lens' ListDocumentMetadataHistory (Prelude.Maybe Prelude.Text)
listDocumentMetadataHistory_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDocumentMetadataHistory -> f ListDocumentMetadataHistory
listDocumentMetadataHistory_nextToken = (ListDocumentMetadataHistory -> Maybe Text)
-> (ListDocumentMetadataHistory
-> Maybe Text -> ListDocumentMetadataHistory)
-> Lens
ListDocumentMetadataHistory
ListDocumentMetadataHistory
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistory' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDocumentMetadataHistory' :: ListDocumentMetadataHistory -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDocumentMetadataHistory
s@ListDocumentMetadataHistory' {} Maybe Text
a -> ListDocumentMetadataHistory
s {$sel:nextToken:ListDocumentMetadataHistory' :: Maybe Text
nextToken = Maybe Text
a} :: ListDocumentMetadataHistory)
listDocumentMetadataHistory_documentVersion :: Lens.Lens' ListDocumentMetadataHistory (Prelude.Maybe Prelude.Text)
listDocumentMetadataHistory_documentVersion :: (Maybe Text -> f (Maybe Text))
-> ListDocumentMetadataHistory -> f ListDocumentMetadataHistory
listDocumentMetadataHistory_documentVersion = (ListDocumentMetadataHistory -> Maybe Text)
-> (ListDocumentMetadataHistory
-> Maybe Text -> ListDocumentMetadataHistory)
-> Lens
ListDocumentMetadataHistory
ListDocumentMetadataHistory
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistory' {Maybe Text
documentVersion :: Maybe Text
$sel:documentVersion:ListDocumentMetadataHistory' :: ListDocumentMetadataHistory -> Maybe Text
documentVersion} -> Maybe Text
documentVersion) (\s :: ListDocumentMetadataHistory
s@ListDocumentMetadataHistory' {} Maybe Text
a -> ListDocumentMetadataHistory
s {$sel:documentVersion:ListDocumentMetadataHistory' :: Maybe Text
documentVersion = Maybe Text
a} :: ListDocumentMetadataHistory)
listDocumentMetadataHistory_maxResults :: Lens.Lens' ListDocumentMetadataHistory (Prelude.Maybe Prelude.Natural)
listDocumentMetadataHistory_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDocumentMetadataHistory -> f ListDocumentMetadataHistory
listDocumentMetadataHistory_maxResults = (ListDocumentMetadataHistory -> Maybe Natural)
-> (ListDocumentMetadataHistory
-> Maybe Natural -> ListDocumentMetadataHistory)
-> Lens
ListDocumentMetadataHistory
ListDocumentMetadataHistory
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistory' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDocumentMetadataHistory' :: ListDocumentMetadataHistory -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDocumentMetadataHistory
s@ListDocumentMetadataHistory' {} Maybe Natural
a -> ListDocumentMetadataHistory
s {$sel:maxResults:ListDocumentMetadataHistory' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDocumentMetadataHistory)
listDocumentMetadataHistory_name :: Lens.Lens' ListDocumentMetadataHistory Prelude.Text
listDocumentMetadataHistory_name :: (Text -> f Text)
-> ListDocumentMetadataHistory -> f ListDocumentMetadataHistory
listDocumentMetadataHistory_name = (ListDocumentMetadataHistory -> Text)
-> (ListDocumentMetadataHistory
-> Text -> ListDocumentMetadataHistory)
-> Lens
ListDocumentMetadataHistory ListDocumentMetadataHistory Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistory' {Text
name :: Text
$sel:name:ListDocumentMetadataHistory' :: ListDocumentMetadataHistory -> Text
name} -> Text
name) (\s :: ListDocumentMetadataHistory
s@ListDocumentMetadataHistory' {} Text
a -> ListDocumentMetadataHistory
s {$sel:name:ListDocumentMetadataHistory' :: Text
name = Text
a} :: ListDocumentMetadataHistory)
listDocumentMetadataHistory_metadata :: Lens.Lens' ListDocumentMetadataHistory DocumentMetadataEnum
listDocumentMetadataHistory_metadata :: (DocumentMetadataEnum -> f DocumentMetadataEnum)
-> ListDocumentMetadataHistory -> f ListDocumentMetadataHistory
listDocumentMetadataHistory_metadata = (ListDocumentMetadataHistory -> DocumentMetadataEnum)
-> (ListDocumentMetadataHistory
-> DocumentMetadataEnum -> ListDocumentMetadataHistory)
-> Lens
ListDocumentMetadataHistory
ListDocumentMetadataHistory
DocumentMetadataEnum
DocumentMetadataEnum
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistory' {DocumentMetadataEnum
metadata :: DocumentMetadataEnum
$sel:metadata:ListDocumentMetadataHistory' :: ListDocumentMetadataHistory -> DocumentMetadataEnum
metadata} -> DocumentMetadataEnum
metadata) (\s :: ListDocumentMetadataHistory
s@ListDocumentMetadataHistory' {} DocumentMetadataEnum
a -> ListDocumentMetadataHistory
s {$sel:metadata:ListDocumentMetadataHistory' :: DocumentMetadataEnum
metadata = DocumentMetadataEnum
a} :: ListDocumentMetadataHistory)
instance Core.AWSRequest ListDocumentMetadataHistory where
type
AWSResponse ListDocumentMetadataHistory =
ListDocumentMetadataHistoryResponse
request :: ListDocumentMetadataHistory -> Request ListDocumentMetadataHistory
request = Service
-> ListDocumentMetadataHistory
-> Request ListDocumentMetadataHistory
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListDocumentMetadataHistory
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListDocumentMetadataHistory)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListDocumentMetadataHistory))
-> Logger
-> Service
-> Proxy ListDocumentMetadataHistory
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListDocumentMetadataHistory)))
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 Text
-> Maybe Text
-> Maybe Text
-> Maybe DocumentMetadataResponseInfo
-> Int
-> ListDocumentMetadataHistoryResponse
ListDocumentMetadataHistoryResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DocumentMetadataResponseInfo
-> Int
-> ListDocumentMetadataHistoryResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DocumentMetadataResponseInfo
-> Int
-> ListDocumentMetadataHistoryResponse)
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
"NextToken")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DocumentMetadataResponseInfo
-> Int
-> ListDocumentMetadataHistoryResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe DocumentMetadataResponseInfo
-> Int
-> ListDocumentMetadataHistoryResponse)
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 DocumentMetadataResponseInfo
-> Int
-> ListDocumentMetadataHistoryResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe DocumentMetadataResponseInfo
-> Int
-> ListDocumentMetadataHistoryResponse)
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
"DocumentVersion")
Either
String
(Maybe Text
-> Maybe DocumentMetadataResponseInfo
-> Int
-> ListDocumentMetadataHistoryResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe DocumentMetadataResponseInfo
-> Int -> ListDocumentMetadataHistoryResponse)
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
"Author")
Either
String
(Maybe DocumentMetadataResponseInfo
-> Int -> ListDocumentMetadataHistoryResponse)
-> Either String (Maybe DocumentMetadataResponseInfo)
-> Either String (Int -> ListDocumentMetadataHistoryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe DocumentMetadataResponseInfo)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Metadata")
Either String (Int -> ListDocumentMetadataHistoryResponse)
-> Either String Int
-> Either String ListDocumentMetadataHistoryResponse
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 ListDocumentMetadataHistory
instance Prelude.NFData ListDocumentMetadataHistory
instance Core.ToHeaders ListDocumentMetadataHistory where
toHeaders :: ListDocumentMetadataHistory -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListDocumentMetadataHistory -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonSSM.ListDocumentMetadataHistory" ::
Prelude.ByteString
),
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.ToJSON ListDocumentMetadataHistory where
toJSON :: ListDocumentMetadataHistory -> Value
toJSON ListDocumentMetadataHistory' {Maybe Natural
Maybe Text
Text
DocumentMetadataEnum
metadata :: DocumentMetadataEnum
name :: Text
maxResults :: Maybe Natural
documentVersion :: Maybe Text
nextToken :: Maybe Text
$sel:metadata:ListDocumentMetadataHistory' :: ListDocumentMetadataHistory -> DocumentMetadataEnum
$sel:name:ListDocumentMetadataHistory' :: ListDocumentMetadataHistory -> Text
$sel:maxResults:ListDocumentMetadataHistory' :: ListDocumentMetadataHistory -> Maybe Natural
$sel:documentVersion:ListDocumentMetadataHistory' :: ListDocumentMetadataHistory -> Maybe Text
$sel:nextToken:ListDocumentMetadataHistory' :: ListDocumentMetadataHistory -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"DocumentVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
documentVersion,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Metadata" Text -> DocumentMetadataEnum -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= DocumentMetadataEnum
metadata)
]
)
instance Core.ToPath ListDocumentMetadataHistory where
toPath :: ListDocumentMetadataHistory -> ByteString
toPath = ByteString -> ListDocumentMetadataHistory -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListDocumentMetadataHistory where
toQuery :: ListDocumentMetadataHistory -> QueryString
toQuery = QueryString -> ListDocumentMetadataHistory -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListDocumentMetadataHistoryResponse = ListDocumentMetadataHistoryResponse'
{
ListDocumentMetadataHistoryResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDocumentMetadataHistoryResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ListDocumentMetadataHistoryResponse -> Maybe Text
documentVersion :: Prelude.Maybe Prelude.Text,
ListDocumentMetadataHistoryResponse -> Maybe Text
author :: Prelude.Maybe Prelude.Text,
ListDocumentMetadataHistoryResponse
-> Maybe DocumentMetadataResponseInfo
metadata :: Prelude.Maybe DocumentMetadataResponseInfo,
ListDocumentMetadataHistoryResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListDocumentMetadataHistoryResponse
-> ListDocumentMetadataHistoryResponse -> Bool
(ListDocumentMetadataHistoryResponse
-> ListDocumentMetadataHistoryResponse -> Bool)
-> (ListDocumentMetadataHistoryResponse
-> ListDocumentMetadataHistoryResponse -> Bool)
-> Eq ListDocumentMetadataHistoryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDocumentMetadataHistoryResponse
-> ListDocumentMetadataHistoryResponse -> Bool
$c/= :: ListDocumentMetadataHistoryResponse
-> ListDocumentMetadataHistoryResponse -> Bool
== :: ListDocumentMetadataHistoryResponse
-> ListDocumentMetadataHistoryResponse -> Bool
$c== :: ListDocumentMetadataHistoryResponse
-> ListDocumentMetadataHistoryResponse -> Bool
Prelude.Eq, ReadPrec [ListDocumentMetadataHistoryResponse]
ReadPrec ListDocumentMetadataHistoryResponse
Int -> ReadS ListDocumentMetadataHistoryResponse
ReadS [ListDocumentMetadataHistoryResponse]
(Int -> ReadS ListDocumentMetadataHistoryResponse)
-> ReadS [ListDocumentMetadataHistoryResponse]
-> ReadPrec ListDocumentMetadataHistoryResponse
-> ReadPrec [ListDocumentMetadataHistoryResponse]
-> Read ListDocumentMetadataHistoryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDocumentMetadataHistoryResponse]
$creadListPrec :: ReadPrec [ListDocumentMetadataHistoryResponse]
readPrec :: ReadPrec ListDocumentMetadataHistoryResponse
$creadPrec :: ReadPrec ListDocumentMetadataHistoryResponse
readList :: ReadS [ListDocumentMetadataHistoryResponse]
$creadList :: ReadS [ListDocumentMetadataHistoryResponse]
readsPrec :: Int -> ReadS ListDocumentMetadataHistoryResponse
$creadsPrec :: Int -> ReadS ListDocumentMetadataHistoryResponse
Prelude.Read, Int -> ListDocumentMetadataHistoryResponse -> ShowS
[ListDocumentMetadataHistoryResponse] -> ShowS
ListDocumentMetadataHistoryResponse -> String
(Int -> ListDocumentMetadataHistoryResponse -> ShowS)
-> (ListDocumentMetadataHistoryResponse -> String)
-> ([ListDocumentMetadataHistoryResponse] -> ShowS)
-> Show ListDocumentMetadataHistoryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDocumentMetadataHistoryResponse] -> ShowS
$cshowList :: [ListDocumentMetadataHistoryResponse] -> ShowS
show :: ListDocumentMetadataHistoryResponse -> String
$cshow :: ListDocumentMetadataHistoryResponse -> String
showsPrec :: Int -> ListDocumentMetadataHistoryResponse -> ShowS
$cshowsPrec :: Int -> ListDocumentMetadataHistoryResponse -> ShowS
Prelude.Show, (forall x.
ListDocumentMetadataHistoryResponse
-> Rep ListDocumentMetadataHistoryResponse x)
-> (forall x.
Rep ListDocumentMetadataHistoryResponse x
-> ListDocumentMetadataHistoryResponse)
-> Generic ListDocumentMetadataHistoryResponse
forall x.
Rep ListDocumentMetadataHistoryResponse x
-> ListDocumentMetadataHistoryResponse
forall x.
ListDocumentMetadataHistoryResponse
-> Rep ListDocumentMetadataHistoryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDocumentMetadataHistoryResponse x
-> ListDocumentMetadataHistoryResponse
$cfrom :: forall x.
ListDocumentMetadataHistoryResponse
-> Rep ListDocumentMetadataHistoryResponse x
Prelude.Generic)
newListDocumentMetadataHistoryResponse ::
Prelude.Int ->
ListDocumentMetadataHistoryResponse
newListDocumentMetadataHistoryResponse :: Int -> ListDocumentMetadataHistoryResponse
newListDocumentMetadataHistoryResponse Int
pHttpStatus_ =
ListDocumentMetadataHistoryResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe DocumentMetadataResponseInfo
-> Int
-> ListDocumentMetadataHistoryResponse
ListDocumentMetadataHistoryResponse'
{ $sel:nextToken:ListDocumentMetadataHistoryResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:ListDocumentMetadataHistoryResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:documentVersion:ListDocumentMetadataHistoryResponse' :: Maybe Text
documentVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:author:ListDocumentMetadataHistoryResponse' :: Maybe Text
author = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:metadata:ListDocumentMetadataHistoryResponse' :: Maybe DocumentMetadataResponseInfo
metadata = Maybe DocumentMetadataResponseInfo
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListDocumentMetadataHistoryResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listDocumentMetadataHistoryResponse_nextToken :: Lens.Lens' ListDocumentMetadataHistoryResponse (Prelude.Maybe Prelude.Text)
listDocumentMetadataHistoryResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDocumentMetadataHistoryResponse
-> f ListDocumentMetadataHistoryResponse
listDocumentMetadataHistoryResponse_nextToken = (ListDocumentMetadataHistoryResponse -> Maybe Text)
-> (ListDocumentMetadataHistoryResponse
-> Maybe Text -> ListDocumentMetadataHistoryResponse)
-> Lens
ListDocumentMetadataHistoryResponse
ListDocumentMetadataHistoryResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistoryResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDocumentMetadataHistoryResponse' :: ListDocumentMetadataHistoryResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDocumentMetadataHistoryResponse
s@ListDocumentMetadataHistoryResponse' {} Maybe Text
a -> ListDocumentMetadataHistoryResponse
s {$sel:nextToken:ListDocumentMetadataHistoryResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDocumentMetadataHistoryResponse)
listDocumentMetadataHistoryResponse_name :: Lens.Lens' ListDocumentMetadataHistoryResponse (Prelude.Maybe Prelude.Text)
listDocumentMetadataHistoryResponse_name :: (Maybe Text -> f (Maybe Text))
-> ListDocumentMetadataHistoryResponse
-> f ListDocumentMetadataHistoryResponse
listDocumentMetadataHistoryResponse_name = (ListDocumentMetadataHistoryResponse -> Maybe Text)
-> (ListDocumentMetadataHistoryResponse
-> Maybe Text -> ListDocumentMetadataHistoryResponse)
-> Lens
ListDocumentMetadataHistoryResponse
ListDocumentMetadataHistoryResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistoryResponse' {Maybe Text
name :: Maybe Text
$sel:name:ListDocumentMetadataHistoryResponse' :: ListDocumentMetadataHistoryResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: ListDocumentMetadataHistoryResponse
s@ListDocumentMetadataHistoryResponse' {} Maybe Text
a -> ListDocumentMetadataHistoryResponse
s {$sel:name:ListDocumentMetadataHistoryResponse' :: Maybe Text
name = Maybe Text
a} :: ListDocumentMetadataHistoryResponse)
listDocumentMetadataHistoryResponse_documentVersion :: Lens.Lens' ListDocumentMetadataHistoryResponse (Prelude.Maybe Prelude.Text)
listDocumentMetadataHistoryResponse_documentVersion :: (Maybe Text -> f (Maybe Text))
-> ListDocumentMetadataHistoryResponse
-> f ListDocumentMetadataHistoryResponse
listDocumentMetadataHistoryResponse_documentVersion = (ListDocumentMetadataHistoryResponse -> Maybe Text)
-> (ListDocumentMetadataHistoryResponse
-> Maybe Text -> ListDocumentMetadataHistoryResponse)
-> Lens
ListDocumentMetadataHistoryResponse
ListDocumentMetadataHistoryResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistoryResponse' {Maybe Text
documentVersion :: Maybe Text
$sel:documentVersion:ListDocumentMetadataHistoryResponse' :: ListDocumentMetadataHistoryResponse -> Maybe Text
documentVersion} -> Maybe Text
documentVersion) (\s :: ListDocumentMetadataHistoryResponse
s@ListDocumentMetadataHistoryResponse' {} Maybe Text
a -> ListDocumentMetadataHistoryResponse
s {$sel:documentVersion:ListDocumentMetadataHistoryResponse' :: Maybe Text
documentVersion = Maybe Text
a} :: ListDocumentMetadataHistoryResponse)
listDocumentMetadataHistoryResponse_author :: Lens.Lens' ListDocumentMetadataHistoryResponse (Prelude.Maybe Prelude.Text)
listDocumentMetadataHistoryResponse_author :: (Maybe Text -> f (Maybe Text))
-> ListDocumentMetadataHistoryResponse
-> f ListDocumentMetadataHistoryResponse
listDocumentMetadataHistoryResponse_author = (ListDocumentMetadataHistoryResponse -> Maybe Text)
-> (ListDocumentMetadataHistoryResponse
-> Maybe Text -> ListDocumentMetadataHistoryResponse)
-> Lens
ListDocumentMetadataHistoryResponse
ListDocumentMetadataHistoryResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistoryResponse' {Maybe Text
author :: Maybe Text
$sel:author:ListDocumentMetadataHistoryResponse' :: ListDocumentMetadataHistoryResponse -> Maybe Text
author} -> Maybe Text
author) (\s :: ListDocumentMetadataHistoryResponse
s@ListDocumentMetadataHistoryResponse' {} Maybe Text
a -> ListDocumentMetadataHistoryResponse
s {$sel:author:ListDocumentMetadataHistoryResponse' :: Maybe Text
author = Maybe Text
a} :: ListDocumentMetadataHistoryResponse)
listDocumentMetadataHistoryResponse_metadata :: Lens.Lens' ListDocumentMetadataHistoryResponse (Prelude.Maybe DocumentMetadataResponseInfo)
listDocumentMetadataHistoryResponse_metadata :: (Maybe DocumentMetadataResponseInfo
-> f (Maybe DocumentMetadataResponseInfo))
-> ListDocumentMetadataHistoryResponse
-> f ListDocumentMetadataHistoryResponse
listDocumentMetadataHistoryResponse_metadata = (ListDocumentMetadataHistoryResponse
-> Maybe DocumentMetadataResponseInfo)
-> (ListDocumentMetadataHistoryResponse
-> Maybe DocumentMetadataResponseInfo
-> ListDocumentMetadataHistoryResponse)
-> Lens
ListDocumentMetadataHistoryResponse
ListDocumentMetadataHistoryResponse
(Maybe DocumentMetadataResponseInfo)
(Maybe DocumentMetadataResponseInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistoryResponse' {Maybe DocumentMetadataResponseInfo
metadata :: Maybe DocumentMetadataResponseInfo
$sel:metadata:ListDocumentMetadataHistoryResponse' :: ListDocumentMetadataHistoryResponse
-> Maybe DocumentMetadataResponseInfo
metadata} -> Maybe DocumentMetadataResponseInfo
metadata) (\s :: ListDocumentMetadataHistoryResponse
s@ListDocumentMetadataHistoryResponse' {} Maybe DocumentMetadataResponseInfo
a -> ListDocumentMetadataHistoryResponse
s {$sel:metadata:ListDocumentMetadataHistoryResponse' :: Maybe DocumentMetadataResponseInfo
metadata = Maybe DocumentMetadataResponseInfo
a} :: ListDocumentMetadataHistoryResponse)
listDocumentMetadataHistoryResponse_httpStatus :: Lens.Lens' ListDocumentMetadataHistoryResponse Prelude.Int
listDocumentMetadataHistoryResponse_httpStatus :: (Int -> f Int)
-> ListDocumentMetadataHistoryResponse
-> f ListDocumentMetadataHistoryResponse
listDocumentMetadataHistoryResponse_httpStatus = (ListDocumentMetadataHistoryResponse -> Int)
-> (ListDocumentMetadataHistoryResponse
-> Int -> ListDocumentMetadataHistoryResponse)
-> Lens
ListDocumentMetadataHistoryResponse
ListDocumentMetadataHistoryResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDocumentMetadataHistoryResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDocumentMetadataHistoryResponse' :: ListDocumentMetadataHistoryResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDocumentMetadataHistoryResponse
s@ListDocumentMetadataHistoryResponse' {} Int
a -> ListDocumentMetadataHistoryResponse
s {$sel:httpStatus:ListDocumentMetadataHistoryResponse' :: Int
httpStatus = Int
a} :: ListDocumentMetadataHistoryResponse)
instance
Prelude.NFData
ListDocumentMetadataHistoryResponse