lambda

package
v4.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2022 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

View Source
const (
	RuntimeDotnetCore2d1 = Runtime("dotnetcore2.1")
	RuntimeDotnetCore3d1 = Runtime("dotnetcore3.1")
	RuntimeGo1dx         = Runtime("go1.x")
	RuntimeJava8         = Runtime("java8")
	RuntimeJava8AL2      = Runtime("java8.al2")
	RuntimeJava11        = Runtime("java11")
	RuntimeRuby2d5       = Runtime("ruby2.5")
	RuntimeRuby2d7       = Runtime("ruby2.7")
	RuntimeNodeJS10dX    = Runtime("nodejs10.x")
	RuntimeNodeJS12dX    = Runtime("nodejs12.x")
	RuntimeNodeJS14dX    = Runtime("nodejs14.x")
	RuntimePython2d7     = Runtime("python2.7")
	RuntimePython3d6     = Runtime("python3.6")
	RuntimePython3d7     = Runtime("python3.7")
	RuntimePython3d8     = Runtime("python3.8")
	RuntimeCustom        = Runtime("provided")
	RuntimeCustomAL2     = Runtime("provided.al2")
)

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"`
	// Lambda Function name or ARN.
	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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/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.Any(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
	})
}

```

## Import

Lambda Function Aliases can be imported using the `function_name/alias`, e.g.,

```sh

$ pulumi import aws:lambda/alias:Alias test_lambda_alias my_test_lambda_function/my_alias

```

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).

func NewAlias

func NewAlias(ctx *pulumi.Context,
	name string, args *AliasArgs, opts ...pulumi.ResourceOption) (*Alias, error)

NewAlias registers a new resource with the given unique name, arguments, and options.

func (*Alias) ElementType

func (*Alias) ElementType() reflect.Type

func (*Alias) ToAliasOutput

func (i *Alias) ToAliasOutput() AliasOutput

func (*Alias) ToAliasOutputWithContext

func (i *Alias) ToAliasOutputWithContext(ctx context.Context) AliasOutput

func (*Alias) ToAliasPtrOutput

func (i *Alias) ToAliasPtrOutput() AliasPtrOutput

func (*Alias) ToAliasPtrOutputWithContext

func (i *Alias) ToAliasPtrOutputWithContext(ctx context.Context) AliasPtrOutput

type AliasArgs

type AliasArgs struct {
	// Description of the alias.
	Description pulumi.StringPtrInput
	// Lambda Function name or ARN.
	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

func (AliasArgs) ElementType() reflect.Type

type AliasArray

type AliasArray []AliasInput

func (AliasArray) ElementType

func (AliasArray) ElementType() reflect.Type

func (AliasArray) ToAliasArrayOutput

func (i AliasArray) ToAliasArrayOutput() AliasArrayOutput

func (AliasArray) ToAliasArrayOutputWithContext

func (i AliasArray) ToAliasArrayOutputWithContext(ctx context.Context) AliasArrayOutput

type AliasArrayInput

type AliasArrayInput interface {
	pulumi.Input

	ToAliasArrayOutput() AliasArrayOutput
	ToAliasArrayOutputWithContext(context.Context) AliasArrayOutput
}

AliasArrayInput is an input type that accepts AliasArray and AliasArrayOutput values. You can construct a concrete instance of `AliasArrayInput` via:

AliasArray{ AliasArgs{...} }

type AliasArrayOutput

type AliasArrayOutput struct{ *pulumi.OutputState }

func (AliasArrayOutput) ElementType

func (AliasArrayOutput) ElementType() reflect.Type

func (AliasArrayOutput) Index

func (AliasArrayOutput) ToAliasArrayOutput

func (o AliasArrayOutput) ToAliasArrayOutput() AliasArrayOutput

func (AliasArrayOutput) ToAliasArrayOutputWithContext

func (o AliasArrayOutput) ToAliasArrayOutputWithContext(ctx context.Context) AliasArrayOutput

type AliasInput

type AliasInput interface {
	pulumi.Input

	ToAliasOutput() AliasOutput
	ToAliasOutputWithContext(ctx context.Context) AliasOutput
}

type AliasMap

type AliasMap map[string]AliasInput

func (AliasMap) ElementType

func (AliasMap) ElementType() reflect.Type

func (AliasMap) ToAliasMapOutput

func (i AliasMap) ToAliasMapOutput() AliasMapOutput

func (AliasMap) ToAliasMapOutputWithContext

func (i AliasMap) ToAliasMapOutputWithContext(ctx context.Context) AliasMapOutput

type AliasMapInput

type AliasMapInput interface {
	pulumi.Input

	ToAliasMapOutput() AliasMapOutput
	ToAliasMapOutputWithContext(context.Context) AliasMapOutput
}

AliasMapInput is an input type that accepts AliasMap and AliasMapOutput values. You can construct a concrete instance of `AliasMapInput` via:

AliasMap{ "key": AliasArgs{...} }

type AliasMapOutput

type AliasMapOutput struct{ *pulumi.OutputState }

func (AliasMapOutput) ElementType

func (AliasMapOutput) ElementType() reflect.Type

func (AliasMapOutput) MapIndex

func (AliasMapOutput) ToAliasMapOutput

func (o AliasMapOutput) ToAliasMapOutput() AliasMapOutput

func (AliasMapOutput) ToAliasMapOutputWithContext

func (o AliasMapOutput) ToAliasMapOutputWithContext(ctx context.Context) AliasMapOutput

type AliasOutput

type AliasOutput struct{ *pulumi.OutputState }

func (AliasOutput) ElementType

func (AliasOutput) ElementType() reflect.Type

func (AliasOutput) ToAliasOutput

func (o AliasOutput) ToAliasOutput() AliasOutput

func (AliasOutput) ToAliasOutputWithContext

func (o AliasOutput) ToAliasOutputWithContext(ctx context.Context) AliasOutput

func (AliasOutput) ToAliasPtrOutput

func (o AliasOutput) ToAliasPtrOutput() AliasPtrOutput

func (AliasOutput) ToAliasPtrOutputWithContext

func (o AliasOutput) ToAliasPtrOutputWithContext(ctx context.Context) AliasPtrOutput

type AliasPtrInput

type AliasPtrInput interface {
	pulumi.Input

	ToAliasPtrOutput() AliasPtrOutput
	ToAliasPtrOutputWithContext(ctx context.Context) AliasPtrOutput
}

type AliasPtrOutput

type AliasPtrOutput struct{ *pulumi.OutputState }

func (AliasPtrOutput) Elem added in v4.15.0

func (o AliasPtrOutput) Elem() AliasOutput

func (AliasPtrOutput) ElementType

func (AliasPtrOutput) ElementType() reflect.Type

func (AliasPtrOutput) ToAliasPtrOutput

func (o AliasPtrOutput) ToAliasPtrOutput() AliasPtrOutput

func (AliasPtrOutput) ToAliasPtrOutputWithContext

func (o AliasPtrOutput) ToAliasPtrOutputWithContext(ctx context.Context) AliasPtrOutput

type AliasRoutingConfig

type AliasRoutingConfig struct {
	// A map that defines the proportion of events that should be sent to different versions of a lambda function.
	AdditionalVersionWeights map[string]float64 `pulumi:"additionalVersionWeights"`
}

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

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 (AliasRoutingConfigPtrOutput) ElementType

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
	// Lambda Function name or ARN.
	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 CodeSigningConfig

type CodeSigningConfig struct {
	pulumi.CustomResourceState

	// A configuration block of allowed publishers as signing profiles for this code signing configuration. Detailed below.
	AllowedPublishers CodeSigningConfigAllowedPublishersOutput `pulumi:"allowedPublishers"`
	// The Amazon Resource Name (ARN) of the code signing configuration.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Unique identifier for the code signing configuration.
	ConfigId pulumi.StringOutput `pulumi:"configId"`
	// Descriptive name for this code signing configuration.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The date and time that the code signing configuration was last modified.
	LastModified pulumi.StringOutput `pulumi:"lastModified"`
	// A configuration block of code signing policies that define the actions to take if the validation checks fail. Detailed below.
	Policies CodeSigningConfigPoliciesOutput `pulumi:"policies"`
}

Provides a Lambda Code Signing Config resource. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).

For information about Lambda code signing configurations and how to use them, see [configuring code signing for Lambda functions](https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html)

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewCodeSigningConfig(ctx, "newCsc", &lambda.CodeSigningConfigArgs{
			AllowedPublishers: &lambda.CodeSigningConfigAllowedPublishersArgs{
				SigningProfileVersionArns: pulumi.StringArray{
					pulumi.Any(aws_signer_signing_profile.Example1.Arn),
					pulumi.Any(aws_signer_signing_profile.Example2.Arn),
				},
			},
			Policies: &lambda.CodeSigningConfigPoliciesArgs{
				UntrustedArtifactOnDeployment: pulumi.String("Warn"),
			},
			Description: pulumi.String("My awesome code signing config."),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Code Signing Configs can be imported using their ARN, e.g.,

```sh

$ pulumi import aws:lambda/codeSigningConfig:CodeSigningConfig imported_csc arn:aws:lambda:us-west-2:123456789012:code-signing-config:csc-0f6c334abcdea4d8b

```

func GetCodeSigningConfig

func GetCodeSigningConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CodeSigningConfigState, opts ...pulumi.ResourceOption) (*CodeSigningConfig, error)

GetCodeSigningConfig gets an existing CodeSigningConfig 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 NewCodeSigningConfig

func NewCodeSigningConfig(ctx *pulumi.Context,
	name string, args *CodeSigningConfigArgs, opts ...pulumi.ResourceOption) (*CodeSigningConfig, error)

NewCodeSigningConfig registers a new resource with the given unique name, arguments, and options.

func (*CodeSigningConfig) ElementType

func (*CodeSigningConfig) ElementType() reflect.Type

func (*CodeSigningConfig) ToCodeSigningConfigOutput

func (i *CodeSigningConfig) ToCodeSigningConfigOutput() CodeSigningConfigOutput

func (*CodeSigningConfig) ToCodeSigningConfigOutputWithContext

func (i *CodeSigningConfig) ToCodeSigningConfigOutputWithContext(ctx context.Context) CodeSigningConfigOutput

func (*CodeSigningConfig) ToCodeSigningConfigPtrOutput

func (i *CodeSigningConfig) ToCodeSigningConfigPtrOutput() CodeSigningConfigPtrOutput

func (*CodeSigningConfig) ToCodeSigningConfigPtrOutputWithContext

func (i *CodeSigningConfig) ToCodeSigningConfigPtrOutputWithContext(ctx context.Context) CodeSigningConfigPtrOutput

type CodeSigningConfigAllowedPublishers

type CodeSigningConfigAllowedPublishers struct {
	// The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
	SigningProfileVersionArns []string `pulumi:"signingProfileVersionArns"`
}

type CodeSigningConfigAllowedPublishersArgs

type CodeSigningConfigAllowedPublishersArgs struct {
	// The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
	SigningProfileVersionArns pulumi.StringArrayInput `pulumi:"signingProfileVersionArns"`
}

func (CodeSigningConfigAllowedPublishersArgs) ElementType

func (CodeSigningConfigAllowedPublishersArgs) ToCodeSigningConfigAllowedPublishersOutput

func (i CodeSigningConfigAllowedPublishersArgs) ToCodeSigningConfigAllowedPublishersOutput() CodeSigningConfigAllowedPublishersOutput

func (CodeSigningConfigAllowedPublishersArgs) ToCodeSigningConfigAllowedPublishersOutputWithContext

func (i CodeSigningConfigAllowedPublishersArgs) ToCodeSigningConfigAllowedPublishersOutputWithContext(ctx context.Context) CodeSigningConfigAllowedPublishersOutput

func (CodeSigningConfigAllowedPublishersArgs) ToCodeSigningConfigAllowedPublishersPtrOutput

func (i CodeSigningConfigAllowedPublishersArgs) ToCodeSigningConfigAllowedPublishersPtrOutput() CodeSigningConfigAllowedPublishersPtrOutput

func (CodeSigningConfigAllowedPublishersArgs) ToCodeSigningConfigAllowedPublishersPtrOutputWithContext

func (i CodeSigningConfigAllowedPublishersArgs) ToCodeSigningConfigAllowedPublishersPtrOutputWithContext(ctx context.Context) CodeSigningConfigAllowedPublishersPtrOutput

type CodeSigningConfigAllowedPublishersInput

type CodeSigningConfigAllowedPublishersInput interface {
	pulumi.Input

	ToCodeSigningConfigAllowedPublishersOutput() CodeSigningConfigAllowedPublishersOutput
	ToCodeSigningConfigAllowedPublishersOutputWithContext(context.Context) CodeSigningConfigAllowedPublishersOutput
}

CodeSigningConfigAllowedPublishersInput is an input type that accepts CodeSigningConfigAllowedPublishersArgs and CodeSigningConfigAllowedPublishersOutput values. You can construct a concrete instance of `CodeSigningConfigAllowedPublishersInput` via:

CodeSigningConfigAllowedPublishersArgs{...}

type CodeSigningConfigAllowedPublishersOutput

type CodeSigningConfigAllowedPublishersOutput struct{ *pulumi.OutputState }

func (CodeSigningConfigAllowedPublishersOutput) ElementType

func (CodeSigningConfigAllowedPublishersOutput) SigningProfileVersionArns

The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

func (CodeSigningConfigAllowedPublishersOutput) ToCodeSigningConfigAllowedPublishersOutput

func (o CodeSigningConfigAllowedPublishersOutput) ToCodeSigningConfigAllowedPublishersOutput() CodeSigningConfigAllowedPublishersOutput

func (CodeSigningConfigAllowedPublishersOutput) ToCodeSigningConfigAllowedPublishersOutputWithContext

func (o CodeSigningConfigAllowedPublishersOutput) ToCodeSigningConfigAllowedPublishersOutputWithContext(ctx context.Context) CodeSigningConfigAllowedPublishersOutput

func (CodeSigningConfigAllowedPublishersOutput) ToCodeSigningConfigAllowedPublishersPtrOutput

func (o CodeSigningConfigAllowedPublishersOutput) ToCodeSigningConfigAllowedPublishersPtrOutput() CodeSigningConfigAllowedPublishersPtrOutput

func (CodeSigningConfigAllowedPublishersOutput) ToCodeSigningConfigAllowedPublishersPtrOutputWithContext

func (o CodeSigningConfigAllowedPublishersOutput) ToCodeSigningConfigAllowedPublishersPtrOutputWithContext(ctx context.Context) CodeSigningConfigAllowedPublishersPtrOutput

type CodeSigningConfigAllowedPublishersPtrInput

type CodeSigningConfigAllowedPublishersPtrInput interface {
	pulumi.Input

	ToCodeSigningConfigAllowedPublishersPtrOutput() CodeSigningConfigAllowedPublishersPtrOutput
	ToCodeSigningConfigAllowedPublishersPtrOutputWithContext(context.Context) CodeSigningConfigAllowedPublishersPtrOutput
}

CodeSigningConfigAllowedPublishersPtrInput is an input type that accepts CodeSigningConfigAllowedPublishersArgs, CodeSigningConfigAllowedPublishersPtr and CodeSigningConfigAllowedPublishersPtrOutput values. You can construct a concrete instance of `CodeSigningConfigAllowedPublishersPtrInput` via:

        CodeSigningConfigAllowedPublishersArgs{...}

or:

        nil

type CodeSigningConfigAllowedPublishersPtrOutput

type CodeSigningConfigAllowedPublishersPtrOutput struct{ *pulumi.OutputState }

func (CodeSigningConfigAllowedPublishersPtrOutput) Elem

func (CodeSigningConfigAllowedPublishersPtrOutput) ElementType

func (CodeSigningConfigAllowedPublishersPtrOutput) SigningProfileVersionArns

The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

func (CodeSigningConfigAllowedPublishersPtrOutput) ToCodeSigningConfigAllowedPublishersPtrOutput

func (o CodeSigningConfigAllowedPublishersPtrOutput) ToCodeSigningConfigAllowedPublishersPtrOutput() CodeSigningConfigAllowedPublishersPtrOutput

func (CodeSigningConfigAllowedPublishersPtrOutput) ToCodeSigningConfigAllowedPublishersPtrOutputWithContext

func (o CodeSigningConfigAllowedPublishersPtrOutput) ToCodeSigningConfigAllowedPublishersPtrOutputWithContext(ctx context.Context) CodeSigningConfigAllowedPublishersPtrOutput

type CodeSigningConfigArgs

type CodeSigningConfigArgs struct {
	// A configuration block of allowed publishers as signing profiles for this code signing configuration. Detailed below.
	AllowedPublishers CodeSigningConfigAllowedPublishersInput
	// Descriptive name for this code signing configuration.
	Description pulumi.StringPtrInput
	// A configuration block of code signing policies that define the actions to take if the validation checks fail. Detailed below.
	Policies CodeSigningConfigPoliciesPtrInput
}

The set of arguments for constructing a CodeSigningConfig resource.

func (CodeSigningConfigArgs) ElementType

func (CodeSigningConfigArgs) ElementType() reflect.Type

type CodeSigningConfigArray

type CodeSigningConfigArray []CodeSigningConfigInput

func (CodeSigningConfigArray) ElementType

func (CodeSigningConfigArray) ElementType() reflect.Type

func (CodeSigningConfigArray) ToCodeSigningConfigArrayOutput

func (i CodeSigningConfigArray) ToCodeSigningConfigArrayOutput() CodeSigningConfigArrayOutput

func (CodeSigningConfigArray) ToCodeSigningConfigArrayOutputWithContext

func (i CodeSigningConfigArray) ToCodeSigningConfigArrayOutputWithContext(ctx context.Context) CodeSigningConfigArrayOutput

type CodeSigningConfigArrayInput

type CodeSigningConfigArrayInput interface {
	pulumi.Input

	ToCodeSigningConfigArrayOutput() CodeSigningConfigArrayOutput
	ToCodeSigningConfigArrayOutputWithContext(context.Context) CodeSigningConfigArrayOutput
}

CodeSigningConfigArrayInput is an input type that accepts CodeSigningConfigArray and CodeSigningConfigArrayOutput values. You can construct a concrete instance of `CodeSigningConfigArrayInput` via:

CodeSigningConfigArray{ CodeSigningConfigArgs{...} }

type CodeSigningConfigArrayOutput

type CodeSigningConfigArrayOutput struct{ *pulumi.OutputState }

func (CodeSigningConfigArrayOutput) ElementType

func (CodeSigningConfigArrayOutput) Index

func (CodeSigningConfigArrayOutput) ToCodeSigningConfigArrayOutput

func (o CodeSigningConfigArrayOutput) ToCodeSigningConfigArrayOutput() CodeSigningConfigArrayOutput

func (CodeSigningConfigArrayOutput) ToCodeSigningConfigArrayOutputWithContext

func (o CodeSigningConfigArrayOutput) ToCodeSigningConfigArrayOutputWithContext(ctx context.Context) CodeSigningConfigArrayOutput

type CodeSigningConfigInput

type CodeSigningConfigInput interface {
	pulumi.Input

	ToCodeSigningConfigOutput() CodeSigningConfigOutput
	ToCodeSigningConfigOutputWithContext(ctx context.Context) CodeSigningConfigOutput
}

type CodeSigningConfigMap

type CodeSigningConfigMap map[string]CodeSigningConfigInput

func (CodeSigningConfigMap) ElementType

func (CodeSigningConfigMap) ElementType() reflect.Type

func (CodeSigningConfigMap) ToCodeSigningConfigMapOutput

func (i CodeSigningConfigMap) ToCodeSigningConfigMapOutput() CodeSigningConfigMapOutput

func (CodeSigningConfigMap) ToCodeSigningConfigMapOutputWithContext

func (i CodeSigningConfigMap) ToCodeSigningConfigMapOutputWithContext(ctx context.Context) CodeSigningConfigMapOutput

type CodeSigningConfigMapInput

type CodeSigningConfigMapInput interface {
	pulumi.Input

	ToCodeSigningConfigMapOutput() CodeSigningConfigMapOutput
	ToCodeSigningConfigMapOutputWithContext(context.Context) CodeSigningConfigMapOutput
}

CodeSigningConfigMapInput is an input type that accepts CodeSigningConfigMap and CodeSigningConfigMapOutput values. You can construct a concrete instance of `CodeSigningConfigMapInput` via:

CodeSigningConfigMap{ "key": CodeSigningConfigArgs{...} }

type CodeSigningConfigMapOutput

type CodeSigningConfigMapOutput struct{ *pulumi.OutputState }

func (CodeSigningConfigMapOutput) ElementType

func (CodeSigningConfigMapOutput) ElementType() reflect.Type

func (CodeSigningConfigMapOutput) MapIndex

func (CodeSigningConfigMapOutput) ToCodeSigningConfigMapOutput

func (o CodeSigningConfigMapOutput) ToCodeSigningConfigMapOutput() CodeSigningConfigMapOutput

func (CodeSigningConfigMapOutput) ToCodeSigningConfigMapOutputWithContext

func (o CodeSigningConfigMapOutput) ToCodeSigningConfigMapOutputWithContext(ctx context.Context) CodeSigningConfigMapOutput

type CodeSigningConfigOutput

type CodeSigningConfigOutput struct{ *pulumi.OutputState }

func (CodeSigningConfigOutput) ElementType

func (CodeSigningConfigOutput) ElementType() reflect.Type

func (CodeSigningConfigOutput) ToCodeSigningConfigOutput

func (o CodeSigningConfigOutput) ToCodeSigningConfigOutput() CodeSigningConfigOutput

func (CodeSigningConfigOutput) ToCodeSigningConfigOutputWithContext

func (o CodeSigningConfigOutput) ToCodeSigningConfigOutputWithContext(ctx context.Context) CodeSigningConfigOutput

func (CodeSigningConfigOutput) ToCodeSigningConfigPtrOutput

func (o CodeSigningConfigOutput) ToCodeSigningConfigPtrOutput() CodeSigningConfigPtrOutput

func (CodeSigningConfigOutput) ToCodeSigningConfigPtrOutputWithContext

func (o CodeSigningConfigOutput) ToCodeSigningConfigPtrOutputWithContext(ctx context.Context) CodeSigningConfigPtrOutput

type CodeSigningConfigPolicies

type CodeSigningConfigPolicies struct {
	// Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if code-signing validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Valid values: `Warn`, `Enforce`. Default value: `Warn`.
	UntrustedArtifactOnDeployment string `pulumi:"untrustedArtifactOnDeployment"`
}

type CodeSigningConfigPoliciesArgs

type CodeSigningConfigPoliciesArgs struct {
	// Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if code-signing validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Valid values: `Warn`, `Enforce`. Default value: `Warn`.
	UntrustedArtifactOnDeployment pulumi.StringInput `pulumi:"untrustedArtifactOnDeployment"`
}

func (CodeSigningConfigPoliciesArgs) ElementType

func (CodeSigningConfigPoliciesArgs) ToCodeSigningConfigPoliciesOutput

func (i CodeSigningConfigPoliciesArgs) ToCodeSigningConfigPoliciesOutput() CodeSigningConfigPoliciesOutput

func (CodeSigningConfigPoliciesArgs) ToCodeSigningConfigPoliciesOutputWithContext

func (i CodeSigningConfigPoliciesArgs) ToCodeSigningConfigPoliciesOutputWithContext(ctx context.Context) CodeSigningConfigPoliciesOutput

func (CodeSigningConfigPoliciesArgs) ToCodeSigningConfigPoliciesPtrOutput

func (i CodeSigningConfigPoliciesArgs) ToCodeSigningConfigPoliciesPtrOutput() CodeSigningConfigPoliciesPtrOutput

func (CodeSigningConfigPoliciesArgs) ToCodeSigningConfigPoliciesPtrOutputWithContext

func (i CodeSigningConfigPoliciesArgs) ToCodeSigningConfigPoliciesPtrOutputWithContext(ctx context.Context) CodeSigningConfigPoliciesPtrOutput

type CodeSigningConfigPoliciesInput

type CodeSigningConfigPoliciesInput interface {
	pulumi.Input

	ToCodeSigningConfigPoliciesOutput() CodeSigningConfigPoliciesOutput
	ToCodeSigningConfigPoliciesOutputWithContext(context.Context) CodeSigningConfigPoliciesOutput
}

CodeSigningConfigPoliciesInput is an input type that accepts CodeSigningConfigPoliciesArgs and CodeSigningConfigPoliciesOutput values. You can construct a concrete instance of `CodeSigningConfigPoliciesInput` via:

CodeSigningConfigPoliciesArgs{...}

type CodeSigningConfigPoliciesOutput

type CodeSigningConfigPoliciesOutput struct{ *pulumi.OutputState }

func (CodeSigningConfigPoliciesOutput) ElementType

func (CodeSigningConfigPoliciesOutput) ToCodeSigningConfigPoliciesOutput

func (o CodeSigningConfigPoliciesOutput) ToCodeSigningConfigPoliciesOutput() CodeSigningConfigPoliciesOutput

func (CodeSigningConfigPoliciesOutput) ToCodeSigningConfigPoliciesOutputWithContext

func (o CodeSigningConfigPoliciesOutput) ToCodeSigningConfigPoliciesOutputWithContext(ctx context.Context) CodeSigningConfigPoliciesOutput

func (CodeSigningConfigPoliciesOutput) ToCodeSigningConfigPoliciesPtrOutput

func (o CodeSigningConfigPoliciesOutput) ToCodeSigningConfigPoliciesPtrOutput() CodeSigningConfigPoliciesPtrOutput

func (CodeSigningConfigPoliciesOutput) ToCodeSigningConfigPoliciesPtrOutputWithContext

func (o CodeSigningConfigPoliciesOutput) ToCodeSigningConfigPoliciesPtrOutputWithContext(ctx context.Context) CodeSigningConfigPoliciesPtrOutput

func (CodeSigningConfigPoliciesOutput) UntrustedArtifactOnDeployment

func (o CodeSigningConfigPoliciesOutput) UntrustedArtifactOnDeployment() pulumi.StringOutput

Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if code-signing validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Valid values: `Warn`, `Enforce`. Default value: `Warn`.

type CodeSigningConfigPoliciesPtrInput

type CodeSigningConfigPoliciesPtrInput interface {
	pulumi.Input

	ToCodeSigningConfigPoliciesPtrOutput() CodeSigningConfigPoliciesPtrOutput
	ToCodeSigningConfigPoliciesPtrOutputWithContext(context.Context) CodeSigningConfigPoliciesPtrOutput
}

CodeSigningConfigPoliciesPtrInput is an input type that accepts CodeSigningConfigPoliciesArgs, CodeSigningConfigPoliciesPtr and CodeSigningConfigPoliciesPtrOutput values. You can construct a concrete instance of `CodeSigningConfigPoliciesPtrInput` via:

        CodeSigningConfigPoliciesArgs{...}

or:

        nil

type CodeSigningConfigPoliciesPtrOutput

type CodeSigningConfigPoliciesPtrOutput struct{ *pulumi.OutputState }

func (CodeSigningConfigPoliciesPtrOutput) Elem

func (CodeSigningConfigPoliciesPtrOutput) ElementType

func (CodeSigningConfigPoliciesPtrOutput) ToCodeSigningConfigPoliciesPtrOutput

func (o CodeSigningConfigPoliciesPtrOutput) ToCodeSigningConfigPoliciesPtrOutput() CodeSigningConfigPoliciesPtrOutput

func (CodeSigningConfigPoliciesPtrOutput) ToCodeSigningConfigPoliciesPtrOutputWithContext

func (o CodeSigningConfigPoliciesPtrOutput) ToCodeSigningConfigPoliciesPtrOutputWithContext(ctx context.Context) CodeSigningConfigPoliciesPtrOutput

func (CodeSigningConfigPoliciesPtrOutput) UntrustedArtifactOnDeployment

func (o CodeSigningConfigPoliciesPtrOutput) UntrustedArtifactOnDeployment() pulumi.StringPtrOutput

Code signing configuration policy for deployment validation failure. If you set the policy to Enforce, Lambda blocks the deployment request if code-signing validation checks fail. If you set the policy to Warn, Lambda allows the deployment and creates a CloudWatch log. Valid values: `Warn`, `Enforce`. Default value: `Warn`.

type CodeSigningConfigPtrInput

type CodeSigningConfigPtrInput interface {
	pulumi.Input

	ToCodeSigningConfigPtrOutput() CodeSigningConfigPtrOutput
	ToCodeSigningConfigPtrOutputWithContext(ctx context.Context) CodeSigningConfigPtrOutput
}

type CodeSigningConfigPtrOutput

type CodeSigningConfigPtrOutput struct{ *pulumi.OutputState }

func (CodeSigningConfigPtrOutput) Elem added in v4.15.0

func (CodeSigningConfigPtrOutput) ElementType

func (CodeSigningConfigPtrOutput) ElementType() reflect.Type

func (CodeSigningConfigPtrOutput) ToCodeSigningConfigPtrOutput

func (o CodeSigningConfigPtrOutput) ToCodeSigningConfigPtrOutput() CodeSigningConfigPtrOutput

func (CodeSigningConfigPtrOutput) ToCodeSigningConfigPtrOutputWithContext

func (o CodeSigningConfigPtrOutput) ToCodeSigningConfigPtrOutputWithContext(ctx context.Context) CodeSigningConfigPtrOutput

type CodeSigningConfigState

type CodeSigningConfigState struct {
	// A configuration block of allowed publishers as signing profiles for this code signing configuration. Detailed below.
	AllowedPublishers CodeSigningConfigAllowedPublishersPtrInput
	// The Amazon Resource Name (ARN) of the code signing configuration.
	Arn pulumi.StringPtrInput
	// Unique identifier for the code signing configuration.
	ConfigId pulumi.StringPtrInput
	// Descriptive name for this code signing configuration.
	Description pulumi.StringPtrInput
	// The date and time that the code signing configuration was last modified.
	LastModified pulumi.StringPtrInput
	// A configuration block of code signing policies that define the actions to take if the validation checks fail. Detailed below.
	Policies CodeSigningConfigPoliciesPtrInput
}

func (CodeSigningConfigState) ElementType

func (CodeSigningConfigState) 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, Kinesis, MQ and MSK, `10` for SQS.
	// * `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.
	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 - this is required for Kinesis stream, DynamoDB stream, SQS queue, MQ broker or MSK cluster.  It is incompatible with a Self Managed Kafka source.
	EventSourceArn pulumi.StringPtrOutput `pulumi:"eventSourceArn"`
	// The criteria to use for [event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) Kinesis stream, DynamoDB stream, SQS queue event sources. Detailed below.
	FilterCriteria EventSourceMappingFilterCriteriaPtrOutput `pulumi:"filterCriteria"`
	// 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"`
	// A list of current response type enums applied to the event source mapping for [AWS Lambda checkpointing](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-batchfailurereporting). Only available for SQS and stream sources (DynamoDB and Kinesis). Valid values: `ReportBatchItemFailures`.
	FunctionResponseTypes pulumi.StringArrayOutput `pulumi:"functionResponseTypes"`
	// 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 (between 0 and 300). Records will continue to buffer (or accumulate in the case of an SQS queue event source) until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. For streaming event sources, defaults to as soon as records are available in the stream. If the batch it reads from the stream/queue only has one record in it, Lambda only sends one record to the function. Only available for stream sources (DynamoDB and Kinesis) and SQS standard queues.
	// * `maximumRecordAgeInSeconds`: - (Optional) The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Must be either -1 (forever, and the default value) or between 60 and 604800 (inclusive).
	// * `maximumRetryAttempts`: - (Optional) The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of -1 (forever), maximum of 10000.
	// * `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.
	MaximumBatchingWindowInSeconds pulumi.IntPtrOutput `pulumi:"maximumBatchingWindowInSeconds"`
	MaximumRecordAgeInSeconds      pulumi.IntOutput    `pulumi:"maximumRecordAgeInSeconds"`
	MaximumRetryAttempts           pulumi.IntOutput    `pulumi:"maximumRetryAttempts"`
	ParallelizationFactor          pulumi.IntOutput    `pulumi:"parallelizationFactor"`
	// The name of the Amazon MQ broker destination queue to consume. Only available for MQ sources. A single queue name must be specified.
	// * `selfManagedEventSource`: - (Optional) For Self Managed Kafka sources, the location of the self managed cluster. If set, configuration must also include `sourceAccessConfiguration`. Detailed below.
	// * `sourceAccessConfiguration`: (Optional) For Self Managed Kafka sources, the access configuration for the source. If set, configuration must also include `selfManagedEventSource`. Detailed below.
	Queues                     pulumi.StringArrayOutput                               `pulumi:"queues"`
	SelfManagedEventSource     EventSourceMappingSelfManagedEventSourcePtrOutput      `pulumi:"selfManagedEventSource"`
	SourceAccessConfigurations EventSourceMappingSourceAccessConfigurationArrayOutput `pulumi:"sourceAccessConfigurations"`
	// 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, DynamoDB or MSK. 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.
	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 name of the Kafka topics. Only available for MSK sources. A single topic name must be specified.
	Topics pulumi.StringArrayOutput `pulumi:"topics"`
	// The duration in seconds of a processing window for [AWS Lambda streaming analytics](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-windows). The range is between 1 second up to 900 seconds. Only available for stream sources (DynamoDB and Kinesis).
	TumblingWindowInSeconds pulumi.IntPtrOutput `pulumi:"tumblingWindowInSeconds"`
	// 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, SQS, Amazon MQ and Managed Streaming for Apache Kafka (MSK).

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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{
			EventSourceArn:   pulumi.Any(aws_dynamodb_table.Example.Stream_arn),
			FunctionName:     pulumi.Any(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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{
			EventSourceArn:   pulumi.Any(aws_kinesis_stream.Example.Arn),
			FunctionName:     pulumi.Any(aws_lambda_function.Example.Arn),
			StartingPosition: pulumi.String("LATEST"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Managed Streaming for Apache Kafka (MSK)

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{
			EventSourceArn: pulumi.Any(aws_msk_cluster.Example.Arn),
			FunctionName:   pulumi.Any(aws_lambda_function.Example.Arn),
			Topics: pulumi.StringArray{
				pulumi.String("Example"),
			},
			StartingPosition: pulumi.String("TRIM_HORIZON"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Self Managed Apache Kafka

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{
			FunctionName: pulumi.Any(aws_lambda_function.Example.Arn),
			Topics: pulumi.StringArray{
				pulumi.String("Example"),
			},
			StartingPosition: pulumi.String("TRIM_HORIZON"),
			SelfManagedEventSource: &lambda.EventSourceMappingSelfManagedEventSourceArgs{
				Endpoints: pulumi.StringMap{
					"KAFKA_BOOTSTRAP_SERVERS": pulumi.String("kafka1.example.com:9092,kafka2.example.com:9092"),
				},
			},
			SourceAccessConfigurations: lambda.EventSourceMappingSourceAccessConfigurationArray{
				&lambda.EventSourceMappingSourceAccessConfigurationArgs{
					Type: pulumi.String("VPC_SUBNET"),
					Uri:  pulumi.String("subnet:subnet-example1"),
				},
				&lambda.EventSourceMappingSourceAccessConfigurationArgs{
					Type: pulumi.String("VPC_SUBNET"),
					Uri:  pulumi.String("subnet:subnet-example2"),
				},
				&lambda.EventSourceMappingSourceAccessConfigurationArgs{
					Type: pulumi.String("VPC_SECURITY_GROUP"),
					Uri:  pulumi.String("security_group:sg-example"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### SQS

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{
			EventSourceArn: pulumi.Any(aws_sqs_queue.Sqs_queue_test.Arn),
			FunctionName:   pulumi.Any(aws_lambda_function.Example.Arn),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### SQS with event filter

```go package main

import (

"encoding/json"

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"body": map[string]interface{}{
				"Temperature": []map[string]interface{}{
					map[string]interface{}{
						"numeric": []interface{}{
							">",
							0,
							"<=",
							100,
						},
					},
				},
				"Location": []string{
					"New York",
				},
			},
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{
			EventSourceArn: pulumi.Any(aws_sqs_queue.Sqs_queue_test.Arn),
			FunctionName:   pulumi.Any(aws_lambda_function.Example.Arn),
			FilterCriteria: &lambda.EventSourceMappingFilterCriteriaArgs{
				Filters: lambda.EventSourceMappingFilterCriteriaFilterArray{
					&lambda.EventSourceMappingFilterCriteriaFilterArgs{
						Pattern: pulumi.String(json0),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Amazon MQ (ActiveMQ)

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{
			BatchSize:      pulumi.Int(10),
			EventSourceArn: pulumi.Any(aws_mq_broker.Example.Arn),
			Enabled:        pulumi.Bool(true),
			FunctionName:   pulumi.Any(aws_lambda_function.Example.Arn),
			Queues: pulumi.StringArray{
				pulumi.String("example"),
			},
			SourceAccessConfigurations: lambda.EventSourceMappingSourceAccessConfigurationArray{
				&lambda.EventSourceMappingSourceAccessConfigurationArgs{
					Type: pulumi.String("BASIC_AUTH"),
					Uri:  pulumi.Any(aws_secretsmanager_secret_version.Example.Arn),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Amazon MQ (RabbitMQ)

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{
			BatchSize:      pulumi.Int(1),
			EventSourceArn: pulumi.Any(aws_mq_broker.Example.Arn),
			Enabled:        pulumi.Bool(true),
			FunctionName:   pulumi.Any(aws_lambda_function.Example.Arn),
			Queues: pulumi.StringArray{
				pulumi.String("example"),
			},
			SourceAccessConfigurations: lambda.EventSourceMappingSourceAccessConfigurationArray{
				&lambda.EventSourceMappingSourceAccessConfigurationArgs{
					Type: pulumi.String("VIRTUAL_HOST"),
					Uri:  pulumi.String("/example"),
				},
				&lambda.EventSourceMappingSourceAccessConfigurationArgs{
					Type: pulumi.String("BASIC_AUTH"),
					Uri:  pulumi.Any(aws_secretsmanager_secret_version.Example.Arn),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Managed Streaming for Kafka (MSK)

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewEventSourceMapping(ctx, "example", &lambda.EventSourceMappingArgs{
			EventSourceArn: pulumi.Any(aws_msk_cluster.Example.Arn),
			FunctionName:   pulumi.Any(aws_lambda_function.Example.Arn),
			Topics: pulumi.StringArray{
				pulumi.String("Example"),
			},
			StartingPosition: pulumi.String("TRIM_HORIZON"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Lambda event source mappings can be imported using the `UUID` (event source mapping identifier), e.g.,

```sh

$ pulumi import aws:lambda/eventSourceMapping:EventSourceMapping event_source_mapping 12345kxodurf3443

```

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.

func (*EventSourceMapping) ElementType

func (*EventSourceMapping) ElementType() reflect.Type

func (*EventSourceMapping) ToEventSourceMappingOutput

func (i *EventSourceMapping) ToEventSourceMappingOutput() EventSourceMappingOutput

func (*EventSourceMapping) ToEventSourceMappingOutputWithContext

func (i *EventSourceMapping) ToEventSourceMappingOutputWithContext(ctx context.Context) EventSourceMappingOutput

func (*EventSourceMapping) ToEventSourceMappingPtrOutput

func (i *EventSourceMapping) ToEventSourceMappingPtrOutput() EventSourceMappingPtrOutput

func (*EventSourceMapping) ToEventSourceMappingPtrOutputWithContext

func (i *EventSourceMapping) ToEventSourceMappingPtrOutputWithContext(ctx context.Context) EventSourceMappingPtrOutput

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, Kinesis, MQ and MSK, `10` for SQS.
	// * `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.
	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 - this is required for Kinesis stream, DynamoDB stream, SQS queue, MQ broker or MSK cluster.  It is incompatible with a Self Managed Kafka source.
	EventSourceArn pulumi.StringPtrInput
	// The criteria to use for [event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) Kinesis stream, DynamoDB stream, SQS queue event sources. Detailed below.
	FilterCriteria EventSourceMappingFilterCriteriaPtrInput
	// The name or the ARN of the Lambda function that will be subscribing to events.
	FunctionName pulumi.StringInput
	// A list of current response type enums applied to the event source mapping for [AWS Lambda checkpointing](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-batchfailurereporting). Only available for SQS and stream sources (DynamoDB and Kinesis). Valid values: `ReportBatchItemFailures`.
	FunctionResponseTypes pulumi.StringArrayInput
	// The maximum amount of time to gather records before invoking the function, in seconds (between 0 and 300). Records will continue to buffer (or accumulate in the case of an SQS queue event source) until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. For streaming event sources, defaults to as soon as records are available in the stream. If the batch it reads from the stream/queue only has one record in it, Lambda only sends one record to the function. Only available for stream sources (DynamoDB and Kinesis) and SQS standard queues.
	// * `maximumRecordAgeInSeconds`: - (Optional) The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Must be either -1 (forever, and the default value) or between 60 and 604800 (inclusive).
	// * `maximumRetryAttempts`: - (Optional) The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of -1 (forever), maximum of 10000.
	// * `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.
	MaximumBatchingWindowInSeconds pulumi.IntPtrInput
	MaximumRecordAgeInSeconds      pulumi.IntPtrInput
	MaximumRetryAttempts           pulumi.IntPtrInput
	ParallelizationFactor          pulumi.IntPtrInput
	// The name of the Amazon MQ broker destination queue to consume. Only available for MQ sources. A single queue name must be specified.
	// * `selfManagedEventSource`: - (Optional) For Self Managed Kafka sources, the location of the self managed cluster. If set, configuration must also include `sourceAccessConfiguration`. Detailed below.
	// * `sourceAccessConfiguration`: (Optional) For Self Managed Kafka sources, the access configuration for the source. If set, configuration must also include `selfManagedEventSource`. Detailed below.
	Queues                     pulumi.StringArrayInput
	SelfManagedEventSource     EventSourceMappingSelfManagedEventSourcePtrInput
	SourceAccessConfigurations EventSourceMappingSourceAccessConfigurationArrayInput
	// 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, DynamoDB or MSK. 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.
	StartingPositionTimestamp pulumi.StringPtrInput
	// The name of the Kafka topics. Only available for MSK sources. A single topic name must be specified.
	Topics pulumi.StringArrayInput
	// The duration in seconds of a processing window for [AWS Lambda streaming analytics](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-windows). The range is between 1 second up to 900 seconds. Only available for stream sources (DynamoDB and Kinesis).
	TumblingWindowInSeconds pulumi.IntPtrInput
}

The set of arguments for constructing a EventSourceMapping resource.

func (EventSourceMappingArgs) ElementType

func (EventSourceMappingArgs) ElementType() reflect.Type

type EventSourceMappingArray

type EventSourceMappingArray []EventSourceMappingInput

func (EventSourceMappingArray) ElementType

func (EventSourceMappingArray) ElementType() reflect.Type

func (EventSourceMappingArray) ToEventSourceMappingArrayOutput

func (i EventSourceMappingArray) ToEventSourceMappingArrayOutput() EventSourceMappingArrayOutput

func (EventSourceMappingArray) ToEventSourceMappingArrayOutputWithContext

func (i EventSourceMappingArray) ToEventSourceMappingArrayOutputWithContext(ctx context.Context) EventSourceMappingArrayOutput

type EventSourceMappingArrayInput

type EventSourceMappingArrayInput interface {
	pulumi.Input

	ToEventSourceMappingArrayOutput() EventSourceMappingArrayOutput
	ToEventSourceMappingArrayOutputWithContext(context.Context) EventSourceMappingArrayOutput
}

EventSourceMappingArrayInput is an input type that accepts EventSourceMappingArray and EventSourceMappingArrayOutput values. You can construct a concrete instance of `EventSourceMappingArrayInput` via:

EventSourceMappingArray{ EventSourceMappingArgs{...} }

type EventSourceMappingArrayOutput

type EventSourceMappingArrayOutput struct{ *pulumi.OutputState }

func (EventSourceMappingArrayOutput) ElementType

func (EventSourceMappingArrayOutput) Index

func (EventSourceMappingArrayOutput) ToEventSourceMappingArrayOutput

func (o EventSourceMappingArrayOutput) ToEventSourceMappingArrayOutput() EventSourceMappingArrayOutput

func (EventSourceMappingArrayOutput) ToEventSourceMappingArrayOutputWithContext

func (o EventSourceMappingArrayOutput) ToEventSourceMappingArrayOutputWithContext(ctx context.Context) EventSourceMappingArrayOutput

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) 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) 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

The Amazon Resource Name (ARN) of the destination resource.

func (EventSourceMappingDestinationConfigOnFailureOutput) ElementType

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

type EventSourceMappingDestinationConfigOnFailurePtrOutput

type EventSourceMappingDestinationConfigOnFailurePtrOutput struct{ *pulumi.OutputState }

func (EventSourceMappingDestinationConfigOnFailurePtrOutput) DestinationArn

The Amazon Resource Name (ARN) of the destination resource.

func (EventSourceMappingDestinationConfigOnFailurePtrOutput) Elem

func (EventSourceMappingDestinationConfigOnFailurePtrOutput) ElementType

func (EventSourceMappingDestinationConfigOnFailurePtrOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutput

func (EventSourceMappingDestinationConfigOnFailurePtrOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext

func (o EventSourceMappingDestinationConfigOnFailurePtrOutput) ToEventSourceMappingDestinationConfigOnFailurePtrOutputWithContext(ctx context.Context) EventSourceMappingDestinationConfigOnFailurePtrOutput

type EventSourceMappingDestinationConfigOutput

type EventSourceMappingDestinationConfigOutput struct{ *pulumi.OutputState }

func (EventSourceMappingDestinationConfigOutput) ElementType

func (EventSourceMappingDestinationConfigOutput) OnFailure

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

type EventSourceMappingDestinationConfigPtrOutput

type EventSourceMappingDestinationConfigPtrOutput struct{ *pulumi.OutputState }

func (EventSourceMappingDestinationConfigPtrOutput) Elem

func (EventSourceMappingDestinationConfigPtrOutput) ElementType

func (EventSourceMappingDestinationConfigPtrOutput) OnFailure

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 EventSourceMappingFilterCriteria added in v4.32.0

type EventSourceMappingFilterCriteria struct {
	// A set of up to 5 filter. If an event satisfies at least one, Lambda sends the event to the function or adds it to the next batch. Detailed below.
	Filters []EventSourceMappingFilterCriteriaFilter `pulumi:"filters"`
}

type EventSourceMappingFilterCriteriaArgs added in v4.32.0

type EventSourceMappingFilterCriteriaArgs struct {
	// A set of up to 5 filter. If an event satisfies at least one, Lambda sends the event to the function or adds it to the next batch. Detailed below.
	Filters EventSourceMappingFilterCriteriaFilterArrayInput `pulumi:"filters"`
}

func (EventSourceMappingFilterCriteriaArgs) ElementType added in v4.32.0

func (EventSourceMappingFilterCriteriaArgs) ToEventSourceMappingFilterCriteriaOutput added in v4.32.0

func (i EventSourceMappingFilterCriteriaArgs) ToEventSourceMappingFilterCriteriaOutput() EventSourceMappingFilterCriteriaOutput

func (EventSourceMappingFilterCriteriaArgs) ToEventSourceMappingFilterCriteriaOutputWithContext added in v4.32.0

func (i EventSourceMappingFilterCriteriaArgs) ToEventSourceMappingFilterCriteriaOutputWithContext(ctx context.Context) EventSourceMappingFilterCriteriaOutput

func (EventSourceMappingFilterCriteriaArgs) ToEventSourceMappingFilterCriteriaPtrOutput added in v4.32.0

func (i EventSourceMappingFilterCriteriaArgs) ToEventSourceMappingFilterCriteriaPtrOutput() EventSourceMappingFilterCriteriaPtrOutput

func (EventSourceMappingFilterCriteriaArgs) ToEventSourceMappingFilterCriteriaPtrOutputWithContext added in v4.32.0

func (i EventSourceMappingFilterCriteriaArgs) ToEventSourceMappingFilterCriteriaPtrOutputWithContext(ctx context.Context) EventSourceMappingFilterCriteriaPtrOutput

type EventSourceMappingFilterCriteriaFilter added in v4.32.0

type EventSourceMappingFilterCriteriaFilter struct {
	// A filter pattern up to 4096 characters. See [Filter Rule Syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax).
	Pattern *string `pulumi:"pattern"`
}

type EventSourceMappingFilterCriteriaFilterArgs added in v4.32.0

type EventSourceMappingFilterCriteriaFilterArgs struct {
	// A filter pattern up to 4096 characters. See [Filter Rule Syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax).
	Pattern pulumi.StringPtrInput `pulumi:"pattern"`
}

func (EventSourceMappingFilterCriteriaFilterArgs) ElementType added in v4.32.0

func (EventSourceMappingFilterCriteriaFilterArgs) ToEventSourceMappingFilterCriteriaFilterOutput added in v4.32.0

func (i EventSourceMappingFilterCriteriaFilterArgs) ToEventSourceMappingFilterCriteriaFilterOutput() EventSourceMappingFilterCriteriaFilterOutput

func (EventSourceMappingFilterCriteriaFilterArgs) ToEventSourceMappingFilterCriteriaFilterOutputWithContext added in v4.32.0

func (i EventSourceMappingFilterCriteriaFilterArgs) ToEventSourceMappingFilterCriteriaFilterOutputWithContext(ctx context.Context) EventSourceMappingFilterCriteriaFilterOutput

type EventSourceMappingFilterCriteriaFilterArray added in v4.32.0

type EventSourceMappingFilterCriteriaFilterArray []EventSourceMappingFilterCriteriaFilterInput

func (EventSourceMappingFilterCriteriaFilterArray) ElementType added in v4.32.0

func (EventSourceMappingFilterCriteriaFilterArray) ToEventSourceMappingFilterCriteriaFilterArrayOutput added in v4.32.0

func (i EventSourceMappingFilterCriteriaFilterArray) ToEventSourceMappingFilterCriteriaFilterArrayOutput() EventSourceMappingFilterCriteriaFilterArrayOutput

func (EventSourceMappingFilterCriteriaFilterArray) ToEventSourceMappingFilterCriteriaFilterArrayOutputWithContext added in v4.32.0

func (i EventSourceMappingFilterCriteriaFilterArray) ToEventSourceMappingFilterCriteriaFilterArrayOutputWithContext(ctx context.Context) EventSourceMappingFilterCriteriaFilterArrayOutput

type EventSourceMappingFilterCriteriaFilterArrayInput added in v4.32.0

type EventSourceMappingFilterCriteriaFilterArrayInput interface {
	pulumi.Input

	ToEventSourceMappingFilterCriteriaFilterArrayOutput() EventSourceMappingFilterCriteriaFilterArrayOutput
	ToEventSourceMappingFilterCriteriaFilterArrayOutputWithContext(context.Context) EventSourceMappingFilterCriteriaFilterArrayOutput
}

EventSourceMappingFilterCriteriaFilterArrayInput is an input type that accepts EventSourceMappingFilterCriteriaFilterArray and EventSourceMappingFilterCriteriaFilterArrayOutput values. You can construct a concrete instance of `EventSourceMappingFilterCriteriaFilterArrayInput` via:

EventSourceMappingFilterCriteriaFilterArray{ EventSourceMappingFilterCriteriaFilterArgs{...} }

type EventSourceMappingFilterCriteriaFilterArrayOutput added in v4.32.0

type EventSourceMappingFilterCriteriaFilterArrayOutput struct{ *pulumi.OutputState }

func (EventSourceMappingFilterCriteriaFilterArrayOutput) ElementType added in v4.32.0

func (EventSourceMappingFilterCriteriaFilterArrayOutput) Index added in v4.32.0

func (EventSourceMappingFilterCriteriaFilterArrayOutput) ToEventSourceMappingFilterCriteriaFilterArrayOutput added in v4.32.0

func (o EventSourceMappingFilterCriteriaFilterArrayOutput) ToEventSourceMappingFilterCriteriaFilterArrayOutput() EventSourceMappingFilterCriteriaFilterArrayOutput

func (EventSourceMappingFilterCriteriaFilterArrayOutput) ToEventSourceMappingFilterCriteriaFilterArrayOutputWithContext added in v4.32.0

func (o EventSourceMappingFilterCriteriaFilterArrayOutput) ToEventSourceMappingFilterCriteriaFilterArrayOutputWithContext(ctx context.Context) EventSourceMappingFilterCriteriaFilterArrayOutput

type EventSourceMappingFilterCriteriaFilterInput added in v4.32.0

type EventSourceMappingFilterCriteriaFilterInput interface {
	pulumi.Input

	ToEventSourceMappingFilterCriteriaFilterOutput() EventSourceMappingFilterCriteriaFilterOutput
	ToEventSourceMappingFilterCriteriaFilterOutputWithContext(context.Context) EventSourceMappingFilterCriteriaFilterOutput
}

EventSourceMappingFilterCriteriaFilterInput is an input type that accepts EventSourceMappingFilterCriteriaFilterArgs and EventSourceMappingFilterCriteriaFilterOutput values. You can construct a concrete instance of `EventSourceMappingFilterCriteriaFilterInput` via:

EventSourceMappingFilterCriteriaFilterArgs{...}

type EventSourceMappingFilterCriteriaFilterOutput added in v4.32.0

type EventSourceMappingFilterCriteriaFilterOutput struct{ *pulumi.OutputState }

func (EventSourceMappingFilterCriteriaFilterOutput) ElementType added in v4.32.0

func (EventSourceMappingFilterCriteriaFilterOutput) Pattern added in v4.32.0

A filter pattern up to 4096 characters. See [Filter Rule Syntax](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html#filtering-syntax).

func (EventSourceMappingFilterCriteriaFilterOutput) ToEventSourceMappingFilterCriteriaFilterOutput added in v4.32.0

func (o EventSourceMappingFilterCriteriaFilterOutput) ToEventSourceMappingFilterCriteriaFilterOutput() EventSourceMappingFilterCriteriaFilterOutput

func (EventSourceMappingFilterCriteriaFilterOutput) ToEventSourceMappingFilterCriteriaFilterOutputWithContext added in v4.32.0

func (o EventSourceMappingFilterCriteriaFilterOutput) ToEventSourceMappingFilterCriteriaFilterOutputWithContext(ctx context.Context) EventSourceMappingFilterCriteriaFilterOutput

type EventSourceMappingFilterCriteriaInput added in v4.32.0

type EventSourceMappingFilterCriteriaInput interface {
	pulumi.Input

	ToEventSourceMappingFilterCriteriaOutput() EventSourceMappingFilterCriteriaOutput
	ToEventSourceMappingFilterCriteriaOutputWithContext(context.Context) EventSourceMappingFilterCriteriaOutput
}

EventSourceMappingFilterCriteriaInput is an input type that accepts EventSourceMappingFilterCriteriaArgs and EventSourceMappingFilterCriteriaOutput values. You can construct a concrete instance of `EventSourceMappingFilterCriteriaInput` via:

EventSourceMappingFilterCriteriaArgs{...}

type EventSourceMappingFilterCriteriaOutput added in v4.32.0

type EventSourceMappingFilterCriteriaOutput struct{ *pulumi.OutputState }

func (EventSourceMappingFilterCriteriaOutput) ElementType added in v4.32.0

func (EventSourceMappingFilterCriteriaOutput) Filters added in v4.32.0

A set of up to 5 filter. If an event satisfies at least one, Lambda sends the event to the function or adds it to the next batch. Detailed below.

func (EventSourceMappingFilterCriteriaOutput) ToEventSourceMappingFilterCriteriaOutput added in v4.32.0

func (o EventSourceMappingFilterCriteriaOutput) ToEventSourceMappingFilterCriteriaOutput() EventSourceMappingFilterCriteriaOutput

func (EventSourceMappingFilterCriteriaOutput) ToEventSourceMappingFilterCriteriaOutputWithContext added in v4.32.0

func (o EventSourceMappingFilterCriteriaOutput) ToEventSourceMappingFilterCriteriaOutputWithContext(ctx context.Context) EventSourceMappingFilterCriteriaOutput

func (EventSourceMappingFilterCriteriaOutput) ToEventSourceMappingFilterCriteriaPtrOutput added in v4.32.0

func (o EventSourceMappingFilterCriteriaOutput) ToEventSourceMappingFilterCriteriaPtrOutput() EventSourceMappingFilterCriteriaPtrOutput

func (EventSourceMappingFilterCriteriaOutput) ToEventSourceMappingFilterCriteriaPtrOutputWithContext added in v4.32.0

func (o EventSourceMappingFilterCriteriaOutput) ToEventSourceMappingFilterCriteriaPtrOutputWithContext(ctx context.Context) EventSourceMappingFilterCriteriaPtrOutput

type EventSourceMappingFilterCriteriaPtrInput added in v4.32.0

type EventSourceMappingFilterCriteriaPtrInput interface {
	pulumi.Input

	ToEventSourceMappingFilterCriteriaPtrOutput() EventSourceMappingFilterCriteriaPtrOutput
	ToEventSourceMappingFilterCriteriaPtrOutputWithContext(context.Context) EventSourceMappingFilterCriteriaPtrOutput
}

EventSourceMappingFilterCriteriaPtrInput is an input type that accepts EventSourceMappingFilterCriteriaArgs, EventSourceMappingFilterCriteriaPtr and EventSourceMappingFilterCriteriaPtrOutput values. You can construct a concrete instance of `EventSourceMappingFilterCriteriaPtrInput` via:

        EventSourceMappingFilterCriteriaArgs{...}

or:

        nil

type EventSourceMappingFilterCriteriaPtrOutput added in v4.32.0

type EventSourceMappingFilterCriteriaPtrOutput struct{ *pulumi.OutputState }

func (EventSourceMappingFilterCriteriaPtrOutput) Elem added in v4.32.0

func (EventSourceMappingFilterCriteriaPtrOutput) ElementType added in v4.32.0

func (EventSourceMappingFilterCriteriaPtrOutput) Filters added in v4.32.0

A set of up to 5 filter. If an event satisfies at least one, Lambda sends the event to the function or adds it to the next batch. Detailed below.

func (EventSourceMappingFilterCriteriaPtrOutput) ToEventSourceMappingFilterCriteriaPtrOutput added in v4.32.0

func (o EventSourceMappingFilterCriteriaPtrOutput) ToEventSourceMappingFilterCriteriaPtrOutput() EventSourceMappingFilterCriteriaPtrOutput

func (EventSourceMappingFilterCriteriaPtrOutput) ToEventSourceMappingFilterCriteriaPtrOutputWithContext added in v4.32.0

func (o EventSourceMappingFilterCriteriaPtrOutput) ToEventSourceMappingFilterCriteriaPtrOutputWithContext(ctx context.Context) EventSourceMappingFilterCriteriaPtrOutput

type EventSourceMappingInput

type EventSourceMappingInput interface {
	pulumi.Input

	ToEventSourceMappingOutput() EventSourceMappingOutput
	ToEventSourceMappingOutputWithContext(ctx context.Context) EventSourceMappingOutput
}

type EventSourceMappingMap

type EventSourceMappingMap map[string]EventSourceMappingInput

func (EventSourceMappingMap) ElementType

func (EventSourceMappingMap) ElementType() reflect.Type

func (EventSourceMappingMap) ToEventSourceMappingMapOutput

func (i EventSourceMappingMap) ToEventSourceMappingMapOutput() EventSourceMappingMapOutput

func (EventSourceMappingMap) ToEventSourceMappingMapOutputWithContext

func (i EventSourceMappingMap) ToEventSourceMappingMapOutputWithContext(ctx context.Context) EventSourceMappingMapOutput

type EventSourceMappingMapInput

type EventSourceMappingMapInput interface {
	pulumi.Input

	ToEventSourceMappingMapOutput() EventSourceMappingMapOutput
	ToEventSourceMappingMapOutputWithContext(context.Context) EventSourceMappingMapOutput
}

EventSourceMappingMapInput is an input type that accepts EventSourceMappingMap and EventSourceMappingMapOutput values. You can construct a concrete instance of `EventSourceMappingMapInput` via:

EventSourceMappingMap{ "key": EventSourceMappingArgs{...} }

type EventSourceMappingMapOutput

type EventSourceMappingMapOutput struct{ *pulumi.OutputState }

func (EventSourceMappingMapOutput) ElementType

func (EventSourceMappingMapOutput) MapIndex

func (EventSourceMappingMapOutput) ToEventSourceMappingMapOutput

func (o EventSourceMappingMapOutput) ToEventSourceMappingMapOutput() EventSourceMappingMapOutput

func (EventSourceMappingMapOutput) ToEventSourceMappingMapOutputWithContext

func (o EventSourceMappingMapOutput) ToEventSourceMappingMapOutputWithContext(ctx context.Context) EventSourceMappingMapOutput

type EventSourceMappingOutput

type EventSourceMappingOutput struct{ *pulumi.OutputState }

func (EventSourceMappingOutput) ElementType

func (EventSourceMappingOutput) ElementType() reflect.Type

func (EventSourceMappingOutput) ToEventSourceMappingOutput

func (o EventSourceMappingOutput) ToEventSourceMappingOutput() EventSourceMappingOutput

func (EventSourceMappingOutput) ToEventSourceMappingOutputWithContext

func (o EventSourceMappingOutput) ToEventSourceMappingOutputWithContext(ctx context.Context) EventSourceMappingOutput

func (EventSourceMappingOutput) ToEventSourceMappingPtrOutput

func (o EventSourceMappingOutput) ToEventSourceMappingPtrOutput() EventSourceMappingPtrOutput

func (EventSourceMappingOutput) ToEventSourceMappingPtrOutputWithContext

func (o EventSourceMappingOutput) ToEventSourceMappingPtrOutputWithContext(ctx context.Context) EventSourceMappingPtrOutput

type EventSourceMappingPtrInput

type EventSourceMappingPtrInput interface {
	pulumi.Input

	ToEventSourceMappingPtrOutput() EventSourceMappingPtrOutput
	ToEventSourceMappingPtrOutputWithContext(ctx context.Context) EventSourceMappingPtrOutput
}

type EventSourceMappingPtrOutput

type EventSourceMappingPtrOutput struct{ *pulumi.OutputState }

func (EventSourceMappingPtrOutput) Elem added in v4.15.0

func (EventSourceMappingPtrOutput) ElementType

func (EventSourceMappingPtrOutput) ToEventSourceMappingPtrOutput

func (o EventSourceMappingPtrOutput) ToEventSourceMappingPtrOutput() EventSourceMappingPtrOutput

func (EventSourceMappingPtrOutput) ToEventSourceMappingPtrOutputWithContext

func (o EventSourceMappingPtrOutput) ToEventSourceMappingPtrOutputWithContext(ctx context.Context) EventSourceMappingPtrOutput

type EventSourceMappingSelfManagedEventSource added in v4.7.0

type EventSourceMappingSelfManagedEventSource struct {
	// A map of endpoints for the self managed source.  For Kafka self-managed sources, the key should be `KAFKA_BOOTSTRAP_SERVERS` and the value should be a string with a comma separated list of broker endpoints.
	Endpoints map[string]string `pulumi:"endpoints"`
}

type EventSourceMappingSelfManagedEventSourceArgs added in v4.7.0

type EventSourceMappingSelfManagedEventSourceArgs struct {
	// A map of endpoints for the self managed source.  For Kafka self-managed sources, the key should be `KAFKA_BOOTSTRAP_SERVERS` and the value should be a string with a comma separated list of broker endpoints.
	Endpoints pulumi.StringMapInput `pulumi:"endpoints"`
}

func (EventSourceMappingSelfManagedEventSourceArgs) ElementType added in v4.7.0

func (EventSourceMappingSelfManagedEventSourceArgs) ToEventSourceMappingSelfManagedEventSourceOutput added in v4.7.0

func (i EventSourceMappingSelfManagedEventSourceArgs) ToEventSourceMappingSelfManagedEventSourceOutput() EventSourceMappingSelfManagedEventSourceOutput

func (EventSourceMappingSelfManagedEventSourceArgs) ToEventSourceMappingSelfManagedEventSourceOutputWithContext added in v4.7.0

func (i EventSourceMappingSelfManagedEventSourceArgs) ToEventSourceMappingSelfManagedEventSourceOutputWithContext(ctx context.Context) EventSourceMappingSelfManagedEventSourceOutput

func (EventSourceMappingSelfManagedEventSourceArgs) ToEventSourceMappingSelfManagedEventSourcePtrOutput added in v4.7.0

func (i EventSourceMappingSelfManagedEventSourceArgs) ToEventSourceMappingSelfManagedEventSourcePtrOutput() EventSourceMappingSelfManagedEventSourcePtrOutput

func (EventSourceMappingSelfManagedEventSourceArgs) ToEventSourceMappingSelfManagedEventSourcePtrOutputWithContext added in v4.7.0

func (i EventSourceMappingSelfManagedEventSourceArgs) ToEventSourceMappingSelfManagedEventSourcePtrOutputWithContext(ctx context.Context) EventSourceMappingSelfManagedEventSourcePtrOutput

type EventSourceMappingSelfManagedEventSourceInput added in v4.7.0

type EventSourceMappingSelfManagedEventSourceInput interface {
	pulumi.Input

	ToEventSourceMappingSelfManagedEventSourceOutput() EventSourceMappingSelfManagedEventSourceOutput
	ToEventSourceMappingSelfManagedEventSourceOutputWithContext(context.Context) EventSourceMappingSelfManagedEventSourceOutput
}

EventSourceMappingSelfManagedEventSourceInput is an input type that accepts EventSourceMappingSelfManagedEventSourceArgs and EventSourceMappingSelfManagedEventSourceOutput values. You can construct a concrete instance of `EventSourceMappingSelfManagedEventSourceInput` via:

EventSourceMappingSelfManagedEventSourceArgs{...}

type EventSourceMappingSelfManagedEventSourceOutput added in v4.7.0

type EventSourceMappingSelfManagedEventSourceOutput struct{ *pulumi.OutputState }

func (EventSourceMappingSelfManagedEventSourceOutput) ElementType added in v4.7.0

func (EventSourceMappingSelfManagedEventSourceOutput) Endpoints added in v4.7.0

A map of endpoints for the self managed source. For Kafka self-managed sources, the key should be `KAFKA_BOOTSTRAP_SERVERS` and the value should be a string with a comma separated list of broker endpoints.

func (EventSourceMappingSelfManagedEventSourceOutput) ToEventSourceMappingSelfManagedEventSourceOutput added in v4.7.0

func (o EventSourceMappingSelfManagedEventSourceOutput) ToEventSourceMappingSelfManagedEventSourceOutput() EventSourceMappingSelfManagedEventSourceOutput

func (EventSourceMappingSelfManagedEventSourceOutput) ToEventSourceMappingSelfManagedEventSourceOutputWithContext added in v4.7.0

func (o EventSourceMappingSelfManagedEventSourceOutput) ToEventSourceMappingSelfManagedEventSourceOutputWithContext(ctx context.Context) EventSourceMappingSelfManagedEventSourceOutput

func (EventSourceMappingSelfManagedEventSourceOutput) ToEventSourceMappingSelfManagedEventSourcePtrOutput added in v4.7.0

func (o EventSourceMappingSelfManagedEventSourceOutput) ToEventSourceMappingSelfManagedEventSourcePtrOutput() EventSourceMappingSelfManagedEventSourcePtrOutput

func (EventSourceMappingSelfManagedEventSourceOutput) ToEventSourceMappingSelfManagedEventSourcePtrOutputWithContext added in v4.7.0

func (o EventSourceMappingSelfManagedEventSourceOutput) ToEventSourceMappingSelfManagedEventSourcePtrOutputWithContext(ctx context.Context) EventSourceMappingSelfManagedEventSourcePtrOutput

type EventSourceMappingSelfManagedEventSourcePtrInput added in v4.7.0

type EventSourceMappingSelfManagedEventSourcePtrInput interface {
	pulumi.Input

	ToEventSourceMappingSelfManagedEventSourcePtrOutput() EventSourceMappingSelfManagedEventSourcePtrOutput
	ToEventSourceMappingSelfManagedEventSourcePtrOutputWithContext(context.Context) EventSourceMappingSelfManagedEventSourcePtrOutput
}

EventSourceMappingSelfManagedEventSourcePtrInput is an input type that accepts EventSourceMappingSelfManagedEventSourceArgs, EventSourceMappingSelfManagedEventSourcePtr and EventSourceMappingSelfManagedEventSourcePtrOutput values. You can construct a concrete instance of `EventSourceMappingSelfManagedEventSourcePtrInput` via:

        EventSourceMappingSelfManagedEventSourceArgs{...}

or:

        nil

type EventSourceMappingSelfManagedEventSourcePtrOutput added in v4.7.0

type EventSourceMappingSelfManagedEventSourcePtrOutput struct{ *pulumi.OutputState }

func (EventSourceMappingSelfManagedEventSourcePtrOutput) Elem added in v4.7.0

func (EventSourceMappingSelfManagedEventSourcePtrOutput) ElementType added in v4.7.0

func (EventSourceMappingSelfManagedEventSourcePtrOutput) Endpoints added in v4.7.0

A map of endpoints for the self managed source. For Kafka self-managed sources, the key should be `KAFKA_BOOTSTRAP_SERVERS` and the value should be a string with a comma separated list of broker endpoints.

func (EventSourceMappingSelfManagedEventSourcePtrOutput) ToEventSourceMappingSelfManagedEventSourcePtrOutput added in v4.7.0

func (o EventSourceMappingSelfManagedEventSourcePtrOutput) ToEventSourceMappingSelfManagedEventSourcePtrOutput() EventSourceMappingSelfManagedEventSourcePtrOutput

func (EventSourceMappingSelfManagedEventSourcePtrOutput) ToEventSourceMappingSelfManagedEventSourcePtrOutputWithContext added in v4.7.0

func (o EventSourceMappingSelfManagedEventSourcePtrOutput) ToEventSourceMappingSelfManagedEventSourcePtrOutputWithContext(ctx context.Context) EventSourceMappingSelfManagedEventSourcePtrOutput

type EventSourceMappingSourceAccessConfiguration added in v4.7.0

type EventSourceMappingSourceAccessConfiguration struct {
	// The type of this configuration.  For Self Managed Kafka you will need to supply blocks for type `VPC_SUBNET` and `VPC_SECURITY_GROUP`.
	Type string `pulumi:"type"`
	// The URI for this configuration.  For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnetId` is the value you would find in an ec2.Subnet resource's id attribute.  For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `securityGroupId` is the value you would find in an ec2.SecurityGroup resource's id attribute.
	Uri string `pulumi:"uri"`
}

type EventSourceMappingSourceAccessConfigurationArgs added in v4.7.0

type EventSourceMappingSourceAccessConfigurationArgs struct {
	// The type of this configuration.  For Self Managed Kafka you will need to supply blocks for type `VPC_SUBNET` and `VPC_SECURITY_GROUP`.
	Type pulumi.StringInput `pulumi:"type"`
	// The URI for this configuration.  For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnetId` is the value you would find in an ec2.Subnet resource's id attribute.  For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `securityGroupId` is the value you would find in an ec2.SecurityGroup resource's id attribute.
	Uri pulumi.StringInput `pulumi:"uri"`
}

func (EventSourceMappingSourceAccessConfigurationArgs) ElementType added in v4.7.0

func (EventSourceMappingSourceAccessConfigurationArgs) ToEventSourceMappingSourceAccessConfigurationOutput added in v4.7.0

func (i EventSourceMappingSourceAccessConfigurationArgs) ToEventSourceMappingSourceAccessConfigurationOutput() EventSourceMappingSourceAccessConfigurationOutput

func (EventSourceMappingSourceAccessConfigurationArgs) ToEventSourceMappingSourceAccessConfigurationOutputWithContext added in v4.7.0

func (i EventSourceMappingSourceAccessConfigurationArgs) ToEventSourceMappingSourceAccessConfigurationOutputWithContext(ctx context.Context) EventSourceMappingSourceAccessConfigurationOutput

type EventSourceMappingSourceAccessConfigurationArray added in v4.7.0

type EventSourceMappingSourceAccessConfigurationArray []EventSourceMappingSourceAccessConfigurationInput

func (EventSourceMappingSourceAccessConfigurationArray) ElementType added in v4.7.0

func (EventSourceMappingSourceAccessConfigurationArray) ToEventSourceMappingSourceAccessConfigurationArrayOutput added in v4.7.0

func (i EventSourceMappingSourceAccessConfigurationArray) ToEventSourceMappingSourceAccessConfigurationArrayOutput() EventSourceMappingSourceAccessConfigurationArrayOutput

func (EventSourceMappingSourceAccessConfigurationArray) ToEventSourceMappingSourceAccessConfigurationArrayOutputWithContext added in v4.7.0

func (i EventSourceMappingSourceAccessConfigurationArray) ToEventSourceMappingSourceAccessConfigurationArrayOutputWithContext(ctx context.Context) EventSourceMappingSourceAccessConfigurationArrayOutput

type EventSourceMappingSourceAccessConfigurationArrayInput added in v4.7.0

type EventSourceMappingSourceAccessConfigurationArrayInput interface {
	pulumi.Input

	ToEventSourceMappingSourceAccessConfigurationArrayOutput() EventSourceMappingSourceAccessConfigurationArrayOutput
	ToEventSourceMappingSourceAccessConfigurationArrayOutputWithContext(context.Context) EventSourceMappingSourceAccessConfigurationArrayOutput
}

EventSourceMappingSourceAccessConfigurationArrayInput is an input type that accepts EventSourceMappingSourceAccessConfigurationArray and EventSourceMappingSourceAccessConfigurationArrayOutput values. You can construct a concrete instance of `EventSourceMappingSourceAccessConfigurationArrayInput` via:

EventSourceMappingSourceAccessConfigurationArray{ EventSourceMappingSourceAccessConfigurationArgs{...} }

type EventSourceMappingSourceAccessConfigurationArrayOutput added in v4.7.0

type EventSourceMappingSourceAccessConfigurationArrayOutput struct{ *pulumi.OutputState }

func (EventSourceMappingSourceAccessConfigurationArrayOutput) ElementType added in v4.7.0

func (EventSourceMappingSourceAccessConfigurationArrayOutput) Index added in v4.7.0

func (EventSourceMappingSourceAccessConfigurationArrayOutput) ToEventSourceMappingSourceAccessConfigurationArrayOutput added in v4.7.0

func (EventSourceMappingSourceAccessConfigurationArrayOutput) ToEventSourceMappingSourceAccessConfigurationArrayOutputWithContext added in v4.7.0

func (o EventSourceMappingSourceAccessConfigurationArrayOutput) ToEventSourceMappingSourceAccessConfigurationArrayOutputWithContext(ctx context.Context) EventSourceMappingSourceAccessConfigurationArrayOutput

type EventSourceMappingSourceAccessConfigurationInput added in v4.7.0

type EventSourceMappingSourceAccessConfigurationInput interface {
	pulumi.Input

	ToEventSourceMappingSourceAccessConfigurationOutput() EventSourceMappingSourceAccessConfigurationOutput
	ToEventSourceMappingSourceAccessConfigurationOutputWithContext(context.Context) EventSourceMappingSourceAccessConfigurationOutput
}

EventSourceMappingSourceAccessConfigurationInput is an input type that accepts EventSourceMappingSourceAccessConfigurationArgs and EventSourceMappingSourceAccessConfigurationOutput values. You can construct a concrete instance of `EventSourceMappingSourceAccessConfigurationInput` via:

EventSourceMappingSourceAccessConfigurationArgs{...}

type EventSourceMappingSourceAccessConfigurationOutput added in v4.7.0

type EventSourceMappingSourceAccessConfigurationOutput struct{ *pulumi.OutputState }

func (EventSourceMappingSourceAccessConfigurationOutput) ElementType added in v4.7.0

func (EventSourceMappingSourceAccessConfigurationOutput) ToEventSourceMappingSourceAccessConfigurationOutput added in v4.7.0

func (o EventSourceMappingSourceAccessConfigurationOutput) ToEventSourceMappingSourceAccessConfigurationOutput() EventSourceMappingSourceAccessConfigurationOutput

func (EventSourceMappingSourceAccessConfigurationOutput) ToEventSourceMappingSourceAccessConfigurationOutputWithContext added in v4.7.0

func (o EventSourceMappingSourceAccessConfigurationOutput) ToEventSourceMappingSourceAccessConfigurationOutputWithContext(ctx context.Context) EventSourceMappingSourceAccessConfigurationOutput

func (EventSourceMappingSourceAccessConfigurationOutput) Type added in v4.7.0

The type of this configuration. For Self Managed Kafka you will need to supply blocks for type `VPC_SUBNET` and `VPC_SECURITY_GROUP`.

func (EventSourceMappingSourceAccessConfigurationOutput) Uri added in v4.7.0

The URI for this configuration. For type `VPC_SUBNET` the value should be `subnet:subnet_id` where `subnetId` is the value you would find in an ec2.Subnet resource's id attribute. For type `VPC_SECURITY_GROUP` the value should be `security_group:security_group_id` where `securityGroupId` is the value you would find in an ec2.SecurityGroup resource's id attribute.

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, Kinesis, MQ and MSK, `10` for SQS.
	// * `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.
	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 - this is required for Kinesis stream, DynamoDB stream, SQS queue, MQ broker or MSK cluster.  It is incompatible with a Self Managed Kafka source.
	EventSourceArn pulumi.StringPtrInput
	// The criteria to use for [event filtering](https://docs.aws.amazon.com/lambda/latest/dg/invocation-eventfiltering.html) Kinesis stream, DynamoDB stream, SQS queue event sources. Detailed below.
	FilterCriteria EventSourceMappingFilterCriteriaPtrInput
	// 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
	// A list of current response type enums applied to the event source mapping for [AWS Lambda checkpointing](https://docs.aws.amazon.com/lambda/latest/dg/with-ddb.html#services-ddb-batchfailurereporting). Only available for SQS and stream sources (DynamoDB and Kinesis). Valid values: `ReportBatchItemFailures`.
	FunctionResponseTypes pulumi.StringArrayInput
	// 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 (between 0 and 300). Records will continue to buffer (or accumulate in the case of an SQS queue event source) until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. For streaming event sources, defaults to as soon as records are available in the stream. If the batch it reads from the stream/queue only has one record in it, Lambda only sends one record to the function. Only available for stream sources (DynamoDB and Kinesis) and SQS standard queues.
	// * `maximumRecordAgeInSeconds`: - (Optional) The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Must be either -1 (forever, and the default value) or between 60 and 604800 (inclusive).
	// * `maximumRetryAttempts`: - (Optional) The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of -1 (forever), maximum of 10000.
	// * `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.
	MaximumBatchingWindowInSeconds pulumi.IntPtrInput
	MaximumRecordAgeInSeconds      pulumi.IntPtrInput
	MaximumRetryAttempts           pulumi.IntPtrInput
	ParallelizationFactor          pulumi.IntPtrInput
	// The name of the Amazon MQ broker destination queue to consume. Only available for MQ sources. A single queue name must be specified.
	// * `selfManagedEventSource`: - (Optional) For Self Managed Kafka sources, the location of the self managed cluster. If set, configuration must also include `sourceAccessConfiguration`. Detailed below.
	// * `sourceAccessConfiguration`: (Optional) For Self Managed Kafka sources, the access configuration for the source. If set, configuration must also include `selfManagedEventSource`. Detailed below.
	Queues                     pulumi.StringArrayInput
	SelfManagedEventSource     EventSourceMappingSelfManagedEventSourcePtrInput
	SourceAccessConfigurations EventSourceMappingSourceAccessConfigurationArrayInput
	// 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, DynamoDB or MSK. 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.
	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 name of the Kafka topics. Only available for MSK sources. A single topic name must be specified.
	Topics pulumi.StringArrayInput
	// The duration in seconds of a processing window for [AWS Lambda streaming analytics](https://docs.aws.amazon.com/lambda/latest/dg/with-kinesis.html#services-kinesis-windows). The range is between 1 second up to 900 seconds. Only available for stream sources (DynamoDB and Kinesis).
	TumblingWindowInSeconds pulumi.IntPtrInput
	// 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

	// Instruction set architecture for your Lambda function. Valid values are `["x8664"]` and `["arm64"]`. Default is `["x8664"]`. Removing this attribute, function's architecture stay the same.
	Architectures pulumi.StringArrayOutput `pulumi:"architectures"`
	// Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Path to the function's deployment package within the local filesystem. Conflicts with `imageUri`, `s3Bucket`, `s3Key`, and `s3ObjectVersion`.
	Code pulumi.ArchiveOutput `pulumi:"code"`
	// To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
	CodeSigningConfigArn pulumi.StringPtrOutput `pulumi:"codeSigningConfigArn"`
	// Configuration block. Detailed below.
	DeadLetterConfig FunctionDeadLetterConfigPtrOutput `pulumi:"deadLetterConfig"`
	// Description of what your Lambda Function does.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Configuration block. Detailed below.
	Environment FunctionEnvironmentPtrOutput `pulumi:"environment"`
	// Configuration block. Detailed below.
	FileSystemConfig FunctionFileSystemConfigPtrOutput `pulumi:"fileSystemConfig"`
	// Function [entrypoint](https://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events-create-test-function.html) in your code.
	Handler pulumi.StringPtrOutput `pulumi:"handler"`
	// Configuration block. Detailed below.
	ImageConfig FunctionImageConfigPtrOutput `pulumi:"imageConfig"`
	// ECR image URI containing the function's deployment package. Conflicts with `filename`, `s3Bucket`, `s3Key`, and `s3ObjectVersion`.
	ImageUri pulumi.StringPtrOutput `pulumi:"imageUri"`
	// 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 the provider will show a perpetual difference of adding the key. To fix the perpetual difference, remove this configuration.
	KmsKeyArn pulumi.StringPtrOutput `pulumi:"kmsKeyArn"`
	// 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"`
	// Unique name for your Lambda Function.
	Name pulumi.StringOutput `pulumi:"name"`
	// Lambda deployment package type. Valid values are `Zip` and `Image`. Defaults to `Zip`.
	PackageType pulumi.StringPtrOutput `pulumi:"packageType"`
	// Whether to publish creation/change as new Lambda Function Version. Defaults to `false`.
	Publish pulumi.BoolPtrOutput `pulumi:"publish"`
	// ARN identifying your Lambda Function Version (if versioning is enabled via `publish = true`).
	QualifiedArn pulumi.StringOutput `pulumi:"qualifiedArn"`
	// 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"`
	// Amazon Resource Name (ARN) of the function's execution role. The role provides the function's identity and access to AWS services and resources.
	Role pulumi.StringOutput `pulumi:"role"`
	// Identifier of the function's runtime. See [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime) for valid values.
	Runtime pulumi.StringPtrOutput `pulumi:"runtime"`
	// S3 bucket location containing the function's deployment package. Conflicts with `filename` and `imageUri`. This bucket must reside in the same AWS region where you are creating the Lambda function.
	S3Bucket pulumi.StringPtrOutput `pulumi:"s3Bucket"`
	// S3 key of an object containing the function's deployment package. Conflicts with `filename` and `imageUri`.
	S3Key pulumi.StringPtrOutput `pulumi:"s3Key"`
	// Object version containing the function's deployment package. Conflicts with `filename` and `imageUri`.
	S3ObjectVersion pulumi.StringPtrOutput `pulumi:"s3ObjectVersion"`
	// ARN of the signing job.
	SigningJobArn pulumi.StringOutput `pulumi:"signingJobArn"`
	// ARN of the signing profile version.
	SigningProfileVersionArn pulumi.StringOutput `pulumi:"signingProfileVersionArn"`
	// 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")`, where "file.zip" is the local filename of the lambda function source archive.
	SourceCodeHash pulumi.StringOutput `pulumi:"sourceCodeHash"`
	// Size in bytes of the function .zip file.
	SourceCodeSize pulumi.IntOutput `pulumi:"sourceCodeSize"`
	// Map of tags to assign to the object.
	Tags pulumi.StringMapOutput `pulumi:"tags"`
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll pulumi.StringMapOutput `pulumi:"tagsAll"`
	// 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"`
	// Configuration block. Detailed below.
	TracingConfig FunctionTracingConfigOutput `pulumi:"tracingConfig"`
	// Latest published version of your Lambda Function.
	// * `vpc_config.vpc_id` - ID of the VPC.
	Version pulumi.StringOutput `pulumi:"version"`
	// Configuration block. Detailed below.
	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)

> To give an external source (like a CloudWatch Event Rule, SNS, or S3) permission to access the Lambda function, use the `lambda.Permission` resource. See [Lambda ****Permission Model][4] for more details. On the other hand, the `role` argument of this resource is the function's execution role for identity and access to AWS services and resources.

> **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.

> To give an external source (like an EventBridge Rule, SNS, or S3) permission to access the Lambda function, use the `lambda.Permission` resource. See [Lambda Permission Model](https://docs.aws.amazon.com/lambda/latest/dg/intro-permission-model.html) for more details. On the other hand, the `role` argument of this resource is the function's execution role for identity and access to AWS services and resources.

## Example Usage ### Lambda Layers

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/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
	})
}

``` ### Lambda File Systems

Lambda File Systems allow you to connect an Amazon Elastic File System (EFS) file system to a Lambda function to share data across function invocations, access existing data including large files, and save function state.

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/efs"
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		efsForLambda, err := efs.NewFileSystem(ctx, "efsForLambda", &efs.FileSystemArgs{
			Tags: pulumi.StringMap{
				"Name": pulumi.String("efs_for_lambda"),
			},
		})
		if err != nil {
			return err
		}
		alpha, err := efs.NewMountTarget(ctx, "alpha", &efs.MountTargetArgs{
			FileSystemId: efsForLambda.ID(),
			SubnetId:     pulumi.Any(aws_subnet.Subnet_for_lambda.Id),
			SecurityGroups: pulumi.StringArray{
				pulumi.Any(aws_security_group.Sg_for_lambda.Id),
			},
		})
		if err != nil {
			return err
		}
		accessPointForLambda, err := efs.NewAccessPoint(ctx, "accessPointForLambda", &efs.AccessPointArgs{
			FileSystemId: efsForLambda.ID(),
			RootDirectory: &efs.AccessPointRootDirectoryArgs{
				Path: pulumi.String("/lambda"),
				CreationInfo: &efs.AccessPointRootDirectoryCreationInfoArgs{
					OwnerGid:    pulumi.Int(1000),
					OwnerUid:    pulumi.Int(1000),
					Permissions: pulumi.String("777"),
				},
			},
			PosixUser: &efs.AccessPointPosixUserArgs{
				Gid: pulumi.Int(1000),
				Uid: pulumi.Int(1000),
			},
		})
		if err != nil {
			return err
		}
		_, err = lambda.NewFunction(ctx, "example", &lambda.FunctionArgs{
			FileSystemConfig: &lambda.FunctionFileSystemConfigArgs{
				Arn:            accessPointForLambda.Arn,
				LocalMountPath: pulumi.String("/mnt/efs"),
			},
			VpcConfig: &lambda.FunctionVpcConfigArgs{
				SubnetIds: pulumi.StringArray{
					pulumi.Any(aws_subnet.Subnet_for_lambda.Id),
				},
				SecurityGroupIds: pulumi.StringArray{
					pulumi.Any(aws_security_group.Sg_for_lambda.Id),
				},
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			alpha,
		}))
		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/v4/go/aws"
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/cloudwatch"
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/iam"
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		lambdaFunctionName := "lambda_function_name"
		if param := cfg.Get("lambdaFunctionName"); param != "" {
			lambdaFunctionName = param
		}
		example, err := cloudwatch.NewLogGroup(ctx, "example", &cloudwatch.LogGroupArgs{
			RetentionInDays: pulumi.Int(14),
		})
		if err != nil {
			return err
		}
		lambdaLogging, err := iam.NewPolicy(ctx, "lambdaLogging", &iam.PolicyArgs{
			Path:        pulumi.String("/"),
			Description: pulumi.String("IAM policy for logging from a lambda"),
			Policy:      pulumi.Any(fmt.Sprintf("%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")),
		})
		if err != nil {
			return err
		}
		lambdaLogs, err := iam.NewRolePolicyAttachment(ctx, "lambdaLogs", &iam.RolePolicyAttachmentArgs{
			Role:      pulumi.Any(aws_iam_role.Iam_for_lambda.Name),
			PolicyArn: lambdaLogging.Arn,
		})
		if err != nil {
			return err
		}
		_, err = lambda.NewFunction(ctx, "testLambda", nil, pulumi.DependsOn([]pulumi.Resource{
			lambdaLogs,
			example,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Lambda Functions can be imported using the `function_name`, e.g.,

```sh

$ pulumi import aws:lambda/function:Function test_lambda my_test_lambda_function

```

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.

func (*Function) ElementType

func (*Function) ElementType() reflect.Type

func (*Function) ToFunctionOutput

func (i *Function) ToFunctionOutput() FunctionOutput

func (*Function) ToFunctionOutputWithContext

func (i *Function) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput

func (*Function) ToFunctionPtrOutput

func (i *Function) ToFunctionPtrOutput() FunctionPtrOutput

func (*Function) ToFunctionPtrOutputWithContext

func (i *Function) ToFunctionPtrOutputWithContext(ctx context.Context) FunctionPtrOutput

type FunctionArgs

type FunctionArgs struct {
	// Instruction set architecture for your Lambda function. Valid values are `["x8664"]` and `["arm64"]`. Default is `["x8664"]`. Removing this attribute, function's architecture stay the same.
	Architectures pulumi.StringArrayInput
	// Path to the function's deployment package within the local filesystem. Conflicts with `imageUri`, `s3Bucket`, `s3Key`, and `s3ObjectVersion`.
	Code pulumi.ArchiveInput
	// To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
	CodeSigningConfigArn pulumi.StringPtrInput
	// Configuration block. Detailed below.
	DeadLetterConfig FunctionDeadLetterConfigPtrInput
	// Description of what your Lambda Function does.
	Description pulumi.StringPtrInput
	// Configuration block. Detailed below.
	Environment FunctionEnvironmentPtrInput
	// Configuration block. Detailed below.
	FileSystemConfig FunctionFileSystemConfigPtrInput
	// Function [entrypoint](https://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events-create-test-function.html) in your code.
	Handler pulumi.StringPtrInput
	// Configuration block. Detailed below.
	ImageConfig FunctionImageConfigPtrInput
	// ECR image URI containing the function's deployment package. Conflicts with `filename`, `s3Bucket`, `s3Key`, and `s3ObjectVersion`.
	ImageUri 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 the 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
	// Unique name for your Lambda Function.
	Name pulumi.StringPtrInput
	// Lambda deployment package type. Valid values are `Zip` and `Image`. Defaults to `Zip`.
	PackageType pulumi.StringPtrInput
	// Whether to publish creation/change as new Lambda Function Version. Defaults to `false`.
	Publish pulumi.BoolPtrInput
	// 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
	// Amazon Resource Name (ARN) of the function's execution role. The role provides the function's identity and access to AWS services and resources.
	Role pulumi.StringInput
	// Identifier of the function's runtime. See [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime) for valid values.
	Runtime pulumi.StringPtrInput
	// S3 bucket location containing the function's deployment package. Conflicts with `filename` and `imageUri`. This bucket must reside in the same AWS region where you are creating the Lambda function.
	S3Bucket pulumi.StringPtrInput
	// S3 key of an object containing the function's deployment package. Conflicts with `filename` and `imageUri`.
	S3Key pulumi.StringPtrInput
	// Object version containing the function's deployment package. Conflicts with `filename` and `imageUri`.
	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")`, where "file.zip" is the local filename of the lambda function source archive.
	SourceCodeHash pulumi.StringPtrInput
	// Map of tags to assign to the object.
	Tags pulumi.StringMapInput
	// 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
	// Configuration block. Detailed below.
	TracingConfig FunctionTracingConfigPtrInput
	// Configuration block. Detailed below.
	VpcConfig FunctionVpcConfigPtrInput
}

The set of arguments for constructing a Function resource.

func (FunctionArgs) ElementType

func (FunctionArgs) ElementType() reflect.Type

type FunctionArray

type FunctionArray []FunctionInput

func (FunctionArray) ElementType

func (FunctionArray) ElementType() reflect.Type

func (FunctionArray) ToFunctionArrayOutput

func (i FunctionArray) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArray) ToFunctionArrayOutputWithContext

func (i FunctionArray) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput

type FunctionArrayInput

type FunctionArrayInput interface {
	pulumi.Input

	ToFunctionArrayOutput() FunctionArrayOutput
	ToFunctionArrayOutputWithContext(context.Context) FunctionArrayOutput
}

FunctionArrayInput is an input type that accepts FunctionArray and FunctionArrayOutput values. You can construct a concrete instance of `FunctionArrayInput` via:

FunctionArray{ FunctionArgs{...} }

type FunctionArrayOutput

type FunctionArrayOutput struct{ *pulumi.OutputState }

func (FunctionArrayOutput) ElementType

func (FunctionArrayOutput) ElementType() reflect.Type

func (FunctionArrayOutput) Index

func (FunctionArrayOutput) ToFunctionArrayOutput

func (o FunctionArrayOutput) ToFunctionArrayOutput() FunctionArrayOutput

func (FunctionArrayOutput) ToFunctionArrayOutputWithContext

func (o FunctionArrayOutput) ToFunctionArrayOutputWithContext(ctx context.Context) FunctionArrayOutput

type FunctionDeadLetterConfig

type FunctionDeadLetterConfig struct {
	// 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 {
	// 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) 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) TargetArn

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

type FunctionDeadLetterConfigPtrOutput

type FunctionDeadLetterConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionDeadLetterConfigPtrOutput) Elem

func (FunctionDeadLetterConfigPtrOutput) ElementType

func (FunctionDeadLetterConfigPtrOutput) TargetArn

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 FunctionEnvironment struct {
	// Map of environment variables that are accessible from the function code during execution.
	Variables map[string]string `pulumi:"variables"`
}

type FunctionEnvironmentArgs

type FunctionEnvironmentArgs struct {
	// Map of environment variables that are accessible from the function code during execution.
	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

Map of environment variables that are accessible from the function code during execution.

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

type FunctionEnvironmentPtrOutput

type FunctionEnvironmentPtrOutput struct{ *pulumi.OutputState }

func (FunctionEnvironmentPtrOutput) Elem

func (FunctionEnvironmentPtrOutput) ElementType

func (FunctionEnvironmentPtrOutput) ToFunctionEnvironmentPtrOutput

func (o FunctionEnvironmentPtrOutput) ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput

func (FunctionEnvironmentPtrOutput) ToFunctionEnvironmentPtrOutputWithContext

func (o FunctionEnvironmentPtrOutput) ToFunctionEnvironmentPtrOutputWithContext(ctx context.Context) FunctionEnvironmentPtrOutput

func (FunctionEnvironmentPtrOutput) Variables

Map of environment variables that are accessible from the function code during execution.

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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(aws_lambda_alias.Example.Function_name),
			DestinationConfig: &lambda.FunctionEventInvokeConfigDestinationConfigArgs{
				OnFailure: &lambda.FunctionEventInvokeConfigDestinationConfigOnFailureArgs{
					Destination: pulumi.Any(aws_sqs_queue.Example.Arn),
				},
				OnSuccess: &lambda.FunctionEventInvokeConfigDestinationConfigOnSuccessArgs{
					Destination: pulumi.Any(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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName:             pulumi.Any(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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(aws_lambda_alias.Example.Function_name),
			Qualifier:    pulumi.Any(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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewFunctionEventInvokeConfig(ctx, "example", &lambda.FunctionEventInvokeConfigArgs{
			FunctionName: pulumi.Any(aws_lambda_function.Example.Function_name),
			Qualifier:    pulumi.Any(aws_lambda_function.Example.Version),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Lambda Function Event Invoke Configs can be imported using the fully qualified Function name or Amazon Resource Name (ARN), e.g., ARN without qualifier (all versions and aliases)

```sh

$ pulumi import aws:lambda/functionEventInvokeConfig:FunctionEventInvokeConfig example arn:aws:us-east-1:123456789012:function:my_function

```

ARN with qualifier

```sh

$ pulumi import aws:lambda/functionEventInvokeConfig:FunctionEventInvokeConfig example arn:aws:us-east-1:123456789012:function:my_function:production

```

Name without qualifier (all versions and aliases)

```sh

$ pulumi import aws:lambda/functionEventInvokeConfig:FunctionEventInvokeConfig example my_function

```

Name with qualifier

```sh

$ pulumi import aws:lambda/functionEventInvokeConfig:FunctionEventInvokeConfig example my_function:production

```

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.

func (*FunctionEventInvokeConfig) ElementType

func (*FunctionEventInvokeConfig) ElementType() reflect.Type

func (*FunctionEventInvokeConfig) ToFunctionEventInvokeConfigOutput

func (i *FunctionEventInvokeConfig) ToFunctionEventInvokeConfigOutput() FunctionEventInvokeConfigOutput

func (*FunctionEventInvokeConfig) ToFunctionEventInvokeConfigOutputWithContext

func (i *FunctionEventInvokeConfig) ToFunctionEventInvokeConfigOutputWithContext(ctx context.Context) FunctionEventInvokeConfigOutput

func (*FunctionEventInvokeConfig) ToFunctionEventInvokeConfigPtrOutput

func (i *FunctionEventInvokeConfig) ToFunctionEventInvokeConfigPtrOutput() FunctionEventInvokeConfigPtrOutput

func (*FunctionEventInvokeConfig) ToFunctionEventInvokeConfigPtrOutputWithContext

func (i *FunctionEventInvokeConfig) ToFunctionEventInvokeConfigPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigPtrOutput

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

type FunctionEventInvokeConfigArray

type FunctionEventInvokeConfigArray []FunctionEventInvokeConfigInput

func (FunctionEventInvokeConfigArray) ElementType

func (FunctionEventInvokeConfigArray) ToFunctionEventInvokeConfigArrayOutput

func (i FunctionEventInvokeConfigArray) ToFunctionEventInvokeConfigArrayOutput() FunctionEventInvokeConfigArrayOutput

func (FunctionEventInvokeConfigArray) ToFunctionEventInvokeConfigArrayOutputWithContext

func (i FunctionEventInvokeConfigArray) ToFunctionEventInvokeConfigArrayOutputWithContext(ctx context.Context) FunctionEventInvokeConfigArrayOutput

type FunctionEventInvokeConfigArrayInput

type FunctionEventInvokeConfigArrayInput interface {
	pulumi.Input

	ToFunctionEventInvokeConfigArrayOutput() FunctionEventInvokeConfigArrayOutput
	ToFunctionEventInvokeConfigArrayOutputWithContext(context.Context) FunctionEventInvokeConfigArrayOutput
}

FunctionEventInvokeConfigArrayInput is an input type that accepts FunctionEventInvokeConfigArray and FunctionEventInvokeConfigArrayOutput values. You can construct a concrete instance of `FunctionEventInvokeConfigArrayInput` via:

FunctionEventInvokeConfigArray{ FunctionEventInvokeConfigArgs{...} }

type FunctionEventInvokeConfigArrayOutput

type FunctionEventInvokeConfigArrayOutput struct{ *pulumi.OutputState }

func (FunctionEventInvokeConfigArrayOutput) ElementType

func (FunctionEventInvokeConfigArrayOutput) Index

func (FunctionEventInvokeConfigArrayOutput) ToFunctionEventInvokeConfigArrayOutput

func (o FunctionEventInvokeConfigArrayOutput) ToFunctionEventInvokeConfigArrayOutput() FunctionEventInvokeConfigArrayOutput

func (FunctionEventInvokeConfigArrayOutput) ToFunctionEventInvokeConfigArrayOutputWithContext

func (o FunctionEventInvokeConfigArrayOutput) ToFunctionEventInvokeConfigArrayOutputWithContext(ctx context.Context) FunctionEventInvokeConfigArrayOutput

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) 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) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutput

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

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) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutput

func (FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutputWithContext

func (o FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailureOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnFailureOutput

func (FunctionEventInvokeConfigDestinationConfigOnFailureOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput

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

type FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput

type FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput struct{ *pulumi.OutputState }

func (FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) Destination

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) Elem

func (FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ElementType

func (FunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnFailurePtrOutput

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) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutput

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

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) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutput

func (FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutputWithContext

func (o FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessOutput

func (FunctionEventInvokeConfigDestinationConfigOnSuccessOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput

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

type FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput

type FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput struct{ *pulumi.OutputState }

func (FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) Destination

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) Elem

func (FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ElementType

func (FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput

func (FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext

func (o FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput) ToFunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigDestinationConfigOnSuccessPtrOutput

type FunctionEventInvokeConfigDestinationConfigOutput

type FunctionEventInvokeConfigDestinationConfigOutput struct{ *pulumi.OutputState }

func (FunctionEventInvokeConfigDestinationConfigOutput) ElementType

func (FunctionEventInvokeConfigDestinationConfigOutput) OnFailure

Configuration block with destination configuration for failed asynchronous invocations. See below for details.

func (FunctionEventInvokeConfigDestinationConfigOutput) OnSuccess

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

type FunctionEventInvokeConfigDestinationConfigPtrOutput

type FunctionEventInvokeConfigDestinationConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionEventInvokeConfigDestinationConfigPtrOutput) Elem

func (FunctionEventInvokeConfigDestinationConfigPtrOutput) ElementType

func (FunctionEventInvokeConfigDestinationConfigPtrOutput) OnFailure

Configuration block with destination configuration for failed asynchronous invocations. See below for details.

func (FunctionEventInvokeConfigDestinationConfigPtrOutput) OnSuccess

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 FunctionEventInvokeConfigInput

type FunctionEventInvokeConfigInput interface {
	pulumi.Input

	ToFunctionEventInvokeConfigOutput() FunctionEventInvokeConfigOutput
	ToFunctionEventInvokeConfigOutputWithContext(ctx context.Context) FunctionEventInvokeConfigOutput
}

type FunctionEventInvokeConfigMap

type FunctionEventInvokeConfigMap map[string]FunctionEventInvokeConfigInput

func (FunctionEventInvokeConfigMap) ElementType

func (FunctionEventInvokeConfigMap) ToFunctionEventInvokeConfigMapOutput

func (i FunctionEventInvokeConfigMap) ToFunctionEventInvokeConfigMapOutput() FunctionEventInvokeConfigMapOutput

func (FunctionEventInvokeConfigMap) ToFunctionEventInvokeConfigMapOutputWithContext

func (i FunctionEventInvokeConfigMap) ToFunctionEventInvokeConfigMapOutputWithContext(ctx context.Context) FunctionEventInvokeConfigMapOutput

type FunctionEventInvokeConfigMapInput

type FunctionEventInvokeConfigMapInput interface {
	pulumi.Input

	ToFunctionEventInvokeConfigMapOutput() FunctionEventInvokeConfigMapOutput
	ToFunctionEventInvokeConfigMapOutputWithContext(context.Context) FunctionEventInvokeConfigMapOutput
}

FunctionEventInvokeConfigMapInput is an input type that accepts FunctionEventInvokeConfigMap and FunctionEventInvokeConfigMapOutput values. You can construct a concrete instance of `FunctionEventInvokeConfigMapInput` via:

FunctionEventInvokeConfigMap{ "key": FunctionEventInvokeConfigArgs{...} }

type FunctionEventInvokeConfigMapOutput

type FunctionEventInvokeConfigMapOutput struct{ *pulumi.OutputState }

func (FunctionEventInvokeConfigMapOutput) ElementType

func (FunctionEventInvokeConfigMapOutput) MapIndex

func (FunctionEventInvokeConfigMapOutput) ToFunctionEventInvokeConfigMapOutput

func (o FunctionEventInvokeConfigMapOutput) ToFunctionEventInvokeConfigMapOutput() FunctionEventInvokeConfigMapOutput

func (FunctionEventInvokeConfigMapOutput) ToFunctionEventInvokeConfigMapOutputWithContext

func (o FunctionEventInvokeConfigMapOutput) ToFunctionEventInvokeConfigMapOutputWithContext(ctx context.Context) FunctionEventInvokeConfigMapOutput

type FunctionEventInvokeConfigOutput

type FunctionEventInvokeConfigOutput struct{ *pulumi.OutputState }

func (FunctionEventInvokeConfigOutput) ElementType

func (FunctionEventInvokeConfigOutput) ToFunctionEventInvokeConfigOutput

func (o FunctionEventInvokeConfigOutput) ToFunctionEventInvokeConfigOutput() FunctionEventInvokeConfigOutput

func (FunctionEventInvokeConfigOutput) ToFunctionEventInvokeConfigOutputWithContext

func (o FunctionEventInvokeConfigOutput) ToFunctionEventInvokeConfigOutputWithContext(ctx context.Context) FunctionEventInvokeConfigOutput

func (FunctionEventInvokeConfigOutput) ToFunctionEventInvokeConfigPtrOutput

func (o FunctionEventInvokeConfigOutput) ToFunctionEventInvokeConfigPtrOutput() FunctionEventInvokeConfigPtrOutput

func (FunctionEventInvokeConfigOutput) ToFunctionEventInvokeConfigPtrOutputWithContext

func (o FunctionEventInvokeConfigOutput) ToFunctionEventInvokeConfigPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigPtrOutput

type FunctionEventInvokeConfigPtrInput

type FunctionEventInvokeConfigPtrInput interface {
	pulumi.Input

	ToFunctionEventInvokeConfigPtrOutput() FunctionEventInvokeConfigPtrOutput
	ToFunctionEventInvokeConfigPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigPtrOutput
}

type FunctionEventInvokeConfigPtrOutput

type FunctionEventInvokeConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionEventInvokeConfigPtrOutput) Elem added in v4.15.0

func (FunctionEventInvokeConfigPtrOutput) ElementType

func (FunctionEventInvokeConfigPtrOutput) ToFunctionEventInvokeConfigPtrOutput

func (o FunctionEventInvokeConfigPtrOutput) ToFunctionEventInvokeConfigPtrOutput() FunctionEventInvokeConfigPtrOutput

func (FunctionEventInvokeConfigPtrOutput) ToFunctionEventInvokeConfigPtrOutputWithContext

func (o FunctionEventInvokeConfigPtrOutput) ToFunctionEventInvokeConfigPtrOutputWithContext(ctx context.Context) FunctionEventInvokeConfigPtrOutput

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

type FunctionFileSystemConfig

type FunctionFileSystemConfig struct {
	// Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system.
	Arn string `pulumi:"arn"`
	// Path where the function can access the file system, starting with /mnt/.
	LocalMountPath string `pulumi:"localMountPath"`
}

type FunctionFileSystemConfigArgs

type FunctionFileSystemConfigArgs struct {
	// Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system.
	Arn pulumi.StringInput `pulumi:"arn"`
	// Path where the function can access the file system, starting with /mnt/.
	LocalMountPath pulumi.StringInput `pulumi:"localMountPath"`
}

func (FunctionFileSystemConfigArgs) ElementType

func (FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigOutput

func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigOutput() FunctionFileSystemConfigOutput

func (FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigOutputWithContext

func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigOutputWithContext(ctx context.Context) FunctionFileSystemConfigOutput

func (FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigPtrOutput

func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigPtrOutput() FunctionFileSystemConfigPtrOutput

func (FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigPtrOutputWithContext

func (i FunctionFileSystemConfigArgs) ToFunctionFileSystemConfigPtrOutputWithContext(ctx context.Context) FunctionFileSystemConfigPtrOutput

type FunctionFileSystemConfigInput

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

type FunctionFileSystemConfigOutput struct{ *pulumi.OutputState }

func (FunctionFileSystemConfigOutput) Arn

Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system.

func (FunctionFileSystemConfigOutput) ElementType

func (FunctionFileSystemConfigOutput) LocalMountPath

Path where the function can access the file system, starting with /mnt/.

func (FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigOutput

func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigOutput() FunctionFileSystemConfigOutput

func (FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigOutputWithContext

func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigOutputWithContext(ctx context.Context) FunctionFileSystemConfigOutput

func (FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigPtrOutput

func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigPtrOutput() FunctionFileSystemConfigPtrOutput

func (FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigPtrOutputWithContext

func (o FunctionFileSystemConfigOutput) ToFunctionFileSystemConfigPtrOutputWithContext(ctx context.Context) FunctionFileSystemConfigPtrOutput

type FunctionFileSystemConfigPtrInput

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

type FunctionFileSystemConfigPtrOutput

type FunctionFileSystemConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionFileSystemConfigPtrOutput) Arn

Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system.

func (FunctionFileSystemConfigPtrOutput) Elem

func (FunctionFileSystemConfigPtrOutput) ElementType

func (FunctionFileSystemConfigPtrOutput) LocalMountPath

Path where the function can access the file system, starting with /mnt/.

func (FunctionFileSystemConfigPtrOutput) ToFunctionFileSystemConfigPtrOutput

func (o FunctionFileSystemConfigPtrOutput) ToFunctionFileSystemConfigPtrOutput() FunctionFileSystemConfigPtrOutput

func (FunctionFileSystemConfigPtrOutput) ToFunctionFileSystemConfigPtrOutputWithContext

func (o FunctionFileSystemConfigPtrOutput) ToFunctionFileSystemConfigPtrOutputWithContext(ctx context.Context) FunctionFileSystemConfigPtrOutput

type FunctionImageConfig

type FunctionImageConfig struct {
	// Parameters that you want to pass in with `entryPoint`.
	Commands []string `pulumi:"commands"`
	// Entry point to your application, which is typically the location of the runtime executable.
	EntryPoints []string `pulumi:"entryPoints"`
	// Working directory.
	WorkingDirectory *string `pulumi:"workingDirectory"`
}

type FunctionImageConfigArgs

type FunctionImageConfigArgs struct {
	// Parameters that you want to pass in with `entryPoint`.
	Commands pulumi.StringArrayInput `pulumi:"commands"`
	// Entry point to your application, which is typically the location of the runtime executable.
	EntryPoints pulumi.StringArrayInput `pulumi:"entryPoints"`
	// Working directory.
	WorkingDirectory pulumi.StringPtrInput `pulumi:"workingDirectory"`
}

func (FunctionImageConfigArgs) ElementType

func (FunctionImageConfigArgs) ElementType() reflect.Type

func (FunctionImageConfigArgs) ToFunctionImageConfigOutput

func (i FunctionImageConfigArgs) ToFunctionImageConfigOutput() FunctionImageConfigOutput

func (FunctionImageConfigArgs) ToFunctionImageConfigOutputWithContext

func (i FunctionImageConfigArgs) ToFunctionImageConfigOutputWithContext(ctx context.Context) FunctionImageConfigOutput

func (FunctionImageConfigArgs) ToFunctionImageConfigPtrOutput

func (i FunctionImageConfigArgs) ToFunctionImageConfigPtrOutput() FunctionImageConfigPtrOutput

func (FunctionImageConfigArgs) ToFunctionImageConfigPtrOutputWithContext

func (i FunctionImageConfigArgs) ToFunctionImageConfigPtrOutputWithContext(ctx context.Context) FunctionImageConfigPtrOutput

type FunctionImageConfigInput

type FunctionImageConfigInput interface {
	pulumi.Input

	ToFunctionImageConfigOutput() FunctionImageConfigOutput
	ToFunctionImageConfigOutputWithContext(context.Context) FunctionImageConfigOutput
}

FunctionImageConfigInput is an input type that accepts FunctionImageConfigArgs and FunctionImageConfigOutput values. You can construct a concrete instance of `FunctionImageConfigInput` via:

FunctionImageConfigArgs{...}

type FunctionImageConfigOutput

type FunctionImageConfigOutput struct{ *pulumi.OutputState }

func (FunctionImageConfigOutput) Commands

Parameters that you want to pass in with `entryPoint`.

func (FunctionImageConfigOutput) ElementType

func (FunctionImageConfigOutput) ElementType() reflect.Type

func (FunctionImageConfigOutput) EntryPoints

Entry point to your application, which is typically the location of the runtime executable.

func (FunctionImageConfigOutput) ToFunctionImageConfigOutput

func (o FunctionImageConfigOutput) ToFunctionImageConfigOutput() FunctionImageConfigOutput

func (FunctionImageConfigOutput) ToFunctionImageConfigOutputWithContext

func (o FunctionImageConfigOutput) ToFunctionImageConfigOutputWithContext(ctx context.Context) FunctionImageConfigOutput

func (FunctionImageConfigOutput) ToFunctionImageConfigPtrOutput

func (o FunctionImageConfigOutput) ToFunctionImageConfigPtrOutput() FunctionImageConfigPtrOutput

func (FunctionImageConfigOutput) ToFunctionImageConfigPtrOutputWithContext

func (o FunctionImageConfigOutput) ToFunctionImageConfigPtrOutputWithContext(ctx context.Context) FunctionImageConfigPtrOutput

func (FunctionImageConfigOutput) WorkingDirectory

func (o FunctionImageConfigOutput) WorkingDirectory() pulumi.StringPtrOutput

Working directory.

type FunctionImageConfigPtrInput

type FunctionImageConfigPtrInput interface {
	pulumi.Input

	ToFunctionImageConfigPtrOutput() FunctionImageConfigPtrOutput
	ToFunctionImageConfigPtrOutputWithContext(context.Context) FunctionImageConfigPtrOutput
}

FunctionImageConfigPtrInput is an input type that accepts FunctionImageConfigArgs, FunctionImageConfigPtr and FunctionImageConfigPtrOutput values. You can construct a concrete instance of `FunctionImageConfigPtrInput` via:

        FunctionImageConfigArgs{...}

or:

        nil

type FunctionImageConfigPtrOutput

type FunctionImageConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionImageConfigPtrOutput) Commands

Parameters that you want to pass in with `entryPoint`.

func (FunctionImageConfigPtrOutput) Elem

func (FunctionImageConfigPtrOutput) ElementType

func (FunctionImageConfigPtrOutput) EntryPoints

Entry point to your application, which is typically the location of the runtime executable.

func (FunctionImageConfigPtrOutput) ToFunctionImageConfigPtrOutput

func (o FunctionImageConfigPtrOutput) ToFunctionImageConfigPtrOutput() FunctionImageConfigPtrOutput

func (FunctionImageConfigPtrOutput) ToFunctionImageConfigPtrOutputWithContext

func (o FunctionImageConfigPtrOutput) ToFunctionImageConfigPtrOutputWithContext(ctx context.Context) FunctionImageConfigPtrOutput

func (FunctionImageConfigPtrOutput) WorkingDirectory

Working directory.

type FunctionInput

type FunctionInput interface {
	pulumi.Input

	ToFunctionOutput() FunctionOutput
	ToFunctionOutputWithContext(ctx context.Context) FunctionOutput
}

type FunctionMap

type FunctionMap map[string]FunctionInput

func (FunctionMap) ElementType

func (FunctionMap) ElementType() reflect.Type

func (FunctionMap) ToFunctionMapOutput

func (i FunctionMap) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMap) ToFunctionMapOutputWithContext

func (i FunctionMap) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput

type FunctionMapInput

type FunctionMapInput interface {
	pulumi.Input

	ToFunctionMapOutput() FunctionMapOutput
	ToFunctionMapOutputWithContext(context.Context) FunctionMapOutput
}

FunctionMapInput is an input type that accepts FunctionMap and FunctionMapOutput values. You can construct a concrete instance of `FunctionMapInput` via:

FunctionMap{ "key": FunctionArgs{...} }

type FunctionMapOutput

type FunctionMapOutput struct{ *pulumi.OutputState }

func (FunctionMapOutput) ElementType

func (FunctionMapOutput) ElementType() reflect.Type

func (FunctionMapOutput) MapIndex

func (FunctionMapOutput) ToFunctionMapOutput

func (o FunctionMapOutput) ToFunctionMapOutput() FunctionMapOutput

func (FunctionMapOutput) ToFunctionMapOutputWithContext

func (o FunctionMapOutput) ToFunctionMapOutputWithContext(ctx context.Context) FunctionMapOutput

type FunctionOutput

type FunctionOutput struct{ *pulumi.OutputState }

func (FunctionOutput) ElementType

func (FunctionOutput) ElementType() reflect.Type

func (FunctionOutput) ToFunctionOutput

func (o FunctionOutput) ToFunctionOutput() FunctionOutput

func (FunctionOutput) ToFunctionOutputWithContext

func (o FunctionOutput) ToFunctionOutputWithContext(ctx context.Context) FunctionOutput

func (FunctionOutput) ToFunctionPtrOutput

func (o FunctionOutput) ToFunctionPtrOutput() FunctionPtrOutput

func (FunctionOutput) ToFunctionPtrOutputWithContext

func (o FunctionOutput) ToFunctionPtrOutputWithContext(ctx context.Context) FunctionPtrOutput

type FunctionPtrInput

type FunctionPtrInput interface {
	pulumi.Input

	ToFunctionPtrOutput() FunctionPtrOutput
	ToFunctionPtrOutputWithContext(ctx context.Context) FunctionPtrOutput
}

type FunctionPtrOutput

type FunctionPtrOutput struct{ *pulumi.OutputState }

func (FunctionPtrOutput) Elem added in v4.15.0

func (FunctionPtrOutput) ElementType

func (FunctionPtrOutput) ElementType() reflect.Type

func (FunctionPtrOutput) ToFunctionPtrOutput

func (o FunctionPtrOutput) ToFunctionPtrOutput() FunctionPtrOutput

func (FunctionPtrOutput) ToFunctionPtrOutputWithContext

func (o FunctionPtrOutput) ToFunctionPtrOutputWithContext(ctx context.Context) FunctionPtrOutput

type FunctionState

type FunctionState struct {
	// Instruction set architecture for your Lambda function. Valid values are `["x8664"]` and `["arm64"]`. Default is `["x8664"]`. Removing this attribute, function's architecture stay the same.
	Architectures pulumi.StringArrayInput
	// Amazon Resource Name (ARN) of the Amazon EFS Access Point that provides access to the file system.
	Arn pulumi.StringPtrInput
	// Path to the function's deployment package within the local filesystem. Conflicts with `imageUri`, `s3Bucket`, `s3Key`, and `s3ObjectVersion`.
	Code pulumi.ArchiveInput
	// To enable code signing for this function, specify the ARN of a code-signing configuration. A code-signing configuration includes a set of signing profiles, which define the trusted publishers for this function.
	CodeSigningConfigArn pulumi.StringPtrInput
	// Configuration block. Detailed below.
	DeadLetterConfig FunctionDeadLetterConfigPtrInput
	// Description of what your Lambda Function does.
	Description pulumi.StringPtrInput
	// Configuration block. Detailed below.
	Environment FunctionEnvironmentPtrInput
	// Configuration block. Detailed below.
	FileSystemConfig FunctionFileSystemConfigPtrInput
	// Function [entrypoint](https://docs.aws.amazon.com/lambda/latest/dg/walkthrough-custom-events-create-test-function.html) in your code.
	Handler pulumi.StringPtrInput
	// Configuration block. Detailed below.
	ImageConfig FunctionImageConfigPtrInput
	// ECR image URI containing the function's deployment package. Conflicts with `filename`, `s3Bucket`, `s3Key`, and `s3ObjectVersion`.
	ImageUri pulumi.StringPtrInput
	// 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 the provider will show a perpetual difference of adding the key. To fix the perpetual difference, remove this configuration.
	KmsKeyArn pulumi.StringPtrInput
	// 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
	// Unique name for your Lambda Function.
	Name pulumi.StringPtrInput
	// Lambda deployment package type. Valid values are `Zip` and `Image`. Defaults to `Zip`.
	PackageType pulumi.StringPtrInput
	// Whether to publish creation/change as new Lambda Function Version. Defaults to `false`.
	Publish pulumi.BoolPtrInput
	// ARN identifying your Lambda Function Version (if versioning is enabled via `publish = true`).
	QualifiedArn pulumi.StringPtrInput
	// 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
	// Amazon Resource Name (ARN) of the function's execution role. The role provides the function's identity and access to AWS services and resources.
	Role pulumi.StringPtrInput
	// Identifier of the function's runtime. See [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime) for valid values.
	Runtime pulumi.StringPtrInput
	// S3 bucket location containing the function's deployment package. Conflicts with `filename` and `imageUri`. This bucket must reside in the same AWS region where you are creating the Lambda function.
	S3Bucket pulumi.StringPtrInput
	// S3 key of an object containing the function's deployment package. Conflicts with `filename` and `imageUri`.
	S3Key pulumi.StringPtrInput
	// Object version containing the function's deployment package. Conflicts with `filename` and `imageUri`.
	S3ObjectVersion pulumi.StringPtrInput
	// ARN of the signing job.
	SigningJobArn pulumi.StringPtrInput
	// ARN of the signing profile version.
	SigningProfileVersionArn 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")`, where "file.zip" is the local filename of the lambda function source archive.
	SourceCodeHash pulumi.StringPtrInput
	// Size in bytes of the function .zip file.
	SourceCodeSize pulumi.IntPtrInput
	// Map of tags to assign to the object.
	Tags pulumi.StringMapInput
	// A map of tags assigned to the resource, including those inherited from the provider .
	TagsAll pulumi.StringMapInput
	// 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
	// Configuration block. Detailed below.
	TracingConfig FunctionTracingConfigPtrInput
	// Latest published version of your Lambda Function.
	// * `vpc_config.vpc_id` - ID of the VPC.
	Version pulumi.StringPtrInput
	// Configuration block. Detailed below.
	VpcConfig FunctionVpcConfigPtrInput
}

func (FunctionState) ElementType

func (FunctionState) ElementType() reflect.Type

type FunctionTracingConfig

type FunctionTracingConfig struct {
	// Whether to to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are `PassThrough` and `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 {
	// Whether to to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are `PassThrough` and `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) Mode

Whether to to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are `PassThrough` and `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

type FunctionTracingConfigPtrOutput

type FunctionTracingConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionTracingConfigPtrOutput) Elem

func (FunctionTracingConfigPtrOutput) ElementType

func (FunctionTracingConfigPtrOutput) Mode

Whether to to sample and trace a subset of incoming requests with AWS X-Ray. Valid values are `PassThrough` and `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 FunctionVpcConfig struct {
	// List of security group IDs associated with the Lambda function.
	SecurityGroupIds []string `pulumi:"securityGroupIds"`
	// List of subnet IDs associated with the Lambda function.
	SubnetIds []string `pulumi:"subnetIds"`
	VpcId     *string  `pulumi:"vpcId"`
}

type FunctionVpcConfigArgs

type FunctionVpcConfigArgs struct {
	// List of security group IDs associated with the Lambda function.
	SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"`
	// 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

List of security group IDs associated with the Lambda function.

func (FunctionVpcConfigOutput) SubnetIds

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

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

type FunctionVpcConfigPtrOutput

type FunctionVpcConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionVpcConfigPtrOutput) Elem

func (FunctionVpcConfigPtrOutput) ElementType

func (FunctionVpcConfigPtrOutput) ElementType() reflect.Type

func (FunctionVpcConfigPtrOutput) SecurityGroupIds

List of security group IDs associated with the Lambda function.

func (FunctionVpcConfigPtrOutput) SubnetIds

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

type GetCodeSigningConfigAllowedPublisher

type GetCodeSigningConfigAllowedPublisher struct {
	// The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
	SigningProfileVersionArns []string `pulumi:"signingProfileVersionArns"`
}

type GetCodeSigningConfigAllowedPublisherArgs

type GetCodeSigningConfigAllowedPublisherArgs struct {
	// The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.
	SigningProfileVersionArns pulumi.StringArrayInput `pulumi:"signingProfileVersionArns"`
}

func (GetCodeSigningConfigAllowedPublisherArgs) ElementType

func (GetCodeSigningConfigAllowedPublisherArgs) ToGetCodeSigningConfigAllowedPublisherOutput

func (i GetCodeSigningConfigAllowedPublisherArgs) ToGetCodeSigningConfigAllowedPublisherOutput() GetCodeSigningConfigAllowedPublisherOutput

func (GetCodeSigningConfigAllowedPublisherArgs) ToGetCodeSigningConfigAllowedPublisherOutputWithContext

func (i GetCodeSigningConfigAllowedPublisherArgs) ToGetCodeSigningConfigAllowedPublisherOutputWithContext(ctx context.Context) GetCodeSigningConfigAllowedPublisherOutput

type GetCodeSigningConfigAllowedPublisherArray

type GetCodeSigningConfigAllowedPublisherArray []GetCodeSigningConfigAllowedPublisherInput

func (GetCodeSigningConfigAllowedPublisherArray) ElementType

func (GetCodeSigningConfigAllowedPublisherArray) ToGetCodeSigningConfigAllowedPublisherArrayOutput

func (i GetCodeSigningConfigAllowedPublisherArray) ToGetCodeSigningConfigAllowedPublisherArrayOutput() GetCodeSigningConfigAllowedPublisherArrayOutput

func (GetCodeSigningConfigAllowedPublisherArray) ToGetCodeSigningConfigAllowedPublisherArrayOutputWithContext

func (i GetCodeSigningConfigAllowedPublisherArray) ToGetCodeSigningConfigAllowedPublisherArrayOutputWithContext(ctx context.Context) GetCodeSigningConfigAllowedPublisherArrayOutput

type GetCodeSigningConfigAllowedPublisherArrayInput

type GetCodeSigningConfigAllowedPublisherArrayInput interface {
	pulumi.Input

	ToGetCodeSigningConfigAllowedPublisherArrayOutput() GetCodeSigningConfigAllowedPublisherArrayOutput
	ToGetCodeSigningConfigAllowedPublisherArrayOutputWithContext(context.Context) GetCodeSigningConfigAllowedPublisherArrayOutput
}

GetCodeSigningConfigAllowedPublisherArrayInput is an input type that accepts GetCodeSigningConfigAllowedPublisherArray and GetCodeSigningConfigAllowedPublisherArrayOutput values. You can construct a concrete instance of `GetCodeSigningConfigAllowedPublisherArrayInput` via:

GetCodeSigningConfigAllowedPublisherArray{ GetCodeSigningConfigAllowedPublisherArgs{...} }

type GetCodeSigningConfigAllowedPublisherArrayOutput

type GetCodeSigningConfigAllowedPublisherArrayOutput struct{ *pulumi.OutputState }

func (GetCodeSigningConfigAllowedPublisherArrayOutput) ElementType

func (GetCodeSigningConfigAllowedPublisherArrayOutput) Index

func (GetCodeSigningConfigAllowedPublisherArrayOutput) ToGetCodeSigningConfigAllowedPublisherArrayOutput

func (o GetCodeSigningConfigAllowedPublisherArrayOutput) ToGetCodeSigningConfigAllowedPublisherArrayOutput() GetCodeSigningConfigAllowedPublisherArrayOutput

func (GetCodeSigningConfigAllowedPublisherArrayOutput) ToGetCodeSigningConfigAllowedPublisherArrayOutputWithContext

func (o GetCodeSigningConfigAllowedPublisherArrayOutput) ToGetCodeSigningConfigAllowedPublisherArrayOutputWithContext(ctx context.Context) GetCodeSigningConfigAllowedPublisherArrayOutput

type GetCodeSigningConfigAllowedPublisherInput

type GetCodeSigningConfigAllowedPublisherInput interface {
	pulumi.Input

	ToGetCodeSigningConfigAllowedPublisherOutput() GetCodeSigningConfigAllowedPublisherOutput
	ToGetCodeSigningConfigAllowedPublisherOutputWithContext(context.Context) GetCodeSigningConfigAllowedPublisherOutput
}

GetCodeSigningConfigAllowedPublisherInput is an input type that accepts GetCodeSigningConfigAllowedPublisherArgs and GetCodeSigningConfigAllowedPublisherOutput values. You can construct a concrete instance of `GetCodeSigningConfigAllowedPublisherInput` via:

GetCodeSigningConfigAllowedPublisherArgs{...}

type GetCodeSigningConfigAllowedPublisherOutput

type GetCodeSigningConfigAllowedPublisherOutput struct{ *pulumi.OutputState }

func (GetCodeSigningConfigAllowedPublisherOutput) ElementType

func (GetCodeSigningConfigAllowedPublisherOutput) SigningProfileVersionArns

The Amazon Resource Name (ARN) for each of the signing profiles. A signing profile defines a trusted user who can sign a code package.

func (GetCodeSigningConfigAllowedPublisherOutput) ToGetCodeSigningConfigAllowedPublisherOutput

func (o GetCodeSigningConfigAllowedPublisherOutput) ToGetCodeSigningConfigAllowedPublisherOutput() GetCodeSigningConfigAllowedPublisherOutput

func (GetCodeSigningConfigAllowedPublisherOutput) ToGetCodeSigningConfigAllowedPublisherOutputWithContext

func (o GetCodeSigningConfigAllowedPublisherOutput) ToGetCodeSigningConfigAllowedPublisherOutputWithContext(ctx context.Context) GetCodeSigningConfigAllowedPublisherOutput

type GetCodeSigningConfigPolicy

type GetCodeSigningConfigPolicy struct {
	// Code signing configuration policy for deployment validation failure.
	UntrustedArtifactOnDeployment string `pulumi:"untrustedArtifactOnDeployment"`
}

type GetCodeSigningConfigPolicyArgs

type GetCodeSigningConfigPolicyArgs struct {
	// Code signing configuration policy for deployment validation failure.
	UntrustedArtifactOnDeployment pulumi.StringInput `pulumi:"untrustedArtifactOnDeployment"`
}

func (GetCodeSigningConfigPolicyArgs) ElementType

func (GetCodeSigningConfigPolicyArgs) ToGetCodeSigningConfigPolicyOutput

func (i GetCodeSigningConfigPolicyArgs) ToGetCodeSigningConfigPolicyOutput() GetCodeSigningConfigPolicyOutput

func (GetCodeSigningConfigPolicyArgs) ToGetCodeSigningConfigPolicyOutputWithContext

func (i GetCodeSigningConfigPolicyArgs) ToGetCodeSigningConfigPolicyOutputWithContext(ctx context.Context) GetCodeSigningConfigPolicyOutput

type GetCodeSigningConfigPolicyArray

type GetCodeSigningConfigPolicyArray []GetCodeSigningConfigPolicyInput

func (GetCodeSigningConfigPolicyArray) ElementType

func (GetCodeSigningConfigPolicyArray) ToGetCodeSigningConfigPolicyArrayOutput

func (i GetCodeSigningConfigPolicyArray) ToGetCodeSigningConfigPolicyArrayOutput() GetCodeSigningConfigPolicyArrayOutput

func (GetCodeSigningConfigPolicyArray) ToGetCodeSigningConfigPolicyArrayOutputWithContext

func (i GetCodeSigningConfigPolicyArray) ToGetCodeSigningConfigPolicyArrayOutputWithContext(ctx context.Context) GetCodeSigningConfigPolicyArrayOutput

type GetCodeSigningConfigPolicyArrayInput

type GetCodeSigningConfigPolicyArrayInput interface {
	pulumi.Input

	ToGetCodeSigningConfigPolicyArrayOutput() GetCodeSigningConfigPolicyArrayOutput
	ToGetCodeSigningConfigPolicyArrayOutputWithContext(context.Context) GetCodeSigningConfigPolicyArrayOutput
}

GetCodeSigningConfigPolicyArrayInput is an input type that accepts GetCodeSigningConfigPolicyArray and GetCodeSigningConfigPolicyArrayOutput values. You can construct a concrete instance of `GetCodeSigningConfigPolicyArrayInput` via:

GetCodeSigningConfigPolicyArray{ GetCodeSigningConfigPolicyArgs{...} }

type GetCodeSigningConfigPolicyArrayOutput

type GetCodeSigningConfigPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetCodeSigningConfigPolicyArrayOutput) ElementType

func (GetCodeSigningConfigPolicyArrayOutput) Index

func (GetCodeSigningConfigPolicyArrayOutput) ToGetCodeSigningConfigPolicyArrayOutput

func (o GetCodeSigningConfigPolicyArrayOutput) ToGetCodeSigningConfigPolicyArrayOutput() GetCodeSigningConfigPolicyArrayOutput

func (GetCodeSigningConfigPolicyArrayOutput) ToGetCodeSigningConfigPolicyArrayOutputWithContext

func (o GetCodeSigningConfigPolicyArrayOutput) ToGetCodeSigningConfigPolicyArrayOutputWithContext(ctx context.Context) GetCodeSigningConfigPolicyArrayOutput

type GetCodeSigningConfigPolicyInput

type GetCodeSigningConfigPolicyInput interface {
	pulumi.Input

	ToGetCodeSigningConfigPolicyOutput() GetCodeSigningConfigPolicyOutput
	ToGetCodeSigningConfigPolicyOutputWithContext(context.Context) GetCodeSigningConfigPolicyOutput
}

GetCodeSigningConfigPolicyInput is an input type that accepts GetCodeSigningConfigPolicyArgs and GetCodeSigningConfigPolicyOutput values. You can construct a concrete instance of `GetCodeSigningConfigPolicyInput` via:

GetCodeSigningConfigPolicyArgs{...}

type GetCodeSigningConfigPolicyOutput

type GetCodeSigningConfigPolicyOutput struct{ *pulumi.OutputState }

func (GetCodeSigningConfigPolicyOutput) ElementType

func (GetCodeSigningConfigPolicyOutput) ToGetCodeSigningConfigPolicyOutput

func (o GetCodeSigningConfigPolicyOutput) ToGetCodeSigningConfigPolicyOutput() GetCodeSigningConfigPolicyOutput

func (GetCodeSigningConfigPolicyOutput) ToGetCodeSigningConfigPolicyOutputWithContext

func (o GetCodeSigningConfigPolicyOutput) ToGetCodeSigningConfigPolicyOutputWithContext(ctx context.Context) GetCodeSigningConfigPolicyOutput

func (GetCodeSigningConfigPolicyOutput) UntrustedArtifactOnDeployment

func (o GetCodeSigningConfigPolicyOutput) UntrustedArtifactOnDeployment() pulumi.StringOutput

Code signing configuration policy for deployment validation failure.

type GetFunctionDeadLetterConfig

type GetFunctionDeadLetterConfig struct {
	TargetArn string `pulumi:"targetArn"`
}

type GetFunctionDeadLetterConfigArgs

type GetFunctionDeadLetterConfigArgs struct {
	TargetArn pulumi.StringInput `pulumi:"targetArn"`
}

func (GetFunctionDeadLetterConfigArgs) ElementType

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) TargetArn

func (GetFunctionDeadLetterConfigOutput) ToGetFunctionDeadLetterConfigOutput

func (o GetFunctionDeadLetterConfigOutput) ToGetFunctionDeadLetterConfigOutput() GetFunctionDeadLetterConfigOutput

func (GetFunctionDeadLetterConfigOutput) ToGetFunctionDeadLetterConfigOutputWithContext

func (o GetFunctionDeadLetterConfigOutput) ToGetFunctionDeadLetterConfigOutputWithContext(ctx context.Context) GetFunctionDeadLetterConfigOutput

type GetFunctionEnvironment

type GetFunctionEnvironment struct {
	Variables map[string]string `pulumi:"variables"`
}

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) ToGetFunctionEnvironmentOutput

func (o GetFunctionEnvironmentOutput) ToGetFunctionEnvironmentOutput() GetFunctionEnvironmentOutput

func (GetFunctionEnvironmentOutput) ToGetFunctionEnvironmentOutputWithContext

func (o GetFunctionEnvironmentOutput) ToGetFunctionEnvironmentOutputWithContext(ctx context.Context) GetFunctionEnvironmentOutput

func (GetFunctionEnvironmentOutput) Variables

type GetFunctionFileSystemConfig

type GetFunctionFileSystemConfig struct {
	// Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualifiedArn`.
	Arn            string `pulumi:"arn"`
	LocalMountPath string `pulumi:"localMountPath"`
}

type GetFunctionFileSystemConfigArgs

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

func (GetFunctionFileSystemConfigArgs) ToGetFunctionFileSystemConfigOutput

func (i GetFunctionFileSystemConfigArgs) ToGetFunctionFileSystemConfigOutput() GetFunctionFileSystemConfigOutput

func (GetFunctionFileSystemConfigArgs) ToGetFunctionFileSystemConfigOutputWithContext

func (i GetFunctionFileSystemConfigArgs) ToGetFunctionFileSystemConfigOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigOutput

type GetFunctionFileSystemConfigArray

type GetFunctionFileSystemConfigArray []GetFunctionFileSystemConfigInput

func (GetFunctionFileSystemConfigArray) ElementType

func (GetFunctionFileSystemConfigArray) ToGetFunctionFileSystemConfigArrayOutput

func (i GetFunctionFileSystemConfigArray) ToGetFunctionFileSystemConfigArrayOutput() GetFunctionFileSystemConfigArrayOutput

func (GetFunctionFileSystemConfigArray) ToGetFunctionFileSystemConfigArrayOutputWithContext

func (i GetFunctionFileSystemConfigArray) ToGetFunctionFileSystemConfigArrayOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigArrayOutput

type GetFunctionFileSystemConfigArrayInput

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

type GetFunctionFileSystemConfigArrayOutput struct{ *pulumi.OutputState }

func (GetFunctionFileSystemConfigArrayOutput) ElementType

func (GetFunctionFileSystemConfigArrayOutput) Index

func (GetFunctionFileSystemConfigArrayOutput) ToGetFunctionFileSystemConfigArrayOutput

func (o GetFunctionFileSystemConfigArrayOutput) ToGetFunctionFileSystemConfigArrayOutput() GetFunctionFileSystemConfigArrayOutput

func (GetFunctionFileSystemConfigArrayOutput) ToGetFunctionFileSystemConfigArrayOutputWithContext

func (o GetFunctionFileSystemConfigArrayOutput) ToGetFunctionFileSystemConfigArrayOutputWithContext(ctx context.Context) GetFunctionFileSystemConfigArrayOutput

type GetFunctionFileSystemConfigInput

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

type GetFunctionFileSystemConfigOutput struct{ *pulumi.OutputState }

func (GetFunctionFileSystemConfigOutput) Arn

Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualifiedArn`.

func (GetFunctionFileSystemConfigOutput) ElementType

func (GetFunctionFileSystemConfigOutput) LocalMountPath

func (GetFunctionFileSystemConfigOutput) ToGetFunctionFileSystemConfigOutput

func (o GetFunctionFileSystemConfigOutput) ToGetFunctionFileSystemConfigOutput() GetFunctionFileSystemConfigOutput

func (GetFunctionFileSystemConfigOutput) ToGetFunctionFileSystemConfigOutputWithContext

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) 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) Mode

func (GetFunctionTracingConfigOutput) ToGetFunctionTracingConfigOutput

func (o GetFunctionTracingConfigOutput) ToGetFunctionTracingConfigOutput() GetFunctionTracingConfigOutput

func (GetFunctionTracingConfigOutput) ToGetFunctionTracingConfigOutputWithContext

func (o GetFunctionTracingConfigOutput) ToGetFunctionTracingConfigOutputWithContext(ctx context.Context) GetFunctionTracingConfigOutput

type GetFunctionVpcConfig

type GetFunctionVpcConfig struct {
	SecurityGroupIds []string `pulumi:"securityGroupIds"`
	SubnetIds        []string `pulumi:"subnetIds"`
	VpcId            string   `pulumi:"vpcId"`
}

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 (GetFunctionVpcConfigOutput) SubnetIds

func (GetFunctionVpcConfigOutput) ToGetFunctionVpcConfigOutput

func (o GetFunctionVpcConfigOutput) ToGetFunctionVpcConfigOutput() GetFunctionVpcConfigOutput

func (GetFunctionVpcConfigOutput) ToGetFunctionVpcConfigOutputWithContext

func (o GetFunctionVpcConfigOutput) ToGetFunctionVpcConfigOutputWithContext(ctx context.Context) GetFunctionVpcConfigOutput

func (GetFunctionVpcConfigOutput) VpcId

type Invocation added in v4.36.0

type Invocation struct {
	pulumi.CustomResourceState

	// Name of the lambda function.
	FunctionName pulumi.StringOutput `pulumi:"functionName"`
	// JSON payload to the lambda function.
	Input pulumi.StringOutput `pulumi:"input"`
	// Qualifier (i.e., version) of the lambda function. Defaults to `$LATEST`.
	Qualifier pulumi.StringPtrOutput `pulumi:"qualifier"`
	// String result of the lambda function invocation.
	Result   pulumi.StringOutput    `pulumi:"result"`
	Triggers pulumi.StringMapOutput `pulumi:"triggers"`
}

Use this resource to invoke a lambda function. The lambda function is invoked with the [RequestResponse](https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html#API_Invoke_RequestSyntax) invocation type.

> **NOTE:** This resource _only_ invokes the function when the arguments call for a create or update. In other words, after an initial invocation on _apply_, if the arguments do not change, a subsequent _apply_ does not invoke the function again. To dynamically invoke the function, see the `triggers` example below. To always invoke a function on each _apply_, see the [`lambda.Invocation`](https://www.terraform.io/docs/providers/aws/d/lambda_invocation.html) data source.

## Example Usage ### Dynamic Invocation Example Using Triggers

```go package main

import (

"crypto/sha1"
"encoding/json"
"fmt"

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func sha1Hash(input string) string {
	hash := sha1.Sum([]byte(input))
	return hex.EncodeToString(hash[:])
}
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		tmpJSON0, err := json.Marshal([]interface{}{
			aws_lambda_function.Example.Environment,
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		tmpJSON1, err := json.Marshal(map[string]interface{}{
			"key1": "value1",
			"key2": "value2",
		})
		if err != nil {
			return err
		}
		json1 := string(tmpJSON1)
		_, err := lambda.NewInvocation(ctx, "example", &lambda.InvocationArgs{
			FunctionName: pulumi.Any(aws_lambda_function.Lambda_function_test.Function_name),
			Triggers: pulumi.StringMap{
				"redeployment": sha1Hash(json0),
			},
			Input: pulumi.String(json1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetInvocation

func GetInvocation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InvocationState, opts ...pulumi.ResourceOption) (*Invocation, error)

GetInvocation gets an existing Invocation 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 NewInvocation added in v4.36.0

func NewInvocation(ctx *pulumi.Context,
	name string, args *InvocationArgs, opts ...pulumi.ResourceOption) (*Invocation, error)

NewInvocation registers a new resource with the given unique name, arguments, and options.

func (*Invocation) ElementType added in v4.36.0

func (*Invocation) ElementType() reflect.Type

func (*Invocation) ToInvocationOutput added in v4.36.0

func (i *Invocation) ToInvocationOutput() InvocationOutput

func (*Invocation) ToInvocationOutputWithContext added in v4.36.0

func (i *Invocation) ToInvocationOutputWithContext(ctx context.Context) InvocationOutput

func (*Invocation) ToInvocationPtrOutput added in v4.36.0

func (i *Invocation) ToInvocationPtrOutput() InvocationPtrOutput

func (*Invocation) ToInvocationPtrOutputWithContext added in v4.36.0

func (i *Invocation) ToInvocationPtrOutputWithContext(ctx context.Context) InvocationPtrOutput

type InvocationArgs added in v4.36.0

type InvocationArgs struct {
	// Name of the lambda function.
	FunctionName pulumi.StringInput
	// JSON payload to the lambda function.
	Input pulumi.StringInput
	// Qualifier (i.e., version) of the lambda function. Defaults to `$LATEST`.
	Qualifier pulumi.StringPtrInput
	Triggers  pulumi.StringMapInput
}

The set of arguments for constructing a Invocation resource.

func (InvocationArgs) ElementType added in v4.36.0

func (InvocationArgs) ElementType() reflect.Type

type InvocationArray added in v4.36.0

type InvocationArray []InvocationInput

func (InvocationArray) ElementType added in v4.36.0

func (InvocationArray) ElementType() reflect.Type

func (InvocationArray) ToInvocationArrayOutput added in v4.36.0

func (i InvocationArray) ToInvocationArrayOutput() InvocationArrayOutput

func (InvocationArray) ToInvocationArrayOutputWithContext added in v4.36.0

func (i InvocationArray) ToInvocationArrayOutputWithContext(ctx context.Context) InvocationArrayOutput

type InvocationArrayInput added in v4.36.0

type InvocationArrayInput interface {
	pulumi.Input

	ToInvocationArrayOutput() InvocationArrayOutput
	ToInvocationArrayOutputWithContext(context.Context) InvocationArrayOutput
}

InvocationArrayInput is an input type that accepts InvocationArray and InvocationArrayOutput values. You can construct a concrete instance of `InvocationArrayInput` via:

InvocationArray{ InvocationArgs{...} }

type InvocationArrayOutput added in v4.36.0

type InvocationArrayOutput struct{ *pulumi.OutputState }

func (InvocationArrayOutput) ElementType added in v4.36.0

func (InvocationArrayOutput) ElementType() reflect.Type

func (InvocationArrayOutput) Index added in v4.36.0

func (InvocationArrayOutput) ToInvocationArrayOutput added in v4.36.0

func (o InvocationArrayOutput) ToInvocationArrayOutput() InvocationArrayOutput

func (InvocationArrayOutput) ToInvocationArrayOutputWithContext added in v4.36.0

func (o InvocationArrayOutput) ToInvocationArrayOutputWithContext(ctx context.Context) InvocationArrayOutput

type InvocationInput added in v4.36.0

type InvocationInput interface {
	pulumi.Input

	ToInvocationOutput() InvocationOutput
	ToInvocationOutputWithContext(ctx context.Context) InvocationOutput
}

type InvocationMap added in v4.36.0

type InvocationMap map[string]InvocationInput

func (InvocationMap) ElementType added in v4.36.0

func (InvocationMap) ElementType() reflect.Type

func (InvocationMap) ToInvocationMapOutput added in v4.36.0

func (i InvocationMap) ToInvocationMapOutput() InvocationMapOutput

func (InvocationMap) ToInvocationMapOutputWithContext added in v4.36.0

func (i InvocationMap) ToInvocationMapOutputWithContext(ctx context.Context) InvocationMapOutput

type InvocationMapInput added in v4.36.0

type InvocationMapInput interface {
	pulumi.Input

	ToInvocationMapOutput() InvocationMapOutput
	ToInvocationMapOutputWithContext(context.Context) InvocationMapOutput
}

InvocationMapInput is an input type that accepts InvocationMap and InvocationMapOutput values. You can construct a concrete instance of `InvocationMapInput` via:

InvocationMap{ "key": InvocationArgs{...} }

type InvocationMapOutput added in v4.36.0

type InvocationMapOutput struct{ *pulumi.OutputState }

func (InvocationMapOutput) ElementType added in v4.36.0

func (InvocationMapOutput) ElementType() reflect.Type

func (InvocationMapOutput) MapIndex added in v4.36.0

func (InvocationMapOutput) ToInvocationMapOutput added in v4.36.0

func (o InvocationMapOutput) ToInvocationMapOutput() InvocationMapOutput

func (InvocationMapOutput) ToInvocationMapOutputWithContext added in v4.36.0

func (o InvocationMapOutput) ToInvocationMapOutputWithContext(ctx context.Context) InvocationMapOutput

type InvocationOutput added in v4.36.0

type InvocationOutput struct{ *pulumi.OutputState }

func (InvocationOutput) ElementType added in v4.36.0

func (InvocationOutput) ElementType() reflect.Type

func (InvocationOutput) ToInvocationOutput added in v4.36.0

func (o InvocationOutput) ToInvocationOutput() InvocationOutput

func (InvocationOutput) ToInvocationOutputWithContext added in v4.36.0

func (o InvocationOutput) ToInvocationOutputWithContext(ctx context.Context) InvocationOutput

func (InvocationOutput) ToInvocationPtrOutput added in v4.36.0

func (o InvocationOutput) ToInvocationPtrOutput() InvocationPtrOutput

func (InvocationOutput) ToInvocationPtrOutputWithContext added in v4.36.0

func (o InvocationOutput) ToInvocationPtrOutputWithContext(ctx context.Context) InvocationPtrOutput

type InvocationPtrInput added in v4.36.0

type InvocationPtrInput interface {
	pulumi.Input

	ToInvocationPtrOutput() InvocationPtrOutput
	ToInvocationPtrOutputWithContext(ctx context.Context) InvocationPtrOutput
}

type InvocationPtrOutput added in v4.36.0

type InvocationPtrOutput struct{ *pulumi.OutputState }

func (InvocationPtrOutput) Elem added in v4.36.0

func (InvocationPtrOutput) ElementType added in v4.36.0

func (InvocationPtrOutput) ElementType() reflect.Type

func (InvocationPtrOutput) ToInvocationPtrOutput added in v4.36.0

func (o InvocationPtrOutput) ToInvocationPtrOutput() InvocationPtrOutput

func (InvocationPtrOutput) ToInvocationPtrOutputWithContext added in v4.36.0

func (o InvocationPtrOutput) ToInvocationPtrOutputWithContext(ctx context.Context) InvocationPtrOutput

type InvocationState added in v4.36.0

type InvocationState struct {
	// Name of the lambda function.
	FunctionName pulumi.StringPtrInput
	// JSON payload to the lambda function.
	Input pulumi.StringPtrInput
	// Qualifier (i.e., version) of the lambda function. Defaults to `$LATEST`.
	Qualifier pulumi.StringPtrInput
	// String result of the lambda function invocation.
	Result   pulumi.StringPtrInput
	Triggers pulumi.StringMapInput
}

func (InvocationState) ElementType added in v4.36.0

func (InvocationState) ElementType() reflect.Type

type LayerVersion

type LayerVersion struct {
	pulumi.CustomResourceState

	// ARN of the Lambda Layer with version.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// 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"`
	// List of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleArchitectures) this layer is compatible with. Currently `x8664` and `arm64` can be specified.
	CompatibleArchitectures pulumi.StringArrayOutput `pulumi:"compatibleArchitectures"`
	// 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"`
	// Date this resource was created.
	CreatedDate pulumi.StringOutput `pulumi:"createdDate"`
	// Description of what your Lambda Layer does.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// ARN of the Lambda Layer without version.
	LayerArn pulumi.StringOutput `pulumi:"layerArn"`
	// 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"`
	// 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"`
	// S3 key of an object containing the function's deployment package. Conflicts with `filename`.
	S3Key pulumi.StringPtrOutput `pulumi:"s3Key"`
	// Object version containing the function's deployment package. Conflicts with `filename`.
	S3ObjectVersion pulumi.StringPtrOutput `pulumi:"s3ObjectVersion"`
	// ARN of a signing job.
	SigningJobArn pulumi.StringOutput `pulumi:"signingJobArn"`
	// ARN for a signing profile version.
	SigningProfileVersionArn pulumi.StringOutput `pulumi:"signingProfileVersionArn"`
	// Whether to retain the old version of a previously deployed Lambda Layer. Default is `false`. When this is not set to `true`, changing any of `compatibleArchitectures`, `compatibleRuntimes`, `description`, `filename`, `layerName`, `licenseInfo`, `s3Bucket`, `s3Key`, `s3ObjectVersion`, or `sourceCodeHash` forces deletion of the existing layer version and creation of a new layer version.
	SkipDestroy    pulumi.BoolPtrOutput `pulumi:"skipDestroy"`
	SourceCodeHash pulumi.StringOutput  `pulumi:"sourceCodeHash"`
	// Size in bytes of the function .zip file.
	SourceCodeSize pulumi.IntOutput `pulumi:"sourceCodeSize"`
	// Lambda Layer version.
	Version pulumi.StringOutput `pulumi:"version"`
}

## Import

Lambda Layers can be imported using `arn`.

```sh

$ pulumi import aws:lambda/layerVersion:LayerVersion \

```

aws_lambda_layer_version.test_layer \

arn:aws:lambda:_REGION_:_ACCOUNT_ID_:layer:_LAYER_NAME_:_LAYER_VERSION_

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.

func (*LayerVersion) ElementType

func (*LayerVersion) ElementType() reflect.Type

func (*LayerVersion) ToLayerVersionOutput

func (i *LayerVersion) ToLayerVersionOutput() LayerVersionOutput

func (*LayerVersion) ToLayerVersionOutputWithContext

func (i *LayerVersion) ToLayerVersionOutputWithContext(ctx context.Context) LayerVersionOutput

func (*LayerVersion) ToLayerVersionPtrOutput

func (i *LayerVersion) ToLayerVersionPtrOutput() LayerVersionPtrOutput

func (*LayerVersion) ToLayerVersionPtrOutputWithContext

func (i *LayerVersion) ToLayerVersionPtrOutputWithContext(ctx context.Context) LayerVersionPtrOutput

type LayerVersionArgs

type LayerVersionArgs struct {
	// Path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
	Code pulumi.ArchiveInput
	// List of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleArchitectures) this layer is compatible with. Currently `x8664` and `arm64` can be specified.
	CompatibleArchitectures pulumi.StringArrayInput
	// 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
	// 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
	// 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
	// S3 key of an object containing the function's deployment package. Conflicts with `filename`.
	S3Key pulumi.StringPtrInput
	// Object version containing the function's deployment package. Conflicts with `filename`.
	S3ObjectVersion pulumi.StringPtrInput
	// Whether to retain the old version of a previously deployed Lambda Layer. Default is `false`. When this is not set to `true`, changing any of `compatibleArchitectures`, `compatibleRuntimes`, `description`, `filename`, `layerName`, `licenseInfo`, `s3Bucket`, `s3Key`, `s3ObjectVersion`, or `sourceCodeHash` forces deletion of the existing layer version and creation of a new layer version.
	SkipDestroy    pulumi.BoolPtrInput
	SourceCodeHash pulumi.StringPtrInput
}

The set of arguments for constructing a LayerVersion resource.

func (LayerVersionArgs) ElementType

func (LayerVersionArgs) ElementType() reflect.Type

type LayerVersionArray

type LayerVersionArray []LayerVersionInput

func (LayerVersionArray) ElementType

func (LayerVersionArray) ElementType() reflect.Type

func (LayerVersionArray) ToLayerVersionArrayOutput

func (i LayerVersionArray) ToLayerVersionArrayOutput() LayerVersionArrayOutput

func (LayerVersionArray) ToLayerVersionArrayOutputWithContext

func (i LayerVersionArray) ToLayerVersionArrayOutputWithContext(ctx context.Context) LayerVersionArrayOutput

type LayerVersionArrayInput

type LayerVersionArrayInput interface {
	pulumi.Input

	ToLayerVersionArrayOutput() LayerVersionArrayOutput
	ToLayerVersionArrayOutputWithContext(context.Context) LayerVersionArrayOutput
}

LayerVersionArrayInput is an input type that accepts LayerVersionArray and LayerVersionArrayOutput values. You can construct a concrete instance of `LayerVersionArrayInput` via:

LayerVersionArray{ LayerVersionArgs{...} }

type LayerVersionArrayOutput

type LayerVersionArrayOutput struct{ *pulumi.OutputState }

func (LayerVersionArrayOutput) ElementType

func (LayerVersionArrayOutput) ElementType() reflect.Type

func (LayerVersionArrayOutput) Index

func (LayerVersionArrayOutput) ToLayerVersionArrayOutput

func (o LayerVersionArrayOutput) ToLayerVersionArrayOutput() LayerVersionArrayOutput

func (LayerVersionArrayOutput) ToLayerVersionArrayOutputWithContext

func (o LayerVersionArrayOutput) ToLayerVersionArrayOutputWithContext(ctx context.Context) LayerVersionArrayOutput

type LayerVersionInput

type LayerVersionInput interface {
	pulumi.Input

	ToLayerVersionOutput() LayerVersionOutput
	ToLayerVersionOutputWithContext(ctx context.Context) LayerVersionOutput
}

type LayerVersionMap

type LayerVersionMap map[string]LayerVersionInput

func (LayerVersionMap) ElementType

func (LayerVersionMap) ElementType() reflect.Type

func (LayerVersionMap) ToLayerVersionMapOutput

func (i LayerVersionMap) ToLayerVersionMapOutput() LayerVersionMapOutput

func (LayerVersionMap) ToLayerVersionMapOutputWithContext

func (i LayerVersionMap) ToLayerVersionMapOutputWithContext(ctx context.Context) LayerVersionMapOutput

type LayerVersionMapInput

type LayerVersionMapInput interface {
	pulumi.Input

	ToLayerVersionMapOutput() LayerVersionMapOutput
	ToLayerVersionMapOutputWithContext(context.Context) LayerVersionMapOutput
}

LayerVersionMapInput is an input type that accepts LayerVersionMap and LayerVersionMapOutput values. You can construct a concrete instance of `LayerVersionMapInput` via:

LayerVersionMap{ "key": LayerVersionArgs{...} }

type LayerVersionMapOutput

type LayerVersionMapOutput struct{ *pulumi.OutputState }

func (LayerVersionMapOutput) ElementType

func (LayerVersionMapOutput) ElementType() reflect.Type

func (LayerVersionMapOutput) MapIndex

func (LayerVersionMapOutput) ToLayerVersionMapOutput

func (o LayerVersionMapOutput) ToLayerVersionMapOutput() LayerVersionMapOutput

func (LayerVersionMapOutput) ToLayerVersionMapOutputWithContext

func (o LayerVersionMapOutput) ToLayerVersionMapOutputWithContext(ctx context.Context) LayerVersionMapOutput

type LayerVersionOutput

type LayerVersionOutput struct{ *pulumi.OutputState }

func (LayerVersionOutput) ElementType

func (LayerVersionOutput) ElementType() reflect.Type

func (LayerVersionOutput) ToLayerVersionOutput

func (o LayerVersionOutput) ToLayerVersionOutput() LayerVersionOutput

func (LayerVersionOutput) ToLayerVersionOutputWithContext

func (o LayerVersionOutput) ToLayerVersionOutputWithContext(ctx context.Context) LayerVersionOutput

func (LayerVersionOutput) ToLayerVersionPtrOutput

func (o LayerVersionOutput) ToLayerVersionPtrOutput() LayerVersionPtrOutput

func (LayerVersionOutput) ToLayerVersionPtrOutputWithContext

func (o LayerVersionOutput) ToLayerVersionPtrOutputWithContext(ctx context.Context) LayerVersionPtrOutput

type LayerVersionPermission added in v4.29.0

type LayerVersionPermission struct {
	pulumi.CustomResourceState

	// Action, which will be allowed. `lambda:GetLayerVersion` value is suggested by AWS documantation.
	Action pulumi.StringOutput `pulumi:"action"`
	// The name or ARN of the Lambda Layer, which you want to grant access to.
	LayerName pulumi.StringOutput `pulumi:"layerName"`
	// An identifier of AWS Organization, which should be able to use your Lambda Layer. `principal` should be equal to `*` if `organizationId` provided.
	OrganizationId pulumi.StringPtrOutput `pulumi:"organizationId"`
	// Full Lambda Layer Permission policy.
	Policy pulumi.StringOutput `pulumi:"policy"`
	// AWS account ID which should be able to use your Lambda Layer. `*` can be used here, if you want to share your Lambda Layer widely.
	Principal pulumi.StringOutput `pulumi:"principal"`
	// A unique identifier for the current revision of the policy.
	RevisionId pulumi.StringOutput `pulumi:"revisionId"`
	// The name of Lambda Layer Permission, for example `dev-account` - human readable note about what is this permission for.
	StatementId pulumi.StringOutput `pulumi:"statementId"`
	// Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer.
	VersionNumber pulumi.IntOutput `pulumi:"versionNumber"`
}

Provides a Lambda Layer Version Permission resource. It allows you to share you own Lambda Layers to another account by account ID, to all accounts in AWS organization or even to all AWS accounts.

For information about Lambda Layer Permissions and how to use them, see [Using Resource-based Policies for AWS Lambda][1]

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewLayerVersionPermission(ctx, "lambdaLayerPermission", &lambda.LayerVersionPermissionArgs{
			Action:        pulumi.String("lambda:GetLayerVersion"),
			LayerName:     pulumi.String("arn:aws:lambda:us-west-2:123456654321:layer:test_layer1"),
			Principal:     pulumi.String("111111111111"),
			StatementId:   pulumi.String("dev-account"),
			VersionNumber: pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Lambda Layer Permissions can be imported using `layer_name` and `version_number`, separated by a comma (`,`).

```sh

$ pulumi import aws:lambda/layerVersionPermission:LayerVersionPermission example arn:aws:lambda:us-west-2:123456654321:layer:test_layer1,1

```

[1]https://docs.aws.amazon.com/lambda/latest/dg/access-control-resource-based.html#permissions-resource-xaccountlayer

func GetLayerVersionPermission added in v4.29.0

func GetLayerVersionPermission(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LayerVersionPermissionState, opts ...pulumi.ResourceOption) (*LayerVersionPermission, error)

GetLayerVersionPermission gets an existing LayerVersionPermission 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 NewLayerVersionPermission added in v4.29.0

func NewLayerVersionPermission(ctx *pulumi.Context,
	name string, args *LayerVersionPermissionArgs, opts ...pulumi.ResourceOption) (*LayerVersionPermission, error)

NewLayerVersionPermission registers a new resource with the given unique name, arguments, and options.

func (*LayerVersionPermission) ElementType added in v4.29.0

func (*LayerVersionPermission) ElementType() reflect.Type

func (*LayerVersionPermission) ToLayerVersionPermissionOutput added in v4.29.0

func (i *LayerVersionPermission) ToLayerVersionPermissionOutput() LayerVersionPermissionOutput

func (*LayerVersionPermission) ToLayerVersionPermissionOutputWithContext added in v4.29.0

func (i *LayerVersionPermission) ToLayerVersionPermissionOutputWithContext(ctx context.Context) LayerVersionPermissionOutput

func (*LayerVersionPermission) ToLayerVersionPermissionPtrOutput added in v4.29.0

func (i *LayerVersionPermission) ToLayerVersionPermissionPtrOutput() LayerVersionPermissionPtrOutput

func (*LayerVersionPermission) ToLayerVersionPermissionPtrOutputWithContext added in v4.29.0

func (i *LayerVersionPermission) ToLayerVersionPermissionPtrOutputWithContext(ctx context.Context) LayerVersionPermissionPtrOutput

type LayerVersionPermissionArgs added in v4.29.0

type LayerVersionPermissionArgs struct {
	// Action, which will be allowed. `lambda:GetLayerVersion` value is suggested by AWS documantation.
	Action pulumi.StringInput
	// The name or ARN of the Lambda Layer, which you want to grant access to.
	LayerName pulumi.StringInput
	// An identifier of AWS Organization, which should be able to use your Lambda Layer. `principal` should be equal to `*` if `organizationId` provided.
	OrganizationId pulumi.StringPtrInput
	// AWS account ID which should be able to use your Lambda Layer. `*` can be used here, if you want to share your Lambda Layer widely.
	Principal pulumi.StringInput
	// The name of Lambda Layer Permission, for example `dev-account` - human readable note about what is this permission for.
	StatementId pulumi.StringInput
	// Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer.
	VersionNumber pulumi.IntInput
}

The set of arguments for constructing a LayerVersionPermission resource.

func (LayerVersionPermissionArgs) ElementType added in v4.29.0

func (LayerVersionPermissionArgs) ElementType() reflect.Type

type LayerVersionPermissionArray added in v4.29.0

type LayerVersionPermissionArray []LayerVersionPermissionInput

func (LayerVersionPermissionArray) ElementType added in v4.29.0

func (LayerVersionPermissionArray) ToLayerVersionPermissionArrayOutput added in v4.29.0

func (i LayerVersionPermissionArray) ToLayerVersionPermissionArrayOutput() LayerVersionPermissionArrayOutput

func (LayerVersionPermissionArray) ToLayerVersionPermissionArrayOutputWithContext added in v4.29.0

func (i LayerVersionPermissionArray) ToLayerVersionPermissionArrayOutputWithContext(ctx context.Context) LayerVersionPermissionArrayOutput

type LayerVersionPermissionArrayInput added in v4.29.0

type LayerVersionPermissionArrayInput interface {
	pulumi.Input

	ToLayerVersionPermissionArrayOutput() LayerVersionPermissionArrayOutput
	ToLayerVersionPermissionArrayOutputWithContext(context.Context) LayerVersionPermissionArrayOutput
}

LayerVersionPermissionArrayInput is an input type that accepts LayerVersionPermissionArray and LayerVersionPermissionArrayOutput values. You can construct a concrete instance of `LayerVersionPermissionArrayInput` via:

LayerVersionPermissionArray{ LayerVersionPermissionArgs{...} }

type LayerVersionPermissionArrayOutput added in v4.29.0

type LayerVersionPermissionArrayOutput struct{ *pulumi.OutputState }

func (LayerVersionPermissionArrayOutput) ElementType added in v4.29.0

func (LayerVersionPermissionArrayOutput) Index added in v4.29.0

func (LayerVersionPermissionArrayOutput) ToLayerVersionPermissionArrayOutput added in v4.29.0

func (o LayerVersionPermissionArrayOutput) ToLayerVersionPermissionArrayOutput() LayerVersionPermissionArrayOutput

func (LayerVersionPermissionArrayOutput) ToLayerVersionPermissionArrayOutputWithContext added in v4.29.0

func (o LayerVersionPermissionArrayOutput) ToLayerVersionPermissionArrayOutputWithContext(ctx context.Context) LayerVersionPermissionArrayOutput

type LayerVersionPermissionInput added in v4.29.0

type LayerVersionPermissionInput interface {
	pulumi.Input

	ToLayerVersionPermissionOutput() LayerVersionPermissionOutput
	ToLayerVersionPermissionOutputWithContext(ctx context.Context) LayerVersionPermissionOutput
}

type LayerVersionPermissionMap added in v4.29.0

type LayerVersionPermissionMap map[string]LayerVersionPermissionInput

func (LayerVersionPermissionMap) ElementType added in v4.29.0

func (LayerVersionPermissionMap) ElementType() reflect.Type

func (LayerVersionPermissionMap) ToLayerVersionPermissionMapOutput added in v4.29.0

func (i LayerVersionPermissionMap) ToLayerVersionPermissionMapOutput() LayerVersionPermissionMapOutput

func (LayerVersionPermissionMap) ToLayerVersionPermissionMapOutputWithContext added in v4.29.0

func (i LayerVersionPermissionMap) ToLayerVersionPermissionMapOutputWithContext(ctx context.Context) LayerVersionPermissionMapOutput

type LayerVersionPermissionMapInput added in v4.29.0

type LayerVersionPermissionMapInput interface {
	pulumi.Input

	ToLayerVersionPermissionMapOutput() LayerVersionPermissionMapOutput
	ToLayerVersionPermissionMapOutputWithContext(context.Context) LayerVersionPermissionMapOutput
}

LayerVersionPermissionMapInput is an input type that accepts LayerVersionPermissionMap and LayerVersionPermissionMapOutput values. You can construct a concrete instance of `LayerVersionPermissionMapInput` via:

LayerVersionPermissionMap{ "key": LayerVersionPermissionArgs{...} }

type LayerVersionPermissionMapOutput added in v4.29.0

type LayerVersionPermissionMapOutput struct{ *pulumi.OutputState }

func (LayerVersionPermissionMapOutput) ElementType added in v4.29.0

func (LayerVersionPermissionMapOutput) MapIndex added in v4.29.0

func (LayerVersionPermissionMapOutput) ToLayerVersionPermissionMapOutput added in v4.29.0

func (o LayerVersionPermissionMapOutput) ToLayerVersionPermissionMapOutput() LayerVersionPermissionMapOutput

func (LayerVersionPermissionMapOutput) ToLayerVersionPermissionMapOutputWithContext added in v4.29.0

func (o LayerVersionPermissionMapOutput) ToLayerVersionPermissionMapOutputWithContext(ctx context.Context) LayerVersionPermissionMapOutput

type LayerVersionPermissionOutput added in v4.29.0

type LayerVersionPermissionOutput struct{ *pulumi.OutputState }

func (LayerVersionPermissionOutput) ElementType added in v4.29.0

func (LayerVersionPermissionOutput) ToLayerVersionPermissionOutput added in v4.29.0

func (o LayerVersionPermissionOutput) ToLayerVersionPermissionOutput() LayerVersionPermissionOutput

func (LayerVersionPermissionOutput) ToLayerVersionPermissionOutputWithContext added in v4.29.0

func (o LayerVersionPermissionOutput) ToLayerVersionPermissionOutputWithContext(ctx context.Context) LayerVersionPermissionOutput

func (LayerVersionPermissionOutput) ToLayerVersionPermissionPtrOutput added in v4.29.0

func (o LayerVersionPermissionOutput) ToLayerVersionPermissionPtrOutput() LayerVersionPermissionPtrOutput

func (LayerVersionPermissionOutput) ToLayerVersionPermissionPtrOutputWithContext added in v4.29.0

func (o LayerVersionPermissionOutput) ToLayerVersionPermissionPtrOutputWithContext(ctx context.Context) LayerVersionPermissionPtrOutput

type LayerVersionPermissionPtrInput added in v4.29.0

type LayerVersionPermissionPtrInput interface {
	pulumi.Input

	ToLayerVersionPermissionPtrOutput() LayerVersionPermissionPtrOutput
	ToLayerVersionPermissionPtrOutputWithContext(ctx context.Context) LayerVersionPermissionPtrOutput
}

type LayerVersionPermissionPtrOutput added in v4.29.0

type LayerVersionPermissionPtrOutput struct{ *pulumi.OutputState }

func (LayerVersionPermissionPtrOutput) Elem added in v4.29.0

func (LayerVersionPermissionPtrOutput) ElementType added in v4.29.0

func (LayerVersionPermissionPtrOutput) ToLayerVersionPermissionPtrOutput added in v4.29.0

func (o LayerVersionPermissionPtrOutput) ToLayerVersionPermissionPtrOutput() LayerVersionPermissionPtrOutput

func (LayerVersionPermissionPtrOutput) ToLayerVersionPermissionPtrOutputWithContext added in v4.29.0

func (o LayerVersionPermissionPtrOutput) ToLayerVersionPermissionPtrOutputWithContext(ctx context.Context) LayerVersionPermissionPtrOutput

type LayerVersionPermissionState added in v4.29.0

type LayerVersionPermissionState struct {
	// Action, which will be allowed. `lambda:GetLayerVersion` value is suggested by AWS documantation.
	Action pulumi.StringPtrInput
	// The name or ARN of the Lambda Layer, which you want to grant access to.
	LayerName pulumi.StringPtrInput
	// An identifier of AWS Organization, which should be able to use your Lambda Layer. `principal` should be equal to `*` if `organizationId` provided.
	OrganizationId pulumi.StringPtrInput
	// Full Lambda Layer Permission policy.
	Policy pulumi.StringPtrInput
	// AWS account ID which should be able to use your Lambda Layer. `*` can be used here, if you want to share your Lambda Layer widely.
	Principal pulumi.StringPtrInput
	// A unique identifier for the current revision of the policy.
	RevisionId pulumi.StringPtrInput
	// The name of Lambda Layer Permission, for example `dev-account` - human readable note about what is this permission for.
	StatementId pulumi.StringPtrInput
	// Version of Lambda Layer, which you want to grant access to. Note: permissions only apply to a single version of a layer.
	VersionNumber pulumi.IntPtrInput
}

func (LayerVersionPermissionState) ElementType added in v4.29.0

type LayerVersionPtrInput

type LayerVersionPtrInput interface {
	pulumi.Input

	ToLayerVersionPtrOutput() LayerVersionPtrOutput
	ToLayerVersionPtrOutputWithContext(ctx context.Context) LayerVersionPtrOutput
}

type LayerVersionPtrOutput

type LayerVersionPtrOutput struct{ *pulumi.OutputState }

func (LayerVersionPtrOutput) Elem added in v4.15.0

func (LayerVersionPtrOutput) ElementType

func (LayerVersionPtrOutput) ElementType() reflect.Type

func (LayerVersionPtrOutput) ToLayerVersionPtrOutput

func (o LayerVersionPtrOutput) ToLayerVersionPtrOutput() LayerVersionPtrOutput

func (LayerVersionPtrOutput) ToLayerVersionPtrOutputWithContext

func (o LayerVersionPtrOutput) ToLayerVersionPtrOutputWithContext(ctx context.Context) LayerVersionPtrOutput

type LayerVersionState

type LayerVersionState struct {
	// ARN of the Lambda Layer with version.
	Arn pulumi.StringPtrInput
	// Path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
	Code pulumi.ArchiveInput
	// List of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleArchitectures) this layer is compatible with. Currently `x8664` and `arm64` can be specified.
	CompatibleArchitectures pulumi.StringArrayInput
	// 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
	// Date this resource was created.
	CreatedDate pulumi.StringPtrInput
	// Description of what your Lambda Layer does.
	Description pulumi.StringPtrInput
	// ARN of the Lambda Layer without version.
	LayerArn pulumi.StringPtrInput
	// 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
	// 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
	// S3 key of an object containing the function's deployment package. Conflicts with `filename`.
	S3Key pulumi.StringPtrInput
	// Object version containing the function's deployment package. Conflicts with `filename`.
	S3ObjectVersion pulumi.StringPtrInput
	// ARN of a signing job.
	SigningJobArn pulumi.StringPtrInput
	// ARN for a signing profile version.
	SigningProfileVersionArn pulumi.StringPtrInput
	// Whether to retain the old version of a previously deployed Lambda Layer. Default is `false`. When this is not set to `true`, changing any of `compatibleArchitectures`, `compatibleRuntimes`, `description`, `filename`, `layerName`, `licenseInfo`, `s3Bucket`, `s3Key`, `s3ObjectVersion`, or `sourceCodeHash` forces deletion of the existing layer version and creation of a new layer version.
	SkipDestroy    pulumi.BoolPtrInput
	SourceCodeHash pulumi.StringPtrInput
	// Size in bytes of the function .zip file.
	SourceCodeSize pulumi.IntPtrInput
	// Lambda 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 LookupAliasOutputArgs added in v4.21.0

type LookupAliasOutputArgs struct {
	// Name of the aliased Lambda function.
	FunctionName pulumi.StringInput `pulumi:"functionName"`
	// Name of the Lambda alias.
	Name pulumi.StringInput `pulumi:"name"`
}

A collection of arguments for invoking getAlias.

func (LookupAliasOutputArgs) ElementType added in v4.21.0

func (LookupAliasOutputArgs) ElementType() reflect.Type

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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/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 LookupAliasResultOutput added in v4.21.0

type LookupAliasResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAlias.

func LookupAliasOutput added in v4.21.0

func LookupAliasOutput(ctx *pulumi.Context, args LookupAliasOutputArgs, opts ...pulumi.InvokeOption) LookupAliasResultOutput

func (LookupAliasResultOutput) Arn added in v4.21.0

The Amazon Resource Name (ARN) identifying the Lambda function alias.

func (LookupAliasResultOutput) Description added in v4.21.0

Description of alias.

func (LookupAliasResultOutput) ElementType added in v4.21.0

func (LookupAliasResultOutput) ElementType() reflect.Type

func (LookupAliasResultOutput) FunctionName added in v4.21.0

func (o LookupAliasResultOutput) FunctionName() pulumi.StringOutput

func (LookupAliasResultOutput) FunctionVersion added in v4.21.0

func (o LookupAliasResultOutput) FunctionVersion() pulumi.StringOutput

Lambda function version which the alias uses.

func (LookupAliasResultOutput) Id added in v4.21.0

The provider-assigned unique ID for this managed resource.

func (LookupAliasResultOutput) InvokeArn added in v4.21.0

The ARN to be used for invoking Lambda Function from API Gateway - to be used in aws_api_gateway_integration's `uri`.

func (LookupAliasResultOutput) Name added in v4.21.0

func (LookupAliasResultOutput) ToLookupAliasResultOutput added in v4.21.0

func (o LookupAliasResultOutput) ToLookupAliasResultOutput() LookupAliasResultOutput

func (LookupAliasResultOutput) ToLookupAliasResultOutputWithContext added in v4.21.0

func (o LookupAliasResultOutput) ToLookupAliasResultOutputWithContext(ctx context.Context) LookupAliasResultOutput

type LookupCodeSigningConfigArgs

type LookupCodeSigningConfigArgs struct {
	// The Amazon Resource Name (ARN) of the code signing configuration.
	Arn string `pulumi:"arn"`
}

A collection of arguments for invoking getCodeSigningConfig.

type LookupCodeSigningConfigOutputArgs added in v4.21.0

type LookupCodeSigningConfigOutputArgs struct {
	// The Amazon Resource Name (ARN) of the code signing configuration.
	Arn pulumi.StringInput `pulumi:"arn"`
}

A collection of arguments for invoking getCodeSigningConfig.

func (LookupCodeSigningConfigOutputArgs) ElementType added in v4.21.0

type LookupCodeSigningConfigResult

type LookupCodeSigningConfigResult struct {
	// List of allowed publishers as signing profiles for this code signing configuration.
	AllowedPublishers []GetCodeSigningConfigAllowedPublisher `pulumi:"allowedPublishers"`
	Arn               string                                 `pulumi:"arn"`
	// Unique identifier for the code signing configuration.
	ConfigId string `pulumi:"configId"`
	// Code signing configuration description.
	Description string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The date and time that the code signing configuration was last modified.
	LastModified string `pulumi:"lastModified"`
	// List of code signing policies that control the validation failure action for signature mismatch or expiry.
	Policies []GetCodeSigningConfigPolicy `pulumi:"policies"`
}

A collection of values returned by getCodeSigningConfig.

func LookupCodeSigningConfig

func LookupCodeSigningConfig(ctx *pulumi.Context, args *LookupCodeSigningConfigArgs, opts ...pulumi.InvokeOption) (*LookupCodeSigningConfigResult, error)

Provides information about a Lambda Code Signing Config. A code signing configuration defines a list of allowed signing profiles and defines the code-signing validation policy (action to be taken if deployment validation checks fail).

For information about Lambda code signing configurations and how to use them, see [configuring code signing for Lambda functions](https://docs.aws.amazon.com/lambda/latest/dg/configuration-codesigning.html)

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.LookupCodeSigningConfig(ctx, &lambda.LookupCodeSigningConfigArgs{
			Arn: fmt.Sprintf("%v%v%v%v%v", "arn:aws:lambda:", _var.Aws_region, ":", _var.Aws_account, ":code-signing-config:csc-0f6c334abcdea4d8b"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupCodeSigningConfigResultOutput added in v4.21.0

type LookupCodeSigningConfigResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCodeSigningConfig.

func LookupCodeSigningConfigOutput added in v4.21.0

func (LookupCodeSigningConfigResultOutput) AllowedPublishers added in v4.21.0

List of allowed publishers as signing profiles for this code signing configuration.

func (LookupCodeSigningConfigResultOutput) Arn added in v4.21.0

func (LookupCodeSigningConfigResultOutput) ConfigId added in v4.21.0

Unique identifier for the code signing configuration.

func (LookupCodeSigningConfigResultOutput) Description added in v4.21.0

Code signing configuration description.

func (LookupCodeSigningConfigResultOutput) ElementType added in v4.21.0

func (LookupCodeSigningConfigResultOutput) Id added in v4.21.0

The provider-assigned unique ID for this managed resource.

func (LookupCodeSigningConfigResultOutput) LastModified added in v4.21.0

The date and time that the code signing configuration was last modified.

func (LookupCodeSigningConfigResultOutput) Policies added in v4.21.0

List of code signing policies that control the validation failure action for signature mismatch or expiry.

func (LookupCodeSigningConfigResultOutput) ToLookupCodeSigningConfigResultOutput added in v4.21.0

func (o LookupCodeSigningConfigResultOutput) ToLookupCodeSigningConfigResultOutput() LookupCodeSigningConfigResultOutput

func (LookupCodeSigningConfigResultOutput) ToLookupCodeSigningConfigResultOutputWithContext added in v4.21.0

func (o LookupCodeSigningConfigResultOutput) ToLookupCodeSigningConfigResultOutputWithContext(ctx context.Context) LookupCodeSigningConfigResultOutput

type LookupFunctionArgs

type LookupFunctionArgs struct {
	// Name of the lambda function.
	FunctionName string `pulumi:"functionName"`
	// Alias name or version number of the lambda functionE.g., `$LATEST`, `my-alias`, or `1`
	Qualifier *string           `pulumi:"qualifier"`
	Tags      map[string]string `pulumi:"tags"`
}

A collection of arguments for invoking getFunction.

type LookupFunctionOutputArgs added in v4.21.0

type LookupFunctionOutputArgs struct {
	// Name of the lambda function.
	FunctionName pulumi.StringInput `pulumi:"functionName"`
	// Alias name or version number of the lambda functionE.g., `$LATEST`, `my-alias`, or `1`
	Qualifier pulumi.StringPtrInput `pulumi:"qualifier"`
	Tags      pulumi.StringMapInput `pulumi:"tags"`
}

A collection of arguments for invoking getFunction.

func (LookupFunctionOutputArgs) ElementType added in v4.21.0

func (LookupFunctionOutputArgs) ElementType() reflect.Type

type LookupFunctionResult

type LookupFunctionResult struct {
	// The instruction set architecture for the Lambda function.
	Architectures []string `pulumi:"architectures"`
	// Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualifiedArn`.
	Arn string `pulumi:"arn"`
	// Amazon Resource Name (ARN) for a Code Signing Configuration.
	CodeSigningConfigArn string `pulumi:"codeSigningConfigArn"`
	// 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 URI of the container image.
	ImageUri string `pulumi:"imageUri"`
	// 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"`
	// The Amazon Resource Name (ARN) of a signing job.
	SigningJobArn string `pulumi:"signingJobArn"`
	// The Amazon Resource Name (ARN) for a signing profile version.
	SigningProfileVersionArn string `pulumi:"signingProfileVersionArn"`
	// 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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		functionName := cfg.Require("functionName")
		_, err := lambda.LookupFunction(ctx, &lambda.LookupFunctionArgs{
			FunctionName: functionName,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupFunctionResultOutput added in v4.21.0

type LookupFunctionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFunction.

func LookupFunctionOutput added in v4.21.0

func LookupFunctionOutput(ctx *pulumi.Context, args LookupFunctionOutputArgs, opts ...pulumi.InvokeOption) LookupFunctionResultOutput

func (LookupFunctionResultOutput) Architectures added in v4.22.1

The instruction set architecture for the Lambda function.

func (LookupFunctionResultOutput) Arn added in v4.21.0

Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualifiedArn`.

func (LookupFunctionResultOutput) CodeSigningConfigArn added in v4.21.0

func (o LookupFunctionResultOutput) CodeSigningConfigArn() pulumi.StringOutput

Amazon Resource Name (ARN) for a Code Signing Configuration.

func (LookupFunctionResultOutput) DeadLetterConfig added in v4.21.0

Configure the function's *dead letter queue*.

func (LookupFunctionResultOutput) Description added in v4.21.0

Description of what your Lambda Function does.

func (LookupFunctionResultOutput) ElementType added in v4.21.0

func (LookupFunctionResultOutput) ElementType() reflect.Type

func (LookupFunctionResultOutput) Environment added in v4.21.0

The Lambda environment's configuration settings.

func (LookupFunctionResultOutput) FileSystemConfigs added in v4.21.0

The connection settings for an Amazon EFS file system.

func (LookupFunctionResultOutput) FunctionName added in v4.21.0

func (LookupFunctionResultOutput) Handler added in v4.21.0

The function entrypoint in your code.

func (LookupFunctionResultOutput) Id added in v4.21.0

The provider-assigned unique ID for this managed resource.

func (LookupFunctionResultOutput) ImageUri added in v4.30.0

The URI of the container image.

func (LookupFunctionResultOutput) InvokeArn added in v4.21.0

The ARN to be used for invoking Lambda Function from API Gateway.

func (LookupFunctionResultOutput) KmsKeyArn added in v4.21.0

The ARN for the KMS encryption key.

func (LookupFunctionResultOutput) LastModified added in v4.21.0

The date this resource was last modified.

func (LookupFunctionResultOutput) Layers added in v4.21.0

A list of Lambda Layer ARNs attached to your Lambda Function.

func (LookupFunctionResultOutput) MemorySize added in v4.21.0

Amount of memory in MB your Lambda Function can use at runtime.

func (LookupFunctionResultOutput) QualifiedArn added in v4.21.0

Qualified (`:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `arn`.

func (LookupFunctionResultOutput) Qualifier added in v4.21.0

func (LookupFunctionResultOutput) ReservedConcurrentExecutions added in v4.21.0

func (o LookupFunctionResultOutput) ReservedConcurrentExecutions() pulumi.IntOutput

The amount of reserved concurrent executions for this lambda function or `-1` if unreserved.

func (LookupFunctionResultOutput) Role added in v4.21.0

IAM role attached to the Lambda Function.

func (LookupFunctionResultOutput) Runtime added in v4.21.0

The runtime environment for the Lambda function.

func (LookupFunctionResultOutput) SigningJobArn added in v4.21.0

The Amazon Resource Name (ARN) of a signing job.

func (LookupFunctionResultOutput) SigningProfileVersionArn added in v4.21.0

func (o LookupFunctionResultOutput) SigningProfileVersionArn() pulumi.StringOutput

The Amazon Resource Name (ARN) for a signing profile version.

func (LookupFunctionResultOutput) SourceCodeHash added in v4.21.0

func (o LookupFunctionResultOutput) SourceCodeHash() pulumi.StringOutput

Base64-encoded representation of raw SHA-256 sum of the zip file.

func (LookupFunctionResultOutput) SourceCodeSize added in v4.21.0

func (o LookupFunctionResultOutput) SourceCodeSize() pulumi.IntOutput

The size in bytes of the function .zip file.

func (LookupFunctionResultOutput) Tags added in v4.21.0

func (LookupFunctionResultOutput) Timeout added in v4.21.0

The function execution time at which Lambda should terminate the function.

func (LookupFunctionResultOutput) ToLookupFunctionResultOutput added in v4.21.0

func (o LookupFunctionResultOutput) ToLookupFunctionResultOutput() LookupFunctionResultOutput

func (LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext added in v4.21.0

func (o LookupFunctionResultOutput) ToLookupFunctionResultOutputWithContext(ctx context.Context) LookupFunctionResultOutput

func (LookupFunctionResultOutput) TracingConfig added in v4.21.0

Tracing settings of the function.

func (LookupFunctionResultOutput) Version added in v4.21.0

The version of the Lambda function.

func (LookupFunctionResultOutput) VpcConfig added in v4.21.0

VPC configuration associated with your Lambda function.

type LookupInvocationArgs added in v4.36.0

type LookupInvocationArgs 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 LookupInvocationOutputArgs added in v4.36.0

type LookupInvocationOutputArgs struct {
	// The name of the lambda function.
	FunctionName pulumi.StringInput `pulumi:"functionName"`
	// A string in JSON format that is passed as payload to the lambda function.
	Input pulumi.StringInput `pulumi:"input"`
	// The qualifier (a.k.a version) of the lambda function. Defaults
	// to `$LATEST`.
	Qualifier pulumi.StringPtrInput `pulumi:"qualifier"`
}

A collection of arguments for invoking getInvocation.

func (LookupInvocationOutputArgs) ElementType added in v4.36.0

func (LookupInvocationOutputArgs) ElementType() reflect.Type

type LookupInvocationResult added in v4.36.0

type LookupInvocationResult 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"`
}

A collection of values returned by getInvocation.

func LookupInvocation added in v4.36.0

func LookupInvocation(ctx *pulumi.Context, args *LookupInvocationArgs, opts ...pulumi.InvokeOption) (*LookupInvocationResult, 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 LookupInvocationResultOutput added in v4.36.0

type LookupInvocationResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInvocation.

func LookupInvocationOutput added in v4.36.0

func (LookupInvocationResultOutput) ElementType added in v4.36.0

func (LookupInvocationResultOutput) FunctionName added in v4.36.0

func (LookupInvocationResultOutput) Id added in v4.36.0

The provider-assigned unique ID for this managed resource.

func (LookupInvocationResultOutput) Input added in v4.36.0

func (LookupInvocationResultOutput) Qualifier added in v4.36.0

func (LookupInvocationResultOutput) Result added in v4.36.0

String result of the lambda function invocation.

func (LookupInvocationResultOutput) ToLookupInvocationResultOutput added in v4.36.0

func (o LookupInvocationResultOutput) ToLookupInvocationResultOutput() LookupInvocationResultOutput

func (LookupInvocationResultOutput) ToLookupInvocationResultOutputWithContext added in v4.36.0

func (o LookupInvocationResultOutput) ToLookupInvocationResultOutputWithContext(ctx context.Context) LookupInvocationResultOutput

type LookupLayerVersionArgs

type LookupLayerVersionArgs struct {
	// Specific architecture the layer version could support. Conflicts with `version`. If specified, the latest available layer version supporting the provided architecture will be used.
	CompatibleArchitecture *string `pulumi:"compatibleArchitecture"`
	// 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` and `compatibleArchitecture`. If omitted, the latest available layer version will be used.
	Version *int `pulumi:"version"`
}

A collection of arguments for invoking getLayerVersion.

type LookupLayerVersionOutputArgs added in v4.21.0

type LookupLayerVersionOutputArgs struct {
	// Specific architecture the layer version could support. Conflicts with `version`. If specified, the latest available layer version supporting the provided architecture will be used.
	CompatibleArchitecture pulumi.StringPtrInput `pulumi:"compatibleArchitecture"`
	// 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 pulumi.StringPtrInput `pulumi:"compatibleRuntime"`
	// Name of the lambda layer.
	LayerName pulumi.StringInput `pulumi:"layerName"`
	// Specific layer version. Conflicts with `compatibleRuntime` and `compatibleArchitecture`. If omitted, the latest available layer version will be used.
	Version pulumi.IntPtrInput `pulumi:"version"`
}

A collection of arguments for invoking getLayerVersion.

func (LookupLayerVersionOutputArgs) ElementType added in v4.21.0

type LookupLayerVersionResult

type LookupLayerVersionResult struct {
	// The Amazon Resource Name (ARN) of the Lambda Layer with version.
	Arn                    string  `pulumi:"arn"`
	CompatibleArchitecture *string `pulumi:"compatibleArchitecture"`
	// A list of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVersion.html#SSS-GetLayerVersion-response-CompatibleArchitectures) the specific Lambda Layer version is compatible with.
	CompatibleArchitectures []string `pulumi:"compatibleArchitectures"`
	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"`
	// The Amazon Resource Name (ARN) of a signing job.
	SigningJobArn string `pulumi:"signingJobArn"`
	// The Amazon Resource Name (ARN) for a signing profile version.
	SigningProfileVersionArn string `pulumi:"signingProfileVersionArn"`
	// 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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		layerName := cfg.Require("layerName")
		_, err := lambda.LookupLayerVersion(ctx, &lambda.LookupLayerVersionArgs{
			LayerName: layerName,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupLayerVersionResultOutput added in v4.21.0

type LookupLayerVersionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getLayerVersion.

func LookupLayerVersionOutput added in v4.21.0

func (LookupLayerVersionResultOutput) Arn added in v4.21.0

The Amazon Resource Name (ARN) of the Lambda Layer with version.

func (LookupLayerVersionResultOutput) CompatibleArchitecture added in v4.23.0

func (o LookupLayerVersionResultOutput) CompatibleArchitecture() pulumi.StringPtrOutput

func (LookupLayerVersionResultOutput) CompatibleArchitectures added in v4.22.1

func (o LookupLayerVersionResultOutput) CompatibleArchitectures() pulumi.StringArrayOutput

A list of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_GetLayerVersion.html#SSS-GetLayerVersion-response-CompatibleArchitectures) the specific Lambda Layer version is compatible with.

func (LookupLayerVersionResultOutput) CompatibleRuntime added in v4.21.0

func (LookupLayerVersionResultOutput) CompatibleRuntimes added in v4.21.0

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.

func (LookupLayerVersionResultOutput) CreatedDate added in v4.21.0

The date this resource was created.

func (LookupLayerVersionResultOutput) Description added in v4.21.0

Description of the specific Lambda Layer version.

func (LookupLayerVersionResultOutput) ElementType added in v4.21.0

func (LookupLayerVersionResultOutput) Id added in v4.21.0

The provider-assigned unique ID for this managed resource.

func (LookupLayerVersionResultOutput) LayerArn added in v4.21.0

The Amazon Resource Name (ARN) of the Lambda Layer without version.

func (LookupLayerVersionResultOutput) LayerName added in v4.21.0

func (LookupLayerVersionResultOutput) LicenseInfo added in v4.21.0

License info associated with the specific Lambda Layer version.

func (LookupLayerVersionResultOutput) SigningJobArn added in v4.21.0

The Amazon Resource Name (ARN) of a signing job.

func (LookupLayerVersionResultOutput) SigningProfileVersionArn added in v4.21.0

func (o LookupLayerVersionResultOutput) SigningProfileVersionArn() pulumi.StringOutput

The Amazon Resource Name (ARN) for a signing profile version.

func (LookupLayerVersionResultOutput) SourceCodeHash added in v4.21.0

Base64-encoded representation of raw SHA-256 sum of the zip file.

func (LookupLayerVersionResultOutput) SourceCodeSize added in v4.21.0

func (o LookupLayerVersionResultOutput) SourceCodeSize() pulumi.IntOutput

The size in bytes of the function .zip file.

func (LookupLayerVersionResultOutput) ToLookupLayerVersionResultOutput added in v4.21.0

func (o LookupLayerVersionResultOutput) ToLookupLayerVersionResultOutput() LookupLayerVersionResultOutput

func (LookupLayerVersionResultOutput) ToLookupLayerVersionResultOutputWithContext added in v4.21.0

func (o LookupLayerVersionResultOutput) ToLookupLayerVersionResultOutputWithContext(ctx context.Context) LookupLayerVersionResultOutput

func (LookupLayerVersionResultOutput) Version added in v4.21.0

This Lamba Layer version.

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 permissionE.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 ARNE.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 EventBridge events, this should be the ARN of the EventBridge 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 an EventBridge 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/v4/go/aws/apigateway"
"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/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.Any("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
	})
}

```

## Import

Lambda permission statements can be imported using function_name/statement_id, with an optional qualifier, e.g.,

```sh

$ pulumi import aws:lambda/permission:Permission test_lambda_permission my_test_lambda_function/AllowExecutionFromCloudWatch

```

```sh

$ pulumi import aws:lambda/permission:Permission test_lambda_permission my_test_lambda_function:qualifier_name/AllowExecutionFromCloudWatch

```

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.

func (*Permission) ElementType

func (*Permission) ElementType() reflect.Type

func (*Permission) ToPermissionOutput

func (i *Permission) ToPermissionOutput() PermissionOutput

func (*Permission) ToPermissionOutputWithContext

func (i *Permission) ToPermissionOutputWithContext(ctx context.Context) PermissionOutput

func (*Permission) ToPermissionPtrOutput

func (i *Permission) ToPermissionPtrOutput() PermissionPtrOutput

func (*Permission) ToPermissionPtrOutputWithContext

func (i *Permission) ToPermissionPtrOutputWithContext(ctx context.Context) PermissionPtrOutput

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 permissionE.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 ARNE.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 EventBridge events, this should be the ARN of the EventBridge 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 PermissionArray

type PermissionArray []PermissionInput

func (PermissionArray) ElementType

func (PermissionArray) ElementType() reflect.Type

func (PermissionArray) ToPermissionArrayOutput

func (i PermissionArray) ToPermissionArrayOutput() PermissionArrayOutput

func (PermissionArray) ToPermissionArrayOutputWithContext

func (i PermissionArray) ToPermissionArrayOutputWithContext(ctx context.Context) PermissionArrayOutput

type PermissionArrayInput

type PermissionArrayInput interface {
	pulumi.Input

	ToPermissionArrayOutput() PermissionArrayOutput
	ToPermissionArrayOutputWithContext(context.Context) PermissionArrayOutput
}

PermissionArrayInput is an input type that accepts PermissionArray and PermissionArrayOutput values. You can construct a concrete instance of `PermissionArrayInput` via:

PermissionArray{ PermissionArgs{...} }

type PermissionArrayOutput

type PermissionArrayOutput struct{ *pulumi.OutputState }

func (PermissionArrayOutput) ElementType

func (PermissionArrayOutput) ElementType() reflect.Type

func (PermissionArrayOutput) Index

func (PermissionArrayOutput) ToPermissionArrayOutput

func (o PermissionArrayOutput) ToPermissionArrayOutput() PermissionArrayOutput

func (PermissionArrayOutput) ToPermissionArrayOutputWithContext

func (o PermissionArrayOutput) ToPermissionArrayOutputWithContext(ctx context.Context) PermissionArrayOutput

type PermissionInput

type PermissionInput interface {
	pulumi.Input

	ToPermissionOutput() PermissionOutput
	ToPermissionOutputWithContext(ctx context.Context) PermissionOutput
}

type PermissionMap

type PermissionMap map[string]PermissionInput

func (PermissionMap) ElementType

func (PermissionMap) ElementType() reflect.Type

func (PermissionMap) ToPermissionMapOutput

func (i PermissionMap) ToPermissionMapOutput() PermissionMapOutput

func (PermissionMap) ToPermissionMapOutputWithContext

func (i PermissionMap) ToPermissionMapOutputWithContext(ctx context.Context) PermissionMapOutput

type PermissionMapInput

type PermissionMapInput interface {
	pulumi.Input

	ToPermissionMapOutput() PermissionMapOutput
	ToPermissionMapOutputWithContext(context.Context) PermissionMapOutput
}

PermissionMapInput is an input type that accepts PermissionMap and PermissionMapOutput values. You can construct a concrete instance of `PermissionMapInput` via:

PermissionMap{ "key": PermissionArgs{...} }

type PermissionMapOutput

type PermissionMapOutput struct{ *pulumi.OutputState }

func (PermissionMapOutput) ElementType

func (PermissionMapOutput) ElementType() reflect.Type

func (PermissionMapOutput) MapIndex

func (PermissionMapOutput) ToPermissionMapOutput

func (o PermissionMapOutput) ToPermissionMapOutput() PermissionMapOutput

func (PermissionMapOutput) ToPermissionMapOutputWithContext

func (o PermissionMapOutput) ToPermissionMapOutputWithContext(ctx context.Context) PermissionMapOutput

type PermissionOutput

type PermissionOutput struct{ *pulumi.OutputState }

func (PermissionOutput) ElementType

func (PermissionOutput) ElementType() reflect.Type

func (PermissionOutput) ToPermissionOutput

func (o PermissionOutput) ToPermissionOutput() PermissionOutput

func (PermissionOutput) ToPermissionOutputWithContext

func (o PermissionOutput) ToPermissionOutputWithContext(ctx context.Context) PermissionOutput

func (PermissionOutput) ToPermissionPtrOutput

func (o PermissionOutput) ToPermissionPtrOutput() PermissionPtrOutput

func (PermissionOutput) ToPermissionPtrOutputWithContext

func (o PermissionOutput) ToPermissionPtrOutputWithContext(ctx context.Context) PermissionPtrOutput

type PermissionPtrInput

type PermissionPtrInput interface {
	pulumi.Input

	ToPermissionPtrOutput() PermissionPtrOutput
	ToPermissionPtrOutputWithContext(ctx context.Context) PermissionPtrOutput
}

type PermissionPtrOutput

type PermissionPtrOutput struct{ *pulumi.OutputState }

func (PermissionPtrOutput) Elem added in v4.15.0

func (PermissionPtrOutput) ElementType

func (PermissionPtrOutput) ElementType() reflect.Type

func (PermissionPtrOutput) ToPermissionPtrOutput

func (o PermissionPtrOutput) ToPermissionPtrOutput() PermissionPtrOutput

func (PermissionPtrOutput) ToPermissionPtrOutputWithContext

func (o PermissionPtrOutput) ToPermissionPtrOutputWithContext(ctx context.Context) PermissionPtrOutput

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.Input
	// The principal who is getting this permissionE.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 ARNE.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 EventBridge events, this should be the ARN of the EventBridge 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/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewProvisionedConcurrencyConfig(ctx, "example", &lambda.ProvisionedConcurrencyConfigArgs{
			FunctionName:                    pulumi.Any(aws_lambda_alias.Example.Function_name),
			ProvisionedConcurrentExecutions: pulumi.Int(1),
			Qualifier:                       pulumi.Any(aws_lambda_alias.Example.Name),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

``` ### Function Version

```go package main

import (

"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lambda.NewProvisionedConcurrencyConfig(ctx, "example", &lambda.ProvisionedConcurrencyConfigArgs{
			FunctionName:                    pulumi.Any(aws_lambda_function.Example.Function_name),
			ProvisionedConcurrentExecutions: pulumi.Int(1),
			Qualifier:                       pulumi.Any(aws_lambda_function.Example.Version),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Lambda Provisioned Concurrency Configs can be imported using the `function_name` and `qualifier` separated by a colon (`:`), e.g.,

```sh

$ pulumi import aws:lambda/provisionedConcurrencyConfig:ProvisionedConcurrencyConfig example my_function:production

```

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.

func (*ProvisionedConcurrencyConfig) ElementType

func (*ProvisionedConcurrencyConfig) ElementType() reflect.Type

func (*ProvisionedConcurrencyConfig) ToProvisionedConcurrencyConfigOutput

func (i *ProvisionedConcurrencyConfig) ToProvisionedConcurrencyConfigOutput() ProvisionedConcurrencyConfigOutput

func (*ProvisionedConcurrencyConfig) ToProvisionedConcurrencyConfigOutputWithContext

func (i *ProvisionedConcurrencyConfig) ToProvisionedConcurrencyConfigOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigOutput

func (*ProvisionedConcurrencyConfig) ToProvisionedConcurrencyConfigPtrOutput

func (i *ProvisionedConcurrencyConfig) ToProvisionedConcurrencyConfigPtrOutput() ProvisionedConcurrencyConfigPtrOutput

func (*ProvisionedConcurrencyConfig) ToProvisionedConcurrencyConfigPtrOutputWithContext

func (i *ProvisionedConcurrencyConfig) ToProvisionedConcurrencyConfigPtrOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigPtrOutput

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

type ProvisionedConcurrencyConfigArray

type ProvisionedConcurrencyConfigArray []ProvisionedConcurrencyConfigInput

func (ProvisionedConcurrencyConfigArray) ElementType

func (ProvisionedConcurrencyConfigArray) ToProvisionedConcurrencyConfigArrayOutput

func (i ProvisionedConcurrencyConfigArray) ToProvisionedConcurrencyConfigArrayOutput() ProvisionedConcurrencyConfigArrayOutput

func (ProvisionedConcurrencyConfigArray) ToProvisionedConcurrencyConfigArrayOutputWithContext

func (i ProvisionedConcurrencyConfigArray) ToProvisionedConcurrencyConfigArrayOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigArrayOutput

type ProvisionedConcurrencyConfigArrayInput

type ProvisionedConcurrencyConfigArrayInput interface {
	pulumi.Input

	ToProvisionedConcurrencyConfigArrayOutput() ProvisionedConcurrencyConfigArrayOutput
	ToProvisionedConcurrencyConfigArrayOutputWithContext(context.Context) ProvisionedConcurrencyConfigArrayOutput
}

ProvisionedConcurrencyConfigArrayInput is an input type that accepts ProvisionedConcurrencyConfigArray and ProvisionedConcurrencyConfigArrayOutput values. You can construct a concrete instance of `ProvisionedConcurrencyConfigArrayInput` via:

ProvisionedConcurrencyConfigArray{ ProvisionedConcurrencyConfigArgs{...} }

type ProvisionedConcurrencyConfigArrayOutput

type ProvisionedConcurrencyConfigArrayOutput struct{ *pulumi.OutputState }

func (ProvisionedConcurrencyConfigArrayOutput) ElementType

func (ProvisionedConcurrencyConfigArrayOutput) Index

func (ProvisionedConcurrencyConfigArrayOutput) ToProvisionedConcurrencyConfigArrayOutput

func (o ProvisionedConcurrencyConfigArrayOutput) ToProvisionedConcurrencyConfigArrayOutput() ProvisionedConcurrencyConfigArrayOutput

func (ProvisionedConcurrencyConfigArrayOutput) ToProvisionedConcurrencyConfigArrayOutputWithContext

func (o ProvisionedConcurrencyConfigArrayOutput) ToProvisionedConcurrencyConfigArrayOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigArrayOutput

type ProvisionedConcurrencyConfigInput

type ProvisionedConcurrencyConfigInput interface {
	pulumi.Input

	ToProvisionedConcurrencyConfigOutput() ProvisionedConcurrencyConfigOutput
	ToProvisionedConcurrencyConfigOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigOutput
}

type ProvisionedConcurrencyConfigMap

type ProvisionedConcurrencyConfigMap map[string]ProvisionedConcurrencyConfigInput

func (ProvisionedConcurrencyConfigMap) ElementType

func (ProvisionedConcurrencyConfigMap) ToProvisionedConcurrencyConfigMapOutput

func (i ProvisionedConcurrencyConfigMap) ToProvisionedConcurrencyConfigMapOutput() ProvisionedConcurrencyConfigMapOutput

func (ProvisionedConcurrencyConfigMap) ToProvisionedConcurrencyConfigMapOutputWithContext

func (i ProvisionedConcurrencyConfigMap) ToProvisionedConcurrencyConfigMapOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigMapOutput

type ProvisionedConcurrencyConfigMapInput

type ProvisionedConcurrencyConfigMapInput interface {
	pulumi.Input

	ToProvisionedConcurrencyConfigMapOutput() ProvisionedConcurrencyConfigMapOutput
	ToProvisionedConcurrencyConfigMapOutputWithContext(context.Context) ProvisionedConcurrencyConfigMapOutput
}

ProvisionedConcurrencyConfigMapInput is an input type that accepts ProvisionedConcurrencyConfigMap and ProvisionedConcurrencyConfigMapOutput values. You can construct a concrete instance of `ProvisionedConcurrencyConfigMapInput` via:

ProvisionedConcurrencyConfigMap{ "key": ProvisionedConcurrencyConfigArgs{...} }

type ProvisionedConcurrencyConfigMapOutput

type ProvisionedConcurrencyConfigMapOutput struct{ *pulumi.OutputState }

func (ProvisionedConcurrencyConfigMapOutput) ElementType

func (ProvisionedConcurrencyConfigMapOutput) MapIndex

func (ProvisionedConcurrencyConfigMapOutput) ToProvisionedConcurrencyConfigMapOutput

func (o ProvisionedConcurrencyConfigMapOutput) ToProvisionedConcurrencyConfigMapOutput() ProvisionedConcurrencyConfigMapOutput

func (ProvisionedConcurrencyConfigMapOutput) ToProvisionedConcurrencyConfigMapOutputWithContext

func (o ProvisionedConcurrencyConfigMapOutput) ToProvisionedConcurrencyConfigMapOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigMapOutput

type ProvisionedConcurrencyConfigOutput

type ProvisionedConcurrencyConfigOutput struct{ *pulumi.OutputState }

func (ProvisionedConcurrencyConfigOutput) ElementType

func (ProvisionedConcurrencyConfigOutput) ToProvisionedConcurrencyConfigOutput

func (o ProvisionedConcurrencyConfigOutput) ToProvisionedConcurrencyConfigOutput() ProvisionedConcurrencyConfigOutput

func (ProvisionedConcurrencyConfigOutput) ToProvisionedConcurrencyConfigOutputWithContext

func (o ProvisionedConcurrencyConfigOutput) ToProvisionedConcurrencyConfigOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigOutput

func (ProvisionedConcurrencyConfigOutput) ToProvisionedConcurrencyConfigPtrOutput

func (o ProvisionedConcurrencyConfigOutput) ToProvisionedConcurrencyConfigPtrOutput() ProvisionedConcurrencyConfigPtrOutput

func (ProvisionedConcurrencyConfigOutput) ToProvisionedConcurrencyConfigPtrOutputWithContext

func (o ProvisionedConcurrencyConfigOutput) ToProvisionedConcurrencyConfigPtrOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigPtrOutput

type ProvisionedConcurrencyConfigPtrInput

type ProvisionedConcurrencyConfigPtrInput interface {
	pulumi.Input

	ToProvisionedConcurrencyConfigPtrOutput() ProvisionedConcurrencyConfigPtrOutput
	ToProvisionedConcurrencyConfigPtrOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigPtrOutput
}

type ProvisionedConcurrencyConfigPtrOutput

type ProvisionedConcurrencyConfigPtrOutput struct{ *pulumi.OutputState }

func (ProvisionedConcurrencyConfigPtrOutput) Elem added in v4.15.0

func (ProvisionedConcurrencyConfigPtrOutput) ElementType

func (ProvisionedConcurrencyConfigPtrOutput) ToProvisionedConcurrencyConfigPtrOutput

func (o ProvisionedConcurrencyConfigPtrOutput) ToProvisionedConcurrencyConfigPtrOutput() ProvisionedConcurrencyConfigPtrOutput

func (ProvisionedConcurrencyConfigPtrOutput) ToProvisionedConcurrencyConfigPtrOutputWithContext

func (o ProvisionedConcurrencyConfigPtrOutput) ToProvisionedConcurrencyConfigPtrOutputWithContext(ctx context.Context) ProvisionedConcurrencyConfigPtrOutput

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

type Runtime

type Runtime string

See https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html

func (Runtime) ElementType

func (Runtime) ElementType() reflect.Type

func (Runtime) ToRuntimeOutput added in v4.13.0

func (e Runtime) ToRuntimeOutput() RuntimeOutput

func (Runtime) ToRuntimeOutputWithContext added in v4.13.0

func (e Runtime) ToRuntimeOutputWithContext(ctx context.Context) RuntimeOutput

func (Runtime) ToRuntimePtrOutput added in v4.13.0

func (e Runtime) ToRuntimePtrOutput() RuntimePtrOutput

func (Runtime) ToRuntimePtrOutputWithContext added in v4.13.0

func (e Runtime) ToRuntimePtrOutputWithContext(ctx context.Context) RuntimePtrOutput

func (Runtime) ToStringOutput

func (e Runtime) ToStringOutput() pulumi.StringOutput

func (Runtime) ToStringOutputWithContext

func (e Runtime) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput

func (Runtime) ToStringPtrOutput

func (e Runtime) ToStringPtrOutput() pulumi.StringPtrOutput

func (Runtime) ToStringPtrOutputWithContext

func (e Runtime) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

type RuntimeInput added in v4.13.0

type RuntimeInput interface {
	pulumi.Input

	ToRuntimeOutput() RuntimeOutput
	ToRuntimeOutputWithContext(context.Context) RuntimeOutput
}

RuntimeInput is an input type that accepts RuntimeArgs and RuntimeOutput values. You can construct a concrete instance of `RuntimeInput` via:

RuntimeArgs{...}

type RuntimeOutput added in v4.13.0

type RuntimeOutput struct{ *pulumi.OutputState }

func (RuntimeOutput) ElementType added in v4.13.0

func (RuntimeOutput) ElementType() reflect.Type

func (RuntimeOutput) ToRuntimeOutput added in v4.13.0

func (o RuntimeOutput) ToRuntimeOutput() RuntimeOutput

func (RuntimeOutput) ToRuntimeOutputWithContext added in v4.13.0

func (o RuntimeOutput) ToRuntimeOutputWithContext(ctx context.Context) RuntimeOutput

func (RuntimeOutput) ToRuntimePtrOutput added in v4.13.0

func (o RuntimeOutput) ToRuntimePtrOutput() RuntimePtrOutput

func (RuntimeOutput) ToRuntimePtrOutputWithContext added in v4.13.0

func (o RuntimeOutput) ToRuntimePtrOutputWithContext(ctx context.Context) RuntimePtrOutput

func (RuntimeOutput) ToStringOutput added in v4.13.0

func (o RuntimeOutput) ToStringOutput() pulumi.StringOutput

func (RuntimeOutput) ToStringOutputWithContext added in v4.13.0

func (o RuntimeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput

func (RuntimeOutput) ToStringPtrOutput added in v4.13.0

func (o RuntimeOutput) ToStringPtrOutput() pulumi.StringPtrOutput

func (RuntimeOutput) ToStringPtrOutputWithContext added in v4.13.0

func (o RuntimeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

type RuntimePtrInput added in v4.13.0

type RuntimePtrInput interface {
	pulumi.Input

	ToRuntimePtrOutput() RuntimePtrOutput
	ToRuntimePtrOutputWithContext(context.Context) RuntimePtrOutput
}

func RuntimePtr added in v4.13.0

func RuntimePtr(v string) RuntimePtrInput

type RuntimePtrOutput added in v4.13.0

type RuntimePtrOutput struct{ *pulumi.OutputState }

func (RuntimePtrOutput) Elem added in v4.13.0

func (RuntimePtrOutput) ElementType added in v4.13.0

func (RuntimePtrOutput) ElementType() reflect.Type

func (RuntimePtrOutput) ToRuntimePtrOutput added in v4.13.0

func (o RuntimePtrOutput) ToRuntimePtrOutput() RuntimePtrOutput

func (RuntimePtrOutput) ToRuntimePtrOutputWithContext added in v4.13.0

func (o RuntimePtrOutput) ToRuntimePtrOutputWithContext(ctx context.Context) RuntimePtrOutput

func (RuntimePtrOutput) ToStringPtrOutput added in v4.13.0

func (o RuntimePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput

func (RuntimePtrOutput) ToStringPtrOutputWithContext added in v4.13.0

func (o RuntimePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL