{-# 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.ListMultipartUploads
(
ListMultipartUploads (..),
newListMultipartUploads,
listMultipartUploads_keyMarker,
listMultipartUploads_prefix,
listMultipartUploads_encodingType,
listMultipartUploads_uploadIdMarker,
listMultipartUploads_maxUploads,
listMultipartUploads_delimiter,
listMultipartUploads_expectedBucketOwner,
listMultipartUploads_bucket,
ListMultipartUploadsResponse (..),
newListMultipartUploadsResponse,
listMultipartUploadsResponse_keyMarker,
listMultipartUploadsResponse_prefix,
listMultipartUploadsResponse_commonPrefixes,
listMultipartUploadsResponse_encodingType,
listMultipartUploadsResponse_bucket,
listMultipartUploadsResponse_uploadIdMarker,
listMultipartUploadsResponse_maxUploads,
listMultipartUploadsResponse_nextKeyMarker,
listMultipartUploadsResponse_uploads,
listMultipartUploadsResponse_isTruncated,
listMultipartUploadsResponse_nextUploadIdMarker,
listMultipartUploadsResponse_delimiter,
listMultipartUploadsResponse_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 ListMultipartUploads = ListMultipartUploads'
{
ListMultipartUploads -> Maybe Text
keyMarker :: Prelude.Maybe Prelude.Text,
ListMultipartUploads -> Maybe Text
prefix :: Prelude.Maybe Prelude.Text,
ListMultipartUploads -> Maybe EncodingType
encodingType :: Prelude.Maybe EncodingType,
ListMultipartUploads -> Maybe Text
uploadIdMarker :: Prelude.Maybe Prelude.Text,
ListMultipartUploads -> Maybe Int
maxUploads :: Prelude.Maybe Prelude.Int,
ListMultipartUploads -> Maybe Delimiter
delimiter :: Prelude.Maybe Delimiter,
ListMultipartUploads -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
ListMultipartUploads -> BucketName
bucket :: BucketName
}
deriving (ListMultipartUploads -> ListMultipartUploads -> Bool
(ListMultipartUploads -> ListMultipartUploads -> Bool)
-> (ListMultipartUploads -> ListMultipartUploads -> Bool)
-> Eq ListMultipartUploads
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMultipartUploads -> ListMultipartUploads -> Bool
$c/= :: ListMultipartUploads -> ListMultipartUploads -> Bool
== :: ListMultipartUploads -> ListMultipartUploads -> Bool
$c== :: ListMultipartUploads -> ListMultipartUploads -> Bool
Prelude.Eq, ReadPrec [ListMultipartUploads]
ReadPrec ListMultipartUploads
Int -> ReadS ListMultipartUploads
ReadS [ListMultipartUploads]
(Int -> ReadS ListMultipartUploads)
-> ReadS [ListMultipartUploads]
-> ReadPrec ListMultipartUploads
-> ReadPrec [ListMultipartUploads]
-> Read ListMultipartUploads
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMultipartUploads]
$creadListPrec :: ReadPrec [ListMultipartUploads]
readPrec :: ReadPrec ListMultipartUploads
$creadPrec :: ReadPrec ListMultipartUploads
readList :: ReadS [ListMultipartUploads]
$creadList :: ReadS [ListMultipartUploads]
readsPrec :: Int -> ReadS ListMultipartUploads
$creadsPrec :: Int -> ReadS ListMultipartUploads
Prelude.Read, Int -> ListMultipartUploads -> ShowS
[ListMultipartUploads] -> ShowS
ListMultipartUploads -> String
(Int -> ListMultipartUploads -> ShowS)
-> (ListMultipartUploads -> String)
-> ([ListMultipartUploads] -> ShowS)
-> Show ListMultipartUploads
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMultipartUploads] -> ShowS
$cshowList :: [ListMultipartUploads] -> ShowS
show :: ListMultipartUploads -> String
$cshow :: ListMultipartUploads -> String
showsPrec :: Int -> ListMultipartUploads -> ShowS
$cshowsPrec :: Int -> ListMultipartUploads -> ShowS
Prelude.Show, (forall x. ListMultipartUploads -> Rep ListMultipartUploads x)
-> (forall x. Rep ListMultipartUploads x -> ListMultipartUploads)
-> Generic ListMultipartUploads
forall x. Rep ListMultipartUploads x -> ListMultipartUploads
forall x. ListMultipartUploads -> Rep ListMultipartUploads x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListMultipartUploads x -> ListMultipartUploads
$cfrom :: forall x. ListMultipartUploads -> Rep ListMultipartUploads x
Prelude.Generic)
newListMultipartUploads ::
BucketName ->
ListMultipartUploads
newListMultipartUploads :: BucketName -> ListMultipartUploads
newListMultipartUploads BucketName
pBucket_ =
ListMultipartUploads' :: Maybe Text
-> Maybe Text
-> Maybe EncodingType
-> Maybe Text
-> Maybe Int
-> Maybe Delimiter
-> Maybe Text
-> BucketName
-> ListMultipartUploads
ListMultipartUploads'
{ $sel:keyMarker:ListMultipartUploads' :: Maybe Text
keyMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:prefix:ListMultipartUploads' :: Maybe Text
prefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:encodingType:ListMultipartUploads' :: Maybe EncodingType
encodingType = Maybe EncodingType
forall a. Maybe a
Prelude.Nothing,
$sel:uploadIdMarker:ListMultipartUploads' :: Maybe Text
uploadIdMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxUploads:ListMultipartUploads' :: Maybe Int
maxUploads = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:delimiter:ListMultipartUploads' :: Maybe Delimiter
delimiter = Maybe Delimiter
forall a. Maybe a
Prelude.Nothing,
$sel:expectedBucketOwner:ListMultipartUploads' :: Maybe Text
expectedBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucket:ListMultipartUploads' :: BucketName
bucket = BucketName
pBucket_
}
listMultipartUploads_keyMarker :: Lens.Lens' ListMultipartUploads (Prelude.Maybe Prelude.Text)
listMultipartUploads_keyMarker :: (Maybe Text -> f (Maybe Text))
-> ListMultipartUploads -> f ListMultipartUploads
listMultipartUploads_keyMarker = (ListMultipartUploads -> Maybe Text)
-> (ListMultipartUploads -> Maybe Text -> ListMultipartUploads)
-> Lens
ListMultipartUploads ListMultipartUploads (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploads' {Maybe Text
keyMarker :: Maybe Text
$sel:keyMarker:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
keyMarker} -> Maybe Text
keyMarker) (\s :: ListMultipartUploads
s@ListMultipartUploads' {} Maybe Text
a -> ListMultipartUploads
s {$sel:keyMarker:ListMultipartUploads' :: Maybe Text
keyMarker = Maybe Text
a} :: ListMultipartUploads)
listMultipartUploads_prefix :: Lens.Lens' ListMultipartUploads (Prelude.Maybe Prelude.Text)
listMultipartUploads_prefix :: (Maybe Text -> f (Maybe Text))
-> ListMultipartUploads -> f ListMultipartUploads
listMultipartUploads_prefix = (ListMultipartUploads -> Maybe Text)
-> (ListMultipartUploads -> Maybe Text -> ListMultipartUploads)
-> Lens
ListMultipartUploads ListMultipartUploads (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploads' {Maybe Text
prefix :: Maybe Text
$sel:prefix:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
prefix} -> Maybe Text
prefix) (\s :: ListMultipartUploads
s@ListMultipartUploads' {} Maybe Text
a -> ListMultipartUploads
s {$sel:prefix:ListMultipartUploads' :: Maybe Text
prefix = Maybe Text
a} :: ListMultipartUploads)
listMultipartUploads_encodingType :: Lens.Lens' ListMultipartUploads (Prelude.Maybe EncodingType)
listMultipartUploads_encodingType :: (Maybe EncodingType -> f (Maybe EncodingType))
-> ListMultipartUploads -> f ListMultipartUploads
listMultipartUploads_encodingType = (ListMultipartUploads -> Maybe EncodingType)
-> (ListMultipartUploads
-> Maybe EncodingType -> ListMultipartUploads)
-> Lens
ListMultipartUploads
ListMultipartUploads
(Maybe EncodingType)
(Maybe EncodingType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploads' {Maybe EncodingType
encodingType :: Maybe EncodingType
$sel:encodingType:ListMultipartUploads' :: ListMultipartUploads -> Maybe EncodingType
encodingType} -> Maybe EncodingType
encodingType) (\s :: ListMultipartUploads
s@ListMultipartUploads' {} Maybe EncodingType
a -> ListMultipartUploads
s {$sel:encodingType:ListMultipartUploads' :: Maybe EncodingType
encodingType = Maybe EncodingType
a} :: ListMultipartUploads)
listMultipartUploads_uploadIdMarker :: Lens.Lens' ListMultipartUploads (Prelude.Maybe Prelude.Text)
listMultipartUploads_uploadIdMarker :: (Maybe Text -> f (Maybe Text))
-> ListMultipartUploads -> f ListMultipartUploads
listMultipartUploads_uploadIdMarker = (ListMultipartUploads -> Maybe Text)
-> (ListMultipartUploads -> Maybe Text -> ListMultipartUploads)
-> Lens
ListMultipartUploads ListMultipartUploads (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploads' {Maybe Text
uploadIdMarker :: Maybe Text
$sel:uploadIdMarker:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
uploadIdMarker} -> Maybe Text
uploadIdMarker) (\s :: ListMultipartUploads
s@ListMultipartUploads' {} Maybe Text
a -> ListMultipartUploads
s {$sel:uploadIdMarker:ListMultipartUploads' :: Maybe Text
uploadIdMarker = Maybe Text
a} :: ListMultipartUploads)
listMultipartUploads_maxUploads :: Lens.Lens' ListMultipartUploads (Prelude.Maybe Prelude.Int)
listMultipartUploads_maxUploads :: (Maybe Int -> f (Maybe Int))
-> ListMultipartUploads -> f ListMultipartUploads
listMultipartUploads_maxUploads = (ListMultipartUploads -> Maybe Int)
-> (ListMultipartUploads -> Maybe Int -> ListMultipartUploads)
-> Lens
ListMultipartUploads ListMultipartUploads (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploads' {Maybe Int
maxUploads :: Maybe Int
$sel:maxUploads:ListMultipartUploads' :: ListMultipartUploads -> Maybe Int
maxUploads} -> Maybe Int
maxUploads) (\s :: ListMultipartUploads
s@ListMultipartUploads' {} Maybe Int
a -> ListMultipartUploads
s {$sel:maxUploads:ListMultipartUploads' :: Maybe Int
maxUploads = Maybe Int
a} :: ListMultipartUploads)
listMultipartUploads_delimiter :: Lens.Lens' ListMultipartUploads (Prelude.Maybe Delimiter)
listMultipartUploads_delimiter :: (Maybe Delimiter -> f (Maybe Delimiter))
-> ListMultipartUploads -> f ListMultipartUploads
listMultipartUploads_delimiter = (ListMultipartUploads -> Maybe Delimiter)
-> (ListMultipartUploads
-> Maybe Delimiter -> ListMultipartUploads)
-> Lens
ListMultipartUploads
ListMultipartUploads
(Maybe Delimiter)
(Maybe Delimiter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploads' {Maybe Delimiter
delimiter :: Maybe Delimiter
$sel:delimiter:ListMultipartUploads' :: ListMultipartUploads -> Maybe Delimiter
delimiter} -> Maybe Delimiter
delimiter) (\s :: ListMultipartUploads
s@ListMultipartUploads' {} Maybe Delimiter
a -> ListMultipartUploads
s {$sel:delimiter:ListMultipartUploads' :: Maybe Delimiter
delimiter = Maybe Delimiter
a} :: ListMultipartUploads)
listMultipartUploads_expectedBucketOwner :: Lens.Lens' ListMultipartUploads (Prelude.Maybe Prelude.Text)
listMultipartUploads_expectedBucketOwner :: (Maybe Text -> f (Maybe Text))
-> ListMultipartUploads -> f ListMultipartUploads
listMultipartUploads_expectedBucketOwner = (ListMultipartUploads -> Maybe Text)
-> (ListMultipartUploads -> Maybe Text -> ListMultipartUploads)
-> Lens
ListMultipartUploads ListMultipartUploads (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploads' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: ListMultipartUploads
s@ListMultipartUploads' {} Maybe Text
a -> ListMultipartUploads
s {$sel:expectedBucketOwner:ListMultipartUploads' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: ListMultipartUploads)
listMultipartUploads_bucket :: Lens.Lens' ListMultipartUploads BucketName
listMultipartUploads_bucket :: (BucketName -> f BucketName)
-> ListMultipartUploads -> f ListMultipartUploads
listMultipartUploads_bucket = (ListMultipartUploads -> BucketName)
-> (ListMultipartUploads -> BucketName -> ListMultipartUploads)
-> Lens
ListMultipartUploads ListMultipartUploads BucketName BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploads' {BucketName
bucket :: BucketName
$sel:bucket:ListMultipartUploads' :: ListMultipartUploads -> BucketName
bucket} -> BucketName
bucket) (\s :: ListMultipartUploads
s@ListMultipartUploads' {} BucketName
a -> ListMultipartUploads
s {$sel:bucket:ListMultipartUploads' :: BucketName
bucket = BucketName
a} :: ListMultipartUploads)
instance Core.AWSPager ListMultipartUploads where
page :: ListMultipartUploads
-> AWSResponse ListMultipartUploads -> Maybe ListMultipartUploads
page ListMultipartUploads
rq AWSResponse ListMultipartUploads
rs
| Maybe Bool -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListMultipartUploads
ListMultipartUploadsResponse
rs
ListMultipartUploadsResponse
-> Getting (First Bool) ListMultipartUploadsResponse Bool
-> Maybe Bool
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListMultipartUploadsResponse
-> Const (First Bool) ListMultipartUploadsResponse
Lens' ListMultipartUploadsResponse (Maybe Bool)
listMultipartUploadsResponse_isTruncated
((Maybe Bool -> Const (First Bool) (Maybe Bool))
-> ListMultipartUploadsResponse
-> Const (First Bool) ListMultipartUploadsResponse)
-> ((Bool -> Const (First Bool) Bool)
-> Maybe Bool -> Const (First Bool) (Maybe Bool))
-> Getting (First Bool) ListMultipartUploadsResponse 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 ListMultipartUploads
forall a. Maybe a
Prelude.Nothing
| Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse ListMultipartUploads
ListMultipartUploadsResponse
rs
ListMultipartUploadsResponse
-> Getting (First Text) ListMultipartUploadsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListMultipartUploadsResponse
-> Const (First Text) ListMultipartUploadsResponse
Lens' ListMultipartUploadsResponse (Maybe Text)
listMultipartUploadsResponse_nextKeyMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListMultipartUploadsResponse
-> Const (First Text) ListMultipartUploadsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListMultipartUploadsResponse 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
)
Bool -> Bool -> Bool
Prelude.&& Maybe Text -> Bool
forall a. Maybe a -> Bool
Prelude.isNothing
( AWSResponse ListMultipartUploads
ListMultipartUploadsResponse
rs
ListMultipartUploadsResponse
-> Getting (First Text) ListMultipartUploadsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListMultipartUploadsResponse
-> Const (First Text) ListMultipartUploadsResponse
Lens' ListMultipartUploadsResponse (Maybe Text)
listMultipartUploadsResponse_nextUploadIdMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListMultipartUploadsResponse
-> Const (First Text) ListMultipartUploadsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListMultipartUploadsResponse 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 ListMultipartUploads
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListMultipartUploads -> Maybe ListMultipartUploads
forall a. a -> Maybe a
Prelude.Just (ListMultipartUploads -> Maybe ListMultipartUploads)
-> ListMultipartUploads -> Maybe ListMultipartUploads
forall a b. (a -> b) -> a -> b
Prelude.$
ListMultipartUploads
rq
ListMultipartUploads
-> (ListMultipartUploads -> ListMultipartUploads)
-> ListMultipartUploads
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListMultipartUploads -> Identity ListMultipartUploads
Lens
ListMultipartUploads ListMultipartUploads (Maybe Text) (Maybe Text)
listMultipartUploads_keyMarker
((Maybe Text -> Identity (Maybe Text))
-> ListMultipartUploads -> Identity ListMultipartUploads)
-> Maybe Text -> ListMultipartUploads -> ListMultipartUploads
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListMultipartUploads
ListMultipartUploadsResponse
rs
ListMultipartUploadsResponse
-> Getting (First Text) ListMultipartUploadsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListMultipartUploadsResponse
-> Const (First Text) ListMultipartUploadsResponse
Lens' ListMultipartUploadsResponse (Maybe Text)
listMultipartUploadsResponse_nextKeyMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListMultipartUploadsResponse
-> Const (First Text) ListMultipartUploadsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListMultipartUploadsResponse 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
ListMultipartUploads
-> (ListMultipartUploads -> ListMultipartUploads)
-> ListMultipartUploads
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListMultipartUploads -> Identity ListMultipartUploads
Lens
ListMultipartUploads ListMultipartUploads (Maybe Text) (Maybe Text)
listMultipartUploads_uploadIdMarker
((Maybe Text -> Identity (Maybe Text))
-> ListMultipartUploads -> Identity ListMultipartUploads)
-> Maybe Text -> ListMultipartUploads -> ListMultipartUploads
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListMultipartUploads
ListMultipartUploadsResponse
rs
ListMultipartUploadsResponse
-> Getting (First Text) ListMultipartUploadsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListMultipartUploadsResponse
-> Const (First Text) ListMultipartUploadsResponse
Lens' ListMultipartUploadsResponse (Maybe Text)
listMultipartUploadsResponse_nextUploadIdMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListMultipartUploadsResponse
-> Const (First Text) ListMultipartUploadsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListMultipartUploadsResponse 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 ListMultipartUploads where
type
AWSResponse ListMultipartUploads =
ListMultipartUploadsResponse
request :: ListMultipartUploads -> Request ListMultipartUploads
request =
Request ListMultipartUploads -> Request ListMultipartUploads
forall a. Request a -> Request a
Request.s3vhost
(Request ListMultipartUploads -> Request ListMultipartUploads)
-> (ListMultipartUploads -> Request ListMultipartUploads)
-> ListMultipartUploads
-> Request ListMultipartUploads
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service -> ListMultipartUploads -> Request ListMultipartUploads
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListMultipartUploads
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListMultipartUploads)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListMultipartUploads))
-> Logger
-> Service
-> Proxy ListMultipartUploads
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListMultipartUploads)))
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 Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse
ListMultipartUploadsResponse'
(Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
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
"KeyMarker")
Either
String
(Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
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 Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
-> Either String (Maybe [CommonPrefix])
-> Either
String
(Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
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 Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
-> Either String (Maybe EncodingType)
-> Either
String
(Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
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 Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
-> Either String (Maybe BucketName)
-> Either
String
(Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
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
"Bucket")
Either
String
(Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
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
"UploadIdMarker")
Either
String
(Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
-> Either String (Maybe Int)
-> Either
String
(Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
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
"MaxUploads")
Either
String
(Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
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
"NextKeyMarker")
Either
String
(Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
-> Either String (Maybe [MultipartUpload])
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (([Node] -> Either String [MultipartUpload])
-> [Node] -> Either String (Maybe [MultipartUpload])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [MultipartUpload]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"Upload") [Node]
x)
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Delimiter -> Int -> ListMultipartUploadsResponse)
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 Text
-> Maybe Delimiter -> Int -> ListMultipartUploadsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Delimiter -> Int -> ListMultipartUploadsResponse)
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
"NextUploadIdMarker")
Either
String (Maybe Delimiter -> Int -> ListMultipartUploadsResponse)
-> Either String (Maybe Delimiter)
-> Either String (Int -> ListMultipartUploadsResponse)
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 -> ListMultipartUploadsResponse)
-> Either String Int -> Either String ListMultipartUploadsResponse
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 ListMultipartUploads
instance Prelude.NFData ListMultipartUploads
instance Core.ToHeaders ListMultipartUploads where
toHeaders :: ListMultipartUploads -> ResponseHeaders
toHeaders ListMultipartUploads' {Maybe Delimiter
Maybe Int
Maybe Text
Maybe EncodingType
BucketName
bucket :: BucketName
expectedBucketOwner :: Maybe Text
delimiter :: Maybe Delimiter
maxUploads :: Maybe Int
uploadIdMarker :: Maybe Text
encodingType :: Maybe EncodingType
prefix :: Maybe Text
keyMarker :: Maybe Text
$sel:bucket:ListMultipartUploads' :: ListMultipartUploads -> BucketName
$sel:expectedBucketOwner:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
$sel:delimiter:ListMultipartUploads' :: ListMultipartUploads -> Maybe Delimiter
$sel:maxUploads:ListMultipartUploads' :: ListMultipartUploads -> Maybe Int
$sel:uploadIdMarker:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
$sel:encodingType:ListMultipartUploads' :: ListMultipartUploads -> Maybe EncodingType
$sel:prefix:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
$sel:keyMarker:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"x-amz-expected-bucket-owner"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
expectedBucketOwner
]
instance Core.ToPath ListMultipartUploads where
toPath :: ListMultipartUploads -> ByteString
toPath ListMultipartUploads' {Maybe Delimiter
Maybe Int
Maybe Text
Maybe EncodingType
BucketName
bucket :: BucketName
expectedBucketOwner :: Maybe Text
delimiter :: Maybe Delimiter
maxUploads :: Maybe Int
uploadIdMarker :: Maybe Text
encodingType :: Maybe EncodingType
prefix :: Maybe Text
keyMarker :: Maybe Text
$sel:bucket:ListMultipartUploads' :: ListMultipartUploads -> BucketName
$sel:expectedBucketOwner:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
$sel:delimiter:ListMultipartUploads' :: ListMultipartUploads -> Maybe Delimiter
$sel:maxUploads:ListMultipartUploads' :: ListMultipartUploads -> Maybe Int
$sel:uploadIdMarker:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
$sel:encodingType:ListMultipartUploads' :: ListMultipartUploads -> Maybe EncodingType
$sel:prefix:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
$sel:keyMarker:ListMultipartUploads' :: ListMultipartUploads -> 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 ListMultipartUploads where
toQuery :: ListMultipartUploads -> QueryString
toQuery ListMultipartUploads' {Maybe Delimiter
Maybe Int
Maybe Text
Maybe EncodingType
BucketName
bucket :: BucketName
expectedBucketOwner :: Maybe Text
delimiter :: Maybe Delimiter
maxUploads :: Maybe Int
uploadIdMarker :: Maybe Text
encodingType :: Maybe EncodingType
prefix :: Maybe Text
keyMarker :: Maybe Text
$sel:bucket:ListMultipartUploads' :: ListMultipartUploads -> BucketName
$sel:expectedBucketOwner:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
$sel:delimiter:ListMultipartUploads' :: ListMultipartUploads -> Maybe Delimiter
$sel:maxUploads:ListMultipartUploads' :: ListMultipartUploads -> Maybe Int
$sel:uploadIdMarker:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
$sel:encodingType:ListMultipartUploads' :: ListMultipartUploads -> Maybe EncodingType
$sel:prefix:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
$sel:keyMarker:ListMultipartUploads' :: ListMultipartUploads -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"key-marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
keyMarker,
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
"upload-id-marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
uploadIdMarker,
ByteString
"max-uploads" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxUploads,
ByteString
"delimiter" ByteString -> Maybe Delimiter -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Delimiter
delimiter,
QueryString
"uploads"
]
data ListMultipartUploadsResponse = ListMultipartUploadsResponse'
{
ListMultipartUploadsResponse -> Maybe Text
keyMarker :: Prelude.Maybe Prelude.Text,
ListMultipartUploadsResponse -> Maybe Text
prefix :: Prelude.Maybe Prelude.Text,
ListMultipartUploadsResponse -> Maybe [CommonPrefix]
commonPrefixes :: Prelude.Maybe [CommonPrefix],
ListMultipartUploadsResponse -> Maybe EncodingType
encodingType :: Prelude.Maybe EncodingType,
ListMultipartUploadsResponse -> Maybe BucketName
bucket :: Prelude.Maybe BucketName,
ListMultipartUploadsResponse -> Maybe Text
uploadIdMarker :: Prelude.Maybe Prelude.Text,
ListMultipartUploadsResponse -> Maybe Int
maxUploads :: Prelude.Maybe Prelude.Int,
ListMultipartUploadsResponse -> Maybe Text
nextKeyMarker :: Prelude.Maybe Prelude.Text,
ListMultipartUploadsResponse -> Maybe [MultipartUpload]
uploads :: Prelude.Maybe [MultipartUpload],
ListMultipartUploadsResponse -> Maybe Bool
isTruncated :: Prelude.Maybe Prelude.Bool,
ListMultipartUploadsResponse -> Maybe Text
nextUploadIdMarker :: Prelude.Maybe Prelude.Text,
ListMultipartUploadsResponse -> Maybe Delimiter
delimiter :: Prelude.Maybe Delimiter,
ListMultipartUploadsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListMultipartUploadsResponse
-> ListMultipartUploadsResponse -> Bool
(ListMultipartUploadsResponse
-> ListMultipartUploadsResponse -> Bool)
-> (ListMultipartUploadsResponse
-> ListMultipartUploadsResponse -> Bool)
-> Eq ListMultipartUploadsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListMultipartUploadsResponse
-> ListMultipartUploadsResponse -> Bool
$c/= :: ListMultipartUploadsResponse
-> ListMultipartUploadsResponse -> Bool
== :: ListMultipartUploadsResponse
-> ListMultipartUploadsResponse -> Bool
$c== :: ListMultipartUploadsResponse
-> ListMultipartUploadsResponse -> Bool
Prelude.Eq, ReadPrec [ListMultipartUploadsResponse]
ReadPrec ListMultipartUploadsResponse
Int -> ReadS ListMultipartUploadsResponse
ReadS [ListMultipartUploadsResponse]
(Int -> ReadS ListMultipartUploadsResponse)
-> ReadS [ListMultipartUploadsResponse]
-> ReadPrec ListMultipartUploadsResponse
-> ReadPrec [ListMultipartUploadsResponse]
-> Read ListMultipartUploadsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListMultipartUploadsResponse]
$creadListPrec :: ReadPrec [ListMultipartUploadsResponse]
readPrec :: ReadPrec ListMultipartUploadsResponse
$creadPrec :: ReadPrec ListMultipartUploadsResponse
readList :: ReadS [ListMultipartUploadsResponse]
$creadList :: ReadS [ListMultipartUploadsResponse]
readsPrec :: Int -> ReadS ListMultipartUploadsResponse
$creadsPrec :: Int -> ReadS ListMultipartUploadsResponse
Prelude.Read, Int -> ListMultipartUploadsResponse -> ShowS
[ListMultipartUploadsResponse] -> ShowS
ListMultipartUploadsResponse -> String
(Int -> ListMultipartUploadsResponse -> ShowS)
-> (ListMultipartUploadsResponse -> String)
-> ([ListMultipartUploadsResponse] -> ShowS)
-> Show ListMultipartUploadsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListMultipartUploadsResponse] -> ShowS
$cshowList :: [ListMultipartUploadsResponse] -> ShowS
show :: ListMultipartUploadsResponse -> String
$cshow :: ListMultipartUploadsResponse -> String
showsPrec :: Int -> ListMultipartUploadsResponse -> ShowS
$cshowsPrec :: Int -> ListMultipartUploadsResponse -> ShowS
Prelude.Show, (forall x.
ListMultipartUploadsResponse -> Rep ListMultipartUploadsResponse x)
-> (forall x.
Rep ListMultipartUploadsResponse x -> ListMultipartUploadsResponse)
-> Generic ListMultipartUploadsResponse
forall x.
Rep ListMultipartUploadsResponse x -> ListMultipartUploadsResponse
forall x.
ListMultipartUploadsResponse -> Rep ListMultipartUploadsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListMultipartUploadsResponse x -> ListMultipartUploadsResponse
$cfrom :: forall x.
ListMultipartUploadsResponse -> Rep ListMultipartUploadsResponse x
Prelude.Generic)
newListMultipartUploadsResponse ::
Prelude.Int ->
ListMultipartUploadsResponse
newListMultipartUploadsResponse :: Int -> ListMultipartUploadsResponse
newListMultipartUploadsResponse Int
pHttpStatus_ =
ListMultipartUploadsResponse' :: Maybe Text
-> Maybe Text
-> Maybe [CommonPrefix]
-> Maybe EncodingType
-> Maybe BucketName
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe [MultipartUpload]
-> Maybe Bool
-> Maybe Text
-> Maybe Delimiter
-> Int
-> ListMultipartUploadsResponse
ListMultipartUploadsResponse'
{ $sel:keyMarker:ListMultipartUploadsResponse' :: Maybe Text
keyMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:prefix:ListMultipartUploadsResponse' :: Maybe Text
prefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:commonPrefixes:ListMultipartUploadsResponse' :: Maybe [CommonPrefix]
commonPrefixes = Maybe [CommonPrefix]
forall a. Maybe a
Prelude.Nothing,
$sel:encodingType:ListMultipartUploadsResponse' :: Maybe EncodingType
encodingType = Maybe EncodingType
forall a. Maybe a
Prelude.Nothing,
$sel:bucket:ListMultipartUploadsResponse' :: Maybe BucketName
bucket = Maybe BucketName
forall a. Maybe a
Prelude.Nothing,
$sel:uploadIdMarker:ListMultipartUploadsResponse' :: Maybe Text
uploadIdMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxUploads:ListMultipartUploadsResponse' :: Maybe Int
maxUploads = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:nextKeyMarker:ListMultipartUploadsResponse' :: Maybe Text
nextKeyMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:uploads:ListMultipartUploadsResponse' :: Maybe [MultipartUpload]
uploads = Maybe [MultipartUpload]
forall a. Maybe a
Prelude.Nothing,
$sel:isTruncated:ListMultipartUploadsResponse' :: Maybe Bool
isTruncated = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nextUploadIdMarker:ListMultipartUploadsResponse' :: Maybe Text
nextUploadIdMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:delimiter:ListMultipartUploadsResponse' :: Maybe Delimiter
delimiter = Maybe Delimiter
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListMultipartUploadsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listMultipartUploadsResponse_keyMarker :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe Prelude.Text)
listMultipartUploadsResponse_keyMarker :: (Maybe Text -> f (Maybe Text))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_keyMarker = (ListMultipartUploadsResponse -> Maybe Text)
-> (ListMultipartUploadsResponse
-> Maybe Text -> ListMultipartUploadsResponse)
-> Lens' ListMultipartUploadsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe Text
keyMarker :: Maybe Text
$sel:keyMarker:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe Text
keyMarker} -> Maybe Text
keyMarker) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe Text
a -> ListMultipartUploadsResponse
s {$sel:keyMarker:ListMultipartUploadsResponse' :: Maybe Text
keyMarker = Maybe Text
a} :: ListMultipartUploadsResponse)
listMultipartUploadsResponse_prefix :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe Prelude.Text)
listMultipartUploadsResponse_prefix :: (Maybe Text -> f (Maybe Text))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_prefix = (ListMultipartUploadsResponse -> Maybe Text)
-> (ListMultipartUploadsResponse
-> Maybe Text -> ListMultipartUploadsResponse)
-> Lens' ListMultipartUploadsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe Text
prefix :: Maybe Text
$sel:prefix:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe Text
prefix} -> Maybe Text
prefix) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe Text
a -> ListMultipartUploadsResponse
s {$sel:prefix:ListMultipartUploadsResponse' :: Maybe Text
prefix = Maybe Text
a} :: ListMultipartUploadsResponse)
listMultipartUploadsResponse_commonPrefixes :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe [CommonPrefix])
listMultipartUploadsResponse_commonPrefixes :: (Maybe [CommonPrefix] -> f (Maybe [CommonPrefix]))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_commonPrefixes = (ListMultipartUploadsResponse -> Maybe [CommonPrefix])
-> (ListMultipartUploadsResponse
-> Maybe [CommonPrefix] -> ListMultipartUploadsResponse)
-> Lens
ListMultipartUploadsResponse
ListMultipartUploadsResponse
(Maybe [CommonPrefix])
(Maybe [CommonPrefix])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe [CommonPrefix]
commonPrefixes :: Maybe [CommonPrefix]
$sel:commonPrefixes:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe [CommonPrefix]
commonPrefixes} -> Maybe [CommonPrefix]
commonPrefixes) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe [CommonPrefix]
a -> ListMultipartUploadsResponse
s {$sel:commonPrefixes:ListMultipartUploadsResponse' :: Maybe [CommonPrefix]
commonPrefixes = Maybe [CommonPrefix]
a} :: ListMultipartUploadsResponse) ((Maybe [CommonPrefix] -> f (Maybe [CommonPrefix]))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse)
-> ((Maybe [CommonPrefix] -> f (Maybe [CommonPrefix]))
-> Maybe [CommonPrefix] -> f (Maybe [CommonPrefix]))
-> (Maybe [CommonPrefix] -> f (Maybe [CommonPrefix]))
-> ListMultipartUploadsResponse
-> f ListMultipartUploadsResponse
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
listMultipartUploadsResponse_encodingType :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe EncodingType)
listMultipartUploadsResponse_encodingType :: (Maybe EncodingType -> f (Maybe EncodingType))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_encodingType = (ListMultipartUploadsResponse -> Maybe EncodingType)
-> (ListMultipartUploadsResponse
-> Maybe EncodingType -> ListMultipartUploadsResponse)
-> Lens
ListMultipartUploadsResponse
ListMultipartUploadsResponse
(Maybe EncodingType)
(Maybe EncodingType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe EncodingType
encodingType :: Maybe EncodingType
$sel:encodingType:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe EncodingType
encodingType} -> Maybe EncodingType
encodingType) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe EncodingType
a -> ListMultipartUploadsResponse
s {$sel:encodingType:ListMultipartUploadsResponse' :: Maybe EncodingType
encodingType = Maybe EncodingType
a} :: ListMultipartUploadsResponse)
listMultipartUploadsResponse_bucket :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe BucketName)
listMultipartUploadsResponse_bucket :: (Maybe BucketName -> f (Maybe BucketName))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_bucket = (ListMultipartUploadsResponse -> Maybe BucketName)
-> (ListMultipartUploadsResponse
-> Maybe BucketName -> ListMultipartUploadsResponse)
-> Lens
ListMultipartUploadsResponse
ListMultipartUploadsResponse
(Maybe BucketName)
(Maybe BucketName)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe BucketName
bucket :: Maybe BucketName
$sel:bucket:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe BucketName
bucket} -> Maybe BucketName
bucket) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe BucketName
a -> ListMultipartUploadsResponse
s {$sel:bucket:ListMultipartUploadsResponse' :: Maybe BucketName
bucket = Maybe BucketName
a} :: ListMultipartUploadsResponse)
listMultipartUploadsResponse_uploadIdMarker :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe Prelude.Text)
listMultipartUploadsResponse_uploadIdMarker :: (Maybe Text -> f (Maybe Text))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_uploadIdMarker = (ListMultipartUploadsResponse -> Maybe Text)
-> (ListMultipartUploadsResponse
-> Maybe Text -> ListMultipartUploadsResponse)
-> Lens' ListMultipartUploadsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe Text
uploadIdMarker :: Maybe Text
$sel:uploadIdMarker:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe Text
uploadIdMarker} -> Maybe Text
uploadIdMarker) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe Text
a -> ListMultipartUploadsResponse
s {$sel:uploadIdMarker:ListMultipartUploadsResponse' :: Maybe Text
uploadIdMarker = Maybe Text
a} :: ListMultipartUploadsResponse)
listMultipartUploadsResponse_maxUploads :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe Prelude.Int)
listMultipartUploadsResponse_maxUploads :: (Maybe Int -> f (Maybe Int))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_maxUploads = (ListMultipartUploadsResponse -> Maybe Int)
-> (ListMultipartUploadsResponse
-> Maybe Int -> ListMultipartUploadsResponse)
-> Lens
ListMultipartUploadsResponse
ListMultipartUploadsResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe Int
maxUploads :: Maybe Int
$sel:maxUploads:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe Int
maxUploads} -> Maybe Int
maxUploads) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe Int
a -> ListMultipartUploadsResponse
s {$sel:maxUploads:ListMultipartUploadsResponse' :: Maybe Int
maxUploads = Maybe Int
a} :: ListMultipartUploadsResponse)
listMultipartUploadsResponse_nextKeyMarker :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe Prelude.Text)
listMultipartUploadsResponse_nextKeyMarker :: (Maybe Text -> f (Maybe Text))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_nextKeyMarker = (ListMultipartUploadsResponse -> Maybe Text)
-> (ListMultipartUploadsResponse
-> Maybe Text -> ListMultipartUploadsResponse)
-> Lens' ListMultipartUploadsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe Text
nextKeyMarker :: Maybe Text
$sel:nextKeyMarker:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe Text
nextKeyMarker} -> Maybe Text
nextKeyMarker) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe Text
a -> ListMultipartUploadsResponse
s {$sel:nextKeyMarker:ListMultipartUploadsResponse' :: Maybe Text
nextKeyMarker = Maybe Text
a} :: ListMultipartUploadsResponse)
listMultipartUploadsResponse_uploads :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe [MultipartUpload])
listMultipartUploadsResponse_uploads :: (Maybe [MultipartUpload] -> f (Maybe [MultipartUpload]))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_uploads = (ListMultipartUploadsResponse -> Maybe [MultipartUpload])
-> (ListMultipartUploadsResponse
-> Maybe [MultipartUpload] -> ListMultipartUploadsResponse)
-> Lens
ListMultipartUploadsResponse
ListMultipartUploadsResponse
(Maybe [MultipartUpload])
(Maybe [MultipartUpload])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe [MultipartUpload]
uploads :: Maybe [MultipartUpload]
$sel:uploads:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe [MultipartUpload]
uploads} -> Maybe [MultipartUpload]
uploads) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe [MultipartUpload]
a -> ListMultipartUploadsResponse
s {$sel:uploads:ListMultipartUploadsResponse' :: Maybe [MultipartUpload]
uploads = Maybe [MultipartUpload]
a} :: ListMultipartUploadsResponse) ((Maybe [MultipartUpload] -> f (Maybe [MultipartUpload]))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse)
-> ((Maybe [MultipartUpload] -> f (Maybe [MultipartUpload]))
-> Maybe [MultipartUpload] -> f (Maybe [MultipartUpload]))
-> (Maybe [MultipartUpload] -> f (Maybe [MultipartUpload]))
-> ListMultipartUploadsResponse
-> f ListMultipartUploadsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[MultipartUpload]
[MultipartUpload]
[MultipartUpload]
[MultipartUpload]
-> Iso
(Maybe [MultipartUpload])
(Maybe [MultipartUpload])
(Maybe [MultipartUpload])
(Maybe [MultipartUpload])
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
[MultipartUpload]
[MultipartUpload]
[MultipartUpload]
[MultipartUpload]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listMultipartUploadsResponse_isTruncated :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe Prelude.Bool)
listMultipartUploadsResponse_isTruncated :: (Maybe Bool -> f (Maybe Bool))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_isTruncated = (ListMultipartUploadsResponse -> Maybe Bool)
-> (ListMultipartUploadsResponse
-> Maybe Bool -> ListMultipartUploadsResponse)
-> Lens' ListMultipartUploadsResponse (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe Bool
isTruncated :: Maybe Bool
$sel:isTruncated:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe Bool
isTruncated} -> Maybe Bool
isTruncated) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe Bool
a -> ListMultipartUploadsResponse
s {$sel:isTruncated:ListMultipartUploadsResponse' :: Maybe Bool
isTruncated = Maybe Bool
a} :: ListMultipartUploadsResponse)
listMultipartUploadsResponse_nextUploadIdMarker :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe Prelude.Text)
listMultipartUploadsResponse_nextUploadIdMarker :: (Maybe Text -> f (Maybe Text))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_nextUploadIdMarker = (ListMultipartUploadsResponse -> Maybe Text)
-> (ListMultipartUploadsResponse
-> Maybe Text -> ListMultipartUploadsResponse)
-> Lens' ListMultipartUploadsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe Text
nextUploadIdMarker :: Maybe Text
$sel:nextUploadIdMarker:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe Text
nextUploadIdMarker} -> Maybe Text
nextUploadIdMarker) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe Text
a -> ListMultipartUploadsResponse
s {$sel:nextUploadIdMarker:ListMultipartUploadsResponse' :: Maybe Text
nextUploadIdMarker = Maybe Text
a} :: ListMultipartUploadsResponse)
listMultipartUploadsResponse_delimiter :: Lens.Lens' ListMultipartUploadsResponse (Prelude.Maybe Delimiter)
listMultipartUploadsResponse_delimiter :: (Maybe Delimiter -> f (Maybe Delimiter))
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_delimiter = (ListMultipartUploadsResponse -> Maybe Delimiter)
-> (ListMultipartUploadsResponse
-> Maybe Delimiter -> ListMultipartUploadsResponse)
-> Lens
ListMultipartUploadsResponse
ListMultipartUploadsResponse
(Maybe Delimiter)
(Maybe Delimiter)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Maybe Delimiter
delimiter :: Maybe Delimiter
$sel:delimiter:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Maybe Delimiter
delimiter} -> Maybe Delimiter
delimiter) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Maybe Delimiter
a -> ListMultipartUploadsResponse
s {$sel:delimiter:ListMultipartUploadsResponse' :: Maybe Delimiter
delimiter = Maybe Delimiter
a} :: ListMultipartUploadsResponse)
listMultipartUploadsResponse_httpStatus :: Lens.Lens' ListMultipartUploadsResponse Prelude.Int
listMultipartUploadsResponse_httpStatus :: (Int -> f Int)
-> ListMultipartUploadsResponse -> f ListMultipartUploadsResponse
listMultipartUploadsResponse_httpStatus = (ListMultipartUploadsResponse -> Int)
-> (ListMultipartUploadsResponse
-> Int -> ListMultipartUploadsResponse)
-> Lens
ListMultipartUploadsResponse ListMultipartUploadsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListMultipartUploadsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListMultipartUploadsResponse' :: ListMultipartUploadsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListMultipartUploadsResponse
s@ListMultipartUploadsResponse' {} Int
a -> ListMultipartUploadsResponse
s {$sel:httpStatus:ListMultipartUploadsResponse' :: Int
httpStatus = Int
a} :: ListMultipartUploadsResponse)
instance Prelude.NFData ListMultipartUploadsResponse