All Products
Search
Document Center

Function Compute:Layer

Last Updated:Sep 23, 2024
ParameterTypeDescriptionExample
object

The layer configurations.

layerNamestring

The layer name.

MyLayer
versioninteger

The layer version.

1
descriptionstring

The description of the layer version.

the first layer
codeLayerCode

The information about the layer code package.

codeSizelong

The size of the layer code package. Unit: Byte.

421
codeChecksumstring

The crc64 verification code of the layer code package, which is calculated according to the ECMA-182 standard.

2825179536350****
createTimestring

The time when the layer version was created.

2022-01-01T11:08:00Z
aclinteger

The permissions of the layer. A value of 0 indicates private and a value of 1 indicates public. By default, public layers are public. Custom layers can be set to private or public.

0
arnstring

The ARN of the layer resource. This field is about to be discarded.

xxxxxxxx#Layer-name#1
arnV2string

The name of the layer resource. The name follows the following format: acs:fc:{region}:{accountID}:layers/{layerName}/versions/{layerVersion}.

acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1
licensestring

The license agreement.

MIT
compatibleRuntimearray

The runtime environments that are supported by the layer.

string

The runtime. Valid values: nodejs16, nodejs14, nodejs12, nodejs10, nodejs8, nodejs6, python3.9, python3, python2.7, java11, java8, php7.2, go1, dotnetcore3.1, dotnetcore2.1, and custom.

python3