Class Function
Inherited Members
Namespace: Pulumi.AliCloud.FC
Assembly: Pulumi.AliCloud.dll
Syntax
public class Function : CustomResource
Constructors
View SourceFunction(String, FunctionArgs, CustomResourceOptions)
Create a Function resource with the given unique name, arguments, and options.
Declaration
public Function(string name, FunctionArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| FunctionArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCodeChecksum
The checksum (crc64) of the function code.
Declaration
public Output<string> CodeChecksum { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
The Function Compute function description.
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EnvironmentVariables
A map that defines environment variables for the function.
Declaration
public Output<ImmutableDictionary<string, object>> EnvironmentVariables { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Filename
The path to the function's deployment package within the local filesystem. It is conflict with the oss_-prefixed options.
Declaration
public Output<string> Filename { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
FunctionId
The Function Compute service ID.
Declaration
public Output<string> FunctionId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Handler
The function entry point in your code.
Declaration
public Output<string> Handler { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
LastModified
The date this resource was last modified.
Declaration
public Output<string> LastModified { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
MemorySize
Amount of memory in MB your Function can use at runtime. Defaults to 128. Limits to [128, 3072].
Declaration
public Output<int?> MemorySize { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Name
The Function Compute function name. It is the only in one service and is conflict with "name_prefix".
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
NamePrefix
Setting a prefix to get a only function name. It is conflict with "name".
Declaration
public Output<string> NamePrefix { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OssBucket
The OSS bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same Alibaba Cloud region where you are creating the function.
Declaration
public Output<string> OssBucket { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
OssKey
The OSS key of an object containing the function's deployment package. Conflicts with filename.
Declaration
public Output<string> OssKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Runtime
See [Runtimes][https://www.alibabacloud.com/help/doc-detail/52077.htm] for valid values.
Declaration
public Output<string> Runtime { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Service
The Function Compute service name.
Declaration
public Output<string> Service { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Timeout
The amount of time your Function has to run in seconds.
Declaration
public Output<int?> Timeout { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Methods
View SourceGet(String, Input<String>, FunctionState, CustomResourceOptions)
Get an existing Function resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static Function Get(string name, Input<string> id, FunctionState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| FunctionState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| Function |