{-# 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.CopyObject
(
CopyObject (..),
newCopyObject,
copyObject_copySourceIfModifiedSince,
copyObject_copySourceIfUnmodifiedSince,
copyObject_copySourceSSECustomerKeyMD5,
copyObject_taggingDirective,
copyObject_metadataDirective,
copyObject_objectLockMode,
copyObject_expires,
copyObject_grantReadACP,
copyObject_copySourceIfNoneMatch,
copyObject_sSECustomerAlgorithm,
copyObject_sSECustomerKey,
copyObject_requestPayer,
copyObject_grantWriteACP,
copyObject_copySourceIfMatch,
copyObject_bucketKeyEnabled,
copyObject_websiteRedirectLocation,
copyObject_grantRead,
copyObject_expectedSourceBucketOwner,
copyObject_storageClass,
copyObject_sSECustomerKeyMD5,
copyObject_sSEKMSKeyId,
copyObject_grantFullControl,
copyObject_contentEncoding,
copyObject_tagging,
copyObject_objectLockRetainUntilDate,
copyObject_metadata,
copyObject_sSEKMSEncryptionContext,
copyObject_cacheControl,
copyObject_contentLanguage,
copyObject_copySourceSSECustomerKey,
copyObject_objectLockLegalHoldStatus,
copyObject_copySourceSSECustomerAlgorithm,
copyObject_acl,
copyObject_contentDisposition,
copyObject_expectedBucketOwner,
copyObject_serverSideEncryption,
copyObject_contentType,
copyObject_bucket,
copyObject_copySource,
copyObject_key,
CopyObjectResponse (..),
newCopyObjectResponse,
copyObjectResponse_requestCharged,
copyObjectResponse_versionId,
copyObjectResponse_expiration,
copyObjectResponse_sSECustomerAlgorithm,
copyObjectResponse_bucketKeyEnabled,
copyObjectResponse_copySourceVersionId,
copyObjectResponse_sSECustomerKeyMD5,
copyObjectResponse_sSEKMSKeyId,
copyObjectResponse_sSEKMSEncryptionContext,
copyObjectResponse_serverSideEncryption,
copyObjectResponse_copyObjectResult,
copyObjectResponse_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 CopyObject = CopyObject'
{
CopyObject -> Maybe ISO8601
copySourceIfModifiedSince :: Prelude.Maybe Core.ISO8601,
CopyObject -> Maybe ISO8601
copySourceIfUnmodifiedSince :: Prelude.Maybe Core.ISO8601,
CopyObject -> Maybe Text
copySourceSSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe TaggingDirective
taggingDirective :: Prelude.Maybe TaggingDirective,
CopyObject -> Maybe MetadataDirective
metadataDirective :: Prelude.Maybe MetadataDirective,
CopyObject -> Maybe ObjectLockMode
objectLockMode :: Prelude.Maybe ObjectLockMode,
CopyObject -> Maybe ISO8601
expires :: Prelude.Maybe Core.ISO8601,
CopyObject -> Maybe Text
grantReadACP :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe Text
copySourceIfNoneMatch :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe Text
sSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe (Sensitive Text)
sSECustomerKey :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CopyObject -> Maybe RequestPayer
requestPayer :: Prelude.Maybe RequestPayer,
CopyObject -> Maybe Text
grantWriteACP :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe Text
copySourceIfMatch :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe Bool
bucketKeyEnabled :: Prelude.Maybe Prelude.Bool,
CopyObject -> Maybe Text
websiteRedirectLocation :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe Text
grantRead :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe Text
expectedSourceBucketOwner :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe StorageClass
storageClass :: Prelude.Maybe StorageClass,
CopyObject -> Maybe Text
sSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe (Sensitive Text)
sSEKMSKeyId :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CopyObject -> Maybe Text
grantFullControl :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe Text
contentEncoding :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe Text
tagging :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe ISO8601
objectLockRetainUntilDate :: Prelude.Maybe Core.ISO8601,
CopyObject -> HashMap Text Text
metadata :: Prelude.HashMap Prelude.Text Prelude.Text,
CopyObject -> Maybe (Sensitive Text)
sSEKMSEncryptionContext :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CopyObject -> Maybe Text
cacheControl :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe Text
contentLanguage :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe (Sensitive Text)
copySourceSSECustomerKey :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CopyObject -> Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus :: Prelude.Maybe ObjectLockLegalHoldStatus,
CopyObject -> Maybe Text
copySourceSSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe ObjectCannedACL
acl :: Prelude.Maybe ObjectCannedACL,
CopyObject -> Maybe Text
contentDisposition :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe Text
expectedBucketOwner :: Prelude.Maybe Prelude.Text,
CopyObject -> Maybe ServerSideEncryption
serverSideEncryption :: Prelude.Maybe ServerSideEncryption,
CopyObject -> Maybe Text
contentType :: Prelude.Maybe Prelude.Text,
CopyObject -> BucketName
bucket :: BucketName,
CopyObject -> Text
copySource :: Prelude.Text,
CopyObject -> ObjectKey
key :: ObjectKey
}
deriving (CopyObject -> CopyObject -> Bool
(CopyObject -> CopyObject -> Bool)
-> (CopyObject -> CopyObject -> Bool) -> Eq CopyObject
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CopyObject -> CopyObject -> Bool
$c/= :: CopyObject -> CopyObject -> Bool
== :: CopyObject -> CopyObject -> Bool
$c== :: CopyObject -> CopyObject -> Bool
Prelude.Eq, Int -> CopyObject -> ShowS
[CopyObject] -> ShowS
CopyObject -> String
(Int -> CopyObject -> ShowS)
-> (CopyObject -> String)
-> ([CopyObject] -> ShowS)
-> Show CopyObject
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CopyObject] -> ShowS
$cshowList :: [CopyObject] -> ShowS
show :: CopyObject -> String
$cshow :: CopyObject -> String
showsPrec :: Int -> CopyObject -> ShowS
$cshowsPrec :: Int -> CopyObject -> ShowS
Prelude.Show, (forall x. CopyObject -> Rep CopyObject x)
-> (forall x. Rep CopyObject x -> CopyObject) -> Generic CopyObject
forall x. Rep CopyObject x -> CopyObject
forall x. CopyObject -> Rep CopyObject x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CopyObject x -> CopyObject
$cfrom :: forall x. CopyObject -> Rep CopyObject x
Prelude.Generic)
newCopyObject ::
BucketName ->
Prelude.Text ->
ObjectKey ->
CopyObject
newCopyObject :: BucketName -> Text -> ObjectKey -> CopyObject
newCopyObject BucketName
pBucket_ Text
pCopySource_ ObjectKey
pKey_ =
CopyObject' :: Maybe ISO8601
-> Maybe ISO8601
-> Maybe Text
-> Maybe TaggingDirective
-> Maybe MetadataDirective
-> Maybe ObjectLockMode
-> Maybe ISO8601
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe RequestPayer
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> 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 (Sensitive Text)
-> Maybe ObjectLockLegalHoldStatus
-> Maybe Text
-> Maybe ObjectCannedACL
-> Maybe Text
-> Maybe Text
-> Maybe ServerSideEncryption
-> Maybe Text
-> BucketName
-> Text
-> ObjectKey
-> CopyObject
CopyObject'
{ $sel:copySourceIfModifiedSince:CopyObject' :: Maybe ISO8601
copySourceIfModifiedSince =
Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceIfUnmodifiedSince:CopyObject' :: Maybe ISO8601
copySourceIfUnmodifiedSince = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceSSECustomerKeyMD5:CopyObject' :: Maybe Text
copySourceSSECustomerKeyMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:taggingDirective:CopyObject' :: Maybe TaggingDirective
taggingDirective = Maybe TaggingDirective
forall a. Maybe a
Prelude.Nothing,
$sel:metadataDirective:CopyObject' :: Maybe MetadataDirective
metadataDirective = Maybe MetadataDirective
forall a. Maybe a
Prelude.Nothing,
$sel:objectLockMode:CopyObject' :: Maybe ObjectLockMode
objectLockMode = Maybe ObjectLockMode
forall a. Maybe a
Prelude.Nothing,
$sel:expires:CopyObject' :: Maybe ISO8601
expires = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:grantReadACP:CopyObject' :: Maybe Text
grantReadACP = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceIfNoneMatch:CopyObject' :: Maybe Text
copySourceIfNoneMatch = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerAlgorithm:CopyObject' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKey:CopyObject' :: Maybe (Sensitive Text)
sSECustomerKey = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:requestPayer:CopyObject' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
forall a. Maybe a
Prelude.Nothing,
$sel:grantWriteACP:CopyObject' :: Maybe Text
grantWriteACP = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceIfMatch:CopyObject' :: Maybe Text
copySourceIfMatch = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucketKeyEnabled:CopyObject' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:websiteRedirectLocation:CopyObject' :: Maybe Text
websiteRedirectLocation = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:grantRead:CopyObject' :: Maybe Text
grantRead = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expectedSourceBucketOwner:CopyObject' :: Maybe Text
expectedSourceBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:storageClass:CopyObject' :: Maybe StorageClass
storageClass = Maybe StorageClass
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKeyMD5:CopyObject' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSEKMSKeyId:CopyObject' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:grantFullControl:CopyObject' :: Maybe Text
grantFullControl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:contentEncoding:CopyObject' :: Maybe Text
contentEncoding = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:tagging:CopyObject' :: Maybe Text
tagging = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:objectLockRetainUntilDate:CopyObject' :: Maybe ISO8601
objectLockRetainUntilDate = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
$sel:metadata:CopyObject' :: HashMap Text Text
metadata = HashMap Text Text
forall a. Monoid a => a
Prelude.mempty,
$sel:sSEKMSEncryptionContext:CopyObject' :: Maybe (Sensitive Text)
sSEKMSEncryptionContext = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:cacheControl:CopyObject' :: Maybe Text
cacheControl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:contentLanguage:CopyObject' :: Maybe Text
contentLanguage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceSSECustomerKey:CopyObject' :: Maybe (Sensitive Text)
copySourceSSECustomerKey = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:objectLockLegalHoldStatus:CopyObject' :: Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus = Maybe ObjectLockLegalHoldStatus
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceSSECustomerAlgorithm:CopyObject' :: Maybe Text
copySourceSSECustomerAlgorithm = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:acl:CopyObject' :: Maybe ObjectCannedACL
acl = Maybe ObjectCannedACL
forall a. Maybe a
Prelude.Nothing,
$sel:contentDisposition:CopyObject' :: Maybe Text
contentDisposition = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expectedBucketOwner:CopyObject' :: Maybe Text
expectedBucketOwner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:serverSideEncryption:CopyObject' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
forall a. Maybe a
Prelude.Nothing,
$sel:contentType:CopyObject' :: Maybe Text
contentType = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucket:CopyObject' :: BucketName
bucket = BucketName
pBucket_,
$sel:copySource:CopyObject' :: Text
copySource = Text
pCopySource_,
$sel:key:CopyObject' :: ObjectKey
key = ObjectKey
pKey_
}
copyObject_copySourceIfModifiedSince :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.UTCTime)
copyObject_copySourceIfModifiedSince :: (Maybe UTCTime -> f (Maybe UTCTime)) -> CopyObject -> f CopyObject
copyObject_copySourceIfModifiedSince = (CopyObject -> Maybe ISO8601)
-> (CopyObject -> Maybe ISO8601 -> CopyObject)
-> Lens CopyObject CopyObject (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe ISO8601
copySourceIfModifiedSince :: Maybe ISO8601
$sel:copySourceIfModifiedSince:CopyObject' :: CopyObject -> Maybe ISO8601
copySourceIfModifiedSince} -> Maybe ISO8601
copySourceIfModifiedSince) (\s :: CopyObject
s@CopyObject' {} Maybe ISO8601
a -> CopyObject
s {$sel:copySourceIfModifiedSince:CopyObject' :: Maybe ISO8601
copySourceIfModifiedSince = Maybe ISO8601
a} :: CopyObject) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> CopyObject -> f CopyObject)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CopyObject
-> f CopyObject
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
copyObject_copySourceIfUnmodifiedSince :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.UTCTime)
copyObject_copySourceIfUnmodifiedSince :: (Maybe UTCTime -> f (Maybe UTCTime)) -> CopyObject -> f CopyObject
copyObject_copySourceIfUnmodifiedSince = (CopyObject -> Maybe ISO8601)
-> (CopyObject -> Maybe ISO8601 -> CopyObject)
-> Lens CopyObject CopyObject (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe ISO8601
copySourceIfUnmodifiedSince :: Maybe ISO8601
$sel:copySourceIfUnmodifiedSince:CopyObject' :: CopyObject -> Maybe ISO8601
copySourceIfUnmodifiedSince} -> Maybe ISO8601
copySourceIfUnmodifiedSince) (\s :: CopyObject
s@CopyObject' {} Maybe ISO8601
a -> CopyObject
s {$sel:copySourceIfUnmodifiedSince:CopyObject' :: Maybe ISO8601
copySourceIfUnmodifiedSince = Maybe ISO8601
a} :: CopyObject) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> CopyObject -> f CopyObject)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CopyObject
-> f CopyObject
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
copyObject_copySourceSSECustomerKeyMD5 :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_copySourceSSECustomerKeyMD5 :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_copySourceSSECustomerKeyMD5 = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
copySourceSSECustomerKeyMD5 :: Maybe Text
$sel:copySourceSSECustomerKeyMD5:CopyObject' :: CopyObject -> Maybe Text
copySourceSSECustomerKeyMD5} -> Maybe Text
copySourceSSECustomerKeyMD5) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:copySourceSSECustomerKeyMD5:CopyObject' :: Maybe Text
copySourceSSECustomerKeyMD5 = Maybe Text
a} :: CopyObject)
copyObject_taggingDirective :: Lens.Lens' CopyObject (Prelude.Maybe TaggingDirective)
copyObject_taggingDirective :: (Maybe TaggingDirective -> f (Maybe TaggingDirective))
-> CopyObject -> f CopyObject
copyObject_taggingDirective = (CopyObject -> Maybe TaggingDirective)
-> (CopyObject -> Maybe TaggingDirective -> CopyObject)
-> Lens
CopyObject
CopyObject
(Maybe TaggingDirective)
(Maybe TaggingDirective)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe TaggingDirective
taggingDirective :: Maybe TaggingDirective
$sel:taggingDirective:CopyObject' :: CopyObject -> Maybe TaggingDirective
taggingDirective} -> Maybe TaggingDirective
taggingDirective) (\s :: CopyObject
s@CopyObject' {} Maybe TaggingDirective
a -> CopyObject
s {$sel:taggingDirective:CopyObject' :: Maybe TaggingDirective
taggingDirective = Maybe TaggingDirective
a} :: CopyObject)
copyObject_metadataDirective :: Lens.Lens' CopyObject (Prelude.Maybe MetadataDirective)
copyObject_metadataDirective :: (Maybe MetadataDirective -> f (Maybe MetadataDirective))
-> CopyObject -> f CopyObject
copyObject_metadataDirective = (CopyObject -> Maybe MetadataDirective)
-> (CopyObject -> Maybe MetadataDirective -> CopyObject)
-> Lens
CopyObject
CopyObject
(Maybe MetadataDirective)
(Maybe MetadataDirective)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe MetadataDirective
metadataDirective :: Maybe MetadataDirective
$sel:metadataDirective:CopyObject' :: CopyObject -> Maybe MetadataDirective
metadataDirective} -> Maybe MetadataDirective
metadataDirective) (\s :: CopyObject
s@CopyObject' {} Maybe MetadataDirective
a -> CopyObject
s {$sel:metadataDirective:CopyObject' :: Maybe MetadataDirective
metadataDirective = Maybe MetadataDirective
a} :: CopyObject)
copyObject_objectLockMode :: Lens.Lens' CopyObject (Prelude.Maybe ObjectLockMode)
copyObject_objectLockMode :: (Maybe ObjectLockMode -> f (Maybe ObjectLockMode))
-> CopyObject -> f CopyObject
copyObject_objectLockMode = (CopyObject -> Maybe ObjectLockMode)
-> (CopyObject -> Maybe ObjectLockMode -> CopyObject)
-> Lens
CopyObject CopyObject (Maybe ObjectLockMode) (Maybe ObjectLockMode)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe ObjectLockMode
objectLockMode :: Maybe ObjectLockMode
$sel:objectLockMode:CopyObject' :: CopyObject -> Maybe ObjectLockMode
objectLockMode} -> Maybe ObjectLockMode
objectLockMode) (\s :: CopyObject
s@CopyObject' {} Maybe ObjectLockMode
a -> CopyObject
s {$sel:objectLockMode:CopyObject' :: Maybe ObjectLockMode
objectLockMode = Maybe ObjectLockMode
a} :: CopyObject)
copyObject_expires :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.UTCTime)
copyObject_expires :: (Maybe UTCTime -> f (Maybe UTCTime)) -> CopyObject -> f CopyObject
copyObject_expires = (CopyObject -> Maybe ISO8601)
-> (CopyObject -> Maybe ISO8601 -> CopyObject)
-> Lens CopyObject CopyObject (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe ISO8601
expires :: Maybe ISO8601
$sel:expires:CopyObject' :: CopyObject -> Maybe ISO8601
expires} -> Maybe ISO8601
expires) (\s :: CopyObject
s@CopyObject' {} Maybe ISO8601
a -> CopyObject
s {$sel:expires:CopyObject' :: Maybe ISO8601
expires = Maybe ISO8601
a} :: CopyObject) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> CopyObject -> f CopyObject)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CopyObject
-> f CopyObject
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
copyObject_grantReadACP :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_grantReadACP :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_grantReadACP = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
grantReadACP :: Maybe Text
$sel:grantReadACP:CopyObject' :: CopyObject -> Maybe Text
grantReadACP} -> Maybe Text
grantReadACP) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:grantReadACP:CopyObject' :: Maybe Text
grantReadACP = Maybe Text
a} :: CopyObject)
copyObject_copySourceIfNoneMatch :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_copySourceIfNoneMatch :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_copySourceIfNoneMatch = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
copySourceIfNoneMatch :: Maybe Text
$sel:copySourceIfNoneMatch:CopyObject' :: CopyObject -> Maybe Text
copySourceIfNoneMatch} -> Maybe Text
copySourceIfNoneMatch) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:copySourceIfNoneMatch:CopyObject' :: Maybe Text
copySourceIfNoneMatch = Maybe Text
a} :: CopyObject)
copyObject_sSECustomerAlgorithm :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_sSECustomerAlgorithm :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_sSECustomerAlgorithm = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
sSECustomerAlgorithm :: Maybe Text
$sel:sSECustomerAlgorithm:CopyObject' :: CopyObject -> Maybe Text
sSECustomerAlgorithm} -> Maybe Text
sSECustomerAlgorithm) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:sSECustomerAlgorithm:CopyObject' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
a} :: CopyObject)
copyObject_sSECustomerKey :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_sSECustomerKey :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_sSECustomerKey = (CopyObject -> Maybe (Sensitive Text))
-> (CopyObject -> Maybe (Sensitive Text) -> CopyObject)
-> Lens
CopyObject
CopyObject
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe (Sensitive Text)
sSECustomerKey :: Maybe (Sensitive Text)
$sel:sSECustomerKey:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
sSECustomerKey} -> Maybe (Sensitive Text)
sSECustomerKey) (\s :: CopyObject
s@CopyObject' {} Maybe (Sensitive Text)
a -> CopyObject
s {$sel:sSECustomerKey:CopyObject' :: Maybe (Sensitive Text)
sSECustomerKey = Maybe (Sensitive Text)
a} :: CopyObject) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CopyObject -> f CopyObject)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CopyObject
-> f CopyObject
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
copyObject_requestPayer :: Lens.Lens' CopyObject (Prelude.Maybe RequestPayer)
copyObject_requestPayer :: (Maybe RequestPayer -> f (Maybe RequestPayer))
-> CopyObject -> f CopyObject
copyObject_requestPayer = (CopyObject -> Maybe RequestPayer)
-> (CopyObject -> Maybe RequestPayer -> CopyObject)
-> Lens
CopyObject CopyObject (Maybe RequestPayer) (Maybe RequestPayer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe RequestPayer
requestPayer :: Maybe RequestPayer
$sel:requestPayer:CopyObject' :: CopyObject -> Maybe RequestPayer
requestPayer} -> Maybe RequestPayer
requestPayer) (\s :: CopyObject
s@CopyObject' {} Maybe RequestPayer
a -> CopyObject
s {$sel:requestPayer:CopyObject' :: Maybe RequestPayer
requestPayer = Maybe RequestPayer
a} :: CopyObject)
copyObject_grantWriteACP :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_grantWriteACP :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_grantWriteACP = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
grantWriteACP :: Maybe Text
$sel:grantWriteACP:CopyObject' :: CopyObject -> Maybe Text
grantWriteACP} -> Maybe Text
grantWriteACP) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:grantWriteACP:CopyObject' :: Maybe Text
grantWriteACP = Maybe Text
a} :: CopyObject)
copyObject_copySourceIfMatch :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_copySourceIfMatch :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_copySourceIfMatch = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
copySourceIfMatch :: Maybe Text
$sel:copySourceIfMatch:CopyObject' :: CopyObject -> Maybe Text
copySourceIfMatch} -> Maybe Text
copySourceIfMatch) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:copySourceIfMatch:CopyObject' :: Maybe Text
copySourceIfMatch = Maybe Text
a} :: CopyObject)
copyObject_bucketKeyEnabled :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Bool)
copyObject_bucketKeyEnabled :: (Maybe Bool -> f (Maybe Bool)) -> CopyObject -> f CopyObject
copyObject_bucketKeyEnabled = (CopyObject -> Maybe Bool)
-> (CopyObject -> Maybe Bool -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Bool
bucketKeyEnabled :: Maybe Bool
$sel:bucketKeyEnabled:CopyObject' :: CopyObject -> Maybe Bool
bucketKeyEnabled} -> Maybe Bool
bucketKeyEnabled) (\s :: CopyObject
s@CopyObject' {} Maybe Bool
a -> CopyObject
s {$sel:bucketKeyEnabled:CopyObject' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
a} :: CopyObject)
copyObject_websiteRedirectLocation :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_websiteRedirectLocation :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_websiteRedirectLocation = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
websiteRedirectLocation :: Maybe Text
$sel:websiteRedirectLocation:CopyObject' :: CopyObject -> Maybe Text
websiteRedirectLocation} -> Maybe Text
websiteRedirectLocation) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:websiteRedirectLocation:CopyObject' :: Maybe Text
websiteRedirectLocation = Maybe Text
a} :: CopyObject)
copyObject_grantRead :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_grantRead :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_grantRead = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
grantRead :: Maybe Text
$sel:grantRead:CopyObject' :: CopyObject -> Maybe Text
grantRead} -> Maybe Text
grantRead) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:grantRead:CopyObject' :: Maybe Text
grantRead = Maybe Text
a} :: CopyObject)
copyObject_expectedSourceBucketOwner :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_expectedSourceBucketOwner :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_expectedSourceBucketOwner = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
expectedSourceBucketOwner :: Maybe Text
$sel:expectedSourceBucketOwner:CopyObject' :: CopyObject -> Maybe Text
expectedSourceBucketOwner} -> Maybe Text
expectedSourceBucketOwner) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:expectedSourceBucketOwner:CopyObject' :: Maybe Text
expectedSourceBucketOwner = Maybe Text
a} :: CopyObject)
copyObject_storageClass :: Lens.Lens' CopyObject (Prelude.Maybe StorageClass)
copyObject_storageClass :: (Maybe StorageClass -> f (Maybe StorageClass))
-> CopyObject -> f CopyObject
copyObject_storageClass = (CopyObject -> Maybe StorageClass)
-> (CopyObject -> Maybe StorageClass -> CopyObject)
-> Lens
CopyObject CopyObject (Maybe StorageClass) (Maybe StorageClass)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe StorageClass
storageClass :: Maybe StorageClass
$sel:storageClass:CopyObject' :: CopyObject -> Maybe StorageClass
storageClass} -> Maybe StorageClass
storageClass) (\s :: CopyObject
s@CopyObject' {} Maybe StorageClass
a -> CopyObject
s {$sel:storageClass:CopyObject' :: Maybe StorageClass
storageClass = Maybe StorageClass
a} :: CopyObject)
copyObject_sSECustomerKeyMD5 :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_sSECustomerKeyMD5 :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_sSECustomerKeyMD5 = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
sSECustomerKeyMD5 :: Maybe Text
$sel:sSECustomerKeyMD5:CopyObject' :: CopyObject -> Maybe Text
sSECustomerKeyMD5} -> Maybe Text
sSECustomerKeyMD5) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:sSECustomerKeyMD5:CopyObject' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
a} :: CopyObject)
copyObject_sSEKMSKeyId :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_sSEKMSKeyId :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_sSEKMSKeyId = (CopyObject -> Maybe (Sensitive Text))
-> (CopyObject -> Maybe (Sensitive Text) -> CopyObject)
-> Lens
CopyObject
CopyObject
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe (Sensitive Text)
sSEKMSKeyId :: Maybe (Sensitive Text)
$sel:sSEKMSKeyId:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
sSEKMSKeyId} -> Maybe (Sensitive Text)
sSEKMSKeyId) (\s :: CopyObject
s@CopyObject' {} Maybe (Sensitive Text)
a -> CopyObject
s {$sel:sSEKMSKeyId:CopyObject' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
a} :: CopyObject) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CopyObject -> f CopyObject)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CopyObject
-> f CopyObject
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
copyObject_grantFullControl :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_grantFullControl :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_grantFullControl = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
grantFullControl :: Maybe Text
$sel:grantFullControl:CopyObject' :: CopyObject -> Maybe Text
grantFullControl} -> Maybe Text
grantFullControl) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:grantFullControl:CopyObject' :: Maybe Text
grantFullControl = Maybe Text
a} :: CopyObject)
copyObject_contentEncoding :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_contentEncoding :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_contentEncoding = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
contentEncoding :: Maybe Text
$sel:contentEncoding:CopyObject' :: CopyObject -> Maybe Text
contentEncoding} -> Maybe Text
contentEncoding) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:contentEncoding:CopyObject' :: Maybe Text
contentEncoding = Maybe Text
a} :: CopyObject)
copyObject_tagging :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_tagging :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_tagging = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
tagging :: Maybe Text
$sel:tagging:CopyObject' :: CopyObject -> Maybe Text
tagging} -> Maybe Text
tagging) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:tagging:CopyObject' :: Maybe Text
tagging = Maybe Text
a} :: CopyObject)
copyObject_objectLockRetainUntilDate :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.UTCTime)
copyObject_objectLockRetainUntilDate :: (Maybe UTCTime -> f (Maybe UTCTime)) -> CopyObject -> f CopyObject
copyObject_objectLockRetainUntilDate = (CopyObject -> Maybe ISO8601)
-> (CopyObject -> Maybe ISO8601 -> CopyObject)
-> Lens CopyObject CopyObject (Maybe ISO8601) (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe ISO8601
objectLockRetainUntilDate :: Maybe ISO8601
$sel:objectLockRetainUntilDate:CopyObject' :: CopyObject -> Maybe ISO8601
objectLockRetainUntilDate} -> Maybe ISO8601
objectLockRetainUntilDate) (\s :: CopyObject
s@CopyObject' {} Maybe ISO8601
a -> CopyObject
s {$sel:objectLockRetainUntilDate:CopyObject' :: Maybe ISO8601
objectLockRetainUntilDate = Maybe ISO8601
a} :: CopyObject) ((Maybe ISO8601 -> f (Maybe ISO8601))
-> CopyObject -> f CopyObject)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CopyObject
-> f CopyObject
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
copyObject_metadata :: Lens.Lens' CopyObject (Prelude.HashMap Prelude.Text Prelude.Text)
copyObject_metadata :: (HashMap Text Text -> f (HashMap Text Text))
-> CopyObject -> f CopyObject
copyObject_metadata = (CopyObject -> HashMap Text Text)
-> (CopyObject -> HashMap Text Text -> CopyObject)
-> Lens
CopyObject CopyObject (HashMap Text Text) (HashMap Text Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {HashMap Text Text
metadata :: HashMap Text Text
$sel:metadata:CopyObject' :: CopyObject -> HashMap Text Text
metadata} -> HashMap Text Text
metadata) (\s :: CopyObject
s@CopyObject' {} HashMap Text Text
a -> CopyObject
s {$sel:metadata:CopyObject' :: HashMap Text Text
metadata = HashMap Text Text
a} :: CopyObject) ((HashMap Text Text -> f (HashMap Text Text))
-> CopyObject -> f CopyObject)
-> ((HashMap Text Text -> f (HashMap Text Text))
-> HashMap Text Text -> f (HashMap Text Text))
-> (HashMap Text Text -> f (HashMap Text Text))
-> CopyObject
-> f CopyObject
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
copyObject_sSEKMSEncryptionContext :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_sSEKMSEncryptionContext :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_sSEKMSEncryptionContext = (CopyObject -> Maybe (Sensitive Text))
-> (CopyObject -> Maybe (Sensitive Text) -> CopyObject)
-> Lens
CopyObject
CopyObject
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe (Sensitive Text)
sSEKMSEncryptionContext :: Maybe (Sensitive Text)
$sel:sSEKMSEncryptionContext:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
sSEKMSEncryptionContext} -> Maybe (Sensitive Text)
sSEKMSEncryptionContext) (\s :: CopyObject
s@CopyObject' {} Maybe (Sensitive Text)
a -> CopyObject
s {$sel:sSEKMSEncryptionContext:CopyObject' :: Maybe (Sensitive Text)
sSEKMSEncryptionContext = Maybe (Sensitive Text)
a} :: CopyObject) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CopyObject -> f CopyObject)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CopyObject
-> f CopyObject
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
copyObject_cacheControl :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_cacheControl :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_cacheControl = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
cacheControl :: Maybe Text
$sel:cacheControl:CopyObject' :: CopyObject -> Maybe Text
cacheControl} -> Maybe Text
cacheControl) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:cacheControl:CopyObject' :: Maybe Text
cacheControl = Maybe Text
a} :: CopyObject)
copyObject_contentLanguage :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_contentLanguage :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_contentLanguage = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
contentLanguage :: Maybe Text
$sel:contentLanguage:CopyObject' :: CopyObject -> Maybe Text
contentLanguage} -> Maybe Text
contentLanguage) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:contentLanguage:CopyObject' :: Maybe Text
contentLanguage = Maybe Text
a} :: CopyObject)
copyObject_copySourceSSECustomerKey :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_copySourceSSECustomerKey :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_copySourceSSECustomerKey = (CopyObject -> Maybe (Sensitive Text))
-> (CopyObject -> Maybe (Sensitive Text) -> CopyObject)
-> Lens
CopyObject
CopyObject
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe (Sensitive Text)
copySourceSSECustomerKey :: Maybe (Sensitive Text)
$sel:copySourceSSECustomerKey:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
copySourceSSECustomerKey} -> Maybe (Sensitive Text)
copySourceSSECustomerKey) (\s :: CopyObject
s@CopyObject' {} Maybe (Sensitive Text)
a -> CopyObject
s {$sel:copySourceSSECustomerKey:CopyObject' :: Maybe (Sensitive Text)
copySourceSSECustomerKey = Maybe (Sensitive Text)
a} :: CopyObject) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CopyObject -> f CopyObject)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CopyObject
-> f CopyObject
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
copyObject_objectLockLegalHoldStatus :: Lens.Lens' CopyObject (Prelude.Maybe ObjectLockLegalHoldStatus)
copyObject_objectLockLegalHoldStatus :: (Maybe ObjectLockLegalHoldStatus
-> f (Maybe ObjectLockLegalHoldStatus))
-> CopyObject -> f CopyObject
copyObject_objectLockLegalHoldStatus = (CopyObject -> Maybe ObjectLockLegalHoldStatus)
-> (CopyObject -> Maybe ObjectLockLegalHoldStatus -> CopyObject)
-> Lens
CopyObject
CopyObject
(Maybe ObjectLockLegalHoldStatus)
(Maybe ObjectLockLegalHoldStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus :: Maybe ObjectLockLegalHoldStatus
$sel:objectLockLegalHoldStatus:CopyObject' :: CopyObject -> Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus} -> Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus) (\s :: CopyObject
s@CopyObject' {} Maybe ObjectLockLegalHoldStatus
a -> CopyObject
s {$sel:objectLockLegalHoldStatus:CopyObject' :: Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus = Maybe ObjectLockLegalHoldStatus
a} :: CopyObject)
copyObject_copySourceSSECustomerAlgorithm :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_copySourceSSECustomerAlgorithm :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_copySourceSSECustomerAlgorithm = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
copySourceSSECustomerAlgorithm :: Maybe Text
$sel:copySourceSSECustomerAlgorithm:CopyObject' :: CopyObject -> Maybe Text
copySourceSSECustomerAlgorithm} -> Maybe Text
copySourceSSECustomerAlgorithm) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:copySourceSSECustomerAlgorithm:CopyObject' :: Maybe Text
copySourceSSECustomerAlgorithm = Maybe Text
a} :: CopyObject)
copyObject_acl :: Lens.Lens' CopyObject (Prelude.Maybe ObjectCannedACL)
copyObject_acl :: (Maybe ObjectCannedACL -> f (Maybe ObjectCannedACL))
-> CopyObject -> f CopyObject
copyObject_acl = (CopyObject -> Maybe ObjectCannedACL)
-> (CopyObject -> Maybe ObjectCannedACL -> CopyObject)
-> Lens
CopyObject
CopyObject
(Maybe ObjectCannedACL)
(Maybe ObjectCannedACL)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe ObjectCannedACL
acl :: Maybe ObjectCannedACL
$sel:acl:CopyObject' :: CopyObject -> Maybe ObjectCannedACL
acl} -> Maybe ObjectCannedACL
acl) (\s :: CopyObject
s@CopyObject' {} Maybe ObjectCannedACL
a -> CopyObject
s {$sel:acl:CopyObject' :: Maybe ObjectCannedACL
acl = Maybe ObjectCannedACL
a} :: CopyObject)
copyObject_contentDisposition :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_contentDisposition :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_contentDisposition = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
contentDisposition :: Maybe Text
$sel:contentDisposition:CopyObject' :: CopyObject -> Maybe Text
contentDisposition} -> Maybe Text
contentDisposition) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:contentDisposition:CopyObject' :: Maybe Text
contentDisposition = Maybe Text
a} :: CopyObject)
copyObject_expectedBucketOwner :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_expectedBucketOwner :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_expectedBucketOwner = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
expectedBucketOwner :: Maybe Text
$sel:expectedBucketOwner:CopyObject' :: CopyObject -> Maybe Text
expectedBucketOwner} -> Maybe Text
expectedBucketOwner) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:expectedBucketOwner:CopyObject' :: Maybe Text
expectedBucketOwner = Maybe Text
a} :: CopyObject)
copyObject_serverSideEncryption :: Lens.Lens' CopyObject (Prelude.Maybe ServerSideEncryption)
copyObject_serverSideEncryption :: (Maybe ServerSideEncryption -> f (Maybe ServerSideEncryption))
-> CopyObject -> f CopyObject
copyObject_serverSideEncryption = (CopyObject -> Maybe ServerSideEncryption)
-> (CopyObject -> Maybe ServerSideEncryption -> CopyObject)
-> Lens
CopyObject
CopyObject
(Maybe ServerSideEncryption)
(Maybe ServerSideEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe ServerSideEncryption
serverSideEncryption :: Maybe ServerSideEncryption
$sel:serverSideEncryption:CopyObject' :: CopyObject -> Maybe ServerSideEncryption
serverSideEncryption} -> Maybe ServerSideEncryption
serverSideEncryption) (\s :: CopyObject
s@CopyObject' {} Maybe ServerSideEncryption
a -> CopyObject
s {$sel:serverSideEncryption:CopyObject' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
a} :: CopyObject)
copyObject_contentType :: Lens.Lens' CopyObject (Prelude.Maybe Prelude.Text)
copyObject_contentType :: (Maybe Text -> f (Maybe Text)) -> CopyObject -> f CopyObject
copyObject_contentType = (CopyObject -> Maybe Text)
-> (CopyObject -> Maybe Text -> CopyObject)
-> Lens CopyObject CopyObject (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Maybe Text
contentType :: Maybe Text
$sel:contentType:CopyObject' :: CopyObject -> Maybe Text
contentType} -> Maybe Text
contentType) (\s :: CopyObject
s@CopyObject' {} Maybe Text
a -> CopyObject
s {$sel:contentType:CopyObject' :: Maybe Text
contentType = Maybe Text
a} :: CopyObject)
copyObject_bucket :: Lens.Lens' CopyObject BucketName
copyObject_bucket :: (BucketName -> f BucketName) -> CopyObject -> f CopyObject
copyObject_bucket = (CopyObject -> BucketName)
-> (CopyObject -> BucketName -> CopyObject)
-> Lens CopyObject CopyObject BucketName BucketName
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {BucketName
bucket :: BucketName
$sel:bucket:CopyObject' :: CopyObject -> BucketName
bucket} -> BucketName
bucket) (\s :: CopyObject
s@CopyObject' {} BucketName
a -> CopyObject
s {$sel:bucket:CopyObject' :: BucketName
bucket = BucketName
a} :: CopyObject)
copyObject_copySource :: Lens.Lens' CopyObject Prelude.Text
copyObject_copySource :: (Text -> f Text) -> CopyObject -> f CopyObject
copyObject_copySource = (CopyObject -> Text)
-> (CopyObject -> Text -> CopyObject)
-> Lens CopyObject CopyObject Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {Text
copySource :: Text
$sel:copySource:CopyObject' :: CopyObject -> Text
copySource} -> Text
copySource) (\s :: CopyObject
s@CopyObject' {} Text
a -> CopyObject
s {$sel:copySource:CopyObject' :: Text
copySource = Text
a} :: CopyObject)
copyObject_key :: Lens.Lens' CopyObject ObjectKey
copyObject_key :: (ObjectKey -> f ObjectKey) -> CopyObject -> f CopyObject
copyObject_key = (CopyObject -> ObjectKey)
-> (CopyObject -> ObjectKey -> CopyObject)
-> Lens CopyObject CopyObject ObjectKey ObjectKey
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObject' {ObjectKey
key :: ObjectKey
$sel:key:CopyObject' :: CopyObject -> ObjectKey
key} -> ObjectKey
key) (\s :: CopyObject
s@CopyObject' {} ObjectKey
a -> CopyObject
s {$sel:key:CopyObject' :: ObjectKey
key = ObjectKey
a} :: CopyObject)
instance Core.AWSRequest CopyObject where
type AWSResponse CopyObject = CopyObjectResponse
request :: CopyObject -> Request CopyObject
request =
Request CopyObject -> Request CopyObject
forall a. Request a -> Request a
Request.s3vhost
(Request CopyObject -> Request CopyObject)
-> (CopyObject -> Request CopyObject)
-> CopyObject
-> Request CopyObject
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. Service -> CopyObject -> Request CopyObject
forall a. ToRequest a => Service -> a -> Request a
Request.put Service
defaultService
response :: Logger
-> Service
-> Proxy CopyObject
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CopyObject)))
response =
(Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse CopyObject))
-> Logger
-> Service
-> Proxy CopyObject
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse CopyObject)))
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 ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse
CopyObjectResponse'
(Maybe RequestCharged
-> Maybe ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
-> Either String (Maybe RequestCharged)
-> Either
String
(Maybe ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
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 ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
-> Either String (Maybe ObjectVersionId)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders
-> HeaderName -> Either String (Maybe ObjectVersionId)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"x-amz-version-id")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Text)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"x-amz-expiration")
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
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 (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
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 (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
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 (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
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 ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String
(Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
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 ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String
(Maybe ServerSideEncryption
-> Maybe CopyObjectResult -> Int -> CopyObjectResponse)
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 ServerSideEncryption
-> Maybe CopyObjectResult -> Int -> CopyObjectResponse)
-> Either String (Maybe ServerSideEncryption)
-> Either
String (Maybe CopyObjectResult -> Int -> CopyObjectResponse)
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 (Maybe CopyObjectResult -> Int -> CopyObjectResponse)
-> Either String (Maybe CopyObjectResult)
-> Either String (Int -> CopyObjectResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node] -> Either String (Maybe CopyObjectResult)
forall a. FromXML a => [Node] -> Either String a
Core.parseXML [Node]
x)
Either String (Int -> CopyObjectResponse)
-> Either String Int -> Either String CopyObjectResponse
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 CopyObject
instance Prelude.NFData CopyObject
instance Core.ToHeaders CopyObject where
toHeaders :: CopyObject -> ResponseHeaders
toHeaders CopyObject' {Maybe Bool
Maybe Text
Maybe (Sensitive Text)
Maybe ISO8601
Maybe MetadataDirective
Maybe ObjectCannedACL
Maybe ObjectLockLegalHoldStatus
Maybe ObjectLockMode
Maybe RequestPayer
Maybe ServerSideEncryption
Maybe StorageClass
Maybe TaggingDirective
Text
HashMap Text Text
ObjectKey
BucketName
key :: ObjectKey
copySource :: Text
bucket :: BucketName
contentType :: Maybe Text
serverSideEncryption :: Maybe ServerSideEncryption
expectedBucketOwner :: Maybe Text
contentDisposition :: Maybe Text
acl :: Maybe ObjectCannedACL
copySourceSSECustomerAlgorithm :: Maybe Text
objectLockLegalHoldStatus :: Maybe ObjectLockLegalHoldStatus
copySourceSSECustomerKey :: Maybe (Sensitive Text)
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
expectedSourceBucketOwner :: Maybe Text
grantRead :: Maybe Text
websiteRedirectLocation :: Maybe Text
bucketKeyEnabled :: Maybe Bool
copySourceIfMatch :: Maybe Text
grantWriteACP :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
copySourceIfNoneMatch :: Maybe Text
grantReadACP :: Maybe Text
expires :: Maybe ISO8601
objectLockMode :: Maybe ObjectLockMode
metadataDirective :: Maybe MetadataDirective
taggingDirective :: Maybe TaggingDirective
copySourceSSECustomerKeyMD5 :: Maybe Text
copySourceIfUnmodifiedSince :: Maybe ISO8601
copySourceIfModifiedSince :: Maybe ISO8601
$sel:key:CopyObject' :: CopyObject -> ObjectKey
$sel:copySource:CopyObject' :: CopyObject -> Text
$sel:bucket:CopyObject' :: CopyObject -> BucketName
$sel:contentType:CopyObject' :: CopyObject -> Maybe Text
$sel:serverSideEncryption:CopyObject' :: CopyObject -> Maybe ServerSideEncryption
$sel:expectedBucketOwner:CopyObject' :: CopyObject -> Maybe Text
$sel:contentDisposition:CopyObject' :: CopyObject -> Maybe Text
$sel:acl:CopyObject' :: CopyObject -> Maybe ObjectCannedACL
$sel:copySourceSSECustomerAlgorithm:CopyObject' :: CopyObject -> Maybe Text
$sel:objectLockLegalHoldStatus:CopyObject' :: CopyObject -> Maybe ObjectLockLegalHoldStatus
$sel:copySourceSSECustomerKey:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
$sel:contentLanguage:CopyObject' :: CopyObject -> Maybe Text
$sel:cacheControl:CopyObject' :: CopyObject -> Maybe Text
$sel:sSEKMSEncryptionContext:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
$sel:metadata:CopyObject' :: CopyObject -> HashMap Text Text
$sel:objectLockRetainUntilDate:CopyObject' :: CopyObject -> Maybe ISO8601
$sel:tagging:CopyObject' :: CopyObject -> Maybe Text
$sel:contentEncoding:CopyObject' :: CopyObject -> Maybe Text
$sel:grantFullControl:CopyObject' :: CopyObject -> Maybe Text
$sel:sSEKMSKeyId:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
$sel:sSECustomerKeyMD5:CopyObject' :: CopyObject -> Maybe Text
$sel:storageClass:CopyObject' :: CopyObject -> Maybe StorageClass
$sel:expectedSourceBucketOwner:CopyObject' :: CopyObject -> Maybe Text
$sel:grantRead:CopyObject' :: CopyObject -> Maybe Text
$sel:websiteRedirectLocation:CopyObject' :: CopyObject -> Maybe Text
$sel:bucketKeyEnabled:CopyObject' :: CopyObject -> Maybe Bool
$sel:copySourceIfMatch:CopyObject' :: CopyObject -> Maybe Text
$sel:grantWriteACP:CopyObject' :: CopyObject -> Maybe Text
$sel:requestPayer:CopyObject' :: CopyObject -> Maybe RequestPayer
$sel:sSECustomerKey:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:CopyObject' :: CopyObject -> Maybe Text
$sel:copySourceIfNoneMatch:CopyObject' :: CopyObject -> Maybe Text
$sel:grantReadACP:CopyObject' :: CopyObject -> Maybe Text
$sel:expires:CopyObject' :: CopyObject -> Maybe ISO8601
$sel:objectLockMode:CopyObject' :: CopyObject -> Maybe ObjectLockMode
$sel:metadataDirective:CopyObject' :: CopyObject -> Maybe MetadataDirective
$sel:taggingDirective:CopyObject' :: CopyObject -> Maybe TaggingDirective
$sel:copySourceSSECustomerKeyMD5:CopyObject' :: CopyObject -> Maybe Text
$sel:copySourceIfUnmodifiedSince:CopyObject' :: CopyObject -> Maybe ISO8601
$sel:copySourceIfModifiedSince:CopyObject' :: CopyObject -> 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-server-side-encryption-customer-key-MD5"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
copySourceSSECustomerKeyMD5,
HeaderName
"x-amz-tagging-directive" HeaderName -> Maybe TaggingDirective -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe TaggingDirective
taggingDirective,
HeaderName
"x-amz-metadata-directive" HeaderName -> Maybe MetadataDirective -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe MetadataDirective
metadataDirective,
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-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-grant-write-acp" HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
grantWriteACP,
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-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-source-expected-bucket-owner"
HeaderName -> Maybe Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe Text
expectedSourceBucketOwner,
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-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-object-lock-legal-hold"
HeaderName -> Maybe ObjectLockLegalHoldStatus -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Maybe ObjectLockLegalHoldStatus
objectLockLegalHoldStatus,
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-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,
HeaderName
"x-amz-copy-source" HeaderName -> Text -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# Text
copySource
]
instance Core.ToPath CopyObject where
toPath :: CopyObject -> ByteString
toPath CopyObject' {Maybe Bool
Maybe Text
Maybe (Sensitive Text)
Maybe ISO8601
Maybe MetadataDirective
Maybe ObjectCannedACL
Maybe ObjectLockLegalHoldStatus
Maybe ObjectLockMode
Maybe RequestPayer
Maybe ServerSideEncryption
Maybe StorageClass
Maybe TaggingDirective
Text
HashMap Text Text
ObjectKey
BucketName
key :: ObjectKey
copySource :: Text
bucket :: BucketName
contentType :: Maybe Text
serverSideEncryption :: Maybe ServerSideEncryption
expectedBucketOwner :: Maybe Text
contentDisposition :: Maybe Text
acl :: Maybe ObjectCannedACL
copySourceSSECustomerAlgorithm :: Maybe Text
objectLockLegalHoldStatus :: Maybe ObjectLockLegalHoldStatus
copySourceSSECustomerKey :: Maybe (Sensitive Text)
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
expectedSourceBucketOwner :: Maybe Text
grantRead :: Maybe Text
websiteRedirectLocation :: Maybe Text
bucketKeyEnabled :: Maybe Bool
copySourceIfMatch :: Maybe Text
grantWriteACP :: Maybe Text
requestPayer :: Maybe RequestPayer
sSECustomerKey :: Maybe (Sensitive Text)
sSECustomerAlgorithm :: Maybe Text
copySourceIfNoneMatch :: Maybe Text
grantReadACP :: Maybe Text
expires :: Maybe ISO8601
objectLockMode :: Maybe ObjectLockMode
metadataDirective :: Maybe MetadataDirective
taggingDirective :: Maybe TaggingDirective
copySourceSSECustomerKeyMD5 :: Maybe Text
copySourceIfUnmodifiedSince :: Maybe ISO8601
copySourceIfModifiedSince :: Maybe ISO8601
$sel:key:CopyObject' :: CopyObject -> ObjectKey
$sel:copySource:CopyObject' :: CopyObject -> Text
$sel:bucket:CopyObject' :: CopyObject -> BucketName
$sel:contentType:CopyObject' :: CopyObject -> Maybe Text
$sel:serverSideEncryption:CopyObject' :: CopyObject -> Maybe ServerSideEncryption
$sel:expectedBucketOwner:CopyObject' :: CopyObject -> Maybe Text
$sel:contentDisposition:CopyObject' :: CopyObject -> Maybe Text
$sel:acl:CopyObject' :: CopyObject -> Maybe ObjectCannedACL
$sel:copySourceSSECustomerAlgorithm:CopyObject' :: CopyObject -> Maybe Text
$sel:objectLockLegalHoldStatus:CopyObject' :: CopyObject -> Maybe ObjectLockLegalHoldStatus
$sel:copySourceSSECustomerKey:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
$sel:contentLanguage:CopyObject' :: CopyObject -> Maybe Text
$sel:cacheControl:CopyObject' :: CopyObject -> Maybe Text
$sel:sSEKMSEncryptionContext:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
$sel:metadata:CopyObject' :: CopyObject -> HashMap Text Text
$sel:objectLockRetainUntilDate:CopyObject' :: CopyObject -> Maybe ISO8601
$sel:tagging:CopyObject' :: CopyObject -> Maybe Text
$sel:contentEncoding:CopyObject' :: CopyObject -> Maybe Text
$sel:grantFullControl:CopyObject' :: CopyObject -> Maybe Text
$sel:sSEKMSKeyId:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
$sel:sSECustomerKeyMD5:CopyObject' :: CopyObject -> Maybe Text
$sel:storageClass:CopyObject' :: CopyObject -> Maybe StorageClass
$sel:expectedSourceBucketOwner:CopyObject' :: CopyObject -> Maybe Text
$sel:grantRead:CopyObject' :: CopyObject -> Maybe Text
$sel:websiteRedirectLocation:CopyObject' :: CopyObject -> Maybe Text
$sel:bucketKeyEnabled:CopyObject' :: CopyObject -> Maybe Bool
$sel:copySourceIfMatch:CopyObject' :: CopyObject -> Maybe Text
$sel:grantWriteACP:CopyObject' :: CopyObject -> Maybe Text
$sel:requestPayer:CopyObject' :: CopyObject -> Maybe RequestPayer
$sel:sSECustomerKey:CopyObject' :: CopyObject -> Maybe (Sensitive Text)
$sel:sSECustomerAlgorithm:CopyObject' :: CopyObject -> Maybe Text
$sel:copySourceIfNoneMatch:CopyObject' :: CopyObject -> Maybe Text
$sel:grantReadACP:CopyObject' :: CopyObject -> Maybe Text
$sel:expires:CopyObject' :: CopyObject -> Maybe ISO8601
$sel:objectLockMode:CopyObject' :: CopyObject -> Maybe ObjectLockMode
$sel:metadataDirective:CopyObject' :: CopyObject -> Maybe MetadataDirective
$sel:taggingDirective:CopyObject' :: CopyObject -> Maybe TaggingDirective
$sel:copySourceSSECustomerKeyMD5:CopyObject' :: CopyObject -> Maybe Text
$sel:copySourceIfUnmodifiedSince:CopyObject' :: CopyObject -> Maybe ISO8601
$sel:copySourceIfModifiedSince:CopyObject' :: CopyObject -> 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 CopyObject where
toQuery :: CopyObject -> QueryString
toQuery = QueryString -> CopyObject -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CopyObjectResponse = CopyObjectResponse'
{ CopyObjectResponse -> Maybe RequestCharged
requestCharged :: Prelude.Maybe RequestCharged,
CopyObjectResponse -> Maybe ObjectVersionId
versionId :: Prelude.Maybe ObjectVersionId,
CopyObjectResponse -> Maybe Text
expiration :: Prelude.Maybe Prelude.Text,
CopyObjectResponse -> Maybe Text
sSECustomerAlgorithm :: Prelude.Maybe Prelude.Text,
CopyObjectResponse -> Maybe Bool
bucketKeyEnabled :: Prelude.Maybe Prelude.Bool,
CopyObjectResponse -> Maybe Text
copySourceVersionId :: Prelude.Maybe Prelude.Text,
CopyObjectResponse -> Maybe Text
sSECustomerKeyMD5 :: Prelude.Maybe Prelude.Text,
CopyObjectResponse -> Maybe (Sensitive Text)
sSEKMSKeyId :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CopyObjectResponse -> Maybe (Sensitive Text)
sSEKMSEncryptionContext :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CopyObjectResponse -> Maybe ServerSideEncryption
serverSideEncryption :: Prelude.Maybe ServerSideEncryption,
CopyObjectResponse -> Maybe CopyObjectResult
copyObjectResult :: Prelude.Maybe CopyObjectResult,
CopyObjectResponse -> Int
httpStatus :: Prelude.Int
}
deriving (CopyObjectResponse -> CopyObjectResponse -> Bool
(CopyObjectResponse -> CopyObjectResponse -> Bool)
-> (CopyObjectResponse -> CopyObjectResponse -> Bool)
-> Eq CopyObjectResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CopyObjectResponse -> CopyObjectResponse -> Bool
$c/= :: CopyObjectResponse -> CopyObjectResponse -> Bool
== :: CopyObjectResponse -> CopyObjectResponse -> Bool
$c== :: CopyObjectResponse -> CopyObjectResponse -> Bool
Prelude.Eq, Int -> CopyObjectResponse -> ShowS
[CopyObjectResponse] -> ShowS
CopyObjectResponse -> String
(Int -> CopyObjectResponse -> ShowS)
-> (CopyObjectResponse -> String)
-> ([CopyObjectResponse] -> ShowS)
-> Show CopyObjectResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CopyObjectResponse] -> ShowS
$cshowList :: [CopyObjectResponse] -> ShowS
show :: CopyObjectResponse -> String
$cshow :: CopyObjectResponse -> String
showsPrec :: Int -> CopyObjectResponse -> ShowS
$cshowsPrec :: Int -> CopyObjectResponse -> ShowS
Prelude.Show, (forall x. CopyObjectResponse -> Rep CopyObjectResponse x)
-> (forall x. Rep CopyObjectResponse x -> CopyObjectResponse)
-> Generic CopyObjectResponse
forall x. Rep CopyObjectResponse x -> CopyObjectResponse
forall x. CopyObjectResponse -> Rep CopyObjectResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CopyObjectResponse x -> CopyObjectResponse
$cfrom :: forall x. CopyObjectResponse -> Rep CopyObjectResponse x
Prelude.Generic)
newCopyObjectResponse ::
Prelude.Int ->
CopyObjectResponse
newCopyObjectResponse :: Int -> CopyObjectResponse
newCopyObjectResponse Int
pHttpStatus_ =
CopyObjectResponse' :: Maybe RequestCharged
-> Maybe ObjectVersionId
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe ServerSideEncryption
-> Maybe CopyObjectResult
-> Int
-> CopyObjectResponse
CopyObjectResponse'
{ $sel:requestCharged:CopyObjectResponse' :: Maybe RequestCharged
requestCharged =
Maybe RequestCharged
forall a. Maybe a
Prelude.Nothing,
$sel:versionId:CopyObjectResponse' :: Maybe ObjectVersionId
versionId = Maybe ObjectVersionId
forall a. Maybe a
Prelude.Nothing,
$sel:expiration:CopyObjectResponse' :: Maybe Text
expiration = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerAlgorithm:CopyObjectResponse' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bucketKeyEnabled:CopyObjectResponse' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:copySourceVersionId:CopyObjectResponse' :: Maybe Text
copySourceVersionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSECustomerKeyMD5:CopyObjectResponse' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:sSEKMSKeyId:CopyObjectResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:sSEKMSEncryptionContext:CopyObjectResponse' :: Maybe (Sensitive Text)
sSEKMSEncryptionContext = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:serverSideEncryption:CopyObjectResponse' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
forall a. Maybe a
Prelude.Nothing,
$sel:copyObjectResult:CopyObjectResponse' :: Maybe CopyObjectResult
copyObjectResult = Maybe CopyObjectResult
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CopyObjectResponse' :: Int
httpStatus = Int
pHttpStatus_
}
copyObjectResponse_requestCharged :: Lens.Lens' CopyObjectResponse (Prelude.Maybe RequestCharged)
copyObjectResponse_requestCharged :: (Maybe RequestCharged -> f (Maybe RequestCharged))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_requestCharged = (CopyObjectResponse -> Maybe RequestCharged)
-> (CopyObjectResponse
-> Maybe RequestCharged -> CopyObjectResponse)
-> Lens
CopyObjectResponse
CopyObjectResponse
(Maybe RequestCharged)
(Maybe RequestCharged)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe RequestCharged
requestCharged :: Maybe RequestCharged
$sel:requestCharged:CopyObjectResponse' :: CopyObjectResponse -> Maybe RequestCharged
requestCharged} -> Maybe RequestCharged
requestCharged) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe RequestCharged
a -> CopyObjectResponse
s {$sel:requestCharged:CopyObjectResponse' :: Maybe RequestCharged
requestCharged = Maybe RequestCharged
a} :: CopyObjectResponse)
copyObjectResponse_versionId :: Lens.Lens' CopyObjectResponse (Prelude.Maybe ObjectVersionId)
copyObjectResponse_versionId :: (Maybe ObjectVersionId -> f (Maybe ObjectVersionId))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_versionId = (CopyObjectResponse -> Maybe ObjectVersionId)
-> (CopyObjectResponse
-> Maybe ObjectVersionId -> CopyObjectResponse)
-> Lens
CopyObjectResponse
CopyObjectResponse
(Maybe ObjectVersionId)
(Maybe ObjectVersionId)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe ObjectVersionId
versionId :: Maybe ObjectVersionId
$sel:versionId:CopyObjectResponse' :: CopyObjectResponse -> Maybe ObjectVersionId
versionId} -> Maybe ObjectVersionId
versionId) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe ObjectVersionId
a -> CopyObjectResponse
s {$sel:versionId:CopyObjectResponse' :: Maybe ObjectVersionId
versionId = Maybe ObjectVersionId
a} :: CopyObjectResponse)
copyObjectResponse_expiration :: Lens.Lens' CopyObjectResponse (Prelude.Maybe Prelude.Text)
copyObjectResponse_expiration :: (Maybe Text -> f (Maybe Text))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_expiration = (CopyObjectResponse -> Maybe Text)
-> (CopyObjectResponse -> Maybe Text -> CopyObjectResponse)
-> Lens
CopyObjectResponse CopyObjectResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe Text
expiration :: Maybe Text
$sel:expiration:CopyObjectResponse' :: CopyObjectResponse -> Maybe Text
expiration} -> Maybe Text
expiration) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe Text
a -> CopyObjectResponse
s {$sel:expiration:CopyObjectResponse' :: Maybe Text
expiration = Maybe Text
a} :: CopyObjectResponse)
copyObjectResponse_sSECustomerAlgorithm :: Lens.Lens' CopyObjectResponse (Prelude.Maybe Prelude.Text)
copyObjectResponse_sSECustomerAlgorithm :: (Maybe Text -> f (Maybe Text))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_sSECustomerAlgorithm = (CopyObjectResponse -> Maybe Text)
-> (CopyObjectResponse -> Maybe Text -> CopyObjectResponse)
-> Lens
CopyObjectResponse CopyObjectResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe Text
sSECustomerAlgorithm :: Maybe Text
$sel:sSECustomerAlgorithm:CopyObjectResponse' :: CopyObjectResponse -> Maybe Text
sSECustomerAlgorithm} -> Maybe Text
sSECustomerAlgorithm) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe Text
a -> CopyObjectResponse
s {$sel:sSECustomerAlgorithm:CopyObjectResponse' :: Maybe Text
sSECustomerAlgorithm = Maybe Text
a} :: CopyObjectResponse)
copyObjectResponse_bucketKeyEnabled :: Lens.Lens' CopyObjectResponse (Prelude.Maybe Prelude.Bool)
copyObjectResponse_bucketKeyEnabled :: (Maybe Bool -> f (Maybe Bool))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_bucketKeyEnabled = (CopyObjectResponse -> Maybe Bool)
-> (CopyObjectResponse -> Maybe Bool -> CopyObjectResponse)
-> Lens
CopyObjectResponse CopyObjectResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe Bool
bucketKeyEnabled :: Maybe Bool
$sel:bucketKeyEnabled:CopyObjectResponse' :: CopyObjectResponse -> Maybe Bool
bucketKeyEnabled} -> Maybe Bool
bucketKeyEnabled) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe Bool
a -> CopyObjectResponse
s {$sel:bucketKeyEnabled:CopyObjectResponse' :: Maybe Bool
bucketKeyEnabled = Maybe Bool
a} :: CopyObjectResponse)
copyObjectResponse_copySourceVersionId :: Lens.Lens' CopyObjectResponse (Prelude.Maybe Prelude.Text)
copyObjectResponse_copySourceVersionId :: (Maybe Text -> f (Maybe Text))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_copySourceVersionId = (CopyObjectResponse -> Maybe Text)
-> (CopyObjectResponse -> Maybe Text -> CopyObjectResponse)
-> Lens
CopyObjectResponse CopyObjectResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe Text
copySourceVersionId :: Maybe Text
$sel:copySourceVersionId:CopyObjectResponse' :: CopyObjectResponse -> Maybe Text
copySourceVersionId} -> Maybe Text
copySourceVersionId) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe Text
a -> CopyObjectResponse
s {$sel:copySourceVersionId:CopyObjectResponse' :: Maybe Text
copySourceVersionId = Maybe Text
a} :: CopyObjectResponse)
copyObjectResponse_sSECustomerKeyMD5 :: Lens.Lens' CopyObjectResponse (Prelude.Maybe Prelude.Text)
copyObjectResponse_sSECustomerKeyMD5 :: (Maybe Text -> f (Maybe Text))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_sSECustomerKeyMD5 = (CopyObjectResponse -> Maybe Text)
-> (CopyObjectResponse -> Maybe Text -> CopyObjectResponse)
-> Lens
CopyObjectResponse CopyObjectResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe Text
sSECustomerKeyMD5 :: Maybe Text
$sel:sSECustomerKeyMD5:CopyObjectResponse' :: CopyObjectResponse -> Maybe Text
sSECustomerKeyMD5} -> Maybe Text
sSECustomerKeyMD5) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe Text
a -> CopyObjectResponse
s {$sel:sSECustomerKeyMD5:CopyObjectResponse' :: Maybe Text
sSECustomerKeyMD5 = Maybe Text
a} :: CopyObjectResponse)
copyObjectResponse_sSEKMSKeyId :: Lens.Lens' CopyObjectResponse (Prelude.Maybe Prelude.Text)
copyObjectResponse_sSEKMSKeyId :: (Maybe Text -> f (Maybe Text))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_sSEKMSKeyId = (CopyObjectResponse -> Maybe (Sensitive Text))
-> (CopyObjectResponse
-> Maybe (Sensitive Text) -> CopyObjectResponse)
-> Lens
CopyObjectResponse
CopyObjectResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe (Sensitive Text)
sSEKMSKeyId :: Maybe (Sensitive Text)
$sel:sSEKMSKeyId:CopyObjectResponse' :: CopyObjectResponse -> Maybe (Sensitive Text)
sSEKMSKeyId} -> Maybe (Sensitive Text)
sSEKMSKeyId) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe (Sensitive Text)
a -> CopyObjectResponse
s {$sel:sSEKMSKeyId:CopyObjectResponse' :: Maybe (Sensitive Text)
sSEKMSKeyId = Maybe (Sensitive Text)
a} :: CopyObjectResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CopyObjectResponse -> f CopyObjectResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CopyObjectResponse
-> f CopyObjectResponse
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
copyObjectResponse_sSEKMSEncryptionContext :: Lens.Lens' CopyObjectResponse (Prelude.Maybe Prelude.Text)
copyObjectResponse_sSEKMSEncryptionContext :: (Maybe Text -> f (Maybe Text))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_sSEKMSEncryptionContext = (CopyObjectResponse -> Maybe (Sensitive Text))
-> (CopyObjectResponse
-> Maybe (Sensitive Text) -> CopyObjectResponse)
-> Lens
CopyObjectResponse
CopyObjectResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe (Sensitive Text)
sSEKMSEncryptionContext :: Maybe (Sensitive Text)
$sel:sSEKMSEncryptionContext:CopyObjectResponse' :: CopyObjectResponse -> Maybe (Sensitive Text)
sSEKMSEncryptionContext} -> Maybe (Sensitive Text)
sSEKMSEncryptionContext) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe (Sensitive Text)
a -> CopyObjectResponse
s {$sel:sSEKMSEncryptionContext:CopyObjectResponse' :: Maybe (Sensitive Text)
sSEKMSEncryptionContext = Maybe (Sensitive Text)
a} :: CopyObjectResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CopyObjectResponse -> f CopyObjectResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CopyObjectResponse
-> f CopyObjectResponse
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
copyObjectResponse_serverSideEncryption :: Lens.Lens' CopyObjectResponse (Prelude.Maybe ServerSideEncryption)
copyObjectResponse_serverSideEncryption :: (Maybe ServerSideEncryption -> f (Maybe ServerSideEncryption))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_serverSideEncryption = (CopyObjectResponse -> Maybe ServerSideEncryption)
-> (CopyObjectResponse
-> Maybe ServerSideEncryption -> CopyObjectResponse)
-> Lens
CopyObjectResponse
CopyObjectResponse
(Maybe ServerSideEncryption)
(Maybe ServerSideEncryption)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe ServerSideEncryption
serverSideEncryption :: Maybe ServerSideEncryption
$sel:serverSideEncryption:CopyObjectResponse' :: CopyObjectResponse -> Maybe ServerSideEncryption
serverSideEncryption} -> Maybe ServerSideEncryption
serverSideEncryption) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe ServerSideEncryption
a -> CopyObjectResponse
s {$sel:serverSideEncryption:CopyObjectResponse' :: Maybe ServerSideEncryption
serverSideEncryption = Maybe ServerSideEncryption
a} :: CopyObjectResponse)
copyObjectResponse_copyObjectResult :: Lens.Lens' CopyObjectResponse (Prelude.Maybe CopyObjectResult)
copyObjectResponse_copyObjectResult :: (Maybe CopyObjectResult -> f (Maybe CopyObjectResult))
-> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_copyObjectResult = (CopyObjectResponse -> Maybe CopyObjectResult)
-> (CopyObjectResponse
-> Maybe CopyObjectResult -> CopyObjectResponse)
-> Lens
CopyObjectResponse
CopyObjectResponse
(Maybe CopyObjectResult)
(Maybe CopyObjectResult)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Maybe CopyObjectResult
copyObjectResult :: Maybe CopyObjectResult
$sel:copyObjectResult:CopyObjectResponse' :: CopyObjectResponse -> Maybe CopyObjectResult
copyObjectResult} -> Maybe CopyObjectResult
copyObjectResult) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Maybe CopyObjectResult
a -> CopyObjectResponse
s {$sel:copyObjectResult:CopyObjectResponse' :: Maybe CopyObjectResult
copyObjectResult = Maybe CopyObjectResult
a} :: CopyObjectResponse)
copyObjectResponse_httpStatus :: Lens.Lens' CopyObjectResponse Prelude.Int
copyObjectResponse_httpStatus :: (Int -> f Int) -> CopyObjectResponse -> f CopyObjectResponse
copyObjectResponse_httpStatus = (CopyObjectResponse -> Int)
-> (CopyObjectResponse -> Int -> CopyObjectResponse)
-> Lens CopyObjectResponse CopyObjectResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CopyObjectResponse' {Int
httpStatus :: Int
$sel:httpStatus:CopyObjectResponse' :: CopyObjectResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CopyObjectResponse
s@CopyObjectResponse' {} Int
a -> CopyObjectResponse
s {$sel:httpStatus:CopyObjectResponse' :: Int
httpStatus = Int
a} :: CopyObjectResponse)
instance Prelude.NFData CopyObjectResponse