published on Friday, Jun 19, 2026 by tencentcloudstack
published on Friday, Jun 19, 2026 by tencentcloudstack
Provides a resource to manage TEO (EdgeOne) acceleration domain shared CNAME binding attachment
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.TeoDomainSharedCnameAttachment("example", {
zoneId: "zone-2qtuhspy7cr6",
sharedCname: "shared.example.com",
domainNames: [
"domain1.example.com",
"domain2.example.com",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.TeoDomainSharedCnameAttachment("example",
zone_id="zone-2qtuhspy7cr6",
shared_cname="shared.example.com",
domain_names=[
"domain1.example.com",
"domain2.example.com",
])
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.NewTeoDomainSharedCnameAttachment(ctx, "example", &tencentcloud.TeoDomainSharedCnameAttachmentArgs{
ZoneId: pulumi.String("zone-2qtuhspy7cr6"),
SharedCname: pulumi.String("shared.example.com"),
DomainNames: pulumi.StringArray{
pulumi.String("domain1.example.com"),
pulumi.String("domain2.example.com"),
},
})
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 example = new Tencentcloud.TeoDomainSharedCnameAttachment("example", new()
{
ZoneId = "zone-2qtuhspy7cr6",
SharedCname = "shared.example.com",
DomainNames = new[]
{
"domain1.example.com",
"domain2.example.com",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoDomainSharedCnameAttachment;
import com.pulumi.tencentcloud.TeoDomainSharedCnameAttachmentArgs;
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 example = new TeoDomainSharedCnameAttachment("example", TeoDomainSharedCnameAttachmentArgs.builder()
.zoneId("zone-2qtuhspy7cr6")
.sharedCname("shared.example.com")
.domainNames(
"domain1.example.com",
"domain2.example.com")
.build());
}
}
resources:
example:
type: tencentcloud:TeoDomainSharedCnameAttachment
properties:
zoneId: zone-2qtuhspy7cr6
sharedCname: shared.example.com
domainNames:
- domain1.example.com
- domain2.example.com
Example coming soon!
Create TeoDomainSharedCnameAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoDomainSharedCnameAttachment(name: string, args: TeoDomainSharedCnameAttachmentArgs, opts?: CustomResourceOptions);@overload
def TeoDomainSharedCnameAttachment(resource_name: str,
args: TeoDomainSharedCnameAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoDomainSharedCnameAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_names: Optional[Sequence[str]] = None,
shared_cname: Optional[str] = None,
zone_id: Optional[str] = None,
teo_domain_shared_cname_attachment_id: Optional[str] = None)func NewTeoDomainSharedCnameAttachment(ctx *Context, name string, args TeoDomainSharedCnameAttachmentArgs, opts ...ResourceOption) (*TeoDomainSharedCnameAttachment, error)public TeoDomainSharedCnameAttachment(string name, TeoDomainSharedCnameAttachmentArgs args, CustomResourceOptions? opts = null)
public TeoDomainSharedCnameAttachment(String name, TeoDomainSharedCnameAttachmentArgs args)
public TeoDomainSharedCnameAttachment(String name, TeoDomainSharedCnameAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:TeoDomainSharedCnameAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_teodomainsharedcnameattachment" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TeoDomainSharedCnameAttachmentArgs
- 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 TeoDomainSharedCnameAttachmentArgs
- 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 TeoDomainSharedCnameAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoDomainSharedCnameAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoDomainSharedCnameAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoDomainSharedCnameAttachment 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 TeoDomainSharedCnameAttachment resource accepts the following input properties:
- Domain
Names List<string> - The acceleration domain names to bind.
- string
- The shared CNAME to bind to.
- Zone
Id string - The zone ID that the acceleration domain belongs to.
- string
- ID of the resource.
- Domain
Names []string - The acceleration domain names to bind.
- string
- The shared CNAME to bind to.
- Zone
Id string - The zone ID that the acceleration domain belongs to.
- string
- ID of the resource.
- domain_
names list(string) - The acceleration domain names to bind.
- string
- The shared CNAME to bind to.
- zone_
id string - The zone ID that the acceleration domain belongs to.
- string
- ID of the resource.
- domain
Names List<String> - The acceleration domain names to bind.
- String
- The shared CNAME to bind to.
- zone
Id String - The zone ID that the acceleration domain belongs to.
- String
- ID of the resource.
- domain
Names string[] - The acceleration domain names to bind.
- string
- The shared CNAME to bind to.
- zone
Id string - The zone ID that the acceleration domain belongs to.
- string
- ID of the resource.
- domain_
names Sequence[str] - The acceleration domain names to bind.
- str
- The shared CNAME to bind to.
- zone_
id str - The zone ID that the acceleration domain belongs to.
- str
- ID of the resource.
- domain
Names List<String> - The acceleration domain names to bind.
- String
- The shared CNAME to bind to.
- zone
Id String - The zone ID that the acceleration domain belongs to.
- String
- ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoDomainSharedCnameAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing TeoDomainSharedCnameAttachment Resource
Get an existing TeoDomainSharedCnameAttachment 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?: TeoDomainSharedCnameAttachmentState, opts?: CustomResourceOptions): TeoDomainSharedCnameAttachment@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
domain_names: Optional[Sequence[str]] = None,
shared_cname: Optional[str] = None,
teo_domain_shared_cname_attachment_id: Optional[str] = None,
zone_id: Optional[str] = None) -> TeoDomainSharedCnameAttachmentfunc GetTeoDomainSharedCnameAttachment(ctx *Context, name string, id IDInput, state *TeoDomainSharedCnameAttachmentState, opts ...ResourceOption) (*TeoDomainSharedCnameAttachment, error)public static TeoDomainSharedCnameAttachment Get(string name, Input<string> id, TeoDomainSharedCnameAttachmentState? state, CustomResourceOptions? opts = null)public static TeoDomainSharedCnameAttachment get(String name, Output<String> id, TeoDomainSharedCnameAttachmentState state, CustomResourceOptions options)resources: _: type: tencentcloud:TeoDomainSharedCnameAttachment get: id: ${id}import {
to = tencentcloud_teodomainsharedcnameattachment.example
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.
- Domain
Names List<string> - The acceleration domain names to bind.
- string
- The shared CNAME to bind to.
- string
- ID of the resource.
- Zone
Id string - The zone ID that the acceleration domain belongs to.
- Domain
Names []string - The acceleration domain names to bind.
- string
- The shared CNAME to bind to.
- string
- ID of the resource.
- Zone
Id string - The zone ID that the acceleration domain belongs to.
- domain_
names list(string) - The acceleration domain names to bind.
- string
- The shared CNAME to bind to.
- string
- ID of the resource.
- zone_
id string - The zone ID that the acceleration domain belongs to.
- domain
Names List<String> - The acceleration domain names to bind.
- String
- The shared CNAME to bind to.
- String
- ID of the resource.
- zone
Id String - The zone ID that the acceleration domain belongs to.
- domain
Names string[] - The acceleration domain names to bind.
- string
- The shared CNAME to bind to.
- string
- ID of the resource.
- zone
Id string - The zone ID that the acceleration domain belongs to.
- domain_
names Sequence[str] - The acceleration domain names to bind.
- str
- The shared CNAME to bind to.
- str
- ID of the resource.
- zone_
id str - The zone ID that the acceleration domain belongs to.
- domain
Names List<String> - The acceleration domain names to bind.
- String
- The shared CNAME to bind to.
- String
- ID of the resource.
- zone
Id String - The zone ID that the acceleration domain belongs to.
Import
teo domain_shared_cname_attachment can be imported using the zone_id#shared_cname, e.g.
$ pulumi import tencentcloud:index/teoDomainSharedCnameAttachment:TeoDomainSharedCnameAttachment example zone-2qtuhspy7cr6#shared.example.com
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
tencentcloudTerraform Provider.
published on Friday, Jun 19, 2026 by tencentcloudstack