|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
The layer configurations. |
||
| layerName |
string |
The layer name. |
MyLayer |
| version |
integer |
The layer version. |
1 |
| description |
string |
The description of the layer version. |
the first layer |
| code | LayerCode |
The information about the layer code package. |
|
| codeSize |
integer |
The size of the layer code package. Unit: Byte. |
421 |
| codeChecksum |
string |
The crc64 verification code of the layer code package, which is calculated according to the ECMA-182 standard. |
2825179536350**** |
| createTime |
string |
The time when the layer version was created. |
2022-01-01T11:08:00Z |
| acl |
integer |
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 |
| arn |
string |
The ARN of the layer resource. This field is about to be discarded. |
xxxxxxxx#Layer-name#1 |
| arnV2 |
string |
The name of the layer resource. The name follows the following format: |
acs:fc:cn-beijing:186824xxxxxx:layers/fc_layer/versions/1 |
| license |
string |
The license agreement. |
MIT |
| compatibleRuntime |
array |
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 |