tencentcloud.DayuDdosPolicyCase
Explore with Pulumi AI
Use this resource to create dayu DDoS policy case
NOTE: when a dayu DDoS policy case is created, there will be a dayu DDoS policy created with the same prefix name in the same time. This resource only supports Anti-DDoS of type
bgp
,bgp-multip
andbgpip
. One Anti-DDoS resource can only has one DDoS policy case resource. When there is only one Anti-DDoS resource and one policy case, those two resource will be bind automatically.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const foo = new tencentcloud.DayuDdosPolicyCase("foo", {
appProtocols: [
"tcp",
"udp",
],
appType: "WEB",
hasAbroad: "yes",
hasInitiateTcp: "yes",
hasInitiateUdp: "yes",
hasVpn: "yes",
maxTcpPackageLen: "1200",
maxUdpPackageLen: "1200",
minTcpPackageLen: "1000",
minUdpPackageLen: "1000",
peerTcpPort: "1111",
peerUdpPort: "3333",
platformTypes: [
"PC",
"MOBILE",
],
resourceType: "bgpip",
tcpEndPort: "2000",
tcpFootprint: "511",
tcpStartPort: "1000",
udpEndPort: "4000",
udpFootprint: "500",
udpStartPort: "3000",
webApiUrls: [
"abc.com",
"test.cn/aaa.png",
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
foo = tencentcloud.DayuDdosPolicyCase("foo",
app_protocols=[
"tcp",
"udp",
],
app_type="WEB",
has_abroad="yes",
has_initiate_tcp="yes",
has_initiate_udp="yes",
has_vpn="yes",
max_tcp_package_len="1200",
max_udp_package_len="1200",
min_tcp_package_len="1000",
min_udp_package_len="1000",
peer_tcp_port="1111",
peer_udp_port="3333",
platform_types=[
"PC",
"MOBILE",
],
resource_type="bgpip",
tcp_end_port="2000",
tcp_footprint="511",
tcp_start_port="1000",
udp_end_port="4000",
udp_footprint="500",
udp_start_port="3000",
web_api_urls=[
"abc.com",
"test.cn/aaa.png",
])
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.NewDayuDdosPolicyCase(ctx, "foo", &tencentcloud.DayuDdosPolicyCaseArgs{
AppProtocols: pulumi.StringArray{
pulumi.String("tcp"),
pulumi.String("udp"),
},
AppType: pulumi.String("WEB"),
HasAbroad: pulumi.String("yes"),
HasInitiateTcp: pulumi.String("yes"),
HasInitiateUdp: pulumi.String("yes"),
HasVpn: pulumi.String("yes"),
MaxTcpPackageLen: pulumi.String("1200"),
MaxUdpPackageLen: pulumi.String("1200"),
MinTcpPackageLen: pulumi.String("1000"),
MinUdpPackageLen: pulumi.String("1000"),
PeerTcpPort: pulumi.String("1111"),
PeerUdpPort: pulumi.String("3333"),
PlatformTypes: pulumi.StringArray{
pulumi.String("PC"),
pulumi.String("MOBILE"),
},
ResourceType: pulumi.String("bgpip"),
TcpEndPort: pulumi.String("2000"),
TcpFootprint: pulumi.String("511"),
TcpStartPort: pulumi.String("1000"),
UdpEndPort: pulumi.String("4000"),
UdpFootprint: pulumi.String("500"),
UdpStartPort: pulumi.String("3000"),
WebApiUrls: pulumi.StringArray{
pulumi.String("abc.com"),
pulumi.String("test.cn/aaa.png"),
},
})
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 foo = new Tencentcloud.DayuDdosPolicyCase("foo", new()
{
AppProtocols = new[]
{
"tcp",
"udp",
},
AppType = "WEB",
HasAbroad = "yes",
HasInitiateTcp = "yes",
HasInitiateUdp = "yes",
HasVpn = "yes",
MaxTcpPackageLen = "1200",
MaxUdpPackageLen = "1200",
MinTcpPackageLen = "1000",
MinUdpPackageLen = "1000",
PeerTcpPort = "1111",
PeerUdpPort = "3333",
PlatformTypes = new[]
{
"PC",
"MOBILE",
},
ResourceType = "bgpip",
TcpEndPort = "2000",
TcpFootprint = "511",
TcpStartPort = "1000",
UdpEndPort = "4000",
UdpFootprint = "500",
UdpStartPort = "3000",
WebApiUrls = new[]
{
"abc.com",
"test.cn/aaa.png",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.DayuDdosPolicyCase;
import com.pulumi.tencentcloud.DayuDdosPolicyCaseArgs;
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 foo = new DayuDdosPolicyCase("foo", DayuDdosPolicyCaseArgs.builder()
.appProtocols(
"tcp",
"udp")
.appType("WEB")
.hasAbroad("yes")
.hasInitiateTcp("yes")
.hasInitiateUdp("yes")
.hasVpn("yes")
.maxTcpPackageLen("1200")
.maxUdpPackageLen("1200")
.minTcpPackageLen("1000")
.minUdpPackageLen("1000")
.peerTcpPort("1111")
.peerUdpPort("3333")
.platformTypes(
"PC",
"MOBILE")
.resourceType("bgpip")
.tcpEndPort("2000")
.tcpFootprint("511")
.tcpStartPort("1000")
.udpEndPort("4000")
.udpFootprint("500")
.udpStartPort("3000")
.webApiUrls(
"abc.com",
"test.cn/aaa.png")
.build());
}
}
resources:
foo:
type: tencentcloud:DayuDdosPolicyCase
properties:
appProtocols:
- tcp
- udp
appType: WEB
hasAbroad: yes
hasInitiateTcp: yes
hasInitiateUdp: yes
hasVpn: yes
maxTcpPackageLen: '1200'
maxUdpPackageLen: '1200'
minTcpPackageLen: '1000'
minUdpPackageLen: '1000'
peerTcpPort: '1111'
peerUdpPort: '3333'
platformTypes:
- PC
- MOBILE
resourceType: bgpip
tcpEndPort: '2000'
tcpFootprint: '511'
tcpStartPort: '1000'
udpEndPort: '4000'
udpFootprint: '500'
udpStartPort: '3000'
webApiUrls:
- abc.com
- test.cn/aaa.png
Create DayuDdosPolicyCase Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DayuDdosPolicyCase(name: string, args: DayuDdosPolicyCaseArgs, opts?: CustomResourceOptions);
@overload
def DayuDdosPolicyCase(resource_name: str,
args: DayuDdosPolicyCaseArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DayuDdosPolicyCase(resource_name: str,
opts: Optional[ResourceOptions] = None,
platform_types: Optional[Sequence[str]] = None,
app_type: Optional[str] = None,
web_api_urls: Optional[Sequence[str]] = None,
has_abroad: Optional[str] = None,
has_initiate_tcp: Optional[str] = None,
app_protocols: Optional[Sequence[str]] = None,
udp_start_port: Optional[str] = None,
udp_end_port: Optional[str] = None,
tcp_start_port: Optional[str] = None,
tcp_end_port: Optional[str] = None,
resource_type: Optional[str] = None,
has_initiate_udp: Optional[str] = None,
peer_tcp_port: Optional[str] = None,
peer_udp_port: Optional[str] = None,
name: Optional[str] = None,
min_udp_package_len: Optional[str] = None,
min_tcp_package_len: Optional[str] = None,
tcp_footprint: Optional[str] = None,
max_udp_package_len: Optional[str] = None,
max_tcp_package_len: Optional[str] = None,
udp_footprint: Optional[str] = None,
has_vpn: Optional[str] = None,
dayu_ddos_policy_case_id: Optional[str] = None)
func NewDayuDdosPolicyCase(ctx *Context, name string, args DayuDdosPolicyCaseArgs, opts ...ResourceOption) (*DayuDdosPolicyCase, error)
public DayuDdosPolicyCase(string name, DayuDdosPolicyCaseArgs args, CustomResourceOptions? opts = null)
public DayuDdosPolicyCase(String name, DayuDdosPolicyCaseArgs args)
public DayuDdosPolicyCase(String name, DayuDdosPolicyCaseArgs args, CustomResourceOptions options)
type: tencentcloud:DayuDdosPolicyCase
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 DayuDdosPolicyCaseArgs
- 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 DayuDdosPolicyCaseArgs
- 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 DayuDdosPolicyCaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DayuDdosPolicyCaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DayuDdosPolicyCaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DayuDdosPolicyCase 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 DayuDdosPolicyCase resource accepts the following input properties:
- App
Protocols List<string> - App protocol set of the DDoS policy case.
- App
Type string - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - Has
Abroad string - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - Has
Initiate stringTcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - Platform
Types List<string> - Platform set of the DDoS policy case.
- Resource
Type string - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - Tcp
End stringPort - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - Tcp
Start stringPort - Start port of the TCP service. Valid value ranges: (0~65535).
- Udp
End stringPort - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - Udp
Start stringPort - Start port of the UDP service. Valid value ranges: (0~65535).
- Web
Api List<string>Urls - Web API url set.
- Dayu
Ddos stringPolicy Case Id - ID of the resource.
- Has
Initiate stringUdp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - Has
Vpn string - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - Max
Tcp stringPackage Len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - Max
Udp stringPackage Len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - Min
Tcp stringPackage Len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- Min
Udp stringPackage Len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- Name string
- Name of the DDoS policy case. Length should between 1 and 64.
- Peer
Tcp stringPort - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- Peer
Udp stringPort - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- Tcp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- Udp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- App
Protocols []string - App protocol set of the DDoS policy case.
- App
Type string - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - Has
Abroad string - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - Has
Initiate stringTcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - Platform
Types []string - Platform set of the DDoS policy case.
- Resource
Type string - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - Tcp
End stringPort - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - Tcp
Start stringPort - Start port of the TCP service. Valid value ranges: (0~65535).
- Udp
End stringPort - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - Udp
Start stringPort - Start port of the UDP service. Valid value ranges: (0~65535).
- Web
Api []stringUrls - Web API url set.
- Dayu
Ddos stringPolicy Case Id - ID of the resource.
- Has
Initiate stringUdp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - Has
Vpn string - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - Max
Tcp stringPackage Len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - Max
Udp stringPackage Len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - Min
Tcp stringPackage Len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- Min
Udp stringPackage Len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- Name string
- Name of the DDoS policy case. Length should between 1 and 64.
- Peer
Tcp stringPort - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- Peer
Udp stringPort - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- Tcp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- Udp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- app
Protocols List<String> - App protocol set of the DDoS policy case.
- app
Type String - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - has
Abroad String - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - has
Initiate StringTcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - platform
Types List<String> - Platform set of the DDoS policy case.
- resource
Type String - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - tcp
End StringPort - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - tcp
Start StringPort - Start port of the TCP service. Valid value ranges: (0~65535).
- udp
End StringPort - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - udp
Start StringPort - Start port of the UDP service. Valid value ranges: (0~65535).
- web
Api List<String>Urls - Web API url set.
- dayu
Ddos StringPolicy Case Id - ID of the resource.
- has
Initiate StringUdp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - has
Vpn String - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - max
Tcp StringPackage Len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - max
Udp StringPackage Len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - min
Tcp StringPackage Len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- min
Udp StringPackage Len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- name String
- Name of the DDoS policy case. Length should between 1 and 64.
- peer
Tcp StringPort - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- peer
Udp StringPort - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- tcp
Footprint String - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- udp
Footprint String - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- app
Protocols string[] - App protocol set of the DDoS policy case.
- app
Type string - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - has
Abroad string - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - has
Initiate stringTcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - platform
Types string[] - Platform set of the DDoS policy case.
- resource
Type string - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - tcp
End stringPort - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - tcp
Start stringPort - Start port of the TCP service. Valid value ranges: (0~65535).
- udp
End stringPort - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - udp
Start stringPort - Start port of the UDP service. Valid value ranges: (0~65535).
- web
Api string[]Urls - Web API url set.
- dayu
Ddos stringPolicy Case Id - ID of the resource.
- has
Initiate stringUdp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - has
Vpn string - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - max
Tcp stringPackage Len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - max
Udp stringPackage Len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - min
Tcp stringPackage Len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- min
Udp stringPackage Len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- name string
- Name of the DDoS policy case. Length should between 1 and 64.
- peer
Tcp stringPort - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- peer
Udp stringPort - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- tcp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- udp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- app_
protocols Sequence[str] - App protocol set of the DDoS policy case.
- app_
type str - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - has_
abroad str - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - has_
initiate_ strtcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - platform_
types Sequence[str] - Platform set of the DDoS policy case.
- resource_
type str - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - tcp_
end_ strport - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - tcp_
start_ strport - Start port of the TCP service. Valid value ranges: (0~65535).
- udp_
end_ strport - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - udp_
start_ strport - Start port of the UDP service. Valid value ranges: (0~65535).
- web_
api_ Sequence[str]urls - Web API url set.
- dayu_
ddos_ strpolicy_ case_ id - ID of the resource.
- has_
initiate_ strudp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - has_
vpn str - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - max_
tcp_ strpackage_ len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - max_
udp_ strpackage_ len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - min_
tcp_ strpackage_ len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- min_
udp_ strpackage_ len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- name str
- Name of the DDoS policy case. Length should between 1 and 64.
- peer_
tcp_ strport - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- peer_
udp_ strport - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- tcp_
footprint str - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- udp_
footprint str - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- app
Protocols List<String> - App protocol set of the DDoS policy case.
- app
Type String - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - has
Abroad String - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - has
Initiate StringTcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - platform
Types List<String> - Platform set of the DDoS policy case.
- resource
Type String - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - tcp
End StringPort - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - tcp
Start StringPort - Start port of the TCP service. Valid value ranges: (0~65535).
- udp
End StringPort - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - udp
Start StringPort - Start port of the UDP service. Valid value ranges: (0~65535).
- web
Api List<String>Urls - Web API url set.
- dayu
Ddos StringPolicy Case Id - ID of the resource.
- has
Initiate StringUdp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - has
Vpn String - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - max
Tcp StringPackage Len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - max
Udp StringPackage Len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - min
Tcp StringPackage Len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- min
Udp StringPackage Len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- name String
- Name of the DDoS policy case. Length should between 1 and 64.
- peer
Tcp StringPort - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- peer
Udp StringPort - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- tcp
Footprint String - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- udp
Footprint String - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
Outputs
All input properties are implicitly available as output properties. Additionally, the DayuDdosPolicyCase resource produces the following output properties:
- Create
Time string - Create time of the DDoS policy case.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scene
Id string - ID of the DDoS policy case.
- Create
Time string - Create time of the DDoS policy case.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scene
Id string - ID of the DDoS policy case.
- create
Time String - Create time of the DDoS policy case.
- id String
- The provider-assigned unique ID for this managed resource.
- scene
Id String - ID of the DDoS policy case.
- create
Time string - Create time of the DDoS policy case.
- id string
- The provider-assigned unique ID for this managed resource.
- scene
Id string - ID of the DDoS policy case.
- create_
time str - Create time of the DDoS policy case.
- id str
- The provider-assigned unique ID for this managed resource.
- scene_
id str - ID of the DDoS policy case.
- create
Time String - Create time of the DDoS policy case.
- id String
- The provider-assigned unique ID for this managed resource.
- scene
Id String - ID of the DDoS policy case.
Look up Existing DayuDdosPolicyCase Resource
Get an existing DayuDdosPolicyCase 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?: DayuDdosPolicyCaseState, opts?: CustomResourceOptions): DayuDdosPolicyCase
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
app_protocols: Optional[Sequence[str]] = None,
app_type: Optional[str] = None,
create_time: Optional[str] = None,
dayu_ddos_policy_case_id: Optional[str] = None,
has_abroad: Optional[str] = None,
has_initiate_tcp: Optional[str] = None,
has_initiate_udp: Optional[str] = None,
has_vpn: Optional[str] = None,
max_tcp_package_len: Optional[str] = None,
max_udp_package_len: Optional[str] = None,
min_tcp_package_len: Optional[str] = None,
min_udp_package_len: Optional[str] = None,
name: Optional[str] = None,
peer_tcp_port: Optional[str] = None,
peer_udp_port: Optional[str] = None,
platform_types: Optional[Sequence[str]] = None,
resource_type: Optional[str] = None,
scene_id: Optional[str] = None,
tcp_end_port: Optional[str] = None,
tcp_footprint: Optional[str] = None,
tcp_start_port: Optional[str] = None,
udp_end_port: Optional[str] = None,
udp_footprint: Optional[str] = None,
udp_start_port: Optional[str] = None,
web_api_urls: Optional[Sequence[str]] = None) -> DayuDdosPolicyCase
func GetDayuDdosPolicyCase(ctx *Context, name string, id IDInput, state *DayuDdosPolicyCaseState, opts ...ResourceOption) (*DayuDdosPolicyCase, error)
public static DayuDdosPolicyCase Get(string name, Input<string> id, DayuDdosPolicyCaseState? state, CustomResourceOptions? opts = null)
public static DayuDdosPolicyCase get(String name, Output<String> id, DayuDdosPolicyCaseState state, CustomResourceOptions options)
resources: _: type: tencentcloud:DayuDdosPolicyCase 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.
- App
Protocols List<string> - App protocol set of the DDoS policy case.
- App
Type string - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - Create
Time string - Create time of the DDoS policy case.
- Dayu
Ddos stringPolicy Case Id - ID of the resource.
- Has
Abroad string - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - Has
Initiate stringTcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - Has
Initiate stringUdp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - Has
Vpn string - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - Max
Tcp stringPackage Len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - Max
Udp stringPackage Len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - Min
Tcp stringPackage Len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- Min
Udp stringPackage Len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- Name string
- Name of the DDoS policy case. Length should between 1 and 64.
- Peer
Tcp stringPort - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- Peer
Udp stringPort - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- Platform
Types List<string> - Platform set of the DDoS policy case.
- Resource
Type string - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - Scene
Id string - ID of the DDoS policy case.
- Tcp
End stringPort - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - Tcp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- Tcp
Start stringPort - Start port of the TCP service. Valid value ranges: (0~65535).
- Udp
End stringPort - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - Udp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- Udp
Start stringPort - Start port of the UDP service. Valid value ranges: (0~65535).
- Web
Api List<string>Urls - Web API url set.
- App
Protocols []string - App protocol set of the DDoS policy case.
- App
Type string - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - Create
Time string - Create time of the DDoS policy case.
- Dayu
Ddos stringPolicy Case Id - ID of the resource.
- Has
Abroad string - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - Has
Initiate stringTcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - Has
Initiate stringUdp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - Has
Vpn string - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - Max
Tcp stringPackage Len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - Max
Udp stringPackage Len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - Min
Tcp stringPackage Len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- Min
Udp stringPackage Len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- Name string
- Name of the DDoS policy case. Length should between 1 and 64.
- Peer
Tcp stringPort - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- Peer
Udp stringPort - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- Platform
Types []string - Platform set of the DDoS policy case.
- Resource
Type string - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - Scene
Id string - ID of the DDoS policy case.
- Tcp
End stringPort - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - Tcp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- Tcp
Start stringPort - Start port of the TCP service. Valid value ranges: (0~65535).
- Udp
End stringPort - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - Udp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- Udp
Start stringPort - Start port of the UDP service. Valid value ranges: (0~65535).
- Web
Api []stringUrls - Web API url set.
- app
Protocols List<String> - App protocol set of the DDoS policy case.
- app
Type String - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - create
Time String - Create time of the DDoS policy case.
- dayu
Ddos StringPolicy Case Id - ID of the resource.
- has
Abroad String - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - has
Initiate StringTcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - has
Initiate StringUdp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - has
Vpn String - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - max
Tcp StringPackage Len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - max
Udp StringPackage Len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - min
Tcp StringPackage Len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- min
Udp StringPackage Len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- name String
- Name of the DDoS policy case. Length should between 1 and 64.
- peer
Tcp StringPort - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- peer
Udp StringPort - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- platform
Types List<String> - Platform set of the DDoS policy case.
- resource
Type String - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - scene
Id String - ID of the DDoS policy case.
- tcp
End StringPort - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - tcp
Footprint String - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- tcp
Start StringPort - Start port of the TCP service. Valid value ranges: (0~65535).
- udp
End StringPort - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - udp
Footprint String - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- udp
Start StringPort - Start port of the UDP service. Valid value ranges: (0~65535).
- web
Api List<String>Urls - Web API url set.
- app
Protocols string[] - App protocol set of the DDoS policy case.
- app
Type string - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - create
Time string - Create time of the DDoS policy case.
- dayu
Ddos stringPolicy Case Id - ID of the resource.
- has
Abroad string - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - has
Initiate stringTcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - has
Initiate stringUdp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - has
Vpn string - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - max
Tcp stringPackage Len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - max
Udp stringPackage Len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - min
Tcp stringPackage Len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- min
Udp stringPackage Len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- name string
- Name of the DDoS policy case. Length should between 1 and 64.
- peer
Tcp stringPort - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- peer
Udp stringPort - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- platform
Types string[] - Platform set of the DDoS policy case.
- resource
Type string - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - scene
Id string - ID of the DDoS policy case.
- tcp
End stringPort - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - tcp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- tcp
Start stringPort - Start port of the TCP service. Valid value ranges: (0~65535).
- udp
End stringPort - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - udp
Footprint string - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- udp
Start stringPort - Start port of the UDP service. Valid value ranges: (0~65535).
- web
Api string[]Urls - Web API url set.
- app_
protocols Sequence[str] - App protocol set of the DDoS policy case.
- app_
type str - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - create_
time str - Create time of the DDoS policy case.
- dayu_
ddos_ strpolicy_ case_ id - ID of the resource.
- has_
abroad str - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - has_
initiate_ strtcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - has_
initiate_ strudp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - has_
vpn str - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - max_
tcp_ strpackage_ len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - max_
udp_ strpackage_ len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - min_
tcp_ strpackage_ len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- min_
udp_ strpackage_ len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- name str
- Name of the DDoS policy case. Length should between 1 and 64.
- peer_
tcp_ strport - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- peer_
udp_ strport - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- platform_
types Sequence[str] - Platform set of the DDoS policy case.
- resource_
type str - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - scene_
id str - ID of the DDoS policy case.
- tcp_
end_ strport - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - tcp_
footprint str - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- tcp_
start_ strport - Start port of the TCP service. Valid value ranges: (0~65535).
- udp_
end_ strport - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - udp_
footprint str - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- udp_
start_ strport - Start port of the UDP service. Valid value ranges: (0~65535).
- web_
api_ Sequence[str]urls - Web API url set.
- app
Protocols List<String> - App protocol set of the DDoS policy case.
- app
Type String - App type of the DDoS policy case. Valid values:
WEB
,GAME
,APP
andOTHER
. - create
Time String - Create time of the DDoS policy case.
- dayu
Ddos StringPolicy Case Id - ID of the resource.
- has
Abroad String - Indicate whether the service involves overseas or not. Valid values:
no
andyes
. - has
Initiate StringTcp - Indicate whether the service actively initiates TCP requests or not. Valid values:
no
andyes
. - has
Initiate StringUdp - Indicate whether the actively initiate UDP requests or not. Valid values:
no
andyes
. - has
Vpn String - Indicate whether the service involves VPN service or not. Valid values:
no
andyes
. - max
Tcp StringPackage Len - The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_tcp_package_len
. - max
Udp StringPackage Len - The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than
min_udp_package_len
. - min
Tcp StringPackage Len - The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
- min
Udp StringPackage Len - The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
- name String
- Name of the DDoS policy case. Length should between 1 and 64.
- peer
Tcp StringPort - The port that actively initiates TCP requests. Valid value ranges: (1~65535).
- peer
Udp StringPort - The port that actively initiates UDP requests. Valid value ranges: (1~65535).
- platform
Types List<String> - Platform set of the DDoS policy case.
- resource
Type String - Type of the resource that the DDoS policy case works for. Valid values:
bgpip
,bgp
andbgp-multip
. - scene
Id String - ID of the DDoS policy case.
- tcp
End StringPort - End port of the TCP service. Valid value ranges: (0~65535). It must be greater than
tcp_start_port
. - tcp
Footprint String - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- tcp
Start StringPort - Start port of the TCP service. Valid value ranges: (0~65535).
- udp
End StringPort - End port of the UDP service. Valid value ranges: (0~65535). It must be greater than
udp_start_port
. - udp
Footprint String - The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
- udp
Start StringPort - Start port of the UDP service. Valid value ranges: (0~65535).
- web
Api List<String>Urls - Web API url set.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.