Struct: s3.ListObjectsV2Output
Implemented Interfaces
s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom
Structure Field Summary collapse
-
CommonPrefixes []*CommonPrefix
All of the keys (up to 1,000) rolled up into a common prefix count as a single return when calculating the number of returns.
-
Contents []*Object
Metadata about each object returned.
-
ContinuationToken *string
If ContinuationToken was sent with the request, it is included in the response.
-
Delimiter *string
Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection.
-
EncodingType *string
Encoding type used by Amazon S3 to encode object key names in the XML response.
-
IsTruncated *bool
Set to false if all of the results were returned.
-
KeyCount *int64
KeyCount is the number of keys returned with this request.
-
MaxKeys *int64
Sets the maximum number of keys returned in the response.
-
Name *string
The bucket name.
-
NextContinuationToken *string
NextContinuationToken is sent when isTruncated is true, which means there are more keys in the bucket that can be listed.
-
Prefix *string
Keys that begin with the indicated prefix.
-
RequestCharged *string
If present, indicates that the requester was successfully charged for the request.
-
StartAfter *string
If StartAfter was sent with the request, it is included in the response.
- _ struct{}
Service Operations collapse
-
GoString() string
operation
GoString returns the string representation.
-
SetCommonPrefixes([]*CommonPrefix) *ListObjectsV2Output
operation
SetCommonPrefixes sets the CommonPrefixes field’s value.
-
SetContents([]*Object) *ListObjectsV2Output
operation
SetContents sets the Contents field’s value.
-
SetContinuationToken(string) *ListObjectsV2Output
operation
SetContinuationToken sets the ContinuationToken field’s value.
-
SetDelimiter(string) *ListObjectsV2Output
operation
SetDelimiter sets the Delimiter field’s value.
-
SetEncodingType(string) *ListObjectsV2Output
operation
SetEncodingType sets the EncodingType field’s value.
-
SetIsTruncated(bool) *ListObjectsV2Output
operation
SetIsTruncated sets the IsTruncated field’s value.
-
SetKeyCount(int64) *ListObjectsV2Output
operation
SetKeyCount sets the KeyCount field’s value.
-
SetMaxKeys(int64) *ListObjectsV2Output
operation
SetMaxKeys sets the MaxKeys field’s value.
-
SetName(string) *ListObjectsV2Output
operation
SetName sets the Name field’s value.
-
SetNextContinuationToken(string) *ListObjectsV2Output
operation
SetNextContinuationToken sets the NextContinuationToken field’s value.
-
SetPrefix(string) *ListObjectsV2Output
operation
SetPrefix sets the Prefix field’s value.
-
SetRequestCharged(string) *ListObjectsV2Output
operation
SetRequestCharged sets the RequestCharged field’s value.
-
SetStartAfter(string) *ListObjectsV2Output
operation
SetStartAfter sets the StartAfter field’s value.
-
String() string
operation
String returns the string representation.
Structure Field Details
CommonPrefixes []*CommonPrefix
`type:"list" flattened:"true"`
All of the keys (up to 1,000) rolled up into a common prefix count as a single return when calculating the number of returns.
A response can contain CommonPrefixes only if you specify a delimiter.
CommonPrefixes contains all (if there are any) keys between Prefix and the next occurrence of the string specified by a delimiter.
CommonPrefixes lists keys that act like subdirectories in the directory specified by Prefix.
For example, if the prefix is notes/ and the delimiter is a slash (/) as in notes/summer/july, the common prefix is notes/summer/. All of the keys that roll up into a common prefix count as a single return when calculating the number of returns.
Contents []*Object
`type:"list" flattened:"true"`
Metadata about each object returned.
ContinuationToken *string
`type:"string"`
If ContinuationToken was sent with the request, it is included in the response.
Delimiter *string
`type:"string"`
Causes keys that contain the same string between the prefix and the first occurrence of the delimiter to be rolled up into a single result element in the CommonPrefixes collection. These rolled-up keys are not returned elsewhere in the response. Each rolled-up result counts as only one return against the MaxKeys value.
EncodingType *string
`type:"string" enum:"EncodingType"`
Encoding type used by Amazon S3 to encode object key names in the XML response.
If you specify the encoding-type request parameter, Amazon S3 includes this element in the response, and returns encoded key name values in the following response elements:
Delimiter, Prefix, Key, and StartAfter.
IsTruncated *bool
`type:"boolean"`
Set to false if all of the results were returned. Set to true if more keys are available to return. If the number of results exceeds that specified by MaxKeys, all of the results might not be returned.
KeyCount *int64
`type:"integer"`
KeyCount is the number of keys returned with this request. KeyCount will always be less than or equal to the MaxKeys field. For example, if you ask for 50 keys, your result will include 50 keys or fewer.
MaxKeys *int64
`type:"integer"`
Sets the maximum number of keys returned in the response. By default, the action returns up to 1,000 key names. The response might contain fewer keys but will never contain more.
Name *string
`type:"string"`
The bucket name.
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.
NextContinuationToken *string
`type:"string"`
NextContinuationToken is sent when isTruncated is true, which means there are more keys in the bucket that can be listed. The next list requests to Amazon S3 can be continued with this NextContinuationToken. NextContinuationToken is obfuscated and is not a real key
Prefix *string
`type:"string"`
Keys that begin with the indicated prefix.
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.
StartAfter *string
`type:"string"`
If StartAfter was sent with the request, it is included in the response.
_ struct{}
`type:"structure"`
Method Details
func (s ListObjectsV2Output) 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”.
17724 17725 17726 |
// File 'service/s3/api.go', line 17724
|
func (s *ListObjectsV2Output) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsV2Output
SetCommonPrefixes sets the CommonPrefixes field’s value.
17729 17730 17731 17732 |
// File 'service/s3/api.go', line 17729
|
func (s *ListObjectsV2Output) SetContents(v []*Object) *ListObjectsV2Output
SetContents sets the Contents field’s value.
17735 17736 17737 17738 |
// File 'service/s3/api.go', line 17735
|
func (s *ListObjectsV2Output) SetContinuationToken(v string) *ListObjectsV2Output
SetContinuationToken sets the ContinuationToken field’s value.
17741 17742 17743 17744 |
// File 'service/s3/api.go', line 17741
|
func (s *ListObjectsV2Output) SetDelimiter(v string) *ListObjectsV2Output
SetDelimiter sets the Delimiter field’s value.
17747 17748 17749 17750 |
// File 'service/s3/api.go', line 17747
|
func (s *ListObjectsV2Output) SetEncodingType(v string) *ListObjectsV2Output
SetEncodingType sets the EncodingType field’s value.
17753 17754 17755 17756 |
// File 'service/s3/api.go', line 17753
|
func (s *ListObjectsV2Output) SetIsTruncated(v bool) *ListObjectsV2Output
SetIsTruncated sets the IsTruncated field’s value.
17759 17760 17761 17762 |
// File 'service/s3/api.go', line 17759
|
func (s *ListObjectsV2Output) SetKeyCount(v int64) *ListObjectsV2Output
SetKeyCount sets the KeyCount field’s value.
17765 17766 17767 17768 |
// File 'service/s3/api.go', line 17765
|
func (s *ListObjectsV2Output) SetMaxKeys(v int64) *ListObjectsV2Output
SetMaxKeys sets the MaxKeys field’s value.
17771 17772 17773 17774 |
// File 'service/s3/api.go', line 17771
|
func (s *ListObjectsV2Output) SetName(v string) *ListObjectsV2Output
SetName sets the Name field’s value.
17777 17778 17779 17780 |
// File 'service/s3/api.go', line 17777
|
func (s *ListObjectsV2Output) SetNextContinuationToken(v string) *ListObjectsV2Output
SetNextContinuationToken sets the NextContinuationToken field’s value.
17783 17784 17785 17786 |
// File 'service/s3/api.go', line 17783
|
func (s *ListObjectsV2Output) SetPrefix(v string) *ListObjectsV2Output
SetPrefix sets the Prefix field’s value.
17789 17790 17791 17792 |
// File 'service/s3/api.go', line 17789
|
func (s *ListObjectsV2Output) SetRequestCharged(v string) *ListObjectsV2Output
SetRequestCharged sets the RequestCharged field’s value.
17795 17796 17797 17798 |
// File 'service/s3/api.go', line 17795
|
func (s *ListObjectsV2Output) SetStartAfter(v string) *ListObjectsV2Output
SetStartAfter sets the StartAfter field’s value.
17801 17802 17803 17804 |
// File 'service/s3/api.go', line 17801
|
func (s ListObjectsV2Output) 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”.
17715 17716 17717 |
// File 'service/s3/api.go', line 17715
|