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.

PublishVersionInput

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

type PublishVersionInput struct { CodeSha256 *string `type:"string"` Description *string `type:"string"` FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` RevisionId *string `type:"string"` }

CodeSha256

Type: *string

Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. You can get the hash for the version that you uploaded from the output of UpdateFunctionCode.

Description

Type: *string

A description for the version to override the description in the function configuration.

FunctionName

Type: *string

The name of the Lambda function.

Name formats

  • Function name - MyFunction.

  • Function ARN - arn:aws:lambda:us-west-2:123456789012:function:MyFunction.

  • Partial ARN - 123456789012:function:MyFunction.

The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

FunctionName is a required field

RevisionId

Type: *string

Only update the function if the revision ID matches the ID that's specified. Use this option to avoid publishing a version if the function configuration has changed since you last updated it.

Method

GoString

func (s PublishVersionInput) GoString() string

GoString returns the string representation

SetCodeSha256

func (s *PublishVersionInput) SetCodeSha256(v string) *PublishVersionInput

SetCodeSha256 sets the CodeSha256 field's value.

SetDescription

func (s *PublishVersionInput) SetDescription(v string) *PublishVersionInput

SetDescription sets the Description field's value.

SetFunctionName

func (s *PublishVersionInput) SetFunctionName(v string) *PublishVersionInput

SetFunctionName sets the FunctionName field's value.

SetRevisionId

func (s *PublishVersionInput) SetRevisionId(v string) *PublishVersionInput

SetRevisionId sets the RevisionId field's value.

String

func (s PublishVersionInput) String() string

String returns the string representation

Validate

func (s *PublishVersionInput) Validate() error

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

On this page: