1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. fc
  5. V3LayerVersion
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.fc.V3LayerVersion

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    Provides a FCV3 Layer Version resource.

    Layer provides you with the ability to publish and deploy common dependency libraries, runtime environments, and function extensions.

    For information about FCV3 Layer Version and how to use it, see What is Layer Version.

    NOTE: Available since v1.230.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.fc.V3LayerVersion("default", {
        description: name,
        layerName: "FC3LayerResouceTest_ZIP_2024SepWed",
        license: "Apache2.0",
        acl: "0",
        code: {
            zipFile: "UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=",
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.fc.V3LayerVersion("default",
        description=name,
        layer_name="FC3LayerResouceTest_ZIP_2024SepWed",
        license="Apache2.0",
        acl="0",
        code={
            "zip_file": "UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := fc.NewV3LayerVersion(ctx, "default", &fc.V3LayerVersionArgs{
    			Description: pulumi.String(name),
    			LayerName:   pulumi.String("FC3LayerResouceTest_ZIP_2024SepWed"),
    			License:     pulumi.String("Apache2.0"),
    			Acl:         pulumi.String("0"),
    			Code: &fc.V3LayerVersionCodeArgs{
    				ZipFile: pulumi.String("UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA="),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.FC.V3LayerVersion("default", new()
        {
            Description = name,
            LayerName = "FC3LayerResouceTest_ZIP_2024SepWed",
            License = "Apache2.0",
            Acl = "0",
            Code = new AliCloud.FC.Inputs.V3LayerVersionCodeArgs
            {
                ZipFile = "UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.fc.V3LayerVersion;
    import com.pulumi.alicloud.fc.V3LayerVersionArgs;
    import com.pulumi.alicloud.fc.inputs.V3LayerVersionCodeArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new V3LayerVersion("default", V3LayerVersionArgs.builder()
                .description(name)
                .layerName("FC3LayerResouceTest_ZIP_2024SepWed")
                .license("Apache2.0")
                .acl("0")
                .code(V3LayerVersionCodeArgs.builder()
                    .zipFile("UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=")
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:fc:V3LayerVersion
        properties:
          description: ${name}
          layerName: FC3LayerResouceTest_ZIP_2024SepWed
          license: Apache2.0
          acl: '0'
          code:
            zipFile: UEsDBBQACAAIAAAAAAAAAAAAAAAAAAAAAAAIAAAAaW5kZXgucHmEkEFKxEAQRfd9ig9ZTCJOooIwDMwNXLqXnnQlaalUhU5lRj2KZ/FOXkESGR114bJ/P/7jV4b1xRq1hijtFpM1682cuNgPmgysbRulPT0fRxXnMtwrSPyeCdYRokSLnuMLJTTkbUqEvDMbxm1VdcRD6Tk+T1LW2ldB66knsYdA5iNX17ebm6tN2VnPhcswMPmREPuBacb+CiapLarAj9gT6/H97dVlCNScY3mtYvRkxdZlwDKDEnanPWVLdrdkeXEGlFEazVdfPVHaVeHc3N15CUwppwOJXeK7HshAB8NuOU7J6sP4SRXuH/EvbUfMiqMmDqv5M5FNSfAj/wgAAP//UEsHCPl//NYAAQAArwEAAFBLAQIUABQACAAIAAAAAAD5f/zWAAEAAK8BAAAIAAAAAAAAAAAAAAAAAAAAAABpbmRleC5weVBLBQYAAAAAAQABADYAAAA2AQAAAAA=
    

    Create V3LayerVersion Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new V3LayerVersion(name: string, args: V3LayerVersionArgs, opts?: CustomResourceOptions);
    @overload
    def V3LayerVersion(resource_name: str,
                       args: V3LayerVersionArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def V3LayerVersion(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       layer_name: Optional[str] = None,
                       acl: Optional[str] = None,
                       code: Optional[V3LayerVersionCodeArgs] = None,
                       compatible_runtimes: Optional[Sequence[str]] = None,
                       description: Optional[str] = None,
                       license: Optional[str] = None,
                       public: Optional[str] = None)
    func NewV3LayerVersion(ctx *Context, name string, args V3LayerVersionArgs, opts ...ResourceOption) (*V3LayerVersion, error)
    public V3LayerVersion(string name, V3LayerVersionArgs args, CustomResourceOptions? opts = null)
    public V3LayerVersion(String name, V3LayerVersionArgs args)
    public V3LayerVersion(String name, V3LayerVersionArgs args, CustomResourceOptions options)
    
    type: alicloud:fc:V3LayerVersion
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args V3LayerVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args V3LayerVersionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args V3LayerVersionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V3LayerVersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V3LayerVersionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var v3layerVersionResource = new AliCloud.FC.V3LayerVersion("v3layerVersionResource", new()
    {
        LayerName = "string",
        Acl = "string",
        Code = new AliCloud.FC.Inputs.V3LayerVersionCodeArgs
        {
            Checksum = "string",
            OssBucketName = "string",
            OssObjectName = "string",
            ZipFile = "string",
        },
        CompatibleRuntimes = new[]
        {
            "string",
        },
        Description = "string",
        License = "string",
        Public = "string",
    });
    
    example, err := fc.NewV3LayerVersion(ctx, "v3layerVersionResource", &fc.V3LayerVersionArgs{
    	LayerName: pulumi.String("string"),
    	Acl:       pulumi.String("string"),
    	Code: &fc.V3LayerVersionCodeArgs{
    		Checksum:      pulumi.String("string"),
    		OssBucketName: pulumi.String("string"),
    		OssObjectName: pulumi.String("string"),
    		ZipFile:       pulumi.String("string"),
    	},
    	CompatibleRuntimes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	License:     pulumi.String("string"),
    	Public:      pulumi.String("string"),
    })
    
    var v3layerVersionResource = new V3LayerVersion("v3layerVersionResource", V3LayerVersionArgs.builder()
        .layerName("string")
        .acl("string")
        .code(V3LayerVersionCodeArgs.builder()
            .checksum("string")
            .ossBucketName("string")
            .ossObjectName("string")
            .zipFile("string")
            .build())
        .compatibleRuntimes("string")
        .description("string")
        .license("string")
        .public_("string")
        .build());
    
    v3layer_version_resource = alicloud.fc.V3LayerVersion("v3layerVersionResource",
        layer_name="string",
        acl="string",
        code={
            "checksum": "string",
            "oss_bucket_name": "string",
            "oss_object_name": "string",
            "zip_file": "string",
        },
        compatible_runtimes=["string"],
        description="string",
        license="string",
        public="string")
    
    const v3layerVersionResource = new alicloud.fc.V3LayerVersion("v3layerVersionResource", {
        layerName: "string",
        acl: "string",
        code: {
            checksum: "string",
            ossBucketName: "string",
            ossObjectName: "string",
            zipFile: "string",
        },
        compatibleRuntimes: ["string"],
        description: "string",
        license: "string",
        "public": "string",
    });
    
    type: alicloud:fc:V3LayerVersion
    properties:
        acl: string
        code:
            checksum: string
            ossBucketName: string
            ossObjectName: string
            zipFile: string
        compatibleRuntimes:
            - string
        description: string
        layerName: string
        license: string
        public: string
    

    V3LayerVersion Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The V3LayerVersion resource accepts the following input properties:

    LayerName string
    Name of the layer
    Acl string
    The access permission of the layer, 1: public, 0: private, default is private
    Code Pulumi.AliCloud.FC.Inputs.V3LayerVersionCode
    Layer code configuration See code below.
    CompatibleRuntimes List<string>
    List of runtime environments supported by the layer
    Description string
    Description of the version
    License string
    Layer License Agreement
    Public string
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    LayerName string
    Name of the layer
    Acl string
    The access permission of the layer, 1: public, 0: private, default is private
    Code V3LayerVersionCodeArgs
    Layer code configuration See code below.
    CompatibleRuntimes []string
    List of runtime environments supported by the layer
    Description string
    Description of the version
    License string
    Layer License Agreement
    Public string
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    layerName String
    Name of the layer
    acl String
    The access permission of the layer, 1: public, 0: private, default is private
    code V3LayerVersionCode
    Layer code configuration See code below.
    compatibleRuntimes List<String>
    List of runtime environments supported by the layer
    description String
    Description of the version
    license String
    Layer License Agreement
    public_ String
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    layerName string
    Name of the layer
    acl string
    The access permission of the layer, 1: public, 0: private, default is private
    code V3LayerVersionCode
    Layer code configuration See code below.
    compatibleRuntimes string[]
    List of runtime environments supported by the layer
    description string
    Description of the version
    license string
    Layer License Agreement
    public string
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    layer_name str
    Name of the layer
    acl str
    The access permission of the layer, 1: public, 0: private, default is private
    code V3LayerVersionCodeArgs
    Layer code configuration See code below.
    compatible_runtimes Sequence[str]
    List of runtime environments supported by the layer
    description str
    Description of the version
    license str
    Layer License Agreement
    public str
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    layerName String
    Name of the layer
    acl String
    The access permission of the layer, 1: public, 0: private, default is private
    code Property Map
    Layer code configuration See code below.
    compatibleRuntimes List<String>
    List of runtime environments supported by the layer
    description String
    Description of the version
    license String
    Layer License Agreement
    public String
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)

    Outputs

    All input properties are implicitly available as output properties. Additionally, the V3LayerVersion resource produces the following output properties:

    CodeSize string
    (Available since v1.234.0) The code package size of the layer, in bytes.
    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    LayerVersionArn string
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    Version string
    The version of the layer
    CodeSize string
    (Available since v1.234.0) The code package size of the layer, in bytes.
    CreateTime string
    The creation time of the resource
    Id string
    The provider-assigned unique ID for this managed resource.
    LayerVersionArn string
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    Version string
    The version of the layer
    codeSize String
    (Available since v1.234.0) The code package size of the layer, in bytes.
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    layerVersionArn String
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    version String
    The version of the layer
    codeSize string
    (Available since v1.234.0) The code package size of the layer, in bytes.
    createTime string
    The creation time of the resource
    id string
    The provider-assigned unique ID for this managed resource.
    layerVersionArn string
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    version string
    The version of the layer
    code_size str
    (Available since v1.234.0) The code package size of the layer, in bytes.
    create_time str
    The creation time of the resource
    id str
    The provider-assigned unique ID for this managed resource.
    layer_version_arn str
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    version str
    The version of the layer
    codeSize String
    (Available since v1.234.0) The code package size of the layer, in bytes.
    createTime String
    The creation time of the resource
    id String
    The provider-assigned unique ID for this managed resource.
    layerVersionArn String
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    version String
    The version of the layer

    Look up Existing V3LayerVersion Resource

    Get an existing V3LayerVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: V3LayerVersionState, opts?: CustomResourceOptions): V3LayerVersion
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            acl: Optional[str] = None,
            code: Optional[V3LayerVersionCodeArgs] = None,
            code_size: Optional[str] = None,
            compatible_runtimes: Optional[Sequence[str]] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            layer_name: Optional[str] = None,
            layer_version_arn: Optional[str] = None,
            license: Optional[str] = None,
            public: Optional[str] = None,
            version: Optional[str] = None) -> V3LayerVersion
    func GetV3LayerVersion(ctx *Context, name string, id IDInput, state *V3LayerVersionState, opts ...ResourceOption) (*V3LayerVersion, error)
    public static V3LayerVersion Get(string name, Input<string> id, V3LayerVersionState? state, CustomResourceOptions? opts = null)
    public static V3LayerVersion get(String name, Output<String> id, V3LayerVersionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Acl string
    The access permission of the layer, 1: public, 0: private, default is private
    Code Pulumi.AliCloud.FC.Inputs.V3LayerVersionCode
    Layer code configuration See code below.
    CodeSize string
    (Available since v1.234.0) The code package size of the layer, in bytes.
    CompatibleRuntimes List<string>
    List of runtime environments supported by the layer
    CreateTime string
    The creation time of the resource
    Description string
    Description of the version
    LayerName string
    Name of the layer
    LayerVersionArn string
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    License string
    Layer License Agreement
    Public string
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    Version string
    The version of the layer
    Acl string
    The access permission of the layer, 1: public, 0: private, default is private
    Code V3LayerVersionCodeArgs
    Layer code configuration See code below.
    CodeSize string
    (Available since v1.234.0) The code package size of the layer, in bytes.
    CompatibleRuntimes []string
    List of runtime environments supported by the layer
    CreateTime string
    The creation time of the resource
    Description string
    Description of the version
    LayerName string
    Name of the layer
    LayerVersionArn string
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    License string
    Layer License Agreement
    Public string
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    Version string
    The version of the layer
    acl String
    The access permission of the layer, 1: public, 0: private, default is private
    code V3LayerVersionCode
    Layer code configuration See code below.
    codeSize String
    (Available since v1.234.0) The code package size of the layer, in bytes.
    compatibleRuntimes List<String>
    List of runtime environments supported by the layer
    createTime String
    The creation time of the resource
    description String
    Description of the version
    layerName String
    Name of the layer
    layerVersionArn String
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    license String
    Layer License Agreement
    public_ String
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    version String
    The version of the layer
    acl string
    The access permission of the layer, 1: public, 0: private, default is private
    code V3LayerVersionCode
    Layer code configuration See code below.
    codeSize string
    (Available since v1.234.0) The code package size of the layer, in bytes.
    compatibleRuntimes string[]
    List of runtime environments supported by the layer
    createTime string
    The creation time of the resource
    description string
    Description of the version
    layerName string
    Name of the layer
    layerVersionArn string
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    license string
    Layer License Agreement
    public string
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    version string
    The version of the layer
    acl str
    The access permission of the layer, 1: public, 0: private, default is private
    code V3LayerVersionCodeArgs
    Layer code configuration See code below.
    code_size str
    (Available since v1.234.0) The code package size of the layer, in bytes.
    compatible_runtimes Sequence[str]
    List of runtime environments supported by the layer
    create_time str
    The creation time of the resource
    description str
    Description of the version
    layer_name str
    Name of the layer
    layer_version_arn str
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    license str
    Layer License Agreement
    public str
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    version str
    The version of the layer
    acl String
    The access permission of the layer, 1: public, 0: private, default is private
    code Property Map
    Layer code configuration See code below.
    codeSize String
    (Available since v1.234.0) The code package size of the layer, in bytes.
    compatibleRuntimes List<String>
    List of runtime environments supported by the layer
    createTime String
    The creation time of the resource
    description String
    Description of the version
    layerName String
    Name of the layer
    layerVersionArn String
    (Available since v1.234.0) Layer version ARN. The format is acs:fc:{region }:{ accountID}:layers/{layerName}/versions/{layerVersion}.
    license String
    Layer License Agreement
    public String
    Whether to expose the layer. Enumeration values: true, false. (Deprecated, please use acl instead)
    version String
    The version of the layer

    Supporting Types

    V3LayerVersionCode, V3LayerVersionCodeArgs

    Checksum string
    The CRC-64 value of the code package. If checksum is provided, Function Compute checks whether the checksum of the code package is consistent with the provided checksum.
    OssBucketName string
    Name of the OSS Bucket where the user stores the Layer Code ZIP package
    OssObjectName string
    Name of the OSS Object where the user stores the Layer Code ZIP package
    ZipFile string
    Base 64 encoding of Layer Code ZIP package
    Checksum string
    The CRC-64 value of the code package. If checksum is provided, Function Compute checks whether the checksum of the code package is consistent with the provided checksum.
    OssBucketName string
    Name of the OSS Bucket where the user stores the Layer Code ZIP package
    OssObjectName string
    Name of the OSS Object where the user stores the Layer Code ZIP package
    ZipFile string
    Base 64 encoding of Layer Code ZIP package
    checksum String
    The CRC-64 value of the code package. If checksum is provided, Function Compute checks whether the checksum of the code package is consistent with the provided checksum.
    ossBucketName String
    Name of the OSS Bucket where the user stores the Layer Code ZIP package
    ossObjectName String
    Name of the OSS Object where the user stores the Layer Code ZIP package
    zipFile String
    Base 64 encoding of Layer Code ZIP package
    checksum string
    The CRC-64 value of the code package. If checksum is provided, Function Compute checks whether the checksum of the code package is consistent with the provided checksum.
    ossBucketName string
    Name of the OSS Bucket where the user stores the Layer Code ZIP package
    ossObjectName string
    Name of the OSS Object where the user stores the Layer Code ZIP package
    zipFile string
    Base 64 encoding of Layer Code ZIP package
    checksum str
    The CRC-64 value of the code package. If checksum is provided, Function Compute checks whether the checksum of the code package is consistent with the provided checksum.
    oss_bucket_name str
    Name of the OSS Bucket where the user stores the Layer Code ZIP package
    oss_object_name str
    Name of the OSS Object where the user stores the Layer Code ZIP package
    zip_file str
    Base 64 encoding of Layer Code ZIP package
    checksum String
    The CRC-64 value of the code package. If checksum is provided, Function Compute checks whether the checksum of the code package is consistent with the provided checksum.
    ossBucketName String
    Name of the OSS Bucket where the user stores the Layer Code ZIP package
    ossObjectName String
    Name of the OSS Object where the user stores the Layer Code ZIP package
    zipFile String
    Base 64 encoding of Layer Code ZIP package

    Import

    FCV3 Layer Version can be imported using the id, e.g.

    $ pulumi import alicloud:fc/v3LayerVersion:V3LayerVersion example <layer_name>:<version>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi