AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

S3Action

import "github.com/aws/aws-sdk-go/service/iot"

type S3Action struct { BucketName *string `locationName:"bucketName" type:"string" required:"true"` CannedAcl *string `locationName:"cannedAcl" type:"string" enum:"CannedAccessControlList"` Key *string `locationName:"key" type:"string" required:"true"` RoleArn *string `locationName:"roleArn" type:"string" required:"true"` }

Describes an action to write data to an Amazon S3 bucket.

BucketName

Type: *string

The Amazon S3 bucket.

BucketName is a required field

CannedAcl

Type: *string

The Amazon S3 canned ACL that controls access to the object identified by the object key. For more information, see S3 canned ACLs (https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl).

Key

Type: *string

The object key.

Key is a required field

RoleArn

Type: *string

The ARN of the IAM role that grants access.

RoleArn is a required field

Method

GoString

func (s S3Action) GoString() string

GoString returns the string representation

SetBucketName

func (s *S3Action) SetBucketName(v string) *S3Action

SetBucketName sets the BucketName field's value.

SetCannedAcl

func (s *S3Action) SetCannedAcl(v string) *S3Action

SetCannedAcl sets the CannedAcl field's value.

SetKey

func (s *S3Action) SetKey(v string) *S3Action

SetKey sets the Key field's value.

SetRoleArn

func (s *S3Action) SetRoleArn(v string) *S3Action

SetRoleArn sets the RoleArn field's value.

String

func (s S3Action) String() string

String returns the string representation

Validate

func (s *S3Action) Validate() error

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

On this page: