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.

FunctionConfiguration

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

type FunctionConfiguration struct { CodeSha256 *string `type:"string"` CodeSize *int64 `type:"long"` DeadLetterConfig *DeadLetterConfig `type:"structure"` Description *string `type:"string"` Environment *EnvironmentResponse `type:"structure"` FunctionArn *string `type:"string"` FunctionName *string `min:"1" type:"string"` Handler *string `type:"string"` KMSKeyArn *string `type:"string"` LastModified *string `type:"string"` Layers []*Layer `type:"list"` MasterArn *string `type:"string"` 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 *TracingConfigResponse `type:"structure"` Version *string `min:"1" type:"string"` VpcConfig *VpcConfigResponse `type:"structure"` }

Details about a function's configuration.

CodeSha256

Type: *string

The SHA256 hash of the function's deployment package.

CodeSize

Type: *int64

The size of the function's deployment package, in bytes.

DeadLetterConfig

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

Description

Type: *string

The function's description.

Environment

The results of a configuration update that applied environment variables.

FunctionArn

Type: *string

The function's Amazon Resource Name (ARN).

FunctionName

Type: *string

The name of the function.

Handler

Type: *string

The function that Lambda calls to begin executing your function.

KMSKeyArn

Type: *string

The KMS key that's used to encrypt the function's environment variables. This key is only returned if you've configured a customer-managed CMK.

LastModified

Type: *string

The date and time that the function was last updated, in ISO-8601 format (https://www.w3.org/TR/NOTE-datetime) (YYYY-MM-DDThh:mm:ss.sTZD).

Layers

An AWS Lambda layer (https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html).

MasterArn

Type: *string

For Lambda@Edge functions, the ARN of the master function.

MemorySize

Type: *int64

The memory that's allocated to the function.

RevisionId

Type: *string

The latest updated revision of the function or alias.

Role

Type: *string

The function's execution role.

Runtime

Type: *string

The runtime environment for the Lambda function.

Timeout

Type: *int64

The amount of time that Lambda allows a function to run before stopping it.

TracingConfig

The function's AWS X-Ray tracing configuration.

Version

Type: *string

The version of the Lambda function.

VpcConfig

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

Method

GoString

func (s FunctionConfiguration) GoString() string

GoString returns the string representation

SetCodeSha256

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

SetCodeSha256 sets the CodeSha256 field's value.

SetCodeSize

func (s *FunctionConfiguration) SetCodeSize(v int64) *FunctionConfiguration

SetCodeSize sets the CodeSize field's value.

SetDeadLetterConfig

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

SetDeadLetterConfig sets the DeadLetterConfig field's value.

SetDescription

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

SetDescription sets the Description field's value.

SetEnvironment

func (s *FunctionConfiguration) SetEnvironment(v *EnvironmentResponse) *FunctionConfiguration

SetEnvironment sets the Environment field's value.

SetFunctionArn

func (s *FunctionConfiguration) SetFunctionArn(v string) *FunctionConfiguration

SetFunctionArn sets the FunctionArn field's value.

SetFunctionName

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

SetFunctionName sets the FunctionName field's value.

SetHandler

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

SetHandler sets the Handler field's value.

SetKMSKeyArn

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

SetKMSKeyArn sets the KMSKeyArn field's value.

SetLastModified

func (s *FunctionConfiguration) SetLastModified(v string) *FunctionConfiguration

SetLastModified sets the LastModified field's value.

SetLayers

func (s *FunctionConfiguration) SetLayers(v []*Layer) *FunctionConfiguration

SetLayers sets the Layers field's value.

SetMasterArn

func (s *FunctionConfiguration) SetMasterArn(v string) *FunctionConfiguration

SetMasterArn sets the MasterArn field's value.

SetMemorySize

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

SetMemorySize sets the MemorySize field's value.

SetRevisionId

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

SetRevisionId sets the RevisionId field's value.

SetRole

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

SetRole sets the Role field's value.

SetRuntime

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

SetRuntime sets the Runtime field's value.

SetTimeout

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

SetTimeout sets the Timeout field's value.

SetTracingConfig

func (s *FunctionConfiguration) SetTracingConfig(v *TracingConfigResponse) *FunctionConfiguration

SetTracingConfig sets the TracingConfig field's value.

SetVersion

func (s *FunctionConfiguration) SetVersion(v string) *FunctionConfiguration

SetVersion sets the Version field's value.

SetVpcConfig

func (s *FunctionConfiguration) SetVpcConfig(v *VpcConfigResponse) *FunctionConfiguration

SetVpcConfig sets the VpcConfig field's value.

String

func (s FunctionConfiguration) String() string

String returns the string representation

On this page: