1. Packages
  2. Yandex
  3. API Docs
  4. getFunction
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

yandex.getFunction

Explore with Pulumi AI

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

    Get information about a Yandex Cloud Function. For more information about Yandex Cloud Functions, see Yandex Cloud Functions.

    import * as pulumi from "@pulumi/pulumi";
    import * as yandex from "@pulumi/yandex";
    
    const myFunction = pulumi.output(yandex.getFunction({
        functionId: "are1samplefunction11",
    }));
    
    import pulumi
    import pulumi_yandex as yandex
    
    my_function = yandex.get_function(function_id="are1samplefunction11")
    
    using Pulumi;
    using Yandex = Pulumi.Yandex;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var myFunction = Output.Create(Yandex.GetFunction.InvokeAsync(new Yandex.GetFunctionArgs
            {
                FunctionId = "are1samplefunction11",
            }));
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		opt0 := "are1samplefunction11"
    		_, err := yandex.LookupFunction(ctx, &GetFunctionArgs{
    			FunctionId: &opt0,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    This data source is used to define Yandex Cloud Function that can be used by other resources.

    Using getFunction

    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 getFunction(args: GetFunctionArgs, opts?: InvokeOptions): Promise<GetFunctionResult>
    function getFunctionOutput(args: GetFunctionOutputArgs, opts?: InvokeOptions): Output<GetFunctionResult>
    def get_function(folder_id: Optional[str] = None,
                     function_id: Optional[str] = None,
                     name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetFunctionResult
    def get_function_output(folder_id: Optional[pulumi.Input[str]] = None,
                     function_id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetFunctionResult]
    func LookupFunction(ctx *Context, args *LookupFunctionArgs, opts ...InvokeOption) (*LookupFunctionResult, error)
    func LookupFunctionOutput(ctx *Context, args *LookupFunctionOutputArgs, opts ...InvokeOption) LookupFunctionResultOutput

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

    public static class GetFunction 
    {
        public static Task<GetFunctionResult> InvokeAsync(GetFunctionArgs args, InvokeOptions? opts = null)
        public static Output<GetFunctionResult> Invoke(GetFunctionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFunctionResult> getFunction(GetFunctionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: yandex:index/getFunction:getFunction
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FolderId string
    Folder ID for the Yandex Cloud Function
    FunctionId string
    Yandex Cloud Function id used to define function
    Name string
    Yandex Cloud Function name used to define function
    FolderId string
    Folder ID for the Yandex Cloud Function
    FunctionId string
    Yandex Cloud Function id used to define function
    Name string
    Yandex Cloud Function name used to define function
    folderId String
    Folder ID for the Yandex Cloud Function
    functionId String
    Yandex Cloud Function id used to define function
    name String
    Yandex Cloud Function name used to define function
    folderId string
    Folder ID for the Yandex Cloud Function
    functionId string
    Yandex Cloud Function id used to define function
    name string
    Yandex Cloud Function name used to define function
    folder_id str
    Folder ID for the Yandex Cloud Function
    function_id str
    Yandex Cloud Function id used to define function
    name str
    Yandex Cloud Function name used to define function
    folderId String
    Folder ID for the Yandex Cloud Function
    functionId String
    Yandex Cloud Function id used to define function
    name String
    Yandex Cloud Function name used to define function

    getFunction Result

    The following output properties are available:

    CreatedAt string
    Creation timestamp of the Yandex Cloud Function
    Description string
    Description of the Yandex Cloud Function
    Entrypoint string
    Entrypoint for Yandex Cloud Function
    Environment Dictionary<string, string>
    A set of key/value environment variables for Yandex Cloud Function
    ExecutionTimeout string
    Execution timeout in seconds for Yandex Cloud Function
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageSize int
    Image size for Yandex Cloud Function.
    Labels Dictionary<string, string>
    A set of key/value label pairs to assign to the Yandex Cloud Function
    LoggroupId string
    Log group ID size for Yandex Cloud Function.
    Memory int
    Memory in megabytes (aligned to 128MB) for Yandex Cloud Function
    Runtime string
    Runtime for Yandex Cloud Function
    ServiceAccountId string
    Service account ID for Yandex Cloud Function
    Tags List<string>
    Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
    Version string
    Version for Yandex Cloud Function.
    FolderId string
    FunctionId string
    Name string
    CreatedAt string
    Creation timestamp of the Yandex Cloud Function
    Description string
    Description of the Yandex Cloud Function
    Entrypoint string
    Entrypoint for Yandex Cloud Function
    Environment map[string]string
    A set of key/value environment variables for Yandex Cloud Function
    ExecutionTimeout string
    Execution timeout in seconds for Yandex Cloud Function
    Id string
    The provider-assigned unique ID for this managed resource.
    ImageSize int
    Image size for Yandex Cloud Function.
    Labels map[string]string
    A set of key/value label pairs to assign to the Yandex Cloud Function
    LoggroupId string
    Log group ID size for Yandex Cloud Function.
    Memory int
    Memory in megabytes (aligned to 128MB) for Yandex Cloud Function
    Runtime string
    Runtime for Yandex Cloud Function
    ServiceAccountId string
    Service account ID for Yandex Cloud Function
    Tags []string
    Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
    Version string
    Version for Yandex Cloud Function.
    FolderId string
    FunctionId string
    Name string
    createdAt String
    Creation timestamp of the Yandex Cloud Function
    description String
    Description of the Yandex Cloud Function
    entrypoint String
    Entrypoint for Yandex Cloud Function
    environment Map<String,String>
    A set of key/value environment variables for Yandex Cloud Function
    executionTimeout String
    Execution timeout in seconds for Yandex Cloud Function
    id String
    The provider-assigned unique ID for this managed resource.
    imageSize Integer
    Image size for Yandex Cloud Function.
    labels Map<String,String>
    A set of key/value label pairs to assign to the Yandex Cloud Function
    loggroupId String
    Log group ID size for Yandex Cloud Function.
    memory Integer
    Memory in megabytes (aligned to 128MB) for Yandex Cloud Function
    runtime String
    Runtime for Yandex Cloud Function
    serviceAccountId String
    Service account ID for Yandex Cloud Function
    tags List<String>
    Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
    version String
    Version for Yandex Cloud Function.
    folderId String
    functionId String
    name String
    createdAt string
    Creation timestamp of the Yandex Cloud Function
    description string
    Description of the Yandex Cloud Function
    entrypoint string
    Entrypoint for Yandex Cloud Function
    environment {[key: string]: string}
    A set of key/value environment variables for Yandex Cloud Function
    executionTimeout string
    Execution timeout in seconds for Yandex Cloud Function
    id string
    The provider-assigned unique ID for this managed resource.
    imageSize number
    Image size for Yandex Cloud Function.
    labels {[key: string]: string}
    A set of key/value label pairs to assign to the Yandex Cloud Function
    loggroupId string
    Log group ID size for Yandex Cloud Function.
    memory number
    Memory in megabytes (aligned to 128MB) for Yandex Cloud Function
    runtime string
    Runtime for Yandex Cloud Function
    serviceAccountId string
    Service account ID for Yandex Cloud Function
    tags string[]
    Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
    version string
    Version for Yandex Cloud Function.
    folderId string
    functionId string
    name string
    created_at str
    Creation timestamp of the Yandex Cloud Function
    description str
    Description of the Yandex Cloud Function
    entrypoint str
    Entrypoint for Yandex Cloud Function
    environment Mapping[str, str]
    A set of key/value environment variables for Yandex Cloud Function
    execution_timeout str
    Execution timeout in seconds for Yandex Cloud Function
    id str
    The provider-assigned unique ID for this managed resource.
    image_size int
    Image size for Yandex Cloud Function.
    labels Mapping[str, str]
    A set of key/value label pairs to assign to the Yandex Cloud Function
    loggroup_id str
    Log group ID size for Yandex Cloud Function.
    memory int
    Memory in megabytes (aligned to 128MB) for Yandex Cloud Function
    runtime str
    Runtime for Yandex Cloud Function
    service_account_id str
    Service account ID for Yandex Cloud Function
    tags Sequence[str]
    Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
    version str
    Version for Yandex Cloud Function.
    folder_id str
    function_id str
    name str
    createdAt String
    Creation timestamp of the Yandex Cloud Function
    description String
    Description of the Yandex Cloud Function
    entrypoint String
    Entrypoint for Yandex Cloud Function
    environment Map<String>
    A set of key/value environment variables for Yandex Cloud Function
    executionTimeout String
    Execution timeout in seconds for Yandex Cloud Function
    id String
    The provider-assigned unique ID for this managed resource.
    imageSize Number
    Image size for Yandex Cloud Function.
    labels Map<String>
    A set of key/value label pairs to assign to the Yandex Cloud Function
    loggroupId String
    Log group ID size for Yandex Cloud Function.
    memory Number
    Memory in megabytes (aligned to 128MB) for Yandex Cloud Function
    runtime String
    Runtime for Yandex Cloud Function
    serviceAccountId String
    Service account ID for Yandex Cloud Function
    tags List<String>
    Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
    version String
    Version for Yandex Cloud Function.
    folderId String
    functionId String
    name String

    Package Details

    Repository
    Yandex pulumi/pulumi-yandex
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the yandex Terraform Provider.
    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi