{-# 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.CompleteMultipartUpload
(
CompleteMultipartUpload (..),
newCompleteMultipartUpload,
completeMultipartUpload_requestPayer,
completeMultipartUpload_multipartUpload,
completeMultipartUpload_expectedBucketOwner,
completeMultipartUpload_bucket,
completeMultipartUpload_key,
completeMultipartUpload_uploadId,
CompleteMultipartUploadResponse (..),
newCompleteMultipartUploadResponse,
completeMultipartUploadResponse_requestCharged,
completeMultipartUploadResponse_eTag,
completeMultipartUploadResponse_versionId,
completeMultipartUploadResponse_location,
completeMultipartUploadResponse_expiration,
completeMultipartUploadResponse_bucket,
completeMultipartUploadResponse_bucketKeyEnabled,
completeMultipartUploadResponse_key,
completeMultipartUploadResponse_sSEKMSKeyId,
completeMultipartUploadResponse_serverSideEncryption,
completeMultipartUploadResponse_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 CompleteMultipartUpload = CompleteMultipartUpload'
{ CompleteMultipartUpload -> Maybe RequestPayer
requestPayer :: Prelude.Maybe RequestPayer,
CompleteMultipartUpload -> Maybe CompletedMultipartUpload
multipartUpload :: Prelude.Maybe CompletedMultipartUpload,
CompleteMultipartUpload -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
CompleteMultipartUpload -> BucketName
bucket :: BucketName,
CompleteMultipartUpload -> ObjectKey
key :: ObjectKey,
CompleteMultipartUpload -> Text
uploadId :: Prelude.Text
}
deriving (CompleteMultipartUpload -> CompleteMultipartUpload -> Bool
(CompleteMultipartUpload -> CompleteMultipartUpload -> Bool)
-> (CompleteMultipartUpload -> CompleteMultipartUpload -> Bool)
-> Eq CompleteMultipartUpload
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CompleteMultipartUpload -> CompleteMultipartUpload -> Bool
$c/= :: CompleteMultipartUpload -> CompleteMultipartUpload -> Bool
== :: CompleteMultipartUpload -> CompleteMultipartUpload -> Bool
$c== :: CompleteMultipartUpload -> CompleteMultipartUpload -> Bool
Prelude.Eq, ReadPrec [CompleteMultipartUpload]
ReadPrec CompleteMultipartUpload
Int -> ReadS CompleteMultipartUpload
ReadS [CompleteMultipartUpload]
(Int -> ReadS CompleteMultipartUpload)
-> ReadS [CompleteMultipartUpload]
-> ReadPrec CompleteMultipartUpload
-> ReadPrec [CompleteMultipartUpload]
-> Read CompleteMultipartUpload
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CompleteMultipartUpload]
$creadListPrec :: ReadPrec [CompleteMultipartUpload]
readPrec :: ReadPrec CompleteMultipartUpload
$creadPrec :: ReadPrec CompleteMultipartUpload
readList :: ReadS [CompleteMultipartUpload]
$creadList :: ReadS [CompleteMultipartUpload]
readsPrec :: Int -> ReadS CompleteMultipartUpload
$creadsPrec :: Int -> ReadS CompleteMultipartUpload
Prelude.Read, Int -> CompleteMultipartUpload -> ShowS
[CompleteMultipartUpload] -> ShowS
CompleteMultipartUpload -> String
(Int -> CompleteMultipartUpload -> ShowS)
-> (CompleteMultipartUpload -> String)
-> ([CompleteMultipartUpload] -> ShowS)
-> Show CompleteMultipartUpload
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CompleteMultipartUpload] -> ShowS
$cshowList :: [CompleteMultipartUpload] -> ShowS
show :: CompleteMultipartUpload -> String
$cshow :: CompleteMultipartUpload -> String
showsPrec :: Int -> CompleteMultipartUpload -> ShowS
$cshowsPrec :: Int -> CompleteMultipartUpload -> ShowS
Prelude.Show, (forall x.
CompleteMultipartUpload -> Rep CompleteMultipartUpload x)
-> (forall x.
Rep CompleteMultipartUpload x -> CompleteMultipartUpload)
-> Generic CompleteMultipartUpload
forall x. Rep CompleteMultipartUpload x -> CompleteMultipartUpload
forall x. CompleteMultipartUpload -> Rep CompleteMultipartUpload x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CompleteMultipartUpload x -> CompleteMultipartUpload
$cfrom :: forall x. CompleteMultipartUpload -> Rep CompleteMultipartUpload x
Prelude.Generic)
newCompleteMultipartUpload ::
BucketName ->
ObjectKey ->
Prelude.Text ->
CompleteMultipartUpload
newCompleteMultipartUpload :: BucketName -> ObjectKey -> Text -> CompleteMultipartUpload
newCompleteMultipartUpload BucketName
pBucket_ ObjectKey
pKey_ Text
pUploadId_ =
CompleteMultipartUpload' :: Maybe RequestPayer
-> Maybe CompletedMultipartUpload
-> Maybe Text
-> BucketName
-> ObjectKey
-> Text
-> CompleteMultipartUpload
CompleteMultipartUpload'
{ $sel:requestPayer:CompleteMultipartUpload' :: Maybe RequestPayer
requestPayer =
Maybe RequestPayer
forall a. Maybe a
Prelude.Nothing,
$sel:multipartUpload:CompleteMultipartUpload' :: Maybe CompletedMultipartUpload
multipartUpload = Maybe CompletedMultipartUpload
forall a. Maybe a
Prelude.Nothing,
$sel:expectedBucketOwner:CompleteMultipartUpload' :: Maybe Text
expectedBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucket:CompleteMultipartUpload' :: BucketName
bucket = BucketName
pBucket_,
$sel:key:CompleteMultipartUpload' :: ObjectKey
key = ObjectKey
pKey_,
$sel:uploadId:CompleteMultipartUpload' :: Text
uploadId = Text
pUploadId_
}
completeMultipartUpload_requestPayer :: Lens.Lens' CompleteMultipartUpload (Prelude.Maybe RequestPayer)
completeMultipartUpload_requestPayer :: (Maybe RequestPayer -> f (Maybe RequestPayer))
-> CompleteMultipartUpload -> f CompleteMultipartUpload
completeMultipartUpload_requestPayer = (CompleteMultipartUpload -> Maybe RequestPayer)
-> (CompleteMultipartUpload
-> Maybe RequestPayer -> CompleteMultipartUpload)
-> Lens
CompleteMultipartUpload
CompleteMultipartUpload
(Maybe RequestPayer)
(Maybe RequestPayer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUpload' {Maybe RequestPayer
requestPayer :: Maybe RequestPayer
$sel:requestPayer:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe RequestPayer
requestPayer} -> Maybe RequestPayer
requestPayer) (\s :: CompleteMultipartUpload
s@CompleteMultipartUpload' {} Maybe RequestPayer
a -> CompleteMultipartUpload
s {$sel:requestPayer:CompleteMultipartUpload' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
a} :: CompleteMultipartUpload)
completeMultipartUpload_multipartUpload :: Lens.Lens' CompleteMultipartUpload (Prelude.Maybe CompletedMultipartUpload)
completeMultipartUpload_multipartUpload :: (Maybe CompletedMultipartUpload
-> f (Maybe CompletedMultipartUpload))
-> CompleteMultipartUpload -> f CompleteMultipartUpload
completeMultipartUpload_multipartUpload = (CompleteMultipartUpload -> Maybe CompletedMultipartUpload)
-> (CompleteMultipartUpload
-> Maybe CompletedMultipartUpload -> CompleteMultipartUpload)
-> Lens
CompleteMultipartUpload
CompleteMultipartUpload
(Maybe CompletedMultipartUpload)
(Maybe CompletedMultipartUpload)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUpload' {Maybe CompletedMultipartUpload
multipartUpload :: Maybe CompletedMultipartUpload
$sel:multipartUpload:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe CompletedMultipartUpload
multipartUpload} -> Maybe CompletedMultipartUpload
multipartUpload) (\s :: CompleteMultipartUpload
s@CompleteMultipartUpload' {} Maybe CompletedMultipartUpload
a -> CompleteMultipartUpload
s {$sel:multipartUpload:CompleteMultipartUpload' :: Maybe CompletedMultipartUpload
multipartUpload = Maybe CompletedMultipartUpload
a} :: CompleteMultipartUpload)
completeMultipartUpload_expectedBucketOwner :: Lens.Lens' CompleteMultipartUpload (Prelude.Maybe Prelude.Text)
completeMultipartUpload_expectedBucketOwner :: (Maybe Text -> f (Maybe Text))
-> CompleteMultipartUpload -> f CompleteMultipartUpload
completeMultipartUpload_expectedBucketOwner = (CompleteMultipartUpload -> Maybe Text)
-> (CompleteMultipartUpload
-> Maybe Text -> CompleteMultipartUpload)
-> Lens
CompleteMultipartUpload
CompleteMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUpload' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: CompleteMultipartUpload
s@CompleteMultipartUpload' {} Maybe Text
a -> CompleteMultipartUpload
s {$sel:expectedBucketOwner:CompleteMultipartUpload' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: CompleteMultipartUpload)
completeMultipartUpload_bucket :: Lens.Lens' CompleteMultipartUpload BucketName
completeMultipartUpload_bucket :: (BucketName -> f BucketName)
-> CompleteMultipartUpload -> f CompleteMultipartUpload
completeMultipartUpload_bucket = (CompleteMultipartUpload -> BucketName)
-> (CompleteMultipartUpload
-> BucketName -> CompleteMultipartUpload)
-> Lens
CompleteMultipartUpload
CompleteMultipartUpload
BucketName
BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUpload' {BucketName
bucket :: BucketName
$sel:bucket:CompleteMultipartUpload' :: CompleteMultipartUpload -> BucketName
bucket} -> BucketName
bucket) (\s :: CompleteMultipartUpload
s@CompleteMultipartUpload' {} BucketName
a -> CompleteMultipartUpload
s {$sel:bucket:CompleteMultipartUpload' :: BucketName
bucket = BucketName
a} :: CompleteMultipartUpload)
completeMultipartUpload_key :: Lens.Lens' CompleteMultipartUpload ObjectKey
completeMultipartUpload_key :: (ObjectKey -> f ObjectKey)
-> CompleteMultipartUpload -> f CompleteMultipartUpload
completeMultipartUpload_key = (CompleteMultipartUpload -> ObjectKey)
-> (CompleteMultipartUpload
-> ObjectKey -> CompleteMultipartUpload)
-> Lens
CompleteMultipartUpload CompleteMultipartUpload ObjectKey ObjectKey
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUpload' {ObjectKey
key :: ObjectKey
$sel:key:CompleteMultipartUpload' :: CompleteMultipartUpload -> ObjectKey
key} -> ObjectKey
key) (\s :: CompleteMultipartUpload
s@CompleteMultipartUpload' {} ObjectKey
a -> CompleteMultipartUpload
s {$sel:key:CompleteMultipartUpload' :: ObjectKey
key = ObjectKey
a} :: CompleteMultipartUpload)
completeMultipartUpload_uploadId :: Lens.Lens' CompleteMultipartUpload Prelude.Text
completeMultipartUpload_uploadId :: (Text -> f Text)
-> CompleteMultipartUpload -> f CompleteMultipartUpload
completeMultipartUpload_uploadId = (CompleteMultipartUpload -> Text)
-> (CompleteMultipartUpload -> Text -> CompleteMultipartUpload)
-> Lens CompleteMultipartUpload CompleteMultipartUpload Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUpload' {Text
uploadId :: Text
$sel:uploadId:CompleteMultipartUpload' :: CompleteMultipartUpload -> Text
uploadId} -> Text
uploadId) (\s :: CompleteMultipartUpload
s@CompleteMultipartUpload' {} Text
a -> CompleteMultipartUpload
s {$sel:uploadId:CompleteMultipartUpload' :: Text
uploadId = Text
a} :: CompleteMultipartUpload)
instance Core.AWSRequest CompleteMultipartUpload where
type
AWSResponse CompleteMultipartUpload =
CompleteMultipartUploadResponse
request :: CompleteMultipartUpload -> Request CompleteMultipartUpload
request =
Request CompleteMultipartUpload -> Request CompleteMultipartUpload
forall a. Request a -> Request a
Request.s3vhost
(Request CompleteMultipartUpload
-> Request CompleteMultipartUpload)
-> (CompleteMultipartUpload -> Request CompleteMultipartUpload)
-> CompleteMultipartUpload
-> Request CompleteMultipartUpload
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service
-> CompleteMultipartUpload -> Request CompleteMultipartUpload
forall a. (ToRequest a, ToElement a) => Service -> a -> Request a
Request.postXML Service
defaultService
response :: Logger
-> Service
-> Proxy CompleteMultipartUpload
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CompleteMultipartUpload)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CompleteMultipartUpload))
-> Logger
-> Service
-> Proxy CompleteMultipartUpload
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CompleteMultipartUpload)))
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 RequestCharged
-> Maybe ETag
-> Maybe ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse
CompleteMultipartUploadResponse'
(Maybe RequestCharged
-> Maybe ETag
-> Maybe ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
-> Either String (Maybe RequestCharged)
-> Either
String
(Maybe ETag
-> Maybe ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (ResponseHeaders
h ResponseHeaders
-> HeaderName -> Either String (Maybe RequestCharged)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"x-amz-request-charged")
Either
String
(Maybe ETag
-> Maybe ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
-> Either String (Maybe ETag)
-> Either
String
(Maybe ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ETag)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ETag")
Either
String
(Maybe ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
-> Either String (Maybe ObjectVersionId)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders
-> HeaderName -> Either String (Maybe ObjectVersionId)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"x-amz-version-id")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
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
"Location")
Either
String
(Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Text)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"x-amz-expiration")
Either
String
(Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
-> Either String (Maybe BucketName)
-> Either
String
(Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
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 Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( ResponseHeaders
h
ResponseHeaders -> HeaderName -> Either String (Maybe Bool)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"x-amz-server-side-encryption-bucket-key-enabled"
)
Either
String
(Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
-> Either String (Maybe ObjectKey)
-> Either
String
(Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ObjectKey)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Key")
Either
String
(Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String
(Maybe ServerSideEncryption
-> Int -> CompleteMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( ResponseHeaders
h
ResponseHeaders
-> HeaderName -> Either String (Maybe (Sensitive Text))
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"x-amz-server-side-encryption-aws-kms-key-id"
)
Either
String
(Maybe ServerSideEncryption
-> Int -> CompleteMultipartUploadResponse)
-> Either String (Maybe ServerSideEncryption)
-> Either String (Int -> CompleteMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders
-> HeaderName -> Either String (Maybe ServerSideEncryption)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"x-amz-server-side-encryption")
Either String (Int -> CompleteMultipartUploadResponse)
-> Either String Int
-> Either String CompleteMultipartUploadResponse
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 CompleteMultipartUpload
instance Prelude.NFData CompleteMultipartUpload
instance Core.ToElement CompleteMultipartUpload where
toElement :: CompleteMultipartUpload -> Element
toElement CompleteMultipartUpload' {Maybe Text
Maybe CompletedMultipartUpload
Maybe RequestPayer
Text
ObjectKey
BucketName
uploadId :: Text
key :: ObjectKey
bucket :: BucketName
expectedBucketOwner :: Maybe Text
multipartUpload :: Maybe CompletedMultipartUpload
requestPayer :: Maybe RequestPayer
$sel:uploadId:CompleteMultipartUpload' :: CompleteMultipartUpload -> Text
$sel:key:CompleteMultipartUpload' :: CompleteMultipartUpload -> ObjectKey
$sel:bucket:CompleteMultipartUpload' :: CompleteMultipartUpload -> BucketName
$sel:expectedBucketOwner:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe Text
$sel:multipartUpload:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe CompletedMultipartUpload
$sel:requestPayer:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe RequestPayer
..} =
Name -> Maybe CompletedMultipartUpload -> Element
forall a. ToXML a => Name -> a -> Element
Core.mkElement
Name
"{http://s3.amazonaws.com/doc/2006-03-01/}CompleteMultipartUpload"
Maybe CompletedMultipartUpload
multipartUpload
instance Core.ToHeaders CompleteMultipartUpload where
toHeaders :: CompleteMultipartUpload -> ResponseHeaders
toHeaders CompleteMultipartUpload' {Maybe Text
Maybe CompletedMultipartUpload
Maybe RequestPayer
Text
ObjectKey
BucketName
uploadId :: Text
key :: ObjectKey
bucket :: BucketName
expectedBucketOwner :: Maybe Text
multipartUpload :: Maybe CompletedMultipartUpload
requestPayer :: Maybe RequestPayer
$sel:uploadId:CompleteMultipartUpload' :: CompleteMultipartUpload -> Text
$sel:key:CompleteMultipartUpload' :: CompleteMultipartUpload -> ObjectKey
$sel:bucket:CompleteMultipartUpload' :: CompleteMultipartUpload -> BucketName
$sel:expectedBucketOwner:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe Text
$sel:multipartUpload:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe CompletedMultipartUpload
$sel:requestPayer:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe RequestPayer
..} =
[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 CompleteMultipartUpload where
toPath :: CompleteMultipartUpload -> ByteString
toPath CompleteMultipartUpload' {Maybe Text
Maybe CompletedMultipartUpload
Maybe RequestPayer
Text
ObjectKey
BucketName
uploadId :: Text
key :: ObjectKey
bucket :: BucketName
expectedBucketOwner :: Maybe Text
multipartUpload :: Maybe CompletedMultipartUpload
requestPayer :: Maybe RequestPayer
$sel:uploadId:CompleteMultipartUpload' :: CompleteMultipartUpload -> Text
$sel:key:CompleteMultipartUpload' :: CompleteMultipartUpload -> ObjectKey
$sel:bucket:CompleteMultipartUpload' :: CompleteMultipartUpload -> BucketName
$sel:expectedBucketOwner:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe Text
$sel:multipartUpload:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe CompletedMultipartUpload
$sel:requestPayer:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe RequestPayer
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/", BucketName -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS BucketName
bucket, ByteString
"/", ObjectKey -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS ObjectKey
key]
instance Core.ToQuery CompleteMultipartUpload where
toQuery :: CompleteMultipartUpload -> QueryString
toQuery CompleteMultipartUpload' {Maybe Text
Maybe CompletedMultipartUpload
Maybe RequestPayer
Text
ObjectKey
BucketName
uploadId :: Text
key :: ObjectKey
bucket :: BucketName
expectedBucketOwner :: Maybe Text
multipartUpload :: Maybe CompletedMultipartUpload
requestPayer :: Maybe RequestPayer
$sel:uploadId:CompleteMultipartUpload' :: CompleteMultipartUpload -> Text
$sel:key:CompleteMultipartUpload' :: CompleteMultipartUpload -> ObjectKey
$sel:bucket:CompleteMultipartUpload' :: CompleteMultipartUpload -> BucketName
$sel:expectedBucketOwner:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe Text
$sel:multipartUpload:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe CompletedMultipartUpload
$sel:requestPayer:CompleteMultipartUpload' :: CompleteMultipartUpload -> Maybe RequestPayer
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [ByteString
"uploadId" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
uploadId]
data CompleteMultipartUploadResponse = CompleteMultipartUploadResponse'
{ CompleteMultipartUploadResponse -> Maybe RequestCharged
requestCharged :: Prelude.Maybe RequestCharged,
CompleteMultipartUploadResponse -> Maybe ETag
eTag :: Prelude.Maybe ETag,
CompleteMultipartUploadResponse -> Maybe ObjectVersionId
versionId :: Prelude.Maybe ObjectVersionId,
CompleteMultipartUploadResponse -> Maybe Text
location :: Prelude.Maybe Prelude.Text,
CompleteMultipartUploadResponse -> Maybe Text
expiration :: Prelude.Maybe Prelude.Text,
CompleteMultipartUploadResponse -> Maybe BucketName
bucket :: Prelude.Maybe BucketName,
CompleteMultipartUploadResponse -> Maybe Bool
bucketKeyEnabled :: Prelude.Maybe Prelude.Bool,
CompleteMultipartUploadResponse -> Maybe ObjectKey
key :: Prelude.Maybe ObjectKey,
CompleteMultipartUploadResponse -> Maybe (Sensitive Text)
sSEKMSKeyId :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CompleteMultipartUploadResponse -> Maybe ServerSideEncryption
serverSideEncryption :: Prelude.Maybe ServerSideEncryption,
CompleteMultipartUploadResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CompleteMultipartUploadResponse
-> CompleteMultipartUploadResponse -> Bool
(CompleteMultipartUploadResponse
-> CompleteMultipartUploadResponse -> Bool)
-> (CompleteMultipartUploadResponse
-> CompleteMultipartUploadResponse -> Bool)
-> Eq CompleteMultipartUploadResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CompleteMultipartUploadResponse
-> CompleteMultipartUploadResponse -> Bool
$c/= :: CompleteMultipartUploadResponse
-> CompleteMultipartUploadResponse -> Bool
== :: CompleteMultipartUploadResponse
-> CompleteMultipartUploadResponse -> Bool
$c== :: CompleteMultipartUploadResponse
-> CompleteMultipartUploadResponse -> Bool
Prelude.Eq, Int -> CompleteMultipartUploadResponse -> ShowS
[CompleteMultipartUploadResponse] -> ShowS
CompleteMultipartUploadResponse -> String
(Int -> CompleteMultipartUploadResponse -> ShowS)
-> (CompleteMultipartUploadResponse -> String)
-> ([CompleteMultipartUploadResponse] -> ShowS)
-> Show CompleteMultipartUploadResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CompleteMultipartUploadResponse] -> ShowS
$cshowList :: [CompleteMultipartUploadResponse] -> ShowS
show :: CompleteMultipartUploadResponse -> String
$cshow :: CompleteMultipartUploadResponse -> String
showsPrec :: Int -> CompleteMultipartUploadResponse -> ShowS
$cshowsPrec :: Int -> CompleteMultipartUploadResponse -> ShowS
Prelude.Show, (forall x.
CompleteMultipartUploadResponse
-> Rep CompleteMultipartUploadResponse x)
-> (forall x.
Rep CompleteMultipartUploadResponse x
-> CompleteMultipartUploadResponse)
-> Generic CompleteMultipartUploadResponse
forall x.
Rep CompleteMultipartUploadResponse x
-> CompleteMultipartUploadResponse
forall x.
CompleteMultipartUploadResponse
-> Rep CompleteMultipartUploadResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CompleteMultipartUploadResponse x
-> CompleteMultipartUploadResponse
$cfrom :: forall x.
CompleteMultipartUploadResponse
-> Rep CompleteMultipartUploadResponse x
Prelude.Generic)
newCompleteMultipartUploadResponse ::
Prelude.Int ->
CompleteMultipartUploadResponse
newCompleteMultipartUploadResponse :: Int -> CompleteMultipartUploadResponse
newCompleteMultipartUploadResponse Int
pHttpStatus_ =
CompleteMultipartUploadResponse' :: Maybe RequestCharged
-> Maybe ETag
-> Maybe ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe BucketName
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> CompleteMultipartUploadResponse
CompleteMultipartUploadResponse'
{ $sel:requestCharged:CompleteMultipartUploadResponse' :: Maybe RequestCharged
requestCharged =
Maybe RequestCharged
forall a. Maybe a
Prelude.Nothing,
$sel:eTag:CompleteMultipartUploadResponse' :: Maybe ETag
eTag = Maybe ETag
forall a. Maybe a
Prelude.Nothing,
$sel:versionId:CompleteMultipartUploadResponse' :: Maybe ObjectVersionId
versionId = Maybe ObjectVersionId
forall a. Maybe a
Prelude.Nothing,
$sel:location:CompleteMultipartUploadResponse' :: Maybe Text
location = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expiration:CompleteMultipartUploadResponse' :: Maybe Text
expiration = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucket:CompleteMultipartUploadResponse' :: Maybe BucketName
bucket = Maybe BucketName
forall a. Maybe a
Prelude.Nothing,
$sel:bucketKeyEnabled:CompleteMultipartUploadResponse' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:key:CompleteMultipartUploadResponse' :: Maybe ObjectKey
key = Maybe ObjectKey
forall a. Maybe a
Prelude.Nothing,
$sel:sSEKMSKeyId:CompleteMultipartUploadResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:serverSideEncryption:CompleteMultipartUploadResponse' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CompleteMultipartUploadResponse' :: Int
httpStatus = Int
pHttpStatus_
}
completeMultipartUploadResponse_requestCharged :: Lens.Lens' CompleteMultipartUploadResponse (Prelude.Maybe RequestCharged)
completeMultipartUploadResponse_requestCharged :: (Maybe RequestCharged -> f (Maybe RequestCharged))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_requestCharged = (CompleteMultipartUploadResponse -> Maybe RequestCharged)
-> (CompleteMultipartUploadResponse
-> Maybe RequestCharged -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
(Maybe RequestCharged)
(Maybe RequestCharged)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Maybe RequestCharged
requestCharged :: Maybe RequestCharged
$sel:requestCharged:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Maybe RequestCharged
requestCharged} -> Maybe RequestCharged
requestCharged) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Maybe RequestCharged
a -> CompleteMultipartUploadResponse
s {$sel:requestCharged:CompleteMultipartUploadResponse' :: Maybe RequestCharged
requestCharged = Maybe RequestCharged
a} :: CompleteMultipartUploadResponse)
completeMultipartUploadResponse_eTag :: Lens.Lens' CompleteMultipartUploadResponse (Prelude.Maybe ETag)
completeMultipartUploadResponse_eTag :: (Maybe ETag -> f (Maybe ETag))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_eTag = (CompleteMultipartUploadResponse -> Maybe ETag)
-> (CompleteMultipartUploadResponse
-> Maybe ETag -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
(Maybe ETag)
(Maybe ETag)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Maybe ETag
eTag :: Maybe ETag
$sel:eTag:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Maybe ETag
eTag} -> Maybe ETag
eTag) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Maybe ETag
a -> CompleteMultipartUploadResponse
s {$sel:eTag:CompleteMultipartUploadResponse' :: Maybe ETag
eTag = Maybe ETag
a} :: CompleteMultipartUploadResponse)
completeMultipartUploadResponse_versionId :: Lens.Lens' CompleteMultipartUploadResponse (Prelude.Maybe ObjectVersionId)
completeMultipartUploadResponse_versionId :: (Maybe ObjectVersionId -> f (Maybe ObjectVersionId))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_versionId = (CompleteMultipartUploadResponse -> Maybe ObjectVersionId)
-> (CompleteMultipartUploadResponse
-> Maybe ObjectVersionId -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
(Maybe ObjectVersionId)
(Maybe ObjectVersionId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Maybe ObjectVersionId
versionId :: Maybe ObjectVersionId
$sel:versionId:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Maybe ObjectVersionId
versionId} -> Maybe ObjectVersionId
versionId) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Maybe ObjectVersionId
a -> CompleteMultipartUploadResponse
s {$sel:versionId:CompleteMultipartUploadResponse' :: Maybe ObjectVersionId
versionId = Maybe ObjectVersionId
a} :: CompleteMultipartUploadResponse)
completeMultipartUploadResponse_location :: Lens.Lens' CompleteMultipartUploadResponse (Prelude.Maybe Prelude.Text)
completeMultipartUploadResponse_location :: (Maybe Text -> f (Maybe Text))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_location = (CompleteMultipartUploadResponse -> Maybe Text)
-> (CompleteMultipartUploadResponse
-> Maybe Text -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Maybe Text
location :: Maybe Text
$sel:location:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Maybe Text
location} -> Maybe Text
location) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Maybe Text
a -> CompleteMultipartUploadResponse
s {$sel:location:CompleteMultipartUploadResponse' :: Maybe Text
location = Maybe Text
a} :: CompleteMultipartUploadResponse)
completeMultipartUploadResponse_expiration :: Lens.Lens' CompleteMultipartUploadResponse (Prelude.Maybe Prelude.Text)
completeMultipartUploadResponse_expiration :: (Maybe Text -> f (Maybe Text))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_expiration = (CompleteMultipartUploadResponse -> Maybe Text)
-> (CompleteMultipartUploadResponse
-> Maybe Text -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Maybe Text
expiration :: Maybe Text
$sel:expiration:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Maybe Text
expiration} -> Maybe Text
expiration) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Maybe Text
a -> CompleteMultipartUploadResponse
s {$sel:expiration:CompleteMultipartUploadResponse' :: Maybe Text
expiration = Maybe Text
a} :: CompleteMultipartUploadResponse)
completeMultipartUploadResponse_bucket :: Lens.Lens' CompleteMultipartUploadResponse (Prelude.Maybe BucketName)
completeMultipartUploadResponse_bucket :: (Maybe BucketName -> f (Maybe BucketName))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_bucket = (CompleteMultipartUploadResponse -> Maybe BucketName)
-> (CompleteMultipartUploadResponse
-> Maybe BucketName -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
(Maybe BucketName)
(Maybe BucketName)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Maybe BucketName
bucket :: Maybe BucketName
$sel:bucket:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Maybe BucketName
bucket} -> Maybe BucketName
bucket) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Maybe BucketName
a -> CompleteMultipartUploadResponse
s {$sel:bucket:CompleteMultipartUploadResponse' :: Maybe BucketName
bucket = Maybe BucketName
a} :: CompleteMultipartUploadResponse)
completeMultipartUploadResponse_bucketKeyEnabled :: Lens.Lens' CompleteMultipartUploadResponse (Prelude.Maybe Prelude.Bool)
completeMultipartUploadResponse_bucketKeyEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_bucketKeyEnabled = (CompleteMultipartUploadResponse -> Maybe Bool)
-> (CompleteMultipartUploadResponse
-> Maybe Bool -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Maybe Bool
bucketKeyEnabled :: Maybe Bool
$sel:bucketKeyEnabled:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Maybe Bool
bucketKeyEnabled} -> Maybe Bool
bucketKeyEnabled) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Maybe Bool
a -> CompleteMultipartUploadResponse
s {$sel:bucketKeyEnabled:CompleteMultipartUploadResponse' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
a} :: CompleteMultipartUploadResponse)
completeMultipartUploadResponse_key :: Lens.Lens' CompleteMultipartUploadResponse (Prelude.Maybe ObjectKey)
completeMultipartUploadResponse_key :: (Maybe ObjectKey -> f (Maybe ObjectKey))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_key = (CompleteMultipartUploadResponse -> Maybe ObjectKey)
-> (CompleteMultipartUploadResponse
-> Maybe ObjectKey -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
(Maybe ObjectKey)
(Maybe ObjectKey)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Maybe ObjectKey
key :: Maybe ObjectKey
$sel:key:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Maybe ObjectKey
key} -> Maybe ObjectKey
key) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Maybe ObjectKey
a -> CompleteMultipartUploadResponse
s {$sel:key:CompleteMultipartUploadResponse' :: Maybe ObjectKey
key = Maybe ObjectKey
a} :: CompleteMultipartUploadResponse)
completeMultipartUploadResponse_sSEKMSKeyId :: Lens.Lens' CompleteMultipartUploadResponse (Prelude.Maybe Prelude.Text)
completeMultipartUploadResponse_sSEKMSKeyId :: (Maybe Text -> f (Maybe Text))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_sSEKMSKeyId = (CompleteMultipartUploadResponse -> Maybe (Sensitive Text))
-> (CompleteMultipartUploadResponse
-> Maybe (Sensitive Text) -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Maybe (Sensitive Text)
sSEKMSKeyId :: Maybe (Sensitive Text)
$sel:sSEKMSKeyId:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Maybe (Sensitive Text)
sSEKMSKeyId} -> Maybe (Sensitive Text)
sSEKMSKeyId) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Maybe (Sensitive Text)
a -> CompleteMultipartUploadResponse
s {$sel:sSEKMSKeyId:CompleteMultipartUploadResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
a} :: CompleteMultipartUploadResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
completeMultipartUploadResponse_serverSideEncryption :: Lens.Lens' CompleteMultipartUploadResponse (Prelude.Maybe ServerSideEncryption)
completeMultipartUploadResponse_serverSideEncryption :: (Maybe ServerSideEncryption -> f (Maybe ServerSideEncryption))
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_serverSideEncryption = (CompleteMultipartUploadResponse -> Maybe ServerSideEncryption)
-> (CompleteMultipartUploadResponse
-> Maybe ServerSideEncryption -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
(Maybe ServerSideEncryption)
(Maybe ServerSideEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Maybe ServerSideEncryption
serverSideEncryption :: Maybe ServerSideEncryption
$sel:serverSideEncryption:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Maybe ServerSideEncryption
serverSideEncryption} -> Maybe ServerSideEncryption
serverSideEncryption) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Maybe ServerSideEncryption
a -> CompleteMultipartUploadResponse
s {$sel:serverSideEncryption:CompleteMultipartUploadResponse' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
a} :: CompleteMultipartUploadResponse)
completeMultipartUploadResponse_httpStatus :: Lens.Lens' CompleteMultipartUploadResponse Prelude.Int
completeMultipartUploadResponse_httpStatus :: (Int -> f Int)
-> CompleteMultipartUploadResponse
-> f CompleteMultipartUploadResponse
completeMultipartUploadResponse_httpStatus = (CompleteMultipartUploadResponse -> Int)
-> (CompleteMultipartUploadResponse
-> Int -> CompleteMultipartUploadResponse)
-> Lens
CompleteMultipartUploadResponse
CompleteMultipartUploadResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CompleteMultipartUploadResponse' {Int
httpStatus :: Int
$sel:httpStatus:CompleteMultipartUploadResponse' :: CompleteMultipartUploadResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CompleteMultipartUploadResponse
s@CompleteMultipartUploadResponse' {} Int
a -> CompleteMultipartUploadResponse
s {$sel:httpStatus:CompleteMultipartUploadResponse' :: Int
httpStatus = Int
a} :: CompleteMultipartUploadResponse)
instance
Prelude.NFData
CompleteMultipartUploadResponse