Documentation ¶
Index ¶
- type Alias
- type AliasArgs
- type AliasRoutingConfig
- type AliasRoutingConfigArgs
- func (AliasRoutingConfigArgs) ElementType() reflect.Type
- func (i AliasRoutingConfigArgs) ToAliasRoutingConfigOutput() AliasRoutingConfigOutput
- func (i AliasRoutingConfigArgs) ToAliasRoutingConfigOutputWithContext(ctx context.Context) AliasRoutingConfigOutput
- func (i AliasRoutingConfigArgs) ToAliasRoutingConfigPtrOutput() AliasRoutingConfigPtrOutput
- func (i AliasRoutingConfigArgs) ToAliasRoutingConfigPtrOutputWithContext(ctx context.Context) AliasRoutingConfigPtrOutput
- type AliasRoutingConfigInput
- type AliasRoutingConfigOutput
- func (o AliasRoutingConfigOutput) AdditionalVersionWeights() pulumi.Float64MapOutput
- func (AliasRoutingConfigOutput) ElementType() reflect.Type
- func (o AliasRoutingConfigOutput) ToAliasRoutingConfigOutput() AliasRoutingConfigOutput
- func (o AliasRoutingConfigOutput) ToAliasRoutingConfigOutputWithContext(ctx context.Context) AliasRoutingConfigOutput
- func (o AliasRoutingConfigOutput) ToAliasRoutingConfigPtrOutput() AliasRoutingConfigPtrOutput
- func (o AliasRoutingConfigOutput) ToAliasRoutingConfigPtrOutputWithContext(ctx context.Context) AliasRoutingConfigPtrOutput
- type AliasRoutingConfigPtrInput
- type AliasRoutingConfigPtrOutput
- func (o AliasRoutingConfigPtrOutput) AdditionalVersionWeights() pulumi.Float64MapOutput
- func (o AliasRoutingConfigPtrOutput) Elem() AliasRoutingConfigOutput
- func (AliasRoutingConfigPtrOutput) ElementType() reflect.Type
- func (o AliasRoutingConfigPtrOutput) ToAliasRoutingConfigPtrOutput() AliasRoutingConfigPtrOutput
- func (o AliasRoutingConfigPtrOutput) ToAliasRoutingConfigPtrOutputWithContext(ctx context.Context) AliasRoutingConfigPtrOutput
- type AliasState
- type EventSourceMapping
- type EventSourceMappingArgs
- type EventSourceMappingDestinationConfig
- type EventSourceMappingDestinationConfigArgs
- func (EventSourceMappingDestinationConfigArgs) ElementType() reflect.Type
- func (i EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigOutput() EventSourceMappingDestinationConfigOutput
- func (i EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOutput
- func (i EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigPtrOutput() EventSourceMappingDestinationConfigPtrOutput
- func (i EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigPtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigPtrOutput
- type EventSourceMappingDestinationConfigInput
- type EventSourceMappingDestinationConfigOnFailure
- type EventSourceMappingDestinationConfigOnFailureArgs
- func (EventSourceMappingDestinationConfigOnFailureArgs) ElementType() reflect.Type
- func (i EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailureOutput() EventSourceMappingDestinationConfigOnFailureOutput
- func (i EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailureOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailureOutput
- func (i EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailurePtrOutput() EventSourceMappingDestinationConfigOnFailurePtrOutput
- func (i EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailurePtrOutput
- type EventSourceMappingDestinationConfigOnFailureInput
- type EventSourceMappingDestinationConfigOnFailureOutput
- func (o EventSourceMappingDestinationConfigOnFailureOutput) DestinationArn() pulumi.StringOutput
- func (EventSourceMappingDestinationConfigOnFailureOutput) ElementType() reflect.Type
- func (o EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailureOutput() EventSourceMappingDestinationConfigOnFailureOutput
- func (o EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailureOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailureOutput
- func (o EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutput() EventSourceMappingDestinationConfigOnFailurePtrOutput
- func (o EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailurePtrOutput
- type EventSourceMappingDestinationConfigOnFailurePtrInput
- type EventSourceMappingDestinationConfigOnFailurePtrOutput
- func (o EventSourceMappingDestinationConfigOnFailurePtrOutput) DestinationArn() pulumi.StringPtrOutput
- func (o EventSourceMappingDestinationConfigOnFailurePtrOutput) Elem() EventSourceMappingDestinationConfigOnFailureOutput
- func (EventSourceMappingDestinationConfigOnFailurePtrOutput) ElementType() reflect.Type
- func (o EventSourceMappingDestinationConfigOnFailurePtrOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutput() EventSourceMappingDestinationConfigOnFailurePtrOutput
- func (o EventSourceMappingDestinationConfigOnFailurePtrOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailurePtrOutput
- type EventSourceMappingDestinationConfigOutput
- func (EventSourceMappingDestinationConfigOutput) ElementType() reflect.Type
- func (o EventSourceMappingDestinationConfigOutput) OnFailure() EventSourceMappingDestinationConfigOnFailurePtrOutput
- func (o EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigOutput() EventSourceMappingDestinationConfigOutput
- func (o EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOutput
- func (o EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigPtrOutput() EventSourceMappingDestinationConfigPtrOutput
- func (o EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigPtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigPtrOutput
- type EventSourceMappingDestinationConfigPtrInput
- type EventSourceMappingDestinationConfigPtrOutput
- func (o EventSourceMappingDestinationConfigPtrOutput) Elem() EventSourceMappingDestinationConfigOutput
- func (EventSourceMappingDestinationConfigPtrOutput) ElementType() reflect.Type
- func (o EventSourceMappingDestinationConfigPtrOutput) OnFailure() EventSourceMappingDestinationConfigOnFailurePtrOutput
- func (o EventSourceMappingDestinationConfigPtrOutput) ToEventSourceMappingDestinationConfigPtrOutput() EventSourceMappingDestinationConfigPtrOutput
- func (o EventSourceMappingDestinationConfigPtrOutput) ToEventSourceMappingDestinationConfigPtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigPtrOutput
- type EventSourceMappingState
- type Function
- type FunctionArgs
- type FunctionDeadLetterConfig
- type FunctionDeadLetterConfigArgs
- func (FunctionDeadLetterConfigArgs) ElementType() reflect.Type
- func (i FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigOutput() FunctionDeadLetterConfigOutput
- func (i FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigOutputWithContext(ctx context.Context) FunctionDeadLetterConfigOutput
- func (i FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigPtrOutput() FunctionDeadLetterConfigPtrOutput
- func (i FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigPtrOutputWithContext(ctx context.Context) FunctionDeadLetterConfigPtrOutput
- type FunctionDeadLetterConfigInput
- type FunctionDeadLetterConfigOutput
- func (FunctionDeadLetterConfigOutput) ElementType() reflect.Type
- func (o FunctionDeadLetterConfigOutput) TargetArn() pulumi.StringOutput
- func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigOutput() FunctionDeadLetterConfigOutput
- func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigOutputWithContext(ctx context.Context) FunctionDeadLetterConfigOutput
- func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigPtrOutput() FunctionDeadLetterConfigPtrOutput
- func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigPtrOutputWithContext(ctx context.Context) FunctionDeadLetterConfigPtrOutput
- type FunctionDeadLetterConfigPtrInput
- type FunctionDeadLetterConfigPtrOutput
- func (o FunctionDeadLetterConfigPtrOutput) Elem() FunctionDeadLetterConfigOutput
- func (FunctionDeadLetterConfigPtrOutput) ElementType() reflect.Type
- func (o FunctionDeadLetterConfigPtrOutput) TargetArn() pulumi.StringPtrOutput
- func (o FunctionDeadLetterConfigPtrOutput) ToFunctionDeadLetterConfigPtrOutput() FunctionDeadLetterConfigPtrOutput
- func (o FunctionDeadLetterConfigPtrOutput) ToFunctionDeadLetterConfigPtrOutputWithContext(ctx context.Context) FunctionDeadLetterConfigPtrOutput
- type FunctionEnvironment
- type FunctionEnvironmentArgs
- func (FunctionEnvironmentArgs) ElementType() reflect.Type
- func (i FunctionEnvironmentArgs) ToFunctionEnvironmentOutput() FunctionEnvironmentOutput
- func (i FunctionEnvironmentArgs) ToFunctionEnvironmentOutputWithContext(ctx context.Context) FunctionEnvironmentOutput
- func (i FunctionEnvironmentArgs) ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput
- func (i FunctionEnvironmentArgs) ToFunctionEnvironmentPtrOutputWithContext(ctx context.Context) FunctionEnvironmentPtrOutput
- type FunctionEnvironmentInput
- type FunctionEnvironmentOutput
- func (FunctionEnvironmentOutput) ElementType() reflect.Type
- func (o FunctionEnvironmentOutput) ToFunctionEnvironmentOutput() FunctionEnvironmentOutput
- func (o FunctionEnvironmentOutput) ToFunctionEnvironmentOutputWithContext(ctx context.Context) FunctionEnvironmentOutput
- func (o FunctionEnvironmentOutput) ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput
- func (o FunctionEnvironmentOutput) ToFunctionEnvironmentPtrOutputWithContext(ctx context.Context) FunctionEnvironmentPtrOutput
- func (o FunctionEnvironmentOutput) Variables() pulumi.StringMapOutput
- type FunctionEnvironmentPtrInput
- type FunctionEnvironmentPtrOutput
- func (o FunctionEnvironmentPtrOutput) Elem() FunctionEnvironmentOutput
- func (FunctionEnvironmentPtrOutput) ElementType() reflect.Type
- func (o FunctionEnvironmentPtrOutput) ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput
- func (o FunctionEnvironmentPtrOutput) ToFunctionEnvironmentPtrOutputWithContext(ctx context.Context) FunctionEnvironmentPtrOutput
- func (o FunctionEnvironmentPtrOutput) Variables() pulumi.StringMapOutput
- type FunctionEventInvokeConfig
- type FunctionEventInvokeConfigArgs
- type FunctionEventInvokeConfigDestinationConfig
- type FunctionEventInvokeConfigDestinationConfigArgs
- func (FunctionEventInvokeConfigDestinationConfigArgs) ElementType() reflect.Type
- func (i FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigOutput() FunctionEventInvokeConfigDestinationConfigOutput
- func (i FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOutput
- func (i FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigPtrOutput() FunctionEventInvokeConfigDestinationConfigPtrOutput
- func (i FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigPtrOutput
- type FunctionEventInvokeConfigDestinationConfigInput
- type FunctionEventInvokeConfigDestinationConfigOnFailure
- type FunctionEventInvokeConfigDestinationConfigOnFailureArgs
- func (FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ElementType() reflect.Type
- func (i FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutput() FunctionEventInvokeConfigDestinationConfigOnFailureOutput
- func (i FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailureOutput
- func (i FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
- func (i FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
- type FunctionEventInvokeConfigDestinationConfigOnFailureInput
- type FunctionEventInvokeConfigDestinationConfigOnFailureOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) Destination() pulumi.StringOutput
- func (FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ElementType() reflect.Type
- func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutput() FunctionEventInvokeConfigDestinationConfigOnFailureOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailureOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
- type FunctionEventInvokeConfigDestinationConfigOnFailurePtrInput
- type FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) Destination() pulumi.StringPtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) Elem() FunctionEventInvokeConfigDestinationConfigOnFailureOutput
- func (FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ElementType() reflect.Type
- func (o FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
- type FunctionEventInvokeConfigDestinationConfigOnSuccess
- type FunctionEventInvokeConfigDestinationConfigOnSuccessArgs
- func (FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ElementType() reflect.Type
- func (i FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessOutput
- func (i FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessOutput
- func (i FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
- func (i FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
- type FunctionEventInvokeConfigDestinationConfigOnSuccessInput
- type FunctionEventInvokeConfigDestinationConfigOnSuccessOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) Destination() pulumi.StringOutput
- func (FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ElementType() reflect.Type
- func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
- type FunctionEventInvokeConfigDestinationConfigOnSuccessPtrInput
- type FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) Destination() pulumi.StringPtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) Elem() FunctionEventInvokeConfigDestinationConfigOnSuccessOutput
- func (FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ElementType() reflect.Type
- func (o FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
- type FunctionEventInvokeConfigDestinationConfigOutput
- func (FunctionEventInvokeConfigDestinationConfigOutput) ElementType() reflect.Type
- func (o FunctionEventInvokeConfigDestinationConfigOutput) OnFailure() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOutput) OnSuccess() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigOutput() FunctionEventInvokeConfigDestinationConfigOutput
- func (o FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOutput
- func (o FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutput() FunctionEventInvokeConfigDestinationConfigPtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigPtrOutput
- type FunctionEventInvokeConfigDestinationConfigPtrInput
- type FunctionEventInvokeConfigDestinationConfigPtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigPtrOutput) Elem() FunctionEventInvokeConfigDestinationConfigOutput
- func (FunctionEventInvokeConfigDestinationConfigPtrOutput) ElementType() reflect.Type
- func (o FunctionEventInvokeConfigDestinationConfigPtrOutput) OnFailure() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigPtrOutput) OnSuccess() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigPtrOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutput() FunctionEventInvokeConfigDestinationConfigPtrOutput
- func (o FunctionEventInvokeConfigDestinationConfigPtrOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigPtrOutput
- type FunctionEventInvokeConfigState
- type FunctionFileSystemConfig
- type FunctionFileSystemConfigArgs
- func (FunctionFileSystemConfigArgs) ElementType() reflect.Type
- func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigOutput() FunctionFileSystemConfigOutput
- func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigOutputWithContext(ctx context.Context) FunctionFileSystemConfigOutput
- func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigPtrOutput() FunctionFileSystemConfigPtrOutput
- func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigPtrOutputWithContext(ctx context.Context) FunctionFileSystemConfigPtrOutput
- type FunctionFileSystemConfigInput
- type FunctionFileSystemConfigOutput
- func (o FunctionFileSystemConfigOutput) Arn() pulumi.StringOutput
- func (FunctionFileSystemConfigOutput) ElementType() reflect.Type
- func (o FunctionFileSystemConfigOutput) LocalMountPath() pulumi.StringOutput
- func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigOutput() FunctionFileSystemConfigOutput
- func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigOutputWithContext(ctx context.Context) FunctionFileSystemConfigOutput
- func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigPtrOutput() FunctionFileSystemConfigPtrOutput
- func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigPtrOutputWithContext(ctx context.Context) FunctionFileSystemConfigPtrOutput
- type FunctionFileSystemConfigPtrInput
- type FunctionFileSystemConfigPtrOutput
- func (o FunctionFileSystemConfigPtrOutput) Arn() pulumi.StringPtrOutput
- func (o FunctionFileSystemConfigPtrOutput) Elem() FunctionFileSystemConfigOutput
- func (FunctionFileSystemConfigPtrOutput) ElementType() reflect.Type
- func (o FunctionFileSystemConfigPtrOutput) LocalMountPath() pulumi.StringPtrOutput
- func (o FunctionFileSystemConfigPtrOutput) ToFunctionFileSystemConfigPtrOutput() FunctionFileSystemConfigPtrOutput
- func (o FunctionFileSystemConfigPtrOutput) ToFunctionFileSystemConfigPtrOutputWithContext(ctx context.Context) FunctionFileSystemConfigPtrOutput
- type FunctionState
- type FunctionTracingConfig
- type FunctionTracingConfigArgs
- func (FunctionTracingConfigArgs) ElementType() reflect.Type
- func (i FunctionTracingConfigArgs) ToFunctionTracingConfigOutput() FunctionTracingConfigOutput
- func (i FunctionTracingConfigArgs) ToFunctionTracingConfigOutputWithContext(ctx context.Context) FunctionTracingConfigOutput
- func (i FunctionTracingConfigArgs) ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput
- func (i FunctionTracingConfigArgs) ToFunctionTracingConfigPtrOutputWithContext(ctx context.Context) FunctionTracingConfigPtrOutput
- type FunctionTracingConfigInput
- type FunctionTracingConfigOutput
- func (FunctionTracingConfigOutput) ElementType() reflect.Type
- func (o FunctionTracingConfigOutput) Mode() pulumi.StringOutput
- func (o FunctionTracingConfigOutput) ToFunctionTracingConfigOutput() FunctionTracingConfigOutput
- func (o FunctionTracingConfigOutput) ToFunctionTracingConfigOutputWithContext(ctx context.Context) FunctionTracingConfigOutput
- func (o FunctionTracingConfigOutput) ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput
- func (o FunctionTracingConfigOutput) ToFunctionTracingConfigPtrOutputWithContext(ctx context.Context) FunctionTracingConfigPtrOutput
- type FunctionTracingConfigPtrInput
- type FunctionTracingConfigPtrOutput
- func (o FunctionTracingConfigPtrOutput) Elem() FunctionTracingConfigOutput
- func (FunctionTracingConfigPtrOutput) ElementType() reflect.Type
- func (o FunctionTracingConfigPtrOutput) Mode() pulumi.StringPtrOutput
- func (o FunctionTracingConfigPtrOutput) ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput
- func (o FunctionTracingConfigPtrOutput) ToFunctionTracingConfigPtrOutputWithContext(ctx context.Context) FunctionTracingConfigPtrOutput
- type FunctionVpcConfig
- type FunctionVpcConfigArgs
- func (FunctionVpcConfigArgs) ElementType() reflect.Type
- func (i FunctionVpcConfigArgs) ToFunctionVpcConfigOutput() FunctionVpcConfigOutput
- func (i FunctionVpcConfigArgs) ToFunctionVpcConfigOutputWithContext(ctx context.Context) FunctionVpcConfigOutput
- func (i FunctionVpcConfigArgs) ToFunctionVpcConfigPtrOutput() FunctionVpcConfigPtrOutput
- func (i FunctionVpcConfigArgs) ToFunctionVpcConfigPtrOutputWithContext(ctx context.Context) FunctionVpcConfigPtrOutput
- type FunctionVpcConfigInput
- type FunctionVpcConfigOutput
- func (FunctionVpcConfigOutput) ElementType() reflect.Type
- func (o FunctionVpcConfigOutput) SecurityGroupIds() pulumi.StringArrayOutput
- func (o FunctionVpcConfigOutput) SubnetIds() pulumi.StringArrayOutput
- func (o FunctionVpcConfigOutput) ToFunctionVpcConfigOutput() FunctionVpcConfigOutput
- func (o FunctionVpcConfigOutput) ToFunctionVpcConfigOutputWithContext(ctx context.Context) FunctionVpcConfigOutput
- func (o FunctionVpcConfigOutput) ToFunctionVpcConfigPtrOutput() FunctionVpcConfigPtrOutput
- func (o FunctionVpcConfigOutput) ToFunctionVpcConfigPtrOutputWithContext(ctx context.Context) FunctionVpcConfigPtrOutput
- func (o FunctionVpcConfigOutput) VpcId() pulumi.StringPtrOutput
- type FunctionVpcConfigPtrInput
- type FunctionVpcConfigPtrOutput
- func (o FunctionVpcConfigPtrOutput) Elem() FunctionVpcConfigOutput
- func (FunctionVpcConfigPtrOutput) ElementType() reflect.Type
- func (o FunctionVpcConfigPtrOutput) SecurityGroupIds() pulumi.StringArrayOutput
- func (o FunctionVpcConfigPtrOutput) SubnetIds() pulumi.StringArrayOutput
- func (o FunctionVpcConfigPtrOutput) ToFunctionVpcConfigPtrOutput() FunctionVpcConfigPtrOutput
- func (o FunctionVpcConfigPtrOutput) ToFunctionVpcConfigPtrOutputWithContext(ctx context.Context) FunctionVpcConfigPtrOutput
- func (o FunctionVpcConfigPtrOutput) VpcId() pulumi.StringPtrOutput
- type GetFunctionDeadLetterConfig
- type GetFunctionDeadLetterConfigArgs
- func (GetFunctionDeadLetterConfigArgs) ElementType() reflect.Type
- func (i GetFunctionDeadLetterConfigArgs) ToGetFunctionDeadLetterConfigOutput() GetFunctionDeadLetterConfigOutput
- func (i GetFunctionDeadLetterConfigArgs) ToGetFunctionDeadLetterConfigOutputWithContext(ctx context.Context) GetFunctionDeadLetterConfigOutput
- type GetFunctionDeadLetterConfigInput
- type GetFunctionDeadLetterConfigOutput
- func (GetFunctionDeadLetterConfigOutput) ElementType() reflect.Type
- func (o GetFunctionDeadLetterConfigOutput) TargetArn() pulumi.StringOutput
- func (o GetFunctionDeadLetterConfigOutput) ToGetFunctionDeadLetterConfigOutput() GetFunctionDeadLetterConfigOutput
- func (o GetFunctionDeadLetterConfigOutput) ToGetFunctionDeadLetterConfigOutputWithContext(ctx context.Context) GetFunctionDeadLetterConfigOutput
- type GetFunctionEnvironment
- type GetFunctionEnvironmentArgs
- type GetFunctionEnvironmentInput
- type GetFunctionEnvironmentOutput
- func (GetFunctionEnvironmentOutput) ElementType() reflect.Type
- func (o GetFunctionEnvironmentOutput) ToGetFunctionEnvironmentOutput() GetFunctionEnvironmentOutput
- func (o GetFunctionEnvironmentOutput) ToGetFunctionEnvironmentOutputWithContext(ctx context.Context) GetFunctionEnvironmentOutput
- func (o GetFunctionEnvironmentOutput) Variables() pulumi.StringMapOutput
- type GetFunctionFileSystemConfig
- type GetFunctionFileSystemConfigArgs
- func (GetFunctionFileSystemConfigArgs) ElementType() reflect.Type
- func (i GetFunctionFileSystemConfigArgs) ToGetFunctionFileSystemConfigOutput() GetFunctionFileSystemConfigOutput
- func (i GetFunctionFileSystemConfigArgs) ToGetFunctionFileSystemConfigOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigOutput
- type GetFunctionFileSystemConfigArray
- func (GetFunctionFileSystemConfigArray) ElementType() reflect.Type
- func (i GetFunctionFileSystemConfigArray) ToGetFunctionFileSystemConfigArrayOutput() GetFunctionFileSystemConfigArrayOutput
- func (i GetFunctionFileSystemConfigArray) ToGetFunctionFileSystemConfigArrayOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigArrayOutput
- type GetFunctionFileSystemConfigArrayInput
- type GetFunctionFileSystemConfigArrayOutput
- func (GetFunctionFileSystemConfigArrayOutput) ElementType() reflect.Type
- func (o GetFunctionFileSystemConfigArrayOutput) Index(i pulumi.IntInput) GetFunctionFileSystemConfigOutput
- func (o GetFunctionFileSystemConfigArrayOutput) ToGetFunctionFileSystemConfigArrayOutput() GetFunctionFileSystemConfigArrayOutput
- func (o GetFunctionFileSystemConfigArrayOutput) ToGetFunctionFileSystemConfigArrayOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigArrayOutput
- type GetFunctionFileSystemConfigInput
- type GetFunctionFileSystemConfigOutput
- func (o GetFunctionFileSystemConfigOutput) Arn() pulumi.StringOutput
- func (GetFunctionFileSystemConfigOutput) ElementType() reflect.Type
- func (o GetFunctionFileSystemConfigOutput) LocalMountPath() pulumi.StringOutput
- func (o GetFunctionFileSystemConfigOutput) ToGetFunctionFileSystemConfigOutput() GetFunctionFileSystemConfigOutput
- func (o GetFunctionFileSystemConfigOutput) ToGetFunctionFileSystemConfigOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigOutput
- type GetFunctionTracingConfig
- type GetFunctionTracingConfigArgs
- func (GetFunctionTracingConfigArgs) ElementType() reflect.Type
- func (i GetFunctionTracingConfigArgs) ToGetFunctionTracingConfigOutput() GetFunctionTracingConfigOutput
- func (i GetFunctionTracingConfigArgs) ToGetFunctionTracingConfigOutputWithContext(ctx context.Context) GetFunctionTracingConfigOutput
- type GetFunctionTracingConfigInput
- type GetFunctionTracingConfigOutput
- func (GetFunctionTracingConfigOutput) ElementType() reflect.Type
- func (o GetFunctionTracingConfigOutput) Mode() pulumi.StringOutput
- func (o GetFunctionTracingConfigOutput) ToGetFunctionTracingConfigOutput() GetFunctionTracingConfigOutput
- func (o GetFunctionTracingConfigOutput) ToGetFunctionTracingConfigOutputWithContext(ctx context.Context) GetFunctionTracingConfigOutput
- type GetFunctionVpcConfig
- type GetFunctionVpcConfigArgs
- type GetFunctionVpcConfigInput
- type GetFunctionVpcConfigOutput
- func (GetFunctionVpcConfigOutput) ElementType() reflect.Type
- func (o GetFunctionVpcConfigOutput) SecurityGroupIds() pulumi.StringArrayOutput
- func (o GetFunctionVpcConfigOutput) SubnetIds() pulumi.StringArrayOutput
- func (o GetFunctionVpcConfigOutput) ToGetFunctionVpcConfigOutput() GetFunctionVpcConfigOutput
- func (o GetFunctionVpcConfigOutput) ToGetFunctionVpcConfigOutputWithContext(ctx context.Context) GetFunctionVpcConfigOutput
- func (o GetFunctionVpcConfigOutput) VpcId() pulumi.StringOutput
- type GetInvocationArgs
- type GetInvocationResult
- type LayerVersion
- type LayerVersionArgs
- type LayerVersionState
- type LookupAliasArgs
- type LookupAliasResult
- type LookupFunctionArgs
- type LookupFunctionResult
- type LookupLayerVersionArgs
- type LookupLayerVersionResult
- type Permission
- type PermissionArgs
- type PermissionState
- type ProvisionedConcurrencyConfig
- type ProvisionedConcurrencyConfigArgs
- type ProvisionedConcurrencyConfigState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶
type Alias struct { pulumi.CustomResourceState // The Amazon Resource Name (ARN) identifying your Lambda function alias. Arn pulumi.StringOutput `pulumi:"arn"` // Description of the alias. Description pulumi.StringPtrOutput `pulumi:"description"` // The function ARN of the Lambda function for which you want to create an alias. FunctionName pulumi.StringOutput `pulumi:"functionName"` // Lambda function version for which you are creating the alias. Pattern: `(\$LATEST|[0-9]+)`. FunctionVersion pulumi.StringOutput `pulumi:"functionVersion"` // The ARN to be used for invoking Lambda Function from API Gateway - to be used in `apigateway.Integration`'s `uri` InvokeArn pulumi.StringOutput `pulumi:"invokeArn"` // Name for the alias you are creating. Pattern: `(?!^[0-9]+$)([a-zA-Z0-9-_]+)` Name pulumi.StringOutput `pulumi:"name"` // The Lambda alias' route configuration settings. Fields documented below RoutingConfig AliasRoutingConfigPtrOutput `pulumi:"routingConfig"` }
Creates a Lambda function alias. Creates an alias that points to the specified Lambda function version.
For information about Lambda and how to use it, see [What is AWS Lambda?](http://docs.aws.amazon.com/lambda/latest/dg/welcome.html) For information about function aliases, see [CreateAlias](http://docs.aws.amazon.com/lambda/latest/dg/API_CreateAlias.html) and [AliasRoutingConfiguration](https://docs.aws.amazon.com/lambda/latest/dg/API_AliasRoutingConfiguration.html) in the API docs.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewAlias(ctx, "testLambdaAlias", &lambda.AliasArgs{ Description: pulumi.String("a sample description"), FunctionName: pulumi.String(aws_lambda_function.Lambda_function_test.Arn), FunctionVersion: pulumi.String("1"), RoutingConfig: &lambda.AliasRoutingConfigArgs{ AdditionalVersionWeights: pulumi.Float64Map{ "2": pulumi.Float64(0.5), }, }, }) if err != nil { return err } return nil }) }
```
func GetAlias ¶
func GetAlias(ctx *pulumi.Context, name string, id pulumi.IDInput, state *AliasState, opts ...pulumi.ResourceOption) (*Alias, error)
GetAlias gets an existing Alias resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
type AliasArgs ¶
type AliasArgs struct { // Description of the alias. Description pulumi.StringPtrInput // The function ARN of the Lambda function for which you want to create an alias. FunctionName pulumi.StringInput // Lambda function version for which you are creating the alias. Pattern: `(\$LATEST|[0-9]+)`. FunctionVersion pulumi.StringInput // Name for the alias you are creating. Pattern: `(?!^[0-9]+$)([a-zA-Z0-9-_]+)` Name pulumi.StringPtrInput // The Lambda alias' route configuration settings. Fields documented below RoutingConfig AliasRoutingConfigPtrInput }
The set of arguments for constructing a Alias resource.
func (AliasArgs) ElementType ¶
type AliasRoutingConfig ¶
type AliasRoutingConfigArgs ¶
type AliasRoutingConfigArgs struct { // A map that defines the proportion of events that should be sent to different versions of a lambda function. AdditionalVersionWeights pulumi.Float64MapInput `pulumi:"additionalVersionWeights"` }
func (AliasRoutingConfigArgs) ElementType ¶
func (AliasRoutingConfigArgs) ElementType() reflect.Type
func (AliasRoutingConfigArgs) ToAliasRoutingConfigOutput ¶
func (i AliasRoutingConfigArgs) ToAliasRoutingConfigOutput() AliasRoutingConfigOutput
func (AliasRoutingConfigArgs) ToAliasRoutingConfigOutputWithContext ¶
func (i AliasRoutingConfigArgs) ToAliasRoutingConfigOutputWithContext(ctx context.Context) AliasRoutingConfigOutput
func (AliasRoutingConfigArgs) ToAliasRoutingConfigPtrOutput ¶
func (i AliasRoutingConfigArgs) ToAliasRoutingConfigPtrOutput() AliasRoutingConfigPtrOutput
func (AliasRoutingConfigArgs) ToAliasRoutingConfigPtrOutputWithContext ¶
func (i AliasRoutingConfigArgs) ToAliasRoutingConfigPtrOutputWithContext(ctx context.Context) AliasRoutingConfigPtrOutput
type AliasRoutingConfigInput ¶
type AliasRoutingConfigInput interface { pulumi.Input ToAliasRoutingConfigOutput() AliasRoutingConfigOutput ToAliasRoutingConfigOutputWithContext(context.Context) AliasRoutingConfigOutput }
AliasRoutingConfigInput is an input type that accepts AliasRoutingConfigArgs and AliasRoutingConfigOutput values. You can construct a concrete instance of `AliasRoutingConfigInput` via:
AliasRoutingConfigArgs{...}
type AliasRoutingConfigOutput ¶
type AliasRoutingConfigOutput struct{ *pulumi.OutputState }
func (AliasRoutingConfigOutput) AdditionalVersionWeights ¶
func (o AliasRoutingConfigOutput) AdditionalVersionWeights() pulumi.Float64MapOutput
A map that defines the proportion of events that should be sent to different versions of a lambda function.
func (AliasRoutingConfigOutput) ElementType ¶
func (AliasRoutingConfigOutput) ElementType() reflect.Type
func (AliasRoutingConfigOutput) ToAliasRoutingConfigOutput ¶
func (o AliasRoutingConfigOutput) ToAliasRoutingConfigOutput() AliasRoutingConfigOutput
func (AliasRoutingConfigOutput) ToAliasRoutingConfigOutputWithContext ¶
func (o AliasRoutingConfigOutput) ToAliasRoutingConfigOutputWithContext(ctx context.Context) AliasRoutingConfigOutput
func (AliasRoutingConfigOutput) ToAliasRoutingConfigPtrOutput ¶
func (o AliasRoutingConfigOutput) ToAliasRoutingConfigPtrOutput() AliasRoutingConfigPtrOutput
func (AliasRoutingConfigOutput) ToAliasRoutingConfigPtrOutputWithContext ¶
func (o AliasRoutingConfigOutput) ToAliasRoutingConfigPtrOutputWithContext(ctx context.Context) AliasRoutingConfigPtrOutput
type AliasRoutingConfigPtrInput ¶
type AliasRoutingConfigPtrInput interface { pulumi.Input ToAliasRoutingConfigPtrOutput() AliasRoutingConfigPtrOutput ToAliasRoutingConfigPtrOutputWithContext(context.Context) AliasRoutingConfigPtrOutput }
AliasRoutingConfigPtrInput is an input type that accepts AliasRoutingConfigArgs, AliasRoutingConfigPtr and AliasRoutingConfigPtrOutput values. You can construct a concrete instance of `AliasRoutingConfigPtrInput` via:
AliasRoutingConfigArgs{...} or: nil
func AliasRoutingConfigPtr ¶
func AliasRoutingConfigPtr(v *AliasRoutingConfigArgs) AliasRoutingConfigPtrInput
type AliasRoutingConfigPtrOutput ¶
type AliasRoutingConfigPtrOutput struct{ *pulumi.OutputState }
func (AliasRoutingConfigPtrOutput) AdditionalVersionWeights ¶
func (o AliasRoutingConfigPtrOutput) AdditionalVersionWeights() pulumi.Float64MapOutput
A map that defines the proportion of events that should be sent to different versions of a lambda function.
func (AliasRoutingConfigPtrOutput) Elem ¶
func (o AliasRoutingConfigPtrOutput) Elem() AliasRoutingConfigOutput
func (AliasRoutingConfigPtrOutput) ElementType ¶
func (AliasRoutingConfigPtrOutput) ElementType() reflect.Type
func (AliasRoutingConfigPtrOutput) ToAliasRoutingConfigPtrOutput ¶
func (o AliasRoutingConfigPtrOutput) ToAliasRoutingConfigPtrOutput() AliasRoutingConfigPtrOutput
func (AliasRoutingConfigPtrOutput) ToAliasRoutingConfigPtrOutputWithContext ¶
func (o AliasRoutingConfigPtrOutput) ToAliasRoutingConfigPtrOutputWithContext(ctx context.Context) AliasRoutingConfigPtrOutput
type AliasState ¶
type AliasState struct { // The Amazon Resource Name (ARN) identifying your Lambda function alias. Arn pulumi.StringPtrInput // Description of the alias. Description pulumi.StringPtrInput // The function ARN of the Lambda function for which you want to create an alias. FunctionName pulumi.StringPtrInput // Lambda function version for which you are creating the alias. Pattern: `(\$LATEST|[0-9]+)`. FunctionVersion pulumi.StringPtrInput // The ARN to be used for invoking Lambda Function from API Gateway - to be used in `apigateway.Integration`'s `uri` InvokeArn pulumi.StringPtrInput // Name for the alias you are creating. Pattern: `(?!^[0-9]+$)([a-zA-Z0-9-_]+)` Name pulumi.StringPtrInput // The Lambda alias' route configuration settings. Fields documented below RoutingConfig AliasRoutingConfigPtrInput }
func (AliasState) ElementType ¶
func (AliasState) ElementType() reflect.Type
type EventSourceMapping ¶
type EventSourceMapping struct { pulumi.CustomResourceState // The largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to `100` for DynamoDB and Kinesis, `10` for SQS. BatchSize pulumi.IntPtrOutput `pulumi:"batchSize"` BisectBatchOnFunctionError pulumi.BoolPtrOutput `pulumi:"bisectBatchOnFunctionError"` DestinationConfig EventSourceMappingDestinationConfigPtrOutput `pulumi:"destinationConfig"` // Determines if the mapping will be enabled on creation. Defaults to `true`. Enabled pulumi.BoolPtrOutput `pulumi:"enabled"` // The event source ARN - can be a Kinesis stream, DynamoDB stream, or SQS queue. EventSourceArn pulumi.StringOutput `pulumi:"eventSourceArn"` // The the ARN of the Lambda function the event source mapping is sending events to. (Note: this is a computed value that differs from `functionName` above.) FunctionArn pulumi.StringOutput `pulumi:"functionArn"` // The name or the ARN of the Lambda function that will be subscribing to events. FunctionName pulumi.StringOutput `pulumi:"functionName"` // The date this resource was last modified. LastModified pulumi.StringOutput `pulumi:"lastModified"` // The result of the last AWS Lambda invocation of your Lambda function. LastProcessingResult pulumi.StringOutput `pulumi:"lastProcessingResult"` // The maximum amount of time to gather records before invoking the function, in seconds. Records will continue to buffer until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. Defaults to as soon as records are available in the stream. If the batch it reads from the stream only has one record in it, Lambda only sends one record to the function. MaximumBatchingWindowInSeconds pulumi.IntPtrOutput `pulumi:"maximumBatchingWindowInSeconds"` MaximumRecordAgeInSeconds pulumi.IntOutput `pulumi:"maximumRecordAgeInSeconds"` MaximumRetryAttempts pulumi.IntOutput `pulumi:"maximumRetryAttempts"` ParallelizationFactor pulumi.IntOutput `pulumi:"parallelizationFactor"` // The position in the stream where AWS Lambda should start reading. Must be one of `AT_TIMESTAMP` (Kinesis only), `LATEST` or `TRIM_HORIZON` if getting events from Kinesis or DynamoDB. Must not be provided if getting events from SQS. More information about these positions can be found in the [AWS DynamoDB Streams API Reference](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html) and [AWS Kinesis API Reference](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType). StartingPosition pulumi.StringPtrOutput `pulumi:"startingPosition"` // A timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) of the data record which to start reading when using `startingPosition` set to `AT_TIMESTAMP`. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen. // * `parallelizationFactor`: - (Optional) The number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10. // * `maximumRetryAttempts`: - (Optional) The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum of 0, maximum and default of 10000. // * `maximumRecordAgeInSeconds`: - (Optional) The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Minimum of 60, maximum and default of 604800. // * `bisectBatchOnFunctionError`: - (Optional) If the function returns an error, split the batch in two and retry. Only available for stream sources (DynamoDB and Kinesis). Defaults to `false`. // * `destinationConfig`: - (Optional) An Amazon SQS queue or Amazon SNS topic destination for failed records. Only available for stream sources (DynamoDB and Kinesis). Detailed below. StartingPositionTimestamp pulumi.StringPtrOutput `pulumi:"startingPositionTimestamp"` // The state of the event source mapping. State pulumi.StringOutput `pulumi:"state"` // The reason the event source mapping is in its current state. StateTransitionReason pulumi.StringOutput `pulumi:"stateTransitionReason"` // The UUID of the created event source mapping. Uuid pulumi.StringOutput `pulumi:"uuid"` }
Provides a Lambda event source mapping. This allows Lambda functions to get events from Kinesis, DynamoDB and SQS.
For information about Lambda and how to use it, see [What is AWS Lambda?](http://docs.aws.amazon.com/lambda/latest/dg/welcome.html). For information about event source mappings, see [CreateEventSourceMapping](http://docs.aws.amazon.com/lambda/latest/dg/API_CreateEventSourceMapping.html) in the API docs.
## Example Usage ### DynamoDB
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{ EventSourceArn: pulumi.String(aws_dynamodb_table.Example.Stream_arn), FunctionName: pulumi.String(aws_lambda_function.Example.Arn), StartingPosition: pulumi.String("LATEST"), }) if err != nil { return err } return nil }) }
``` ### Kinesis
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{ EventSourceArn: pulumi.String(aws_kinesis_stream.Example.Arn), FunctionName: pulumi.String(aws_lambda_function.Example.Arn), StartingPosition: pulumi.String("LATEST"), }) if err != nil { return err } return nil }) }
``` ### SQS
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{ EventSourceArn: pulumi.String(aws_sqs_queue.Sqs_queue_test.Arn), FunctionName: pulumi.String(aws_lambda_function.Example.Arn), }) if err != nil { return err } return nil }) }
```
func GetEventSourceMapping ¶
func GetEventSourceMapping(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EventSourceMappingState, opts ...pulumi.ResourceOption) (*EventSourceMapping, error)
GetEventSourceMapping gets an existing EventSourceMapping resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewEventSourceMapping ¶
func NewEventSourceMapping(ctx *pulumi.Context, name string, args *EventSourceMappingArgs, opts ...pulumi.ResourceOption) (*EventSourceMapping, error)
NewEventSourceMapping registers a new resource with the given unique name, arguments, and options.
type EventSourceMappingArgs ¶
type EventSourceMappingArgs struct { // The largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to `100` for DynamoDB and Kinesis, `10` for SQS. BatchSize pulumi.IntPtrInput BisectBatchOnFunctionError pulumi.BoolPtrInput DestinationConfig EventSourceMappingDestinationConfigPtrInput // Determines if the mapping will be enabled on creation. Defaults to `true`. Enabled pulumi.BoolPtrInput // The event source ARN - can be a Kinesis stream, DynamoDB stream, or SQS queue. EventSourceArn pulumi.StringInput // The name or the ARN of the Lambda function that will be subscribing to events. FunctionName pulumi.StringInput // The maximum amount of time to gather records before invoking the function, in seconds. Records will continue to buffer until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. Defaults to as soon as records are available in the stream. If the batch it reads from the stream only has one record in it, Lambda only sends one record to the function. MaximumBatchingWindowInSeconds pulumi.IntPtrInput MaximumRecordAgeInSeconds pulumi.IntPtrInput MaximumRetryAttempts pulumi.IntPtrInput ParallelizationFactor pulumi.IntPtrInput // The position in the stream where AWS Lambda should start reading. Must be one of `AT_TIMESTAMP` (Kinesis only), `LATEST` or `TRIM_HORIZON` if getting events from Kinesis or DynamoDB. Must not be provided if getting events from SQS. More information about these positions can be found in the [AWS DynamoDB Streams API Reference](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html) and [AWS Kinesis API Reference](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType). StartingPosition pulumi.StringPtrInput // A timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) of the data record which to start reading when using `startingPosition` set to `AT_TIMESTAMP`. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen. // * `parallelizationFactor`: - (Optional) The number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10. // * `maximumRetryAttempts`: - (Optional) The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum of 0, maximum and default of 10000. // * `maximumRecordAgeInSeconds`: - (Optional) The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Minimum of 60, maximum and default of 604800. // * `bisectBatchOnFunctionError`: - (Optional) If the function returns an error, split the batch in two and retry. Only available for stream sources (DynamoDB and Kinesis). Defaults to `false`. // * `destinationConfig`: - (Optional) An Amazon SQS queue or Amazon SNS topic destination for failed records. Only available for stream sources (DynamoDB and Kinesis). Detailed below. StartingPositionTimestamp pulumi.StringPtrInput }
The set of arguments for constructing a EventSourceMapping resource.
func (EventSourceMappingArgs) ElementType ¶
func (EventSourceMappingArgs) ElementType() reflect.Type
type EventSourceMappingDestinationConfig ¶
type EventSourceMappingDestinationConfig struct { // The destination configuration for failed invocations. Detailed below. OnFailure *EventSourceMappingDestinationConfigOnFailure `pulumi:"onFailure"` }
type EventSourceMappingDestinationConfigArgs ¶
type EventSourceMappingDestinationConfigArgs struct { // The destination configuration for failed invocations. Detailed below. OnFailure EventSourceMappingDestinationConfigOnFailurePtrInput `pulumi:"onFailure"` }
func (EventSourceMappingDestinationConfigArgs) ElementType ¶
func (EventSourceMappingDestinationConfigArgs) ElementType() reflect.Type
func (EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigOutput ¶
func (i EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigOutput() EventSourceMappingDestinationConfigOutput
func (EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigOutputWithContext ¶
func (i EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOutput
func (EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigPtrOutput ¶
func (i EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigPtrOutput() EventSourceMappingDestinationConfigPtrOutput
func (EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigPtrOutputWithContext ¶
func (i EventSourceMappingDestinationConfigArgs) ToEventSourceMappingDestinationConfigPtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigPtrOutput
type EventSourceMappingDestinationConfigInput ¶
type EventSourceMappingDestinationConfigInput interface { pulumi.Input ToEventSourceMappingDestinationConfigOutput() EventSourceMappingDestinationConfigOutput ToEventSourceMappingDestinationConfigOutputWithContext(context.Context) EventSourceMappingDestinationConfigOutput }
EventSourceMappingDestinationConfigInput is an input type that accepts EventSourceMappingDestinationConfigArgs and EventSourceMappingDestinationConfigOutput values. You can construct a concrete instance of `EventSourceMappingDestinationConfigInput` via:
EventSourceMappingDestinationConfigArgs{...}
type EventSourceMappingDestinationConfigOnFailure ¶
type EventSourceMappingDestinationConfigOnFailure struct { // The Amazon Resource Name (ARN) of the destination resource. DestinationArn string `pulumi:"destinationArn"` }
type EventSourceMappingDestinationConfigOnFailureArgs ¶
type EventSourceMappingDestinationConfigOnFailureArgs struct { // The Amazon Resource Name (ARN) of the destination resource. DestinationArn pulumi.StringInput `pulumi:"destinationArn"` }
func (EventSourceMappingDestinationConfigOnFailureArgs) ElementType ¶
func (EventSourceMappingDestinationConfigOnFailureArgs) ElementType() reflect.Type
func (EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailureOutput ¶
func (i EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailureOutput() EventSourceMappingDestinationConfigOnFailureOutput
func (EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailureOutputWithContext ¶
func (i EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailureOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailureOutput
func (EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailurePtrOutput ¶
func (i EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailurePtrOutput() EventSourceMappingDestinationConfigOnFailurePtrOutput
func (EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext ¶
func (i EventSourceMappingDestinationConfigOnFailureArgs) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailurePtrOutput
type EventSourceMappingDestinationConfigOnFailureInput ¶
type EventSourceMappingDestinationConfigOnFailureInput interface { pulumi.Input ToEventSourceMappingDestinationConfigOnFailureOutput() EventSourceMappingDestinationConfigOnFailureOutput ToEventSourceMappingDestinationConfigOnFailureOutputWithContext(context.Context) EventSourceMappingDestinationConfigOnFailureOutput }
EventSourceMappingDestinationConfigOnFailureInput is an input type that accepts EventSourceMappingDestinationConfigOnFailureArgs and EventSourceMappingDestinationConfigOnFailureOutput values. You can construct a concrete instance of `EventSourceMappingDestinationConfigOnFailureInput` via:
EventSourceMappingDestinationConfigOnFailureArgs{...}
type EventSourceMappingDestinationConfigOnFailureOutput ¶
type EventSourceMappingDestinationConfigOnFailureOutput struct{ *pulumi.OutputState }
func (EventSourceMappingDestinationConfigOnFailureOutput) DestinationArn ¶
func (o EventSourceMappingDestinationConfigOnFailureOutput) DestinationArn() pulumi.StringOutput
The Amazon Resource Name (ARN) of the destination resource.
func (EventSourceMappingDestinationConfigOnFailureOutput) ElementType ¶
func (EventSourceMappingDestinationConfigOnFailureOutput) ElementType() reflect.Type
func (EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailureOutput ¶
func (o EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailureOutput() EventSourceMappingDestinationConfigOnFailureOutput
func (EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailureOutputWithContext ¶
func (o EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailureOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailureOutput
func (EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutput ¶
func (o EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutput() EventSourceMappingDestinationConfigOnFailurePtrOutput
func (EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext ¶
func (o EventSourceMappingDestinationConfigOnFailureOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailurePtrOutput
type EventSourceMappingDestinationConfigOnFailurePtrInput ¶
type EventSourceMappingDestinationConfigOnFailurePtrInput interface { pulumi.Input ToEventSourceMappingDestinationConfigOnFailurePtrOutput() EventSourceMappingDestinationConfigOnFailurePtrOutput ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext(context.Context) EventSourceMappingDestinationConfigOnFailurePtrOutput }
EventSourceMappingDestinationConfigOnFailurePtrInput is an input type that accepts EventSourceMappingDestinationConfigOnFailureArgs, EventSourceMappingDestinationConfigOnFailurePtr and EventSourceMappingDestinationConfigOnFailurePtrOutput values. You can construct a concrete instance of `EventSourceMappingDestinationConfigOnFailurePtrInput` via:
EventSourceMappingDestinationConfigOnFailureArgs{...} or: nil
func EventSourceMappingDestinationConfigOnFailurePtr ¶
func EventSourceMappingDestinationConfigOnFailurePtr(v *EventSourceMappingDestinationConfigOnFailureArgs) EventSourceMappingDestinationConfigOnFailurePtrInput
type EventSourceMappingDestinationConfigOnFailurePtrOutput ¶
type EventSourceMappingDestinationConfigOnFailurePtrOutput struct{ *pulumi.OutputState }
func (EventSourceMappingDestinationConfigOnFailurePtrOutput) DestinationArn ¶
func (o EventSourceMappingDestinationConfigOnFailurePtrOutput) DestinationArn() pulumi.StringPtrOutput
The Amazon Resource Name (ARN) of the destination resource.
func (EventSourceMappingDestinationConfigOnFailurePtrOutput) ElementType ¶
func (EventSourceMappingDestinationConfigOnFailurePtrOutput) ElementType() reflect.Type
func (EventSourceMappingDestinationConfigOnFailurePtrOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutput ¶
func (o EventSourceMappingDestinationConfigOnFailurePtrOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutput() EventSourceMappingDestinationConfigOnFailurePtrOutput
func (EventSourceMappingDestinationConfigOnFailurePtrOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext ¶
func (o EventSourceMappingDestinationConfigOnFailurePtrOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailurePtrOutput
type EventSourceMappingDestinationConfigOutput ¶
type EventSourceMappingDestinationConfigOutput struct{ *pulumi.OutputState }
func (EventSourceMappingDestinationConfigOutput) ElementType ¶
func (EventSourceMappingDestinationConfigOutput) ElementType() reflect.Type
func (EventSourceMappingDestinationConfigOutput) OnFailure ¶
func (o EventSourceMappingDestinationConfigOutput) OnFailure() EventSourceMappingDestinationConfigOnFailurePtrOutput
The destination configuration for failed invocations. Detailed below.
func (EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigOutput ¶
func (o EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigOutput() EventSourceMappingDestinationConfigOutput
func (EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigOutputWithContext ¶
func (o EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOutput
func (EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigPtrOutput ¶
func (o EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigPtrOutput() EventSourceMappingDestinationConfigPtrOutput
func (EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigPtrOutputWithContext ¶
func (o EventSourceMappingDestinationConfigOutput) ToEventSourceMappingDestinationConfigPtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigPtrOutput
type EventSourceMappingDestinationConfigPtrInput ¶
type EventSourceMappingDestinationConfigPtrInput interface { pulumi.Input ToEventSourceMappingDestinationConfigPtrOutput() EventSourceMappingDestinationConfigPtrOutput ToEventSourceMappingDestinationConfigPtrOutputWithContext(context.Context) EventSourceMappingDestinationConfigPtrOutput }
EventSourceMappingDestinationConfigPtrInput is an input type that accepts EventSourceMappingDestinationConfigArgs, EventSourceMappingDestinationConfigPtr and EventSourceMappingDestinationConfigPtrOutput values. You can construct a concrete instance of `EventSourceMappingDestinationConfigPtrInput` via:
EventSourceMappingDestinationConfigArgs{...} or: nil
func EventSourceMappingDestinationConfigPtr ¶
func EventSourceMappingDestinationConfigPtr(v *EventSourceMappingDestinationConfigArgs) EventSourceMappingDestinationConfigPtrInput
type EventSourceMappingDestinationConfigPtrOutput ¶
type EventSourceMappingDestinationConfigPtrOutput struct{ *pulumi.OutputState }
func (EventSourceMappingDestinationConfigPtrOutput) ElementType ¶
func (EventSourceMappingDestinationConfigPtrOutput) ElementType() reflect.Type
func (EventSourceMappingDestinationConfigPtrOutput) OnFailure ¶
func (o EventSourceMappingDestinationConfigPtrOutput) OnFailure() EventSourceMappingDestinationConfigOnFailurePtrOutput
The destination configuration for failed invocations. Detailed below.
func (EventSourceMappingDestinationConfigPtrOutput) ToEventSourceMappingDestinationConfigPtrOutput ¶
func (o EventSourceMappingDestinationConfigPtrOutput) ToEventSourceMappingDestinationConfigPtrOutput() EventSourceMappingDestinationConfigPtrOutput
func (EventSourceMappingDestinationConfigPtrOutput) ToEventSourceMappingDestinationConfigPtrOutputWithContext ¶
func (o EventSourceMappingDestinationConfigPtrOutput) ToEventSourceMappingDestinationConfigPtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigPtrOutput
type EventSourceMappingState ¶
type EventSourceMappingState struct { // The largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to `100` for DynamoDB and Kinesis, `10` for SQS. BatchSize pulumi.IntPtrInput BisectBatchOnFunctionError pulumi.BoolPtrInput DestinationConfig EventSourceMappingDestinationConfigPtrInput // Determines if the mapping will be enabled on creation. Defaults to `true`. Enabled pulumi.BoolPtrInput // The event source ARN - can be a Kinesis stream, DynamoDB stream, or SQS queue. EventSourceArn pulumi.StringPtrInput // The the ARN of the Lambda function the event source mapping is sending events to. (Note: this is a computed value that differs from `functionName` above.) FunctionArn pulumi.StringPtrInput // The name or the ARN of the Lambda function that will be subscribing to events. FunctionName pulumi.StringPtrInput // The date this resource was last modified. LastModified pulumi.StringPtrInput // The result of the last AWS Lambda invocation of your Lambda function. LastProcessingResult pulumi.StringPtrInput // The maximum amount of time to gather records before invoking the function, in seconds. Records will continue to buffer until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. Defaults to as soon as records are available in the stream. If the batch it reads from the stream only has one record in it, Lambda only sends one record to the function. MaximumBatchingWindowInSeconds pulumi.IntPtrInput MaximumRecordAgeInSeconds pulumi.IntPtrInput MaximumRetryAttempts pulumi.IntPtrInput ParallelizationFactor pulumi.IntPtrInput // The position in the stream where AWS Lambda should start reading. Must be one of `AT_TIMESTAMP` (Kinesis only), `LATEST` or `TRIM_HORIZON` if getting events from Kinesis or DynamoDB. Must not be provided if getting events from SQS. More information about these positions can be found in the [AWS DynamoDB Streams API Reference](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html) and [AWS Kinesis API Reference](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType). StartingPosition pulumi.StringPtrInput // A timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) of the data record which to start reading when using `startingPosition` set to `AT_TIMESTAMP`. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen. // * `parallelizationFactor`: - (Optional) The number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10. // * `maximumRetryAttempts`: - (Optional) The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum of 0, maximum and default of 10000. // * `maximumRecordAgeInSeconds`: - (Optional) The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Minimum of 60, maximum and default of 604800. // * `bisectBatchOnFunctionError`: - (Optional) If the function returns an error, split the batch in two and retry. Only available for stream sources (DynamoDB and Kinesis). Defaults to `false`. // * `destinationConfig`: - (Optional) An Amazon SQS queue or Amazon SNS topic destination for failed records. Only available for stream sources (DynamoDB and Kinesis). Detailed below. StartingPositionTimestamp pulumi.StringPtrInput // The state of the event source mapping. State pulumi.StringPtrInput // The reason the event source mapping is in its current state. StateTransitionReason pulumi.StringPtrInput // The UUID of the created event source mapping. Uuid pulumi.StringPtrInput }
func (EventSourceMappingState) ElementType ¶
func (EventSourceMappingState) ElementType() reflect.Type
type Function ¶
type Function struct { pulumi.CustomResourceState // The Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system. Arn pulumi.StringOutput `pulumi:"arn"` // The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used. Code pulumi.ArchiveOutput `pulumi:"code"` // Nested block to configure the function's *dead letter queue*. See details below. DeadLetterConfig FunctionDeadLetterConfigPtrOutput `pulumi:"deadLetterConfig"` // Description of what your Lambda Function does. Description pulumi.StringPtrOutput `pulumi:"description"` // The Lambda environment's configuration settings. Fields documented below. Environment FunctionEnvironmentPtrOutput `pulumi:"environment"` // The connection settings for an EFS file system. Fields documented below. Before creating or updating Lambda functions with `fileSystemConfig`, EFS mount targets much be in available lifecycle state. Use `dependsOn` to explicitly declare this dependency. See [Using Amazon EFS with Lambda](https://docs.aws.amazon.com/lambda/latest/dg/services-efs.html). FileSystemConfig FunctionFileSystemConfigPtrOutput `pulumi:"fileSystemConfig"` // The function [entrypoint](https://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events-create-test-function.html) in your code. Handler pulumi.StringOutput `pulumi:"handler"` // The ARN to be used for invoking Lambda Function from API Gateway - to be used in `apigateway.Integration`'s `uri` InvokeArn pulumi.StringOutput `pulumi:"invokeArn"` // Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key that is used to encrypt environment variables. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key. If this configuration is provided when environment variables are not in use, the AWS Lambda API does not save this configuration and this provider will show a perpetual difference of adding the key. To fix the perpetual difference, remove this configuration. KmsKeyArn pulumi.StringPtrOutput `pulumi:"kmsKeyArn"` // The date this resource was last modified. LastModified pulumi.StringOutput `pulumi:"lastModified"` // List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. See [Lambda Layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) Layers pulumi.StringArrayOutput `pulumi:"layers"` // Amount of memory in MB your Lambda Function can use at runtime. Defaults to `128`. See [Limits](https://docs.aws.amazon.com/lambda/latest/dg/limits.html) MemorySize pulumi.IntPtrOutput `pulumi:"memorySize"` // A unique name for your Lambda Function. Name pulumi.StringOutput `pulumi:"name"` // Whether to publish creation/change as new Lambda Function Version. Defaults to `false`. Publish pulumi.BoolPtrOutput `pulumi:"publish"` // The Amazon Resource Name (ARN) identifying your Lambda Function Version // (if versioning is enabled via `publish = true`). QualifiedArn pulumi.StringOutput `pulumi:"qualifiedArn"` // The amount of reserved concurrent executions for this lambda function. A value of `0` disables lambda from being triggered and `-1` removes any concurrency limitations. Defaults to Unreserved Concurrency Limits `-1`. See [Managing Concurrency](https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html) ReservedConcurrentExecutions pulumi.IntPtrOutput `pulumi:"reservedConcurrentExecutions"` // IAM role attached to the Lambda Function. This governs both who / what can invoke your Lambda Function, as well as what resources our Lambda Function has access to. See [Lambda Permission Model](https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html) for more details. Role pulumi.StringOutput `pulumi:"role"` // See [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime) for valid values. Runtime pulumi.StringOutput `pulumi:"runtime"` // The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function. S3Bucket pulumi.StringPtrOutput `pulumi:"s3Bucket"` // The S3 key of an object containing the function's deployment package. Conflicts with `filename`. S3Key pulumi.StringPtrOutput `pulumi:"s3Key"` // The object version containing the function's deployment package. Conflicts with `filename`. S3ObjectVersion pulumi.StringPtrOutput `pulumi:"s3ObjectVersion"` // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `filebase64sha256("file.zip")` (this provider 0.11.12 and later) or `base64sha256(file("file.zip"))` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda function source archive. SourceCodeHash pulumi.StringOutput `pulumi:"sourceCodeHash"` // The size in bytes of the function .zip file. SourceCodeSize pulumi.IntOutput `pulumi:"sourceCodeSize"` // A mapping of tags to assign to the object. Tags pulumi.StringMapOutput `pulumi:"tags"` // The amount of time your Lambda Function has to run in seconds. Defaults to `3`. See [Limits](https://docs.aws.amazon.com/lambda/latest/dg/limits.html) Timeout pulumi.IntPtrOutput `pulumi:"timeout"` TracingConfig FunctionTracingConfigOutput `pulumi:"tracingConfig"` // Latest published version of your Lambda Function. Version pulumi.StringOutput `pulumi:"version"` // Provide this to allow your function to access your VPC. Fields documented below. See [Lambda in VPC](http://docs.aws.amazon.com/lambda/latest/dg/vpc.html) VpcConfig FunctionVpcConfigPtrOutput `pulumi:"vpcConfig"` }
Provides a Lambda Function resource. Lambda allows you to trigger execution of code in response to events in AWS, enabling serverless backend solutions. The Lambda Function itself includes source code and runtime configuration.
For information about Lambda and how to use it, see [What is AWS Lambda?](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html)
> **NOTE:** Due to [AWS Lambda improved VPC networking changes that began deploying in September 2019](https://aws.amazon.com/blogs/compute/announcing-improved-vpc-networking-for-aws-lambda-functions/), EC2 subnets and security groups associated with Lambda Functions can take up to 45 minutes to successfully delete.
## Example Usage ### Lambda Layers
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { exampleLayerVersion, err := lambda.NewLayerVersion(ctx, "exampleLayerVersion", nil) if err != nil { return err } _, err = lambda.NewFunction(ctx, "exampleFunction", &lambda.FunctionArgs{ Layers: pulumi.StringArray{ exampleLayerVersion.Arn, }, }) if err != nil { return err } return nil }) }
``` ### CloudWatch Logging and Permissions
For more information about CloudWatch Logs for Lambda, see the [Lambda User Guide](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-functions-logs.html).
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/cloudwatch" "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/iam" "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewFunction(ctx, "testLambda", nil, pulumi.DependsOn([]pulumi.Resource{ "aws_cloudwatch_log_group.example", "aws_iam_role_policy_attachment.lambda_logs", })) if err != nil { return err } _, err = cloudwatch.NewLogGroup(ctx, "example", &cloudwatch.LogGroupArgs{ RetentionInDays: pulumi.Int(14), }) if err != nil { return err } lambdaLogging, err := iam.NewPolicy(ctx, "lambdaLogging", &iam.PolicyArgs{ Description: pulumi.String("IAM policy for logging from a lambda"), Path: pulumi.String("/"), Policy: pulumi.String(fmt.Sprintf("%v%v%v%v%v%v%v%v%v%v%v%v%v%v%v", "{\n", " \"Version\": \"2012-10-17\",\n", " \"Statement\": [\n", " {\n", " \"Action\": [\n", " \"logs:CreateLogGroup\",\n", " \"logs:CreateLogStream\",\n", " \"logs:PutLogEvents\"\n", " ],\n", " \"Resource\": \"arn:aws:logs:*:*:*\",\n", " \"Effect\": \"Allow\"\n", " }\n", " ]\n", "}\n", "\n")), }) if err != nil { return err } _, err = iam.NewRolePolicyAttachment(ctx, "lambdaLogs", &iam.RolePolicyAttachmentArgs{ PolicyArn: lambdaLogging.Arn, Role: pulumi.String(aws_iam_role.Iam_for_lambda.Name), }) if err != nil { return err } return nil }) }
``` ## Specifying the Deployment Package
AWS Lambda expects source code to be provided as a deployment package whose structure varies depending on which `runtime` is in use. See [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime) for the valid values of `runtime`. The expected structure of the deployment package can be found in [the AWS Lambda documentation for each runtime](https://docs.aws.amazon.com/lambda/latest/dg/deployment-package-v2.html).
Once you have created your deployment package you can specify it either directly as a local file (using the `filename` argument) or indirectly via Amazon S3 (using the `s3Bucket`, `s3Key` and `s3ObjectVersion` arguments). When providing the deployment package via S3 it may be useful to use the `s3.BucketObject` resource to upload it.
For larger deployment packages it is recommended by Amazon to upload via S3, since the S3 API has better support for uploading large files efficiently.
func GetFunction ¶
func GetFunction(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionState, opts ...pulumi.ResourceOption) (*Function, error)
GetFunction gets an existing Function resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFunction ¶
func NewFunction(ctx *pulumi.Context, name string, args *FunctionArgs, opts ...pulumi.ResourceOption) (*Function, error)
NewFunction registers a new resource with the given unique name, arguments, and options.
type FunctionArgs ¶
type FunctionArgs struct { // The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used. Code pulumi.ArchiveInput // Nested block to configure the function's *dead letter queue*. See details below. DeadLetterConfig FunctionDeadLetterConfigPtrInput // Description of what your Lambda Function does. Description pulumi.StringPtrInput // The Lambda environment's configuration settings. Fields documented below. Environment FunctionEnvironmentPtrInput // The connection settings for an EFS file system. Fields documented below. Before creating or updating Lambda functions with `fileSystemConfig`, EFS mount targets much be in available lifecycle state. Use `dependsOn` to explicitly declare this dependency. See [Using Amazon EFS with Lambda](https://docs.aws.amazon.com/lambda/latest/dg/services-efs.html). FileSystemConfig FunctionFileSystemConfigPtrInput // The function [entrypoint](https://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events-create-test-function.html) in your code. Handler pulumi.StringInput // Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key that is used to encrypt environment variables. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key. If this configuration is provided when environment variables are not in use, the AWS Lambda API does not save this configuration and this provider will show a perpetual difference of adding the key. To fix the perpetual difference, remove this configuration. KmsKeyArn pulumi.StringPtrInput // List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. See [Lambda Layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) Layers pulumi.StringArrayInput // Amount of memory in MB your Lambda Function can use at runtime. Defaults to `128`. See [Limits](https://docs.aws.amazon.com/lambda/latest/dg/limits.html) MemorySize pulumi.IntPtrInput // A unique name for your Lambda Function. Name pulumi.StringPtrInput // Whether to publish creation/change as new Lambda Function Version. Defaults to `false`. Publish pulumi.BoolPtrInput // The amount of reserved concurrent executions for this lambda function. A value of `0` disables lambda from being triggered and `-1` removes any concurrency limitations. Defaults to Unreserved Concurrency Limits `-1`. See [Managing Concurrency](https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html) ReservedConcurrentExecutions pulumi.IntPtrInput // IAM role attached to the Lambda Function. This governs both who / what can invoke your Lambda Function, as well as what resources our Lambda Function has access to. See [Lambda Permission Model](https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html) for more details. Role pulumi.StringInput // See [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime) for valid values. Runtime pulumi.StringInput // The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function. S3Bucket pulumi.StringPtrInput // The S3 key of an object containing the function's deployment package. Conflicts with `filename`. S3Key pulumi.StringPtrInput // The object version containing the function's deployment package. Conflicts with `filename`. S3ObjectVersion pulumi.StringPtrInput // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `filebase64sha256("file.zip")` (this provider 0.11.12 and later) or `base64sha256(file("file.zip"))` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda function source archive. SourceCodeHash pulumi.StringPtrInput // A mapping of tags to assign to the object. Tags pulumi.StringMapInput // The amount of time your Lambda Function has to run in seconds. Defaults to `3`. See [Limits](https://docs.aws.amazon.com/lambda/latest/dg/limits.html) Timeout pulumi.IntPtrInput TracingConfig FunctionTracingConfigPtrInput // Provide this to allow your function to access your VPC. Fields documented below. See [Lambda in VPC](http://docs.aws.amazon.com/lambda/latest/dg/vpc.html) VpcConfig FunctionVpcConfigPtrInput }
The set of arguments for constructing a Function resource.
func (FunctionArgs) ElementType ¶
func (FunctionArgs) ElementType() reflect.Type
type FunctionDeadLetterConfig ¶
type FunctionDeadLetterConfig struct { // The ARN of an SNS topic or SQS queue to notify when an invocation fails. If this // option is used, the function's IAM role must be granted suitable access to write to the target object, // which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on // which service is targeted. TargetArn string `pulumi:"targetArn"` }
type FunctionDeadLetterConfigArgs ¶
type FunctionDeadLetterConfigArgs struct { // The ARN of an SNS topic or SQS queue to notify when an invocation fails. If this // option is used, the function's IAM role must be granted suitable access to write to the target object, // which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on // which service is targeted. TargetArn pulumi.StringInput `pulumi:"targetArn"` }
func (FunctionDeadLetterConfigArgs) ElementType ¶
func (FunctionDeadLetterConfigArgs) ElementType() reflect.Type
func (FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigOutput ¶
func (i FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigOutput() FunctionDeadLetterConfigOutput
func (FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigOutputWithContext ¶
func (i FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigOutputWithContext(ctx context.Context) FunctionDeadLetterConfigOutput
func (FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigPtrOutput ¶
func (i FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigPtrOutput() FunctionDeadLetterConfigPtrOutput
func (FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigPtrOutputWithContext ¶
func (i FunctionDeadLetterConfigArgs) ToFunctionDeadLetterConfigPtrOutputWithContext(ctx context.Context) FunctionDeadLetterConfigPtrOutput
type FunctionDeadLetterConfigInput ¶
type FunctionDeadLetterConfigInput interface { pulumi.Input ToFunctionDeadLetterConfigOutput() FunctionDeadLetterConfigOutput ToFunctionDeadLetterConfigOutputWithContext(context.Context) FunctionDeadLetterConfigOutput }
FunctionDeadLetterConfigInput is an input type that accepts FunctionDeadLetterConfigArgs and FunctionDeadLetterConfigOutput values. You can construct a concrete instance of `FunctionDeadLetterConfigInput` via:
FunctionDeadLetterConfigArgs{...}
type FunctionDeadLetterConfigOutput ¶
type FunctionDeadLetterConfigOutput struct{ *pulumi.OutputState }
func (FunctionDeadLetterConfigOutput) ElementType ¶
func (FunctionDeadLetterConfigOutput) ElementType() reflect.Type
func (FunctionDeadLetterConfigOutput) TargetArn ¶
func (o FunctionDeadLetterConfigOutput) TargetArn() pulumi.StringOutput
The ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on which service is targeted.
func (FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigOutput ¶
func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigOutput() FunctionDeadLetterConfigOutput
func (FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigOutputWithContext ¶
func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigOutputWithContext(ctx context.Context) FunctionDeadLetterConfigOutput
func (FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigPtrOutput ¶
func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigPtrOutput() FunctionDeadLetterConfigPtrOutput
func (FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigPtrOutputWithContext ¶
func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigPtrOutputWithContext(ctx context.Context) FunctionDeadLetterConfigPtrOutput
type FunctionDeadLetterConfigPtrInput ¶
type FunctionDeadLetterConfigPtrInput interface { pulumi.Input ToFunctionDeadLetterConfigPtrOutput() FunctionDeadLetterConfigPtrOutput ToFunctionDeadLetterConfigPtrOutputWithContext(context.Context) FunctionDeadLetterConfigPtrOutput }
FunctionDeadLetterConfigPtrInput is an input type that accepts FunctionDeadLetterConfigArgs, FunctionDeadLetterConfigPtr and FunctionDeadLetterConfigPtrOutput values. You can construct a concrete instance of `FunctionDeadLetterConfigPtrInput` via:
FunctionDeadLetterConfigArgs{...} or: nil
func FunctionDeadLetterConfigPtr ¶
func FunctionDeadLetterConfigPtr(v *FunctionDeadLetterConfigArgs) FunctionDeadLetterConfigPtrInput
type FunctionDeadLetterConfigPtrOutput ¶
type FunctionDeadLetterConfigPtrOutput struct{ *pulumi.OutputState }
func (FunctionDeadLetterConfigPtrOutput) Elem ¶
func (o FunctionDeadLetterConfigPtrOutput) Elem() FunctionDeadLetterConfigOutput
func (FunctionDeadLetterConfigPtrOutput) ElementType ¶
func (FunctionDeadLetterConfigPtrOutput) ElementType() reflect.Type
func (FunctionDeadLetterConfigPtrOutput) TargetArn ¶
func (o FunctionDeadLetterConfigPtrOutput) TargetArn() pulumi.StringPtrOutput
The ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on which service is targeted.
func (FunctionDeadLetterConfigPtrOutput) ToFunctionDeadLetterConfigPtrOutput ¶
func (o FunctionDeadLetterConfigPtrOutput) ToFunctionDeadLetterConfigPtrOutput() FunctionDeadLetterConfigPtrOutput
func (FunctionDeadLetterConfigPtrOutput) ToFunctionDeadLetterConfigPtrOutputWithContext ¶
func (o FunctionDeadLetterConfigPtrOutput) ToFunctionDeadLetterConfigPtrOutputWithContext(ctx context.Context) FunctionDeadLetterConfigPtrOutput
type FunctionEnvironment ¶
type FunctionEnvironmentArgs ¶
type FunctionEnvironmentArgs struct { // A map that defines environment variables for the Lambda function. Variables pulumi.StringMapInput `pulumi:"variables"` }
func (FunctionEnvironmentArgs) ElementType ¶
func (FunctionEnvironmentArgs) ElementType() reflect.Type
func (FunctionEnvironmentArgs) ToFunctionEnvironmentOutput ¶
func (i FunctionEnvironmentArgs) ToFunctionEnvironmentOutput() FunctionEnvironmentOutput
func (FunctionEnvironmentArgs) ToFunctionEnvironmentOutputWithContext ¶
func (i FunctionEnvironmentArgs) ToFunctionEnvironmentOutputWithContext(ctx context.Context) FunctionEnvironmentOutput
func (FunctionEnvironmentArgs) ToFunctionEnvironmentPtrOutput ¶
func (i FunctionEnvironmentArgs) ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput
func (FunctionEnvironmentArgs) ToFunctionEnvironmentPtrOutputWithContext ¶
func (i FunctionEnvironmentArgs) ToFunctionEnvironmentPtrOutputWithContext(ctx context.Context) FunctionEnvironmentPtrOutput
type FunctionEnvironmentInput ¶
type FunctionEnvironmentInput interface { pulumi.Input ToFunctionEnvironmentOutput() FunctionEnvironmentOutput ToFunctionEnvironmentOutputWithContext(context.Context) FunctionEnvironmentOutput }
FunctionEnvironmentInput is an input type that accepts FunctionEnvironmentArgs and FunctionEnvironmentOutput values. You can construct a concrete instance of `FunctionEnvironmentInput` via:
FunctionEnvironmentArgs{...}
type FunctionEnvironmentOutput ¶
type FunctionEnvironmentOutput struct{ *pulumi.OutputState }
func (FunctionEnvironmentOutput) ElementType ¶
func (FunctionEnvironmentOutput) ElementType() reflect.Type
func (FunctionEnvironmentOutput) ToFunctionEnvironmentOutput ¶
func (o FunctionEnvironmentOutput) ToFunctionEnvironmentOutput() FunctionEnvironmentOutput
func (FunctionEnvironmentOutput) ToFunctionEnvironmentOutputWithContext ¶
func (o FunctionEnvironmentOutput) ToFunctionEnvironmentOutputWithContext(ctx context.Context) FunctionEnvironmentOutput
func (FunctionEnvironmentOutput) ToFunctionEnvironmentPtrOutput ¶
func (o FunctionEnvironmentOutput) ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput
func (FunctionEnvironmentOutput) ToFunctionEnvironmentPtrOutputWithContext ¶
func (o FunctionEnvironmentOutput) ToFunctionEnvironmentPtrOutputWithContext(ctx context.Context) FunctionEnvironmentPtrOutput
func (FunctionEnvironmentOutput) Variables ¶
func (o FunctionEnvironmentOutput) Variables() pulumi.StringMapOutput
A map that defines environment variables for the Lambda function.
type FunctionEnvironmentPtrInput ¶
type FunctionEnvironmentPtrInput interface { pulumi.Input ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput ToFunctionEnvironmentPtrOutputWithContext(context.Context) FunctionEnvironmentPtrOutput }
FunctionEnvironmentPtrInput is an input type that accepts FunctionEnvironmentArgs, FunctionEnvironmentPtr and FunctionEnvironmentPtrOutput values. You can construct a concrete instance of `FunctionEnvironmentPtrInput` via:
FunctionEnvironmentArgs{...} or: nil
func FunctionEnvironmentPtr ¶
func FunctionEnvironmentPtr(v *FunctionEnvironmentArgs) FunctionEnvironmentPtrInput
type FunctionEnvironmentPtrOutput ¶
type FunctionEnvironmentPtrOutput struct{ *pulumi.OutputState }
func (FunctionEnvironmentPtrOutput) Elem ¶
func (o FunctionEnvironmentPtrOutput) Elem() FunctionEnvironmentOutput
func (FunctionEnvironmentPtrOutput) ElementType ¶
func (FunctionEnvironmentPtrOutput) ElementType() reflect.Type
func (FunctionEnvironmentPtrOutput) ToFunctionEnvironmentPtrOutput ¶
func (o FunctionEnvironmentPtrOutput) ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput
func (FunctionEnvironmentPtrOutput) ToFunctionEnvironmentPtrOutputWithContext ¶
func (o FunctionEnvironmentPtrOutput) ToFunctionEnvironmentPtrOutputWithContext(ctx context.Context) FunctionEnvironmentPtrOutput
func (FunctionEnvironmentPtrOutput) Variables ¶
func (o FunctionEnvironmentPtrOutput) Variables() pulumi.StringMapOutput
A map that defines environment variables for the Lambda function.
type FunctionEventInvokeConfig ¶
type FunctionEventInvokeConfig struct { pulumi.CustomResourceState // Configuration block with destination configuration. See below for details. DestinationConfig FunctionEventInvokeConfigDestinationConfigPtrOutput `pulumi:"destinationConfig"` // Name or Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier. FunctionName pulumi.StringOutput `pulumi:"functionName"` // Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600. MaximumEventAgeInSeconds pulumi.IntPtrOutput `pulumi:"maximumEventAgeInSeconds"` // Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2. MaximumRetryAttempts pulumi.IntPtrOutput `pulumi:"maximumRetryAttempts"` // Lambda Function published version, `$LATEST`, or Lambda Alias name. Qualifier pulumi.StringPtrOutput `pulumi:"qualifier"` }
Manages an asynchronous invocation configuration for a Lambda Function or Alias. More information about asynchronous invocations and the configurable values can be found in the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html).
## Example Usage ### Destination Configuration
> **NOTE:** Ensure the Lambda Function IAM Role has necessary permissions for the destination, such as `sqs:SendMessage` or `sns:Publish`, otherwise the API will return a generic `InvalidParameterValueException: The destination ARN arn:PARTITION:SERVICE:REGION:ACCOUNT:RESOURCE is invalid.` error.
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{ FunctionName: pulumi.String(aws_lambda_alias.Example.Function_name), DestinationConfig: &lambda.FunctionEventInvokeConfigDestinationConfigArgs{ OnFailure: &lambda.FunctionEventInvokeConfigDestinationConfigOnFailureArgs{ Destination: pulumi.String(aws_sqs_queue.Example.Arn), }, OnSuccess: &lambda.FunctionEventInvokeConfigDestinationConfigOnSuccessArgs{ Destination: pulumi.String(aws_sns_topic.Example.Arn), }, }, }) if err != nil { return err } return nil }) }
``` ### Error Handling Configuration
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{ FunctionName: pulumi.String(aws_lambda_alias.Example.Function_name), MaximumEventAgeInSeconds: pulumi.Int(60), MaximumRetryAttempts: pulumi.Int(0), }) if err != nil { return err } return nil }) }
``` ### Configuration for Alias Name
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{ FunctionName: pulumi.String(aws_lambda_alias.Example.Function_name), Qualifier: pulumi.String(aws_lambda_alias.Example.Name), }) if err != nil { return err } return nil }) }
``` ### Configuration for Function Latest Unpublished Version
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{ FunctionName: pulumi.String(aws_lambda_function.Example.Function_name), Qualifier: pulumi.String(fmt.Sprintf("%v%v", "$", "LATEST")), }) if err != nil { return err } return nil }) }
``` ### Configuration for Function Published Version
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{ FunctionName: pulumi.String(aws_lambda_function.Example.Function_name), Qualifier: pulumi.String(aws_lambda_function.Example.Version), }) if err != nil { return err } return nil }) }
```
func GetFunctionEventInvokeConfig ¶
func GetFunctionEventInvokeConfig(ctx *pulumi.Context, name string, id pulumi.IDInput, state *FunctionEventInvokeConfigState, opts ...pulumi.ResourceOption) (*FunctionEventInvokeConfig, error)
GetFunctionEventInvokeConfig gets an existing FunctionEventInvokeConfig resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewFunctionEventInvokeConfig ¶
func NewFunctionEventInvokeConfig(ctx *pulumi.Context, name string, args *FunctionEventInvokeConfigArgs, opts ...pulumi.ResourceOption) (*FunctionEventInvokeConfig, error)
NewFunctionEventInvokeConfig registers a new resource with the given unique name, arguments, and options.
type FunctionEventInvokeConfigArgs ¶
type FunctionEventInvokeConfigArgs struct { // Configuration block with destination configuration. See below for details. DestinationConfig FunctionEventInvokeConfigDestinationConfigPtrInput // Name or Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier. FunctionName pulumi.StringInput // Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600. MaximumEventAgeInSeconds pulumi.IntPtrInput // Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2. MaximumRetryAttempts pulumi.IntPtrInput // Lambda Function published version, `$LATEST`, or Lambda Alias name. Qualifier pulumi.StringPtrInput }
The set of arguments for constructing a FunctionEventInvokeConfig resource.
func (FunctionEventInvokeConfigArgs) ElementType ¶
func (FunctionEventInvokeConfigArgs) ElementType() reflect.Type
type FunctionEventInvokeConfigDestinationConfig ¶
type FunctionEventInvokeConfigDestinationConfig struct { // Configuration block with destination configuration for failed asynchronous invocations. See below for details. OnFailure *FunctionEventInvokeConfigDestinationConfigOnFailure `pulumi:"onFailure"` // Configuration block with destination configuration for successful asynchronous invocations. See below for details. OnSuccess *FunctionEventInvokeConfigDestinationConfigOnSuccess `pulumi:"onSuccess"` }
type FunctionEventInvokeConfigDestinationConfigArgs ¶
type FunctionEventInvokeConfigDestinationConfigArgs struct { // Configuration block with destination configuration for failed asynchronous invocations. See below for details. OnFailure FunctionEventInvokeConfigDestinationConfigOnFailurePtrInput `pulumi:"onFailure"` // Configuration block with destination configuration for successful asynchronous invocations. See below for details. OnSuccess FunctionEventInvokeConfigDestinationConfigOnSuccessPtrInput `pulumi:"onSuccess"` }
func (FunctionEventInvokeConfigDestinationConfigArgs) ElementType ¶
func (FunctionEventInvokeConfigDestinationConfigArgs) ElementType() reflect.Type
func (FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigOutput ¶
func (i FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigOutput() FunctionEventInvokeConfigDestinationConfigOutput
func (FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigOutputWithContext ¶
func (i FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOutput
func (FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigPtrOutput ¶
func (i FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigPtrOutput() FunctionEventInvokeConfigDestinationConfigPtrOutput
func (FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigPtrOutputWithContext ¶
func (i FunctionEventInvokeConfigDestinationConfigArgs) ToFunctionEventInvokeConfigDestinationConfigPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigPtrOutput
type FunctionEventInvokeConfigDestinationConfigInput ¶
type FunctionEventInvokeConfigDestinationConfigInput interface { pulumi.Input ToFunctionEventInvokeConfigDestinationConfigOutput() FunctionEventInvokeConfigDestinationConfigOutput ToFunctionEventInvokeConfigDestinationConfigOutputWithContext(context.Context) FunctionEventInvokeConfigDestinationConfigOutput }
FunctionEventInvokeConfigDestinationConfigInput is an input type that accepts FunctionEventInvokeConfigDestinationConfigArgs and FunctionEventInvokeConfigDestinationConfigOutput values. You can construct a concrete instance of `FunctionEventInvokeConfigDestinationConfigInput` via:
FunctionEventInvokeConfigDestinationConfigArgs{...}
type FunctionEventInvokeConfigDestinationConfigOnFailure ¶
type FunctionEventInvokeConfigDestinationConfigOnFailure struct { // Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions. Destination string `pulumi:"destination"` }
type FunctionEventInvokeConfigDestinationConfigOnFailureArgs ¶
type FunctionEventInvokeConfigDestinationConfigOnFailureArgs struct { // Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions. Destination pulumi.StringInput `pulumi:"destination"` }
func (FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ElementType ¶
func (FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ElementType() reflect.Type
func (FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutput ¶
func (i FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutput() FunctionEventInvokeConfigDestinationConfigOnFailureOutput
func (FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutputWithContext ¶
func (i FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailureOutput
func (FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput ¶
func (i FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
func (FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutputWithContext ¶
func (i FunctionEventInvokeConfigDestinationConfigOnFailureArgs) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
type FunctionEventInvokeConfigDestinationConfigOnFailureInput ¶
type FunctionEventInvokeConfigDestinationConfigOnFailureInput interface { pulumi.Input ToFunctionEventInvokeConfigDestinationConfigOnFailureOutput() FunctionEventInvokeConfigDestinationConfigOnFailureOutput ToFunctionEventInvokeConfigDestinationConfigOnFailureOutputWithContext(context.Context) FunctionEventInvokeConfigDestinationConfigOnFailureOutput }
FunctionEventInvokeConfigDestinationConfigOnFailureInput is an input type that accepts FunctionEventInvokeConfigDestinationConfigOnFailureArgs and FunctionEventInvokeConfigDestinationConfigOnFailureOutput values. You can construct a concrete instance of `FunctionEventInvokeConfigDestinationConfigOnFailureInput` via:
FunctionEventInvokeConfigDestinationConfigOnFailureArgs{...}
type FunctionEventInvokeConfigDestinationConfigOnFailureOutput ¶
type FunctionEventInvokeConfigDestinationConfigOnFailureOutput struct{ *pulumi.OutputState }
func (FunctionEventInvokeConfigDestinationConfigOnFailureOutput) Destination ¶
func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) Destination() pulumi.StringOutput
Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions.
func (FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ElementType ¶
func (FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ElementType() reflect.Type
func (FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutput ¶
func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutput() FunctionEventInvokeConfigDestinationConfigOnFailureOutput
func (FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutputWithContext ¶
func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailureOutput
func (FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput ¶
func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
func (FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutputWithContext ¶
func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
type FunctionEventInvokeConfigDestinationConfigOnFailurePtrInput ¶
type FunctionEventInvokeConfigDestinationConfigOnFailurePtrInput interface { pulumi.Input ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutputWithContext(context.Context) FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput }
FunctionEventInvokeConfigDestinationConfigOnFailurePtrInput is an input type that accepts FunctionEventInvokeConfigDestinationConfigOnFailureArgs, FunctionEventInvokeConfigDestinationConfigOnFailurePtr and FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput values. You can construct a concrete instance of `FunctionEventInvokeConfigDestinationConfigOnFailurePtrInput` via:
FunctionEventInvokeConfigDestinationConfigOnFailureArgs{...} or: nil
func FunctionEventInvokeConfigDestinationConfigOnFailurePtr ¶
func FunctionEventInvokeConfigDestinationConfigOnFailurePtr(v *FunctionEventInvokeConfigDestinationConfigOnFailureArgs) FunctionEventInvokeConfigDestinationConfigOnFailurePtrInput
type FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput ¶
type FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput struct{ *pulumi.OutputState }
func (FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) Destination ¶
func (o FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) Destination() pulumi.StringPtrOutput
Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions.
func (FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ElementType ¶
func (FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ElementType() reflect.Type
func (FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput ¶
func (o FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
func (FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutputWithContext ¶
func (o FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
type FunctionEventInvokeConfigDestinationConfigOnSuccess ¶
type FunctionEventInvokeConfigDestinationConfigOnSuccess struct { // Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions. Destination string `pulumi:"destination"` }
type FunctionEventInvokeConfigDestinationConfigOnSuccessArgs ¶
type FunctionEventInvokeConfigDestinationConfigOnSuccessArgs struct { // Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions. Destination pulumi.StringInput `pulumi:"destination"` }
func (FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ElementType ¶
func (FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ElementType() reflect.Type
func (FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutput ¶
func (i FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessOutput
func (FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutputWithContext ¶
func (i FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessOutput
func (FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput ¶
func (i FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
func (FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext ¶
func (i FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
type FunctionEventInvokeConfigDestinationConfigOnSuccessInput ¶
type FunctionEventInvokeConfigDestinationConfigOnSuccessInput interface { pulumi.Input ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessOutput ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutputWithContext(context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessOutput }
FunctionEventInvokeConfigDestinationConfigOnSuccessInput is an input type that accepts FunctionEventInvokeConfigDestinationConfigOnSuccessArgs and FunctionEventInvokeConfigDestinationConfigOnSuccessOutput values. You can construct a concrete instance of `FunctionEventInvokeConfigDestinationConfigOnSuccessInput` via:
FunctionEventInvokeConfigDestinationConfigOnSuccessArgs{...}
type FunctionEventInvokeConfigDestinationConfigOnSuccessOutput ¶
type FunctionEventInvokeConfigDestinationConfigOnSuccessOutput struct{ *pulumi.OutputState }
func (FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) Destination ¶
func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) Destination() pulumi.StringOutput
Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions.
func (FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ElementType ¶
func (FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ElementType() reflect.Type
func (FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutput ¶
func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessOutput
func (FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutputWithContext ¶
func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessOutput
func (FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput ¶
func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
func (FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext ¶
func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
type FunctionEventInvokeConfigDestinationConfigOnSuccessPtrInput ¶
type FunctionEventInvokeConfigDestinationConfigOnSuccessPtrInput interface { pulumi.Input ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext(context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput }
FunctionEventInvokeConfigDestinationConfigOnSuccessPtrInput is an input type that accepts FunctionEventInvokeConfigDestinationConfigOnSuccessArgs, FunctionEventInvokeConfigDestinationConfigOnSuccessPtr and FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput values. You can construct a concrete instance of `FunctionEventInvokeConfigDestinationConfigOnSuccessPtrInput` via:
FunctionEventInvokeConfigDestinationConfigOnSuccessArgs{...} or: nil
func FunctionEventInvokeConfigDestinationConfigOnSuccessPtr ¶
func FunctionEventInvokeConfigDestinationConfigOnSuccessPtr(v *FunctionEventInvokeConfigDestinationConfigOnSuccessArgs) FunctionEventInvokeConfigDestinationConfigOnSuccessPtrInput
type FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput ¶
type FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput struct{ *pulumi.OutputState }
func (FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) Destination ¶
func (o FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) Destination() pulumi.StringPtrOutput
Amazon Resource Name (ARN) of the destination resource. See the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html#invocation-async-destinations) for acceptable resource types and associated IAM permissions.
func (FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ElementType ¶
func (FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ElementType() reflect.Type
func (FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput ¶
func (o FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
func (FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext ¶
func (o FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
type FunctionEventInvokeConfigDestinationConfigOutput ¶
type FunctionEventInvokeConfigDestinationConfigOutput struct{ *pulumi.OutputState }
func (FunctionEventInvokeConfigDestinationConfigOutput) ElementType ¶
func (FunctionEventInvokeConfigDestinationConfigOutput) ElementType() reflect.Type
func (FunctionEventInvokeConfigDestinationConfigOutput) OnFailure ¶
func (o FunctionEventInvokeConfigDestinationConfigOutput) OnFailure() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
Configuration block with destination configuration for failed asynchronous invocations. See below for details.
func (FunctionEventInvokeConfigDestinationConfigOutput) OnSuccess ¶
func (o FunctionEventInvokeConfigDestinationConfigOutput) OnSuccess() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
Configuration block with destination configuration for successful asynchronous invocations. See below for details.
func (FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigOutput ¶
func (o FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigOutput() FunctionEventInvokeConfigDestinationConfigOutput
func (FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigOutputWithContext ¶
func (o FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOutput
func (FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutput ¶
func (o FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutput() FunctionEventInvokeConfigDestinationConfigPtrOutput
func (FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutputWithContext ¶
func (o FunctionEventInvokeConfigDestinationConfigOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigPtrOutput
type FunctionEventInvokeConfigDestinationConfigPtrInput ¶
type FunctionEventInvokeConfigDestinationConfigPtrInput interface { pulumi.Input ToFunctionEventInvokeConfigDestinationConfigPtrOutput() FunctionEventInvokeConfigDestinationConfigPtrOutput ToFunctionEventInvokeConfigDestinationConfigPtrOutputWithContext(context.Context) FunctionEventInvokeConfigDestinationConfigPtrOutput }
FunctionEventInvokeConfigDestinationConfigPtrInput is an input type that accepts FunctionEventInvokeConfigDestinationConfigArgs, FunctionEventInvokeConfigDestinationConfigPtr and FunctionEventInvokeConfigDestinationConfigPtrOutput values. You can construct a concrete instance of `FunctionEventInvokeConfigDestinationConfigPtrInput` via:
FunctionEventInvokeConfigDestinationConfigArgs{...} or: nil
func FunctionEventInvokeConfigDestinationConfigPtr ¶
func FunctionEventInvokeConfigDestinationConfigPtr(v *FunctionEventInvokeConfigDestinationConfigArgs) FunctionEventInvokeConfigDestinationConfigPtrInput
type FunctionEventInvokeConfigDestinationConfigPtrOutput ¶
type FunctionEventInvokeConfigDestinationConfigPtrOutput struct{ *pulumi.OutputState }
func (FunctionEventInvokeConfigDestinationConfigPtrOutput) ElementType ¶
func (FunctionEventInvokeConfigDestinationConfigPtrOutput) ElementType() reflect.Type
func (FunctionEventInvokeConfigDestinationConfigPtrOutput) OnFailure ¶
func (o FunctionEventInvokeConfigDestinationConfigPtrOutput) OnFailure() FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput
Configuration block with destination configuration for failed asynchronous invocations. See below for details.
func (FunctionEventInvokeConfigDestinationConfigPtrOutput) OnSuccess ¶
func (o FunctionEventInvokeConfigDestinationConfigPtrOutput) OnSuccess() FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput
Configuration block with destination configuration for successful asynchronous invocations. See below for details.
func (FunctionEventInvokeConfigDestinationConfigPtrOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutput ¶
func (o FunctionEventInvokeConfigDestinationConfigPtrOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutput() FunctionEventInvokeConfigDestinationConfigPtrOutput
func (FunctionEventInvokeConfigDestinationConfigPtrOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutputWithContext ¶
func (o FunctionEventInvokeConfigDestinationConfigPtrOutput) ToFunctionEventInvokeConfigDestinationConfigPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigPtrOutput
type FunctionEventInvokeConfigState ¶
type FunctionEventInvokeConfigState struct { // Configuration block with destination configuration. See below for details. DestinationConfig FunctionEventInvokeConfigDestinationConfigPtrInput // Name or Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier. FunctionName pulumi.StringPtrInput // Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600. MaximumEventAgeInSeconds pulumi.IntPtrInput // Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2. MaximumRetryAttempts pulumi.IntPtrInput // Lambda Function published version, `$LATEST`, or Lambda Alias name. Qualifier pulumi.StringPtrInput }
func (FunctionEventInvokeConfigState) ElementType ¶
func (FunctionEventInvokeConfigState) ElementType() reflect.Type
type FunctionFileSystemConfig ¶ added in v2.9.1
type FunctionFileSystemConfig struct { // The Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system. Arn string `pulumi:"arn"` // The path where the function can access the file system, starting with /mnt/. LocalMountPath string `pulumi:"localMountPath"` }
type FunctionFileSystemConfigArgs ¶ added in v2.9.1
type FunctionFileSystemConfigArgs struct { // The Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system. Arn pulumi.StringInput `pulumi:"arn"` // The path where the function can access the file system, starting with /mnt/. LocalMountPath pulumi.StringInput `pulumi:"localMountPath"` }
func (FunctionFileSystemConfigArgs) ElementType ¶ added in v2.9.1
func (FunctionFileSystemConfigArgs) ElementType() reflect.Type
func (FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigOutput ¶ added in v2.9.1
func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigOutput() FunctionFileSystemConfigOutput
func (FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigOutputWithContext ¶ added in v2.9.1
func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigOutputWithContext(ctx context.Context) FunctionFileSystemConfigOutput
func (FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigPtrOutput ¶ added in v2.10.0
func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigPtrOutput() FunctionFileSystemConfigPtrOutput
func (FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigPtrOutputWithContext ¶ added in v2.10.0
func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigPtrOutputWithContext(ctx context.Context) FunctionFileSystemConfigPtrOutput
type FunctionFileSystemConfigInput ¶ added in v2.9.1
type FunctionFileSystemConfigInput interface { pulumi.Input ToFunctionFileSystemConfigOutput() FunctionFileSystemConfigOutput ToFunctionFileSystemConfigOutputWithContext(context.Context) FunctionFileSystemConfigOutput }
FunctionFileSystemConfigInput is an input type that accepts FunctionFileSystemConfigArgs and FunctionFileSystemConfigOutput values. You can construct a concrete instance of `FunctionFileSystemConfigInput` via:
FunctionFileSystemConfigArgs{...}
type FunctionFileSystemConfigOutput ¶ added in v2.9.1
type FunctionFileSystemConfigOutput struct{ *pulumi.OutputState }
func (FunctionFileSystemConfigOutput) Arn ¶ added in v2.9.1
func (o FunctionFileSystemConfigOutput) Arn() pulumi.StringOutput
The Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system.
func (FunctionFileSystemConfigOutput) ElementType ¶ added in v2.9.1
func (FunctionFileSystemConfigOutput) ElementType() reflect.Type
func (FunctionFileSystemConfigOutput) LocalMountPath ¶ added in v2.9.1
func (o FunctionFileSystemConfigOutput) LocalMountPath() pulumi.StringOutput
The path where the function can access the file system, starting with /mnt/.
func (FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigOutput ¶ added in v2.9.1
func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigOutput() FunctionFileSystemConfigOutput
func (FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigOutputWithContext ¶ added in v2.9.1
func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigOutputWithContext(ctx context.Context) FunctionFileSystemConfigOutput
func (FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigPtrOutput ¶ added in v2.10.0
func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigPtrOutput() FunctionFileSystemConfigPtrOutput
func (FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigPtrOutputWithContext ¶ added in v2.10.0
func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigPtrOutputWithContext(ctx context.Context) FunctionFileSystemConfigPtrOutput
type FunctionFileSystemConfigPtrInput ¶ added in v2.10.0
type FunctionFileSystemConfigPtrInput interface { pulumi.Input ToFunctionFileSystemConfigPtrOutput() FunctionFileSystemConfigPtrOutput ToFunctionFileSystemConfigPtrOutputWithContext(context.Context) FunctionFileSystemConfigPtrOutput }
FunctionFileSystemConfigPtrInput is an input type that accepts FunctionFileSystemConfigArgs, FunctionFileSystemConfigPtr and FunctionFileSystemConfigPtrOutput values. You can construct a concrete instance of `FunctionFileSystemConfigPtrInput` via:
FunctionFileSystemConfigArgs{...} or: nil
func FunctionFileSystemConfigPtr ¶ added in v2.10.0
func FunctionFileSystemConfigPtr(v *FunctionFileSystemConfigArgs) FunctionFileSystemConfigPtrInput
type FunctionFileSystemConfigPtrOutput ¶ added in v2.10.0
type FunctionFileSystemConfigPtrOutput struct{ *pulumi.OutputState }
func (FunctionFileSystemConfigPtrOutput) Arn ¶ added in v2.10.0
func (o FunctionFileSystemConfigPtrOutput) Arn() pulumi.StringPtrOutput
The Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system.
func (FunctionFileSystemConfigPtrOutput) Elem ¶ added in v2.10.0
func (o FunctionFileSystemConfigPtrOutput) Elem() FunctionFileSystemConfigOutput
func (FunctionFileSystemConfigPtrOutput) ElementType ¶ added in v2.10.0
func (FunctionFileSystemConfigPtrOutput) ElementType() reflect.Type
func (FunctionFileSystemConfigPtrOutput) LocalMountPath ¶ added in v2.10.0
func (o FunctionFileSystemConfigPtrOutput) LocalMountPath() pulumi.StringPtrOutput
The path where the function can access the file system, starting with /mnt/.
func (FunctionFileSystemConfigPtrOutput) ToFunctionFileSystemConfigPtrOutput ¶ added in v2.10.0
func (o FunctionFileSystemConfigPtrOutput) ToFunctionFileSystemConfigPtrOutput() FunctionFileSystemConfigPtrOutput
func (FunctionFileSystemConfigPtrOutput) ToFunctionFileSystemConfigPtrOutputWithContext ¶ added in v2.10.0
func (o FunctionFileSystemConfigPtrOutput) ToFunctionFileSystemConfigPtrOutputWithContext(ctx context.Context) FunctionFileSystemConfigPtrOutput
type FunctionState ¶
type FunctionState struct { // The Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system. Arn pulumi.StringPtrInput // The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used. Code pulumi.ArchiveInput // Nested block to configure the function's *dead letter queue*. See details below. DeadLetterConfig FunctionDeadLetterConfigPtrInput // Description of what your Lambda Function does. Description pulumi.StringPtrInput // The Lambda environment's configuration settings. Fields documented below. Environment FunctionEnvironmentPtrInput // The connection settings for an EFS file system. Fields documented below. Before creating or updating Lambda functions with `fileSystemConfig`, EFS mount targets much be in available lifecycle state. Use `dependsOn` to explicitly declare this dependency. See [Using Amazon EFS with Lambda](https://docs.aws.amazon.com/lambda/latest/dg/services-efs.html). FileSystemConfig FunctionFileSystemConfigPtrInput // The function [entrypoint](https://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events-create-test-function.html) in your code. Handler pulumi.StringPtrInput // The ARN to be used for invoking Lambda Function from API Gateway - to be used in `apigateway.Integration`'s `uri` InvokeArn pulumi.StringPtrInput // Amazon Resource Name (ARN) of the AWS Key Management Service (KMS) key that is used to encrypt environment variables. If this configuration is not provided when environment variables are in use, AWS Lambda uses a default service key. If this configuration is provided when environment variables are not in use, the AWS Lambda API does not save this configuration and this provider will show a perpetual difference of adding the key. To fix the perpetual difference, remove this configuration. KmsKeyArn pulumi.StringPtrInput // The date this resource was last modified. LastModified pulumi.StringPtrInput // List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. See [Lambda Layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) Layers pulumi.StringArrayInput // Amount of memory in MB your Lambda Function can use at runtime. Defaults to `128`. See [Limits](https://docs.aws.amazon.com/lambda/latest/dg/limits.html) MemorySize pulumi.IntPtrInput // A unique name for your Lambda Function. Name pulumi.StringPtrInput // Whether to publish creation/change as new Lambda Function Version. Defaults to `false`. Publish pulumi.BoolPtrInput // The Amazon Resource Name (ARN) identifying your Lambda Function Version // (if versioning is enabled via `publish = true`). QualifiedArn pulumi.StringPtrInput // The amount of reserved concurrent executions for this lambda function. A value of `0` disables lambda from being triggered and `-1` removes any concurrency limitations. Defaults to Unreserved Concurrency Limits `-1`. See [Managing Concurrency](https://docs.aws.amazon.com/lambda/latest/dg/concurrent-executions.html) ReservedConcurrentExecutions pulumi.IntPtrInput // IAM role attached to the Lambda Function. This governs both who / what can invoke your Lambda Function, as well as what resources our Lambda Function has access to. See [Lambda Permission Model](https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html) for more details. Role pulumi.StringPtrInput // See [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime) for valid values. Runtime pulumi.StringPtrInput // The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function. S3Bucket pulumi.StringPtrInput // The S3 key of an object containing the function's deployment package. Conflicts with `filename`. S3Key pulumi.StringPtrInput // The object version containing the function's deployment package. Conflicts with `filename`. S3ObjectVersion pulumi.StringPtrInput // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `filebase64sha256("file.zip")` (this provider 0.11.12 and later) or `base64sha256(file("file.zip"))` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda function source archive. SourceCodeHash pulumi.StringPtrInput // The size in bytes of the function .zip file. SourceCodeSize pulumi.IntPtrInput // A mapping of tags to assign to the object. Tags pulumi.StringMapInput // The amount of time your Lambda Function has to run in seconds. Defaults to `3`. See [Limits](https://docs.aws.amazon.com/lambda/latest/dg/limits.html) Timeout pulumi.IntPtrInput TracingConfig FunctionTracingConfigPtrInput // Latest published version of your Lambda Function. Version pulumi.StringPtrInput // Provide this to allow your function to access your VPC. Fields documented below. See [Lambda in VPC](http://docs.aws.amazon.com/lambda/latest/dg/vpc.html) VpcConfig FunctionVpcConfigPtrInput }
func (FunctionState) ElementType ¶
func (FunctionState) ElementType() reflect.Type
type FunctionTracingConfig ¶
type FunctionTracingConfig struct { // Can be either `PassThrough` or `Active`. If PassThrough, Lambda will only trace // the request from an upstream service if it contains a tracing header with // "sampled=1". If Active, Lambda will respect any tracing header it receives // from an upstream service. If no tracing header is received, Lambda will call // X-Ray for a tracing decision. Mode string `pulumi:"mode"` }
type FunctionTracingConfigArgs ¶
type FunctionTracingConfigArgs struct { // Can be either `PassThrough` or `Active`. If PassThrough, Lambda will only trace // the request from an upstream service if it contains a tracing header with // "sampled=1". If Active, Lambda will respect any tracing header it receives // from an upstream service. If no tracing header is received, Lambda will call // X-Ray for a tracing decision. Mode pulumi.StringInput `pulumi:"mode"` }
func (FunctionTracingConfigArgs) ElementType ¶
func (FunctionTracingConfigArgs) ElementType() reflect.Type
func (FunctionTracingConfigArgs) ToFunctionTracingConfigOutput ¶
func (i FunctionTracingConfigArgs) ToFunctionTracingConfigOutput() FunctionTracingConfigOutput
func (FunctionTracingConfigArgs) ToFunctionTracingConfigOutputWithContext ¶
func (i FunctionTracingConfigArgs) ToFunctionTracingConfigOutputWithContext(ctx context.Context) FunctionTracingConfigOutput
func (FunctionTracingConfigArgs) ToFunctionTracingConfigPtrOutput ¶
func (i FunctionTracingConfigArgs) ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput
func (FunctionTracingConfigArgs) ToFunctionTracingConfigPtrOutputWithContext ¶
func (i FunctionTracingConfigArgs) ToFunctionTracingConfigPtrOutputWithContext(ctx context.Context) FunctionTracingConfigPtrOutput
type FunctionTracingConfigInput ¶
type FunctionTracingConfigInput interface { pulumi.Input ToFunctionTracingConfigOutput() FunctionTracingConfigOutput ToFunctionTracingConfigOutputWithContext(context.Context) FunctionTracingConfigOutput }
FunctionTracingConfigInput is an input type that accepts FunctionTracingConfigArgs and FunctionTracingConfigOutput values. You can construct a concrete instance of `FunctionTracingConfigInput` via:
FunctionTracingConfigArgs{...}
type FunctionTracingConfigOutput ¶
type FunctionTracingConfigOutput struct{ *pulumi.OutputState }
func (FunctionTracingConfigOutput) ElementType ¶
func (FunctionTracingConfigOutput) ElementType() reflect.Type
func (FunctionTracingConfigOutput) Mode ¶
func (o FunctionTracingConfigOutput) Mode() pulumi.StringOutput
Can be either `PassThrough` or `Active`. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.
func (FunctionTracingConfigOutput) ToFunctionTracingConfigOutput ¶
func (o FunctionTracingConfigOutput) ToFunctionTracingConfigOutput() FunctionTracingConfigOutput
func (FunctionTracingConfigOutput) ToFunctionTracingConfigOutputWithContext ¶
func (o FunctionTracingConfigOutput) ToFunctionTracingConfigOutputWithContext(ctx context.Context) FunctionTracingConfigOutput
func (FunctionTracingConfigOutput) ToFunctionTracingConfigPtrOutput ¶
func (o FunctionTracingConfigOutput) ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput
func (FunctionTracingConfigOutput) ToFunctionTracingConfigPtrOutputWithContext ¶
func (o FunctionTracingConfigOutput) ToFunctionTracingConfigPtrOutputWithContext(ctx context.Context) FunctionTracingConfigPtrOutput
type FunctionTracingConfigPtrInput ¶
type FunctionTracingConfigPtrInput interface { pulumi.Input ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput ToFunctionTracingConfigPtrOutputWithContext(context.Context) FunctionTracingConfigPtrOutput }
FunctionTracingConfigPtrInput is an input type that accepts FunctionTracingConfigArgs, FunctionTracingConfigPtr and FunctionTracingConfigPtrOutput values. You can construct a concrete instance of `FunctionTracingConfigPtrInput` via:
FunctionTracingConfigArgs{...} or: nil
func FunctionTracingConfigPtr ¶
func FunctionTracingConfigPtr(v *FunctionTracingConfigArgs) FunctionTracingConfigPtrInput
type FunctionTracingConfigPtrOutput ¶
type FunctionTracingConfigPtrOutput struct{ *pulumi.OutputState }
func (FunctionTracingConfigPtrOutput) Elem ¶
func (o FunctionTracingConfigPtrOutput) Elem() FunctionTracingConfigOutput
func (FunctionTracingConfigPtrOutput) ElementType ¶
func (FunctionTracingConfigPtrOutput) ElementType() reflect.Type
func (FunctionTracingConfigPtrOutput) Mode ¶
func (o FunctionTracingConfigPtrOutput) Mode() pulumi.StringPtrOutput
Can be either `PassThrough` or `Active`. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.
func (FunctionTracingConfigPtrOutput) ToFunctionTracingConfigPtrOutput ¶
func (o FunctionTracingConfigPtrOutput) ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput
func (FunctionTracingConfigPtrOutput) ToFunctionTracingConfigPtrOutputWithContext ¶
func (o FunctionTracingConfigPtrOutput) ToFunctionTracingConfigPtrOutputWithContext(ctx context.Context) FunctionTracingConfigPtrOutput
type FunctionVpcConfig ¶
type FunctionVpcConfigArgs ¶
type FunctionVpcConfigArgs struct { // A list of security group IDs associated with the Lambda function. SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"` // A list of subnet IDs associated with the Lambda function. SubnetIds pulumi.StringArrayInput `pulumi:"subnetIds"` VpcId pulumi.StringPtrInput `pulumi:"vpcId"` }
func (FunctionVpcConfigArgs) ElementType ¶
func (FunctionVpcConfigArgs) ElementType() reflect.Type
func (FunctionVpcConfigArgs) ToFunctionVpcConfigOutput ¶
func (i FunctionVpcConfigArgs) ToFunctionVpcConfigOutput() FunctionVpcConfigOutput
func (FunctionVpcConfigArgs) ToFunctionVpcConfigOutputWithContext ¶
func (i FunctionVpcConfigArgs) ToFunctionVpcConfigOutputWithContext(ctx context.Context) FunctionVpcConfigOutput
func (FunctionVpcConfigArgs) ToFunctionVpcConfigPtrOutput ¶
func (i FunctionVpcConfigArgs) ToFunctionVpcConfigPtrOutput() FunctionVpcConfigPtrOutput
func (FunctionVpcConfigArgs) ToFunctionVpcConfigPtrOutputWithContext ¶
func (i FunctionVpcConfigArgs) ToFunctionVpcConfigPtrOutputWithContext(ctx context.Context) FunctionVpcConfigPtrOutput
type FunctionVpcConfigInput ¶
type FunctionVpcConfigInput interface { pulumi.Input ToFunctionVpcConfigOutput() FunctionVpcConfigOutput ToFunctionVpcConfigOutputWithContext(context.Context) FunctionVpcConfigOutput }
FunctionVpcConfigInput is an input type that accepts FunctionVpcConfigArgs and FunctionVpcConfigOutput values. You can construct a concrete instance of `FunctionVpcConfigInput` via:
FunctionVpcConfigArgs{...}
type FunctionVpcConfigOutput ¶
type FunctionVpcConfigOutput struct{ *pulumi.OutputState }
func (FunctionVpcConfigOutput) ElementType ¶
func (FunctionVpcConfigOutput) ElementType() reflect.Type
func (FunctionVpcConfigOutput) SecurityGroupIds ¶
func (o FunctionVpcConfigOutput) SecurityGroupIds() pulumi.StringArrayOutput
A list of security group IDs associated with the Lambda function.
func (FunctionVpcConfigOutput) SubnetIds ¶
func (o FunctionVpcConfigOutput) SubnetIds() pulumi.StringArrayOutput
A list of subnet IDs associated with the Lambda function.
func (FunctionVpcConfigOutput) ToFunctionVpcConfigOutput ¶
func (o FunctionVpcConfigOutput) ToFunctionVpcConfigOutput() FunctionVpcConfigOutput
func (FunctionVpcConfigOutput) ToFunctionVpcConfigOutputWithContext ¶
func (o FunctionVpcConfigOutput) ToFunctionVpcConfigOutputWithContext(ctx context.Context) FunctionVpcConfigOutput
func (FunctionVpcConfigOutput) ToFunctionVpcConfigPtrOutput ¶
func (o FunctionVpcConfigOutput) ToFunctionVpcConfigPtrOutput() FunctionVpcConfigPtrOutput
func (FunctionVpcConfigOutput) ToFunctionVpcConfigPtrOutputWithContext ¶
func (o FunctionVpcConfigOutput) ToFunctionVpcConfigPtrOutputWithContext(ctx context.Context) FunctionVpcConfigPtrOutput
func (FunctionVpcConfigOutput) VpcId ¶
func (o FunctionVpcConfigOutput) VpcId() pulumi.StringPtrOutput
type FunctionVpcConfigPtrInput ¶
type FunctionVpcConfigPtrInput interface { pulumi.Input ToFunctionVpcConfigPtrOutput() FunctionVpcConfigPtrOutput ToFunctionVpcConfigPtrOutputWithContext(context.Context) FunctionVpcConfigPtrOutput }
FunctionVpcConfigPtrInput is an input type that accepts FunctionVpcConfigArgs, FunctionVpcConfigPtr and FunctionVpcConfigPtrOutput values. You can construct a concrete instance of `FunctionVpcConfigPtrInput` via:
FunctionVpcConfigArgs{...} or: nil
func FunctionVpcConfigPtr ¶
func FunctionVpcConfigPtr(v *FunctionVpcConfigArgs) FunctionVpcConfigPtrInput
type FunctionVpcConfigPtrOutput ¶
type FunctionVpcConfigPtrOutput struct{ *pulumi.OutputState }
func (FunctionVpcConfigPtrOutput) Elem ¶
func (o FunctionVpcConfigPtrOutput) Elem() FunctionVpcConfigOutput
func (FunctionVpcConfigPtrOutput) ElementType ¶
func (FunctionVpcConfigPtrOutput) ElementType() reflect.Type
func (FunctionVpcConfigPtrOutput) SecurityGroupIds ¶
func (o FunctionVpcConfigPtrOutput) SecurityGroupIds() pulumi.StringArrayOutput
A list of security group IDs associated with the Lambda function.
func (FunctionVpcConfigPtrOutput) SubnetIds ¶
func (o FunctionVpcConfigPtrOutput) SubnetIds() pulumi.StringArrayOutput
A list of subnet IDs associated with the Lambda function.
func (FunctionVpcConfigPtrOutput) ToFunctionVpcConfigPtrOutput ¶
func (o FunctionVpcConfigPtrOutput) ToFunctionVpcConfigPtrOutput() FunctionVpcConfigPtrOutput
func (FunctionVpcConfigPtrOutput) ToFunctionVpcConfigPtrOutputWithContext ¶
func (o FunctionVpcConfigPtrOutput) ToFunctionVpcConfigPtrOutputWithContext(ctx context.Context) FunctionVpcConfigPtrOutput
func (FunctionVpcConfigPtrOutput) VpcId ¶
func (o FunctionVpcConfigPtrOutput) VpcId() pulumi.StringPtrOutput
type GetFunctionDeadLetterConfig ¶
type GetFunctionDeadLetterConfig struct {
TargetArn string `pulumi:"targetArn"`
}
type GetFunctionDeadLetterConfigArgs ¶
type GetFunctionDeadLetterConfigArgs struct {
TargetArn pulumi.StringInput `pulumi:"targetArn"`
}
func (GetFunctionDeadLetterConfigArgs) ElementType ¶
func (GetFunctionDeadLetterConfigArgs) ElementType() reflect.Type
func (GetFunctionDeadLetterConfigArgs) ToGetFunctionDeadLetterConfigOutput ¶
func (i GetFunctionDeadLetterConfigArgs) ToGetFunctionDeadLetterConfigOutput() GetFunctionDeadLetterConfigOutput
func (GetFunctionDeadLetterConfigArgs) ToGetFunctionDeadLetterConfigOutputWithContext ¶
func (i GetFunctionDeadLetterConfigArgs) ToGetFunctionDeadLetterConfigOutputWithContext(ctx context.Context) GetFunctionDeadLetterConfigOutput
type GetFunctionDeadLetterConfigInput ¶
type GetFunctionDeadLetterConfigInput interface { pulumi.Input ToGetFunctionDeadLetterConfigOutput() GetFunctionDeadLetterConfigOutput ToGetFunctionDeadLetterConfigOutputWithContext(context.Context) GetFunctionDeadLetterConfigOutput }
GetFunctionDeadLetterConfigInput is an input type that accepts GetFunctionDeadLetterConfigArgs and GetFunctionDeadLetterConfigOutput values. You can construct a concrete instance of `GetFunctionDeadLetterConfigInput` via:
GetFunctionDeadLetterConfigArgs{...}
type GetFunctionDeadLetterConfigOutput ¶
type GetFunctionDeadLetterConfigOutput struct{ *pulumi.OutputState }
func (GetFunctionDeadLetterConfigOutput) ElementType ¶
func (GetFunctionDeadLetterConfigOutput) ElementType() reflect.Type
func (GetFunctionDeadLetterConfigOutput) TargetArn ¶
func (o GetFunctionDeadLetterConfigOutput) TargetArn() pulumi.StringOutput
func (GetFunctionDeadLetterConfigOutput) ToGetFunctionDeadLetterConfigOutput ¶
func (o GetFunctionDeadLetterConfigOutput) ToGetFunctionDeadLetterConfigOutput() GetFunctionDeadLetterConfigOutput
func (GetFunctionDeadLetterConfigOutput) ToGetFunctionDeadLetterConfigOutputWithContext ¶
func (o GetFunctionDeadLetterConfigOutput) ToGetFunctionDeadLetterConfigOutputWithContext(ctx context.Context) GetFunctionDeadLetterConfigOutput
type GetFunctionEnvironment ¶
type GetFunctionEnvironmentArgs ¶
type GetFunctionEnvironmentArgs struct {
Variables pulumi.StringMapInput `pulumi:"variables"`
}
func (GetFunctionEnvironmentArgs) ElementType ¶
func (GetFunctionEnvironmentArgs) ElementType() reflect.Type
func (GetFunctionEnvironmentArgs) ToGetFunctionEnvironmentOutput ¶
func (i GetFunctionEnvironmentArgs) ToGetFunctionEnvironmentOutput() GetFunctionEnvironmentOutput
func (GetFunctionEnvironmentArgs) ToGetFunctionEnvironmentOutputWithContext ¶
func (i GetFunctionEnvironmentArgs) ToGetFunctionEnvironmentOutputWithContext(ctx context.Context) GetFunctionEnvironmentOutput
type GetFunctionEnvironmentInput ¶
type GetFunctionEnvironmentInput interface { pulumi.Input ToGetFunctionEnvironmentOutput() GetFunctionEnvironmentOutput ToGetFunctionEnvironmentOutputWithContext(context.Context) GetFunctionEnvironmentOutput }
GetFunctionEnvironmentInput is an input type that accepts GetFunctionEnvironmentArgs and GetFunctionEnvironmentOutput values. You can construct a concrete instance of `GetFunctionEnvironmentInput` via:
GetFunctionEnvironmentArgs{...}
type GetFunctionEnvironmentOutput ¶
type GetFunctionEnvironmentOutput struct{ *pulumi.OutputState }
func (GetFunctionEnvironmentOutput) ElementType ¶
func (GetFunctionEnvironmentOutput) ElementType() reflect.Type
func (GetFunctionEnvironmentOutput) ToGetFunctionEnvironmentOutput ¶
func (o GetFunctionEnvironmentOutput) ToGetFunctionEnvironmentOutput() GetFunctionEnvironmentOutput
func (GetFunctionEnvironmentOutput) ToGetFunctionEnvironmentOutputWithContext ¶
func (o GetFunctionEnvironmentOutput) ToGetFunctionEnvironmentOutputWithContext(ctx context.Context) GetFunctionEnvironmentOutput
func (GetFunctionEnvironmentOutput) Variables ¶
func (o GetFunctionEnvironmentOutput) Variables() pulumi.StringMapOutput
type GetFunctionFileSystemConfig ¶ added in v2.9.1
type GetFunctionFileSystemConfigArgs ¶ added in v2.9.1
type GetFunctionFileSystemConfigArgs struct { // Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualifiedArn`. Arn pulumi.StringInput `pulumi:"arn"` LocalMountPath pulumi.StringInput `pulumi:"localMountPath"` }
func (GetFunctionFileSystemConfigArgs) ElementType ¶ added in v2.9.1
func (GetFunctionFileSystemConfigArgs) ElementType() reflect.Type
func (GetFunctionFileSystemConfigArgs) ToGetFunctionFileSystemConfigOutput ¶ added in v2.9.1
func (i GetFunctionFileSystemConfigArgs) ToGetFunctionFileSystemConfigOutput() GetFunctionFileSystemConfigOutput
func (GetFunctionFileSystemConfigArgs) ToGetFunctionFileSystemConfigOutputWithContext ¶ added in v2.9.1
func (i GetFunctionFileSystemConfigArgs) ToGetFunctionFileSystemConfigOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigOutput
type GetFunctionFileSystemConfigArray ¶ added in v2.9.1
type GetFunctionFileSystemConfigArray []GetFunctionFileSystemConfigInput
func (GetFunctionFileSystemConfigArray) ElementType ¶ added in v2.9.1
func (GetFunctionFileSystemConfigArray) ElementType() reflect.Type
func (GetFunctionFileSystemConfigArray) ToGetFunctionFileSystemConfigArrayOutput ¶ added in v2.9.1
func (i GetFunctionFileSystemConfigArray) ToGetFunctionFileSystemConfigArrayOutput() GetFunctionFileSystemConfigArrayOutput
func (GetFunctionFileSystemConfigArray) ToGetFunctionFileSystemConfigArrayOutputWithContext ¶ added in v2.9.1
func (i GetFunctionFileSystemConfigArray) ToGetFunctionFileSystemConfigArrayOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigArrayOutput
type GetFunctionFileSystemConfigArrayInput ¶ added in v2.9.1
type GetFunctionFileSystemConfigArrayInput interface { pulumi.Input ToGetFunctionFileSystemConfigArrayOutput() GetFunctionFileSystemConfigArrayOutput ToGetFunctionFileSystemConfigArrayOutputWithContext(context.Context) GetFunctionFileSystemConfigArrayOutput }
GetFunctionFileSystemConfigArrayInput is an input type that accepts GetFunctionFileSystemConfigArray and GetFunctionFileSystemConfigArrayOutput values. You can construct a concrete instance of `GetFunctionFileSystemConfigArrayInput` via:
GetFunctionFileSystemConfigArray{ GetFunctionFileSystemConfigArgs{...} }
type GetFunctionFileSystemConfigArrayOutput ¶ added in v2.9.1
type GetFunctionFileSystemConfigArrayOutput struct{ *pulumi.OutputState }
func (GetFunctionFileSystemConfigArrayOutput) ElementType ¶ added in v2.9.1
func (GetFunctionFileSystemConfigArrayOutput) ElementType() reflect.Type
func (GetFunctionFileSystemConfigArrayOutput) ToGetFunctionFileSystemConfigArrayOutput ¶ added in v2.9.1
func (o GetFunctionFileSystemConfigArrayOutput) ToGetFunctionFileSystemConfigArrayOutput() GetFunctionFileSystemConfigArrayOutput
func (GetFunctionFileSystemConfigArrayOutput) ToGetFunctionFileSystemConfigArrayOutputWithContext ¶ added in v2.9.1
func (o GetFunctionFileSystemConfigArrayOutput) ToGetFunctionFileSystemConfigArrayOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigArrayOutput
type GetFunctionFileSystemConfigInput ¶ added in v2.9.1
type GetFunctionFileSystemConfigInput interface { pulumi.Input ToGetFunctionFileSystemConfigOutput() GetFunctionFileSystemConfigOutput ToGetFunctionFileSystemConfigOutputWithContext(context.Context) GetFunctionFileSystemConfigOutput }
GetFunctionFileSystemConfigInput is an input type that accepts GetFunctionFileSystemConfigArgs and GetFunctionFileSystemConfigOutput values. You can construct a concrete instance of `GetFunctionFileSystemConfigInput` via:
GetFunctionFileSystemConfigArgs{...}
type GetFunctionFileSystemConfigOutput ¶ added in v2.9.1
type GetFunctionFileSystemConfigOutput struct{ *pulumi.OutputState }
func (GetFunctionFileSystemConfigOutput) Arn ¶ added in v2.9.1
func (o GetFunctionFileSystemConfigOutput) Arn() pulumi.StringOutput
Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualifiedArn`.
func (GetFunctionFileSystemConfigOutput) ElementType ¶ added in v2.9.1
func (GetFunctionFileSystemConfigOutput) ElementType() reflect.Type
func (GetFunctionFileSystemConfigOutput) LocalMountPath ¶ added in v2.9.1
func (o GetFunctionFileSystemConfigOutput) LocalMountPath() pulumi.StringOutput
func (GetFunctionFileSystemConfigOutput) ToGetFunctionFileSystemConfigOutput ¶ added in v2.9.1
func (o GetFunctionFileSystemConfigOutput) ToGetFunctionFileSystemConfigOutput() GetFunctionFileSystemConfigOutput
func (GetFunctionFileSystemConfigOutput) ToGetFunctionFileSystemConfigOutputWithContext ¶ added in v2.9.1
func (o GetFunctionFileSystemConfigOutput) ToGetFunctionFileSystemConfigOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigOutput
type GetFunctionTracingConfig ¶
type GetFunctionTracingConfig struct {
Mode string `pulumi:"mode"`
}
type GetFunctionTracingConfigArgs ¶
type GetFunctionTracingConfigArgs struct {
Mode pulumi.StringInput `pulumi:"mode"`
}
func (GetFunctionTracingConfigArgs) ElementType ¶
func (GetFunctionTracingConfigArgs) ElementType() reflect.Type
func (GetFunctionTracingConfigArgs) ToGetFunctionTracingConfigOutput ¶
func (i GetFunctionTracingConfigArgs) ToGetFunctionTracingConfigOutput() GetFunctionTracingConfigOutput
func (GetFunctionTracingConfigArgs) ToGetFunctionTracingConfigOutputWithContext ¶
func (i GetFunctionTracingConfigArgs) ToGetFunctionTracingConfigOutputWithContext(ctx context.Context) GetFunctionTracingConfigOutput
type GetFunctionTracingConfigInput ¶
type GetFunctionTracingConfigInput interface { pulumi.Input ToGetFunctionTracingConfigOutput() GetFunctionTracingConfigOutput ToGetFunctionTracingConfigOutputWithContext(context.Context) GetFunctionTracingConfigOutput }
GetFunctionTracingConfigInput is an input type that accepts GetFunctionTracingConfigArgs and GetFunctionTracingConfigOutput values. You can construct a concrete instance of `GetFunctionTracingConfigInput` via:
GetFunctionTracingConfigArgs{...}
type GetFunctionTracingConfigOutput ¶
type GetFunctionTracingConfigOutput struct{ *pulumi.OutputState }
func (GetFunctionTracingConfigOutput) ElementType ¶
func (GetFunctionTracingConfigOutput) ElementType() reflect.Type
func (GetFunctionTracingConfigOutput) Mode ¶
func (o GetFunctionTracingConfigOutput) Mode() pulumi.StringOutput
func (GetFunctionTracingConfigOutput) ToGetFunctionTracingConfigOutput ¶
func (o GetFunctionTracingConfigOutput) ToGetFunctionTracingConfigOutput() GetFunctionTracingConfigOutput
func (GetFunctionTracingConfigOutput) ToGetFunctionTracingConfigOutputWithContext ¶
func (o GetFunctionTracingConfigOutput) ToGetFunctionTracingConfigOutputWithContext(ctx context.Context) GetFunctionTracingConfigOutput
type GetFunctionVpcConfig ¶
type GetFunctionVpcConfigArgs ¶
type GetFunctionVpcConfigArgs struct { SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"` SubnetIds pulumi.StringArrayInput `pulumi:"subnetIds"` VpcId pulumi.StringInput `pulumi:"vpcId"` }
func (GetFunctionVpcConfigArgs) ElementType ¶
func (GetFunctionVpcConfigArgs) ElementType() reflect.Type
func (GetFunctionVpcConfigArgs) ToGetFunctionVpcConfigOutput ¶
func (i GetFunctionVpcConfigArgs) ToGetFunctionVpcConfigOutput() GetFunctionVpcConfigOutput
func (GetFunctionVpcConfigArgs) ToGetFunctionVpcConfigOutputWithContext ¶
func (i GetFunctionVpcConfigArgs) ToGetFunctionVpcConfigOutputWithContext(ctx context.Context) GetFunctionVpcConfigOutput
type GetFunctionVpcConfigInput ¶
type GetFunctionVpcConfigInput interface { pulumi.Input ToGetFunctionVpcConfigOutput() GetFunctionVpcConfigOutput ToGetFunctionVpcConfigOutputWithContext(context.Context) GetFunctionVpcConfigOutput }
GetFunctionVpcConfigInput is an input type that accepts GetFunctionVpcConfigArgs and GetFunctionVpcConfigOutput values. You can construct a concrete instance of `GetFunctionVpcConfigInput` via:
GetFunctionVpcConfigArgs{...}
type GetFunctionVpcConfigOutput ¶
type GetFunctionVpcConfigOutput struct{ *pulumi.OutputState }
func (GetFunctionVpcConfigOutput) ElementType ¶
func (GetFunctionVpcConfigOutput) ElementType() reflect.Type
func (GetFunctionVpcConfigOutput) SecurityGroupIds ¶
func (o GetFunctionVpcConfigOutput) SecurityGroupIds() pulumi.StringArrayOutput
func (GetFunctionVpcConfigOutput) SubnetIds ¶
func (o GetFunctionVpcConfigOutput) SubnetIds() pulumi.StringArrayOutput
func (GetFunctionVpcConfigOutput) ToGetFunctionVpcConfigOutput ¶
func (o GetFunctionVpcConfigOutput) ToGetFunctionVpcConfigOutput() GetFunctionVpcConfigOutput
func (GetFunctionVpcConfigOutput) ToGetFunctionVpcConfigOutputWithContext ¶
func (o GetFunctionVpcConfigOutput) ToGetFunctionVpcConfigOutputWithContext(ctx context.Context) GetFunctionVpcConfigOutput
func (GetFunctionVpcConfigOutput) VpcId ¶
func (o GetFunctionVpcConfigOutput) VpcId() pulumi.StringOutput
type GetInvocationArgs ¶
type GetInvocationArgs struct { // The name of the lambda function. FunctionName string `pulumi:"functionName"` // A string in JSON format that is passed as payload to the lambda function. Input string `pulumi:"input"` // The qualifier (a.k.a version) of the lambda function. Defaults // to `$LATEST`. Qualifier *string `pulumi:"qualifier"` }
A collection of arguments for invoking getInvocation.
type GetInvocationResult ¶
type GetInvocationResult struct { FunctionName string `pulumi:"functionName"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` Input string `pulumi:"input"` Qualifier *string `pulumi:"qualifier"` // String result of the lambda function invocation. Result string `pulumi:"result"` // (**DEPRECATED**) This field is set only if result is a map of primitive types, where the map is string keys and string values. // // Deprecated: use `result` attribute with jsondecode() function ResultMap map[string]string `pulumi:"resultMap"` }
A collection of values returned by getInvocation.
func GetInvocation ¶
func GetInvocation(ctx *pulumi.Context, args *GetInvocationArgs, opts ...pulumi.InvokeOption) (*GetInvocationResult, error)
Use this data source to invoke custom lambda functions as data source. The lambda function is invoked with [RequestResponse](https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html#API_Invoke_RequestSyntax) invocation type.
type LayerVersion ¶
type LayerVersion struct { pulumi.CustomResourceState // The Amazon Resource Name (ARN) of the Lambda Layer with version. Arn pulumi.StringOutput `pulumi:"arn"` // The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used. Code pulumi.ArchiveOutput `pulumi:"code"` // A list of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) this layer is compatible with. Up to 5 runtimes can be specified. CompatibleRuntimes pulumi.StringArrayOutput `pulumi:"compatibleRuntimes"` // The date this resource was created. CreatedDate pulumi.StringOutput `pulumi:"createdDate"` // Description of what your Lambda Layer does. Description pulumi.StringPtrOutput `pulumi:"description"` // The Amazon Resource Name (ARN) of the Lambda Layer without version. LayerArn pulumi.StringOutput `pulumi:"layerArn"` // A unique name for your Lambda Layer LayerName pulumi.StringOutput `pulumi:"layerName"` // License info for your Lambda Layer. See [License Info](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-LicenseInfo). LicenseInfo pulumi.StringPtrOutput `pulumi:"licenseInfo"` // The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function. S3Bucket pulumi.StringPtrOutput `pulumi:"s3Bucket"` // The S3 key of an object containing the function's deployment package. Conflicts with `filename`. S3Key pulumi.StringPtrOutput `pulumi:"s3Key"` // The object version containing the function's deployment package. Conflicts with `filename`. S3ObjectVersion pulumi.StringPtrOutput `pulumi:"s3ObjectVersion"` // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `${filebase64sha256("file.zip")}` (this provider 0.11.12 or later) or `${base64sha256(file("file.zip"))}` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda layer source archive. SourceCodeHash pulumi.StringOutput `pulumi:"sourceCodeHash"` // The size in bytes of the function .zip file. SourceCodeSize pulumi.IntOutput `pulumi:"sourceCodeSize"` // This Lamba Layer version. Version pulumi.StringOutput `pulumi:"version"` }
Provides a Lambda Layer Version resource. Lambda Layers allow you to reuse shared bits of code across multiple lambda functions.
For information about Lambda Layers and how to use them, see [AWS Lambda Layers](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html)
## Specifying the Deployment Package
AWS Lambda Layers expect source code to be provided as a deployment package whose structure varies depending on which `compatibleRuntimes` this layer specifies. See [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) for the valid values of `compatibleRuntimes`.
Once you have created your deployment package you can specify it either directly as a local file (using the `filename` argument) or indirectly via Amazon S3 (using the `s3Bucket`, `s3Key` and `s3ObjectVersion` arguments). When providing the deployment package via S3 it may be useful to use the `s3.BucketObject` resource to upload it.
For larger deployment packages it is recommended by Amazon to upload via S3, since the S3 API has better support for uploading large files efficiently.
func GetLayerVersion ¶
func GetLayerVersion(ctx *pulumi.Context, name string, id pulumi.IDInput, state *LayerVersionState, opts ...pulumi.ResourceOption) (*LayerVersion, error)
GetLayerVersion gets an existing LayerVersion resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewLayerVersion ¶
func NewLayerVersion(ctx *pulumi.Context, name string, args *LayerVersionArgs, opts ...pulumi.ResourceOption) (*LayerVersion, error)
NewLayerVersion registers a new resource with the given unique name, arguments, and options.
type LayerVersionArgs ¶
type LayerVersionArgs struct { // The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used. Code pulumi.ArchiveInput // A list of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) this layer is compatible with. Up to 5 runtimes can be specified. CompatibleRuntimes pulumi.StringArrayInput // Description of what your Lambda Layer does. Description pulumi.StringPtrInput // A unique name for your Lambda Layer LayerName pulumi.StringInput // License info for your Lambda Layer. See [License Info](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-LicenseInfo). LicenseInfo pulumi.StringPtrInput // The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function. S3Bucket pulumi.StringPtrInput // The S3 key of an object containing the function's deployment package. Conflicts with `filename`. S3Key pulumi.StringPtrInput // The object version containing the function's deployment package. Conflicts with `filename`. S3ObjectVersion pulumi.StringPtrInput // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `${filebase64sha256("file.zip")}` (this provider 0.11.12 or later) or `${base64sha256(file("file.zip"))}` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda layer source archive. SourceCodeHash pulumi.StringPtrInput }
The set of arguments for constructing a LayerVersion resource.
func (LayerVersionArgs) ElementType ¶
func (LayerVersionArgs) ElementType() reflect.Type
type LayerVersionState ¶
type LayerVersionState struct { // The Amazon Resource Name (ARN) of the Lambda Layer with version. Arn pulumi.StringPtrInput // The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used. Code pulumi.ArchiveInput // A list of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) this layer is compatible with. Up to 5 runtimes can be specified. CompatibleRuntimes pulumi.StringArrayInput // The date this resource was created. CreatedDate pulumi.StringPtrInput // Description of what your Lambda Layer does. Description pulumi.StringPtrInput // The Amazon Resource Name (ARN) of the Lambda Layer without version. LayerArn pulumi.StringPtrInput // A unique name for your Lambda Layer LayerName pulumi.StringPtrInput // License info for your Lambda Layer. See [License Info](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-LicenseInfo). LicenseInfo pulumi.StringPtrInput // The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function. S3Bucket pulumi.StringPtrInput // The S3 key of an object containing the function's deployment package. Conflicts with `filename`. S3Key pulumi.StringPtrInput // The object version containing the function's deployment package. Conflicts with `filename`. S3ObjectVersion pulumi.StringPtrInput // Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `${filebase64sha256("file.zip")}` (this provider 0.11.12 or later) or `${base64sha256(file("file.zip"))}` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda layer source archive. SourceCodeHash pulumi.StringPtrInput // The size in bytes of the function .zip file. SourceCodeSize pulumi.IntPtrInput // This Lamba Layer version. Version pulumi.StringPtrInput }
func (LayerVersionState) ElementType ¶
func (LayerVersionState) ElementType() reflect.Type
type LookupAliasArgs ¶
type LookupAliasArgs struct { // Name of the aliased Lambda function. FunctionName string `pulumi:"functionName"` // Name of the Lambda alias. Name string `pulumi:"name"` }
A collection of arguments for invoking getAlias.
type LookupAliasResult ¶
type LookupAliasResult struct { // The Amazon Resource Name (ARN) identifying the Lambda function alias. Arn string `pulumi:"arn"` // Description of alias. Description string `pulumi:"description"` FunctionName string `pulumi:"functionName"` // Lambda function version which the alias uses. FunctionVersion string `pulumi:"functionVersion"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration's `uri`. InvokeArn string `pulumi:"invokeArn"` Name string `pulumi:"name"` }
A collection of values returned by getAlias.
func LookupAlias ¶
func LookupAlias(ctx *pulumi.Context, args *LookupAliasArgs, opts ...pulumi.InvokeOption) (*LookupAliasResult, error)
Provides information about a Lambda Alias.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.LookupAlias(ctx, &lambda.LookupAliasArgs{ FunctionName: "my-lambda-func", Name: "production", }, nil) if err != nil { return err } return nil }) }
```
type LookupFunctionArgs ¶
type LookupFunctionArgs struct { // Name of the lambda function. FunctionName string `pulumi:"functionName"` // Alias name or version number of the lambda function. e.g. `$LATEST`, `my-alias`, or `1` Qualifier *string `pulumi:"qualifier"` Tags map[string]string `pulumi:"tags"` }
A collection of arguments for invoking getFunction.
type LookupFunctionResult ¶
type LookupFunctionResult struct { // Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualifiedArn`. Arn string `pulumi:"arn"` // Configure the function's *dead letter queue*. DeadLetterConfig GetFunctionDeadLetterConfig `pulumi:"deadLetterConfig"` // Description of what your Lambda Function does. Description string `pulumi:"description"` // The Lambda environment's configuration settings. Environment GetFunctionEnvironment `pulumi:"environment"` // The connection settings for an Amazon EFS file system. FileSystemConfigs []GetFunctionFileSystemConfig `pulumi:"fileSystemConfigs"` FunctionName string `pulumi:"functionName"` // The function entrypoint in your code. Handler string `pulumi:"handler"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The ARN to be used for invoking Lambda Function from API Gateway. InvokeArn string `pulumi:"invokeArn"` // The ARN for the KMS encryption key. KmsKeyArn string `pulumi:"kmsKeyArn"` // The date this resource was last modified. LastModified string `pulumi:"lastModified"` // A list of Lambda Layer ARNs attached to your Lambda Function. Layers []string `pulumi:"layers"` // Amount of memory in MB your Lambda Function can use at runtime. MemorySize int `pulumi:"memorySize"` // Qualified (`:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `arn`. QualifiedArn string `pulumi:"qualifiedArn"` Qualifier *string `pulumi:"qualifier"` // The amount of reserved concurrent executions for this lambda function or `-1` if unreserved. ReservedConcurrentExecutions int `pulumi:"reservedConcurrentExecutions"` // IAM role attached to the Lambda Function. Role string `pulumi:"role"` // The runtime environment for the Lambda function.. Runtime string `pulumi:"runtime"` // Base64-encoded representation of raw SHA-256 sum of the zip file. SourceCodeHash string `pulumi:"sourceCodeHash"` // The size in bytes of the function .zip file. SourceCodeSize int `pulumi:"sourceCodeSize"` Tags map[string]string `pulumi:"tags"` // The function execution time at which Lambda should terminate the function. Timeout int `pulumi:"timeout"` // Tracing settings of the function. TracingConfig GetFunctionTracingConfig `pulumi:"tracingConfig"` // The version of the Lambda function. Version string `pulumi:"version"` // VPC configuration associated with your Lambda function. VpcConfig GetFunctionVpcConfig `pulumi:"vpcConfig"` }
A collection of values returned by getFunction.
func LookupFunction ¶
func LookupFunction(ctx *pulumi.Context, args *LookupFunctionArgs, opts ...pulumi.InvokeOption) (*LookupFunctionResult, error)
Provides information about a Lambda Function.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.LookupFunction(ctx, &lambda.LookupFunctionArgs{ FunctionName: functionName, }, nil) if err != nil { return err } return nil }) }
```
type LookupLayerVersionArgs ¶
type LookupLayerVersionArgs struct { // Specific runtime the layer version must support. Conflicts with `version`. If specified, the latest available layer version supporting the provided runtime will be used. CompatibleRuntime *string `pulumi:"compatibleRuntime"` // Name of the lambda layer. LayerName string `pulumi:"layerName"` // Specific layer version. Conflicts with `compatibleRuntime`. If omitted, the latest available layer version will be used. Version *int `pulumi:"version"` }
A collection of arguments for invoking getLayerVersion.
type LookupLayerVersionResult ¶
type LookupLayerVersionResult struct { // The Amazon Resource Name (ARN) of the Lambda Layer with version. Arn string `pulumi:"arn"` CompatibleRuntime *string `pulumi:"compatibleRuntime"` // A list of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVersion.html#SSS-GetLayerVersion-response-CompatibleRuntimes) the specific Lambda Layer version is compatible with. CompatibleRuntimes []string `pulumi:"compatibleRuntimes"` // The date this resource was created. CreatedDate string `pulumi:"createdDate"` // Description of the specific Lambda Layer version. Description string `pulumi:"description"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The Amazon Resource Name (ARN) of the Lambda Layer without version. LayerArn string `pulumi:"layerArn"` LayerName string `pulumi:"layerName"` // License info associated with the specific Lambda Layer version. LicenseInfo string `pulumi:"licenseInfo"` // Base64-encoded representation of raw SHA-256 sum of the zip file. SourceCodeHash string `pulumi:"sourceCodeHash"` // The size in bytes of the function .zip file. SourceCodeSize int `pulumi:"sourceCodeSize"` // This Lamba Layer version. Version int `pulumi:"version"` }
A collection of values returned by getLayerVersion.
func LookupLayerVersion ¶
func LookupLayerVersion(ctx *pulumi.Context, args *LookupLayerVersionArgs, opts ...pulumi.InvokeOption) (*LookupLayerVersionResult, error)
Provides information about a Lambda Layer Version.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.LookupLayerVersion(ctx, &lambda.LookupLayerVersionArgs{ LayerName: layerName, }, nil) if err != nil { return err } return nil }) }
```
type Permission ¶
type Permission struct { pulumi.CustomResourceState // The AWS Lambda action you want to allow in this statement. (e.g. `lambda:InvokeFunction`) Action pulumi.StringOutput `pulumi:"action"` // The Event Source Token to validate. Used with [Alexa Skills](https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-an-aws-lambda-function.html#use-aws-cli). EventSourceToken pulumi.StringPtrOutput `pulumi:"eventSourceToken"` // Name of the Lambda function whose resource policy you are updating Function pulumi.StringOutput `pulumi:"function"` // The principal who is getting this permission. // e.g. `s3.amazonaws.com`, an AWS account ID, or any valid AWS service principal // such as `events.amazonaws.com` or `sns.amazonaws.com`. Principal pulumi.StringOutput `pulumi:"principal"` // Query parameter to specify function version or alias name. // The permission will then apply to the specific qualified ARN. // e.g. `arn:aws:lambda:aws-region:acct-id:function:function-name:2` Qualifier pulumi.StringPtrOutput `pulumi:"qualifier"` // This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner. SourceAccount pulumi.StringPtrOutput `pulumi:"sourceAccount"` // When the principal is an AWS service, the ARN of the specific resource within that service to grant permission to. // Without this, any resource from `principal` will be granted permission – even if that resource is from another account. // For S3, this should be the ARN of the S3 Bucket. // For CloudWatch Events, this should be the ARN of the CloudWatch Events Rule. // For API Gateway, this should be the ARN of the API, as described [here](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-control-access-using-iam-policies-to-invoke-api.html). SourceArn pulumi.StringPtrOutput `pulumi:"sourceArn"` // A unique statement identifier. By default generated by this provider. StatementId pulumi.StringOutput `pulumi:"statementId"` // A statement identifier prefix. This provider will generate a unique suffix. Conflicts with `statementId`. StatementIdPrefix pulumi.StringPtrOutput `pulumi:"statementIdPrefix"` }
Gives an external source (like a CloudWatch Event Rule, SNS, or S3) permission to access the Lambda function.
## Example Usage ### Specify Lambda permissions for API Gateway REST API
```go package main
import (
"fmt" "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/apigateway" "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { myDemoAPI, err := apigateway.NewRestApi(ctx, "myDemoAPI", &apigateway.RestApiArgs{ Description: pulumi.String("This is my API for demonstration purposes"), }) if err != nil { return err } _, err = lambda.NewPermission(ctx, "lambdaPermission", &lambda.PermissionArgs{ Action: pulumi.String("lambda:InvokeFunction"), Function: pulumi.String("MyDemoFunction"), Principal: pulumi.String("apigateway.amazonaws.com"), SourceArn: myDemoAPI.ExecutionArn.ApplyT(func(executionArn string) (string, error) { return fmt.Sprintf("%v%v", executionArn, "/*/*/*"), nil }).(pulumi.StringOutput), }) if err != nil { return err } return nil }) }
```
func GetPermission ¶
func GetPermission(ctx *pulumi.Context, name string, id pulumi.IDInput, state *PermissionState, opts ...pulumi.ResourceOption) (*Permission, error)
GetPermission gets an existing Permission resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewPermission ¶
func NewPermission(ctx *pulumi.Context, name string, args *PermissionArgs, opts ...pulumi.ResourceOption) (*Permission, error)
NewPermission registers a new resource with the given unique name, arguments, and options.
type PermissionArgs ¶
type PermissionArgs struct { // The AWS Lambda action you want to allow in this statement. (e.g. `lambda:InvokeFunction`) Action pulumi.StringInput // The Event Source Token to validate. Used with [Alexa Skills](https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-an-aws-lambda-function.html#use-aws-cli). EventSourceToken pulumi.StringPtrInput // Name of the Lambda function whose resource policy you are updating Function pulumi.Input // The principal who is getting this permission. // e.g. `s3.amazonaws.com`, an AWS account ID, or any valid AWS service principal // such as `events.amazonaws.com` or `sns.amazonaws.com`. Principal pulumi.StringInput // Query parameter to specify function version or alias name. // The permission will then apply to the specific qualified ARN. // e.g. `arn:aws:lambda:aws-region:acct-id:function:function-name:2` Qualifier pulumi.StringPtrInput // This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner. SourceAccount pulumi.StringPtrInput // When the principal is an AWS service, the ARN of the specific resource within that service to grant permission to. // Without this, any resource from `principal` will be granted permission – even if that resource is from another account. // For S3, this should be the ARN of the S3 Bucket. // For CloudWatch Events, this should be the ARN of the CloudWatch Events Rule. // For API Gateway, this should be the ARN of the API, as described [here](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-control-access-using-iam-policies-to-invoke-api.html). SourceArn pulumi.StringPtrInput // A unique statement identifier. By default generated by this provider. StatementId pulumi.StringPtrInput // A statement identifier prefix. This provider will generate a unique suffix. Conflicts with `statementId`. StatementIdPrefix pulumi.StringPtrInput }
The set of arguments for constructing a Permission resource.
func (PermissionArgs) ElementType ¶
func (PermissionArgs) ElementType() reflect.Type
type PermissionState ¶
type PermissionState struct { // The AWS Lambda action you want to allow in this statement. (e.g. `lambda:InvokeFunction`) Action pulumi.StringPtrInput // The Event Source Token to validate. Used with [Alexa Skills](https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-an-aws-lambda-function.html#use-aws-cli). EventSourceToken pulumi.StringPtrInput // Name of the Lambda function whose resource policy you are updating Function pulumi.StringPtrInput // The principal who is getting this permission. // e.g. `s3.amazonaws.com`, an AWS account ID, or any valid AWS service principal // such as `events.amazonaws.com` or `sns.amazonaws.com`. Principal pulumi.StringPtrInput // Query parameter to specify function version or alias name. // The permission will then apply to the specific qualified ARN. // e.g. `arn:aws:lambda:aws-region:acct-id:function:function-name:2` Qualifier pulumi.StringPtrInput // This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner. SourceAccount pulumi.StringPtrInput // When the principal is an AWS service, the ARN of the specific resource within that service to grant permission to. // Without this, any resource from `principal` will be granted permission – even if that resource is from another account. // For S3, this should be the ARN of the S3 Bucket. // For CloudWatch Events, this should be the ARN of the CloudWatch Events Rule. // For API Gateway, this should be the ARN of the API, as described [here](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-control-access-using-iam-policies-to-invoke-api.html). SourceArn pulumi.StringPtrInput // A unique statement identifier. By default generated by this provider. StatementId pulumi.StringPtrInput // A statement identifier prefix. This provider will generate a unique suffix. Conflicts with `statementId`. StatementIdPrefix pulumi.StringPtrInput }
func (PermissionState) ElementType ¶
func (PermissionState) ElementType() reflect.Type
type ProvisionedConcurrencyConfig ¶
type ProvisionedConcurrencyConfig struct { pulumi.CustomResourceState // Name or Amazon Resource Name (ARN) of the Lambda Function. FunctionName pulumi.StringOutput `pulumi:"functionName"` // Amount of capacity to allocate. Must be greater than or equal to `1`. ProvisionedConcurrentExecutions pulumi.IntOutput `pulumi:"provisionedConcurrentExecutions"` // Lambda Function version or Lambda Alias name. Qualifier pulumi.StringOutput `pulumi:"qualifier"` }
Manages a Lambda Provisioned Concurrency Configuration.
## Example Usage ### Alias Name
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewProvisionedConcurrencyConfig(ctx, "example", &lambda.ProvisionedConcurrencyConfigArgs{ FunctionName: pulumi.String(aws_lambda_alias.Example.Function_name), ProvisionedConcurrentExecutions: pulumi.Int(1), Qualifier: pulumi.String(aws_lambda_alias.Example.Name), }) if err != nil { return err } return nil }) }
``` ### Function Version
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := lambda.NewProvisionedConcurrencyConfig(ctx, "example", &lambda.ProvisionedConcurrencyConfigArgs{ FunctionName: pulumi.String(aws_lambda_function.Example.Function_name), ProvisionedConcurrentExecutions: pulumi.Int(1), Qualifier: pulumi.String(aws_lambda_function.Example.Version), }) if err != nil { return err } return nil }) }
```
func GetProvisionedConcurrencyConfig ¶
func GetProvisionedConcurrencyConfig(ctx *pulumi.Context, name string, id pulumi.IDInput, state *ProvisionedConcurrencyConfigState, opts ...pulumi.ResourceOption) (*ProvisionedConcurrencyConfig, error)
GetProvisionedConcurrencyConfig gets an existing ProvisionedConcurrencyConfig resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewProvisionedConcurrencyConfig ¶
func NewProvisionedConcurrencyConfig(ctx *pulumi.Context, name string, args *ProvisionedConcurrencyConfigArgs, opts ...pulumi.ResourceOption) (*ProvisionedConcurrencyConfig, error)
NewProvisionedConcurrencyConfig registers a new resource with the given unique name, arguments, and options.
type ProvisionedConcurrencyConfigArgs ¶
type ProvisionedConcurrencyConfigArgs struct { // Name or Amazon Resource Name (ARN) of the Lambda Function. FunctionName pulumi.StringInput // Amount of capacity to allocate. Must be greater than or equal to `1`. ProvisionedConcurrentExecutions pulumi.IntInput // Lambda Function version or Lambda Alias name. Qualifier pulumi.StringInput }
The set of arguments for constructing a ProvisionedConcurrencyConfig resource.
func (ProvisionedConcurrencyConfigArgs) ElementType ¶
func (ProvisionedConcurrencyConfigArgs) ElementType() reflect.Type
type ProvisionedConcurrencyConfigState ¶
type ProvisionedConcurrencyConfigState struct { // Name or Amazon Resource Name (ARN) of the Lambda Function. FunctionName pulumi.StringPtrInput // Amount of capacity to allocate. Must be greater than or equal to `1`. ProvisionedConcurrentExecutions pulumi.IntPtrInput // Lambda Function version or Lambda Alias name. Qualifier pulumi.StringPtrInput }
func (ProvisionedConcurrencyConfigState) ElementType ¶
func (ProvisionedConcurrencyConfigState) ElementType() reflect.Type