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.

LambdaFunctionAssociations

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

type LambdaFunctionAssociations struct { Items []*LambdaFunctionAssociation `locationNameList:"LambdaFunctionAssociation" type:"list"` Quantity *int64 `type:"integer" required:"true"` }

A complex type that specifies a list of Lambda functions associations for a cache behavior.

If you want to invoke one or more Lambda functions triggered by requests that match the PathPattern of the cache behavior, specify the applicable values for Quantity and Items. Note that there can be up to 4 LambdaFunctionAssociation items in this list (one for each possible value of EventType) and each EventType can be associated with the Lambda function only once.

If you don't want to invoke any Lambda functions for the requests that match PathPattern, specify 0 for Quantity and omit Items.

Items

A complex type that contains a Lambda function association.

Quantity

Type: *int64

The number of Lambda function associations for this cache behavior.

Quantity is a required field

Method

GoString

func (s LambdaFunctionAssociations) GoString() string

GoString returns the string representation

SetItems

func (s *LambdaFunctionAssociations) SetItems(v []*LambdaFunctionAssociation) *LambdaFunctionAssociations

SetItems sets the Items field's value.

SetQuantity

func (s *LambdaFunctionAssociations) SetQuantity(v int64) *LambdaFunctionAssociations

SetQuantity sets the Quantity field's value.

String

func (s LambdaFunctionAssociations) String() string

String returns the string representation

Validate

func (s *LambdaFunctionAssociations) Validate() error

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

On this page: