Struct: s3.Destination

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

Overview

Specifies information about where to publish analysis or configuration results for an Amazon S3 bucket and S3 Replication Time Control (S3 RTC).

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Bucket *string `type:"string" required:"true"`

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to store the results.

Bucket is a required field

_ struct{} `type:"structure"`

Method Details

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



11452
11453
11454
// File 'service/s3/api.go', line 11452

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

func (s *Destination) SetBucket(v string) *Destination

SetBucket sets the Bucket field’s value.



11470
11471
11472
11473
// File 'service/s3/api.go', line 11470

func (s *Destination) SetBucket(v string) *Destination { s.Bucket = &v return s }

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



11443
11444
11445
// File 'service/s3/api.go', line 11443

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

func (s *Destination) Validate() error

Validate inspects the fields of the type to determine if they are valid.



11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
// File 'service/s3/api.go', line 11457

func (s *Destination) Validate() error { invalidParams := request.ErrInvalidParams{Context: "Destination"} if s.Bucket == nil { invalidParams.Add(request.NewErrParamRequired("Bucket")) } if invalidParams.Len() > 0 { return invalidParams } return nil }