-
Notifications
You must be signed in to change notification settings - Fork 17
/
EventInvokeConfigProps.go
59 lines (56 loc) · 1.76 KB
/
EventInvokeConfigProps.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package awslambda
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for an EventInvokeConfig.
//
// 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
// var function_ function
//
// eventInvokeConfigProps := &EventInvokeConfigProps{
// Function: function_,
//
// // the properties below are optional
// MaxEventAge: cdk.Duration_Minutes(jsii.Number(30)),
// OnFailure: destination,
// OnSuccess: destination,
// Qualifier: jsii.String("qualifier"),
// RetryAttempts: jsii.Number(123),
// }
//
type EventInvokeConfigProps struct {
// The maximum age of a request that Lambda sends to a function for processing.
//
// Minimum: 60 seconds
// Maximum: 6 hours.
// Default: Duration.hours(6)
//
MaxEventAge awscdk.Duration `field:"optional" json:"maxEventAge" yaml:"maxEventAge"`
// The destination for failed invocations.
// Default: - no destination.
//
OnFailure IDestination `field:"optional" json:"onFailure" yaml:"onFailure"`
// The destination for successful invocations.
// Default: - no destination.
//
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.
// Default: 2.
//
RetryAttempts *float64 `field:"optional" json:"retryAttempts" yaml:"retryAttempts"`
// The Lambda function.
Function IFunction `field:"required" json:"function" yaml:"function"`
// The qualifier.
// Default: - latest version.
//
Qualifier *string `field:"optional" json:"qualifier" yaml:"qualifier"`
}