1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. ddos
  5. DdosBgpInstance
Alibaba Cloud v3.86.0 published on Saturday, Sep 20, 2025 by Pulumi

alicloud.ddos.DdosBgpInstance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.86.0 published on Saturday, Sep 20, 2025 by Pulumi

    Import

    Anti-DDoS Pro (DdosBgp) Instance can be imported using the id, e.g.

    $ pulumi import alicloud:ddos/ddosBgpInstance:DdosBgpInstance example <id>
    

    Create DdosBgpInstance Resource

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

    Constructor syntax

    new DdosBgpInstance(name: string, args: DdosBgpInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def DdosBgpInstance(resource_name: str,
                        args: DdosBgpInstanceArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def DdosBgpInstance(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        bandwidth: Optional[int] = None,
                        ip_count: Optional[int] = None,
                        ip_type: Optional[str] = None,
                        normal_bandwidth: Optional[int] = None,
                        base_bandwidth: Optional[int] = None,
                        instance_name: Optional[str] = None,
                        name: Optional[str] = None,
                        period: Optional[int] = None,
                        resource_group_id: Optional[str] = None,
                        tags: Optional[Mapping[str, str]] = None,
                        type: Optional[str] = None)
    func NewDdosBgpInstance(ctx *Context, name string, args DdosBgpInstanceArgs, opts ...ResourceOption) (*DdosBgpInstance, error)
    public DdosBgpInstance(string name, DdosBgpInstanceArgs args, CustomResourceOptions? opts = null)
    public DdosBgpInstance(String name, DdosBgpInstanceArgs args)
    public DdosBgpInstance(String name, DdosBgpInstanceArgs args, CustomResourceOptions options)
    
    type: alicloud:ddos:DdosBgpInstance
    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 DdosBgpInstanceArgs
    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 DdosBgpInstanceArgs
    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 DdosBgpInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DdosBgpInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DdosBgpInstanceArgs
    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 ddosBgpInstanceResource = new AliCloud.Ddos.DdosBgpInstance("ddosBgpInstanceResource", new()
    {
        Bandwidth = 0,
        IpCount = 0,
        IpType = "string",
        NormalBandwidth = 0,
        BaseBandwidth = 0,
        InstanceName = "string",
        Period = 0,
        ResourceGroupId = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Type = "string",
    });
    
    example, err := ddos.NewDdosBgpInstance(ctx, "ddosBgpInstanceResource", &ddos.DdosBgpInstanceArgs{
    	Bandwidth:       pulumi.Int(0),
    	IpCount:         pulumi.Int(0),
    	IpType:          pulumi.String("string"),
    	NormalBandwidth: pulumi.Int(0),
    	BaseBandwidth:   pulumi.Int(0),
    	InstanceName:    pulumi.String("string"),
    	Period:          pulumi.Int(0),
    	ResourceGroupId: pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Type: pulumi.String("string"),
    })
    
    var ddosBgpInstanceResource = new DdosBgpInstance("ddosBgpInstanceResource", DdosBgpInstanceArgs.builder()
        .bandwidth(0)
        .ipCount(0)
        .ipType("string")
        .normalBandwidth(0)
        .baseBandwidth(0)
        .instanceName("string")
        .period(0)
        .resourceGroupId("string")
        .tags(Map.of("string", "string"))
        .type("string")
        .build());
    
    ddos_bgp_instance_resource = alicloud.ddos.DdosBgpInstance("ddosBgpInstanceResource",
        bandwidth=0,
        ip_count=0,
        ip_type="string",
        normal_bandwidth=0,
        base_bandwidth=0,
        instance_name="string",
        period=0,
        resource_group_id="string",
        tags={
            "string": "string",
        },
        type="string")
    
    const ddosBgpInstanceResource = new alicloud.ddos.DdosBgpInstance("ddosBgpInstanceResource", {
        bandwidth: 0,
        ipCount: 0,
        ipType: "string",
        normalBandwidth: 0,
        baseBandwidth: 0,
        instanceName: "string",
        period: 0,
        resourceGroupId: "string",
        tags: {
            string: "string",
        },
        type: "string",
    });
    
    type: alicloud:ddos:DdosBgpInstance
    properties:
        bandwidth: 0
        baseBandwidth: 0
        instanceName: string
        ipCount: 0
        ipType: string
        normalBandwidth: 0
        period: 0
        resourceGroupId: string
        tags:
            string: string
        type: string
    

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

    Bandwidth int
    The bandwidth of the package configuration.
    IpCount int
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    IpType string
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    NormalBandwidth int
    The normal clean bandwidth. Unit: Mbit/s.
    BaseBandwidth int
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    InstanceName string
    The name of the instance.
    Name string
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Period int
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    ResourceGroupId string
    Resource Group ID
    Tags Dictionary<string, string>
    The key of the tag that is added to the Anti-DDoS Origin instance.
    Type string
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.
    Bandwidth int
    The bandwidth of the package configuration.
    IpCount int
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    IpType string
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    NormalBandwidth int
    The normal clean bandwidth. Unit: Mbit/s.
    BaseBandwidth int
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    InstanceName string
    The name of the instance.
    Name string
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Period int
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    ResourceGroupId string
    Resource Group ID
    Tags map[string]string
    The key of the tag that is added to the Anti-DDoS Origin instance.
    Type string
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.
    bandwidth Integer
    The bandwidth of the package configuration.
    ipCount Integer
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    ipType String
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    normalBandwidth Integer
    The normal clean bandwidth. Unit: Mbit/s.
    baseBandwidth Integer
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    instanceName String
    The name of the instance.
    name String
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    period Integer
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    resourceGroupId String
    Resource Group ID
    tags Map<String,String>
    The key of the tag that is added to the Anti-DDoS Origin instance.
    type String
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.
    bandwidth number
    The bandwidth of the package configuration.
    ipCount number
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    ipType string
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    normalBandwidth number
    The normal clean bandwidth. Unit: Mbit/s.
    baseBandwidth number
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    instanceName string
    The name of the instance.
    name string
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    period number
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    resourceGroupId string
    Resource Group ID
    tags {[key: string]: string}
    The key of the tag that is added to the Anti-DDoS Origin instance.
    type string
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.
    bandwidth int
    The bandwidth of the package configuration.
    ip_count int
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    ip_type str
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    normal_bandwidth int
    The normal clean bandwidth. Unit: Mbit/s.
    base_bandwidth int
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    instance_name str
    The name of the instance.
    name str
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    period int
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    resource_group_id str
    Resource Group ID
    tags Mapping[str, str]
    The key of the tag that is added to the Anti-DDoS Origin instance.
    type str
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.
    bandwidth Number
    The bandwidth of the package configuration.
    ipCount Number
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    ipType String
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    normalBandwidth Number
    The normal clean bandwidth. Unit: Mbit/s.
    baseBandwidth Number
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    instanceName String
    The name of the instance.
    name String
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    period Number
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    resourceGroupId String
    Resource Group ID
    tags Map<String>
    The key of the tag that is added to the Anti-DDoS Origin instance.
    type String
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    (Available since v1.259.0) The status of the Instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    (Available since v1.259.0) The status of the Instance.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    (Available since v1.259.0) The status of the Instance.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    (Available since v1.259.0) The status of the Instance.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    (Available since v1.259.0) The status of the Instance.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    (Available since v1.259.0) The status of the Instance.

    Look up Existing DdosBgpInstance Resource

    Get an existing DdosBgpInstance 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?: DdosBgpInstanceState, opts?: CustomResourceOptions): DdosBgpInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bandwidth: Optional[int] = None,
            base_bandwidth: Optional[int] = None,
            instance_name: Optional[str] = None,
            ip_count: Optional[int] = None,
            ip_type: Optional[str] = None,
            name: Optional[str] = None,
            normal_bandwidth: Optional[int] = None,
            period: Optional[int] = None,
            resource_group_id: Optional[str] = None,
            status: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            type: Optional[str] = None) -> DdosBgpInstance
    func GetDdosBgpInstance(ctx *Context, name string, id IDInput, state *DdosBgpInstanceState, opts ...ResourceOption) (*DdosBgpInstance, error)
    public static DdosBgpInstance Get(string name, Input<string> id, DdosBgpInstanceState? state, CustomResourceOptions? opts = null)
    public static DdosBgpInstance get(String name, Output<String> id, DdosBgpInstanceState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:ddos:DdosBgpInstance    get:      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:
    Bandwidth int
    The bandwidth of the package configuration.
    BaseBandwidth int
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    InstanceName string
    The name of the instance.
    IpCount int
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    IpType string
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    Name string
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    NormalBandwidth int
    The normal clean bandwidth. Unit: Mbit/s.
    Period int
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    ResourceGroupId string
    Resource Group ID
    Status string
    (Available since v1.259.0) The status of the Instance.
    Tags Dictionary<string, string>
    The key of the tag that is added to the Anti-DDoS Origin instance.
    Type string
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.
    Bandwidth int
    The bandwidth of the package configuration.
    BaseBandwidth int
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    InstanceName string
    The name of the instance.
    IpCount int
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    IpType string
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    Name string
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    NormalBandwidth int
    The normal clean bandwidth. Unit: Mbit/s.
    Period int
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    ResourceGroupId string
    Resource Group ID
    Status string
    (Available since v1.259.0) The status of the Instance.
    Tags map[string]string
    The key of the tag that is added to the Anti-DDoS Origin instance.
    Type string
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.
    bandwidth Integer
    The bandwidth of the package configuration.
    baseBandwidth Integer
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    instanceName String
    The name of the instance.
    ipCount Integer
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    ipType String
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    name String
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    normalBandwidth Integer
    The normal clean bandwidth. Unit: Mbit/s.
    period Integer
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    resourceGroupId String
    Resource Group ID
    status String
    (Available since v1.259.0) The status of the Instance.
    tags Map<String,String>
    The key of the tag that is added to the Anti-DDoS Origin instance.
    type String
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.
    bandwidth number
    The bandwidth of the package configuration.
    baseBandwidth number
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    instanceName string
    The name of the instance.
    ipCount number
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    ipType string
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    name string
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    normalBandwidth number
    The normal clean bandwidth. Unit: Mbit/s.
    period number
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    resourceGroupId string
    Resource Group ID
    status string
    (Available since v1.259.0) The status of the Instance.
    tags {[key: string]: string}
    The key of the tag that is added to the Anti-DDoS Origin instance.
    type string
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.
    bandwidth int
    The bandwidth of the package configuration.
    base_bandwidth int
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    instance_name str
    The name of the instance.
    ip_count int
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    ip_type str
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    name str
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    normal_bandwidth int
    The normal clean bandwidth. Unit: Mbit/s.
    period int
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    resource_group_id str
    Resource Group ID
    status str
    (Available since v1.259.0) The status of the Instance.
    tags Mapping[str, str]
    The key of the tag that is added to the Anti-DDoS Origin instance.
    type str
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.
    bandwidth Number
    The bandwidth of the package configuration.
    baseBandwidth Number
    The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value: 20. Valid values: 20.
    instanceName String
    The name of the instance.
    ipCount Number
    The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
    ipType String
    The protection IP address type of the protection package. Valid values:

    • IPv4
    • IPv6
    name String
    Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    Deprecated: Field name has been deprecated from provider version 1.259.0. New field instance_name instead.

    normalBandwidth Number
    The normal clean bandwidth. Unit: Mbit/s.
    period Number
    The duration that you will buy Ddosbgp instance (in month). Valid values: [1~9], 12, 24, 36. Default to 12. At present, the provider does not support modify "period".
    resourceGroupId String
    Resource Group ID
    status String
    (Available since v1.259.0) The status of the Instance.
    tags Map<String>
    The key of the tag that is added to the Anti-DDoS Origin instance.
    type String
    The protection package type of the DDoS native protection instance. Default value: Enterprise. Valid values: Enterprise, Professional.

    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.86.0 published on Saturday, Sep 20, 2025 by Pulumi