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



7439
7440
7441
// File 'service/s3/api.go', line 7439

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

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

SetCreationDate sets the CreationDate field's value.



7444
7445
7446
7447
// File 'service/s3/api.go', line 7444

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.



7450
7451
7452
7453
// File 'service/s3/api.go', line 7450

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



7430
7431
7432
// File 'service/s3/api.go', line 7430

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