alicloud.fc.CustomDomain
Provides an Alicloud Function Compute custom domain resource. For the detailed information, please refer to the developer guide.
NOTE: Available in 1.98.0+
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-testaccalicloudfcservice";
var defaultService = new AliCloud.FC.Service("defaultService", new()
{
Description = $"{name}-description",
});
var defaultBucket = new AliCloud.Oss.Bucket("defaultBucket", new()
{
BucketName = name,
});
var defaultBucketObject = new AliCloud.Oss.BucketObject("defaultBucketObject", new()
{
Bucket = defaultBucket.Id,
Key = "fc/hello.zip",
Content = @" # -*- coding: utf-8 -*-
def handler(event, context):
print ""hello world""
return 'hello world'
",
});
var defaultFunction = new AliCloud.FC.Function("defaultFunction", new()
{
Service = defaultService.Name,
OssBucket = defaultBucket.Id,
OssKey = defaultBucketObject.Key,
MemorySize = 512,
Runtime = "python2.7",
Handler = "hello.handler",
});
var defaultCustomDomain = new AliCloud.FC.CustomDomain("defaultCustomDomain", new()
{
DomainName = "terraform.functioncompute.com",
Protocol = "HTTP",
RouteConfigs = new[]
{
new AliCloud.FC.Inputs.CustomDomainRouteConfigArgs
{
Path = "/login/*",
ServiceName = defaultService.Name,
FunctionName = defaultFunction.Name,
Qualifier = "v1",
Methods = new[]
{
"GET",
"POST",
},
},
},
CertConfig = new AliCloud.FC.Inputs.CustomDomainCertConfigArgs
{
CertName = "your certificate name",
PrivateKey = "your private key",
Certificate = "your certificate data",
},
});
});
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/fc"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/oss"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-testaccalicloudfcservice"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultService, err := fc.NewService(ctx, "defaultService", &fc.ServiceArgs{
Description: pulumi.String(fmt.Sprintf("%v-description", name)),
})
if err != nil {
return err
}
defaultBucket, err := oss.NewBucket(ctx, "defaultBucket", &oss.BucketArgs{
Bucket: pulumi.String(name),
})
if err != nil {
return err
}
defaultBucketObject, err := oss.NewBucketObject(ctx, "defaultBucketObject", &oss.BucketObjectArgs{
Bucket: defaultBucket.ID(),
Key: pulumi.String("fc/hello.zip"),
Content: pulumi.String(fmt.Sprintf(" # -*- coding: utf-8 -*-\n def handler(event, context):\n print \"hello world\"\n return 'hello world'\n")),
})
if err != nil {
return err
}
defaultFunction, err := fc.NewFunction(ctx, "defaultFunction", &fc.FunctionArgs{
Service: defaultService.Name,
OssBucket: defaultBucket.ID(),
OssKey: defaultBucketObject.Key,
MemorySize: pulumi.Int(512),
Runtime: pulumi.String("python2.7"),
Handler: pulumi.String("hello.handler"),
})
if err != nil {
return err
}
_, err = fc.NewCustomDomain(ctx, "defaultCustomDomain", &fc.CustomDomainArgs{
DomainName: pulumi.String("terraform.functioncompute.com"),
Protocol: pulumi.String("HTTP"),
RouteConfigs: fc.CustomDomainRouteConfigArray{
&fc.CustomDomainRouteConfigArgs{
Path: pulumi.String("/login/*"),
ServiceName: defaultService.Name,
FunctionName: defaultFunction.Name,
Qualifier: pulumi.String("v1"),
Methods: pulumi.StringArray{
pulumi.String("GET"),
pulumi.String("POST"),
},
},
},
CertConfig: &fc.CustomDomainCertConfigArgs{
CertName: pulumi.String("your certificate name"),
PrivateKey: pulumi.String("your private key"),
Certificate: pulumi.String("your certificate data"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fc.Service;
import com.pulumi.alicloud.fc.ServiceArgs;
import com.pulumi.alicloud.oss.Bucket;
import com.pulumi.alicloud.oss.BucketArgs;
import com.pulumi.alicloud.oss.BucketObject;
import com.pulumi.alicloud.oss.BucketObjectArgs;
import com.pulumi.alicloud.fc.Function;
import com.pulumi.alicloud.fc.FunctionArgs;
import com.pulumi.alicloud.fc.CustomDomain;
import com.pulumi.alicloud.fc.CustomDomainArgs;
import com.pulumi.alicloud.fc.inputs.CustomDomainRouteConfigArgs;
import com.pulumi.alicloud.fc.inputs.CustomDomainCertConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-testaccalicloudfcservice");
var defaultService = new Service("defaultService", ServiceArgs.builder()
.description(String.format("%s-description", name))
.build());
var defaultBucket = new Bucket("defaultBucket", BucketArgs.builder()
.bucket(name)
.build());
var defaultBucketObject = new BucketObject("defaultBucketObject", BucketObjectArgs.builder()
.bucket(defaultBucket.id())
.key("fc/hello.zip")
.content("""
# -*- coding: utf-8 -*-
def handler(event, context):
print "hello world"
return 'hello world'
""")
.build());
var defaultFunction = new Function("defaultFunction", FunctionArgs.builder()
.service(defaultService.name())
.ossBucket(defaultBucket.id())
.ossKey(defaultBucketObject.key())
.memorySize(512)
.runtime("python2.7")
.handler("hello.handler")
.build());
var defaultCustomDomain = new CustomDomain("defaultCustomDomain", CustomDomainArgs.builder()
.domainName("terraform.functioncompute.com")
.protocol("HTTP")
.routeConfigs(CustomDomainRouteConfigArgs.builder()
.path("/login/*")
.serviceName(defaultService.name())
.functionName(defaultFunction.name())
.qualifier("v1")
.methods(
"GET",
"POST")
.build())
.certConfig(CustomDomainCertConfigArgs.builder()
.certName("your certificate name")
.privateKey("your private key")
.certificate("your certificate data")
.build())
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-testaccalicloudfcservice"
default_service = alicloud.fc.Service("defaultService", description=f"{name}-description")
default_bucket = alicloud.oss.Bucket("defaultBucket", bucket=name)
default_bucket_object = alicloud.oss.BucketObject("defaultBucketObject",
bucket=default_bucket.id,
key="fc/hello.zip",
content=""" # -*- coding: utf-8 -*-
def handler(event, context):
print "hello world"
return 'hello world'
""")
default_function = alicloud.fc.Function("defaultFunction",
service=default_service.name,
oss_bucket=default_bucket.id,
oss_key=default_bucket_object.key,
memory_size=512,
runtime="python2.7",
handler="hello.handler")
default_custom_domain = alicloud.fc.CustomDomain("defaultCustomDomain",
domain_name="terraform.functioncompute.com",
protocol="HTTP",
route_configs=[alicloud.fc.CustomDomainRouteConfigArgs(
path="/login/*",
service_name=default_service.name,
function_name=default_function.name,
qualifier="v1",
methods=[
"GET",
"POST",
],
)],
cert_config=alicloud.fc.CustomDomainCertConfigArgs(
cert_name="your certificate name",
private_key="your private key",
certificate="your certificate data",
))
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-testaccalicloudfcservice";
const defaultService = new alicloud.fc.Service("defaultService", {description: `${name}-description`});
const defaultBucket = new alicloud.oss.Bucket("defaultBucket", {bucket: name});
const defaultBucketObject = new alicloud.oss.BucketObject("defaultBucketObject", {
bucket: defaultBucket.id,
key: "fc/hello.zip",
content: ` # -*- coding: utf-8 -*-
def handler(event, context):
print "hello world"
return 'hello world'
`,
});
const defaultFunction = new alicloud.fc.Function("defaultFunction", {
service: defaultService.name,
ossBucket: defaultBucket.id,
ossKey: defaultBucketObject.key,
memorySize: 512,
runtime: "python2.7",
handler: "hello.handler",
});
const defaultCustomDomain = new alicloud.fc.CustomDomain("defaultCustomDomain", {
domainName: "terraform.functioncompute.com",
protocol: "HTTP",
routeConfigs: [{
path: "/login/*",
serviceName: defaultService.name,
functionName: defaultFunction.name,
qualifier: "v1",
methods: [
"GET",
"POST",
],
}],
certConfig: {
certName: "your certificate name",
privateKey: "your private key",
certificate: "your certificate data",
},
});
configuration:
name:
type: string
default: tf-testaccalicloudfcservice
resources:
defaultCustomDomain:
type: alicloud:fc:CustomDomain
properties:
domainName: terraform.functioncompute.com
protocol: HTTP
routeConfigs:
- path: /login/*
serviceName: ${defaultService.name}
functionName: ${defaultFunction.name}
qualifier: v1
methods:
- GET
- POST
certConfig:
certName: your certificate name
privateKey: your private key
certificate: your certificate data
defaultService:
type: alicloud:fc:Service
properties:
description: ${name}-description
defaultBucket:
type: alicloud:oss:Bucket
properties:
bucket: ${name}
defaultBucketObject:
type: alicloud:oss:BucketObject
properties:
bucket: ${defaultBucket.id}
key: fc/hello.zip
content: |
# -*- coding: utf-8 -*-
def handler(event, context):
print "hello world"
return 'hello world'
defaultFunction:
type: alicloud:fc:Function
properties:
service: ${defaultService.name}
ossBucket: ${defaultBucket.id}
ossKey: ${defaultBucketObject.key}
memorySize: 512
runtime: python2.7
handler: hello.handler
Create CustomDomain Resource
new CustomDomain(name: string, args: CustomDomainArgs, opts?: CustomResourceOptions);
@overload
def CustomDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
cert_config: Optional[CustomDomainCertConfigArgs] = None,
domain_name: Optional[str] = None,
protocol: Optional[str] = None,
route_configs: Optional[Sequence[CustomDomainRouteConfigArgs]] = None)
@overload
def CustomDomain(resource_name: str,
args: CustomDomainArgs,
opts: Optional[ResourceOptions] = None)
func NewCustomDomain(ctx *Context, name string, args CustomDomainArgs, opts ...ResourceOption) (*CustomDomain, error)
public CustomDomain(string name, CustomDomainArgs args, CustomResourceOptions? opts = null)
public CustomDomain(String name, CustomDomainArgs args)
public CustomDomain(String name, CustomDomainArgs args, CustomResourceOptions options)
type: alicloud:fc:CustomDomain
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomDomainArgs
- 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 CustomDomainArgs
- 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 CustomDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomDomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CustomDomain Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The CustomDomain resource accepts the following input properties:
- Domain
Name string The custom domain name. For example, "example.com".
- Protocol string
The protocol,
HTTP
orHTTP,HTTPS
.- Cert
Config Pulumi.Ali Cloud. FC. Inputs. Custom Domain Cert Config Args The configuration of HTTPS certificate.
- Route
Configs List<Pulumi.Ali Cloud. FC. Inputs. Custom Domain Route Config Args> The configuration of domain route, mapping the path and Function Compute function.
- Domain
Name string The custom domain name. For example, "example.com".
- Protocol string
The protocol,
HTTP
orHTTP,HTTPS
.- Cert
Config CustomDomain Cert Config Args The configuration of HTTPS certificate.
- Route
Configs []CustomDomain Route Config Args The configuration of domain route, mapping the path and Function Compute function.
- domain
Name String The custom domain name. For example, "example.com".
- protocol String
The protocol,
HTTP
orHTTP,HTTPS
.- cert
Config CustomDomain Cert Config Args The configuration of HTTPS certificate.
- route
Configs List<CustomDomain Route Config Args> The configuration of domain route, mapping the path and Function Compute function.
- domain
Name string The custom domain name. For example, "example.com".
- protocol string
The protocol,
HTTP
orHTTP,HTTPS
.- cert
Config CustomDomain Cert Config Args The configuration of HTTPS certificate.
- route
Configs CustomDomain Route Config Args[] The configuration of domain route, mapping the path and Function Compute function.
- domain_
name str The custom domain name. For example, "example.com".
- protocol str
The protocol,
HTTP
orHTTP,HTTPS
.- cert_
config CustomDomain Cert Config Args The configuration of HTTPS certificate.
- route_
configs Sequence[CustomDomain Route Config Args] The configuration of domain route, mapping the path and Function Compute function.
- domain
Name String The custom domain name. For example, "example.com".
- protocol String
The protocol,
HTTP
orHTTP,HTTPS
.- cert
Config Property Map The configuration of HTTPS certificate.
- route
Configs List<Property Map> The configuration of domain route, mapping the path and Function Compute function.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomDomain resource produces the following output properties:
- Account
Id string The account id.
- Api
Version string The api version of Function Compute.
- Created
Time string The date this resource was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime The date this resource was last modified.
- Account
Id string The account id.
- Api
Version string The api version of Function Compute.
- Created
Time string The date this resource was created.
- Id string
The provider-assigned unique ID for this managed resource.
- Last
Modified stringTime The date this resource was last modified.
- account
Id String The account id.
- api
Version String The api version of Function Compute.
- created
Time String The date this resource was created.
- id String
The provider-assigned unique ID for this managed resource.
- last
Modified StringTime The date this resource was last modified.
- account
Id string The account id.
- api
Version string The api version of Function Compute.
- created
Time string The date this resource was created.
- id string
The provider-assigned unique ID for this managed resource.
- last
Modified stringTime The date this resource was last modified.
- account_
id str The account id.
- api_
version str The api version of Function Compute.
- created_
time str The date this resource was created.
- id str
The provider-assigned unique ID for this managed resource.
- last_
modified_ strtime The date this resource was last modified.
- account
Id String The account id.
- api
Version String The api version of Function Compute.
- created
Time String The date this resource was created.
- id String
The provider-assigned unique ID for this managed resource.
- last
Modified StringTime The date this resource was last modified.
Look up Existing CustomDomain Resource
Get an existing CustomDomain 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?: CustomDomainState, opts?: CustomResourceOptions): CustomDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
api_version: Optional[str] = None,
cert_config: Optional[CustomDomainCertConfigArgs] = None,
created_time: Optional[str] = None,
domain_name: Optional[str] = None,
last_modified_time: Optional[str] = None,
protocol: Optional[str] = None,
route_configs: Optional[Sequence[CustomDomainRouteConfigArgs]] = None) -> CustomDomain
func GetCustomDomain(ctx *Context, name string, id IDInput, state *CustomDomainState, opts ...ResourceOption) (*CustomDomain, error)
public static CustomDomain Get(string name, Input<string> id, CustomDomainState? state, CustomResourceOptions? opts = null)
public static CustomDomain get(String name, Output<String> id, CustomDomainState 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.
- Account
Id string The account id.
- Api
Version string The api version of Function Compute.
- Cert
Config Pulumi.Ali Cloud. FC. Inputs. Custom Domain Cert Config Args The configuration of HTTPS certificate.
- Created
Time string The date this resource was created.
- Domain
Name string The custom domain name. For example, "example.com".
- Last
Modified stringTime The date this resource was last modified.
- Protocol string
The protocol,
HTTP
orHTTP,HTTPS
.- Route
Configs List<Pulumi.Ali Cloud. FC. Inputs. Custom Domain Route Config Args> The configuration of domain route, mapping the path and Function Compute function.
- Account
Id string The account id.
- Api
Version string The api version of Function Compute.
- Cert
Config CustomDomain Cert Config Args The configuration of HTTPS certificate.
- Created
Time string The date this resource was created.
- Domain
Name string The custom domain name. For example, "example.com".
- Last
Modified stringTime The date this resource was last modified.
- Protocol string
The protocol,
HTTP
orHTTP,HTTPS
.- Route
Configs []CustomDomain Route Config Args The configuration of domain route, mapping the path and Function Compute function.
- account
Id String The account id.
- api
Version String The api version of Function Compute.
- cert
Config CustomDomain Cert Config Args The configuration of HTTPS certificate.
- created
Time String The date this resource was created.
- domain
Name String The custom domain name. For example, "example.com".
- last
Modified StringTime The date this resource was last modified.
- protocol String
The protocol,
HTTP
orHTTP,HTTPS
.- route
Configs List<CustomDomain Route Config Args> The configuration of domain route, mapping the path and Function Compute function.
- account
Id string The account id.
- api
Version string The api version of Function Compute.
- cert
Config CustomDomain Cert Config Args The configuration of HTTPS certificate.
- created
Time string The date this resource was created.
- domain
Name string The custom domain name. For example, "example.com".
- last
Modified stringTime The date this resource was last modified.
- protocol string
The protocol,
HTTP
orHTTP,HTTPS
.- route
Configs CustomDomain Route Config Args[] The configuration of domain route, mapping the path and Function Compute function.
- account_
id str The account id.
- api_
version str The api version of Function Compute.
- cert_
config CustomDomain Cert Config Args The configuration of HTTPS certificate.
- created_
time str The date this resource was created.
- domain_
name str The custom domain name. For example, "example.com".
- last_
modified_ strtime The date this resource was last modified.
- protocol str
The protocol,
HTTP
orHTTP,HTTPS
.- route_
configs Sequence[CustomDomain Route Config Args] The configuration of domain route, mapping the path and Function Compute function.
- account
Id String The account id.
- api
Version String The api version of Function Compute.
- cert
Config Property Map The configuration of HTTPS certificate.
- created
Time String The date this resource was created.
- domain
Name String The custom domain name. For example, "example.com".
- last
Modified StringTime The date this resource was last modified.
- protocol String
The protocol,
HTTP
orHTTP,HTTPS
.- route
Configs List<Property Map> The configuration of domain route, mapping the path and Function Compute function.
Supporting Types
CustomDomainCertConfig
- Cert
Name string The name of the certificate, used to distinguish different certificates.
- Certificate string
Certificate data of the HTTPS certificates, follow the 'pem' format.
- Private
Key string Private key of the HTTPS certificates, follow the 'pem' format.
- Cert
Name string The name of the certificate, used to distinguish different certificates.
- Certificate string
Certificate data of the HTTPS certificates, follow the 'pem' format.
- Private
Key string Private key of the HTTPS certificates, follow the 'pem' format.
- cert
Name String The name of the certificate, used to distinguish different certificates.
- certificate String
Certificate data of the HTTPS certificates, follow the 'pem' format.
- private
Key String Private key of the HTTPS certificates, follow the 'pem' format.
- cert
Name string The name of the certificate, used to distinguish different certificates.
- certificate string
Certificate data of the HTTPS certificates, follow the 'pem' format.
- private
Key string Private key of the HTTPS certificates, follow the 'pem' format.
- cert_
name str The name of the certificate, used to distinguish different certificates.
- certificate str
Certificate data of the HTTPS certificates, follow the 'pem' format.
- private_
key str Private key of the HTTPS certificates, follow the 'pem' format.
- cert
Name String The name of the certificate, used to distinguish different certificates.
- certificate String
Certificate data of the HTTPS certificates, follow the 'pem' format.
- private
Key String Private key of the HTTPS certificates, follow the 'pem' format.
CustomDomainRouteConfig
- Function
Name string The name of the Function Compute function that requests are routed to.
- Path string
The path that requests are routed from.
- Service
Name string - Methods List<string>
The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.
- Qualifier string
The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service. For detail information about version and alias, please refer to the developer guide.
- Function
Name string The name of the Function Compute function that requests are routed to.
- Path string
The path that requests are routed from.
- Service
Name string - Methods []string
The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.
- Qualifier string
The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service. For detail information about version and alias, please refer to the developer guide.
- function
Name String The name of the Function Compute function that requests are routed to.
- path String
The path that requests are routed from.
- service
Name String - methods List<String>
The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.
- qualifier String
The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service. For detail information about version and alias, please refer to the developer guide.
- function
Name string The name of the Function Compute function that requests are routed to.
- path string
The path that requests are routed from.
- service
Name string - methods string[]
The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.
- qualifier string
The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service. For detail information about version and alias, please refer to the developer guide.
- function_
name str The name of the Function Compute function that requests are routed to.
- path str
The path that requests are routed from.
- service_
name str - methods Sequence[str]
The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.
- qualifier str
The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service. For detail information about version and alias, please refer to the developer guide.
- function
Name String The name of the Function Compute function that requests are routed to.
- path String
The path that requests are routed from.
- service
Name String - methods List<String>
The requests of the specified HTTP methos are routed from. Valid method: GET, POST, DELETE, HEAD, PUT and PATCH. For example, "GET, HEAD" methods indicate that only requests from GET and HEAD methods are routed.
- qualifier String
The version or alias of the Function Compute service that requests are routed to. For example, qualifier v1 indicates that the requests are routed to the version 1 Function Compute service. For detail information about version and alias, please refer to the developer guide.
Import
Function Compute custom domain can be imported using the id or the domain name, e.g.
$ pulumi import alicloud:fc/customDomain:CustomDomain foo my-fc-custom-domain
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.