lambda

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alias

type Alias struct {
	pulumi.CustomResourceState

	// The Amazon Resource Name (ARN) identifying your Lambda function alias.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// Description of the alias.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The function ARN of the Lambda function for which you want to create an alias.
	FunctionName pulumi.StringOutput `pulumi:"functionName"`
	// Lambda function version for which you are creating the alias. Pattern: `(\$LATEST|[0-9]+)`.
	FunctionVersion pulumi.StringOutput `pulumi:"functionVersion"`
	// The ARN to be used for invoking Lambda Function from API Gateway - to be used in [`apigateway.Integration`](https://www.terraform.io/docs/providers/aws/r/api_gateway_integration.html)'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?][1] For information about function aliases, see [CreateAlias][2] and [AliasRoutingConfiguration][3] in the API docs.

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.

type AliasArgs

type AliasArgs struct {
	// Description of the alias.
	Description pulumi.StringPtrInput
	// The function ARN of the Lambda function for which you want to create an alias.
	FunctionName pulumi.StringInput
	// Lambda function version for which you are creating the alias. Pattern: `(\$LATEST|[0-9]+)`.
	FunctionVersion pulumi.StringInput
	// Name for the alias you are creating. Pattern: `(?!^[0-9]+$)([a-zA-Z0-9-_]+)`
	Name pulumi.StringPtrInput
	// The Lambda alias' route configuration settings. Fields documented below
	RoutingConfig AliasRoutingConfigPtrInput
}

The set of arguments for constructing a Alias resource.

func (AliasArgs) ElementType

func (AliasArgs) ElementType() reflect.Type

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
	// The function ARN of the Lambda function for which you want to create an alias.
	FunctionName pulumi.StringPtrInput
	// Lambda function version for which you are creating the alias. Pattern: `(\$LATEST|[0-9]+)`.
	FunctionVersion pulumi.StringPtrInput
	// The ARN to be used for invoking Lambda Function from API Gateway - to be used in [`apigateway.Integration`](https://www.terraform.io/docs/providers/aws/r/api_gateway_integration.html)'s `uri`
	InvokeArn pulumi.StringPtrInput
	// Name for the alias you are creating. Pattern: `(?!^[0-9]+$)([a-zA-Z0-9-_]+)`
	Name pulumi.StringPtrInput
	// The Lambda alias' route configuration settings. Fields documented below
	RoutingConfig AliasRoutingConfigPtrInput
}

func (AliasState) ElementType

func (AliasState) ElementType() reflect.Type

type EventSourceMapping

type EventSourceMapping struct {
	pulumi.CustomResourceState

	// The largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to `100` for DynamoDB and Kinesis, `10` for SQS.
	BatchSize                  pulumi.IntPtrOutput                          `pulumi:"batchSize"`
	BisectBatchOnFunctionError pulumi.BoolPtrOutput                         `pulumi:"bisectBatchOnFunctionError"`
	DestinationConfig          EventSourceMappingDestinationConfigPtrOutput `pulumi:"destinationConfig"`
	// Determines if the mapping will be enabled on creation. Defaults to `true`.
	Enabled pulumi.BoolPtrOutput `pulumi:"enabled"`
	// The event source ARN - can be a Kinesis stream, DynamoDB stream, or SQS queue.
	EventSourceArn pulumi.StringOutput `pulumi:"eventSourceArn"`
	// The the ARN of the Lambda function the event source mapping is sending events to. (Note: this is a computed value that differs from `functionName` above.)
	FunctionArn pulumi.StringOutput `pulumi:"functionArn"`
	// The name or the ARN of the Lambda function that will be subscribing to events.
	FunctionName pulumi.StringOutput `pulumi:"functionName"`
	// The date this resource was last modified.
	LastModified pulumi.StringOutput `pulumi:"lastModified"`
	// The result of the last AWS Lambda invocation of your Lambda function.
	LastProcessingResult pulumi.StringOutput `pulumi:"lastProcessingResult"`
	// The maximum amount of time to gather records before invoking the function, in seconds.  Records will continue to buffer until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. Defaults to as soon as records are available in the stream. If the batch it reads from the stream only has one record in it, Lambda only sends one record to the function.
	MaximumBatchingWindowInSeconds pulumi.IntPtrOutput `pulumi:"maximumBatchingWindowInSeconds"`
	MaximumRecordAgeInSeconds      pulumi.IntOutput    `pulumi:"maximumRecordAgeInSeconds"`
	MaximumRetryAttempts           pulumi.IntOutput    `pulumi:"maximumRetryAttempts"`
	ParallelizationFactor          pulumi.IntOutput    `pulumi:"parallelizationFactor"`
	// The position in the stream where AWS Lambda should start reading. Must be one of `AT_TIMESTAMP` (Kinesis only), `LATEST` or `TRIM_HORIZON` if getting events from Kinesis or DynamoDB. Must not be provided if getting events from SQS. More information about these positions can be found in the [AWS DynamoDB Streams API Reference](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html) and [AWS Kinesis API Reference](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType).
	StartingPosition pulumi.StringPtrOutput `pulumi:"startingPosition"`
	// A timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) of the data record which to start reading when using `startingPosition` set to `AT_TIMESTAMP`. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen.
	// * `parallelizationFactor`: - (Optional) The number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10.
	// * `maximumRetryAttempts`: - (Optional) The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum of 0, maximum and default of 10000.
	// * `maximumRecordAgeInSeconds`: - (Optional) The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Minimum of 60, maximum and default of 604800.
	// * `bisectBatchOnFunctionError`: - (Optional) If the function returns an error, split the batch in two and retry. Only available for stream sources (DynamoDB and Kinesis). Defaults to `false`.
	// * `destinationConfig`: - (Optional) An Amazon SQS queue or Amazon SNS topic destination for failed records. Only available for stream sources (DynamoDB and Kinesis). Detailed below.
	StartingPositionTimestamp pulumi.StringPtrOutput `pulumi:"startingPositionTimestamp"`
	// The state of the event source mapping.
	State pulumi.StringOutput `pulumi:"state"`
	// The reason the event source mapping is in its current state.
	StateTransitionReason pulumi.StringOutput `pulumi:"stateTransitionReason"`
	// The UUID of the created event source mapping.
	Uuid pulumi.StringOutput `pulumi:"uuid"`
}

Provides a Lambda event source mapping. This allows Lambda functions to get events from Kinesis, DynamoDB and SQS.

For information about Lambda and how to use it, see [What is AWS Lambda?][1]. For information about event source mappings, see [CreateEventSourceMapping][2] in the API docs.

func GetEventSourceMapping

func GetEventSourceMapping(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EventSourceMappingState, opts ...pulumi.ResourceOption) (*EventSourceMapping, error)

GetEventSourceMapping gets an existing EventSourceMapping resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEventSourceMapping

func NewEventSourceMapping(ctx *pulumi.Context,
	name string, args *EventSourceMappingArgs, opts ...pulumi.ResourceOption) (*EventSourceMapping, error)

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

type EventSourceMappingArgs

type EventSourceMappingArgs struct {
	// The largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to `100` for DynamoDB and Kinesis, `10` for SQS.
	BatchSize                  pulumi.IntPtrInput
	BisectBatchOnFunctionError pulumi.BoolPtrInput
	DestinationConfig          EventSourceMappingDestinationConfigPtrInput
	// Determines if the mapping will be enabled on creation. Defaults to `true`.
	Enabled pulumi.BoolPtrInput
	// The event source ARN - can be a Kinesis stream, DynamoDB stream, or SQS queue.
	EventSourceArn pulumi.StringInput
	// The name or the ARN of the Lambda function that will be subscribing to events.
	FunctionName pulumi.StringInput
	// The maximum amount of time to gather records before invoking the function, in seconds.  Records will continue to buffer until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. Defaults to as soon as records are available in the stream. If the batch it reads from the stream only has one record in it, Lambda only sends one record to the function.
	MaximumBatchingWindowInSeconds pulumi.IntPtrInput
	MaximumRecordAgeInSeconds      pulumi.IntPtrInput
	MaximumRetryAttempts           pulumi.IntPtrInput
	ParallelizationFactor          pulumi.IntPtrInput
	// The position in the stream where AWS Lambda should start reading. Must be one of `AT_TIMESTAMP` (Kinesis only), `LATEST` or `TRIM_HORIZON` if getting events from Kinesis or DynamoDB. Must not be provided if getting events from SQS. More information about these positions can be found in the [AWS DynamoDB Streams API Reference](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html) and [AWS Kinesis API Reference](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType).
	StartingPosition pulumi.StringPtrInput
	// A timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) of the data record which to start reading when using `startingPosition` set to `AT_TIMESTAMP`. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen.
	// * `parallelizationFactor`: - (Optional) The number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10.
	// * `maximumRetryAttempts`: - (Optional) The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum of 0, maximum and default of 10000.
	// * `maximumRecordAgeInSeconds`: - (Optional) The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Minimum of 60, maximum and default of 604800.
	// * `bisectBatchOnFunctionError`: - (Optional) If the function returns an error, split the batch in two and retry. Only available for stream sources (DynamoDB and Kinesis). Defaults to `false`.
	// * `destinationConfig`: - (Optional) An Amazon SQS queue or Amazon SNS topic destination for failed records. Only available for stream sources (DynamoDB and Kinesis). Detailed below.
	StartingPositionTimestamp pulumi.StringPtrInput
}

The set of arguments for constructing a EventSourceMapping resource.

func (EventSourceMappingArgs) ElementType

func (EventSourceMappingArgs) ElementType() reflect.Type

type EventSourceMappingDestinationConfig

type EventSourceMappingDestinationConfig struct {
	// The destination configuration for failed invocations. Detailed below.
	OnFailure *EventSourceMappingDestinationConfigOnFailure `pulumi:"onFailure"`
}

type EventSourceMappingDestinationConfigArgs

type EventSourceMappingDestinationConfigArgs struct {
	// The destination configuration for failed invocations. Detailed below.
	OnFailure EventSourceMappingDestinationConfigOnFailurePtrInput `pulumi:"onFailure"`
}

func (EventSourceMappingDestinationConfigArgs) ElementType

func (EventSourceMappingDestinationConfigArgs) 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 EventSourceMappingState

type EventSourceMappingState struct {
	// The largest number of records that Lambda will retrieve from your event source at the time of invocation. Defaults to `100` for DynamoDB and Kinesis, `10` for SQS.
	BatchSize                  pulumi.IntPtrInput
	BisectBatchOnFunctionError pulumi.BoolPtrInput
	DestinationConfig          EventSourceMappingDestinationConfigPtrInput
	// Determines if the mapping will be enabled on creation. Defaults to `true`.
	Enabled pulumi.BoolPtrInput
	// The event source ARN - can be a Kinesis stream, DynamoDB stream, or SQS queue.
	EventSourceArn pulumi.StringPtrInput
	// The the ARN of the Lambda function the event source mapping is sending events to. (Note: this is a computed value that differs from `functionName` above.)
	FunctionArn pulumi.StringPtrInput
	// The name or the ARN of the Lambda function that will be subscribing to events.
	FunctionName pulumi.StringPtrInput
	// The date this resource was last modified.
	LastModified pulumi.StringPtrInput
	// The result of the last AWS Lambda invocation of your Lambda function.
	LastProcessingResult pulumi.StringPtrInput
	// The maximum amount of time to gather records before invoking the function, in seconds.  Records will continue to buffer until either `maximumBatchingWindowInSeconds` expires or `batchSize` has been met. Defaults to as soon as records are available in the stream. If the batch it reads from the stream only has one record in it, Lambda only sends one record to the function.
	MaximumBatchingWindowInSeconds pulumi.IntPtrInput
	MaximumRecordAgeInSeconds      pulumi.IntPtrInput
	MaximumRetryAttempts           pulumi.IntPtrInput
	ParallelizationFactor          pulumi.IntPtrInput
	// The position in the stream where AWS Lambda should start reading. Must be one of `AT_TIMESTAMP` (Kinesis only), `LATEST` or `TRIM_HORIZON` if getting events from Kinesis or DynamoDB. Must not be provided if getting events from SQS. More information about these positions can be found in the [AWS DynamoDB Streams API Reference](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_GetShardIterator.html) and [AWS Kinesis API Reference](https://docs.aws.amazon.com/kinesis/latest/APIReference/API_GetShardIterator.html#Kinesis-GetShardIterator-request-ShardIteratorType).
	StartingPosition pulumi.StringPtrInput
	// A timestamp in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) of the data record which to start reading when using `startingPosition` set to `AT_TIMESTAMP`. If a record with this exact timestamp does not exist, the next later record is chosen. If the timestamp is older than the current trim horizon, the oldest available record is chosen.
	// * `parallelizationFactor`: - (Optional) The number of batches to process from each shard concurrently. Only available for stream sources (DynamoDB and Kinesis). Minimum and default of 1, maximum of 10.
	// * `maximumRetryAttempts`: - (Optional) The maximum number of times to retry when the function returns an error. Only available for stream sources (DynamoDB and Kinesis). Minimum of 0, maximum and default of 10000.
	// * `maximumRecordAgeInSeconds`: - (Optional) The maximum age of a record that Lambda sends to a function for processing. Only available for stream sources (DynamoDB and Kinesis). Minimum of 60, maximum and default of 604800.
	// * `bisectBatchOnFunctionError`: - (Optional) If the function returns an error, split the batch in two and retry. Only available for stream sources (DynamoDB and Kinesis). Defaults to `false`.
	// * `destinationConfig`: - (Optional) An Amazon SQS queue or Amazon SNS topic destination for failed records. Only available for stream sources (DynamoDB and Kinesis). Detailed below.
	StartingPositionTimestamp pulumi.StringPtrInput
	// The state of the event source mapping.
	State pulumi.StringPtrInput
	// The reason the event source mapping is in its current state.
	StateTransitionReason pulumi.StringPtrInput
	// The UUID of the created event source mapping.
	Uuid pulumi.StringPtrInput
}

func (EventSourceMappingState) ElementType

func (EventSourceMappingState) ElementType() reflect.Type

type Function

type Function struct {
	pulumi.CustomResourceState

	// The Amazon Resource Name (ARN) identifying your Lambda Function.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
	Code pulumi.ArchiveOutput `pulumi:"code"`
	// Nested block to configure the function's *dead letter queue*. See details below.
	DeadLetterConfig FunctionDeadLetterConfigPtrOutput `pulumi:"deadLetterConfig"`
	// Description of what your Lambda Function does.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The Lambda environment's configuration settings. Fields documented below.
	Environment FunctionEnvironmentPtrOutput `pulumi:"environment"`
	// The function [entrypoint][3] in your code.
	Handler pulumi.StringOutput `pulumi:"handler"`
	// The ARN to be used for invoking Lambda Function from API Gateway - to be used in [`apigateway.Integration`](https://www.terraform.io/docs/providers/aws/r/api_gateway_integration.html)'s `uri`
	InvokeArn pulumi.StringOutput `pulumi:"invokeArn"`
	// The ARN for the KMS encryption key.
	KmsKeyArn pulumi.StringPtrOutput `pulumi:"kmsKeyArn"`
	// The date this resource was last modified.
	LastModified pulumi.StringOutput `pulumi:"lastModified"`
	// List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. See [Lambda Layers][10]
	Layers pulumi.StringArrayOutput `pulumi:"layers"`
	// Amount of memory in MB your Lambda Function can use at runtime. Defaults to `128`. See [Limits][5]
	MemorySize pulumi.IntPtrOutput `pulumi:"memorySize"`
	// A unique name for your Lambda Function.
	Name pulumi.StringOutput `pulumi:"name"`
	// Whether to publish creation/change as new Lambda Function Version. Defaults to `false`.
	Publish pulumi.BoolPtrOutput `pulumi:"publish"`
	// The Amazon Resource Name (ARN) identifying your Lambda Function Version
	// (if versioning is enabled via `publish = true`).
	QualifiedArn pulumi.StringOutput `pulumi:"qualifiedArn"`
	// The amount of reserved concurrent executions for this lambda function. A value of `0` disables lambda from being triggered and `-1` removes any concurrency limitations. Defaults to Unreserved Concurrency Limits `-1`. See [Managing Concurrency][9]
	ReservedConcurrentExecutions pulumi.IntPtrOutput `pulumi:"reservedConcurrentExecutions"`
	// IAM role attached to the Lambda Function. This governs both who / what can invoke your Lambda Function, as well as what resources our Lambda Function has access to. See [Lambda Permission Model][4] for more details.
	Role pulumi.StringOutput `pulumi:"role"`
	// See [Runtimes][6] for valid values.
	Runtime pulumi.StringOutput `pulumi:"runtime"`
	// The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function.
	S3Bucket pulumi.StringPtrOutput `pulumi:"s3Bucket"`
	// The S3 key of an object containing the function's deployment package. Conflicts with `filename`.
	S3Key pulumi.StringPtrOutput `pulumi:"s3Key"`
	// The object version containing the function's deployment package. Conflicts with `filename`.
	S3ObjectVersion pulumi.StringPtrOutput `pulumi:"s3ObjectVersion"`
	// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `filebase64sha256("file.zip")` (this provider 0.11.12 and later) or `base64sha256(file("file.zip"))` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda function source archive.
	SourceCodeHash pulumi.StringOutput `pulumi:"sourceCodeHash"`
	// The size in bytes of the function .zip file.
	SourceCodeSize pulumi.IntOutput `pulumi:"sourceCodeSize"`
	// A mapping of tags to assign to the object.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The amount of time your Lambda Function has to run in seconds. Defaults to `3`. See [Limits][5]
	Timeout       pulumi.IntPtrOutput         `pulumi:"timeout"`
	TracingConfig FunctionTracingConfigOutput `pulumi:"tracingConfig"`
	// Latest published version of your Lambda Function.
	Version pulumi.StringOutput `pulumi:"version"`
	// Provide this to allow your function to access your VPC. Fields documented below. See [Lambda in VPC][7]
	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?][1]

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

## Specifying the Deployment Package

AWS Lambda expects source code to be provided as a deployment package whose structure varies depending on which `runtime` is in use. See [Runtimes][6] for the valid values of `runtime`. The expected structure of the deployment package can be found in [the AWS Lambda documentation for each runtime][8].

Once you have created your deployment package you can specify it either directly as a local file (using the `filename` argument) or indirectly via Amazon S3 (using the `s3Bucket`, `s3Key` and `s3ObjectVersion` arguments). When providing the deployment package via S3 it may be useful to use the `s3.BucketObject` resource to upload it.

For larger deployment packages it is recommended by Amazon to upload via S3, since the S3 API has better support for uploading large files efficiently.

func GetFunction

func GetFunction(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionState, opts ...pulumi.ResourceOption) (*Function, error)

GetFunction gets an existing Function resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunction

func NewFunction(ctx *pulumi.Context,
	name string, args *FunctionArgs, opts ...pulumi.ResourceOption) (*Function, error)

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

type FunctionArgs

type FunctionArgs struct {
	// The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
	Code pulumi.ArchiveInput
	// Nested block to configure the function's *dead letter queue*. See details below.
	DeadLetterConfig FunctionDeadLetterConfigPtrInput
	// Description of what your Lambda Function does.
	Description pulumi.StringPtrInput
	// The Lambda environment's configuration settings. Fields documented below.
	Environment FunctionEnvironmentPtrInput
	// The function [entrypoint][3] in your code.
	Handler pulumi.StringInput
	// The ARN for the KMS encryption key.
	KmsKeyArn pulumi.StringPtrInput
	// List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. See [Lambda Layers][10]
	Layers pulumi.StringArrayInput
	// Amount of memory in MB your Lambda Function can use at runtime. Defaults to `128`. See [Limits][5]
	MemorySize pulumi.IntPtrInput
	// A unique name for your Lambda Function.
	Name pulumi.StringPtrInput
	// Whether to publish creation/change as new Lambda Function Version. Defaults to `false`.
	Publish pulumi.BoolPtrInput
	// The amount of reserved concurrent executions for this lambda function. A value of `0` disables lambda from being triggered and `-1` removes any concurrency limitations. Defaults to Unreserved Concurrency Limits `-1`. See [Managing Concurrency][9]
	ReservedConcurrentExecutions pulumi.IntPtrInput
	// IAM role attached to the Lambda Function. This governs both who / what can invoke your Lambda Function, as well as what resources our Lambda Function has access to. See [Lambda Permission Model][4] for more details.
	Role pulumi.StringInput
	// See [Runtimes][6] for valid values.
	Runtime pulumi.StringInput
	// The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function.
	S3Bucket pulumi.StringPtrInput
	// The S3 key of an object containing the function's deployment package. Conflicts with `filename`.
	S3Key pulumi.StringPtrInput
	// The object version containing the function's deployment package. Conflicts with `filename`.
	S3ObjectVersion pulumi.StringPtrInput
	// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `filebase64sha256("file.zip")` (this provider 0.11.12 and later) or `base64sha256(file("file.zip"))` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda function source archive.
	SourceCodeHash pulumi.StringPtrInput
	// A mapping of tags to assign to the object.
	Tags pulumi.MapInput
	// The amount of time your Lambda Function has to run in seconds. Defaults to `3`. See [Limits][5]
	Timeout       pulumi.IntPtrInput
	TracingConfig FunctionTracingConfigPtrInput
	// Provide this to allow your function to access your VPC. Fields documented below. See [Lambda in VPC][7]
	VpcConfig FunctionVpcConfigPtrInput
}

The set of arguments for constructing a Function resource.

func (FunctionArgs) ElementType

func (FunctionArgs) ElementType() reflect.Type

type FunctionDeadLetterConfig

type FunctionDeadLetterConfig struct {
	// The ARN of an SNS topic or SQS queue to notify when an invocation fails. If this
	// option is used, the function's IAM role must be granted suitable access to write to the target object,
	// which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on
	// which service is targeted.
	TargetArn string `pulumi:"targetArn"`
}

type FunctionDeadLetterConfigArgs

type FunctionDeadLetterConfigArgs struct {
	// The ARN of an SNS topic or SQS queue to notify when an invocation fails. If this
	// option is used, the function's IAM role must be granted suitable access to write to the target object,
	// which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on
	// which service is targeted.
	TargetArn pulumi.StringInput `pulumi:"targetArn"`
}

func (FunctionDeadLetterConfigArgs) ElementType

func (FunctionDeadLetterConfigArgs) 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

The ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on which service is targeted.

func (FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigOutput

func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigOutput() FunctionDeadLetterConfigOutput

func (FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigOutputWithContext

func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigOutputWithContext(ctx context.Context) FunctionDeadLetterConfigOutput

func (FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigPtrOutput

func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigPtrOutput() FunctionDeadLetterConfigPtrOutput

func (FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigPtrOutputWithContext

func (o FunctionDeadLetterConfigOutput) ToFunctionDeadLetterConfigPtrOutputWithContext(ctx context.Context) FunctionDeadLetterConfigPtrOutput

type FunctionDeadLetterConfigPtrInput

type FunctionDeadLetterConfigPtrInput interface {
	pulumi.Input

	ToFunctionDeadLetterConfigPtrOutput() FunctionDeadLetterConfigPtrOutput
	ToFunctionDeadLetterConfigPtrOutputWithContext(context.Context) FunctionDeadLetterConfigPtrOutput
}

FunctionDeadLetterConfigPtrInput is an input type that accepts FunctionDeadLetterConfigArgs, FunctionDeadLetterConfigPtr and FunctionDeadLetterConfigPtrOutput values. You can construct a concrete instance of `FunctionDeadLetterConfigPtrInput` via:

		 FunctionDeadLetterConfigArgs{...}

 or:

		 nil

type FunctionDeadLetterConfigPtrOutput

type FunctionDeadLetterConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionDeadLetterConfigPtrOutput) Elem

func (FunctionDeadLetterConfigPtrOutput) ElementType

func (FunctionDeadLetterConfigPtrOutput) TargetArn

The ARN of an SNS topic or SQS queue to notify when an invocation fails. If this option is used, the function's IAM role must be granted suitable access to write to the target object, which means allowing either the `sns:Publish` or `sqs:SendMessage` action on this ARN, depending on which service is targeted.

func (FunctionDeadLetterConfigPtrOutput) ToFunctionDeadLetterConfigPtrOutput

func (o FunctionDeadLetterConfigPtrOutput) ToFunctionDeadLetterConfigPtrOutput() FunctionDeadLetterConfigPtrOutput

func (FunctionDeadLetterConfigPtrOutput) ToFunctionDeadLetterConfigPtrOutputWithContext

func (o FunctionDeadLetterConfigPtrOutput) ToFunctionDeadLetterConfigPtrOutputWithContext(ctx context.Context) FunctionDeadLetterConfigPtrOutput

type FunctionEnvironment

type FunctionEnvironment struct {
	// A map that defines environment variables for the Lambda function.
	Variables map[string]string `pulumi:"variables"`
}

type FunctionEnvironmentArgs

type FunctionEnvironmentArgs struct {
	// A map that defines environment variables for the Lambda function.
	Variables pulumi.StringMapInput `pulumi:"variables"`
}

func (FunctionEnvironmentArgs) ElementType

func (FunctionEnvironmentArgs) ElementType() reflect.Type

func (FunctionEnvironmentArgs) ToFunctionEnvironmentOutput

func (i FunctionEnvironmentArgs) ToFunctionEnvironmentOutput() FunctionEnvironmentOutput

func (FunctionEnvironmentArgs) ToFunctionEnvironmentOutputWithContext

func (i FunctionEnvironmentArgs) ToFunctionEnvironmentOutputWithContext(ctx context.Context) FunctionEnvironmentOutput

func (FunctionEnvironmentArgs) ToFunctionEnvironmentPtrOutput

func (i FunctionEnvironmentArgs) ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput

func (FunctionEnvironmentArgs) ToFunctionEnvironmentPtrOutputWithContext

func (i FunctionEnvironmentArgs) ToFunctionEnvironmentPtrOutputWithContext(ctx context.Context) FunctionEnvironmentPtrOutput

type FunctionEnvironmentInput

type FunctionEnvironmentInput interface {
	pulumi.Input

	ToFunctionEnvironmentOutput() FunctionEnvironmentOutput
	ToFunctionEnvironmentOutputWithContext(context.Context) FunctionEnvironmentOutput
}

FunctionEnvironmentInput is an input type that accepts FunctionEnvironmentArgs and FunctionEnvironmentOutput values. You can construct a concrete instance of `FunctionEnvironmentInput` via:

FunctionEnvironmentArgs{...}

type FunctionEnvironmentOutput

type FunctionEnvironmentOutput struct{ *pulumi.OutputState }

func (FunctionEnvironmentOutput) ElementType

func (FunctionEnvironmentOutput) ElementType() reflect.Type

func (FunctionEnvironmentOutput) ToFunctionEnvironmentOutput

func (o FunctionEnvironmentOutput) ToFunctionEnvironmentOutput() FunctionEnvironmentOutput

func (FunctionEnvironmentOutput) ToFunctionEnvironmentOutputWithContext

func (o FunctionEnvironmentOutput) ToFunctionEnvironmentOutputWithContext(ctx context.Context) FunctionEnvironmentOutput

func (FunctionEnvironmentOutput) ToFunctionEnvironmentPtrOutput

func (o FunctionEnvironmentOutput) ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput

func (FunctionEnvironmentOutput) ToFunctionEnvironmentPtrOutputWithContext

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

func (FunctionEnvironmentOutput) Variables

A map that defines environment variables for the Lambda function.

type FunctionEnvironmentPtrInput

type FunctionEnvironmentPtrInput interface {
	pulumi.Input

	ToFunctionEnvironmentPtrOutput() FunctionEnvironmentPtrOutput
	ToFunctionEnvironmentPtrOutputWithContext(context.Context) FunctionEnvironmentPtrOutput
}

FunctionEnvironmentPtrInput is an input type that accepts FunctionEnvironmentArgs, FunctionEnvironmentPtr and FunctionEnvironmentPtrOutput values. You can construct a concrete instance of `FunctionEnvironmentPtrInput` via:

		 FunctionEnvironmentArgs{...}

 or:

		 nil

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

A map that defines environment variables for the Lambda function.

type FunctionEventInvokeConfig

type FunctionEventInvokeConfig struct {
	pulumi.CustomResourceState

	// Configuration block with destination configuration. See below for details.
	DestinationConfig FunctionEventInvokeConfigDestinationConfigPtrOutput `pulumi:"destinationConfig"`
	// Name or Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.
	FunctionName pulumi.StringOutput `pulumi:"functionName"`
	// Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.
	MaximumEventAgeInSeconds pulumi.IntPtrOutput `pulumi:"maximumEventAgeInSeconds"`
	// Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.
	MaximumRetryAttempts pulumi.IntPtrOutput `pulumi:"maximumRetryAttempts"`
	// Lambda Function published version, `$LATEST`, or Lambda Alias name.
	Qualifier pulumi.StringPtrOutput `pulumi:"qualifier"`
}

Manages an asynchronous invocation configuration for a Lambda Function or Alias. More information about asynchronous invocations and the configurable values can be found in the [Lambda Developer Guide](https://docs.aws.amazon.com/lambda/latest/dg/invocation-async.html).

func GetFunctionEventInvokeConfig

func GetFunctionEventInvokeConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FunctionEventInvokeConfigState, opts ...pulumi.ResourceOption) (*FunctionEventInvokeConfig, error)

GetFunctionEventInvokeConfig gets an existing FunctionEventInvokeConfig resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewFunctionEventInvokeConfig

func NewFunctionEventInvokeConfig(ctx *pulumi.Context,
	name string, args *FunctionEventInvokeConfigArgs, opts ...pulumi.ResourceOption) (*FunctionEventInvokeConfig, error)

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

type FunctionEventInvokeConfigArgs

type FunctionEventInvokeConfigArgs struct {
	// Configuration block with destination configuration. See below for details.
	DestinationConfig FunctionEventInvokeConfigDestinationConfigPtrInput
	// Name or Amazon Resource Name (ARN) of the Lambda Function, omitting any version or alias qualifier.
	FunctionName pulumi.StringInput
	// Maximum age of a request that Lambda sends to a function for processing in seconds. Valid values between 60 and 21600.
	MaximumEventAgeInSeconds pulumi.IntPtrInput
	// Maximum number of times to retry when the function returns an error. Valid values between 0 and 2. Defaults to 2.
	MaximumRetryAttempts pulumi.IntPtrInput
	// Lambda Function published version, `$LATEST`, or Lambda Alias name.
	Qualifier pulumi.StringPtrInput
}

The set of arguments for constructing a FunctionEventInvokeConfig resource.

func (FunctionEventInvokeConfigArgs) ElementType

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

type FunctionState struct {
	// The Amazon Resource Name (ARN) identifying your Lambda Function.
	Arn pulumi.StringPtrInput
	// The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
	Code pulumi.ArchiveInput
	// Nested block to configure the function's *dead letter queue*. See details below.
	DeadLetterConfig FunctionDeadLetterConfigPtrInput
	// Description of what your Lambda Function does.
	Description pulumi.StringPtrInput
	// The Lambda environment's configuration settings. Fields documented below.
	Environment FunctionEnvironmentPtrInput
	// The function [entrypoint][3] in your code.
	Handler pulumi.StringPtrInput
	// The ARN to be used for invoking Lambda Function from API Gateway - to be used in [`apigateway.Integration`](https://www.terraform.io/docs/providers/aws/r/api_gateway_integration.html)'s `uri`
	InvokeArn pulumi.StringPtrInput
	// The ARN for the KMS encryption key.
	KmsKeyArn pulumi.StringPtrInput
	// The date this resource was last modified.
	LastModified pulumi.StringPtrInput
	// List of Lambda Layer Version ARNs (maximum of 5) to attach to your Lambda Function. See [Lambda Layers][10]
	Layers pulumi.StringArrayInput
	// Amount of memory in MB your Lambda Function can use at runtime. Defaults to `128`. See [Limits][5]
	MemorySize pulumi.IntPtrInput
	// A unique name for your Lambda Function.
	Name pulumi.StringPtrInput
	// Whether to publish creation/change as new Lambda Function Version. Defaults to `false`.
	Publish pulumi.BoolPtrInput
	// The Amazon Resource Name (ARN) identifying your Lambda Function Version
	// (if versioning is enabled via `publish = true`).
	QualifiedArn pulumi.StringPtrInput
	// The amount of reserved concurrent executions for this lambda function. A value of `0` disables lambda from being triggered and `-1` removes any concurrency limitations. Defaults to Unreserved Concurrency Limits `-1`. See [Managing Concurrency][9]
	ReservedConcurrentExecutions pulumi.IntPtrInput
	// IAM role attached to the Lambda Function. This governs both who / what can invoke your Lambda Function, as well as what resources our Lambda Function has access to. See [Lambda Permission Model][4] for more details.
	Role pulumi.StringPtrInput
	// See [Runtimes][6] for valid values.
	Runtime pulumi.StringPtrInput
	// The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function.
	S3Bucket pulumi.StringPtrInput
	// The S3 key of an object containing the function's deployment package. Conflicts with `filename`.
	S3Key pulumi.StringPtrInput
	// The object version containing the function's deployment package. Conflicts with `filename`.
	S3ObjectVersion pulumi.StringPtrInput
	// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `filebase64sha256("file.zip")` (this provider 0.11.12 and later) or `base64sha256(file("file.zip"))` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda function source archive.
	SourceCodeHash pulumi.StringPtrInput
	// The size in bytes of the function .zip file.
	SourceCodeSize pulumi.IntPtrInput
	// A mapping of tags to assign to the object.
	Tags pulumi.MapInput
	// The amount of time your Lambda Function has to run in seconds. Defaults to `3`. See [Limits][5]
	Timeout       pulumi.IntPtrInput
	TracingConfig FunctionTracingConfigPtrInput
	// Latest published version of your Lambda Function.
	Version pulumi.StringPtrInput
	// Provide this to allow your function to access your VPC. Fields documented below. See [Lambda in VPC][7]
	VpcConfig FunctionVpcConfigPtrInput
}

func (FunctionState) ElementType

func (FunctionState) ElementType() reflect.Type

type FunctionTracingConfig

type FunctionTracingConfig struct {
	// Can be either `PassThrough` or `Active`. If PassThrough, Lambda will only trace
	// the request from an upstream service if it contains a tracing header with
	// "sampled=1". If Active, Lambda will respect any tracing header it receives
	// from an upstream service. If no tracing header is received, Lambda will call
	// X-Ray for a tracing decision.
	Mode string `pulumi:"mode"`
}

type FunctionTracingConfigArgs

type FunctionTracingConfigArgs struct {
	// Can be either `PassThrough` or `Active`. If PassThrough, Lambda will only trace
	// the request from an upstream service if it contains a tracing header with
	// "sampled=1". If Active, Lambda will respect any tracing header it receives
	// from an upstream service. If no tracing header is received, Lambda will call
	// X-Ray for a tracing decision.
	Mode pulumi.StringInput `pulumi:"mode"`
}

func (FunctionTracingConfigArgs) ElementType

func (FunctionTracingConfigArgs) ElementType() reflect.Type

func (FunctionTracingConfigArgs) ToFunctionTracingConfigOutput

func (i FunctionTracingConfigArgs) ToFunctionTracingConfigOutput() FunctionTracingConfigOutput

func (FunctionTracingConfigArgs) ToFunctionTracingConfigOutputWithContext

func (i FunctionTracingConfigArgs) ToFunctionTracingConfigOutputWithContext(ctx context.Context) FunctionTracingConfigOutput

func (FunctionTracingConfigArgs) ToFunctionTracingConfigPtrOutput

func (i FunctionTracingConfigArgs) ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput

func (FunctionTracingConfigArgs) ToFunctionTracingConfigPtrOutputWithContext

func (i FunctionTracingConfigArgs) ToFunctionTracingConfigPtrOutputWithContext(ctx context.Context) FunctionTracingConfigPtrOutput

type FunctionTracingConfigInput

type FunctionTracingConfigInput interface {
	pulumi.Input

	ToFunctionTracingConfigOutput() FunctionTracingConfigOutput
	ToFunctionTracingConfigOutputWithContext(context.Context) FunctionTracingConfigOutput
}

FunctionTracingConfigInput is an input type that accepts FunctionTracingConfigArgs and FunctionTracingConfigOutput values. You can construct a concrete instance of `FunctionTracingConfigInput` via:

FunctionTracingConfigArgs{...}

type FunctionTracingConfigOutput

type FunctionTracingConfigOutput struct{ *pulumi.OutputState }

func (FunctionTracingConfigOutput) ElementType

func (FunctionTracingConfigOutput) Mode

Can be either `PassThrough` or `Active`. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.

func (FunctionTracingConfigOutput) ToFunctionTracingConfigOutput

func (o FunctionTracingConfigOutput) ToFunctionTracingConfigOutput() FunctionTracingConfigOutput

func (FunctionTracingConfigOutput) ToFunctionTracingConfigOutputWithContext

func (o FunctionTracingConfigOutput) ToFunctionTracingConfigOutputWithContext(ctx context.Context) FunctionTracingConfigOutput

func (FunctionTracingConfigOutput) ToFunctionTracingConfigPtrOutput

func (o FunctionTracingConfigOutput) ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput

func (FunctionTracingConfigOutput) ToFunctionTracingConfigPtrOutputWithContext

func (o FunctionTracingConfigOutput) ToFunctionTracingConfigPtrOutputWithContext(ctx context.Context) FunctionTracingConfigPtrOutput

type FunctionTracingConfigPtrInput

type FunctionTracingConfigPtrInput interface {
	pulumi.Input

	ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput
	ToFunctionTracingConfigPtrOutputWithContext(context.Context) FunctionTracingConfigPtrOutput
}

FunctionTracingConfigPtrInput is an input type that accepts FunctionTracingConfigArgs, FunctionTracingConfigPtr and FunctionTracingConfigPtrOutput values. You can construct a concrete instance of `FunctionTracingConfigPtrInput` via:

		 FunctionTracingConfigArgs{...}

 or:

		 nil

type FunctionTracingConfigPtrOutput

type FunctionTracingConfigPtrOutput struct{ *pulumi.OutputState }

func (FunctionTracingConfigPtrOutput) Elem

func (FunctionTracingConfigPtrOutput) ElementType

func (FunctionTracingConfigPtrOutput) Mode

Can be either `PassThrough` or `Active`. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.

func (FunctionTracingConfigPtrOutput) ToFunctionTracingConfigPtrOutput

func (o FunctionTracingConfigPtrOutput) ToFunctionTracingConfigPtrOutput() FunctionTracingConfigPtrOutput

func (FunctionTracingConfigPtrOutput) ToFunctionTracingConfigPtrOutputWithContext

func (o FunctionTracingConfigPtrOutput) ToFunctionTracingConfigPtrOutputWithContext(ctx context.Context) FunctionTracingConfigPtrOutput

type FunctionVpcConfig

type FunctionVpcConfig struct {
	// A list of security group IDs associated with the Lambda function.
	SecurityGroupIds []string `pulumi:"securityGroupIds"`
	// A list of subnet IDs associated with the Lambda function.
	SubnetIds []string `pulumi:"subnetIds"`
	VpcId     *string  `pulumi:"vpcId"`
}

type FunctionVpcConfigArgs

type FunctionVpcConfigArgs struct {
	// A list of security group IDs associated with the Lambda function.
	SecurityGroupIds pulumi.StringArrayInput `pulumi:"securityGroupIds"`
	// A list of subnet IDs associated with the Lambda function.
	SubnetIds pulumi.StringArrayInput `pulumi:"subnetIds"`
	VpcId     pulumi.StringPtrInput   `pulumi:"vpcId"`
}

func (FunctionVpcConfigArgs) ElementType

func (FunctionVpcConfigArgs) ElementType() reflect.Type

func (FunctionVpcConfigArgs) ToFunctionVpcConfigOutput

func (i FunctionVpcConfigArgs) ToFunctionVpcConfigOutput() FunctionVpcConfigOutput

func (FunctionVpcConfigArgs) ToFunctionVpcConfigOutputWithContext

func (i FunctionVpcConfigArgs) ToFunctionVpcConfigOutputWithContext(ctx context.Context) FunctionVpcConfigOutput

func (FunctionVpcConfigArgs) ToFunctionVpcConfigPtrOutput

func (i FunctionVpcConfigArgs) ToFunctionVpcConfigPtrOutput() FunctionVpcConfigPtrOutput

func (FunctionVpcConfigArgs) ToFunctionVpcConfigPtrOutputWithContext

func (i FunctionVpcConfigArgs) ToFunctionVpcConfigPtrOutputWithContext(ctx context.Context) FunctionVpcConfigPtrOutput

type FunctionVpcConfigInput

type FunctionVpcConfigInput interface {
	pulumi.Input

	ToFunctionVpcConfigOutput() FunctionVpcConfigOutput
	ToFunctionVpcConfigOutputWithContext(context.Context) FunctionVpcConfigOutput
}

FunctionVpcConfigInput is an input type that accepts FunctionVpcConfigArgs and FunctionVpcConfigOutput values. You can construct a concrete instance of `FunctionVpcConfigInput` via:

FunctionVpcConfigArgs{...}

type FunctionVpcConfigOutput

type FunctionVpcConfigOutput struct{ *pulumi.OutputState }

func (FunctionVpcConfigOutput) ElementType

func (FunctionVpcConfigOutput) ElementType() reflect.Type

func (FunctionVpcConfigOutput) SecurityGroupIds

func (o FunctionVpcConfigOutput) SecurityGroupIds() pulumi.StringArrayOutput

A list of security group IDs associated with the Lambda function.

func (FunctionVpcConfigOutput) SubnetIds

A list of subnet IDs associated with the Lambda function.

func (FunctionVpcConfigOutput) ToFunctionVpcConfigOutput

func (o FunctionVpcConfigOutput) ToFunctionVpcConfigOutput() FunctionVpcConfigOutput

func (FunctionVpcConfigOutput) ToFunctionVpcConfigOutputWithContext

func (o FunctionVpcConfigOutput) ToFunctionVpcConfigOutputWithContext(ctx context.Context) FunctionVpcConfigOutput

func (FunctionVpcConfigOutput) ToFunctionVpcConfigPtrOutput

func (o FunctionVpcConfigOutput) ToFunctionVpcConfigPtrOutput() FunctionVpcConfigPtrOutput

func (FunctionVpcConfigOutput) ToFunctionVpcConfigPtrOutputWithContext

func (o FunctionVpcConfigOutput) ToFunctionVpcConfigPtrOutputWithContext(ctx context.Context) FunctionVpcConfigPtrOutput

func (FunctionVpcConfigOutput) VpcId

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

A list of security group IDs associated with the Lambda function.

func (FunctionVpcConfigPtrOutput) SubnetIds

A list of subnet IDs associated with the Lambda function.

func (FunctionVpcConfigPtrOutput) ToFunctionVpcConfigPtrOutput

func (o FunctionVpcConfigPtrOutput) ToFunctionVpcConfigPtrOutput() FunctionVpcConfigPtrOutput

func (FunctionVpcConfigPtrOutput) ToFunctionVpcConfigPtrOutputWithContext

func (o FunctionVpcConfigPtrOutput) ToFunctionVpcConfigPtrOutputWithContext(ctx context.Context) FunctionVpcConfigPtrOutput

func (FunctionVpcConfigPtrOutput) VpcId

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

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

A collection of arguments for invoking getInvocation.

type GetInvocationResult

type GetInvocationResult struct {
	FunctionName string `pulumi:"functionName"`
	// id is 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"`
	// This field is set only if result is a map of primitive types, where the map is string keys and string values.
	ResultMap map[string]string `pulumi:"resultMap"`
}

A collection of values returned by getInvocation.

func GetInvocation

func GetInvocation(ctx *pulumi.Context, args *GetInvocationArgs, opts ...pulumi.InvokeOption) (*GetInvocationResult, error)

Use this data source to invoke custom lambda functions as data source. The lambda function is invoked with [RequestResponse](https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html#API_Invoke_RequestSyntax) invocation type.

type LayerVersion

type LayerVersion struct {
	pulumi.CustomResourceState

	// The Amazon Resource Name (ARN) of the Lambda Layer with version.
	Arn pulumi.StringOutput `pulumi:"arn"`
	// The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
	Code pulumi.ArchiveOutput `pulumi:"code"`
	// A list of [Runtimes][2] this layer is compatible with. Up to 5 runtimes can be specified.
	CompatibleRuntimes pulumi.StringArrayOutput `pulumi:"compatibleRuntimes"`
	// The date this resource was created.
	CreatedDate pulumi.StringOutput `pulumi:"createdDate"`
	// Description of what your Lambda Layer does.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The Amazon Resource Name (ARN) of the Lambda Layer without version.
	LayerArn pulumi.StringOutput `pulumi:"layerArn"`
	// A unique name for your Lambda Layer
	LayerName pulumi.StringOutput `pulumi:"layerName"`
	// License info for your Lambda Layer. See [License Info][3].
	LicenseInfo pulumi.StringPtrOutput `pulumi:"licenseInfo"`
	// The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function.
	S3Bucket pulumi.StringPtrOutput `pulumi:"s3Bucket"`
	// The S3 key of an object containing the function's deployment package. Conflicts with `filename`.
	S3Key pulumi.StringPtrOutput `pulumi:"s3Key"`
	// The object version containing the function's deployment package. Conflicts with `filename`.
	S3ObjectVersion pulumi.StringPtrOutput `pulumi:"s3ObjectVersion"`
	// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `${filebase64sha256("file.zip")}` (this provider 0.11.12 or later) or `${base64sha256(file("file.zip"))}` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda layer source archive.
	SourceCodeHash pulumi.StringOutput `pulumi:"sourceCodeHash"`
	// The size in bytes of the function .zip file.
	SourceCodeSize pulumi.IntOutput `pulumi:"sourceCodeSize"`
	// This Lamba Layer version.
	Version pulumi.StringOutput `pulumi:"version"`
}

Provides a Lambda Layer Version resource. Lambda Layers allow you to reuse shared bits of code across multiple lambda functions.

For information about Lambda Layers and how to use them, see [AWS Lambda Layers][1]

## Specifying the Deployment Package

AWS Lambda Layers expect source code to be provided as a deployment package whose structure varies depending on which `compatibleRuntimes` this layer specifies. See [Runtimes][2] for the valid values of `compatibleRuntimes`.

Once you have created your deployment package you can specify it either directly as a local file (using the `filename` argument) or indirectly via Amazon S3 (using the `s3Bucket`, `s3Key` and `s3ObjectVersion` arguments). When providing the deployment package via S3 it may be useful to use the `s3.BucketObject` resource to upload it.

For larger deployment packages it is recommended by Amazon to upload via S3, since the S3 API has better support for uploading large files efficiently.

func GetLayerVersion

func GetLayerVersion(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LayerVersionState, opts ...pulumi.ResourceOption) (*LayerVersion, error)

GetLayerVersion gets an existing LayerVersion resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewLayerVersion

func NewLayerVersion(ctx *pulumi.Context,
	name string, args *LayerVersionArgs, opts ...pulumi.ResourceOption) (*LayerVersion, error)

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

type LayerVersionArgs

type LayerVersionArgs struct {
	// The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
	Code pulumi.ArchiveInput
	// A list of [Runtimes][2] this layer is compatible with. Up to 5 runtimes can be specified.
	CompatibleRuntimes pulumi.StringArrayInput
	// Description of what your Lambda Layer does.
	Description pulumi.StringPtrInput
	// A unique name for your Lambda Layer
	LayerName pulumi.StringInput
	// License info for your Lambda Layer. See [License Info][3].
	LicenseInfo pulumi.StringPtrInput
	// The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function.
	S3Bucket pulumi.StringPtrInput
	// The S3 key of an object containing the function's deployment package. Conflicts with `filename`.
	S3Key pulumi.StringPtrInput
	// The object version containing the function's deployment package. Conflicts with `filename`.
	S3ObjectVersion pulumi.StringPtrInput
	// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `${filebase64sha256("file.zip")}` (this provider 0.11.12 or later) or `${base64sha256(file("file.zip"))}` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda layer source archive.
	SourceCodeHash pulumi.StringPtrInput
}

The set of arguments for constructing a LayerVersion resource.

func (LayerVersionArgs) ElementType

func (LayerVersionArgs) ElementType() reflect.Type

type LayerVersionState

type LayerVersionState struct {
	// The Amazon Resource Name (ARN) of the Lambda Layer with version.
	Arn pulumi.StringPtrInput
	// The path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.
	Code pulumi.ArchiveInput
	// A list of [Runtimes][2] this layer is compatible with. Up to 5 runtimes can be specified.
	CompatibleRuntimes pulumi.StringArrayInput
	// The date this resource was created.
	CreatedDate pulumi.StringPtrInput
	// Description of what your Lambda Layer does.
	Description pulumi.StringPtrInput
	// The Amazon Resource Name (ARN) of the Lambda Layer without version.
	LayerArn pulumi.StringPtrInput
	// A unique name for your Lambda Layer
	LayerName pulumi.StringPtrInput
	// License info for your Lambda Layer. See [License Info][3].
	LicenseInfo pulumi.StringPtrInput
	// The S3 bucket location containing the function's deployment package. Conflicts with `filename`. This bucket must reside in the same AWS region where you are creating the Lambda function.
	S3Bucket pulumi.StringPtrInput
	// The S3 key of an object containing the function's deployment package. Conflicts with `filename`.
	S3Key pulumi.StringPtrInput
	// The object version containing the function's deployment package. Conflicts with `filename`.
	S3ObjectVersion pulumi.StringPtrInput
	// Used to trigger updates. Must be set to a base64-encoded SHA256 hash of the package file specified with either `filename` or `s3Key`. The usual way to set this is `${filebase64sha256("file.zip")}` (this provider 0.11.12 or later) or `${base64sha256(file("file.zip"))}` (this provider 0.11.11 and earlier), where "file.zip" is the local filename of the lambda layer source archive.
	SourceCodeHash pulumi.StringPtrInput
	// The size in bytes of the function .zip file.
	SourceCodeSize pulumi.IntPtrInput
	// This Lamba Layer version.
	Version pulumi.StringPtrInput
}

func (LayerVersionState) ElementType

func (LayerVersionState) ElementType() reflect.Type

type LookupAliasArgs

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

A collection of arguments for invoking getAlias.

type LookupAliasResult

type LookupAliasResult struct {
	// The Amazon Resource Name (ARN) identifying the Lambda function alias.
	Arn string `pulumi:"arn"`
	// Description of alias.
	Description  string `pulumi:"description"`
	FunctionName string `pulumi:"functionName"`
	// Lambda function version which the alias uses.
	FunctionVersion string `pulumi:"functionVersion"`
	// id is 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.

type LookupFunctionArgs

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

A collection of arguments for invoking getFunction.

type LookupFunctionResult

type LookupFunctionResult struct {
	// Unqualified (no `:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `qualifiedArn`.
	Arn string `pulumi:"arn"`
	// Configure the function's *dead letter queue*.
	DeadLetterConfig GetFunctionDeadLetterConfig `pulumi:"deadLetterConfig"`
	// Description of what your Lambda Function does.
	Description string `pulumi:"description"`
	// The Lambda environment's configuration settings.
	Environment  GetFunctionEnvironment `pulumi:"environment"`
	FunctionName string                 `pulumi:"functionName"`
	// The function entrypoint in your code.
	Handler string `pulumi:"handler"`
	// id is the provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The ARN to be used for invoking Lambda Function from API Gateway.
	InvokeArn string `pulumi:"invokeArn"`
	// The ARN for the KMS encryption key.
	KmsKeyArn string `pulumi:"kmsKeyArn"`
	// The date this resource was last modified.
	LastModified string `pulumi:"lastModified"`
	// A list of Lambda Layer ARNs attached to your Lambda Function.
	Layers []string `pulumi:"layers"`
	// Amount of memory in MB your Lambda Function can use at runtime.
	MemorySize int `pulumi:"memorySize"`
	// Qualified (`:QUALIFIER` or `:VERSION` suffix) Amazon Resource Name (ARN) identifying your Lambda Function. See also `arn`.
	QualifiedArn string  `pulumi:"qualifiedArn"`
	Qualifier    *string `pulumi:"qualifier"`
	// The amount of reserved concurrent executions for this lambda function or `-1` if unreserved.
	ReservedConcurrentExecutions int `pulumi:"reservedConcurrentExecutions"`
	// IAM role attached to the Lambda Function.
	Role string `pulumi:"role"`
	// The runtime environment for the Lambda function..
	Runtime string `pulumi:"runtime"`
	// Base64-encoded representation of raw SHA-256 sum of the zip file.
	SourceCodeHash string `pulumi:"sourceCodeHash"`
	// The size in bytes of the function .zip file.
	SourceCodeSize int                    `pulumi:"sourceCodeSize"`
	Tags           map[string]interface{} `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.

type LookupLayerVersionArgs

type LookupLayerVersionArgs struct {
	// Specific runtime the layer version must support. Conflicts with `version`. If specified, the latest available layer version supporting the provided runtime will be used.
	CompatibleRuntime *string `pulumi:"compatibleRuntime"`
	// Name of the lambda layer.
	LayerName string `pulumi:"layerName"`
	// Specific layer version. Conflicts with `compatibleRuntime`. If omitted, the latest available layer version will be used.
	Version *int `pulumi:"version"`
}

A collection of arguments for invoking getLayerVersion.

type LookupLayerVersionResult

type LookupLayerVersionResult struct {
	// The Amazon Resource Name (ARN) of the Lambda Layer with version.
	Arn               string  `pulumi:"arn"`
	CompatibleRuntime *string `pulumi:"compatibleRuntime"`
	// A list of [Runtimes][1] 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"`
	// id is the provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The Amazon Resource Name (ARN) of the Lambda Layer without version.
	LayerArn  string `pulumi:"layerArn"`
	LayerName string `pulumi:"layerName"`
	// License info associated with the specific Lambda Layer version.
	LicenseInfo string `pulumi:"licenseInfo"`
	// Base64-encoded representation of raw SHA-256 sum of the zip file.
	SourceCodeHash string `pulumi:"sourceCodeHash"`
	// The size in bytes of the function .zip file.
	SourceCodeSize int `pulumi:"sourceCodeSize"`
	// This Lamba Layer version.
	Version int `pulumi:"version"`
}

A collection of values returned by getLayerVersion.

func LookupLayerVersion

func LookupLayerVersion(ctx *pulumi.Context, args *LookupLayerVersionArgs, opts ...pulumi.InvokeOption) (*LookupLayerVersionResult, error)

Provides information about a Lambda Layer Version.

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][1].
	EventSourceToken pulumi.StringPtrOutput `pulumi:"eventSourceToken"`
	// Name of the Lambda function whose resource policy you are updating
	Function pulumi.StringOutput `pulumi:"function"`
	// The principal who is getting this permission.
	// e.g. `s3.amazonaws.com`, an AWS account ID, or any valid AWS service principal
	// such as `events.amazonaws.com` or `sns.amazonaws.com`.
	Principal pulumi.StringOutput `pulumi:"principal"`
	// Query parameter to specify function version or alias name.
	// The permission will then apply to the specific qualified ARN.
	// e.g. `arn:aws:lambda:aws-region:acct-id:function:function-name:2`
	Qualifier pulumi.StringPtrOutput `pulumi:"qualifier"`
	// This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner.
	SourceAccount pulumi.StringPtrOutput `pulumi:"sourceAccount"`
	// When granting Amazon S3 or CloudWatch Events permission to
	// invoke your function, you should specify this field with the Amazon Resource Name (ARN)
	// for the S3 Bucket or CloudWatch Events Rule as its value.  This ensures that only events
	// generated from the specified bucket or rule can invoke the function.
	// API Gateway ARNs have a unique structure described
	// [here](http://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"`
}

Creates a Lambda permission to allow external sources invoking the Lambda function (e.g. CloudWatch Event Rule, SNS or S3).

func GetPermission

func GetPermission(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PermissionState, opts ...pulumi.ResourceOption) (*Permission, error)

GetPermission gets an existing Permission resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewPermission

func NewPermission(ctx *pulumi.Context,
	name string, args *PermissionArgs, opts ...pulumi.ResourceOption) (*Permission, error)

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

type PermissionArgs

type PermissionArgs struct {
	// The AWS Lambda action you want to allow in this statement. (e.g. `lambda:InvokeFunction`)
	Action pulumi.StringInput
	// The Event Source Token to validate.  Used with [Alexa Skills][1].
	EventSourceToken pulumi.StringPtrInput
	// Name of the Lambda function whose resource policy you are updating
	Function pulumi.Input
	// The principal who is getting this permission.
	// e.g. `s3.amazonaws.com`, an AWS account ID, or any valid AWS service principal
	// such as `events.amazonaws.com` or `sns.amazonaws.com`.
	Principal pulumi.StringInput
	// Query parameter to specify function version or alias name.
	// The permission will then apply to the specific qualified ARN.
	// e.g. `arn:aws:lambda:aws-region:acct-id:function:function-name:2`
	Qualifier pulumi.StringPtrInput
	// This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner.
	SourceAccount pulumi.StringPtrInput
	// When granting Amazon S3 or CloudWatch Events permission to
	// invoke your function, you should specify this field with the Amazon Resource Name (ARN)
	// for the S3 Bucket or CloudWatch Events Rule as its value.  This ensures that only events
	// generated from the specified bucket or rule can invoke the function.
	// API Gateway ARNs have a unique structure described
	// [here](http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-control-access-using-iam-policies-to-invoke-api.html).
	SourceArn pulumi.StringPtrInput
	// A unique statement identifier. By default generated by this provider.
	StatementId pulumi.StringPtrInput
	// A statement identifier prefix. This provider will generate a unique suffix. Conflicts with `statementId`.
	StatementIdPrefix pulumi.StringPtrInput
}

The set of arguments for constructing a Permission resource.

func (PermissionArgs) ElementType

func (PermissionArgs) ElementType() reflect.Type

type PermissionState

type PermissionState struct {
	// The AWS Lambda action you want to allow in this statement. (e.g. `lambda:InvokeFunction`)
	Action pulumi.StringPtrInput
	// The Event Source Token to validate.  Used with [Alexa Skills][1].
	EventSourceToken pulumi.StringPtrInput
	// Name of the Lambda function whose resource policy you are updating
	Function pulumi.StringPtrInput
	// The principal who is getting this permission.
	// e.g. `s3.amazonaws.com`, an AWS account ID, or any valid AWS service principal
	// such as `events.amazonaws.com` or `sns.amazonaws.com`.
	Principal pulumi.StringPtrInput
	// Query parameter to specify function version or alias name.
	// The permission will then apply to the specific qualified ARN.
	// e.g. `arn:aws:lambda:aws-region:acct-id:function:function-name:2`
	Qualifier pulumi.StringPtrInput
	// This parameter is used for S3 and SES. The AWS account ID (without a hyphen) of the source owner.
	SourceAccount pulumi.StringPtrInput
	// When granting Amazon S3 or CloudWatch Events permission to
	// invoke your function, you should specify this field with the Amazon Resource Name (ARN)
	// for the S3 Bucket or CloudWatch Events Rule as its value.  This ensures that only events
	// generated from the specified bucket or rule can invoke the function.
	// API Gateway ARNs have a unique structure described
	// [here](http://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.

func GetProvisionedConcurrencyConfig

func GetProvisionedConcurrencyConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProvisionedConcurrencyConfigState, opts ...pulumi.ResourceOption) (*ProvisionedConcurrencyConfig, error)

GetProvisionedConcurrencyConfig gets an existing ProvisionedConcurrencyConfig resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProvisionedConcurrencyConfig

func NewProvisionedConcurrencyConfig(ctx *pulumi.Context,
	name string, args *ProvisionedConcurrencyConfigArgs, opts ...pulumi.ResourceOption) (*ProvisionedConcurrencyConfig, error)

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

type ProvisionedConcurrencyConfigArgs

type ProvisionedConcurrencyConfigArgs struct {
	// Name or Amazon Resource Name (ARN) of the Lambda Function.
	FunctionName pulumi.StringInput
	// Amount of capacity to allocate. Must be greater than or equal to `1`.
	ProvisionedConcurrentExecutions pulumi.IntInput
	// Lambda Function version or Lambda Alias name.
	Qualifier pulumi.StringInput
}

The set of arguments for constructing a ProvisionedConcurrencyConfig resource.

func (ProvisionedConcurrencyConfigArgs) ElementType

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

Jump to

Keyboard shortcuts

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