package awslambda import ( "github.com/aws/aws-cdk-go/awscdk/v2" ) // Options to add an EventInvokeConfig to a function. // // Example: // // The code below shows an example of how to instantiate this type. // // The values are placeholders you should change. // import cdk "github.com/aws/aws-cdk-go/awscdk" // import "github.com/aws/aws-cdk-go/awscdk" // // var destination iDestination // // eventInvokeConfigOptions := &EventInvokeConfigOptions{ // MaxEventAge: cdk.Duration_Minutes(jsii.Number(30)), // OnFailure: destination, // OnSuccess: destination, // RetryAttempts: jsii.Number(123), // } // type EventInvokeConfigOptions struct { // The maximum age of a request that Lambda sends to a function for processing. // // Minimum: 60 seconds // Maximum: 6 hours. MaxEventAge awscdk.Duration `field:"optional" json:"maxEventAge" yaml:"maxEventAge"` // The destination for failed invocations. OnFailure IDestination `field:"optional" json:"onFailure" yaml:"onFailure"` // The destination for successful invocations. OnSuccess IDestination `field:"optional" json:"onSuccess" yaml:"onSuccess"` // The maximum number of times to retry when the function returns an error. // // Minimum: 0 // Maximum: 2. RetryAttempts *float64 `field:"optional" json:"retryAttempts" yaml:"retryAttempts"` }