Show / Hide Table of Contents

Class Function

Inheritance
System.Object
Resource
CustomResource
Function
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.FC
Assembly: Pulumi.AliCloud.dll
Syntax
public class Function : CustomResource

Constructors

View Source

Function(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 Source

CodeChecksum

The checksum (crc64) of the function code.

Declaration
public Output<string> CodeChecksum { get; }
Property Value
Type Description
Output<System.String>
View Source

Description

The Function Compute function description.

Declaration
public Output<string> Description { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

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>
View Source

FunctionId

The Function Compute service ID.

Declaration
public Output<string> FunctionId { get; }
Property Value
Type Description
Output<System.String>
View Source

Handler

The function entry point in your code.

Declaration
public Output<string> Handler { get; }
Property Value
Type Description
Output<System.String>
View Source

LastModified

The date this resource was last modified.

Declaration
public Output<string> LastModified { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

Service

The Function Compute service name.

Declaration
public Output<string> Service { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.