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.

FunctionCode

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

type FunctionCode struct { S3Bucket *string `min:"3" type:"string"` S3Key *string `min:"1" type:"string"` S3ObjectVersion *string `min:"1" type:"string"` ZipFile []byte `type:"blob" sensitive:"true"` }

The code for the Lambda function. You can specify either an object in Amazon S3, or upload a deployment package directly.

S3Bucket

Type: *string

An Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account.

S3Key

Type: *string

The Amazon S3 key of the deployment package.

S3ObjectVersion

Type: *string

For versioned objects, the version of the deployment package object to use.

ZipFile

Type: []byte

The base64-encoded contents of the deployment package. AWS SDK and AWS CLI clients handle the encoding for you.

ZipFile is automatically base64 encoded/decoded by the SDK.

Method

GoString

func (s FunctionCode) GoString() string

GoString returns the string representation

SetS3Bucket

func (s *FunctionCode) SetS3Bucket(v string) *FunctionCode

SetS3Bucket sets the S3Bucket field's value.

SetS3Key

func (s *FunctionCode) SetS3Key(v string) *FunctionCode

SetS3Key sets the S3Key field's value.

SetS3ObjectVersion

func (s *FunctionCode) SetS3ObjectVersion(v string) *FunctionCode

SetS3ObjectVersion sets the S3ObjectVersion field's value.

SetZipFile

func (s *FunctionCode) SetZipFile(v []byte) *FunctionCode

SetZipFile sets the ZipFile field's value.

String

func (s FunctionCode) String() string

String returns the string representation

Validate

func (s *FunctionCode) Validate() error

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

On this page: