Struct: s3.GetObjectOutput
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
AcceptRanges *string
Indicates that a range of bytes was specified.
-
Body io.ReadCloser
Object data.
-
CacheControl *string
Specifies caching behavior along the request/reply chain.
-
ContentDisposition *string
Specifies presentational information for the object.
-
ContentEncoding *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
The language the content is in.
-
ContentLength *int64
Size of the body in bytes.
-
ContentRange *string
The portion of the object returned in the response.
-
ContentType *string
A standard MIME type describing the format of the object data.
-
DeleteMarker *bool
Specifies whether the object retrieved was (true) or was not (false) a Delete Marker.
-
ETag *string
An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
-
Expiration *string
If the object expiration is configured (see PUT Bucket lifecycle), the response includes this header.
-
Expires *string
The date and time at which the object is no longer cacheable.
- IBMRestoredCopyStorageClass *string
-
IBMTransition *string
This header is only included if an object has transition metadata.
-
LastModified *time.Time
Creation date of the object.
-
Metadata map[string]*string
A map of metadata to store with the object in S3.
-
MissingMeta *int64
This is set to the number of metadata entries not returned in x-amz-meta headers.
-
ObjectLockLegalHoldStatus *string
Indicates whether this object has an active legal hold.
-
ObjectLockMode *string
The Object Lock mode currently in place for this object.
-
ObjectLockRetainUntilDate *time.Time
The date and time when this object's Object Lock will expire.
-
PartsCount *int64
The count of parts this object has.
-
ReplicationStatus *string
Amazon S3 can return this if your request involves a bucket that is either a source or destination in a replication rule.
-
RequestCharged *string
If present, indicates that the requester was successfully charged for the request.
-
Restore *string
Provides information about object restoration action and expiration time of the restored object copy.
-
RetentionExpirationDate *time.Time
Date on which it will be legal to delete or modify the object.
- RetentionLegalHoldCount *int64
-
RetentionPeriod *int64
Retention period to store on the object in seconds.
-
SSECustomerAlgorithm *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
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
If present, specifies the ID of the Key Management Service (KMS) symmetric encryption customer managed key that was used for the object.
-
ServerSideEncryption *string
The server-side encryption algorithm used when storing this object in Amazon S3 (for example, AES256, aws:kms, aws:kms:dsse).
-
StorageClass *string
Provides storage class information of the object.
-
TagCount *int64
The number of tags, if any, on the object.
-
VersionId *string
Version of the object.
-
WebsiteRedirectLocation *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.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetAcceptRanges(string) *GetObjectOutput
operation
SetAcceptRanges sets the AcceptRanges field's value.
-
SetBody(io.ReadCloser) *GetObjectOutput
operation
SetBody sets the Body field's value.
-
SetCacheControl(string) *GetObjectOutput
operation
SetCacheControl sets the CacheControl field's value.
-
SetContentDisposition(string) *GetObjectOutput
operation
SetContentDisposition sets the ContentDisposition field's value.
-
SetContentEncoding(string) *GetObjectOutput
operation
SetContentEncoding sets the ContentEncoding field's value.
-
SetContentLanguage(string) *GetObjectOutput
operation
SetContentLanguage sets the ContentLanguage field's value.
-
SetContentLength(int64) *GetObjectOutput
operation
SetContentLength sets the ContentLength field's value.
-
SetContentRange(string) *GetObjectOutput
operation
SetContentRange sets the ContentRange field's value.
-
SetContentType(string) *GetObjectOutput
operation
SetContentType sets the ContentType field's value.
-
SetDeleteMarker(bool) *GetObjectOutput
operation
SetDeleteMarker sets the DeleteMarker field's value.
-
SetETag(string) *GetObjectOutput
operation
SetETag sets the ETag field's value.
-
SetExpiration(string) *GetObjectOutput
operation
SetExpiration sets the Expiration field's value.
-
SetExpires(string) *GetObjectOutput
operation
SetExpires sets the Expires field's value.
-
SetIBMRestoredCopyStorageClass(string) *GetObjectOutput
operation
SetIBMRestoredCopyStorageClass sets the IBMRestoredCopyStorageClass field's value.
-
SetIBMTransition(string) *GetObjectOutput
operation
SetIBMTransition sets the IBMTransition field's value.
-
SetLastModified(time.Time) *GetObjectOutput
operation
SetLastModified sets the LastModified field's value.
-
SetMetadata(map[string]*string) *GetObjectOutput
operation
SetMetadata sets the Metadata field's value.
-
SetMissingMeta(int64) *GetObjectOutput
operation
SetMissingMeta sets the MissingMeta field's value.
-
SetObjectLockLegalHoldStatus(string) *GetObjectOutput
operation
SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value.
-
SetObjectLockMode(string) *GetObjectOutput
operation
SetObjectLockMode sets the ObjectLockMode field's value.
-
SetObjectLockRetainUntilDate(time.Time) *GetObjectOutput
operation
SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value.
-
SetPartsCount(int64) *GetObjectOutput
operation
SetPartsCount sets the PartsCount field's value.
-
SetReplicationStatus(string) *GetObjectOutput
operation
SetReplicationStatus sets the ReplicationStatus field's value.
-
SetRequestCharged(string) *GetObjectOutput
operation
SetRequestCharged sets the RequestCharged field's value.
-
SetRestore(string) *GetObjectOutput
operation
SetRestore sets the Restore field's value.
-
SetRetentionExpirationDate(time.Time) *GetObjectOutput
operation
SetRetentionExpirationDate sets the RetentionExpirationDate field's value.
-
SetRetentionLegalHoldCount(int64) *GetObjectOutput
operation
SetRetentionLegalHoldCount sets the RetentionLegalHoldCount field's value.
-
SetRetentionPeriod(int64) *GetObjectOutput
operation
SetRetentionPeriod sets the RetentionPeriod field's value.
-
SetServerSideEncryption(string) *GetObjectOutput
operation
SetServerSideEncryption sets the ServerSideEncryption field's value.
-
SetSSECustomerAlgorithm(string) *GetObjectOutput
operation
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
-
SetSSECustomerKeyMD5(string) *GetObjectOutput
operation
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
-
SetSSEKMSKeyId(string) *GetObjectOutput
operation
SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
-
SetStorageClass(string) *GetObjectOutput
operation
SetStorageClass sets the StorageClass field's value.
-
SetTagCount(int64) *GetObjectOutput
operation
SetTagCount sets the TagCount field's value.
-
SetVersionId(string) *GetObjectOutput
operation
SetVersionId sets the VersionId field's value.
-
SetWebsiteRedirectLocation(string) *GetObjectOutput
operation
SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
-
String() string
operation
String returns the string representation.
Structure Field Details
AcceptRanges *string
`location:"header" locationName:"accept-ranges" type:"string"`
Indicates that a range of bytes was specified.
Body io.ReadCloser
`type:"blob"`
Object data.
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.
ContentLength *int64
`location:"header" locationName:"Content-Length" type:"long"`
Size of the body in bytes.
ContentRange *string
`location:"header" locationName:"Content-Range" type:"string"`
The portion of the object returned in the response.
ContentType *string
`location:"header" locationName:"Content-Type" type:"string"`
A standard MIME type describing the format of the object data.
DeleteMarker *bool
`location:"header" locationName:"x-amz-delete-marker" type:"boolean"`
Specifies whether the object retrieved was (true) or was not (false) a Delete Marker. If false, this response header does not appear in the response.
ETag *string
`location:"header" locationName:"ETag" type:"string"`
An ETag is an opaque identifier assigned by a web server to a specific version of a resource found at a URL.
Expiration *string
`location:"header" locationName:"x-amz-expiration" type:"string"`
If the object expiration is configured (see PUT Bucket lifecycle), the response includes this header. It includes the expiry-date and rule-id key-value pairs providing object expiration information. The value of the rule-id is URL encoded.
Expires *string
`location:"header" locationName:"Expires" type:"string"`
The date and time at which the object is no longer cacheable.
IBMRestoredCopyStorageClass *string
`location:"header" locationName:"x-ibm-restored-copy-storage-class" type:"string" enum:"StorageClass"`
IBMTransition *string
`location:"header" locationName:"x-ibm-transition" type:"string"`
This header is only included if an object has transition metadata. This header will indicate the transition storage class and time of transition. If this header and the x-amz-restore header are both included, this header will indicate the time at which the object was originally archived.
LastModified *time.Time
`location:"header" locationName:"Last-Modified" type:"timestamp"`
Creation date of the object.
Metadata map[string]*string
`location:"headers" locationName:"x-amz-meta-" type:"map"`
A map of metadata to store with the object in S3.
By default unmarshaled keys are written as a map keys in following canonicalized format: the first letter and any letter following a hyphen will be capitalized, and the rest as lowercase. Set aws.Config.LowerCaseHeaderMaps
to true
to write unmarshaled keys to the map as lowercase.
MissingMeta *int64
`location:"header" locationName:"x-amz-missing-meta" type:"integer"`
This is set to the number of metadata entries not returned in x-amz-meta headers. This can happen if you create metadata using an API like SOAP that supports more flexible metadata than the REST API. For example, using SOAP, you can create metadata whose values are not legal HTTP headers.
ObjectLockLegalHoldStatus *string
`location:"header" locationName:"x-amz-object-lock-legal-hold" type:"string" enum:"ObjectLockLegalHoldStatus"`
Indicates whether this object has an active legal hold. This field is only returned if you have permission to view an object's legal hold status.
ObjectLockMode *string
`location:"header" locationName:"x-amz-object-lock-mode" type:"string" enum:"ObjectLockMode"`
The Object Lock mode currently in place for this object.
ObjectLockRetainUntilDate *time.Time
`location:"header" locationName:"x-amz-object-lock-retain-until-date" type:"timestamp" timestampFormat:"iso8601"`
The date and time when this object's Object Lock will expire.
PartsCount *int64
`location:"header" locationName:"x-amz-mp-parts-count" type:"integer"`
The count of parts this object has.
ReplicationStatus *string
`location:"header" locationName:"x-amz-replication-status" type:"string" enum:"ReplicationStatus"`
Amazon S3 can return this if your request involves a bucket that is either a source or destination in a replication rule.
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.
Restore *string
`location:"header" locationName:"x-amz-restore" type:"string"`
Provides information about object restoration action and expiration time of the restored object 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. 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.
RetentionLegalHoldCount *int64
`location:"header" locationName:"Retention-Legal-Hold-Count" type:"integer"`
RetentionPeriod *int64
`location:"header" locationName:"Retention-Period" type:"integer"`
Retention period to store on the object in seconds. 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"`
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 present, 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 GetObjectOutput'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"`
Provides storage class information of the object. Amazon S3 returns this header for all objects except for S3 Standard storage class objects.
TagCount *int64
`location:"header" locationName:"x-amz-tagging-count" type:"integer"`
The number of tags, if any, on the object.
VersionId *string
`location:"header" locationName:"x-amz-version-id" type:"string"`
Version of the object.
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.
_ struct{}
`type:"structure" payload:"Body"`
Method Details
func (s GetObjectOutput) 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”.
13736 13737 13738 |
// File 'service/s3/api.go', line 13736
|
func (s *GetObjectOutput) SetAcceptRanges(v string) *GetObjectOutput
SetAcceptRanges sets the AcceptRanges field's value.
13741 13742 13743 13744 |
// File 'service/s3/api.go', line 13741
|
func (s *GetObjectOutput) SetBody(v io.ReadCloser) *GetObjectOutput
SetBody sets the Body field's value.
13747 13748 13749 13750 |
// File 'service/s3/api.go', line 13747
|
func (s *GetObjectOutput) SetCacheControl(v string) *GetObjectOutput
SetCacheControl sets the CacheControl field's value.
13753 13754 13755 13756 |
// File 'service/s3/api.go', line 13753
|
func (s *GetObjectOutput) SetContentDisposition(v string) *GetObjectOutput
SetContentDisposition sets the ContentDisposition field's value.
13759 13760 13761 13762 |
// File 'service/s3/api.go', line 13759
|
func (s *GetObjectOutput) SetContentEncoding(v string) *GetObjectOutput
SetContentEncoding sets the ContentEncoding field's value.
13765 13766 13767 13768 |
// File 'service/s3/api.go', line 13765
|
func (s *GetObjectOutput) SetContentLanguage(v string) *GetObjectOutput
SetContentLanguage sets the ContentLanguage field's value.
13771 13772 13773 13774 |
// File 'service/s3/api.go', line 13771
|
func (s *GetObjectOutput) SetContentLength(v int64) *GetObjectOutput
SetContentLength sets the ContentLength field's value.
13777 13778 13779 13780 |
// File 'service/s3/api.go', line 13777
|
func (s *GetObjectOutput) SetContentRange(v string) *GetObjectOutput
SetContentRange sets the ContentRange field's value.
13783 13784 13785 13786 |
// File 'service/s3/api.go', line 13783
|
func (s *GetObjectOutput) SetContentType(v string) *GetObjectOutput
SetContentType sets the ContentType field's value.
13789 13790 13791 13792 |
// File 'service/s3/api.go', line 13789
|
func (s *GetObjectOutput) SetDeleteMarker(v bool) *GetObjectOutput
SetDeleteMarker sets the DeleteMarker field's value.
13795 13796 13797 13798 |
// File 'service/s3/api.go', line 13795
|
func (s *GetObjectOutput) SetETag(v string) *GetObjectOutput
SetETag sets the ETag field's value.
13801 13802 13803 13804 |
// File 'service/s3/api.go', line 13801
|
func (s *GetObjectOutput) SetExpiration(v string) *GetObjectOutput
SetExpiration sets the Expiration field's value.
13807 13808 13809 13810 |
// File 'service/s3/api.go', line 13807
|
func (s *GetObjectOutput) SetExpires(v string) *GetObjectOutput
SetExpires sets the Expires field's value.
13813 13814 13815 13816 |
// File 'service/s3/api.go', line 13813
|
func (s *GetObjectOutput) SetIBMRestoredCopyStorageClass(v string) *GetObjectOutput
SetIBMRestoredCopyStorageClass sets the IBMRestoredCopyStorageClass field's value.
13819 13820 13821 13822 |
// File 'service/s3/api.go', line 13819
|
func (s *GetObjectOutput) SetIBMTransition(v string) *GetObjectOutput
SetIBMTransition sets the IBMTransition field's value.
13825 13826 13827 13828 |
// File 'service/s3/api.go', line 13825
|
func (s *GetObjectOutput) SetLastModified(v time.Time) *GetObjectOutput
SetLastModified sets the LastModified field's value.
13831 13832 13833 13834 |
// File 'service/s3/api.go', line 13831
|
func (s *GetObjectOutput) SetMetadata(v map[string]*string) *GetObjectOutput
SetMetadata sets the Metadata field's value.
13837 13838 13839 13840 |
// File 'service/s3/api.go', line 13837
|
func (s *GetObjectOutput) SetMissingMeta(v int64) *GetObjectOutput
SetMissingMeta sets the MissingMeta field's value.
13843 13844 13845 13846 |
// File 'service/s3/api.go', line 13843
|
func (s *GetObjectOutput) SetObjectLockLegalHoldStatus(v string) *GetObjectOutput
SetObjectLockLegalHoldStatus sets the ObjectLockLegalHoldStatus field's value.
13849 13850 13851 13852 |
// File 'service/s3/api.go', line 13849
|
func (s *GetObjectOutput) SetObjectLockMode(v string) *GetObjectOutput
SetObjectLockMode sets the ObjectLockMode field's value.
13855 13856 13857 13858 |
// File 'service/s3/api.go', line 13855
|
func (s *GetObjectOutput) SetObjectLockRetainUntilDate(v time.Time) *GetObjectOutput
SetObjectLockRetainUntilDate sets the ObjectLockRetainUntilDate field's value.
13861 13862 13863 13864 |
// File 'service/s3/api.go', line 13861
|
func (s *GetObjectOutput) SetPartsCount(v int64) *GetObjectOutput
SetPartsCount sets the PartsCount field's value.
13867 13868 13869 13870 |
// File 'service/s3/api.go', line 13867
|
func (s *GetObjectOutput) SetReplicationStatus(v string) *GetObjectOutput
SetReplicationStatus sets the ReplicationStatus field's value.
13873 13874 13875 13876 |
// File 'service/s3/api.go', line 13873
|
func (s *GetObjectOutput) SetRequestCharged(v string) *GetObjectOutput
SetRequestCharged sets the RequestCharged field's value.
13879 13880 13881 13882 |
// File 'service/s3/api.go', line 13879
|
func (s *GetObjectOutput) SetRestore(v string) *GetObjectOutput
SetRestore sets the Restore field's value.
13885 13886 13887 13888 |
// File 'service/s3/api.go', line 13885
|
func (s *GetObjectOutput) SetRetentionExpirationDate(v time.Time) *GetObjectOutput
SetRetentionExpirationDate sets the RetentionExpirationDate field's value.
13891 13892 13893 13894 |
// File 'service/s3/api.go', line 13891
|
func (s *GetObjectOutput) SetRetentionLegalHoldCount(v int64) *GetObjectOutput
SetRetentionLegalHoldCount sets the RetentionLegalHoldCount field's value.
13897 13898 13899 13900 |
// File 'service/s3/api.go', line 13897
|
func (s *GetObjectOutput) SetRetentionPeriod(v int64) *GetObjectOutput
SetRetentionPeriod sets the RetentionPeriod field's value.
13903 13904 13905 13906 |
// File 'service/s3/api.go', line 13903
|
func (s *GetObjectOutput) SetServerSideEncryption(v string) *GetObjectOutput
SetServerSideEncryption sets the ServerSideEncryption field's value.
13927 13928 13929 13930 |
// File 'service/s3/api.go', line 13927
|
func (s *GetObjectOutput) SetSSECustomerAlgorithm(v string) *GetObjectOutput
SetSSECustomerAlgorithm sets the SSECustomerAlgorithm field's value.
13909 13910 13911 13912 |
// File 'service/s3/api.go', line 13909
|
func (s *GetObjectOutput) SetSSECustomerKeyMD5(v string) *GetObjectOutput
SetSSECustomerKeyMD5 sets the SSECustomerKeyMD5 field's value.
13915 13916 13917 13918 |
// File 'service/s3/api.go', line 13915
|
func (s *GetObjectOutput) SetSSEKMSKeyId(v string) *GetObjectOutput
SetSSEKMSKeyId sets the SSEKMSKeyId field's value.
13921 13922 13923 13924 |
// File 'service/s3/api.go', line 13921
|
func (s *GetObjectOutput) SetStorageClass(v string) *GetObjectOutput
SetStorageClass sets the StorageClass field's value.
13933 13934 13935 13936 |
// File 'service/s3/api.go', line 13933
|
func (s *GetObjectOutput) SetTagCount(v int64) *GetObjectOutput
SetTagCount sets the TagCount field's value.
13939 13940 13941 13942 |
// File 'service/s3/api.go', line 13939
|
func (s *GetObjectOutput) SetVersionId(v string) *GetObjectOutput
SetVersionId sets the VersionId field's value.
13945 13946 13947 13948 |
// File 'service/s3/api.go', line 13945
|
func (s *GetObjectOutput) SetWebsiteRedirectLocation(v string) *GetObjectOutput
SetWebsiteRedirectLocation sets the WebsiteRedirectLocation field's value.
13951 13952 13953 13954 |
// File 'service/s3/api.go', line 13951
|
func (s GetObjectOutput) 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”.
13727 13728 13729 |
// File 'service/s3/api.go', line 13727
|