{-# 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.ListInventoryEntries
(
ListInventoryEntries (..),
newListInventoryEntries,
listInventoryEntries_filters,
listInventoryEntries_nextToken,
listInventoryEntries_maxResults,
listInventoryEntries_instanceId,
listInventoryEntries_typeName,
ListInventoryEntriesResponse (..),
newListInventoryEntriesResponse,
listInventoryEntriesResponse_instanceId,
listInventoryEntriesResponse_typeName,
listInventoryEntriesResponse_entries,
listInventoryEntriesResponse_schemaVersion,
listInventoryEntriesResponse_captureTime,
listInventoryEntriesResponse_nextToken,
listInventoryEntriesResponse_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 ListInventoryEntries = ListInventoryEntries'
{
ListInventoryEntries -> Maybe (NonEmpty InventoryFilter)
filters :: Prelude.Maybe (Prelude.NonEmpty InventoryFilter),
ListInventoryEntries -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListInventoryEntries -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListInventoryEntries -> Text
instanceId :: Prelude.Text,
ListInventoryEntries -> Text
typeName :: Prelude.Text
}
deriving (ListInventoryEntries -> ListInventoryEntries -> Bool
(ListInventoryEntries -> ListInventoryEntries -> Bool)
-> (ListInventoryEntries -> ListInventoryEntries -> Bool)
-> Eq ListInventoryEntries
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInventoryEntries -> ListInventoryEntries -> Bool
$c/= :: ListInventoryEntries -> ListInventoryEntries -> Bool
== :: ListInventoryEntries -> ListInventoryEntries -> Bool
$c== :: ListInventoryEntries -> ListInventoryEntries -> Bool
Prelude.Eq, ReadPrec [ListInventoryEntries]
ReadPrec ListInventoryEntries
Int -> ReadS ListInventoryEntries
ReadS [ListInventoryEntries]
(Int -> ReadS ListInventoryEntries)
-> ReadS [ListInventoryEntries]
-> ReadPrec ListInventoryEntries
-> ReadPrec [ListInventoryEntries]
-> Read ListInventoryEntries
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInventoryEntries]
$creadListPrec :: ReadPrec [ListInventoryEntries]
readPrec :: ReadPrec ListInventoryEntries
$creadPrec :: ReadPrec ListInventoryEntries
readList :: ReadS [ListInventoryEntries]
$creadList :: ReadS [ListInventoryEntries]
readsPrec :: Int -> ReadS ListInventoryEntries
$creadsPrec :: Int -> ReadS ListInventoryEntries
Prelude.Read, Int -> ListInventoryEntries -> ShowS
[ListInventoryEntries] -> ShowS
ListInventoryEntries -> String
(Int -> ListInventoryEntries -> ShowS)
-> (ListInventoryEntries -> String)
-> ([ListInventoryEntries] -> ShowS)
-> Show ListInventoryEntries
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInventoryEntries] -> ShowS
$cshowList :: [ListInventoryEntries] -> ShowS
show :: ListInventoryEntries -> String
$cshow :: ListInventoryEntries -> String
showsPrec :: Int -> ListInventoryEntries -> ShowS
$cshowsPrec :: Int -> ListInventoryEntries -> ShowS
Prelude.Show, (forall x. ListInventoryEntries -> Rep ListInventoryEntries x)
-> (forall x. Rep ListInventoryEntries x -> ListInventoryEntries)
-> Generic ListInventoryEntries
forall x. Rep ListInventoryEntries x -> ListInventoryEntries
forall x. ListInventoryEntries -> Rep ListInventoryEntries x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListInventoryEntries x -> ListInventoryEntries
$cfrom :: forall x. ListInventoryEntries -> Rep ListInventoryEntries x
Prelude.Generic)
newListInventoryEntries ::
Prelude.Text ->
Prelude.Text ->
ListInventoryEntries
newListInventoryEntries :: Text -> Text -> ListInventoryEntries
newListInventoryEntries Text
pInstanceId_ Text
pTypeName_ =
ListInventoryEntries' :: Maybe (NonEmpty InventoryFilter)
-> Maybe Text
-> Maybe Natural
-> Text
-> Text
-> ListInventoryEntries
ListInventoryEntries'
{ $sel:filters:ListInventoryEntries' :: Maybe (NonEmpty InventoryFilter)
filters = Maybe (NonEmpty InventoryFilter)
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListInventoryEntries' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListInventoryEntries' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:instanceId:ListInventoryEntries' :: Text
instanceId = Text
pInstanceId_,
$sel:typeName:ListInventoryEntries' :: Text
typeName = Text
pTypeName_
}
listInventoryEntries_filters :: Lens.Lens' ListInventoryEntries (Prelude.Maybe (Prelude.NonEmpty InventoryFilter))
listInventoryEntries_filters :: (Maybe (NonEmpty InventoryFilter)
-> f (Maybe (NonEmpty InventoryFilter)))
-> ListInventoryEntries -> f ListInventoryEntries
listInventoryEntries_filters = (ListInventoryEntries -> Maybe (NonEmpty InventoryFilter))
-> (ListInventoryEntries
-> Maybe (NonEmpty InventoryFilter) -> ListInventoryEntries)
-> Lens
ListInventoryEntries
ListInventoryEntries
(Maybe (NonEmpty InventoryFilter))
(Maybe (NonEmpty InventoryFilter))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntries' {Maybe (NonEmpty InventoryFilter)
filters :: Maybe (NonEmpty InventoryFilter)
$sel:filters:ListInventoryEntries' :: ListInventoryEntries -> Maybe (NonEmpty InventoryFilter)
filters} -> Maybe (NonEmpty InventoryFilter)
filters) (\s :: ListInventoryEntries
s@ListInventoryEntries' {} Maybe (NonEmpty InventoryFilter)
a -> ListInventoryEntries
s {$sel:filters:ListInventoryEntries' :: Maybe (NonEmpty InventoryFilter)
filters = Maybe (NonEmpty InventoryFilter)
a} :: ListInventoryEntries) ((Maybe (NonEmpty InventoryFilter)
-> f (Maybe (NonEmpty InventoryFilter)))
-> ListInventoryEntries -> f ListInventoryEntries)
-> ((Maybe (NonEmpty InventoryFilter)
-> f (Maybe (NonEmpty InventoryFilter)))
-> Maybe (NonEmpty InventoryFilter)
-> f (Maybe (NonEmpty InventoryFilter)))
-> (Maybe (NonEmpty InventoryFilter)
-> f (Maybe (NonEmpty InventoryFilter)))
-> ListInventoryEntries
-> f ListInventoryEntries
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty InventoryFilter)
(NonEmpty InventoryFilter)
(NonEmpty InventoryFilter)
(NonEmpty InventoryFilter)
-> Iso
(Maybe (NonEmpty InventoryFilter))
(Maybe (NonEmpty InventoryFilter))
(Maybe (NonEmpty InventoryFilter))
(Maybe (NonEmpty InventoryFilter))
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
(NonEmpty InventoryFilter)
(NonEmpty InventoryFilter)
(NonEmpty InventoryFilter)
(NonEmpty InventoryFilter)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listInventoryEntries_nextToken :: Lens.Lens' ListInventoryEntries (Prelude.Maybe Prelude.Text)
listInventoryEntries_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListInventoryEntries -> f ListInventoryEntries
listInventoryEntries_nextToken = (ListInventoryEntries -> Maybe Text)
-> (ListInventoryEntries -> Maybe Text -> ListInventoryEntries)
-> Lens
ListInventoryEntries ListInventoryEntries (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntries' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInventoryEntries' :: ListInventoryEntries -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInventoryEntries
s@ListInventoryEntries' {} Maybe Text
a -> ListInventoryEntries
s {$sel:nextToken:ListInventoryEntries' :: Maybe Text
nextToken = Maybe Text
a} :: ListInventoryEntries)
listInventoryEntries_maxResults :: Lens.Lens' ListInventoryEntries (Prelude.Maybe Prelude.Natural)
listInventoryEntries_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListInventoryEntries -> f ListInventoryEntries
listInventoryEntries_maxResults = (ListInventoryEntries -> Maybe Natural)
-> (ListInventoryEntries -> Maybe Natural -> ListInventoryEntries)
-> Lens
ListInventoryEntries
ListInventoryEntries
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntries' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListInventoryEntries' :: ListInventoryEntries -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListInventoryEntries
s@ListInventoryEntries' {} Maybe Natural
a -> ListInventoryEntries
s {$sel:maxResults:ListInventoryEntries' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListInventoryEntries)
listInventoryEntries_instanceId :: Lens.Lens' ListInventoryEntries Prelude.Text
listInventoryEntries_instanceId :: (Text -> f Text) -> ListInventoryEntries -> f ListInventoryEntries
listInventoryEntries_instanceId = (ListInventoryEntries -> Text)
-> (ListInventoryEntries -> Text -> ListInventoryEntries)
-> Lens ListInventoryEntries ListInventoryEntries Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntries' {Text
instanceId :: Text
$sel:instanceId:ListInventoryEntries' :: ListInventoryEntries -> Text
instanceId} -> Text
instanceId) (\s :: ListInventoryEntries
s@ListInventoryEntries' {} Text
a -> ListInventoryEntries
s {$sel:instanceId:ListInventoryEntries' :: Text
instanceId = Text
a} :: ListInventoryEntries)
listInventoryEntries_typeName :: Lens.Lens' ListInventoryEntries Prelude.Text
listInventoryEntries_typeName :: (Text -> f Text) -> ListInventoryEntries -> f ListInventoryEntries
listInventoryEntries_typeName = (ListInventoryEntries -> Text)
-> (ListInventoryEntries -> Text -> ListInventoryEntries)
-> Lens ListInventoryEntries ListInventoryEntries Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntries' {Text
typeName :: Text
$sel:typeName:ListInventoryEntries' :: ListInventoryEntries -> Text
typeName} -> Text
typeName) (\s :: ListInventoryEntries
s@ListInventoryEntries' {} Text
a -> ListInventoryEntries
s {$sel:typeName:ListInventoryEntries' :: Text
typeName = Text
a} :: ListInventoryEntries)
instance Core.AWSRequest ListInventoryEntries where
type
AWSResponse ListInventoryEntries =
ListInventoryEntriesResponse
request :: ListInventoryEntries -> Request ListInventoryEntries
request = Service -> ListInventoryEntries -> Request ListInventoryEntries
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListInventoryEntries
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListInventoryEntries)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListInventoryEntries))
-> Logger
-> Service
-> Proxy ListInventoryEntries
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListInventoryEntries)))
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 [HashMap Text Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ListInventoryEntriesResponse
ListInventoryEntriesResponse'
(Maybe Text
-> Maybe Text
-> Maybe [HashMap Text Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ListInventoryEntriesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [HashMap Text Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ListInventoryEntriesResponse)
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
"InstanceId")
Either
String
(Maybe Text
-> Maybe [HashMap Text Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ListInventoryEntriesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [HashMap Text Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ListInventoryEntriesResponse)
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
"TypeName")
Either
String
(Maybe [HashMap Text Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ListInventoryEntriesResponse)
-> Either String (Maybe [HashMap Text Text])
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> ListInventoryEntriesResponse)
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
"Entries" 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
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> ListInventoryEntriesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> ListInventoryEntriesResponse)
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
"SchemaVersion")
Either
String
(Maybe Text -> Maybe Text -> Int -> ListInventoryEntriesResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Int -> ListInventoryEntriesResponse)
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
"CaptureTime")
Either String (Maybe Text -> Int -> ListInventoryEntriesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListInventoryEntriesResponse)
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
"NextToken")
Either String (Int -> ListInventoryEntriesResponse)
-> Either String Int -> Either String ListInventoryEntriesResponse
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 ListInventoryEntries
instance Prelude.NFData ListInventoryEntries
instance Core.ToHeaders ListInventoryEntries where
toHeaders :: ListInventoryEntries -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListInventoryEntries -> 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.ListInventoryEntries" ::
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 ListInventoryEntries where
toJSON :: ListInventoryEntries -> Value
toJSON ListInventoryEntries' {Maybe Natural
Maybe (NonEmpty InventoryFilter)
Maybe Text
Text
typeName :: Text
instanceId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe (NonEmpty InventoryFilter)
$sel:typeName:ListInventoryEntries' :: ListInventoryEntries -> Text
$sel:instanceId:ListInventoryEntries' :: ListInventoryEntries -> Text
$sel:maxResults:ListInventoryEntries' :: ListInventoryEntries -> Maybe Natural
$sel:nextToken:ListInventoryEntries' :: ListInventoryEntries -> Maybe Text
$sel:filters:ListInventoryEntries' :: ListInventoryEntries -> Maybe (NonEmpty InventoryFilter)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Filters" Text -> NonEmpty InventoryFilter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty InventoryFilter -> Pair)
-> Maybe (NonEmpty InventoryFilter) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty InventoryFilter)
filters,
(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
"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
"InstanceId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
instanceId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"TypeName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
typeName)
]
)
instance Core.ToPath ListInventoryEntries where
toPath :: ListInventoryEntries -> ByteString
toPath = ByteString -> ListInventoryEntries -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListInventoryEntries where
toQuery :: ListInventoryEntries -> QueryString
toQuery = QueryString -> ListInventoryEntries -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListInventoryEntriesResponse = ListInventoryEntriesResponse'
{
ListInventoryEntriesResponse -> Maybe Text
instanceId :: Prelude.Maybe Prelude.Text,
ListInventoryEntriesResponse -> Maybe Text
typeName :: Prelude.Maybe Prelude.Text,
ListInventoryEntriesResponse -> Maybe [HashMap Text Text]
entries :: Prelude.Maybe [Prelude.HashMap Prelude.Text Prelude.Text],
ListInventoryEntriesResponse -> Maybe Text
schemaVersion :: Prelude.Maybe Prelude.Text,
ListInventoryEntriesResponse -> Maybe Text
captureTime :: Prelude.Maybe Prelude.Text,
ListInventoryEntriesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListInventoryEntriesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListInventoryEntriesResponse
-> ListInventoryEntriesResponse -> Bool
(ListInventoryEntriesResponse
-> ListInventoryEntriesResponse -> Bool)
-> (ListInventoryEntriesResponse
-> ListInventoryEntriesResponse -> Bool)
-> Eq ListInventoryEntriesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInventoryEntriesResponse
-> ListInventoryEntriesResponse -> Bool
$c/= :: ListInventoryEntriesResponse
-> ListInventoryEntriesResponse -> Bool
== :: ListInventoryEntriesResponse
-> ListInventoryEntriesResponse -> Bool
$c== :: ListInventoryEntriesResponse
-> ListInventoryEntriesResponse -> Bool
Prelude.Eq, ReadPrec [ListInventoryEntriesResponse]
ReadPrec ListInventoryEntriesResponse
Int -> ReadS ListInventoryEntriesResponse
ReadS [ListInventoryEntriesResponse]
(Int -> ReadS ListInventoryEntriesResponse)
-> ReadS [ListInventoryEntriesResponse]
-> ReadPrec ListInventoryEntriesResponse
-> ReadPrec [ListInventoryEntriesResponse]
-> Read ListInventoryEntriesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInventoryEntriesResponse]
$creadListPrec :: ReadPrec [ListInventoryEntriesResponse]
readPrec :: ReadPrec ListInventoryEntriesResponse
$creadPrec :: ReadPrec ListInventoryEntriesResponse
readList :: ReadS [ListInventoryEntriesResponse]
$creadList :: ReadS [ListInventoryEntriesResponse]
readsPrec :: Int -> ReadS ListInventoryEntriesResponse
$creadsPrec :: Int -> ReadS ListInventoryEntriesResponse
Prelude.Read, Int -> ListInventoryEntriesResponse -> ShowS
[ListInventoryEntriesResponse] -> ShowS
ListInventoryEntriesResponse -> String
(Int -> ListInventoryEntriesResponse -> ShowS)
-> (ListInventoryEntriesResponse -> String)
-> ([ListInventoryEntriesResponse] -> ShowS)
-> Show ListInventoryEntriesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInventoryEntriesResponse] -> ShowS
$cshowList :: [ListInventoryEntriesResponse] -> ShowS
show :: ListInventoryEntriesResponse -> String
$cshow :: ListInventoryEntriesResponse -> String
showsPrec :: Int -> ListInventoryEntriesResponse -> ShowS
$cshowsPrec :: Int -> ListInventoryEntriesResponse -> ShowS
Prelude.Show, (forall x.
ListInventoryEntriesResponse -> Rep ListInventoryEntriesResponse x)
-> (forall x.
Rep ListInventoryEntriesResponse x -> ListInventoryEntriesResponse)
-> Generic ListInventoryEntriesResponse
forall x.
Rep ListInventoryEntriesResponse x -> ListInventoryEntriesResponse
forall x.
ListInventoryEntriesResponse -> Rep ListInventoryEntriesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInventoryEntriesResponse x -> ListInventoryEntriesResponse
$cfrom :: forall x.
ListInventoryEntriesResponse -> Rep ListInventoryEntriesResponse x
Prelude.Generic)
newListInventoryEntriesResponse ::
Prelude.Int ->
ListInventoryEntriesResponse
newListInventoryEntriesResponse :: Int -> ListInventoryEntriesResponse
newListInventoryEntriesResponse Int
pHttpStatus_ =
ListInventoryEntriesResponse' :: Maybe Text
-> Maybe Text
-> Maybe [HashMap Text Text]
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ListInventoryEntriesResponse
ListInventoryEntriesResponse'
{ $sel:instanceId:ListInventoryEntriesResponse' :: Maybe Text
instanceId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:typeName:ListInventoryEntriesResponse' :: Maybe Text
typeName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:entries:ListInventoryEntriesResponse' :: Maybe [HashMap Text Text]
entries = Maybe [HashMap Text Text]
forall a. Maybe a
Prelude.Nothing,
$sel:schemaVersion:ListInventoryEntriesResponse' :: Maybe Text
schemaVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:captureTime:ListInventoryEntriesResponse' :: Maybe Text
captureTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListInventoryEntriesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListInventoryEntriesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listInventoryEntriesResponse_instanceId :: Lens.Lens' ListInventoryEntriesResponse (Prelude.Maybe Prelude.Text)
listInventoryEntriesResponse_instanceId :: (Maybe Text -> f (Maybe Text))
-> ListInventoryEntriesResponse -> f ListInventoryEntriesResponse
listInventoryEntriesResponse_instanceId = (ListInventoryEntriesResponse -> Maybe Text)
-> (ListInventoryEntriesResponse
-> Maybe Text -> ListInventoryEntriesResponse)
-> Lens
ListInventoryEntriesResponse
ListInventoryEntriesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntriesResponse' {Maybe Text
instanceId :: Maybe Text
$sel:instanceId:ListInventoryEntriesResponse' :: ListInventoryEntriesResponse -> Maybe Text
instanceId} -> Maybe Text
instanceId) (\s :: ListInventoryEntriesResponse
s@ListInventoryEntriesResponse' {} Maybe Text
a -> ListInventoryEntriesResponse
s {$sel:instanceId:ListInventoryEntriesResponse' :: Maybe Text
instanceId = Maybe Text
a} :: ListInventoryEntriesResponse)
listInventoryEntriesResponse_typeName :: Lens.Lens' ListInventoryEntriesResponse (Prelude.Maybe Prelude.Text)
listInventoryEntriesResponse_typeName :: (Maybe Text -> f (Maybe Text))
-> ListInventoryEntriesResponse -> f ListInventoryEntriesResponse
listInventoryEntriesResponse_typeName = (ListInventoryEntriesResponse -> Maybe Text)
-> (ListInventoryEntriesResponse
-> Maybe Text -> ListInventoryEntriesResponse)
-> Lens
ListInventoryEntriesResponse
ListInventoryEntriesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntriesResponse' {Maybe Text
typeName :: Maybe Text
$sel:typeName:ListInventoryEntriesResponse' :: ListInventoryEntriesResponse -> Maybe Text
typeName} -> Maybe Text
typeName) (\s :: ListInventoryEntriesResponse
s@ListInventoryEntriesResponse' {} Maybe Text
a -> ListInventoryEntriesResponse
s {$sel:typeName:ListInventoryEntriesResponse' :: Maybe Text
typeName = Maybe Text
a} :: ListInventoryEntriesResponse)
listInventoryEntriesResponse_entries :: Lens.Lens' ListInventoryEntriesResponse (Prelude.Maybe [Prelude.HashMap Prelude.Text Prelude.Text])
listInventoryEntriesResponse_entries :: (Maybe [HashMap Text Text] -> f (Maybe [HashMap Text Text]))
-> ListInventoryEntriesResponse -> f ListInventoryEntriesResponse
listInventoryEntriesResponse_entries = (ListInventoryEntriesResponse -> Maybe [HashMap Text Text])
-> (ListInventoryEntriesResponse
-> Maybe [HashMap Text Text] -> ListInventoryEntriesResponse)
-> Lens
ListInventoryEntriesResponse
ListInventoryEntriesResponse
(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 (\ListInventoryEntriesResponse' {Maybe [HashMap Text Text]
entries :: Maybe [HashMap Text Text]
$sel:entries:ListInventoryEntriesResponse' :: ListInventoryEntriesResponse -> Maybe [HashMap Text Text]
entries} -> Maybe [HashMap Text Text]
entries) (\s :: ListInventoryEntriesResponse
s@ListInventoryEntriesResponse' {} Maybe [HashMap Text Text]
a -> ListInventoryEntriesResponse
s {$sel:entries:ListInventoryEntriesResponse' :: Maybe [HashMap Text Text]
entries = Maybe [HashMap Text Text]
a} :: ListInventoryEntriesResponse) ((Maybe [HashMap Text Text] -> f (Maybe [HashMap Text Text]))
-> ListInventoryEntriesResponse -> f ListInventoryEntriesResponse)
-> ((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]))
-> ListInventoryEntriesResponse
-> f ListInventoryEntriesResponse
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
listInventoryEntriesResponse_schemaVersion :: Lens.Lens' ListInventoryEntriesResponse (Prelude.Maybe Prelude.Text)
listInventoryEntriesResponse_schemaVersion :: (Maybe Text -> f (Maybe Text))
-> ListInventoryEntriesResponse -> f ListInventoryEntriesResponse
listInventoryEntriesResponse_schemaVersion = (ListInventoryEntriesResponse -> Maybe Text)
-> (ListInventoryEntriesResponse
-> Maybe Text -> ListInventoryEntriesResponse)
-> Lens
ListInventoryEntriesResponse
ListInventoryEntriesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntriesResponse' {Maybe Text
schemaVersion :: Maybe Text
$sel:schemaVersion:ListInventoryEntriesResponse' :: ListInventoryEntriesResponse -> Maybe Text
schemaVersion} -> Maybe Text
schemaVersion) (\s :: ListInventoryEntriesResponse
s@ListInventoryEntriesResponse' {} Maybe Text
a -> ListInventoryEntriesResponse
s {$sel:schemaVersion:ListInventoryEntriesResponse' :: Maybe Text
schemaVersion = Maybe Text
a} :: ListInventoryEntriesResponse)
listInventoryEntriesResponse_captureTime :: Lens.Lens' ListInventoryEntriesResponse (Prelude.Maybe Prelude.Text)
listInventoryEntriesResponse_captureTime :: (Maybe Text -> f (Maybe Text))
-> ListInventoryEntriesResponse -> f ListInventoryEntriesResponse
listInventoryEntriesResponse_captureTime = (ListInventoryEntriesResponse -> Maybe Text)
-> (ListInventoryEntriesResponse
-> Maybe Text -> ListInventoryEntriesResponse)
-> Lens
ListInventoryEntriesResponse
ListInventoryEntriesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntriesResponse' {Maybe Text
captureTime :: Maybe Text
$sel:captureTime:ListInventoryEntriesResponse' :: ListInventoryEntriesResponse -> Maybe Text
captureTime} -> Maybe Text
captureTime) (\s :: ListInventoryEntriesResponse
s@ListInventoryEntriesResponse' {} Maybe Text
a -> ListInventoryEntriesResponse
s {$sel:captureTime:ListInventoryEntriesResponse' :: Maybe Text
captureTime = Maybe Text
a} :: ListInventoryEntriesResponse)
listInventoryEntriesResponse_nextToken :: Lens.Lens' ListInventoryEntriesResponse (Prelude.Maybe Prelude.Text)
listInventoryEntriesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListInventoryEntriesResponse -> f ListInventoryEntriesResponse
listInventoryEntriesResponse_nextToken = (ListInventoryEntriesResponse -> Maybe Text)
-> (ListInventoryEntriesResponse
-> Maybe Text -> ListInventoryEntriesResponse)
-> Lens
ListInventoryEntriesResponse
ListInventoryEntriesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntriesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListInventoryEntriesResponse' :: ListInventoryEntriesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListInventoryEntriesResponse
s@ListInventoryEntriesResponse' {} Maybe Text
a -> ListInventoryEntriesResponse
s {$sel:nextToken:ListInventoryEntriesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListInventoryEntriesResponse)
listInventoryEntriesResponse_httpStatus :: Lens.Lens' ListInventoryEntriesResponse Prelude.Int
listInventoryEntriesResponse_httpStatus :: (Int -> f Int)
-> ListInventoryEntriesResponse -> f ListInventoryEntriesResponse
listInventoryEntriesResponse_httpStatus = (ListInventoryEntriesResponse -> Int)
-> (ListInventoryEntriesResponse
-> Int -> ListInventoryEntriesResponse)
-> Lens
ListInventoryEntriesResponse ListInventoryEntriesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInventoryEntriesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListInventoryEntriesResponse' :: ListInventoryEntriesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListInventoryEntriesResponse
s@ListInventoryEntriesResponse' {} Int
a -> ListInventoryEntriesResponse
s {$sel:httpStatus:ListInventoryEntriesResponse' :: Int
httpStatus = Int
a} :: ListInventoryEntriesResponse)
instance Prelude.NFData ListInventoryEntriesResponse