-
Notifications
You must be signed in to change notification settings - Fork 17
/
getEventInvokeConfig.go
94 lines (77 loc) · 3.71 KB
/
getEventInvokeConfig.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// Code generated by pulumi-language-go DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package lambda
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws-native/sdk/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// The AWS::Lambda::EventInvokeConfig resource configures options for asynchronous invocation on a version or an alias.
func LookupEventInvokeConfig(ctx *pulumi.Context, args *LookupEventInvokeConfigArgs, opts ...pulumi.InvokeOption) (*LookupEventInvokeConfigResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupEventInvokeConfigResult
err := ctx.Invoke("aws-native:lambda:getEventInvokeConfig", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupEventInvokeConfigArgs struct {
// The name of the Lambda function.
FunctionName string `pulumi:"functionName"`
// The identifier of a version or alias.
Qualifier string `pulumi:"qualifier"`
}
type LookupEventInvokeConfigResult struct {
DestinationConfig *EventInvokeConfigDestinationConfig `pulumi:"destinationConfig"`
// The maximum age of a request that Lambda sends to a function for processing.
MaximumEventAgeInSeconds *int `pulumi:"maximumEventAgeInSeconds"`
// The maximum number of times to retry when the function returns an error.
MaximumRetryAttempts *int `pulumi:"maximumRetryAttempts"`
}
func LookupEventInvokeConfigOutput(ctx *pulumi.Context, args LookupEventInvokeConfigOutputArgs, opts ...pulumi.InvokeOption) LookupEventInvokeConfigResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupEventInvokeConfigResult, error) {
args := v.(LookupEventInvokeConfigArgs)
r, err := LookupEventInvokeConfig(ctx, &args, opts...)
var s LookupEventInvokeConfigResult
if r != nil {
s = *r
}
return s, err
}).(LookupEventInvokeConfigResultOutput)
}
type LookupEventInvokeConfigOutputArgs struct {
// The name of the Lambda function.
FunctionName pulumi.StringInput `pulumi:"functionName"`
// The identifier of a version or alias.
Qualifier pulumi.StringInput `pulumi:"qualifier"`
}
func (LookupEventInvokeConfigOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupEventInvokeConfigArgs)(nil)).Elem()
}
type LookupEventInvokeConfigResultOutput struct{ *pulumi.OutputState }
func (LookupEventInvokeConfigResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupEventInvokeConfigResult)(nil)).Elem()
}
func (o LookupEventInvokeConfigResultOutput) ToLookupEventInvokeConfigResultOutput() LookupEventInvokeConfigResultOutput {
return o
}
func (o LookupEventInvokeConfigResultOutput) ToLookupEventInvokeConfigResultOutputWithContext(ctx context.Context) LookupEventInvokeConfigResultOutput {
return o
}
func (o LookupEventInvokeConfigResultOutput) DestinationConfig() EventInvokeConfigDestinationConfigPtrOutput {
return o.ApplyT(func(v LookupEventInvokeConfigResult) *EventInvokeConfigDestinationConfig { return v.DestinationConfig }).(EventInvokeConfigDestinationConfigPtrOutput)
}
// The maximum age of a request that Lambda sends to a function for processing.
func (o LookupEventInvokeConfigResultOutput) MaximumEventAgeInSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v LookupEventInvokeConfigResult) *int { return v.MaximumEventAgeInSeconds }).(pulumi.IntPtrOutput)
}
// The maximum number of times to retry when the function returns an error.
func (o LookupEventInvokeConfigResultOutput) MaximumRetryAttempts() pulumi.IntPtrOutput {
return o.ApplyT(func(v LookupEventInvokeConfigResult) *int { return v.MaximumRetryAttempts }).(pulumi.IntPtrOutput)
}
func init() {
pulumi.RegisterOutputType(LookupEventInvokeConfigResultOutput{})
}