Struct: s3.ListObjectsV2Output

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

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



17451
17452
17453
// File 'service/s3/api.go', line 17451

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

func (s *ListObjectsV2Output) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsV2Output

SetCommonPrefixes sets the CommonPrefixes field's value.



17456
17457
17458
17459
// File 'service/s3/api.go', line 17456

func (s *ListObjectsV2Output) SetCommonPrefixes(v []*CommonPrefix) *ListObjectsV2Output { s.CommonPrefixes = v return s }

func (s *ListObjectsV2Output) SetContents(v []*Object) *ListObjectsV2Output

SetContents sets the Contents field's value.



17462
17463
17464
17465
// File 'service/s3/api.go', line 17462

func (s *ListObjectsV2Output) SetContents(v []*Object) *ListObjectsV2Output { s.Contents = v return s }

func (s *ListObjectsV2Output) SetContinuationToken(v string) *ListObjectsV2Output

SetContinuationToken sets the ContinuationToken field's value.



17468
17469
17470
17471
// File 'service/s3/api.go', line 17468

func (s *ListObjectsV2Output) SetContinuationToken(v string) *ListObjectsV2Output { s.ContinuationToken = &v return s }

func (s *ListObjectsV2Output) SetDelimiter(v string) *ListObjectsV2Output

SetDelimiter sets the Delimiter field's value.



17474
17475
17476
17477
// File 'service/s3/api.go', line 17474

func (s *ListObjectsV2Output) SetDelimiter(v string) *ListObjectsV2Output { s.Delimiter = &v return s }

func (s *ListObjectsV2Output) SetEncodingType(v string) *ListObjectsV2Output

SetEncodingType sets the EncodingType field's value.



17480
17481
17482
17483
// File 'service/s3/api.go', line 17480

func (s *ListObjectsV2Output) SetEncodingType(v string) *ListObjectsV2Output { s.EncodingType = &v return s }

func (s *ListObjectsV2Output) SetIsTruncated(v bool) *ListObjectsV2Output

SetIsTruncated sets the IsTruncated field's value.



17486
17487
17488
17489
// File 'service/s3/api.go', line 17486

func (s *ListObjectsV2Output) SetIsTruncated(v bool) *ListObjectsV2Output { s.IsTruncated = &v return s }

func (s *ListObjectsV2Output) SetKeyCount(v int64) *ListObjectsV2Output

SetKeyCount sets the KeyCount field's value.



17492
17493
17494
17495
// File 'service/s3/api.go', line 17492

func (s *ListObjectsV2Output) SetKeyCount(v int64) *ListObjectsV2Output { s.KeyCount = &v return s }

func (s *ListObjectsV2Output) SetMaxKeys(v int64) *ListObjectsV2Output

SetMaxKeys sets the MaxKeys field's value.



17498
17499
17500
17501
// File 'service/s3/api.go', line 17498

func (s *ListObjectsV2Output) SetMaxKeys(v int64) *ListObjectsV2Output { s.MaxKeys = &v return s }

func (s *ListObjectsV2Output) SetName(v string) *ListObjectsV2Output

SetName sets the Name field's value.



17504
17505
17506
17507
// File 'service/s3/api.go', line 17504

func (s *ListObjectsV2Output) SetName(v string) *ListObjectsV2Output { s.Name = &v return s }

func (s *ListObjectsV2Output) SetNextContinuationToken(v string) *ListObjectsV2Output

SetNextContinuationToken sets the NextContinuationToken field's value.



17510
17511
17512
17513
// File 'service/s3/api.go', line 17510

func (s *ListObjectsV2Output) SetNextContinuationToken(v string) *ListObjectsV2Output { s.NextContinuationToken = &v return s }

func (s *ListObjectsV2Output) SetPrefix(v string) *ListObjectsV2Output

SetPrefix sets the Prefix field's value.



17516
17517
17518
17519
// File 'service/s3/api.go', line 17516

func (s *ListObjectsV2Output) SetPrefix(v string) *ListObjectsV2Output { s.Prefix = &v return s }

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

SetRequestCharged sets the RequestCharged field's value.



17522
17523
17524
17525
// File 'service/s3/api.go', line 17522

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

func (s *ListObjectsV2Output) SetStartAfter(v string) *ListObjectsV2Output

SetStartAfter sets the StartAfter field's value.



17528
17529
17530
17531
// File 'service/s3/api.go', line 17528

func (s *ListObjectsV2Output) SetStartAfter(v string) *ListObjectsV2Output { s.StartAfter = &v return s }

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



17442
17443
17444
// File 'service/s3/api.go', line 17442

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