{-# 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.Outposts.ListCatalogItems
(
ListCatalogItems (..),
newListCatalogItems,
listCatalogItems_eC2FamilyFilter,
listCatalogItems_itemClassFilter,
listCatalogItems_maxResults,
listCatalogItems_nextToken,
listCatalogItems_supportedStorageFilter,
ListCatalogItemsResponse (..),
newListCatalogItemsResponse,
listCatalogItemsResponse_catalogItems,
listCatalogItemsResponse_nextToken,
listCatalogItemsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Outposts.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListCatalogItems = ListCatalogItems'
{
ListCatalogItems -> Maybe [Text]
eC2FamilyFilter :: Prelude.Maybe [Prelude.Text],
ListCatalogItems -> Maybe [CatalogItemClass]
itemClassFilter :: Prelude.Maybe [CatalogItemClass],
ListCatalogItems -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListCatalogItems -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCatalogItems -> Maybe [SupportedStorageEnum]
supportedStorageFilter :: Prelude.Maybe [SupportedStorageEnum]
}
deriving (ListCatalogItems -> ListCatalogItems -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCatalogItems -> ListCatalogItems -> Bool
$c/= :: ListCatalogItems -> ListCatalogItems -> Bool
== :: ListCatalogItems -> ListCatalogItems -> Bool
$c== :: ListCatalogItems -> ListCatalogItems -> Bool
Prelude.Eq, ReadPrec [ListCatalogItems]
ReadPrec ListCatalogItems
Int -> ReadS ListCatalogItems
ReadS [ListCatalogItems]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCatalogItems]
$creadListPrec :: ReadPrec [ListCatalogItems]
readPrec :: ReadPrec ListCatalogItems
$creadPrec :: ReadPrec ListCatalogItems
readList :: ReadS [ListCatalogItems]
$creadList :: ReadS [ListCatalogItems]
readsPrec :: Int -> ReadS ListCatalogItems
$creadsPrec :: Int -> ReadS ListCatalogItems
Prelude.Read, Int -> ListCatalogItems -> ShowS
[ListCatalogItems] -> ShowS
ListCatalogItems -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCatalogItems] -> ShowS
$cshowList :: [ListCatalogItems] -> ShowS
show :: ListCatalogItems -> String
$cshow :: ListCatalogItems -> String
showsPrec :: Int -> ListCatalogItems -> ShowS
$cshowsPrec :: Int -> ListCatalogItems -> ShowS
Prelude.Show, forall x. Rep ListCatalogItems x -> ListCatalogItems
forall x. ListCatalogItems -> Rep ListCatalogItems x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListCatalogItems x -> ListCatalogItems
$cfrom :: forall x. ListCatalogItems -> Rep ListCatalogItems x
Prelude.Generic)
newListCatalogItems ::
ListCatalogItems
newListCatalogItems :: ListCatalogItems
newListCatalogItems =
ListCatalogItems'
{ $sel:eC2FamilyFilter:ListCatalogItems' :: Maybe [Text]
eC2FamilyFilter =
forall a. Maybe a
Prelude.Nothing,
$sel:itemClassFilter:ListCatalogItems' :: Maybe [CatalogItemClass]
itemClassFilter = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListCatalogItems' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListCatalogItems' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:supportedStorageFilter:ListCatalogItems' :: Maybe [SupportedStorageEnum]
supportedStorageFilter = forall a. Maybe a
Prelude.Nothing
}
listCatalogItems_eC2FamilyFilter :: Lens.Lens' ListCatalogItems (Prelude.Maybe [Prelude.Text])
listCatalogItems_eC2FamilyFilter :: Lens' ListCatalogItems (Maybe [Text])
listCatalogItems_eC2FamilyFilter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCatalogItems' {Maybe [Text]
eC2FamilyFilter :: Maybe [Text]
$sel:eC2FamilyFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [Text]
eC2FamilyFilter} -> Maybe [Text]
eC2FamilyFilter) (\s :: ListCatalogItems
s@ListCatalogItems' {} Maybe [Text]
a -> ListCatalogItems
s {$sel:eC2FamilyFilter:ListCatalogItems' :: Maybe [Text]
eC2FamilyFilter = Maybe [Text]
a} :: ListCatalogItems) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listCatalogItems_itemClassFilter :: Lens.Lens' ListCatalogItems (Prelude.Maybe [CatalogItemClass])
listCatalogItems_itemClassFilter :: Lens' ListCatalogItems (Maybe [CatalogItemClass])
listCatalogItems_itemClassFilter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCatalogItems' {Maybe [CatalogItemClass]
itemClassFilter :: Maybe [CatalogItemClass]
$sel:itemClassFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [CatalogItemClass]
itemClassFilter} -> Maybe [CatalogItemClass]
itemClassFilter) (\s :: ListCatalogItems
s@ListCatalogItems' {} Maybe [CatalogItemClass]
a -> ListCatalogItems
s {$sel:itemClassFilter:ListCatalogItems' :: Maybe [CatalogItemClass]
itemClassFilter = Maybe [CatalogItemClass]
a} :: ListCatalogItems) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listCatalogItems_maxResults :: Lens.Lens' ListCatalogItems (Prelude.Maybe Prelude.Natural)
listCatalogItems_maxResults :: Lens' ListCatalogItems (Maybe Natural)
listCatalogItems_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCatalogItems' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListCatalogItems' :: ListCatalogItems -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListCatalogItems
s@ListCatalogItems' {} Maybe Natural
a -> ListCatalogItems
s {$sel:maxResults:ListCatalogItems' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListCatalogItems)
listCatalogItems_nextToken :: Lens.Lens' ListCatalogItems (Prelude.Maybe Prelude.Text)
listCatalogItems_nextToken :: Lens' ListCatalogItems (Maybe Text)
listCatalogItems_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCatalogItems' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCatalogItems' :: ListCatalogItems -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCatalogItems
s@ListCatalogItems' {} Maybe Text
a -> ListCatalogItems
s {$sel:nextToken:ListCatalogItems' :: Maybe Text
nextToken = Maybe Text
a} :: ListCatalogItems)
listCatalogItems_supportedStorageFilter :: Lens.Lens' ListCatalogItems (Prelude.Maybe [SupportedStorageEnum])
listCatalogItems_supportedStorageFilter :: Lens' ListCatalogItems (Maybe [SupportedStorageEnum])
listCatalogItems_supportedStorageFilter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCatalogItems' {Maybe [SupportedStorageEnum]
supportedStorageFilter :: Maybe [SupportedStorageEnum]
$sel:supportedStorageFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [SupportedStorageEnum]
supportedStorageFilter} -> Maybe [SupportedStorageEnum]
supportedStorageFilter) (\s :: ListCatalogItems
s@ListCatalogItems' {} Maybe [SupportedStorageEnum]
a -> ListCatalogItems
s {$sel:supportedStorageFilter:ListCatalogItems' :: Maybe [SupportedStorageEnum]
supportedStorageFilter = Maybe [SupportedStorageEnum]
a} :: ListCatalogItems) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest ListCatalogItems where
type
AWSResponse ListCatalogItems =
ListCatalogItemsResponse
request :: (Service -> Service)
-> ListCatalogItems -> Request ListCatalogItems
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListCatalogItems
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListCatalogItems)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [CatalogItem]
-> Maybe Text -> Int -> ListCatalogItemsResponse
ListCatalogItemsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CatalogItems" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListCatalogItems where
hashWithSalt :: Int -> ListCatalogItems -> Int
hashWithSalt Int
_salt ListCatalogItems' {Maybe Natural
Maybe [Text]
Maybe [CatalogItemClass]
Maybe [SupportedStorageEnum]
Maybe Text
supportedStorageFilter :: Maybe [SupportedStorageEnum]
nextToken :: Maybe Text
maxResults :: Maybe Natural
itemClassFilter :: Maybe [CatalogItemClass]
eC2FamilyFilter :: Maybe [Text]
$sel:supportedStorageFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [SupportedStorageEnum]
$sel:nextToken:ListCatalogItems' :: ListCatalogItems -> Maybe Text
$sel:maxResults:ListCatalogItems' :: ListCatalogItems -> Maybe Natural
$sel:itemClassFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [CatalogItemClass]
$sel:eC2FamilyFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [Text]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Text]
eC2FamilyFilter
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [CatalogItemClass]
itemClassFilter
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [SupportedStorageEnum]
supportedStorageFilter
instance Prelude.NFData ListCatalogItems where
rnf :: ListCatalogItems -> ()
rnf ListCatalogItems' {Maybe Natural
Maybe [Text]
Maybe [CatalogItemClass]
Maybe [SupportedStorageEnum]
Maybe Text
supportedStorageFilter :: Maybe [SupportedStorageEnum]
nextToken :: Maybe Text
maxResults :: Maybe Natural
itemClassFilter :: Maybe [CatalogItemClass]
eC2FamilyFilter :: Maybe [Text]
$sel:supportedStorageFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [SupportedStorageEnum]
$sel:nextToken:ListCatalogItems' :: ListCatalogItems -> Maybe Text
$sel:maxResults:ListCatalogItems' :: ListCatalogItems -> Maybe Natural
$sel:itemClassFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [CatalogItemClass]
$sel:eC2FamilyFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [Text]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [Text]
eC2FamilyFilter
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [CatalogItemClass]
itemClassFilter
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [SupportedStorageEnum]
supportedStorageFilter
instance Data.ToHeaders ListCatalogItems where
toHeaders :: ListCatalogItems -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath ListCatalogItems where
toPath :: ListCatalogItems -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/catalog/items"
instance Data.ToQuery ListCatalogItems where
toQuery :: ListCatalogItems -> QueryString
toQuery ListCatalogItems' {Maybe Natural
Maybe [Text]
Maybe [CatalogItemClass]
Maybe [SupportedStorageEnum]
Maybe Text
supportedStorageFilter :: Maybe [SupportedStorageEnum]
nextToken :: Maybe Text
maxResults :: Maybe Natural
itemClassFilter :: Maybe [CatalogItemClass]
eC2FamilyFilter :: Maybe [Text]
$sel:supportedStorageFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [SupportedStorageEnum]
$sel:nextToken:ListCatalogItems' :: ListCatalogItems -> Maybe Text
$sel:maxResults:ListCatalogItems' :: ListCatalogItems -> Maybe Natural
$sel:itemClassFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [CatalogItemClass]
$sel:eC2FamilyFilter:ListCatalogItems' :: ListCatalogItems -> Maybe [Text]
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"EC2FamilyFilter"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"member"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
eC2FamilyFilter
),
ByteString
"ItemClassFilter"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"member"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [CatalogItemClass]
itemClassFilter
),
ByteString
"MaxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"NextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken,
ByteString
"SupportedStorageFilter"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"member"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [SupportedStorageEnum]
supportedStorageFilter
)
]
data ListCatalogItemsResponse = ListCatalogItemsResponse'
{
ListCatalogItemsResponse -> Maybe [CatalogItem]
catalogItems :: Prelude.Maybe [CatalogItem],
ListCatalogItemsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListCatalogItemsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListCatalogItemsResponse -> ListCatalogItemsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCatalogItemsResponse -> ListCatalogItemsResponse -> Bool
$c/= :: ListCatalogItemsResponse -> ListCatalogItemsResponse -> Bool
== :: ListCatalogItemsResponse -> ListCatalogItemsResponse -> Bool
$c== :: ListCatalogItemsResponse -> ListCatalogItemsResponse -> Bool
Prelude.Eq, ReadPrec [ListCatalogItemsResponse]
ReadPrec ListCatalogItemsResponse
Int -> ReadS ListCatalogItemsResponse
ReadS [ListCatalogItemsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCatalogItemsResponse]
$creadListPrec :: ReadPrec [ListCatalogItemsResponse]
readPrec :: ReadPrec ListCatalogItemsResponse
$creadPrec :: ReadPrec ListCatalogItemsResponse
readList :: ReadS [ListCatalogItemsResponse]
$creadList :: ReadS [ListCatalogItemsResponse]
readsPrec :: Int -> ReadS ListCatalogItemsResponse
$creadsPrec :: Int -> ReadS ListCatalogItemsResponse
Prelude.Read, Int -> ListCatalogItemsResponse -> ShowS
[ListCatalogItemsResponse] -> ShowS
ListCatalogItemsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCatalogItemsResponse] -> ShowS
$cshowList :: [ListCatalogItemsResponse] -> ShowS
show :: ListCatalogItemsResponse -> String
$cshow :: ListCatalogItemsResponse -> String
showsPrec :: Int -> ListCatalogItemsResponse -> ShowS
$cshowsPrec :: Int -> ListCatalogItemsResponse -> ShowS
Prelude.Show, forall x.
Rep ListCatalogItemsResponse x -> ListCatalogItemsResponse
forall x.
ListCatalogItemsResponse -> Rep ListCatalogItemsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCatalogItemsResponse x -> ListCatalogItemsResponse
$cfrom :: forall x.
ListCatalogItemsResponse -> Rep ListCatalogItemsResponse x
Prelude.Generic)
newListCatalogItemsResponse ::
Prelude.Int ->
ListCatalogItemsResponse
newListCatalogItemsResponse :: Int -> ListCatalogItemsResponse
newListCatalogItemsResponse Int
pHttpStatus_ =
ListCatalogItemsResponse'
{ $sel:catalogItems:ListCatalogItemsResponse' :: Maybe [CatalogItem]
catalogItems =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListCatalogItemsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListCatalogItemsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listCatalogItemsResponse_catalogItems :: Lens.Lens' ListCatalogItemsResponse (Prelude.Maybe [CatalogItem])
listCatalogItemsResponse_catalogItems :: Lens' ListCatalogItemsResponse (Maybe [CatalogItem])
listCatalogItemsResponse_catalogItems = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCatalogItemsResponse' {Maybe [CatalogItem]
catalogItems :: Maybe [CatalogItem]
$sel:catalogItems:ListCatalogItemsResponse' :: ListCatalogItemsResponse -> Maybe [CatalogItem]
catalogItems} -> Maybe [CatalogItem]
catalogItems) (\s :: ListCatalogItemsResponse
s@ListCatalogItemsResponse' {} Maybe [CatalogItem]
a -> ListCatalogItemsResponse
s {$sel:catalogItems:ListCatalogItemsResponse' :: Maybe [CatalogItem]
catalogItems = Maybe [CatalogItem]
a} :: ListCatalogItemsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listCatalogItemsResponse_nextToken :: Lens.Lens' ListCatalogItemsResponse (Prelude.Maybe Prelude.Text)
listCatalogItemsResponse_nextToken :: Lens' ListCatalogItemsResponse (Maybe Text)
listCatalogItemsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCatalogItemsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCatalogItemsResponse' :: ListCatalogItemsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCatalogItemsResponse
s@ListCatalogItemsResponse' {} Maybe Text
a -> ListCatalogItemsResponse
s {$sel:nextToken:ListCatalogItemsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListCatalogItemsResponse)
listCatalogItemsResponse_httpStatus :: Lens.Lens' ListCatalogItemsResponse Prelude.Int
listCatalogItemsResponse_httpStatus :: Lens' ListCatalogItemsResponse Int
listCatalogItemsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCatalogItemsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListCatalogItemsResponse' :: ListCatalogItemsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListCatalogItemsResponse
s@ListCatalogItemsResponse' {} Int
a -> ListCatalogItemsResponse
s {$sel:httpStatus:ListCatalogItemsResponse' :: Int
httpStatus = Int
a} :: ListCatalogItemsResponse)
instance Prelude.NFData ListCatalogItemsResponse where
rnf :: ListCatalogItemsResponse -> ()
rnf ListCatalogItemsResponse' {Int
Maybe [CatalogItem]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
catalogItems :: Maybe [CatalogItem]
$sel:httpStatus:ListCatalogItemsResponse' :: ListCatalogItemsResponse -> Int
$sel:nextToken:ListCatalogItemsResponse' :: ListCatalogItemsResponse -> Maybe Text
$sel:catalogItems:ListCatalogItemsResponse' :: ListCatalogItemsResponse -> Maybe [CatalogItem]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [CatalogItem]
catalogItems
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus