Alibaba Cloud

v3.28.0 published on Tuesday, Aug 16, 2022 by Pulumi

DdosBgpInstance

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

NOTE: The endpoint of bssopenapi used only support “business.aliyuncs.com” at present.

NOTE: Available in 1.57.0+ .

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var instance = new AliCloud.Ddos.DdosBgpInstance("instance", new AliCloud.Ddos.DdosBgpInstanceArgs
        {
            Bandwidth = 201,
            BaseBandwidth = 20,
            IpCount = 100,
            IpType = "IPv4",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ddos"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ddos.NewDdosBgpInstance(ctx, "instance", &ddos.DdosBgpInstanceArgs{
			Bandwidth:     pulumi.Int(201),
			BaseBandwidth: pulumi.Int(20),
			IpCount:       pulumi.Int(100),
			IpType:        pulumi.String("IPv4"),
		})
		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.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) {
        var instance = new DdosBgpInstance("instance", DdosBgpInstanceArgs.builder()        
            .bandwidth("201")
            .baseBandwidth("20")
            .ipCount("100")
            .ipType("IPv4")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

instance = alicloud.ddos.DdosBgpInstance("instance",
    bandwidth=201,
    base_bandwidth=20,
    ip_count=100,
    ip_type="IPv4")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const instance = new alicloud.ddos.DdosBgpInstance("instance", {
    bandwidth: 201,
    baseBandwidth: 20,
    ipCount: 100,
    ipType: "IPv4",
});
resources:
  instance:
    type: alicloud:ddos:DdosBgpInstance
    properties:
      bandwidth: 201
      baseBandwidth: 20
      ipCount: 100
      ipType: IPv4

Create a DdosBgpInstance Resource

new DdosBgpInstance(name: string, args: DdosBgpInstanceArgs, opts?: CustomResourceOptions);
@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,
                    period: Optional[int] = None,
                    type: Optional[str] = None)
@overload
def DdosBgpInstance(resource_name: str,
                    args: DdosBgpInstanceArgs,
                    opts: Optional[ResourceOptions] = 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.

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.

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

The DdosBgpInstance resource accepts the following input properties:

Bandwidth 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 int

IP count of the instance. Valid values: 100.

IpType string

IP version of the instance. Valid values: IPv4,IPv6.

BaseBandwidth 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 string

Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise

Bandwidth 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 int

IP count of the instance. Valid values: 100.

IpType string

IP version of the instance. Valid values: IPv4,IPv6.

BaseBandwidth 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 string

Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise

bandwidth 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 Integer

IP count of the instance. Valid values: 100.

ipType String

IP version of the instance. Valid values: IPv4,IPv6.

baseBandwidth 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 String

Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise

bandwidth 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 number

IP count of the instance. Valid values: 100.

ipType string

IP version of the instance. Valid values: IPv4,IPv6.

baseBandwidth 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 string

Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise

bandwidth 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 int

IP count of the instance. Valid values: 100.

ip_type str

IP version of the instance. Valid values: IPv4,IPv6.

base_bandwidth 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 str

Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise

bandwidth 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 Number

IP count of the instance. Valid values: 100.

ipType String

IP version of the instance. Valid values: IPv4,IPv6.

baseBandwidth 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 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 an 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,
        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)
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.
The following state arguments are supported:
Bandwidth 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 int

Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.

IpCount int

IP count of the instance. Valid values: 100.

IpType 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.

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 string

Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise

Bandwidth 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 int

Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.

IpCount int

IP count of the instance. Valid values: 100.

IpType 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.

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 string

Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise

bandwidth 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 Integer

Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.

ipCount Integer

IP count of the instance. Valid values: 100.

ipType 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.

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 String

Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise

bandwidth 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 number

Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.

ipCount number

IP count of the instance. Valid values: 100.

ipType 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.

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 string

Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise

bandwidth 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 int

Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.

ip_count int

IP count of the instance. Valid values: 100.

ip_type 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.

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 str

Type of the instance. Valid values: Enterprise,Professional. Default to Enterprise

bandwidth 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 Number

Base defend bandwidth of the instance. Valid values: 20. The unit is Gbps. Default to 20.

ipCount Number

IP count of the instance. Valid values: 100.

ipType 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.

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 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:ddos/ddosBgpInstance:DdosBgpInstance example ddosbgp-abc123456

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.