tencentcloud.DayuDdosIpAttachmentV2
Explore with Pulumi AI
Provides a resource to create a antiddos ip. Only support for bgp-multip.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const boundip = new tencentcloud.DayuDdosIpAttachmentV2("boundip", {
boundIpLists: [{
bizType: "public",
deviceType: "cvm",
instanceId: "ins-xxx",
ip: "1.1.1.1",
}],
dayuDdosIpAttachmentV2Id: "bgp-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
boundip = tencentcloud.DayuDdosIpAttachmentV2("boundip",
bound_ip_lists=[{
"biz_type": "public",
"device_type": "cvm",
"instance_id": "ins-xxx",
"ip": "1.1.1.1",
}],
dayu_ddos_ip_attachment_v2_id="bgp-xxxxxx")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewDayuDdosIpAttachmentV2(ctx, "boundip", &tencentcloud.DayuDdosIpAttachmentV2Args{
BoundIpLists: tencentcloud.DayuDdosIpAttachmentV2BoundIpListArray{
&tencentcloud.DayuDdosIpAttachmentV2BoundIpListArgs{
BizType: pulumi.String("public"),
DeviceType: pulumi.String("cvm"),
InstanceId: pulumi.String("ins-xxx"),
Ip: pulumi.String("1.1.1.1"),
},
},
DayuDdosIpAttachmentV2Id: pulumi.String("bgp-xxxxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var boundip = new Tencentcloud.DayuDdosIpAttachmentV2("boundip", new()
{
BoundIpLists = new[]
{
new Tencentcloud.Inputs.DayuDdosIpAttachmentV2BoundIpListArgs
{
BizType = "public",
DeviceType = "cvm",
InstanceId = "ins-xxx",
Ip = "1.1.1.1",
},
},
DayuDdosIpAttachmentV2Id = "bgp-xxxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DayuDdosIpAttachmentV2;
import com.pulumi.tencentcloud.DayuDdosIpAttachmentV2Args;
import com.pulumi.tencentcloud.inputs.DayuDdosIpAttachmentV2BoundIpListArgs;
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 boundip = new DayuDdosIpAttachmentV2("boundip", DayuDdosIpAttachmentV2Args.builder()
.boundIpLists(DayuDdosIpAttachmentV2BoundIpListArgs.builder()
.bizType("public")
.deviceType("cvm")
.instanceId("ins-xxx")
.ip("1.1.1.1")
.build())
.dayuDdosIpAttachmentV2Id("bgp-xxxxxx")
.build());
}
}
resources:
boundip:
type: tencentcloud:DayuDdosIpAttachmentV2
properties:
boundIpLists:
- bizType: public
deviceType: cvm
instanceId: ins-xxx
ip: 1.1.1.1
dayuDdosIpAttachmentV2Id: bgp-xxxxxx
Create DayuDdosIpAttachmentV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DayuDdosIpAttachmentV2(name: string, args: DayuDdosIpAttachmentV2Args, opts?: CustomResourceOptions);
@overload
def DayuDdosIpAttachmentV2(resource_name: str,
args: DayuDdosIpAttachmentV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def DayuDdosIpAttachmentV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
bgp_instance_id: Optional[str] = None,
bound_ip_lists: Optional[Sequence[DayuDdosIpAttachmentV2BoundIpListArgs]] = None,
dayu_ddos_ip_attachment_v2_id: Optional[str] = None)
func NewDayuDdosIpAttachmentV2(ctx *Context, name string, args DayuDdosIpAttachmentV2Args, opts ...ResourceOption) (*DayuDdosIpAttachmentV2, error)
public DayuDdosIpAttachmentV2(string name, DayuDdosIpAttachmentV2Args args, CustomResourceOptions? opts = null)
public DayuDdosIpAttachmentV2(String name, DayuDdosIpAttachmentV2Args args)
public DayuDdosIpAttachmentV2(String name, DayuDdosIpAttachmentV2Args args, CustomResourceOptions options)
type: tencentcloud:DayuDdosIpAttachmentV2
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 DayuDdosIpAttachmentV2Args
- 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 DayuDdosIpAttachmentV2Args
- 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 DayuDdosIpAttachmentV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DayuDdosIpAttachmentV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DayuDdosIpAttachmentV2Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DayuDdosIpAttachmentV2 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 DayuDdosIpAttachmentV2 resource accepts the following input properties:
- Bgp
Instance stringId - Anti-DDoS instance ID.
- Bound
Ip List<DayuLists Ddos Ip Attachment V2Bound Ip List> - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- Dayu
Ddos stringIp Attachment V2Id - ID of the resource.
- Bgp
Instance stringId - Anti-DDoS instance ID.
- Bound
Ip []DayuLists Ddos Ip Attachment V2Bound Ip List Args - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- Dayu
Ddos stringIp Attachment V2Id - ID of the resource.
- bgp
Instance StringId - Anti-DDoS instance ID.
- bound
Ip List<DayuLists Ddos Ip Attachment V2Bound Ip List> - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- dayu
Ddos StringIp Attachment V2Id - ID of the resource.
- bgp
Instance stringId - Anti-DDoS instance ID.
- bound
Ip DayuLists Ddos Ip Attachment V2Bound Ip List[] - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- dayu
Ddos stringIp Attachment V2Id - ID of the resource.
- bgp_
instance_ strid - Anti-DDoS instance ID.
- bound_
ip_ Sequence[Dayulists Ddos Ip Attachment V2Bound Ip List Args] - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- dayu_
ddos_ strip_ attachment_ v2_ id - ID of the resource.
- bgp
Instance StringId - Anti-DDoS instance ID.
- bound
Ip List<Property Map>Lists - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- dayu
Ddos StringIp Attachment V2Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the DayuDdosIpAttachmentV2 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 DayuDdosIpAttachmentV2 Resource
Get an existing DayuDdosIpAttachmentV2 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?: DayuDdosIpAttachmentV2State, opts?: CustomResourceOptions): DayuDdosIpAttachmentV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bgp_instance_id: Optional[str] = None,
bound_ip_lists: Optional[Sequence[DayuDdosIpAttachmentV2BoundIpListArgs]] = None,
dayu_ddos_ip_attachment_v2_id: Optional[str] = None) -> DayuDdosIpAttachmentV2
func GetDayuDdosIpAttachmentV2(ctx *Context, name string, id IDInput, state *DayuDdosIpAttachmentV2State, opts ...ResourceOption) (*DayuDdosIpAttachmentV2, error)
public static DayuDdosIpAttachmentV2 Get(string name, Input<string> id, DayuDdosIpAttachmentV2State? state, CustomResourceOptions? opts = null)
public static DayuDdosIpAttachmentV2 get(String name, Output<String> id, DayuDdosIpAttachmentV2State state, CustomResourceOptions options)
resources: _: type: tencentcloud:DayuDdosIpAttachmentV2 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.
- Bgp
Instance stringId - Anti-DDoS instance ID.
- Bound
Ip List<DayuLists Ddos Ip Attachment V2Bound Ip List> - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- Dayu
Ddos stringIp Attachment V2Id - ID of the resource.
- Bgp
Instance stringId - Anti-DDoS instance ID.
- Bound
Ip []DayuLists Ddos Ip Attachment V2Bound Ip List Args - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- Dayu
Ddos stringIp Attachment V2Id - ID of the resource.
- bgp
Instance StringId - Anti-DDoS instance ID.
- bound
Ip List<DayuLists Ddos Ip Attachment V2Bound Ip List> - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- dayu
Ddos StringIp Attachment V2Id - ID of the resource.
- bgp
Instance stringId - Anti-DDoS instance ID.
- bound
Ip DayuLists Ddos Ip Attachment V2Bound Ip List[] - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- dayu
Ddos stringIp Attachment V2Id - ID of the resource.
- bgp_
instance_ strid - Anti-DDoS instance ID.
- bound_
ip_ Sequence[Dayulists Ddos Ip Attachment V2Bound Ip List Args] - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- dayu_
ddos_ strip_ attachment_ v2_ id - ID of the resource.
- bgp
Instance StringId - Anti-DDoS instance ID.
- bound
Ip List<Property Map>Lists - Array of IPs to bind to the Anti-DDoS instance. For Anti-DDoS Pro Single IP instance, the array contains only one IP. If there are no IPs to bind, it is empty; however, either BoundDevList or UnBoundDevList must not be empty.
- dayu
Ddos StringIp Attachment V2Id - ID of the resource.
Supporting Types
DayuDdosIpAttachmentV2BoundIpList, DayuDdosIpAttachmentV2BoundIpListArgs
- Ip string
- IP address.
- Biz
Type string - Category of product that can be bound. Valid values: public (CVM and CLB), bm (BM), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), and other (hosted IP). This field is required when you perform binding.
- Device
Type string - Sub-product category. Valid values: cvm (CVM), lb (Load balancer), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), eip (BM EIP) and other (managed IP). This field is required when you perform binding.
- Instance
Id string - Anti-DDoS instance ID of the IP. This field is required only when the instance is bound to an IP. For example, this field InstanceId will be eni-* if the instance ID is bound to an ENI IP; none if there is no instance to bind to a managed IP.
- Ip string
- IP address.
- Biz
Type string - Category of product that can be bound. Valid values: public (CVM and CLB), bm (BM), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), and other (hosted IP). This field is required when you perform binding.
- Device
Type string - Sub-product category. Valid values: cvm (CVM), lb (Load balancer), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), eip (BM EIP) and other (managed IP). This field is required when you perform binding.
- Instance
Id string - Anti-DDoS instance ID of the IP. This field is required only when the instance is bound to an IP. For example, this field InstanceId will be eni-* if the instance ID is bound to an ENI IP; none if there is no instance to bind to a managed IP.
- ip String
- IP address.
- biz
Type String - Category of product that can be bound. Valid values: public (CVM and CLB), bm (BM), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), and other (hosted IP). This field is required when you perform binding.
- device
Type String - Sub-product category. Valid values: cvm (CVM), lb (Load balancer), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), eip (BM EIP) and other (managed IP). This field is required when you perform binding.
- instance
Id String - Anti-DDoS instance ID of the IP. This field is required only when the instance is bound to an IP. For example, this field InstanceId will be eni-* if the instance ID is bound to an ENI IP; none if there is no instance to bind to a managed IP.
- ip string
- IP address.
- biz
Type string - Category of product that can be bound. Valid values: public (CVM and CLB), bm (BM), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), and other (hosted IP). This field is required when you perform binding.
- device
Type string - Sub-product category. Valid values: cvm (CVM), lb (Load balancer), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), eip (BM EIP) and other (managed IP). This field is required when you perform binding.
- instance
Id string - Anti-DDoS instance ID of the IP. This field is required only when the instance is bound to an IP. For example, this field InstanceId will be eni-* if the instance ID is bound to an ENI IP; none if there is no instance to bind to a managed IP.
- ip str
- IP address.
- biz_
type str - Category of product that can be bound. Valid values: public (CVM and CLB), bm (BM), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), and other (hosted IP). This field is required when you perform binding.
- device_
type str - Sub-product category. Valid values: cvm (CVM), lb (Load balancer), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), eip (BM EIP) and other (managed IP). This field is required when you perform binding.
- instance_
id str - Anti-DDoS instance ID of the IP. This field is required only when the instance is bound to an IP. For example, this field InstanceId will be eni-* if the instance ID is bound to an ENI IP; none if there is no instance to bind to a managed IP.
- ip String
- IP address.
- biz
Type String - Category of product that can be bound. Valid values: public (CVM and CLB), bm (BM), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), and other (hosted IP). This field is required when you perform binding.
- device
Type String - Sub-product category. Valid values: cvm (CVM), lb (Load balancer), eni (ENI), vpngw (VPN gateway), natgw (NAT gateway), waf (WAF), fpc (financial products), gaap (GAAP), eip (BM EIP) and other (managed IP). This field is required when you perform binding.
- instance
Id String - Anti-DDoS instance ID of the IP. This field is required only when the instance is bound to an IP. For example, this field InstanceId will be eni-* if the instance ID is bound to an ENI IP; none if there is no instance to bind to a managed IP.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.