alicloud.ddos.DdosBgpInstance
Explore with Pulumi AI
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.
- Ip
Count int - The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
- Ip
Type string - 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 string - The name of the instance.
- Name string
- Field
name
has been deprecated from provider version 1.259.0. New fieldinstance_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 stringId - Resource Group ID
- 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.
- Ip
Count int - The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
- Ip
Type string - 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 string - The name of the instance.
- Name string
- Field
name
has been deprecated from provider version 1.259.0. New fieldinstance_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 stringId - Resource Group ID
- 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.
- ip
Count Integer - The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
- ip
Type String - The protection IP address type of the protection package. Valid values:
IPv4
IPv6
- normal
Bandwidth Integer - The normal clean bandwidth. Unit: Mbit/s.
- base
Bandwidth Integer - The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value:
20
. Valid values:20
. - instance
Name String - The name of the instance.
- name String
- Field
name
has been deprecated from provider version 1.259.0. New fieldinstance_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".
- resource
Group StringId - Resource Group ID
- 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.
- ip
Count number - The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
- ip
Type string - The protection IP address type of the protection package. Valid values:
IPv4
IPv6
- normal
Bandwidth number - The normal clean bandwidth. Unit: Mbit/s.
- base
Bandwidth number - The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value:
20
. Valid values:20
. - instance
Name string - The name of the instance.
- name string
- Field
name
has been deprecated from provider version 1.259.0. New fieldinstance_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".
- resource
Group stringId - Resource Group ID
- {[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 fieldinstance_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_ strid - Resource Group ID
- 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.
- ip
Count Number - The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
- ip
Type String - The protection IP address type of the protection package. Valid values:
IPv4
IPv6
- normal
Bandwidth Number - The normal clean bandwidth. Unit: Mbit/s.
- base
Bandwidth Number - The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value:
20
. Valid values:20
. - instance
Name String - The name of the instance.
- name String
- Field
name
has been deprecated from provider version 1.259.0. New fieldinstance_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".
- resource
Group StringId - Resource Group ID
- 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:
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.
- 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 string - 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 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 fieldinstance_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 stringId - Resource Group ID
- Status string
- (Available since v1.259.0) The status of the Instance.
- 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.
- Base
Bandwidth int - The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value:
20
. Valid values:20
. - Instance
Name string - 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 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 fieldinstance_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 stringId - Resource Group ID
- Status string
- (Available since v1.259.0) The status of the Instance.
- 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.
- base
Bandwidth Integer - The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value:
20
. Valid values:20
. - instance
Name String - The name of the instance.
- ip
Count Integer - The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
- ip
Type 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 fieldinstance_name
instead. - normal
Bandwidth 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".
- resource
Group StringId - Resource Group ID
- status String
- (Available since v1.259.0) The status of the Instance.
- 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.
- base
Bandwidth number - The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value:
20
. Valid values:20
. - instance
Name string - The name of the instance.
- ip
Count number - The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
- ip
Type 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 fieldinstance_name
instead. - normal
Bandwidth 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".
- resource
Group stringId - Resource Group ID
- status string
- (Available since v1.259.0) The status of the Instance.
- {[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 fieldinstance_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_ strid - Resource Group ID
- status str
- (Available since v1.259.0) The status of the Instance.
- 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.
- base
Bandwidth Number - The basic protection bandwidth of the Anti-DDoS Origin Enterprise instance. Default value:
20
. Valid values:20
. - instance
Name String - The name of the instance.
- ip
Count Number - The number of IP addresses that can be protected by the Anti-DDoS Origin Enterprise instance.
- ip
Type 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 fieldinstance_name
instead. - normal
Bandwidth 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".
- resource
Group StringId - Resource Group ID
- status String
- (Available since v1.259.0) The status of the Instance.
- 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.