1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. TeoPrefetchOriginLimit
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.82.93
published on Monday, May 11, 2026 by tencentcloudstack

    Provides a resource to create a TEO prefetch origin limit config.

    Example Usage

    Set prefetch origin bandwidth limit for overseas area

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TeoPrefetchOriginLimit("example", {
        zoneId: "zone-3edjdliiw3he",
        domainName: "example.com",
        area: "Overseas",
        bandwidth: 200,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TeoPrefetchOriginLimit("example",
        zone_id="zone-3edjdliiw3he",
        domain_name="example.com",
        area="Overseas",
        bandwidth=200)
    
    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.NewTeoPrefetchOriginLimit(ctx, "example", &tencentcloud.TeoPrefetchOriginLimitArgs{
    			ZoneId:     pulumi.String("zone-3edjdliiw3he"),
    			DomainName: pulumi.String("example.com"),
    			Area:       pulumi.String("Overseas"),
    			Bandwidth:  pulumi.Float64(200),
    		})
    		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.TeoPrefetchOriginLimit("example", new()
        {
            ZoneId = "zone-3edjdliiw3he",
            DomainName = "example.com",
            Area = "Overseas",
            Bandwidth = 200,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoPrefetchOriginLimit;
    import com.pulumi.tencentcloud.TeoPrefetchOriginLimitArgs;
    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 TeoPrefetchOriginLimit("example", TeoPrefetchOriginLimitArgs.builder()
                .zoneId("zone-3edjdliiw3he")
                .domainName("example.com")
                .area("Overseas")
                .bandwidth(200.0)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TeoPrefetchOriginLimit
        properties:
          zoneId: zone-3edjdliiw3he
          domainName: example.com
          area: Overseas
          bandwidth: 200
    
    Example coming soon!
    

    Set prefetch origin bandwidth limit for Mainland China area

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TeoPrefetchOriginLimit("example", {
        zoneId: "zone-3edjdliiw3he",
        domainName: "example.com",
        area: "MainlandChina",
        bandwidth: 500,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TeoPrefetchOriginLimit("example",
        zone_id="zone-3edjdliiw3he",
        domain_name="example.com",
        area="MainlandChina",
        bandwidth=500)
    
    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.NewTeoPrefetchOriginLimit(ctx, "example", &tencentcloud.TeoPrefetchOriginLimitArgs{
    			ZoneId:     pulumi.String("zone-3edjdliiw3he"),
    			DomainName: pulumi.String("example.com"),
    			Area:       pulumi.String("MainlandChina"),
    			Bandwidth:  pulumi.Float64(500),
    		})
    		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.TeoPrefetchOriginLimit("example", new()
        {
            ZoneId = "zone-3edjdliiw3he",
            DomainName = "example.com",
            Area = "MainlandChina",
            Bandwidth = 500,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoPrefetchOriginLimit;
    import com.pulumi.tencentcloud.TeoPrefetchOriginLimitArgs;
    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 TeoPrefetchOriginLimit("example", TeoPrefetchOriginLimitArgs.builder()
                .zoneId("zone-3edjdliiw3he")
                .domainName("example.com")
                .area("MainlandChina")
                .bandwidth(500.0)
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TeoPrefetchOriginLimit
        properties:
          zoneId: zone-3edjdliiw3he
          domainName: example.com
          area: MainlandChina
          bandwidth: 500
    
    Example coming soon!
    

    Create TeoPrefetchOriginLimit Resource

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

    Constructor syntax

    new TeoPrefetchOriginLimit(name: string, args: TeoPrefetchOriginLimitArgs, opts?: CustomResourceOptions);
    @overload
    def TeoPrefetchOriginLimit(resource_name: str,
                               args: TeoPrefetchOriginLimitArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoPrefetchOriginLimit(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               area: Optional[str] = None,
                               bandwidth: Optional[float] = None,
                               domain_name: Optional[str] = None,
                               zone_id: Optional[str] = None,
                               teo_prefetch_origin_limit_id: Optional[str] = None)
    func NewTeoPrefetchOriginLimit(ctx *Context, name string, args TeoPrefetchOriginLimitArgs, opts ...ResourceOption) (*TeoPrefetchOriginLimit, error)
    public TeoPrefetchOriginLimit(string name, TeoPrefetchOriginLimitArgs args, CustomResourceOptions? opts = null)
    public TeoPrefetchOriginLimit(String name, TeoPrefetchOriginLimitArgs args)
    public TeoPrefetchOriginLimit(String name, TeoPrefetchOriginLimitArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoPrefetchOriginLimit
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_teoprefetchoriginlimit" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TeoPrefetchOriginLimitArgs
    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 TeoPrefetchOriginLimitArgs
    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 TeoPrefetchOriginLimitArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoPrefetchOriginLimitArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoPrefetchOriginLimitArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Area string
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    Bandwidth double
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    DomainName string
    Accelerated domain name.
    ZoneId string
    Site ID.
    TeoPrefetchOriginLimitId string
    ID of the resource.
    Area string
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    Bandwidth float64
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    DomainName string
    Accelerated domain name.
    ZoneId string
    Site ID.
    TeoPrefetchOriginLimitId string
    ID of the resource.
    area string
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    bandwidth number
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    domain_name string
    Accelerated domain name.
    zone_id string
    Site ID.
    teo_prefetch_origin_limit_id string
    ID of the resource.
    area String
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    bandwidth Double
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    domainName String
    Accelerated domain name.
    zoneId String
    Site ID.
    teoPrefetchOriginLimitId String
    ID of the resource.
    area string
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    bandwidth number
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    domainName string
    Accelerated domain name.
    zoneId string
    Site ID.
    teoPrefetchOriginLimitId string
    ID of the resource.
    area str
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    bandwidth float
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    domain_name str
    Accelerated domain name.
    zone_id str
    Site ID.
    teo_prefetch_origin_limit_id str
    ID of the resource.
    area String
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    bandwidth Number
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    domainName String
    Accelerated domain name.
    zoneId String
    Site ID.
    teoPrefetchOriginLimitId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeoPrefetchOriginLimit 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 TeoPrefetchOriginLimit Resource

    Get an existing TeoPrefetchOriginLimit 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?: TeoPrefetchOriginLimitState, opts?: CustomResourceOptions): TeoPrefetchOriginLimit
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            area: Optional[str] = None,
            bandwidth: Optional[float] = None,
            domain_name: Optional[str] = None,
            teo_prefetch_origin_limit_id: Optional[str] = None,
            zone_id: Optional[str] = None) -> TeoPrefetchOriginLimit
    func GetTeoPrefetchOriginLimit(ctx *Context, name string, id IDInput, state *TeoPrefetchOriginLimitState, opts ...ResourceOption) (*TeoPrefetchOriginLimit, error)
    public static TeoPrefetchOriginLimit Get(string name, Input<string> id, TeoPrefetchOriginLimitState? state, CustomResourceOptions? opts = null)
    public static TeoPrefetchOriginLimit get(String name, Output<String> id, TeoPrefetchOriginLimitState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoPrefetchOriginLimit    get:      id: ${id}
    import {
      to = tencentcloud_teoprefetchoriginlimit.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.
    The following state arguments are supported:
    Area string
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    Bandwidth double
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    DomainName string
    Accelerated domain name.
    TeoPrefetchOriginLimitId string
    ID of the resource.
    ZoneId string
    Site ID.
    Area string
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    Bandwidth float64
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    DomainName string
    Accelerated domain name.
    TeoPrefetchOriginLimitId string
    ID of the resource.
    ZoneId string
    Site ID.
    area string
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    bandwidth number
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    domain_name string
    Accelerated domain name.
    teo_prefetch_origin_limit_id string
    ID of the resource.
    zone_id string
    Site ID.
    area String
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    bandwidth Double
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    domainName String
    Accelerated domain name.
    teoPrefetchOriginLimitId String
    ID of the resource.
    zoneId String
    Site ID.
    area string
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    bandwidth number
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    domainName string
    Accelerated domain name.
    teoPrefetchOriginLimitId string
    ID of the resource.
    zoneId string
    Site ID.
    area str
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    bandwidth float
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    domain_name str
    Accelerated domain name.
    teo_prefetch_origin_limit_id str
    ID of the resource.
    zone_id str
    Site ID.
    area String
    Acceleration area for prefetch origin limit. Valid values: Overseas, MainlandChina.
    bandwidth Number
    Prefetch origin bandwidth limit. Value range: 100-100000, in Mbps.
    domainName String
    Accelerated domain name.
    teoPrefetchOriginLimitId String
    ID of the resource.
    zoneId String
    Site ID.

    Import

    TEO prefetch origin limit config can be imported using the composite ID format zone_id#domain_name#area, e.g.

    $ pulumi import tencentcloud:index/teoPrefetchOriginLimit:TeoPrefetchOriginLimit example zone-3edjdliiw3he#example.com#Overseas
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.82.93
    published on Monday, May 11, 2026 by tencentcloudstack
      Try Pulumi Cloud free. Your team will thank you.