{-# 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.CreateMultipartUpload
(
CreateMultipartUpload (..),
newCreateMultipartUpload,
createMultipartUpload_objectLockMode,
createMultipartUpload_expires,
createMultipartUpload_grantReadACP,
createMultipartUpload_sSECustomerAlgorithm,
createMultipartUpload_sSECustomerKey,
createMultipartUpload_requestPayer,
createMultipartUpload_grantWriteACP,
createMultipartUpload_bucketKeyEnabled,
createMultipartUpload_websiteRedirectLocation,
createMultipartUpload_grantRead,
createMultipartUpload_storageClass,
createMultipartUpload_sSECustomerKeyMD5,
createMultipartUpload_sSEKMSKeyId,
createMultipartUpload_grantFullControl,
createMultipartUpload_contentEncoding,
createMultipartUpload_tagging,
createMultipartUpload_objectLockRetainUntilDate,
createMultipartUpload_metadata,
createMultipartUpload_sSEKMSEncryptionContext,
createMultipartUpload_cacheControl,
createMultipartUpload_contentLanguage,
createMultipartUpload_objectLockLegalHoldStatus,
createMultipartUpload_acl,
createMultipartUpload_contentDisposition,
createMultipartUpload_expectedBucketOwner,
createMultipartUpload_serverSideEncryption,
createMultipartUpload_contentType,
createMultipartUpload_bucket,
createMultipartUpload_key,
CreateMultipartUploadResponse (..),
newCreateMultipartUploadResponse,
createMultipartUploadResponse_requestCharged,
createMultipartUploadResponse_bucket,
createMultipartUploadResponse_sSECustomerAlgorithm,
createMultipartUploadResponse_abortDate,
createMultipartUploadResponse_abortRuleId,
createMultipartUploadResponse_bucketKeyEnabled,
createMultipartUploadResponse_key,
createMultipartUploadResponse_sSECustomerKeyMD5,
createMultipartUploadResponse_sSEKMSKeyId,
createMultipartUploadResponse_sSEKMSEncryptionContext,
createMultipartUploadResponse_uploadId,
createMultipartUploadResponse_serverSideEncryption,
createMultipartUploadResponse_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 CreateMultipartUpload = CreateMultipartUpload'
{
CreateMultipartUpload -> Maybe ObjectLockMode
objectLockMode :: Prelude.Maybe ObjectLockMode,
CreateMultipartUpload -> Maybe ISO8601
expires :: Prelude.Maybe Core.ISO8601,
CreateMultipartUpload -> Maybe Text
grantReadACP :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe Text
sSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe (Sensitive Text)
sSECustomerKey :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CreateMultipartUpload -> Maybe RequestPayer
requestPayer :: Prelude.Maybe RequestPayer,
CreateMultipartUpload -> Maybe Text
grantWriteACP :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe Bool
bucketKeyEnabled :: Prelude.Maybe Prelude.Bool,
CreateMultipartUpload -> Maybe Text
websiteRedirectLocation :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe Text
grantRead :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe StorageClass
storageClass :: Prelude.Maybe StorageClass,
CreateMultipartUpload -> Maybe Text
sSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe (Sensitive Text)
sSEKMSKeyId :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CreateMultipartUpload -> Maybe Text
grantFullControl :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe Text
contentEncoding :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe Text
tagging :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe ISO8601
objectLockRetainUntilDate :: Prelude.Maybe Core.ISO8601,
CreateMultipartUpload -> HashMap Text Text
metadata :: Prelude.HashMap Prelude.Text Prelude.Text,
CreateMultipartUpload -> Maybe (Sensitive Text)
sSEKMSEncryptionContext :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CreateMultipartUpload -> Maybe Text
cacheControl :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe Text
contentLanguage :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus :: Prelude.Maybe ObjectLockLegalHoldStatus,
CreateMultipartUpload -> Maybe ObjectCannedACL
acl :: Prelude.Maybe ObjectCannedACL,
CreateMultipartUpload -> Maybe Text
contentDisposition :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> Maybe ServerSideEncryption
serverSideEncryption :: Prelude.Maybe ServerSideEncryption,
CreateMultipartUpload -> Maybe Text
contentType :: Prelude.Maybe Prelude.Text,
CreateMultipartUpload -> BucketName
bucket :: BucketName,
CreateMultipartUpload -> ObjectKey
key :: ObjectKey
}
deriving (CreateMultipartUpload -> CreateMultipartUpload -> Bool
(CreateMultipartUpload -> CreateMultipartUpload -> Bool)
-> (CreateMultipartUpload -> CreateMultipartUpload -> Bool)
-> Eq CreateMultipartUpload
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateMultipartUpload -> CreateMultipartUpload -> Bool
$c/= :: CreateMultipartUpload -> CreateMultipartUpload -> Bool
== :: CreateMultipartUpload -> CreateMultipartUpload -> Bool
$c== :: CreateMultipartUpload -> CreateMultipartUpload -> Bool
Prelude.Eq, Int -> CreateMultipartUpload -> ShowS
[CreateMultipartUpload] -> ShowS
CreateMultipartUpload -> String
(Int -> CreateMultipartUpload -> ShowS)
-> (CreateMultipartUpload -> String)
-> ([CreateMultipartUpload] -> ShowS)
-> Show CreateMultipartUpload
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateMultipartUpload] -> ShowS
$cshowList :: [CreateMultipartUpload] -> ShowS
show :: CreateMultipartUpload -> String
$cshow :: CreateMultipartUpload -> String
showsPrec :: Int -> CreateMultipartUpload -> ShowS
$cshowsPrec :: Int -> CreateMultipartUpload -> ShowS
Prelude.Show, (forall x. CreateMultipartUpload -> Rep CreateMultipartUpload x)
-> (forall x. Rep CreateMultipartUpload x -> CreateMultipartUpload)
-> Generic CreateMultipartUpload
forall x. Rep CreateMultipartUpload x -> CreateMultipartUpload
forall x. CreateMultipartUpload -> Rep CreateMultipartUpload x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateMultipartUpload x -> CreateMultipartUpload
$cfrom :: forall x. CreateMultipartUpload -> Rep CreateMultipartUpload x
Prelude.Generic)
newCreateMultipartUpload ::
BucketName ->
ObjectKey ->
CreateMultipartUpload
newCreateMultipartUpload :: BucketName -> ObjectKey -> CreateMultipartUpload
newCreateMultipartUpload BucketName
pBucket_ ObjectKey
pKey_ =
CreateMultipartUpload' :: Maybe ObjectLockMode
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe RequestPayer
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe StorageClass
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> HashMap Text Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe ObjectLockLegalHoldStatus
-> Maybe ObjectCannedACL
-> Maybe Text
-> Maybe Text
-> Maybe ServerSideEncryption
-> Maybe Text
-> BucketName
-> ObjectKey
-> CreateMultipartUpload
CreateMultipartUpload'
{ $sel:objectLockMode:CreateMultipartUpload' :: Maybe ObjectLockMode
objectLockMode =
Maybe ObjectLockMode
forall a. Maybe a
Prelude.Nothing,
$sel:expires:CreateMultipartUpload' :: Maybe ISO8601
expires = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:grantReadACP:CreateMultipartUpload' :: Maybe Text
grantReadACP = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerAlgorithm:CreateMultipartUpload' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKey:CreateMultipartUpload' :: Maybe (Sensitive Text)
sSECustomerKey = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:requestPayer:CreateMultipartUpload' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
forall a. Maybe a
Prelude.Nothing,
$sel:grantWriteACP:CreateMultipartUpload' :: Maybe Text
grantWriteACP = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucketKeyEnabled:CreateMultipartUpload' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:websiteRedirectLocation:CreateMultipartUpload' :: Maybe Text
websiteRedirectLocation = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:grantRead:CreateMultipartUpload' :: Maybe Text
grantRead = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:storageClass:CreateMultipartUpload' :: Maybe StorageClass
storageClass = Maybe StorageClass
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKeyMD5:CreateMultipartUpload' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSEKMSKeyId:CreateMultipartUpload' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:grantFullControl:CreateMultipartUpload' :: Maybe Text
grantFullControl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:contentEncoding:CreateMultipartUpload' :: Maybe Text
contentEncoding = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tagging:CreateMultipartUpload' :: Maybe Text
tagging = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:objectLockRetainUntilDate:CreateMultipartUpload' :: Maybe ISO8601
objectLockRetainUntilDate = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:metadata:CreateMultipartUpload' :: HashMap Text Text
metadata = HashMap Text Text
forall a. Monoid a => a
Prelude.mempty,
$sel:sSEKMSEncryptionContext:CreateMultipartUpload' :: Maybe (Sensitive Text)
sSEKMSEncryptionContext = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:cacheControl:CreateMultipartUpload' :: Maybe Text
cacheControl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:contentLanguage:CreateMultipartUpload' :: Maybe Text
contentLanguage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:objectLockLegalHoldStatus:CreateMultipartUpload' :: Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus = Maybe ObjectLockLegalHoldStatus
forall a. Maybe a
Prelude.Nothing,
$sel:acl:CreateMultipartUpload' :: Maybe ObjectCannedACL
acl = Maybe ObjectCannedACL
forall a. Maybe a
Prelude.Nothing,
$sel:contentDisposition:CreateMultipartUpload' :: Maybe Text
contentDisposition = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expectedBucketOwner:CreateMultipartUpload' :: Maybe Text
expectedBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:serverSideEncryption:CreateMultipartUpload' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
forall a. Maybe a
Prelude.Nothing,
$sel:contentType:CreateMultipartUpload' :: Maybe Text
contentType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucket:CreateMultipartUpload' :: BucketName
bucket = BucketName
pBucket_,
$sel:key:CreateMultipartUpload' :: ObjectKey
key = ObjectKey
pKey_
}
createMultipartUpload_objectLockMode :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe ObjectLockMode)
createMultipartUpload_objectLockMode :: (Maybe ObjectLockMode -> f (Maybe ObjectLockMode))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_objectLockMode = (CreateMultipartUpload -> Maybe ObjectLockMode)
-> (CreateMultipartUpload
-> Maybe ObjectLockMode -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe ObjectLockMode)
(Maybe ObjectLockMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe ObjectLockMode
objectLockMode :: Maybe ObjectLockMode
$sel:objectLockMode:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ObjectLockMode
objectLockMode} -> Maybe ObjectLockMode
objectLockMode) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe ObjectLockMode
a -> CreateMultipartUpload
s {$sel:objectLockMode:CreateMultipartUpload' :: Maybe ObjectLockMode
objectLockMode = Maybe ObjectLockMode
a} :: CreateMultipartUpload)
createMultipartUpload_expires :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.UTCTime)
createMultipartUpload_expires :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_expires = (CreateMultipartUpload -> Maybe ISO8601)
-> (CreateMultipartUpload
-> Maybe ISO8601 -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe ISO8601)
(Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe ISO8601
expires :: Maybe ISO8601
$sel:expires:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ISO8601
expires} -> Maybe ISO8601
expires) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe ISO8601
a -> CreateMultipartUpload
s {$sel:expires:CreateMultipartUpload' :: Maybe ISO8601
expires = Maybe ISO8601
a} :: CreateMultipartUpload) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> CreateMultipartUpload -> f CreateMultipartUpload)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateMultipartUpload
-> f CreateMultipartUpload
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
createMultipartUpload_grantReadACP :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_grantReadACP :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_grantReadACP = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
grantReadACP :: Maybe Text
$sel:grantReadACP:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
grantReadACP} -> Maybe Text
grantReadACP) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:grantReadACP:CreateMultipartUpload' :: Maybe Text
grantReadACP = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_sSECustomerAlgorithm :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_sSECustomerAlgorithm :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_sSECustomerAlgorithm = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
sSECustomerAlgorithm :: Maybe Text
$sel:sSECustomerAlgorithm:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
sSECustomerAlgorithm} -> Maybe Text
sSECustomerAlgorithm) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:sSECustomerAlgorithm:CreateMultipartUpload' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_sSECustomerKey :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_sSECustomerKey :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_sSECustomerKey = (CreateMultipartUpload -> Maybe (Sensitive Text))
-> (CreateMultipartUpload
-> Maybe (Sensitive Text) -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe (Sensitive Text)
sSECustomerKey :: Maybe (Sensitive Text)
$sel:sSECustomerKey:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe (Sensitive Text)
sSECustomerKey} -> Maybe (Sensitive Text)
sSECustomerKey) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe (Sensitive Text)
a -> CreateMultipartUpload
s {$sel:sSECustomerKey:CreateMultipartUpload' :: Maybe (Sensitive Text)
sSECustomerKey = Maybe (Sensitive Text)
a} :: CreateMultipartUpload) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateMultipartUpload -> f CreateMultipartUpload)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload
-> f CreateMultipartUpload
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
createMultipartUpload_requestPayer :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe RequestPayer)
createMultipartUpload_requestPayer :: (Maybe RequestPayer -> f (Maybe RequestPayer))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_requestPayer = (CreateMultipartUpload -> Maybe RequestPayer)
-> (CreateMultipartUpload
-> Maybe RequestPayer -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe RequestPayer)
(Maybe RequestPayer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe RequestPayer
requestPayer :: Maybe RequestPayer
$sel:requestPayer:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe RequestPayer
requestPayer} -> Maybe RequestPayer
requestPayer) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe RequestPayer
a -> CreateMultipartUpload
s {$sel:requestPayer:CreateMultipartUpload' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
a} :: CreateMultipartUpload)
createMultipartUpload_grantWriteACP :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_grantWriteACP :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_grantWriteACP = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
grantWriteACP :: Maybe Text
$sel:grantWriteACP:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
grantWriteACP} -> Maybe Text
grantWriteACP) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:grantWriteACP:CreateMultipartUpload' :: Maybe Text
grantWriteACP = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_bucketKeyEnabled :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Bool)
createMultipartUpload_bucketKeyEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_bucketKeyEnabled = (CreateMultipartUpload -> Maybe Bool)
-> (CreateMultipartUpload -> Maybe Bool -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Bool
bucketKeyEnabled :: Maybe Bool
$sel:bucketKeyEnabled:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Bool
bucketKeyEnabled} -> Maybe Bool
bucketKeyEnabled) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Bool
a -> CreateMultipartUpload
s {$sel:bucketKeyEnabled:CreateMultipartUpload' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
a} :: CreateMultipartUpload)
createMultipartUpload_websiteRedirectLocation :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_websiteRedirectLocation :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_websiteRedirectLocation = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
websiteRedirectLocation :: Maybe Text
$sel:websiteRedirectLocation:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
websiteRedirectLocation} -> Maybe Text
websiteRedirectLocation) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:websiteRedirectLocation:CreateMultipartUpload' :: Maybe Text
websiteRedirectLocation = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_grantRead :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_grantRead :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_grantRead = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
grantRead :: Maybe Text
$sel:grantRead:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
grantRead} -> Maybe Text
grantRead) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:grantRead:CreateMultipartUpload' :: Maybe Text
grantRead = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_storageClass :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe StorageClass)
createMultipartUpload_storageClass :: (Maybe StorageClass -> f (Maybe StorageClass))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_storageClass = (CreateMultipartUpload -> Maybe StorageClass)
-> (CreateMultipartUpload
-> Maybe StorageClass -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe StorageClass)
(Maybe StorageClass)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe StorageClass
storageClass :: Maybe StorageClass
$sel:storageClass:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe StorageClass
storageClass} -> Maybe StorageClass
storageClass) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe StorageClass
a -> CreateMultipartUpload
s {$sel:storageClass:CreateMultipartUpload' :: Maybe StorageClass
storageClass = Maybe StorageClass
a} :: CreateMultipartUpload)
createMultipartUpload_sSECustomerKeyMD5 :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_sSECustomerKeyMD5 :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_sSECustomerKeyMD5 = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
sSECustomerKeyMD5 :: Maybe Text
$sel:sSECustomerKeyMD5:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
sSECustomerKeyMD5} -> Maybe Text
sSECustomerKeyMD5) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:sSECustomerKeyMD5:CreateMultipartUpload' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_sSEKMSKeyId :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_sSEKMSKeyId :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_sSEKMSKeyId = (CreateMultipartUpload -> Maybe (Sensitive Text))
-> (CreateMultipartUpload
-> Maybe (Sensitive Text) -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe (Sensitive Text)
sSEKMSKeyId :: Maybe (Sensitive Text)
$sel:sSEKMSKeyId:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe (Sensitive Text)
sSEKMSKeyId} -> Maybe (Sensitive Text)
sSEKMSKeyId) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe (Sensitive Text)
a -> CreateMultipartUpload
s {$sel:sSEKMSKeyId:CreateMultipartUpload' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
a} :: CreateMultipartUpload) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateMultipartUpload -> f CreateMultipartUpload)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload
-> f CreateMultipartUpload
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
createMultipartUpload_grantFullControl :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_grantFullControl :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_grantFullControl = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
grantFullControl :: Maybe Text
$sel:grantFullControl:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
grantFullControl} -> Maybe Text
grantFullControl) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:grantFullControl:CreateMultipartUpload' :: Maybe Text
grantFullControl = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_contentEncoding :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_contentEncoding :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_contentEncoding = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
contentEncoding :: Maybe Text
$sel:contentEncoding:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
contentEncoding} -> Maybe Text
contentEncoding) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:contentEncoding:CreateMultipartUpload' :: Maybe Text
contentEncoding = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_tagging :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_tagging :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_tagging = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
tagging :: Maybe Text
$sel:tagging:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
tagging} -> Maybe Text
tagging) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:tagging:CreateMultipartUpload' :: Maybe Text
tagging = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_objectLockRetainUntilDate :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.UTCTime)
createMultipartUpload_objectLockRetainUntilDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_objectLockRetainUntilDate = (CreateMultipartUpload -> Maybe ISO8601)
-> (CreateMultipartUpload
-> Maybe ISO8601 -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe ISO8601)
(Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe ISO8601
objectLockRetainUntilDate :: Maybe ISO8601
$sel:objectLockRetainUntilDate:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ISO8601
objectLockRetainUntilDate} -> Maybe ISO8601
objectLockRetainUntilDate) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe ISO8601
a -> CreateMultipartUpload
s {$sel:objectLockRetainUntilDate:CreateMultipartUpload' :: Maybe ISO8601
objectLockRetainUntilDate = Maybe ISO8601
a} :: CreateMultipartUpload) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> CreateMultipartUpload -> f CreateMultipartUpload)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateMultipartUpload
-> f CreateMultipartUpload
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
createMultipartUpload_metadata :: Lens.Lens' CreateMultipartUpload (Prelude.HashMap Prelude.Text Prelude.Text)
createMultipartUpload_metadata :: (HashMap Text Text -> f (HashMap Text Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_metadata = (CreateMultipartUpload -> HashMap Text Text)
-> (CreateMultipartUpload
-> HashMap Text Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(HashMap Text Text)
(HashMap Text Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {HashMap Text Text
metadata :: HashMap Text Text
$sel:metadata:CreateMultipartUpload' :: CreateMultipartUpload -> HashMap Text Text
metadata} -> HashMap Text Text
metadata) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} HashMap Text Text
a -> CreateMultipartUpload
s {$sel:metadata:CreateMultipartUpload' :: HashMap Text Text
metadata = HashMap Text Text
a} :: CreateMultipartUpload) ((HashMap Text Text -> f (HashMap Text Text))
-> CreateMultipartUpload -> f CreateMultipartUpload)
-> ((HashMap Text Text -> f (HashMap Text Text))
-> HashMap Text Text -> f (HashMap Text Text))
-> (HashMap Text Text -> f (HashMap Text Text))
-> CreateMultipartUpload
-> f CreateMultipartUpload
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (HashMap Text Text -> f (HashMap Text Text))
-> HashMap Text Text -> f (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
createMultipartUpload_sSEKMSEncryptionContext :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_sSEKMSEncryptionContext :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_sSEKMSEncryptionContext = (CreateMultipartUpload -> Maybe (Sensitive Text))
-> (CreateMultipartUpload
-> Maybe (Sensitive Text) -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe (Sensitive Text)
sSEKMSEncryptionContext :: Maybe (Sensitive Text)
$sel:sSEKMSEncryptionContext:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe (Sensitive Text)
sSEKMSEncryptionContext} -> Maybe (Sensitive Text)
sSEKMSEncryptionContext) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe (Sensitive Text)
a -> CreateMultipartUpload
s {$sel:sSEKMSEncryptionContext:CreateMultipartUpload' :: Maybe (Sensitive Text)
sSEKMSEncryptionContext = Maybe (Sensitive Text)
a} :: CreateMultipartUpload) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateMultipartUpload -> f CreateMultipartUpload)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload
-> f CreateMultipartUpload
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
createMultipartUpload_cacheControl :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_cacheControl :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_cacheControl = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
cacheControl :: Maybe Text
$sel:cacheControl:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
cacheControl} -> Maybe Text
cacheControl) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:cacheControl:CreateMultipartUpload' :: Maybe Text
cacheControl = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_contentLanguage :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_contentLanguage :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_contentLanguage = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
contentLanguage :: Maybe Text
$sel:contentLanguage:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
contentLanguage} -> Maybe Text
contentLanguage) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:contentLanguage:CreateMultipartUpload' :: Maybe Text
contentLanguage = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_objectLockLegalHoldStatus :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe ObjectLockLegalHoldStatus)
createMultipartUpload_objectLockLegalHoldStatus :: (Maybe ObjectLockLegalHoldStatus
-> f (Maybe ObjectLockLegalHoldStatus))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_objectLockLegalHoldStatus = (CreateMultipartUpload -> Maybe ObjectLockLegalHoldStatus)
-> (CreateMultipartUpload
-> Maybe ObjectLockLegalHoldStatus -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe ObjectLockLegalHoldStatus)
(Maybe ObjectLockLegalHoldStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus :: Maybe ObjectLockLegalHoldStatus
$sel:objectLockLegalHoldStatus:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus} -> Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe ObjectLockLegalHoldStatus
a -> CreateMultipartUpload
s {$sel:objectLockLegalHoldStatus:CreateMultipartUpload' :: Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus = Maybe ObjectLockLegalHoldStatus
a} :: CreateMultipartUpload)
createMultipartUpload_acl :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe ObjectCannedACL)
createMultipartUpload_acl :: (Maybe ObjectCannedACL -> f (Maybe ObjectCannedACL))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_acl = (CreateMultipartUpload -> Maybe ObjectCannedACL)
-> (CreateMultipartUpload
-> Maybe ObjectCannedACL -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe ObjectCannedACL)
(Maybe ObjectCannedACL)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe ObjectCannedACL
acl :: Maybe ObjectCannedACL
$sel:acl:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ObjectCannedACL
acl} -> Maybe ObjectCannedACL
acl) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe ObjectCannedACL
a -> CreateMultipartUpload
s {$sel:acl:CreateMultipartUpload' :: Maybe ObjectCannedACL
acl = Maybe ObjectCannedACL
a} :: CreateMultipartUpload)
createMultipartUpload_contentDisposition :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_contentDisposition :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_contentDisposition = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
contentDisposition :: Maybe Text
$sel:contentDisposition:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
contentDisposition} -> Maybe Text
contentDisposition) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:contentDisposition:CreateMultipartUpload' :: Maybe Text
contentDisposition = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_expectedBucketOwner :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_expectedBucketOwner :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_expectedBucketOwner = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:expectedBucketOwner:CreateMultipartUpload' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_serverSideEncryption :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe ServerSideEncryption)
createMultipartUpload_serverSideEncryption :: (Maybe ServerSideEncryption -> f (Maybe ServerSideEncryption))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_serverSideEncryption = (CreateMultipartUpload -> Maybe ServerSideEncryption)
-> (CreateMultipartUpload
-> Maybe ServerSideEncryption -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe ServerSideEncryption)
(Maybe ServerSideEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe ServerSideEncryption
serverSideEncryption :: Maybe ServerSideEncryption
$sel:serverSideEncryption:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ServerSideEncryption
serverSideEncryption} -> Maybe ServerSideEncryption
serverSideEncryption) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe ServerSideEncryption
a -> CreateMultipartUpload
s {$sel:serverSideEncryption:CreateMultipartUpload' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
a} :: CreateMultipartUpload)
createMultipartUpload_contentType :: Lens.Lens' CreateMultipartUpload (Prelude.Maybe Prelude.Text)
createMultipartUpload_contentType :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_contentType = (CreateMultipartUpload -> Maybe Text)
-> (CreateMultipartUpload -> Maybe Text -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload
CreateMultipartUpload
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {Maybe Text
contentType :: Maybe Text
$sel:contentType:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
contentType} -> Maybe Text
contentType) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} Maybe Text
a -> CreateMultipartUpload
s {$sel:contentType:CreateMultipartUpload' :: Maybe Text
contentType = Maybe Text
a} :: CreateMultipartUpload)
createMultipartUpload_bucket :: Lens.Lens' CreateMultipartUpload BucketName
createMultipartUpload_bucket :: (BucketName -> f BucketName)
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_bucket = (CreateMultipartUpload -> BucketName)
-> (CreateMultipartUpload -> BucketName -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload CreateMultipartUpload BucketName BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {BucketName
bucket :: BucketName
$sel:bucket:CreateMultipartUpload' :: CreateMultipartUpload -> BucketName
bucket} -> BucketName
bucket) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} BucketName
a -> CreateMultipartUpload
s {$sel:bucket:CreateMultipartUpload' :: BucketName
bucket = BucketName
a} :: CreateMultipartUpload)
createMultipartUpload_key :: Lens.Lens' CreateMultipartUpload ObjectKey
createMultipartUpload_key :: (ObjectKey -> f ObjectKey)
-> CreateMultipartUpload -> f CreateMultipartUpload
createMultipartUpload_key = (CreateMultipartUpload -> ObjectKey)
-> (CreateMultipartUpload -> ObjectKey -> CreateMultipartUpload)
-> Lens
CreateMultipartUpload CreateMultipartUpload ObjectKey ObjectKey
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUpload' {ObjectKey
key :: ObjectKey
$sel:key:CreateMultipartUpload' :: CreateMultipartUpload -> ObjectKey
key} -> ObjectKey
key) (\s :: CreateMultipartUpload
s@CreateMultipartUpload' {} ObjectKey
a -> CreateMultipartUpload
s {$sel:key:CreateMultipartUpload' :: ObjectKey
key = ObjectKey
a} :: CreateMultipartUpload)
instance Core.AWSRequest CreateMultipartUpload where
type
AWSResponse CreateMultipartUpload =
CreateMultipartUploadResponse
request :: CreateMultipartUpload -> Request CreateMultipartUpload
request =
Request CreateMultipartUpload -> Request CreateMultipartUpload
forall a. Request a -> Request a
Request.s3vhost
(Request CreateMultipartUpload -> Request CreateMultipartUpload)
-> (CreateMultipartUpload -> Request CreateMultipartUpload)
-> CreateMultipartUpload
-> Request CreateMultipartUpload
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service -> CreateMultipartUpload -> Request CreateMultipartUpload
forall a. ToRequest a => Service -> a -> Request a
Request.post Service
defaultService
response :: Logger
-> Service
-> Proxy CreateMultipartUpload
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateMultipartUpload)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CreateMultipartUpload))
-> Logger
-> Service
-> Proxy CreateMultipartUpload
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateMultipartUpload)))
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 BucketName
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse
CreateMultipartUploadResponse'
(Maybe RequestCharged
-> Maybe BucketName
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe RequestCharged)
-> Either
String
(Maybe BucketName
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
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 BucketName
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe BucketName)
-> Either
String
(Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe BucketName)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Bucket")
Either
String
(Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ISO8601
-> Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
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 ISO8601
-> Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe ISO8601)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe ISO8601)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"x-amz-abort-date")
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
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-abort-rule-id")
Either
String
(Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( ResponseHeaders
h
ResponseHeaders -> HeaderName -> Either String (Maybe Bool)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"x-amz-server-side-encryption-bucket-key-enabled"
)
Either
String
(Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe ObjectKey)
-> Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ObjectKey)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Key")
Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
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 (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
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 (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String
(Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
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-context")
Either
String
(Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ServerSideEncryption
-> Int -> CreateMultipartUploadResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"UploadId")
Either
String
(Maybe ServerSideEncryption
-> Int -> CreateMultipartUploadResponse)
-> Either String (Maybe ServerSideEncryption)
-> Either String (Int -> CreateMultipartUploadResponse)
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 -> CreateMultipartUploadResponse)
-> Either String Int -> Either String CreateMultipartUploadResponse
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 CreateMultipartUpload
instance Prelude.NFData CreateMultipartUpload
instance Core.ToHeaders CreateMultipartUpload where
toHeaders :: CreateMultipartUpload -> ResponseHeaders
toHeaders CreateMultipartUpload' {Maybe Bool
Maybe Text
Maybe (Sensitive Text)
Maybe ISO8601
Maybe ObjectCannedACL
Maybe ObjectLockLegalHoldStatus
Maybe ObjectLockMode
Maybe RequestPayer
Maybe ServerSideEncryption
Maybe StorageClass
HashMap Text Text
ObjectKey
BucketName
key :: ObjectKey
bucket :: BucketName
contentType :: Maybe Text
serverSideEncryption :: Maybe ServerSideEncryption
expectedBucketOwner :: Maybe Text
contentDisposition :: Maybe Text
acl :: Maybe ObjectCannedACL
objectLockLegalHoldStatus :: Maybe ObjectLockLegalHoldStatus
contentLanguage :: Maybe Text
cacheControl :: Maybe Text
sSEKMSEncryptionContext :: Maybe (Sensitive Text)
metadata :: HashMap Text Text
objectLockRetainUntilDate :: Maybe ISO8601
tagging :: Maybe Text
contentEncoding :: Maybe Text
grantFullControl :: Maybe Text
sSEKMSKeyId :: Maybe (Sensitive Text)
sSECustomerKeyMD5 :: Maybe Text
storageClass :: Maybe StorageClass
grantRead :: Maybe Text
websiteRedirectLocation :: Maybe Text
bucketKeyEnabled :: Maybe Bool
grantWriteACP :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
grantReadACP :: Maybe Text
expires :: Maybe ISO8601
objectLockMode :: Maybe ObjectLockMode
$sel:key:CreateMultipartUpload' :: CreateMultipartUpload -> ObjectKey
$sel:bucket:CreateMultipartUpload' :: CreateMultipartUpload -> BucketName
$sel:contentType:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:serverSideEncryption:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ServerSideEncryption
$sel:expectedBucketOwner:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:contentDisposition:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:acl:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ObjectCannedACL
$sel:objectLockLegalHoldStatus:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ObjectLockLegalHoldStatus
$sel:contentLanguage:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:cacheControl:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:sSEKMSEncryptionContext:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe (Sensitive Text)
$sel:metadata:CreateMultipartUpload' :: CreateMultipartUpload -> HashMap Text Text
$sel:objectLockRetainUntilDate:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ISO8601
$sel:tagging:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:contentEncoding:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:grantFullControl:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:sSEKMSKeyId:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe (Sensitive Text)
$sel:sSECustomerKeyMD5:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:storageClass:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe StorageClass
$sel:grantRead:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:websiteRedirectLocation:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:bucketKeyEnabled:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Bool
$sel:grantWriteACP:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:requestPayer:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe RequestPayer
$sel:sSECustomerKey:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:grantReadACP:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:expires:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ISO8601
$sel:objectLockMode:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ObjectLockMode
..} =
[ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"x-amz-object-lock-mode" HeaderName -> Maybe ObjectLockMode -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe ObjectLockMode
objectLockMode,
HeaderName
"Expires" HeaderName -> Maybe ISO8601 -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe ISO8601
expires,
HeaderName
"x-amz-grant-read-acp" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
grantReadACP,
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-grant-write-acp" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
grantWriteACP,
HeaderName
"x-amz-server-side-encryption-bucket-key-enabled"
HeaderName -> Maybe Bool -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Bool
bucketKeyEnabled,
HeaderName
"x-amz-website-redirect-location"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
websiteRedirectLocation,
HeaderName
"x-amz-grant-read" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
grantRead,
HeaderName
"x-amz-storage-class" HeaderName -> Maybe StorageClass -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe StorageClass
storageClass,
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-server-side-encryption-aws-kms-key-id"
HeaderName -> Maybe (Sensitive Text) -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe (Sensitive Text)
sSEKMSKeyId,
HeaderName
"x-amz-grant-full-control" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
grantFullControl,
HeaderName
"Content-Encoding" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
contentEncoding,
HeaderName
"x-amz-tagging" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
tagging,
HeaderName
"x-amz-object-lock-retain-until-date"
HeaderName -> Maybe ISO8601 -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe ISO8601
objectLockRetainUntilDate,
HeaderName
"x-amz-meta-" HeaderName -> HashMap Text Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# HashMap Text Text
metadata,
HeaderName
"x-amz-server-side-encryption-context"
HeaderName -> Maybe (Sensitive Text) -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe (Sensitive Text)
sSEKMSEncryptionContext,
HeaderName
"Cache-Control" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
cacheControl,
HeaderName
"Content-Language" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
contentLanguage,
HeaderName
"x-amz-object-lock-legal-hold"
HeaderName -> Maybe ObjectLockLegalHoldStatus -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus,
HeaderName
"x-amz-acl" HeaderName -> Maybe ObjectCannedACL -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe ObjectCannedACL
acl,
HeaderName
"Content-Disposition" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
contentDisposition,
HeaderName
"x-amz-expected-bucket-owner"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
expectedBucketOwner,
HeaderName
"x-amz-server-side-encryption"
HeaderName -> Maybe ServerSideEncryption -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe ServerSideEncryption
serverSideEncryption,
HeaderName
"Content-Type" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
contentType
]
instance Core.ToPath CreateMultipartUpload where
toPath :: CreateMultipartUpload -> ByteString
toPath CreateMultipartUpload' {Maybe Bool
Maybe Text
Maybe (Sensitive Text)
Maybe ISO8601
Maybe ObjectCannedACL
Maybe ObjectLockLegalHoldStatus
Maybe ObjectLockMode
Maybe RequestPayer
Maybe ServerSideEncryption
Maybe StorageClass
HashMap Text Text
ObjectKey
BucketName
key :: ObjectKey
bucket :: BucketName
contentType :: Maybe Text
serverSideEncryption :: Maybe ServerSideEncryption
expectedBucketOwner :: Maybe Text
contentDisposition :: Maybe Text
acl :: Maybe ObjectCannedACL
objectLockLegalHoldStatus :: Maybe ObjectLockLegalHoldStatus
contentLanguage :: Maybe Text
cacheControl :: Maybe Text
sSEKMSEncryptionContext :: Maybe (Sensitive Text)
metadata :: HashMap Text Text
objectLockRetainUntilDate :: Maybe ISO8601
tagging :: Maybe Text
contentEncoding :: Maybe Text
grantFullControl :: Maybe Text
sSEKMSKeyId :: Maybe (Sensitive Text)
sSECustomerKeyMD5 :: Maybe Text
storageClass :: Maybe StorageClass
grantRead :: Maybe Text
websiteRedirectLocation :: Maybe Text
bucketKeyEnabled :: Maybe Bool
grantWriteACP :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
grantReadACP :: Maybe Text
expires :: Maybe ISO8601
objectLockMode :: Maybe ObjectLockMode
$sel:key:CreateMultipartUpload' :: CreateMultipartUpload -> ObjectKey
$sel:bucket:CreateMultipartUpload' :: CreateMultipartUpload -> BucketName
$sel:contentType:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:serverSideEncryption:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ServerSideEncryption
$sel:expectedBucketOwner:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:contentDisposition:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:acl:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ObjectCannedACL
$sel:objectLockLegalHoldStatus:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ObjectLockLegalHoldStatus
$sel:contentLanguage:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:cacheControl:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:sSEKMSEncryptionContext:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe (Sensitive Text)
$sel:metadata:CreateMultipartUpload' :: CreateMultipartUpload -> HashMap Text Text
$sel:objectLockRetainUntilDate:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ISO8601
$sel:tagging:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:contentEncoding:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:grantFullControl:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:sSEKMSKeyId:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe (Sensitive Text)
$sel:sSECustomerKeyMD5:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:storageClass:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe StorageClass
$sel:grantRead:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:websiteRedirectLocation:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:bucketKeyEnabled:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Bool
$sel:grantWriteACP:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:requestPayer:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe RequestPayer
$sel:sSECustomerKey:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:grantReadACP:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe Text
$sel:expires:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ISO8601
$sel:objectLockMode:CreateMultipartUpload' :: CreateMultipartUpload -> Maybe ObjectLockMode
..} =
[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 CreateMultipartUpload where
toQuery :: CreateMultipartUpload -> QueryString
toQuery = QueryString -> CreateMultipartUpload -> QueryString
forall a b. a -> b -> a
Prelude.const ([QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat [QueryString
"uploads"])
data CreateMultipartUploadResponse = CreateMultipartUploadResponse'
{ CreateMultipartUploadResponse -> Maybe RequestCharged
requestCharged :: Prelude.Maybe RequestCharged,
CreateMultipartUploadResponse -> Maybe BucketName
bucket :: Prelude.Maybe BucketName,
CreateMultipartUploadResponse -> Maybe Text
sSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
CreateMultipartUploadResponse -> Maybe ISO8601
abortDate :: Prelude.Maybe Core.ISO8601,
CreateMultipartUploadResponse -> Maybe Text
abortRuleId :: Prelude.Maybe Prelude.Text,
CreateMultipartUploadResponse -> Maybe Bool
bucketKeyEnabled :: Prelude.Maybe Prelude.Bool,
CreateMultipartUploadResponse -> Maybe ObjectKey
key :: Prelude.Maybe ObjectKey,
CreateMultipartUploadResponse -> Maybe Text
sSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
CreateMultipartUploadResponse -> Maybe (Sensitive Text)
sSEKMSKeyId :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CreateMultipartUploadResponse -> Maybe (Sensitive Text)
sSEKMSEncryptionContext :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CreateMultipartUploadResponse -> Maybe Text
uploadId :: Prelude.Maybe Prelude.Text,
CreateMultipartUploadResponse -> Maybe ServerSideEncryption
serverSideEncryption :: Prelude.Maybe ServerSideEncryption,
CreateMultipartUploadResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CreateMultipartUploadResponse
-> CreateMultipartUploadResponse -> Bool
(CreateMultipartUploadResponse
-> CreateMultipartUploadResponse -> Bool)
-> (CreateMultipartUploadResponse
-> CreateMultipartUploadResponse -> Bool)
-> Eq CreateMultipartUploadResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateMultipartUploadResponse
-> CreateMultipartUploadResponse -> Bool
$c/= :: CreateMultipartUploadResponse
-> CreateMultipartUploadResponse -> Bool
== :: CreateMultipartUploadResponse
-> CreateMultipartUploadResponse -> Bool
$c== :: CreateMultipartUploadResponse
-> CreateMultipartUploadResponse -> Bool
Prelude.Eq, Int -> CreateMultipartUploadResponse -> ShowS
[CreateMultipartUploadResponse] -> ShowS
CreateMultipartUploadResponse -> String
(Int -> CreateMultipartUploadResponse -> ShowS)
-> (CreateMultipartUploadResponse -> String)
-> ([CreateMultipartUploadResponse] -> ShowS)
-> Show CreateMultipartUploadResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateMultipartUploadResponse] -> ShowS
$cshowList :: [CreateMultipartUploadResponse] -> ShowS
show :: CreateMultipartUploadResponse -> String
$cshow :: CreateMultipartUploadResponse -> String
showsPrec :: Int -> CreateMultipartUploadResponse -> ShowS
$cshowsPrec :: Int -> CreateMultipartUploadResponse -> ShowS
Prelude.Show, (forall x.
CreateMultipartUploadResponse
-> Rep CreateMultipartUploadResponse x)
-> (forall x.
Rep CreateMultipartUploadResponse x
-> CreateMultipartUploadResponse)
-> Generic CreateMultipartUploadResponse
forall x.
Rep CreateMultipartUploadResponse x
-> CreateMultipartUploadResponse
forall x.
CreateMultipartUploadResponse
-> Rep CreateMultipartUploadResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateMultipartUploadResponse x
-> CreateMultipartUploadResponse
$cfrom :: forall x.
CreateMultipartUploadResponse
-> Rep CreateMultipartUploadResponse x
Prelude.Generic)
newCreateMultipartUploadResponse ::
Prelude.Int ->
CreateMultipartUploadResponse
newCreateMultipartUploadResponse :: Int -> CreateMultipartUploadResponse
newCreateMultipartUploadResponse Int
pHttpStatus_ =
CreateMultipartUploadResponse' :: Maybe RequestCharged
-> Maybe BucketName
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe Bool
-> Maybe ObjectKey
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe ServerSideEncryption
-> Int
-> CreateMultipartUploadResponse
CreateMultipartUploadResponse'
{ $sel:requestCharged:CreateMultipartUploadResponse' :: Maybe RequestCharged
requestCharged =
Maybe RequestCharged
forall a. Maybe a
Prelude.Nothing,
$sel:bucket:CreateMultipartUploadResponse' :: Maybe BucketName
bucket = Maybe BucketName
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerAlgorithm:CreateMultipartUploadResponse' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:abortDate:CreateMultipartUploadResponse' :: Maybe ISO8601
abortDate = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:abortRuleId:CreateMultipartUploadResponse' :: Maybe Text
abortRuleId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucketKeyEnabled:CreateMultipartUploadResponse' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:key:CreateMultipartUploadResponse' :: Maybe ObjectKey
key = Maybe ObjectKey
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKeyMD5:CreateMultipartUploadResponse' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSEKMSKeyId:CreateMultipartUploadResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:sSEKMSEncryptionContext:CreateMultipartUploadResponse' :: Maybe (Sensitive Text)
sSEKMSEncryptionContext = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:uploadId:CreateMultipartUploadResponse' :: Maybe Text
uploadId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:serverSideEncryption:CreateMultipartUploadResponse' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateMultipartUploadResponse' :: Int
httpStatus = Int
pHttpStatus_
}
createMultipartUploadResponse_requestCharged :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe RequestCharged)
createMultipartUploadResponse_requestCharged :: (Maybe RequestCharged -> f (Maybe RequestCharged))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_requestCharged = (CreateMultipartUploadResponse -> Maybe RequestCharged)
-> (CreateMultipartUploadResponse
-> Maybe RequestCharged -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe RequestCharged)
(Maybe RequestCharged)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe RequestCharged
requestCharged :: Maybe RequestCharged
$sel:requestCharged:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe RequestCharged
requestCharged} -> Maybe RequestCharged
requestCharged) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe RequestCharged
a -> CreateMultipartUploadResponse
s {$sel:requestCharged:CreateMultipartUploadResponse' :: Maybe RequestCharged
requestCharged = Maybe RequestCharged
a} :: CreateMultipartUploadResponse)
createMultipartUploadResponse_bucket :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe BucketName)
createMultipartUploadResponse_bucket :: (Maybe BucketName -> f (Maybe BucketName))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_bucket = (CreateMultipartUploadResponse -> Maybe BucketName)
-> (CreateMultipartUploadResponse
-> Maybe BucketName -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe BucketName)
(Maybe BucketName)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe BucketName
bucket :: Maybe BucketName
$sel:bucket:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe BucketName
bucket} -> Maybe BucketName
bucket) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe BucketName
a -> CreateMultipartUploadResponse
s {$sel:bucket:CreateMultipartUploadResponse' :: Maybe BucketName
bucket = Maybe BucketName
a} :: CreateMultipartUploadResponse)
createMultipartUploadResponse_sSECustomerAlgorithm :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe Prelude.Text)
createMultipartUploadResponse_sSECustomerAlgorithm :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_sSECustomerAlgorithm = (CreateMultipartUploadResponse -> Maybe Text)
-> (CreateMultipartUploadResponse
-> Maybe Text -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe Text
sSECustomerAlgorithm :: Maybe Text
$sel:sSECustomerAlgorithm:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe Text
sSECustomerAlgorithm} -> Maybe Text
sSECustomerAlgorithm) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe Text
a -> CreateMultipartUploadResponse
s {$sel:sSECustomerAlgorithm:CreateMultipartUploadResponse' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
a} :: CreateMultipartUploadResponse)
createMultipartUploadResponse_abortDate :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe Prelude.UTCTime)
createMultipartUploadResponse_abortDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_abortDate = (CreateMultipartUploadResponse -> Maybe ISO8601)
-> (CreateMultipartUploadResponse
-> Maybe ISO8601 -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe ISO8601)
(Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe ISO8601
abortDate :: Maybe ISO8601
$sel:abortDate:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe ISO8601
abortDate} -> Maybe ISO8601
abortDate) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe ISO8601
a -> CreateMultipartUploadResponse
s {$sel:abortDate:CreateMultipartUploadResponse' :: Maybe ISO8601
abortDate = Maybe ISO8601
a} :: CreateMultipartUploadResponse) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> CreateMultipartUploadResponse
-> f CreateMultipartUploadResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateMultipartUploadResponse
-> f CreateMultipartUploadResponse
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
createMultipartUploadResponse_abortRuleId :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe Prelude.Text)
createMultipartUploadResponse_abortRuleId :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_abortRuleId = (CreateMultipartUploadResponse -> Maybe Text)
-> (CreateMultipartUploadResponse
-> Maybe Text -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe Text
abortRuleId :: Maybe Text
$sel:abortRuleId:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe Text
abortRuleId} -> Maybe Text
abortRuleId) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe Text
a -> CreateMultipartUploadResponse
s {$sel:abortRuleId:CreateMultipartUploadResponse' :: Maybe Text
abortRuleId = Maybe Text
a} :: CreateMultipartUploadResponse)
createMultipartUploadResponse_bucketKeyEnabled :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe Prelude.Bool)
createMultipartUploadResponse_bucketKeyEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_bucketKeyEnabled = (CreateMultipartUploadResponse -> Maybe Bool)
-> (CreateMultipartUploadResponse
-> Maybe Bool -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe Bool
bucketKeyEnabled :: Maybe Bool
$sel:bucketKeyEnabled:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe Bool
bucketKeyEnabled} -> Maybe Bool
bucketKeyEnabled) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe Bool
a -> CreateMultipartUploadResponse
s {$sel:bucketKeyEnabled:CreateMultipartUploadResponse' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
a} :: CreateMultipartUploadResponse)
createMultipartUploadResponse_key :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe ObjectKey)
createMultipartUploadResponse_key :: (Maybe ObjectKey -> f (Maybe ObjectKey))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_key = (CreateMultipartUploadResponse -> Maybe ObjectKey)
-> (CreateMultipartUploadResponse
-> Maybe ObjectKey -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe ObjectKey)
(Maybe ObjectKey)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe ObjectKey
key :: Maybe ObjectKey
$sel:key:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe ObjectKey
key} -> Maybe ObjectKey
key) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe ObjectKey
a -> CreateMultipartUploadResponse
s {$sel:key:CreateMultipartUploadResponse' :: Maybe ObjectKey
key = Maybe ObjectKey
a} :: CreateMultipartUploadResponse)
createMultipartUploadResponse_sSECustomerKeyMD5 :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe Prelude.Text)
createMultipartUploadResponse_sSECustomerKeyMD5 :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_sSECustomerKeyMD5 = (CreateMultipartUploadResponse -> Maybe Text)
-> (CreateMultipartUploadResponse
-> Maybe Text -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe Text
sSECustomerKeyMD5 :: Maybe Text
$sel:sSECustomerKeyMD5:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe Text
sSECustomerKeyMD5} -> Maybe Text
sSECustomerKeyMD5) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe Text
a -> CreateMultipartUploadResponse
s {$sel:sSECustomerKeyMD5:CreateMultipartUploadResponse' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
a} :: CreateMultipartUploadResponse)
createMultipartUploadResponse_sSEKMSKeyId :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe Prelude.Text)
createMultipartUploadResponse_sSEKMSKeyId :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_sSEKMSKeyId = (CreateMultipartUploadResponse -> Maybe (Sensitive Text))
-> (CreateMultipartUploadResponse
-> Maybe (Sensitive Text) -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe (Sensitive Text)
sSEKMSKeyId :: Maybe (Sensitive Text)
$sel:sSEKMSKeyId:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe (Sensitive Text)
sSEKMSKeyId} -> Maybe (Sensitive Text)
sSEKMSKeyId) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe (Sensitive Text)
a -> CreateMultipartUploadResponse
s {$sel:sSEKMSKeyId:CreateMultipartUploadResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
a} :: CreateMultipartUploadResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateMultipartUploadResponse
-> f CreateMultipartUploadResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateMultipartUploadResponse
-> f CreateMultipartUploadResponse
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
createMultipartUploadResponse_sSEKMSEncryptionContext :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe Prelude.Text)
createMultipartUploadResponse_sSEKMSEncryptionContext :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_sSEKMSEncryptionContext = (CreateMultipartUploadResponse -> Maybe (Sensitive Text))
-> (CreateMultipartUploadResponse
-> Maybe (Sensitive Text) -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe (Sensitive Text)
sSEKMSEncryptionContext :: Maybe (Sensitive Text)
$sel:sSEKMSEncryptionContext:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe (Sensitive Text)
sSEKMSEncryptionContext} -> Maybe (Sensitive Text)
sSEKMSEncryptionContext) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe (Sensitive Text)
a -> CreateMultipartUploadResponse
s {$sel:sSEKMSEncryptionContext:CreateMultipartUploadResponse' :: Maybe (Sensitive Text)
sSEKMSEncryptionContext = Maybe (Sensitive Text)
a} :: CreateMultipartUploadResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateMultipartUploadResponse
-> f CreateMultipartUploadResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateMultipartUploadResponse
-> f CreateMultipartUploadResponse
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
createMultipartUploadResponse_uploadId :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe Prelude.Text)
createMultipartUploadResponse_uploadId :: (Maybe Text -> f (Maybe Text))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_uploadId = (CreateMultipartUploadResponse -> Maybe Text)
-> (CreateMultipartUploadResponse
-> Maybe Text -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe Text
uploadId :: Maybe Text
$sel:uploadId:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe Text
uploadId} -> Maybe Text
uploadId) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe Text
a -> CreateMultipartUploadResponse
s {$sel:uploadId:CreateMultipartUploadResponse' :: Maybe Text
uploadId = Maybe Text
a} :: CreateMultipartUploadResponse)
createMultipartUploadResponse_serverSideEncryption :: Lens.Lens' CreateMultipartUploadResponse (Prelude.Maybe ServerSideEncryption)
createMultipartUploadResponse_serverSideEncryption :: (Maybe ServerSideEncryption -> f (Maybe ServerSideEncryption))
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_serverSideEncryption = (CreateMultipartUploadResponse -> Maybe ServerSideEncryption)
-> (CreateMultipartUploadResponse
-> Maybe ServerSideEncryption -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse
CreateMultipartUploadResponse
(Maybe ServerSideEncryption)
(Maybe ServerSideEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Maybe ServerSideEncryption
serverSideEncryption :: Maybe ServerSideEncryption
$sel:serverSideEncryption:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Maybe ServerSideEncryption
serverSideEncryption} -> Maybe ServerSideEncryption
serverSideEncryption) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Maybe ServerSideEncryption
a -> CreateMultipartUploadResponse
s {$sel:serverSideEncryption:CreateMultipartUploadResponse' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
a} :: CreateMultipartUploadResponse)
createMultipartUploadResponse_httpStatus :: Lens.Lens' CreateMultipartUploadResponse Prelude.Int
createMultipartUploadResponse_httpStatus :: (Int -> f Int)
-> CreateMultipartUploadResponse -> f CreateMultipartUploadResponse
createMultipartUploadResponse_httpStatus = (CreateMultipartUploadResponse -> Int)
-> (CreateMultipartUploadResponse
-> Int -> CreateMultipartUploadResponse)
-> Lens
CreateMultipartUploadResponse CreateMultipartUploadResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateMultipartUploadResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateMultipartUploadResponse' :: CreateMultipartUploadResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateMultipartUploadResponse
s@CreateMultipartUploadResponse' {} Int
a -> CreateMultipartUploadResponse
s {$sel:httpStatus:CreateMultipartUploadResponse' :: Int
httpStatus = Int
a} :: CreateMultipartUploadResponse)
instance Prelude.NFData CreateMultipartUploadResponse