tencentcloud.ScfFunctionVersion
Explore with Pulumi AI
Provides a resource to create a scf function_version
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const functionVersion = new tencentcloud.ScfFunctionVersion("functionVersion", {
description: "for-terraform-test",
functionName: "keep-1676351130",
namespace: "default",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
function_version = tencentcloud.ScfFunctionVersion("functionVersion",
description="for-terraform-test",
function_name="keep-1676351130",
namespace="default")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewScfFunctionVersion(ctx, "functionVersion", &tencentcloud.ScfFunctionVersionArgs{
Description: pulumi.String("for-terraform-test"),
FunctionName: pulumi.String("keep-1676351130"),
Namespace: pulumi.String("default"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var functionVersion = new Tencentcloud.ScfFunctionVersion("functionVersion", new()
{
Description = "for-terraform-test",
FunctionName = "keep-1676351130",
Namespace = "default",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ScfFunctionVersion;
import com.pulumi.tencentcloud.ScfFunctionVersionArgs;
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 functionVersion = new ScfFunctionVersion("functionVersion", ScfFunctionVersionArgs.builder()
.description("for-terraform-test")
.functionName("keep-1676351130")
.namespace("default")
.build());
}
}
resources:
functionVersion:
type: tencentcloud:ScfFunctionVersion
properties:
description: for-terraform-test
functionName: keep-1676351130
namespace: default
Create ScfFunctionVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScfFunctionVersion(name: string, args: ScfFunctionVersionArgs, opts?: CustomResourceOptions);
@overload
def ScfFunctionVersion(resource_name: str,
args: ScfFunctionVersionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScfFunctionVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
function_name: Optional[str] = None,
description: Optional[str] = None,
namespace: Optional[str] = None,
scf_function_version_id: Optional[str] = None)
func NewScfFunctionVersion(ctx *Context, name string, args ScfFunctionVersionArgs, opts ...ResourceOption) (*ScfFunctionVersion, error)
public ScfFunctionVersion(string name, ScfFunctionVersionArgs args, CustomResourceOptions? opts = null)
public ScfFunctionVersion(String name, ScfFunctionVersionArgs args)
public ScfFunctionVersion(String name, ScfFunctionVersionArgs args, CustomResourceOptions options)
type: tencentcloud:ScfFunctionVersion
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 ScfFunctionVersionArgs
- 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 ScfFunctionVersionArgs
- 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 ScfFunctionVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScfFunctionVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScfFunctionVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ScfFunctionVersion 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 ScfFunctionVersion resource accepts the following input properties:
- Function
Name string - Name of the released function.
- Description string
- Function description.
- Namespace string
- Function namespace.
- Scf
Function stringVersion Id - ID of the resource.
- Function
Name string - Name of the released function.
- Description string
- Function description.
- Namespace string
- Function namespace.
- Scf
Function stringVersion Id - ID of the resource.
- function
Name String - Name of the released function.
- description String
- Function description.
- namespace String
- Function namespace.
- scf
Function StringVersion Id - ID of the resource.
- function
Name string - Name of the released function.
- description string
- Function description.
- namespace string
- Function namespace.
- scf
Function stringVersion Id - ID of the resource.
- function_
name str - Name of the released function.
- description str
- Function description.
- namespace str
- Function namespace.
- scf_
function_ strversion_ id - ID of the resource.
- function
Name String - Name of the released function.
- description String
- Function description.
- namespace String
- Function namespace.
- scf
Function StringVersion Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScfFunctionVersion resource produces the following output properties:
- Function
Version string - Version of the released function.
- Id string
- The provider-assigned unique ID for this managed resource.
- Function
Version string - Version of the released function.
- Id string
- The provider-assigned unique ID for this managed resource.
- function
Version String - Version of the released function.
- id String
- The provider-assigned unique ID for this managed resource.
- function
Version string - Version of the released function.
- id string
- The provider-assigned unique ID for this managed resource.
- function_
version str - Version of the released function.
- id str
- The provider-assigned unique ID for this managed resource.
- function
Version String - Version of the released function.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ScfFunctionVersion Resource
Get an existing ScfFunctionVersion 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?: ScfFunctionVersionState, opts?: CustomResourceOptions): ScfFunctionVersion
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
function_name: Optional[str] = None,
function_version: Optional[str] = None,
namespace: Optional[str] = None,
scf_function_version_id: Optional[str] = None) -> ScfFunctionVersion
func GetScfFunctionVersion(ctx *Context, name string, id IDInput, state *ScfFunctionVersionState, opts ...ResourceOption) (*ScfFunctionVersion, error)
public static ScfFunctionVersion Get(string name, Input<string> id, ScfFunctionVersionState? state, CustomResourceOptions? opts = null)
public static ScfFunctionVersion get(String name, Output<String> id, ScfFunctionVersionState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ScfFunctionVersion 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.
- Description string
- Function description.
- Function
Name string - Name of the released function.
- Function
Version string - Version of the released function.
- Namespace string
- Function namespace.
- Scf
Function stringVersion Id - ID of the resource.
- Description string
- Function description.
- Function
Name string - Name of the released function.
- Function
Version string - Version of the released function.
- Namespace string
- Function namespace.
- Scf
Function stringVersion Id - ID of the resource.
- description String
- Function description.
- function
Name String - Name of the released function.
- function
Version String - Version of the released function.
- namespace String
- Function namespace.
- scf
Function StringVersion Id - ID of the resource.
- description string
- Function description.
- function
Name string - Name of the released function.
- function
Version string - Version of the released function.
- namespace string
- Function namespace.
- scf
Function stringVersion Id - ID of the resource.
- description str
- Function description.
- function_
name str - Name of the released function.
- function_
version str - Version of the released function.
- namespace str
- Function namespace.
- scf_
function_ strversion_ id - ID of the resource.
- description String
- Function description.
- function
Name String - Name of the released function.
- function
Version String - Version of the released function.
- namespace String
- Function namespace.
- scf
Function StringVersion Id - ID of the resource.
Import
scf function_version can be imported using the id, e.g.
$ pulumi import tencentcloud:index/scfFunctionVersion:ScfFunctionVersion function_version functionName#namespace#functionVersion
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.