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”.



20494
20495
20496
// File 'service/s3/api.go', line 20494

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

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

SetETag sets the ETag field's value.



20499
20500
20501
20502
// File 'service/s3/api.go', line 20499

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.



20505
20506
20507
20508
// File 'service/s3/api.go', line 20505

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.



20511
20512
20513
20514
// File 'service/s3/api.go', line 20511

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.



20535
20536
20537
20538
// File 'service/s3/api.go', line 20535

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.



20517
20518
20519
20520
// File 'service/s3/api.go', line 20517

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.



20523
20524
20525
20526
// File 'service/s3/api.go', line 20523

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.



20529
20530
20531
20532
// File 'service/s3/api.go', line 20529

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.



20541
20542
20543
20544
// File 'service/s3/api.go', line 20541

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”.



20485
20486
20487
// File 'service/s3/api.go', line 20485

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