{-# 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.ImageBuilder.ListComponents
(
ListComponents (..),
newListComponents,
listComponents_filters,
listComponents_owner,
listComponents_byName,
listComponents_nextToken,
listComponents_maxResults,
ListComponentsResponse (..),
newListComponentsResponse,
listComponentsResponse_requestId,
listComponentsResponse_componentVersionList,
listComponentsResponse_nextToken,
listComponentsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ImageBuilder.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListComponents = ListComponents'
{
ListComponents -> Maybe (NonEmpty Filter)
filters :: Prelude.Maybe (Prelude.NonEmpty Filter),
ListComponents -> Maybe Ownership
owner :: Prelude.Maybe Ownership,
ListComponents -> Maybe Bool
byName :: Prelude.Maybe Prelude.Bool,
ListComponents -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListComponents -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListComponents -> ListComponents -> Bool
(ListComponents -> ListComponents -> Bool)
-> (ListComponents -> ListComponents -> Bool) -> Eq ListComponents
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListComponents -> ListComponents -> Bool
$c/= :: ListComponents -> ListComponents -> Bool
== :: ListComponents -> ListComponents -> Bool
$c== :: ListComponents -> ListComponents -> Bool
Prelude.Eq, ReadPrec [ListComponents]
ReadPrec ListComponents
Int -> ReadS ListComponents
ReadS [ListComponents]
(Int -> ReadS ListComponents)
-> ReadS [ListComponents]
-> ReadPrec ListComponents
-> ReadPrec [ListComponents]
-> Read ListComponents
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListComponents]
$creadListPrec :: ReadPrec [ListComponents]
readPrec :: ReadPrec ListComponents
$creadPrec :: ReadPrec ListComponents
readList :: ReadS [ListComponents]
$creadList :: ReadS [ListComponents]
readsPrec :: Int -> ReadS ListComponents
$creadsPrec :: Int -> ReadS ListComponents
Prelude.Read, Int -> ListComponents -> ShowS
[ListComponents] -> ShowS
ListComponents -> String
(Int -> ListComponents -> ShowS)
-> (ListComponents -> String)
-> ([ListComponents] -> ShowS)
-> Show ListComponents
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListComponents] -> ShowS
$cshowList :: [ListComponents] -> ShowS
show :: ListComponents -> String
$cshow :: ListComponents -> String
showsPrec :: Int -> ListComponents -> ShowS
$cshowsPrec :: Int -> ListComponents -> ShowS
Prelude.Show, (forall x. ListComponents -> Rep ListComponents x)
-> (forall x. Rep ListComponents x -> ListComponents)
-> Generic ListComponents
forall x. Rep ListComponents x -> ListComponents
forall x. ListComponents -> Rep ListComponents x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListComponents x -> ListComponents
$cfrom :: forall x. ListComponents -> Rep ListComponents x
Prelude.Generic)
newListComponents ::
ListComponents
newListComponents :: ListComponents
newListComponents =
ListComponents' :: Maybe (NonEmpty Filter)
-> Maybe Ownership
-> Maybe Bool
-> Maybe Text
-> Maybe Natural
-> ListComponents
ListComponents'
{ $sel:filters:ListComponents' :: Maybe (NonEmpty Filter)
filters = Maybe (NonEmpty Filter)
forall a. Maybe a
Prelude.Nothing,
$sel:owner:ListComponents' :: Maybe Ownership
owner = Maybe Ownership
forall a. Maybe a
Prelude.Nothing,
$sel:byName:ListComponents' :: Maybe Bool
byName = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListComponents' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListComponents' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listComponents_filters :: Lens.Lens' ListComponents (Prelude.Maybe (Prelude.NonEmpty Filter))
listComponents_filters :: (Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> ListComponents -> f ListComponents
listComponents_filters = (ListComponents -> Maybe (NonEmpty Filter))
-> (ListComponents -> Maybe (NonEmpty Filter) -> ListComponents)
-> Lens
ListComponents
ListComponents
(Maybe (NonEmpty Filter))
(Maybe (NonEmpty Filter))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponents' {Maybe (NonEmpty Filter)
filters :: Maybe (NonEmpty Filter)
$sel:filters:ListComponents' :: ListComponents -> Maybe (NonEmpty Filter)
filters} -> Maybe (NonEmpty Filter)
filters) (\s :: ListComponents
s@ListComponents' {} Maybe (NonEmpty Filter)
a -> ListComponents
s {$sel:filters:ListComponents' :: Maybe (NonEmpty Filter)
filters = Maybe (NonEmpty Filter)
a} :: ListComponents) ((Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> ListComponents -> f ListComponents)
-> ((Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> (Maybe (NonEmpty Filter) -> f (Maybe (NonEmpty Filter)))
-> ListComponents
-> f ListComponents
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Filter)
(NonEmpty Filter)
(NonEmpty Filter)
(NonEmpty Filter)
-> Iso
(Maybe (NonEmpty Filter))
(Maybe (NonEmpty Filter))
(Maybe (NonEmpty Filter))
(Maybe (NonEmpty Filter))
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 Filter)
(NonEmpty Filter)
(NonEmpty Filter)
(NonEmpty Filter)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listComponents_owner :: Lens.Lens' ListComponents (Prelude.Maybe Ownership)
listComponents_owner :: (Maybe Ownership -> f (Maybe Ownership))
-> ListComponents -> f ListComponents
listComponents_owner = (ListComponents -> Maybe Ownership)
-> (ListComponents -> Maybe Ownership -> ListComponents)
-> Lens
ListComponents ListComponents (Maybe Ownership) (Maybe Ownership)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponents' {Maybe Ownership
owner :: Maybe Ownership
$sel:owner:ListComponents' :: ListComponents -> Maybe Ownership
owner} -> Maybe Ownership
owner) (\s :: ListComponents
s@ListComponents' {} Maybe Ownership
a -> ListComponents
s {$sel:owner:ListComponents' :: Maybe Ownership
owner = Maybe Ownership
a} :: ListComponents)
listComponents_byName :: Lens.Lens' ListComponents (Prelude.Maybe Prelude.Bool)
listComponents_byName :: (Maybe Bool -> f (Maybe Bool))
-> ListComponents -> f ListComponents
listComponents_byName = (ListComponents -> Maybe Bool)
-> (ListComponents -> Maybe Bool -> ListComponents)
-> Lens ListComponents ListComponents (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponents' {Maybe Bool
byName :: Maybe Bool
$sel:byName:ListComponents' :: ListComponents -> Maybe Bool
byName} -> Maybe Bool
byName) (\s :: ListComponents
s@ListComponents' {} Maybe Bool
a -> ListComponents
s {$sel:byName:ListComponents' :: Maybe Bool
byName = Maybe Bool
a} :: ListComponents)
listComponents_nextToken :: Lens.Lens' ListComponents (Prelude.Maybe Prelude.Text)
listComponents_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListComponents -> f ListComponents
listComponents_nextToken = (ListComponents -> Maybe Text)
-> (ListComponents -> Maybe Text -> ListComponents)
-> Lens ListComponents ListComponents (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponents' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListComponents' :: ListComponents -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListComponents
s@ListComponents' {} Maybe Text
a -> ListComponents
s {$sel:nextToken:ListComponents' :: Maybe Text
nextToken = Maybe Text
a} :: ListComponents)
listComponents_maxResults :: Lens.Lens' ListComponents (Prelude.Maybe Prelude.Natural)
listComponents_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListComponents -> f ListComponents
listComponents_maxResults = (ListComponents -> Maybe Natural)
-> (ListComponents -> Maybe Natural -> ListComponents)
-> Lens
ListComponents ListComponents (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponents' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListComponents' :: ListComponents -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListComponents
s@ListComponents' {} Maybe Natural
a -> ListComponents
s {$sel:maxResults:ListComponents' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListComponents)
instance Core.AWSRequest ListComponents where
type
AWSResponse ListComponents =
ListComponentsResponse
request :: ListComponents -> Request ListComponents
request = Service -> ListComponents -> Request ListComponents
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListComponents
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListComponents)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListComponents))
-> Logger
-> Service
-> Proxy ListComponents
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListComponents)))
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 [ComponentVersion]
-> Maybe Text
-> Int
-> ListComponentsResponse
ListComponentsResponse'
(Maybe Text
-> Maybe [ComponentVersion]
-> Maybe Text
-> Int
-> ListComponentsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ComponentVersion]
-> Maybe Text -> Int -> ListComponentsResponse)
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
"requestId")
Either
String
(Maybe [ComponentVersion]
-> Maybe Text -> Int -> ListComponentsResponse)
-> Either String (Maybe [ComponentVersion])
-> Either String (Maybe Text -> Int -> ListComponentsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [ComponentVersion]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"componentVersionList"
Either String (Maybe (Maybe [ComponentVersion]))
-> Maybe [ComponentVersion]
-> Either String (Maybe [ComponentVersion])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ComponentVersion]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListComponentsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListComponentsResponse)
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 -> ListComponentsResponse)
-> Either String Int -> Either String ListComponentsResponse
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 ListComponents
instance Prelude.NFData ListComponents
instance Core.ToHeaders ListComponents where
toHeaders :: ListComponents -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListComponents -> 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.ToJSON ListComponents where
toJSON :: ListComponents -> Value
toJSON ListComponents' {Maybe Bool
Maybe Natural
Maybe (NonEmpty Filter)
Maybe Text
Maybe Ownership
maxResults :: Maybe Natural
nextToken :: Maybe Text
byName :: Maybe Bool
owner :: Maybe Ownership
filters :: Maybe (NonEmpty Filter)
$sel:maxResults:ListComponents' :: ListComponents -> Maybe Natural
$sel:nextToken:ListComponents' :: ListComponents -> Maybe Text
$sel:byName:ListComponents' :: ListComponents -> Maybe Bool
$sel:owner:ListComponents' :: ListComponents -> Maybe Ownership
$sel:filters:ListComponents' :: ListComponents -> Maybe (NonEmpty Filter)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"filters" Text -> NonEmpty Filter -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Filter -> Pair) -> Maybe (NonEmpty Filter) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Filter)
filters,
(Text
"owner" Text -> Ownership -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Ownership -> Pair) -> Maybe Ownership -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Ownership
owner,
(Text
"byName" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
byName,
(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
]
)
instance Core.ToPath ListComponents where
toPath :: ListComponents -> ByteString
toPath = ByteString -> ListComponents -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/ListComponents"
instance Core.ToQuery ListComponents where
toQuery :: ListComponents -> QueryString
toQuery = QueryString -> ListComponents -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListComponentsResponse = ListComponentsResponse'
{
ListComponentsResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
ListComponentsResponse -> Maybe [ComponentVersion]
componentVersionList :: Prelude.Maybe [ComponentVersion],
ListComponentsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListComponentsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListComponentsResponse -> ListComponentsResponse -> Bool
(ListComponentsResponse -> ListComponentsResponse -> Bool)
-> (ListComponentsResponse -> ListComponentsResponse -> Bool)
-> Eq ListComponentsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListComponentsResponse -> ListComponentsResponse -> Bool
$c/= :: ListComponentsResponse -> ListComponentsResponse -> Bool
== :: ListComponentsResponse -> ListComponentsResponse -> Bool
$c== :: ListComponentsResponse -> ListComponentsResponse -> Bool
Prelude.Eq, ReadPrec [ListComponentsResponse]
ReadPrec ListComponentsResponse
Int -> ReadS ListComponentsResponse
ReadS [ListComponentsResponse]
(Int -> ReadS ListComponentsResponse)
-> ReadS [ListComponentsResponse]
-> ReadPrec ListComponentsResponse
-> ReadPrec [ListComponentsResponse]
-> Read ListComponentsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListComponentsResponse]
$creadListPrec :: ReadPrec [ListComponentsResponse]
readPrec :: ReadPrec ListComponentsResponse
$creadPrec :: ReadPrec ListComponentsResponse
readList :: ReadS [ListComponentsResponse]
$creadList :: ReadS [ListComponentsResponse]
readsPrec :: Int -> ReadS ListComponentsResponse
$creadsPrec :: Int -> ReadS ListComponentsResponse
Prelude.Read, Int -> ListComponentsResponse -> ShowS
[ListComponentsResponse] -> ShowS
ListComponentsResponse -> String
(Int -> ListComponentsResponse -> ShowS)
-> (ListComponentsResponse -> String)
-> ([ListComponentsResponse] -> ShowS)
-> Show ListComponentsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListComponentsResponse] -> ShowS
$cshowList :: [ListComponentsResponse] -> ShowS
show :: ListComponentsResponse -> String
$cshow :: ListComponentsResponse -> String
showsPrec :: Int -> ListComponentsResponse -> ShowS
$cshowsPrec :: Int -> ListComponentsResponse -> ShowS
Prelude.Show, (forall x. ListComponentsResponse -> Rep ListComponentsResponse x)
-> (forall x.
Rep ListComponentsResponse x -> ListComponentsResponse)
-> Generic ListComponentsResponse
forall x. Rep ListComponentsResponse x -> ListComponentsResponse
forall x. ListComponentsResponse -> Rep ListComponentsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListComponentsResponse x -> ListComponentsResponse
$cfrom :: forall x. ListComponentsResponse -> Rep ListComponentsResponse x
Prelude.Generic)
newListComponentsResponse ::
Prelude.Int ->
ListComponentsResponse
newListComponentsResponse :: Int -> ListComponentsResponse
newListComponentsResponse Int
pHttpStatus_ =
ListComponentsResponse' :: Maybe Text
-> Maybe [ComponentVersion]
-> Maybe Text
-> Int
-> ListComponentsResponse
ListComponentsResponse'
{ $sel:requestId:ListComponentsResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:componentVersionList:ListComponentsResponse' :: Maybe [ComponentVersion]
componentVersionList = Maybe [ComponentVersion]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListComponentsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListComponentsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listComponentsResponse_requestId :: Lens.Lens' ListComponentsResponse (Prelude.Maybe Prelude.Text)
listComponentsResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> ListComponentsResponse -> f ListComponentsResponse
listComponentsResponse_requestId = (ListComponentsResponse -> Maybe Text)
-> (ListComponentsResponse -> Maybe Text -> ListComponentsResponse)
-> Lens
ListComponentsResponse
ListComponentsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponentsResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListComponentsResponse' :: ListComponentsResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListComponentsResponse
s@ListComponentsResponse' {} Maybe Text
a -> ListComponentsResponse
s {$sel:requestId:ListComponentsResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListComponentsResponse)
listComponentsResponse_componentVersionList :: Lens.Lens' ListComponentsResponse (Prelude.Maybe [ComponentVersion])
listComponentsResponse_componentVersionList :: (Maybe [ComponentVersion] -> f (Maybe [ComponentVersion]))
-> ListComponentsResponse -> f ListComponentsResponse
listComponentsResponse_componentVersionList = (ListComponentsResponse -> Maybe [ComponentVersion])
-> (ListComponentsResponse
-> Maybe [ComponentVersion] -> ListComponentsResponse)
-> Lens
ListComponentsResponse
ListComponentsResponse
(Maybe [ComponentVersion])
(Maybe [ComponentVersion])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponentsResponse' {Maybe [ComponentVersion]
componentVersionList :: Maybe [ComponentVersion]
$sel:componentVersionList:ListComponentsResponse' :: ListComponentsResponse -> Maybe [ComponentVersion]
componentVersionList} -> Maybe [ComponentVersion]
componentVersionList) (\s :: ListComponentsResponse
s@ListComponentsResponse' {} Maybe [ComponentVersion]
a -> ListComponentsResponse
s {$sel:componentVersionList:ListComponentsResponse' :: Maybe [ComponentVersion]
componentVersionList = Maybe [ComponentVersion]
a} :: ListComponentsResponse) ((Maybe [ComponentVersion] -> f (Maybe [ComponentVersion]))
-> ListComponentsResponse -> f ListComponentsResponse)
-> ((Maybe [ComponentVersion] -> f (Maybe [ComponentVersion]))
-> Maybe [ComponentVersion] -> f (Maybe [ComponentVersion]))
-> (Maybe [ComponentVersion] -> f (Maybe [ComponentVersion]))
-> ListComponentsResponse
-> f ListComponentsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ComponentVersion]
[ComponentVersion]
[ComponentVersion]
[ComponentVersion]
-> Iso
(Maybe [ComponentVersion])
(Maybe [ComponentVersion])
(Maybe [ComponentVersion])
(Maybe [ComponentVersion])
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
[ComponentVersion]
[ComponentVersion]
[ComponentVersion]
[ComponentVersion]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listComponentsResponse_nextToken :: Lens.Lens' ListComponentsResponse (Prelude.Maybe Prelude.Text)
listComponentsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListComponentsResponse -> f ListComponentsResponse
listComponentsResponse_nextToken = (ListComponentsResponse -> Maybe Text)
-> (ListComponentsResponse -> Maybe Text -> ListComponentsResponse)
-> Lens
ListComponentsResponse
ListComponentsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponentsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListComponentsResponse' :: ListComponentsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListComponentsResponse
s@ListComponentsResponse' {} Maybe Text
a -> ListComponentsResponse
s {$sel:nextToken:ListComponentsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListComponentsResponse)
listComponentsResponse_httpStatus :: Lens.Lens' ListComponentsResponse Prelude.Int
listComponentsResponse_httpStatus :: (Int -> f Int)
-> ListComponentsResponse -> f ListComponentsResponse
listComponentsResponse_httpStatus = (ListComponentsResponse -> Int)
-> (ListComponentsResponse -> Int -> ListComponentsResponse)
-> Lens ListComponentsResponse ListComponentsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListComponentsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListComponentsResponse' :: ListComponentsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListComponentsResponse
s@ListComponentsResponse' {} Int
a -> ListComponentsResponse
s {$sel:httpStatus:ListComponentsResponse' :: Int
httpStatus = Int
a} :: ListComponentsResponse)
instance Prelude.NFData ListComponentsResponse