{-# 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.CloudDirectory.ListAttachedIndices
(
ListAttachedIndices (..),
newListAttachedIndices,
listAttachedIndices_consistencyLevel,
listAttachedIndices_maxResults,
listAttachedIndices_nextToken,
listAttachedIndices_directoryArn,
listAttachedIndices_targetReference,
ListAttachedIndicesResponse (..),
newListAttachedIndicesResponse,
listAttachedIndicesResponse_indexAttachments,
listAttachedIndicesResponse_nextToken,
listAttachedIndicesResponse_httpStatus,
)
where
import Amazonka.CloudDirectory.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListAttachedIndices = ListAttachedIndices'
{
ListAttachedIndices -> Maybe ConsistencyLevel
consistencyLevel :: Prelude.Maybe ConsistencyLevel,
ListAttachedIndices -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListAttachedIndices -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAttachedIndices -> Text
directoryArn :: Prelude.Text,
ListAttachedIndices -> ObjectReference
targetReference :: ObjectReference
}
deriving (ListAttachedIndices -> ListAttachedIndices -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAttachedIndices -> ListAttachedIndices -> Bool
$c/= :: ListAttachedIndices -> ListAttachedIndices -> Bool
== :: ListAttachedIndices -> ListAttachedIndices -> Bool
$c== :: ListAttachedIndices -> ListAttachedIndices -> Bool
Prelude.Eq, ReadPrec [ListAttachedIndices]
ReadPrec ListAttachedIndices
Int -> ReadS ListAttachedIndices
ReadS [ListAttachedIndices]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAttachedIndices]
$creadListPrec :: ReadPrec [ListAttachedIndices]
readPrec :: ReadPrec ListAttachedIndices
$creadPrec :: ReadPrec ListAttachedIndices
readList :: ReadS [ListAttachedIndices]
$creadList :: ReadS [ListAttachedIndices]
readsPrec :: Int -> ReadS ListAttachedIndices
$creadsPrec :: Int -> ReadS ListAttachedIndices
Prelude.Read, Int -> ListAttachedIndices -> ShowS
[ListAttachedIndices] -> ShowS
ListAttachedIndices -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAttachedIndices] -> ShowS
$cshowList :: [ListAttachedIndices] -> ShowS
show :: ListAttachedIndices -> String
$cshow :: ListAttachedIndices -> String
showsPrec :: Int -> ListAttachedIndices -> ShowS
$cshowsPrec :: Int -> ListAttachedIndices -> ShowS
Prelude.Show, forall x. Rep ListAttachedIndices x -> ListAttachedIndices
forall x. ListAttachedIndices -> Rep ListAttachedIndices x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAttachedIndices x -> ListAttachedIndices
$cfrom :: forall x. ListAttachedIndices -> Rep ListAttachedIndices x
Prelude.Generic)
newListAttachedIndices ::
Prelude.Text ->
ObjectReference ->
ListAttachedIndices
newListAttachedIndices :: Text -> ObjectReference -> ListAttachedIndices
newListAttachedIndices
Text
pDirectoryArn_
ObjectReference
pTargetReference_ =
ListAttachedIndices'
{ $sel:consistencyLevel:ListAttachedIndices' :: Maybe ConsistencyLevel
consistencyLevel =
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAttachedIndices' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAttachedIndices' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:directoryArn:ListAttachedIndices' :: Text
directoryArn = Text
pDirectoryArn_,
$sel:targetReference:ListAttachedIndices' :: ObjectReference
targetReference = ObjectReference
pTargetReference_
}
listAttachedIndices_consistencyLevel :: Lens.Lens' ListAttachedIndices (Prelude.Maybe ConsistencyLevel)
listAttachedIndices_consistencyLevel :: Lens' ListAttachedIndices (Maybe ConsistencyLevel)
listAttachedIndices_consistencyLevel = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedIndices' {Maybe ConsistencyLevel
consistencyLevel :: Maybe ConsistencyLevel
$sel:consistencyLevel:ListAttachedIndices' :: ListAttachedIndices -> Maybe ConsistencyLevel
consistencyLevel} -> Maybe ConsistencyLevel
consistencyLevel) (\s :: ListAttachedIndices
s@ListAttachedIndices' {} Maybe ConsistencyLevel
a -> ListAttachedIndices
s {$sel:consistencyLevel:ListAttachedIndices' :: Maybe ConsistencyLevel
consistencyLevel = Maybe ConsistencyLevel
a} :: ListAttachedIndices)
listAttachedIndices_maxResults :: Lens.Lens' ListAttachedIndices (Prelude.Maybe Prelude.Natural)
listAttachedIndices_maxResults :: Lens' ListAttachedIndices (Maybe Natural)
listAttachedIndices_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedIndices' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAttachedIndices' :: ListAttachedIndices -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAttachedIndices
s@ListAttachedIndices' {} Maybe Natural
a -> ListAttachedIndices
s {$sel:maxResults:ListAttachedIndices' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAttachedIndices)
listAttachedIndices_nextToken :: Lens.Lens' ListAttachedIndices (Prelude.Maybe Prelude.Text)
listAttachedIndices_nextToken :: Lens' ListAttachedIndices (Maybe Text)
listAttachedIndices_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedIndices' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAttachedIndices' :: ListAttachedIndices -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAttachedIndices
s@ListAttachedIndices' {} Maybe Text
a -> ListAttachedIndices
s {$sel:nextToken:ListAttachedIndices' :: Maybe Text
nextToken = Maybe Text
a} :: ListAttachedIndices)
listAttachedIndices_directoryArn :: Lens.Lens' ListAttachedIndices Prelude.Text
listAttachedIndices_directoryArn :: Lens' ListAttachedIndices Text
listAttachedIndices_directoryArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedIndices' {Text
directoryArn :: Text
$sel:directoryArn:ListAttachedIndices' :: ListAttachedIndices -> Text
directoryArn} -> Text
directoryArn) (\s :: ListAttachedIndices
s@ListAttachedIndices' {} Text
a -> ListAttachedIndices
s {$sel:directoryArn:ListAttachedIndices' :: Text
directoryArn = Text
a} :: ListAttachedIndices)
listAttachedIndices_targetReference :: Lens.Lens' ListAttachedIndices ObjectReference
listAttachedIndices_targetReference :: Lens' ListAttachedIndices ObjectReference
listAttachedIndices_targetReference = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedIndices' {ObjectReference
targetReference :: ObjectReference
$sel:targetReference:ListAttachedIndices' :: ListAttachedIndices -> ObjectReference
targetReference} -> ObjectReference
targetReference) (\s :: ListAttachedIndices
s@ListAttachedIndices' {} ObjectReference
a -> ListAttachedIndices
s {$sel:targetReference:ListAttachedIndices' :: ObjectReference
targetReference = ObjectReference
a} :: ListAttachedIndices)
instance Core.AWSPager ListAttachedIndices where
page :: ListAttachedIndices
-> AWSResponse ListAttachedIndices -> Maybe ListAttachedIndices
page ListAttachedIndices
rq AWSResponse ListAttachedIndices
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAttachedIndices
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedIndicesResponse (Maybe Text)
listAttachedIndicesResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAttachedIndices
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedIndicesResponse (Maybe [IndexAttachment])
listAttachedIndicesResponse_indexAttachments
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListAttachedIndices
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListAttachedIndices (Maybe Text)
listAttachedIndices_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAttachedIndices
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAttachedIndicesResponse (Maybe Text)
listAttachedIndicesResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListAttachedIndices where
type
AWSResponse ListAttachedIndices =
ListAttachedIndicesResponse
request :: (Service -> Service)
-> ListAttachedIndices -> Request ListAttachedIndices
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListAttachedIndices
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAttachedIndices)))
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 [IndexAttachment]
-> Maybe Text -> Int -> ListAttachedIndicesResponse
ListAttachedIndicesResponse'
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
"IndexAttachments"
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 ListAttachedIndices where
hashWithSalt :: Int -> ListAttachedIndices -> Int
hashWithSalt Int
_salt ListAttachedIndices' {Maybe Natural
Maybe Text
Maybe ConsistencyLevel
Text
ObjectReference
targetReference :: ObjectReference
directoryArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
consistencyLevel :: Maybe ConsistencyLevel
$sel:targetReference:ListAttachedIndices' :: ListAttachedIndices -> ObjectReference
$sel:directoryArn:ListAttachedIndices' :: ListAttachedIndices -> Text
$sel:nextToken:ListAttachedIndices' :: ListAttachedIndices -> Maybe Text
$sel:maxResults:ListAttachedIndices' :: ListAttachedIndices -> Maybe Natural
$sel:consistencyLevel:ListAttachedIndices' :: ListAttachedIndices -> Maybe ConsistencyLevel
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ConsistencyLevel
consistencyLevel
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` Text
directoryArn
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ObjectReference
targetReference
instance Prelude.NFData ListAttachedIndices where
rnf :: ListAttachedIndices -> ()
rnf ListAttachedIndices' {Maybe Natural
Maybe Text
Maybe ConsistencyLevel
Text
ObjectReference
targetReference :: ObjectReference
directoryArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
consistencyLevel :: Maybe ConsistencyLevel
$sel:targetReference:ListAttachedIndices' :: ListAttachedIndices -> ObjectReference
$sel:directoryArn:ListAttachedIndices' :: ListAttachedIndices -> Text
$sel:nextToken:ListAttachedIndices' :: ListAttachedIndices -> Maybe Text
$sel:maxResults:ListAttachedIndices' :: ListAttachedIndices -> Maybe Natural
$sel:consistencyLevel:ListAttachedIndices' :: ListAttachedIndices -> Maybe ConsistencyLevel
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ConsistencyLevel
consistencyLevel
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 Text
directoryArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ObjectReference
targetReference
instance Data.ToHeaders ListAttachedIndices where
toHeaders :: ListAttachedIndices -> ResponseHeaders
toHeaders ListAttachedIndices' {Maybe Natural
Maybe Text
Maybe ConsistencyLevel
Text
ObjectReference
targetReference :: ObjectReference
directoryArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
consistencyLevel :: Maybe ConsistencyLevel
$sel:targetReference:ListAttachedIndices' :: ListAttachedIndices -> ObjectReference
$sel:directoryArn:ListAttachedIndices' :: ListAttachedIndices -> Text
$sel:nextToken:ListAttachedIndices' :: ListAttachedIndices -> Maybe Text
$sel:maxResults:ListAttachedIndices' :: ListAttachedIndices -> Maybe Natural
$sel:consistencyLevel:ListAttachedIndices' :: ListAttachedIndices -> Maybe ConsistencyLevel
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"x-amz-consistency-level" forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe ConsistencyLevel
consistencyLevel,
HeaderName
"x-amz-data-partition" forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Text
directoryArn
]
instance Data.ToJSON ListAttachedIndices where
toJSON :: ListAttachedIndices -> Value
toJSON ListAttachedIndices' {Maybe Natural
Maybe Text
Maybe ConsistencyLevel
Text
ObjectReference
targetReference :: ObjectReference
directoryArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
consistencyLevel :: Maybe ConsistencyLevel
$sel:targetReference:ListAttachedIndices' :: ListAttachedIndices -> ObjectReference
$sel:directoryArn:ListAttachedIndices' :: ListAttachedIndices -> Text
$sel:nextToken:ListAttachedIndices' :: ListAttachedIndices -> Maybe Text
$sel:maxResults:ListAttachedIndices' :: ListAttachedIndices -> Maybe Natural
$sel:consistencyLevel:ListAttachedIndices' :: ListAttachedIndices -> Maybe ConsistencyLevel
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
forall a. a -> Maybe a
Prelude.Just
(Key
"TargetReference" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= ObjectReference
targetReference)
]
)
instance Data.ToPath ListAttachedIndices where
toPath :: ListAttachedIndices -> ByteString
toPath =
forall a b. a -> b -> a
Prelude.const
ByteString
"/amazonclouddirectory/2017-01-11/object/indices"
instance Data.ToQuery ListAttachedIndices where
toQuery :: ListAttachedIndices -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListAttachedIndicesResponse = ListAttachedIndicesResponse'
{
ListAttachedIndicesResponse -> Maybe [IndexAttachment]
indexAttachments :: Prelude.Maybe [IndexAttachment],
ListAttachedIndicesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAttachedIndicesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAttachedIndicesResponse -> ListAttachedIndicesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAttachedIndicesResponse -> ListAttachedIndicesResponse -> Bool
$c/= :: ListAttachedIndicesResponse -> ListAttachedIndicesResponse -> Bool
== :: ListAttachedIndicesResponse -> ListAttachedIndicesResponse -> Bool
$c== :: ListAttachedIndicesResponse -> ListAttachedIndicesResponse -> Bool
Prelude.Eq, ReadPrec [ListAttachedIndicesResponse]
ReadPrec ListAttachedIndicesResponse
Int -> ReadS ListAttachedIndicesResponse
ReadS [ListAttachedIndicesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAttachedIndicesResponse]
$creadListPrec :: ReadPrec [ListAttachedIndicesResponse]
readPrec :: ReadPrec ListAttachedIndicesResponse
$creadPrec :: ReadPrec ListAttachedIndicesResponse
readList :: ReadS [ListAttachedIndicesResponse]
$creadList :: ReadS [ListAttachedIndicesResponse]
readsPrec :: Int -> ReadS ListAttachedIndicesResponse
$creadsPrec :: Int -> ReadS ListAttachedIndicesResponse
Prelude.Read, Int -> ListAttachedIndicesResponse -> ShowS
[ListAttachedIndicesResponse] -> ShowS
ListAttachedIndicesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAttachedIndicesResponse] -> ShowS
$cshowList :: [ListAttachedIndicesResponse] -> ShowS
show :: ListAttachedIndicesResponse -> String
$cshow :: ListAttachedIndicesResponse -> String
showsPrec :: Int -> ListAttachedIndicesResponse -> ShowS
$cshowsPrec :: Int -> ListAttachedIndicesResponse -> ShowS
Prelude.Show, forall x.
Rep ListAttachedIndicesResponse x -> ListAttachedIndicesResponse
forall x.
ListAttachedIndicesResponse -> Rep ListAttachedIndicesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAttachedIndicesResponse x -> ListAttachedIndicesResponse
$cfrom :: forall x.
ListAttachedIndicesResponse -> Rep ListAttachedIndicesResponse x
Prelude.Generic)
newListAttachedIndicesResponse ::
Prelude.Int ->
ListAttachedIndicesResponse
newListAttachedIndicesResponse :: Int -> ListAttachedIndicesResponse
newListAttachedIndicesResponse Int
pHttpStatus_ =
ListAttachedIndicesResponse'
{ $sel:indexAttachments:ListAttachedIndicesResponse' :: Maybe [IndexAttachment]
indexAttachments =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAttachedIndicesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAttachedIndicesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAttachedIndicesResponse_indexAttachments :: Lens.Lens' ListAttachedIndicesResponse (Prelude.Maybe [IndexAttachment])
listAttachedIndicesResponse_indexAttachments :: Lens' ListAttachedIndicesResponse (Maybe [IndexAttachment])
listAttachedIndicesResponse_indexAttachments = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedIndicesResponse' {Maybe [IndexAttachment]
indexAttachments :: Maybe [IndexAttachment]
$sel:indexAttachments:ListAttachedIndicesResponse' :: ListAttachedIndicesResponse -> Maybe [IndexAttachment]
indexAttachments} -> Maybe [IndexAttachment]
indexAttachments) (\s :: ListAttachedIndicesResponse
s@ListAttachedIndicesResponse' {} Maybe [IndexAttachment]
a -> ListAttachedIndicesResponse
s {$sel:indexAttachments:ListAttachedIndicesResponse' :: Maybe [IndexAttachment]
indexAttachments = Maybe [IndexAttachment]
a} :: ListAttachedIndicesResponse) 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
listAttachedIndicesResponse_nextToken :: Lens.Lens' ListAttachedIndicesResponse (Prelude.Maybe Prelude.Text)
listAttachedIndicesResponse_nextToken :: Lens' ListAttachedIndicesResponse (Maybe Text)
listAttachedIndicesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedIndicesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAttachedIndicesResponse' :: ListAttachedIndicesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAttachedIndicesResponse
s@ListAttachedIndicesResponse' {} Maybe Text
a -> ListAttachedIndicesResponse
s {$sel:nextToken:ListAttachedIndicesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAttachedIndicesResponse)
listAttachedIndicesResponse_httpStatus :: Lens.Lens' ListAttachedIndicesResponse Prelude.Int
listAttachedIndicesResponse_httpStatus :: Lens' ListAttachedIndicesResponse Int
listAttachedIndicesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAttachedIndicesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAttachedIndicesResponse' :: ListAttachedIndicesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAttachedIndicesResponse
s@ListAttachedIndicesResponse' {} Int
a -> ListAttachedIndicesResponse
s {$sel:httpStatus:ListAttachedIndicesResponse' :: Int
httpStatus = Int
a} :: ListAttachedIndicesResponse)
instance Prelude.NFData ListAttachedIndicesResponse where
rnf :: ListAttachedIndicesResponse -> ()
rnf ListAttachedIndicesResponse' {Int
Maybe [IndexAttachment]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
indexAttachments :: Maybe [IndexAttachment]
$sel:httpStatus:ListAttachedIndicesResponse' :: ListAttachedIndicesResponse -> Int
$sel:nextToken:ListAttachedIndicesResponse' :: ListAttachedIndicesResponse -> Maybe Text
$sel:indexAttachments:ListAttachedIndicesResponse' :: ListAttachedIndicesResponse -> Maybe [IndexAttachment]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [IndexAttachment]
indexAttachments
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