1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dns
  5. DdosBgpInstance
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.dns.DdosBgpInstance

Explore with Pulumi AI

Deprecated: alicloud.dns.DdosBgpInstance has been deprecated in favor of alicloud.ddos.DdosBgpInstance

Anti-DDoS Advanced instance resource. “Ddosbgp” is the short term of this product.

NOTE: Available since v1.183.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "tf-example";
const instance = new alicloud.ddos.DdosBgpInstance("instance", {
    name: name,
    baseBandwidth: 20,
    bandwidth: -1,
    ipCount: 100,
    ipType: "IPv4",
    normalBandwidth: 100,
    type: "Enterprise",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-example"
instance = alicloud.ddos.DdosBgpInstance("instance",
    name=name,
    base_bandwidth=20,
    bandwidth=-1,
    ip_count=100,
    ip_type="IPv4",
    normal_bandwidth=100,
    type="Enterprise")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ddos"
	"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-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := ddos.NewDdosBgpInstance(ctx, "instance", &ddos.DdosBgpInstanceArgs{
			Name:            pulumi.String(name),
			BaseBandwidth:   pulumi.Int(20),
			Bandwidth:       pulumi.Int(-1),
			IpCount:         pulumi.Int(100),
			IpType:          pulumi.String("IPv4"),
			NormalBandwidth: pulumi.Int(100),
			Type:            pulumi.String("Enterprise"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "tf-example";
    var instance = new AliCloud.Ddos.DdosBgpInstance("instance", new()
    {
        Name = name,
        BaseBandwidth = 20,
        Bandwidth = -1,
        IpCount = 100,
        IpType = "IPv4",
        NormalBandwidth = 100,
        Type = "Enterprise",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.ddos.DdosBgpInstance;
import com.pulumi.alicloud.ddos.DdosBgpInstanceArgs;
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-example");
        var instance = new DdosBgpInstance("instance", DdosBgpInstanceArgs.builder()
            .name(name)
            .baseBandwidth(20)
            .bandwidth(-1)
            .ipCount(100)
            .ipType("IPv4")
            .normalBandwidth(100)
            .type("Enterprise")
            .build());

    }
}
Copy
configuration:
  name:
    type: string
    default: tf-example
resources:
  instance:
    type: alicloud:ddos:DdosBgpInstance
    properties:
      name: ${name}
      baseBandwidth: 20
      bandwidth: -1
      ipCount: 100
      ipType: IPv4
      normalBandwidth: 100
      type: Enterprise
Copy

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,
                    base_bandwidth: Optional[int] = None,
                    ip_count: Optional[int] = None,
                    ip_type: Optional[str] = None,
                    name: Optional[str] = None,
                    normal_bandwidth: Optional[int] = None,
                    period: Optional[int] = 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:dns:DdosBgpInstance
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DdosBgpInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. DdosBgpInstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DdosBgpInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DdosBgpInstanceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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
This property is required.
Changes to this property will trigger replacement.
int
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
IpCount
This property is required.
Changes to this property will trigger replacement.
int
IP count of the instance. Valid values: 100.
IpType
This property is required.
Changes to this property will trigger replacement.
string
IP version of the instance. Valid values: IPv4,IPv6.
NormalBandwidth
This property is required.
Changes to this property will trigger replacement.
int
Normal defend bandwidth of the instance. The unit is Gbps.
BaseBandwidth Changes to this property will trigger replacement. int
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
Name string
Name of the instance. This name can have a string of 1 to 63 characters.
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".
Type Changes to this property will trigger replacement. string
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise
Bandwidth
This property is required.
Changes to this property will trigger replacement.
int
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
IpCount
This property is required.
Changes to this property will trigger replacement.
int
IP count of the instance. Valid values: 100.
IpType
This property is required.
Changes to this property will trigger replacement.
string
IP version of the instance. Valid values: IPv4,IPv6.
NormalBandwidth
This property is required.
Changes to this property will trigger replacement.
int
Normal defend bandwidth of the instance. The unit is Gbps.
BaseBandwidth Changes to this property will trigger replacement. int
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
Name string
Name of the instance. This name can have a string of 1 to 63 characters.
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".
Type Changes to this property will trigger replacement. string
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise
bandwidth
This property is required.
Changes to this property will trigger replacement.
Integer
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
ipCount
This property is required.
Changes to this property will trigger replacement.
Integer
IP count of the instance. Valid values: 100.
ipType
This property is required.
Changes to this property will trigger replacement.
String
IP version of the instance. Valid values: IPv4,IPv6.
normalBandwidth
This property is required.
Changes to this property will trigger replacement.
Integer
Normal defend bandwidth of the instance. The unit is Gbps.
baseBandwidth Changes to this property will trigger replacement. Integer
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
name String
Name of the instance. This name can have a string of 1 to 63 characters.
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".
type Changes to this property will trigger replacement. String
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise
bandwidth
This property is required.
Changes to this property will trigger replacement.
number
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
ipCount
This property is required.
Changes to this property will trigger replacement.
number
IP count of the instance. Valid values: 100.
ipType
This property is required.
Changes to this property will trigger replacement.
string
IP version of the instance. Valid values: IPv4,IPv6.
normalBandwidth
This property is required.
Changes to this property will trigger replacement.
number
Normal defend bandwidth of the instance. The unit is Gbps.
baseBandwidth Changes to this property will trigger replacement. number
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
name string
Name of the instance. This name can have a string of 1 to 63 characters.
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".
type Changes to this property will trigger replacement. string
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise
bandwidth
This property is required.
Changes to this property will trigger replacement.
int
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
ip_count
This property is required.
Changes to this property will trigger replacement.
int
IP count of the instance. Valid values: 100.
ip_type
This property is required.
Changes to this property will trigger replacement.
str
IP version of the instance. Valid values: IPv4,IPv6.
normal_bandwidth
This property is required.
Changes to this property will trigger replacement.
int
Normal defend bandwidth of the instance. The unit is Gbps.
base_bandwidth Changes to this property will trigger replacement. int
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
name str
Name of the instance. This name can have a string of 1 to 63 characters.
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".
type Changes to this property will trigger replacement. str
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise
bandwidth
This property is required.
Changes to this property will trigger replacement.
Number
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
ipCount
This property is required.
Changes to this property will trigger replacement.
Number
IP count of the instance. Valid values: 100.
ipType
This property is required.
Changes to this property will trigger replacement.
String
IP version of the instance. Valid values: IPv4,IPv6.
normalBandwidth
This property is required.
Changes to this property will trigger replacement.
Number
Normal defend bandwidth of the instance. The unit is Gbps.
baseBandwidth Changes to this property will trigger replacement. Number
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
name String
Name of the instance. This name can have a string of 1 to 63 characters.
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".
type Changes to this property will trigger replacement. String
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise

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.
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 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,
        ip_count: Optional[int] = None,
        ip_type: Optional[str] = None,
        name: Optional[str] = None,
        normal_bandwidth: Optional[int] = None,
        period: Optional[int] = 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:dns:DdosBgpInstance    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. int
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
BaseBandwidth Changes to this property will trigger replacement. int
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
IpCount Changes to this property will trigger replacement. int
IP count of the instance. Valid values: 100.
IpType Changes to this property will trigger replacement. string
IP version of the instance. Valid values: IPv4,IPv6.
Name string
Name of the instance. This name can have a string of 1 to 63 characters.
NormalBandwidth Changes to this property will trigger replacement. int
Normal defend bandwidth of the instance. The unit is Gbps.
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".
Type Changes to this property will trigger replacement. string
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise
Bandwidth Changes to this property will trigger replacement. int
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
BaseBandwidth Changes to this property will trigger replacement. int
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
IpCount Changes to this property will trigger replacement. int
IP count of the instance. Valid values: 100.
IpType Changes to this property will trigger replacement. string
IP version of the instance. Valid values: IPv4,IPv6.
Name string
Name of the instance. This name can have a string of 1 to 63 characters.
NormalBandwidth Changes to this property will trigger replacement. int
Normal defend bandwidth of the instance. The unit is Gbps.
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".
Type Changes to this property will trigger replacement. string
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise
bandwidth Changes to this property will trigger replacement. Integer
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
baseBandwidth Changes to this property will trigger replacement. Integer
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
ipCount Changes to this property will trigger replacement. Integer
IP count of the instance. Valid values: 100.
ipType Changes to this property will trigger replacement. String
IP version of the instance. Valid values: IPv4,IPv6.
name String
Name of the instance. This name can have a string of 1 to 63 characters.
normalBandwidth Changes to this property will trigger replacement. Integer
Normal defend bandwidth of the instance. The unit is Gbps.
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".
type Changes to this property will trigger replacement. String
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise
bandwidth Changes to this property will trigger replacement. number
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
baseBandwidth Changes to this property will trigger replacement. number
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
ipCount Changes to this property will trigger replacement. number
IP count of the instance. Valid values: 100.
ipType Changes to this property will trigger replacement. string
IP version of the instance. Valid values: IPv4,IPv6.
name string
Name of the instance. This name can have a string of 1 to 63 characters.
normalBandwidth Changes to this property will trigger replacement. number
Normal defend bandwidth of the instance. The unit is Gbps.
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".
type Changes to this property will trigger replacement. string
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise
bandwidth Changes to this property will trigger replacement. int
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
base_bandwidth Changes to this property will trigger replacement. int
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
ip_count Changes to this property will trigger replacement. int
IP count of the instance. Valid values: 100.
ip_type Changes to this property will trigger replacement. str
IP version of the instance. Valid values: IPv4,IPv6.
name str
Name of the instance. This name can have a string of 1 to 63 characters.
normal_bandwidth Changes to this property will trigger replacement. int
Normal defend bandwidth of the instance. The unit is Gbps.
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".
type Changes to this property will trigger replacement. str
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise
bandwidth Changes to this property will trigger replacement. Number
Elastic defend bandwidth of the instance. This value must be larger than the base defend bandwidth. Valid values: 51,91,101,201,301. The unit is Gbps.
baseBandwidth Changes to this property will trigger replacement. Number
Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.
ipCount Changes to this property will trigger replacement. Number
IP count of the instance. Valid values: 100.
ipType Changes to this property will trigger replacement. String
IP version of the instance. Valid values: IPv4,IPv6.
name String
Name of the instance. This name can have a string of 1 to 63 characters.
normalBandwidth Changes to this property will trigger replacement. Number
Normal defend bandwidth of the instance. The unit is Gbps.
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".
type Changes to this property will trigger replacement. String
Type of the instance. Valid values: Enterprise, Professional. Default to Enterprise

Import

Ddosbgp instance can be imported using the id, e.g.

$ pulumi import alicloud:dns/ddosBgpInstance:DdosBgpInstance example ddosbgp-abc123456
Copy

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.