{-# 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_checksumAlgorithm,
uploadPart_checksumCRC32,
uploadPart_checksumCRC32C,
uploadPart_checksumSHA1,
uploadPart_checksumSHA256,
uploadPart_contentLength,
uploadPart_contentMD5,
uploadPart_expectedBucketOwner,
uploadPart_requestPayer,
uploadPart_sSECustomerAlgorithm,
uploadPart_sSECustomerKey,
uploadPart_sSECustomerKeyMD5,
uploadPart_bucket,
uploadPart_key,
uploadPart_partNumber,
uploadPart_uploadId,
uploadPart_body,
UploadPartResponse (..),
newUploadPartResponse,
uploadPartResponse_bucketKeyEnabled,
uploadPartResponse_checksumCRC32,
uploadPartResponse_checksumCRC32C,
uploadPartResponse_checksumSHA1,
uploadPartResponse_checksumSHA256,
uploadPartResponse_eTag,
uploadPartResponse_requestCharged,
uploadPartResponse_sSECustomerAlgorithm,
uploadPartResponse_sSECustomerKeyMD5,
uploadPartResponse_sSEKMSKeyId,
uploadPartResponse_serverSideEncryption,
uploadPartResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.S3.Types
data UploadPart = UploadPart'
{
UploadPart -> Maybe ChecksumAlgorithm
checksumAlgorithm :: Prelude.Maybe ChecksumAlgorithm,
UploadPart -> Maybe Text
checksumCRC32 :: Prelude.Maybe Prelude.Text,
UploadPart -> Maybe Text
checksumCRC32C :: Prelude.Maybe Prelude.Text,
UploadPart -> Maybe Text
checksumSHA1 :: Prelude.Maybe Prelude.Text,
UploadPart -> Maybe Text
checksumSHA256 :: Prelude.Maybe Prelude.Text,
UploadPart -> Maybe Integer
contentLength :: Prelude.Maybe Prelude.Integer,
UploadPart -> Maybe Text
contentMD5 :: Prelude.Maybe Prelude.Text,
UploadPart -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
UploadPart -> Maybe RequestPayer
requestPayer :: Prelude.Maybe RequestPayer,
UploadPart -> Maybe Text
sSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
UploadPart -> Maybe (Sensitive Text)
sSECustomerKey :: Prelude.Maybe (Data.Sensitive Prelude.Text),
UploadPart -> Maybe Text
sSECustomerKeyMD5 :: 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 :: Data.RequestBody
}
deriving (Int -> UploadPart -> ShowS
[UploadPart] -> ShowS
UploadPart -> String
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. 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 ->
Data.RequestBody ->
UploadPart
newUploadPart :: BucketName -> ObjectKey -> Int -> Text -> RequestBody -> UploadPart
newUploadPart
BucketName
pBucket_
ObjectKey
pKey_
Int
pPartNumber_
Text
pUploadId_
RequestBody
pBody_ =
UploadPart'
{ $sel:checksumAlgorithm:UploadPart' :: Maybe ChecksumAlgorithm
checksumAlgorithm = forall a. Maybe a
Prelude.Nothing,
$sel:checksumCRC32:UploadPart' :: Maybe Text
checksumCRC32 = forall a. Maybe a
Prelude.Nothing,
$sel:checksumCRC32C:UploadPart' :: Maybe Text
checksumCRC32C = forall a. Maybe a
Prelude.Nothing,
$sel:checksumSHA1:UploadPart' :: Maybe Text
checksumSHA1 = forall a. Maybe a
Prelude.Nothing,
$sel:checksumSHA256:UploadPart' :: Maybe Text
checksumSHA256 = forall a. Maybe a
Prelude.Nothing,
$sel:contentLength:UploadPart' :: Maybe Integer
contentLength = forall a. Maybe a
Prelude.Nothing,
$sel:contentMD5:UploadPart' :: Maybe Text
contentMD5 = forall a. Maybe a
Prelude.Nothing,
$sel:expectedBucketOwner:UploadPart' :: Maybe Text
expectedBucketOwner = forall a. Maybe a
Prelude.Nothing,
$sel:requestPayer:UploadPart' :: Maybe RequestPayer
requestPayer = forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerAlgorithm:UploadPart' :: Maybe Text
sSECustomerAlgorithm = forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKey:UploadPart' :: Maybe (Sensitive Text)
sSECustomerKey = forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKeyMD5:UploadPart' :: Maybe Text
sSECustomerKeyMD5 = 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_checksumAlgorithm :: Lens.Lens' UploadPart (Prelude.Maybe ChecksumAlgorithm)
uploadPart_checksumAlgorithm :: Lens' UploadPart (Maybe ChecksumAlgorithm)
uploadPart_checksumAlgorithm = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe ChecksumAlgorithm
checksumAlgorithm :: Maybe ChecksumAlgorithm
$sel:checksumAlgorithm:UploadPart' :: UploadPart -> Maybe ChecksumAlgorithm
checksumAlgorithm} -> Maybe ChecksumAlgorithm
checksumAlgorithm) (\s :: UploadPart
s@UploadPart' {} Maybe ChecksumAlgorithm
a -> UploadPart
s {$sel:checksumAlgorithm:UploadPart' :: Maybe ChecksumAlgorithm
checksumAlgorithm = Maybe ChecksumAlgorithm
a} :: UploadPart)
uploadPart_checksumCRC32 :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_checksumCRC32 :: Lens' UploadPart (Maybe Text)
uploadPart_checksumCRC32 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe Text
checksumCRC32 :: Maybe Text
$sel:checksumCRC32:UploadPart' :: UploadPart -> Maybe Text
checksumCRC32} -> Maybe Text
checksumCRC32) (\s :: UploadPart
s@UploadPart' {} Maybe Text
a -> UploadPart
s {$sel:checksumCRC32:UploadPart' :: Maybe Text
checksumCRC32 = Maybe Text
a} :: UploadPart)
uploadPart_checksumCRC32C :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_checksumCRC32C :: Lens' UploadPart (Maybe Text)
uploadPart_checksumCRC32C = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe Text
checksumCRC32C :: Maybe Text
$sel:checksumCRC32C:UploadPart' :: UploadPart -> Maybe Text
checksumCRC32C} -> Maybe Text
checksumCRC32C) (\s :: UploadPart
s@UploadPart' {} Maybe Text
a -> UploadPart
s {$sel:checksumCRC32C:UploadPart' :: Maybe Text
checksumCRC32C = Maybe Text
a} :: UploadPart)
uploadPart_checksumSHA1 :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_checksumSHA1 :: Lens' UploadPart (Maybe Text)
uploadPart_checksumSHA1 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe Text
checksumSHA1 :: Maybe Text
$sel:checksumSHA1:UploadPart' :: UploadPart -> Maybe Text
checksumSHA1} -> Maybe Text
checksumSHA1) (\s :: UploadPart
s@UploadPart' {} Maybe Text
a -> UploadPart
s {$sel:checksumSHA1:UploadPart' :: Maybe Text
checksumSHA1 = Maybe Text
a} :: UploadPart)
uploadPart_checksumSHA256 :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_checksumSHA256 :: Lens' UploadPart (Maybe Text)
uploadPart_checksumSHA256 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPart' {Maybe Text
checksumSHA256 :: Maybe Text
$sel:checksumSHA256:UploadPart' :: UploadPart -> Maybe Text
checksumSHA256} -> Maybe Text
checksumSHA256) (\s :: UploadPart
s@UploadPart' {} Maybe Text
a -> UploadPart
s {$sel:checksumSHA256:UploadPart' :: Maybe Text
checksumSHA256 = Maybe Text
a} :: UploadPart)
uploadPart_contentLength :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Integer)
uploadPart_contentLength :: Lens' UploadPart (Maybe Integer)
uploadPart_contentLength = 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_contentMD5 :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_contentMD5 :: Lens' UploadPart (Maybe Text)
uploadPart_contentMD5 = 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 :: Lens' UploadPart (Maybe Text)
uploadPart_expectedBucketOwner = 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_requestPayer :: Lens.Lens' UploadPart (Prelude.Maybe RequestPayer)
uploadPart_requestPayer :: Lens' UploadPart (Maybe RequestPayer)
uploadPart_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_sSECustomerAlgorithm :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_sSECustomerAlgorithm :: Lens' UploadPart (Maybe Text)
uploadPart_sSECustomerAlgorithm = 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 :: Lens' UploadPart (Maybe Text)
uploadPart_sSECustomerKey = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall a. Iso' (Sensitive a) a
Data._Sensitive
uploadPart_sSECustomerKeyMD5 :: Lens.Lens' UploadPart (Prelude.Maybe Prelude.Text)
uploadPart_sSECustomerKeyMD5 :: Lens' UploadPart (Maybe Text)
uploadPart_sSECustomerKeyMD5 = 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_bucket :: Lens.Lens' UploadPart BucketName
uploadPart_bucket :: Lens' UploadPart BucketName
uploadPart_bucket = 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 :: Lens' UploadPart ObjectKey
uploadPart_key = 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 :: Lens' UploadPart Int
uploadPart_partNumber = 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 :: Lens' UploadPart Text
uploadPart_uploadId = 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 Data.RequestBody
uploadPart_body :: Lens' UploadPart RequestBody
uploadPart_body = 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 :: (Service -> Service) -> UploadPart -> Request UploadPart
request Service -> Service
overrides =
forall a. Request a -> Request a
Request.s3vhost
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a. (ToRequest a, ToBody a) => Service -> a -> Request a
Request.putBody (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UploadPart
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UploadPart)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ETag
-> Maybe RequestCharged
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartResponse
UploadPartResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( ResponseHeaders
h
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"x-amz-server-side-encryption-bucket-key-enabled"
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"x-amz-checksum-crc32")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"x-amz-checksum-crc32c")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"x-amz-checksum-sha1")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"x-amz-checksum-sha256")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"ETag")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"x-amz-request-charged")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( ResponseHeaders
h
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"x-amz-server-side-encryption-customer-algorithm"
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( ResponseHeaders
h
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"x-amz-server-side-encryption-customer-key-MD5"
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( ResponseHeaders
h
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"x-amz-server-side-encryption-aws-kms-key-id"
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Data..#? HeaderName
"x-amz-server-side-encryption")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Data.ToBody UploadPart where
toBody :: UploadPart -> RequestBody
toBody UploadPart' {Int
Maybe Integer
Maybe Text
Maybe (Sensitive Text)
Maybe ChecksumAlgorithm
Maybe RequestPayer
Text
RequestBody
ObjectKey
BucketName
body :: RequestBody
uploadId :: Text
partNumber :: Int
key :: ObjectKey
bucket :: BucketName
sSECustomerKeyMD5 :: Maybe Text
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
requestPayer :: Maybe RequestPayer
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
contentLength :: Maybe Integer
checksumSHA256 :: Maybe Text
checksumSHA1 :: Maybe Text
checksumCRC32C :: Maybe Text
checksumCRC32 :: Maybe Text
checksumAlgorithm :: Maybe ChecksumAlgorithm
$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:sSECustomerKeyMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:sSECustomerKey:UploadPart' :: UploadPart -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPart' :: UploadPart -> Maybe Text
$sel:requestPayer:UploadPart' :: UploadPart -> Maybe RequestPayer
$sel:expectedBucketOwner:UploadPart' :: UploadPart -> Maybe Text
$sel:contentMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:contentLength:UploadPart' :: UploadPart -> Maybe Integer
$sel:checksumSHA256:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumSHA1:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumCRC32C:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumCRC32:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumAlgorithm:UploadPart' :: UploadPart -> Maybe ChecksumAlgorithm
..} = forall a. ToBody a => a -> RequestBody
Data.toBody RequestBody
body
instance Data.ToHeaders UploadPart where
toHeaders :: UploadPart -> ResponseHeaders
toHeaders UploadPart' {Int
Maybe Integer
Maybe Text
Maybe (Sensitive Text)
Maybe ChecksumAlgorithm
Maybe RequestPayer
Text
RequestBody
ObjectKey
BucketName
body :: RequestBody
uploadId :: Text
partNumber :: Int
key :: ObjectKey
bucket :: BucketName
sSECustomerKeyMD5 :: Maybe Text
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
requestPayer :: Maybe RequestPayer
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
contentLength :: Maybe Integer
checksumSHA256 :: Maybe Text
checksumSHA1 :: Maybe Text
checksumCRC32C :: Maybe Text
checksumCRC32 :: Maybe Text
checksumAlgorithm :: Maybe ChecksumAlgorithm
$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:sSECustomerKeyMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:sSECustomerKey:UploadPart' :: UploadPart -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPart' :: UploadPart -> Maybe Text
$sel:requestPayer:UploadPart' :: UploadPart -> Maybe RequestPayer
$sel:expectedBucketOwner:UploadPart' :: UploadPart -> Maybe Text
$sel:contentMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:contentLength:UploadPart' :: UploadPart -> Maybe Integer
$sel:checksumSHA256:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumSHA1:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumCRC32C:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumCRC32:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumAlgorithm:UploadPart' :: UploadPart -> Maybe ChecksumAlgorithm
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"x-amz-sdk-checksum-algorithm"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe ChecksumAlgorithm
checksumAlgorithm,
HeaderName
"x-amz-checksum-crc32" forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe Text
checksumCRC32,
HeaderName
"x-amz-checksum-crc32c" forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe Text
checksumCRC32C,
HeaderName
"x-amz-checksum-sha1" forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe Text
checksumSHA1,
HeaderName
"x-amz-checksum-sha256" forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe Text
checksumSHA256,
HeaderName
"Content-Length" forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe Integer
contentLength,
HeaderName
"Content-MD5" forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe Text
contentMD5,
HeaderName
"x-amz-expected-bucket-owner"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe Text
expectedBucketOwner,
HeaderName
"x-amz-request-payer" forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe RequestPayer
requestPayer,
HeaderName
"x-amz-server-side-encryption-customer-algorithm"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe Text
sSECustomerAlgorithm,
HeaderName
"x-amz-server-side-encryption-customer-key"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe (Sensitive Text)
sSECustomerKey,
HeaderName
"x-amz-server-side-encryption-customer-key-MD5"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# Maybe Text
sSECustomerKeyMD5
]
instance Data.ToPath UploadPart where
toPath :: UploadPart -> ByteString
toPath UploadPart' {Int
Maybe Integer
Maybe Text
Maybe (Sensitive Text)
Maybe ChecksumAlgorithm
Maybe RequestPayer
Text
RequestBody
ObjectKey
BucketName
body :: RequestBody
uploadId :: Text
partNumber :: Int
key :: ObjectKey
bucket :: BucketName
sSECustomerKeyMD5 :: Maybe Text
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
requestPayer :: Maybe RequestPayer
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
contentLength :: Maybe Integer
checksumSHA256 :: Maybe Text
checksumSHA1 :: Maybe Text
checksumCRC32C :: Maybe Text
checksumCRC32 :: Maybe Text
checksumAlgorithm :: Maybe ChecksumAlgorithm
$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:sSECustomerKeyMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:sSECustomerKey:UploadPart' :: UploadPart -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPart' :: UploadPart -> Maybe Text
$sel:requestPayer:UploadPart' :: UploadPart -> Maybe RequestPayer
$sel:expectedBucketOwner:UploadPart' :: UploadPart -> Maybe Text
$sel:contentMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:contentLength:UploadPart' :: UploadPart -> Maybe Integer
$sel:checksumSHA256:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumSHA1:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumCRC32C:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumCRC32:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumAlgorithm:UploadPart' :: UploadPart -> Maybe ChecksumAlgorithm
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/", forall a. ToByteString a => a -> ByteString
Data.toBS BucketName
bucket, ByteString
"/", forall a. ToByteString a => a -> ByteString
Data.toBS ObjectKey
key]
instance Data.ToQuery UploadPart where
toQuery :: UploadPart -> QueryString
toQuery UploadPart' {Int
Maybe Integer
Maybe Text
Maybe (Sensitive Text)
Maybe ChecksumAlgorithm
Maybe RequestPayer
Text
RequestBody
ObjectKey
BucketName
body :: RequestBody
uploadId :: Text
partNumber :: Int
key :: ObjectKey
bucket :: BucketName
sSECustomerKeyMD5 :: Maybe Text
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
requestPayer :: Maybe RequestPayer
expectedBucketOwner :: Maybe Text
contentMD5 :: Maybe Text
contentLength :: Maybe Integer
checksumSHA256 :: Maybe Text
checksumSHA1 :: Maybe Text
checksumCRC32C :: Maybe Text
checksumCRC32 :: Maybe Text
checksumAlgorithm :: Maybe ChecksumAlgorithm
$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:sSECustomerKeyMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:sSECustomerKey:UploadPart' :: UploadPart -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPart' :: UploadPart -> Maybe Text
$sel:requestPayer:UploadPart' :: UploadPart -> Maybe RequestPayer
$sel:expectedBucketOwner:UploadPart' :: UploadPart -> Maybe Text
$sel:contentMD5:UploadPart' :: UploadPart -> Maybe Text
$sel:contentLength:UploadPart' :: UploadPart -> Maybe Integer
$sel:checksumSHA256:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumSHA1:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumCRC32C:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumCRC32:UploadPart' :: UploadPart -> Maybe Text
$sel:checksumAlgorithm:UploadPart' :: UploadPart -> Maybe ChecksumAlgorithm
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"partNumber" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Int
partNumber,
ByteString
"uploadId" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Text
uploadId
]
data UploadPartResponse = UploadPartResponse'
{
UploadPartResponse -> Maybe Bool
bucketKeyEnabled :: Prelude.Maybe Prelude.Bool,
UploadPartResponse -> Maybe Text
checksumCRC32 :: Prelude.Maybe Prelude.Text,
UploadPartResponse -> Maybe Text
checksumCRC32C :: Prelude.Maybe Prelude.Text,
UploadPartResponse -> Maybe Text
checksumSHA1 :: Prelude.Maybe Prelude.Text,
UploadPartResponse -> Maybe Text
checksumSHA256 :: Prelude.Maybe Prelude.Text,
UploadPartResponse -> Maybe ETag
eTag :: Prelude.Maybe ETag,
UploadPartResponse -> Maybe RequestCharged
requestCharged :: Prelude.Maybe RequestCharged,
UploadPartResponse -> Maybe Text
sSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
UploadPartResponse -> Maybe Text
sSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
UploadPartResponse -> Maybe (Sensitive Text)
sSEKMSKeyId :: Prelude.Maybe (Data.Sensitive Prelude.Text),
UploadPartResponse -> Maybe ServerSideEncryption
serverSideEncryption :: Prelude.Maybe ServerSideEncryption,
UploadPartResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UploadPartResponse -> UploadPartResponse -> Bool
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
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. 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'
{ $sel:bucketKeyEnabled:UploadPartResponse' :: Maybe Bool
bucketKeyEnabled =
forall a. Maybe a
Prelude.Nothing,
$sel:checksumCRC32:UploadPartResponse' :: Maybe Text
checksumCRC32 = forall a. Maybe a
Prelude.Nothing,
$sel:checksumCRC32C:UploadPartResponse' :: Maybe Text
checksumCRC32C = forall a. Maybe a
Prelude.Nothing,
$sel:checksumSHA1:UploadPartResponse' :: Maybe Text
checksumSHA1 = forall a. Maybe a
Prelude.Nothing,
$sel:checksumSHA256:UploadPartResponse' :: Maybe Text
checksumSHA256 = forall a. Maybe a
Prelude.Nothing,
$sel:eTag:UploadPartResponse' :: Maybe ETag
eTag = forall a. Maybe a
Prelude.Nothing,
$sel:requestCharged:UploadPartResponse' :: Maybe RequestCharged
requestCharged = forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerAlgorithm:UploadPartResponse' :: Maybe Text
sSECustomerAlgorithm = forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKeyMD5:UploadPartResponse' :: Maybe Text
sSECustomerKeyMD5 = forall a. Maybe a
Prelude.Nothing,
$sel:sSEKMSKeyId:UploadPartResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = forall a. Maybe a
Prelude.Nothing,
$sel:serverSideEncryption:UploadPartResponse' :: Maybe ServerSideEncryption
serverSideEncryption = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UploadPartResponse' :: Int
httpStatus = Int
pHttpStatus_
}
uploadPartResponse_bucketKeyEnabled :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Bool)
uploadPartResponse_bucketKeyEnabled :: Lens' UploadPartResponse (Maybe Bool)
uploadPartResponse_bucketKeyEnabled = 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_checksumCRC32 :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Text)
uploadPartResponse_checksumCRC32 :: Lens' UploadPartResponse (Maybe Text)
uploadPartResponse_checksumCRC32 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe Text
checksumCRC32 :: Maybe Text
$sel:checksumCRC32:UploadPartResponse' :: UploadPartResponse -> Maybe Text
checksumCRC32} -> Maybe Text
checksumCRC32) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe Text
a -> UploadPartResponse
s {$sel:checksumCRC32:UploadPartResponse' :: Maybe Text
checksumCRC32 = Maybe Text
a} :: UploadPartResponse)
uploadPartResponse_checksumCRC32C :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Text)
uploadPartResponse_checksumCRC32C :: Lens' UploadPartResponse (Maybe Text)
uploadPartResponse_checksumCRC32C = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe Text
checksumCRC32C :: Maybe Text
$sel:checksumCRC32C:UploadPartResponse' :: UploadPartResponse -> Maybe Text
checksumCRC32C} -> Maybe Text
checksumCRC32C) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe Text
a -> UploadPartResponse
s {$sel:checksumCRC32C:UploadPartResponse' :: Maybe Text
checksumCRC32C = Maybe Text
a} :: UploadPartResponse)
uploadPartResponse_checksumSHA1 :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Text)
uploadPartResponse_checksumSHA1 :: Lens' UploadPartResponse (Maybe Text)
uploadPartResponse_checksumSHA1 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe Text
checksumSHA1 :: Maybe Text
$sel:checksumSHA1:UploadPartResponse' :: UploadPartResponse -> Maybe Text
checksumSHA1} -> Maybe Text
checksumSHA1) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe Text
a -> UploadPartResponse
s {$sel:checksumSHA1:UploadPartResponse' :: Maybe Text
checksumSHA1 = Maybe Text
a} :: UploadPartResponse)
uploadPartResponse_checksumSHA256 :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Text)
uploadPartResponse_checksumSHA256 :: Lens' UploadPartResponse (Maybe Text)
uploadPartResponse_checksumSHA256 = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartResponse' {Maybe Text
checksumSHA256 :: Maybe Text
$sel:checksumSHA256:UploadPartResponse' :: UploadPartResponse -> Maybe Text
checksumSHA256} -> Maybe Text
checksumSHA256) (\s :: UploadPartResponse
s@UploadPartResponse' {} Maybe Text
a -> UploadPartResponse
s {$sel:checksumSHA256:UploadPartResponse' :: Maybe Text
checksumSHA256 = Maybe Text
a} :: UploadPartResponse)
uploadPartResponse_eTag :: Lens.Lens' UploadPartResponse (Prelude.Maybe ETag)
uploadPartResponse_eTag :: Lens' UploadPartResponse (Maybe ETag)
uploadPartResponse_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_requestCharged :: Lens.Lens' UploadPartResponse (Prelude.Maybe RequestCharged)
uploadPartResponse_requestCharged :: Lens' UploadPartResponse (Maybe RequestCharged)
uploadPartResponse_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_sSECustomerAlgorithm :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Text)
uploadPartResponse_sSECustomerAlgorithm :: Lens' UploadPartResponse (Maybe Text)
uploadPartResponse_sSECustomerAlgorithm = 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_sSECustomerKeyMD5 :: Lens.Lens' UploadPartResponse (Prelude.Maybe Prelude.Text)
uploadPartResponse_sSECustomerKeyMD5 :: Lens' UploadPartResponse (Maybe Text)
uploadPartResponse_sSECustomerKeyMD5 = 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 :: Lens' UploadPartResponse (Maybe Text)
uploadPartResponse_sSEKMSKeyId = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall a. Iso' (Sensitive a) a
Data._Sensitive
uploadPartResponse_serverSideEncryption :: Lens.Lens' UploadPartResponse (Prelude.Maybe ServerSideEncryption)
uploadPartResponse_serverSideEncryption :: Lens' UploadPartResponse (Maybe ServerSideEncryption)
uploadPartResponse_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 :: Lens' UploadPartResponse Int
uploadPartResponse_httpStatus = 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 where
rnf :: UploadPartResponse -> ()
rnf UploadPartResponse' {Int
Maybe Bool
Maybe Text
Maybe (Sensitive Text)
Maybe ETag
Maybe RequestCharged
Maybe ServerSideEncryption
httpStatus :: Int
serverSideEncryption :: Maybe ServerSideEncryption
sSEKMSKeyId :: Maybe (Sensitive Text)
sSECustomerKeyMD5 :: Maybe Text
sSECustomerAlgorithm :: Maybe Text
requestCharged :: Maybe RequestCharged
eTag :: Maybe ETag
checksumSHA256 :: Maybe Text
checksumSHA1 :: Maybe Text
checksumCRC32C :: Maybe Text
checksumCRC32 :: Maybe Text
bucketKeyEnabled :: Maybe Bool
$sel:httpStatus:UploadPartResponse' :: UploadPartResponse -> Int
$sel:serverSideEncryption:UploadPartResponse' :: UploadPartResponse -> Maybe ServerSideEncryption
$sel:sSEKMSKeyId:UploadPartResponse' :: UploadPartResponse -> Maybe (Sensitive Text)
$sel:sSECustomerKeyMD5:UploadPartResponse' :: UploadPartResponse -> Maybe Text
$sel:sSECustomerAlgorithm:UploadPartResponse' :: UploadPartResponse -> Maybe Text
$sel:requestCharged:UploadPartResponse' :: UploadPartResponse -> Maybe RequestCharged
$sel:eTag:UploadPartResponse' :: UploadPartResponse -> Maybe ETag
$sel:checksumSHA256:UploadPartResponse' :: UploadPartResponse -> Maybe Text
$sel:checksumSHA1:UploadPartResponse' :: UploadPartResponse -> Maybe Text
$sel:checksumCRC32C:UploadPartResponse' :: UploadPartResponse -> Maybe Text
$sel:checksumCRC32:UploadPartResponse' :: UploadPartResponse -> Maybe Text
$sel:bucketKeyEnabled:UploadPartResponse' :: UploadPartResponse -> Maybe Bool
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
bucketKeyEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
checksumCRC32
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
checksumCRC32C
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
checksumSHA1
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
checksumSHA256
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ETag
eTag
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe RequestCharged
requestCharged
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sSECustomerAlgorithm
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
sSECustomerKeyMD5
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
sSEKMSKeyId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe ServerSideEncryption
serverSideEncryption
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus