1. Packages
  2. Volcengine
  3. API Docs
  4. vefaas
  5. Release
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

volcengine.vefaas.Release

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine

    Provides a resource to manage vefaas release

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.vefaas.Release("foo", {
        functionId: "9p5emxxxx",
        revisionNumber: 0,
        targetTrafficWeight: 30,
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.vefaas.Release("foo",
        function_id="9p5emxxxx",
        revision_number=0,
        target_traffic_weight=30)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vefaas"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vefaas.NewRelease(ctx, "foo", &vefaas.ReleaseArgs{
    			FunctionId:          pulumi.String("9p5emxxxx"),
    			RevisionNumber:      pulumi.Int(0),
    			TargetTrafficWeight: pulumi.Int(30),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Vefaas.Release("foo", new()
        {
            FunctionId = "9p5emxxxx",
            RevisionNumber = 0,
            TargetTrafficWeight = 30,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.vefaas.Release;
    import com.pulumi.volcengine.vefaas.ReleaseArgs;
    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) {
            var foo = new Release("foo", ReleaseArgs.builder()        
                .functionId("9p5emxxxx")
                .revisionNumber(0)
                .targetTrafficWeight(30)
                .build());
    
        }
    }
    
    resources:
      foo:
        type: volcengine:vefaas:Release
        properties:
          functionId: 9p5emxxxx
          revisionNumber: 0
          targetTrafficWeight: 30
    

    Create Release Resource

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

    Constructor syntax

    new Release(name: string, args: ReleaseArgs, opts?: CustomResourceOptions);
    @overload
    def Release(resource_name: str,
                args: ReleaseArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Release(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                function_id: Optional[str] = None,
                revision_number: Optional[int] = None,
                description: Optional[str] = None,
                max_instance: Optional[int] = None,
                rolling_step: Optional[str] = None,
                target_traffic_weight: Optional[int] = None)
    func NewRelease(ctx *Context, name string, args ReleaseArgs, opts ...ResourceOption) (*Release, error)
    public Release(string name, ReleaseArgs args, CustomResourceOptions? opts = null)
    public Release(String name, ReleaseArgs args)
    public Release(String name, ReleaseArgs args, CustomResourceOptions options)
    
    type: volcengine:vefaas:Release
    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 ReleaseArgs
    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 ReleaseArgs
    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 ReleaseArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReleaseArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReleaseArgs
    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 releaseResource = new Volcengine.Vefaas.Release("releaseResource", new()
    {
        FunctionId = "string",
        RevisionNumber = 0,
        Description = "string",
        MaxInstance = 0,
        RollingStep = "string",
        TargetTrafficWeight = 0,
    });
    
    example, err := vefaas.NewRelease(ctx, "releaseResource", &vefaas.ReleaseArgs{
    	FunctionId:          pulumi.String("string"),
    	RevisionNumber:      pulumi.Int(0),
    	Description:         pulumi.String("string"),
    	MaxInstance:         pulumi.Int(0),
    	RollingStep:         pulumi.String("string"),
    	TargetTrafficWeight: pulumi.Int(0),
    })
    
    var releaseResource = new Release("releaseResource", ReleaseArgs.builder()
        .functionId("string")
        .revisionNumber(0)
        .description("string")
        .maxInstance(0)
        .rollingStep("string")
        .targetTrafficWeight(0)
        .build());
    
    release_resource = volcengine.vefaas.Release("releaseResource",
        function_id="string",
        revision_number=0,
        description="string",
        max_instance=0,
        rolling_step="string",
        target_traffic_weight=0)
    
    const releaseResource = new volcengine.vefaas.Release("releaseResource", {
        functionId: "string",
        revisionNumber: 0,
        description: "string",
        maxInstance: 0,
        rollingStep: "string",
        targetTrafficWeight: 0,
    });
    
    type: volcengine:vefaas:Release
    properties:
        description: string
        functionId: string
        maxInstance: 0
        revisionNumber: 0
        rollingStep: string
        targetTrafficWeight: 0
    

    Release 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 Release resource accepts the following input properties:

    FunctionId string
    The ID of Function.
    RevisionNumber int
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    Description string
    The description of released this time.
    MaxInstance int
    Upper limit of the number of function instances.
    RollingStep string
    Percentage of grayscale step size.
    TargetTrafficWeight int
    Target percentage of published traffic.
    FunctionId string
    The ID of Function.
    RevisionNumber int
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    Description string
    The description of released this time.
    MaxInstance int
    Upper limit of the number of function instances.
    RollingStep string
    Percentage of grayscale step size.
    TargetTrafficWeight int
    Target percentage of published traffic.
    functionId String
    The ID of Function.
    revisionNumber Integer
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    description String
    The description of released this time.
    maxInstance Integer
    Upper limit of the number of function instances.
    rollingStep String
    Percentage of grayscale step size.
    targetTrafficWeight Integer
    Target percentage of published traffic.
    functionId string
    The ID of Function.
    revisionNumber number
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    description string
    The description of released this time.
    maxInstance number
    Upper limit of the number of function instances.
    rollingStep string
    Percentage of grayscale step size.
    targetTrafficWeight number
    Target percentage of published traffic.
    function_id str
    The ID of Function.
    revision_number int
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    description str
    The description of released this time.
    max_instance int
    Upper limit of the number of function instances.
    rolling_step str
    Percentage of grayscale step size.
    target_traffic_weight int
    Target percentage of published traffic.
    functionId String
    The ID of Function.
    revisionNumber Number
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    description String
    The description of released this time.
    maxInstance Number
    Upper limit of the number of function instances.
    rollingStep String
    Percentage of grayscale step size.
    targetTrafficWeight Number
    Target percentage of published traffic.

    Outputs

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

    CurrentTrafficWeight int
    The current percentage of current published traffic.
    ErrorCode string
    Error code when the release fails.
    FailedInstanceLogs string
    Download link for the failed instance log.
    Id string
    The provider-assigned unique ID for this managed resource.
    NewRevisionNumber int
    The version number of the newly released version.
    OldRevisionNumber int
    The version number of the old version.
    ReleaseRecordId string
    The ID of Release record.
    StableRevisionNumber int
    The current version number that is stably running online.
    StartTime string
    The current release start time.
    Status string
    The status of function release.
    StatusMessage string
    Detailed information of the function release status.
    CurrentTrafficWeight int
    The current percentage of current published traffic.
    ErrorCode string
    Error code when the release fails.
    FailedInstanceLogs string
    Download link for the failed instance log.
    Id string
    The provider-assigned unique ID for this managed resource.
    NewRevisionNumber int
    The version number of the newly released version.
    OldRevisionNumber int
    The version number of the old version.
    ReleaseRecordId string
    The ID of Release record.
    StableRevisionNumber int
    The current version number that is stably running online.
    StartTime string
    The current release start time.
    Status string
    The status of function release.
    StatusMessage string
    Detailed information of the function release status.
    currentTrafficWeight Integer
    The current percentage of current published traffic.
    errorCode String
    Error code when the release fails.
    failedInstanceLogs String
    Download link for the failed instance log.
    id String
    The provider-assigned unique ID for this managed resource.
    newRevisionNumber Integer
    The version number of the newly released version.
    oldRevisionNumber Integer
    The version number of the old version.
    releaseRecordId String
    The ID of Release record.
    stableRevisionNumber Integer
    The current version number that is stably running online.
    startTime String
    The current release start time.
    status String
    The status of function release.
    statusMessage String
    Detailed information of the function release status.
    currentTrafficWeight number
    The current percentage of current published traffic.
    errorCode string
    Error code when the release fails.
    failedInstanceLogs string
    Download link for the failed instance log.
    id string
    The provider-assigned unique ID for this managed resource.
    newRevisionNumber number
    The version number of the newly released version.
    oldRevisionNumber number
    The version number of the old version.
    releaseRecordId string
    The ID of Release record.
    stableRevisionNumber number
    The current version number that is stably running online.
    startTime string
    The current release start time.
    status string
    The status of function release.
    statusMessage string
    Detailed information of the function release status.
    current_traffic_weight int
    The current percentage of current published traffic.
    error_code str
    Error code when the release fails.
    failed_instance_logs str
    Download link for the failed instance log.
    id str
    The provider-assigned unique ID for this managed resource.
    new_revision_number int
    The version number of the newly released version.
    old_revision_number int
    The version number of the old version.
    release_record_id str
    The ID of Release record.
    stable_revision_number int
    The current version number that is stably running online.
    start_time str
    The current release start time.
    status str
    The status of function release.
    status_message str
    Detailed information of the function release status.
    currentTrafficWeight Number
    The current percentage of current published traffic.
    errorCode String
    Error code when the release fails.
    failedInstanceLogs String
    Download link for the failed instance log.
    id String
    The provider-assigned unique ID for this managed resource.
    newRevisionNumber Number
    The version number of the newly released version.
    oldRevisionNumber Number
    The version number of the old version.
    releaseRecordId String
    The ID of Release record.
    stableRevisionNumber Number
    The current version number that is stably running online.
    startTime String
    The current release start time.
    status String
    The status of function release.
    statusMessage String
    Detailed information of the function release status.

    Look up Existing Release Resource

    Get an existing Release 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?: ReleaseState, opts?: CustomResourceOptions): Release
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            current_traffic_weight: Optional[int] = None,
            description: Optional[str] = None,
            error_code: Optional[str] = None,
            failed_instance_logs: Optional[str] = None,
            function_id: Optional[str] = None,
            max_instance: Optional[int] = None,
            new_revision_number: Optional[int] = None,
            old_revision_number: Optional[int] = None,
            release_record_id: Optional[str] = None,
            revision_number: Optional[int] = None,
            rolling_step: Optional[str] = None,
            stable_revision_number: Optional[int] = None,
            start_time: Optional[str] = None,
            status: Optional[str] = None,
            status_message: Optional[str] = None,
            target_traffic_weight: Optional[int] = None) -> Release
    func GetRelease(ctx *Context, name string, id IDInput, state *ReleaseState, opts ...ResourceOption) (*Release, error)
    public static Release Get(string name, Input<string> id, ReleaseState? state, CustomResourceOptions? opts = null)
    public static Release get(String name, Output<String> id, ReleaseState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:vefaas:Release    get:      id: ${id}
    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:
    CurrentTrafficWeight int
    The current percentage of current published traffic.
    Description string
    The description of released this time.
    ErrorCode string
    Error code when the release fails.
    FailedInstanceLogs string
    Download link for the failed instance log.
    FunctionId string
    The ID of Function.
    MaxInstance int
    Upper limit of the number of function instances.
    NewRevisionNumber int
    The version number of the newly released version.
    OldRevisionNumber int
    The version number of the old version.
    ReleaseRecordId string
    The ID of Release record.
    RevisionNumber int
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    RollingStep string
    Percentage of grayscale step size.
    StableRevisionNumber int
    The current version number that is stably running online.
    StartTime string
    The current release start time.
    Status string
    The status of function release.
    StatusMessage string
    Detailed information of the function release status.
    TargetTrafficWeight int
    Target percentage of published traffic.
    CurrentTrafficWeight int
    The current percentage of current published traffic.
    Description string
    The description of released this time.
    ErrorCode string
    Error code when the release fails.
    FailedInstanceLogs string
    Download link for the failed instance log.
    FunctionId string
    The ID of Function.
    MaxInstance int
    Upper limit of the number of function instances.
    NewRevisionNumber int
    The version number of the newly released version.
    OldRevisionNumber int
    The version number of the old version.
    ReleaseRecordId string
    The ID of Release record.
    RevisionNumber int
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    RollingStep string
    Percentage of grayscale step size.
    StableRevisionNumber int
    The current version number that is stably running online.
    StartTime string
    The current release start time.
    Status string
    The status of function release.
    StatusMessage string
    Detailed information of the function release status.
    TargetTrafficWeight int
    Target percentage of published traffic.
    currentTrafficWeight Integer
    The current percentage of current published traffic.
    description String
    The description of released this time.
    errorCode String
    Error code when the release fails.
    failedInstanceLogs String
    Download link for the failed instance log.
    functionId String
    The ID of Function.
    maxInstance Integer
    Upper limit of the number of function instances.
    newRevisionNumber Integer
    The version number of the newly released version.
    oldRevisionNumber Integer
    The version number of the old version.
    releaseRecordId String
    The ID of Release record.
    revisionNumber Integer
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    rollingStep String
    Percentage of grayscale step size.
    stableRevisionNumber Integer
    The current version number that is stably running online.
    startTime String
    The current release start time.
    status String
    The status of function release.
    statusMessage String
    Detailed information of the function release status.
    targetTrafficWeight Integer
    Target percentage of published traffic.
    currentTrafficWeight number
    The current percentage of current published traffic.
    description string
    The description of released this time.
    errorCode string
    Error code when the release fails.
    failedInstanceLogs string
    Download link for the failed instance log.
    functionId string
    The ID of Function.
    maxInstance number
    Upper limit of the number of function instances.
    newRevisionNumber number
    The version number of the newly released version.
    oldRevisionNumber number
    The version number of the old version.
    releaseRecordId string
    The ID of Release record.
    revisionNumber number
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    rollingStep string
    Percentage of grayscale step size.
    stableRevisionNumber number
    The current version number that is stably running online.
    startTime string
    The current release start time.
    status string
    The status of function release.
    statusMessage string
    Detailed information of the function release status.
    targetTrafficWeight number
    Target percentage of published traffic.
    current_traffic_weight int
    The current percentage of current published traffic.
    description str
    The description of released this time.
    error_code str
    Error code when the release fails.
    failed_instance_logs str
    Download link for the failed instance log.
    function_id str
    The ID of Function.
    max_instance int
    Upper limit of the number of function instances.
    new_revision_number int
    The version number of the newly released version.
    old_revision_number int
    The version number of the old version.
    release_record_id str
    The ID of Release record.
    revision_number int
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    rolling_step str
    Percentage of grayscale step size.
    stable_revision_number int
    The current version number that is stably running online.
    start_time str
    The current release start time.
    status str
    The status of function release.
    status_message str
    Detailed information of the function release status.
    target_traffic_weight int
    Target percentage of published traffic.
    currentTrafficWeight Number
    The current percentage of current published traffic.
    description String
    The description of released this time.
    errorCode String
    Error code when the release fails.
    failedInstanceLogs String
    Download link for the failed instance log.
    functionId String
    The ID of Function.
    maxInstance Number
    Upper limit of the number of function instances.
    newRevisionNumber Number
    The version number of the newly released version.
    oldRevisionNumber Number
    The version number of the old version.
    releaseRecordId String
    The ID of Release record.
    revisionNumber Number
    When the RevisionNumber to be released is 0, the Latest code (Latest) will be released and a new version will be created. When importing resources, this attribute will not be imported. If this attribute is set, please use lifecycle and ignore_changes ignore changes in fields.
    rollingStep String
    Percentage of grayscale step size.
    stableRevisionNumber Number
    The current version number that is stably running online.
    startTime String
    The current release start time.
    status String
    The status of function release.
    statusMessage String
    Detailed information of the function release status.
    targetTrafficWeight Number
    Target percentage of published traffic.

    Import

    VefaasRelease can be imported using the id, e.g.

    $ pulumi import volcengine:vefaas/release:Release default FunctionId:ReleaseRecordId
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine