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.

UpdateAliasInput

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

type UpdateAliasInput struct { Description *string `type:"string"` FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` FunctionVersion *string `min:"1" type:"string"` Name *string `location:"uri" locationName:"Name" min:"1" type:"string" required:"true"` RevisionId *string `type:"string"` RoutingConfig *AliasRoutingConfiguration `type:"structure"` }

Description

Type: *string

A description of the alias.

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

FunctionVersion

Type: *string

The function version that the alias invokes.

Name

Type: *string

The name of the alias.

Name is a required field

RevisionId

Type: *string

Only update the alias if the revision ID matches the ID that's specified. Use this option to avoid modifying an alias that has changed since you last read it.

RoutingConfig

The traffic-shifting (https://docs.aws.amazon.com/lambda/latest/dg/lambda-traffic-shifting-using-aliases.html) configuration of a Lambda function alias.

Method

GoString

func (s UpdateAliasInput) GoString() string

GoString returns the string representation

SetDescription

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

SetDescription sets the Description field's value.

SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

SetFunctionVersion

func (s *UpdateAliasInput) SetFunctionVersion(v string) *UpdateAliasInput

SetFunctionVersion sets the FunctionVersion field's value.

SetName

func (s *UpdateAliasInput) SetName(v string) *UpdateAliasInput

SetName sets the Name field's value.

SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

SetRoutingConfig

func (s *UpdateAliasInput) SetRoutingConfig(v *AliasRoutingConfiguration) *UpdateAliasInput

SetRoutingConfig sets the RoutingConfig field's value.

String

func (s UpdateAliasInput) String() string

String returns the string representation

Validate

func (s *UpdateAliasInput) Validate() error

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

On this page: