Struct: s3.Bucket

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

Overview

In terms of implementation, a Bucket is a resource. An Amazon S3 bucket name is globally unique, and the namespace is shared by all AWS accounts.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

CreationDate *time.Time `type:"timestamp"`

Date the bucket was created. This date can change when making changes to your bucket, such as editing its bucket policy.

Name *string `type:"string"`

The name of the bucket.

_ struct{} `type:"structure"`

Method Details

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



7590
7591
7592
// File 'service/s3/api.go', line 7590

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

func (s *Bucket) SetCreationDate(v time.Time) *Bucket

SetCreationDate sets the CreationDate field’s value.



7595
7596
7597
7598
// File 'service/s3/api.go', line 7595

func (s *Bucket) SetCreationDate(v time.Time) *Bucket { s.CreationDate = &v return s }

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

SetName sets the Name field’s value.



7601
7602
7603
7604
// File 'service/s3/api.go', line 7601

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

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



7581
7582
7583
// File 'service/s3/api.go', line 7581

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