GetFunction
Provides information about a Lambda Function.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var config = new Config();
var functionName = config.RequireObject<dynamic>("functionName");
var existing = Output.Create(Aws.Lambda.GetFunction.InvokeAsync(new Aws.Lambda.GetFunctionArgs
{
FunctionName = functionName,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/lambda"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := lambda.LookupFunction(ctx, &lambda.LookupFunctionArgs{
FunctionName: functionName,
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
config = pulumi.Config()
function_name = config.require_object("functionName")
existing = aws.lambda.get_function(function_name=function_name)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const config = new pulumi.Config();
const functionName = config.require("functionName");
const existing = pulumi.output(aws.lambda.getFunction({
functionName: functionName,
}, { async: true }));Using GetFunction
function getFunction(args: GetFunctionArgs, opts?: InvokeOptions): Promise<GetFunctionResult>function get_function(function_name=None, qualifier=None, tags=None, opts=None)func LookupFunction(ctx *Context, args *LookupFunctionArgs, opts ...InvokeOption) (*LookupFunctionResult, error)Note: This function is named
LookupFunctionin the Go SDK.
public static class GetFunction {
public static Task<GetFunctionResult> InvokeAsync(GetFunctionArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Function
Name string Name of the lambda function.
- Qualifier string
Alias name or version number of the lambda function. e.g.
$LATEST,my-alias, or1- Dictionary<string, string>
- Function
Name string Name of the lambda function.
- Qualifier string
Alias name or version number of the lambda function. e.g.
$LATEST,my-alias, or1- map[string]string
- function
Name string Name of the lambda function.
- qualifier string
Alias name or version number of the lambda function. e.g.
$LATEST,my-alias, or1- {[key: string]: string}
- function_
name str Name of the lambda function.
- qualifier str
Alias name or version number of the lambda function. e.g.
$LATEST,my-alias, or1- Dict[str, str]
GetFunction Result
The following output properties are available:
- Arn string
Unqualified (no
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoqualified_arn.- Dead
Letter GetConfig Function Dead Letter Config Configure the function’s dead letter queue.
- Description string
Description of what your Lambda Function does.
- Environment
Get
Function Environment The Lambda environment’s configuration settings.
- File
System List<GetConfigs Function File System Config> The connection settings for an Amazon EFS file system.
- Function
Name string - Handler string
The function entrypoint in your code.
- Id string
The provider-assigned unique ID for this managed resource.
- Invoke
Arn string The ARN to be used for invoking Lambda Function from API Gateway.
- Kms
Key stringArn The ARN for the KMS encryption key.
- Last
Modified string The date this resource was last modified.
- Layers List<string>
A list of Lambda Layer ARNs attached to your Lambda Function.
- Memory
Size int Amount of memory in MB your Lambda Function can use at runtime.
- Qualified
Arn string Qualified (
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoarn.- Reserved
Concurrent intExecutions The amount of reserved concurrent executions for this lambda function or
-1if unreserved.- Role string
IAM role attached to the Lambda Function.
- Runtime string
The runtime environment for the Lambda function..
- Source
Code stringHash Base64-encoded representation of raw SHA-256 sum of the zip file.
- Source
Code intSize The size in bytes of the function .zip file.
- Dictionary<string, string>
- Timeout int
The function execution time at which Lambda should terminate the function.
- Tracing
Config GetFunction Tracing Config Tracing settings of the function.
- Version string
The version of the Lambda function.
- Vpc
Config GetFunction Vpc Config VPC configuration associated with your Lambda function.
- Qualifier string
- Arn string
Unqualified (no
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoqualified_arn.- Dead
Letter GetConfig Function Dead Letter Config Configure the function’s dead letter queue.
- Description string
Description of what your Lambda Function does.
- Environment
Get
Function Environment The Lambda environment’s configuration settings.
- File
System []GetConfigs Function File System Config The connection settings for an Amazon EFS file system.
- Function
Name string - Handler string
The function entrypoint in your code.
- Id string
The provider-assigned unique ID for this managed resource.
- Invoke
Arn string The ARN to be used for invoking Lambda Function from API Gateway.
- Kms
Key stringArn The ARN for the KMS encryption key.
- Last
Modified string The date this resource was last modified.
- Layers []string
A list of Lambda Layer ARNs attached to your Lambda Function.
- Memory
Size int Amount of memory in MB your Lambda Function can use at runtime.
- Qualified
Arn string Qualified (
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoarn.- Reserved
Concurrent intExecutions The amount of reserved concurrent executions for this lambda function or
-1if unreserved.- Role string
IAM role attached to the Lambda Function.
- Runtime string
The runtime environment for the Lambda function..
- Source
Code stringHash Base64-encoded representation of raw SHA-256 sum of the zip file.
- Source
Code intSize The size in bytes of the function .zip file.
- map[string]string
- Timeout int
The function execution time at which Lambda should terminate the function.
- Tracing
Config GetFunction Tracing Config Tracing settings of the function.
- Version string
The version of the Lambda function.
- Vpc
Config GetFunction Vpc Config VPC configuration associated with your Lambda function.
- Qualifier string
- arn string
Unqualified (no
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoqualified_arn.- dead
Letter GetConfig Function Dead Letter Config Configure the function’s dead letter queue.
- description string
Description of what your Lambda Function does.
- environment
Get
Function Environment The Lambda environment’s configuration settings.
- file
System GetConfigs Function File System Config[] The connection settings for an Amazon EFS file system.
- function
Name string - handler string
The function entrypoint in your code.
- id string
The provider-assigned unique ID for this managed resource.
- invoke
Arn string The ARN to be used for invoking Lambda Function from API Gateway.
- kms
Key stringArn The ARN for the KMS encryption key.
- last
Modified string The date this resource was last modified.
- layers string[]
A list of Lambda Layer ARNs attached to your Lambda Function.
- memory
Size number Amount of memory in MB your Lambda Function can use at runtime.
- qualified
Arn string Qualified (
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoarn.- reserved
Concurrent numberExecutions The amount of reserved concurrent executions for this lambda function or
-1if unreserved.- role string
IAM role attached to the Lambda Function.
- runtime string
The runtime environment for the Lambda function..
- source
Code stringHash Base64-encoded representation of raw SHA-256 sum of the zip file.
- source
Code numberSize The size in bytes of the function .zip file.
- {[key: string]: string}
- timeout number
The function execution time at which Lambda should terminate the function.
- tracing
Config GetFunction Tracing Config Tracing settings of the function.
- version string
The version of the Lambda function.
- vpc
Config GetFunction Vpc Config VPC configuration associated with your Lambda function.
- qualifier string
- arn str
Unqualified (no
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoqualified_arn.- dead_
letter_ Dict[Getconfig Function Dead Letter Config] Configure the function’s dead letter queue.
- description str
Description of what your Lambda Function does.
- environment
Dict[Get
Function Environment] The Lambda environment’s configuration settings.
- file_
system_ List[Getconfigs Function File System Config] The connection settings for an Amazon EFS file system.
- function_
name str - handler str
The function entrypoint in your code.
- id str
The provider-assigned unique ID for this managed resource.
- invoke_
arn str The ARN to be used for invoking Lambda Function from API Gateway.
- kms_
key_ strarn The ARN for the KMS encryption key.
- last_
modified str The date this resource was last modified.
- layers List[str]
A list of Lambda Layer ARNs attached to your Lambda Function.
- memory_
size float Amount of memory in MB your Lambda Function can use at runtime.
- qualified_
arn str Qualified (
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoarn.- reserved_
concurrent_ floatexecutions The amount of reserved concurrent executions for this lambda function or
-1if unreserved.- role str
IAM role attached to the Lambda Function.
- runtime str
The runtime environment for the Lambda function..
- source_
code_ strhash Base64-encoded representation of raw SHA-256 sum of the zip file.
- source_
code_ floatsize The size in bytes of the function .zip file.
- Dict[str, str]
- timeout float
The function execution time at which Lambda should terminate the function.
- tracing_
config Dict[GetFunction Tracing Config] Tracing settings of the function.
- version str
The version of the Lambda function.
- vpc_
config Dict[GetFunction Vpc Config] VPC configuration associated with your Lambda function.
- qualifier str
Supporting Types
GetFunctionDeadLetterConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetFunctionEnvironment
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Variables Dictionary<string, string>
- Variables map[string]string
- variables {[key: string]: string}
- variables Dict[str, str]
GetFunctionFileSystemConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Arn string
Unqualified (no
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoqualified_arn.- Local
Mount stringPath
- Arn string
Unqualified (no
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoqualified_arn.- Local
Mount stringPath
- arn string
Unqualified (no
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoqualified_arn.- local
Mount stringPath
- arn str
Unqualified (no
:QUALIFIERor:VERSIONsuffix) Amazon Resource Name (ARN) identifying your Lambda Function. See alsoqualified_arn.- local
Mount strPath
GetFunctionTracingConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetFunctionVpcConfig
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.