{-# 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.S3.ListObjectsV2
(
ListObjectsV2 (..),
newListObjectsV2,
listObjectsV2_startAfter,
listObjectsV2_continuationToken,
listObjectsV2_fetchOwner,
listObjectsV2_prefix,
listObjectsV2_encodingType,
listObjectsV2_requestPayer,
listObjectsV2_maxKeys,
listObjectsV2_delimiter,
listObjectsV2_expectedBucketOwner,
listObjectsV2_bucket,
ListObjectsV2Response (..),
newListObjectsV2Response,
listObjectsV2Response_startAfter,
listObjectsV2Response_keyCount,
listObjectsV2Response_contents,
listObjectsV2Response_continuationToken,
listObjectsV2Response_prefix,
listObjectsV2Response_commonPrefixes,
listObjectsV2Response_encodingType,
listObjectsV2Response_name,
listObjectsV2Response_nextContinuationToken,
listObjectsV2Response_maxKeys,
listObjectsV2Response_isTruncated,
listObjectsV2Response_delimiter,
listObjectsV2Response_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.S3.Types
data ListObjectsV2 = ListObjectsV2'
{
ListObjectsV2 -> Maybe Text
startAfter :: Prelude.Maybe Prelude.Text,
ListObjectsV2 -> Maybe Text
continuationToken :: Prelude.Maybe Prelude.Text,
ListObjectsV2 -> Maybe Bool
fetchOwner :: Prelude.Maybe Prelude.Bool,
ListObjectsV2 -> Maybe Text
prefix :: Prelude.Maybe Prelude.Text,
ListObjectsV2 -> Maybe EncodingType
encodingType :: Prelude.Maybe EncodingType,
ListObjectsV2 -> Maybe RequestPayer
requestPayer :: Prelude.Maybe RequestPayer,
ListObjectsV2 -> Maybe Int
maxKeys :: Prelude.Maybe Prelude.Int,
ListObjectsV2 -> Maybe Delimiter
delimiter :: Prelude.Maybe Delimiter,
ListObjectsV2 -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
ListObjectsV2 -> BucketName
bucket :: BucketName
}
deriving (ListObjectsV2 -> ListObjectsV2 -> Bool
(ListObjectsV2 -> ListObjectsV2 -> Bool)
-> (ListObjectsV2 -> ListObjectsV2 -> Bool) -> Eq ListObjectsV2
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListObjectsV2 -> ListObjectsV2 -> Bool
$c/= :: ListObjectsV2 -> ListObjectsV2 -> Bool
== :: ListObjectsV2 -> ListObjectsV2 -> Bool
$c== :: ListObjectsV2 -> ListObjectsV2 -> Bool
Prelude.Eq, ReadPrec [ListObjectsV2]
ReadPrec ListObjectsV2
Int -> ReadS ListObjectsV2
ReadS [ListObjectsV2]
(Int -> ReadS ListObjectsV2)
-> ReadS [ListObjectsV2]
-> ReadPrec ListObjectsV2
-> ReadPrec [ListObjectsV2]
-> Read ListObjectsV2
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListObjectsV2]
$creadListPrec :: ReadPrec [ListObjectsV2]
readPrec :: ReadPrec ListObjectsV2
$creadPrec :: ReadPrec ListObjectsV2
readList :: ReadS [ListObjectsV2]
$creadList :: ReadS [ListObjectsV2]
readsPrec :: Int -> ReadS ListObjectsV2
$creadsPrec :: Int -> ReadS ListObjectsV2
Prelude.Read, Int -> ListObjectsV2 -> ShowS
[ListObjectsV2] -> ShowS
ListObjectsV2 -> String
(Int -> ListObjectsV2 -> ShowS)
-> (ListObjectsV2 -> String)
-> ([ListObjectsV2] -> ShowS)
-> Show ListObjectsV2
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListObjectsV2] -> ShowS
$cshowList :: [ListObjectsV2] -> ShowS
show :: ListObjectsV2 -> String
$cshow :: ListObjectsV2 -> String
showsPrec :: Int -> ListObjectsV2 -> ShowS
$cshowsPrec :: Int -> ListObjectsV2 -> ShowS
Prelude.Show, (forall x. ListObjectsV2 -> Rep ListObjectsV2 x)
-> (forall x. Rep ListObjectsV2 x -> ListObjectsV2)
-> Generic ListObjectsV2
forall x. Rep ListObjectsV2 x -> ListObjectsV2
forall x. ListObjectsV2 -> Rep ListObjectsV2 x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListObjectsV2 x -> ListObjectsV2
$cfrom :: forall x. ListObjectsV2 -> Rep ListObjectsV2 x
Prelude.Generic)
newListObjectsV2 ::
BucketName ->
ListObjectsV2
newListObjectsV2 :: BucketName -> ListObjectsV2
newListObjectsV2 BucketName
pBucket_ =
ListObjectsV2' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe EncodingType
-> Maybe RequestPayer
-> Maybe Int
-> Maybe Delimiter
-> Maybe Text
-> BucketName
-> ListObjectsV2
ListObjectsV2'
{ $sel:startAfter:ListObjectsV2' :: Maybe Text
startAfter = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:continuationToken:ListObjectsV2' :: Maybe Text
continuationToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:fetchOwner:ListObjectsV2' :: Maybe Bool
fetchOwner = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:prefix:ListObjectsV2' :: Maybe Text
prefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encodingType:ListObjectsV2' :: Maybe EncodingType
encodingType = Maybe EncodingType
forall a. Maybe a
Prelude.Nothing,
$sel:requestPayer:ListObjectsV2' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
forall a. Maybe a
Prelude.Nothing,
$sel:maxKeys:ListObjectsV2' :: Maybe Int
maxKeys = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:delimiter:ListObjectsV2' :: Maybe Delimiter
delimiter = Maybe Delimiter
forall a. Maybe a
Prelude.Nothing,
$sel:expectedBucketOwner:ListObjectsV2' :: Maybe Text
expectedBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucket:ListObjectsV2' :: BucketName
bucket = BucketName
pBucket_
}
listObjectsV2_startAfter :: Lens.Lens' ListObjectsV2 (Prelude.Maybe Prelude.Text)
listObjectsV2_startAfter :: (Maybe Text -> f (Maybe Text)) -> ListObjectsV2 -> f ListObjectsV2
listObjectsV2_startAfter = (ListObjectsV2 -> Maybe Text)
-> (ListObjectsV2 -> Maybe Text -> ListObjectsV2)
-> Lens ListObjectsV2 ListObjectsV2 (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2' {Maybe Text
startAfter :: Maybe Text
$sel:startAfter:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
startAfter} -> Maybe Text
startAfter) (\s :: ListObjectsV2
s@ListObjectsV2' {} Maybe Text
a -> ListObjectsV2
s {$sel:startAfter:ListObjectsV2' :: Maybe Text
startAfter = Maybe Text
a} :: ListObjectsV2)
listObjectsV2_continuationToken :: Lens.Lens' ListObjectsV2 (Prelude.Maybe Prelude.Text)
listObjectsV2_continuationToken :: (Maybe Text -> f (Maybe Text)) -> ListObjectsV2 -> f ListObjectsV2
listObjectsV2_continuationToken = (ListObjectsV2 -> Maybe Text)
-> (ListObjectsV2 -> Maybe Text -> ListObjectsV2)
-> Lens ListObjectsV2 ListObjectsV2 (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2' {Maybe Text
continuationToken :: Maybe Text
$sel:continuationToken:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
continuationToken} -> Maybe Text
continuationToken) (\s :: ListObjectsV2
s@ListObjectsV2' {} Maybe Text
a -> ListObjectsV2
s {$sel:continuationToken:ListObjectsV2' :: Maybe Text
continuationToken = Maybe Text
a} :: ListObjectsV2)
listObjectsV2_fetchOwner :: Lens.Lens' ListObjectsV2 (Prelude.Maybe Prelude.Bool)
listObjectsV2_fetchOwner :: (Maybe Bool -> f (Maybe Bool)) -> ListObjectsV2 -> f ListObjectsV2
listObjectsV2_fetchOwner = (ListObjectsV2 -> Maybe Bool)
-> (ListObjectsV2 -> Maybe Bool -> ListObjectsV2)
-> Lens ListObjectsV2 ListObjectsV2 (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2' {Maybe Bool
fetchOwner :: Maybe Bool
$sel:fetchOwner:ListObjectsV2' :: ListObjectsV2 -> Maybe Bool
fetchOwner} -> Maybe Bool
fetchOwner) (\s :: ListObjectsV2
s@ListObjectsV2' {} Maybe Bool
a -> ListObjectsV2
s {$sel:fetchOwner:ListObjectsV2' :: Maybe Bool
fetchOwner = Maybe Bool
a} :: ListObjectsV2)
listObjectsV2_prefix :: Lens.Lens' ListObjectsV2 (Prelude.Maybe Prelude.Text)
listObjectsV2_prefix :: (Maybe Text -> f (Maybe Text)) -> ListObjectsV2 -> f ListObjectsV2
listObjectsV2_prefix = (ListObjectsV2 -> Maybe Text)
-> (ListObjectsV2 -> Maybe Text -> ListObjectsV2)
-> Lens ListObjectsV2 ListObjectsV2 (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2' {Maybe Text
prefix :: Maybe Text
$sel:prefix:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
prefix} -> Maybe Text
prefix) (\s :: ListObjectsV2
s@ListObjectsV2' {} Maybe Text
a -> ListObjectsV2
s {$sel:prefix:ListObjectsV2' :: Maybe Text
prefix = Maybe Text
a} :: ListObjectsV2)
listObjectsV2_encodingType :: Lens.Lens' ListObjectsV2 (Prelude.Maybe EncodingType)
listObjectsV2_encodingType :: (Maybe EncodingType -> f (Maybe EncodingType))
-> ListObjectsV2 -> f ListObjectsV2
listObjectsV2_encodingType = (ListObjectsV2 -> Maybe EncodingType)
-> (ListObjectsV2 -> Maybe EncodingType -> ListObjectsV2)
-> Lens
ListObjectsV2
ListObjectsV2
(Maybe EncodingType)
(Maybe EncodingType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2' {Maybe EncodingType
encodingType :: Maybe EncodingType
$sel:encodingType:ListObjectsV2' :: ListObjectsV2 -> Maybe EncodingType
encodingType} -> Maybe EncodingType
encodingType) (\s :: ListObjectsV2
s@ListObjectsV2' {} Maybe EncodingType
a -> ListObjectsV2
s {$sel:encodingType:ListObjectsV2' :: Maybe EncodingType
encodingType = Maybe EncodingType
a} :: ListObjectsV2)
listObjectsV2_requestPayer :: Lens.Lens' ListObjectsV2 (Prelude.Maybe RequestPayer)
listObjectsV2_requestPayer :: (Maybe RequestPayer -> f (Maybe RequestPayer))
-> ListObjectsV2 -> f ListObjectsV2
listObjectsV2_requestPayer = (ListObjectsV2 -> Maybe RequestPayer)
-> (ListObjectsV2 -> Maybe RequestPayer -> ListObjectsV2)
-> Lens
ListObjectsV2
ListObjectsV2
(Maybe RequestPayer)
(Maybe RequestPayer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2' {Maybe RequestPayer
requestPayer :: Maybe RequestPayer
$sel:requestPayer:ListObjectsV2' :: ListObjectsV2 -> Maybe RequestPayer
requestPayer} -> Maybe RequestPayer
requestPayer) (\s :: ListObjectsV2
s@ListObjectsV2' {} Maybe RequestPayer
a -> ListObjectsV2
s {$sel:requestPayer:ListObjectsV2' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
a} :: ListObjectsV2)
listObjectsV2_maxKeys :: Lens.Lens' ListObjectsV2 (Prelude.Maybe Prelude.Int)
listObjectsV2_maxKeys :: (Maybe Int -> f (Maybe Int)) -> ListObjectsV2 -> f ListObjectsV2
listObjectsV2_maxKeys = (ListObjectsV2 -> Maybe Int)
-> (ListObjectsV2 -> Maybe Int -> ListObjectsV2)
-> Lens ListObjectsV2 ListObjectsV2 (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2' {Maybe Int
maxKeys :: Maybe Int
$sel:maxKeys:ListObjectsV2' :: ListObjectsV2 -> Maybe Int
maxKeys} -> Maybe Int
maxKeys) (\s :: ListObjectsV2
s@ListObjectsV2' {} Maybe Int
a -> ListObjectsV2
s {$sel:maxKeys:ListObjectsV2' :: Maybe Int
maxKeys = Maybe Int
a} :: ListObjectsV2)
listObjectsV2_delimiter :: Lens.Lens' ListObjectsV2 (Prelude.Maybe Delimiter)
listObjectsV2_delimiter :: (Maybe Delimiter -> f (Maybe Delimiter))
-> ListObjectsV2 -> f ListObjectsV2
listObjectsV2_delimiter = (ListObjectsV2 -> Maybe Delimiter)
-> (ListObjectsV2 -> Maybe Delimiter -> ListObjectsV2)
-> Lens
ListObjectsV2 ListObjectsV2 (Maybe Delimiter) (Maybe Delimiter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2' {Maybe Delimiter
delimiter :: Maybe Delimiter
$sel:delimiter:ListObjectsV2' :: ListObjectsV2 -> Maybe Delimiter
delimiter} -> Maybe Delimiter
delimiter) (\s :: ListObjectsV2
s@ListObjectsV2' {} Maybe Delimiter
a -> ListObjectsV2
s {$sel:delimiter:ListObjectsV2' :: Maybe Delimiter
delimiter = Maybe Delimiter
a} :: ListObjectsV2)
listObjectsV2_expectedBucketOwner :: Lens.Lens' ListObjectsV2 (Prelude.Maybe Prelude.Text)
listObjectsV2_expectedBucketOwner :: (Maybe Text -> f (Maybe Text)) -> ListObjectsV2 -> f ListObjectsV2
listObjectsV2_expectedBucketOwner = (ListObjectsV2 -> Maybe Text)
-> (ListObjectsV2 -> Maybe Text -> ListObjectsV2)
-> Lens ListObjectsV2 ListObjectsV2 (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: ListObjectsV2
s@ListObjectsV2' {} Maybe Text
a -> ListObjectsV2
s {$sel:expectedBucketOwner:ListObjectsV2' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: ListObjectsV2)
listObjectsV2_bucket :: Lens.Lens' ListObjectsV2 BucketName
listObjectsV2_bucket :: (BucketName -> f BucketName) -> ListObjectsV2 -> f ListObjectsV2
listObjectsV2_bucket = (ListObjectsV2 -> BucketName)
-> (ListObjectsV2 -> BucketName -> ListObjectsV2)
-> Lens ListObjectsV2 ListObjectsV2 BucketName BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2' {BucketName
bucket :: BucketName
$sel:bucket:ListObjectsV2' :: ListObjectsV2 -> BucketName
bucket} -> BucketName
bucket) (\s :: ListObjectsV2
s@ListObjectsV2' {} BucketName
a -> ListObjectsV2
s {$sel:bucket:ListObjectsV2' :: BucketName
bucket = BucketName
a} :: ListObjectsV2)
instance Core.AWSPager ListObjectsV2 where
page :: ListObjectsV2 -> AWSResponse ListObjectsV2 -> Maybe ListObjectsV2
page ListObjectsV2
rq AWSResponse ListObjectsV2
rs
| Maybe Bool -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListObjectsV2
ListObjectsV2Response
rs
ListObjectsV2Response
-> Getting (First Bool) ListObjectsV2Response Bool -> Maybe Bool
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListObjectsV2Response
-> Const (First Bool) ListObjectsV2Response
Lens' ListObjectsV2Response (Maybe Bool)
listObjectsV2Response_isTruncated
((Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListObjectsV2Response
-> Const (First Bool) ListObjectsV2Response)
-> ((Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool))
-> Getting (First Bool) ListObjectsV2Response Bool
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListObjectsV2
forall a. Maybe a
Prelude.Nothing
| Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse ListObjectsV2
ListObjectsV2Response
rs
ListObjectsV2Response
-> Getting (First Text) ListObjectsV2Response Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListObjectsV2Response
-> Const (First Text) ListObjectsV2Response
Lens' ListObjectsV2Response (Maybe Text)
listObjectsV2Response_nextContinuationToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListObjectsV2Response
-> Const (First Text) ListObjectsV2Response)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListObjectsV2Response Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListObjectsV2
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListObjectsV2 -> Maybe ListObjectsV2
forall a. a -> Maybe a
Prelude.Just (ListObjectsV2 -> Maybe ListObjectsV2)
-> ListObjectsV2 -> Maybe ListObjectsV2
forall a b. (a -> b) -> a -> b
Prelude.$
ListObjectsV2
rq
ListObjectsV2 -> (ListObjectsV2 -> ListObjectsV2) -> ListObjectsV2
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListObjectsV2 -> Identity ListObjectsV2
Lens ListObjectsV2 ListObjectsV2 (Maybe Text) (Maybe Text)
listObjectsV2_continuationToken
((Maybe Text -> Identity (Maybe Text))
-> ListObjectsV2 -> Identity ListObjectsV2)
-> Maybe Text -> ListObjectsV2 -> ListObjectsV2
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListObjectsV2
ListObjectsV2Response
rs
ListObjectsV2Response
-> Getting (First Text) ListObjectsV2Response Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListObjectsV2Response
-> Const (First Text) ListObjectsV2Response
Lens' ListObjectsV2Response (Maybe Text)
listObjectsV2Response_nextContinuationToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListObjectsV2Response
-> Const (First Text) ListObjectsV2Response)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListObjectsV2Response Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListObjectsV2 where
type
AWSResponse ListObjectsV2 =
ListObjectsV2Response
request :: ListObjectsV2 -> Request ListObjectsV2
request =
Request ListObjectsV2 -> Request ListObjectsV2
forall a. Request a -> Request a
Request.s3vhost
(Request ListObjectsV2 -> Request ListObjectsV2)
-> (ListObjectsV2 -> Request ListObjectsV2)
-> ListObjectsV2
-> Request ListObjectsV2
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service -> ListObjectsV2 -> Request ListObjectsV2
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListObjectsV2
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListObjectsV2)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListObjectsV2))
-> Logger
-> Service
-> Proxy ListObjectsV2
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListObjectsV2)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe Int
-> Maybe [Object]
-> Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response
ListObjectsV2Response'
(Maybe Text
-> Maybe Int
-> Maybe [Object]
-> Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
-> Either String (Maybe Text)
-> Either
String
(Maybe Int
-> Maybe [Object]
-> Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"StartAfter")
Either
String
(Maybe Int
-> Maybe [Object]
-> Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
-> Either String (Maybe Int)
-> Either
String
(Maybe [Object]
-> Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"KeyCount")
Either
String
(Maybe [Object]
-> Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
-> Either String (Maybe [Object])
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (([Node] -> Either String [Object])
-> [Node] -> Either String (Maybe [Object])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Object]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"Contents") [Node]
x)
Either
String
(Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ContinuationToken")
Either
String
(Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
-> Either String (Maybe Text)
-> Either
String
(Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Prefix")
Either
String
(Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
-> Either String (Maybe [CommonPrefix])
-> Either
String
(Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (([Node] -> Either String [CommonPrefix])
-> [Node] -> Either String (Maybe [CommonPrefix])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [CommonPrefix]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"CommonPrefixes") [Node]
x)
Either
String
(Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
-> Either String (Maybe EncodingType)
-> Either
String
(Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe EncodingType)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"EncodingType")
Either
String
(Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
-> Either String (Maybe BucketName)
-> Either
String
(Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe BucketName)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Name")
Either
String
(Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response)
-> Either String (Maybe Text)
-> Either
String
(Maybe Int
-> Maybe Bool -> Maybe Delimiter -> Int -> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NextContinuationToken")
Either
String
(Maybe Int
-> Maybe Bool -> Maybe Delimiter -> Int -> ListObjectsV2Response)
-> Either String (Maybe Int)
-> Either
String
(Maybe Bool -> Maybe Delimiter -> Int -> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MaxKeys")
Either
String
(Maybe Bool -> Maybe Delimiter -> Int -> ListObjectsV2Response)
-> Either String (Maybe Bool)
-> Either String (Maybe Delimiter -> Int -> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Bool)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"IsTruncated")
Either String (Maybe Delimiter -> Int -> ListObjectsV2Response)
-> Either String (Maybe Delimiter)
-> Either String (Int -> ListObjectsV2Response)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Delimiter)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Delimiter")
Either String (Int -> ListObjectsV2Response)
-> Either String Int -> Either String ListObjectsV2Response
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 ListObjectsV2
instance Prelude.NFData ListObjectsV2
instance Core.ToHeaders ListObjectsV2 where
toHeaders :: ListObjectsV2 -> ResponseHeaders
toHeaders ListObjectsV2' {Maybe Bool
Maybe Delimiter
Maybe Int
Maybe Text
Maybe EncodingType
Maybe RequestPayer
BucketName
bucket :: BucketName
expectedBucketOwner :: Maybe Text
delimiter :: Maybe Delimiter
maxKeys :: Maybe Int
requestPayer :: Maybe RequestPayer
encodingType :: Maybe EncodingType
prefix :: Maybe Text
fetchOwner :: Maybe Bool
continuationToken :: Maybe Text
startAfter :: Maybe Text
$sel:bucket:ListObjectsV2' :: ListObjectsV2 -> BucketName
$sel:expectedBucketOwner:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
$sel:delimiter:ListObjectsV2' :: ListObjectsV2 -> Maybe Delimiter
$sel:maxKeys:ListObjectsV2' :: ListObjectsV2 -> Maybe Int
$sel:requestPayer:ListObjectsV2' :: ListObjectsV2 -> Maybe RequestPayer
$sel:encodingType:ListObjectsV2' :: ListObjectsV2 -> Maybe EncodingType
$sel:prefix:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
$sel:fetchOwner:ListObjectsV2' :: ListObjectsV2 -> Maybe Bool
$sel:continuationToken:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
$sel:startAfter:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"x-amz-request-payer" HeaderName -> Maybe RequestPayer -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe RequestPayer
requestPayer,
HeaderName
"x-amz-expected-bucket-owner"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
expectedBucketOwner
]
instance Core.ToPath ListObjectsV2 where
toPath :: ListObjectsV2 -> ByteString
toPath ListObjectsV2' {Maybe Bool
Maybe Delimiter
Maybe Int
Maybe Text
Maybe EncodingType
Maybe RequestPayer
BucketName
bucket :: BucketName
expectedBucketOwner :: Maybe Text
delimiter :: Maybe Delimiter
maxKeys :: Maybe Int
requestPayer :: Maybe RequestPayer
encodingType :: Maybe EncodingType
prefix :: Maybe Text
fetchOwner :: Maybe Bool
continuationToken :: Maybe Text
startAfter :: Maybe Text
$sel:bucket:ListObjectsV2' :: ListObjectsV2 -> BucketName
$sel:expectedBucketOwner:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
$sel:delimiter:ListObjectsV2' :: ListObjectsV2 -> Maybe Delimiter
$sel:maxKeys:ListObjectsV2' :: ListObjectsV2 -> Maybe Int
$sel:requestPayer:ListObjectsV2' :: ListObjectsV2 -> Maybe RequestPayer
$sel:encodingType:ListObjectsV2' :: ListObjectsV2 -> Maybe EncodingType
$sel:prefix:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
$sel:fetchOwner:ListObjectsV2' :: ListObjectsV2 -> Maybe Bool
$sel:continuationToken:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
$sel:startAfter:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"/", BucketName -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS BucketName
bucket]
instance Core.ToQuery ListObjectsV2 where
toQuery :: ListObjectsV2 -> QueryString
toQuery ListObjectsV2' {Maybe Bool
Maybe Delimiter
Maybe Int
Maybe Text
Maybe EncodingType
Maybe RequestPayer
BucketName
bucket :: BucketName
expectedBucketOwner :: Maybe Text
delimiter :: Maybe Delimiter
maxKeys :: Maybe Int
requestPayer :: Maybe RequestPayer
encodingType :: Maybe EncodingType
prefix :: Maybe Text
fetchOwner :: Maybe Bool
continuationToken :: Maybe Text
startAfter :: Maybe Text
$sel:bucket:ListObjectsV2' :: ListObjectsV2 -> BucketName
$sel:expectedBucketOwner:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
$sel:delimiter:ListObjectsV2' :: ListObjectsV2 -> Maybe Delimiter
$sel:maxKeys:ListObjectsV2' :: ListObjectsV2 -> Maybe Int
$sel:requestPayer:ListObjectsV2' :: ListObjectsV2 -> Maybe RequestPayer
$sel:encodingType:ListObjectsV2' :: ListObjectsV2 -> Maybe EncodingType
$sel:prefix:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
$sel:fetchOwner:ListObjectsV2' :: ListObjectsV2 -> Maybe Bool
$sel:continuationToken:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
$sel:startAfter:ListObjectsV2' :: ListObjectsV2 -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"start-after" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
startAfter,
ByteString
"continuation-token" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
continuationToken,
ByteString
"fetch-owner" ByteString -> Maybe Bool -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Bool
fetchOwner,
ByteString
"prefix" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
prefix,
ByteString
"encoding-type" ByteString -> Maybe EncodingType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe EncodingType
encodingType,
ByteString
"max-keys" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxKeys,
ByteString
"delimiter" ByteString -> Maybe Delimiter -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Delimiter
delimiter,
QueryString
"list-type=2"
]
data ListObjectsV2Response = ListObjectsV2Response'
{
ListObjectsV2Response -> Maybe Text
startAfter :: Prelude.Maybe Prelude.Text,
ListObjectsV2Response -> Maybe Int
keyCount :: Prelude.Maybe Prelude.Int,
ListObjectsV2Response -> Maybe [Object]
contents :: Prelude.Maybe [Object],
ListObjectsV2Response -> Maybe Text
continuationToken :: Prelude.Maybe Prelude.Text,
ListObjectsV2Response -> Maybe Text
prefix :: Prelude.Maybe Prelude.Text,
ListObjectsV2Response -> Maybe [CommonPrefix]
commonPrefixes :: Prelude.Maybe [CommonPrefix],
ListObjectsV2Response -> Maybe EncodingType
encodingType :: Prelude.Maybe EncodingType,
ListObjectsV2Response -> Maybe BucketName
name :: Prelude.Maybe BucketName,
ListObjectsV2Response -> Maybe Text
nextContinuationToken :: Prelude.Maybe Prelude.Text,
ListObjectsV2Response -> Maybe Int
maxKeys :: Prelude.Maybe Prelude.Int,
ListObjectsV2Response -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
ListObjectsV2Response -> Maybe Delimiter
delimiter :: Prelude.Maybe Delimiter,
ListObjectsV2Response -> Int
httpStatus :: Prelude.Int
}
deriving (ListObjectsV2Response -> ListObjectsV2Response -> Bool
(ListObjectsV2Response -> ListObjectsV2Response -> Bool)
-> (ListObjectsV2Response -> ListObjectsV2Response -> Bool)
-> Eq ListObjectsV2Response
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListObjectsV2Response -> ListObjectsV2Response -> Bool
$c/= :: ListObjectsV2Response -> ListObjectsV2Response -> Bool
== :: ListObjectsV2Response -> ListObjectsV2Response -> Bool
$c== :: ListObjectsV2Response -> ListObjectsV2Response -> Bool
Prelude.Eq, ReadPrec [ListObjectsV2Response]
ReadPrec ListObjectsV2Response
Int -> ReadS ListObjectsV2Response
ReadS [ListObjectsV2Response]
(Int -> ReadS ListObjectsV2Response)
-> ReadS [ListObjectsV2Response]
-> ReadPrec ListObjectsV2Response
-> ReadPrec [ListObjectsV2Response]
-> Read ListObjectsV2Response
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListObjectsV2Response]
$creadListPrec :: ReadPrec [ListObjectsV2Response]
readPrec :: ReadPrec ListObjectsV2Response
$creadPrec :: ReadPrec ListObjectsV2Response
readList :: ReadS [ListObjectsV2Response]
$creadList :: ReadS [ListObjectsV2Response]
readsPrec :: Int -> ReadS ListObjectsV2Response
$creadsPrec :: Int -> ReadS ListObjectsV2Response
Prelude.Read, Int -> ListObjectsV2Response -> ShowS
[ListObjectsV2Response] -> ShowS
ListObjectsV2Response -> String
(Int -> ListObjectsV2Response -> ShowS)
-> (ListObjectsV2Response -> String)
-> ([ListObjectsV2Response] -> ShowS)
-> Show ListObjectsV2Response
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListObjectsV2Response] -> ShowS
$cshowList :: [ListObjectsV2Response] -> ShowS
show :: ListObjectsV2Response -> String
$cshow :: ListObjectsV2Response -> String
showsPrec :: Int -> ListObjectsV2Response -> ShowS
$cshowsPrec :: Int -> ListObjectsV2Response -> ShowS
Prelude.Show, (forall x. ListObjectsV2Response -> Rep ListObjectsV2Response x)
-> (forall x. Rep ListObjectsV2Response x -> ListObjectsV2Response)
-> Generic ListObjectsV2Response
forall x. Rep ListObjectsV2Response x -> ListObjectsV2Response
forall x. ListObjectsV2Response -> Rep ListObjectsV2Response x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListObjectsV2Response x -> ListObjectsV2Response
$cfrom :: forall x. ListObjectsV2Response -> Rep ListObjectsV2Response x
Prelude.Generic)
newListObjectsV2Response ::
Prelude.Int ->
ListObjectsV2Response
newListObjectsV2Response :: Int -> ListObjectsV2Response
newListObjectsV2Response Int
pHttpStatus_ =
ListObjectsV2Response' :: Maybe Text
-> Maybe Int
-> Maybe [Object]
-> Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Bool
-> Maybe Delimiter
-> Int
-> ListObjectsV2Response
ListObjectsV2Response'
{ $sel:startAfter:ListObjectsV2Response' :: Maybe Text
startAfter =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:keyCount:ListObjectsV2Response' :: Maybe Int
keyCount = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:contents:ListObjectsV2Response' :: Maybe [Object]
contents = Maybe [Object]
forall a. Maybe a
Prelude.Nothing,
$sel:continuationToken:ListObjectsV2Response' :: Maybe Text
continuationToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:prefix:ListObjectsV2Response' :: Maybe Text
prefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:commonPrefixes:ListObjectsV2Response' :: Maybe [CommonPrefix]
commonPrefixes = Maybe [CommonPrefix]
forall a. Maybe a
Prelude.Nothing,
$sel:encodingType:ListObjectsV2Response' :: Maybe EncodingType
encodingType = Maybe EncodingType
forall a. Maybe a
Prelude.Nothing,
$sel:name:ListObjectsV2Response' :: Maybe BucketName
name = Maybe BucketName
forall a. Maybe a
Prelude.Nothing,
$sel:nextContinuationToken:ListObjectsV2Response' :: Maybe Text
nextContinuationToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxKeys:ListObjectsV2Response' :: Maybe Int
maxKeys = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:ListObjectsV2Response' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:delimiter:ListObjectsV2Response' :: Maybe Delimiter
delimiter = Maybe Delimiter
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListObjectsV2Response' :: Int
httpStatus = Int
pHttpStatus_
}
listObjectsV2Response_startAfter :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe Prelude.Text)
listObjectsV2Response_startAfter :: (Maybe Text -> f (Maybe Text))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_startAfter = (ListObjectsV2Response -> Maybe Text)
-> (ListObjectsV2Response -> Maybe Text -> ListObjectsV2Response)
-> Lens' ListObjectsV2Response (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe Text
startAfter :: Maybe Text
$sel:startAfter:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe Text
startAfter} -> Maybe Text
startAfter) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe Text
a -> ListObjectsV2Response
s {$sel:startAfter:ListObjectsV2Response' :: Maybe Text
startAfter = Maybe Text
a} :: ListObjectsV2Response)
listObjectsV2Response_keyCount :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe Prelude.Int)
listObjectsV2Response_keyCount :: (Maybe Int -> f (Maybe Int))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_keyCount = (ListObjectsV2Response -> Maybe Int)
-> (ListObjectsV2Response -> Maybe Int -> ListObjectsV2Response)
-> Lens
ListObjectsV2Response ListObjectsV2Response (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe Int
keyCount :: Maybe Int
$sel:keyCount:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe Int
keyCount} -> Maybe Int
keyCount) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe Int
a -> ListObjectsV2Response
s {$sel:keyCount:ListObjectsV2Response' :: Maybe Int
keyCount = Maybe Int
a} :: ListObjectsV2Response)
listObjectsV2Response_contents :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe [Object])
listObjectsV2Response_contents :: (Maybe [Object] -> f (Maybe [Object]))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_contents = (ListObjectsV2Response -> Maybe [Object])
-> (ListObjectsV2Response
-> Maybe [Object] -> ListObjectsV2Response)
-> Lens
ListObjectsV2Response
ListObjectsV2Response
(Maybe [Object])
(Maybe [Object])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe [Object]
contents :: Maybe [Object]
$sel:contents:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe [Object]
contents} -> Maybe [Object]
contents) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe [Object]
a -> ListObjectsV2Response
s {$sel:contents:ListObjectsV2Response' :: Maybe [Object]
contents = Maybe [Object]
a} :: ListObjectsV2Response) ((Maybe [Object] -> f (Maybe [Object]))
-> ListObjectsV2Response -> f ListObjectsV2Response)
-> ((Maybe [Object] -> f (Maybe [Object]))
-> Maybe [Object] -> f (Maybe [Object]))
-> (Maybe [Object] -> f (Maybe [Object]))
-> ListObjectsV2Response
-> f ListObjectsV2Response
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Object] [Object] [Object] [Object]
-> Iso
(Maybe [Object]) (Maybe [Object]) (Maybe [Object]) (Maybe [Object])
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 [Object] [Object] [Object] [Object]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listObjectsV2Response_continuationToken :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe Prelude.Text)
listObjectsV2Response_continuationToken :: (Maybe Text -> f (Maybe Text))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_continuationToken = (ListObjectsV2Response -> Maybe Text)
-> (ListObjectsV2Response -> Maybe Text -> ListObjectsV2Response)
-> Lens' ListObjectsV2Response (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe Text
continuationToken :: Maybe Text
$sel:continuationToken:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe Text
continuationToken} -> Maybe Text
continuationToken) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe Text
a -> ListObjectsV2Response
s {$sel:continuationToken:ListObjectsV2Response' :: Maybe Text
continuationToken = Maybe Text
a} :: ListObjectsV2Response)
listObjectsV2Response_prefix :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe Prelude.Text)
listObjectsV2Response_prefix :: (Maybe Text -> f (Maybe Text))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_prefix = (ListObjectsV2Response -> Maybe Text)
-> (ListObjectsV2Response -> Maybe Text -> ListObjectsV2Response)
-> Lens' ListObjectsV2Response (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe Text
prefix :: Maybe Text
$sel:prefix:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe Text
prefix} -> Maybe Text
prefix) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe Text
a -> ListObjectsV2Response
s {$sel:prefix:ListObjectsV2Response' :: Maybe Text
prefix = Maybe Text
a} :: ListObjectsV2Response)
listObjectsV2Response_commonPrefixes :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe [CommonPrefix])
listObjectsV2Response_commonPrefixes :: (Maybe [CommonPrefix] -> f (Maybe [CommonPrefix]))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_commonPrefixes = (ListObjectsV2Response -> Maybe [CommonPrefix])
-> (ListObjectsV2Response
-> Maybe [CommonPrefix] -> ListObjectsV2Response)
-> Lens
ListObjectsV2Response
ListObjectsV2Response
(Maybe [CommonPrefix])
(Maybe [CommonPrefix])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe [CommonPrefix]
commonPrefixes :: Maybe [CommonPrefix]
$sel:commonPrefixes:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe [CommonPrefix]
commonPrefixes} -> Maybe [CommonPrefix]
commonPrefixes) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe [CommonPrefix]
a -> ListObjectsV2Response
s {$sel:commonPrefixes:ListObjectsV2Response' :: Maybe [CommonPrefix]
commonPrefixes = Maybe [CommonPrefix]
a} :: ListObjectsV2Response) ((Maybe [CommonPrefix] -> f (Maybe [CommonPrefix]))
-> ListObjectsV2Response -> f ListObjectsV2Response)
-> ((Maybe [CommonPrefix] -> f (Maybe [CommonPrefix]))
-> Maybe [CommonPrefix] -> f (Maybe [CommonPrefix]))
-> (Maybe [CommonPrefix] -> f (Maybe [CommonPrefix]))
-> ListObjectsV2Response
-> f ListObjectsV2Response
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [CommonPrefix] [CommonPrefix] [CommonPrefix] [CommonPrefix]
-> Iso
(Maybe [CommonPrefix])
(Maybe [CommonPrefix])
(Maybe [CommonPrefix])
(Maybe [CommonPrefix])
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 [CommonPrefix] [CommonPrefix] [CommonPrefix] [CommonPrefix]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listObjectsV2Response_encodingType :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe EncodingType)
listObjectsV2Response_encodingType :: (Maybe EncodingType -> f (Maybe EncodingType))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_encodingType = (ListObjectsV2Response -> Maybe EncodingType)
-> (ListObjectsV2Response
-> Maybe EncodingType -> ListObjectsV2Response)
-> Lens
ListObjectsV2Response
ListObjectsV2Response
(Maybe EncodingType)
(Maybe EncodingType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe EncodingType
encodingType :: Maybe EncodingType
$sel:encodingType:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe EncodingType
encodingType} -> Maybe EncodingType
encodingType) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe EncodingType
a -> ListObjectsV2Response
s {$sel:encodingType:ListObjectsV2Response' :: Maybe EncodingType
encodingType = Maybe EncodingType
a} :: ListObjectsV2Response)
listObjectsV2Response_name :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe BucketName)
listObjectsV2Response_name :: (Maybe BucketName -> f (Maybe BucketName))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_name = (ListObjectsV2Response -> Maybe BucketName)
-> (ListObjectsV2Response
-> Maybe BucketName -> ListObjectsV2Response)
-> Lens
ListObjectsV2Response
ListObjectsV2Response
(Maybe BucketName)
(Maybe BucketName)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe BucketName
name :: Maybe BucketName
$sel:name:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe BucketName
name} -> Maybe BucketName
name) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe BucketName
a -> ListObjectsV2Response
s {$sel:name:ListObjectsV2Response' :: Maybe BucketName
name = Maybe BucketName
a} :: ListObjectsV2Response)
listObjectsV2Response_nextContinuationToken :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe Prelude.Text)
listObjectsV2Response_nextContinuationToken :: (Maybe Text -> f (Maybe Text))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_nextContinuationToken = (ListObjectsV2Response -> Maybe Text)
-> (ListObjectsV2Response -> Maybe Text -> ListObjectsV2Response)
-> Lens' ListObjectsV2Response (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe Text
nextContinuationToken :: Maybe Text
$sel:nextContinuationToken:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe Text
nextContinuationToken} -> Maybe Text
nextContinuationToken) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe Text
a -> ListObjectsV2Response
s {$sel:nextContinuationToken:ListObjectsV2Response' :: Maybe Text
nextContinuationToken = Maybe Text
a} :: ListObjectsV2Response)
listObjectsV2Response_maxKeys :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe Prelude.Int)
listObjectsV2Response_maxKeys :: (Maybe Int -> f (Maybe Int))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_maxKeys = (ListObjectsV2Response -> Maybe Int)
-> (ListObjectsV2Response -> Maybe Int -> ListObjectsV2Response)
-> Lens
ListObjectsV2Response ListObjectsV2Response (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe Int
maxKeys :: Maybe Int
$sel:maxKeys:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe Int
maxKeys} -> Maybe Int
maxKeys) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe Int
a -> ListObjectsV2Response
s {$sel:maxKeys:ListObjectsV2Response' :: Maybe Int
maxKeys = Maybe Int
a} :: ListObjectsV2Response)
listObjectsV2Response_isTruncated :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe Prelude.Bool)
listObjectsV2Response_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_isTruncated = (ListObjectsV2Response -> Maybe Bool)
-> (ListObjectsV2Response -> Maybe Bool -> ListObjectsV2Response)
-> Lens' ListObjectsV2Response (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe Bool
a -> ListObjectsV2Response
s {$sel:isTruncated:ListObjectsV2Response' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListObjectsV2Response)
listObjectsV2Response_delimiter :: Lens.Lens' ListObjectsV2Response (Prelude.Maybe Delimiter)
listObjectsV2Response_delimiter :: (Maybe Delimiter -> f (Maybe Delimiter))
-> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_delimiter = (ListObjectsV2Response -> Maybe Delimiter)
-> (ListObjectsV2Response
-> Maybe Delimiter -> ListObjectsV2Response)
-> Lens
ListObjectsV2Response
ListObjectsV2Response
(Maybe Delimiter)
(Maybe Delimiter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Maybe Delimiter
delimiter :: Maybe Delimiter
$sel:delimiter:ListObjectsV2Response' :: ListObjectsV2Response -> Maybe Delimiter
delimiter} -> Maybe Delimiter
delimiter) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Maybe Delimiter
a -> ListObjectsV2Response
s {$sel:delimiter:ListObjectsV2Response' :: Maybe Delimiter
delimiter = Maybe Delimiter
a} :: ListObjectsV2Response)
listObjectsV2Response_httpStatus :: Lens.Lens' ListObjectsV2Response Prelude.Int
listObjectsV2Response_httpStatus :: (Int -> f Int) -> ListObjectsV2Response -> f ListObjectsV2Response
listObjectsV2Response_httpStatus = (ListObjectsV2Response -> Int)
-> (ListObjectsV2Response -> Int -> ListObjectsV2Response)
-> Lens ListObjectsV2Response ListObjectsV2Response Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListObjectsV2Response' {Int
httpStatus :: Int
$sel:httpStatus:ListObjectsV2Response' :: ListObjectsV2Response -> Int
httpStatus} -> Int
httpStatus) (\s :: ListObjectsV2Response
s@ListObjectsV2Response' {} Int
a -> ListObjectsV2Response
s {$sel:httpStatus:ListObjectsV2Response' :: Int
httpStatus = Int
a} :: ListObjectsV2Response)
instance Prelude.NFData ListObjectsV2Response