1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. dns
  5. DdosBgpInstance
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.dns.DdosBgpInstance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi
    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: The endpoint of bssopenapi used only support “business.aliyuncs.com” at present.

    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", {
        baseBandwidth: 20,
        bandwidth: -1,
        ipCount: 100,
        ipType: "IPv4",
        normalBandwidth: 100,
        type: "Enterprise",
    });
    
    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",
        base_bandwidth=20,
        bandwidth=-1,
        ip_count=100,
        ip_type="IPv4",
        normal_bandwidth=100,
        type="Enterprise")
    
    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{
    			BaseBandwidth:   pulumi.Int(20),
    			Bandwidth:       -1,
    			IpCount:         pulumi.Int(100),
    			IpType:          pulumi.String("IPv4"),
    			NormalBandwidth: pulumi.Int(100),
    			Type:            pulumi.String("Enterprise"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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()
        {
            BaseBandwidth = 20,
            Bandwidth = -1,
            IpCount = 100,
            IpType = "IPv4",
            NormalBandwidth = 100,
            Type = "Enterprise",
        });
    
    });
    
    Coming soon!```
    </pulumi-choosable>
    </div>
    <div>
    <pulumi-choosable type="language" values="yaml">
    

    Coming soon!```

    Create 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,
                        normal_bandwidth: Optional[int] = 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:dns: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.
    NormalBandwidth int
    Normal defend bandwidth of the instance. The unit is Gbps.
    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.
    NormalBandwidth int
    Normal defend bandwidth of the instance. The unit is Gbps.
    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.
    normalBandwidth Integer
    Normal defend bandwidth of the instance. The unit is Gbps.
    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.
    normalBandwidth number
    Normal defend bandwidth of the instance. The unit is Gbps.
    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.
    normal_bandwidth int
    Normal defend bandwidth of the instance. The unit is Gbps.
    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.
    normalBandwidth Number
    Normal defend bandwidth of the instance. The unit is Gbps.
    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 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)
    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.
    NormalBandwidth 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 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.
    NormalBandwidth 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 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.
    normalBandwidth 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 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.
    normalBandwidth 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 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.
    normal_bandwidth 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 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.
    normalBandwidth 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 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
    

    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.51.0 published on Saturday, Mar 23, 2024 by Pulumi