Struct: s3.PutObjectOutput

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

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

ETag *string `location:"header" locationName:"ETag" type:"string"`

Entity tag for the uploaded object.

Expiration *string `location:"header" locationName:"x-amz-expiration" type:"string"`

If the expiration is configured for the object (see PutBucketLifecycleConfiguration (docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLifecycleConfiguration.html)), the response includes this header. It includes the expiry-date and rule-id key-value pairs that provide information about object expiration. The value of the rule-id is URL encoded.

RequestCharged *string `location:"header" locationName:"x-amz-request-charged" type:"string" enum:"RequestCharged"`

If present, indicates that the requester was successfully charged for the request.

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

If server-side encryption with a customer-provided encryption key was requested, the response will include this header confirming the encryption algorithm used.

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

If server-side encryption with a customer-provided encryption key was requested, the response will include this header to provide round-trip message integrity verification of the customer-provided encryption key.

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

If x-amz-server-side-encryption has a valid value of aws:kms or aws:kms:dsse, this header specifies the ID of the Key Management Service (KMS) symmetric encryption customer managed key that was used for the object.

SSEKMSKeyId is a sensitive parameter and its value will be replaced with “sensitive” in string returned by PutObjectOutput'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).

VersionId *string `location:"header" locationName:"x-amz-version-id" type:"string"`

Version of the object.

_ struct{} `type:"structure"`

Method Details

func (s PutObjectOutput) 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”.



20731
20732
20733
// File 'service/s3/api.go', line 20731

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

func (s *PutObjectOutput) SetETag(v string) *PutObjectOutput

SetETag sets the ETag field's value.



20736
20737
20738
20739
// File 'service/s3/api.go', line 20736

func (s *PutObjectOutput) SetETag(v string) *PutObjectOutput { s.ETag = &v return s }

func (s *PutObjectOutput) SetExpiration(v string) *PutObjectOutput

SetExpiration sets the Expiration field's value.



20742
20743
20744
20745
// File 'service/s3/api.go', line 20742

func (s *PutObjectOutput) SetExpiration(v string) *PutObjectOutput { s.Expiration = &v return s }

func (s *PutObjectOutput) SetRequestCharged(v string) *PutObjectOutput

SetRequestCharged sets the RequestCharged field's value.



20748
20749
20750
20751
// File 'service/s3/api.go', line 20748

func (s *PutObjectOutput) SetRequestCharged(v string) *PutObjectOutput { s.RequestCharged = &v return s }

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

SetServerSideEncryption sets the ServerSideEncryption field's value.



20772
20773
20774
20775
// File 'service/s3/api.go', line 20772

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

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

SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.



20754
20755
20756
20757
// File 'service/s3/api.go', line 20754

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

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

SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.



20760
20761
20762
20763
// File 'service/s3/api.go', line 20760

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

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

SetSSEKMSKeyId sets the SSEKMSKeyId field's value.



20766
20767
20768
20769
// File 'service/s3/api.go', line 20766

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

func (s *PutObjectOutput) SetVersionId(v string) *PutObjectOutput

SetVersionId sets the VersionId field's value.



20778
20779
20780
20781
// File 'service/s3/api.go', line 20778

func (s *PutObjectOutput) SetVersionId(v string) *PutObjectOutput { s.VersionId = &v return s }

func (s PutObjectOutput) 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”.



20722
20723
20724
// File 'service/s3/api.go', line 20722

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