{-# 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.UploadPartCopy
(
UploadPartCopy (..),
newUploadPartCopy,
uploadPartCopy_copySourceIfModifiedSince,
uploadPartCopy_copySourceIfUnmodifiedSince,
uploadPartCopy_copySourceRange,
uploadPartCopy_copySourceSSECustomerKeyMD5,
uploadPartCopy_copySourceIfNoneMatch,
uploadPartCopy_sSECustomerAlgorithm,
uploadPartCopy_sSECustomerKey,
uploadPartCopy_requestPayer,
uploadPartCopy_copySourceIfMatch,
uploadPartCopy_expectedSourceBucketOwner,
uploadPartCopy_sSECustomerKeyMD5,
uploadPartCopy_copySourceSSECustomerKey,
uploadPartCopy_copySourceSSECustomerAlgorithm,
uploadPartCopy_expectedBucketOwner,
uploadPartCopy_bucket,
uploadPartCopy_copySource,
uploadPartCopy_key,
uploadPartCopy_partNumber,
uploadPartCopy_uploadId,
UploadPartCopyResponse (..),
newUploadPartCopyResponse,
uploadPartCopyResponse_requestCharged,
uploadPartCopyResponse_copyPartResult,
uploadPartCopyResponse_sSECustomerAlgorithm,
uploadPartCopyResponse_bucketKeyEnabled,
uploadPartCopyResponse_copySourceVersionId,
uploadPartCopyResponse_sSECustomerKeyMD5,
uploadPartCopyResponse_sSEKMSKeyId,
uploadPartCopyResponse_serverSideEncryption,
uploadPartCopyResponse_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 UploadPartCopy = UploadPartCopy'
{
UploadPartCopy -> Maybe ISO8601
copySourceIfModifiedSince :: Prelude.Maybe Core.ISO8601,
UploadPartCopy -> Maybe ISO8601
copySourceIfUnmodifiedSince :: Prelude.Maybe Core.ISO8601,
UploadPartCopy -> Maybe Text
copySourceRange :: Prelude.Maybe Prelude.Text,
UploadPartCopy -> Maybe Text
copySourceSSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
UploadPartCopy -> Maybe Text
copySourceIfNoneMatch :: Prelude.Maybe Prelude.Text,
UploadPartCopy -> Maybe Text
sSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
UploadPartCopy -> Maybe (Sensitive Text)
sSECustomerKey :: Prelude.Maybe (Core.Sensitive Prelude.Text),
UploadPartCopy -> Maybe RequestPayer
requestPayer :: Prelude.Maybe RequestPayer,
UploadPartCopy -> Maybe Text
copySourceIfMatch :: Prelude.Maybe Prelude.Text,
UploadPartCopy -> Maybe Text
expectedSourceBucketOwner :: Prelude.Maybe Prelude.Text,
UploadPartCopy -> Maybe Text
sSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
UploadPartCopy -> Maybe (Sensitive Text)
copySourceSSECustomerKey :: Prelude.Maybe (Core.Sensitive Prelude.Text),
UploadPartCopy -> Maybe Text
copySourceSSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
UploadPartCopy -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
UploadPartCopy -> BucketName
bucket :: BucketName,
UploadPartCopy -> Text
copySource :: Prelude.Text,
UploadPartCopy -> ObjectKey
key :: ObjectKey,
UploadPartCopy -> Int
partNumber :: Prelude.Int,
UploadPartCopy -> Text
uploadId :: Prelude.Text
}
deriving (UploadPartCopy -> UploadPartCopy -> Bool
(UploadPartCopy -> UploadPartCopy -> Bool)
-> (UploadPartCopy -> UploadPartCopy -> Bool) -> Eq UploadPartCopy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UploadPartCopy -> UploadPartCopy -> Bool
$c/= :: UploadPartCopy -> UploadPartCopy -> Bool
== :: UploadPartCopy -> UploadPartCopy -> Bool
$c== :: UploadPartCopy -> UploadPartCopy -> Bool
Prelude.Eq, Int -> UploadPartCopy -> ShowS
[UploadPartCopy] -> ShowS
UploadPartCopy -> String
(Int -> UploadPartCopy -> ShowS)
-> (UploadPartCopy -> String)
-> ([UploadPartCopy] -> ShowS)
-> Show UploadPartCopy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UploadPartCopy] -> ShowS
$cshowList :: [UploadPartCopy] -> ShowS
show :: UploadPartCopy -> String
$cshow :: UploadPartCopy -> String
showsPrec :: Int -> UploadPartCopy -> ShowS
$cshowsPrec :: Int -> UploadPartCopy -> ShowS
Prelude.Show, (forall x. UploadPartCopy -> Rep UploadPartCopy x)
-> (forall x. Rep UploadPartCopy x -> UploadPartCopy)
-> Generic UploadPartCopy
forall x. Rep UploadPartCopy x -> UploadPartCopy
forall x. UploadPartCopy -> Rep UploadPartCopy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UploadPartCopy x -> UploadPartCopy
$cfrom :: forall x. UploadPartCopy -> Rep UploadPartCopy x
Prelude.Generic)
newUploadPartCopy ::
BucketName ->
Prelude.Text ->
ObjectKey ->
Prelude.Int ->
Prelude.Text ->
UploadPartCopy
newUploadPartCopy :: BucketName -> Text -> ObjectKey -> Int -> Text -> UploadPartCopy
newUploadPartCopy
BucketName
pBucket_
Text
pCopySource_
ObjectKey
pKey_
Int
pPartNumber_
Text
pUploadId_ =
UploadPartCopy' :: Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe RequestPayer
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> BucketName
-> Text
-> ObjectKey
-> Int
-> Text
-> UploadPartCopy
UploadPartCopy'
{ $sel:copySourceIfModifiedSince:UploadPartCopy' :: Maybe ISO8601
copySourceIfModifiedSince =
Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceIfUnmodifiedSince:UploadPartCopy' :: Maybe ISO8601
copySourceIfUnmodifiedSince = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceRange:UploadPartCopy' :: Maybe Text
copySourceRange = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceSSECustomerKeyMD5:UploadPartCopy' :: Maybe Text
copySourceSSECustomerKeyMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceIfNoneMatch:UploadPartCopy' :: Maybe Text
copySourceIfNoneMatch = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerAlgorithm:UploadPartCopy' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKey:UploadPartCopy' :: Maybe (Sensitive Text)
sSECustomerKey = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:requestPayer:UploadPartCopy' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceIfMatch:UploadPartCopy' :: Maybe Text
copySourceIfMatch = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expectedSourceBucketOwner:UploadPartCopy' :: Maybe Text
expectedSourceBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKeyMD5:UploadPartCopy' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceSSECustomerKey:UploadPartCopy' :: Maybe (Sensitive Text)
copySourceSSECustomerKey = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceSSECustomerAlgorithm:UploadPartCopy' :: Maybe Text
copySourceSSECustomerAlgorithm = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expectedBucketOwner:UploadPartCopy' :: Maybe Text
expectedBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucket:UploadPartCopy' :: BucketName
bucket = BucketName
pBucket_,
$sel:copySource:UploadPartCopy' :: Text
copySource = Text
pCopySource_,
$sel:key:UploadPartCopy' :: ObjectKey
key = ObjectKey
pKey_,
$sel:partNumber:UploadPartCopy' :: Int
partNumber = Int
pPartNumber_,
$sel:uploadId:UploadPartCopy' :: Text
uploadId = Text
pUploadId_
}
uploadPartCopy_copySourceIfModifiedSince :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.UTCTime)
uploadPartCopy_copySourceIfModifiedSince :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_copySourceIfModifiedSince = (UploadPartCopy -> Maybe ISO8601)
-> (UploadPartCopy -> Maybe ISO8601 -> UploadPartCopy)
-> Lens
UploadPartCopy UploadPartCopy (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe ISO8601
copySourceIfModifiedSince :: Maybe ISO8601
$sel:copySourceIfModifiedSince:UploadPartCopy' :: UploadPartCopy -> Maybe ISO8601
copySourceIfModifiedSince} -> Maybe ISO8601
copySourceIfModifiedSince) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe ISO8601
a -> UploadPartCopy
s {$sel:copySourceIfModifiedSince:UploadPartCopy' :: Maybe ISO8601
copySourceIfModifiedSince = Maybe ISO8601
a} :: UploadPartCopy) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> UploadPartCopy -> f UploadPartCopy)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UploadPartCopy
-> f UploadPartCopy
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
(Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
uploadPartCopy_copySourceIfUnmodifiedSince :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.UTCTime)
uploadPartCopy_copySourceIfUnmodifiedSince :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_copySourceIfUnmodifiedSince = (UploadPartCopy -> Maybe ISO8601)
-> (UploadPartCopy -> Maybe ISO8601 -> UploadPartCopy)
-> Lens
UploadPartCopy UploadPartCopy (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe ISO8601
copySourceIfUnmodifiedSince :: Maybe ISO8601
$sel:copySourceIfUnmodifiedSince:UploadPartCopy' :: UploadPartCopy -> Maybe ISO8601
copySourceIfUnmodifiedSince} -> Maybe ISO8601
copySourceIfUnmodifiedSince) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe ISO8601
a -> UploadPartCopy
s {$sel:copySourceIfUnmodifiedSince:UploadPartCopy' :: Maybe ISO8601
copySourceIfUnmodifiedSince = Maybe ISO8601
a} :: UploadPartCopy) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> UploadPartCopy -> f UploadPartCopy)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UploadPartCopy
-> f UploadPartCopy
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
(Maybe ISO8601) (Maybe ISO8601) (Maybe UTCTime) (Maybe UTCTime)
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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
uploadPartCopy_copySourceRange :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_copySourceRange :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_copySourceRange = (UploadPartCopy -> Maybe Text)
-> (UploadPartCopy -> Maybe Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe Text
copySourceRange :: Maybe Text
$sel:copySourceRange:UploadPartCopy' :: UploadPartCopy -> Maybe Text
copySourceRange} -> Maybe Text
copySourceRange) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe Text
a -> UploadPartCopy
s {$sel:copySourceRange:UploadPartCopy' :: Maybe Text
copySourceRange = Maybe Text
a} :: UploadPartCopy)
uploadPartCopy_copySourceSSECustomerKeyMD5 :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_copySourceSSECustomerKeyMD5 :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_copySourceSSECustomerKeyMD5 = (UploadPartCopy -> Maybe Text)
-> (UploadPartCopy -> Maybe Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe Text
copySourceSSECustomerKeyMD5 :: Maybe Text
$sel:copySourceSSECustomerKeyMD5:UploadPartCopy' :: UploadPartCopy -> Maybe Text
copySourceSSECustomerKeyMD5} -> Maybe Text
copySourceSSECustomerKeyMD5) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe Text
a -> UploadPartCopy
s {$sel:copySourceSSECustomerKeyMD5:UploadPartCopy' :: Maybe Text
copySourceSSECustomerKeyMD5 = Maybe Text
a} :: UploadPartCopy)
uploadPartCopy_copySourceIfNoneMatch :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_copySourceIfNoneMatch :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_copySourceIfNoneMatch = (UploadPartCopy -> Maybe Text)
-> (UploadPartCopy -> Maybe Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe Text
copySourceIfNoneMatch :: Maybe Text
$sel:copySourceIfNoneMatch:UploadPartCopy' :: UploadPartCopy -> Maybe Text
copySourceIfNoneMatch} -> Maybe Text
copySourceIfNoneMatch) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe Text
a -> UploadPartCopy
s {$sel:copySourceIfNoneMatch:UploadPartCopy' :: Maybe Text
copySourceIfNoneMatch = Maybe Text
a} :: UploadPartCopy)
uploadPartCopy_sSECustomerAlgorithm :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_sSECustomerAlgorithm :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_sSECustomerAlgorithm = (UploadPartCopy -> Maybe Text)
-> (UploadPartCopy -> Maybe Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe Text
sSECustomerAlgorithm :: Maybe Text
$sel:sSECustomerAlgorithm:UploadPartCopy' :: UploadPartCopy -> Maybe Text
sSECustomerAlgorithm} -> Maybe Text
sSECustomerAlgorithm) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe Text
a -> UploadPartCopy
s {$sel:sSECustomerAlgorithm:UploadPartCopy' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
a} :: UploadPartCopy)
uploadPartCopy_sSECustomerKey :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_sSECustomerKey :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_sSECustomerKey = (UploadPartCopy -> Maybe (Sensitive Text))
-> (UploadPartCopy -> Maybe (Sensitive Text) -> UploadPartCopy)
-> Lens
UploadPartCopy
UploadPartCopy
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe (Sensitive Text)
sSECustomerKey :: Maybe (Sensitive Text)
$sel:sSECustomerKey:UploadPartCopy' :: UploadPartCopy -> Maybe (Sensitive Text)
sSECustomerKey} -> Maybe (Sensitive Text)
sSECustomerKey) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe (Sensitive Text)
a -> UploadPartCopy
s {$sel:sSECustomerKey:UploadPartCopy' :: Maybe (Sensitive Text)
sSECustomerKey = Maybe (Sensitive Text)
a} :: UploadPartCopy) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> UploadPartCopy -> f UploadPartCopy)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> UploadPartCopy
-> f UploadPartCopy
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
uploadPartCopy_requestPayer :: Lens.Lens' UploadPartCopy (Prelude.Maybe RequestPayer)
uploadPartCopy_requestPayer :: (Maybe RequestPayer -> f (Maybe RequestPayer))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_requestPayer = (UploadPartCopy -> Maybe RequestPayer)
-> (UploadPartCopy -> Maybe RequestPayer -> UploadPartCopy)
-> Lens
UploadPartCopy
UploadPartCopy
(Maybe RequestPayer)
(Maybe RequestPayer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe RequestPayer
requestPayer :: Maybe RequestPayer
$sel:requestPayer:UploadPartCopy' :: UploadPartCopy -> Maybe RequestPayer
requestPayer} -> Maybe RequestPayer
requestPayer) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe RequestPayer
a -> UploadPartCopy
s {$sel:requestPayer:UploadPartCopy' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
a} :: UploadPartCopy)
uploadPartCopy_copySourceIfMatch :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_copySourceIfMatch :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_copySourceIfMatch = (UploadPartCopy -> Maybe Text)
-> (UploadPartCopy -> Maybe Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe Text
copySourceIfMatch :: Maybe Text
$sel:copySourceIfMatch:UploadPartCopy' :: UploadPartCopy -> Maybe Text
copySourceIfMatch} -> Maybe Text
copySourceIfMatch) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe Text
a -> UploadPartCopy
s {$sel:copySourceIfMatch:UploadPartCopy' :: Maybe Text
copySourceIfMatch = Maybe Text
a} :: UploadPartCopy)
uploadPartCopy_expectedSourceBucketOwner :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_expectedSourceBucketOwner :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_expectedSourceBucketOwner = (UploadPartCopy -> Maybe Text)
-> (UploadPartCopy -> Maybe Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe Text
expectedSourceBucketOwner :: Maybe Text
$sel:expectedSourceBucketOwner:UploadPartCopy' :: UploadPartCopy -> Maybe Text
expectedSourceBucketOwner} -> Maybe Text
expectedSourceBucketOwner) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe Text
a -> UploadPartCopy
s {$sel:expectedSourceBucketOwner:UploadPartCopy' :: Maybe Text
expectedSourceBucketOwner = Maybe Text
a} :: UploadPartCopy)
uploadPartCopy_sSECustomerKeyMD5 :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_sSECustomerKeyMD5 :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_sSECustomerKeyMD5 = (UploadPartCopy -> Maybe Text)
-> (UploadPartCopy -> Maybe Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe Text
sSECustomerKeyMD5 :: Maybe Text
$sel:sSECustomerKeyMD5:UploadPartCopy' :: UploadPartCopy -> Maybe Text
sSECustomerKeyMD5} -> Maybe Text
sSECustomerKeyMD5) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe Text
a -> UploadPartCopy
s {$sel:sSECustomerKeyMD5:UploadPartCopy' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
a} :: UploadPartCopy)
uploadPartCopy_copySourceSSECustomerKey :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_copySourceSSECustomerKey :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_copySourceSSECustomerKey = (UploadPartCopy -> Maybe (Sensitive Text))
-> (UploadPartCopy -> Maybe (Sensitive Text) -> UploadPartCopy)
-> Lens
UploadPartCopy
UploadPartCopy
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe (Sensitive Text)
copySourceSSECustomerKey :: Maybe (Sensitive Text)
$sel:copySourceSSECustomerKey:UploadPartCopy' :: UploadPartCopy -> Maybe (Sensitive Text)
copySourceSSECustomerKey} -> Maybe (Sensitive Text)
copySourceSSECustomerKey) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe (Sensitive Text)
a -> UploadPartCopy
s {$sel:copySourceSSECustomerKey:UploadPartCopy' :: Maybe (Sensitive Text)
copySourceSSECustomerKey = Maybe (Sensitive Text)
a} :: UploadPartCopy) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> UploadPartCopy -> f UploadPartCopy)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> UploadPartCopy
-> f UploadPartCopy
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
uploadPartCopy_copySourceSSECustomerAlgorithm :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_copySourceSSECustomerAlgorithm :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_copySourceSSECustomerAlgorithm = (UploadPartCopy -> Maybe Text)
-> (UploadPartCopy -> Maybe Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe Text
copySourceSSECustomerAlgorithm :: Maybe Text
$sel:copySourceSSECustomerAlgorithm:UploadPartCopy' :: UploadPartCopy -> Maybe Text
copySourceSSECustomerAlgorithm} -> Maybe Text
copySourceSSECustomerAlgorithm) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe Text
a -> UploadPartCopy
s {$sel:copySourceSSECustomerAlgorithm:UploadPartCopy' :: Maybe Text
copySourceSSECustomerAlgorithm = Maybe Text
a} :: UploadPartCopy)
uploadPartCopy_expectedBucketOwner :: Lens.Lens' UploadPartCopy (Prelude.Maybe Prelude.Text)
uploadPartCopy_expectedBucketOwner :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_expectedBucketOwner = (UploadPartCopy -> Maybe Text)
-> (UploadPartCopy -> Maybe Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:UploadPartCopy' :: UploadPartCopy -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: UploadPartCopy
s@UploadPartCopy' {} Maybe Text
a -> UploadPartCopy
s {$sel:expectedBucketOwner:UploadPartCopy' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: UploadPartCopy)
uploadPartCopy_bucket :: Lens.Lens' UploadPartCopy BucketName
uploadPartCopy_bucket :: (BucketName -> f BucketName) -> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_bucket = (UploadPartCopy -> BucketName)
-> (UploadPartCopy -> BucketName -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy BucketName BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {BucketName
bucket :: BucketName
$sel:bucket:UploadPartCopy' :: UploadPartCopy -> BucketName
bucket} -> BucketName
bucket) (\s :: UploadPartCopy
s@UploadPartCopy' {} BucketName
a -> UploadPartCopy
s {$sel:bucket:UploadPartCopy' :: BucketName
bucket = BucketName
a} :: UploadPartCopy)
uploadPartCopy_copySource :: Lens.Lens' UploadPartCopy Prelude.Text
uploadPartCopy_copySource :: (Text -> f Text) -> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_copySource = (UploadPartCopy -> Text)
-> (UploadPartCopy -> Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Text
copySource :: Text
$sel:copySource:UploadPartCopy' :: UploadPartCopy -> Text
copySource} -> Text
copySource) (\s :: UploadPartCopy
s@UploadPartCopy' {} Text
a -> UploadPartCopy
s {$sel:copySource:UploadPartCopy' :: Text
copySource = Text
a} :: UploadPartCopy)
uploadPartCopy_key :: Lens.Lens' UploadPartCopy ObjectKey
uploadPartCopy_key :: (ObjectKey -> f ObjectKey) -> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_key = (UploadPartCopy -> ObjectKey)
-> (UploadPartCopy -> ObjectKey -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy ObjectKey ObjectKey
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {ObjectKey
key :: ObjectKey
$sel:key:UploadPartCopy' :: UploadPartCopy -> ObjectKey
key} -> ObjectKey
key) (\s :: UploadPartCopy
s@UploadPartCopy' {} ObjectKey
a -> UploadPartCopy
s {$sel:key:UploadPartCopy' :: ObjectKey
key = ObjectKey
a} :: UploadPartCopy)
uploadPartCopy_partNumber :: Lens.Lens' UploadPartCopy Prelude.Int
uploadPartCopy_partNumber :: (Int -> f Int) -> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_partNumber = (UploadPartCopy -> Int)
-> (UploadPartCopy -> Int -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Int
partNumber :: Int
$sel:partNumber:UploadPartCopy' :: UploadPartCopy -> Int
partNumber} -> Int
partNumber) (\s :: UploadPartCopy
s@UploadPartCopy' {} Int
a -> UploadPartCopy
s {$sel:partNumber:UploadPartCopy' :: Int
partNumber = Int
a} :: UploadPartCopy)
uploadPartCopy_uploadId :: Lens.Lens' UploadPartCopy Prelude.Text
uploadPartCopy_uploadId :: (Text -> f Text) -> UploadPartCopy -> f UploadPartCopy
uploadPartCopy_uploadId = (UploadPartCopy -> Text)
-> (UploadPartCopy -> Text -> UploadPartCopy)
-> Lens UploadPartCopy UploadPartCopy Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopy' {Text
uploadId :: Text
$sel:uploadId:UploadPartCopy' :: UploadPartCopy -> Text
uploadId} -> Text
uploadId) (\s :: UploadPartCopy
s@UploadPartCopy' {} Text
a -> UploadPartCopy
s {$sel:uploadId:UploadPartCopy' :: Text
uploadId = Text
a} :: UploadPartCopy)
instance Core.AWSRequest UploadPartCopy where
type
AWSResponse UploadPartCopy =
UploadPartCopyResponse
request :: UploadPartCopy -> Request UploadPartCopy
request =
Request UploadPartCopy -> Request UploadPartCopy
forall a. Request a -> Request a
Request.s3vhost
(Request UploadPartCopy -> Request UploadPartCopy)
-> (UploadPartCopy -> Request UploadPartCopy)
-> UploadPartCopy
-> Request UploadPartCopy
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service -> UploadPartCopy -> Request UploadPartCopy
forall a. ToRequest a => Service -> a -> Request a
Request.put Service
defaultService
response :: Logger
-> Service
-> Proxy UploadPartCopy
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UploadPartCopy)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse UploadPartCopy))
-> Logger
-> Service
-> Proxy UploadPartCopy
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UploadPartCopy)))
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 CopyPartResult
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse
UploadPartCopyResponse'
(Maybe RequestCharged
-> Maybe CopyPartResult
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
-> Either String (Maybe RequestCharged)
-> Either
String
(Maybe CopyPartResult
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
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 CopyPartResult
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
-> Either String (Maybe CopyPartResult)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node] -> Either String (Maybe CopyPartResult)
forall a. FromXML a => [Node] -> Either String a
Core.parseXML [Node]
x)
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
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 Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
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 Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
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-copy-source-version-id")
Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (Sensitive Text)
-> Maybe ServerSideEncryption -> Int -> UploadPartCopyResponse)
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 -> UploadPartCopyResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String
(Maybe ServerSideEncryption -> Int -> UploadPartCopyResponse)
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 -> UploadPartCopyResponse)
-> Either String (Maybe ServerSideEncryption)
-> Either String (Int -> UploadPartCopyResponse)
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 -> UploadPartCopyResponse)
-> Either String Int -> Either String UploadPartCopyResponse
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 UploadPartCopy
instance Prelude.NFData UploadPartCopy
instance Core.ToHeaders UploadPartCopy where
toHeaders :: UploadPartCopy -> ResponseHeaders
toHeaders UploadPartCopy' {Int
Maybe Text
Maybe (Sensitive Text)
Maybe ISO8601
Maybe RequestPayer
Text
ObjectKey
BucketName
uploadId :: Text
partNumber :: Int
key :: ObjectKey
copySource :: Text
bucket :: BucketName
expectedBucketOwner :: Maybe Text
copySourceSSECustomerAlgorithm :: Maybe Text
copySourceSSECustomerKey :: Maybe (Sensitive Text)
sSECustomerKeyMD5 :: Maybe Text
expectedSourceBucketOwner :: Maybe Text
copySourceIfMatch :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
copySourceIfNoneMatch :: Maybe Text
copySourceSSECustomerKeyMD5 :: Maybe Text
copySourceRange :: Maybe Text
copySourceIfUnmodifiedSince :: Maybe ISO8601
copySourceIfModifiedSince :: Maybe ISO8601
$sel:uploadId:UploadPartCopy' :: UploadPartCopy -> Text
$sel:partNumber:UploadPartCopy' :: UploadPartCopy -> Int
$sel:key:UploadPartCopy' :: UploadPartCopy -> ObjectKey
$sel:copySource:UploadPartCopy' :: UploadPartCopy -> Text
$sel:bucket:UploadPartCopy' :: UploadPartCopy -> BucketName
$sel:expectedBucketOwner:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceSSECustomerAlgorithm:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceSSECustomerKey:UploadPartCopy' :: UploadPartCopy -> Maybe (Sensitive Text)
$sel:sSECustomerKeyMD5:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:expectedSourceBucketOwner:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceIfMatch:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:requestPayer:UploadPartCopy' :: UploadPartCopy -> Maybe RequestPayer
$sel:sSECustomerKey:UploadPartCopy' :: UploadPartCopy -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceIfNoneMatch:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceSSECustomerKeyMD5:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceRange:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceIfUnmodifiedSince:UploadPartCopy' :: UploadPartCopy -> Maybe ISO8601
$sel:copySourceIfModifiedSince:UploadPartCopy' :: UploadPartCopy -> Maybe ISO8601
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"x-amz-copy-source-if-modified-since"
HeaderName -> Maybe ISO8601 -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe ISO8601
copySourceIfModifiedSince,
HeaderName
"x-amz-copy-source-if-unmodified-since"
HeaderName -> Maybe ISO8601 -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe ISO8601
copySourceIfUnmodifiedSince,
HeaderName
"x-amz-copy-source-range" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
copySourceRange,
HeaderName
"x-amz-copy-source-server-side-encryption-customer-key-MD5"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
copySourceSSECustomerKeyMD5,
HeaderName
"x-amz-copy-source-if-none-match"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
copySourceIfNoneMatch,
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-copy-source-if-match"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
copySourceIfMatch,
HeaderName
"x-amz-source-expected-bucket-owner"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
expectedSourceBucketOwner,
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
"x-amz-copy-source-server-side-encryption-customer-key"
HeaderName -> Maybe (Sensitive Text) -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe (Sensitive Text)
copySourceSSECustomerKey,
HeaderName
"x-amz-copy-source-server-side-encryption-customer-algorithm"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
copySourceSSECustomerAlgorithm,
HeaderName
"x-amz-expected-bucket-owner"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
expectedBucketOwner,
HeaderName
"x-amz-copy-source" HeaderName -> Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Text
copySource
]
instance Core.ToPath UploadPartCopy where
toPath :: UploadPartCopy -> ByteString
toPath UploadPartCopy' {Int
Maybe Text
Maybe (Sensitive Text)
Maybe ISO8601
Maybe RequestPayer
Text
ObjectKey
BucketName
uploadId :: Text
partNumber :: Int
key :: ObjectKey
copySource :: Text
bucket :: BucketName
expectedBucketOwner :: Maybe Text
copySourceSSECustomerAlgorithm :: Maybe Text
copySourceSSECustomerKey :: Maybe (Sensitive Text)
sSECustomerKeyMD5 :: Maybe Text
expectedSourceBucketOwner :: Maybe Text
copySourceIfMatch :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
copySourceIfNoneMatch :: Maybe Text
copySourceSSECustomerKeyMD5 :: Maybe Text
copySourceRange :: Maybe Text
copySourceIfUnmodifiedSince :: Maybe ISO8601
copySourceIfModifiedSince :: Maybe ISO8601
$sel:uploadId:UploadPartCopy' :: UploadPartCopy -> Text
$sel:partNumber:UploadPartCopy' :: UploadPartCopy -> Int
$sel:key:UploadPartCopy' :: UploadPartCopy -> ObjectKey
$sel:copySource:UploadPartCopy' :: UploadPartCopy -> Text
$sel:bucket:UploadPartCopy' :: UploadPartCopy -> BucketName
$sel:expectedBucketOwner:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceSSECustomerAlgorithm:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceSSECustomerKey:UploadPartCopy' :: UploadPartCopy -> Maybe (Sensitive Text)
$sel:sSECustomerKeyMD5:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:expectedSourceBucketOwner:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceIfMatch:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:requestPayer:UploadPartCopy' :: UploadPartCopy -> Maybe RequestPayer
$sel:sSECustomerKey:UploadPartCopy' :: UploadPartCopy -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceIfNoneMatch:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceSSECustomerKeyMD5:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceRange:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceIfUnmodifiedSince:UploadPartCopy' :: UploadPartCopy -> Maybe ISO8601
$sel:copySourceIfModifiedSince:UploadPartCopy' :: UploadPartCopy -> Maybe ISO8601
..} =
[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 UploadPartCopy where
toQuery :: UploadPartCopy -> QueryString
toQuery UploadPartCopy' {Int
Maybe Text
Maybe (Sensitive Text)
Maybe ISO8601
Maybe RequestPayer
Text
ObjectKey
BucketName
uploadId :: Text
partNumber :: Int
key :: ObjectKey
copySource :: Text
bucket :: BucketName
expectedBucketOwner :: Maybe Text
copySourceSSECustomerAlgorithm :: Maybe Text
copySourceSSECustomerKey :: Maybe (Sensitive Text)
sSECustomerKeyMD5 :: Maybe Text
expectedSourceBucketOwner :: Maybe Text
copySourceIfMatch :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
copySourceIfNoneMatch :: Maybe Text
copySourceSSECustomerKeyMD5 :: Maybe Text
copySourceRange :: Maybe Text
copySourceIfUnmodifiedSince :: Maybe ISO8601
copySourceIfModifiedSince :: Maybe ISO8601
$sel:uploadId:UploadPartCopy' :: UploadPartCopy -> Text
$sel:partNumber:UploadPartCopy' :: UploadPartCopy -> Int
$sel:key:UploadPartCopy' :: UploadPartCopy -> ObjectKey
$sel:copySource:UploadPartCopy' :: UploadPartCopy -> Text
$sel:bucket:UploadPartCopy' :: UploadPartCopy -> BucketName
$sel:expectedBucketOwner:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceSSECustomerAlgorithm:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceSSECustomerKey:UploadPartCopy' :: UploadPartCopy -> Maybe (Sensitive Text)
$sel:sSECustomerKeyMD5:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:expectedSourceBucketOwner:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceIfMatch:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:requestPayer:UploadPartCopy' :: UploadPartCopy -> Maybe RequestPayer
$sel:sSECustomerKey:UploadPartCopy' :: UploadPartCopy -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceIfNoneMatch:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceSSECustomerKeyMD5:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceRange:UploadPartCopy' :: UploadPartCopy -> Maybe Text
$sel:copySourceIfUnmodifiedSince:UploadPartCopy' :: UploadPartCopy -> Maybe ISO8601
$sel:copySourceIfModifiedSince:UploadPartCopy' :: UploadPartCopy -> Maybe ISO8601
..} =
[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 UploadPartCopyResponse = UploadPartCopyResponse'
{ UploadPartCopyResponse -> Maybe RequestCharged
requestCharged :: Prelude.Maybe RequestCharged,
UploadPartCopyResponse -> Maybe CopyPartResult
copyPartResult :: Prelude.Maybe CopyPartResult,
UploadPartCopyResponse -> Maybe Text
sSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
UploadPartCopyResponse -> Maybe Bool
bucketKeyEnabled :: Prelude.Maybe Prelude.Bool,
UploadPartCopyResponse -> Maybe Text
copySourceVersionId :: Prelude.Maybe Prelude.Text,
UploadPartCopyResponse -> Maybe Text
sSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
UploadPartCopyResponse -> Maybe (Sensitive Text)
sSEKMSKeyId :: Prelude.Maybe (Core.Sensitive Prelude.Text),
UploadPartCopyResponse -> Maybe ServerSideEncryption
serverSideEncryption :: Prelude.Maybe ServerSideEncryption,
UploadPartCopyResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UploadPartCopyResponse -> UploadPartCopyResponse -> Bool
(UploadPartCopyResponse -> UploadPartCopyResponse -> Bool)
-> (UploadPartCopyResponse -> UploadPartCopyResponse -> Bool)
-> Eq UploadPartCopyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UploadPartCopyResponse -> UploadPartCopyResponse -> Bool
$c/= :: UploadPartCopyResponse -> UploadPartCopyResponse -> Bool
== :: UploadPartCopyResponse -> UploadPartCopyResponse -> Bool
$c== :: UploadPartCopyResponse -> UploadPartCopyResponse -> Bool
Prelude.Eq, Int -> UploadPartCopyResponse -> ShowS
[UploadPartCopyResponse] -> ShowS
UploadPartCopyResponse -> String
(Int -> UploadPartCopyResponse -> ShowS)
-> (UploadPartCopyResponse -> String)
-> ([UploadPartCopyResponse] -> ShowS)
-> Show UploadPartCopyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UploadPartCopyResponse] -> ShowS
$cshowList :: [UploadPartCopyResponse] -> ShowS
show :: UploadPartCopyResponse -> String
$cshow :: UploadPartCopyResponse -> String
showsPrec :: Int -> UploadPartCopyResponse -> ShowS
$cshowsPrec :: Int -> UploadPartCopyResponse -> ShowS
Prelude.Show, (forall x. UploadPartCopyResponse -> Rep UploadPartCopyResponse x)
-> (forall x.
Rep UploadPartCopyResponse x -> UploadPartCopyResponse)
-> Generic UploadPartCopyResponse
forall x. Rep UploadPartCopyResponse x -> UploadPartCopyResponse
forall x. UploadPartCopyResponse -> Rep UploadPartCopyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UploadPartCopyResponse x -> UploadPartCopyResponse
$cfrom :: forall x. UploadPartCopyResponse -> Rep UploadPartCopyResponse x
Prelude.Generic)
newUploadPartCopyResponse ::
Prelude.Int ->
UploadPartCopyResponse
newUploadPartCopyResponse :: Int -> UploadPartCopyResponse
newUploadPartCopyResponse Int
pHttpStatus_ =
UploadPartCopyResponse' :: Maybe RequestCharged
-> Maybe CopyPartResult
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Int
-> UploadPartCopyResponse
UploadPartCopyResponse'
{ $sel:requestCharged:UploadPartCopyResponse' :: Maybe RequestCharged
requestCharged =
Maybe RequestCharged
forall a. Maybe a
Prelude.Nothing,
$sel:copyPartResult:UploadPartCopyResponse' :: Maybe CopyPartResult
copyPartResult = Maybe CopyPartResult
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerAlgorithm:UploadPartCopyResponse' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucketKeyEnabled:UploadPartCopyResponse' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceVersionId:UploadPartCopyResponse' :: Maybe Text
copySourceVersionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKeyMD5:UploadPartCopyResponse' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSEKMSKeyId:UploadPartCopyResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:serverSideEncryption:UploadPartCopyResponse' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UploadPartCopyResponse' :: Int
httpStatus = Int
pHttpStatus_
}
uploadPartCopyResponse_requestCharged :: Lens.Lens' UploadPartCopyResponse (Prelude.Maybe RequestCharged)
uploadPartCopyResponse_requestCharged :: (Maybe RequestCharged -> f (Maybe RequestCharged))
-> UploadPartCopyResponse -> f UploadPartCopyResponse
uploadPartCopyResponse_requestCharged = (UploadPartCopyResponse -> Maybe RequestCharged)
-> (UploadPartCopyResponse
-> Maybe RequestCharged -> UploadPartCopyResponse)
-> Lens
UploadPartCopyResponse
UploadPartCopyResponse
(Maybe RequestCharged)
(Maybe RequestCharged)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopyResponse' {Maybe RequestCharged
requestCharged :: Maybe RequestCharged
$sel:requestCharged:UploadPartCopyResponse' :: UploadPartCopyResponse -> Maybe RequestCharged
requestCharged} -> Maybe RequestCharged
requestCharged) (\s :: UploadPartCopyResponse
s@UploadPartCopyResponse' {} Maybe RequestCharged
a -> UploadPartCopyResponse
s {$sel:requestCharged:UploadPartCopyResponse' :: Maybe RequestCharged
requestCharged = Maybe RequestCharged
a} :: UploadPartCopyResponse)
uploadPartCopyResponse_copyPartResult :: Lens.Lens' UploadPartCopyResponse (Prelude.Maybe CopyPartResult)
uploadPartCopyResponse_copyPartResult :: (Maybe CopyPartResult -> f (Maybe CopyPartResult))
-> UploadPartCopyResponse -> f UploadPartCopyResponse
uploadPartCopyResponse_copyPartResult = (UploadPartCopyResponse -> Maybe CopyPartResult)
-> (UploadPartCopyResponse
-> Maybe CopyPartResult -> UploadPartCopyResponse)
-> Lens
UploadPartCopyResponse
UploadPartCopyResponse
(Maybe CopyPartResult)
(Maybe CopyPartResult)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopyResponse' {Maybe CopyPartResult
copyPartResult :: Maybe CopyPartResult
$sel:copyPartResult:UploadPartCopyResponse' :: UploadPartCopyResponse -> Maybe CopyPartResult
copyPartResult} -> Maybe CopyPartResult
copyPartResult) (\s :: UploadPartCopyResponse
s@UploadPartCopyResponse' {} Maybe CopyPartResult
a -> UploadPartCopyResponse
s {$sel:copyPartResult:UploadPartCopyResponse' :: Maybe CopyPartResult
copyPartResult = Maybe CopyPartResult
a} :: UploadPartCopyResponse)
uploadPartCopyResponse_sSECustomerAlgorithm :: Lens.Lens' UploadPartCopyResponse (Prelude.Maybe Prelude.Text)
uploadPartCopyResponse_sSECustomerAlgorithm :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopyResponse -> f UploadPartCopyResponse
uploadPartCopyResponse_sSECustomerAlgorithm = (UploadPartCopyResponse -> Maybe Text)
-> (UploadPartCopyResponse -> Maybe Text -> UploadPartCopyResponse)
-> Lens
UploadPartCopyResponse
UploadPartCopyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopyResponse' {Maybe Text
sSECustomerAlgorithm :: Maybe Text
$sel:sSECustomerAlgorithm:UploadPartCopyResponse' :: UploadPartCopyResponse -> Maybe Text
sSECustomerAlgorithm} -> Maybe Text
sSECustomerAlgorithm) (\s :: UploadPartCopyResponse
s@UploadPartCopyResponse' {} Maybe Text
a -> UploadPartCopyResponse
s {$sel:sSECustomerAlgorithm:UploadPartCopyResponse' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
a} :: UploadPartCopyResponse)
uploadPartCopyResponse_bucketKeyEnabled :: Lens.Lens' UploadPartCopyResponse (Prelude.Maybe Prelude.Bool)
uploadPartCopyResponse_bucketKeyEnabled :: (Maybe Bool -> f (Maybe Bool))
-> UploadPartCopyResponse -> f UploadPartCopyResponse
uploadPartCopyResponse_bucketKeyEnabled = (UploadPartCopyResponse -> Maybe Bool)
-> (UploadPartCopyResponse -> Maybe Bool -> UploadPartCopyResponse)
-> Lens
UploadPartCopyResponse
UploadPartCopyResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopyResponse' {Maybe Bool
bucketKeyEnabled :: Maybe Bool
$sel:bucketKeyEnabled:UploadPartCopyResponse' :: UploadPartCopyResponse -> Maybe Bool
bucketKeyEnabled} -> Maybe Bool
bucketKeyEnabled) (\s :: UploadPartCopyResponse
s@UploadPartCopyResponse' {} Maybe Bool
a -> UploadPartCopyResponse
s {$sel:bucketKeyEnabled:UploadPartCopyResponse' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
a} :: UploadPartCopyResponse)
uploadPartCopyResponse_copySourceVersionId :: Lens.Lens' UploadPartCopyResponse (Prelude.Maybe Prelude.Text)
uploadPartCopyResponse_copySourceVersionId :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopyResponse -> f UploadPartCopyResponse
uploadPartCopyResponse_copySourceVersionId = (UploadPartCopyResponse -> Maybe Text)
-> (UploadPartCopyResponse -> Maybe Text -> UploadPartCopyResponse)
-> Lens
UploadPartCopyResponse
UploadPartCopyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopyResponse' {Maybe Text
copySourceVersionId :: Maybe Text
$sel:copySourceVersionId:UploadPartCopyResponse' :: UploadPartCopyResponse -> Maybe Text
copySourceVersionId} -> Maybe Text
copySourceVersionId) (\s :: UploadPartCopyResponse
s@UploadPartCopyResponse' {} Maybe Text
a -> UploadPartCopyResponse
s {$sel:copySourceVersionId:UploadPartCopyResponse' :: Maybe Text
copySourceVersionId = Maybe Text
a} :: UploadPartCopyResponse)
uploadPartCopyResponse_sSECustomerKeyMD5 :: Lens.Lens' UploadPartCopyResponse (Prelude.Maybe Prelude.Text)
uploadPartCopyResponse_sSECustomerKeyMD5 :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopyResponse -> f UploadPartCopyResponse
uploadPartCopyResponse_sSECustomerKeyMD5 = (UploadPartCopyResponse -> Maybe Text)
-> (UploadPartCopyResponse -> Maybe Text -> UploadPartCopyResponse)
-> Lens
UploadPartCopyResponse
UploadPartCopyResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopyResponse' {Maybe Text
sSECustomerKeyMD5 :: Maybe Text
$sel:sSECustomerKeyMD5:UploadPartCopyResponse' :: UploadPartCopyResponse -> Maybe Text
sSECustomerKeyMD5} -> Maybe Text
sSECustomerKeyMD5) (\s :: UploadPartCopyResponse
s@UploadPartCopyResponse' {} Maybe Text
a -> UploadPartCopyResponse
s {$sel:sSECustomerKeyMD5:UploadPartCopyResponse' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
a} :: UploadPartCopyResponse)
uploadPartCopyResponse_sSEKMSKeyId :: Lens.Lens' UploadPartCopyResponse (Prelude.Maybe Prelude.Text)
uploadPartCopyResponse_sSEKMSKeyId :: (Maybe Text -> f (Maybe Text))
-> UploadPartCopyResponse -> f UploadPartCopyResponse
uploadPartCopyResponse_sSEKMSKeyId = (UploadPartCopyResponse -> Maybe (Sensitive Text))
-> (UploadPartCopyResponse
-> Maybe (Sensitive Text) -> UploadPartCopyResponse)
-> Lens
UploadPartCopyResponse
UploadPartCopyResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopyResponse' {Maybe (Sensitive Text)
sSEKMSKeyId :: Maybe (Sensitive Text)
$sel:sSEKMSKeyId:UploadPartCopyResponse' :: UploadPartCopyResponse -> Maybe (Sensitive Text)
sSEKMSKeyId} -> Maybe (Sensitive Text)
sSEKMSKeyId) (\s :: UploadPartCopyResponse
s@UploadPartCopyResponse' {} Maybe (Sensitive Text)
a -> UploadPartCopyResponse
s {$sel:sSEKMSKeyId:UploadPartCopyResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
a} :: UploadPartCopyResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> UploadPartCopyResponse -> f UploadPartCopyResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> UploadPartCopyResponse
-> f UploadPartCopyResponse
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
uploadPartCopyResponse_serverSideEncryption :: Lens.Lens' UploadPartCopyResponse (Prelude.Maybe ServerSideEncryption)
uploadPartCopyResponse_serverSideEncryption :: (Maybe ServerSideEncryption -> f (Maybe ServerSideEncryption))
-> UploadPartCopyResponse -> f UploadPartCopyResponse
uploadPartCopyResponse_serverSideEncryption = (UploadPartCopyResponse -> Maybe ServerSideEncryption)
-> (UploadPartCopyResponse
-> Maybe ServerSideEncryption -> UploadPartCopyResponse)
-> Lens
UploadPartCopyResponse
UploadPartCopyResponse
(Maybe ServerSideEncryption)
(Maybe ServerSideEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopyResponse' {Maybe ServerSideEncryption
serverSideEncryption :: Maybe ServerSideEncryption
$sel:serverSideEncryption:UploadPartCopyResponse' :: UploadPartCopyResponse -> Maybe ServerSideEncryption
serverSideEncryption} -> Maybe ServerSideEncryption
serverSideEncryption) (\s :: UploadPartCopyResponse
s@UploadPartCopyResponse' {} Maybe ServerSideEncryption
a -> UploadPartCopyResponse
s {$sel:serverSideEncryption:UploadPartCopyResponse' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
a} :: UploadPartCopyResponse)
uploadPartCopyResponse_httpStatus :: Lens.Lens' UploadPartCopyResponse Prelude.Int
uploadPartCopyResponse_httpStatus :: (Int -> f Int)
-> UploadPartCopyResponse -> f UploadPartCopyResponse
uploadPartCopyResponse_httpStatus = (UploadPartCopyResponse -> Int)
-> (UploadPartCopyResponse -> Int -> UploadPartCopyResponse)
-> Lens UploadPartCopyResponse UploadPartCopyResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadPartCopyResponse' {Int
httpStatus :: Int
$sel:httpStatus:UploadPartCopyResponse' :: UploadPartCopyResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UploadPartCopyResponse
s@UploadPartCopyResponse' {} Int
a -> UploadPartCopyResponse
s {$sel:httpStatus:UploadPartCopyResponse' :: Int
httpStatus = Int
a} :: UploadPartCopyResponse)
instance Prelude.NFData UploadPartCopyResponse