tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
tencentcloud.getScfFunctionAliases
Explore with Pulumi AI
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack
Use this data source to query detailed information of scf function_aliases
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const functionAliases = tencentcloud.getScfFunctionAliases({
    functionName: "keep-1676351130",
    namespace: "default",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
function_aliases = tencentcloud.get_scf_function_aliases(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.GetScfFunctionAliases(ctx, &tencentcloud.GetScfFunctionAliasesArgs{
			FunctionName: "keep-1676351130",
			Namespace:    pulumi.StringRef("default"),
		}, nil)
		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 functionAliases = Tencentcloud.GetScfFunctionAliases.Invoke(new()
    {
        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.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetScfFunctionAliasesArgs;
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 functionAliases = TencentcloudFunctions.getScfFunctionAliases(GetScfFunctionAliasesArgs.builder()
            .functionName("keep-1676351130")
            .namespace("default")
            .build());
    }
}
variables:
  functionAliases:
    fn::invoke:
      function: tencentcloud:getScfFunctionAliases
      arguments:
        functionName: keep-1676351130
        namespace: default
Using getScfFunctionAliases
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getScfFunctionAliases(args: GetScfFunctionAliasesArgs, opts?: InvokeOptions): Promise<GetScfFunctionAliasesResult>
function getScfFunctionAliasesOutput(args: GetScfFunctionAliasesOutputArgs, opts?: InvokeOptions): Output<GetScfFunctionAliasesResult>def get_scf_function_aliases(function_name: Optional[str] = None,
                             function_version: Optional[str] = None,
                             id: Optional[str] = None,
                             namespace: Optional[str] = None,
                             result_output_file: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetScfFunctionAliasesResult
def get_scf_function_aliases_output(function_name: Optional[pulumi.Input[str]] = None,
                             function_version: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             namespace: Optional[pulumi.Input[str]] = None,
                             result_output_file: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetScfFunctionAliasesResult]func GetScfFunctionAliases(ctx *Context, args *GetScfFunctionAliasesArgs, opts ...InvokeOption) (*GetScfFunctionAliasesResult, error)
func GetScfFunctionAliasesOutput(ctx *Context, args *GetScfFunctionAliasesOutputArgs, opts ...InvokeOption) GetScfFunctionAliasesResultOutput> Note: This function is named GetScfFunctionAliases in the Go SDK.
public static class GetScfFunctionAliases 
{
    public static Task<GetScfFunctionAliasesResult> InvokeAsync(GetScfFunctionAliasesArgs args, InvokeOptions? opts = null)
    public static Output<GetScfFunctionAliasesResult> Invoke(GetScfFunctionAliasesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetScfFunctionAliasesResult> getScfFunctionAliases(GetScfFunctionAliasesArgs args, InvokeOptions options)
public static Output<GetScfFunctionAliasesResult> getScfFunctionAliases(GetScfFunctionAliasesArgs args, InvokeOptions options)
fn::invoke:
  function: tencentcloud:index/getScfFunctionAliases:getScfFunctionAliases
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FunctionName string
- Function name.
- FunctionVersion string
- If this parameter is provided, only aliases associated with this function version will be returned.
- Id string
- Namespace string
- Function namespace.
- ResultOutput stringFile 
- Used to save results.
- FunctionName string
- Function name.
- FunctionVersion string
- If this parameter is provided, only aliases associated with this function version will be returned.
- Id string
- Namespace string
- Function namespace.
- ResultOutput stringFile 
- Used to save results.
- functionName String
- Function name.
- functionVersion String
- If this parameter is provided, only aliases associated with this function version will be returned.
- id String
- namespace String
- Function namespace.
- resultOutput StringFile 
- Used to save results.
- functionName string
- Function name.
- functionVersion string
- If this parameter is provided, only aliases associated with this function version will be returned.
- id string
- namespace string
- Function namespace.
- resultOutput stringFile 
- Used to save results.
- function_name str
- Function name.
- function_version str
- If this parameter is provided, only aliases associated with this function version will be returned.
- id str
- namespace str
- Function namespace.
- result_output_ strfile 
- Used to save results.
- functionName String
- Function name.
- functionVersion String
- If this parameter is provided, only aliases associated with this function version will be returned.
- id String
- namespace String
- Function namespace.
- resultOutput StringFile 
- Used to save results.
getScfFunctionAliases Result
The following output properties are available:
- Aliases
List<GetScf Function Aliases Alias> 
- Alias list.
- FunctionName string
- Id string
- FunctionVersion string
- Master version pointed to by the alias.
- Namespace string
- ResultOutput stringFile 
- Aliases
[]GetScf Function Aliases Alias 
- Alias list.
- FunctionName string
- Id string
- FunctionVersion string
- Master version pointed to by the alias.
- Namespace string
- ResultOutput stringFile 
- aliases
List<GetScf Function Aliases Alias> 
- Alias list.
- functionName String
- id String
- functionVersion String
- Master version pointed to by the alias.
- namespace String
- resultOutput StringFile 
- aliases
GetScf Function Aliases Alias[] 
- Alias list.
- functionName string
- id string
- functionVersion string
- Master version pointed to by the alias.
- namespace string
- resultOutput stringFile 
- aliases
Sequence[GetScf Function Aliases Alias] 
- Alias list.
- function_name str
- id str
- function_version str
- Master version pointed to by the alias.
- namespace str
- result_output_ strfile 
- aliases List<Property Map>
- Alias list.
- functionName String
- id String
- functionVersion String
- Master version pointed to by the alias.
- namespace String
- resultOutput StringFile 
Supporting Types
GetScfFunctionAliasesAlias    
- AddTime string
- Creation timeNote: this field may return null, indicating that no valid values can be obtained.
- Description string
- DescriptionNote: this field may return null, indicating that no valid values can be obtained.
- FunctionVersion string
- If this parameter is provided, only aliases associated with this function version will be returned.
- ModTime string
- Update timeNote: this field may return null, indicating that no valid values can be obtained.
- Name string
- Alias name.
- RoutingConfigs List<GetScf Function Aliases Alias Routing Config> 
- Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
- AddTime string
- Creation timeNote: this field may return null, indicating that no valid values can be obtained.
- Description string
- DescriptionNote: this field may return null, indicating that no valid values can be obtained.
- FunctionVersion string
- If this parameter is provided, only aliases associated with this function version will be returned.
- ModTime string
- Update timeNote: this field may return null, indicating that no valid values can be obtained.
- Name string
- Alias name.
- RoutingConfigs []GetScf Function Aliases Alias Routing Config 
- Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
- addTime String
- Creation timeNote: this field may return null, indicating that no valid values can be obtained.
- description String
- DescriptionNote: this field may return null, indicating that no valid values can be obtained.
- functionVersion String
- If this parameter is provided, only aliases associated with this function version will be returned.
- modTime String
- Update timeNote: this field may return null, indicating that no valid values can be obtained.
- name String
- Alias name.
- routingConfigs List<GetScf Function Aliases Alias Routing Config> 
- Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
- addTime string
- Creation timeNote: this field may return null, indicating that no valid values can be obtained.
- description string
- DescriptionNote: this field may return null, indicating that no valid values can be obtained.
- functionVersion string
- If this parameter is provided, only aliases associated with this function version will be returned.
- modTime string
- Update timeNote: this field may return null, indicating that no valid values can be obtained.
- name string
- Alias name.
- routingConfigs GetScf Function Aliases Alias Routing Config[] 
- Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
- add_time str
- Creation timeNote: this field may return null, indicating that no valid values can be obtained.
- description str
- DescriptionNote: this field may return null, indicating that no valid values can be obtained.
- function_version str
- If this parameter is provided, only aliases associated with this function version will be returned.
- mod_time str
- Update timeNote: this field may return null, indicating that no valid values can be obtained.
- name str
- Alias name.
- routing_configs Sequence[GetScf Function Aliases Alias Routing Config] 
- Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
- addTime String
- Creation timeNote: this field may return null, indicating that no valid values can be obtained.
- description String
- DescriptionNote: this field may return null, indicating that no valid values can be obtained.
- functionVersion String
- If this parameter is provided, only aliases associated with this function version will be returned.
- modTime String
- Update timeNote: this field may return null, indicating that no valid values can be obtained.
- name String
- Alias name.
- routingConfigs List<Property Map>
- Routing information of aliasNote: this field may return null, indicating that no valid values can be obtained.
GetScfFunctionAliasesAliasRoutingConfig      
- AdditionVersion List<GetMatchs Scf Function Aliases Alias Routing Config Addition Version Match> 
- Additional version with rule-based routing.
- AdditionalVersion List<GetWeights Scf Function Aliases Alias Routing Config Additional Version Weight> 
- Additional version with random weight-based routing.
- AdditionVersion []GetMatchs Scf Function Aliases Alias Routing Config Addition Version Match 
- Additional version with rule-based routing.
- AdditionalVersion []GetWeights Scf Function Aliases Alias Routing Config Additional Version Weight 
- Additional version with random weight-based routing.
- additionVersion List<GetMatchs Scf Function Aliases Alias Routing Config Addition Version Match> 
- Additional version with rule-based routing.
- additionalVersion List<GetWeights Scf Function Aliases Alias Routing Config Additional Version Weight> 
- Additional version with random weight-based routing.
- additionVersion GetMatchs Scf Function Aliases Alias Routing Config Addition Version Match[] 
- Additional version with rule-based routing.
- additionalVersion GetWeights Scf Function Aliases Alias Routing Config Additional Version Weight[] 
- Additional version with random weight-based routing.
- addition_version_ Sequence[Getmatchs Scf Function Aliases Alias Routing Config Addition Version Match] 
- Additional version with rule-based routing.
- additional_version_ Sequence[Getweights Scf Function Aliases Alias Routing Config Additional Version Weight] 
- Additional version with random weight-based routing.
- additionVersion List<Property Map>Matchs 
- Additional version with rule-based routing.
- additionalVersion List<Property Map>Weights 
- Additional version with random weight-based routing.
GetScfFunctionAliasesAliasRoutingConfigAdditionVersionMatch         
- Expression string
- Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b)or[a,b], where both a and b are integersRule requirements for exact match:Exact string match.
- Key string
- Matching rule key. When the API is called, pass in the keyto route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User forkeyand pass inRoutingKey:{User:value}when invoking a function throughinvokefor invocation based on rule matching.
- Method string
- Match method. Valid values:range: range matchexact: exact string match.
- Version string
- Function version name.
- Expression string
- Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b)or[a,b], where both a and b are integersRule requirements for exact match:Exact string match.
- Key string
- Matching rule key. When the API is called, pass in the keyto route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User forkeyand pass inRoutingKey:{User:value}when invoking a function throughinvokefor invocation based on rule matching.
- Method string
- Match method. Valid values:range: range matchexact: exact string match.
- Version string
- Function version name.
- expression String
- Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b)or[a,b], where both a and b are integersRule requirements for exact match:Exact string match.
- key String
- Matching rule key. When the API is called, pass in the keyto route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User forkeyand pass inRoutingKey:{User:value}when invoking a function throughinvokefor invocation based on rule matching.
- method String
- Match method. Valid values:range: range matchexact: exact string match.
- version String
- Function version name.
- expression string
- Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b)or[a,b], where both a and b are integersRule requirements for exact match:Exact string match.
- key string
- Matching rule key. When the API is called, pass in the keyto route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User forkeyand pass inRoutingKey:{User:value}when invoking a function throughinvokefor invocation based on rule matching.
- method string
- Match method. Valid values:range: range matchexact: exact string match.
- version string
- Function version name.
- expression str
- Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b)or[a,b], where both a and b are integersRule requirements for exact match:Exact string match.
- key str
- Matching rule key. When the API is called, pass in the keyto route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User forkeyand pass inRoutingKey:{User:value}when invoking a function throughinvokefor invocation based on rule matching.
- method str
- Match method. Valid values:range: range matchexact: exact string match.
- version str
- Function version name.
- expression String
- Rule requirements for range match:It should be described in an open or closed range, i.e., (a,b)or[a,b], where both a and b are integersRule requirements for exact match:Exact string match.
- key String
- Matching rule key. When the API is called, pass in the keyto route the request to the specified version based on the matching ruleHeader method:Enter invoke.headers.User forkeyand pass inRoutingKey:{User:value}when invoking a function throughinvokefor invocation based on rule matching.
- method String
- Match method. Valid values:range: range matchexact: exact string match.
- version String
- Function version name.
GetScfFunctionAliasesAliasRoutingConfigAdditionalVersionWeight         
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the tencentcloudTerraform Provider.
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack