Struct: s3.CopyObjectInput

import "../ibm-cos-sdk-go/service/s3"

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

ACL *string `location:"header" locationName:"x-amz-acl" type:"string" enum:"ObjectCannedACL"`

The canned ACL to apply to the object.

This action is not supported by Amazon S3 on Outposts.

Bucket *string `location:"uri" locationName:"Bucket" type:"string" required:"true"`

The name of the destination bucket.

When using this action with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using access points (docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html) in the Amazon S3 User Guide.

When you use this action with Amazon S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts hostname takes the form AccessPointName-AccountId.outpostID.s3-outposts.Region.amazonaws.com. When you use this action with S3 on Outposts through the Amazon Web Services SDKs, you provide the Outposts access point ARN in place of the bucket name. For more information about S3 on Outposts ARNs, see What is S3 on Outposts? (docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html) in the Amazon S3 User Guide.

Bucket is a required field

CacheControl *string `location:"header" locationName:"Cache-Control" type:"string"`

Specifies caching behavior along the request/reply chain.

ContentDisposition *string `location:"header" locationName:"Content-Disposition" type:"string"`

Specifies presentational information for the object.

ContentEncoding *string `location:"header" locationName:"Content-Encoding" type:"string"`

Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field.

ContentLanguage *string `location:"header" locationName:"Content-Language" type:"string"`

The language the content is in.

ContentType *string `location:"header" locationName:"Content-Type" type:"string"`

A standard MIME type describing the format of the object data.

CopySource *string `location:"header" locationName:"x-amz-copy-source" type:"string" required:"true"`

Specifies the source object for the copy operation. You specify the value in one of two formats, depending on whether you want to access the source object through an access point (docs.aws.amazon.com/AmazonS3/latest/userguide/access-points.html):

  • For objects not accessed through an access point, specify the name of the source bucket and the key of the source object, separated by a slash (/). For example, to copy the object reports/january.pdf from the bucket awsexamplebucket, use awsexamplebucket/reports/january.pdf. The value must be URL encoded.

  • For objects accessed through access points, specify the Amazon Resource Name (ARN) of the object as accessed through the access point, in the format arn:aws:s3:<Region>:<account-id>:accesspoint/<access-point-name>/object/<key>. For example, to copy the object reports/january.pdf through access point my-access-point owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3:us-west-2:123456789012:accesspoint/my-access-point/object/reports/january.pdf. The value must be URL encoded. Amazon S3 supports copy operations using access points only when the source and destination buckets are in the same AWS Region. Alternatively, for objects accessed through Amazon S3 on Outposts, specify the ARN of the object as accessed in the format arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/object/<key>. For example, to copy the object reports/january.pdf through outpost my-outpost owned by account 123456789012 in Region us-west-2, use the URL encoding of arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/object/reports/january.pdf. The value must be URL encoded.

To copy a specific version of an object, append ?versionId=<version-id> to the value (for example, awsexamplebucket/reports/january.pdf?versionId=QUpfdndhfd8438MNFDN93jdnJFkdmqnh893). If you don't specify a version ID, Amazon S3 copies the latest version of the source object.

CopySource is a required field

CopySourceIfMatch *string `location:"header" locationName:"x-amz-copy-source-if-match" type:"string"`

Copies the object if its entity tag (ETag) matches the specified tag.

CopySourceIfModifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-modified-since" type:"timestamp"`

Copies the object if it has been modified since the specified time.

CopySourceIfNoneMatch *string `location:"header" locationName:"x-amz-copy-source-if-none-match" type:"string"`

Copies the object if its entity tag (ETag) is different than the specified ETag.

CopySourceIfUnmodifiedSince *time.Time `location:"header" locationName:"x-amz-copy-source-if-unmodified-since" type:"timestamp"`

Copies the object if it hasn't been modified since the specified time.

CopySourceSSECustomerAlgorithm *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-algorithm" type:"string"`

Specifies the algorithm to use when decrypting the source object (for example, AES256).

CopySourceSSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key" type:"string" sensitive:"true"`

Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created.

CopySourceSSECustomerKey is a sensitive parameter and its value will be replaced with “sensitive” in string returned by CopyObjectInput's String and GoString methods.

CopySourceSSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-copy-source-server-side-encryption-customer-key-MD5" type:"string"`

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

Expires *time.Time `location:"header" locationName:"Expires" type:"timestamp"`

The date and time at which the object is no longer cacheable.

GrantFullControl *string `location:"header" locationName:"x-amz-grant-full-control" type:"string"`

Gives the grantee READ, READ_ACP, and WRITE_ACP permissions on the object.

This action is not supported by Amazon S3 on Outposts.

GrantRead *string `location:"header" locationName:"x-amz-grant-read" type:"string"`

Allows grantee to read the object data and its metadata.

This action is not supported by Amazon S3 on Outposts.

GrantReadACP *string `location:"header" locationName:"x-amz-grant-read-acp" type:"string"`

Allows grantee to read the object ACL.

This action is not supported by Amazon S3 on Outposts.

GrantWriteACP *string `location:"header" locationName:"x-amz-grant-write-acp" type:"string"`

Allows grantee to write the ACL for the applicable object.

This action is not supported by Amazon S3 on Outposts.

Key *string `location:"uri" locationName:"Key" min:"1" type:"string" required:"true"`

The key of the destination object.

Key is a required field

Metadata map[string]*string `location:"headers" locationName:"x-amz-meta-" type:"map"`

A map of metadata to store with the object in S3.

MetadataDirective *string `location:"header" locationName:"x-amz-metadata-directive" type:"string" enum:"MetadataDirective"`

Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request.

ObjectLockLegalHoldStatus *string `location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"`

Specifies whether you want to apply a Legal Hold to the copied object.

ObjectLockMode *string `location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"`

The Object Lock mode that you want to apply to the copied object.

ObjectLockRetainUntilDate *time.Time `location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`

The date and time when you want the copied object's Object Lock to expire.

RequestPayer *string `location:"header" locationName:"x-amz-request-payer" type:"string" enum:"RequestPayer"`

Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. If either the source or destination Amazon S3 bucket has Requester Pays enabled, the requester will pay for corresponding charges to copy the object. For information about downloading objects from Requester Pays buckets, see Downloading Objects in Requester Pays Buckets (docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the Amazon S3 User Guide.

RetentionDirective *string `location:"header" locationName:"Retention-Directive" type:"string" enum:"RetentionDirective"`

This header controls how the Protection state of the source object is copied to the destination object.If copied, the retention period and all legal holds are copied onto the new object. The legal hold date's is set to the date of the copy.

RetentionExpirationDate *time.Time `location:"header" locationName:"Retention-Expiration-Date" type:"timestamp"`

Date on which it will be legal to delete or modify the object. This field can only be specified if Retention-Directive is REPLACE. You can only specify this or the Retention-Period header. If both are specified a 400 error will be returned. If neither is specified the bucket's DefaultRetention period will be used.

RetentionLegalHoldId *string `location:"header" locationName:"Retention-Legal-Hold-ID" type:"string"`

A single legal hold to apply to the object. This field can only be specified if Retention-Directive is REPLACE. A legal hold is a character long string of max length 64. The object cannot be overwritten or deleted until all legal holds associated with the object are removed.

RetentionPeriod *int64 `location:"header" locationName:"Retention-Period" type:"integer"`

Retention period to store on the object in seconds. The object can be neither overwritten nor deleted until the amount of time specified in the retention period has elapsed. If this field and Retention-Expiration-Date are specified a 400 error is returned. If neither is specified the bucket's DefaultRetention period will be used. 0 is a legal value assuming the bucket's minimum retention period is also 0.

SSECustomerAlgorithm *string `location:"header" locationName:"x-amz-server-side-encryption-customer-algorithm" type:"string"`

Specifies the algorithm to use to when encrypting the object (for example, AES256).

SSECustomerKey *string `marshal-as:"blob" location:"header" locationName:"x-amz-server-side-encryption-customer-key" type:"string" sensitive:"true"`

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header.

SSECustomerKey is a sensitive parameter and its value will be replaced with “sensitive” in string returned by CopyObjectInput's String and GoString methods.

SSECustomerKeyMD5 *string `location:"header" locationName:"x-amz-server-side-encryption-customer-key-MD5" type:"string"`

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

SSEKMSKeyId *string `location:"header" locationName:"x-amz-server-side-encryption-aws-kms-key-id" type:"string" sensitive:"true"`

Specifies the KMS ID (Key ID, Key ARN, or Key Alias) to use for object encryption. All GET and PUT requests for an object protected by KMS will fail if they're not made via SSL or using SigV4. For information about configuring any of the officially supported Amazon Web Services SDKs and Amazon Web Services CLI, see Specifying the Signature Version in Request Authentication (docs.aws.amazon.com/AmazonS3/latest/dev/UsingAWSSDK.html#specify-signature-version) in the Amazon S3 User Guide.

SSEKMSKeyId is a sensitive parameter and its value will be replaced with “sensitive” in string returned by CopyObjectInput's String and GoString methods.

ServerSideEncryption *string `location:"header" locationName:"x-amz-server-side-encryption" type:"string" enum:"ServerSideEncryption"`

The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms, aws:kms:dsse).

StorageClass *string `location:"header" locationName:"x-amz-storage-class" type:"string" enum:"StorageClass"`

If the x-amz-storage-class header is not used, the copied object will be stored in the STANDARD Storage Class by default. The STANDARD storage class provides high durability and high availability. Depending on performance needs, you can specify a different Storage Class. Amazon S3 on Outposts only uses the OUTPOSTS Storage Class. For more information, see Storage Classes (docs.aws.amazon.com/AmazonS3/latest/dev/storage-class-intro.html) in the Amazon S3 User Guide.

Tagging *string `location:"header" locationName:"x-amz-tagging" type:"string"`

The tag-set for the object destination object this value must be used in conjunction with the TaggingDirective. The tag-set must be encoded as URL Query parameters.

TaggingDirective *string `location:"header" locationName:"x-amz-tagging-directive" type:"string" enum:"TaggingDirective"`

Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request.

WebsiteRedirectLocation *string `location:"header" locationName:"x-amz-website-redirect-location" type:"string"`

If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL. Amazon S3 stores the value of this header in the object metadata. This value is unique to each object and is not copied when using the x-amz-metadata-directive header. Instead, you may opt to provide this header in combination with the directive.

_ struct{} `locationName:"CopyObjectRequest" type:"structure"`

Method Details

func (s CopyObjectInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



8578
8579
8580
// File 'service/s3/api.go', line 8578

func (s CopyObjectInput) GoString() string { return s.String() }

func (s *CopyObjectInput) SetACL(v string) *CopyObjectInput

SetACL sets the ACL field's value.



8608
8609
8610
8611
// File 'service/s3/api.go', line 8608

func (s *CopyObjectInput) SetACL(v string) *CopyObjectInput { s.ACL = &v return s }

func (s *CopyObjectInput) SetBucket(v string) *CopyObjectInput

SetBucket sets the Bucket field's value.



8614
8615
8616
8617
// File 'service/s3/api.go', line 8614

func (s *CopyObjectInput) SetBucket(v string) *CopyObjectInput { s.Bucket = &v return s }

func (s *CopyObjectInput) SetCacheControl(v string) *CopyObjectInput

SetCacheControl sets the CacheControl field's value.



8627
8628
8629
8630
// File 'service/s3/api.go', line 8627

func (s *CopyObjectInput) SetCacheControl(v string) *CopyObjectInput { s.CacheControl = &v return s }

func (s *CopyObjectInput) SetContentDisposition(v string) *CopyObjectInput

SetContentDisposition sets the ContentDisposition field's value.



8633
8634
8635
8636
// File 'service/s3/api.go', line 8633

func (s *CopyObjectInput) SetContentDisposition(v string) *CopyObjectInput { s.ContentDisposition = &v return s }

func (s *CopyObjectInput) SetContentEncoding(v string) *CopyObjectInput

SetContentEncoding sets the ContentEncoding field's value.



8639
8640
8641
8642
// File 'service/s3/api.go', line 8639

func (s *CopyObjectInput) SetContentEncoding(v string) *CopyObjectInput { s.ContentEncoding = &v return s }

func (s *CopyObjectInput) SetContentLanguage(v string) *CopyObjectInput

SetContentLanguage sets the ContentLanguage field's value.



8645
8646
8647
8648
// File 'service/s3/api.go', line 8645

func (s *CopyObjectInput) SetContentLanguage(v string) *CopyObjectInput { s.ContentLanguage = &v return s }

func (s *CopyObjectInput) SetContentType(v string) *CopyObjectInput

SetContentType sets the ContentType field's value.



8651
8652
8653
8654
// File 'service/s3/api.go', line 8651

func (s *CopyObjectInput) SetContentType(v string) *CopyObjectInput { s.ContentType = &v return s }

func (s *CopyObjectInput) SetCopySource(v string) *CopyObjectInput

SetCopySource sets the CopySource field's value.



8657
8658
8659
8660
// File 'service/s3/api.go', line 8657

func (s *CopyObjectInput) SetCopySource(v string) *CopyObjectInput { s.CopySource = &v return s }

func (s *CopyObjectInput) SetCopySourceIfMatch(v string) *CopyObjectInput

SetCopySourceIfMatch sets the CopySourceIfMatch field's value.



8663
8664
8665
8666
// File 'service/s3/api.go', line 8663

func (s *CopyObjectInput) SetCopySourceIfMatch(v string) *CopyObjectInput { s.CopySourceIfMatch = &v return s }

func (s *CopyObjectInput) SetCopySourceIfModifiedSince(v time.Time) *CopyObjectInput

SetCopySourceIfModifiedSince sets the CopySourceIfModifiedSince field's value.



8669
8670
8671
8672
// File 'service/s3/api.go', line 8669

func (s *CopyObjectInput) SetCopySourceIfModifiedSince(v time.Time) *CopyObjectInput { s.CopySourceIfModifiedSince = &v return s }

func (s *CopyObjectInput) SetCopySourceIfNoneMatch(v string) *CopyObjectInput

SetCopySourceIfNoneMatch sets the CopySourceIfNoneMatch field's value.



8675
8676
8677
8678
// File 'service/s3/api.go', line 8675

func (s *CopyObjectInput) SetCopySourceIfNoneMatch(v string) *CopyObjectInput { s.CopySourceIfNoneMatch = &v return s }

func (s *CopyObjectInput) SetCopySourceIfUnmodifiedSince(v time.Time) *CopyObjectInput

SetCopySourceIfUnmodifiedSince sets the CopySourceIfUnmodifiedSince field's value.



8681
8682
8683
8684
// File 'service/s3/api.go', line 8681

func (s *CopyObjectInput) SetCopySourceIfUnmodifiedSince(v time.Time) *CopyObjectInput { s.CopySourceIfUnmodifiedSince = &v return s }

func (s *CopyObjectInput) SetCopySourceSSECustomerAlgorithm(v string) *CopyObjectInput

SetCopySourceSSECustomerAlgorithm sets the CopySourceSSECustomerAlgorithm field's value.



8687
8688
8689
8690
// File 'service/s3/api.go', line 8687

func (s *CopyObjectInput) SetCopySourceSSECustomerAlgorithm(v string) *CopyObjectInput { s.CopySourceSSECustomerAlgorithm = &v return s }

func (s *CopyObjectInput) SetCopySourceSSECustomerKey(v string) *CopyObjectInput

SetCopySourceSSECustomerKey sets the CopySourceSSECustomerKey field's value.



8693
8694
8695
8696
// File 'service/s3/api.go', line 8693

func (s *CopyObjectInput) SetCopySourceSSECustomerKey(v string) *CopyObjectInput { s.CopySourceSSECustomerKey = &v return s }

func (s *CopyObjectInput) SetCopySourceSSECustomerKeyMD5(v string) *CopyObjectInput

SetCopySourceSSECustomerKeyMD5 sets the CopySourceSSECustomerKeyMD5 field's value.



8706
8707
8708
8709
// File 'service/s3/api.go', line 8706

func (s *CopyObjectInput) SetCopySourceSSECustomerKeyMD5(v string) *CopyObjectInput { s.CopySourceSSECustomerKeyMD5 = &v return s }

func (s *CopyObjectInput) SetExpires(v time.Time) *CopyObjectInput

SetExpires sets the Expires field's value.



8712
8713
8714
8715
// File 'service/s3/api.go', line 8712

func (s *CopyObjectInput) SetExpires(v time.Time) *CopyObjectInput { s.Expires = &v return s }

func (s *CopyObjectInput) SetGrantFullControl(v string) *CopyObjectInput

SetGrantFullControl sets the GrantFullControl field's value.



8718
8719
8720
8721
// File 'service/s3/api.go', line 8718

func (s *CopyObjectInput) SetGrantFullControl(v string) *CopyObjectInput { s.GrantFullControl = &v return s }

func (s *CopyObjectInput) SetGrantRead(v string) *CopyObjectInput

SetGrantRead sets the GrantRead field's value.



8724
8725
8726
8727
// File 'service/s3/api.go', line 8724

func (s *CopyObjectInput) SetGrantRead(v string) *CopyObjectInput { s.GrantRead = &v return s }

func (s *CopyObjectInput) SetGrantReadACP(v string) *CopyObjectInput

SetGrantReadACP sets the GrantReadACP field's value.



8730
8731
8732
8733
// File 'service/s3/api.go', line 8730

func (s *CopyObjectInput) SetGrantReadACP(v string) *CopyObjectInput { s.GrantReadACP = &v return s }

func (s *CopyObjectInput) SetGrantWriteACP(v string) *CopyObjectInput

SetGrantWriteACP sets the GrantWriteACP field's value.



8736
8737
8738
8739
// File 'service/s3/api.go', line 8736

func (s *CopyObjectInput) SetGrantWriteACP(v string) *CopyObjectInput { s.GrantWriteACP = &v return s }

func (s *CopyObjectInput) SetKey(v string) *CopyObjectInput

SetKey sets the Key field's value.



8742
8743
8744
8745
// File 'service/s3/api.go', line 8742

func (s *CopyObjectInput) SetKey(v string) *CopyObjectInput { s.Key = &v return s }

func (s *CopyObjectInput) SetMetadata(v map[string]*string) *CopyObjectInput

SetMetadata sets the Metadata field's value.



8748
8749
8750
8751
// File 'service/s3/api.go', line 8748

func (s *CopyObjectInput) SetMetadata(v map[string]*string) *CopyObjectInput { s.Metadata = v return s }

func (s *CopyObjectInput) SetMetadataDirective(v string) *CopyObjectInput

SetMetadataDirective sets the MetadataDirective field's value.



8754
8755
8756
8757
// File 'service/s3/api.go', line 8754

func (s *CopyObjectInput) SetMetadataDirective(v string) *CopyObjectInput { s.MetadataDirective = &v return s }

func (s *CopyObjectInput) SetObjectLockLegalHoldStatus(v string) *CopyObjectInput

SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value.



8760
8761
8762
8763
// File 'service/s3/api.go', line 8760

func (s *CopyObjectInput) SetObjectLockLegalHoldStatus(v string) *CopyObjectInput { s.ObjectLockLegalHoldStatus = &v return s }

func (s *CopyObjectInput) SetObjectLockMode(v string) *CopyObjectInput

SetObjectLockMode sets the ObjectLockMode field's value.



8766
8767
8768
8769
// File 'service/s3/api.go', line 8766

func (s *CopyObjectInput) SetObjectLockMode(v string) *CopyObjectInput { s.ObjectLockMode = &v return s }

func (s *CopyObjectInput) SetObjectLockRetainUntilDate(v time.Time) *CopyObjectInput

SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value.



8772
8773
8774
8775
// File 'service/s3/api.go', line 8772

func (s *CopyObjectInput) SetObjectLockRetainUntilDate(v time.Time) *CopyObjectInput { s.ObjectLockRetainUntilDate = &v return s }

func (s *CopyObjectInput) SetRequestPayer(v string) *CopyObjectInput

SetRequestPayer sets the RequestPayer field's value.



8778
8779
8780
8781
// File 'service/s3/api.go', line 8778

func (s *CopyObjectInput) SetRequestPayer(v string) *CopyObjectInput { s.RequestPayer = &v return s }

func (s *CopyObjectInput) SetRetentionDirective(v string) *CopyObjectInput

SetRetentionDirective sets the RetentionDirective field's value.



8784
8785
8786
8787
// File 'service/s3/api.go', line 8784

func (s *CopyObjectInput) SetRetentionDirective(v string) *CopyObjectInput { s.RetentionDirective = &v return s }

func (s *CopyObjectInput) SetRetentionExpirationDate(v time.Time) *CopyObjectInput

SetRetentionExpirationDate sets the RetentionExpirationDate field's value.



8790
8791
8792
8793
// File 'service/s3/api.go', line 8790

func (s *CopyObjectInput) SetRetentionExpirationDate(v time.Time) *CopyObjectInput { s.RetentionExpirationDate = &v return s }

func (s *CopyObjectInput) SetRetentionLegalHoldId(v string) *CopyObjectInput

SetRetentionLegalHoldId sets the RetentionLegalHoldId field's value.



8796
8797
8798
8799
// File 'service/s3/api.go', line 8796

func (s *CopyObjectInput) SetRetentionLegalHoldId(v string) *CopyObjectInput { s.RetentionLegalHoldId = &v return s }

func (s *CopyObjectInput) SetRetentionPeriod(v int64) *CopyObjectInput

SetRetentionPeriod sets the RetentionPeriod field's value.



8802
8803
8804
8805
// File 'service/s3/api.go', line 8802

func (s *CopyObjectInput) SetRetentionPeriod(v int64) *CopyObjectInput { s.RetentionPeriod = &v return s }

func (s *CopyObjectInput) SetServerSideEncryption(v string) *CopyObjectInput

SetServerSideEncryption sets the ServerSideEncryption field's value.



8839
8840
8841
8842
// File 'service/s3/api.go', line 8839

func (s *CopyObjectInput) SetServerSideEncryption(v string) *CopyObjectInput { s.ServerSideEncryption = &v return s }

func (s *CopyObjectInput) SetSSECustomerAlgorithm(v string) *CopyObjectInput

SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.



8808
8809
8810
8811
// File 'service/s3/api.go', line 8808

func (s *CopyObjectInput) SetSSECustomerAlgorithm(v string) *CopyObjectInput { s.SSECustomerAlgorithm = &v return s }

func (s *CopyObjectInput) SetSSECustomerKey(v string) *CopyObjectInput

SetSSECustomerKey sets the SSECustomerKey field's value.



8814
8815
8816
8817
// File 'service/s3/api.go', line 8814

func (s *CopyObjectInput) SetSSECustomerKey(v string) *CopyObjectInput { s.SSECustomerKey = &v return s }

func (s *CopyObjectInput) SetSSECustomerKeyMD5(v string) *CopyObjectInput

SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.



8827
8828
8829
8830
// File 'service/s3/api.go', line 8827

func (s *CopyObjectInput) SetSSECustomerKeyMD5(v string) *CopyObjectInput { s.SSECustomerKeyMD5 = &v return s }

func (s *CopyObjectInput) SetSSEKMSKeyId(v string) *CopyObjectInput

SetSSEKMSKeyId sets the SSEKMSKeyId field's value.



8833
8834
8835
8836
// File 'service/s3/api.go', line 8833

func (s *CopyObjectInput) SetSSEKMSKeyId(v string) *CopyObjectInput { s.SSEKMSKeyId = &v return s }

func (s *CopyObjectInput) SetStorageClass(v string) *CopyObjectInput

SetStorageClass sets the StorageClass field's value.



8845
8846
8847
8848
// File 'service/s3/api.go', line 8845

func (s *CopyObjectInput) SetStorageClass(v string) *CopyObjectInput { s.StorageClass = &v return s }

func (s *CopyObjectInput) SetTagging(v string) *CopyObjectInput

SetTagging sets the Tagging field's value.



8851
8852
8853
8854
// File 'service/s3/api.go', line 8851

func (s *CopyObjectInput) SetTagging(v string) *CopyObjectInput { s.Tagging = &v return s }

func (s *CopyObjectInput) SetTaggingDirective(v string) *CopyObjectInput

SetTaggingDirective sets the TaggingDirective field's value.



8857
8858
8859
8860
// File 'service/s3/api.go', line 8857

func (s *CopyObjectInput) SetTaggingDirective(v string) *CopyObjectInput { s.TaggingDirective = &v return s }

func (s *CopyObjectInput) SetWebsiteRedirectLocation(v string) *CopyObjectInput

SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.



8863
8864
8865
8866
// File 'service/s3/api.go', line 8863

func (s *CopyObjectInput) SetWebsiteRedirectLocation(v string) *CopyObjectInput { s.WebsiteRedirectLocation = &v return s }

func (s CopyObjectInput) String() string

String returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



8569
8570
8571
// File 'service/s3/api.go', line 8569

func (s CopyObjectInput) String() string { return awsutil.Prettify(s) }

func (s *CopyObjectInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.



8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
// File 'service/s3/api.go', line 8583

func (s *CopyObjectInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "CopyObjectInput"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } if s.Bucket != nil && len(*s.Bucket) < 1 { invalidParams.Add(request.NewErrParamMinLen("Bucket", 1)) } if s.CopySource == nil { invalidParams.Add(request.NewErrParamRequired("CopySource")) } if s.Key == nil { invalidParams.Add(request.NewErrParamRequired("Key")) } if s.Key != nil && len(*s.Key) < 1 { invalidParams.Add(request.NewErrParamMinLen("Key", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil }