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.

UpdateFunctionConfigurationInput

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

type UpdateFunctionConfigurationInput struct { DeadLetterConfig *DeadLetterConfig `type:"structure"` Description *string `type:"string"` Environment *Environment `type:"structure"` FunctionName *string `location:"uri" locationName:"FunctionName" min:"1" type:"string" required:"true"` Handler *string `type:"string"` KMSKeyArn *string `type:"string"` Layers []*string `type:"list"` MemorySize *int64 `min:"128" type:"integer"` RevisionId *string `type:"string"` Role *string `type:"string"` Runtime *string `type:"string" enum:"Runtime"` Timeout *int64 `min:"1" type:"integer"` TracingConfig *TracingConfig `type:"structure"` VpcConfig *VpcConfig `type:"structure"` }

DeadLetterConfig

The dead letter queue (https://docs.aws.amazon.com/lambda/latest/dg/dlq.html) for failed asynchronous invocations.

Description

Type: *string

A description of the function.

Environment

A function's environment variable settings.

FunctionName

Type: *string

The name of the Lambda function.

Name formats

  • Function name - my-function.

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

  • Partial ARN - 123456789012:function:my-function.

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

Handler

Type: *string

The name of the method within your code that Lambda calls to execute your function. The format includes the file name. It can also include namespaces and other qualifiers, depending on the runtime. For more information, see Programming Model (https://docs.aws.amazon.com/lambda/latest/dg/programming-model-v2.html).

KMSKeyArn

Type: *string

The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.

Layers

Type: []*string

A list of function layers (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) to add to the function's execution environment. Specify each layer by its ARN, including the version.

MemorySize

Type: *int64

The amount of memory that your function has access to. Increasing the function's memory also increases its CPU allocation. The default value is 128 MB. The value must be a multiple of 64 MB.

RevisionId

Type: *string

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

Role

Type: *string

The Amazon Resource Name (ARN) of the function's execution role.

Runtime

Type: *string

The identifier of the function's runtime (https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).

Timeout

Type: *int64

The amount of time that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds.

TracingConfig

The function's AWS X-Ray tracing configuration.

VpcConfig

The VPC security groups and subnets that are attached to a Lambda function.

Method

GoString

func (s UpdateFunctionConfigurationInput) GoString() string

GoString returns the string representation

SetDeadLetterConfig

func (s *UpdateFunctionConfigurationInput) SetDeadLetterConfig(v *DeadLetterConfig) *UpdateFunctionConfigurationInput

SetDeadLetterConfig sets the DeadLetterConfig field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetEnvironment

func (s *UpdateFunctionConfigurationInput) SetEnvironment(v *Environment) *UpdateFunctionConfigurationInput

SetEnvironment sets the Environment field's value.

SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

SetHandler

func (s *UpdateFunctionConfigurationInput) SetHandler(v string) *UpdateFunctionConfigurationInput

SetHandler sets the Handler field's value.

SetKMSKeyArn

func (s *UpdateFunctionConfigurationInput) SetKMSKeyArn(v string) *UpdateFunctionConfigurationInput

SetKMSKeyArn sets the KMSKeyArn field's value.

SetLayers

func (s *UpdateFunctionConfigurationInput) SetLayers(v []*string) *UpdateFunctionConfigurationInput

SetLayers sets the Layers field's value.

SetMemorySize

func (s *UpdateFunctionConfigurationInput) SetMemorySize(v int64) *UpdateFunctionConfigurationInput

SetMemorySize sets the MemorySize field's value.

SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

SetRole

func (s *UpdateFunctionConfigurationInput) SetRole(v string) *UpdateFunctionConfigurationInput

SetRole sets the Role field's value.

SetRuntime

func (s *UpdateFunctionConfigurationInput) SetRuntime(v string) *UpdateFunctionConfigurationInput

SetRuntime sets the Runtime field's value.

SetTimeout

func (s *UpdateFunctionConfigurationInput) SetTimeout(v int64) *UpdateFunctionConfigurationInput

SetTimeout sets the Timeout field's value.

SetTracingConfig

func (s *UpdateFunctionConfigurationInput) SetTracingConfig(v *TracingConfig) *UpdateFunctionConfigurationInput

SetTracingConfig sets the TracingConfig field's value.

SetVpcConfig

func (s *UpdateFunctionConfigurationInput) SetVpcConfig(v *VpcConfig) *UpdateFunctionConfigurationInput

SetVpcConfig sets the VpcConfig field's value.

String

func (s UpdateFunctionConfigurationInput) String() string

String returns the string representation

Validate

func (s *UpdateFunctionConfigurationInput) Validate() error

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

On this page: