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



11301
11302
11303
// File 'service/s3/api.go', line 11301

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

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

SetBucket sets the Bucket field's value.



11319
11320
11321
11322
// File 'service/s3/api.go', line 11319

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



11292
11293
11294
// File 'service/s3/api.go', line 11292

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.



11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
// File 'service/s3/api.go', line 11306

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 }