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

alicloud.fc.V2Function

Explore with Pulumi AI

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

    Create V2Function Resource

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

    Constructor syntax

    new V2Function(name: string, args: V2FunctionArgs, opts?: CustomResourceOptions);
    @overload
    def V2Function(resource_name: str,
                   args: V2FunctionArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def V2Function(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   function_name: Optional[str] = None,
                   service_name: Optional[str] = None,
                   runtime: Optional[str] = None,
                   handler: Optional[str] = None,
                   gpu_memory_size: Optional[int] = None,
                   cpu: Optional[float] = None,
                   custom_health_check_config: Optional[V2FunctionCustomHealthCheckConfigArgs] = None,
                   custom_runtime_config: Optional[V2FunctionCustomRuntimeConfigArgs] = None,
                   description: Optional[str] = None,
                   disk_size: Optional[int] = None,
                   environment_variables: Optional[Mapping[str, str]] = None,
                   custom_container_config: Optional[V2FunctionCustomContainerConfigArgs] = None,
                   ca_port: Optional[int] = None,
                   custom_dns: Optional[V2FunctionCustomDnsArgs] = None,
                   initialization_timeout: Optional[int] = None,
                   initializer: Optional[str] = None,
                   instance_concurrency: Optional[int] = None,
                   instance_lifecycle_config: Optional[V2FunctionInstanceLifecycleConfigArgs] = None,
                   instance_type: Optional[str] = None,
                   layers: Optional[Sequence[str]] = None,
                   memory_size: Optional[int] = None,
                   code_checksum: Optional[str] = None,
                   code: Optional[V2FunctionCodeArgs] = None,
                   timeout: Optional[int] = None)
    func NewV2Function(ctx *Context, name string, args V2FunctionArgs, opts ...ResourceOption) (*V2Function, error)
    public V2Function(string name, V2FunctionArgs args, CustomResourceOptions? opts = null)
    public V2Function(String name, V2FunctionArgs args)
    public V2Function(String name, V2FunctionArgs args, CustomResourceOptions options)
    
    type: alicloud:fc:V2Function
    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 V2FunctionArgs
    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 V2FunctionArgs
    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 V2FunctionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V2FunctionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V2FunctionArgs
    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 v2functionResource = new AliCloud.FC.V2Function("v2functionResource", new()
    {
        FunctionName = "string",
        ServiceName = "string",
        Runtime = "string",
        Handler = "string",
        GpuMemorySize = 0,
        Cpu = 0,
        CustomHealthCheckConfig = new AliCloud.FC.Inputs.V2FunctionCustomHealthCheckConfigArgs
        {
            FailureThreshold = 0,
            HttpGetUrl = "string",
            InitialDelaySeconds = 0,
            PeriodSeconds = 0,
            SuccessThreshold = 0,
            TimeoutSeconds = 0,
        },
        CustomRuntimeConfig = new AliCloud.FC.Inputs.V2FunctionCustomRuntimeConfigArgs
        {
            Args = new[]
            {
                "string",
            },
            Commands = new[]
            {
                "string",
            },
        },
        Description = "string",
        DiskSize = 0,
        EnvironmentVariables = 
        {
            { "string", "string" },
        },
        CustomContainerConfig = new AliCloud.FC.Inputs.V2FunctionCustomContainerConfigArgs
        {
            AccelerationType = "string",
            Args = "string",
            Command = "string",
            Image = "string",
            WebServerMode = false,
        },
        CaPort = 0,
        CustomDns = new AliCloud.FC.Inputs.V2FunctionCustomDnsArgs
        {
            DnsOptions = new[]
            {
                new AliCloud.FC.Inputs.V2FunctionCustomDnsDnsOptionArgs
                {
                    Name = "string",
                    Value = "string",
                },
            },
            NameServers = new[]
            {
                "string",
            },
            Searches = new[]
            {
                "string",
            },
        },
        InitializationTimeout = 0,
        Initializer = "string",
        InstanceConcurrency = 0,
        InstanceLifecycleConfig = new AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigArgs
        {
            PreFreeze = new AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigPreFreezeArgs
            {
                Handler = "string",
                Timeout = 0,
            },
            PreStop = new AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigPreStopArgs
            {
                Handler = "string",
                Timeout = 0,
            },
        },
        InstanceType = "string",
        Layers = new[]
        {
            "string",
        },
        MemorySize = 0,
        CodeChecksum = "string",
        Code = new AliCloud.FC.Inputs.V2FunctionCodeArgs
        {
            OssBucketName = "string",
            OssObjectName = "string",
            ZipFile = "string",
        },
        Timeout = 0,
    });
    
    example, err := fc.NewV2Function(ctx, "v2functionResource", &fc.V2FunctionArgs{
    	FunctionName:  pulumi.String("string"),
    	ServiceName:   pulumi.String("string"),
    	Runtime:       pulumi.String("string"),
    	Handler:       pulumi.String("string"),
    	GpuMemorySize: pulumi.Int(0),
    	Cpu:           pulumi.Float64(0),
    	CustomHealthCheckConfig: &fc.V2FunctionCustomHealthCheckConfigArgs{
    		FailureThreshold:    pulumi.Int(0),
    		HttpGetUrl:          pulumi.String("string"),
    		InitialDelaySeconds: pulumi.Int(0),
    		PeriodSeconds:       pulumi.Int(0),
    		SuccessThreshold:    pulumi.Int(0),
    		TimeoutSeconds:      pulumi.Int(0),
    	},
    	CustomRuntimeConfig: &fc.V2FunctionCustomRuntimeConfigArgs{
    		Args: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Commands: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	Description: pulumi.String("string"),
    	DiskSize:    pulumi.Int(0),
    	EnvironmentVariables: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	CustomContainerConfig: &fc.V2FunctionCustomContainerConfigArgs{
    		AccelerationType: pulumi.String("string"),
    		Args:             pulumi.String("string"),
    		Command:          pulumi.String("string"),
    		Image:            pulumi.String("string"),
    		WebServerMode:    pulumi.Bool(false),
    	},
    	CaPort: pulumi.Int(0),
    	CustomDns: &fc.V2FunctionCustomDnsArgs{
    		DnsOptions: fc.V2FunctionCustomDnsDnsOptionArray{
    			&fc.V2FunctionCustomDnsDnsOptionArgs{
    				Name:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		NameServers: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Searches: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	InitializationTimeout: pulumi.Int(0),
    	Initializer:           pulumi.String("string"),
    	InstanceConcurrency:   pulumi.Int(0),
    	InstanceLifecycleConfig: &fc.V2FunctionInstanceLifecycleConfigArgs{
    		PreFreeze: &fc.V2FunctionInstanceLifecycleConfigPreFreezeArgs{
    			Handler: pulumi.String("string"),
    			Timeout: pulumi.Int(0),
    		},
    		PreStop: &fc.V2FunctionInstanceLifecycleConfigPreStopArgs{
    			Handler: pulumi.String("string"),
    			Timeout: pulumi.Int(0),
    		},
    	},
    	InstanceType: pulumi.String("string"),
    	Layers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	MemorySize:   pulumi.Int(0),
    	CodeChecksum: pulumi.String("string"),
    	Code: &fc.V2FunctionCodeArgs{
    		OssBucketName: pulumi.String("string"),
    		OssObjectName: pulumi.String("string"),
    		ZipFile:       pulumi.String("string"),
    	},
    	Timeout: pulumi.Int(0),
    })
    
    var v2functionResource = new V2Function("v2functionResource", V2FunctionArgs.builder()
        .functionName("string")
        .serviceName("string")
        .runtime("string")
        .handler("string")
        .gpuMemorySize(0)
        .cpu(0)
        .customHealthCheckConfig(V2FunctionCustomHealthCheckConfigArgs.builder()
            .failureThreshold(0)
            .httpGetUrl("string")
            .initialDelaySeconds(0)
            .periodSeconds(0)
            .successThreshold(0)
            .timeoutSeconds(0)
            .build())
        .customRuntimeConfig(V2FunctionCustomRuntimeConfigArgs.builder()
            .args("string")
            .commands("string")
            .build())
        .description("string")
        .diskSize(0)
        .environmentVariables(Map.of("string", "string"))
        .customContainerConfig(V2FunctionCustomContainerConfigArgs.builder()
            .accelerationType("string")
            .args("string")
            .command("string")
            .image("string")
            .webServerMode(false)
            .build())
        .caPort(0)
        .customDns(V2FunctionCustomDnsArgs.builder()
            .dnsOptions(V2FunctionCustomDnsDnsOptionArgs.builder()
                .name("string")
                .value("string")
                .build())
            .nameServers("string")
            .searches("string")
            .build())
        .initializationTimeout(0)
        .initializer("string")
        .instanceConcurrency(0)
        .instanceLifecycleConfig(V2FunctionInstanceLifecycleConfigArgs.builder()
            .preFreeze(V2FunctionInstanceLifecycleConfigPreFreezeArgs.builder()
                .handler("string")
                .timeout(0)
                .build())
            .preStop(V2FunctionInstanceLifecycleConfigPreStopArgs.builder()
                .handler("string")
                .timeout(0)
                .build())
            .build())
        .instanceType("string")
        .layers("string")
        .memorySize(0)
        .codeChecksum("string")
        .code(V2FunctionCodeArgs.builder()
            .ossBucketName("string")
            .ossObjectName("string")
            .zipFile("string")
            .build())
        .timeout(0)
        .build());
    
    v2function_resource = alicloud.fc.V2Function("v2functionResource",
        function_name="string",
        service_name="string",
        runtime="string",
        handler="string",
        gpu_memory_size=0,
        cpu=0,
        custom_health_check_config={
            "failure_threshold": 0,
            "http_get_url": "string",
            "initial_delay_seconds": 0,
            "period_seconds": 0,
            "success_threshold": 0,
            "timeout_seconds": 0,
        },
        custom_runtime_config={
            "args": ["string"],
            "commands": ["string"],
        },
        description="string",
        disk_size=0,
        environment_variables={
            "string": "string",
        },
        custom_container_config={
            "acceleration_type": "string",
            "args": "string",
            "command": "string",
            "image": "string",
            "web_server_mode": False,
        },
        ca_port=0,
        custom_dns={
            "dns_options": [{
                "name": "string",
                "value": "string",
            }],
            "name_servers": ["string"],
            "searches": ["string"],
        },
        initialization_timeout=0,
        initializer="string",
        instance_concurrency=0,
        instance_lifecycle_config={
            "pre_freeze": {
                "handler": "string",
                "timeout": 0,
            },
            "pre_stop": {
                "handler": "string",
                "timeout": 0,
            },
        },
        instance_type="string",
        layers=["string"],
        memory_size=0,
        code_checksum="string",
        code={
            "oss_bucket_name": "string",
            "oss_object_name": "string",
            "zip_file": "string",
        },
        timeout=0)
    
    const v2functionResource = new alicloud.fc.V2Function("v2functionResource", {
        functionName: "string",
        serviceName: "string",
        runtime: "string",
        handler: "string",
        gpuMemorySize: 0,
        cpu: 0,
        customHealthCheckConfig: {
            failureThreshold: 0,
            httpGetUrl: "string",
            initialDelaySeconds: 0,
            periodSeconds: 0,
            successThreshold: 0,
            timeoutSeconds: 0,
        },
        customRuntimeConfig: {
            args: ["string"],
            commands: ["string"],
        },
        description: "string",
        diskSize: 0,
        environmentVariables: {
            string: "string",
        },
        customContainerConfig: {
            accelerationType: "string",
            args: "string",
            command: "string",
            image: "string",
            webServerMode: false,
        },
        caPort: 0,
        customDns: {
            dnsOptions: [{
                name: "string",
                value: "string",
            }],
            nameServers: ["string"],
            searches: ["string"],
        },
        initializationTimeout: 0,
        initializer: "string",
        instanceConcurrency: 0,
        instanceLifecycleConfig: {
            preFreeze: {
                handler: "string",
                timeout: 0,
            },
            preStop: {
                handler: "string",
                timeout: 0,
            },
        },
        instanceType: "string",
        layers: ["string"],
        memorySize: 0,
        codeChecksum: "string",
        code: {
            ossBucketName: "string",
            ossObjectName: "string",
            zipFile: "string",
        },
        timeout: 0,
    });
    
    type: alicloud:fc:V2Function
    properties:
        caPort: 0
        code:
            ossBucketName: string
            ossObjectName: string
            zipFile: string
        codeChecksum: string
        cpu: 0
        customContainerConfig:
            accelerationType: string
            args: string
            command: string
            image: string
            webServerMode: false
        customDns:
            dnsOptions:
                - name: string
                  value: string
            nameServers:
                - string
            searches:
                - string
        customHealthCheckConfig:
            failureThreshold: 0
            httpGetUrl: string
            initialDelaySeconds: 0
            periodSeconds: 0
            successThreshold: 0
            timeoutSeconds: 0
        customRuntimeConfig:
            args:
                - string
            commands:
                - string
        description: string
        diskSize: 0
        environmentVariables:
            string: string
        functionName: string
        gpuMemorySize: 0
        handler: string
        initializationTimeout: 0
        initializer: string
        instanceConcurrency: 0
        instanceLifecycleConfig:
            preFreeze:
                handler: string
                timeout: 0
            preStop:
                handler: string
                timeout: 0
        instanceType: string
        layers:
            - string
        memorySize: 0
        runtime: string
        serviceName: string
        timeout: 0
    

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

    Outputs

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

    CreateTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime string
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime String
    id String
    The provider-assigned unique ID for this managed resource.
    createTime string
    id string
    The provider-assigned unique ID for this managed resource.
    create_time str
    id str
    The provider-assigned unique ID for this managed resource.
    createTime String
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing V2Function Resource

    Get an existing V2Function 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?: V2FunctionState, opts?: CustomResourceOptions): V2Function
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ca_port: Optional[int] = None,
            code: Optional[V2FunctionCodeArgs] = None,
            code_checksum: Optional[str] = None,
            cpu: Optional[float] = None,
            create_time: Optional[str] = None,
            custom_container_config: Optional[V2FunctionCustomContainerConfigArgs] = None,
            custom_dns: Optional[V2FunctionCustomDnsArgs] = None,
            custom_health_check_config: Optional[V2FunctionCustomHealthCheckConfigArgs] = None,
            custom_runtime_config: Optional[V2FunctionCustomRuntimeConfigArgs] = None,
            description: Optional[str] = None,
            disk_size: Optional[int] = None,
            environment_variables: Optional[Mapping[str, str]] = None,
            function_name: Optional[str] = None,
            gpu_memory_size: Optional[int] = None,
            handler: Optional[str] = None,
            initialization_timeout: Optional[int] = None,
            initializer: Optional[str] = None,
            instance_concurrency: Optional[int] = None,
            instance_lifecycle_config: Optional[V2FunctionInstanceLifecycleConfigArgs] = None,
            instance_type: Optional[str] = None,
            layers: Optional[Sequence[str]] = None,
            memory_size: Optional[int] = None,
            runtime: Optional[str] = None,
            service_name: Optional[str] = None,
            timeout: Optional[int] = None) -> V2Function
    func GetV2Function(ctx *Context, name string, id IDInput, state *V2FunctionState, opts ...ResourceOption) (*V2Function, error)
    public static V2Function Get(string name, Input<string> id, V2FunctionState? state, CustomResourceOptions? opts = null)
    public static V2Function get(String name, Output<String> id, V2FunctionState 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:

    Supporting Types

    V2FunctionCode, V2FunctionCodeArgs

    OssBucketName string
    The OSS bucket name of the function code package.
    OssObjectName string
    The OSS object name of the function code package.
    ZipFile string
    Upload the base64 encoding of the code zip package directly in the request body.
    OssBucketName string
    The OSS bucket name of the function code package.
    OssObjectName string
    The OSS object name of the function code package.
    ZipFile string
    Upload the base64 encoding of the code zip package directly in the request body.
    ossBucketName String
    The OSS bucket name of the function code package.
    ossObjectName String
    The OSS object name of the function code package.
    zipFile String
    Upload the base64 encoding of the code zip package directly in the request body.
    ossBucketName string
    The OSS bucket name of the function code package.
    ossObjectName string
    The OSS object name of the function code package.
    zipFile string
    Upload the base64 encoding of the code zip package directly in the request body.
    oss_bucket_name str
    The OSS bucket name of the function code package.
    oss_object_name str
    The OSS object name of the function code package.
    zip_file str
    Upload the base64 encoding of the code zip package directly in the request body.
    ossBucketName String
    The OSS bucket name of the function code package.
    ossObjectName String
    The OSS object name of the function code package.
    zipFile String
    Upload the base64 encoding of the code zip package directly in the request body.

    V2FunctionCustomContainerConfig, V2FunctionCustomContainerConfigArgs

    AccelerationType string
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    Args string
    Container startup parameters.
    Command string
    Container start command, equivalent to Docker ENTRYPOINT.
    Image string
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    WebServerMode bool
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
    AccelerationType string
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    Args string
    Container startup parameters.
    Command string
    Container start command, equivalent to Docker ENTRYPOINT.
    Image string
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    WebServerMode bool
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
    accelerationType String
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    args String
    Container startup parameters.
    command String
    Container start command, equivalent to Docker ENTRYPOINT.
    image String
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    webServerMode Boolean
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
    accelerationType string
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    args string
    Container startup parameters.
    command string
    Container start command, equivalent to Docker ENTRYPOINT.
    image string
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    webServerMode boolean
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
    acceleration_type str
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    args str
    Container startup parameters.
    command str
    Container start command, equivalent to Docker ENTRYPOINT.
    image str
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    web_server_mode bool
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.
    accelerationType String
    Image acceleration type. The value Default is to enable acceleration and None is to disable acceleration.
    args String
    Container startup parameters.
    command String
    Container start command, equivalent to Docker ENTRYPOINT.
    image String
    Container Image address. Example value: registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1.
    webServerMode Boolean
    Whether the image is run in Web Server mode. The value of true needs to implement the Web Server in the container image to listen to the port and process the request. The value of false needs to actively exit the process after the container runs, and the ExitCode needs to be 0. Default true.

    V2FunctionCustomDns, V2FunctionCustomDnsArgs

    DnsOptions List<Pulumi.AliCloud.FC.Inputs.V2FunctionCustomDnsDnsOption>
    DNS resolver configuration parameter list. See dns_options below.
    NameServers List<string>
    List of IP addresses of DNS servers.
    Searches List<string>
    List of DNS search domains.
    DnsOptions []V2FunctionCustomDnsDnsOption
    DNS resolver configuration parameter list. See dns_options below.
    NameServers []string
    List of IP addresses of DNS servers.
    Searches []string
    List of DNS search domains.
    dnsOptions List<V2FunctionCustomDnsDnsOption>
    DNS resolver configuration parameter list. See dns_options below.
    nameServers List<String>
    List of IP addresses of DNS servers.
    searches List<String>
    List of DNS search domains.
    dnsOptions V2FunctionCustomDnsDnsOption[]
    DNS resolver configuration parameter list. See dns_options below.
    nameServers string[]
    List of IP addresses of DNS servers.
    searches string[]
    List of DNS search domains.
    dns_options Sequence[V2FunctionCustomDnsDnsOption]
    DNS resolver configuration parameter list. See dns_options below.
    name_servers Sequence[str]
    List of IP addresses of DNS servers.
    searches Sequence[str]
    List of DNS search domains.
    dnsOptions List<Property Map>
    DNS resolver configuration parameter list. See dns_options below.
    nameServers List<String>
    List of IP addresses of DNS servers.
    searches List<String>
    List of DNS search domains.

    V2FunctionCustomDnsDnsOption, V2FunctionCustomDnsDnsOptionArgs

    Name string
    DNS option name.
    Value string
    DNS option value.
    Name string
    DNS option name.
    Value string
    DNS option value.
    name String
    DNS option name.
    value String
    DNS option value.
    name string
    DNS option name.
    value string
    DNS option value.
    name str
    DNS option name.
    value str
    DNS option value.
    name String
    DNS option name.
    value String
    DNS option value.

    V2FunctionCustomHealthCheckConfig, V2FunctionCustomHealthCheckConfigArgs

    FailureThreshold int
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    HttpGetUrl string
    Container custom health check URL address.
    InitialDelaySeconds int
    Delay from container startup to initiation of health check.
    PeriodSeconds int
    Health check cycle.
    SuccessThreshold int
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    TimeoutSeconds int
    Health check timeout.
    FailureThreshold int
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    HttpGetUrl string
    Container custom health check URL address.
    InitialDelaySeconds int
    Delay from container startup to initiation of health check.
    PeriodSeconds int
    Health check cycle.
    SuccessThreshold int
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    TimeoutSeconds int
    Health check timeout.
    failureThreshold Integer
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    httpGetUrl String
    Container custom health check URL address.
    initialDelaySeconds Integer
    Delay from container startup to initiation of health check.
    periodSeconds Integer
    Health check cycle.
    successThreshold Integer
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    timeoutSeconds Integer
    Health check timeout.
    failureThreshold number
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    httpGetUrl string
    Container custom health check URL address.
    initialDelaySeconds number
    Delay from container startup to initiation of health check.
    periodSeconds number
    Health check cycle.
    successThreshold number
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    timeoutSeconds number
    Health check timeout.
    failure_threshold int
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    http_get_url str
    Container custom health check URL address.
    initial_delay_seconds int
    Delay from container startup to initiation of health check.
    period_seconds int
    Health check cycle.
    success_threshold int
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    timeout_seconds int
    Health check timeout.
    failureThreshold Number
    The threshold for the number of health check failures. The system considers the check failed after the health check fails.
    httpGetUrl String
    Container custom health check URL address.
    initialDelaySeconds Number
    Delay from container startup to initiation of health check.
    periodSeconds Number
    Health check cycle.
    successThreshold Number
    The threshold for the number of successful health checks. After the health check is reached, the system considers the check successful.
    timeoutSeconds Number
    Health check timeout.

    V2FunctionCustomRuntimeConfig, V2FunctionCustomRuntimeConfigArgs

    Args List<string>
    Parameters received by the start entry command.
    Commands List<string>
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.
    Args []string
    Parameters received by the start entry command.
    Commands []string
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.
    args List<String>
    Parameters received by the start entry command.
    commands List<String>
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.
    args string[]
    Parameters received by the start entry command.
    commands string[]
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.
    args Sequence[str]
    Parameters received by the start entry command.
    commands Sequence[str]
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.
    args List<String>
    Parameters received by the start entry command.
    commands List<String>
    List of Custom entry commands started by Custom Runtime. When there are multiple commands in the list, they are spliced in sequence.

    V2FunctionInstanceLifecycleConfig, V2FunctionInstanceLifecycleConfigArgs

    PreFreeze Pulumi.AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigPreFreeze
    PreFreeze function configuration. See pre_freeze below.
    PreStop Pulumi.AliCloud.FC.Inputs.V2FunctionInstanceLifecycleConfigPreStop
    PreStop function configuration. See pre_stop below.
    PreFreeze V2FunctionInstanceLifecycleConfigPreFreeze
    PreFreeze function configuration. See pre_freeze below.
    PreStop V2FunctionInstanceLifecycleConfigPreStop
    PreStop function configuration. See pre_stop below.
    preFreeze V2FunctionInstanceLifecycleConfigPreFreeze
    PreFreeze function configuration. See pre_freeze below.
    preStop V2FunctionInstanceLifecycleConfigPreStop
    PreStop function configuration. See pre_stop below.
    preFreeze V2FunctionInstanceLifecycleConfigPreFreeze
    PreFreeze function configuration. See pre_freeze below.
    preStop V2FunctionInstanceLifecycleConfigPreStop
    PreStop function configuration. See pre_stop below.
    pre_freeze V2FunctionInstanceLifecycleConfigPreFreeze
    PreFreeze function configuration. See pre_freeze below.
    pre_stop V2FunctionInstanceLifecycleConfigPreStop
    PreStop function configuration. See pre_stop below.
    preFreeze Property Map
    PreFreeze function configuration. See pre_freeze below.
    preStop Property Map
    PreStop function configuration. See pre_stop below.

    V2FunctionInstanceLifecycleConfigPreFreeze, V2FunctionInstanceLifecycleConfigPreFreezeArgs

    Handler string
    entry point of function.
    Timeout int
    max running time of function.
    Handler string
    entry point of function.
    Timeout int
    max running time of function.
    handler String
    entry point of function.
    timeout Integer
    max running time of function.
    handler string
    entry point of function.
    timeout number
    max running time of function.
    handler str
    entry point of function.
    timeout int
    max running time of function.
    handler String
    entry point of function.
    timeout Number
    max running time of function.

    V2FunctionInstanceLifecycleConfigPreStop, V2FunctionInstanceLifecycleConfigPreStopArgs

    Handler string
    entry point of function.
    Timeout int
    max running time of function.
    Handler string
    entry point of function.
    Timeout int
    max running time of function.
    handler String
    entry point of function.
    timeout Integer
    max running time of function.
    handler string
    entry point of function.
    timeout number
    max running time of function.
    handler str
    entry point of function.
    timeout int
    max running time of function.
    handler String
    entry point of function.
    timeout Number
    max running time of function.

    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