Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi
yandex.getFunction
Explore with Pulumi AI
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:
- Folder
Id string - Folder ID for the Yandex Cloud Function
- Function
Id string - Yandex Cloud Function id used to define function
- Name string
- Yandex Cloud Function name used to define function
- Folder
Id string - Folder ID for the Yandex Cloud Function
- Function
Id string - Yandex Cloud Function id used to define function
- Name string
- Yandex Cloud Function name used to define function
- folder
Id String - Folder ID for the Yandex Cloud Function
- function
Id String - Yandex Cloud Function id used to define function
- name String
- Yandex Cloud Function name used to define function
- folder
Id string - Folder ID for the Yandex Cloud Function
- function
Id 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
- folder
Id String - Folder ID for the Yandex Cloud Function
- function
Id 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:
- Created
At 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
- Execution
Timeout string - Execution timeout in seconds for Yandex Cloud Function
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Size 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
- Loggroup
Id 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
- Service
Account stringId - Service account ID for Yandex Cloud Function
- List<string>
- Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
- Version string
- Version for Yandex Cloud Function.
- Folder
Id string - Function
Id string - Name string
- Created
At 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
- Execution
Timeout string - Execution timeout in seconds for Yandex Cloud Function
- Id string
- The provider-assigned unique ID for this managed resource.
- Image
Size 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
- Loggroup
Id 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
- Service
Account stringId - Service account ID for Yandex Cloud Function
- []string
- Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
- Version string
- Version for Yandex Cloud Function.
- Folder
Id string - Function
Id string - Name string
- created
At 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
- execution
Timeout String - Execution timeout in seconds for Yandex Cloud Function
- id String
- The provider-assigned unique ID for this managed resource.
- image
Size 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
- loggroup
Id 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
- service
Account StringId - Service account ID for Yandex Cloud Function
- List<String>
- Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
- version String
- Version for Yandex Cloud Function.
- folder
Id String - function
Id String - name String
- created
At 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
- execution
Timeout string - Execution timeout in seconds for Yandex Cloud Function
- id string
- The provider-assigned unique ID for this managed resource.
- image
Size 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
- loggroup
Id 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
- service
Account stringId - Service account ID for Yandex Cloud Function
- string[]
- Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
- version string
- Version for Yandex Cloud Function.
- folder
Id string - function
Id 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_ strid - Service account ID for Yandex Cloud Function
- 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
- created
At 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
- execution
Timeout String - Execution timeout in seconds for Yandex Cloud Function
- id String
- The provider-assigned unique ID for this managed resource.
- image
Size Number - Image size for Yandex Cloud Function.
- labels Map<String>
- A set of key/value label pairs to assign to the Yandex Cloud Function
- loggroup
Id 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
- service
Account StringId - Service account ID for Yandex Cloud Function
- List<String>
- Tags for Yandex Cloud Function. Tag "$latest" isn't returned.
- version String
- Version for Yandex Cloud Function.
- folder
Id String - function
Id 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.