{-# 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.UploadPart
(
UploadPart (..),
newUploadPart,
uploadPart_contentLength,
uploadPart_sSECustomerAlgorithm,
uploadPart_sSECustomerKey,
uploadPart_requestPayer,
uploadPart_sSECustomerKeyMD5,
uploadPart_contentMD5,
uploadPart_expectedBucketOwner,
uploadPart_bucket,
uploadPart_key,
uploadPart_partNumber,
uploadPart_uploadId,
uploadPart_body,
UploadPartResponse (..),
newUploadPartResponse,
uploadPartResponse_requestCharged,
uploadPartResponse_eTag,
uploadPartResponse_sSECustomerAlgorithm,
uploadPartResponse_bucketKeyEnabled,
uploadPartResponse_sSECustomerKeyMD5,
uploadPartResponse_sSEKMSKeyId,
uploadPartResponse_serverSideEncryption,
uploadPartResponse_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 UploadPart = UploadPart'
{
UploadPart -> Maybe Integer
contentLength :: Prelude.Maybe Prelude.Integer,
UploadPart -> Maybe Text
sSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
UploadPart -> Maybe (Sensitive Text)
sSECustomerKey :: Prelude.Maybe (Core.Sensitive Prelude.Text),
UploadPart -> Maybe RequestPayer
requestPayer :: Prelude.Maybe RequestPayer,
UploadPart -> Maybe Text
sSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
UploadPart -> Maybe Text
contentMD5 :: Prelude.Maybe Prelude.Text,
UploadPart -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
UploadPart -> BucketName
bucket :: BucketName,
UploadPart -> ObjectKey
key :: ObjectKey,
UploadPart -> Int
partNumber :: Prelude.Int,
UploadPart -> Text
uploadId :: Prelude.Text,
UploadPart -> RequestBody
body :: Core.RequestBody
}
deriving (Int -> UploadPart -> ShowS
[UploadPart] -> ShowS
UploadPart -> String
(Int -> UploadPart -> ShowS)
-> (UploadPart -> String)
-> ([UploadPart] -> ShowS)
-> Show UploadPart
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UploadPart] -> ShowS
$cshowList :: [UploadPart] -> ShowS
show :: UploadPart -> String
$cshow :: UploadPart -> String
showsPrec :: Int -> UploadPart -> ShowS
$cshowsPrec :: Int -> UploadPart -> ShowS
Prelude.Show, (forall x. UploadPart -> Rep UploadPart x)
-> (forall x. Rep UploadPart x -> UploadPart) -> Generic UploadPart
forall x. Rep UploadPart x -> UploadPart
forall x. UploadPart -> Rep UploadPart x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UploadPart x -> UploadPart
$cfrom :: forall x. UploadPart -> Rep UploadPart x
Prelude.Generic)
newUploadPart ::
BucketName ->
ObjectKey ->
Prelude.Int ->
Prelude.Text ->
Core.RequestBody ->
UploadPart
newUploadPart :: BucketName -> ObjectKey -> Int -> Text -> RequestBody -> UploadPart
newUploadPart
BucketName
pBucket_
ObjectKey
pKey_
Int
pPartNumber_
Text
pUploadId_
RequestBody
pBody_ =
UploadPart' :: Maybe Integer
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe RequestPayer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> BucketName
-> ObjectKey
-> Int
-> Text
-> RequestBody
-> UploadPart
UploadPart'
{ $sel:contentLength:UploadPart' :: Maybe Integer
contentLength = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerAlgorithm:UploadPart' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKey:UploadPart' :: Maybe (Sensitive Text)
sSECustomerKey = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:requestPayer:UploadPart' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKeyMD5:UploadPart' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:contentMD5:UploadPart' :: Maybe Text
contentMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expectedBucketOwner:UploadPart' :: Maybe Text
expectedBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucket:UploadPart' :: BucketName
bucket = BucketName
pBucket_,
$sel:key:UploadPart' :: ObjectKey
key = ObjectKey
pKey_,
$sel:partNumber:UploadPart' :: Int
partNumber = Int
pPartNumber_,
$sel:uploadId:UploadPart' :: Text
uploadId = Text
pUploadId_,
$sel:body:UploadPart' :: RequestBody
body = RequestBody
pBody_
}
uploadPart_contentLength :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Integer)
uploadPart_contentLength :: (Maybe Integer -> f (Maybe Integer)) -> UploadPart -> f UploadPart
uploadPart_contentLength = (UploadPart -> Maybe Integer)
-> (UploadPart -> Maybe Integer -> UploadPart)
-> Lens UploadPart UploadPart (Maybe Integer) (Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe Integer
contentLength :: Maybe Integer
$sel:contentLength:UploadPart' :: UploadPart -> Maybe Integer
contentLength} -> Maybe Integer
contentLength) (\s :: UploadPart
s@UploadPart' {} Maybe Integer
a -> UploadPart
s {$sel:contentLength:UploadPart' :: Maybe Integer
contentLength = Maybe Integer
a} :: UploadPart)
uploadPart_sSECustomerAlgorithm :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_sSECustomerAlgorithm :: (Maybe Text -> f (Maybe Text)) -> UploadPart -> f UploadPart
uploadPart_sSECustomerAlgorithm = (UploadPart -> Maybe Text)
-> (UploadPart -> Maybe Text -> UploadPart)
-> Lens UploadPart UploadPart (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe Text
sSECustomerAlgorithm :: Maybe Text
$sel:sSECustomerAlgorithm:UploadPart' :: UploadPart -> Maybe Text
sSECustomerAlgorithm} -> Maybe Text
sSECustomerAlgorithm) (\s :: UploadPart
s@UploadPart' {} Maybe Text
a -> UploadPart
s {$sel:sSECustomerAlgorithm:UploadPart' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
a} :: UploadPart)
uploadPart_sSECustomerKey :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_sSECustomerKey :: (Maybe Text -> f (Maybe Text)) -> UploadPart -> f UploadPart
uploadPart_sSECustomerKey = (UploadPart -> Maybe (Sensitive Text))
-> (UploadPart -> Maybe (Sensitive Text) -> UploadPart)
-> Lens
UploadPart
UploadPart
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe (Sensitive Text)
sSECustomerKey :: Maybe (Sensitive Text)
$sel:sSECustomerKey:UploadPart' :: UploadPart -> Maybe (Sensitive Text)
sSECustomerKey} -> Maybe (Sensitive Text)
sSECustomerKey) (\s :: UploadPart
s@UploadPart' {} Maybe (Sensitive Text)
a -> UploadPart
s {$sel:sSECustomerKey:UploadPart' :: Maybe (Sensitive Text)
sSECustomerKey = Maybe (Sensitive Text)
a} :: UploadPart) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> UploadPart -> f UploadPart)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> UploadPart
-> f UploadPart
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
uploadPart_requestPayer :: Lens.Lens' UploadPart (Prelude.Maybe RequestPayer)
uploadPart_requestPayer :: (Maybe RequestPayer -> f (Maybe RequestPayer))
-> UploadPart -> f UploadPart
uploadPart_requestPayer = (UploadPart -> Maybe RequestPayer)
-> (UploadPart -> Maybe RequestPayer -> UploadPart)
-> Lens
UploadPart UploadPart (Maybe RequestPayer) (Maybe RequestPayer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe RequestPayer
requestPayer :: Maybe RequestPayer
$sel:requestPayer:UploadPart' :: UploadPart -> Maybe RequestPayer
requestPayer} -> Maybe RequestPayer
requestPayer) (\s :: UploadPart
s@UploadPart' {} Maybe RequestPayer
a -> UploadPart
s {$sel:requestPayer:UploadPart' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
a} :: UploadPart)
uploadPart_sSECustomerKeyMD5 :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_sSECustomerKeyMD5 :: (Maybe Text -> f (Maybe Text)) -> UploadPart -> f UploadPart
uploadPart_sSECustomerKeyMD5 = (UploadPart -> Maybe Text)
-> (UploadPart -> Maybe Text -> UploadPart)
-> Lens UploadPart UploadPart (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe Text
sSECustomerKeyMD5 :: Maybe Text
$sel:sSECustomerKeyMD5:UploadPart' :: UploadPart -> Maybe Text
sSECustomerKeyMD5} -> Maybe Text
sSECustomerKeyMD5) (\s :: UploadPart
s@UploadPart' {} Maybe Text
a -> UploadPart
s {$sel:sSECustomerKeyMD5:UploadPart' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
a} :: UploadPart)
uploadPart_contentMD5 :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_contentMD5 :: (Maybe Text -> f (Maybe Text)) -> UploadPart -> f UploadPart
uploadPart_contentMD5 = (UploadPart -> Maybe Text)
-> (UploadPart -> Maybe Text -> UploadPart)
-> Lens UploadPart UploadPart (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe Text
contentMD5 :: Maybe Text
$sel:contentMD5:UploadPart' :: UploadPart -> Maybe Text
contentMD5} -> Maybe Text
contentMD5) (\s :: UploadPart
s@UploadPart' {} Maybe Text
a -> UploadPart
s {$sel:contentMD5:UploadPart' :: Maybe Text
contentMD5 = Maybe Text
a} :: UploadPart)
uploadPart_expectedBucketOwner :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_expectedBucketOwner :: (Maybe Text -> f (Maybe Text)) -> UploadPart -> f UploadPart
uploadPart_expectedBucketOwner = (UploadPart -> Maybe Text)
-> (UploadPart -> Maybe Text -> UploadPart)
-> Lens UploadPart UploadPart (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:UploadPart' :: UploadPart -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: UploadPart
s@UploadPart' {} Maybe Text
a -> UploadPart
s {$sel:expectedBucketOwner:UploadPart' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: UploadPart)
uploadPart_bucket :: Lens.Lens' UploadPart BucketName
uploadPart_bucket :: (BucketName -> f BucketName) -> UploadPart -> f UploadPart
uploadPart_bucket = (UploadPart -> BucketName)
-> (UploadPart -> BucketName -> UploadPart)
-> Lens UploadPart UploadPart BucketName BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {BucketName
bucket :: BucketName
$sel:bucket:UploadPart' :: UploadPart -> BucketName
bucket} -> BucketName
bucket) (\s :: UploadPart
s@UploadPart' {} BucketName
a -> UploadPart
s {$sel:bucket:UploadPart' :: BucketName
bucket = BucketName
a} :: UploadPart)
uploadPart_key :: Lens.Lens' UploadPart ObjectKey
uploadPart_key :: (ObjectKey -> f ObjectKey) -> UploadPart -> f UploadPart
uploadPart_key = (UploadPart -> ObjectKey)
-> (UploadPart -> ObjectKey -> UploadPart)
-> Lens UploadPart UploadPart ObjectKey ObjectKey
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {ObjectKey
key :: ObjectKey
$sel:key:UploadPart' :: UploadPart -> ObjectKey
key} -> ObjectKey
key) (\s :: UploadPart
s@UploadPart' {} ObjectKey
a -> UploadPart
s {$sel:key:UploadPart' :: ObjectKey
key = ObjectKey
a} :: UploadPart)
uploadPart_partNumber :: Lens.Lens' UploadPart Prelude.Int
uploadPart_partNumber :: (Int -> f Int) -> UploadPart -> f UploadPart
uploadPart_partNumber = (UploadPart -> Int)
-> (UploadPart -> Int -> UploadPart)
-> Lens UploadPart UploadPart Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Int
partNumber :: Int
$sel:partNumber:UploadPart' :: UploadPart -> Int
partNumber} -> Int
partNumber) (\s :: UploadPart
s@UploadPart' {} Int
a -> UploadPart
s {$sel:partNumber:UploadPart' :: Int
partNumber = Int
a} :: UploadPart)
uploadPart_uploadId :: Lens.Lens' UploadPart Prelude.Text
uploadPart_uploadId :: (Text -> f Text) -> UploadPart -> f UploadPart
uploadPart_uploadId = (UploadPart -> Text)
-> (UploadPart -> Text -> UploadPart)
-> Lens UploadPart UploadPart Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Text
uploadId :: Text
$sel:uploadId:UploadPart' :: UploadPart -> Text
uploadId} -> Text
uploadId) (\s :: UploadPart
s@UploadPart' {} Text
a -> UploadPart
s {$sel:uploadId:UploadPart' :: Text
uploadId = Text
a} :: UploadPart)
uploadPart_body :: Lens.Lens' UploadPart Core.RequestBody
uploadPart_body :: (RequestBody -> f RequestBody) -> UploadPart -> f UploadPart
uploadPart_body = (UploadPart -> RequestBody)
-> (UploadPart -> RequestBody -> UploadPart)
-> Lens UploadPart UploadPart RequestBody RequestBody
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {RequestBody
body :: RequestBody
$sel:body:UploadPart' :: UploadPart -> RequestBody
body} -> RequestBody
body) (\s :: UploadPart
s@UploadPart' {} RequestBody
a -> UploadPart
s {$sel:body:UploadPart' :: RequestBody
body = RequestBody
a} :: UploadPart)
instance Core.AWSRequest UploadPart where
type AWSResponse UploadPart = UploadPartResponse
request :: UploadPart -> Request UploadPart
request =
Request UploadPart -> Request UploadPart
forall a. Request a -> Request a
Request.s3vhost
(Request UploadPart -> Request UploadPart)
-> (UploadPart -> Request UploadPart)
-> UploadPart
-> Request UploadPart
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service -> UploadPart -> Request UploadPart
forall a. (ToRequest a, ToBody a) => Service -> a -> Request a
Request.putBody Service
defaultService
response :: Logger
-> Service
-> Proxy UploadPart
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UploadPart)))
response =
(Int
-> ResponseHeaders -> () -> Either String (AWSResponse UploadPart))
-> Logger
-> Service
-> Proxy UploadPart
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UploadPart)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Maybe RequestCharged
-> Maybe ETag
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse
UploadPartResponse'
(Maybe RequestCharged
-> Maybe ETag
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse)
-> Either String (Maybe RequestCharged)
-> Either
String
(Maybe ETag
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse)
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 Text
-> Maybe Bool
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse)
-> Either String (Maybe ETag)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe ETag)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"ETag")
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse)
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-server-side-encryption-customer-algorithm"
)
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse)
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 Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (Sensitive Text)
-> Maybe ServerSideEncryption -> Int -> UploadPartResponse)
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-server-side-encryption-customer-key-MD5"
)
Either
String
(Maybe (Sensitive Text)
-> Maybe ServerSideEncryption -> Int -> UploadPartResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String (Maybe ServerSideEncryption -> Int -> UploadPartResponse)
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 -> UploadPartResponse)
-> Either String (Maybe ServerSideEncryption)
-> Either String (Int -> UploadPartResponse)
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 -> UploadPartResponse)
-> Either String Int -> Either String UploadPartResponse
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 Core.ToBody UploadPart where
toBody :: UploadPart -> RequestBody
toBody UploadPart' {Int
Maybe Integer
Maybe Text
Maybe (Sensitive Text)
Maybe RequestPayer
Text
RequestBody
ObjectKey
BucketName
body :: RequestBody
uploadId :: Text
partNumber :: Int
key :: ObjectKey
bucket :: BucketName
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
sSECustomerKeyMD5 :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
contentLength :: Maybe Integer
$sel:body:UploadPart' :: UploadPart -> RequestBody
$sel:uploadId:UploadPart' :: UploadPart -> Text
$sel:partNumber:UploadPart' :: UploadPart -> Int
$sel:key:UploadPart' :: UploadPart -> ObjectKey
$sel:bucket:UploadPart' :: UploadPart -> BucketName
$sel:expectedBucketOwner:UploadPart' :: UploadPart -> Maybe Text
$sel:contentMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:sSECustomerKeyMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:requestPayer:UploadPart' :: UploadPart -> Maybe RequestPayer
$sel:sSECustomerKey:UploadPart' :: UploadPart -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPart' :: UploadPart -> Maybe Text
$sel:contentLength:UploadPart' :: UploadPart -> Maybe Integer
..} = RequestBody -> RequestBody
forall a. ToBody a => a -> RequestBody
Core.toBody RequestBody
body
instance Core.ToHeaders UploadPart where
toHeaders :: UploadPart -> ResponseHeaders
toHeaders UploadPart' {Int
Maybe Integer
Maybe Text
Maybe (Sensitive Text)
Maybe RequestPayer
Text
RequestBody
ObjectKey
BucketName
body :: RequestBody
uploadId :: Text
partNumber :: Int
key :: ObjectKey
bucket :: BucketName
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
sSECustomerKeyMD5 :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
contentLength :: Maybe Integer
$sel:body:UploadPart' :: UploadPart -> RequestBody
$sel:uploadId:UploadPart' :: UploadPart -> Text
$sel:partNumber:UploadPart' :: UploadPart -> Int
$sel:key:UploadPart' :: UploadPart -> ObjectKey
$sel:bucket:UploadPart' :: UploadPart -> BucketName
$sel:expectedBucketOwner:UploadPart' :: UploadPart -> Maybe Text
$sel:contentMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:sSECustomerKeyMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:requestPayer:UploadPart' :: UploadPart -> Maybe RequestPayer
$sel:sSECustomerKey:UploadPart' :: UploadPart -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPart' :: UploadPart -> Maybe Text
$sel:contentLength:UploadPart' :: UploadPart -> Maybe Integer
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Length" HeaderName -> Maybe Integer -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Integer
contentLength,
HeaderName
"x-amz-server-side-encryption-customer-algorithm"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
sSECustomerAlgorithm,
HeaderName
"x-amz-server-side-encryption-customer-key"
HeaderName -> Maybe (Sensitive Text) -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe (Sensitive Text)
sSECustomerKey,
HeaderName
"x-amz-request-payer" HeaderName -> Maybe RequestPayer -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe RequestPayer
requestPayer,
HeaderName
"x-amz-server-side-encryption-customer-key-MD5"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
sSECustomerKeyMD5,
HeaderName
"Content-MD5" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
contentMD5,
HeaderName
"x-amz-expected-bucket-owner"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
expectedBucketOwner
]
instance Core.ToPath UploadPart where
toPath :: UploadPart -> ByteString
toPath UploadPart' {Int
Maybe Integer
Maybe Text
Maybe (Sensitive Text)
Maybe RequestPayer
Text
RequestBody
ObjectKey
BucketName
body :: RequestBody
uploadId :: Text
partNumber :: Int
key :: ObjectKey
bucket :: BucketName
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
sSECustomerKeyMD5 :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
contentLength :: Maybe Integer
$sel:body:UploadPart' :: UploadPart -> RequestBody
$sel:uploadId:UploadPart' :: UploadPart -> Text
$sel:partNumber:UploadPart' :: UploadPart -> Int
$sel:key:UploadPart' :: UploadPart -> ObjectKey
$sel:bucket:UploadPart' :: UploadPart -> BucketName
$sel:expectedBucketOwner:UploadPart' :: UploadPart -> Maybe Text
$sel:contentMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:sSECustomerKeyMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:requestPayer:UploadPart' :: UploadPart -> Maybe RequestPayer
$sel:sSECustomerKey:UploadPart' :: UploadPart -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPart' :: UploadPart -> Maybe Text
$sel:contentLength:UploadPart' :: UploadPart -> Maybe Integer
..} =
[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 UploadPart where
toQuery :: UploadPart -> QueryString
toQuery UploadPart' {Int
Maybe Integer
Maybe Text
Maybe (Sensitive Text)
Maybe RequestPayer
Text
RequestBody
ObjectKey
BucketName
body :: RequestBody
uploadId :: Text
partNumber :: Int
key :: ObjectKey
bucket :: BucketName
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
sSECustomerKeyMD5 :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
contentLength :: Maybe Integer
$sel:body:UploadPart' :: UploadPart -> RequestBody
$sel:uploadId:UploadPart' :: UploadPart -> Text
$sel:partNumber:UploadPart' :: UploadPart -> Int
$sel:key:UploadPart' :: UploadPart -> ObjectKey
$sel:bucket:UploadPart' :: UploadPart -> BucketName
$sel:expectedBucketOwner:UploadPart' :: UploadPart -> Maybe Text
$sel:contentMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:sSECustomerKeyMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:requestPayer:UploadPart' :: UploadPart -> Maybe RequestPayer
$sel:sSECustomerKey:UploadPart' :: UploadPart -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPart' :: UploadPart -> Maybe Text
$sel:contentLength:UploadPart' :: UploadPart -> Maybe Integer
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"partNumber" ByteString -> Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Int
partNumber,
ByteString
"uploadId" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
uploadId
]
data UploadPartResponse = UploadPartResponse'
{ UploadPartResponse -> Maybe RequestCharged
requestCharged :: Prelude.Maybe RequestCharged,
UploadPartResponse -> Maybe ETag
eTag :: Prelude.Maybe ETag,
UploadPartResponse -> Maybe Text
sSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
UploadPartResponse -> Maybe Bool
bucketKeyEnabled :: Prelude.Maybe Prelude.Bool,
UploadPartResponse -> Maybe Text
sSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
UploadPartResponse -> Maybe (Sensitive Text)
sSEKMSKeyId :: Prelude.Maybe (Core.Sensitive Prelude.Text),
UploadPartResponse -> Maybe ServerSideEncryption
serverSideEncryption :: Prelude.Maybe ServerSideEncryption,
UploadPartResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UploadPartResponse -> UploadPartResponse -> Bool
(UploadPartResponse -> UploadPartResponse -> Bool)
-> (UploadPartResponse -> UploadPartResponse -> Bool)
-> Eq UploadPartResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UploadPartResponse -> UploadPartResponse -> Bool
$c/= :: UploadPartResponse -> UploadPartResponse -> Bool
== :: UploadPartResponse -> UploadPartResponse -> Bool
$c== :: UploadPartResponse -> UploadPartResponse -> Bool
Prelude.Eq, Int -> UploadPartResponse -> ShowS
[UploadPartResponse] -> ShowS
UploadPartResponse -> String
(Int -> UploadPartResponse -> ShowS)
-> (UploadPartResponse -> String)
-> ([UploadPartResponse] -> ShowS)
-> Show UploadPartResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UploadPartResponse] -> ShowS
$cshowList :: [UploadPartResponse] -> ShowS
show :: UploadPartResponse -> String
$cshow :: UploadPartResponse -> String
showsPrec :: Int -> UploadPartResponse -> ShowS
$cshowsPrec :: Int -> UploadPartResponse -> ShowS
Prelude.Show, (forall x. UploadPartResponse -> Rep UploadPartResponse x)
-> (forall x. Rep UploadPartResponse x -> UploadPartResponse)
-> Generic UploadPartResponse
forall x. Rep UploadPartResponse x -> UploadPartResponse
forall x. UploadPartResponse -> Rep UploadPartResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UploadPartResponse x -> UploadPartResponse
$cfrom :: forall x. UploadPartResponse -> Rep UploadPartResponse x
Prelude.Generic)
newUploadPartResponse ::
Prelude.Int ->
UploadPartResponse
newUploadPartResponse :: Int -> UploadPartResponse
newUploadPartResponse Int
pHttpStatus_ =
UploadPartResponse' :: Maybe RequestCharged
-> Maybe ETag
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse
UploadPartResponse'
{ $sel:requestCharged:UploadPartResponse' :: Maybe RequestCharged
requestCharged =
Maybe RequestCharged
forall a. Maybe a
Prelude.Nothing,
$sel:eTag:UploadPartResponse' :: Maybe ETag
eTag = Maybe ETag
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerAlgorithm:UploadPartResponse' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucketKeyEnabled:UploadPartResponse' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKeyMD5:UploadPartResponse' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSEKMSKeyId:UploadPartResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:serverSideEncryption:UploadPartResponse' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UploadPartResponse' :: Int
httpStatus = Int
pHttpStatus_
}
uploadPartResponse_requestCharged :: Lens.Lens' UploadPartResponse (Prelude.Maybe RequestCharged)
uploadPartResponse_requestCharged :: (Maybe RequestCharged -> f (Maybe RequestCharged))
-> UploadPartResponse -> f UploadPartResponse
uploadPartResponse_requestCharged = (UploadPartResponse -> Maybe RequestCharged)
-> (UploadPartResponse
-> Maybe RequestCharged -> UploadPartResponse)
-> Lens
UploadPartResponse
UploadPartResponse
(Maybe RequestCharged)
(Maybe RequestCharged)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe RequestCharged
requestCharged :: Maybe RequestCharged
$sel:requestCharged:UploadPartResponse' :: UploadPartResponse -> Maybe RequestCharged
requestCharged} -> Maybe RequestCharged
requestCharged) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe RequestCharged
a -> UploadPartResponse
s {$sel:requestCharged:UploadPartResponse' :: Maybe RequestCharged
requestCharged = Maybe RequestCharged
a} :: UploadPartResponse)
uploadPartResponse_eTag :: Lens.Lens' UploadPartResponse (Prelude.Maybe ETag)
uploadPartResponse_eTag :: (Maybe ETag -> f (Maybe ETag))
-> UploadPartResponse -> f UploadPartResponse
uploadPartResponse_eTag = (UploadPartResponse -> Maybe ETag)
-> (UploadPartResponse -> Maybe ETag -> UploadPartResponse)
-> Lens
UploadPartResponse UploadPartResponse (Maybe ETag) (Maybe ETag)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe ETag
eTag :: Maybe ETag
$sel:eTag:UploadPartResponse' :: UploadPartResponse -> Maybe ETag
eTag} -> Maybe ETag
eTag) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe ETag
a -> UploadPartResponse
s {$sel:eTag:UploadPartResponse' :: Maybe ETag
eTag = Maybe ETag
a} :: UploadPartResponse)
uploadPartResponse_sSECustomerAlgorithm :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Text)
uploadPartResponse_sSECustomerAlgorithm :: (Maybe Text -> f (Maybe Text))
-> UploadPartResponse -> f UploadPartResponse
uploadPartResponse_sSECustomerAlgorithm = (UploadPartResponse -> Maybe Text)
-> (UploadPartResponse -> Maybe Text -> UploadPartResponse)
-> Lens
UploadPartResponse UploadPartResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe Text
sSECustomerAlgorithm :: Maybe Text
$sel:sSECustomerAlgorithm:UploadPartResponse' :: UploadPartResponse -> Maybe Text
sSECustomerAlgorithm} -> Maybe Text
sSECustomerAlgorithm) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe Text
a -> UploadPartResponse
s {$sel:sSECustomerAlgorithm:UploadPartResponse' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
a} :: UploadPartResponse)
uploadPartResponse_bucketKeyEnabled :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Bool)
uploadPartResponse_bucketKeyEnabled :: (Maybe Bool -> f (Maybe Bool))
-> UploadPartResponse -> f UploadPartResponse
uploadPartResponse_bucketKeyEnabled = (UploadPartResponse -> Maybe Bool)
-> (UploadPartResponse -> Maybe Bool -> UploadPartResponse)
-> Lens
UploadPartResponse UploadPartResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe Bool
bucketKeyEnabled :: Maybe Bool
$sel:bucketKeyEnabled:UploadPartResponse' :: UploadPartResponse -> Maybe Bool
bucketKeyEnabled} -> Maybe Bool
bucketKeyEnabled) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe Bool
a -> UploadPartResponse
s {$sel:bucketKeyEnabled:UploadPartResponse' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
a} :: UploadPartResponse)
uploadPartResponse_sSECustomerKeyMD5 :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Text)
uploadPartResponse_sSECustomerKeyMD5 :: (Maybe Text -> f (Maybe Text))
-> UploadPartResponse -> f UploadPartResponse
uploadPartResponse_sSECustomerKeyMD5 = (UploadPartResponse -> Maybe Text)
-> (UploadPartResponse -> Maybe Text -> UploadPartResponse)
-> Lens
UploadPartResponse UploadPartResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe Text
sSECustomerKeyMD5 :: Maybe Text
$sel:sSECustomerKeyMD5:UploadPartResponse' :: UploadPartResponse -> Maybe Text
sSECustomerKeyMD5} -> Maybe Text
sSECustomerKeyMD5) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe Text
a -> UploadPartResponse
s {$sel:sSECustomerKeyMD5:UploadPartResponse' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
a} :: UploadPartResponse)
uploadPartResponse_sSEKMSKeyId :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Text)
uploadPartResponse_sSEKMSKeyId :: (Maybe Text -> f (Maybe Text))
-> UploadPartResponse -> f UploadPartResponse
uploadPartResponse_sSEKMSKeyId = (UploadPartResponse -> Maybe (Sensitive Text))
-> (UploadPartResponse
-> Maybe (Sensitive Text) -> UploadPartResponse)
-> Lens
UploadPartResponse
UploadPartResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe (Sensitive Text)
sSEKMSKeyId :: Maybe (Sensitive Text)
$sel:sSEKMSKeyId:UploadPartResponse' :: UploadPartResponse -> Maybe (Sensitive Text)
sSEKMSKeyId} -> Maybe (Sensitive Text)
sSEKMSKeyId) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe (Sensitive Text)
a -> UploadPartResponse
s {$sel:sSEKMSKeyId:UploadPartResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
a} :: UploadPartResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> UploadPartResponse -> f UploadPartResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> UploadPartResponse
-> f UploadPartResponse
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
uploadPartResponse_serverSideEncryption :: Lens.Lens' UploadPartResponse (Prelude.Maybe ServerSideEncryption)
uploadPartResponse_serverSideEncryption :: (Maybe ServerSideEncryption -> f (Maybe ServerSideEncryption))
-> UploadPartResponse -> f UploadPartResponse
uploadPartResponse_serverSideEncryption = (UploadPartResponse -> Maybe ServerSideEncryption)
-> (UploadPartResponse
-> Maybe ServerSideEncryption -> UploadPartResponse)
-> Lens
UploadPartResponse
UploadPartResponse
(Maybe ServerSideEncryption)
(Maybe ServerSideEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe ServerSideEncryption
serverSideEncryption :: Maybe ServerSideEncryption
$sel:serverSideEncryption:UploadPartResponse' :: UploadPartResponse -> Maybe ServerSideEncryption
serverSideEncryption} -> Maybe ServerSideEncryption
serverSideEncryption) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe ServerSideEncryption
a -> UploadPartResponse
s {$sel:serverSideEncryption:UploadPartResponse' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
a} :: UploadPartResponse)
uploadPartResponse_httpStatus :: Lens.Lens' UploadPartResponse Prelude.Int
uploadPartResponse_httpStatus :: (Int -> f Int) -> UploadPartResponse -> f UploadPartResponse
uploadPartResponse_httpStatus = (UploadPartResponse -> Int)
-> (UploadPartResponse -> Int -> UploadPartResponse)
-> Lens UploadPartResponse UploadPartResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Int
httpStatus :: Int
$sel:httpStatus:UploadPartResponse' :: UploadPartResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UploadPartResponse
s@UploadPartResponse' {} Int
a -> UploadPartResponse
s {$sel:httpStatus:UploadPartResponse' :: Int
httpStatus = Int
a} :: UploadPartResponse)
instance Prelude.NFData UploadPartResponse