1. Packages
  2. AWS Native
  3. API Docs
  4. lambda
  5. getVersion

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

aws-native.lambda.getVersion

Explore with Pulumi AI

aws-native logo

We recommend new projects start with resources from the AWS provider.

AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi

    Resource Type definition for AWS::Lambda::Version

    Using getVersion

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getVersion(args: GetVersionArgs, opts?: InvokeOptions): Promise<GetVersionResult>
    function getVersionOutput(args: GetVersionOutputArgs, opts?: InvokeOptions): Output<GetVersionResult>
    def get_version(function_arn: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetVersionResult
    def get_version_output(function_arn: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetVersionResult]
    func LookupVersion(ctx *Context, args *LookupVersionArgs, opts ...InvokeOption) (*LookupVersionResult, error)
    func LookupVersionOutput(ctx *Context, args *LookupVersionOutputArgs, opts ...InvokeOption) LookupVersionResultOutput

    > Note: This function is named LookupVersion in the Go SDK.

    public static class GetVersion 
    {
        public static Task<GetVersionResult> InvokeAsync(GetVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetVersionResult> Invoke(GetVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVersionResult> getVersion(GetVersionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws-native:lambda:getVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FunctionArn string
    The ARN of the version.
    FunctionArn string
    The ARN of the version.
    functionArn String
    The ARN of the version.
    functionArn string
    The ARN of the version.
    function_arn str
    The ARN of the version.
    functionArn String
    The ARN of the version.

    getVersion Result

    The following output properties are available:

    FunctionArn string
    The ARN of the version.
    Policy object

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    VersionValue string
    The version number.
    FunctionArn string
    The ARN of the version.
    Policy interface{}

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    Version string
    The version number.
    functionArn String
    The ARN of the version.
    policy Object

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    version String
    The version number.
    functionArn string
    The ARN of the version.
    policy any

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    version string
    The version number.
    function_arn str
    The ARN of the version.
    policy Any

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    version str
    The version number.
    functionArn String
    The ARN of the version.
    policy Any

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    version String
    The version number.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    We recommend new projects start with resources from the AWS provider.

    AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi