dayu

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.5

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type CcHttpPolicy

type CcHttpPolicy struct {
	pulumi.CustomResourceState

	// Action mode, only valid when `smode` is `matching`. Valid values are `alg` and `drop`.
	Action pulumi.StringOutput `pulumi:"action"`
	// Create time of the CC self-define http policy.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Max frequency per minute, only valid when `smode` is `speedlimit`, the valid value ranges from 1 to 10000.
	Frequency pulumi.IntOutput `pulumi:"frequency"`
	// Ip of the CC self-define http policy, only valid when `resourceType` is `bgp-multip`. The num of list items can only be set one.
	Ip pulumi.StringOutput `pulumi:"ip"`
	// Name of the CC self-define http policy. Length should between 1 and 20.
	Name pulumi.StringOutput `pulumi:"name"`
	// Id of the CC self-define http policy.
	PolicyId pulumi.StringOutput `pulumi:"policyId"`
	// ID of the resource that the CC self-define http policy works for.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// Type of the resource that the CC self-define http policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// Rule list of the CC self-define http policy,  only valid when `smode` is `matching`.
	RuleLists CcHttpPolicyRuleListArrayOutput `pulumi:"ruleLists"`
	// Match mode, and valid values are `matching`, `speedlimit`. Note: the speed limit type CC self-define policy can only set one.
	Smode pulumi.StringPtrOutput `pulumi:"smode"`
	// Indicate the CC self-define http policy takes effect or not.
	Switch pulumi.BoolPtrOutput `pulumi:"switch"`
}

Use this resource to create a dayu CC self-define http policy

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewCcHttpPolicy(ctx, "testBgpip", &Dayu.CcHttpPolicyArgs{
			Action:       pulumi.String("drop"),
			ResourceId:   pulumi.String("bgpip-00000294"),
			ResourceType: pulumi.String("bgpip"),
			RuleLists: dayu.CcHttpPolicyRuleListArray{
				&dayu.CcHttpPolicyRuleListArgs{
					Operator: pulumi.String("include"),
					Skey:     pulumi.String("host"),
					Value:    pulumi.String("123"),
				},
			},
			Smode:  pulumi.String("matching"),
			Switch: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = Dayu.NewCcHttpPolicy(ctx, "testNet", &Dayu.CcHttpPolicyArgs{
			Action:       pulumi.String("drop"),
			ResourceId:   pulumi.String("net-0000007e"),
			ResourceType: pulumi.String("net"),
			RuleLists: dayu.CcHttpPolicyRuleListArray{
				&dayu.CcHttpPolicyRuleListArgs{
					Operator: pulumi.String("equal"),
					Skey:     pulumi.String("cgi"),
					Value:    pulumi.String("123"),
				},
			},
			Smode:  pulumi.String("matching"),
			Switch: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = Dayu.NewCcHttpPolicy(ctx, "testBgpmultip", &Dayu.CcHttpPolicyArgs{
			Action:       pulumi.String("alg"),
			Ip:           pulumi.String("111.230.178.25"),
			ResourceId:   pulumi.String("bgp-0000008o"),
			ResourceType: pulumi.String("bgp-multip"),
			RuleLists: dayu.CcHttpPolicyRuleListArray{
				&dayu.CcHttpPolicyRuleListArgs{
					Operator: pulumi.String("not_include"),
					Skey:     pulumi.String("referer"),
					Value:    pulumi.String("123"),
				},
			},
			Smode:  pulumi.String("matching"),
			Switch: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = Dayu.NewCcHttpPolicy(ctx, "testBgp", &Dayu.CcHttpPolicyArgs{
			Action:       pulumi.String("alg"),
			ResourceId:   pulumi.String("bgp-000006mq"),
			ResourceType: pulumi.String("bgp"),
			RuleLists: dayu.CcHttpPolicyRuleListArray{
				&dayu.CcHttpPolicyRuleListArgs{
					Operator: pulumi.String("not_include"),
					Skey:     pulumi.String("ua"),
					Value:    pulumi.String("123"),
				},
			},
			Smode:  pulumi.String("matching"),
			Switch: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetCcHttpPolicy

func GetCcHttpPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CcHttpPolicyState, opts ...pulumi.ResourceOption) (*CcHttpPolicy, error)

GetCcHttpPolicy gets an existing CcHttpPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCcHttpPolicy

func NewCcHttpPolicy(ctx *pulumi.Context,
	name string, args *CcHttpPolicyArgs, opts ...pulumi.ResourceOption) (*CcHttpPolicy, error)

NewCcHttpPolicy registers a new resource with the given unique name, arguments, and options.

func (*CcHttpPolicy) ElementType

func (*CcHttpPolicy) ElementType() reflect.Type

func (*CcHttpPolicy) ToCcHttpPolicyOutput

func (i *CcHttpPolicy) ToCcHttpPolicyOutput() CcHttpPolicyOutput

func (*CcHttpPolicy) ToCcHttpPolicyOutputWithContext

func (i *CcHttpPolicy) ToCcHttpPolicyOutputWithContext(ctx context.Context) CcHttpPolicyOutput

type CcHttpPolicyArgs

type CcHttpPolicyArgs struct {
	// Action mode, only valid when `smode` is `matching`. Valid values are `alg` and `drop`.
	Action pulumi.StringPtrInput
	// Max frequency per minute, only valid when `smode` is `speedlimit`, the valid value ranges from 1 to 10000.
	Frequency pulumi.IntPtrInput
	// Ip of the CC self-define http policy, only valid when `resourceType` is `bgp-multip`. The num of list items can only be set one.
	Ip pulumi.StringPtrInput
	// Name of the CC self-define http policy. Length should between 1 and 20.
	Name pulumi.StringPtrInput
	// ID of the resource that the CC self-define http policy works for.
	ResourceId pulumi.StringInput
	// Type of the resource that the CC self-define http policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringInput
	// Rule list of the CC self-define http policy,  only valid when `smode` is `matching`.
	RuleLists CcHttpPolicyRuleListArrayInput
	// Match mode, and valid values are `matching`, `speedlimit`. Note: the speed limit type CC self-define policy can only set one.
	Smode pulumi.StringPtrInput
	// Indicate the CC self-define http policy takes effect or not.
	Switch pulumi.BoolPtrInput
}

The set of arguments for constructing a CcHttpPolicy resource.

func (CcHttpPolicyArgs) ElementType

func (CcHttpPolicyArgs) ElementType() reflect.Type

type CcHttpPolicyArray

type CcHttpPolicyArray []CcHttpPolicyInput

func (CcHttpPolicyArray) ElementType

func (CcHttpPolicyArray) ElementType() reflect.Type

func (CcHttpPolicyArray) ToCcHttpPolicyArrayOutput

func (i CcHttpPolicyArray) ToCcHttpPolicyArrayOutput() CcHttpPolicyArrayOutput

func (CcHttpPolicyArray) ToCcHttpPolicyArrayOutputWithContext

func (i CcHttpPolicyArray) ToCcHttpPolicyArrayOutputWithContext(ctx context.Context) CcHttpPolicyArrayOutput

type CcHttpPolicyArrayInput

type CcHttpPolicyArrayInput interface {
	pulumi.Input

	ToCcHttpPolicyArrayOutput() CcHttpPolicyArrayOutput
	ToCcHttpPolicyArrayOutputWithContext(context.Context) CcHttpPolicyArrayOutput
}

CcHttpPolicyArrayInput is an input type that accepts CcHttpPolicyArray and CcHttpPolicyArrayOutput values. You can construct a concrete instance of `CcHttpPolicyArrayInput` via:

CcHttpPolicyArray{ CcHttpPolicyArgs{...} }

type CcHttpPolicyArrayOutput

type CcHttpPolicyArrayOutput struct{ *pulumi.OutputState }

func (CcHttpPolicyArrayOutput) ElementType

func (CcHttpPolicyArrayOutput) ElementType() reflect.Type

func (CcHttpPolicyArrayOutput) Index

func (CcHttpPolicyArrayOutput) ToCcHttpPolicyArrayOutput

func (o CcHttpPolicyArrayOutput) ToCcHttpPolicyArrayOutput() CcHttpPolicyArrayOutput

func (CcHttpPolicyArrayOutput) ToCcHttpPolicyArrayOutputWithContext

func (o CcHttpPolicyArrayOutput) ToCcHttpPolicyArrayOutputWithContext(ctx context.Context) CcHttpPolicyArrayOutput

type CcHttpPolicyInput

type CcHttpPolicyInput interface {
	pulumi.Input

	ToCcHttpPolicyOutput() CcHttpPolicyOutput
	ToCcHttpPolicyOutputWithContext(ctx context.Context) CcHttpPolicyOutput
}

type CcHttpPolicyMap

type CcHttpPolicyMap map[string]CcHttpPolicyInput

func (CcHttpPolicyMap) ElementType

func (CcHttpPolicyMap) ElementType() reflect.Type

func (CcHttpPolicyMap) ToCcHttpPolicyMapOutput

func (i CcHttpPolicyMap) ToCcHttpPolicyMapOutput() CcHttpPolicyMapOutput

func (CcHttpPolicyMap) ToCcHttpPolicyMapOutputWithContext

func (i CcHttpPolicyMap) ToCcHttpPolicyMapOutputWithContext(ctx context.Context) CcHttpPolicyMapOutput

type CcHttpPolicyMapInput

type CcHttpPolicyMapInput interface {
	pulumi.Input

	ToCcHttpPolicyMapOutput() CcHttpPolicyMapOutput
	ToCcHttpPolicyMapOutputWithContext(context.Context) CcHttpPolicyMapOutput
}

CcHttpPolicyMapInput is an input type that accepts CcHttpPolicyMap and CcHttpPolicyMapOutput values. You can construct a concrete instance of `CcHttpPolicyMapInput` via:

CcHttpPolicyMap{ "key": CcHttpPolicyArgs{...} }

type CcHttpPolicyMapOutput

type CcHttpPolicyMapOutput struct{ *pulumi.OutputState }

func (CcHttpPolicyMapOutput) ElementType

func (CcHttpPolicyMapOutput) ElementType() reflect.Type

func (CcHttpPolicyMapOutput) MapIndex

func (CcHttpPolicyMapOutput) ToCcHttpPolicyMapOutput

func (o CcHttpPolicyMapOutput) ToCcHttpPolicyMapOutput() CcHttpPolicyMapOutput

func (CcHttpPolicyMapOutput) ToCcHttpPolicyMapOutputWithContext

func (o CcHttpPolicyMapOutput) ToCcHttpPolicyMapOutputWithContext(ctx context.Context) CcHttpPolicyMapOutput

type CcHttpPolicyOutput

type CcHttpPolicyOutput struct{ *pulumi.OutputState }

func (CcHttpPolicyOutput) Action

Action mode, only valid when `smode` is `matching`. Valid values are `alg` and `drop`.

func (CcHttpPolicyOutput) CreateTime

func (o CcHttpPolicyOutput) CreateTime() pulumi.StringOutput

Create time of the CC self-define http policy.

func (CcHttpPolicyOutput) ElementType

func (CcHttpPolicyOutput) ElementType() reflect.Type

func (CcHttpPolicyOutput) Frequency

func (o CcHttpPolicyOutput) Frequency() pulumi.IntOutput

Max frequency per minute, only valid when `smode` is `speedlimit`, the valid value ranges from 1 to 10000.

func (CcHttpPolicyOutput) Ip

Ip of the CC self-define http policy, only valid when `resourceType` is `bgp-multip`. The num of list items can only be set one.

func (CcHttpPolicyOutput) Name

Name of the CC self-define http policy. Length should between 1 and 20.

func (CcHttpPolicyOutput) PolicyId

func (o CcHttpPolicyOutput) PolicyId() pulumi.StringOutput

Id of the CC self-define http policy.

func (CcHttpPolicyOutput) ResourceId

func (o CcHttpPolicyOutput) ResourceId() pulumi.StringOutput

ID of the resource that the CC self-define http policy works for.

func (CcHttpPolicyOutput) ResourceType

func (o CcHttpPolicyOutput) ResourceType() pulumi.StringOutput

Type of the resource that the CC self-define http policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.

func (CcHttpPolicyOutput) RuleLists

Rule list of the CC self-define http policy, only valid when `smode` is `matching`.

func (CcHttpPolicyOutput) Smode

Match mode, and valid values are `matching`, `speedlimit`. Note: the speed limit type CC self-define policy can only set one.

func (CcHttpPolicyOutput) Switch

Indicate the CC self-define http policy takes effect or not.

func (CcHttpPolicyOutput) ToCcHttpPolicyOutput

func (o CcHttpPolicyOutput) ToCcHttpPolicyOutput() CcHttpPolicyOutput

func (CcHttpPolicyOutput) ToCcHttpPolicyOutputWithContext

func (o CcHttpPolicyOutput) ToCcHttpPolicyOutputWithContext(ctx context.Context) CcHttpPolicyOutput

type CcHttpPolicyRuleList

type CcHttpPolicyRuleList struct {
	// Operator of the rule. Valid values: `include`, `notInclude`, `equal`.
	Operator *string `pulumi:"operator"`
	// Key of the rule. Valid values: `host`, `cgi`, `ua`, `referer`.
	Skey *string `pulumi:"skey"`
	// Rule value, then length should be less than 31 bytes.
	Value *string `pulumi:"value"`
}

type CcHttpPolicyRuleListArgs

type CcHttpPolicyRuleListArgs struct {
	// Operator of the rule. Valid values: `include`, `notInclude`, `equal`.
	Operator pulumi.StringPtrInput `pulumi:"operator"`
	// Key of the rule. Valid values: `host`, `cgi`, `ua`, `referer`.
	Skey pulumi.StringPtrInput `pulumi:"skey"`
	// Rule value, then length should be less than 31 bytes.
	Value pulumi.StringPtrInput `pulumi:"value"`
}

func (CcHttpPolicyRuleListArgs) ElementType

func (CcHttpPolicyRuleListArgs) ElementType() reflect.Type

func (CcHttpPolicyRuleListArgs) ToCcHttpPolicyRuleListOutput

func (i CcHttpPolicyRuleListArgs) ToCcHttpPolicyRuleListOutput() CcHttpPolicyRuleListOutput

func (CcHttpPolicyRuleListArgs) ToCcHttpPolicyRuleListOutputWithContext

func (i CcHttpPolicyRuleListArgs) ToCcHttpPolicyRuleListOutputWithContext(ctx context.Context) CcHttpPolicyRuleListOutput

type CcHttpPolicyRuleListArray

type CcHttpPolicyRuleListArray []CcHttpPolicyRuleListInput

func (CcHttpPolicyRuleListArray) ElementType

func (CcHttpPolicyRuleListArray) ElementType() reflect.Type

func (CcHttpPolicyRuleListArray) ToCcHttpPolicyRuleListArrayOutput

func (i CcHttpPolicyRuleListArray) ToCcHttpPolicyRuleListArrayOutput() CcHttpPolicyRuleListArrayOutput

func (CcHttpPolicyRuleListArray) ToCcHttpPolicyRuleListArrayOutputWithContext

func (i CcHttpPolicyRuleListArray) ToCcHttpPolicyRuleListArrayOutputWithContext(ctx context.Context) CcHttpPolicyRuleListArrayOutput

type CcHttpPolicyRuleListArrayInput

type CcHttpPolicyRuleListArrayInput interface {
	pulumi.Input

	ToCcHttpPolicyRuleListArrayOutput() CcHttpPolicyRuleListArrayOutput
	ToCcHttpPolicyRuleListArrayOutputWithContext(context.Context) CcHttpPolicyRuleListArrayOutput
}

CcHttpPolicyRuleListArrayInput is an input type that accepts CcHttpPolicyRuleListArray and CcHttpPolicyRuleListArrayOutput values. You can construct a concrete instance of `CcHttpPolicyRuleListArrayInput` via:

CcHttpPolicyRuleListArray{ CcHttpPolicyRuleListArgs{...} }

type CcHttpPolicyRuleListArrayOutput

type CcHttpPolicyRuleListArrayOutput struct{ *pulumi.OutputState }

func (CcHttpPolicyRuleListArrayOutput) ElementType

func (CcHttpPolicyRuleListArrayOutput) Index

func (CcHttpPolicyRuleListArrayOutput) ToCcHttpPolicyRuleListArrayOutput

func (o CcHttpPolicyRuleListArrayOutput) ToCcHttpPolicyRuleListArrayOutput() CcHttpPolicyRuleListArrayOutput

func (CcHttpPolicyRuleListArrayOutput) ToCcHttpPolicyRuleListArrayOutputWithContext

func (o CcHttpPolicyRuleListArrayOutput) ToCcHttpPolicyRuleListArrayOutputWithContext(ctx context.Context) CcHttpPolicyRuleListArrayOutput

type CcHttpPolicyRuleListInput

type CcHttpPolicyRuleListInput interface {
	pulumi.Input

	ToCcHttpPolicyRuleListOutput() CcHttpPolicyRuleListOutput
	ToCcHttpPolicyRuleListOutputWithContext(context.Context) CcHttpPolicyRuleListOutput
}

CcHttpPolicyRuleListInput is an input type that accepts CcHttpPolicyRuleListArgs and CcHttpPolicyRuleListOutput values. You can construct a concrete instance of `CcHttpPolicyRuleListInput` via:

CcHttpPolicyRuleListArgs{...}

type CcHttpPolicyRuleListOutput

type CcHttpPolicyRuleListOutput struct{ *pulumi.OutputState }

func (CcHttpPolicyRuleListOutput) ElementType

func (CcHttpPolicyRuleListOutput) ElementType() reflect.Type

func (CcHttpPolicyRuleListOutput) Operator

Operator of the rule. Valid values: `include`, `notInclude`, `equal`.

func (CcHttpPolicyRuleListOutput) Skey

Key of the rule. Valid values: `host`, `cgi`, `ua`, `referer`.

func (CcHttpPolicyRuleListOutput) ToCcHttpPolicyRuleListOutput

func (o CcHttpPolicyRuleListOutput) ToCcHttpPolicyRuleListOutput() CcHttpPolicyRuleListOutput

func (CcHttpPolicyRuleListOutput) ToCcHttpPolicyRuleListOutputWithContext

func (o CcHttpPolicyRuleListOutput) ToCcHttpPolicyRuleListOutputWithContext(ctx context.Context) CcHttpPolicyRuleListOutput

func (CcHttpPolicyRuleListOutput) Value

Rule value, then length should be less than 31 bytes.

type CcHttpPolicyState

type CcHttpPolicyState struct {
	// Action mode, only valid when `smode` is `matching`. Valid values are `alg` and `drop`.
	Action pulumi.StringPtrInput
	// Create time of the CC self-define http policy.
	CreateTime pulumi.StringPtrInput
	// Max frequency per minute, only valid when `smode` is `speedlimit`, the valid value ranges from 1 to 10000.
	Frequency pulumi.IntPtrInput
	// Ip of the CC self-define http policy, only valid when `resourceType` is `bgp-multip`. The num of list items can only be set one.
	Ip pulumi.StringPtrInput
	// Name of the CC self-define http policy. Length should between 1 and 20.
	Name pulumi.StringPtrInput
	// Id of the CC self-define http policy.
	PolicyId pulumi.StringPtrInput
	// ID of the resource that the CC self-define http policy works for.
	ResourceId pulumi.StringPtrInput
	// Type of the resource that the CC self-define http policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringPtrInput
	// Rule list of the CC self-define http policy,  only valid when `smode` is `matching`.
	RuleLists CcHttpPolicyRuleListArrayInput
	// Match mode, and valid values are `matching`, `speedlimit`. Note: the speed limit type CC self-define policy can only set one.
	Smode pulumi.StringPtrInput
	// Indicate the CC self-define http policy takes effect or not.
	Switch pulumi.BoolPtrInput
}

func (CcHttpPolicyState) ElementType

func (CcHttpPolicyState) ElementType() reflect.Type

type CcHttpsPolicy

type CcHttpsPolicy struct {
	pulumi.CustomResourceState

	// Action mode. Valid values are `alg` and `drop`.
	Action pulumi.StringOutput `pulumi:"action"`
	// Create time of the CC self-define https policy.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Domain that the CC self-define https policy works for, only valid when `protocol` is `https`.
	Domain pulumi.StringOutput `pulumi:"domain"`
	// Ip of the CC self-define https policy.
	IpLists pulumi.StringArrayOutput `pulumi:"ipLists"`
	// Name of the CC self-define https policy. Length should between 1 and 20.
	Name pulumi.StringOutput `pulumi:"name"`
	// Id of the CC self-define https policy.
	PolicyId pulumi.StringOutput `pulumi:"policyId"`
	// ID of the resource that the CC self-define https policy works for.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// Type of the resource that the CC self-define https policy works for, valid value is `bgpip`.
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// Rule id of the domain that the CC self-define https policy works for, only valid when `protocol` is `https`.
	RuleId pulumi.StringOutput `pulumi:"ruleId"`
	// Rule list of the CC self-define https policy.
	RuleLists CcHttpsPolicyRuleListArrayOutput `pulumi:"ruleLists"`
	// Indicate the CC self-define https policy takes effect or not.
	Switch pulumi.BoolPtrOutput `pulumi:"switch"`
}

Use this resource to create a dayu CC self-define https policy

> **NOTE:** creating CC self-define https policy need a valid resource `Dayu.L7Rule`; The resource only support Anti-DDoS of resource type `bgpip`.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewCcHttpsPolicy(ctx, "testPolicy", &Dayu.CcHttpsPolicyArgs{
			ResourceType: pulumi.Any(tencentcloud_dayu_l7_rule.Test_rule.Resource_type),
			ResourceId:   pulumi.Any(tencentcloud_dayu_l7_rule.Test_rule.Resource_id),
			RuleId:       pulumi.Any(tencentcloud_dayu_l7_rule.Test_rule.Rule_id),
			Domain:       pulumi.Any(tencentcloud_dayu_l7_rule.Test_rule.Domain),
			Action:       pulumi.String("drop"),
			Switch:       pulumi.Bool(true),
			RuleLists: dayu.CcHttpsPolicyRuleListArray{
				&dayu.CcHttpsPolicyRuleListArgs{
					Skey:     pulumi.String("cgi"),
					Operator: pulumi.String("include"),
					Value:    pulumi.String("123"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetCcHttpsPolicy

func GetCcHttpsPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CcHttpsPolicyState, opts ...pulumi.ResourceOption) (*CcHttpsPolicy, error)

GetCcHttpsPolicy gets an existing CcHttpsPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCcHttpsPolicy

func NewCcHttpsPolicy(ctx *pulumi.Context,
	name string, args *CcHttpsPolicyArgs, opts ...pulumi.ResourceOption) (*CcHttpsPolicy, error)

NewCcHttpsPolicy registers a new resource with the given unique name, arguments, and options.

func (*CcHttpsPolicy) ElementType

func (*CcHttpsPolicy) ElementType() reflect.Type

func (*CcHttpsPolicy) ToCcHttpsPolicyOutput

func (i *CcHttpsPolicy) ToCcHttpsPolicyOutput() CcHttpsPolicyOutput

func (*CcHttpsPolicy) ToCcHttpsPolicyOutputWithContext

func (i *CcHttpsPolicy) ToCcHttpsPolicyOutputWithContext(ctx context.Context) CcHttpsPolicyOutput

type CcHttpsPolicyArgs

type CcHttpsPolicyArgs struct {
	// Action mode. Valid values are `alg` and `drop`.
	Action pulumi.StringPtrInput
	// Domain that the CC self-define https policy works for, only valid when `protocol` is `https`.
	Domain pulumi.StringInput
	// Name of the CC self-define https policy. Length should between 1 and 20.
	Name pulumi.StringPtrInput
	// ID of the resource that the CC self-define https policy works for.
	ResourceId pulumi.StringInput
	// Type of the resource that the CC self-define https policy works for, valid value is `bgpip`.
	ResourceType pulumi.StringInput
	// Rule id of the domain that the CC self-define https policy works for, only valid when `protocol` is `https`.
	RuleId pulumi.StringInput
	// Rule list of the CC self-define https policy.
	RuleLists CcHttpsPolicyRuleListArrayInput
	// Indicate the CC self-define https policy takes effect or not.
	Switch pulumi.BoolPtrInput
}

The set of arguments for constructing a CcHttpsPolicy resource.

func (CcHttpsPolicyArgs) ElementType

func (CcHttpsPolicyArgs) ElementType() reflect.Type

type CcHttpsPolicyArray

type CcHttpsPolicyArray []CcHttpsPolicyInput

func (CcHttpsPolicyArray) ElementType

func (CcHttpsPolicyArray) ElementType() reflect.Type

func (CcHttpsPolicyArray) ToCcHttpsPolicyArrayOutput

func (i CcHttpsPolicyArray) ToCcHttpsPolicyArrayOutput() CcHttpsPolicyArrayOutput

func (CcHttpsPolicyArray) ToCcHttpsPolicyArrayOutputWithContext

func (i CcHttpsPolicyArray) ToCcHttpsPolicyArrayOutputWithContext(ctx context.Context) CcHttpsPolicyArrayOutput

type CcHttpsPolicyArrayInput

type CcHttpsPolicyArrayInput interface {
	pulumi.Input

	ToCcHttpsPolicyArrayOutput() CcHttpsPolicyArrayOutput
	ToCcHttpsPolicyArrayOutputWithContext(context.Context) CcHttpsPolicyArrayOutput
}

CcHttpsPolicyArrayInput is an input type that accepts CcHttpsPolicyArray and CcHttpsPolicyArrayOutput values. You can construct a concrete instance of `CcHttpsPolicyArrayInput` via:

CcHttpsPolicyArray{ CcHttpsPolicyArgs{...} }

type CcHttpsPolicyArrayOutput

type CcHttpsPolicyArrayOutput struct{ *pulumi.OutputState }

func (CcHttpsPolicyArrayOutput) ElementType

func (CcHttpsPolicyArrayOutput) ElementType() reflect.Type

func (CcHttpsPolicyArrayOutput) Index

func (CcHttpsPolicyArrayOutput) ToCcHttpsPolicyArrayOutput

func (o CcHttpsPolicyArrayOutput) ToCcHttpsPolicyArrayOutput() CcHttpsPolicyArrayOutput

func (CcHttpsPolicyArrayOutput) ToCcHttpsPolicyArrayOutputWithContext

func (o CcHttpsPolicyArrayOutput) ToCcHttpsPolicyArrayOutputWithContext(ctx context.Context) CcHttpsPolicyArrayOutput

type CcHttpsPolicyInput

type CcHttpsPolicyInput interface {
	pulumi.Input

	ToCcHttpsPolicyOutput() CcHttpsPolicyOutput
	ToCcHttpsPolicyOutputWithContext(ctx context.Context) CcHttpsPolicyOutput
}

type CcHttpsPolicyMap

type CcHttpsPolicyMap map[string]CcHttpsPolicyInput

func (CcHttpsPolicyMap) ElementType

func (CcHttpsPolicyMap) ElementType() reflect.Type

func (CcHttpsPolicyMap) ToCcHttpsPolicyMapOutput

func (i CcHttpsPolicyMap) ToCcHttpsPolicyMapOutput() CcHttpsPolicyMapOutput

func (CcHttpsPolicyMap) ToCcHttpsPolicyMapOutputWithContext

func (i CcHttpsPolicyMap) ToCcHttpsPolicyMapOutputWithContext(ctx context.Context) CcHttpsPolicyMapOutput

type CcHttpsPolicyMapInput

type CcHttpsPolicyMapInput interface {
	pulumi.Input

	ToCcHttpsPolicyMapOutput() CcHttpsPolicyMapOutput
	ToCcHttpsPolicyMapOutputWithContext(context.Context) CcHttpsPolicyMapOutput
}

CcHttpsPolicyMapInput is an input type that accepts CcHttpsPolicyMap and CcHttpsPolicyMapOutput values. You can construct a concrete instance of `CcHttpsPolicyMapInput` via:

CcHttpsPolicyMap{ "key": CcHttpsPolicyArgs{...} }

type CcHttpsPolicyMapOutput

type CcHttpsPolicyMapOutput struct{ *pulumi.OutputState }

func (CcHttpsPolicyMapOutput) ElementType

func (CcHttpsPolicyMapOutput) ElementType() reflect.Type

func (CcHttpsPolicyMapOutput) MapIndex

func (CcHttpsPolicyMapOutput) ToCcHttpsPolicyMapOutput

func (o CcHttpsPolicyMapOutput) ToCcHttpsPolicyMapOutput() CcHttpsPolicyMapOutput

func (CcHttpsPolicyMapOutput) ToCcHttpsPolicyMapOutputWithContext

func (o CcHttpsPolicyMapOutput) ToCcHttpsPolicyMapOutputWithContext(ctx context.Context) CcHttpsPolicyMapOutput

type CcHttpsPolicyOutput

type CcHttpsPolicyOutput struct{ *pulumi.OutputState }

func (CcHttpsPolicyOutput) Action

Action mode. Valid values are `alg` and `drop`.

func (CcHttpsPolicyOutput) CreateTime

func (o CcHttpsPolicyOutput) CreateTime() pulumi.StringOutput

Create time of the CC self-define https policy.

func (CcHttpsPolicyOutput) Domain

Domain that the CC self-define https policy works for, only valid when `protocol` is `https`.

func (CcHttpsPolicyOutput) ElementType

func (CcHttpsPolicyOutput) ElementType() reflect.Type

func (CcHttpsPolicyOutput) IpLists

Ip of the CC self-define https policy.

func (CcHttpsPolicyOutput) Name

Name of the CC self-define https policy. Length should between 1 and 20.

func (CcHttpsPolicyOutput) PolicyId

Id of the CC self-define https policy.

func (CcHttpsPolicyOutput) ResourceId

func (o CcHttpsPolicyOutput) ResourceId() pulumi.StringOutput

ID of the resource that the CC self-define https policy works for.

func (CcHttpsPolicyOutput) ResourceType

func (o CcHttpsPolicyOutput) ResourceType() pulumi.StringOutput

Type of the resource that the CC self-define https policy works for, valid value is `bgpip`.

func (CcHttpsPolicyOutput) RuleId

Rule id of the domain that the CC self-define https policy works for, only valid when `protocol` is `https`.

func (CcHttpsPolicyOutput) RuleLists

Rule list of the CC self-define https policy.

func (CcHttpsPolicyOutput) Switch

Indicate the CC self-define https policy takes effect or not.

func (CcHttpsPolicyOutput) ToCcHttpsPolicyOutput

func (o CcHttpsPolicyOutput) ToCcHttpsPolicyOutput() CcHttpsPolicyOutput

func (CcHttpsPolicyOutput) ToCcHttpsPolicyOutputWithContext

func (o CcHttpsPolicyOutput) ToCcHttpsPolicyOutputWithContext(ctx context.Context) CcHttpsPolicyOutput

type CcHttpsPolicyRuleList

type CcHttpsPolicyRuleList struct {
	// Operator of the rule. Valid values are `include` and `equal`.
	Operator string `pulumi:"operator"`
	// Key of the rule. Valid values are `cgi`, `ua` and `referer`.
	Skey string `pulumi:"skey"`
	// Rule value, then length should be less than 31 bytes.
	Value string `pulumi:"value"`
}

type CcHttpsPolicyRuleListArgs

type CcHttpsPolicyRuleListArgs struct {
	// Operator of the rule. Valid values are `include` and `equal`.
	Operator pulumi.StringInput `pulumi:"operator"`
	// Key of the rule. Valid values are `cgi`, `ua` and `referer`.
	Skey pulumi.StringInput `pulumi:"skey"`
	// Rule value, then length should be less than 31 bytes.
	Value pulumi.StringInput `pulumi:"value"`
}

func (CcHttpsPolicyRuleListArgs) ElementType

func (CcHttpsPolicyRuleListArgs) ElementType() reflect.Type

func (CcHttpsPolicyRuleListArgs) ToCcHttpsPolicyRuleListOutput

func (i CcHttpsPolicyRuleListArgs) ToCcHttpsPolicyRuleListOutput() CcHttpsPolicyRuleListOutput

func (CcHttpsPolicyRuleListArgs) ToCcHttpsPolicyRuleListOutputWithContext

func (i CcHttpsPolicyRuleListArgs) ToCcHttpsPolicyRuleListOutputWithContext(ctx context.Context) CcHttpsPolicyRuleListOutput

type CcHttpsPolicyRuleListArray

type CcHttpsPolicyRuleListArray []CcHttpsPolicyRuleListInput

func (CcHttpsPolicyRuleListArray) ElementType

func (CcHttpsPolicyRuleListArray) ElementType() reflect.Type

func (CcHttpsPolicyRuleListArray) ToCcHttpsPolicyRuleListArrayOutput

func (i CcHttpsPolicyRuleListArray) ToCcHttpsPolicyRuleListArrayOutput() CcHttpsPolicyRuleListArrayOutput

func (CcHttpsPolicyRuleListArray) ToCcHttpsPolicyRuleListArrayOutputWithContext

func (i CcHttpsPolicyRuleListArray) ToCcHttpsPolicyRuleListArrayOutputWithContext(ctx context.Context) CcHttpsPolicyRuleListArrayOutput

type CcHttpsPolicyRuleListArrayInput

type CcHttpsPolicyRuleListArrayInput interface {
	pulumi.Input

	ToCcHttpsPolicyRuleListArrayOutput() CcHttpsPolicyRuleListArrayOutput
	ToCcHttpsPolicyRuleListArrayOutputWithContext(context.Context) CcHttpsPolicyRuleListArrayOutput
}

CcHttpsPolicyRuleListArrayInput is an input type that accepts CcHttpsPolicyRuleListArray and CcHttpsPolicyRuleListArrayOutput values. You can construct a concrete instance of `CcHttpsPolicyRuleListArrayInput` via:

CcHttpsPolicyRuleListArray{ CcHttpsPolicyRuleListArgs{...} }

type CcHttpsPolicyRuleListArrayOutput

type CcHttpsPolicyRuleListArrayOutput struct{ *pulumi.OutputState }

func (CcHttpsPolicyRuleListArrayOutput) ElementType

func (CcHttpsPolicyRuleListArrayOutput) Index

func (CcHttpsPolicyRuleListArrayOutput) ToCcHttpsPolicyRuleListArrayOutput

func (o CcHttpsPolicyRuleListArrayOutput) ToCcHttpsPolicyRuleListArrayOutput() CcHttpsPolicyRuleListArrayOutput

func (CcHttpsPolicyRuleListArrayOutput) ToCcHttpsPolicyRuleListArrayOutputWithContext

func (o CcHttpsPolicyRuleListArrayOutput) ToCcHttpsPolicyRuleListArrayOutputWithContext(ctx context.Context) CcHttpsPolicyRuleListArrayOutput

type CcHttpsPolicyRuleListInput

type CcHttpsPolicyRuleListInput interface {
	pulumi.Input

	ToCcHttpsPolicyRuleListOutput() CcHttpsPolicyRuleListOutput
	ToCcHttpsPolicyRuleListOutputWithContext(context.Context) CcHttpsPolicyRuleListOutput
}

CcHttpsPolicyRuleListInput is an input type that accepts CcHttpsPolicyRuleListArgs and CcHttpsPolicyRuleListOutput values. You can construct a concrete instance of `CcHttpsPolicyRuleListInput` via:

CcHttpsPolicyRuleListArgs{...}

type CcHttpsPolicyRuleListOutput

type CcHttpsPolicyRuleListOutput struct{ *pulumi.OutputState }

func (CcHttpsPolicyRuleListOutput) ElementType

func (CcHttpsPolicyRuleListOutput) Operator

Operator of the rule. Valid values are `include` and `equal`.

func (CcHttpsPolicyRuleListOutput) Skey

Key of the rule. Valid values are `cgi`, `ua` and `referer`.

func (CcHttpsPolicyRuleListOutput) ToCcHttpsPolicyRuleListOutput

func (o CcHttpsPolicyRuleListOutput) ToCcHttpsPolicyRuleListOutput() CcHttpsPolicyRuleListOutput

func (CcHttpsPolicyRuleListOutput) ToCcHttpsPolicyRuleListOutputWithContext

func (o CcHttpsPolicyRuleListOutput) ToCcHttpsPolicyRuleListOutputWithContext(ctx context.Context) CcHttpsPolicyRuleListOutput

func (CcHttpsPolicyRuleListOutput) Value

Rule value, then length should be less than 31 bytes.

type CcHttpsPolicyState

type CcHttpsPolicyState struct {
	// Action mode. Valid values are `alg` and `drop`.
	Action pulumi.StringPtrInput
	// Create time of the CC self-define https policy.
	CreateTime pulumi.StringPtrInput
	// Domain that the CC self-define https policy works for, only valid when `protocol` is `https`.
	Domain pulumi.StringPtrInput
	// Ip of the CC self-define https policy.
	IpLists pulumi.StringArrayInput
	// Name of the CC self-define https policy. Length should between 1 and 20.
	Name pulumi.StringPtrInput
	// Id of the CC self-define https policy.
	PolicyId pulumi.StringPtrInput
	// ID of the resource that the CC self-define https policy works for.
	ResourceId pulumi.StringPtrInput
	// Type of the resource that the CC self-define https policy works for, valid value is `bgpip`.
	ResourceType pulumi.StringPtrInput
	// Rule id of the domain that the CC self-define https policy works for, only valid when `protocol` is `https`.
	RuleId pulumi.StringPtrInput
	// Rule list of the CC self-define https policy.
	RuleLists CcHttpsPolicyRuleListArrayInput
	// Indicate the CC self-define https policy takes effect or not.
	Switch pulumi.BoolPtrInput
}

func (CcHttpsPolicyState) ElementType

func (CcHttpsPolicyState) ElementType() reflect.Type

type CcPolicyV2

type CcPolicyV2 struct {
	pulumi.CustomResourceState

	// Business of resource instance. bgpip indicates anti-anti-ip ip; bgp means exclusive package; bgp-multip means shared packet; net indicates anti-anti-ip pro version.
	Business pulumi.StringOutput `pulumi:"business"`
	// Blacklist and whitelist.
	CcBlackWhiteIps CcPolicyV2CcBlackWhiteIpArrayOutput `pulumi:"ccBlackWhiteIps"`
	// Details of the CC region blocking policy list.
	CcGeoIpPolicys CcPolicyV2CcGeoIpPolicyArrayOutput `pulumi:"ccGeoIpPolicys"`
	// CC Precision Protection List.
	CcPrecisionPolicys CcPolicyV2CcPrecisionPolicyArrayOutput `pulumi:"ccPrecisionPolicys"`
	// CC frequency throttling policy.
	CcPrecisionReqLimits CcPolicyV2CcPrecisionReqLimitArrayOutput `pulumi:"ccPrecisionReqLimits"`
	// The ID of the resource instance.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// List of protection threshold configurations.
	Thresholds CcPolicyV2ThresholdArrayOutput `pulumi:"thresholds"`
}

Use this resource to create a dayu CC policy

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewCcPolicyV2(ctx, "demo", &Dayu.CcPolicyV2Args{
			Business: pulumi.String("bgpip"),
			CcBlackWhiteIps: dayu.CcPolicyV2CcBlackWhiteIpArray{
				&dayu.CcPolicyV2CcBlackWhiteIpArgs{
					BlackWhiteIp: pulumi.String("1.2.3.4"),
					Domain:       pulumi.String("12.com"),
					Protocol:     pulumi.String("http"),
					Type:         pulumi.String("black"),
				},
			},
			CcGeoIpPolicys: dayu.CcPolicyV2CcGeoIpPolicyArray{
				&dayu.CcPolicyV2CcGeoIpPolicyArgs{
					Action:     pulumi.String("drop"),
					Domain:     pulumi.String("12.com"),
					Protocol:   pulumi.String("http"),
					RegionType: pulumi.String("china"),
				},
			},
			CcPrecisionPolicys: dayu.CcPolicyV2CcPrecisionPolicyArray{
				&dayu.CcPolicyV2CcPrecisionPolicyArgs{
					Domain:       pulumi.String("1.com"),
					Ip:           pulumi.String("162.62.163.34"),
					PolicyAction: pulumi.String("drop"),
					Policys: dayu.CcPolicyV2CcPrecisionPolicyPolicyArray{
						&dayu.CcPolicyV2CcPrecisionPolicyPolicyArgs{
							FieldName:     pulumi.String("cgi"),
							FieldType:     pulumi.String("value"),
							Value:         pulumi.String("12123.com"),
							ValueOperator: pulumi.String("equal"),
						},
					},
					Protocol: pulumi.String("http"),
				},
			},
			CcPrecisionReqLimits: dayu.CcPolicyV2CcPrecisionReqLimitArray{
				&dayu.CcPolicyV2CcPrecisionReqLimitArgs{
					Domain: pulumi.String("11.com"),
					Level:  pulumi.String("loose"),
					Policys: dayu.CcPolicyV2CcPrecisionReqLimitPolicyArray{
						&dayu.CcPolicyV2CcPrecisionReqLimitPolicyArgs{
							Action:          pulumi.String("alg"),
							ExecuteDuration: pulumi.Int(2),
							Mode:            pulumi.String("equal"),
							Period:          pulumi.Int(5),
							RequestNum:      pulumi.Int(12),
							Uri:             pulumi.String("15.com"),
						},
					},
					Protocol: pulumi.String("http"),
				},
			},
			ResourceId: pulumi.String("bgpip-000004xf"),
			Thresholds: dayu.CcPolicyV2ThresholdArray{
				&dayu.CcPolicyV2ThresholdArgs{
					Domain:    pulumi.String("12.com"),
					Threshold: pulumi.Int(0),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetCcPolicyV2

func GetCcPolicyV2(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CcPolicyV2State, opts ...pulumi.ResourceOption) (*CcPolicyV2, error)

GetCcPolicyV2 gets an existing CcPolicyV2 resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewCcPolicyV2

func NewCcPolicyV2(ctx *pulumi.Context,
	name string, args *CcPolicyV2Args, opts ...pulumi.ResourceOption) (*CcPolicyV2, error)

NewCcPolicyV2 registers a new resource with the given unique name, arguments, and options.

func (*CcPolicyV2) ElementType

func (*CcPolicyV2) ElementType() reflect.Type

func (*CcPolicyV2) ToCcPolicyV2Output

func (i *CcPolicyV2) ToCcPolicyV2Output() CcPolicyV2Output

func (*CcPolicyV2) ToCcPolicyV2OutputWithContext

func (i *CcPolicyV2) ToCcPolicyV2OutputWithContext(ctx context.Context) CcPolicyV2Output

type CcPolicyV2Args

type CcPolicyV2Args struct {
	// Business of resource instance. bgpip indicates anti-anti-ip ip; bgp means exclusive package; bgp-multip means shared packet; net indicates anti-anti-ip pro version.
	Business pulumi.StringInput
	// Blacklist and whitelist.
	CcBlackWhiteIps CcPolicyV2CcBlackWhiteIpArrayInput
	// Details of the CC region blocking policy list.
	CcGeoIpPolicys CcPolicyV2CcGeoIpPolicyArrayInput
	// CC Precision Protection List.
	CcPrecisionPolicys CcPolicyV2CcPrecisionPolicyArrayInput
	// CC frequency throttling policy.
	CcPrecisionReqLimits CcPolicyV2CcPrecisionReqLimitArrayInput
	// The ID of the resource instance.
	ResourceId pulumi.StringInput
	// List of protection threshold configurations.
	Thresholds CcPolicyV2ThresholdArrayInput
}

The set of arguments for constructing a CcPolicyV2 resource.

func (CcPolicyV2Args) ElementType

func (CcPolicyV2Args) ElementType() reflect.Type

type CcPolicyV2Array

type CcPolicyV2Array []CcPolicyV2Input

func (CcPolicyV2Array) ElementType

func (CcPolicyV2Array) ElementType() reflect.Type

func (CcPolicyV2Array) ToCcPolicyV2ArrayOutput

func (i CcPolicyV2Array) ToCcPolicyV2ArrayOutput() CcPolicyV2ArrayOutput

func (CcPolicyV2Array) ToCcPolicyV2ArrayOutputWithContext

func (i CcPolicyV2Array) ToCcPolicyV2ArrayOutputWithContext(ctx context.Context) CcPolicyV2ArrayOutput

type CcPolicyV2ArrayInput

type CcPolicyV2ArrayInput interface {
	pulumi.Input

	ToCcPolicyV2ArrayOutput() CcPolicyV2ArrayOutput
	ToCcPolicyV2ArrayOutputWithContext(context.Context) CcPolicyV2ArrayOutput
}

CcPolicyV2ArrayInput is an input type that accepts CcPolicyV2Array and CcPolicyV2ArrayOutput values. You can construct a concrete instance of `CcPolicyV2ArrayInput` via:

CcPolicyV2Array{ CcPolicyV2Args{...} }

type CcPolicyV2ArrayOutput

type CcPolicyV2ArrayOutput struct{ *pulumi.OutputState }

func (CcPolicyV2ArrayOutput) ElementType

func (CcPolicyV2ArrayOutput) ElementType() reflect.Type

func (CcPolicyV2ArrayOutput) Index

func (CcPolicyV2ArrayOutput) ToCcPolicyV2ArrayOutput

func (o CcPolicyV2ArrayOutput) ToCcPolicyV2ArrayOutput() CcPolicyV2ArrayOutput

func (CcPolicyV2ArrayOutput) ToCcPolicyV2ArrayOutputWithContext

func (o CcPolicyV2ArrayOutput) ToCcPolicyV2ArrayOutputWithContext(ctx context.Context) CcPolicyV2ArrayOutput

type CcPolicyV2CcBlackWhiteIp

type CcPolicyV2CcBlackWhiteIp struct {
	// Blacklist and whitelist IP addresses.
	BlackWhiteIp string `pulumi:"blackWhiteIp"`
	// Create time.
	CreateTime *string `pulumi:"createTime"`
	// Domain.
	Domain string `pulumi:"domain"`
	// Modify time.
	ModifyTime *string `pulumi:"modifyTime"`
	// Protocol.
	Protocol string `pulumi:"protocol"`
	// IP type, value [black(blacklist IP), white (whitelist IP)].
	Type string `pulumi:"type"`
}

type CcPolicyV2CcBlackWhiteIpArgs

type CcPolicyV2CcBlackWhiteIpArgs struct {
	// Blacklist and whitelist IP addresses.
	BlackWhiteIp pulumi.StringInput `pulumi:"blackWhiteIp"`
	// Create time.
	CreateTime pulumi.StringPtrInput `pulumi:"createTime"`
	// Domain.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Modify time.
	ModifyTime pulumi.StringPtrInput `pulumi:"modifyTime"`
	// Protocol.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// IP type, value [black(blacklist IP), white (whitelist IP)].
	Type pulumi.StringInput `pulumi:"type"`
}

func (CcPolicyV2CcBlackWhiteIpArgs) ElementType

func (CcPolicyV2CcBlackWhiteIpArgs) ToCcPolicyV2CcBlackWhiteIpOutput

func (i CcPolicyV2CcBlackWhiteIpArgs) ToCcPolicyV2CcBlackWhiteIpOutput() CcPolicyV2CcBlackWhiteIpOutput

func (CcPolicyV2CcBlackWhiteIpArgs) ToCcPolicyV2CcBlackWhiteIpOutputWithContext

func (i CcPolicyV2CcBlackWhiteIpArgs) ToCcPolicyV2CcBlackWhiteIpOutputWithContext(ctx context.Context) CcPolicyV2CcBlackWhiteIpOutput

type CcPolicyV2CcBlackWhiteIpArray

type CcPolicyV2CcBlackWhiteIpArray []CcPolicyV2CcBlackWhiteIpInput

func (CcPolicyV2CcBlackWhiteIpArray) ElementType

func (CcPolicyV2CcBlackWhiteIpArray) ToCcPolicyV2CcBlackWhiteIpArrayOutput

func (i CcPolicyV2CcBlackWhiteIpArray) ToCcPolicyV2CcBlackWhiteIpArrayOutput() CcPolicyV2CcBlackWhiteIpArrayOutput

func (CcPolicyV2CcBlackWhiteIpArray) ToCcPolicyV2CcBlackWhiteIpArrayOutputWithContext

func (i CcPolicyV2CcBlackWhiteIpArray) ToCcPolicyV2CcBlackWhiteIpArrayOutputWithContext(ctx context.Context) CcPolicyV2CcBlackWhiteIpArrayOutput

type CcPolicyV2CcBlackWhiteIpArrayInput

type CcPolicyV2CcBlackWhiteIpArrayInput interface {
	pulumi.Input

	ToCcPolicyV2CcBlackWhiteIpArrayOutput() CcPolicyV2CcBlackWhiteIpArrayOutput
	ToCcPolicyV2CcBlackWhiteIpArrayOutputWithContext(context.Context) CcPolicyV2CcBlackWhiteIpArrayOutput
}

CcPolicyV2CcBlackWhiteIpArrayInput is an input type that accepts CcPolicyV2CcBlackWhiteIpArray and CcPolicyV2CcBlackWhiteIpArrayOutput values. You can construct a concrete instance of `CcPolicyV2CcBlackWhiteIpArrayInput` via:

CcPolicyV2CcBlackWhiteIpArray{ CcPolicyV2CcBlackWhiteIpArgs{...} }

type CcPolicyV2CcBlackWhiteIpArrayOutput

type CcPolicyV2CcBlackWhiteIpArrayOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcBlackWhiteIpArrayOutput) ElementType

func (CcPolicyV2CcBlackWhiteIpArrayOutput) Index

func (CcPolicyV2CcBlackWhiteIpArrayOutput) ToCcPolicyV2CcBlackWhiteIpArrayOutput

func (o CcPolicyV2CcBlackWhiteIpArrayOutput) ToCcPolicyV2CcBlackWhiteIpArrayOutput() CcPolicyV2CcBlackWhiteIpArrayOutput

func (CcPolicyV2CcBlackWhiteIpArrayOutput) ToCcPolicyV2CcBlackWhiteIpArrayOutputWithContext

func (o CcPolicyV2CcBlackWhiteIpArrayOutput) ToCcPolicyV2CcBlackWhiteIpArrayOutputWithContext(ctx context.Context) CcPolicyV2CcBlackWhiteIpArrayOutput

type CcPolicyV2CcBlackWhiteIpInput

type CcPolicyV2CcBlackWhiteIpInput interface {
	pulumi.Input

	ToCcPolicyV2CcBlackWhiteIpOutput() CcPolicyV2CcBlackWhiteIpOutput
	ToCcPolicyV2CcBlackWhiteIpOutputWithContext(context.Context) CcPolicyV2CcBlackWhiteIpOutput
}

CcPolicyV2CcBlackWhiteIpInput is an input type that accepts CcPolicyV2CcBlackWhiteIpArgs and CcPolicyV2CcBlackWhiteIpOutput values. You can construct a concrete instance of `CcPolicyV2CcBlackWhiteIpInput` via:

CcPolicyV2CcBlackWhiteIpArgs{...}

type CcPolicyV2CcBlackWhiteIpOutput

type CcPolicyV2CcBlackWhiteIpOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcBlackWhiteIpOutput) BlackWhiteIp

Blacklist and whitelist IP addresses.

func (CcPolicyV2CcBlackWhiteIpOutput) CreateTime

Create time.

func (CcPolicyV2CcBlackWhiteIpOutput) Domain

Domain.

func (CcPolicyV2CcBlackWhiteIpOutput) ElementType

func (CcPolicyV2CcBlackWhiteIpOutput) ModifyTime

Modify time.

func (CcPolicyV2CcBlackWhiteIpOutput) Protocol

Protocol.

func (CcPolicyV2CcBlackWhiteIpOutput) ToCcPolicyV2CcBlackWhiteIpOutput

func (o CcPolicyV2CcBlackWhiteIpOutput) ToCcPolicyV2CcBlackWhiteIpOutput() CcPolicyV2CcBlackWhiteIpOutput

func (CcPolicyV2CcBlackWhiteIpOutput) ToCcPolicyV2CcBlackWhiteIpOutputWithContext

func (o CcPolicyV2CcBlackWhiteIpOutput) ToCcPolicyV2CcBlackWhiteIpOutputWithContext(ctx context.Context) CcPolicyV2CcBlackWhiteIpOutput

func (CcPolicyV2CcBlackWhiteIpOutput) Type

IP type, value [black(blacklist IP), white (whitelist IP)].

type CcPolicyV2CcGeoIpPolicy

type CcPolicyV2CcGeoIpPolicy struct {
	// User action, drop or arg.
	Action string `pulumi:"action"`
	// The list of region IDs that the user selects to block.
	AreaLists []int `pulumi:"areaLists"`
	// Create time.
	CreateTime *string `pulumi:"createTime"`
	// domain.
	Domain string `pulumi:"domain"`
	// Modify time.
	ModifyTime *string `pulumi:"modifyTime"`
	// Protocol, preferably HTTP, HTTPS.
	Protocol string `pulumi:"protocol"`
	// Regional types, divided into china, oversea and customized.
	RegionType string `pulumi:"regionType"`
}

type CcPolicyV2CcGeoIpPolicyArgs

type CcPolicyV2CcGeoIpPolicyArgs struct {
	// User action, drop or arg.
	Action pulumi.StringInput `pulumi:"action"`
	// The list of region IDs that the user selects to block.
	AreaLists pulumi.IntArrayInput `pulumi:"areaLists"`
	// Create time.
	CreateTime pulumi.StringPtrInput `pulumi:"createTime"`
	// domain.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Modify time.
	ModifyTime pulumi.StringPtrInput `pulumi:"modifyTime"`
	// Protocol, preferably HTTP, HTTPS.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// Regional types, divided into china, oversea and customized.
	RegionType pulumi.StringInput `pulumi:"regionType"`
}

func (CcPolicyV2CcGeoIpPolicyArgs) ElementType

func (CcPolicyV2CcGeoIpPolicyArgs) ToCcPolicyV2CcGeoIpPolicyOutput

func (i CcPolicyV2CcGeoIpPolicyArgs) ToCcPolicyV2CcGeoIpPolicyOutput() CcPolicyV2CcGeoIpPolicyOutput

func (CcPolicyV2CcGeoIpPolicyArgs) ToCcPolicyV2CcGeoIpPolicyOutputWithContext

func (i CcPolicyV2CcGeoIpPolicyArgs) ToCcPolicyV2CcGeoIpPolicyOutputWithContext(ctx context.Context) CcPolicyV2CcGeoIpPolicyOutput

type CcPolicyV2CcGeoIpPolicyArray

type CcPolicyV2CcGeoIpPolicyArray []CcPolicyV2CcGeoIpPolicyInput

func (CcPolicyV2CcGeoIpPolicyArray) ElementType

func (CcPolicyV2CcGeoIpPolicyArray) ToCcPolicyV2CcGeoIpPolicyArrayOutput

func (i CcPolicyV2CcGeoIpPolicyArray) ToCcPolicyV2CcGeoIpPolicyArrayOutput() CcPolicyV2CcGeoIpPolicyArrayOutput

func (CcPolicyV2CcGeoIpPolicyArray) ToCcPolicyV2CcGeoIpPolicyArrayOutputWithContext

func (i CcPolicyV2CcGeoIpPolicyArray) ToCcPolicyV2CcGeoIpPolicyArrayOutputWithContext(ctx context.Context) CcPolicyV2CcGeoIpPolicyArrayOutput

type CcPolicyV2CcGeoIpPolicyArrayInput

type CcPolicyV2CcGeoIpPolicyArrayInput interface {
	pulumi.Input

	ToCcPolicyV2CcGeoIpPolicyArrayOutput() CcPolicyV2CcGeoIpPolicyArrayOutput
	ToCcPolicyV2CcGeoIpPolicyArrayOutputWithContext(context.Context) CcPolicyV2CcGeoIpPolicyArrayOutput
}

CcPolicyV2CcGeoIpPolicyArrayInput is an input type that accepts CcPolicyV2CcGeoIpPolicyArray and CcPolicyV2CcGeoIpPolicyArrayOutput values. You can construct a concrete instance of `CcPolicyV2CcGeoIpPolicyArrayInput` via:

CcPolicyV2CcGeoIpPolicyArray{ CcPolicyV2CcGeoIpPolicyArgs{...} }

type CcPolicyV2CcGeoIpPolicyArrayOutput

type CcPolicyV2CcGeoIpPolicyArrayOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcGeoIpPolicyArrayOutput) ElementType

func (CcPolicyV2CcGeoIpPolicyArrayOutput) Index

func (CcPolicyV2CcGeoIpPolicyArrayOutput) ToCcPolicyV2CcGeoIpPolicyArrayOutput

func (o CcPolicyV2CcGeoIpPolicyArrayOutput) ToCcPolicyV2CcGeoIpPolicyArrayOutput() CcPolicyV2CcGeoIpPolicyArrayOutput

func (CcPolicyV2CcGeoIpPolicyArrayOutput) ToCcPolicyV2CcGeoIpPolicyArrayOutputWithContext

func (o CcPolicyV2CcGeoIpPolicyArrayOutput) ToCcPolicyV2CcGeoIpPolicyArrayOutputWithContext(ctx context.Context) CcPolicyV2CcGeoIpPolicyArrayOutput

type CcPolicyV2CcGeoIpPolicyInput

type CcPolicyV2CcGeoIpPolicyInput interface {
	pulumi.Input

	ToCcPolicyV2CcGeoIpPolicyOutput() CcPolicyV2CcGeoIpPolicyOutput
	ToCcPolicyV2CcGeoIpPolicyOutputWithContext(context.Context) CcPolicyV2CcGeoIpPolicyOutput
}

CcPolicyV2CcGeoIpPolicyInput is an input type that accepts CcPolicyV2CcGeoIpPolicyArgs and CcPolicyV2CcGeoIpPolicyOutput values. You can construct a concrete instance of `CcPolicyV2CcGeoIpPolicyInput` via:

CcPolicyV2CcGeoIpPolicyArgs{...}

type CcPolicyV2CcGeoIpPolicyOutput

type CcPolicyV2CcGeoIpPolicyOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcGeoIpPolicyOutput) Action

User action, drop or arg.

func (CcPolicyV2CcGeoIpPolicyOutput) AreaLists

The list of region IDs that the user selects to block.

func (CcPolicyV2CcGeoIpPolicyOutput) CreateTime

Create time.

func (CcPolicyV2CcGeoIpPolicyOutput) Domain

domain.

func (CcPolicyV2CcGeoIpPolicyOutput) ElementType

func (CcPolicyV2CcGeoIpPolicyOutput) ModifyTime

Modify time.

func (CcPolicyV2CcGeoIpPolicyOutput) Protocol

Protocol, preferably HTTP, HTTPS.

func (CcPolicyV2CcGeoIpPolicyOutput) RegionType

Regional types, divided into china, oversea and customized.

func (CcPolicyV2CcGeoIpPolicyOutput) ToCcPolicyV2CcGeoIpPolicyOutput

func (o CcPolicyV2CcGeoIpPolicyOutput) ToCcPolicyV2CcGeoIpPolicyOutput() CcPolicyV2CcGeoIpPolicyOutput

func (CcPolicyV2CcGeoIpPolicyOutput) ToCcPolicyV2CcGeoIpPolicyOutputWithContext

func (o CcPolicyV2CcGeoIpPolicyOutput) ToCcPolicyV2CcGeoIpPolicyOutputWithContext(ctx context.Context) CcPolicyV2CcGeoIpPolicyOutput

type CcPolicyV2CcPrecisionPolicy

type CcPolicyV2CcPrecisionPolicy struct {
	// Domain.
	Domain string `pulumi:"domain"`
	// Ip address.
	Ip string `pulumi:"ip"`
	// Policy mode (discard or captcha).
	PolicyAction string  `pulumi:"policyAction"`
	PolicyId     *string `pulumi:"policyId"`
	// A list of policies.
	Policys []CcPolicyV2CcPrecisionPolicyPolicy `pulumi:"policys"`
	// Protocol.
	Protocol string `pulumi:"protocol"`
}

type CcPolicyV2CcPrecisionPolicyArgs

type CcPolicyV2CcPrecisionPolicyArgs struct {
	// Domain.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Ip address.
	Ip pulumi.StringInput `pulumi:"ip"`
	// Policy mode (discard or captcha).
	PolicyAction pulumi.StringInput    `pulumi:"policyAction"`
	PolicyId     pulumi.StringPtrInput `pulumi:"policyId"`
	// A list of policies.
	Policys CcPolicyV2CcPrecisionPolicyPolicyArrayInput `pulumi:"policys"`
	// Protocol.
	Protocol pulumi.StringInput `pulumi:"protocol"`
}

func (CcPolicyV2CcPrecisionPolicyArgs) ElementType

func (CcPolicyV2CcPrecisionPolicyArgs) ToCcPolicyV2CcPrecisionPolicyOutput

func (i CcPolicyV2CcPrecisionPolicyArgs) ToCcPolicyV2CcPrecisionPolicyOutput() CcPolicyV2CcPrecisionPolicyOutput

func (CcPolicyV2CcPrecisionPolicyArgs) ToCcPolicyV2CcPrecisionPolicyOutputWithContext

func (i CcPolicyV2CcPrecisionPolicyArgs) ToCcPolicyV2CcPrecisionPolicyOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionPolicyOutput

type CcPolicyV2CcPrecisionPolicyArray

type CcPolicyV2CcPrecisionPolicyArray []CcPolicyV2CcPrecisionPolicyInput

func (CcPolicyV2CcPrecisionPolicyArray) ElementType

func (CcPolicyV2CcPrecisionPolicyArray) ToCcPolicyV2CcPrecisionPolicyArrayOutput

func (i CcPolicyV2CcPrecisionPolicyArray) ToCcPolicyV2CcPrecisionPolicyArrayOutput() CcPolicyV2CcPrecisionPolicyArrayOutput

func (CcPolicyV2CcPrecisionPolicyArray) ToCcPolicyV2CcPrecisionPolicyArrayOutputWithContext

func (i CcPolicyV2CcPrecisionPolicyArray) ToCcPolicyV2CcPrecisionPolicyArrayOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionPolicyArrayOutput

type CcPolicyV2CcPrecisionPolicyArrayInput

type CcPolicyV2CcPrecisionPolicyArrayInput interface {
	pulumi.Input

	ToCcPolicyV2CcPrecisionPolicyArrayOutput() CcPolicyV2CcPrecisionPolicyArrayOutput
	ToCcPolicyV2CcPrecisionPolicyArrayOutputWithContext(context.Context) CcPolicyV2CcPrecisionPolicyArrayOutput
}

CcPolicyV2CcPrecisionPolicyArrayInput is an input type that accepts CcPolicyV2CcPrecisionPolicyArray and CcPolicyV2CcPrecisionPolicyArrayOutput values. You can construct a concrete instance of `CcPolicyV2CcPrecisionPolicyArrayInput` via:

CcPolicyV2CcPrecisionPolicyArray{ CcPolicyV2CcPrecisionPolicyArgs{...} }

type CcPolicyV2CcPrecisionPolicyArrayOutput

type CcPolicyV2CcPrecisionPolicyArrayOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcPrecisionPolicyArrayOutput) ElementType

func (CcPolicyV2CcPrecisionPolicyArrayOutput) Index

func (CcPolicyV2CcPrecisionPolicyArrayOutput) ToCcPolicyV2CcPrecisionPolicyArrayOutput

func (o CcPolicyV2CcPrecisionPolicyArrayOutput) ToCcPolicyV2CcPrecisionPolicyArrayOutput() CcPolicyV2CcPrecisionPolicyArrayOutput

func (CcPolicyV2CcPrecisionPolicyArrayOutput) ToCcPolicyV2CcPrecisionPolicyArrayOutputWithContext

func (o CcPolicyV2CcPrecisionPolicyArrayOutput) ToCcPolicyV2CcPrecisionPolicyArrayOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionPolicyArrayOutput

type CcPolicyV2CcPrecisionPolicyInput

type CcPolicyV2CcPrecisionPolicyInput interface {
	pulumi.Input

	ToCcPolicyV2CcPrecisionPolicyOutput() CcPolicyV2CcPrecisionPolicyOutput
	ToCcPolicyV2CcPrecisionPolicyOutputWithContext(context.Context) CcPolicyV2CcPrecisionPolicyOutput
}

CcPolicyV2CcPrecisionPolicyInput is an input type that accepts CcPolicyV2CcPrecisionPolicyArgs and CcPolicyV2CcPrecisionPolicyOutput values. You can construct a concrete instance of `CcPolicyV2CcPrecisionPolicyInput` via:

CcPolicyV2CcPrecisionPolicyArgs{...}

type CcPolicyV2CcPrecisionPolicyOutput

type CcPolicyV2CcPrecisionPolicyOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcPrecisionPolicyOutput) Domain

Domain.

func (CcPolicyV2CcPrecisionPolicyOutput) ElementType

func (CcPolicyV2CcPrecisionPolicyOutput) Ip

Ip address.

func (CcPolicyV2CcPrecisionPolicyOutput) PolicyAction

Policy mode (discard or captcha).

func (CcPolicyV2CcPrecisionPolicyOutput) PolicyId

func (CcPolicyV2CcPrecisionPolicyOutput) Policys

A list of policies.

func (CcPolicyV2CcPrecisionPolicyOutput) Protocol

Protocol.

func (CcPolicyV2CcPrecisionPolicyOutput) ToCcPolicyV2CcPrecisionPolicyOutput

func (o CcPolicyV2CcPrecisionPolicyOutput) ToCcPolicyV2CcPrecisionPolicyOutput() CcPolicyV2CcPrecisionPolicyOutput

func (CcPolicyV2CcPrecisionPolicyOutput) ToCcPolicyV2CcPrecisionPolicyOutputWithContext

func (o CcPolicyV2CcPrecisionPolicyOutput) ToCcPolicyV2CcPrecisionPolicyOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionPolicyOutput

type CcPolicyV2CcPrecisionPolicyPolicy

type CcPolicyV2CcPrecisionPolicyPolicy struct {
	// Configuration item types, currently only support value.
	FieldName string `pulumi:"fieldName"`
	// Configuration fields with the desirable values cgi, ua, cookie, referer, accept, srcip.
	FieldType string `pulumi:"fieldType"`
	// Configure the value.
	Value string `pulumi:"value"`
	// Configure the item-value comparison mode, which can be taken as the value of evaluate, not_equal, include.
	ValueOperator string `pulumi:"valueOperator"`
}

type CcPolicyV2CcPrecisionPolicyPolicyArgs

type CcPolicyV2CcPrecisionPolicyPolicyArgs struct {
	// Configuration item types, currently only support value.
	FieldName pulumi.StringInput `pulumi:"fieldName"`
	// Configuration fields with the desirable values cgi, ua, cookie, referer, accept, srcip.
	FieldType pulumi.StringInput `pulumi:"fieldType"`
	// Configure the value.
	Value pulumi.StringInput `pulumi:"value"`
	// Configure the item-value comparison mode, which can be taken as the value of evaluate, not_equal, include.
	ValueOperator pulumi.StringInput `pulumi:"valueOperator"`
}

func (CcPolicyV2CcPrecisionPolicyPolicyArgs) ElementType

func (CcPolicyV2CcPrecisionPolicyPolicyArgs) ToCcPolicyV2CcPrecisionPolicyPolicyOutput

func (i CcPolicyV2CcPrecisionPolicyPolicyArgs) ToCcPolicyV2CcPrecisionPolicyPolicyOutput() CcPolicyV2CcPrecisionPolicyPolicyOutput

func (CcPolicyV2CcPrecisionPolicyPolicyArgs) ToCcPolicyV2CcPrecisionPolicyPolicyOutputWithContext

func (i CcPolicyV2CcPrecisionPolicyPolicyArgs) ToCcPolicyV2CcPrecisionPolicyPolicyOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionPolicyPolicyOutput

type CcPolicyV2CcPrecisionPolicyPolicyArray

type CcPolicyV2CcPrecisionPolicyPolicyArray []CcPolicyV2CcPrecisionPolicyPolicyInput

func (CcPolicyV2CcPrecisionPolicyPolicyArray) ElementType

func (CcPolicyV2CcPrecisionPolicyPolicyArray) ToCcPolicyV2CcPrecisionPolicyPolicyArrayOutput

func (i CcPolicyV2CcPrecisionPolicyPolicyArray) ToCcPolicyV2CcPrecisionPolicyPolicyArrayOutput() CcPolicyV2CcPrecisionPolicyPolicyArrayOutput

func (CcPolicyV2CcPrecisionPolicyPolicyArray) ToCcPolicyV2CcPrecisionPolicyPolicyArrayOutputWithContext

func (i CcPolicyV2CcPrecisionPolicyPolicyArray) ToCcPolicyV2CcPrecisionPolicyPolicyArrayOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionPolicyPolicyArrayOutput

type CcPolicyV2CcPrecisionPolicyPolicyArrayInput

type CcPolicyV2CcPrecisionPolicyPolicyArrayInput interface {
	pulumi.Input

	ToCcPolicyV2CcPrecisionPolicyPolicyArrayOutput() CcPolicyV2CcPrecisionPolicyPolicyArrayOutput
	ToCcPolicyV2CcPrecisionPolicyPolicyArrayOutputWithContext(context.Context) CcPolicyV2CcPrecisionPolicyPolicyArrayOutput
}

CcPolicyV2CcPrecisionPolicyPolicyArrayInput is an input type that accepts CcPolicyV2CcPrecisionPolicyPolicyArray and CcPolicyV2CcPrecisionPolicyPolicyArrayOutput values. You can construct a concrete instance of `CcPolicyV2CcPrecisionPolicyPolicyArrayInput` via:

CcPolicyV2CcPrecisionPolicyPolicyArray{ CcPolicyV2CcPrecisionPolicyPolicyArgs{...} }

type CcPolicyV2CcPrecisionPolicyPolicyArrayOutput

type CcPolicyV2CcPrecisionPolicyPolicyArrayOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcPrecisionPolicyPolicyArrayOutput) ElementType

func (CcPolicyV2CcPrecisionPolicyPolicyArrayOutput) Index

func (CcPolicyV2CcPrecisionPolicyPolicyArrayOutput) ToCcPolicyV2CcPrecisionPolicyPolicyArrayOutput

func (o CcPolicyV2CcPrecisionPolicyPolicyArrayOutput) ToCcPolicyV2CcPrecisionPolicyPolicyArrayOutput() CcPolicyV2CcPrecisionPolicyPolicyArrayOutput

func (CcPolicyV2CcPrecisionPolicyPolicyArrayOutput) ToCcPolicyV2CcPrecisionPolicyPolicyArrayOutputWithContext

func (o CcPolicyV2CcPrecisionPolicyPolicyArrayOutput) ToCcPolicyV2CcPrecisionPolicyPolicyArrayOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionPolicyPolicyArrayOutput

type CcPolicyV2CcPrecisionPolicyPolicyInput

type CcPolicyV2CcPrecisionPolicyPolicyInput interface {
	pulumi.Input

	ToCcPolicyV2CcPrecisionPolicyPolicyOutput() CcPolicyV2CcPrecisionPolicyPolicyOutput
	ToCcPolicyV2CcPrecisionPolicyPolicyOutputWithContext(context.Context) CcPolicyV2CcPrecisionPolicyPolicyOutput
}

CcPolicyV2CcPrecisionPolicyPolicyInput is an input type that accepts CcPolicyV2CcPrecisionPolicyPolicyArgs and CcPolicyV2CcPrecisionPolicyPolicyOutput values. You can construct a concrete instance of `CcPolicyV2CcPrecisionPolicyPolicyInput` via:

CcPolicyV2CcPrecisionPolicyPolicyArgs{...}

type CcPolicyV2CcPrecisionPolicyPolicyOutput

type CcPolicyV2CcPrecisionPolicyPolicyOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcPrecisionPolicyPolicyOutput) ElementType

func (CcPolicyV2CcPrecisionPolicyPolicyOutput) FieldName

Configuration item types, currently only support value.

func (CcPolicyV2CcPrecisionPolicyPolicyOutput) FieldType

Configuration fields with the desirable values cgi, ua, cookie, referer, accept, srcip.

func (CcPolicyV2CcPrecisionPolicyPolicyOutput) ToCcPolicyV2CcPrecisionPolicyPolicyOutput

func (o CcPolicyV2CcPrecisionPolicyPolicyOutput) ToCcPolicyV2CcPrecisionPolicyPolicyOutput() CcPolicyV2CcPrecisionPolicyPolicyOutput

func (CcPolicyV2CcPrecisionPolicyPolicyOutput) ToCcPolicyV2CcPrecisionPolicyPolicyOutputWithContext

func (o CcPolicyV2CcPrecisionPolicyPolicyOutput) ToCcPolicyV2CcPrecisionPolicyPolicyOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionPolicyPolicyOutput

func (CcPolicyV2CcPrecisionPolicyPolicyOutput) Value

Configure the value.

func (CcPolicyV2CcPrecisionPolicyPolicyOutput) ValueOperator

Configure the item-value comparison mode, which can be taken as the value of evaluate, not_equal, include.

type CcPolicyV2CcPrecisionReqLimit

type CcPolicyV2CcPrecisionReqLimit struct {
	// Domain.
	Domain     string  `pulumi:"domain"`
	InstanceId *string `pulumi:"instanceId"`
	// Ip address.
	Ip *string `pulumi:"ip"`
	// Protection rating, the optional value of default means default policy, loose means loose, and strict means strict.
	Level string `pulumi:"level"`
	// The CC Frequency Limit Policy Item field.
	Policys []CcPolicyV2CcPrecisionReqLimitPolicy `pulumi:"policys"`
	// Protocol, preferably HTTP, HTTPS.
	Protocol string `pulumi:"protocol"`
}

type CcPolicyV2CcPrecisionReqLimitArgs

type CcPolicyV2CcPrecisionReqLimitArgs struct {
	// Domain.
	Domain     pulumi.StringInput    `pulumi:"domain"`
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// Ip address.
	Ip pulumi.StringPtrInput `pulumi:"ip"`
	// Protection rating, the optional value of default means default policy, loose means loose, and strict means strict.
	Level pulumi.StringInput `pulumi:"level"`
	// The CC Frequency Limit Policy Item field.
	Policys CcPolicyV2CcPrecisionReqLimitPolicyArrayInput `pulumi:"policys"`
	// Protocol, preferably HTTP, HTTPS.
	Protocol pulumi.StringInput `pulumi:"protocol"`
}

func (CcPolicyV2CcPrecisionReqLimitArgs) ElementType

func (CcPolicyV2CcPrecisionReqLimitArgs) ToCcPolicyV2CcPrecisionReqLimitOutput

func (i CcPolicyV2CcPrecisionReqLimitArgs) ToCcPolicyV2CcPrecisionReqLimitOutput() CcPolicyV2CcPrecisionReqLimitOutput

func (CcPolicyV2CcPrecisionReqLimitArgs) ToCcPolicyV2CcPrecisionReqLimitOutputWithContext

func (i CcPolicyV2CcPrecisionReqLimitArgs) ToCcPolicyV2CcPrecisionReqLimitOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionReqLimitOutput

type CcPolicyV2CcPrecisionReqLimitArray

type CcPolicyV2CcPrecisionReqLimitArray []CcPolicyV2CcPrecisionReqLimitInput

func (CcPolicyV2CcPrecisionReqLimitArray) ElementType

func (CcPolicyV2CcPrecisionReqLimitArray) ToCcPolicyV2CcPrecisionReqLimitArrayOutput

func (i CcPolicyV2CcPrecisionReqLimitArray) ToCcPolicyV2CcPrecisionReqLimitArrayOutput() CcPolicyV2CcPrecisionReqLimitArrayOutput

func (CcPolicyV2CcPrecisionReqLimitArray) ToCcPolicyV2CcPrecisionReqLimitArrayOutputWithContext

func (i CcPolicyV2CcPrecisionReqLimitArray) ToCcPolicyV2CcPrecisionReqLimitArrayOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionReqLimitArrayOutput

type CcPolicyV2CcPrecisionReqLimitArrayInput

type CcPolicyV2CcPrecisionReqLimitArrayInput interface {
	pulumi.Input

	ToCcPolicyV2CcPrecisionReqLimitArrayOutput() CcPolicyV2CcPrecisionReqLimitArrayOutput
	ToCcPolicyV2CcPrecisionReqLimitArrayOutputWithContext(context.Context) CcPolicyV2CcPrecisionReqLimitArrayOutput
}

CcPolicyV2CcPrecisionReqLimitArrayInput is an input type that accepts CcPolicyV2CcPrecisionReqLimitArray and CcPolicyV2CcPrecisionReqLimitArrayOutput values. You can construct a concrete instance of `CcPolicyV2CcPrecisionReqLimitArrayInput` via:

CcPolicyV2CcPrecisionReqLimitArray{ CcPolicyV2CcPrecisionReqLimitArgs{...} }

type CcPolicyV2CcPrecisionReqLimitArrayOutput

type CcPolicyV2CcPrecisionReqLimitArrayOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcPrecisionReqLimitArrayOutput) ElementType

func (CcPolicyV2CcPrecisionReqLimitArrayOutput) Index

func (CcPolicyV2CcPrecisionReqLimitArrayOutput) ToCcPolicyV2CcPrecisionReqLimitArrayOutput

func (o CcPolicyV2CcPrecisionReqLimitArrayOutput) ToCcPolicyV2CcPrecisionReqLimitArrayOutput() CcPolicyV2CcPrecisionReqLimitArrayOutput

func (CcPolicyV2CcPrecisionReqLimitArrayOutput) ToCcPolicyV2CcPrecisionReqLimitArrayOutputWithContext

func (o CcPolicyV2CcPrecisionReqLimitArrayOutput) ToCcPolicyV2CcPrecisionReqLimitArrayOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionReqLimitArrayOutput

type CcPolicyV2CcPrecisionReqLimitInput

type CcPolicyV2CcPrecisionReqLimitInput interface {
	pulumi.Input

	ToCcPolicyV2CcPrecisionReqLimitOutput() CcPolicyV2CcPrecisionReqLimitOutput
	ToCcPolicyV2CcPrecisionReqLimitOutputWithContext(context.Context) CcPolicyV2CcPrecisionReqLimitOutput
}

CcPolicyV2CcPrecisionReqLimitInput is an input type that accepts CcPolicyV2CcPrecisionReqLimitArgs and CcPolicyV2CcPrecisionReqLimitOutput values. You can construct a concrete instance of `CcPolicyV2CcPrecisionReqLimitInput` via:

CcPolicyV2CcPrecisionReqLimitArgs{...}

type CcPolicyV2CcPrecisionReqLimitOutput

type CcPolicyV2CcPrecisionReqLimitOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcPrecisionReqLimitOutput) Domain

Domain.

func (CcPolicyV2CcPrecisionReqLimitOutput) ElementType

func (CcPolicyV2CcPrecisionReqLimitOutput) InstanceId

func (CcPolicyV2CcPrecisionReqLimitOutput) Ip

Ip address.

func (CcPolicyV2CcPrecisionReqLimitOutput) Level

Protection rating, the optional value of default means default policy, loose means loose, and strict means strict.

func (CcPolicyV2CcPrecisionReqLimitOutput) Policys

The CC Frequency Limit Policy Item field.

func (CcPolicyV2CcPrecisionReqLimitOutput) Protocol

Protocol, preferably HTTP, HTTPS.

func (CcPolicyV2CcPrecisionReqLimitOutput) ToCcPolicyV2CcPrecisionReqLimitOutput

func (o CcPolicyV2CcPrecisionReqLimitOutput) ToCcPolicyV2CcPrecisionReqLimitOutput() CcPolicyV2CcPrecisionReqLimitOutput

func (CcPolicyV2CcPrecisionReqLimitOutput) ToCcPolicyV2CcPrecisionReqLimitOutputWithContext

func (o CcPolicyV2CcPrecisionReqLimitOutput) ToCcPolicyV2CcPrecisionReqLimitOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionReqLimitOutput

type CcPolicyV2CcPrecisionReqLimitPolicy

type CcPolicyV2CcPrecisionReqLimitPolicy struct {
	// The frequency limit policy mode, the optional value of arg indicates the verification code, and drop indicates the discard.
	Action string `pulumi:"action"`
	// Cookies, one of the three policy entries can only be filled in.
	Cookie *string `pulumi:"cookie"`
	// The duration of the frequency limit policy can be taken from 1 to 86400 per second.
	ExecuteDuration int `pulumi:"executeDuration"`
	// The policy item is compared, and the optional value include indicates inclusion, and equal means equal.
	Mode string `pulumi:"mode"`
	// Statistical period, take values 1, 10, 30, 60, in seconds.
	Period int `pulumi:"period"`
	// The number of requests, the value is 1 to 20000.
	RequestNum int `pulumi:"requestNum"`
	// Uri, one of the three policy entries can only be filled in.
	Uri *string `pulumi:"uri"`
	// User-Agent, only one of the three policy entries can be filled in.
	UserAgent *string `pulumi:"userAgent"`
}

type CcPolicyV2CcPrecisionReqLimitPolicyArgs

type CcPolicyV2CcPrecisionReqLimitPolicyArgs struct {
	// The frequency limit policy mode, the optional value of arg indicates the verification code, and drop indicates the discard.
	Action pulumi.StringInput `pulumi:"action"`
	// Cookies, one of the three policy entries can only be filled in.
	Cookie pulumi.StringPtrInput `pulumi:"cookie"`
	// The duration of the frequency limit policy can be taken from 1 to 86400 per second.
	ExecuteDuration pulumi.IntInput `pulumi:"executeDuration"`
	// The policy item is compared, and the optional value include indicates inclusion, and equal means equal.
	Mode pulumi.StringInput `pulumi:"mode"`
	// Statistical period, take values 1, 10, 30, 60, in seconds.
	Period pulumi.IntInput `pulumi:"period"`
	// The number of requests, the value is 1 to 20000.
	RequestNum pulumi.IntInput `pulumi:"requestNum"`
	// Uri, one of the three policy entries can only be filled in.
	Uri pulumi.StringPtrInput `pulumi:"uri"`
	// User-Agent, only one of the three policy entries can be filled in.
	UserAgent pulumi.StringPtrInput `pulumi:"userAgent"`
}

func (CcPolicyV2CcPrecisionReqLimitPolicyArgs) ElementType

func (CcPolicyV2CcPrecisionReqLimitPolicyArgs) ToCcPolicyV2CcPrecisionReqLimitPolicyOutput

func (i CcPolicyV2CcPrecisionReqLimitPolicyArgs) ToCcPolicyV2CcPrecisionReqLimitPolicyOutput() CcPolicyV2CcPrecisionReqLimitPolicyOutput

func (CcPolicyV2CcPrecisionReqLimitPolicyArgs) ToCcPolicyV2CcPrecisionReqLimitPolicyOutputWithContext

func (i CcPolicyV2CcPrecisionReqLimitPolicyArgs) ToCcPolicyV2CcPrecisionReqLimitPolicyOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionReqLimitPolicyOutput

type CcPolicyV2CcPrecisionReqLimitPolicyArray

type CcPolicyV2CcPrecisionReqLimitPolicyArray []CcPolicyV2CcPrecisionReqLimitPolicyInput

func (CcPolicyV2CcPrecisionReqLimitPolicyArray) ElementType

func (CcPolicyV2CcPrecisionReqLimitPolicyArray) ToCcPolicyV2CcPrecisionReqLimitPolicyArrayOutput

func (i CcPolicyV2CcPrecisionReqLimitPolicyArray) ToCcPolicyV2CcPrecisionReqLimitPolicyArrayOutput() CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput

func (CcPolicyV2CcPrecisionReqLimitPolicyArray) ToCcPolicyV2CcPrecisionReqLimitPolicyArrayOutputWithContext

func (i CcPolicyV2CcPrecisionReqLimitPolicyArray) ToCcPolicyV2CcPrecisionReqLimitPolicyArrayOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput

type CcPolicyV2CcPrecisionReqLimitPolicyArrayInput

type CcPolicyV2CcPrecisionReqLimitPolicyArrayInput interface {
	pulumi.Input

	ToCcPolicyV2CcPrecisionReqLimitPolicyArrayOutput() CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput
	ToCcPolicyV2CcPrecisionReqLimitPolicyArrayOutputWithContext(context.Context) CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput
}

CcPolicyV2CcPrecisionReqLimitPolicyArrayInput is an input type that accepts CcPolicyV2CcPrecisionReqLimitPolicyArray and CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput values. You can construct a concrete instance of `CcPolicyV2CcPrecisionReqLimitPolicyArrayInput` via:

CcPolicyV2CcPrecisionReqLimitPolicyArray{ CcPolicyV2CcPrecisionReqLimitPolicyArgs{...} }

type CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput

type CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput) ElementType

func (CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput) Index

func (CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput) ToCcPolicyV2CcPrecisionReqLimitPolicyArrayOutput

func (o CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput) ToCcPolicyV2CcPrecisionReqLimitPolicyArrayOutput() CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput

func (CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput) ToCcPolicyV2CcPrecisionReqLimitPolicyArrayOutputWithContext

func (o CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput) ToCcPolicyV2CcPrecisionReqLimitPolicyArrayOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionReqLimitPolicyArrayOutput

type CcPolicyV2CcPrecisionReqLimitPolicyInput

type CcPolicyV2CcPrecisionReqLimitPolicyInput interface {
	pulumi.Input

	ToCcPolicyV2CcPrecisionReqLimitPolicyOutput() CcPolicyV2CcPrecisionReqLimitPolicyOutput
	ToCcPolicyV2CcPrecisionReqLimitPolicyOutputWithContext(context.Context) CcPolicyV2CcPrecisionReqLimitPolicyOutput
}

CcPolicyV2CcPrecisionReqLimitPolicyInput is an input type that accepts CcPolicyV2CcPrecisionReqLimitPolicyArgs and CcPolicyV2CcPrecisionReqLimitPolicyOutput values. You can construct a concrete instance of `CcPolicyV2CcPrecisionReqLimitPolicyInput` via:

CcPolicyV2CcPrecisionReqLimitPolicyArgs{...}

type CcPolicyV2CcPrecisionReqLimitPolicyOutput

type CcPolicyV2CcPrecisionReqLimitPolicyOutput struct{ *pulumi.OutputState }

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) Action

The frequency limit policy mode, the optional value of arg indicates the verification code, and drop indicates the discard.

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) Cookie

Cookies, one of the three policy entries can only be filled in.

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) ElementType

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) ExecuteDuration

The duration of the frequency limit policy can be taken from 1 to 86400 per second.

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) Mode

The policy item is compared, and the optional value include indicates inclusion, and equal means equal.

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) Period

Statistical period, take values 1, 10, 30, 60, in seconds.

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) RequestNum

The number of requests, the value is 1 to 20000.

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) ToCcPolicyV2CcPrecisionReqLimitPolicyOutput

func (o CcPolicyV2CcPrecisionReqLimitPolicyOutput) ToCcPolicyV2CcPrecisionReqLimitPolicyOutput() CcPolicyV2CcPrecisionReqLimitPolicyOutput

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) ToCcPolicyV2CcPrecisionReqLimitPolicyOutputWithContext

func (o CcPolicyV2CcPrecisionReqLimitPolicyOutput) ToCcPolicyV2CcPrecisionReqLimitPolicyOutputWithContext(ctx context.Context) CcPolicyV2CcPrecisionReqLimitPolicyOutput

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) Uri

Uri, one of the three policy entries can only be filled in.

func (CcPolicyV2CcPrecisionReqLimitPolicyOutput) UserAgent

User-Agent, only one of the three policy entries can be filled in.

type CcPolicyV2Input

type CcPolicyV2Input interface {
	pulumi.Input

	ToCcPolicyV2Output() CcPolicyV2Output
	ToCcPolicyV2OutputWithContext(ctx context.Context) CcPolicyV2Output
}

type CcPolicyV2Map

type CcPolicyV2Map map[string]CcPolicyV2Input

func (CcPolicyV2Map) ElementType

func (CcPolicyV2Map) ElementType() reflect.Type

func (CcPolicyV2Map) ToCcPolicyV2MapOutput

func (i CcPolicyV2Map) ToCcPolicyV2MapOutput() CcPolicyV2MapOutput

func (CcPolicyV2Map) ToCcPolicyV2MapOutputWithContext

func (i CcPolicyV2Map) ToCcPolicyV2MapOutputWithContext(ctx context.Context) CcPolicyV2MapOutput

type CcPolicyV2MapInput

type CcPolicyV2MapInput interface {
	pulumi.Input

	ToCcPolicyV2MapOutput() CcPolicyV2MapOutput
	ToCcPolicyV2MapOutputWithContext(context.Context) CcPolicyV2MapOutput
}

CcPolicyV2MapInput is an input type that accepts CcPolicyV2Map and CcPolicyV2MapOutput values. You can construct a concrete instance of `CcPolicyV2MapInput` via:

CcPolicyV2Map{ "key": CcPolicyV2Args{...} }

type CcPolicyV2MapOutput

type CcPolicyV2MapOutput struct{ *pulumi.OutputState }

func (CcPolicyV2MapOutput) ElementType

func (CcPolicyV2MapOutput) ElementType() reflect.Type

func (CcPolicyV2MapOutput) MapIndex

func (CcPolicyV2MapOutput) ToCcPolicyV2MapOutput

func (o CcPolicyV2MapOutput) ToCcPolicyV2MapOutput() CcPolicyV2MapOutput

func (CcPolicyV2MapOutput) ToCcPolicyV2MapOutputWithContext

func (o CcPolicyV2MapOutput) ToCcPolicyV2MapOutputWithContext(ctx context.Context) CcPolicyV2MapOutput

type CcPolicyV2Output

type CcPolicyV2Output struct{ *pulumi.OutputState }

func (CcPolicyV2Output) Business

func (o CcPolicyV2Output) Business() pulumi.StringOutput

Business of resource instance. bgpip indicates anti-anti-ip ip; bgp means exclusive package; bgp-multip means shared packet; net indicates anti-anti-ip pro version.

func (CcPolicyV2Output) CcBlackWhiteIps

Blacklist and whitelist.

func (CcPolicyV2Output) CcGeoIpPolicys

Details of the CC region blocking policy list.

func (CcPolicyV2Output) CcPrecisionPolicys

CC Precision Protection List.

func (CcPolicyV2Output) CcPrecisionReqLimits

CC frequency throttling policy.

func (CcPolicyV2Output) ElementType

func (CcPolicyV2Output) ElementType() reflect.Type

func (CcPolicyV2Output) ResourceId

func (o CcPolicyV2Output) ResourceId() pulumi.StringOutput

The ID of the resource instance.

func (CcPolicyV2Output) Thresholds

List of protection threshold configurations.

func (CcPolicyV2Output) ToCcPolicyV2Output

func (o CcPolicyV2Output) ToCcPolicyV2Output() CcPolicyV2Output

func (CcPolicyV2Output) ToCcPolicyV2OutputWithContext

func (o CcPolicyV2Output) ToCcPolicyV2OutputWithContext(ctx context.Context) CcPolicyV2Output

type CcPolicyV2State

type CcPolicyV2State struct {
	// Business of resource instance. bgpip indicates anti-anti-ip ip; bgp means exclusive package; bgp-multip means shared packet; net indicates anti-anti-ip pro version.
	Business pulumi.StringPtrInput
	// Blacklist and whitelist.
	CcBlackWhiteIps CcPolicyV2CcBlackWhiteIpArrayInput
	// Details of the CC region blocking policy list.
	CcGeoIpPolicys CcPolicyV2CcGeoIpPolicyArrayInput
	// CC Precision Protection List.
	CcPrecisionPolicys CcPolicyV2CcPrecisionPolicyArrayInput
	// CC frequency throttling policy.
	CcPrecisionReqLimits CcPolicyV2CcPrecisionReqLimitArrayInput
	// The ID of the resource instance.
	ResourceId pulumi.StringPtrInput
	// List of protection threshold configurations.
	Thresholds CcPolicyV2ThresholdArrayInput
}

func (CcPolicyV2State) ElementType

func (CcPolicyV2State) ElementType() reflect.Type

type CcPolicyV2Threshold

type CcPolicyV2Threshold struct {
	// domain.
	Domain string `pulumi:"domain"`
	// Cleaning threshold, -1 indicates that the `default` mode is turned on.
	Threshold int `pulumi:"threshold"`
}

type CcPolicyV2ThresholdArgs

type CcPolicyV2ThresholdArgs struct {
	// domain.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Cleaning threshold, -1 indicates that the `default` mode is turned on.
	Threshold pulumi.IntInput `pulumi:"threshold"`
}

func (CcPolicyV2ThresholdArgs) ElementType

func (CcPolicyV2ThresholdArgs) ElementType() reflect.Type

func (CcPolicyV2ThresholdArgs) ToCcPolicyV2ThresholdOutput

func (i CcPolicyV2ThresholdArgs) ToCcPolicyV2ThresholdOutput() CcPolicyV2ThresholdOutput

func (CcPolicyV2ThresholdArgs) ToCcPolicyV2ThresholdOutputWithContext

func (i CcPolicyV2ThresholdArgs) ToCcPolicyV2ThresholdOutputWithContext(ctx context.Context) CcPolicyV2ThresholdOutput

type CcPolicyV2ThresholdArray

type CcPolicyV2ThresholdArray []CcPolicyV2ThresholdInput

func (CcPolicyV2ThresholdArray) ElementType

func (CcPolicyV2ThresholdArray) ElementType() reflect.Type

func (CcPolicyV2ThresholdArray) ToCcPolicyV2ThresholdArrayOutput

func (i CcPolicyV2ThresholdArray) ToCcPolicyV2ThresholdArrayOutput() CcPolicyV2ThresholdArrayOutput

func (CcPolicyV2ThresholdArray) ToCcPolicyV2ThresholdArrayOutputWithContext

func (i CcPolicyV2ThresholdArray) ToCcPolicyV2ThresholdArrayOutputWithContext(ctx context.Context) CcPolicyV2ThresholdArrayOutput

type CcPolicyV2ThresholdArrayInput

type CcPolicyV2ThresholdArrayInput interface {
	pulumi.Input

	ToCcPolicyV2ThresholdArrayOutput() CcPolicyV2ThresholdArrayOutput
	ToCcPolicyV2ThresholdArrayOutputWithContext(context.Context) CcPolicyV2ThresholdArrayOutput
}

CcPolicyV2ThresholdArrayInput is an input type that accepts CcPolicyV2ThresholdArray and CcPolicyV2ThresholdArrayOutput values. You can construct a concrete instance of `CcPolicyV2ThresholdArrayInput` via:

CcPolicyV2ThresholdArray{ CcPolicyV2ThresholdArgs{...} }

type CcPolicyV2ThresholdArrayOutput

type CcPolicyV2ThresholdArrayOutput struct{ *pulumi.OutputState }

func (CcPolicyV2ThresholdArrayOutput) ElementType

func (CcPolicyV2ThresholdArrayOutput) Index

func (CcPolicyV2ThresholdArrayOutput) ToCcPolicyV2ThresholdArrayOutput

func (o CcPolicyV2ThresholdArrayOutput) ToCcPolicyV2ThresholdArrayOutput() CcPolicyV2ThresholdArrayOutput

func (CcPolicyV2ThresholdArrayOutput) ToCcPolicyV2ThresholdArrayOutputWithContext

func (o CcPolicyV2ThresholdArrayOutput) ToCcPolicyV2ThresholdArrayOutputWithContext(ctx context.Context) CcPolicyV2ThresholdArrayOutput

type CcPolicyV2ThresholdInput

type CcPolicyV2ThresholdInput interface {
	pulumi.Input

	ToCcPolicyV2ThresholdOutput() CcPolicyV2ThresholdOutput
	ToCcPolicyV2ThresholdOutputWithContext(context.Context) CcPolicyV2ThresholdOutput
}

CcPolicyV2ThresholdInput is an input type that accepts CcPolicyV2ThresholdArgs and CcPolicyV2ThresholdOutput values. You can construct a concrete instance of `CcPolicyV2ThresholdInput` via:

CcPolicyV2ThresholdArgs{...}

type CcPolicyV2ThresholdOutput

type CcPolicyV2ThresholdOutput struct{ *pulumi.OutputState }

func (CcPolicyV2ThresholdOutput) Domain

domain.

func (CcPolicyV2ThresholdOutput) ElementType

func (CcPolicyV2ThresholdOutput) ElementType() reflect.Type

func (CcPolicyV2ThresholdOutput) Threshold

Cleaning threshold, -1 indicates that the `default` mode is turned on.

func (CcPolicyV2ThresholdOutput) ToCcPolicyV2ThresholdOutput

func (o CcPolicyV2ThresholdOutput) ToCcPolicyV2ThresholdOutput() CcPolicyV2ThresholdOutput

func (CcPolicyV2ThresholdOutput) ToCcPolicyV2ThresholdOutputWithContext

func (o CcPolicyV2ThresholdOutput) ToCcPolicyV2ThresholdOutputWithContext(ctx context.Context) CcPolicyV2ThresholdOutput

type DdosIpAttachmentV2 added in v0.1.3

type DdosIpAttachmentV2 struct {
	pulumi.CustomResourceState

	// Anti-DDoS instance ID.
	BgpInstanceId pulumi.StringOutput `pulumi:"bgpInstanceId"`
	// 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.
	BoundIpLists DdosIpAttachmentV2BoundIpListArrayOutput `pulumi:"boundIpLists"`
}

Provides a resource to create a antiddos ip. Only support for bgp-multip.

func GetDdosIpAttachmentV2 added in v0.1.3

func GetDdosIpAttachmentV2(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DdosIpAttachmentV2State, opts ...pulumi.ResourceOption) (*DdosIpAttachmentV2, error)

GetDdosIpAttachmentV2 gets an existing DdosIpAttachmentV2 resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDdosIpAttachmentV2 added in v0.1.3

func NewDdosIpAttachmentV2(ctx *pulumi.Context,
	name string, args *DdosIpAttachmentV2Args, opts ...pulumi.ResourceOption) (*DdosIpAttachmentV2, error)

NewDdosIpAttachmentV2 registers a new resource with the given unique name, arguments, and options.

func (*DdosIpAttachmentV2) ElementType added in v0.1.3

func (*DdosIpAttachmentV2) ElementType() reflect.Type

func (*DdosIpAttachmentV2) ToDdosIpAttachmentV2Output added in v0.1.3

func (i *DdosIpAttachmentV2) ToDdosIpAttachmentV2Output() DdosIpAttachmentV2Output

func (*DdosIpAttachmentV2) ToDdosIpAttachmentV2OutputWithContext added in v0.1.3

func (i *DdosIpAttachmentV2) ToDdosIpAttachmentV2OutputWithContext(ctx context.Context) DdosIpAttachmentV2Output

type DdosIpAttachmentV2Args added in v0.1.3

type DdosIpAttachmentV2Args struct {
	// Anti-DDoS instance ID.
	BgpInstanceId pulumi.StringInput
	// 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.
	BoundIpLists DdosIpAttachmentV2BoundIpListArrayInput
}

The set of arguments for constructing a DdosIpAttachmentV2 resource.

func (DdosIpAttachmentV2Args) ElementType added in v0.1.3

func (DdosIpAttachmentV2Args) ElementType() reflect.Type

type DdosIpAttachmentV2Array added in v0.1.3

type DdosIpAttachmentV2Array []DdosIpAttachmentV2Input

func (DdosIpAttachmentV2Array) ElementType added in v0.1.3

func (DdosIpAttachmentV2Array) ElementType() reflect.Type

func (DdosIpAttachmentV2Array) ToDdosIpAttachmentV2ArrayOutput added in v0.1.3

func (i DdosIpAttachmentV2Array) ToDdosIpAttachmentV2ArrayOutput() DdosIpAttachmentV2ArrayOutput

func (DdosIpAttachmentV2Array) ToDdosIpAttachmentV2ArrayOutputWithContext added in v0.1.3

func (i DdosIpAttachmentV2Array) ToDdosIpAttachmentV2ArrayOutputWithContext(ctx context.Context) DdosIpAttachmentV2ArrayOutput

type DdosIpAttachmentV2ArrayInput added in v0.1.3

type DdosIpAttachmentV2ArrayInput interface {
	pulumi.Input

	ToDdosIpAttachmentV2ArrayOutput() DdosIpAttachmentV2ArrayOutput
	ToDdosIpAttachmentV2ArrayOutputWithContext(context.Context) DdosIpAttachmentV2ArrayOutput
}

DdosIpAttachmentV2ArrayInput is an input type that accepts DdosIpAttachmentV2Array and DdosIpAttachmentV2ArrayOutput values. You can construct a concrete instance of `DdosIpAttachmentV2ArrayInput` via:

DdosIpAttachmentV2Array{ DdosIpAttachmentV2Args{...} }

type DdosIpAttachmentV2ArrayOutput added in v0.1.3

type DdosIpAttachmentV2ArrayOutput struct{ *pulumi.OutputState }

func (DdosIpAttachmentV2ArrayOutput) ElementType added in v0.1.3

func (DdosIpAttachmentV2ArrayOutput) Index added in v0.1.3

func (DdosIpAttachmentV2ArrayOutput) ToDdosIpAttachmentV2ArrayOutput added in v0.1.3

func (o DdosIpAttachmentV2ArrayOutput) ToDdosIpAttachmentV2ArrayOutput() DdosIpAttachmentV2ArrayOutput

func (DdosIpAttachmentV2ArrayOutput) ToDdosIpAttachmentV2ArrayOutputWithContext added in v0.1.3

func (o DdosIpAttachmentV2ArrayOutput) ToDdosIpAttachmentV2ArrayOutputWithContext(ctx context.Context) DdosIpAttachmentV2ArrayOutput

type DdosIpAttachmentV2BoundIpList added in v0.1.3

type DdosIpAttachmentV2BoundIpList struct {
	// 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.
	BizType *string `pulumi:"bizType"`
	// 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.
	DeviceType *string `pulumi:"deviceType"`
	// 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.
	InstanceId *string `pulumi:"instanceId"`
	// IP address.
	Ip string `pulumi:"ip"`
}

type DdosIpAttachmentV2BoundIpListArgs added in v0.1.3

type DdosIpAttachmentV2BoundIpListArgs struct {
	// 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.
	BizType pulumi.StringPtrInput `pulumi:"bizType"`
	// 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.
	DeviceType pulumi.StringPtrInput `pulumi:"deviceType"`
	// 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.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// IP address.
	Ip pulumi.StringInput `pulumi:"ip"`
}

func (DdosIpAttachmentV2BoundIpListArgs) ElementType added in v0.1.3

func (DdosIpAttachmentV2BoundIpListArgs) ToDdosIpAttachmentV2BoundIpListOutput added in v0.1.3

func (i DdosIpAttachmentV2BoundIpListArgs) ToDdosIpAttachmentV2BoundIpListOutput() DdosIpAttachmentV2BoundIpListOutput

func (DdosIpAttachmentV2BoundIpListArgs) ToDdosIpAttachmentV2BoundIpListOutputWithContext added in v0.1.3

func (i DdosIpAttachmentV2BoundIpListArgs) ToDdosIpAttachmentV2BoundIpListOutputWithContext(ctx context.Context) DdosIpAttachmentV2BoundIpListOutput

type DdosIpAttachmentV2BoundIpListArray added in v0.1.3

type DdosIpAttachmentV2BoundIpListArray []DdosIpAttachmentV2BoundIpListInput

func (DdosIpAttachmentV2BoundIpListArray) ElementType added in v0.1.3

func (DdosIpAttachmentV2BoundIpListArray) ToDdosIpAttachmentV2BoundIpListArrayOutput added in v0.1.3

func (i DdosIpAttachmentV2BoundIpListArray) ToDdosIpAttachmentV2BoundIpListArrayOutput() DdosIpAttachmentV2BoundIpListArrayOutput

func (DdosIpAttachmentV2BoundIpListArray) ToDdosIpAttachmentV2BoundIpListArrayOutputWithContext added in v0.1.3

func (i DdosIpAttachmentV2BoundIpListArray) ToDdosIpAttachmentV2BoundIpListArrayOutputWithContext(ctx context.Context) DdosIpAttachmentV2BoundIpListArrayOutput

type DdosIpAttachmentV2BoundIpListArrayInput added in v0.1.3

type DdosIpAttachmentV2BoundIpListArrayInput interface {
	pulumi.Input

	ToDdosIpAttachmentV2BoundIpListArrayOutput() DdosIpAttachmentV2BoundIpListArrayOutput
	ToDdosIpAttachmentV2BoundIpListArrayOutputWithContext(context.Context) DdosIpAttachmentV2BoundIpListArrayOutput
}

DdosIpAttachmentV2BoundIpListArrayInput is an input type that accepts DdosIpAttachmentV2BoundIpListArray and DdosIpAttachmentV2BoundIpListArrayOutput values. You can construct a concrete instance of `DdosIpAttachmentV2BoundIpListArrayInput` via:

DdosIpAttachmentV2BoundIpListArray{ DdosIpAttachmentV2BoundIpListArgs{...} }

type DdosIpAttachmentV2BoundIpListArrayOutput added in v0.1.3

type DdosIpAttachmentV2BoundIpListArrayOutput struct{ *pulumi.OutputState }

func (DdosIpAttachmentV2BoundIpListArrayOutput) ElementType added in v0.1.3

func (DdosIpAttachmentV2BoundIpListArrayOutput) Index added in v0.1.3

func (DdosIpAttachmentV2BoundIpListArrayOutput) ToDdosIpAttachmentV2BoundIpListArrayOutput added in v0.1.3

func (o DdosIpAttachmentV2BoundIpListArrayOutput) ToDdosIpAttachmentV2BoundIpListArrayOutput() DdosIpAttachmentV2BoundIpListArrayOutput

func (DdosIpAttachmentV2BoundIpListArrayOutput) ToDdosIpAttachmentV2BoundIpListArrayOutputWithContext added in v0.1.3

func (o DdosIpAttachmentV2BoundIpListArrayOutput) ToDdosIpAttachmentV2BoundIpListArrayOutputWithContext(ctx context.Context) DdosIpAttachmentV2BoundIpListArrayOutput

type DdosIpAttachmentV2BoundIpListInput added in v0.1.3

type DdosIpAttachmentV2BoundIpListInput interface {
	pulumi.Input

	ToDdosIpAttachmentV2BoundIpListOutput() DdosIpAttachmentV2BoundIpListOutput
	ToDdosIpAttachmentV2BoundIpListOutputWithContext(context.Context) DdosIpAttachmentV2BoundIpListOutput
}

DdosIpAttachmentV2BoundIpListInput is an input type that accepts DdosIpAttachmentV2BoundIpListArgs and DdosIpAttachmentV2BoundIpListOutput values. You can construct a concrete instance of `DdosIpAttachmentV2BoundIpListInput` via:

DdosIpAttachmentV2BoundIpListArgs{...}

type DdosIpAttachmentV2BoundIpListOutput added in v0.1.3

type DdosIpAttachmentV2BoundIpListOutput struct{ *pulumi.OutputState }

func (DdosIpAttachmentV2BoundIpListOutput) BizType added in v0.1.3

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.

func (DdosIpAttachmentV2BoundIpListOutput) DeviceType added in v0.1.3

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.

func (DdosIpAttachmentV2BoundIpListOutput) ElementType added in v0.1.3

func (DdosIpAttachmentV2BoundIpListOutput) InstanceId added in v0.1.3

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.

func (DdosIpAttachmentV2BoundIpListOutput) Ip added in v0.1.3

IP address.

func (DdosIpAttachmentV2BoundIpListOutput) ToDdosIpAttachmentV2BoundIpListOutput added in v0.1.3

func (o DdosIpAttachmentV2BoundIpListOutput) ToDdosIpAttachmentV2BoundIpListOutput() DdosIpAttachmentV2BoundIpListOutput

func (DdosIpAttachmentV2BoundIpListOutput) ToDdosIpAttachmentV2BoundIpListOutputWithContext added in v0.1.3

func (o DdosIpAttachmentV2BoundIpListOutput) ToDdosIpAttachmentV2BoundIpListOutputWithContext(ctx context.Context) DdosIpAttachmentV2BoundIpListOutput

type DdosIpAttachmentV2Input added in v0.1.3

type DdosIpAttachmentV2Input interface {
	pulumi.Input

	ToDdosIpAttachmentV2Output() DdosIpAttachmentV2Output
	ToDdosIpAttachmentV2OutputWithContext(ctx context.Context) DdosIpAttachmentV2Output
}

type DdosIpAttachmentV2Map added in v0.1.3

type DdosIpAttachmentV2Map map[string]DdosIpAttachmentV2Input

func (DdosIpAttachmentV2Map) ElementType added in v0.1.3

func (DdosIpAttachmentV2Map) ElementType() reflect.Type

func (DdosIpAttachmentV2Map) ToDdosIpAttachmentV2MapOutput added in v0.1.3

func (i DdosIpAttachmentV2Map) ToDdosIpAttachmentV2MapOutput() DdosIpAttachmentV2MapOutput

func (DdosIpAttachmentV2Map) ToDdosIpAttachmentV2MapOutputWithContext added in v0.1.3

func (i DdosIpAttachmentV2Map) ToDdosIpAttachmentV2MapOutputWithContext(ctx context.Context) DdosIpAttachmentV2MapOutput

type DdosIpAttachmentV2MapInput added in v0.1.3

type DdosIpAttachmentV2MapInput interface {
	pulumi.Input

	ToDdosIpAttachmentV2MapOutput() DdosIpAttachmentV2MapOutput
	ToDdosIpAttachmentV2MapOutputWithContext(context.Context) DdosIpAttachmentV2MapOutput
}

DdosIpAttachmentV2MapInput is an input type that accepts DdosIpAttachmentV2Map and DdosIpAttachmentV2MapOutput values. You can construct a concrete instance of `DdosIpAttachmentV2MapInput` via:

DdosIpAttachmentV2Map{ "key": DdosIpAttachmentV2Args{...} }

type DdosIpAttachmentV2MapOutput added in v0.1.3

type DdosIpAttachmentV2MapOutput struct{ *pulumi.OutputState }

func (DdosIpAttachmentV2MapOutput) ElementType added in v0.1.3

func (DdosIpAttachmentV2MapOutput) MapIndex added in v0.1.3

func (DdosIpAttachmentV2MapOutput) ToDdosIpAttachmentV2MapOutput added in v0.1.3

func (o DdosIpAttachmentV2MapOutput) ToDdosIpAttachmentV2MapOutput() DdosIpAttachmentV2MapOutput

func (DdosIpAttachmentV2MapOutput) ToDdosIpAttachmentV2MapOutputWithContext added in v0.1.3

func (o DdosIpAttachmentV2MapOutput) ToDdosIpAttachmentV2MapOutputWithContext(ctx context.Context) DdosIpAttachmentV2MapOutput

type DdosIpAttachmentV2Output added in v0.1.3

type DdosIpAttachmentV2Output struct{ *pulumi.OutputState }

func (DdosIpAttachmentV2Output) BgpInstanceId added in v0.1.3

func (o DdosIpAttachmentV2Output) BgpInstanceId() pulumi.StringOutput

Anti-DDoS instance ID.

func (DdosIpAttachmentV2Output) BoundIpLists added in v0.1.3

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.

func (DdosIpAttachmentV2Output) ElementType added in v0.1.3

func (DdosIpAttachmentV2Output) ElementType() reflect.Type

func (DdosIpAttachmentV2Output) ToDdosIpAttachmentV2Output added in v0.1.3

func (o DdosIpAttachmentV2Output) ToDdosIpAttachmentV2Output() DdosIpAttachmentV2Output

func (DdosIpAttachmentV2Output) ToDdosIpAttachmentV2OutputWithContext added in v0.1.3

func (o DdosIpAttachmentV2Output) ToDdosIpAttachmentV2OutputWithContext(ctx context.Context) DdosIpAttachmentV2Output

type DdosIpAttachmentV2State added in v0.1.3

type DdosIpAttachmentV2State struct {
	// Anti-DDoS instance ID.
	BgpInstanceId pulumi.StringPtrInput
	// 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.
	BoundIpLists DdosIpAttachmentV2BoundIpListArrayInput
}

func (DdosIpAttachmentV2State) ElementType added in v0.1.3

func (DdosIpAttachmentV2State) ElementType() reflect.Type

type DdosPolicy

type DdosPolicy struct {
	pulumi.CustomResourceState

	// Black IP list.
	BlackIps pulumi.StringArrayOutput `pulumi:"blackIps"`
	// Create time of the DDoS policy.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Option list of abnormal check of the DDos policy, should set at least one policy.
	DropOptions DdosPolicyDropOptionArrayOutput `pulumi:"dropOptions"`
	// Name of the DDoS policy. Length should between 1 and 32.
	Name pulumi.StringOutput `pulumi:"name"`
	// Message filter options list.
	PacketFilters DdosPolicyPacketFilterArrayOutput `pulumi:"packetFilters"`
	// Id of policy.
	PolicyId pulumi.StringOutput `pulumi:"policyId"`
	// Port limits of abnormal check of the DDos policy.
	PortFilters DdosPolicyPortFilterArrayOutput `pulumi:"portFilters"`
	// Type of the resource that the DDoS policy works for. Valid values: `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// Id of policy case that the DDoS policy works for.
	SceneId pulumi.StringOutput `pulumi:"sceneId"`
	// Watermark policy options, and only support one watermark policy at most.
	WatermarkFilters DdosPolicyWatermarkFilterArrayOutput `pulumi:"watermarkFilters"`
	// Watermark content.
	WatermarkKeys DdosPolicyWatermarkKeyArrayOutput `pulumi:"watermarkKeys"`
	// White IP list.
	WhiteIps pulumi.StringArrayOutput `pulumi:"whiteIps"`
}

Use this resource to create dayu DDoS policy

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewDdosPolicy(ctx, "testPolicy", &Dayu.DdosPolicyArgs{
			BlackIps: pulumi.StringArray{
				pulumi.String("1.1.1.1"),
			},
			DropOptions: dayu.DdosPolicyDropOptionArray{
				&dayu.DdosPolicyDropOptionArgs{
					BadConnThreshold: pulumi.Int(100),
					CheckSyncConn:    pulumi.Bool(true),
					ConnTimeout:      pulumi.Int(500),
					DConnLimit:       pulumi.Int(100),
					DNewLimit:        pulumi.Int(100),
					DropAbroad:       pulumi.Bool(true),
					DropIcmp:         pulumi.Bool(true),
					DropOther:        pulumi.Bool(true),
					DropTcp:          pulumi.Bool(true),
					DropUdp:          pulumi.Bool(true),
					IcmpMbpsLimit:    pulumi.Int(100),
					NullConnEnable:   pulumi.Bool(true),
					OtherMbpsLimit:   pulumi.Int(100),
					SConnLimit:       pulumi.Int(100),
					SNewLimit:        pulumi.Int(100),
					SynLimit:         pulumi.Int(100),
					SynRate:          pulumi.Int(50),
					TcpMbpsLimit:     pulumi.Int(100),
					UdpMbpsLimit:     pulumi.Int(100),
				},
			},
			PacketFilters: dayu.DdosPolicyPacketFilterArray{
				&dayu.DdosPolicyPacketFilterArgs{
					Action:       pulumi.String("drop"),
					DEndPort:     pulumi.Int(1500),
					DStartPort:   pulumi.Int(1000),
					Depth:        pulumi.Int(1000),
					IsInclude:    pulumi.Bool(true),
					MatchBegin:   pulumi.String("begin_l5"),
					MatchType:    pulumi.String("pcre"),
					Offset:       pulumi.Int(500),
					PktLengthMax: pulumi.Int(1400),
					PktLengthMin: pulumi.Int(1000),
					Protocol:     pulumi.String("tcp"),
					SEndPort:     pulumi.Int(2500),
					SStartPort:   pulumi.Int(2000),
				},
			},
			PortFilters: dayu.DdosPolicyPortFilterArray{
				&dayu.DdosPolicyPortFilterArgs{
					Action:    pulumi.String("drop"),
					EndPort:   pulumi.Int(2500),
					Kind:      pulumi.Int(1),
					Protocol:  pulumi.String("all"),
					StartPort: pulumi.Int(2000),
				},
			},
			ResourceType: pulumi.String("bgpip"),
			WatermarkFilters: dayu.DdosPolicyWatermarkFilterArray{
				&dayu.DdosPolicyWatermarkFilterArgs{
					AutoRemove: pulumi.Bool(true),
					Offset:     pulumi.Int(50),
					OpenSwitch: pulumi.Bool(true),
					TcpPortLists: pulumi.StringArray{
						pulumi.String("2000-3000"),
						pulumi.String("3500-4000"),
					},
					UdpPortLists: pulumi.StringArray{
						pulumi.String("5000-6000"),
					},
				},
			},
			WhiteIps: pulumi.StringArray{
				pulumi.String("2.2.2.2"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetDdosPolicy

func GetDdosPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DdosPolicyState, opts ...pulumi.ResourceOption) (*DdosPolicy, error)

GetDdosPolicy gets an existing DdosPolicy resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDdosPolicy

func NewDdosPolicy(ctx *pulumi.Context,
	name string, args *DdosPolicyArgs, opts ...pulumi.ResourceOption) (*DdosPolicy, error)

NewDdosPolicy registers a new resource with the given unique name, arguments, and options.

func (*DdosPolicy) ElementType

func (*DdosPolicy) ElementType() reflect.Type

func (*DdosPolicy) ToDdosPolicyOutput

func (i *DdosPolicy) ToDdosPolicyOutput() DdosPolicyOutput

func (*DdosPolicy) ToDdosPolicyOutputWithContext

func (i *DdosPolicy) ToDdosPolicyOutputWithContext(ctx context.Context) DdosPolicyOutput

type DdosPolicyArgs

type DdosPolicyArgs struct {
	// Black IP list.
	BlackIps pulumi.StringArrayInput
	// Option list of abnormal check of the DDos policy, should set at least one policy.
	DropOptions DdosPolicyDropOptionArrayInput
	// Name of the DDoS policy. Length should between 1 and 32.
	Name pulumi.StringPtrInput
	// Message filter options list.
	PacketFilters DdosPolicyPacketFilterArrayInput
	// Port limits of abnormal check of the DDos policy.
	PortFilters DdosPolicyPortFilterArrayInput
	// Type of the resource that the DDoS policy works for. Valid values: `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringInput
	// Watermark policy options, and only support one watermark policy at most.
	WatermarkFilters DdosPolicyWatermarkFilterArrayInput
	// White IP list.
	WhiteIps pulumi.StringArrayInput
}

The set of arguments for constructing a DdosPolicy resource.

func (DdosPolicyArgs) ElementType

func (DdosPolicyArgs) ElementType() reflect.Type

type DdosPolicyArray

type DdosPolicyArray []DdosPolicyInput

func (DdosPolicyArray) ElementType

func (DdosPolicyArray) ElementType() reflect.Type

func (DdosPolicyArray) ToDdosPolicyArrayOutput

func (i DdosPolicyArray) ToDdosPolicyArrayOutput() DdosPolicyArrayOutput

func (DdosPolicyArray) ToDdosPolicyArrayOutputWithContext

func (i DdosPolicyArray) ToDdosPolicyArrayOutputWithContext(ctx context.Context) DdosPolicyArrayOutput

type DdosPolicyArrayInput

type DdosPolicyArrayInput interface {
	pulumi.Input

	ToDdosPolicyArrayOutput() DdosPolicyArrayOutput
	ToDdosPolicyArrayOutputWithContext(context.Context) DdosPolicyArrayOutput
}

DdosPolicyArrayInput is an input type that accepts DdosPolicyArray and DdosPolicyArrayOutput values. You can construct a concrete instance of `DdosPolicyArrayInput` via:

DdosPolicyArray{ DdosPolicyArgs{...} }

type DdosPolicyArrayOutput

type DdosPolicyArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyArrayOutput) ElementType

func (DdosPolicyArrayOutput) ElementType() reflect.Type

func (DdosPolicyArrayOutput) Index

func (DdosPolicyArrayOutput) ToDdosPolicyArrayOutput

func (o DdosPolicyArrayOutput) ToDdosPolicyArrayOutput() DdosPolicyArrayOutput

func (DdosPolicyArrayOutput) ToDdosPolicyArrayOutputWithContext

func (o DdosPolicyArrayOutput) ToDdosPolicyArrayOutputWithContext(ctx context.Context) DdosPolicyArrayOutput

type DdosPolicyAttachment

type DdosPolicyAttachment struct {
	pulumi.CustomResourceState

	// ID of the policy.
	PolicyId pulumi.StringOutput `pulumi:"policyId"`
	// ID of the attached resource.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// Type of the resource that the DDoS policy works for. Valid values are `bgpip`, `bgp`, `bgp-multip`, `net`.
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
}

Provides a resource to create a dayu DDoS policy attachment.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewDdosPolicyAttachment(ctx, "dayuDdosPolicyAttachmentBasic", &Dayu.DdosPolicyAttachmentArgs{
			ResourceType: pulumi.Any(tencentcloud_dayu_ddos_policy.Test_policy.Resource_type),
			ResourceId:   pulumi.String("bgpip-00000294"),
			PolicyId:     pulumi.Any(tencentcloud_dayu_ddos_policy.Test_policy.Policy_id),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetDdosPolicyAttachment

func GetDdosPolicyAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DdosPolicyAttachmentState, opts ...pulumi.ResourceOption) (*DdosPolicyAttachment, error)

GetDdosPolicyAttachment gets an existing DdosPolicyAttachment resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDdosPolicyAttachment

func NewDdosPolicyAttachment(ctx *pulumi.Context,
	name string, args *DdosPolicyAttachmentArgs, opts ...pulumi.ResourceOption) (*DdosPolicyAttachment, error)

NewDdosPolicyAttachment registers a new resource with the given unique name, arguments, and options.

func (*DdosPolicyAttachment) ElementType

func (*DdosPolicyAttachment) ElementType() reflect.Type

func (*DdosPolicyAttachment) ToDdosPolicyAttachmentOutput

func (i *DdosPolicyAttachment) ToDdosPolicyAttachmentOutput() DdosPolicyAttachmentOutput

func (*DdosPolicyAttachment) ToDdosPolicyAttachmentOutputWithContext

func (i *DdosPolicyAttachment) ToDdosPolicyAttachmentOutputWithContext(ctx context.Context) DdosPolicyAttachmentOutput

type DdosPolicyAttachmentArgs

type DdosPolicyAttachmentArgs struct {
	// ID of the policy.
	PolicyId pulumi.StringInput
	// ID of the attached resource.
	ResourceId pulumi.StringInput
	// Type of the resource that the DDoS policy works for. Valid values are `bgpip`, `bgp`, `bgp-multip`, `net`.
	ResourceType pulumi.StringInput
}

The set of arguments for constructing a DdosPolicyAttachment resource.

func (DdosPolicyAttachmentArgs) ElementType

func (DdosPolicyAttachmentArgs) ElementType() reflect.Type

type DdosPolicyAttachmentArray

type DdosPolicyAttachmentArray []DdosPolicyAttachmentInput

func (DdosPolicyAttachmentArray) ElementType

func (DdosPolicyAttachmentArray) ElementType() reflect.Type

func (DdosPolicyAttachmentArray) ToDdosPolicyAttachmentArrayOutput

func (i DdosPolicyAttachmentArray) ToDdosPolicyAttachmentArrayOutput() DdosPolicyAttachmentArrayOutput

func (DdosPolicyAttachmentArray) ToDdosPolicyAttachmentArrayOutputWithContext

func (i DdosPolicyAttachmentArray) ToDdosPolicyAttachmentArrayOutputWithContext(ctx context.Context) DdosPolicyAttachmentArrayOutput

type DdosPolicyAttachmentArrayInput

type DdosPolicyAttachmentArrayInput interface {
	pulumi.Input

	ToDdosPolicyAttachmentArrayOutput() DdosPolicyAttachmentArrayOutput
	ToDdosPolicyAttachmentArrayOutputWithContext(context.Context) DdosPolicyAttachmentArrayOutput
}

DdosPolicyAttachmentArrayInput is an input type that accepts DdosPolicyAttachmentArray and DdosPolicyAttachmentArrayOutput values. You can construct a concrete instance of `DdosPolicyAttachmentArrayInput` via:

DdosPolicyAttachmentArray{ DdosPolicyAttachmentArgs{...} }

type DdosPolicyAttachmentArrayOutput

type DdosPolicyAttachmentArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyAttachmentArrayOutput) ElementType

func (DdosPolicyAttachmentArrayOutput) Index

func (DdosPolicyAttachmentArrayOutput) ToDdosPolicyAttachmentArrayOutput

func (o DdosPolicyAttachmentArrayOutput) ToDdosPolicyAttachmentArrayOutput() DdosPolicyAttachmentArrayOutput

func (DdosPolicyAttachmentArrayOutput) ToDdosPolicyAttachmentArrayOutputWithContext

func (o DdosPolicyAttachmentArrayOutput) ToDdosPolicyAttachmentArrayOutputWithContext(ctx context.Context) DdosPolicyAttachmentArrayOutput

type DdosPolicyAttachmentInput

type DdosPolicyAttachmentInput interface {
	pulumi.Input

	ToDdosPolicyAttachmentOutput() DdosPolicyAttachmentOutput
	ToDdosPolicyAttachmentOutputWithContext(ctx context.Context) DdosPolicyAttachmentOutput
}

type DdosPolicyAttachmentMap

type DdosPolicyAttachmentMap map[string]DdosPolicyAttachmentInput

func (DdosPolicyAttachmentMap) ElementType

func (DdosPolicyAttachmentMap) ElementType() reflect.Type

func (DdosPolicyAttachmentMap) ToDdosPolicyAttachmentMapOutput

func (i DdosPolicyAttachmentMap) ToDdosPolicyAttachmentMapOutput() DdosPolicyAttachmentMapOutput

func (DdosPolicyAttachmentMap) ToDdosPolicyAttachmentMapOutputWithContext

func (i DdosPolicyAttachmentMap) ToDdosPolicyAttachmentMapOutputWithContext(ctx context.Context) DdosPolicyAttachmentMapOutput

type DdosPolicyAttachmentMapInput

type DdosPolicyAttachmentMapInput interface {
	pulumi.Input

	ToDdosPolicyAttachmentMapOutput() DdosPolicyAttachmentMapOutput
	ToDdosPolicyAttachmentMapOutputWithContext(context.Context) DdosPolicyAttachmentMapOutput
}

DdosPolicyAttachmentMapInput is an input type that accepts DdosPolicyAttachmentMap and DdosPolicyAttachmentMapOutput values. You can construct a concrete instance of `DdosPolicyAttachmentMapInput` via:

DdosPolicyAttachmentMap{ "key": DdosPolicyAttachmentArgs{...} }

type DdosPolicyAttachmentMapOutput

type DdosPolicyAttachmentMapOutput struct{ *pulumi.OutputState }

func (DdosPolicyAttachmentMapOutput) ElementType

func (DdosPolicyAttachmentMapOutput) MapIndex

func (DdosPolicyAttachmentMapOutput) ToDdosPolicyAttachmentMapOutput

func (o DdosPolicyAttachmentMapOutput) ToDdosPolicyAttachmentMapOutput() DdosPolicyAttachmentMapOutput

func (DdosPolicyAttachmentMapOutput) ToDdosPolicyAttachmentMapOutputWithContext

func (o DdosPolicyAttachmentMapOutput) ToDdosPolicyAttachmentMapOutputWithContext(ctx context.Context) DdosPolicyAttachmentMapOutput

type DdosPolicyAttachmentOutput

type DdosPolicyAttachmentOutput struct{ *pulumi.OutputState }

func (DdosPolicyAttachmentOutput) ElementType

func (DdosPolicyAttachmentOutput) ElementType() reflect.Type

func (DdosPolicyAttachmentOutput) PolicyId

ID of the policy.

func (DdosPolicyAttachmentOutput) ResourceId

ID of the attached resource.

func (DdosPolicyAttachmentOutput) ResourceType

Type of the resource that the DDoS policy works for. Valid values are `bgpip`, `bgp`, `bgp-multip`, `net`.

func (DdosPolicyAttachmentOutput) ToDdosPolicyAttachmentOutput

func (o DdosPolicyAttachmentOutput) ToDdosPolicyAttachmentOutput() DdosPolicyAttachmentOutput

func (DdosPolicyAttachmentOutput) ToDdosPolicyAttachmentOutputWithContext

func (o DdosPolicyAttachmentOutput) ToDdosPolicyAttachmentOutputWithContext(ctx context.Context) DdosPolicyAttachmentOutput

type DdosPolicyAttachmentState

type DdosPolicyAttachmentState struct {
	// ID of the policy.
	PolicyId pulumi.StringPtrInput
	// ID of the attached resource.
	ResourceId pulumi.StringPtrInput
	// Type of the resource that the DDoS policy works for. Valid values are `bgpip`, `bgp`, `bgp-multip`, `net`.
	ResourceType pulumi.StringPtrInput
}

func (DdosPolicyAttachmentState) ElementType

func (DdosPolicyAttachmentState) ElementType() reflect.Type

type DdosPolicyCase

type DdosPolicyCase struct {
	pulumi.CustomResourceState

	// App protocol set of the DDoS policy case.
	AppProtocols pulumi.StringArrayOutput `pulumi:"appProtocols"`
	// App type of the DDoS policy case. Valid values: `WEB`, `GAME`, `APP` and `OTHER`.
	AppType pulumi.StringOutput `pulumi:"appType"`
	// Create time of the DDoS policy case.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Indicate whether the service involves overseas or not. Valid values: `no` and `yes`.
	HasAbroad pulumi.StringOutput `pulumi:"hasAbroad"`
	// Indicate whether the service actively initiates TCP requests or not. Valid values: `no` and `yes`.
	HasInitiateTcp pulumi.StringOutput `pulumi:"hasInitiateTcp"`
	// Indicate whether the actively initiate UDP requests or not. Valid values: `no` and `yes`.
	HasInitiateUdp pulumi.StringPtrOutput `pulumi:"hasInitiateUdp"`
	// Indicate whether the service involves VPN service or not. Valid values: `no` and `yes`.
	HasVpn pulumi.StringPtrOutput `pulumi:"hasVpn"`
	// The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than `minTcpPackageLen`.
	MaxTcpPackageLen pulumi.StringPtrOutput `pulumi:"maxTcpPackageLen"`
	// The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than `minUdpPackageLen`.
	MaxUdpPackageLen pulumi.StringPtrOutput `pulumi:"maxUdpPackageLen"`
	// The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
	MinTcpPackageLen pulumi.StringPtrOutput `pulumi:"minTcpPackageLen"`
	// The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
	MinUdpPackageLen pulumi.StringPtrOutput `pulumi:"minUdpPackageLen"`
	// Name of the DDoS policy case. Length should between 1 and 64.
	Name pulumi.StringOutput `pulumi:"name"`
	// The port that actively initiates TCP requests. Valid value ranges: (1~65535).
	PeerTcpPort pulumi.StringPtrOutput `pulumi:"peerTcpPort"`
	// The port that actively initiates UDP requests. Valid value ranges: (1~65535).
	PeerUdpPort pulumi.StringPtrOutput `pulumi:"peerUdpPort"`
	// Platform set of the DDoS policy case.
	PlatformTypes pulumi.StringArrayOutput `pulumi:"platformTypes"`
	// Type of the resource that the DDoS policy case works for. Valid values: `bgpip`, `bgp` and `bgp-multip`.
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// ID of the DDoS policy case.
	SceneId pulumi.StringOutput `pulumi:"sceneId"`
	// End port of the TCP service. Valid value ranges: (0~65535). It must be greater than `tcpStartPort`.
	TcpEndPort pulumi.StringOutput `pulumi:"tcpEndPort"`
	// The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
	TcpFootprint pulumi.StringPtrOutput `pulumi:"tcpFootprint"`
	// Start port of the TCP service. Valid value ranges: (0~65535).
	TcpStartPort pulumi.StringOutput `pulumi:"tcpStartPort"`
	// End port of the UDP service. Valid value ranges: (0~65535). It must be greater than `udpStartPort`.
	UdpEndPort pulumi.StringOutput `pulumi:"udpEndPort"`
	// The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
	UdpFootprint pulumi.StringPtrOutput `pulumi:"udpFootprint"`
	// Start port of the UDP service. Valid value ranges: (0~65535).
	UdpStartPort pulumi.StringOutput `pulumi:"udpStartPort"`
	// Web API url set.
	WebApiUrls pulumi.StringArrayOutput `pulumi:"webApiUrls"`
}

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` and `bgpip`. 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

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewDdosPolicyCase(ctx, "foo", &Dayu.DdosPolicyCaseArgs{
			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
	})
}

```

func GetDdosPolicyCase

func GetDdosPolicyCase(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DdosPolicyCaseState, opts ...pulumi.ResourceOption) (*DdosPolicyCase, error)

GetDdosPolicyCase gets an existing DdosPolicyCase resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDdosPolicyCase

func NewDdosPolicyCase(ctx *pulumi.Context,
	name string, args *DdosPolicyCaseArgs, opts ...pulumi.ResourceOption) (*DdosPolicyCase, error)

NewDdosPolicyCase registers a new resource with the given unique name, arguments, and options.

func (*DdosPolicyCase) ElementType

func (*DdosPolicyCase) ElementType() reflect.Type

func (*DdosPolicyCase) ToDdosPolicyCaseOutput

func (i *DdosPolicyCase) ToDdosPolicyCaseOutput() DdosPolicyCaseOutput

func (*DdosPolicyCase) ToDdosPolicyCaseOutputWithContext

func (i *DdosPolicyCase) ToDdosPolicyCaseOutputWithContext(ctx context.Context) DdosPolicyCaseOutput

type DdosPolicyCaseArgs

type DdosPolicyCaseArgs struct {
	// App protocol set of the DDoS policy case.
	AppProtocols pulumi.StringArrayInput
	// App type of the DDoS policy case. Valid values: `WEB`, `GAME`, `APP` and `OTHER`.
	AppType pulumi.StringInput
	// Indicate whether the service involves overseas or not. Valid values: `no` and `yes`.
	HasAbroad pulumi.StringInput
	// Indicate whether the service actively initiates TCP requests or not. Valid values: `no` and `yes`.
	HasInitiateTcp pulumi.StringInput
	// Indicate whether the actively initiate UDP requests or not. Valid values: `no` and `yes`.
	HasInitiateUdp pulumi.StringPtrInput
	// Indicate whether the service involves VPN service or not. Valid values: `no` and `yes`.
	HasVpn pulumi.StringPtrInput
	// The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than `minTcpPackageLen`.
	MaxTcpPackageLen pulumi.StringPtrInput
	// The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than `minUdpPackageLen`.
	MaxUdpPackageLen pulumi.StringPtrInput
	// The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
	MinTcpPackageLen pulumi.StringPtrInput
	// The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
	MinUdpPackageLen pulumi.StringPtrInput
	// Name of the DDoS policy case. Length should between 1 and 64.
	Name pulumi.StringPtrInput
	// The port that actively initiates TCP requests. Valid value ranges: (1~65535).
	PeerTcpPort pulumi.StringPtrInput
	// The port that actively initiates UDP requests. Valid value ranges: (1~65535).
	PeerUdpPort pulumi.StringPtrInput
	// Platform set of the DDoS policy case.
	PlatformTypes pulumi.StringArrayInput
	// Type of the resource that the DDoS policy case works for. Valid values: `bgpip`, `bgp` and `bgp-multip`.
	ResourceType pulumi.StringInput
	// End port of the TCP service. Valid value ranges: (0~65535). It must be greater than `tcpStartPort`.
	TcpEndPort pulumi.StringInput
	// The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
	TcpFootprint pulumi.StringPtrInput
	// Start port of the TCP service. Valid value ranges: (0~65535).
	TcpStartPort pulumi.StringInput
	// End port of the UDP service. Valid value ranges: (0~65535). It must be greater than `udpStartPort`.
	UdpEndPort pulumi.StringInput
	// The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
	UdpFootprint pulumi.StringPtrInput
	// Start port of the UDP service. Valid value ranges: (0~65535).
	UdpStartPort pulumi.StringInput
	// Web API url set.
	WebApiUrls pulumi.StringArrayInput
}

The set of arguments for constructing a DdosPolicyCase resource.

func (DdosPolicyCaseArgs) ElementType

func (DdosPolicyCaseArgs) ElementType() reflect.Type

type DdosPolicyCaseArray

type DdosPolicyCaseArray []DdosPolicyCaseInput

func (DdosPolicyCaseArray) ElementType

func (DdosPolicyCaseArray) ElementType() reflect.Type

func (DdosPolicyCaseArray) ToDdosPolicyCaseArrayOutput

func (i DdosPolicyCaseArray) ToDdosPolicyCaseArrayOutput() DdosPolicyCaseArrayOutput

func (DdosPolicyCaseArray) ToDdosPolicyCaseArrayOutputWithContext

func (i DdosPolicyCaseArray) ToDdosPolicyCaseArrayOutputWithContext(ctx context.Context) DdosPolicyCaseArrayOutput

type DdosPolicyCaseArrayInput

type DdosPolicyCaseArrayInput interface {
	pulumi.Input

	ToDdosPolicyCaseArrayOutput() DdosPolicyCaseArrayOutput
	ToDdosPolicyCaseArrayOutputWithContext(context.Context) DdosPolicyCaseArrayOutput
}

DdosPolicyCaseArrayInput is an input type that accepts DdosPolicyCaseArray and DdosPolicyCaseArrayOutput values. You can construct a concrete instance of `DdosPolicyCaseArrayInput` via:

DdosPolicyCaseArray{ DdosPolicyCaseArgs{...} }

type DdosPolicyCaseArrayOutput

type DdosPolicyCaseArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyCaseArrayOutput) ElementType

func (DdosPolicyCaseArrayOutput) ElementType() reflect.Type

func (DdosPolicyCaseArrayOutput) Index

func (DdosPolicyCaseArrayOutput) ToDdosPolicyCaseArrayOutput

func (o DdosPolicyCaseArrayOutput) ToDdosPolicyCaseArrayOutput() DdosPolicyCaseArrayOutput

func (DdosPolicyCaseArrayOutput) ToDdosPolicyCaseArrayOutputWithContext

func (o DdosPolicyCaseArrayOutput) ToDdosPolicyCaseArrayOutputWithContext(ctx context.Context) DdosPolicyCaseArrayOutput

type DdosPolicyCaseInput

type DdosPolicyCaseInput interface {
	pulumi.Input

	ToDdosPolicyCaseOutput() DdosPolicyCaseOutput
	ToDdosPolicyCaseOutputWithContext(ctx context.Context) DdosPolicyCaseOutput
}

type DdosPolicyCaseMap

type DdosPolicyCaseMap map[string]DdosPolicyCaseInput

func (DdosPolicyCaseMap) ElementType

func (DdosPolicyCaseMap) ElementType() reflect.Type

func (DdosPolicyCaseMap) ToDdosPolicyCaseMapOutput

func (i DdosPolicyCaseMap) ToDdosPolicyCaseMapOutput() DdosPolicyCaseMapOutput

func (DdosPolicyCaseMap) ToDdosPolicyCaseMapOutputWithContext

func (i DdosPolicyCaseMap) ToDdosPolicyCaseMapOutputWithContext(ctx context.Context) DdosPolicyCaseMapOutput

type DdosPolicyCaseMapInput

type DdosPolicyCaseMapInput interface {
	pulumi.Input

	ToDdosPolicyCaseMapOutput() DdosPolicyCaseMapOutput
	ToDdosPolicyCaseMapOutputWithContext(context.Context) DdosPolicyCaseMapOutput
}

DdosPolicyCaseMapInput is an input type that accepts DdosPolicyCaseMap and DdosPolicyCaseMapOutput values. You can construct a concrete instance of `DdosPolicyCaseMapInput` via:

DdosPolicyCaseMap{ "key": DdosPolicyCaseArgs{...} }

type DdosPolicyCaseMapOutput

type DdosPolicyCaseMapOutput struct{ *pulumi.OutputState }

func (DdosPolicyCaseMapOutput) ElementType

func (DdosPolicyCaseMapOutput) ElementType() reflect.Type

func (DdosPolicyCaseMapOutput) MapIndex

func (DdosPolicyCaseMapOutput) ToDdosPolicyCaseMapOutput

func (o DdosPolicyCaseMapOutput) ToDdosPolicyCaseMapOutput() DdosPolicyCaseMapOutput

func (DdosPolicyCaseMapOutput) ToDdosPolicyCaseMapOutputWithContext

func (o DdosPolicyCaseMapOutput) ToDdosPolicyCaseMapOutputWithContext(ctx context.Context) DdosPolicyCaseMapOutput

type DdosPolicyCaseOutput

type DdosPolicyCaseOutput struct{ *pulumi.OutputState }

func (DdosPolicyCaseOutput) AppProtocols

App protocol set of the DDoS policy case.

func (DdosPolicyCaseOutput) AppType

App type of the DDoS policy case. Valid values: `WEB`, `GAME`, `APP` and `OTHER`.

func (DdosPolicyCaseOutput) CreateTime

func (o DdosPolicyCaseOutput) CreateTime() pulumi.StringOutput

Create time of the DDoS policy case.

func (DdosPolicyCaseOutput) ElementType

func (DdosPolicyCaseOutput) ElementType() reflect.Type

func (DdosPolicyCaseOutput) HasAbroad

Indicate whether the service involves overseas or not. Valid values: `no` and `yes`.

func (DdosPolicyCaseOutput) HasInitiateTcp

func (o DdosPolicyCaseOutput) HasInitiateTcp() pulumi.StringOutput

Indicate whether the service actively initiates TCP requests or not. Valid values: `no` and `yes`.

func (DdosPolicyCaseOutput) HasInitiateUdp

func (o DdosPolicyCaseOutput) HasInitiateUdp() pulumi.StringPtrOutput

Indicate whether the actively initiate UDP requests or not. Valid values: `no` and `yes`.

func (DdosPolicyCaseOutput) HasVpn

Indicate whether the service involves VPN service or not. Valid values: `no` and `yes`.

func (DdosPolicyCaseOutput) MaxTcpPackageLen

func (o DdosPolicyCaseOutput) MaxTcpPackageLen() pulumi.StringPtrOutput

The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than `minTcpPackageLen`.

func (DdosPolicyCaseOutput) MaxUdpPackageLen

func (o DdosPolicyCaseOutput) MaxUdpPackageLen() pulumi.StringPtrOutput

The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than `minUdpPackageLen`.

func (DdosPolicyCaseOutput) MinTcpPackageLen

func (o DdosPolicyCaseOutput) MinTcpPackageLen() pulumi.StringPtrOutput

The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.

func (DdosPolicyCaseOutput) MinUdpPackageLen

func (o DdosPolicyCaseOutput) MinUdpPackageLen() pulumi.StringPtrOutput

The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.

func (DdosPolicyCaseOutput) Name

Name of the DDoS policy case. Length should between 1 and 64.

func (DdosPolicyCaseOutput) PeerTcpPort

The port that actively initiates TCP requests. Valid value ranges: (1~65535).

func (DdosPolicyCaseOutput) PeerUdpPort

The port that actively initiates UDP requests. Valid value ranges: (1~65535).

func (DdosPolicyCaseOutput) PlatformTypes

func (o DdosPolicyCaseOutput) PlatformTypes() pulumi.StringArrayOutput

Platform set of the DDoS policy case.

func (DdosPolicyCaseOutput) ResourceType

func (o DdosPolicyCaseOutput) ResourceType() pulumi.StringOutput

Type of the resource that the DDoS policy case works for. Valid values: `bgpip`, `bgp` and `bgp-multip`.

func (DdosPolicyCaseOutput) SceneId

ID of the DDoS policy case.

func (DdosPolicyCaseOutput) TcpEndPort

func (o DdosPolicyCaseOutput) TcpEndPort() pulumi.StringOutput

End port of the TCP service. Valid value ranges: (0~65535). It must be greater than `tcpStartPort`.

func (DdosPolicyCaseOutput) TcpFootprint

func (o DdosPolicyCaseOutput) TcpFootprint() pulumi.StringPtrOutput

The fixed signature of TCP protocol load, valid value length is range from 1 to 512.

func (DdosPolicyCaseOutput) TcpStartPort

func (o DdosPolicyCaseOutput) TcpStartPort() pulumi.StringOutput

Start port of the TCP service. Valid value ranges: (0~65535).

func (DdosPolicyCaseOutput) ToDdosPolicyCaseOutput

func (o DdosPolicyCaseOutput) ToDdosPolicyCaseOutput() DdosPolicyCaseOutput

func (DdosPolicyCaseOutput) ToDdosPolicyCaseOutputWithContext

func (o DdosPolicyCaseOutput) ToDdosPolicyCaseOutputWithContext(ctx context.Context) DdosPolicyCaseOutput

func (DdosPolicyCaseOutput) UdpEndPort

func (o DdosPolicyCaseOutput) UdpEndPort() pulumi.StringOutput

End port of the UDP service. Valid value ranges: (0~65535). It must be greater than `udpStartPort`.

func (DdosPolicyCaseOutput) UdpFootprint

func (o DdosPolicyCaseOutput) UdpFootprint() pulumi.StringPtrOutput

The fixed signature of TCP protocol load, valid value length is range from 1 to 512.

func (DdosPolicyCaseOutput) UdpStartPort

func (o DdosPolicyCaseOutput) UdpStartPort() pulumi.StringOutput

Start port of the UDP service. Valid value ranges: (0~65535).

func (DdosPolicyCaseOutput) WebApiUrls

Web API url set.

type DdosPolicyCaseState

type DdosPolicyCaseState struct {
	// App protocol set of the DDoS policy case.
	AppProtocols pulumi.StringArrayInput
	// App type of the DDoS policy case. Valid values: `WEB`, `GAME`, `APP` and `OTHER`.
	AppType pulumi.StringPtrInput
	// Create time of the DDoS policy case.
	CreateTime pulumi.StringPtrInput
	// Indicate whether the service involves overseas or not. Valid values: `no` and `yes`.
	HasAbroad pulumi.StringPtrInput
	// Indicate whether the service actively initiates TCP requests or not. Valid values: `no` and `yes`.
	HasInitiateTcp pulumi.StringPtrInput
	// Indicate whether the actively initiate UDP requests or not. Valid values: `no` and `yes`.
	HasInitiateUdp pulumi.StringPtrInput
	// Indicate whether the service involves VPN service or not. Valid values: `no` and `yes`.
	HasVpn pulumi.StringPtrInput
	// The max length of TCP message package, valid value length should be greater than 0 and less than 1500. It should be greater than `minTcpPackageLen`.
	MaxTcpPackageLen pulumi.StringPtrInput
	// The max length of UDP message package, valid value length should be greater than 0 and less than 1500. It should be greater than `minUdpPackageLen`.
	MaxUdpPackageLen pulumi.StringPtrInput
	// The minimum length of TCP message package, valid value length should be greater than 0 and less than 1500.
	MinTcpPackageLen pulumi.StringPtrInput
	// The minimum length of UDP message package, valid value length should be greater than 0 and less than 1500.
	MinUdpPackageLen pulumi.StringPtrInput
	// Name of the DDoS policy case. Length should between 1 and 64.
	Name pulumi.StringPtrInput
	// The port that actively initiates TCP requests. Valid value ranges: (1~65535).
	PeerTcpPort pulumi.StringPtrInput
	// The port that actively initiates UDP requests. Valid value ranges: (1~65535).
	PeerUdpPort pulumi.StringPtrInput
	// Platform set of the DDoS policy case.
	PlatformTypes pulumi.StringArrayInput
	// Type of the resource that the DDoS policy case works for. Valid values: `bgpip`, `bgp` and `bgp-multip`.
	ResourceType pulumi.StringPtrInput
	// ID of the DDoS policy case.
	SceneId pulumi.StringPtrInput
	// End port of the TCP service. Valid value ranges: (0~65535). It must be greater than `tcpStartPort`.
	TcpEndPort pulumi.StringPtrInput
	// The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
	TcpFootprint pulumi.StringPtrInput
	// Start port of the TCP service. Valid value ranges: (0~65535).
	TcpStartPort pulumi.StringPtrInput
	// End port of the UDP service. Valid value ranges: (0~65535). It must be greater than `udpStartPort`.
	UdpEndPort pulumi.StringPtrInput
	// The fixed signature of TCP protocol load, valid value length is range from 1 to 512.
	UdpFootprint pulumi.StringPtrInput
	// Start port of the UDP service. Valid value ranges: (0~65535).
	UdpStartPort pulumi.StringPtrInput
	// Web API url set.
	WebApiUrls pulumi.StringArrayInput
}

func (DdosPolicyCaseState) ElementType

func (DdosPolicyCaseState) ElementType() reflect.Type

type DdosPolicyDropOption

type DdosPolicyDropOption struct {
	// The number of new connections based on destination IP that trigger suppression of connections. Valid value ranges: (0~4294967295).
	BadConnThreshold int `pulumi:"badConnThreshold"`
	// Indicate whether to check null connection or not.
	CheckSyncConn bool `pulumi:"checkSyncConn"`
	// Connection timeout of abnormal connection check. Valid value ranges: (0~65535).
	ConnTimeout int `pulumi:"connTimeout"`
	// The limit of concurrent connections based on destination IP. Valid value ranges: (0~4294967295).
	DConnLimit int `pulumi:"dConnLimit"`
	// The limit of new connections based on destination IP. Valid value ranges: (0~4294967295).
	DNewLimit int `pulumi:"dNewLimit"`
	// Indicate whether to drop abroad traffic or not.
	DropAbroad bool `pulumi:"dropAbroad"`
	// Indicate whether to drop ICMP protocol or not.
	DropIcmp bool `pulumi:"dropIcmp"`
	// Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.
	DropOther bool `pulumi:"dropOther"`
	// Indicate whether to drop TCP protocol or not.
	DropTcp bool `pulumi:"dropTcp"`
	// Indicate to drop UDP protocol or not.
	DropUdp bool `pulumi:"dropUdp"`
	// The limit of ICMP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
	IcmpMbpsLimit int `pulumi:"icmpMbpsLimit"`
	// Indicate to enable null connection or not.
	NullConnEnable bool `pulumi:"nullConnEnable"`
	// The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate. Valid value ranges: (0~4294967295)(Mbps).
	OtherMbpsLimit int `pulumi:"otherMbpsLimit"`
	// The limit of concurrent connections based on source IP. Valid value ranges: (0~4294967295).
	SConnLimit int `pulumi:"sConnLimit"`
	// The limit of new connections based on source IP. Valid value ranges: (0~4294967295).
	SNewLimit int `pulumi:"sNewLimit"`
	// The limit of syn of abnormal connection check. Valid value ranges: (0~100).
	SynLimit int `pulumi:"synLimit"`
	// The percentage of syn in ack of abnormal connection check. Valid value ranges: (0~100).
	SynRate *int `pulumi:"synRate"`
	// The limit of TCP traffic. Valid value ranges: (0~4294967295)(Mbps).
	TcpMbpsLimit int `pulumi:"tcpMbpsLimit"`
	// The limit of UDP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
	UdpMbpsLimit int `pulumi:"udpMbpsLimit"`
}

type DdosPolicyDropOptionArgs

type DdosPolicyDropOptionArgs struct {
	// The number of new connections based on destination IP that trigger suppression of connections. Valid value ranges: (0~4294967295).
	BadConnThreshold pulumi.IntInput `pulumi:"badConnThreshold"`
	// Indicate whether to check null connection or not.
	CheckSyncConn pulumi.BoolInput `pulumi:"checkSyncConn"`
	// Connection timeout of abnormal connection check. Valid value ranges: (0~65535).
	ConnTimeout pulumi.IntInput `pulumi:"connTimeout"`
	// The limit of concurrent connections based on destination IP. Valid value ranges: (0~4294967295).
	DConnLimit pulumi.IntInput `pulumi:"dConnLimit"`
	// The limit of new connections based on destination IP. Valid value ranges: (0~4294967295).
	DNewLimit pulumi.IntInput `pulumi:"dNewLimit"`
	// Indicate whether to drop abroad traffic or not.
	DropAbroad pulumi.BoolInput `pulumi:"dropAbroad"`
	// Indicate whether to drop ICMP protocol or not.
	DropIcmp pulumi.BoolInput `pulumi:"dropIcmp"`
	// Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.
	DropOther pulumi.BoolInput `pulumi:"dropOther"`
	// Indicate whether to drop TCP protocol or not.
	DropTcp pulumi.BoolInput `pulumi:"dropTcp"`
	// Indicate to drop UDP protocol or not.
	DropUdp pulumi.BoolInput `pulumi:"dropUdp"`
	// The limit of ICMP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
	IcmpMbpsLimit pulumi.IntInput `pulumi:"icmpMbpsLimit"`
	// Indicate to enable null connection or not.
	NullConnEnable pulumi.BoolInput `pulumi:"nullConnEnable"`
	// The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate. Valid value ranges: (0~4294967295)(Mbps).
	OtherMbpsLimit pulumi.IntInput `pulumi:"otherMbpsLimit"`
	// The limit of concurrent connections based on source IP. Valid value ranges: (0~4294967295).
	SConnLimit pulumi.IntInput `pulumi:"sConnLimit"`
	// The limit of new connections based on source IP. Valid value ranges: (0~4294967295).
	SNewLimit pulumi.IntInput `pulumi:"sNewLimit"`
	// The limit of syn of abnormal connection check. Valid value ranges: (0~100).
	SynLimit pulumi.IntInput `pulumi:"synLimit"`
	// The percentage of syn in ack of abnormal connection check. Valid value ranges: (0~100).
	SynRate pulumi.IntPtrInput `pulumi:"synRate"`
	// The limit of TCP traffic. Valid value ranges: (0~4294967295)(Mbps).
	TcpMbpsLimit pulumi.IntInput `pulumi:"tcpMbpsLimit"`
	// The limit of UDP traffic rate. Valid value ranges: (0~4294967295)(Mbps).
	UdpMbpsLimit pulumi.IntInput `pulumi:"udpMbpsLimit"`
}

func (DdosPolicyDropOptionArgs) ElementType

func (DdosPolicyDropOptionArgs) ElementType() reflect.Type

func (DdosPolicyDropOptionArgs) ToDdosPolicyDropOptionOutput

func (i DdosPolicyDropOptionArgs) ToDdosPolicyDropOptionOutput() DdosPolicyDropOptionOutput

func (DdosPolicyDropOptionArgs) ToDdosPolicyDropOptionOutputWithContext

func (i DdosPolicyDropOptionArgs) ToDdosPolicyDropOptionOutputWithContext(ctx context.Context) DdosPolicyDropOptionOutput

type DdosPolicyDropOptionArray

type DdosPolicyDropOptionArray []DdosPolicyDropOptionInput

func (DdosPolicyDropOptionArray) ElementType

func (DdosPolicyDropOptionArray) ElementType() reflect.Type

func (DdosPolicyDropOptionArray) ToDdosPolicyDropOptionArrayOutput

func (i DdosPolicyDropOptionArray) ToDdosPolicyDropOptionArrayOutput() DdosPolicyDropOptionArrayOutput

func (DdosPolicyDropOptionArray) ToDdosPolicyDropOptionArrayOutputWithContext

func (i DdosPolicyDropOptionArray) ToDdosPolicyDropOptionArrayOutputWithContext(ctx context.Context) DdosPolicyDropOptionArrayOutput

type DdosPolicyDropOptionArrayInput

type DdosPolicyDropOptionArrayInput interface {
	pulumi.Input

	ToDdosPolicyDropOptionArrayOutput() DdosPolicyDropOptionArrayOutput
	ToDdosPolicyDropOptionArrayOutputWithContext(context.Context) DdosPolicyDropOptionArrayOutput
}

DdosPolicyDropOptionArrayInput is an input type that accepts DdosPolicyDropOptionArray and DdosPolicyDropOptionArrayOutput values. You can construct a concrete instance of `DdosPolicyDropOptionArrayInput` via:

DdosPolicyDropOptionArray{ DdosPolicyDropOptionArgs{...} }

type DdosPolicyDropOptionArrayOutput

type DdosPolicyDropOptionArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyDropOptionArrayOutput) ElementType

func (DdosPolicyDropOptionArrayOutput) Index

func (DdosPolicyDropOptionArrayOutput) ToDdosPolicyDropOptionArrayOutput

func (o DdosPolicyDropOptionArrayOutput) ToDdosPolicyDropOptionArrayOutput() DdosPolicyDropOptionArrayOutput

func (DdosPolicyDropOptionArrayOutput) ToDdosPolicyDropOptionArrayOutputWithContext

func (o DdosPolicyDropOptionArrayOutput) ToDdosPolicyDropOptionArrayOutputWithContext(ctx context.Context) DdosPolicyDropOptionArrayOutput

type DdosPolicyDropOptionInput

type DdosPolicyDropOptionInput interface {
	pulumi.Input

	ToDdosPolicyDropOptionOutput() DdosPolicyDropOptionOutput
	ToDdosPolicyDropOptionOutputWithContext(context.Context) DdosPolicyDropOptionOutput
}

DdosPolicyDropOptionInput is an input type that accepts DdosPolicyDropOptionArgs and DdosPolicyDropOptionOutput values. You can construct a concrete instance of `DdosPolicyDropOptionInput` via:

DdosPolicyDropOptionArgs{...}

type DdosPolicyDropOptionOutput

type DdosPolicyDropOptionOutput struct{ *pulumi.OutputState }

func (DdosPolicyDropOptionOutput) BadConnThreshold

func (o DdosPolicyDropOptionOutput) BadConnThreshold() pulumi.IntOutput

The number of new connections based on destination IP that trigger suppression of connections. Valid value ranges: (0~4294967295).

func (DdosPolicyDropOptionOutput) CheckSyncConn

func (o DdosPolicyDropOptionOutput) CheckSyncConn() pulumi.BoolOutput

Indicate whether to check null connection or not.

func (DdosPolicyDropOptionOutput) ConnTimeout

Connection timeout of abnormal connection check. Valid value ranges: (0~65535).

func (DdosPolicyDropOptionOutput) DConnLimit

The limit of concurrent connections based on destination IP. Valid value ranges: (0~4294967295).

func (DdosPolicyDropOptionOutput) DNewLimit

The limit of new connections based on destination IP. Valid value ranges: (0~4294967295).

func (DdosPolicyDropOptionOutput) DropAbroad

Indicate whether to drop abroad traffic or not.

func (DdosPolicyDropOptionOutput) DropIcmp

Indicate whether to drop ICMP protocol or not.

func (DdosPolicyDropOptionOutput) DropOther

Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.

func (DdosPolicyDropOptionOutput) DropTcp

Indicate whether to drop TCP protocol or not.

func (DdosPolicyDropOptionOutput) DropUdp

Indicate to drop UDP protocol or not.

func (DdosPolicyDropOptionOutput) ElementType

func (DdosPolicyDropOptionOutput) ElementType() reflect.Type

func (DdosPolicyDropOptionOutput) IcmpMbpsLimit

func (o DdosPolicyDropOptionOutput) IcmpMbpsLimit() pulumi.IntOutput

The limit of ICMP traffic rate. Valid value ranges: (0~4294967295)(Mbps).

func (DdosPolicyDropOptionOutput) NullConnEnable

func (o DdosPolicyDropOptionOutput) NullConnEnable() pulumi.BoolOutput

Indicate to enable null connection or not.

func (DdosPolicyDropOptionOutput) OtherMbpsLimit

func (o DdosPolicyDropOptionOutput) OtherMbpsLimit() pulumi.IntOutput

The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate. Valid value ranges: (0~4294967295)(Mbps).

func (DdosPolicyDropOptionOutput) SConnLimit

The limit of concurrent connections based on source IP. Valid value ranges: (0~4294967295).

func (DdosPolicyDropOptionOutput) SNewLimit

The limit of new connections based on source IP. Valid value ranges: (0~4294967295).

func (DdosPolicyDropOptionOutput) SynLimit

The limit of syn of abnormal connection check. Valid value ranges: (0~100).

func (DdosPolicyDropOptionOutput) SynRate

The percentage of syn in ack of abnormal connection check. Valid value ranges: (0~100).

func (DdosPolicyDropOptionOutput) TcpMbpsLimit

func (o DdosPolicyDropOptionOutput) TcpMbpsLimit() pulumi.IntOutput

The limit of TCP traffic. Valid value ranges: (0~4294967295)(Mbps).

func (DdosPolicyDropOptionOutput) ToDdosPolicyDropOptionOutput

func (o DdosPolicyDropOptionOutput) ToDdosPolicyDropOptionOutput() DdosPolicyDropOptionOutput

func (DdosPolicyDropOptionOutput) ToDdosPolicyDropOptionOutputWithContext

func (o DdosPolicyDropOptionOutput) ToDdosPolicyDropOptionOutputWithContext(ctx context.Context) DdosPolicyDropOptionOutput

func (DdosPolicyDropOptionOutput) UdpMbpsLimit

func (o DdosPolicyDropOptionOutput) UdpMbpsLimit() pulumi.IntOutput

The limit of UDP traffic rate. Valid value ranges: (0~4294967295)(Mbps).

type DdosPolicyInput

type DdosPolicyInput interface {
	pulumi.Input

	ToDdosPolicyOutput() DdosPolicyOutput
	ToDdosPolicyOutputWithContext(ctx context.Context) DdosPolicyOutput
}

type DdosPolicyMap

type DdosPolicyMap map[string]DdosPolicyInput

func (DdosPolicyMap) ElementType

func (DdosPolicyMap) ElementType() reflect.Type

func (DdosPolicyMap) ToDdosPolicyMapOutput

func (i DdosPolicyMap) ToDdosPolicyMapOutput() DdosPolicyMapOutput

func (DdosPolicyMap) ToDdosPolicyMapOutputWithContext

func (i DdosPolicyMap) ToDdosPolicyMapOutputWithContext(ctx context.Context) DdosPolicyMapOutput

type DdosPolicyMapInput

type DdosPolicyMapInput interface {
	pulumi.Input

	ToDdosPolicyMapOutput() DdosPolicyMapOutput
	ToDdosPolicyMapOutputWithContext(context.Context) DdosPolicyMapOutput
}

DdosPolicyMapInput is an input type that accepts DdosPolicyMap and DdosPolicyMapOutput values. You can construct a concrete instance of `DdosPolicyMapInput` via:

DdosPolicyMap{ "key": DdosPolicyArgs{...} }

type DdosPolicyMapOutput

type DdosPolicyMapOutput struct{ *pulumi.OutputState }

func (DdosPolicyMapOutput) ElementType

func (DdosPolicyMapOutput) ElementType() reflect.Type

func (DdosPolicyMapOutput) MapIndex

func (DdosPolicyMapOutput) ToDdosPolicyMapOutput

func (o DdosPolicyMapOutput) ToDdosPolicyMapOutput() DdosPolicyMapOutput

func (DdosPolicyMapOutput) ToDdosPolicyMapOutputWithContext

func (o DdosPolicyMapOutput) ToDdosPolicyMapOutputWithContext(ctx context.Context) DdosPolicyMapOutput

type DdosPolicyOutput

type DdosPolicyOutput struct{ *pulumi.OutputState }

func (DdosPolicyOutput) BlackIps

Black IP list.

func (DdosPolicyOutput) CreateTime

func (o DdosPolicyOutput) CreateTime() pulumi.StringOutput

Create time of the DDoS policy.

func (DdosPolicyOutput) DropOptions

Option list of abnormal check of the DDos policy, should set at least one policy.

func (DdosPolicyOutput) ElementType

func (DdosPolicyOutput) ElementType() reflect.Type

func (DdosPolicyOutput) Name

Name of the DDoS policy. Length should between 1 and 32.

func (DdosPolicyOutput) PacketFilters

Message filter options list.

func (DdosPolicyOutput) PolicyId

func (o DdosPolicyOutput) PolicyId() pulumi.StringOutput

Id of policy.

func (DdosPolicyOutput) PortFilters

Port limits of abnormal check of the DDos policy.

func (DdosPolicyOutput) ResourceType

func (o DdosPolicyOutput) ResourceType() pulumi.StringOutput

Type of the resource that the DDoS policy works for. Valid values: `bgpip`, `bgp`, `bgp-multip` and `net`.

func (DdosPolicyOutput) SceneId

func (o DdosPolicyOutput) SceneId() pulumi.StringOutput

Id of policy case that the DDoS policy works for.

func (DdosPolicyOutput) ToDdosPolicyOutput

func (o DdosPolicyOutput) ToDdosPolicyOutput() DdosPolicyOutput

func (DdosPolicyOutput) ToDdosPolicyOutputWithContext

func (o DdosPolicyOutput) ToDdosPolicyOutputWithContext(ctx context.Context) DdosPolicyOutput

func (DdosPolicyOutput) WatermarkFilters

Watermark policy options, and only support one watermark policy at most.

func (DdosPolicyOutput) WatermarkKeys

Watermark content.

func (DdosPolicyOutput) WhiteIps

White IP list.

type DdosPolicyPacketFilter

type DdosPolicyPacketFilter struct {
	// Action of port to take. Valid values: `drop`, `dropBlack`,`dropRst`,`dropBlackRst`,`transmit`.`drop`(drop the packet), `dropBlack`(drop the packet and black the ip),`dropRst`(drop the packet and disconnect),`dropBlackRst`(drop the packet, black the ip and disconnect),`transmit`(transmit the packet).
	Action *string `pulumi:"action"`
	// End port of the destination. Valid value ranges: (0~65535). It must be greater than `dStartPort`.
	DEndPort *int `pulumi:"dEndPort"`
	// Start port of the destination. Valid value ranges: (0~65535).
	DStartPort *int `pulumi:"dStartPort"`
	// The depth of match. Valid value ranges: (0~1500).
	Depth *int `pulumi:"depth"`
	// Indicate whether to include the key word/regular expression or not.
	IsInclude *bool `pulumi:"isInclude"`
	// Indicate whether to check load or not, `beginL5` means to match and `noMatch` means not.
	MatchBegin *string `pulumi:"matchBegin"`
	// The key word or regular expression.
	MatchStr *string `pulumi:"matchStr"`
	// Match type. Valid values: `sunday` and `pcre`. `sunday` means key word match while `pcre` means regular match.
	MatchType *string `pulumi:"matchType"`
	// The offset of match. Valid value ranges: (0~1500).
	Offset *int `pulumi:"offset"`
	// The max length of the packet. Valid value ranges: (0~1500)(Mbps). It must be greater than `pktLengthMin`.
	PktLengthMax *int `pulumi:"pktLengthMax"`
	// The minimum length of the packet. Valid value ranges: (0~1500)(Mbps).
	PktLengthMin *int `pulumi:"pktLengthMin"`
	// Protocol. Valid values: `tcp`, `udp`, `icmp`, `all`.
	Protocol *string `pulumi:"protocol"`
	// End port of the source. Valid value ranges: (0~65535). It must be greater than `sStartPort`.
	SEndPort *int `pulumi:"sEndPort"`
	// Start port of the source. Valid value ranges: (0~65535).
	SStartPort *int `pulumi:"sStartPort"`
}

type DdosPolicyPacketFilterArgs

type DdosPolicyPacketFilterArgs struct {
	// Action of port to take. Valid values: `drop`, `dropBlack`,`dropRst`,`dropBlackRst`,`transmit`.`drop`(drop the packet), `dropBlack`(drop the packet and black the ip),`dropRst`(drop the packet and disconnect),`dropBlackRst`(drop the packet, black the ip and disconnect),`transmit`(transmit the packet).
	Action pulumi.StringPtrInput `pulumi:"action"`
	// End port of the destination. Valid value ranges: (0~65535). It must be greater than `dStartPort`.
	DEndPort pulumi.IntPtrInput `pulumi:"dEndPort"`
	// Start port of the destination. Valid value ranges: (0~65535).
	DStartPort pulumi.IntPtrInput `pulumi:"dStartPort"`
	// The depth of match. Valid value ranges: (0~1500).
	Depth pulumi.IntPtrInput `pulumi:"depth"`
	// Indicate whether to include the key word/regular expression or not.
	IsInclude pulumi.BoolPtrInput `pulumi:"isInclude"`
	// Indicate whether to check load or not, `beginL5` means to match and `noMatch` means not.
	MatchBegin pulumi.StringPtrInput `pulumi:"matchBegin"`
	// The key word or regular expression.
	MatchStr pulumi.StringPtrInput `pulumi:"matchStr"`
	// Match type. Valid values: `sunday` and `pcre`. `sunday` means key word match while `pcre` means regular match.
	MatchType pulumi.StringPtrInput `pulumi:"matchType"`
	// The offset of match. Valid value ranges: (0~1500).
	Offset pulumi.IntPtrInput `pulumi:"offset"`
	// The max length of the packet. Valid value ranges: (0~1500)(Mbps). It must be greater than `pktLengthMin`.
	PktLengthMax pulumi.IntPtrInput `pulumi:"pktLengthMax"`
	// The minimum length of the packet. Valid value ranges: (0~1500)(Mbps).
	PktLengthMin pulumi.IntPtrInput `pulumi:"pktLengthMin"`
	// Protocol. Valid values: `tcp`, `udp`, `icmp`, `all`.
	Protocol pulumi.StringPtrInput `pulumi:"protocol"`
	// End port of the source. Valid value ranges: (0~65535). It must be greater than `sStartPort`.
	SEndPort pulumi.IntPtrInput `pulumi:"sEndPort"`
	// Start port of the source. Valid value ranges: (0~65535).
	SStartPort pulumi.IntPtrInput `pulumi:"sStartPort"`
}

func (DdosPolicyPacketFilterArgs) ElementType

func (DdosPolicyPacketFilterArgs) ElementType() reflect.Type

func (DdosPolicyPacketFilterArgs) ToDdosPolicyPacketFilterOutput

func (i DdosPolicyPacketFilterArgs) ToDdosPolicyPacketFilterOutput() DdosPolicyPacketFilterOutput

func (DdosPolicyPacketFilterArgs) ToDdosPolicyPacketFilterOutputWithContext

func (i DdosPolicyPacketFilterArgs) ToDdosPolicyPacketFilterOutputWithContext(ctx context.Context) DdosPolicyPacketFilterOutput

type DdosPolicyPacketFilterArray

type DdosPolicyPacketFilterArray []DdosPolicyPacketFilterInput

func (DdosPolicyPacketFilterArray) ElementType

func (DdosPolicyPacketFilterArray) ToDdosPolicyPacketFilterArrayOutput

func (i DdosPolicyPacketFilterArray) ToDdosPolicyPacketFilterArrayOutput() DdosPolicyPacketFilterArrayOutput

func (DdosPolicyPacketFilterArray) ToDdosPolicyPacketFilterArrayOutputWithContext

func (i DdosPolicyPacketFilterArray) ToDdosPolicyPacketFilterArrayOutputWithContext(ctx context.Context) DdosPolicyPacketFilterArrayOutput

type DdosPolicyPacketFilterArrayInput

type DdosPolicyPacketFilterArrayInput interface {
	pulumi.Input

	ToDdosPolicyPacketFilterArrayOutput() DdosPolicyPacketFilterArrayOutput
	ToDdosPolicyPacketFilterArrayOutputWithContext(context.Context) DdosPolicyPacketFilterArrayOutput
}

DdosPolicyPacketFilterArrayInput is an input type that accepts DdosPolicyPacketFilterArray and DdosPolicyPacketFilterArrayOutput values. You can construct a concrete instance of `DdosPolicyPacketFilterArrayInput` via:

DdosPolicyPacketFilterArray{ DdosPolicyPacketFilterArgs{...} }

type DdosPolicyPacketFilterArrayOutput

type DdosPolicyPacketFilterArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyPacketFilterArrayOutput) ElementType

func (DdosPolicyPacketFilterArrayOutput) Index

func (DdosPolicyPacketFilterArrayOutput) ToDdosPolicyPacketFilterArrayOutput

func (o DdosPolicyPacketFilterArrayOutput) ToDdosPolicyPacketFilterArrayOutput() DdosPolicyPacketFilterArrayOutput

func (DdosPolicyPacketFilterArrayOutput) ToDdosPolicyPacketFilterArrayOutputWithContext

func (o DdosPolicyPacketFilterArrayOutput) ToDdosPolicyPacketFilterArrayOutputWithContext(ctx context.Context) DdosPolicyPacketFilterArrayOutput

type DdosPolicyPacketFilterInput

type DdosPolicyPacketFilterInput interface {
	pulumi.Input

	ToDdosPolicyPacketFilterOutput() DdosPolicyPacketFilterOutput
	ToDdosPolicyPacketFilterOutputWithContext(context.Context) DdosPolicyPacketFilterOutput
}

DdosPolicyPacketFilterInput is an input type that accepts DdosPolicyPacketFilterArgs and DdosPolicyPacketFilterOutput values. You can construct a concrete instance of `DdosPolicyPacketFilterInput` via:

DdosPolicyPacketFilterArgs{...}

type DdosPolicyPacketFilterOutput

type DdosPolicyPacketFilterOutput struct{ *pulumi.OutputState }

func (DdosPolicyPacketFilterOutput) Action

Action of port to take. Valid values: `drop`, `dropBlack`,`dropRst`,`dropBlackRst`,`transmit`.`drop`(drop the packet), `dropBlack`(drop the packet and black the ip),`dropRst`(drop the packet and disconnect),`dropBlackRst`(drop the packet, black the ip and disconnect),`transmit`(transmit the packet).

func (DdosPolicyPacketFilterOutput) DEndPort

End port of the destination. Valid value ranges: (0~65535). It must be greater than `dStartPort`.

func (DdosPolicyPacketFilterOutput) DStartPort

Start port of the destination. Valid value ranges: (0~65535).

func (DdosPolicyPacketFilterOutput) Depth

The depth of match. Valid value ranges: (0~1500).

func (DdosPolicyPacketFilterOutput) ElementType

func (DdosPolicyPacketFilterOutput) IsInclude

Indicate whether to include the key word/regular expression or not.

func (DdosPolicyPacketFilterOutput) MatchBegin

Indicate whether to check load or not, `beginL5` means to match and `noMatch` means not.

func (DdosPolicyPacketFilterOutput) MatchStr

The key word or regular expression.

func (DdosPolicyPacketFilterOutput) MatchType

Match type. Valid values: `sunday` and `pcre`. `sunday` means key word match while `pcre` means regular match.

func (DdosPolicyPacketFilterOutput) Offset

The offset of match. Valid value ranges: (0~1500).

func (DdosPolicyPacketFilterOutput) PktLengthMax

The max length of the packet. Valid value ranges: (0~1500)(Mbps). It must be greater than `pktLengthMin`.

func (DdosPolicyPacketFilterOutput) PktLengthMin

The minimum length of the packet. Valid value ranges: (0~1500)(Mbps).

func (DdosPolicyPacketFilterOutput) Protocol

Protocol. Valid values: `tcp`, `udp`, `icmp`, `all`.

func (DdosPolicyPacketFilterOutput) SEndPort

End port of the source. Valid value ranges: (0~65535). It must be greater than `sStartPort`.

func (DdosPolicyPacketFilterOutput) SStartPort

Start port of the source. Valid value ranges: (0~65535).

func (DdosPolicyPacketFilterOutput) ToDdosPolicyPacketFilterOutput

func (o DdosPolicyPacketFilterOutput) ToDdosPolicyPacketFilterOutput() DdosPolicyPacketFilterOutput

func (DdosPolicyPacketFilterOutput) ToDdosPolicyPacketFilterOutputWithContext

func (o DdosPolicyPacketFilterOutput) ToDdosPolicyPacketFilterOutputWithContext(ctx context.Context) DdosPolicyPacketFilterOutput

type DdosPolicyPortFilter

type DdosPolicyPortFilter struct {
	// Action of port to take. Valid values: `drop`, `transmit`.
	Action *string `pulumi:"action"`
	// End port. Valid value ranges: (0~65535). It must be greater than `startPort`.
	EndPort *int `pulumi:"endPort"`
	// The type of forbidden port. Valid values: `0`, `1`, `2`. `0` for destination ports make effect, `1` for source ports make effect. `2` for both destination and source ports.
	Kind *int `pulumi:"kind"`
	// Protocol. Valid values are `tcp`, `udp`, `icmp`, `all`.
	Protocol *string `pulumi:"protocol"`
	// Start port. Valid value ranges: (0~65535).
	StartPort *int `pulumi:"startPort"`
}

type DdosPolicyPortFilterArgs

type DdosPolicyPortFilterArgs struct {
	// Action of port to take. Valid values: `drop`, `transmit`.
	Action pulumi.StringPtrInput `pulumi:"action"`
	// End port. Valid value ranges: (0~65535). It must be greater than `startPort`.
	EndPort pulumi.IntPtrInput `pulumi:"endPort"`
	// The type of forbidden port. Valid values: `0`, `1`, `2`. `0` for destination ports make effect, `1` for source ports make effect. `2` for both destination and source ports.
	Kind pulumi.IntPtrInput `pulumi:"kind"`
	// Protocol. Valid values are `tcp`, `udp`, `icmp`, `all`.
	Protocol pulumi.StringPtrInput `pulumi:"protocol"`
	// Start port. Valid value ranges: (0~65535).
	StartPort pulumi.IntPtrInput `pulumi:"startPort"`
}

func (DdosPolicyPortFilterArgs) ElementType

func (DdosPolicyPortFilterArgs) ElementType() reflect.Type

func (DdosPolicyPortFilterArgs) ToDdosPolicyPortFilterOutput

func (i DdosPolicyPortFilterArgs) ToDdosPolicyPortFilterOutput() DdosPolicyPortFilterOutput

func (DdosPolicyPortFilterArgs) ToDdosPolicyPortFilterOutputWithContext

func (i DdosPolicyPortFilterArgs) ToDdosPolicyPortFilterOutputWithContext(ctx context.Context) DdosPolicyPortFilterOutput

type DdosPolicyPortFilterArray

type DdosPolicyPortFilterArray []DdosPolicyPortFilterInput

func (DdosPolicyPortFilterArray) ElementType

func (DdosPolicyPortFilterArray) ElementType() reflect.Type

func (DdosPolicyPortFilterArray) ToDdosPolicyPortFilterArrayOutput

func (i DdosPolicyPortFilterArray) ToDdosPolicyPortFilterArrayOutput() DdosPolicyPortFilterArrayOutput

func (DdosPolicyPortFilterArray) ToDdosPolicyPortFilterArrayOutputWithContext

func (i DdosPolicyPortFilterArray) ToDdosPolicyPortFilterArrayOutputWithContext(ctx context.Context) DdosPolicyPortFilterArrayOutput

type DdosPolicyPortFilterArrayInput

type DdosPolicyPortFilterArrayInput interface {
	pulumi.Input

	ToDdosPolicyPortFilterArrayOutput() DdosPolicyPortFilterArrayOutput
	ToDdosPolicyPortFilterArrayOutputWithContext(context.Context) DdosPolicyPortFilterArrayOutput
}

DdosPolicyPortFilterArrayInput is an input type that accepts DdosPolicyPortFilterArray and DdosPolicyPortFilterArrayOutput values. You can construct a concrete instance of `DdosPolicyPortFilterArrayInput` via:

DdosPolicyPortFilterArray{ DdosPolicyPortFilterArgs{...} }

type DdosPolicyPortFilterArrayOutput

type DdosPolicyPortFilterArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyPortFilterArrayOutput) ElementType

func (DdosPolicyPortFilterArrayOutput) Index

func (DdosPolicyPortFilterArrayOutput) ToDdosPolicyPortFilterArrayOutput

func (o DdosPolicyPortFilterArrayOutput) ToDdosPolicyPortFilterArrayOutput() DdosPolicyPortFilterArrayOutput

func (DdosPolicyPortFilterArrayOutput) ToDdosPolicyPortFilterArrayOutputWithContext

func (o DdosPolicyPortFilterArrayOutput) ToDdosPolicyPortFilterArrayOutputWithContext(ctx context.Context) DdosPolicyPortFilterArrayOutput

type DdosPolicyPortFilterInput

type DdosPolicyPortFilterInput interface {
	pulumi.Input

	ToDdosPolicyPortFilterOutput() DdosPolicyPortFilterOutput
	ToDdosPolicyPortFilterOutputWithContext(context.Context) DdosPolicyPortFilterOutput
}

DdosPolicyPortFilterInput is an input type that accepts DdosPolicyPortFilterArgs and DdosPolicyPortFilterOutput values. You can construct a concrete instance of `DdosPolicyPortFilterInput` via:

DdosPolicyPortFilterArgs{...}

type DdosPolicyPortFilterOutput

type DdosPolicyPortFilterOutput struct{ *pulumi.OutputState }

func (DdosPolicyPortFilterOutput) Action

Action of port to take. Valid values: `drop`, `transmit`.

func (DdosPolicyPortFilterOutput) ElementType

func (DdosPolicyPortFilterOutput) ElementType() reflect.Type

func (DdosPolicyPortFilterOutput) EndPort

End port. Valid value ranges: (0~65535). It must be greater than `startPort`.

func (DdosPolicyPortFilterOutput) Kind

The type of forbidden port. Valid values: `0`, `1`, `2`. `0` for destination ports make effect, `1` for source ports make effect. `2` for both destination and source ports.

func (DdosPolicyPortFilterOutput) Protocol

Protocol. Valid values are `tcp`, `udp`, `icmp`, `all`.

func (DdosPolicyPortFilterOutput) StartPort

Start port. Valid value ranges: (0~65535).

func (DdosPolicyPortFilterOutput) ToDdosPolicyPortFilterOutput

func (o DdosPolicyPortFilterOutput) ToDdosPolicyPortFilterOutput() DdosPolicyPortFilterOutput

func (DdosPolicyPortFilterOutput) ToDdosPolicyPortFilterOutputWithContext

func (o DdosPolicyPortFilterOutput) ToDdosPolicyPortFilterOutputWithContext(ctx context.Context) DdosPolicyPortFilterOutput

type DdosPolicyState

type DdosPolicyState struct {
	// Black IP list.
	BlackIps pulumi.StringArrayInput
	// Create time of the DDoS policy.
	CreateTime pulumi.StringPtrInput
	// Option list of abnormal check of the DDos policy, should set at least one policy.
	DropOptions DdosPolicyDropOptionArrayInput
	// Name of the DDoS policy. Length should between 1 and 32.
	Name pulumi.StringPtrInput
	// Message filter options list.
	PacketFilters DdosPolicyPacketFilterArrayInput
	// Id of policy.
	PolicyId pulumi.StringPtrInput
	// Port limits of abnormal check of the DDos policy.
	PortFilters DdosPolicyPortFilterArrayInput
	// Type of the resource that the DDoS policy works for. Valid values: `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringPtrInput
	// Id of policy case that the DDoS policy works for.
	SceneId pulumi.StringPtrInput
	// Watermark policy options, and only support one watermark policy at most.
	WatermarkFilters DdosPolicyWatermarkFilterArrayInput
	// Watermark content.
	WatermarkKeys DdosPolicyWatermarkKeyArrayInput
	// White IP list.
	WhiteIps pulumi.StringArrayInput
}

func (DdosPolicyState) ElementType

func (DdosPolicyState) ElementType() reflect.Type

type DdosPolicyV2

type DdosPolicyV2 struct {
	pulumi.CustomResourceState

	// Port ACL policy for DDoS protection.
	Acls DdosPolicyV2AclArrayOutput `pulumi:"acls"`
	// DDoS-protected IP blacklist and whitelist.
	BlackWhiteIps DdosPolicyV2BlackWhiteIpArrayOutput `pulumi:"blackWhiteIps"`
	// Business of resource instance. bgpip indicates anti-anti-ip ip; bgp means exclusive package; bgp-multip means shared packet; net indicates anti-anti-ip pro version.
	Business pulumi.StringPtrOutput `pulumi:"business"`
	// AI protection switch, take the value [`on`, `off`].
	DdosAi pulumi.StringPtrOutput `pulumi:"ddosAi"`
	// DDoS connection suppression options.
	DdosConnectLimit DdosPolicyV2DdosConnectLimitPtrOutput `pulumi:"ddosConnectLimit"`
	// DDoS-protected area block configuration.
	DdosGeoIpBlockConfigs DdosPolicyV2DdosGeoIpBlockConfigArrayOutput `pulumi:"ddosGeoIpBlockConfigs"`
	// Protection class, value [`low`, `middle`, `high`].
	DdosLevel pulumi.StringPtrOutput `pulumi:"ddosLevel"`
	// Access speed limit configuration for DDoS protection.
	DdosSpeedLimitConfigs DdosPolicyV2DdosSpeedLimitConfigArrayOutput `pulumi:"ddosSpeedLimitConfigs"`
	// DDoS cleaning threshold, value[0, 60, 80, 100, 150, 200, 250, 300, 400, 500, 700, 1000]; When the value is set to 0, it means that the default value is adopted.
	DdosThreshold pulumi.IntPtrOutput `pulumi:"ddosThreshold"`
	// Feature filtering rules for DDoS protection.
	PacketFilters DdosPolicyV2PacketFilterArrayOutput `pulumi:"packetFilters"`
	// Protocol block configuration for DDoS protection.
	ProtocolBlockConfigs DdosPolicyV2ProtocolBlockConfigArrayOutput `pulumi:"protocolBlockConfigs"`
	// The ID of the resource instance.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// Water print config.
	WaterPrintConfigs DdosPolicyV2WaterPrintConfigArrayOutput `pulumi:"waterPrintConfigs"`
}

Use this resource to create dayu DDoS policy v2

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewDdosPolicyV2(ctx, "ddosV2", &Dayu.DdosPolicyV2Args{
			Acls: dayu.DdosPolicyV2AclArray{
				&dayu.DdosPolicyV2AclArgs{
					Action:          pulumi.String("transmit"),
					DPortEnd:        pulumi.Int(10),
					DPortStart:      pulumi.Int(1),
					ForwardProtocol: pulumi.String("all"),
					Priority:        pulumi.Int(9),
					SPortEnd:        pulumi.Int(20),
					SPortStart:      pulumi.Int(10),
				},
			},
			BlackWhiteIps: dayu.DdosPolicyV2BlackWhiteIpArray{
				&dayu.DdosPolicyV2BlackWhiteIpArgs{
					Ip:     pulumi.String("1.2.3.4"),
					IpType: pulumi.String("black"),
				},
			},
			Business: pulumi.String("bgpip"),
			DdosAi:   pulumi.String("on"),
			DdosConnectLimit: &dayu.DdosPolicyV2DdosConnectLimitArgs{
				BadConnThreshold: pulumi.Int(30),
				ConnTimeout:      pulumi.Int(30),
				DstConnLimit:     pulumi.Int(21),
				DstNewLimit:      pulumi.Int(20),
				NullConnEnable:   pulumi.Int(1),
				SdConnLimit:      pulumi.Int(11),
				SdNewLimit:       pulumi.Int(10),
				SynLimit:         pulumi.Int(20),
				SynRate:          pulumi.Int(10),
			},
			DdosGeoIpBlockConfigs: dayu.DdosPolicyV2DdosGeoIpBlockConfigArray{
				&dayu.DdosPolicyV2DdosGeoIpBlockConfigArgs{
					Action: pulumi.String("drop"),
					AreaLists: pulumi.IntArray{
						pulumi.Int(100001),
					},
					RegionType: pulumi.String("customized"),
				},
			},
			DdosLevel: pulumi.String("low"),
			DdosSpeedLimitConfigs: dayu.DdosPolicyV2DdosSpeedLimitConfigArray{
				&dayu.DdosPolicyV2DdosSpeedLimitConfigArgs{
					Bandwidth:    pulumi.Int(20),
					DstPortList:  pulumi.String("10"),
					Mode:         pulumi.Int(1),
					PacketRate:   pulumi.Int(10),
					ProtocolList: pulumi.String("TCP"),
				},
			},
			DdosThreshold: pulumi.Int(100),
			PacketFilters: dayu.DdosPolicyV2PacketFilterArray{
				&dayu.DdosPolicyV2PacketFilterArgs{
					Action:      pulumi.String("drop"),
					DPortEnd:    pulumi.Int(20),
					DPortStart:  pulumi.Int(20),
					Depth:       pulumi.Int(2),
					Depth2:      pulumi.Int(3),
					IsNot:       pulumi.Int(0),
					IsNot2:      pulumi.Int(0),
					MatchBegin:  pulumi.String("begin_l3"),
					MatchBegin2: pulumi.String("begin_l3"),
					MatchLogic:  pulumi.String("and"),
					MatchType:   pulumi.String("pcre"),
					MatchType2:  pulumi.String("pcre"),
					Offset:      pulumi.Int(1),
					Offset2:     pulumi.Int(2),
					PktlenMax:   pulumi.Int(30),
					PktlenMin:   pulumi.Int(30),
					Protocol:    pulumi.String("all"),
					SPortEnd:    pulumi.Int(10),
					SPortStart:  pulumi.Int(10),
					Str:         pulumi.String("12"),
					Str2:        pulumi.String("30"),
				},
			},
			ProtocolBlockConfigs: dayu.DdosPolicyV2ProtocolBlockConfigArray{
				&dayu.DdosPolicyV2ProtocolBlockConfigArgs{
					DropIcmp:  pulumi.Int(1),
					DropOther: pulumi.Int(0),
					DropTcp:   pulumi.Int(0),
					DropUdp:   pulumi.Int(0),
				},
			},
			ResourceId: pulumi.String("bgpip-000004xf"),
			WaterPrintConfigs: dayu.DdosPolicyV2WaterPrintConfigArray{
				&dayu.DdosPolicyV2WaterPrintConfigArgs{
					Listeners: dayu.DdosPolicyV2WaterPrintConfigListenerArray{
						&dayu.DdosPolicyV2WaterPrintConfigListenerArgs{
							ForwardProtocol: pulumi.String("TCP"),
							FrontendPort:    pulumi.Int(90),
							FrontendPortEnd: pulumi.Int(90),
						},
					},
					Offset:     pulumi.Int(1),
					OpenStatus: pulumi.Int(1),
					Verify:     pulumi.String("checkall"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetDdosPolicyV2

func GetDdosPolicyV2(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *DdosPolicyV2State, opts ...pulumi.ResourceOption) (*DdosPolicyV2, error)

GetDdosPolicyV2 gets an existing DdosPolicyV2 resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewDdosPolicyV2

func NewDdosPolicyV2(ctx *pulumi.Context,
	name string, args *DdosPolicyV2Args, opts ...pulumi.ResourceOption) (*DdosPolicyV2, error)

NewDdosPolicyV2 registers a new resource with the given unique name, arguments, and options.

func (*DdosPolicyV2) ElementType

func (*DdosPolicyV2) ElementType() reflect.Type

func (*DdosPolicyV2) ToDdosPolicyV2Output

func (i *DdosPolicyV2) ToDdosPolicyV2Output() DdosPolicyV2Output

func (*DdosPolicyV2) ToDdosPolicyV2OutputWithContext

func (i *DdosPolicyV2) ToDdosPolicyV2OutputWithContext(ctx context.Context) DdosPolicyV2Output

type DdosPolicyV2Acl

type DdosPolicyV2Acl struct {
	// Action, optional values: drop, transmit, forward.
	Action string `pulumi:"action"`
	// The destination port ends, and the value range is 0~65535.
	DPortEnd int `pulumi:"dPortEnd"`
	// The destination port starts, and the value range is 0~65535.
	DPortStart int `pulumi:"dPortStart"`
	// Protocol type, desirable values tcp, udp, all.
	ForwardProtocol string `pulumi:"forwardProtocol"`
	// Policy priority, the lower the number, the higher the level, the higher the rule matches, taking a value of 1-1000.Note: This field may return null, indicating that a valid value could not be retrieved.
	Priority int `pulumi:"priority"`
	// The source port ends, and the acceptable value ranges from 0 to 65535.
	SPortEnd int `pulumi:"sPortEnd"`
	// The source port starts, and the value range is 0~65535.
	SPortStart int `pulumi:"sPortStart"`
}

type DdosPolicyV2AclArgs

type DdosPolicyV2AclArgs struct {
	// Action, optional values: drop, transmit, forward.
	Action pulumi.StringInput `pulumi:"action"`
	// The destination port ends, and the value range is 0~65535.
	DPortEnd pulumi.IntInput `pulumi:"dPortEnd"`
	// The destination port starts, and the value range is 0~65535.
	DPortStart pulumi.IntInput `pulumi:"dPortStart"`
	// Protocol type, desirable values tcp, udp, all.
	ForwardProtocol pulumi.StringInput `pulumi:"forwardProtocol"`
	// Policy priority, the lower the number, the higher the level, the higher the rule matches, taking a value of 1-1000.Note: This field may return null, indicating that a valid value could not be retrieved.
	Priority pulumi.IntInput `pulumi:"priority"`
	// The source port ends, and the acceptable value ranges from 0 to 65535.
	SPortEnd pulumi.IntInput `pulumi:"sPortEnd"`
	// The source port starts, and the value range is 0~65535.
	SPortStart pulumi.IntInput `pulumi:"sPortStart"`
}

func (DdosPolicyV2AclArgs) ElementType

func (DdosPolicyV2AclArgs) ElementType() reflect.Type

func (DdosPolicyV2AclArgs) ToDdosPolicyV2AclOutput

func (i DdosPolicyV2AclArgs) ToDdosPolicyV2AclOutput() DdosPolicyV2AclOutput

func (DdosPolicyV2AclArgs) ToDdosPolicyV2AclOutputWithContext

func (i DdosPolicyV2AclArgs) ToDdosPolicyV2AclOutputWithContext(ctx context.Context) DdosPolicyV2AclOutput

type DdosPolicyV2AclArray

type DdosPolicyV2AclArray []DdosPolicyV2AclInput

func (DdosPolicyV2AclArray) ElementType

func (DdosPolicyV2AclArray) ElementType() reflect.Type

func (DdosPolicyV2AclArray) ToDdosPolicyV2AclArrayOutput

func (i DdosPolicyV2AclArray) ToDdosPolicyV2AclArrayOutput() DdosPolicyV2AclArrayOutput

func (DdosPolicyV2AclArray) ToDdosPolicyV2AclArrayOutputWithContext

func (i DdosPolicyV2AclArray) ToDdosPolicyV2AclArrayOutputWithContext(ctx context.Context) DdosPolicyV2AclArrayOutput

type DdosPolicyV2AclArrayInput

type DdosPolicyV2AclArrayInput interface {
	pulumi.Input

	ToDdosPolicyV2AclArrayOutput() DdosPolicyV2AclArrayOutput
	ToDdosPolicyV2AclArrayOutputWithContext(context.Context) DdosPolicyV2AclArrayOutput
}

DdosPolicyV2AclArrayInput is an input type that accepts DdosPolicyV2AclArray and DdosPolicyV2AclArrayOutput values. You can construct a concrete instance of `DdosPolicyV2AclArrayInput` via:

DdosPolicyV2AclArray{ DdosPolicyV2AclArgs{...} }

type DdosPolicyV2AclArrayOutput

type DdosPolicyV2AclArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2AclArrayOutput) ElementType

func (DdosPolicyV2AclArrayOutput) ElementType() reflect.Type

func (DdosPolicyV2AclArrayOutput) Index

func (DdosPolicyV2AclArrayOutput) ToDdosPolicyV2AclArrayOutput

func (o DdosPolicyV2AclArrayOutput) ToDdosPolicyV2AclArrayOutput() DdosPolicyV2AclArrayOutput

func (DdosPolicyV2AclArrayOutput) ToDdosPolicyV2AclArrayOutputWithContext

func (o DdosPolicyV2AclArrayOutput) ToDdosPolicyV2AclArrayOutputWithContext(ctx context.Context) DdosPolicyV2AclArrayOutput

type DdosPolicyV2AclInput

type DdosPolicyV2AclInput interface {
	pulumi.Input

	ToDdosPolicyV2AclOutput() DdosPolicyV2AclOutput
	ToDdosPolicyV2AclOutputWithContext(context.Context) DdosPolicyV2AclOutput
}

DdosPolicyV2AclInput is an input type that accepts DdosPolicyV2AclArgs and DdosPolicyV2AclOutput values. You can construct a concrete instance of `DdosPolicyV2AclInput` via:

DdosPolicyV2AclArgs{...}

type DdosPolicyV2AclOutput

type DdosPolicyV2AclOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2AclOutput) Action

Action, optional values: drop, transmit, forward.

func (DdosPolicyV2AclOutput) DPortEnd

func (o DdosPolicyV2AclOutput) DPortEnd() pulumi.IntOutput

The destination port ends, and the value range is 0~65535.

func (DdosPolicyV2AclOutput) DPortStart

func (o DdosPolicyV2AclOutput) DPortStart() pulumi.IntOutput

The destination port starts, and the value range is 0~65535.

func (DdosPolicyV2AclOutput) ElementType

func (DdosPolicyV2AclOutput) ElementType() reflect.Type

func (DdosPolicyV2AclOutput) ForwardProtocol

func (o DdosPolicyV2AclOutput) ForwardProtocol() pulumi.StringOutput

Protocol type, desirable values tcp, udp, all.

func (DdosPolicyV2AclOutput) Priority

func (o DdosPolicyV2AclOutput) Priority() pulumi.IntOutput

Policy priority, the lower the number, the higher the level, the higher the rule matches, taking a value of 1-1000.Note: This field may return null, indicating that a valid value could not be retrieved.

func (DdosPolicyV2AclOutput) SPortEnd

func (o DdosPolicyV2AclOutput) SPortEnd() pulumi.IntOutput

The source port ends, and the acceptable value ranges from 0 to 65535.

func (DdosPolicyV2AclOutput) SPortStart

func (o DdosPolicyV2AclOutput) SPortStart() pulumi.IntOutput

The source port starts, and the value range is 0~65535.

func (DdosPolicyV2AclOutput) ToDdosPolicyV2AclOutput

func (o DdosPolicyV2AclOutput) ToDdosPolicyV2AclOutput() DdosPolicyV2AclOutput

func (DdosPolicyV2AclOutput) ToDdosPolicyV2AclOutputWithContext

func (o DdosPolicyV2AclOutput) ToDdosPolicyV2AclOutputWithContext(ctx context.Context) DdosPolicyV2AclOutput

type DdosPolicyV2Args

type DdosPolicyV2Args struct {
	// Port ACL policy for DDoS protection.
	Acls DdosPolicyV2AclArrayInput
	// DDoS-protected IP blacklist and whitelist.
	BlackWhiteIps DdosPolicyV2BlackWhiteIpArrayInput
	// Business of resource instance. bgpip indicates anti-anti-ip ip; bgp means exclusive package; bgp-multip means shared packet; net indicates anti-anti-ip pro version.
	Business pulumi.StringPtrInput
	// AI protection switch, take the value [`on`, `off`].
	DdosAi pulumi.StringPtrInput
	// DDoS connection suppression options.
	DdosConnectLimit DdosPolicyV2DdosConnectLimitPtrInput
	// DDoS-protected area block configuration.
	DdosGeoIpBlockConfigs DdosPolicyV2DdosGeoIpBlockConfigArrayInput
	// Protection class, value [`low`, `middle`, `high`].
	DdosLevel pulumi.StringPtrInput
	// Access speed limit configuration for DDoS protection.
	DdosSpeedLimitConfigs DdosPolicyV2DdosSpeedLimitConfigArrayInput
	// DDoS cleaning threshold, value[0, 60, 80, 100, 150, 200, 250, 300, 400, 500, 700, 1000]; When the value is set to 0, it means that the default value is adopted.
	DdosThreshold pulumi.IntPtrInput
	// Feature filtering rules for DDoS protection.
	PacketFilters DdosPolicyV2PacketFilterArrayInput
	// Protocol block configuration for DDoS protection.
	ProtocolBlockConfigs DdosPolicyV2ProtocolBlockConfigArrayInput
	// The ID of the resource instance.
	ResourceId pulumi.StringInput
	// Water print config.
	WaterPrintConfigs DdosPolicyV2WaterPrintConfigArrayInput
}

The set of arguments for constructing a DdosPolicyV2 resource.

func (DdosPolicyV2Args) ElementType

func (DdosPolicyV2Args) ElementType() reflect.Type

type DdosPolicyV2Array

type DdosPolicyV2Array []DdosPolicyV2Input

func (DdosPolicyV2Array) ElementType

func (DdosPolicyV2Array) ElementType() reflect.Type

func (DdosPolicyV2Array) ToDdosPolicyV2ArrayOutput

func (i DdosPolicyV2Array) ToDdosPolicyV2ArrayOutput() DdosPolicyV2ArrayOutput

func (DdosPolicyV2Array) ToDdosPolicyV2ArrayOutputWithContext

func (i DdosPolicyV2Array) ToDdosPolicyV2ArrayOutputWithContext(ctx context.Context) DdosPolicyV2ArrayOutput

type DdosPolicyV2ArrayInput

type DdosPolicyV2ArrayInput interface {
	pulumi.Input

	ToDdosPolicyV2ArrayOutput() DdosPolicyV2ArrayOutput
	ToDdosPolicyV2ArrayOutputWithContext(context.Context) DdosPolicyV2ArrayOutput
}

DdosPolicyV2ArrayInput is an input type that accepts DdosPolicyV2Array and DdosPolicyV2ArrayOutput values. You can construct a concrete instance of `DdosPolicyV2ArrayInput` via:

DdosPolicyV2Array{ DdosPolicyV2Args{...} }

type DdosPolicyV2ArrayOutput

type DdosPolicyV2ArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2ArrayOutput) ElementType

func (DdosPolicyV2ArrayOutput) ElementType() reflect.Type

func (DdosPolicyV2ArrayOutput) Index

func (DdosPolicyV2ArrayOutput) ToDdosPolicyV2ArrayOutput

func (o DdosPolicyV2ArrayOutput) ToDdosPolicyV2ArrayOutput() DdosPolicyV2ArrayOutput

func (DdosPolicyV2ArrayOutput) ToDdosPolicyV2ArrayOutputWithContext

func (o DdosPolicyV2ArrayOutput) ToDdosPolicyV2ArrayOutputWithContext(ctx context.Context) DdosPolicyV2ArrayOutput

type DdosPolicyV2BlackWhiteIp

type DdosPolicyV2BlackWhiteIp struct {
	// Ip of resource instance.
	Ip string `pulumi:"ip"`
	// IP type, value [`black`(blacklist IP), `white` (whitelist IP)].
	IpType string `pulumi:"ipType"`
}

type DdosPolicyV2BlackWhiteIpArgs

type DdosPolicyV2BlackWhiteIpArgs struct {
	// Ip of resource instance.
	Ip pulumi.StringInput `pulumi:"ip"`
	// IP type, value [`black`(blacklist IP), `white` (whitelist IP)].
	IpType pulumi.StringInput `pulumi:"ipType"`
}

func (DdosPolicyV2BlackWhiteIpArgs) ElementType

func (DdosPolicyV2BlackWhiteIpArgs) ToDdosPolicyV2BlackWhiteIpOutput

func (i DdosPolicyV2BlackWhiteIpArgs) ToDdosPolicyV2BlackWhiteIpOutput() DdosPolicyV2BlackWhiteIpOutput

func (DdosPolicyV2BlackWhiteIpArgs) ToDdosPolicyV2BlackWhiteIpOutputWithContext

func (i DdosPolicyV2BlackWhiteIpArgs) ToDdosPolicyV2BlackWhiteIpOutputWithContext(ctx context.Context) DdosPolicyV2BlackWhiteIpOutput

type DdosPolicyV2BlackWhiteIpArray

type DdosPolicyV2BlackWhiteIpArray []DdosPolicyV2BlackWhiteIpInput

func (DdosPolicyV2BlackWhiteIpArray) ElementType

func (DdosPolicyV2BlackWhiteIpArray) ToDdosPolicyV2BlackWhiteIpArrayOutput

func (i DdosPolicyV2BlackWhiteIpArray) ToDdosPolicyV2BlackWhiteIpArrayOutput() DdosPolicyV2BlackWhiteIpArrayOutput

func (DdosPolicyV2BlackWhiteIpArray) ToDdosPolicyV2BlackWhiteIpArrayOutputWithContext

func (i DdosPolicyV2BlackWhiteIpArray) ToDdosPolicyV2BlackWhiteIpArrayOutputWithContext(ctx context.Context) DdosPolicyV2BlackWhiteIpArrayOutput

type DdosPolicyV2BlackWhiteIpArrayInput

type DdosPolicyV2BlackWhiteIpArrayInput interface {
	pulumi.Input

	ToDdosPolicyV2BlackWhiteIpArrayOutput() DdosPolicyV2BlackWhiteIpArrayOutput
	ToDdosPolicyV2BlackWhiteIpArrayOutputWithContext(context.Context) DdosPolicyV2BlackWhiteIpArrayOutput
}

DdosPolicyV2BlackWhiteIpArrayInput is an input type that accepts DdosPolicyV2BlackWhiteIpArray and DdosPolicyV2BlackWhiteIpArrayOutput values. You can construct a concrete instance of `DdosPolicyV2BlackWhiteIpArrayInput` via:

DdosPolicyV2BlackWhiteIpArray{ DdosPolicyV2BlackWhiteIpArgs{...} }

type DdosPolicyV2BlackWhiteIpArrayOutput

type DdosPolicyV2BlackWhiteIpArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2BlackWhiteIpArrayOutput) ElementType

func (DdosPolicyV2BlackWhiteIpArrayOutput) Index

func (DdosPolicyV2BlackWhiteIpArrayOutput) ToDdosPolicyV2BlackWhiteIpArrayOutput

func (o DdosPolicyV2BlackWhiteIpArrayOutput) ToDdosPolicyV2BlackWhiteIpArrayOutput() DdosPolicyV2BlackWhiteIpArrayOutput

func (DdosPolicyV2BlackWhiteIpArrayOutput) ToDdosPolicyV2BlackWhiteIpArrayOutputWithContext

func (o DdosPolicyV2BlackWhiteIpArrayOutput) ToDdosPolicyV2BlackWhiteIpArrayOutputWithContext(ctx context.Context) DdosPolicyV2BlackWhiteIpArrayOutput

type DdosPolicyV2BlackWhiteIpInput

type DdosPolicyV2BlackWhiteIpInput interface {
	pulumi.Input

	ToDdosPolicyV2BlackWhiteIpOutput() DdosPolicyV2BlackWhiteIpOutput
	ToDdosPolicyV2BlackWhiteIpOutputWithContext(context.Context) DdosPolicyV2BlackWhiteIpOutput
}

DdosPolicyV2BlackWhiteIpInput is an input type that accepts DdosPolicyV2BlackWhiteIpArgs and DdosPolicyV2BlackWhiteIpOutput values. You can construct a concrete instance of `DdosPolicyV2BlackWhiteIpInput` via:

DdosPolicyV2BlackWhiteIpArgs{...}

type DdosPolicyV2BlackWhiteIpOutput

type DdosPolicyV2BlackWhiteIpOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2BlackWhiteIpOutput) ElementType

func (DdosPolicyV2BlackWhiteIpOutput) Ip

Ip of resource instance.

func (DdosPolicyV2BlackWhiteIpOutput) IpType

IP type, value [`black`(blacklist IP), `white` (whitelist IP)].

func (DdosPolicyV2BlackWhiteIpOutput) ToDdosPolicyV2BlackWhiteIpOutput

func (o DdosPolicyV2BlackWhiteIpOutput) ToDdosPolicyV2BlackWhiteIpOutput() DdosPolicyV2BlackWhiteIpOutput

func (DdosPolicyV2BlackWhiteIpOutput) ToDdosPolicyV2BlackWhiteIpOutputWithContext

func (o DdosPolicyV2BlackWhiteIpOutput) ToDdosPolicyV2BlackWhiteIpOutputWithContext(ctx context.Context) DdosPolicyV2BlackWhiteIpOutput

type DdosPolicyV2DdosConnectLimit

type DdosPolicyV2DdosConnectLimit struct {
	// Based on connection suppression trigger threshold, value range [0,4294967295].
	BadConnThreshold int `pulumi:"badConnThreshold"`
	// Abnormal connection detection condition, connection timeout, value range [0,65535].
	ConnTimeout int `pulumi:"connTimeout"`
	// Concurrent connection control based on destination IP+ destination port.
	DstConnLimit int `pulumi:"dstConnLimit"`
	// Limit on the number of news per second based on the destination IP.
	DstNewLimit int `pulumi:"dstNewLimit"`
	// Abnormal connection detection conditions, empty connection guard switch, value range[0,1].
	NullConnEnable int `pulumi:"nullConnEnable"`
	// Concurrent connection control based on source IP + destination IP.
	SdConnLimit int `pulumi:"sdConnLimit"`
	// The limit on the number of news per second based on source IP + destination IP.
	SdNewLimit int `pulumi:"sdNewLimit"`
	// Anomaly connection detection condition, syn threshold, value range [0,100].
	SynLimit int `pulumi:"synLimit"`
	// Anomalous connection detection condition, percentage of syn ack, value range [0,100].
	SynRate int `pulumi:"synRate"`
}

type DdosPolicyV2DdosConnectLimitArgs

type DdosPolicyV2DdosConnectLimitArgs struct {
	// Based on connection suppression trigger threshold, value range [0,4294967295].
	BadConnThreshold pulumi.IntInput `pulumi:"badConnThreshold"`
	// Abnormal connection detection condition, connection timeout, value range [0,65535].
	ConnTimeout pulumi.IntInput `pulumi:"connTimeout"`
	// Concurrent connection control based on destination IP+ destination port.
	DstConnLimit pulumi.IntInput `pulumi:"dstConnLimit"`
	// Limit on the number of news per second based on the destination IP.
	DstNewLimit pulumi.IntInput `pulumi:"dstNewLimit"`
	// Abnormal connection detection conditions, empty connection guard switch, value range[0,1].
	NullConnEnable pulumi.IntInput `pulumi:"nullConnEnable"`
	// Concurrent connection control based on source IP + destination IP.
	SdConnLimit pulumi.IntInput `pulumi:"sdConnLimit"`
	// The limit on the number of news per second based on source IP + destination IP.
	SdNewLimit pulumi.IntInput `pulumi:"sdNewLimit"`
	// Anomaly connection detection condition, syn threshold, value range [0,100].
	SynLimit pulumi.IntInput `pulumi:"synLimit"`
	// Anomalous connection detection condition, percentage of syn ack, value range [0,100].
	SynRate pulumi.IntInput `pulumi:"synRate"`
}

func (DdosPolicyV2DdosConnectLimitArgs) ElementType

func (DdosPolicyV2DdosConnectLimitArgs) ToDdosPolicyV2DdosConnectLimitOutput

func (i DdosPolicyV2DdosConnectLimitArgs) ToDdosPolicyV2DdosConnectLimitOutput() DdosPolicyV2DdosConnectLimitOutput

func (DdosPolicyV2DdosConnectLimitArgs) ToDdosPolicyV2DdosConnectLimitOutputWithContext

func (i DdosPolicyV2DdosConnectLimitArgs) ToDdosPolicyV2DdosConnectLimitOutputWithContext(ctx context.Context) DdosPolicyV2DdosConnectLimitOutput

func (DdosPolicyV2DdosConnectLimitArgs) ToDdosPolicyV2DdosConnectLimitPtrOutput

func (i DdosPolicyV2DdosConnectLimitArgs) ToDdosPolicyV2DdosConnectLimitPtrOutput() DdosPolicyV2DdosConnectLimitPtrOutput

func (DdosPolicyV2DdosConnectLimitArgs) ToDdosPolicyV2DdosConnectLimitPtrOutputWithContext

func (i DdosPolicyV2DdosConnectLimitArgs) ToDdosPolicyV2DdosConnectLimitPtrOutputWithContext(ctx context.Context) DdosPolicyV2DdosConnectLimitPtrOutput

type DdosPolicyV2DdosConnectLimitInput

type DdosPolicyV2DdosConnectLimitInput interface {
	pulumi.Input

	ToDdosPolicyV2DdosConnectLimitOutput() DdosPolicyV2DdosConnectLimitOutput
	ToDdosPolicyV2DdosConnectLimitOutputWithContext(context.Context) DdosPolicyV2DdosConnectLimitOutput
}

DdosPolicyV2DdosConnectLimitInput is an input type that accepts DdosPolicyV2DdosConnectLimitArgs and DdosPolicyV2DdosConnectLimitOutput values. You can construct a concrete instance of `DdosPolicyV2DdosConnectLimitInput` via:

DdosPolicyV2DdosConnectLimitArgs{...}

type DdosPolicyV2DdosConnectLimitOutput

type DdosPolicyV2DdosConnectLimitOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2DdosConnectLimitOutput) BadConnThreshold

Based on connection suppression trigger threshold, value range [0,4294967295].

func (DdosPolicyV2DdosConnectLimitOutput) ConnTimeout

Abnormal connection detection condition, connection timeout, value range [0,65535].

func (DdosPolicyV2DdosConnectLimitOutput) DstConnLimit

Concurrent connection control based on destination IP+ destination port.

func (DdosPolicyV2DdosConnectLimitOutput) DstNewLimit

Limit on the number of news per second based on the destination IP.

func (DdosPolicyV2DdosConnectLimitOutput) ElementType

func (DdosPolicyV2DdosConnectLimitOutput) NullConnEnable

Abnormal connection detection conditions, empty connection guard switch, value range[0,1].

func (DdosPolicyV2DdosConnectLimitOutput) SdConnLimit

Concurrent connection control based on source IP + destination IP.

func (DdosPolicyV2DdosConnectLimitOutput) SdNewLimit

The limit on the number of news per second based on source IP + destination IP.

func (DdosPolicyV2DdosConnectLimitOutput) SynLimit

Anomaly connection detection condition, syn threshold, value range [0,100].

func (DdosPolicyV2DdosConnectLimitOutput) SynRate

Anomalous connection detection condition, percentage of syn ack, value range [0,100].

func (DdosPolicyV2DdosConnectLimitOutput) ToDdosPolicyV2DdosConnectLimitOutput

func (o DdosPolicyV2DdosConnectLimitOutput) ToDdosPolicyV2DdosConnectLimitOutput() DdosPolicyV2DdosConnectLimitOutput

func (DdosPolicyV2DdosConnectLimitOutput) ToDdosPolicyV2DdosConnectLimitOutputWithContext

func (o DdosPolicyV2DdosConnectLimitOutput) ToDdosPolicyV2DdosConnectLimitOutputWithContext(ctx context.Context) DdosPolicyV2DdosConnectLimitOutput

func (DdosPolicyV2DdosConnectLimitOutput) ToDdosPolicyV2DdosConnectLimitPtrOutput

func (o DdosPolicyV2DdosConnectLimitOutput) ToDdosPolicyV2DdosConnectLimitPtrOutput() DdosPolicyV2DdosConnectLimitPtrOutput

func (DdosPolicyV2DdosConnectLimitOutput) ToDdosPolicyV2DdosConnectLimitPtrOutputWithContext

func (o DdosPolicyV2DdosConnectLimitOutput) ToDdosPolicyV2DdosConnectLimitPtrOutputWithContext(ctx context.Context) DdosPolicyV2DdosConnectLimitPtrOutput

type DdosPolicyV2DdosConnectLimitPtrInput

type DdosPolicyV2DdosConnectLimitPtrInput interface {
	pulumi.Input

	ToDdosPolicyV2DdosConnectLimitPtrOutput() DdosPolicyV2DdosConnectLimitPtrOutput
	ToDdosPolicyV2DdosConnectLimitPtrOutputWithContext(context.Context) DdosPolicyV2DdosConnectLimitPtrOutput
}

DdosPolicyV2DdosConnectLimitPtrInput is an input type that accepts DdosPolicyV2DdosConnectLimitArgs, DdosPolicyV2DdosConnectLimitPtr and DdosPolicyV2DdosConnectLimitPtrOutput values. You can construct a concrete instance of `DdosPolicyV2DdosConnectLimitPtrInput` via:

        DdosPolicyV2DdosConnectLimitArgs{...}

or:

        nil

type DdosPolicyV2DdosConnectLimitPtrOutput

type DdosPolicyV2DdosConnectLimitPtrOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2DdosConnectLimitPtrOutput) BadConnThreshold

Based on connection suppression trigger threshold, value range [0,4294967295].

func (DdosPolicyV2DdosConnectLimitPtrOutput) ConnTimeout

Abnormal connection detection condition, connection timeout, value range [0,65535].

func (DdosPolicyV2DdosConnectLimitPtrOutput) DstConnLimit

Concurrent connection control based on destination IP+ destination port.

func (DdosPolicyV2DdosConnectLimitPtrOutput) DstNewLimit

Limit on the number of news per second based on the destination IP.

func (DdosPolicyV2DdosConnectLimitPtrOutput) Elem

func (DdosPolicyV2DdosConnectLimitPtrOutput) ElementType

func (DdosPolicyV2DdosConnectLimitPtrOutput) NullConnEnable

Abnormal connection detection conditions, empty connection guard switch, value range[0,1].

func (DdosPolicyV2DdosConnectLimitPtrOutput) SdConnLimit

Concurrent connection control based on source IP + destination IP.

func (DdosPolicyV2DdosConnectLimitPtrOutput) SdNewLimit

The limit on the number of news per second based on source IP + destination IP.

func (DdosPolicyV2DdosConnectLimitPtrOutput) SynLimit

Anomaly connection detection condition, syn threshold, value range [0,100].

func (DdosPolicyV2DdosConnectLimitPtrOutput) SynRate

Anomalous connection detection condition, percentage of syn ack, value range [0,100].

func (DdosPolicyV2DdosConnectLimitPtrOutput) ToDdosPolicyV2DdosConnectLimitPtrOutput

func (o DdosPolicyV2DdosConnectLimitPtrOutput) ToDdosPolicyV2DdosConnectLimitPtrOutput() DdosPolicyV2DdosConnectLimitPtrOutput

func (DdosPolicyV2DdosConnectLimitPtrOutput) ToDdosPolicyV2DdosConnectLimitPtrOutputWithContext

func (o DdosPolicyV2DdosConnectLimitPtrOutput) ToDdosPolicyV2DdosConnectLimitPtrOutputWithContext(ctx context.Context) DdosPolicyV2DdosConnectLimitPtrOutput

type DdosPolicyV2DdosGeoIpBlockConfig

type DdosPolicyV2DdosGeoIpBlockConfig struct {
	// Block action, take the value [`drop`, `trans`].
	Action string `pulumi:"action"`
	// When the RegionType is customized, the AreaList must be filled in, and a maximum of 128 must be filled in.
	AreaLists []int `pulumi:"areaLists"`
	// Zone type, value [oversea (overseas),china (domestic),customized (custom region)].
	RegionType string `pulumi:"regionType"`
}

type DdosPolicyV2DdosGeoIpBlockConfigArgs

type DdosPolicyV2DdosGeoIpBlockConfigArgs struct {
	// Block action, take the value [`drop`, `trans`].
	Action pulumi.StringInput `pulumi:"action"`
	// When the RegionType is customized, the AreaList must be filled in, and a maximum of 128 must be filled in.
	AreaLists pulumi.IntArrayInput `pulumi:"areaLists"`
	// Zone type, value [oversea (overseas),china (domestic),customized (custom region)].
	RegionType pulumi.StringInput `pulumi:"regionType"`
}

func (DdosPolicyV2DdosGeoIpBlockConfigArgs) ElementType

func (DdosPolicyV2DdosGeoIpBlockConfigArgs) ToDdosPolicyV2DdosGeoIpBlockConfigOutput

func (i DdosPolicyV2DdosGeoIpBlockConfigArgs) ToDdosPolicyV2DdosGeoIpBlockConfigOutput() DdosPolicyV2DdosGeoIpBlockConfigOutput

func (DdosPolicyV2DdosGeoIpBlockConfigArgs) ToDdosPolicyV2DdosGeoIpBlockConfigOutputWithContext

func (i DdosPolicyV2DdosGeoIpBlockConfigArgs) ToDdosPolicyV2DdosGeoIpBlockConfigOutputWithContext(ctx context.Context) DdosPolicyV2DdosGeoIpBlockConfigOutput

type DdosPolicyV2DdosGeoIpBlockConfigArray

type DdosPolicyV2DdosGeoIpBlockConfigArray []DdosPolicyV2DdosGeoIpBlockConfigInput

func (DdosPolicyV2DdosGeoIpBlockConfigArray) ElementType

func (DdosPolicyV2DdosGeoIpBlockConfigArray) ToDdosPolicyV2DdosGeoIpBlockConfigArrayOutput

func (i DdosPolicyV2DdosGeoIpBlockConfigArray) ToDdosPolicyV2DdosGeoIpBlockConfigArrayOutput() DdosPolicyV2DdosGeoIpBlockConfigArrayOutput

func (DdosPolicyV2DdosGeoIpBlockConfigArray) ToDdosPolicyV2DdosGeoIpBlockConfigArrayOutputWithContext

func (i DdosPolicyV2DdosGeoIpBlockConfigArray) ToDdosPolicyV2DdosGeoIpBlockConfigArrayOutputWithContext(ctx context.Context) DdosPolicyV2DdosGeoIpBlockConfigArrayOutput

type DdosPolicyV2DdosGeoIpBlockConfigArrayInput

type DdosPolicyV2DdosGeoIpBlockConfigArrayInput interface {
	pulumi.Input

	ToDdosPolicyV2DdosGeoIpBlockConfigArrayOutput() DdosPolicyV2DdosGeoIpBlockConfigArrayOutput
	ToDdosPolicyV2DdosGeoIpBlockConfigArrayOutputWithContext(context.Context) DdosPolicyV2DdosGeoIpBlockConfigArrayOutput
}

DdosPolicyV2DdosGeoIpBlockConfigArrayInput is an input type that accepts DdosPolicyV2DdosGeoIpBlockConfigArray and DdosPolicyV2DdosGeoIpBlockConfigArrayOutput values. You can construct a concrete instance of `DdosPolicyV2DdosGeoIpBlockConfigArrayInput` via:

DdosPolicyV2DdosGeoIpBlockConfigArray{ DdosPolicyV2DdosGeoIpBlockConfigArgs{...} }

type DdosPolicyV2DdosGeoIpBlockConfigArrayOutput

type DdosPolicyV2DdosGeoIpBlockConfigArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2DdosGeoIpBlockConfigArrayOutput) ElementType

func (DdosPolicyV2DdosGeoIpBlockConfigArrayOutput) Index

func (DdosPolicyV2DdosGeoIpBlockConfigArrayOutput) ToDdosPolicyV2DdosGeoIpBlockConfigArrayOutput

func (o DdosPolicyV2DdosGeoIpBlockConfigArrayOutput) ToDdosPolicyV2DdosGeoIpBlockConfigArrayOutput() DdosPolicyV2DdosGeoIpBlockConfigArrayOutput

func (DdosPolicyV2DdosGeoIpBlockConfigArrayOutput) ToDdosPolicyV2DdosGeoIpBlockConfigArrayOutputWithContext

func (o DdosPolicyV2DdosGeoIpBlockConfigArrayOutput) ToDdosPolicyV2DdosGeoIpBlockConfigArrayOutputWithContext(ctx context.Context) DdosPolicyV2DdosGeoIpBlockConfigArrayOutput

type DdosPolicyV2DdosGeoIpBlockConfigInput

type DdosPolicyV2DdosGeoIpBlockConfigInput interface {
	pulumi.Input

	ToDdosPolicyV2DdosGeoIpBlockConfigOutput() DdosPolicyV2DdosGeoIpBlockConfigOutput
	ToDdosPolicyV2DdosGeoIpBlockConfigOutputWithContext(context.Context) DdosPolicyV2DdosGeoIpBlockConfigOutput
}

DdosPolicyV2DdosGeoIpBlockConfigInput is an input type that accepts DdosPolicyV2DdosGeoIpBlockConfigArgs and DdosPolicyV2DdosGeoIpBlockConfigOutput values. You can construct a concrete instance of `DdosPolicyV2DdosGeoIpBlockConfigInput` via:

DdosPolicyV2DdosGeoIpBlockConfigArgs{...}

type DdosPolicyV2DdosGeoIpBlockConfigOutput

type DdosPolicyV2DdosGeoIpBlockConfigOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2DdosGeoIpBlockConfigOutput) Action

Block action, take the value [`drop`, `trans`].

func (DdosPolicyV2DdosGeoIpBlockConfigOutput) AreaLists

When the RegionType is customized, the AreaList must be filled in, and a maximum of 128 must be filled in.

func (DdosPolicyV2DdosGeoIpBlockConfigOutput) ElementType

func (DdosPolicyV2DdosGeoIpBlockConfigOutput) RegionType

Zone type, value [oversea (overseas),china (domestic),customized (custom region)].

func (DdosPolicyV2DdosGeoIpBlockConfigOutput) ToDdosPolicyV2DdosGeoIpBlockConfigOutput

func (o DdosPolicyV2DdosGeoIpBlockConfigOutput) ToDdosPolicyV2DdosGeoIpBlockConfigOutput() DdosPolicyV2DdosGeoIpBlockConfigOutput

func (DdosPolicyV2DdosGeoIpBlockConfigOutput) ToDdosPolicyV2DdosGeoIpBlockConfigOutputWithContext

func (o DdosPolicyV2DdosGeoIpBlockConfigOutput) ToDdosPolicyV2DdosGeoIpBlockConfigOutputWithContext(ctx context.Context) DdosPolicyV2DdosGeoIpBlockConfigOutput

type DdosPolicyV2DdosSpeedLimitConfig

type DdosPolicyV2DdosSpeedLimitConfig struct {
	// Bandwidth bps.
	Bandwidth int `pulumi:"bandwidth"`
	// List of port ranges, up to 8, multiple; Separated, the range is represented with -; this port range must be filled in; fill in the style 1:0-65535, style 2:80; 443; 1000-2000.
	DstPortList string `pulumi:"dstPortList"`
	// Speed limit mode, take the value [1 (speed limit based on source IP),2 (speed limit based on destination port)].
	Mode int `pulumi:"mode"`
	// Packet rate pps.
	PacketRate int `pulumi:"packetRate"`
	// IP protocol numbers, take the value[ ALL (all protocols),TCP (tcp protocol),UDP (udp protocol),SMP (smp protocol),1; 2-100 (custom protocol number range, up to 8)].
	ProtocolList string `pulumi:"protocolList"`
}

type DdosPolicyV2DdosSpeedLimitConfigArgs

type DdosPolicyV2DdosSpeedLimitConfigArgs struct {
	// Bandwidth bps.
	Bandwidth pulumi.IntInput `pulumi:"bandwidth"`
	// List of port ranges, up to 8, multiple; Separated, the range is represented with -; this port range must be filled in; fill in the style 1:0-65535, style 2:80; 443; 1000-2000.
	DstPortList pulumi.StringInput `pulumi:"dstPortList"`
	// Speed limit mode, take the value [1 (speed limit based on source IP),2 (speed limit based on destination port)].
	Mode pulumi.IntInput `pulumi:"mode"`
	// Packet rate pps.
	PacketRate pulumi.IntInput `pulumi:"packetRate"`
	// IP protocol numbers, take the value[ ALL (all protocols),TCP (tcp protocol),UDP (udp protocol),SMP (smp protocol),1; 2-100 (custom protocol number range, up to 8)].
	ProtocolList pulumi.StringInput `pulumi:"protocolList"`
}

func (DdosPolicyV2DdosSpeedLimitConfigArgs) ElementType

func (DdosPolicyV2DdosSpeedLimitConfigArgs) ToDdosPolicyV2DdosSpeedLimitConfigOutput

func (i DdosPolicyV2DdosSpeedLimitConfigArgs) ToDdosPolicyV2DdosSpeedLimitConfigOutput() DdosPolicyV2DdosSpeedLimitConfigOutput

func (DdosPolicyV2DdosSpeedLimitConfigArgs) ToDdosPolicyV2DdosSpeedLimitConfigOutputWithContext

func (i DdosPolicyV2DdosSpeedLimitConfigArgs) ToDdosPolicyV2DdosSpeedLimitConfigOutputWithContext(ctx context.Context) DdosPolicyV2DdosSpeedLimitConfigOutput

type DdosPolicyV2DdosSpeedLimitConfigArray

type DdosPolicyV2DdosSpeedLimitConfigArray []DdosPolicyV2DdosSpeedLimitConfigInput

func (DdosPolicyV2DdosSpeedLimitConfigArray) ElementType

func (DdosPolicyV2DdosSpeedLimitConfigArray) ToDdosPolicyV2DdosSpeedLimitConfigArrayOutput

func (i DdosPolicyV2DdosSpeedLimitConfigArray) ToDdosPolicyV2DdosSpeedLimitConfigArrayOutput() DdosPolicyV2DdosSpeedLimitConfigArrayOutput

func (DdosPolicyV2DdosSpeedLimitConfigArray) ToDdosPolicyV2DdosSpeedLimitConfigArrayOutputWithContext

func (i DdosPolicyV2DdosSpeedLimitConfigArray) ToDdosPolicyV2DdosSpeedLimitConfigArrayOutputWithContext(ctx context.Context) DdosPolicyV2DdosSpeedLimitConfigArrayOutput

type DdosPolicyV2DdosSpeedLimitConfigArrayInput

type DdosPolicyV2DdosSpeedLimitConfigArrayInput interface {
	pulumi.Input

	ToDdosPolicyV2DdosSpeedLimitConfigArrayOutput() DdosPolicyV2DdosSpeedLimitConfigArrayOutput
	ToDdosPolicyV2DdosSpeedLimitConfigArrayOutputWithContext(context.Context) DdosPolicyV2DdosSpeedLimitConfigArrayOutput
}

DdosPolicyV2DdosSpeedLimitConfigArrayInput is an input type that accepts DdosPolicyV2DdosSpeedLimitConfigArray and DdosPolicyV2DdosSpeedLimitConfigArrayOutput values. You can construct a concrete instance of `DdosPolicyV2DdosSpeedLimitConfigArrayInput` via:

DdosPolicyV2DdosSpeedLimitConfigArray{ DdosPolicyV2DdosSpeedLimitConfigArgs{...} }

type DdosPolicyV2DdosSpeedLimitConfigArrayOutput

type DdosPolicyV2DdosSpeedLimitConfigArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2DdosSpeedLimitConfigArrayOutput) ElementType

func (DdosPolicyV2DdosSpeedLimitConfigArrayOutput) Index

func (DdosPolicyV2DdosSpeedLimitConfigArrayOutput) ToDdosPolicyV2DdosSpeedLimitConfigArrayOutput

func (o DdosPolicyV2DdosSpeedLimitConfigArrayOutput) ToDdosPolicyV2DdosSpeedLimitConfigArrayOutput() DdosPolicyV2DdosSpeedLimitConfigArrayOutput

func (DdosPolicyV2DdosSpeedLimitConfigArrayOutput) ToDdosPolicyV2DdosSpeedLimitConfigArrayOutputWithContext

func (o DdosPolicyV2DdosSpeedLimitConfigArrayOutput) ToDdosPolicyV2DdosSpeedLimitConfigArrayOutputWithContext(ctx context.Context) DdosPolicyV2DdosSpeedLimitConfigArrayOutput

type DdosPolicyV2DdosSpeedLimitConfigInput

type DdosPolicyV2DdosSpeedLimitConfigInput interface {
	pulumi.Input

	ToDdosPolicyV2DdosSpeedLimitConfigOutput() DdosPolicyV2DdosSpeedLimitConfigOutput
	ToDdosPolicyV2DdosSpeedLimitConfigOutputWithContext(context.Context) DdosPolicyV2DdosSpeedLimitConfigOutput
}

DdosPolicyV2DdosSpeedLimitConfigInput is an input type that accepts DdosPolicyV2DdosSpeedLimitConfigArgs and DdosPolicyV2DdosSpeedLimitConfigOutput values. You can construct a concrete instance of `DdosPolicyV2DdosSpeedLimitConfigInput` via:

DdosPolicyV2DdosSpeedLimitConfigArgs{...}

type DdosPolicyV2DdosSpeedLimitConfigOutput

type DdosPolicyV2DdosSpeedLimitConfigOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2DdosSpeedLimitConfigOutput) Bandwidth

Bandwidth bps.

func (DdosPolicyV2DdosSpeedLimitConfigOutput) DstPortList

List of port ranges, up to 8, multiple; Separated, the range is represented with -; this port range must be filled in; fill in the style 1:0-65535, style 2:80; 443; 1000-2000.

func (DdosPolicyV2DdosSpeedLimitConfigOutput) ElementType

func (DdosPolicyV2DdosSpeedLimitConfigOutput) Mode

Speed limit mode, take the value [1 (speed limit based on source IP),2 (speed limit based on destination port)].

func (DdosPolicyV2DdosSpeedLimitConfigOutput) PacketRate

Packet rate pps.

func (DdosPolicyV2DdosSpeedLimitConfigOutput) ProtocolList

IP protocol numbers, take the value[ ALL (all protocols),TCP (tcp protocol),UDP (udp protocol),SMP (smp protocol),1; 2-100 (custom protocol number range, up to 8)].

func (DdosPolicyV2DdosSpeedLimitConfigOutput) ToDdosPolicyV2DdosSpeedLimitConfigOutput

func (o DdosPolicyV2DdosSpeedLimitConfigOutput) ToDdosPolicyV2DdosSpeedLimitConfigOutput() DdosPolicyV2DdosSpeedLimitConfigOutput

func (DdosPolicyV2DdosSpeedLimitConfigOutput) ToDdosPolicyV2DdosSpeedLimitConfigOutputWithContext

func (o DdosPolicyV2DdosSpeedLimitConfigOutput) ToDdosPolicyV2DdosSpeedLimitConfigOutputWithContext(ctx context.Context) DdosPolicyV2DdosSpeedLimitConfigOutput

type DdosPolicyV2Input

type DdosPolicyV2Input interface {
	pulumi.Input

	ToDdosPolicyV2Output() DdosPolicyV2Output
	ToDdosPolicyV2OutputWithContext(ctx context.Context) DdosPolicyV2Output
}

type DdosPolicyV2Map

type DdosPolicyV2Map map[string]DdosPolicyV2Input

func (DdosPolicyV2Map) ElementType

func (DdosPolicyV2Map) ElementType() reflect.Type

func (DdosPolicyV2Map) ToDdosPolicyV2MapOutput

func (i DdosPolicyV2Map) ToDdosPolicyV2MapOutput() DdosPolicyV2MapOutput

func (DdosPolicyV2Map) ToDdosPolicyV2MapOutputWithContext

func (i DdosPolicyV2Map) ToDdosPolicyV2MapOutputWithContext(ctx context.Context) DdosPolicyV2MapOutput

type DdosPolicyV2MapInput

type DdosPolicyV2MapInput interface {
	pulumi.Input

	ToDdosPolicyV2MapOutput() DdosPolicyV2MapOutput
	ToDdosPolicyV2MapOutputWithContext(context.Context) DdosPolicyV2MapOutput
}

DdosPolicyV2MapInput is an input type that accepts DdosPolicyV2Map and DdosPolicyV2MapOutput values. You can construct a concrete instance of `DdosPolicyV2MapInput` via:

DdosPolicyV2Map{ "key": DdosPolicyV2Args{...} }

type DdosPolicyV2MapOutput

type DdosPolicyV2MapOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2MapOutput) ElementType

func (DdosPolicyV2MapOutput) ElementType() reflect.Type

func (DdosPolicyV2MapOutput) MapIndex

func (DdosPolicyV2MapOutput) ToDdosPolicyV2MapOutput

func (o DdosPolicyV2MapOutput) ToDdosPolicyV2MapOutput() DdosPolicyV2MapOutput

func (DdosPolicyV2MapOutput) ToDdosPolicyV2MapOutputWithContext

func (o DdosPolicyV2MapOutput) ToDdosPolicyV2MapOutputWithContext(ctx context.Context) DdosPolicyV2MapOutput

type DdosPolicyV2Output

type DdosPolicyV2Output struct{ *pulumi.OutputState }

func (DdosPolicyV2Output) Acls

Port ACL policy for DDoS protection.

func (DdosPolicyV2Output) BlackWhiteIps

DDoS-protected IP blacklist and whitelist.

func (DdosPolicyV2Output) Business

Business of resource instance. bgpip indicates anti-anti-ip ip; bgp means exclusive package; bgp-multip means shared packet; net indicates anti-anti-ip pro version.

func (DdosPolicyV2Output) DdosAi

AI protection switch, take the value [`on`, `off`].

func (DdosPolicyV2Output) DdosConnectLimit

DDoS connection suppression options.

func (DdosPolicyV2Output) DdosGeoIpBlockConfigs

DDoS-protected area block configuration.

func (DdosPolicyV2Output) DdosLevel

Protection class, value [`low`, `middle`, `high`].

func (DdosPolicyV2Output) DdosSpeedLimitConfigs

Access speed limit configuration for DDoS protection.

func (DdosPolicyV2Output) DdosThreshold

func (o DdosPolicyV2Output) DdosThreshold() pulumi.IntPtrOutput

DDoS cleaning threshold, value[0, 60, 80, 100, 150, 200, 250, 300, 400, 500, 700, 1000]; When the value is set to 0, it means that the default value is adopted.

func (DdosPolicyV2Output) ElementType

func (DdosPolicyV2Output) ElementType() reflect.Type

func (DdosPolicyV2Output) PacketFilters

Feature filtering rules for DDoS protection.

func (DdosPolicyV2Output) ProtocolBlockConfigs

Protocol block configuration for DDoS protection.

func (DdosPolicyV2Output) ResourceId

func (o DdosPolicyV2Output) ResourceId() pulumi.StringOutput

The ID of the resource instance.

func (DdosPolicyV2Output) ToDdosPolicyV2Output

func (o DdosPolicyV2Output) ToDdosPolicyV2Output() DdosPolicyV2Output

func (DdosPolicyV2Output) ToDdosPolicyV2OutputWithContext

func (o DdosPolicyV2Output) ToDdosPolicyV2OutputWithContext(ctx context.Context) DdosPolicyV2Output

func (DdosPolicyV2Output) WaterPrintConfigs added in v0.1.8

Water print config.

type DdosPolicyV2PacketFilter

type DdosPolicyV2PacketFilter struct {
	// Action, take the value [drop,transmit,drop_black (discard and black out),drop_rst (Interception),drop_black_rst (intercept and block),forward].
	Action string `pulumi:"action"`
	// The end destination port, take the value 1~65535, which must be greater than or equal to the starting destination port.
	DPortEnd int `pulumi:"dPortEnd"`
	// From the destination port, take the value 0~65535.
	DPortStart int `pulumi:"dPortStart"`
	// Detection depth from the detection position, value [0,1500].
	Depth int `pulumi:"depth"`
	// Second detection depth starting from the second detection position, value [0,1500].
	Depth2 int `pulumi:"depth2"`
	// Whether to include the detected value, take the value [0 (included),1 (not included)].
	IsNot int `pulumi:"isNot"`
	// Whether the second detection contains the detected value, the value [0 (included),1 (not included)].
	IsNot2 int `pulumi:"isNot2"`
	// Detect position, take the value [beginL3 (IP header),begin_l4 (TCP/UDP header),begin_l5 (T load), noMatch (mismatch)].
	MatchBegin string `pulumi:"matchBegin"`
	// The second detection position. take the value [beginL3 (IP header),begin_l4 (TCP/UDP header),begin_l5 (T load), noMatch (mismatch)].
	MatchBegin2 string `pulumi:"matchBegin2"`
	// When there is a second detection condition, the and/or relationship with the first detection condition, takes the value [And (and relationship),none (fill in this value when there is no second detection condition)].
	MatchLogic string `pulumi:"matchLogic"`
	// Detection type, value [sunday (keyword),pcre (regular expression)].
	MatchType string `pulumi:"matchType"`
	// The second type of detection, takes the value [sunday (keyword),pcre (regular expression)].
	MatchType2 string `pulumi:"matchType2"`
	// Offset from detection position, value range [0, Depth].
	Offset int `pulumi:"offset"`
	// Offset from the second detection position, value range [0,Depth2].
	Offset2 int `pulumi:"offset2"`
	// The maximum message length, taken from 1 to 1500, must be greater than or equal to the minimum message length.
	PktlenMax int `pulumi:"pktlenMax"`
	// Minimum message length, 1-1500.
	PktlenMin int `pulumi:"pktlenMin"`
	// Protocol, value [tcp udp icmp all].
	Protocol string `pulumi:"protocol"`
	// End source port, take the value 1~65535, must be greater than or equal to the starting source port.
	SPortEnd int `pulumi:"sPortEnd"`
	// Start the source port, take the value 0~65535.
	SPortStart int `pulumi:"sPortStart"`
	// Detect values, key strings or regular expressions, take the value [When the detection type is sunday, please fill in the string or hexadecimal bytecode, for example 13233 corresponds to the hexadecimal bytecode of the string `123`;When the detection type is pcre, please fill in the regular expression string;].
	Str string `pulumi:"str"`
	// The second detection value, the key string or regular expression, takes the value [When the detection type is sunday, please fill in the string or hexadecimal bytecode, for example 13233 corresponds to the hexadecimal bytecode of the string `123`;When the detection type is pcre, please fill in the regular expression string;].
	Str2 string `pulumi:"str2"`
}

type DdosPolicyV2PacketFilterArgs

type DdosPolicyV2PacketFilterArgs struct {
	// Action, take the value [drop,transmit,drop_black (discard and black out),drop_rst (Interception),drop_black_rst (intercept and block),forward].
	Action pulumi.StringInput `pulumi:"action"`
	// The end destination port, take the value 1~65535, which must be greater than or equal to the starting destination port.
	DPortEnd pulumi.IntInput `pulumi:"dPortEnd"`
	// From the destination port, take the value 0~65535.
	DPortStart pulumi.IntInput `pulumi:"dPortStart"`
	// Detection depth from the detection position, value [0,1500].
	Depth pulumi.IntInput `pulumi:"depth"`
	// Second detection depth starting from the second detection position, value [0,1500].
	Depth2 pulumi.IntInput `pulumi:"depth2"`
	// Whether to include the detected value, take the value [0 (included),1 (not included)].
	IsNot pulumi.IntInput `pulumi:"isNot"`
	// Whether the second detection contains the detected value, the value [0 (included),1 (not included)].
	IsNot2 pulumi.IntInput `pulumi:"isNot2"`
	// Detect position, take the value [beginL3 (IP header),begin_l4 (TCP/UDP header),begin_l5 (T load), noMatch (mismatch)].
	MatchBegin pulumi.StringInput `pulumi:"matchBegin"`
	// The second detection position. take the value [beginL3 (IP header),begin_l4 (TCP/UDP header),begin_l5 (T load), noMatch (mismatch)].
	MatchBegin2 pulumi.StringInput `pulumi:"matchBegin2"`
	// When there is a second detection condition, the and/or relationship with the first detection condition, takes the value [And (and relationship),none (fill in this value when there is no second detection condition)].
	MatchLogic pulumi.StringInput `pulumi:"matchLogic"`
	// Detection type, value [sunday (keyword),pcre (regular expression)].
	MatchType pulumi.StringInput `pulumi:"matchType"`
	// The second type of detection, takes the value [sunday (keyword),pcre (regular expression)].
	MatchType2 pulumi.StringInput `pulumi:"matchType2"`
	// Offset from detection position, value range [0, Depth].
	Offset pulumi.IntInput `pulumi:"offset"`
	// Offset from the second detection position, value range [0,Depth2].
	Offset2 pulumi.IntInput `pulumi:"offset2"`
	// The maximum message length, taken from 1 to 1500, must be greater than or equal to the minimum message length.
	PktlenMax pulumi.IntInput `pulumi:"pktlenMax"`
	// Minimum message length, 1-1500.
	PktlenMin pulumi.IntInput `pulumi:"pktlenMin"`
	// Protocol, value [tcp udp icmp all].
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// End source port, take the value 1~65535, must be greater than or equal to the starting source port.
	SPortEnd pulumi.IntInput `pulumi:"sPortEnd"`
	// Start the source port, take the value 0~65535.
	SPortStart pulumi.IntInput `pulumi:"sPortStart"`
	// Detect values, key strings or regular expressions, take the value [When the detection type is sunday, please fill in the string or hexadecimal bytecode, for example 13233 corresponds to the hexadecimal bytecode of the string `123`;When the detection type is pcre, please fill in the regular expression string;].
	Str pulumi.StringInput `pulumi:"str"`
	// The second detection value, the key string or regular expression, takes the value [When the detection type is sunday, please fill in the string or hexadecimal bytecode, for example 13233 corresponds to the hexadecimal bytecode of the string `123`;When the detection type is pcre, please fill in the regular expression string;].
	Str2 pulumi.StringInput `pulumi:"str2"`
}

func (DdosPolicyV2PacketFilterArgs) ElementType

func (DdosPolicyV2PacketFilterArgs) ToDdosPolicyV2PacketFilterOutput

func (i DdosPolicyV2PacketFilterArgs) ToDdosPolicyV2PacketFilterOutput() DdosPolicyV2PacketFilterOutput

func (DdosPolicyV2PacketFilterArgs) ToDdosPolicyV2PacketFilterOutputWithContext

func (i DdosPolicyV2PacketFilterArgs) ToDdosPolicyV2PacketFilterOutputWithContext(ctx context.Context) DdosPolicyV2PacketFilterOutput

type DdosPolicyV2PacketFilterArray

type DdosPolicyV2PacketFilterArray []DdosPolicyV2PacketFilterInput

func (DdosPolicyV2PacketFilterArray) ElementType

func (DdosPolicyV2PacketFilterArray) ToDdosPolicyV2PacketFilterArrayOutput

func (i DdosPolicyV2PacketFilterArray) ToDdosPolicyV2PacketFilterArrayOutput() DdosPolicyV2PacketFilterArrayOutput

func (DdosPolicyV2PacketFilterArray) ToDdosPolicyV2PacketFilterArrayOutputWithContext

func (i DdosPolicyV2PacketFilterArray) ToDdosPolicyV2PacketFilterArrayOutputWithContext(ctx context.Context) DdosPolicyV2PacketFilterArrayOutput

type DdosPolicyV2PacketFilterArrayInput

type DdosPolicyV2PacketFilterArrayInput interface {
	pulumi.Input

	ToDdosPolicyV2PacketFilterArrayOutput() DdosPolicyV2PacketFilterArrayOutput
	ToDdosPolicyV2PacketFilterArrayOutputWithContext(context.Context) DdosPolicyV2PacketFilterArrayOutput
}

DdosPolicyV2PacketFilterArrayInput is an input type that accepts DdosPolicyV2PacketFilterArray and DdosPolicyV2PacketFilterArrayOutput values. You can construct a concrete instance of `DdosPolicyV2PacketFilterArrayInput` via:

DdosPolicyV2PacketFilterArray{ DdosPolicyV2PacketFilterArgs{...} }

type DdosPolicyV2PacketFilterArrayOutput

type DdosPolicyV2PacketFilterArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2PacketFilterArrayOutput) ElementType

func (DdosPolicyV2PacketFilterArrayOutput) Index

func (DdosPolicyV2PacketFilterArrayOutput) ToDdosPolicyV2PacketFilterArrayOutput

func (o DdosPolicyV2PacketFilterArrayOutput) ToDdosPolicyV2PacketFilterArrayOutput() DdosPolicyV2PacketFilterArrayOutput

func (DdosPolicyV2PacketFilterArrayOutput) ToDdosPolicyV2PacketFilterArrayOutputWithContext

func (o DdosPolicyV2PacketFilterArrayOutput) ToDdosPolicyV2PacketFilterArrayOutputWithContext(ctx context.Context) DdosPolicyV2PacketFilterArrayOutput

type DdosPolicyV2PacketFilterInput

type DdosPolicyV2PacketFilterInput interface {
	pulumi.Input

	ToDdosPolicyV2PacketFilterOutput() DdosPolicyV2PacketFilterOutput
	ToDdosPolicyV2PacketFilterOutputWithContext(context.Context) DdosPolicyV2PacketFilterOutput
}

DdosPolicyV2PacketFilterInput is an input type that accepts DdosPolicyV2PacketFilterArgs and DdosPolicyV2PacketFilterOutput values. You can construct a concrete instance of `DdosPolicyV2PacketFilterInput` via:

DdosPolicyV2PacketFilterArgs{...}

type DdosPolicyV2PacketFilterOutput

type DdosPolicyV2PacketFilterOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2PacketFilterOutput) Action

Action, take the value [drop,transmit,drop_black (discard and black out),drop_rst (Interception),drop_black_rst (intercept and block),forward].

func (DdosPolicyV2PacketFilterOutput) DPortEnd

The end destination port, take the value 1~65535, which must be greater than or equal to the starting destination port.

func (DdosPolicyV2PacketFilterOutput) DPortStart

From the destination port, take the value 0~65535.

func (DdosPolicyV2PacketFilterOutput) Depth

Detection depth from the detection position, value [0,1500].

func (DdosPolicyV2PacketFilterOutput) Depth2

Second detection depth starting from the second detection position, value [0,1500].

func (DdosPolicyV2PacketFilterOutput) ElementType

func (DdosPolicyV2PacketFilterOutput) IsNot

Whether to include the detected value, take the value [0 (included),1 (not included)].

func (DdosPolicyV2PacketFilterOutput) IsNot2

Whether the second detection contains the detected value, the value [0 (included),1 (not included)].

func (DdosPolicyV2PacketFilterOutput) MatchBegin

Detect position, take the value [beginL3 (IP header),begin_l4 (TCP/UDP header),begin_l5 (T load), noMatch (mismatch)].

func (DdosPolicyV2PacketFilterOutput) MatchBegin2

The second detection position. take the value [beginL3 (IP header),begin_l4 (TCP/UDP header),begin_l5 (T load), noMatch (mismatch)].

func (DdosPolicyV2PacketFilterOutput) MatchLogic

When there is a second detection condition, the and/or relationship with the first detection condition, takes the value [And (and relationship),none (fill in this value when there is no second detection condition)].

func (DdosPolicyV2PacketFilterOutput) MatchType

Detection type, value [sunday (keyword),pcre (regular expression)].

func (DdosPolicyV2PacketFilterOutput) MatchType2

The second type of detection, takes the value [sunday (keyword),pcre (regular expression)].

func (DdosPolicyV2PacketFilterOutput) Offset

Offset from detection position, value range [0, Depth].

func (DdosPolicyV2PacketFilterOutput) Offset2

Offset from the second detection position, value range [0,Depth2].

func (DdosPolicyV2PacketFilterOutput) PktlenMax

The maximum message length, taken from 1 to 1500, must be greater than or equal to the minimum message length.

func (DdosPolicyV2PacketFilterOutput) PktlenMin

Minimum message length, 1-1500.

func (DdosPolicyV2PacketFilterOutput) Protocol

Protocol, value [tcp udp icmp all].

func (DdosPolicyV2PacketFilterOutput) SPortEnd

End source port, take the value 1~65535, must be greater than or equal to the starting source port.

func (DdosPolicyV2PacketFilterOutput) SPortStart

Start the source port, take the value 0~65535.

func (DdosPolicyV2PacketFilterOutput) Str

Detect values, key strings or regular expressions, take the value [When the detection type is sunday, please fill in the string or hexadecimal bytecode, for example 13233 corresponds to the hexadecimal bytecode of the string `123`;When the detection type is pcre, please fill in the regular expression string;].

func (DdosPolicyV2PacketFilterOutput) Str2

The second detection value, the key string or regular expression, takes the value [When the detection type is sunday, please fill in the string or hexadecimal bytecode, for example 13233 corresponds to the hexadecimal bytecode of the string `123`;When the detection type is pcre, please fill in the regular expression string;].

func (DdosPolicyV2PacketFilterOutput) ToDdosPolicyV2PacketFilterOutput

func (o DdosPolicyV2PacketFilterOutput) ToDdosPolicyV2PacketFilterOutput() DdosPolicyV2PacketFilterOutput

func (DdosPolicyV2PacketFilterOutput) ToDdosPolicyV2PacketFilterOutputWithContext

func (o DdosPolicyV2PacketFilterOutput) ToDdosPolicyV2PacketFilterOutputWithContext(ctx context.Context) DdosPolicyV2PacketFilterOutput

type DdosPolicyV2ProtocolBlockConfig

type DdosPolicyV2ProtocolBlockConfig struct {
	// ICMP block, value [0 (block off), 1 (block on)].
	DropIcmp int `pulumi:"dropIcmp"`
	// Other block, value [0 (block off), 1 (block on)].
	DropOther int `pulumi:"dropOther"`
	// TCP block, value [0 (block off), 1 (block on)].
	DropTcp int `pulumi:"dropTcp"`
	// UDP block, value [0 (block off), 1 (block on)].
	DropUdp int `pulumi:"dropUdp"`
}

type DdosPolicyV2ProtocolBlockConfigArgs

type DdosPolicyV2ProtocolBlockConfigArgs struct {
	// ICMP block, value [0 (block off), 1 (block on)].
	DropIcmp pulumi.IntInput `pulumi:"dropIcmp"`
	// Other block, value [0 (block off), 1 (block on)].
	DropOther pulumi.IntInput `pulumi:"dropOther"`
	// TCP block, value [0 (block off), 1 (block on)].
	DropTcp pulumi.IntInput `pulumi:"dropTcp"`
	// UDP block, value [0 (block off), 1 (block on)].
	DropUdp pulumi.IntInput `pulumi:"dropUdp"`
}

func (DdosPolicyV2ProtocolBlockConfigArgs) ElementType

func (DdosPolicyV2ProtocolBlockConfigArgs) ToDdosPolicyV2ProtocolBlockConfigOutput

func (i DdosPolicyV2ProtocolBlockConfigArgs) ToDdosPolicyV2ProtocolBlockConfigOutput() DdosPolicyV2ProtocolBlockConfigOutput

func (DdosPolicyV2ProtocolBlockConfigArgs) ToDdosPolicyV2ProtocolBlockConfigOutputWithContext

func (i DdosPolicyV2ProtocolBlockConfigArgs) ToDdosPolicyV2ProtocolBlockConfigOutputWithContext(ctx context.Context) DdosPolicyV2ProtocolBlockConfigOutput

type DdosPolicyV2ProtocolBlockConfigArray

type DdosPolicyV2ProtocolBlockConfigArray []DdosPolicyV2ProtocolBlockConfigInput

func (DdosPolicyV2ProtocolBlockConfigArray) ElementType

func (DdosPolicyV2ProtocolBlockConfigArray) ToDdosPolicyV2ProtocolBlockConfigArrayOutput

func (i DdosPolicyV2ProtocolBlockConfigArray) ToDdosPolicyV2ProtocolBlockConfigArrayOutput() DdosPolicyV2ProtocolBlockConfigArrayOutput

func (DdosPolicyV2ProtocolBlockConfigArray) ToDdosPolicyV2ProtocolBlockConfigArrayOutputWithContext

func (i DdosPolicyV2ProtocolBlockConfigArray) ToDdosPolicyV2ProtocolBlockConfigArrayOutputWithContext(ctx context.Context) DdosPolicyV2ProtocolBlockConfigArrayOutput

type DdosPolicyV2ProtocolBlockConfigArrayInput

type DdosPolicyV2ProtocolBlockConfigArrayInput interface {
	pulumi.Input

	ToDdosPolicyV2ProtocolBlockConfigArrayOutput() DdosPolicyV2ProtocolBlockConfigArrayOutput
	ToDdosPolicyV2ProtocolBlockConfigArrayOutputWithContext(context.Context) DdosPolicyV2ProtocolBlockConfigArrayOutput
}

DdosPolicyV2ProtocolBlockConfigArrayInput is an input type that accepts DdosPolicyV2ProtocolBlockConfigArray and DdosPolicyV2ProtocolBlockConfigArrayOutput values. You can construct a concrete instance of `DdosPolicyV2ProtocolBlockConfigArrayInput` via:

DdosPolicyV2ProtocolBlockConfigArray{ DdosPolicyV2ProtocolBlockConfigArgs{...} }

type DdosPolicyV2ProtocolBlockConfigArrayOutput

type DdosPolicyV2ProtocolBlockConfigArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2ProtocolBlockConfigArrayOutput) ElementType

func (DdosPolicyV2ProtocolBlockConfigArrayOutput) Index

func (DdosPolicyV2ProtocolBlockConfigArrayOutput) ToDdosPolicyV2ProtocolBlockConfigArrayOutput

func (o DdosPolicyV2ProtocolBlockConfigArrayOutput) ToDdosPolicyV2ProtocolBlockConfigArrayOutput() DdosPolicyV2ProtocolBlockConfigArrayOutput

func (DdosPolicyV2ProtocolBlockConfigArrayOutput) ToDdosPolicyV2ProtocolBlockConfigArrayOutputWithContext

func (o DdosPolicyV2ProtocolBlockConfigArrayOutput) ToDdosPolicyV2ProtocolBlockConfigArrayOutputWithContext(ctx context.Context) DdosPolicyV2ProtocolBlockConfigArrayOutput

type DdosPolicyV2ProtocolBlockConfigInput

type DdosPolicyV2ProtocolBlockConfigInput interface {
	pulumi.Input

	ToDdosPolicyV2ProtocolBlockConfigOutput() DdosPolicyV2ProtocolBlockConfigOutput
	ToDdosPolicyV2ProtocolBlockConfigOutputWithContext(context.Context) DdosPolicyV2ProtocolBlockConfigOutput
}

DdosPolicyV2ProtocolBlockConfigInput is an input type that accepts DdosPolicyV2ProtocolBlockConfigArgs and DdosPolicyV2ProtocolBlockConfigOutput values. You can construct a concrete instance of `DdosPolicyV2ProtocolBlockConfigInput` via:

DdosPolicyV2ProtocolBlockConfigArgs{...}

type DdosPolicyV2ProtocolBlockConfigOutput

type DdosPolicyV2ProtocolBlockConfigOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2ProtocolBlockConfigOutput) DropIcmp

ICMP block, value [0 (block off), 1 (block on)].

func (DdosPolicyV2ProtocolBlockConfigOutput) DropOther

Other block, value [0 (block off), 1 (block on)].

func (DdosPolicyV2ProtocolBlockConfigOutput) DropTcp

TCP block, value [0 (block off), 1 (block on)].

func (DdosPolicyV2ProtocolBlockConfigOutput) DropUdp

UDP block, value [0 (block off), 1 (block on)].

func (DdosPolicyV2ProtocolBlockConfigOutput) ElementType

func (DdosPolicyV2ProtocolBlockConfigOutput) ToDdosPolicyV2ProtocolBlockConfigOutput

func (o DdosPolicyV2ProtocolBlockConfigOutput) ToDdosPolicyV2ProtocolBlockConfigOutput() DdosPolicyV2ProtocolBlockConfigOutput

func (DdosPolicyV2ProtocolBlockConfigOutput) ToDdosPolicyV2ProtocolBlockConfigOutputWithContext

func (o DdosPolicyV2ProtocolBlockConfigOutput) ToDdosPolicyV2ProtocolBlockConfigOutputWithContext(ctx context.Context) DdosPolicyV2ProtocolBlockConfigOutput

type DdosPolicyV2State

type DdosPolicyV2State struct {
	// Port ACL policy for DDoS protection.
	Acls DdosPolicyV2AclArrayInput
	// DDoS-protected IP blacklist and whitelist.
	BlackWhiteIps DdosPolicyV2BlackWhiteIpArrayInput
	// Business of resource instance. bgpip indicates anti-anti-ip ip; bgp means exclusive package; bgp-multip means shared packet; net indicates anti-anti-ip pro version.
	Business pulumi.StringPtrInput
	// AI protection switch, take the value [`on`, `off`].
	DdosAi pulumi.StringPtrInput
	// DDoS connection suppression options.
	DdosConnectLimit DdosPolicyV2DdosConnectLimitPtrInput
	// DDoS-protected area block configuration.
	DdosGeoIpBlockConfigs DdosPolicyV2DdosGeoIpBlockConfigArrayInput
	// Protection class, value [`low`, `middle`, `high`].
	DdosLevel pulumi.StringPtrInput
	// Access speed limit configuration for DDoS protection.
	DdosSpeedLimitConfigs DdosPolicyV2DdosSpeedLimitConfigArrayInput
	// DDoS cleaning threshold, value[0, 60, 80, 100, 150, 200, 250, 300, 400, 500, 700, 1000]; When the value is set to 0, it means that the default value is adopted.
	DdosThreshold pulumi.IntPtrInput
	// Feature filtering rules for DDoS protection.
	PacketFilters DdosPolicyV2PacketFilterArrayInput
	// Protocol block configuration for DDoS protection.
	ProtocolBlockConfigs DdosPolicyV2ProtocolBlockConfigArrayInput
	// The ID of the resource instance.
	ResourceId pulumi.StringPtrInput
	// Water print config.
	WaterPrintConfigs DdosPolicyV2WaterPrintConfigArrayInput
}

func (DdosPolicyV2State) ElementType

func (DdosPolicyV2State) ElementType() reflect.Type

type DdosPolicyV2WaterPrintConfig added in v0.1.8

type DdosPolicyV2WaterPrintConfig struct {
	// List of forwarding listeners to which the watermark belongs.
	Listeners []DdosPolicyV2WaterPrintConfigListener `pulumi:"listeners"`
	// Watermark offset, value range: [0-100].
	Offset int `pulumi:"offset"`
	// Whether it is enabled, value [0 (manual open), 1 (immediate operation)].
	OpenStatus int `pulumi:"openStatus"`
	// Watermark check mode, value [`checkall`(normal mode), `shortfpcheckall`(simplified mode)].
	Verify string `pulumi:"verify"`
}

type DdosPolicyV2WaterPrintConfigArgs added in v0.1.8

type DdosPolicyV2WaterPrintConfigArgs struct {
	// List of forwarding listeners to which the watermark belongs.
	Listeners DdosPolicyV2WaterPrintConfigListenerArrayInput `pulumi:"listeners"`
	// Watermark offset, value range: [0-100].
	Offset pulumi.IntInput `pulumi:"offset"`
	// Whether it is enabled, value [0 (manual open), 1 (immediate operation)].
	OpenStatus pulumi.IntInput `pulumi:"openStatus"`
	// Watermark check mode, value [`checkall`(normal mode), `shortfpcheckall`(simplified mode)].
	Verify pulumi.StringInput `pulumi:"verify"`
}

func (DdosPolicyV2WaterPrintConfigArgs) ElementType added in v0.1.8

func (DdosPolicyV2WaterPrintConfigArgs) ToDdosPolicyV2WaterPrintConfigOutput added in v0.1.8

func (i DdosPolicyV2WaterPrintConfigArgs) ToDdosPolicyV2WaterPrintConfigOutput() DdosPolicyV2WaterPrintConfigOutput

func (DdosPolicyV2WaterPrintConfigArgs) ToDdosPolicyV2WaterPrintConfigOutputWithContext added in v0.1.8

func (i DdosPolicyV2WaterPrintConfigArgs) ToDdosPolicyV2WaterPrintConfigOutputWithContext(ctx context.Context) DdosPolicyV2WaterPrintConfigOutput

type DdosPolicyV2WaterPrintConfigArray added in v0.1.8

type DdosPolicyV2WaterPrintConfigArray []DdosPolicyV2WaterPrintConfigInput

func (DdosPolicyV2WaterPrintConfigArray) ElementType added in v0.1.8

func (DdosPolicyV2WaterPrintConfigArray) ToDdosPolicyV2WaterPrintConfigArrayOutput added in v0.1.8

func (i DdosPolicyV2WaterPrintConfigArray) ToDdosPolicyV2WaterPrintConfigArrayOutput() DdosPolicyV2WaterPrintConfigArrayOutput

func (DdosPolicyV2WaterPrintConfigArray) ToDdosPolicyV2WaterPrintConfigArrayOutputWithContext added in v0.1.8

func (i DdosPolicyV2WaterPrintConfigArray) ToDdosPolicyV2WaterPrintConfigArrayOutputWithContext(ctx context.Context) DdosPolicyV2WaterPrintConfigArrayOutput

type DdosPolicyV2WaterPrintConfigArrayInput added in v0.1.8

type DdosPolicyV2WaterPrintConfigArrayInput interface {
	pulumi.Input

	ToDdosPolicyV2WaterPrintConfigArrayOutput() DdosPolicyV2WaterPrintConfigArrayOutput
	ToDdosPolicyV2WaterPrintConfigArrayOutputWithContext(context.Context) DdosPolicyV2WaterPrintConfigArrayOutput
}

DdosPolicyV2WaterPrintConfigArrayInput is an input type that accepts DdosPolicyV2WaterPrintConfigArray and DdosPolicyV2WaterPrintConfigArrayOutput values. You can construct a concrete instance of `DdosPolicyV2WaterPrintConfigArrayInput` via:

DdosPolicyV2WaterPrintConfigArray{ DdosPolicyV2WaterPrintConfigArgs{...} }

type DdosPolicyV2WaterPrintConfigArrayOutput added in v0.1.8

type DdosPolicyV2WaterPrintConfigArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2WaterPrintConfigArrayOutput) ElementType added in v0.1.8

func (DdosPolicyV2WaterPrintConfigArrayOutput) Index added in v0.1.8

func (DdosPolicyV2WaterPrintConfigArrayOutput) ToDdosPolicyV2WaterPrintConfigArrayOutput added in v0.1.8

func (o DdosPolicyV2WaterPrintConfigArrayOutput) ToDdosPolicyV2WaterPrintConfigArrayOutput() DdosPolicyV2WaterPrintConfigArrayOutput

func (DdosPolicyV2WaterPrintConfigArrayOutput) ToDdosPolicyV2WaterPrintConfigArrayOutputWithContext added in v0.1.8

func (o DdosPolicyV2WaterPrintConfigArrayOutput) ToDdosPolicyV2WaterPrintConfigArrayOutputWithContext(ctx context.Context) DdosPolicyV2WaterPrintConfigArrayOutput

type DdosPolicyV2WaterPrintConfigInput added in v0.1.8

type DdosPolicyV2WaterPrintConfigInput interface {
	pulumi.Input

	ToDdosPolicyV2WaterPrintConfigOutput() DdosPolicyV2WaterPrintConfigOutput
	ToDdosPolicyV2WaterPrintConfigOutputWithContext(context.Context) DdosPolicyV2WaterPrintConfigOutput
}

DdosPolicyV2WaterPrintConfigInput is an input type that accepts DdosPolicyV2WaterPrintConfigArgs and DdosPolicyV2WaterPrintConfigOutput values. You can construct a concrete instance of `DdosPolicyV2WaterPrintConfigInput` via:

DdosPolicyV2WaterPrintConfigArgs{...}

type DdosPolicyV2WaterPrintConfigListener added in v0.1.8

type DdosPolicyV2WaterPrintConfigListener struct {
	// Forwarding protocol, value [TCP, UDP].
	ForwardProtocol string `pulumi:"forwardProtocol"`
	// Lower limit of forwarding listening port. Values: [1-65535].
	FrontendPort int `pulumi:"frontendPort"`
	// Upper limit of forwarding listening port. Values: [1-65535].
	FrontendPortEnd int `pulumi:"frontendPortEnd"`
}

type DdosPolicyV2WaterPrintConfigListenerArgs added in v0.1.8

type DdosPolicyV2WaterPrintConfigListenerArgs struct {
	// Forwarding protocol, value [TCP, UDP].
	ForwardProtocol pulumi.StringInput `pulumi:"forwardProtocol"`
	// Lower limit of forwarding listening port. Values: [1-65535].
	FrontendPort pulumi.IntInput `pulumi:"frontendPort"`
	// Upper limit of forwarding listening port. Values: [1-65535].
	FrontendPortEnd pulumi.IntInput `pulumi:"frontendPortEnd"`
}

func (DdosPolicyV2WaterPrintConfigListenerArgs) ElementType added in v0.1.8

func (DdosPolicyV2WaterPrintConfigListenerArgs) ToDdosPolicyV2WaterPrintConfigListenerOutput added in v0.1.8

func (i DdosPolicyV2WaterPrintConfigListenerArgs) ToDdosPolicyV2WaterPrintConfigListenerOutput() DdosPolicyV2WaterPrintConfigListenerOutput

func (DdosPolicyV2WaterPrintConfigListenerArgs) ToDdosPolicyV2WaterPrintConfigListenerOutputWithContext added in v0.1.8

func (i DdosPolicyV2WaterPrintConfigListenerArgs) ToDdosPolicyV2WaterPrintConfigListenerOutputWithContext(ctx context.Context) DdosPolicyV2WaterPrintConfigListenerOutput

type DdosPolicyV2WaterPrintConfigListenerArray added in v0.1.8

type DdosPolicyV2WaterPrintConfigListenerArray []DdosPolicyV2WaterPrintConfigListenerInput

func (DdosPolicyV2WaterPrintConfigListenerArray) ElementType added in v0.1.8

func (DdosPolicyV2WaterPrintConfigListenerArray) ToDdosPolicyV2WaterPrintConfigListenerArrayOutput added in v0.1.8

func (i DdosPolicyV2WaterPrintConfigListenerArray) ToDdosPolicyV2WaterPrintConfigListenerArrayOutput() DdosPolicyV2WaterPrintConfigListenerArrayOutput

func (DdosPolicyV2WaterPrintConfigListenerArray) ToDdosPolicyV2WaterPrintConfigListenerArrayOutputWithContext added in v0.1.8

func (i DdosPolicyV2WaterPrintConfigListenerArray) ToDdosPolicyV2WaterPrintConfigListenerArrayOutputWithContext(ctx context.Context) DdosPolicyV2WaterPrintConfigListenerArrayOutput

type DdosPolicyV2WaterPrintConfigListenerArrayInput added in v0.1.8

type DdosPolicyV2WaterPrintConfigListenerArrayInput interface {
	pulumi.Input

	ToDdosPolicyV2WaterPrintConfigListenerArrayOutput() DdosPolicyV2WaterPrintConfigListenerArrayOutput
	ToDdosPolicyV2WaterPrintConfigListenerArrayOutputWithContext(context.Context) DdosPolicyV2WaterPrintConfigListenerArrayOutput
}

DdosPolicyV2WaterPrintConfigListenerArrayInput is an input type that accepts DdosPolicyV2WaterPrintConfigListenerArray and DdosPolicyV2WaterPrintConfigListenerArrayOutput values. You can construct a concrete instance of `DdosPolicyV2WaterPrintConfigListenerArrayInput` via:

DdosPolicyV2WaterPrintConfigListenerArray{ DdosPolicyV2WaterPrintConfigListenerArgs{...} }

type DdosPolicyV2WaterPrintConfigListenerArrayOutput added in v0.1.8

type DdosPolicyV2WaterPrintConfigListenerArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2WaterPrintConfigListenerArrayOutput) ElementType added in v0.1.8

func (DdosPolicyV2WaterPrintConfigListenerArrayOutput) Index added in v0.1.8

func (DdosPolicyV2WaterPrintConfigListenerArrayOutput) ToDdosPolicyV2WaterPrintConfigListenerArrayOutput added in v0.1.8

func (o DdosPolicyV2WaterPrintConfigListenerArrayOutput) ToDdosPolicyV2WaterPrintConfigListenerArrayOutput() DdosPolicyV2WaterPrintConfigListenerArrayOutput

func (DdosPolicyV2WaterPrintConfigListenerArrayOutput) ToDdosPolicyV2WaterPrintConfigListenerArrayOutputWithContext added in v0.1.8

func (o DdosPolicyV2WaterPrintConfigListenerArrayOutput) ToDdosPolicyV2WaterPrintConfigListenerArrayOutputWithContext(ctx context.Context) DdosPolicyV2WaterPrintConfigListenerArrayOutput

type DdosPolicyV2WaterPrintConfigListenerInput added in v0.1.8

type DdosPolicyV2WaterPrintConfigListenerInput interface {
	pulumi.Input

	ToDdosPolicyV2WaterPrintConfigListenerOutput() DdosPolicyV2WaterPrintConfigListenerOutput
	ToDdosPolicyV2WaterPrintConfigListenerOutputWithContext(context.Context) DdosPolicyV2WaterPrintConfigListenerOutput
}

DdosPolicyV2WaterPrintConfigListenerInput is an input type that accepts DdosPolicyV2WaterPrintConfigListenerArgs and DdosPolicyV2WaterPrintConfigListenerOutput values. You can construct a concrete instance of `DdosPolicyV2WaterPrintConfigListenerInput` via:

DdosPolicyV2WaterPrintConfigListenerArgs{...}

type DdosPolicyV2WaterPrintConfigListenerOutput added in v0.1.8

type DdosPolicyV2WaterPrintConfigListenerOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2WaterPrintConfigListenerOutput) ElementType added in v0.1.8

func (DdosPolicyV2WaterPrintConfigListenerOutput) ForwardProtocol added in v0.1.8

Forwarding protocol, value [TCP, UDP].

func (DdosPolicyV2WaterPrintConfigListenerOutput) FrontendPort added in v0.1.8

Lower limit of forwarding listening port. Values: [1-65535].

func (DdosPolicyV2WaterPrintConfigListenerOutput) FrontendPortEnd added in v0.1.8

Upper limit of forwarding listening port. Values: [1-65535].

func (DdosPolicyV2WaterPrintConfigListenerOutput) ToDdosPolicyV2WaterPrintConfigListenerOutput added in v0.1.8

func (o DdosPolicyV2WaterPrintConfigListenerOutput) ToDdosPolicyV2WaterPrintConfigListenerOutput() DdosPolicyV2WaterPrintConfigListenerOutput

func (DdosPolicyV2WaterPrintConfigListenerOutput) ToDdosPolicyV2WaterPrintConfigListenerOutputWithContext added in v0.1.8

func (o DdosPolicyV2WaterPrintConfigListenerOutput) ToDdosPolicyV2WaterPrintConfigListenerOutputWithContext(ctx context.Context) DdosPolicyV2WaterPrintConfigListenerOutput

type DdosPolicyV2WaterPrintConfigOutput added in v0.1.8

type DdosPolicyV2WaterPrintConfigOutput struct{ *pulumi.OutputState }

func (DdosPolicyV2WaterPrintConfigOutput) ElementType added in v0.1.8

func (DdosPolicyV2WaterPrintConfigOutput) Listeners added in v0.1.8

List of forwarding listeners to which the watermark belongs.

func (DdosPolicyV2WaterPrintConfigOutput) Offset added in v0.1.8

Watermark offset, value range: [0-100].

func (DdosPolicyV2WaterPrintConfigOutput) OpenStatus added in v0.1.8

Whether it is enabled, value [0 (manual open), 1 (immediate operation)].

func (DdosPolicyV2WaterPrintConfigOutput) ToDdosPolicyV2WaterPrintConfigOutput added in v0.1.8

func (o DdosPolicyV2WaterPrintConfigOutput) ToDdosPolicyV2WaterPrintConfigOutput() DdosPolicyV2WaterPrintConfigOutput

func (DdosPolicyV2WaterPrintConfigOutput) ToDdosPolicyV2WaterPrintConfigOutputWithContext added in v0.1.8

func (o DdosPolicyV2WaterPrintConfigOutput) ToDdosPolicyV2WaterPrintConfigOutputWithContext(ctx context.Context) DdosPolicyV2WaterPrintConfigOutput

func (DdosPolicyV2WaterPrintConfigOutput) Verify added in v0.1.8

Watermark check mode, value [`checkall`(normal mode), `shortfpcheckall`(simplified mode)].

type DdosPolicyWatermarkFilter

type DdosPolicyWatermarkFilter struct {
	// Indicate whether to auto-remove the watermark or not.
	AutoRemove *bool `pulumi:"autoRemove"`
	// The offset of watermark. Valid value ranges: (0~1500).
	Offset *int `pulumi:"offset"`
	// Indicate whether to open watermark or not. It muse be set `true` when any field of watermark was set.
	OpenSwitch *bool `pulumi:"openSwitch"`
	// Port range of TCP, the format is like `2000-3000`.
	TcpPortLists []string `pulumi:"tcpPortLists"`
	// Port range of TCP, the format is like `2000-3000`.
	UdpPortLists []string `pulumi:"udpPortLists"`
}

type DdosPolicyWatermarkFilterArgs

type DdosPolicyWatermarkFilterArgs struct {
	// Indicate whether to auto-remove the watermark or not.
	AutoRemove pulumi.BoolPtrInput `pulumi:"autoRemove"`
	// The offset of watermark. Valid value ranges: (0~1500).
	Offset pulumi.IntPtrInput `pulumi:"offset"`
	// Indicate whether to open watermark or not. It muse be set `true` when any field of watermark was set.
	OpenSwitch pulumi.BoolPtrInput `pulumi:"openSwitch"`
	// Port range of TCP, the format is like `2000-3000`.
	TcpPortLists pulumi.StringArrayInput `pulumi:"tcpPortLists"`
	// Port range of TCP, the format is like `2000-3000`.
	UdpPortLists pulumi.StringArrayInput `pulumi:"udpPortLists"`
}

func (DdosPolicyWatermarkFilterArgs) ElementType

func (DdosPolicyWatermarkFilterArgs) ToDdosPolicyWatermarkFilterOutput

func (i DdosPolicyWatermarkFilterArgs) ToDdosPolicyWatermarkFilterOutput() DdosPolicyWatermarkFilterOutput

func (DdosPolicyWatermarkFilterArgs) ToDdosPolicyWatermarkFilterOutputWithContext

func (i DdosPolicyWatermarkFilterArgs) ToDdosPolicyWatermarkFilterOutputWithContext(ctx context.Context) DdosPolicyWatermarkFilterOutput

type DdosPolicyWatermarkFilterArray

type DdosPolicyWatermarkFilterArray []DdosPolicyWatermarkFilterInput

func (DdosPolicyWatermarkFilterArray) ElementType

func (DdosPolicyWatermarkFilterArray) ToDdosPolicyWatermarkFilterArrayOutput

func (i DdosPolicyWatermarkFilterArray) ToDdosPolicyWatermarkFilterArrayOutput() DdosPolicyWatermarkFilterArrayOutput

func (DdosPolicyWatermarkFilterArray) ToDdosPolicyWatermarkFilterArrayOutputWithContext

func (i DdosPolicyWatermarkFilterArray) ToDdosPolicyWatermarkFilterArrayOutputWithContext(ctx context.Context) DdosPolicyWatermarkFilterArrayOutput

type DdosPolicyWatermarkFilterArrayInput

type DdosPolicyWatermarkFilterArrayInput interface {
	pulumi.Input

	ToDdosPolicyWatermarkFilterArrayOutput() DdosPolicyWatermarkFilterArrayOutput
	ToDdosPolicyWatermarkFilterArrayOutputWithContext(context.Context) DdosPolicyWatermarkFilterArrayOutput
}

DdosPolicyWatermarkFilterArrayInput is an input type that accepts DdosPolicyWatermarkFilterArray and DdosPolicyWatermarkFilterArrayOutput values. You can construct a concrete instance of `DdosPolicyWatermarkFilterArrayInput` via:

DdosPolicyWatermarkFilterArray{ DdosPolicyWatermarkFilterArgs{...} }

type DdosPolicyWatermarkFilterArrayOutput

type DdosPolicyWatermarkFilterArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyWatermarkFilterArrayOutput) ElementType

func (DdosPolicyWatermarkFilterArrayOutput) Index

func (DdosPolicyWatermarkFilterArrayOutput) ToDdosPolicyWatermarkFilterArrayOutput

func (o DdosPolicyWatermarkFilterArrayOutput) ToDdosPolicyWatermarkFilterArrayOutput() DdosPolicyWatermarkFilterArrayOutput

func (DdosPolicyWatermarkFilterArrayOutput) ToDdosPolicyWatermarkFilterArrayOutputWithContext

func (o DdosPolicyWatermarkFilterArrayOutput) ToDdosPolicyWatermarkFilterArrayOutputWithContext(ctx context.Context) DdosPolicyWatermarkFilterArrayOutput

type DdosPolicyWatermarkFilterInput

type DdosPolicyWatermarkFilterInput interface {
	pulumi.Input

	ToDdosPolicyWatermarkFilterOutput() DdosPolicyWatermarkFilterOutput
	ToDdosPolicyWatermarkFilterOutputWithContext(context.Context) DdosPolicyWatermarkFilterOutput
}

DdosPolicyWatermarkFilterInput is an input type that accepts DdosPolicyWatermarkFilterArgs and DdosPolicyWatermarkFilterOutput values. You can construct a concrete instance of `DdosPolicyWatermarkFilterInput` via:

DdosPolicyWatermarkFilterArgs{...}

type DdosPolicyWatermarkFilterOutput

type DdosPolicyWatermarkFilterOutput struct{ *pulumi.OutputState }

func (DdosPolicyWatermarkFilterOutput) AutoRemove

Indicate whether to auto-remove the watermark or not.

func (DdosPolicyWatermarkFilterOutput) ElementType

func (DdosPolicyWatermarkFilterOutput) Offset

The offset of watermark. Valid value ranges: (0~1500).

func (DdosPolicyWatermarkFilterOutput) OpenSwitch

Indicate whether to open watermark or not. It muse be set `true` when any field of watermark was set.

func (DdosPolicyWatermarkFilterOutput) TcpPortLists

Port range of TCP, the format is like `2000-3000`.

func (DdosPolicyWatermarkFilterOutput) ToDdosPolicyWatermarkFilterOutput

func (o DdosPolicyWatermarkFilterOutput) ToDdosPolicyWatermarkFilterOutput() DdosPolicyWatermarkFilterOutput

func (DdosPolicyWatermarkFilterOutput) ToDdosPolicyWatermarkFilterOutputWithContext

func (o DdosPolicyWatermarkFilterOutput) ToDdosPolicyWatermarkFilterOutputWithContext(ctx context.Context) DdosPolicyWatermarkFilterOutput

func (DdosPolicyWatermarkFilterOutput) UdpPortLists

Port range of TCP, the format is like `2000-3000`.

type DdosPolicyWatermarkKey

type DdosPolicyWatermarkKey struct {
	// Content of the watermark.
	Content *string `pulumi:"content"`
	// Create time of the DDoS policy.
	CreateTime *string `pulumi:"createTime"`
	// Id of the watermark.
	Id *string `pulumi:"id"`
	// Indicate whether to open watermark or not. It muse be set `true` when any field of watermark was set.
	OpenSwitch *bool `pulumi:"openSwitch"`
}

type DdosPolicyWatermarkKeyArgs

type DdosPolicyWatermarkKeyArgs struct {
	// Content of the watermark.
	Content pulumi.StringPtrInput `pulumi:"content"`
	// Create time of the DDoS policy.
	CreateTime pulumi.StringPtrInput `pulumi:"createTime"`
	// Id of the watermark.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// Indicate whether to open watermark or not. It muse be set `true` when any field of watermark was set.
	OpenSwitch pulumi.BoolPtrInput `pulumi:"openSwitch"`
}

func (DdosPolicyWatermarkKeyArgs) ElementType

func (DdosPolicyWatermarkKeyArgs) ElementType() reflect.Type

func (DdosPolicyWatermarkKeyArgs) ToDdosPolicyWatermarkKeyOutput

func (i DdosPolicyWatermarkKeyArgs) ToDdosPolicyWatermarkKeyOutput() DdosPolicyWatermarkKeyOutput

func (DdosPolicyWatermarkKeyArgs) ToDdosPolicyWatermarkKeyOutputWithContext

func (i DdosPolicyWatermarkKeyArgs) ToDdosPolicyWatermarkKeyOutputWithContext(ctx context.Context) DdosPolicyWatermarkKeyOutput

type DdosPolicyWatermarkKeyArray

type DdosPolicyWatermarkKeyArray []DdosPolicyWatermarkKeyInput

func (DdosPolicyWatermarkKeyArray) ElementType

func (DdosPolicyWatermarkKeyArray) ToDdosPolicyWatermarkKeyArrayOutput

func (i DdosPolicyWatermarkKeyArray) ToDdosPolicyWatermarkKeyArrayOutput() DdosPolicyWatermarkKeyArrayOutput

func (DdosPolicyWatermarkKeyArray) ToDdosPolicyWatermarkKeyArrayOutputWithContext

func (i DdosPolicyWatermarkKeyArray) ToDdosPolicyWatermarkKeyArrayOutputWithContext(ctx context.Context) DdosPolicyWatermarkKeyArrayOutput

type DdosPolicyWatermarkKeyArrayInput

type DdosPolicyWatermarkKeyArrayInput interface {
	pulumi.Input

	ToDdosPolicyWatermarkKeyArrayOutput() DdosPolicyWatermarkKeyArrayOutput
	ToDdosPolicyWatermarkKeyArrayOutputWithContext(context.Context) DdosPolicyWatermarkKeyArrayOutput
}

DdosPolicyWatermarkKeyArrayInput is an input type that accepts DdosPolicyWatermarkKeyArray and DdosPolicyWatermarkKeyArrayOutput values. You can construct a concrete instance of `DdosPolicyWatermarkKeyArrayInput` via:

DdosPolicyWatermarkKeyArray{ DdosPolicyWatermarkKeyArgs{...} }

type DdosPolicyWatermarkKeyArrayOutput

type DdosPolicyWatermarkKeyArrayOutput struct{ *pulumi.OutputState }

func (DdosPolicyWatermarkKeyArrayOutput) ElementType

func (DdosPolicyWatermarkKeyArrayOutput) Index

func (DdosPolicyWatermarkKeyArrayOutput) ToDdosPolicyWatermarkKeyArrayOutput

func (o DdosPolicyWatermarkKeyArrayOutput) ToDdosPolicyWatermarkKeyArrayOutput() DdosPolicyWatermarkKeyArrayOutput

func (DdosPolicyWatermarkKeyArrayOutput) ToDdosPolicyWatermarkKeyArrayOutputWithContext

func (o DdosPolicyWatermarkKeyArrayOutput) ToDdosPolicyWatermarkKeyArrayOutputWithContext(ctx context.Context) DdosPolicyWatermarkKeyArrayOutput

type DdosPolicyWatermarkKeyInput

type DdosPolicyWatermarkKeyInput interface {
	pulumi.Input

	ToDdosPolicyWatermarkKeyOutput() DdosPolicyWatermarkKeyOutput
	ToDdosPolicyWatermarkKeyOutputWithContext(context.Context) DdosPolicyWatermarkKeyOutput
}

DdosPolicyWatermarkKeyInput is an input type that accepts DdosPolicyWatermarkKeyArgs and DdosPolicyWatermarkKeyOutput values. You can construct a concrete instance of `DdosPolicyWatermarkKeyInput` via:

DdosPolicyWatermarkKeyArgs{...}

type DdosPolicyWatermarkKeyOutput

type DdosPolicyWatermarkKeyOutput struct{ *pulumi.OutputState }

func (DdosPolicyWatermarkKeyOutput) Content

Content of the watermark.

func (DdosPolicyWatermarkKeyOutput) CreateTime

Create time of the DDoS policy.

func (DdosPolicyWatermarkKeyOutput) ElementType

func (DdosPolicyWatermarkKeyOutput) Id

Id of the watermark.

func (DdosPolicyWatermarkKeyOutput) OpenSwitch

Indicate whether to open watermark or not. It muse be set `true` when any field of watermark was set.

func (DdosPolicyWatermarkKeyOutput) ToDdosPolicyWatermarkKeyOutput

func (o DdosPolicyWatermarkKeyOutput) ToDdosPolicyWatermarkKeyOutput() DdosPolicyWatermarkKeyOutput

func (DdosPolicyWatermarkKeyOutput) ToDdosPolicyWatermarkKeyOutputWithContext

func (o DdosPolicyWatermarkKeyOutput) ToDdosPolicyWatermarkKeyOutputWithContext(ctx context.Context) DdosPolicyWatermarkKeyOutput

type Eip

type Eip struct {
	pulumi.CustomResourceState

	// Resource id to bind.
	BindResourceId pulumi.StringOutput `pulumi:"bindResourceId"`
	// Resource region to bind.
	BindResourceRegion pulumi.StringOutput `pulumi:"bindResourceRegion"`
	// Resource type to bind, value range [`clb`, `cvm`].
	BindResourceType pulumi.StringOutput `pulumi:"bindResourceType"`
	// Created time of the resource instance.
	CreatedTime pulumi.StringOutput `pulumi:"createdTime"`
	// Eip of the resource.
	Eip pulumi.StringOutput `pulumi:"eip"`
	// Eip address status of the resource instance.
	EipAddressStatus pulumi.StringOutput `pulumi:"eipAddressStatus"`
	// Eip bound rsc eni of the resource instance.
	EipBoundRscEni pulumi.StringOutput `pulumi:"eipBoundRscEni"`
	// Eip bound rsc ins of the resource instance.
	EipBoundRscIns pulumi.StringOutput `pulumi:"eipBoundRscIns"`
	// Eip bound rsc vip of the resource instance.
	EipBoundRscVip pulumi.StringOutput `pulumi:"eipBoundRscVip"`
	// Expired time of the resource instance.
	ExpiredTime pulumi.StringOutput `pulumi:"expiredTime"`
	// Modify time of the resource instance.
	ModifyTime pulumi.StringOutput `pulumi:"modifyTime"`
	// Protection status of the resource instance.
	ProtectionStatus pulumi.StringOutput `pulumi:"protectionStatus"`
	// ID of the resource.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// Region of the resource instance.
	ResourceRegion pulumi.StringOutput `pulumi:"resourceRegion"`
}

Use this resource to create dayu eip rule

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewEip(ctx, "test", &Dayu.EipArgs{
			BindResourceId:     pulumi.String("ins-4m0jvxic"),
			BindResourceRegion: pulumi.String("hk"),
			BindResourceType:   pulumi.String("cvm"),
			Eip:                pulumi.String("162.62.163.50"),
			ResourceId:         pulumi.String("bgpip-000004xg"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetEip

func GetEip(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *EipState, opts ...pulumi.ResourceOption) (*Eip, error)

GetEip gets an existing Eip resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewEip

func NewEip(ctx *pulumi.Context,
	name string, args *EipArgs, opts ...pulumi.ResourceOption) (*Eip, error)

NewEip registers a new resource with the given unique name, arguments, and options.

func (*Eip) ElementType

func (*Eip) ElementType() reflect.Type

func (*Eip) ToEipOutput

func (i *Eip) ToEipOutput() EipOutput

func (*Eip) ToEipOutputWithContext

func (i *Eip) ToEipOutputWithContext(ctx context.Context) EipOutput

type EipArgs

type EipArgs struct {
	// Resource id to bind.
	BindResourceId pulumi.StringInput
	// Resource region to bind.
	BindResourceRegion pulumi.StringInput
	// Resource type to bind, value range [`clb`, `cvm`].
	BindResourceType pulumi.StringInput
	// Eip of the resource.
	Eip pulumi.StringInput
	// ID of the resource.
	ResourceId pulumi.StringInput
}

The set of arguments for constructing a Eip resource.

func (EipArgs) ElementType

func (EipArgs) ElementType() reflect.Type

type EipArray

type EipArray []EipInput

func (EipArray) ElementType

func (EipArray) ElementType() reflect.Type

func (EipArray) ToEipArrayOutput

func (i EipArray) ToEipArrayOutput() EipArrayOutput

func (EipArray) ToEipArrayOutputWithContext

func (i EipArray) ToEipArrayOutputWithContext(ctx context.Context) EipArrayOutput

type EipArrayInput

type EipArrayInput interface {
	pulumi.Input

	ToEipArrayOutput() EipArrayOutput
	ToEipArrayOutputWithContext(context.Context) EipArrayOutput
}

EipArrayInput is an input type that accepts EipArray and EipArrayOutput values. You can construct a concrete instance of `EipArrayInput` via:

EipArray{ EipArgs{...} }

type EipArrayOutput

type EipArrayOutput struct{ *pulumi.OutputState }

func (EipArrayOutput) ElementType

func (EipArrayOutput) ElementType() reflect.Type

func (EipArrayOutput) Index

func (EipArrayOutput) ToEipArrayOutput

func (o EipArrayOutput) ToEipArrayOutput() EipArrayOutput

func (EipArrayOutput) ToEipArrayOutputWithContext

func (o EipArrayOutput) ToEipArrayOutputWithContext(ctx context.Context) EipArrayOutput

type EipInput

type EipInput interface {
	pulumi.Input

	ToEipOutput() EipOutput
	ToEipOutputWithContext(ctx context.Context) EipOutput
}

type EipMap

type EipMap map[string]EipInput

func (EipMap) ElementType

func (EipMap) ElementType() reflect.Type

func (EipMap) ToEipMapOutput

func (i EipMap) ToEipMapOutput() EipMapOutput

func (EipMap) ToEipMapOutputWithContext

func (i EipMap) ToEipMapOutputWithContext(ctx context.Context) EipMapOutput

type EipMapInput

type EipMapInput interface {
	pulumi.Input

	ToEipMapOutput() EipMapOutput
	ToEipMapOutputWithContext(context.Context) EipMapOutput
}

EipMapInput is an input type that accepts EipMap and EipMapOutput values. You can construct a concrete instance of `EipMapInput` via:

EipMap{ "key": EipArgs{...} }

type EipMapOutput

type EipMapOutput struct{ *pulumi.OutputState }

func (EipMapOutput) ElementType

func (EipMapOutput) ElementType() reflect.Type

func (EipMapOutput) MapIndex

func (o EipMapOutput) MapIndex(k pulumi.StringInput) EipOutput

func (EipMapOutput) ToEipMapOutput

func (o EipMapOutput) ToEipMapOutput() EipMapOutput

func (EipMapOutput) ToEipMapOutputWithContext

func (o EipMapOutput) ToEipMapOutputWithContext(ctx context.Context) EipMapOutput

type EipOutput

type EipOutput struct{ *pulumi.OutputState }

func (EipOutput) BindResourceId

func (o EipOutput) BindResourceId() pulumi.StringOutput

Resource id to bind.

func (EipOutput) BindResourceRegion

func (o EipOutput) BindResourceRegion() pulumi.StringOutput

Resource region to bind.

func (EipOutput) BindResourceType

func (o EipOutput) BindResourceType() pulumi.StringOutput

Resource type to bind, value range [`clb`, `cvm`].

func (EipOutput) CreatedTime

func (o EipOutput) CreatedTime() pulumi.StringOutput

Created time of the resource instance.

func (EipOutput) Eip

func (o EipOutput) Eip() pulumi.StringOutput

Eip of the resource.

func (EipOutput) EipAddressStatus

func (o EipOutput) EipAddressStatus() pulumi.StringOutput

Eip address status of the resource instance.

func (EipOutput) EipBoundRscEni

func (o EipOutput) EipBoundRscEni() pulumi.StringOutput

Eip bound rsc eni of the resource instance.

func (EipOutput) EipBoundRscIns

func (o EipOutput) EipBoundRscIns() pulumi.StringOutput

Eip bound rsc ins of the resource instance.

func (EipOutput) EipBoundRscVip

func (o EipOutput) EipBoundRscVip() pulumi.StringOutput

Eip bound rsc vip of the resource instance.

func (EipOutput) ElementType

func (EipOutput) ElementType() reflect.Type

func (EipOutput) ExpiredTime

func (o EipOutput) ExpiredTime() pulumi.StringOutput

Expired time of the resource instance.

func (EipOutput) ModifyTime

func (o EipOutput) ModifyTime() pulumi.StringOutput

Modify time of the resource instance.

func (EipOutput) ProtectionStatus

func (o EipOutput) ProtectionStatus() pulumi.StringOutput

Protection status of the resource instance.

func (EipOutput) ResourceId

func (o EipOutput) ResourceId() pulumi.StringOutput

ID of the resource.

func (EipOutput) ResourceRegion

func (o EipOutput) ResourceRegion() pulumi.StringOutput

Region of the resource instance.

func (EipOutput) ToEipOutput

func (o EipOutput) ToEipOutput() EipOutput

func (EipOutput) ToEipOutputWithContext

func (o EipOutput) ToEipOutputWithContext(ctx context.Context) EipOutput

type EipState

type EipState struct {
	// Resource id to bind.
	BindResourceId pulumi.StringPtrInput
	// Resource region to bind.
	BindResourceRegion pulumi.StringPtrInput
	// Resource type to bind, value range [`clb`, `cvm`].
	BindResourceType pulumi.StringPtrInput
	// Created time of the resource instance.
	CreatedTime pulumi.StringPtrInput
	// Eip of the resource.
	Eip pulumi.StringPtrInput
	// Eip address status of the resource instance.
	EipAddressStatus pulumi.StringPtrInput
	// Eip bound rsc eni of the resource instance.
	EipBoundRscEni pulumi.StringPtrInput
	// Eip bound rsc ins of the resource instance.
	EipBoundRscIns pulumi.StringPtrInput
	// Eip bound rsc vip of the resource instance.
	EipBoundRscVip pulumi.StringPtrInput
	// Expired time of the resource instance.
	ExpiredTime pulumi.StringPtrInput
	// Modify time of the resource instance.
	ModifyTime pulumi.StringPtrInput
	// Protection status of the resource instance.
	ProtectionStatus pulumi.StringPtrInput
	// ID of the resource.
	ResourceId pulumi.StringPtrInput
	// Region of the resource instance.
	ResourceRegion pulumi.StringPtrInput
}

func (EipState) ElementType

func (EipState) ElementType() reflect.Type

type GetCcHttpPoliciesArgs

type GetCcHttpPoliciesArgs struct {
	// Name of the CC http policy to be queried.
	Name *string `pulumi:"name"`
	// Id of the CC http policy to be queried.
	PolicyId *string `pulumi:"policyId"`
	// ID of the resource that the CC http policy works for.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource that the CC http policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType string `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getCcHttpPolicies.

type GetCcHttpPoliciesList

type GetCcHttpPoliciesList struct {
	// Action mode.
	Action string `pulumi:"action"`
	// Create time of the CC self-define http policy.
	CreateTime string `pulumi:"createTime"`
	// Max frequency per minute.
	Frequency int `pulumi:"frequency"`
	// IP of the CC self-define http policy.
	IpLists []string `pulumi:"ipLists"`
	// Name of the CC http policy to be queried.
	Name string `pulumi:"name"`
	// Id of the CC http policy to be queried.
	PolicyId string `pulumi:"policyId"`
	// ID of the resource that the CC http policy works for.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource that the CC http policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType string                          `pulumi:"resourceType"`
	RuleLists    []GetCcHttpPoliciesListRuleList `pulumi:"ruleLists"`
	// Match mode.
	Smode string `pulumi:"smode"`
	// Indicate the CC self-define http policy takes effect or not.
	Switch bool `pulumi:"switch"`
}

type GetCcHttpPoliciesListArgs

type GetCcHttpPoliciesListArgs struct {
	// Action mode.
	Action pulumi.StringInput `pulumi:"action"`
	// Create time of the CC self-define http policy.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Max frequency per minute.
	Frequency pulumi.IntInput `pulumi:"frequency"`
	// IP of the CC self-define http policy.
	IpLists pulumi.StringArrayInput `pulumi:"ipLists"`
	// Name of the CC http policy to be queried.
	Name pulumi.StringInput `pulumi:"name"`
	// Id of the CC http policy to be queried.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// ID of the resource that the CC http policy works for.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// Type of the resource that the CC http policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringInput                      `pulumi:"resourceType"`
	RuleLists    GetCcHttpPoliciesListRuleListArrayInput `pulumi:"ruleLists"`
	// Match mode.
	Smode pulumi.StringInput `pulumi:"smode"`
	// Indicate the CC self-define http policy takes effect or not.
	Switch pulumi.BoolInput `pulumi:"switch"`
}

func (GetCcHttpPoliciesListArgs) ElementType

func (GetCcHttpPoliciesListArgs) ElementType() reflect.Type

func (GetCcHttpPoliciesListArgs) ToGetCcHttpPoliciesListOutput

func (i GetCcHttpPoliciesListArgs) ToGetCcHttpPoliciesListOutput() GetCcHttpPoliciesListOutput

func (GetCcHttpPoliciesListArgs) ToGetCcHttpPoliciesListOutputWithContext

func (i GetCcHttpPoliciesListArgs) ToGetCcHttpPoliciesListOutputWithContext(ctx context.Context) GetCcHttpPoliciesListOutput

type GetCcHttpPoliciesListArray

type GetCcHttpPoliciesListArray []GetCcHttpPoliciesListInput

func (GetCcHttpPoliciesListArray) ElementType

func (GetCcHttpPoliciesListArray) ElementType() reflect.Type

func (GetCcHttpPoliciesListArray) ToGetCcHttpPoliciesListArrayOutput

func (i GetCcHttpPoliciesListArray) ToGetCcHttpPoliciesListArrayOutput() GetCcHttpPoliciesListArrayOutput

func (GetCcHttpPoliciesListArray) ToGetCcHttpPoliciesListArrayOutputWithContext

func (i GetCcHttpPoliciesListArray) ToGetCcHttpPoliciesListArrayOutputWithContext(ctx context.Context) GetCcHttpPoliciesListArrayOutput

type GetCcHttpPoliciesListArrayInput

type GetCcHttpPoliciesListArrayInput interface {
	pulumi.Input

	ToGetCcHttpPoliciesListArrayOutput() GetCcHttpPoliciesListArrayOutput
	ToGetCcHttpPoliciesListArrayOutputWithContext(context.Context) GetCcHttpPoliciesListArrayOutput
}

GetCcHttpPoliciesListArrayInput is an input type that accepts GetCcHttpPoliciesListArray and GetCcHttpPoliciesListArrayOutput values. You can construct a concrete instance of `GetCcHttpPoliciesListArrayInput` via:

GetCcHttpPoliciesListArray{ GetCcHttpPoliciesListArgs{...} }

type GetCcHttpPoliciesListArrayOutput

type GetCcHttpPoliciesListArrayOutput struct{ *pulumi.OutputState }

func (GetCcHttpPoliciesListArrayOutput) ElementType

func (GetCcHttpPoliciesListArrayOutput) Index

func (GetCcHttpPoliciesListArrayOutput) ToGetCcHttpPoliciesListArrayOutput

func (o GetCcHttpPoliciesListArrayOutput) ToGetCcHttpPoliciesListArrayOutput() GetCcHttpPoliciesListArrayOutput

func (GetCcHttpPoliciesListArrayOutput) ToGetCcHttpPoliciesListArrayOutputWithContext

func (o GetCcHttpPoliciesListArrayOutput) ToGetCcHttpPoliciesListArrayOutputWithContext(ctx context.Context) GetCcHttpPoliciesListArrayOutput

type GetCcHttpPoliciesListInput

type GetCcHttpPoliciesListInput interface {
	pulumi.Input

	ToGetCcHttpPoliciesListOutput() GetCcHttpPoliciesListOutput
	ToGetCcHttpPoliciesListOutputWithContext(context.Context) GetCcHttpPoliciesListOutput
}

GetCcHttpPoliciesListInput is an input type that accepts GetCcHttpPoliciesListArgs and GetCcHttpPoliciesListOutput values. You can construct a concrete instance of `GetCcHttpPoliciesListInput` via:

GetCcHttpPoliciesListArgs{...}

type GetCcHttpPoliciesListOutput

type GetCcHttpPoliciesListOutput struct{ *pulumi.OutputState }

func (GetCcHttpPoliciesListOutput) Action

Action mode.

func (GetCcHttpPoliciesListOutput) CreateTime

Create time of the CC self-define http policy.

func (GetCcHttpPoliciesListOutput) ElementType

func (GetCcHttpPoliciesListOutput) Frequency

Max frequency per minute.

func (GetCcHttpPoliciesListOutput) IpLists

IP of the CC self-define http policy.

func (GetCcHttpPoliciesListOutput) Name

Name of the CC http policy to be queried.

func (GetCcHttpPoliciesListOutput) PolicyId

Id of the CC http policy to be queried.

func (GetCcHttpPoliciesListOutput) ResourceId

ID of the resource that the CC http policy works for.

func (GetCcHttpPoliciesListOutput) ResourceType

Type of the resource that the CC http policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.

func (GetCcHttpPoliciesListOutput) RuleLists

func (GetCcHttpPoliciesListOutput) Smode

Match mode.

func (GetCcHttpPoliciesListOutput) Switch

Indicate the CC self-define http policy takes effect or not.

func (GetCcHttpPoliciesListOutput) ToGetCcHttpPoliciesListOutput

func (o GetCcHttpPoliciesListOutput) ToGetCcHttpPoliciesListOutput() GetCcHttpPoliciesListOutput

func (GetCcHttpPoliciesListOutput) ToGetCcHttpPoliciesListOutputWithContext

func (o GetCcHttpPoliciesListOutput) ToGetCcHttpPoliciesListOutputWithContext(ctx context.Context) GetCcHttpPoliciesListOutput

type GetCcHttpPoliciesListRuleList

type GetCcHttpPoliciesListRuleList struct {
	Operator string `pulumi:"operator"`
	Skey     string `pulumi:"skey"`
	Value    string `pulumi:"value"`
}

type GetCcHttpPoliciesListRuleListArgs

type GetCcHttpPoliciesListRuleListArgs struct {
	Operator pulumi.StringInput `pulumi:"operator"`
	Skey     pulumi.StringInput `pulumi:"skey"`
	Value    pulumi.StringInput `pulumi:"value"`
}

func (GetCcHttpPoliciesListRuleListArgs) ElementType

func (GetCcHttpPoliciesListRuleListArgs) ToGetCcHttpPoliciesListRuleListOutput

func (i GetCcHttpPoliciesListRuleListArgs) ToGetCcHttpPoliciesListRuleListOutput() GetCcHttpPoliciesListRuleListOutput

func (GetCcHttpPoliciesListRuleListArgs) ToGetCcHttpPoliciesListRuleListOutputWithContext

func (i GetCcHttpPoliciesListRuleListArgs) ToGetCcHttpPoliciesListRuleListOutputWithContext(ctx context.Context) GetCcHttpPoliciesListRuleListOutput

type GetCcHttpPoliciesListRuleListArray

type GetCcHttpPoliciesListRuleListArray []GetCcHttpPoliciesListRuleListInput

func (GetCcHttpPoliciesListRuleListArray) ElementType

func (GetCcHttpPoliciesListRuleListArray) ToGetCcHttpPoliciesListRuleListArrayOutput

func (i GetCcHttpPoliciesListRuleListArray) ToGetCcHttpPoliciesListRuleListArrayOutput() GetCcHttpPoliciesListRuleListArrayOutput

func (GetCcHttpPoliciesListRuleListArray) ToGetCcHttpPoliciesListRuleListArrayOutputWithContext

func (i GetCcHttpPoliciesListRuleListArray) ToGetCcHttpPoliciesListRuleListArrayOutputWithContext(ctx context.Context) GetCcHttpPoliciesListRuleListArrayOutput

type GetCcHttpPoliciesListRuleListArrayInput

type GetCcHttpPoliciesListRuleListArrayInput interface {
	pulumi.Input

	ToGetCcHttpPoliciesListRuleListArrayOutput() GetCcHttpPoliciesListRuleListArrayOutput
	ToGetCcHttpPoliciesListRuleListArrayOutputWithContext(context.Context) GetCcHttpPoliciesListRuleListArrayOutput
}

GetCcHttpPoliciesListRuleListArrayInput is an input type that accepts GetCcHttpPoliciesListRuleListArray and GetCcHttpPoliciesListRuleListArrayOutput values. You can construct a concrete instance of `GetCcHttpPoliciesListRuleListArrayInput` via:

GetCcHttpPoliciesListRuleListArray{ GetCcHttpPoliciesListRuleListArgs{...} }

type GetCcHttpPoliciesListRuleListArrayOutput

type GetCcHttpPoliciesListRuleListArrayOutput struct{ *pulumi.OutputState }

func (GetCcHttpPoliciesListRuleListArrayOutput) ElementType

func (GetCcHttpPoliciesListRuleListArrayOutput) Index

func (GetCcHttpPoliciesListRuleListArrayOutput) ToGetCcHttpPoliciesListRuleListArrayOutput

func (o GetCcHttpPoliciesListRuleListArrayOutput) ToGetCcHttpPoliciesListRuleListArrayOutput() GetCcHttpPoliciesListRuleListArrayOutput

func (GetCcHttpPoliciesListRuleListArrayOutput) ToGetCcHttpPoliciesListRuleListArrayOutputWithContext

func (o GetCcHttpPoliciesListRuleListArrayOutput) ToGetCcHttpPoliciesListRuleListArrayOutputWithContext(ctx context.Context) GetCcHttpPoliciesListRuleListArrayOutput

type GetCcHttpPoliciesListRuleListInput

type GetCcHttpPoliciesListRuleListInput interface {
	pulumi.Input

	ToGetCcHttpPoliciesListRuleListOutput() GetCcHttpPoliciesListRuleListOutput
	ToGetCcHttpPoliciesListRuleListOutputWithContext(context.Context) GetCcHttpPoliciesListRuleListOutput
}

GetCcHttpPoliciesListRuleListInput is an input type that accepts GetCcHttpPoliciesListRuleListArgs and GetCcHttpPoliciesListRuleListOutput values. You can construct a concrete instance of `GetCcHttpPoliciesListRuleListInput` via:

GetCcHttpPoliciesListRuleListArgs{...}

type GetCcHttpPoliciesListRuleListOutput

type GetCcHttpPoliciesListRuleListOutput struct{ *pulumi.OutputState }

func (GetCcHttpPoliciesListRuleListOutput) ElementType

func (GetCcHttpPoliciesListRuleListOutput) Operator

func (GetCcHttpPoliciesListRuleListOutput) Skey

func (GetCcHttpPoliciesListRuleListOutput) ToGetCcHttpPoliciesListRuleListOutput

func (o GetCcHttpPoliciesListRuleListOutput) ToGetCcHttpPoliciesListRuleListOutput() GetCcHttpPoliciesListRuleListOutput

func (GetCcHttpPoliciesListRuleListOutput) ToGetCcHttpPoliciesListRuleListOutputWithContext

func (o GetCcHttpPoliciesListRuleListOutput) ToGetCcHttpPoliciesListRuleListOutputWithContext(ctx context.Context) GetCcHttpPoliciesListRuleListOutput

func (GetCcHttpPoliciesListRuleListOutput) Value

type GetCcHttpPoliciesOutputArgs

type GetCcHttpPoliciesOutputArgs struct {
	// Name of the CC http policy to be queried.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Id of the CC http policy to be queried.
	PolicyId pulumi.StringPtrInput `pulumi:"policyId"`
	// ID of the resource that the CC http policy works for.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// Type of the resource that the CC http policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getCcHttpPolicies.

func (GetCcHttpPoliciesOutputArgs) ElementType

type GetCcHttpPoliciesResult

type GetCcHttpPoliciesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CC http policies. Each element contains the following attributes:
	Lists []GetCcHttpPoliciesList `pulumi:"lists"`
	// Name of the CC self-define http policy.
	Name *string `pulumi:"name"`
	// ID of the CC self-define http policy.
	PolicyId *string `pulumi:"policyId"`
	// ID of the resource that the CC self-define http policy works for.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource that the CC self-define http policy works for.
	ResourceType     string  `pulumi:"resourceType"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of values returned by getCcHttpPolicies.

func GetCcHttpPolicies

func GetCcHttpPolicies(ctx *pulumi.Context, args *GetCcHttpPoliciesArgs, opts ...pulumi.InvokeOption) (*GetCcHttpPoliciesResult, error)

Use this data source to query dayu CC http policies

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.GetCcHttpPolicies(ctx, &dayu.GetCcHttpPoliciesArgs{
			ResourceType: tencentcloud_dayu_cc_http_policy.Test_policy.Resource_type,
			ResourceId:   tencentcloud_dayu_cc_http_policy.Test_policy.Resource_id,
			PolicyId:     pulumi.StringRef(tencentcloud_dayu_cc_http_policy.Test_policy.Policy_id),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Dayu.GetCcHttpPolicies(ctx, &dayu.GetCcHttpPoliciesArgs{
			ResourceType: tencentcloud_dayu_cc_http_policy.Test_policy.Resource_type,
			ResourceId:   tencentcloud_dayu_cc_http_policy.Test_policy.Resource_id,
			Name:         pulumi.StringRef(tencentcloud_dayu_cc_http_policy.Test_policy.Name),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetCcHttpPoliciesResultOutput

type GetCcHttpPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCcHttpPolicies.

func (GetCcHttpPoliciesResultOutput) ElementType

func (GetCcHttpPoliciesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetCcHttpPoliciesResultOutput) Lists

A list of CC http policies. Each element contains the following attributes:

func (GetCcHttpPoliciesResultOutput) Name

Name of the CC self-define http policy.

func (GetCcHttpPoliciesResultOutput) PolicyId

ID of the CC self-define http policy.

func (GetCcHttpPoliciesResultOutput) ResourceId

ID of the resource that the CC self-define http policy works for.

func (GetCcHttpPoliciesResultOutput) ResourceType

Type of the resource that the CC self-define http policy works for.

func (GetCcHttpPoliciesResultOutput) ResultOutputFile

func (GetCcHttpPoliciesResultOutput) ToGetCcHttpPoliciesResultOutput

func (o GetCcHttpPoliciesResultOutput) ToGetCcHttpPoliciesResultOutput() GetCcHttpPoliciesResultOutput

func (GetCcHttpPoliciesResultOutput) ToGetCcHttpPoliciesResultOutputWithContext

func (o GetCcHttpPoliciesResultOutput) ToGetCcHttpPoliciesResultOutputWithContext(ctx context.Context) GetCcHttpPoliciesResultOutput

type GetCcHttpsPoliciesArgs

type GetCcHttpsPoliciesArgs struct {
	// Name of the CC https policy to be queried.
	Name *string `pulumi:"name"`
	// Id of the CC https policy to be queried.
	PolicyId *string `pulumi:"policyId"`
	// Id of the resource that the CC https policy works for.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource that the CC https policy works for, valid value is `bgpip`.
	ResourceType string `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getCcHttpsPolicies.

type GetCcHttpsPoliciesList

type GetCcHttpsPoliciesList struct {
	// Action mode.
	Action string `pulumi:"action"`
	// Create time of the CC self-define https policy.
	CreateTime string `pulumi:"createTime"`
	// Domain that the CC self-define https policy works for.
	Domain string `pulumi:"domain"`
	// Ip of the CC self-define https policy.
	IpLists []string `pulumi:"ipLists"`
	// Name of the CC https policy to be queried.
	Name string `pulumi:"name"`
	// Id of the CC https policy to be queried.
	PolicyId string `pulumi:"policyId"`
	// Id of the resource that the CC https policy works for.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource that the CC https policy works for, valid value is `bgpip`.
	ResourceType string `pulumi:"resourceType"`
	// Rule id of the domain that the CC self-define https policy works for.
	RuleId    string                           `pulumi:"ruleId"`
	RuleLists []GetCcHttpsPoliciesListRuleList `pulumi:"ruleLists"`
	// Indicate the CC self-define https policy takes effect or not.
	Switch bool `pulumi:"switch"`
}

type GetCcHttpsPoliciesListArgs

type GetCcHttpsPoliciesListArgs struct {
	// Action mode.
	Action pulumi.StringInput `pulumi:"action"`
	// Create time of the CC self-define https policy.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Domain that the CC self-define https policy works for.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Ip of the CC self-define https policy.
	IpLists pulumi.StringArrayInput `pulumi:"ipLists"`
	// Name of the CC https policy to be queried.
	Name pulumi.StringInput `pulumi:"name"`
	// Id of the CC https policy to be queried.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// Id of the resource that the CC https policy works for.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// Type of the resource that the CC https policy works for, valid value is `bgpip`.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// Rule id of the domain that the CC self-define https policy works for.
	RuleId    pulumi.StringInput                       `pulumi:"ruleId"`
	RuleLists GetCcHttpsPoliciesListRuleListArrayInput `pulumi:"ruleLists"`
	// Indicate the CC self-define https policy takes effect or not.
	Switch pulumi.BoolInput `pulumi:"switch"`
}

func (GetCcHttpsPoliciesListArgs) ElementType

func (GetCcHttpsPoliciesListArgs) ElementType() reflect.Type

func (GetCcHttpsPoliciesListArgs) ToGetCcHttpsPoliciesListOutput

func (i GetCcHttpsPoliciesListArgs) ToGetCcHttpsPoliciesListOutput() GetCcHttpsPoliciesListOutput

func (GetCcHttpsPoliciesListArgs) ToGetCcHttpsPoliciesListOutputWithContext

func (i GetCcHttpsPoliciesListArgs) ToGetCcHttpsPoliciesListOutputWithContext(ctx context.Context) GetCcHttpsPoliciesListOutput

type GetCcHttpsPoliciesListArray

type GetCcHttpsPoliciesListArray []GetCcHttpsPoliciesListInput

func (GetCcHttpsPoliciesListArray) ElementType

func (GetCcHttpsPoliciesListArray) ToGetCcHttpsPoliciesListArrayOutput

func (i GetCcHttpsPoliciesListArray) ToGetCcHttpsPoliciesListArrayOutput() GetCcHttpsPoliciesListArrayOutput

func (GetCcHttpsPoliciesListArray) ToGetCcHttpsPoliciesListArrayOutputWithContext

func (i GetCcHttpsPoliciesListArray) ToGetCcHttpsPoliciesListArrayOutputWithContext(ctx context.Context) GetCcHttpsPoliciesListArrayOutput

type GetCcHttpsPoliciesListArrayInput

type GetCcHttpsPoliciesListArrayInput interface {
	pulumi.Input

	ToGetCcHttpsPoliciesListArrayOutput() GetCcHttpsPoliciesListArrayOutput
	ToGetCcHttpsPoliciesListArrayOutputWithContext(context.Context) GetCcHttpsPoliciesListArrayOutput
}

GetCcHttpsPoliciesListArrayInput is an input type that accepts GetCcHttpsPoliciesListArray and GetCcHttpsPoliciesListArrayOutput values. You can construct a concrete instance of `GetCcHttpsPoliciesListArrayInput` via:

GetCcHttpsPoliciesListArray{ GetCcHttpsPoliciesListArgs{...} }

type GetCcHttpsPoliciesListArrayOutput

type GetCcHttpsPoliciesListArrayOutput struct{ *pulumi.OutputState }

func (GetCcHttpsPoliciesListArrayOutput) ElementType

func (GetCcHttpsPoliciesListArrayOutput) Index

func (GetCcHttpsPoliciesListArrayOutput) ToGetCcHttpsPoliciesListArrayOutput

func (o GetCcHttpsPoliciesListArrayOutput) ToGetCcHttpsPoliciesListArrayOutput() GetCcHttpsPoliciesListArrayOutput

func (GetCcHttpsPoliciesListArrayOutput) ToGetCcHttpsPoliciesListArrayOutputWithContext

func (o GetCcHttpsPoliciesListArrayOutput) ToGetCcHttpsPoliciesListArrayOutputWithContext(ctx context.Context) GetCcHttpsPoliciesListArrayOutput

type GetCcHttpsPoliciesListInput

type GetCcHttpsPoliciesListInput interface {
	pulumi.Input

	ToGetCcHttpsPoliciesListOutput() GetCcHttpsPoliciesListOutput
	ToGetCcHttpsPoliciesListOutputWithContext(context.Context) GetCcHttpsPoliciesListOutput
}

GetCcHttpsPoliciesListInput is an input type that accepts GetCcHttpsPoliciesListArgs and GetCcHttpsPoliciesListOutput values. You can construct a concrete instance of `GetCcHttpsPoliciesListInput` via:

GetCcHttpsPoliciesListArgs{...}

type GetCcHttpsPoliciesListOutput

type GetCcHttpsPoliciesListOutput struct{ *pulumi.OutputState }

func (GetCcHttpsPoliciesListOutput) Action

Action mode.

func (GetCcHttpsPoliciesListOutput) CreateTime

Create time of the CC self-define https policy.

func (GetCcHttpsPoliciesListOutput) Domain

Domain that the CC self-define https policy works for.

func (GetCcHttpsPoliciesListOutput) ElementType

func (GetCcHttpsPoliciesListOutput) IpLists

Ip of the CC self-define https policy.

func (GetCcHttpsPoliciesListOutput) Name

Name of the CC https policy to be queried.

func (GetCcHttpsPoliciesListOutput) PolicyId

Id of the CC https policy to be queried.

func (GetCcHttpsPoliciesListOutput) ResourceId

Id of the resource that the CC https policy works for.

func (GetCcHttpsPoliciesListOutput) ResourceType

Type of the resource that the CC https policy works for, valid value is `bgpip`.

func (GetCcHttpsPoliciesListOutput) RuleId

Rule id of the domain that the CC self-define https policy works for.

func (GetCcHttpsPoliciesListOutput) RuleLists

func (GetCcHttpsPoliciesListOutput) Switch

Indicate the CC self-define https policy takes effect or not.

func (GetCcHttpsPoliciesListOutput) ToGetCcHttpsPoliciesListOutput

func (o GetCcHttpsPoliciesListOutput) ToGetCcHttpsPoliciesListOutput() GetCcHttpsPoliciesListOutput

func (GetCcHttpsPoliciesListOutput) ToGetCcHttpsPoliciesListOutputWithContext

func (o GetCcHttpsPoliciesListOutput) ToGetCcHttpsPoliciesListOutputWithContext(ctx context.Context) GetCcHttpsPoliciesListOutput

type GetCcHttpsPoliciesListRuleList

type GetCcHttpsPoliciesListRuleList struct {
	Operator string `pulumi:"operator"`
	Skey     string `pulumi:"skey"`
	Value    string `pulumi:"value"`
}

type GetCcHttpsPoliciesListRuleListArgs

type GetCcHttpsPoliciesListRuleListArgs struct {
	Operator pulumi.StringInput `pulumi:"operator"`
	Skey     pulumi.StringInput `pulumi:"skey"`
	Value    pulumi.StringInput `pulumi:"value"`
}

func (GetCcHttpsPoliciesListRuleListArgs) ElementType

func (GetCcHttpsPoliciesListRuleListArgs) ToGetCcHttpsPoliciesListRuleListOutput

func (i GetCcHttpsPoliciesListRuleListArgs) ToGetCcHttpsPoliciesListRuleListOutput() GetCcHttpsPoliciesListRuleListOutput

func (GetCcHttpsPoliciesListRuleListArgs) ToGetCcHttpsPoliciesListRuleListOutputWithContext

func (i GetCcHttpsPoliciesListRuleListArgs) ToGetCcHttpsPoliciesListRuleListOutputWithContext(ctx context.Context) GetCcHttpsPoliciesListRuleListOutput

type GetCcHttpsPoliciesListRuleListArray

type GetCcHttpsPoliciesListRuleListArray []GetCcHttpsPoliciesListRuleListInput

func (GetCcHttpsPoliciesListRuleListArray) ElementType

func (GetCcHttpsPoliciesListRuleListArray) ToGetCcHttpsPoliciesListRuleListArrayOutput

func (i GetCcHttpsPoliciesListRuleListArray) ToGetCcHttpsPoliciesListRuleListArrayOutput() GetCcHttpsPoliciesListRuleListArrayOutput

func (GetCcHttpsPoliciesListRuleListArray) ToGetCcHttpsPoliciesListRuleListArrayOutputWithContext

func (i GetCcHttpsPoliciesListRuleListArray) ToGetCcHttpsPoliciesListRuleListArrayOutputWithContext(ctx context.Context) GetCcHttpsPoliciesListRuleListArrayOutput

type GetCcHttpsPoliciesListRuleListArrayInput

type GetCcHttpsPoliciesListRuleListArrayInput interface {
	pulumi.Input

	ToGetCcHttpsPoliciesListRuleListArrayOutput() GetCcHttpsPoliciesListRuleListArrayOutput
	ToGetCcHttpsPoliciesListRuleListArrayOutputWithContext(context.Context) GetCcHttpsPoliciesListRuleListArrayOutput
}

GetCcHttpsPoliciesListRuleListArrayInput is an input type that accepts GetCcHttpsPoliciesListRuleListArray and GetCcHttpsPoliciesListRuleListArrayOutput values. You can construct a concrete instance of `GetCcHttpsPoliciesListRuleListArrayInput` via:

GetCcHttpsPoliciesListRuleListArray{ GetCcHttpsPoliciesListRuleListArgs{...} }

type GetCcHttpsPoliciesListRuleListArrayOutput

type GetCcHttpsPoliciesListRuleListArrayOutput struct{ *pulumi.OutputState }

func (GetCcHttpsPoliciesListRuleListArrayOutput) ElementType

func (GetCcHttpsPoliciesListRuleListArrayOutput) Index

func (GetCcHttpsPoliciesListRuleListArrayOutput) ToGetCcHttpsPoliciesListRuleListArrayOutput

func (o GetCcHttpsPoliciesListRuleListArrayOutput) ToGetCcHttpsPoliciesListRuleListArrayOutput() GetCcHttpsPoliciesListRuleListArrayOutput

func (GetCcHttpsPoliciesListRuleListArrayOutput) ToGetCcHttpsPoliciesListRuleListArrayOutputWithContext

func (o GetCcHttpsPoliciesListRuleListArrayOutput) ToGetCcHttpsPoliciesListRuleListArrayOutputWithContext(ctx context.Context) GetCcHttpsPoliciesListRuleListArrayOutput

type GetCcHttpsPoliciesListRuleListInput

type GetCcHttpsPoliciesListRuleListInput interface {
	pulumi.Input

	ToGetCcHttpsPoliciesListRuleListOutput() GetCcHttpsPoliciesListRuleListOutput
	ToGetCcHttpsPoliciesListRuleListOutputWithContext(context.Context) GetCcHttpsPoliciesListRuleListOutput
}

GetCcHttpsPoliciesListRuleListInput is an input type that accepts GetCcHttpsPoliciesListRuleListArgs and GetCcHttpsPoliciesListRuleListOutput values. You can construct a concrete instance of `GetCcHttpsPoliciesListRuleListInput` via:

GetCcHttpsPoliciesListRuleListArgs{...}

type GetCcHttpsPoliciesListRuleListOutput

type GetCcHttpsPoliciesListRuleListOutput struct{ *pulumi.OutputState }

func (GetCcHttpsPoliciesListRuleListOutput) ElementType

func (GetCcHttpsPoliciesListRuleListOutput) Operator

func (GetCcHttpsPoliciesListRuleListOutput) Skey

func (GetCcHttpsPoliciesListRuleListOutput) ToGetCcHttpsPoliciesListRuleListOutput

func (o GetCcHttpsPoliciesListRuleListOutput) ToGetCcHttpsPoliciesListRuleListOutput() GetCcHttpsPoliciesListRuleListOutput

func (GetCcHttpsPoliciesListRuleListOutput) ToGetCcHttpsPoliciesListRuleListOutputWithContext

func (o GetCcHttpsPoliciesListRuleListOutput) ToGetCcHttpsPoliciesListRuleListOutputWithContext(ctx context.Context) GetCcHttpsPoliciesListRuleListOutput

func (GetCcHttpsPoliciesListRuleListOutput) Value

type GetCcHttpsPoliciesOutputArgs

type GetCcHttpsPoliciesOutputArgs struct {
	// Name of the CC https policy to be queried.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Id of the CC https policy to be queried.
	PolicyId pulumi.StringPtrInput `pulumi:"policyId"`
	// Id of the resource that the CC https policy works for.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// Type of the resource that the CC https policy works for, valid value is `bgpip`.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getCcHttpsPolicies.

func (GetCcHttpsPoliciesOutputArgs) ElementType

type GetCcHttpsPoliciesResult

type GetCcHttpsPoliciesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CC https policies. Each element contains the following attributes:
	Lists []GetCcHttpsPoliciesList `pulumi:"lists"`
	// Name of the CC self-define https policy.
	Name *string `pulumi:"name"`
	// Id of the CC self-define https policy.
	PolicyId *string `pulumi:"policyId"`
	// ID of the resource that the CC self-define https policy works for.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource that the CC self-define https policy works for.
	ResourceType     string  `pulumi:"resourceType"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of values returned by getCcHttpsPolicies.

func GetCcHttpsPolicies

func GetCcHttpsPolicies(ctx *pulumi.Context, args *GetCcHttpsPoliciesArgs, opts ...pulumi.InvokeOption) (*GetCcHttpsPoliciesResult, error)

Use this data source to query dayu CC https policies

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.GetCcHttpsPolicies(ctx, &dayu.GetCcHttpsPoliciesArgs{
			ResourceType: tencentcloud_dayu_cc_https_policy.Test_policy.Resource_type,
			ResourceId:   tencentcloud_dayu_cc_https_policy.Test_policy.Resource_id,
			Name:         pulumi.StringRef(tencentcloud_dayu_cc_https_policy.Test_policy.Name),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Dayu.GetCcHttpsPolicies(ctx, &dayu.GetCcHttpsPoliciesArgs{
			ResourceType: tencentcloud_dayu_cc_https_policy.Test_policy.Resource_type,
			ResourceId:   tencentcloud_dayu_cc_https_policy.Test_policy.Resource_id,
			PolicyId:     pulumi.StringRef(tencentcloud_dayu_cc_https_policy.Test_policy.Policy_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetCcHttpsPoliciesResultOutput

type GetCcHttpsPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getCcHttpsPolicies.

func (GetCcHttpsPoliciesResultOutput) ElementType

func (GetCcHttpsPoliciesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetCcHttpsPoliciesResultOutput) Lists

A list of CC https policies. Each element contains the following attributes:

func (GetCcHttpsPoliciesResultOutput) Name

Name of the CC self-define https policy.

func (GetCcHttpsPoliciesResultOutput) PolicyId

Id of the CC self-define https policy.

func (GetCcHttpsPoliciesResultOutput) ResourceId

ID of the resource that the CC self-define https policy works for.

func (GetCcHttpsPoliciesResultOutput) ResourceType

Type of the resource that the CC self-define https policy works for.

func (GetCcHttpsPoliciesResultOutput) ResultOutputFile

func (GetCcHttpsPoliciesResultOutput) ToGetCcHttpsPoliciesResultOutput

func (o GetCcHttpsPoliciesResultOutput) ToGetCcHttpsPoliciesResultOutput() GetCcHttpsPoliciesResultOutput

func (GetCcHttpsPoliciesResultOutput) ToGetCcHttpsPoliciesResultOutputWithContext

func (o GetCcHttpsPoliciesResultOutput) ToGetCcHttpsPoliciesResultOutputWithContext(ctx context.Context) GetCcHttpsPoliciesResultOutput

type GetDdosPoliciesArgs

type GetDdosPoliciesArgs struct {
	// ID of the DDoS policy to be query.
	PolicyId *string `pulumi:"policyId"`
	// Type of the resource that the DDoS policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType string `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getDdosPolicies.

type GetDdosPoliciesList

type GetDdosPoliciesList struct {
	BlackIps []string `pulumi:"blackIps"`
	// Create time of the DDoS policy.
	CreateTime string `pulumi:"createTime"`
	// Option list of abnormal check of the DDoS policy.
	DropOptions []GetDdosPoliciesListDropOption `pulumi:"dropOptions"`
	// Name of the DDoS policy.
	Name string `pulumi:"name"`
	// Message filter options list.
	PacketFilters []GetDdosPoliciesListPacketFilter `pulumi:"packetFilters"`
	// ID of the DDoS policy to be query.
	PolicyId string `pulumi:"policyId"`
	// Port limits of abnormal check of the DDoS policy.
	PortFilters []GetDdosPoliciesListPortFilter `pulumi:"portFilters"`
	// Id of policy case that the DDoS policy works for.
	SceneId string `pulumi:"sceneId"`
	// Watermark policy options, and only support one watermark policy at most.
	WatermarkFilters []GetDdosPoliciesListWatermarkFilter `pulumi:"watermarkFilters"`
	// Watermark content.
	WatermarkKeys []GetDdosPoliciesListWatermarkKey `pulumi:"watermarkKeys"`
	WhiteIps      []string                          `pulumi:"whiteIps"`
}

type GetDdosPoliciesListArgs

type GetDdosPoliciesListArgs struct {
	BlackIps pulumi.StringArrayInput `pulumi:"blackIps"`
	// Create time of the DDoS policy.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Option list of abnormal check of the DDoS policy.
	DropOptions GetDdosPoliciesListDropOptionArrayInput `pulumi:"dropOptions"`
	// Name of the DDoS policy.
	Name pulumi.StringInput `pulumi:"name"`
	// Message filter options list.
	PacketFilters GetDdosPoliciesListPacketFilterArrayInput `pulumi:"packetFilters"`
	// ID of the DDoS policy to be query.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// Port limits of abnormal check of the DDoS policy.
	PortFilters GetDdosPoliciesListPortFilterArrayInput `pulumi:"portFilters"`
	// Id of policy case that the DDoS policy works for.
	SceneId pulumi.StringInput `pulumi:"sceneId"`
	// Watermark policy options, and only support one watermark policy at most.
	WatermarkFilters GetDdosPoliciesListWatermarkFilterArrayInput `pulumi:"watermarkFilters"`
	// Watermark content.
	WatermarkKeys GetDdosPoliciesListWatermarkKeyArrayInput `pulumi:"watermarkKeys"`
	WhiteIps      pulumi.StringArrayInput                   `pulumi:"whiteIps"`
}

func (GetDdosPoliciesListArgs) ElementType

func (GetDdosPoliciesListArgs) ElementType() reflect.Type

func (GetDdosPoliciesListArgs) ToGetDdosPoliciesListOutput

func (i GetDdosPoliciesListArgs) ToGetDdosPoliciesListOutput() GetDdosPoliciesListOutput

func (GetDdosPoliciesListArgs) ToGetDdosPoliciesListOutputWithContext

func (i GetDdosPoliciesListArgs) ToGetDdosPoliciesListOutputWithContext(ctx context.Context) GetDdosPoliciesListOutput

type GetDdosPoliciesListArray

type GetDdosPoliciesListArray []GetDdosPoliciesListInput

func (GetDdosPoliciesListArray) ElementType

func (GetDdosPoliciesListArray) ElementType() reflect.Type

func (GetDdosPoliciesListArray) ToGetDdosPoliciesListArrayOutput

func (i GetDdosPoliciesListArray) ToGetDdosPoliciesListArrayOutput() GetDdosPoliciesListArrayOutput

func (GetDdosPoliciesListArray) ToGetDdosPoliciesListArrayOutputWithContext

func (i GetDdosPoliciesListArray) ToGetDdosPoliciesListArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListArrayOutput

type GetDdosPoliciesListArrayInput

type GetDdosPoliciesListArrayInput interface {
	pulumi.Input

	ToGetDdosPoliciesListArrayOutput() GetDdosPoliciesListArrayOutput
	ToGetDdosPoliciesListArrayOutputWithContext(context.Context) GetDdosPoliciesListArrayOutput
}

GetDdosPoliciesListArrayInput is an input type that accepts GetDdosPoliciesListArray and GetDdosPoliciesListArrayOutput values. You can construct a concrete instance of `GetDdosPoliciesListArrayInput` via:

GetDdosPoliciesListArray{ GetDdosPoliciesListArgs{...} }

type GetDdosPoliciesListArrayOutput

type GetDdosPoliciesListArrayOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListArrayOutput) ElementType

func (GetDdosPoliciesListArrayOutput) Index

func (GetDdosPoliciesListArrayOutput) ToGetDdosPoliciesListArrayOutput

func (o GetDdosPoliciesListArrayOutput) ToGetDdosPoliciesListArrayOutput() GetDdosPoliciesListArrayOutput

func (GetDdosPoliciesListArrayOutput) ToGetDdosPoliciesListArrayOutputWithContext

func (o GetDdosPoliciesListArrayOutput) ToGetDdosPoliciesListArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListArrayOutput

type GetDdosPoliciesListDropOption

type GetDdosPoliciesListDropOption struct {
	// The number of new connections based on destination IP that trigger suppression of connections.
	BadConnThreshold int `pulumi:"badConnThreshold"`
	// Indicate whether to check null connection or not.
	CheckSyncConn bool `pulumi:"checkSyncConn"`
	// Connection timeout of abnormal connection check.
	ConnTimeout int `pulumi:"connTimeout"`
	// The limit of concurrent connections based on destination IP.
	DConnLimit int `pulumi:"dConnLimit"`
	// The limit of new connections based on destination IP.
	DNewLimit  int  `pulumi:"dNewLimit"`
	DropAbroad bool `pulumi:"dropAbroad"`
	// Indicate whether to drop ICMP protocol or not.
	DropIcmp bool `pulumi:"dropIcmp"`
	// Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.
	DropOther bool `pulumi:"dropOther"`
	// Indicate whether to drop TCP protocol or not.
	DropTcp bool `pulumi:"dropTcp"`
	// Indicate to drop UDP protocol or not.
	DropUdp bool `pulumi:"dropUdp"`
	// The limit of ICMP traffic rate.
	IcmpMbpsLimit int `pulumi:"icmpMbpsLimit"`
	// Indicate to enable null connection or not.
	NullConnEnable bool `pulumi:"nullConnEnable"`
	// The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate.
	OtherMbpsLimit int `pulumi:"otherMbpsLimit"`
	// The limit of concurrent connections based on source IP.
	SConnLimit int `pulumi:"sConnLimit"`
	// The limit of new connections based on source IP.
	SNewLimit int `pulumi:"sNewLimit"`
	// The limit of syn of abnormal connection check.
	SynLimit int `pulumi:"synLimit"`
	// The percentage of syn in ack of abnormal connection check.
	SynRate int `pulumi:"synRate"`
	// The limit of TCP traffic.
	TcpMbpsLimit int `pulumi:"tcpMbpsLimit"`
	// The limit of UDP traffic rate.
	UdpMbpsLimit int `pulumi:"udpMbpsLimit"`
}

type GetDdosPoliciesListDropOptionArgs

type GetDdosPoliciesListDropOptionArgs struct {
	// The number of new connections based on destination IP that trigger suppression of connections.
	BadConnThreshold pulumi.IntInput `pulumi:"badConnThreshold"`
	// Indicate whether to check null connection or not.
	CheckSyncConn pulumi.BoolInput `pulumi:"checkSyncConn"`
	// Connection timeout of abnormal connection check.
	ConnTimeout pulumi.IntInput `pulumi:"connTimeout"`
	// The limit of concurrent connections based on destination IP.
	DConnLimit pulumi.IntInput `pulumi:"dConnLimit"`
	// The limit of new connections based on destination IP.
	DNewLimit  pulumi.IntInput  `pulumi:"dNewLimit"`
	DropAbroad pulumi.BoolInput `pulumi:"dropAbroad"`
	// Indicate whether to drop ICMP protocol or not.
	DropIcmp pulumi.BoolInput `pulumi:"dropIcmp"`
	// Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.
	DropOther pulumi.BoolInput `pulumi:"dropOther"`
	// Indicate whether to drop TCP protocol or not.
	DropTcp pulumi.BoolInput `pulumi:"dropTcp"`
	// Indicate to drop UDP protocol or not.
	DropUdp pulumi.BoolInput `pulumi:"dropUdp"`
	// The limit of ICMP traffic rate.
	IcmpMbpsLimit pulumi.IntInput `pulumi:"icmpMbpsLimit"`
	// Indicate to enable null connection or not.
	NullConnEnable pulumi.BoolInput `pulumi:"nullConnEnable"`
	// The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate.
	OtherMbpsLimit pulumi.IntInput `pulumi:"otherMbpsLimit"`
	// The limit of concurrent connections based on source IP.
	SConnLimit pulumi.IntInput `pulumi:"sConnLimit"`
	// The limit of new connections based on source IP.
	SNewLimit pulumi.IntInput `pulumi:"sNewLimit"`
	// The limit of syn of abnormal connection check.
	SynLimit pulumi.IntInput `pulumi:"synLimit"`
	// The percentage of syn in ack of abnormal connection check.
	SynRate pulumi.IntInput `pulumi:"synRate"`
	// The limit of TCP traffic.
	TcpMbpsLimit pulumi.IntInput `pulumi:"tcpMbpsLimit"`
	// The limit of UDP traffic rate.
	UdpMbpsLimit pulumi.IntInput `pulumi:"udpMbpsLimit"`
}

func (GetDdosPoliciesListDropOptionArgs) ElementType

func (GetDdosPoliciesListDropOptionArgs) ToGetDdosPoliciesListDropOptionOutput

func (i GetDdosPoliciesListDropOptionArgs) ToGetDdosPoliciesListDropOptionOutput() GetDdosPoliciesListDropOptionOutput

func (GetDdosPoliciesListDropOptionArgs) ToGetDdosPoliciesListDropOptionOutputWithContext

func (i GetDdosPoliciesListDropOptionArgs) ToGetDdosPoliciesListDropOptionOutputWithContext(ctx context.Context) GetDdosPoliciesListDropOptionOutput

type GetDdosPoliciesListDropOptionArray

type GetDdosPoliciesListDropOptionArray []GetDdosPoliciesListDropOptionInput

func (GetDdosPoliciesListDropOptionArray) ElementType

func (GetDdosPoliciesListDropOptionArray) ToGetDdosPoliciesListDropOptionArrayOutput

func (i GetDdosPoliciesListDropOptionArray) ToGetDdosPoliciesListDropOptionArrayOutput() GetDdosPoliciesListDropOptionArrayOutput

func (GetDdosPoliciesListDropOptionArray) ToGetDdosPoliciesListDropOptionArrayOutputWithContext

func (i GetDdosPoliciesListDropOptionArray) ToGetDdosPoliciesListDropOptionArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListDropOptionArrayOutput

type GetDdosPoliciesListDropOptionArrayInput

type GetDdosPoliciesListDropOptionArrayInput interface {
	pulumi.Input

	ToGetDdosPoliciesListDropOptionArrayOutput() GetDdosPoliciesListDropOptionArrayOutput
	ToGetDdosPoliciesListDropOptionArrayOutputWithContext(context.Context) GetDdosPoliciesListDropOptionArrayOutput
}

GetDdosPoliciesListDropOptionArrayInput is an input type that accepts GetDdosPoliciesListDropOptionArray and GetDdosPoliciesListDropOptionArrayOutput values. You can construct a concrete instance of `GetDdosPoliciesListDropOptionArrayInput` via:

GetDdosPoliciesListDropOptionArray{ GetDdosPoliciesListDropOptionArgs{...} }

type GetDdosPoliciesListDropOptionArrayOutput

type GetDdosPoliciesListDropOptionArrayOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListDropOptionArrayOutput) ElementType

func (GetDdosPoliciesListDropOptionArrayOutput) Index

func (GetDdosPoliciesListDropOptionArrayOutput) ToGetDdosPoliciesListDropOptionArrayOutput

func (o GetDdosPoliciesListDropOptionArrayOutput) ToGetDdosPoliciesListDropOptionArrayOutput() GetDdosPoliciesListDropOptionArrayOutput

func (GetDdosPoliciesListDropOptionArrayOutput) ToGetDdosPoliciesListDropOptionArrayOutputWithContext

func (o GetDdosPoliciesListDropOptionArrayOutput) ToGetDdosPoliciesListDropOptionArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListDropOptionArrayOutput

type GetDdosPoliciesListDropOptionInput

type GetDdosPoliciesListDropOptionInput interface {
	pulumi.Input

	ToGetDdosPoliciesListDropOptionOutput() GetDdosPoliciesListDropOptionOutput
	ToGetDdosPoliciesListDropOptionOutputWithContext(context.Context) GetDdosPoliciesListDropOptionOutput
}

GetDdosPoliciesListDropOptionInput is an input type that accepts GetDdosPoliciesListDropOptionArgs and GetDdosPoliciesListDropOptionOutput values. You can construct a concrete instance of `GetDdosPoliciesListDropOptionInput` via:

GetDdosPoliciesListDropOptionArgs{...}

type GetDdosPoliciesListDropOptionOutput

type GetDdosPoliciesListDropOptionOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListDropOptionOutput) BadConnThreshold

The number of new connections based on destination IP that trigger suppression of connections.

func (GetDdosPoliciesListDropOptionOutput) CheckSyncConn

Indicate whether to check null connection or not.

func (GetDdosPoliciesListDropOptionOutput) ConnTimeout

Connection timeout of abnormal connection check.

func (GetDdosPoliciesListDropOptionOutput) DConnLimit

The limit of concurrent connections based on destination IP.

func (GetDdosPoliciesListDropOptionOutput) DNewLimit

The limit of new connections based on destination IP.

func (GetDdosPoliciesListDropOptionOutput) DropAbroad

func (GetDdosPoliciesListDropOptionOutput) DropIcmp

Indicate whether to drop ICMP protocol or not.

func (GetDdosPoliciesListDropOptionOutput) DropOther

Indicate whether to drop other protocols(exclude TCP/UDP/ICMP) or not.

func (GetDdosPoliciesListDropOptionOutput) DropTcp

Indicate whether to drop TCP protocol or not.

func (GetDdosPoliciesListDropOptionOutput) DropUdp

Indicate to drop UDP protocol or not.

func (GetDdosPoliciesListDropOptionOutput) ElementType

func (GetDdosPoliciesListDropOptionOutput) IcmpMbpsLimit

The limit of ICMP traffic rate.

func (GetDdosPoliciesListDropOptionOutput) NullConnEnable

Indicate to enable null connection or not.

func (GetDdosPoliciesListDropOptionOutput) OtherMbpsLimit

The limit of other protocols(exclude TCP/UDP/ICMP) traffic rate.

func (GetDdosPoliciesListDropOptionOutput) SConnLimit

The limit of concurrent connections based on source IP.

func (GetDdosPoliciesListDropOptionOutput) SNewLimit

The limit of new connections based on source IP.

func (GetDdosPoliciesListDropOptionOutput) SynLimit

The limit of syn of abnormal connection check.

func (GetDdosPoliciesListDropOptionOutput) SynRate

The percentage of syn in ack of abnormal connection check.

func (GetDdosPoliciesListDropOptionOutput) TcpMbpsLimit

The limit of TCP traffic.

func (GetDdosPoliciesListDropOptionOutput) ToGetDdosPoliciesListDropOptionOutput

func (o GetDdosPoliciesListDropOptionOutput) ToGetDdosPoliciesListDropOptionOutput() GetDdosPoliciesListDropOptionOutput

func (GetDdosPoliciesListDropOptionOutput) ToGetDdosPoliciesListDropOptionOutputWithContext

func (o GetDdosPoliciesListDropOptionOutput) ToGetDdosPoliciesListDropOptionOutputWithContext(ctx context.Context) GetDdosPoliciesListDropOptionOutput

func (GetDdosPoliciesListDropOptionOutput) UdpMbpsLimit

The limit of UDP traffic rate.

type GetDdosPoliciesListInput

type GetDdosPoliciesListInput interface {
	pulumi.Input

	ToGetDdosPoliciesListOutput() GetDdosPoliciesListOutput
	ToGetDdosPoliciesListOutputWithContext(context.Context) GetDdosPoliciesListOutput
}

GetDdosPoliciesListInput is an input type that accepts GetDdosPoliciesListArgs and GetDdosPoliciesListOutput values. You can construct a concrete instance of `GetDdosPoliciesListInput` via:

GetDdosPoliciesListArgs{...}

type GetDdosPoliciesListOutput

type GetDdosPoliciesListOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListOutput) BlackIps

func (GetDdosPoliciesListOutput) CreateTime

Create time of the DDoS policy.

func (GetDdosPoliciesListOutput) DropOptions

Option list of abnormal check of the DDoS policy.

func (GetDdosPoliciesListOutput) ElementType

func (GetDdosPoliciesListOutput) ElementType() reflect.Type

func (GetDdosPoliciesListOutput) Name

Name of the DDoS policy.

func (GetDdosPoliciesListOutput) PacketFilters

Message filter options list.

func (GetDdosPoliciesListOutput) PolicyId

ID of the DDoS policy to be query.

func (GetDdosPoliciesListOutput) PortFilters

Port limits of abnormal check of the DDoS policy.

func (GetDdosPoliciesListOutput) SceneId

Id of policy case that the DDoS policy works for.

func (GetDdosPoliciesListOutput) ToGetDdosPoliciesListOutput

func (o GetDdosPoliciesListOutput) ToGetDdosPoliciesListOutput() GetDdosPoliciesListOutput

func (GetDdosPoliciesListOutput) ToGetDdosPoliciesListOutputWithContext

func (o GetDdosPoliciesListOutput) ToGetDdosPoliciesListOutputWithContext(ctx context.Context) GetDdosPoliciesListOutput

func (GetDdosPoliciesListOutput) WatermarkFilters

Watermark policy options, and only support one watermark policy at most.

func (GetDdosPoliciesListOutput) WatermarkKeys

Watermark content.

func (GetDdosPoliciesListOutput) WhiteIps

type GetDdosPoliciesListPacketFilter

type GetDdosPoliciesListPacketFilter struct {
	// Action of port to take.
	Action string `pulumi:"action"`
	// End port of the destination.
	DEndPort int `pulumi:"dEndPort"`
	// Start port of the destination.
	DStartPort int `pulumi:"dStartPort"`
	// The depth of match.
	Depth int `pulumi:"depth"`
	// Indicate whether to include the key word/regular expression or not.
	IsInclude bool `pulumi:"isInclude"`
	// Indicate whether to check load or not.
	MatchBegin string `pulumi:"matchBegin"`
	// The key word or regular expression.
	MatchStr string `pulumi:"matchStr"`
	// Match type.
	MatchType string `pulumi:"matchType"`
	// The offset of watermark.
	Offset int `pulumi:"offset"`
	// The max length of the packet.
	PktLengthMax int `pulumi:"pktLengthMax"`
	// The minimum length of the packet.
	PktLengthMin int `pulumi:"pktLengthMin"`
	// Protocol.
	Protocol string `pulumi:"protocol"`
	// End port of the source.
	SEndPort int `pulumi:"sEndPort"`
	// Start port of the source.
	SStartPort int `pulumi:"sStartPort"`
}

type GetDdosPoliciesListPacketFilterArgs

type GetDdosPoliciesListPacketFilterArgs struct {
	// Action of port to take.
	Action pulumi.StringInput `pulumi:"action"`
	// End port of the destination.
	DEndPort pulumi.IntInput `pulumi:"dEndPort"`
	// Start port of the destination.
	DStartPort pulumi.IntInput `pulumi:"dStartPort"`
	// The depth of match.
	Depth pulumi.IntInput `pulumi:"depth"`
	// Indicate whether to include the key word/regular expression or not.
	IsInclude pulumi.BoolInput `pulumi:"isInclude"`
	// Indicate whether to check load or not.
	MatchBegin pulumi.StringInput `pulumi:"matchBegin"`
	// The key word or regular expression.
	MatchStr pulumi.StringInput `pulumi:"matchStr"`
	// Match type.
	MatchType pulumi.StringInput `pulumi:"matchType"`
	// The offset of watermark.
	Offset pulumi.IntInput `pulumi:"offset"`
	// The max length of the packet.
	PktLengthMax pulumi.IntInput `pulumi:"pktLengthMax"`
	// The minimum length of the packet.
	PktLengthMin pulumi.IntInput `pulumi:"pktLengthMin"`
	// Protocol.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// End port of the source.
	SEndPort pulumi.IntInput `pulumi:"sEndPort"`
	// Start port of the source.
	SStartPort pulumi.IntInput `pulumi:"sStartPort"`
}

func (GetDdosPoliciesListPacketFilterArgs) ElementType

func (GetDdosPoliciesListPacketFilterArgs) ToGetDdosPoliciesListPacketFilterOutput

func (i GetDdosPoliciesListPacketFilterArgs) ToGetDdosPoliciesListPacketFilterOutput() GetDdosPoliciesListPacketFilterOutput

func (GetDdosPoliciesListPacketFilterArgs) ToGetDdosPoliciesListPacketFilterOutputWithContext

func (i GetDdosPoliciesListPacketFilterArgs) ToGetDdosPoliciesListPacketFilterOutputWithContext(ctx context.Context) GetDdosPoliciesListPacketFilterOutput

type GetDdosPoliciesListPacketFilterArray

type GetDdosPoliciesListPacketFilterArray []GetDdosPoliciesListPacketFilterInput

func (GetDdosPoliciesListPacketFilterArray) ElementType

func (GetDdosPoliciesListPacketFilterArray) ToGetDdosPoliciesListPacketFilterArrayOutput

func (i GetDdosPoliciesListPacketFilterArray) ToGetDdosPoliciesListPacketFilterArrayOutput() GetDdosPoliciesListPacketFilterArrayOutput

func (GetDdosPoliciesListPacketFilterArray) ToGetDdosPoliciesListPacketFilterArrayOutputWithContext

func (i GetDdosPoliciesListPacketFilterArray) ToGetDdosPoliciesListPacketFilterArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListPacketFilterArrayOutput

type GetDdosPoliciesListPacketFilterArrayInput

type GetDdosPoliciesListPacketFilterArrayInput interface {
	pulumi.Input

	ToGetDdosPoliciesListPacketFilterArrayOutput() GetDdosPoliciesListPacketFilterArrayOutput
	ToGetDdosPoliciesListPacketFilterArrayOutputWithContext(context.Context) GetDdosPoliciesListPacketFilterArrayOutput
}

GetDdosPoliciesListPacketFilterArrayInput is an input type that accepts GetDdosPoliciesListPacketFilterArray and GetDdosPoliciesListPacketFilterArrayOutput values. You can construct a concrete instance of `GetDdosPoliciesListPacketFilterArrayInput` via:

GetDdosPoliciesListPacketFilterArray{ GetDdosPoliciesListPacketFilterArgs{...} }

type GetDdosPoliciesListPacketFilterArrayOutput

type GetDdosPoliciesListPacketFilterArrayOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListPacketFilterArrayOutput) ElementType

func (GetDdosPoliciesListPacketFilterArrayOutput) Index

func (GetDdosPoliciesListPacketFilterArrayOutput) ToGetDdosPoliciesListPacketFilterArrayOutput

func (o GetDdosPoliciesListPacketFilterArrayOutput) ToGetDdosPoliciesListPacketFilterArrayOutput() GetDdosPoliciesListPacketFilterArrayOutput

func (GetDdosPoliciesListPacketFilterArrayOutput) ToGetDdosPoliciesListPacketFilterArrayOutputWithContext

func (o GetDdosPoliciesListPacketFilterArrayOutput) ToGetDdosPoliciesListPacketFilterArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListPacketFilterArrayOutput

type GetDdosPoliciesListPacketFilterInput

type GetDdosPoliciesListPacketFilterInput interface {
	pulumi.Input

	ToGetDdosPoliciesListPacketFilterOutput() GetDdosPoliciesListPacketFilterOutput
	ToGetDdosPoliciesListPacketFilterOutputWithContext(context.Context) GetDdosPoliciesListPacketFilterOutput
}

GetDdosPoliciesListPacketFilterInput is an input type that accepts GetDdosPoliciesListPacketFilterArgs and GetDdosPoliciesListPacketFilterOutput values. You can construct a concrete instance of `GetDdosPoliciesListPacketFilterInput` via:

GetDdosPoliciesListPacketFilterArgs{...}

type GetDdosPoliciesListPacketFilterOutput

type GetDdosPoliciesListPacketFilterOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListPacketFilterOutput) Action

Action of port to take.

func (GetDdosPoliciesListPacketFilterOutput) DEndPort

End port of the destination.

func (GetDdosPoliciesListPacketFilterOutput) DStartPort

Start port of the destination.

func (GetDdosPoliciesListPacketFilterOutput) Depth

The depth of match.

func (GetDdosPoliciesListPacketFilterOutput) ElementType

func (GetDdosPoliciesListPacketFilterOutput) IsInclude

Indicate whether to include the key word/regular expression or not.

func (GetDdosPoliciesListPacketFilterOutput) MatchBegin

Indicate whether to check load or not.

func (GetDdosPoliciesListPacketFilterOutput) MatchStr

The key word or regular expression.

func (GetDdosPoliciesListPacketFilterOutput) MatchType

Match type.

func (GetDdosPoliciesListPacketFilterOutput) Offset

The offset of watermark.

func (GetDdosPoliciesListPacketFilterOutput) PktLengthMax

The max length of the packet.

func (GetDdosPoliciesListPacketFilterOutput) PktLengthMin

The minimum length of the packet.

func (GetDdosPoliciesListPacketFilterOutput) Protocol

Protocol.

func (GetDdosPoliciesListPacketFilterOutput) SEndPort

End port of the source.

func (GetDdosPoliciesListPacketFilterOutput) SStartPort

Start port of the source.

func (GetDdosPoliciesListPacketFilterOutput) ToGetDdosPoliciesListPacketFilterOutput

func (o GetDdosPoliciesListPacketFilterOutput) ToGetDdosPoliciesListPacketFilterOutput() GetDdosPoliciesListPacketFilterOutput

func (GetDdosPoliciesListPacketFilterOutput) ToGetDdosPoliciesListPacketFilterOutputWithContext

func (o GetDdosPoliciesListPacketFilterOutput) ToGetDdosPoliciesListPacketFilterOutputWithContext(ctx context.Context) GetDdosPoliciesListPacketFilterOutput

type GetDdosPoliciesListPortFilter

type GetDdosPoliciesListPortFilter struct {
	// Action of port to take.
	Action string `pulumi:"action"`
	// End port.
	EndPort int `pulumi:"endPort"`
	// The type of forbidden port, and valid values are 0, 1, 2. 0 for destination port, 1 for source port and 2 for both destination and source posts.
	Kind int `pulumi:"kind"`
	// Protocol.
	Protocol string `pulumi:"protocol"`
	// Start port.
	StartPort int `pulumi:"startPort"`
}

type GetDdosPoliciesListPortFilterArgs

type GetDdosPoliciesListPortFilterArgs struct {
	// Action of port to take.
	Action pulumi.StringInput `pulumi:"action"`
	// End port.
	EndPort pulumi.IntInput `pulumi:"endPort"`
	// The type of forbidden port, and valid values are 0, 1, 2. 0 for destination port, 1 for source port and 2 for both destination and source posts.
	Kind pulumi.IntInput `pulumi:"kind"`
	// Protocol.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// Start port.
	StartPort pulumi.IntInput `pulumi:"startPort"`
}

func (GetDdosPoliciesListPortFilterArgs) ElementType

func (GetDdosPoliciesListPortFilterArgs) ToGetDdosPoliciesListPortFilterOutput

func (i GetDdosPoliciesListPortFilterArgs) ToGetDdosPoliciesListPortFilterOutput() GetDdosPoliciesListPortFilterOutput

func (GetDdosPoliciesListPortFilterArgs) ToGetDdosPoliciesListPortFilterOutputWithContext

func (i GetDdosPoliciesListPortFilterArgs) ToGetDdosPoliciesListPortFilterOutputWithContext(ctx context.Context) GetDdosPoliciesListPortFilterOutput

type GetDdosPoliciesListPortFilterArray

type GetDdosPoliciesListPortFilterArray []GetDdosPoliciesListPortFilterInput

func (GetDdosPoliciesListPortFilterArray) ElementType

func (GetDdosPoliciesListPortFilterArray) ToGetDdosPoliciesListPortFilterArrayOutput

func (i GetDdosPoliciesListPortFilterArray) ToGetDdosPoliciesListPortFilterArrayOutput() GetDdosPoliciesListPortFilterArrayOutput

func (GetDdosPoliciesListPortFilterArray) ToGetDdosPoliciesListPortFilterArrayOutputWithContext

func (i GetDdosPoliciesListPortFilterArray) ToGetDdosPoliciesListPortFilterArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListPortFilterArrayOutput

type GetDdosPoliciesListPortFilterArrayInput

type GetDdosPoliciesListPortFilterArrayInput interface {
	pulumi.Input

	ToGetDdosPoliciesListPortFilterArrayOutput() GetDdosPoliciesListPortFilterArrayOutput
	ToGetDdosPoliciesListPortFilterArrayOutputWithContext(context.Context) GetDdosPoliciesListPortFilterArrayOutput
}

GetDdosPoliciesListPortFilterArrayInput is an input type that accepts GetDdosPoliciesListPortFilterArray and GetDdosPoliciesListPortFilterArrayOutput values. You can construct a concrete instance of `GetDdosPoliciesListPortFilterArrayInput` via:

GetDdosPoliciesListPortFilterArray{ GetDdosPoliciesListPortFilterArgs{...} }

type GetDdosPoliciesListPortFilterArrayOutput

type GetDdosPoliciesListPortFilterArrayOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListPortFilterArrayOutput) ElementType

func (GetDdosPoliciesListPortFilterArrayOutput) Index

func (GetDdosPoliciesListPortFilterArrayOutput) ToGetDdosPoliciesListPortFilterArrayOutput

func (o GetDdosPoliciesListPortFilterArrayOutput) ToGetDdosPoliciesListPortFilterArrayOutput() GetDdosPoliciesListPortFilterArrayOutput

func (GetDdosPoliciesListPortFilterArrayOutput) ToGetDdosPoliciesListPortFilterArrayOutputWithContext

func (o GetDdosPoliciesListPortFilterArrayOutput) ToGetDdosPoliciesListPortFilterArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListPortFilterArrayOutput

type GetDdosPoliciesListPortFilterInput

type GetDdosPoliciesListPortFilterInput interface {
	pulumi.Input

	ToGetDdosPoliciesListPortFilterOutput() GetDdosPoliciesListPortFilterOutput
	ToGetDdosPoliciesListPortFilterOutputWithContext(context.Context) GetDdosPoliciesListPortFilterOutput
}

GetDdosPoliciesListPortFilterInput is an input type that accepts GetDdosPoliciesListPortFilterArgs and GetDdosPoliciesListPortFilterOutput values. You can construct a concrete instance of `GetDdosPoliciesListPortFilterInput` via:

GetDdosPoliciesListPortFilterArgs{...}

type GetDdosPoliciesListPortFilterOutput

type GetDdosPoliciesListPortFilterOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListPortFilterOutput) Action

Action of port to take.

func (GetDdosPoliciesListPortFilterOutput) ElementType

func (GetDdosPoliciesListPortFilterOutput) EndPort

End port.

func (GetDdosPoliciesListPortFilterOutput) Kind

The type of forbidden port, and valid values are 0, 1, 2. 0 for destination port, 1 for source port and 2 for both destination and source posts.

func (GetDdosPoliciesListPortFilterOutput) Protocol

Protocol.

func (GetDdosPoliciesListPortFilterOutput) StartPort

Start port.

func (GetDdosPoliciesListPortFilterOutput) ToGetDdosPoliciesListPortFilterOutput

func (o GetDdosPoliciesListPortFilterOutput) ToGetDdosPoliciesListPortFilterOutput() GetDdosPoliciesListPortFilterOutput

func (GetDdosPoliciesListPortFilterOutput) ToGetDdosPoliciesListPortFilterOutputWithContext

func (o GetDdosPoliciesListPortFilterOutput) ToGetDdosPoliciesListPortFilterOutputWithContext(ctx context.Context) GetDdosPoliciesListPortFilterOutput

type GetDdosPoliciesListWatermarkFilter

type GetDdosPoliciesListWatermarkFilter struct {
	// Indicate whether to auto-remove the watermark or not.
	AutoRemove bool `pulumi:"autoRemove"`
	// The offset of watermark.
	Offset int `pulumi:"offset"`
	// Indicate whether to auto-remove the watermark or not.
	OpenSwitch bool `pulumi:"openSwitch"`
	// Port range of TCP.
	TcpPortLists []string `pulumi:"tcpPortLists"`
	// Port range of TCP.
	UdpPortLists []string `pulumi:"udpPortLists"`
}

type GetDdosPoliciesListWatermarkFilterArgs

type GetDdosPoliciesListWatermarkFilterArgs struct {
	// Indicate whether to auto-remove the watermark or not.
	AutoRemove pulumi.BoolInput `pulumi:"autoRemove"`
	// The offset of watermark.
	Offset pulumi.IntInput `pulumi:"offset"`
	// Indicate whether to auto-remove the watermark or not.
	OpenSwitch pulumi.BoolInput `pulumi:"openSwitch"`
	// Port range of TCP.
	TcpPortLists pulumi.StringArrayInput `pulumi:"tcpPortLists"`
	// Port range of TCP.
	UdpPortLists pulumi.StringArrayInput `pulumi:"udpPortLists"`
}

func (GetDdosPoliciesListWatermarkFilterArgs) ElementType

func (GetDdosPoliciesListWatermarkFilterArgs) ToGetDdosPoliciesListWatermarkFilterOutput

func (i GetDdosPoliciesListWatermarkFilterArgs) ToGetDdosPoliciesListWatermarkFilterOutput() GetDdosPoliciesListWatermarkFilterOutput

func (GetDdosPoliciesListWatermarkFilterArgs) ToGetDdosPoliciesListWatermarkFilterOutputWithContext

func (i GetDdosPoliciesListWatermarkFilterArgs) ToGetDdosPoliciesListWatermarkFilterOutputWithContext(ctx context.Context) GetDdosPoliciesListWatermarkFilterOutput

type GetDdosPoliciesListWatermarkFilterArray

type GetDdosPoliciesListWatermarkFilterArray []GetDdosPoliciesListWatermarkFilterInput

func (GetDdosPoliciesListWatermarkFilterArray) ElementType

func (GetDdosPoliciesListWatermarkFilterArray) ToGetDdosPoliciesListWatermarkFilterArrayOutput

func (i GetDdosPoliciesListWatermarkFilterArray) ToGetDdosPoliciesListWatermarkFilterArrayOutput() GetDdosPoliciesListWatermarkFilterArrayOutput

func (GetDdosPoliciesListWatermarkFilterArray) ToGetDdosPoliciesListWatermarkFilterArrayOutputWithContext

func (i GetDdosPoliciesListWatermarkFilterArray) ToGetDdosPoliciesListWatermarkFilterArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListWatermarkFilterArrayOutput

type GetDdosPoliciesListWatermarkFilterArrayInput

type GetDdosPoliciesListWatermarkFilterArrayInput interface {
	pulumi.Input

	ToGetDdosPoliciesListWatermarkFilterArrayOutput() GetDdosPoliciesListWatermarkFilterArrayOutput
	ToGetDdosPoliciesListWatermarkFilterArrayOutputWithContext(context.Context) GetDdosPoliciesListWatermarkFilterArrayOutput
}

GetDdosPoliciesListWatermarkFilterArrayInput is an input type that accepts GetDdosPoliciesListWatermarkFilterArray and GetDdosPoliciesListWatermarkFilterArrayOutput values. You can construct a concrete instance of `GetDdosPoliciesListWatermarkFilterArrayInput` via:

GetDdosPoliciesListWatermarkFilterArray{ GetDdosPoliciesListWatermarkFilterArgs{...} }

type GetDdosPoliciesListWatermarkFilterArrayOutput

type GetDdosPoliciesListWatermarkFilterArrayOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListWatermarkFilterArrayOutput) ElementType

func (GetDdosPoliciesListWatermarkFilterArrayOutput) Index

func (GetDdosPoliciesListWatermarkFilterArrayOutput) ToGetDdosPoliciesListWatermarkFilterArrayOutput

func (o GetDdosPoliciesListWatermarkFilterArrayOutput) ToGetDdosPoliciesListWatermarkFilterArrayOutput() GetDdosPoliciesListWatermarkFilterArrayOutput

func (GetDdosPoliciesListWatermarkFilterArrayOutput) ToGetDdosPoliciesListWatermarkFilterArrayOutputWithContext

func (o GetDdosPoliciesListWatermarkFilterArrayOutput) ToGetDdosPoliciesListWatermarkFilterArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListWatermarkFilterArrayOutput

type GetDdosPoliciesListWatermarkFilterInput

type GetDdosPoliciesListWatermarkFilterInput interface {
	pulumi.Input

	ToGetDdosPoliciesListWatermarkFilterOutput() GetDdosPoliciesListWatermarkFilterOutput
	ToGetDdosPoliciesListWatermarkFilterOutputWithContext(context.Context) GetDdosPoliciesListWatermarkFilterOutput
}

GetDdosPoliciesListWatermarkFilterInput is an input type that accepts GetDdosPoliciesListWatermarkFilterArgs and GetDdosPoliciesListWatermarkFilterOutput values. You can construct a concrete instance of `GetDdosPoliciesListWatermarkFilterInput` via:

GetDdosPoliciesListWatermarkFilterArgs{...}

type GetDdosPoliciesListWatermarkFilterOutput

type GetDdosPoliciesListWatermarkFilterOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListWatermarkFilterOutput) AutoRemove

Indicate whether to auto-remove the watermark or not.

func (GetDdosPoliciesListWatermarkFilterOutput) ElementType

func (GetDdosPoliciesListWatermarkFilterOutput) Offset

The offset of watermark.

func (GetDdosPoliciesListWatermarkFilterOutput) OpenSwitch

Indicate whether to auto-remove the watermark or not.

func (GetDdosPoliciesListWatermarkFilterOutput) TcpPortLists

Port range of TCP.

func (GetDdosPoliciesListWatermarkFilterOutput) ToGetDdosPoliciesListWatermarkFilterOutput

func (o GetDdosPoliciesListWatermarkFilterOutput) ToGetDdosPoliciesListWatermarkFilterOutput() GetDdosPoliciesListWatermarkFilterOutput

func (GetDdosPoliciesListWatermarkFilterOutput) ToGetDdosPoliciesListWatermarkFilterOutputWithContext

func (o GetDdosPoliciesListWatermarkFilterOutput) ToGetDdosPoliciesListWatermarkFilterOutputWithContext(ctx context.Context) GetDdosPoliciesListWatermarkFilterOutput

func (GetDdosPoliciesListWatermarkFilterOutput) UdpPortLists

Port range of TCP.

type GetDdosPoliciesListWatermarkKey

type GetDdosPoliciesListWatermarkKey struct {
	// Content of the watermark.
	Content string `pulumi:"content"`
	// Create time of the DDoS policy.
	CreateTime *string `pulumi:"createTime"`
	// Id of the watermark.
	Id string `pulumi:"id"`
	// Indicate whether to auto-remove the watermark or not.
	OpenSwitch bool `pulumi:"openSwitch"`
}

type GetDdosPoliciesListWatermarkKeyArgs

type GetDdosPoliciesListWatermarkKeyArgs struct {
	// Content of the watermark.
	Content pulumi.StringInput `pulumi:"content"`
	// Create time of the DDoS policy.
	CreateTime pulumi.StringPtrInput `pulumi:"createTime"`
	// Id of the watermark.
	Id pulumi.StringInput `pulumi:"id"`
	// Indicate whether to auto-remove the watermark or not.
	OpenSwitch pulumi.BoolInput `pulumi:"openSwitch"`
}

func (GetDdosPoliciesListWatermarkKeyArgs) ElementType

func (GetDdosPoliciesListWatermarkKeyArgs) ToGetDdosPoliciesListWatermarkKeyOutput

func (i GetDdosPoliciesListWatermarkKeyArgs) ToGetDdosPoliciesListWatermarkKeyOutput() GetDdosPoliciesListWatermarkKeyOutput

func (GetDdosPoliciesListWatermarkKeyArgs) ToGetDdosPoliciesListWatermarkKeyOutputWithContext

func (i GetDdosPoliciesListWatermarkKeyArgs) ToGetDdosPoliciesListWatermarkKeyOutputWithContext(ctx context.Context) GetDdosPoliciesListWatermarkKeyOutput

type GetDdosPoliciesListWatermarkKeyArray

type GetDdosPoliciesListWatermarkKeyArray []GetDdosPoliciesListWatermarkKeyInput

func (GetDdosPoliciesListWatermarkKeyArray) ElementType

func (GetDdosPoliciesListWatermarkKeyArray) ToGetDdosPoliciesListWatermarkKeyArrayOutput

func (i GetDdosPoliciesListWatermarkKeyArray) ToGetDdosPoliciesListWatermarkKeyArrayOutput() GetDdosPoliciesListWatermarkKeyArrayOutput

func (GetDdosPoliciesListWatermarkKeyArray) ToGetDdosPoliciesListWatermarkKeyArrayOutputWithContext

func (i GetDdosPoliciesListWatermarkKeyArray) ToGetDdosPoliciesListWatermarkKeyArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListWatermarkKeyArrayOutput

type GetDdosPoliciesListWatermarkKeyArrayInput

type GetDdosPoliciesListWatermarkKeyArrayInput interface {
	pulumi.Input

	ToGetDdosPoliciesListWatermarkKeyArrayOutput() GetDdosPoliciesListWatermarkKeyArrayOutput
	ToGetDdosPoliciesListWatermarkKeyArrayOutputWithContext(context.Context) GetDdosPoliciesListWatermarkKeyArrayOutput
}

GetDdosPoliciesListWatermarkKeyArrayInput is an input type that accepts GetDdosPoliciesListWatermarkKeyArray and GetDdosPoliciesListWatermarkKeyArrayOutput values. You can construct a concrete instance of `GetDdosPoliciesListWatermarkKeyArrayInput` via:

GetDdosPoliciesListWatermarkKeyArray{ GetDdosPoliciesListWatermarkKeyArgs{...} }

type GetDdosPoliciesListWatermarkKeyArrayOutput

type GetDdosPoliciesListWatermarkKeyArrayOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListWatermarkKeyArrayOutput) ElementType

func (GetDdosPoliciesListWatermarkKeyArrayOutput) Index

func (GetDdosPoliciesListWatermarkKeyArrayOutput) ToGetDdosPoliciesListWatermarkKeyArrayOutput

func (o GetDdosPoliciesListWatermarkKeyArrayOutput) ToGetDdosPoliciesListWatermarkKeyArrayOutput() GetDdosPoliciesListWatermarkKeyArrayOutput

func (GetDdosPoliciesListWatermarkKeyArrayOutput) ToGetDdosPoliciesListWatermarkKeyArrayOutputWithContext

func (o GetDdosPoliciesListWatermarkKeyArrayOutput) ToGetDdosPoliciesListWatermarkKeyArrayOutputWithContext(ctx context.Context) GetDdosPoliciesListWatermarkKeyArrayOutput

type GetDdosPoliciesListWatermarkKeyInput

type GetDdosPoliciesListWatermarkKeyInput interface {
	pulumi.Input

	ToGetDdosPoliciesListWatermarkKeyOutput() GetDdosPoliciesListWatermarkKeyOutput
	ToGetDdosPoliciesListWatermarkKeyOutputWithContext(context.Context) GetDdosPoliciesListWatermarkKeyOutput
}

GetDdosPoliciesListWatermarkKeyInput is an input type that accepts GetDdosPoliciesListWatermarkKeyArgs and GetDdosPoliciesListWatermarkKeyOutput values. You can construct a concrete instance of `GetDdosPoliciesListWatermarkKeyInput` via:

GetDdosPoliciesListWatermarkKeyArgs{...}

type GetDdosPoliciesListWatermarkKeyOutput

type GetDdosPoliciesListWatermarkKeyOutput struct{ *pulumi.OutputState }

func (GetDdosPoliciesListWatermarkKeyOutput) Content

Content of the watermark.

func (GetDdosPoliciesListWatermarkKeyOutput) CreateTime

Create time of the DDoS policy.

func (GetDdosPoliciesListWatermarkKeyOutput) ElementType

func (GetDdosPoliciesListWatermarkKeyOutput) Id

Id of the watermark.

func (GetDdosPoliciesListWatermarkKeyOutput) OpenSwitch

Indicate whether to auto-remove the watermark or not.

func (GetDdosPoliciesListWatermarkKeyOutput) ToGetDdosPoliciesListWatermarkKeyOutput

func (o GetDdosPoliciesListWatermarkKeyOutput) ToGetDdosPoliciesListWatermarkKeyOutput() GetDdosPoliciesListWatermarkKeyOutput

func (GetDdosPoliciesListWatermarkKeyOutput) ToGetDdosPoliciesListWatermarkKeyOutputWithContext

func (o GetDdosPoliciesListWatermarkKeyOutput) ToGetDdosPoliciesListWatermarkKeyOutputWithContext(ctx context.Context) GetDdosPoliciesListWatermarkKeyOutput

type GetDdosPoliciesOutputArgs

type GetDdosPoliciesOutputArgs struct {
	// ID of the DDoS policy to be query.
	PolicyId pulumi.StringPtrInput `pulumi:"policyId"`
	// Type of the resource that the DDoS policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getDdosPolicies.

func (GetDdosPoliciesOutputArgs) ElementType

func (GetDdosPoliciesOutputArgs) ElementType() reflect.Type

type GetDdosPoliciesResult

type GetDdosPoliciesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of DDoS policies. Each element contains the following attributes:
	Lists []GetDdosPoliciesList `pulumi:"lists"`
	// Id of policy.
	PolicyId         *string `pulumi:"policyId"`
	ResourceType     string  `pulumi:"resourceType"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of values returned by getDdosPolicies.

func GetDdosPolicies

func GetDdosPolicies(ctx *pulumi.Context, args *GetDdosPoliciesArgs, opts ...pulumi.InvokeOption) (*GetDdosPoliciesResult, error)

Use this data source to query dayu DDoS policies

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.GetDdosPolicies(ctx, &dayu.GetDdosPoliciesArgs{
			ResourceType: tencentcloud_dayu_ddos_policy.Test_policy.Resource_type,
			PolicyId:     pulumi.StringRef(tencentcloud_dayu_ddos_policy.Test_policy.Policy_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetDdosPoliciesResultOutput

type GetDdosPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDdosPolicies.

func (GetDdosPoliciesResultOutput) ElementType

func (GetDdosPoliciesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDdosPoliciesResultOutput) Lists

A list of DDoS policies. Each element contains the following attributes:

func (GetDdosPoliciesResultOutput) PolicyId

Id of policy.

func (GetDdosPoliciesResultOutput) ResourceType

func (GetDdosPoliciesResultOutput) ResultOutputFile

func (o GetDdosPoliciesResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetDdosPoliciesResultOutput) ToGetDdosPoliciesResultOutput

func (o GetDdosPoliciesResultOutput) ToGetDdosPoliciesResultOutput() GetDdosPoliciesResultOutput

func (GetDdosPoliciesResultOutput) ToGetDdosPoliciesResultOutputWithContext

func (o GetDdosPoliciesResultOutput) ToGetDdosPoliciesResultOutputWithContext(ctx context.Context) GetDdosPoliciesResultOutput

type GetDdosPolicyAttachmentsArgs

type GetDdosPolicyAttachmentsArgs struct {
	// Id of the policy to be queried.
	PolicyId *string `pulumi:"policyId"`
	// ID of the attached resource to be queried.
	ResourceId *string `pulumi:"resourceId"`
	// Type of the resource that the DDoS policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType string `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getDdosPolicyAttachments.

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentList

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentList struct {
	// Id of the policy to be queried.
	PolicyId string `pulumi:"policyId"`
	// ID of the attached resource to be queried.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource that the DDoS policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType string `pulumi:"resourceType"`
}

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArgs

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArgs struct {
	// Id of the policy to be queried.
	PolicyId pulumi.StringInput `pulumi:"policyId"`
	// ID of the attached resource to be queried.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// Type of the resource that the DDoS policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
}

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArgs) ElementType

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArgs) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArgs) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutputWithContext

func (i GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArgs) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutputWithContext(ctx context.Context) GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArray

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArray []GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListInput

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArray) ElementType

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArray) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput

func (i GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArray) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput() GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArray) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutputWithContext

func (i GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArray) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutputWithContext(ctx context.Context) GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayInput

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayInput interface {
	pulumi.Input

	ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput() GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput
	ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutputWithContext(context.Context) GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput
}

GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayInput is an input type that accepts GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArray and GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput values. You can construct a concrete instance of `GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayInput` via:

GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArray{ GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArgs{...} }

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput struct{ *pulumi.OutputState }

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput) ElementType

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput) Index

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutputWithContext

func (o GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutputWithContext(ctx context.Context) GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArrayOutput

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListInput

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListInput interface {
	pulumi.Input

	ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput() GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput
	ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutputWithContext(context.Context) GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput
}

GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListInput is an input type that accepts GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArgs and GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput values. You can construct a concrete instance of `GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListInput` via:

GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListArgs{...}

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput

type GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput struct{ *pulumi.OutputState }

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput) ElementType

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput) PolicyId

Id of the policy to be queried.

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput) ResourceId

ID of the attached resource to be queried.

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput) ResourceType

Type of the resource that the DDoS policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput

func (GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutputWithContext

func (o GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput) ToGetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutputWithContext(ctx context.Context) GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentListOutput

type GetDdosPolicyAttachmentsOutputArgs

type GetDdosPolicyAttachmentsOutputArgs struct {
	// Id of the policy to be queried.
	PolicyId pulumi.StringPtrInput `pulumi:"policyId"`
	// ID of the attached resource to be queried.
	ResourceId pulumi.StringPtrInput `pulumi:"resourceId"`
	// Type of the resource that the DDoS policy works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getDdosPolicyAttachments.

func (GetDdosPolicyAttachmentsOutputArgs) ElementType

type GetDdosPolicyAttachmentsResult

type GetDdosPolicyAttachmentsResult struct {
	// A list of dayu DDoS policy attachments. Each element contains the following attributes:
	DayuDdosPolicyAttachmentLists []GetDdosPolicyAttachmentsDayuDdosPolicyAttachmentList `pulumi:"dayuDdosPolicyAttachmentLists"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// ID of the policy.
	PolicyId *string `pulumi:"policyId"`
	// ID of the attached resource.
	ResourceId *string `pulumi:"resourceId"`
	// Type of the resource that the DDoS policy works for.
	ResourceType     string  `pulumi:"resourceType"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of values returned by getDdosPolicyAttachments.

func GetDdosPolicyAttachments

func GetDdosPolicyAttachments(ctx *pulumi.Context, args *GetDdosPolicyAttachmentsArgs, opts ...pulumi.InvokeOption) (*GetDdosPolicyAttachmentsResult, error)

Use this data source to query detailed information of dayu DDoS policy attachments

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.GetDdosPolicyAttachments(ctx, &dayu.GetDdosPolicyAttachmentsArgs{
			ResourceType: tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_type,
		}, nil)
		if err != nil {
			return err
		}
		_, err = Dayu.GetDdosPolicyAttachments(ctx, &dayu.GetDdosPolicyAttachmentsArgs{
			ResourceId:   pulumi.StringRef(tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_id),
			ResourceType: tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_type,
		}, nil)
		if err != nil {
			return err
		}
		_, err = Dayu.GetDdosPolicyAttachments(ctx, &dayu.GetDdosPolicyAttachmentsArgs{
			ResourceType: tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Resource_type,
			PolicyId:     pulumi.StringRef(tencentcloud_dayu_ddos_policy_attachment.Dayu_ddos_policy_attachment.Policy_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetDdosPolicyAttachmentsResultOutput

type GetDdosPolicyAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDdosPolicyAttachments.

func (GetDdosPolicyAttachmentsResultOutput) DayuDdosPolicyAttachmentLists

A list of dayu DDoS policy attachments. Each element contains the following attributes:

func (GetDdosPolicyAttachmentsResultOutput) ElementType

func (GetDdosPolicyAttachmentsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDdosPolicyAttachmentsResultOutput) PolicyId

ID of the policy.

func (GetDdosPolicyAttachmentsResultOutput) ResourceId

ID of the attached resource.

func (GetDdosPolicyAttachmentsResultOutput) ResourceType

Type of the resource that the DDoS policy works for.

func (GetDdosPolicyAttachmentsResultOutput) ResultOutputFile

func (GetDdosPolicyAttachmentsResultOutput) ToGetDdosPolicyAttachmentsResultOutput

func (o GetDdosPolicyAttachmentsResultOutput) ToGetDdosPolicyAttachmentsResultOutput() GetDdosPolicyAttachmentsResultOutput

func (GetDdosPolicyAttachmentsResultOutput) ToGetDdosPolicyAttachmentsResultOutputWithContext

func (o GetDdosPolicyAttachmentsResultOutput) ToGetDdosPolicyAttachmentsResultOutputWithContext(ctx context.Context) GetDdosPolicyAttachmentsResultOutput

type GetDdosPolicyCasesArgs

type GetDdosPolicyCasesArgs struct {
	// Type of the resource that the DDoS policy case works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType string `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the DDoS policy case to be query.
	SceneId string `pulumi:"sceneId"`
}

A collection of arguments for invoking getDdosPolicyCases.

type GetDdosPolicyCasesList

type GetDdosPolicyCasesList struct {
	// App protocol set of the DDoS policy case.
	AppProtocols []string `pulumi:"appProtocols"`
	// App type of the DDoS policy case.
	AppType string `pulumi:"appType"`
	// Create time of the DDoS policy case.
	CreateTime string `pulumi:"createTime"`
	// Indicate whether the service involves overseas or not.
	HasAbroad string `pulumi:"hasAbroad"`
	// Indicate whether the service actively initiates TCP requests or not.
	HasInitiateTcp string `pulumi:"hasInitiateTcp"`
	// Indicate whether the actively initiate UDP requests or not.
	HasInitiateUdp string `pulumi:"hasInitiateUdp"`
	// Indicate whether the service involves VPN service or not.
	HasVpn string `pulumi:"hasVpn"`
	// The max length of TCP message package.
	MaxTcpPackageLen string `pulumi:"maxTcpPackageLen"`
	// The max length of UDP message package.
	MaxUdpPackageLen string `pulumi:"maxUdpPackageLen"`
	// The minimum length of TCP message package.
	MinTcpPackageLen string `pulumi:"minTcpPackageLen"`
	// The minimum length of UDP message package.
	MinUdpPackageLen string `pulumi:"minUdpPackageLen"`
	// Name of the DDoS policy case.
	Name string `pulumi:"name"`
	// The port that actively initiates TCP requests.
	PeerTcpPort string `pulumi:"peerTcpPort"`
	// The port that actively initiates UDP requests.
	PeerUdpPort string `pulumi:"peerUdpPort"`
	// Platform set of the DDoS policy case.
	PlatformTypes []string `pulumi:"platformTypes"`
	// Type of the resource that the DDoS policy case works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType string `pulumi:"resourceType"`
	// ID of the DDoS policy case to be query.
	SceneId string `pulumi:"sceneId"`
	// End port of the TCP service.
	TcpEndPort string `pulumi:"tcpEndPort"`
	// The fixed signature of TCP protocol load.
	TcpFootprint string `pulumi:"tcpFootprint"`
	// Start port of the TCP service.
	TcpStartPort string `pulumi:"tcpStartPort"`
	// End port of the UDP service.
	UdpEndPort string `pulumi:"udpEndPort"`
	// The fixed signature of TCP protocol load.
	UdpFootprint string `pulumi:"udpFootprint"`
	// Start port of the UDP service.
	UdpStartPort string `pulumi:"udpStartPort"`
	// Web API url set.
	WebApiUrls []string `pulumi:"webApiUrls"`
}

type GetDdosPolicyCasesListArgs

type GetDdosPolicyCasesListArgs struct {
	// App protocol set of the DDoS policy case.
	AppProtocols pulumi.StringArrayInput `pulumi:"appProtocols"`
	// App type of the DDoS policy case.
	AppType pulumi.StringInput `pulumi:"appType"`
	// Create time of the DDoS policy case.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Indicate whether the service involves overseas or not.
	HasAbroad pulumi.StringInput `pulumi:"hasAbroad"`
	// Indicate whether the service actively initiates TCP requests or not.
	HasInitiateTcp pulumi.StringInput `pulumi:"hasInitiateTcp"`
	// Indicate whether the actively initiate UDP requests or not.
	HasInitiateUdp pulumi.StringInput `pulumi:"hasInitiateUdp"`
	// Indicate whether the service involves VPN service or not.
	HasVpn pulumi.StringInput `pulumi:"hasVpn"`
	// The max length of TCP message package.
	MaxTcpPackageLen pulumi.StringInput `pulumi:"maxTcpPackageLen"`
	// The max length of UDP message package.
	MaxUdpPackageLen pulumi.StringInput `pulumi:"maxUdpPackageLen"`
	// The minimum length of TCP message package.
	MinTcpPackageLen pulumi.StringInput `pulumi:"minTcpPackageLen"`
	// The minimum length of UDP message package.
	MinUdpPackageLen pulumi.StringInput `pulumi:"minUdpPackageLen"`
	// Name of the DDoS policy case.
	Name pulumi.StringInput `pulumi:"name"`
	// The port that actively initiates TCP requests.
	PeerTcpPort pulumi.StringInput `pulumi:"peerTcpPort"`
	// The port that actively initiates UDP requests.
	PeerUdpPort pulumi.StringInput `pulumi:"peerUdpPort"`
	// Platform set of the DDoS policy case.
	PlatformTypes pulumi.StringArrayInput `pulumi:"platformTypes"`
	// Type of the resource that the DDoS policy case works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// ID of the DDoS policy case to be query.
	SceneId pulumi.StringInput `pulumi:"sceneId"`
	// End port of the TCP service.
	TcpEndPort pulumi.StringInput `pulumi:"tcpEndPort"`
	// The fixed signature of TCP protocol load.
	TcpFootprint pulumi.StringInput `pulumi:"tcpFootprint"`
	// Start port of the TCP service.
	TcpStartPort pulumi.StringInput `pulumi:"tcpStartPort"`
	// End port of the UDP service.
	UdpEndPort pulumi.StringInput `pulumi:"udpEndPort"`
	// The fixed signature of TCP protocol load.
	UdpFootprint pulumi.StringInput `pulumi:"udpFootprint"`
	// Start port of the UDP service.
	UdpStartPort pulumi.StringInput `pulumi:"udpStartPort"`
	// Web API url set.
	WebApiUrls pulumi.StringArrayInput `pulumi:"webApiUrls"`
}

func (GetDdosPolicyCasesListArgs) ElementType

func (GetDdosPolicyCasesListArgs) ElementType() reflect.Type

func (GetDdosPolicyCasesListArgs) ToGetDdosPolicyCasesListOutput

func (i GetDdosPolicyCasesListArgs) ToGetDdosPolicyCasesListOutput() GetDdosPolicyCasesListOutput

func (GetDdosPolicyCasesListArgs) ToGetDdosPolicyCasesListOutputWithContext

func (i GetDdosPolicyCasesListArgs) ToGetDdosPolicyCasesListOutputWithContext(ctx context.Context) GetDdosPolicyCasesListOutput

type GetDdosPolicyCasesListArray

type GetDdosPolicyCasesListArray []GetDdosPolicyCasesListInput

func (GetDdosPolicyCasesListArray) ElementType

func (GetDdosPolicyCasesListArray) ToGetDdosPolicyCasesListArrayOutput

func (i GetDdosPolicyCasesListArray) ToGetDdosPolicyCasesListArrayOutput() GetDdosPolicyCasesListArrayOutput

func (GetDdosPolicyCasesListArray) ToGetDdosPolicyCasesListArrayOutputWithContext

func (i GetDdosPolicyCasesListArray) ToGetDdosPolicyCasesListArrayOutputWithContext(ctx context.Context) GetDdosPolicyCasesListArrayOutput

type GetDdosPolicyCasesListArrayInput

type GetDdosPolicyCasesListArrayInput interface {
	pulumi.Input

	ToGetDdosPolicyCasesListArrayOutput() GetDdosPolicyCasesListArrayOutput
	ToGetDdosPolicyCasesListArrayOutputWithContext(context.Context) GetDdosPolicyCasesListArrayOutput
}

GetDdosPolicyCasesListArrayInput is an input type that accepts GetDdosPolicyCasesListArray and GetDdosPolicyCasesListArrayOutput values. You can construct a concrete instance of `GetDdosPolicyCasesListArrayInput` via:

GetDdosPolicyCasesListArray{ GetDdosPolicyCasesListArgs{...} }

type GetDdosPolicyCasesListArrayOutput

type GetDdosPolicyCasesListArrayOutput struct{ *pulumi.OutputState }

func (GetDdosPolicyCasesListArrayOutput) ElementType

func (GetDdosPolicyCasesListArrayOutput) Index

func (GetDdosPolicyCasesListArrayOutput) ToGetDdosPolicyCasesListArrayOutput

func (o GetDdosPolicyCasesListArrayOutput) ToGetDdosPolicyCasesListArrayOutput() GetDdosPolicyCasesListArrayOutput

func (GetDdosPolicyCasesListArrayOutput) ToGetDdosPolicyCasesListArrayOutputWithContext

func (o GetDdosPolicyCasesListArrayOutput) ToGetDdosPolicyCasesListArrayOutputWithContext(ctx context.Context) GetDdosPolicyCasesListArrayOutput

type GetDdosPolicyCasesListInput

type GetDdosPolicyCasesListInput interface {
	pulumi.Input

	ToGetDdosPolicyCasesListOutput() GetDdosPolicyCasesListOutput
	ToGetDdosPolicyCasesListOutputWithContext(context.Context) GetDdosPolicyCasesListOutput
}

GetDdosPolicyCasesListInput is an input type that accepts GetDdosPolicyCasesListArgs and GetDdosPolicyCasesListOutput values. You can construct a concrete instance of `GetDdosPolicyCasesListInput` via:

GetDdosPolicyCasesListArgs{...}

type GetDdosPolicyCasesListOutput

type GetDdosPolicyCasesListOutput struct{ *pulumi.OutputState }

func (GetDdosPolicyCasesListOutput) AppProtocols

App protocol set of the DDoS policy case.

func (GetDdosPolicyCasesListOutput) AppType

App type of the DDoS policy case.

func (GetDdosPolicyCasesListOutput) CreateTime

Create time of the DDoS policy case.

func (GetDdosPolicyCasesListOutput) ElementType

func (GetDdosPolicyCasesListOutput) HasAbroad

Indicate whether the service involves overseas or not.

func (GetDdosPolicyCasesListOutput) HasInitiateTcp

Indicate whether the service actively initiates TCP requests or not.

func (GetDdosPolicyCasesListOutput) HasInitiateUdp

Indicate whether the actively initiate UDP requests or not.

func (GetDdosPolicyCasesListOutput) HasVpn

Indicate whether the service involves VPN service or not.

func (GetDdosPolicyCasesListOutput) MaxTcpPackageLen

func (o GetDdosPolicyCasesListOutput) MaxTcpPackageLen() pulumi.StringOutput

The max length of TCP message package.

func (GetDdosPolicyCasesListOutput) MaxUdpPackageLen

func (o GetDdosPolicyCasesListOutput) MaxUdpPackageLen() pulumi.StringOutput

The max length of UDP message package.

func (GetDdosPolicyCasesListOutput) MinTcpPackageLen

func (o GetDdosPolicyCasesListOutput) MinTcpPackageLen() pulumi.StringOutput

The minimum length of TCP message package.

func (GetDdosPolicyCasesListOutput) MinUdpPackageLen

func (o GetDdosPolicyCasesListOutput) MinUdpPackageLen() pulumi.StringOutput

The minimum length of UDP message package.

func (GetDdosPolicyCasesListOutput) Name

Name of the DDoS policy case.

func (GetDdosPolicyCasesListOutput) PeerTcpPort

The port that actively initiates TCP requests.

func (GetDdosPolicyCasesListOutput) PeerUdpPort

The port that actively initiates UDP requests.

func (GetDdosPolicyCasesListOutput) PlatformTypes

Platform set of the DDoS policy case.

func (GetDdosPolicyCasesListOutput) ResourceType

Type of the resource that the DDoS policy case works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.

func (GetDdosPolicyCasesListOutput) SceneId

ID of the DDoS policy case to be query.

func (GetDdosPolicyCasesListOutput) TcpEndPort

End port of the TCP service.

func (GetDdosPolicyCasesListOutput) TcpFootprint

The fixed signature of TCP protocol load.

func (GetDdosPolicyCasesListOutput) TcpStartPort

Start port of the TCP service.

func (GetDdosPolicyCasesListOutput) ToGetDdosPolicyCasesListOutput

func (o GetDdosPolicyCasesListOutput) ToGetDdosPolicyCasesListOutput() GetDdosPolicyCasesListOutput

func (GetDdosPolicyCasesListOutput) ToGetDdosPolicyCasesListOutputWithContext

func (o GetDdosPolicyCasesListOutput) ToGetDdosPolicyCasesListOutputWithContext(ctx context.Context) GetDdosPolicyCasesListOutput

func (GetDdosPolicyCasesListOutput) UdpEndPort

End port of the UDP service.

func (GetDdosPolicyCasesListOutput) UdpFootprint

The fixed signature of TCP protocol load.

func (GetDdosPolicyCasesListOutput) UdpStartPort

Start port of the UDP service.

func (GetDdosPolicyCasesListOutput) WebApiUrls

Web API url set.

type GetDdosPolicyCasesOutputArgs

type GetDdosPolicyCasesOutputArgs struct {
	// Type of the resource that the DDoS policy case works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of the DDoS policy case to be query.
	SceneId pulumi.StringInput `pulumi:"sceneId"`
}

A collection of arguments for invoking getDdosPolicyCases.

func (GetDdosPolicyCasesOutputArgs) ElementType

type GetDdosPolicyCasesResult

type GetDdosPolicyCasesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of DDoS policy cases. Each element contains the following attributes:
	Lists []GetDdosPolicyCasesList `pulumi:"lists"`
	// Type of the resource that the DDoS policy case works for.
	ResourceType     string  `pulumi:"resourceType"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the DDoS policy case.
	SceneId string `pulumi:"sceneId"`
}

A collection of values returned by getDdosPolicyCases.

func GetDdosPolicyCases

func GetDdosPolicyCases(ctx *pulumi.Context, args *GetDdosPolicyCasesArgs, opts ...pulumi.InvokeOption) (*GetDdosPolicyCasesResult, error)

Use this data source to query dayu DDoS policy cases

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.GetDdosPolicyCases(ctx, &dayu.GetDdosPolicyCasesArgs{
			ResourceType: tencentcloud_dayu_ddos_policy_case.Test_policy_case.Resource_type,
			SceneId:      tencentcloud_dayu_ddos_policy_case.Test_policy_case.Scene_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetDdosPolicyCasesResultOutput

type GetDdosPolicyCasesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getDdosPolicyCases.

func (GetDdosPolicyCasesResultOutput) ElementType

func (GetDdosPolicyCasesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetDdosPolicyCasesResultOutput) Lists

A list of DDoS policy cases. Each element contains the following attributes:

func (GetDdosPolicyCasesResultOutput) ResourceType

Type of the resource that the DDoS policy case works for.

func (GetDdosPolicyCasesResultOutput) ResultOutputFile

func (GetDdosPolicyCasesResultOutput) SceneId

ID of the DDoS policy case.

func (GetDdosPolicyCasesResultOutput) ToGetDdosPolicyCasesResultOutput

func (o GetDdosPolicyCasesResultOutput) ToGetDdosPolicyCasesResultOutput() GetDdosPolicyCasesResultOutput

func (GetDdosPolicyCasesResultOutput) ToGetDdosPolicyCasesResultOutputWithContext

func (o GetDdosPolicyCasesResultOutput) ToGetDdosPolicyCasesResultOutputWithContext(ctx context.Context) GetDdosPolicyCasesResultOutput

type GetEipList

type GetEipList struct {
	CreatedTime      string   `pulumi:"createdTime"`
	EipAddressStatus string   `pulumi:"eipAddressStatus"`
	EipBoundRscEni   string   `pulumi:"eipBoundRscEni"`
	EipBoundRscIns   *string  `pulumi:"eipBoundRscIns"`
	EipBoundRscVip   string   `pulumi:"eipBoundRscVip"`
	EipLists         []string `pulumi:"eipLists"`
	ExpiredTime      string   `pulumi:"expiredTime"`
	InstanceId       *string  `pulumi:"instanceId"`
	ModifyTime       string   `pulumi:"modifyTime"`
	ProtectionStatus string   `pulumi:"protectionStatus"`
	Region           string   `pulumi:"region"`
}

type GetEipListArgs

type GetEipListArgs struct {
	CreatedTime      pulumi.StringInput      `pulumi:"createdTime"`
	EipAddressStatus pulumi.StringInput      `pulumi:"eipAddressStatus"`
	EipBoundRscEni   pulumi.StringInput      `pulumi:"eipBoundRscEni"`
	EipBoundRscIns   pulumi.StringPtrInput   `pulumi:"eipBoundRscIns"`
	EipBoundRscVip   pulumi.StringInput      `pulumi:"eipBoundRscVip"`
	EipLists         pulumi.StringArrayInput `pulumi:"eipLists"`
	ExpiredTime      pulumi.StringInput      `pulumi:"expiredTime"`
	InstanceId       pulumi.StringPtrInput   `pulumi:"instanceId"`
	ModifyTime       pulumi.StringInput      `pulumi:"modifyTime"`
	ProtectionStatus pulumi.StringInput      `pulumi:"protectionStatus"`
	Region           pulumi.StringInput      `pulumi:"region"`
}

func (GetEipListArgs) ElementType

func (GetEipListArgs) ElementType() reflect.Type

func (GetEipListArgs) ToGetEipListOutput

func (i GetEipListArgs) ToGetEipListOutput() GetEipListOutput

func (GetEipListArgs) ToGetEipListOutputWithContext

func (i GetEipListArgs) ToGetEipListOutputWithContext(ctx context.Context) GetEipListOutput

type GetEipListArray

type GetEipListArray []GetEipListInput

func (GetEipListArray) ElementType

func (GetEipListArray) ElementType() reflect.Type

func (GetEipListArray) ToGetEipListArrayOutput

func (i GetEipListArray) ToGetEipListArrayOutput() GetEipListArrayOutput

func (GetEipListArray) ToGetEipListArrayOutputWithContext

func (i GetEipListArray) ToGetEipListArrayOutputWithContext(ctx context.Context) GetEipListArrayOutput

type GetEipListArrayInput

type GetEipListArrayInput interface {
	pulumi.Input

	ToGetEipListArrayOutput() GetEipListArrayOutput
	ToGetEipListArrayOutputWithContext(context.Context) GetEipListArrayOutput
}

GetEipListArrayInput is an input type that accepts GetEipListArray and GetEipListArrayOutput values. You can construct a concrete instance of `GetEipListArrayInput` via:

GetEipListArray{ GetEipListArgs{...} }

type GetEipListArrayOutput

type GetEipListArrayOutput struct{ *pulumi.OutputState }

func (GetEipListArrayOutput) ElementType

func (GetEipListArrayOutput) ElementType() reflect.Type

func (GetEipListArrayOutput) Index

func (GetEipListArrayOutput) ToGetEipListArrayOutput

func (o GetEipListArrayOutput) ToGetEipListArrayOutput() GetEipListArrayOutput

func (GetEipListArrayOutput) ToGetEipListArrayOutputWithContext

func (o GetEipListArrayOutput) ToGetEipListArrayOutputWithContext(ctx context.Context) GetEipListArrayOutput

type GetEipListInput

type GetEipListInput interface {
	pulumi.Input

	ToGetEipListOutput() GetEipListOutput
	ToGetEipListOutputWithContext(context.Context) GetEipListOutput
}

GetEipListInput is an input type that accepts GetEipListArgs and GetEipListOutput values. You can construct a concrete instance of `GetEipListInput` via:

GetEipListArgs{...}

type GetEipListOutput

type GetEipListOutput struct{ *pulumi.OutputState }

func (GetEipListOutput) CreatedTime

func (o GetEipListOutput) CreatedTime() pulumi.StringOutput

func (GetEipListOutput) EipAddressStatus

func (o GetEipListOutput) EipAddressStatus() pulumi.StringOutput

func (GetEipListOutput) EipBoundRscEni

func (o GetEipListOutput) EipBoundRscEni() pulumi.StringOutput

func (GetEipListOutput) EipBoundRscIns

func (o GetEipListOutput) EipBoundRscIns() pulumi.StringPtrOutput

func (GetEipListOutput) EipBoundRscVip

func (o GetEipListOutput) EipBoundRscVip() pulumi.StringOutput

func (GetEipListOutput) EipLists

func (GetEipListOutput) ElementType

func (GetEipListOutput) ElementType() reflect.Type

func (GetEipListOutput) ExpiredTime

func (o GetEipListOutput) ExpiredTime() pulumi.StringOutput

func (GetEipListOutput) InstanceId

func (o GetEipListOutput) InstanceId() pulumi.StringPtrOutput

func (GetEipListOutput) ModifyTime

func (o GetEipListOutput) ModifyTime() pulumi.StringOutput

func (GetEipListOutput) ProtectionStatus

func (o GetEipListOutput) ProtectionStatus() pulumi.StringOutput

func (GetEipListOutput) Region

func (GetEipListOutput) ToGetEipListOutput

func (o GetEipListOutput) ToGetEipListOutput() GetEipListOutput

func (GetEipListOutput) ToGetEipListOutputWithContext

func (o GetEipListOutput) ToGetEipListOutputWithContext(ctx context.Context) GetEipListOutput

type GetL4RulesArgs

type GetL4RulesArgs struct {
	// Name of the layer 4 rule to be queried.
	Name *string `pulumi:"name"`
	// Id of the resource that the layer 4 rule works for.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource that the layer 4 rule works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType string `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Id of the layer 4 rule to be queried.
	RuleId *string `pulumi:"ruleId"`
}

A collection of arguments for invoking getL4Rules.

type GetL4RulesList

type GetL4RulesList struct {
	// The destination port of the layer 4 rule.
	DPort int `pulumi:"dPort"`
	// Health threshold of health check.
	HealthCheckHealthNum int `pulumi:"healthCheckHealthNum"`
	// Interval time of health check.
	HealthCheckInterval int `pulumi:"healthCheckInterval"`
	// Indicates whether health check is enabled.
	HealthCheckSwitch bool `pulumi:"healthCheckSwitch"`
	// HTTP Status Code. `1` means the return value `1xx` is health. `2` means the return value `2xx` is health. `4` means the return value `3xx` is health. `8` means the return value `4xx` is health. `16` means the return value `5xx` is health. If you want multiple return codes to indicate health, need to add the corresponding values.
	HealthCheckTimeout int `pulumi:"healthCheckTimeout"`
	// Unhealthy threshold of health check.
	HealthCheckUnhealthNum int `pulumi:"healthCheckUnhealthNum"`
	// LB type of the rule, `1` for weight cycling and `2` for IP hash.
	LbType int `pulumi:"lbType"`
	// Name of the layer 4 rule to be queried.
	Name string `pulumi:"name"`
	// Protocol of the rule.
	Protocol string `pulumi:"protocol"`
	// Id of the layer 4 rule to be queried.
	RuleId string `pulumi:"ruleId"`
	// The source port of the layer 4 rule.
	SPort int `pulumi:"sPort"`
	// Indicate that the session will keep or not.
	SessionSwitch bool `pulumi:"sessionSwitch"`
	// Session keep time, only valid when `sessionSwitch` is true, the available value ranges from 1 to 300 and unit is second.
	SessionTime int                        `pulumi:"sessionTime"`
	SourceLists []GetL4RulesListSourceList `pulumi:"sourceLists"`
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType int `pulumi:"sourceType"`
}

type GetL4RulesListArgs

type GetL4RulesListArgs struct {
	// The destination port of the layer 4 rule.
	DPort pulumi.IntInput `pulumi:"dPort"`
	// Health threshold of health check.
	HealthCheckHealthNum pulumi.IntInput `pulumi:"healthCheckHealthNum"`
	// Interval time of health check.
	HealthCheckInterval pulumi.IntInput `pulumi:"healthCheckInterval"`
	// Indicates whether health check is enabled.
	HealthCheckSwitch pulumi.BoolInput `pulumi:"healthCheckSwitch"`
	// HTTP Status Code. `1` means the return value `1xx` is health. `2` means the return value `2xx` is health. `4` means the return value `3xx` is health. `8` means the return value `4xx` is health. `16` means the return value `5xx` is health. If you want multiple return codes to indicate health, need to add the corresponding values.
	HealthCheckTimeout pulumi.IntInput `pulumi:"healthCheckTimeout"`
	// Unhealthy threshold of health check.
	HealthCheckUnhealthNum pulumi.IntInput `pulumi:"healthCheckUnhealthNum"`
	// LB type of the rule, `1` for weight cycling and `2` for IP hash.
	LbType pulumi.IntInput `pulumi:"lbType"`
	// Name of the layer 4 rule to be queried.
	Name pulumi.StringInput `pulumi:"name"`
	// Protocol of the rule.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// Id of the layer 4 rule to be queried.
	RuleId pulumi.StringInput `pulumi:"ruleId"`
	// The source port of the layer 4 rule.
	SPort pulumi.IntInput `pulumi:"sPort"`
	// Indicate that the session will keep or not.
	SessionSwitch pulumi.BoolInput `pulumi:"sessionSwitch"`
	// Session keep time, only valid when `sessionSwitch` is true, the available value ranges from 1 to 300 and unit is second.
	SessionTime pulumi.IntInput                    `pulumi:"sessionTime"`
	SourceLists GetL4RulesListSourceListArrayInput `pulumi:"sourceLists"`
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType pulumi.IntInput `pulumi:"sourceType"`
}

func (GetL4RulesListArgs) ElementType

func (GetL4RulesListArgs) ElementType() reflect.Type

func (GetL4RulesListArgs) ToGetL4RulesListOutput

func (i GetL4RulesListArgs) ToGetL4RulesListOutput() GetL4RulesListOutput

func (GetL4RulesListArgs) ToGetL4RulesListOutputWithContext

func (i GetL4RulesListArgs) ToGetL4RulesListOutputWithContext(ctx context.Context) GetL4RulesListOutput

type GetL4RulesListArray

type GetL4RulesListArray []GetL4RulesListInput

func (GetL4RulesListArray) ElementType

func (GetL4RulesListArray) ElementType() reflect.Type

func (GetL4RulesListArray) ToGetL4RulesListArrayOutput

func (i GetL4RulesListArray) ToGetL4RulesListArrayOutput() GetL4RulesListArrayOutput

func (GetL4RulesListArray) ToGetL4RulesListArrayOutputWithContext

func (i GetL4RulesListArray) ToGetL4RulesListArrayOutputWithContext(ctx context.Context) GetL4RulesListArrayOutput

type GetL4RulesListArrayInput

type GetL4RulesListArrayInput interface {
	pulumi.Input

	ToGetL4RulesListArrayOutput() GetL4RulesListArrayOutput
	ToGetL4RulesListArrayOutputWithContext(context.Context) GetL4RulesListArrayOutput
}

GetL4RulesListArrayInput is an input type that accepts GetL4RulesListArray and GetL4RulesListArrayOutput values. You can construct a concrete instance of `GetL4RulesListArrayInput` via:

GetL4RulesListArray{ GetL4RulesListArgs{...} }

type GetL4RulesListArrayOutput

type GetL4RulesListArrayOutput struct{ *pulumi.OutputState }

func (GetL4RulesListArrayOutput) ElementType

func (GetL4RulesListArrayOutput) ElementType() reflect.Type

func (GetL4RulesListArrayOutput) Index

func (GetL4RulesListArrayOutput) ToGetL4RulesListArrayOutput

func (o GetL4RulesListArrayOutput) ToGetL4RulesListArrayOutput() GetL4RulesListArrayOutput

func (GetL4RulesListArrayOutput) ToGetL4RulesListArrayOutputWithContext

func (o GetL4RulesListArrayOutput) ToGetL4RulesListArrayOutputWithContext(ctx context.Context) GetL4RulesListArrayOutput

type GetL4RulesListInput

type GetL4RulesListInput interface {
	pulumi.Input

	ToGetL4RulesListOutput() GetL4RulesListOutput
	ToGetL4RulesListOutputWithContext(context.Context) GetL4RulesListOutput
}

GetL4RulesListInput is an input type that accepts GetL4RulesListArgs and GetL4RulesListOutput values. You can construct a concrete instance of `GetL4RulesListInput` via:

GetL4RulesListArgs{...}

type GetL4RulesListOutput

type GetL4RulesListOutput struct{ *pulumi.OutputState }

func (GetL4RulesListOutput) DPort

The destination port of the layer 4 rule.

func (GetL4RulesListOutput) ElementType

func (GetL4RulesListOutput) ElementType() reflect.Type

func (GetL4RulesListOutput) HealthCheckHealthNum

func (o GetL4RulesListOutput) HealthCheckHealthNum() pulumi.IntOutput

Health threshold of health check.

func (GetL4RulesListOutput) HealthCheckInterval

func (o GetL4RulesListOutput) HealthCheckInterval() pulumi.IntOutput

Interval time of health check.

func (GetL4RulesListOutput) HealthCheckSwitch

func (o GetL4RulesListOutput) HealthCheckSwitch() pulumi.BoolOutput

Indicates whether health check is enabled.

func (GetL4RulesListOutput) HealthCheckTimeout

func (o GetL4RulesListOutput) HealthCheckTimeout() pulumi.IntOutput

HTTP Status Code. `1` means the return value `1xx` is health. `2` means the return value `2xx` is health. `4` means the return value `3xx` is health. `8` means the return value `4xx` is health. `16` means the return value `5xx` is health. If you want multiple return codes to indicate health, need to add the corresponding values.

func (GetL4RulesListOutput) HealthCheckUnhealthNum

func (o GetL4RulesListOutput) HealthCheckUnhealthNum() pulumi.IntOutput

Unhealthy threshold of health check.

func (GetL4RulesListOutput) LbType

LB type of the rule, `1` for weight cycling and `2` for IP hash.

func (GetL4RulesListOutput) Name

Name of the layer 4 rule to be queried.

func (GetL4RulesListOutput) Protocol

Protocol of the rule.

func (GetL4RulesListOutput) RuleId

Id of the layer 4 rule to be queried.

func (GetL4RulesListOutput) SPort

The source port of the layer 4 rule.

func (GetL4RulesListOutput) SessionSwitch

func (o GetL4RulesListOutput) SessionSwitch() pulumi.BoolOutput

Indicate that the session will keep or not.

func (GetL4RulesListOutput) SessionTime

func (o GetL4RulesListOutput) SessionTime() pulumi.IntOutput

Session keep time, only valid when `sessionSwitch` is true, the available value ranges from 1 to 300 and unit is second.

func (GetL4RulesListOutput) SourceLists

func (GetL4RulesListOutput) SourceType

func (o GetL4RulesListOutput) SourceType() pulumi.IntOutput

Source type, `1` for source of host, `2` for source of IP.

func (GetL4RulesListOutput) ToGetL4RulesListOutput

func (o GetL4RulesListOutput) ToGetL4RulesListOutput() GetL4RulesListOutput

func (GetL4RulesListOutput) ToGetL4RulesListOutputWithContext

func (o GetL4RulesListOutput) ToGetL4RulesListOutputWithContext(ctx context.Context) GetL4RulesListOutput

type GetL4RulesListSourceList

type GetL4RulesListSourceList struct {
	Source string `pulumi:"source"`
	Weight int    `pulumi:"weight"`
}

type GetL4RulesListSourceListArgs

type GetL4RulesListSourceListArgs struct {
	Source pulumi.StringInput `pulumi:"source"`
	Weight pulumi.IntInput    `pulumi:"weight"`
}

func (GetL4RulesListSourceListArgs) ElementType

func (GetL4RulesListSourceListArgs) ToGetL4RulesListSourceListOutput

func (i GetL4RulesListSourceListArgs) ToGetL4RulesListSourceListOutput() GetL4RulesListSourceListOutput

func (GetL4RulesListSourceListArgs) ToGetL4RulesListSourceListOutputWithContext

func (i GetL4RulesListSourceListArgs) ToGetL4RulesListSourceListOutputWithContext(ctx context.Context) GetL4RulesListSourceListOutput

type GetL4RulesListSourceListArray

type GetL4RulesListSourceListArray []GetL4RulesListSourceListInput

func (GetL4RulesListSourceListArray) ElementType

func (GetL4RulesListSourceListArray) ToGetL4RulesListSourceListArrayOutput

func (i GetL4RulesListSourceListArray) ToGetL4RulesListSourceListArrayOutput() GetL4RulesListSourceListArrayOutput

func (GetL4RulesListSourceListArray) ToGetL4RulesListSourceListArrayOutputWithContext

func (i GetL4RulesListSourceListArray) ToGetL4RulesListSourceListArrayOutputWithContext(ctx context.Context) GetL4RulesListSourceListArrayOutput

type GetL4RulesListSourceListArrayInput

type GetL4RulesListSourceListArrayInput interface {
	pulumi.Input

	ToGetL4RulesListSourceListArrayOutput() GetL4RulesListSourceListArrayOutput
	ToGetL4RulesListSourceListArrayOutputWithContext(context.Context) GetL4RulesListSourceListArrayOutput
}

GetL4RulesListSourceListArrayInput is an input type that accepts GetL4RulesListSourceListArray and GetL4RulesListSourceListArrayOutput values. You can construct a concrete instance of `GetL4RulesListSourceListArrayInput` via:

GetL4RulesListSourceListArray{ GetL4RulesListSourceListArgs{...} }

type GetL4RulesListSourceListArrayOutput

type GetL4RulesListSourceListArrayOutput struct{ *pulumi.OutputState }

func (GetL4RulesListSourceListArrayOutput) ElementType

func (GetL4RulesListSourceListArrayOutput) Index

func (GetL4RulesListSourceListArrayOutput) ToGetL4RulesListSourceListArrayOutput

func (o GetL4RulesListSourceListArrayOutput) ToGetL4RulesListSourceListArrayOutput() GetL4RulesListSourceListArrayOutput

func (GetL4RulesListSourceListArrayOutput) ToGetL4RulesListSourceListArrayOutputWithContext

func (o GetL4RulesListSourceListArrayOutput) ToGetL4RulesListSourceListArrayOutputWithContext(ctx context.Context) GetL4RulesListSourceListArrayOutput

type GetL4RulesListSourceListInput

type GetL4RulesListSourceListInput interface {
	pulumi.Input

	ToGetL4RulesListSourceListOutput() GetL4RulesListSourceListOutput
	ToGetL4RulesListSourceListOutputWithContext(context.Context) GetL4RulesListSourceListOutput
}

GetL4RulesListSourceListInput is an input type that accepts GetL4RulesListSourceListArgs and GetL4RulesListSourceListOutput values. You can construct a concrete instance of `GetL4RulesListSourceListInput` via:

GetL4RulesListSourceListArgs{...}

type GetL4RulesListSourceListOutput

type GetL4RulesListSourceListOutput struct{ *pulumi.OutputState }

func (GetL4RulesListSourceListOutput) ElementType

func (GetL4RulesListSourceListOutput) Source

func (GetL4RulesListSourceListOutput) ToGetL4RulesListSourceListOutput

func (o GetL4RulesListSourceListOutput) ToGetL4RulesListSourceListOutput() GetL4RulesListSourceListOutput

func (GetL4RulesListSourceListOutput) ToGetL4RulesListSourceListOutputWithContext

func (o GetL4RulesListSourceListOutput) ToGetL4RulesListSourceListOutputWithContext(ctx context.Context) GetL4RulesListSourceListOutput

func (GetL4RulesListSourceListOutput) Weight

type GetL4RulesOutputArgs

type GetL4RulesOutputArgs struct {
	// Name of the layer 4 rule to be queried.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// Id of the resource that the layer 4 rule works for.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// Type of the resource that the layer 4 rule works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Id of the layer 4 rule to be queried.
	RuleId pulumi.StringPtrInput `pulumi:"ruleId"`
}

A collection of arguments for invoking getL4Rules.

func (GetL4RulesOutputArgs) ElementType

func (GetL4RulesOutputArgs) ElementType() reflect.Type

type GetL4RulesResult

type GetL4RulesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of layer 4 rules. Each element contains the following attributes:
	Lists []GetL4RulesList `pulumi:"lists"`
	// Name of the rule.
	Name             *string `pulumi:"name"`
	ResourceId       string  `pulumi:"resourceId"`
	ResourceType     string  `pulumi:"resourceType"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the 4 layer rule.
	RuleId *string `pulumi:"ruleId"`
}

A collection of values returned by getL4Rules.

func GetL4Rules

func GetL4Rules(ctx *pulumi.Context, args *GetL4RulesArgs, opts ...pulumi.InvokeOption) (*GetL4RulesResult, error)

Use this data source to query dayu layer 4 rules

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.GetL4Rules(ctx, &dayu.GetL4RulesArgs{
			ResourceType: tencentcloud_dayu_l4_rule.Test_rule.Resource_type,
			ResourceId:   tencentcloud_dayu_l4_rule.Test_rule.Resource_id,
			Name:         pulumi.StringRef(tencentcloud_dayu_l4_rule.Test_rule.Name),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Dayu.GetL4Rules(ctx, &dayu.GetL4RulesArgs{
			ResourceType: tencentcloud_dayu_l4_rule.Test_rule.Resource_type,
			ResourceId:   tencentcloud_dayu_l4_rule.Test_rule.Resource_id,
			RuleId:       pulumi.StringRef(tencentcloud_dayu_l4_rule.Test_rule.Rule_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetL4RulesResultOutput

type GetL4RulesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getL4Rules.

func (GetL4RulesResultOutput) ElementType

func (GetL4RulesResultOutput) ElementType() reflect.Type

func (GetL4RulesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetL4RulesResultOutput) Lists

A list of layer 4 rules. Each element contains the following attributes:

func (GetL4RulesResultOutput) Name

Name of the rule.

func (GetL4RulesResultOutput) ResourceId

func (GetL4RulesResultOutput) ResourceType

func (o GetL4RulesResultOutput) ResourceType() pulumi.StringOutput

func (GetL4RulesResultOutput) ResultOutputFile

func (o GetL4RulesResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetL4RulesResultOutput) RuleId

ID of the 4 layer rule.

func (GetL4RulesResultOutput) ToGetL4RulesResultOutput

func (o GetL4RulesResultOutput) ToGetL4RulesResultOutput() GetL4RulesResultOutput

func (GetL4RulesResultOutput) ToGetL4RulesResultOutputWithContext

func (o GetL4RulesResultOutput) ToGetL4RulesResultOutputWithContext(ctx context.Context) GetL4RulesResultOutput

type GetL4RulesV2Args

type GetL4RulesV2Args struct {
	// Type of the resource that the layer 4 rule works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	Business string `pulumi:"business"`
	// Ip of the resource.
	Ip *string `pulumi:"ip"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Virtual port of resource.
	VirtualPort *int `pulumi:"virtualPort"`
}

A collection of arguments for invoking getL4RulesV2.

type GetL4RulesV2List

type GetL4RulesV2List struct {
	// Bind the resource ID information.
	Id string `pulumi:"id"`
	// Ip of the resource.
	Ip string `pulumi:"ip"`
	// session hold switch.
	KeepEnable bool `pulumi:"keepEnable"`
	// The keeptime of the layer 4 rule.
	Keeptime int `pulumi:"keeptime"`
	// LB type of the rule, `1` for weight cycling and `2` for IP hash.
	LbType int `pulumi:"lbType"`
	// Rule modification time.
	ModifyTime string `pulumi:"modifyTime"`
	// Protocol of the rule.
	Protocol string `pulumi:"protocol"`
	// Corresponding regional information.
	Region int `pulumi:"region"`
	// Remove the watermark state.
	RemoveSwitch bool `pulumi:"removeSwitch"`
	// ID of the 4 layer rule.
	RuleId string `pulumi:"ruleId"`
	// Name of the rule.
	RuleName    string                       `pulumi:"ruleName"`
	SourceLists []GetL4RulesV2ListSourceList `pulumi:"sourceLists"`
	// The source port of the layer 4 rule.
	SourcePort int `pulumi:"sourcePort"`
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType int `pulumi:"sourceType"`
	// Virtual port of resource.
	VirtualPort int `pulumi:"virtualPort"`
}

type GetL4RulesV2ListArgs

type GetL4RulesV2ListArgs struct {
	// Bind the resource ID information.
	Id pulumi.StringInput `pulumi:"id"`
	// Ip of the resource.
	Ip pulumi.StringInput `pulumi:"ip"`
	// session hold switch.
	KeepEnable pulumi.BoolInput `pulumi:"keepEnable"`
	// The keeptime of the layer 4 rule.
	Keeptime pulumi.IntInput `pulumi:"keeptime"`
	// LB type of the rule, `1` for weight cycling and `2` for IP hash.
	LbType pulumi.IntInput `pulumi:"lbType"`
	// Rule modification time.
	ModifyTime pulumi.StringInput `pulumi:"modifyTime"`
	// Protocol of the rule.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// Corresponding regional information.
	Region pulumi.IntInput `pulumi:"region"`
	// Remove the watermark state.
	RemoveSwitch pulumi.BoolInput `pulumi:"removeSwitch"`
	// ID of the 4 layer rule.
	RuleId pulumi.StringInput `pulumi:"ruleId"`
	// Name of the rule.
	RuleName    pulumi.StringInput                   `pulumi:"ruleName"`
	SourceLists GetL4RulesV2ListSourceListArrayInput `pulumi:"sourceLists"`
	// The source port of the layer 4 rule.
	SourcePort pulumi.IntInput `pulumi:"sourcePort"`
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType pulumi.IntInput `pulumi:"sourceType"`
	// Virtual port of resource.
	VirtualPort pulumi.IntInput `pulumi:"virtualPort"`
}

func (GetL4RulesV2ListArgs) ElementType

func (GetL4RulesV2ListArgs) ElementType() reflect.Type

func (GetL4RulesV2ListArgs) ToGetL4RulesV2ListOutput

func (i GetL4RulesV2ListArgs) ToGetL4RulesV2ListOutput() GetL4RulesV2ListOutput

func (GetL4RulesV2ListArgs) ToGetL4RulesV2ListOutputWithContext

func (i GetL4RulesV2ListArgs) ToGetL4RulesV2ListOutputWithContext(ctx context.Context) GetL4RulesV2ListOutput

type GetL4RulesV2ListArray

type GetL4RulesV2ListArray []GetL4RulesV2ListInput

func (GetL4RulesV2ListArray) ElementType

func (GetL4RulesV2ListArray) ElementType() reflect.Type

func (GetL4RulesV2ListArray) ToGetL4RulesV2ListArrayOutput

func (i GetL4RulesV2ListArray) ToGetL4RulesV2ListArrayOutput() GetL4RulesV2ListArrayOutput

func (GetL4RulesV2ListArray) ToGetL4RulesV2ListArrayOutputWithContext

func (i GetL4RulesV2ListArray) ToGetL4RulesV2ListArrayOutputWithContext(ctx context.Context) GetL4RulesV2ListArrayOutput

type GetL4RulesV2ListArrayInput

type GetL4RulesV2ListArrayInput interface {
	pulumi.Input

	ToGetL4RulesV2ListArrayOutput() GetL4RulesV2ListArrayOutput
	ToGetL4RulesV2ListArrayOutputWithContext(context.Context) GetL4RulesV2ListArrayOutput
}

GetL4RulesV2ListArrayInput is an input type that accepts GetL4RulesV2ListArray and GetL4RulesV2ListArrayOutput values. You can construct a concrete instance of `GetL4RulesV2ListArrayInput` via:

GetL4RulesV2ListArray{ GetL4RulesV2ListArgs{...} }

type GetL4RulesV2ListArrayOutput

type GetL4RulesV2ListArrayOutput struct{ *pulumi.OutputState }

func (GetL4RulesV2ListArrayOutput) ElementType

func (GetL4RulesV2ListArrayOutput) Index

func (GetL4RulesV2ListArrayOutput) ToGetL4RulesV2ListArrayOutput

func (o GetL4RulesV2ListArrayOutput) ToGetL4RulesV2ListArrayOutput() GetL4RulesV2ListArrayOutput

func (GetL4RulesV2ListArrayOutput) ToGetL4RulesV2ListArrayOutputWithContext

func (o GetL4RulesV2ListArrayOutput) ToGetL4RulesV2ListArrayOutputWithContext(ctx context.Context) GetL4RulesV2ListArrayOutput

type GetL4RulesV2ListInput

type GetL4RulesV2ListInput interface {
	pulumi.Input

	ToGetL4RulesV2ListOutput() GetL4RulesV2ListOutput
	ToGetL4RulesV2ListOutputWithContext(context.Context) GetL4RulesV2ListOutput
}

GetL4RulesV2ListInput is an input type that accepts GetL4RulesV2ListArgs and GetL4RulesV2ListOutput values. You can construct a concrete instance of `GetL4RulesV2ListInput` via:

GetL4RulesV2ListArgs{...}

type GetL4RulesV2ListOutput

type GetL4RulesV2ListOutput struct{ *pulumi.OutputState }

func (GetL4RulesV2ListOutput) ElementType

func (GetL4RulesV2ListOutput) ElementType() reflect.Type

func (GetL4RulesV2ListOutput) Id

Bind the resource ID information.

func (GetL4RulesV2ListOutput) Ip

Ip of the resource.

func (GetL4RulesV2ListOutput) KeepEnable

func (o GetL4RulesV2ListOutput) KeepEnable() pulumi.BoolOutput

session hold switch.

func (GetL4RulesV2ListOutput) Keeptime

The keeptime of the layer 4 rule.

func (GetL4RulesV2ListOutput) LbType

LB type of the rule, `1` for weight cycling and `2` for IP hash.

func (GetL4RulesV2ListOutput) ModifyTime

Rule modification time.

func (GetL4RulesV2ListOutput) Protocol

Protocol of the rule.

func (GetL4RulesV2ListOutput) Region

Corresponding regional information.

func (GetL4RulesV2ListOutput) RemoveSwitch

func (o GetL4RulesV2ListOutput) RemoveSwitch() pulumi.BoolOutput

Remove the watermark state.

func (GetL4RulesV2ListOutput) RuleId

ID of the 4 layer rule.

func (GetL4RulesV2ListOutput) RuleName

Name of the rule.

func (GetL4RulesV2ListOutput) SourceLists

func (GetL4RulesV2ListOutput) SourcePort

func (o GetL4RulesV2ListOutput) SourcePort() pulumi.IntOutput

The source port of the layer 4 rule.

func (GetL4RulesV2ListOutput) SourceType

func (o GetL4RulesV2ListOutput) SourceType() pulumi.IntOutput

Source type, `1` for source of host, `2` for source of IP.

func (GetL4RulesV2ListOutput) ToGetL4RulesV2ListOutput

func (o GetL4RulesV2ListOutput) ToGetL4RulesV2ListOutput() GetL4RulesV2ListOutput

func (GetL4RulesV2ListOutput) ToGetL4RulesV2ListOutputWithContext

func (o GetL4RulesV2ListOutput) ToGetL4RulesV2ListOutputWithContext(ctx context.Context) GetL4RulesV2ListOutput

func (GetL4RulesV2ListOutput) VirtualPort

func (o GetL4RulesV2ListOutput) VirtualPort() pulumi.IntOutput

Virtual port of resource.

type GetL4RulesV2ListSourceList

type GetL4RulesV2ListSourceList struct {
	Source string `pulumi:"source"`
	Weight int    `pulumi:"weight"`
}

type GetL4RulesV2ListSourceListArgs

type GetL4RulesV2ListSourceListArgs struct {
	Source pulumi.StringInput `pulumi:"source"`
	Weight pulumi.IntInput    `pulumi:"weight"`
}

func (GetL4RulesV2ListSourceListArgs) ElementType

func (GetL4RulesV2ListSourceListArgs) ToGetL4RulesV2ListSourceListOutput

func (i GetL4RulesV2ListSourceListArgs) ToGetL4RulesV2ListSourceListOutput() GetL4RulesV2ListSourceListOutput

func (GetL4RulesV2ListSourceListArgs) ToGetL4RulesV2ListSourceListOutputWithContext

func (i GetL4RulesV2ListSourceListArgs) ToGetL4RulesV2ListSourceListOutputWithContext(ctx context.Context) GetL4RulesV2ListSourceListOutput

type GetL4RulesV2ListSourceListArray

type GetL4RulesV2ListSourceListArray []GetL4RulesV2ListSourceListInput

func (GetL4RulesV2ListSourceListArray) ElementType

func (GetL4RulesV2ListSourceListArray) ToGetL4RulesV2ListSourceListArrayOutput

func (i GetL4RulesV2ListSourceListArray) ToGetL4RulesV2ListSourceListArrayOutput() GetL4RulesV2ListSourceListArrayOutput

func (GetL4RulesV2ListSourceListArray) ToGetL4RulesV2ListSourceListArrayOutputWithContext

func (i GetL4RulesV2ListSourceListArray) ToGetL4RulesV2ListSourceListArrayOutputWithContext(ctx context.Context) GetL4RulesV2ListSourceListArrayOutput

type GetL4RulesV2ListSourceListArrayInput

type GetL4RulesV2ListSourceListArrayInput interface {
	pulumi.Input

	ToGetL4RulesV2ListSourceListArrayOutput() GetL4RulesV2ListSourceListArrayOutput
	ToGetL4RulesV2ListSourceListArrayOutputWithContext(context.Context) GetL4RulesV2ListSourceListArrayOutput
}

GetL4RulesV2ListSourceListArrayInput is an input type that accepts GetL4RulesV2ListSourceListArray and GetL4RulesV2ListSourceListArrayOutput values. You can construct a concrete instance of `GetL4RulesV2ListSourceListArrayInput` via:

GetL4RulesV2ListSourceListArray{ GetL4RulesV2ListSourceListArgs{...} }

type GetL4RulesV2ListSourceListArrayOutput

type GetL4RulesV2ListSourceListArrayOutput struct{ *pulumi.OutputState }

func (GetL4RulesV2ListSourceListArrayOutput) ElementType

func (GetL4RulesV2ListSourceListArrayOutput) Index

func (GetL4RulesV2ListSourceListArrayOutput) ToGetL4RulesV2ListSourceListArrayOutput

func (o GetL4RulesV2ListSourceListArrayOutput) ToGetL4RulesV2ListSourceListArrayOutput() GetL4RulesV2ListSourceListArrayOutput

func (GetL4RulesV2ListSourceListArrayOutput) ToGetL4RulesV2ListSourceListArrayOutputWithContext

func (o GetL4RulesV2ListSourceListArrayOutput) ToGetL4RulesV2ListSourceListArrayOutputWithContext(ctx context.Context) GetL4RulesV2ListSourceListArrayOutput

type GetL4RulesV2ListSourceListInput

type GetL4RulesV2ListSourceListInput interface {
	pulumi.Input

	ToGetL4RulesV2ListSourceListOutput() GetL4RulesV2ListSourceListOutput
	ToGetL4RulesV2ListSourceListOutputWithContext(context.Context) GetL4RulesV2ListSourceListOutput
}

GetL4RulesV2ListSourceListInput is an input type that accepts GetL4RulesV2ListSourceListArgs and GetL4RulesV2ListSourceListOutput values. You can construct a concrete instance of `GetL4RulesV2ListSourceListInput` via:

GetL4RulesV2ListSourceListArgs{...}

type GetL4RulesV2ListSourceListOutput

type GetL4RulesV2ListSourceListOutput struct{ *pulumi.OutputState }

func (GetL4RulesV2ListSourceListOutput) ElementType

func (GetL4RulesV2ListSourceListOutput) Source

func (GetL4RulesV2ListSourceListOutput) ToGetL4RulesV2ListSourceListOutput

func (o GetL4RulesV2ListSourceListOutput) ToGetL4RulesV2ListSourceListOutput() GetL4RulesV2ListSourceListOutput

func (GetL4RulesV2ListSourceListOutput) ToGetL4RulesV2ListSourceListOutputWithContext

func (o GetL4RulesV2ListSourceListOutput) ToGetL4RulesV2ListSourceListOutputWithContext(ctx context.Context) GetL4RulesV2ListSourceListOutput

func (GetL4RulesV2ListSourceListOutput) Weight

type GetL4RulesV2OutputArgs

type GetL4RulesV2OutputArgs struct {
	// Type of the resource that the layer 4 rule works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	Business pulumi.StringInput `pulumi:"business"`
	// Ip of the resource.
	Ip pulumi.StringPtrInput `pulumi:"ip"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Virtual port of resource.
	VirtualPort pulumi.IntPtrInput `pulumi:"virtualPort"`
}

A collection of arguments for invoking getL4RulesV2.

func (GetL4RulesV2OutputArgs) ElementType

func (GetL4RulesV2OutputArgs) ElementType() reflect.Type

type GetL4RulesV2Result

type GetL4RulesV2Result struct {
	Business string `pulumi:"business"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Bind the resource IP information.
	Ip *string `pulumi:"ip"`
	// A list of layer 4 rules. Each element contains the following attributes:
	Lists            []GetL4RulesV2List `pulumi:"lists"`
	ResultOutputFile *string            `pulumi:"resultOutputFile"`
	// The virtual port of the layer 4 rule.
	VirtualPort *int `pulumi:"virtualPort"`
}

A collection of values returned by getL4RulesV2.

func GetL4RulesV2

func GetL4RulesV2(ctx *pulumi.Context, args *GetL4RulesV2Args, opts ...pulumi.InvokeOption) (*GetL4RulesV2Result, error)

Use this data source to query dayu new layer 4 rules

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.GetL4RulesV2(ctx, &dayu.GetL4RulesV2Args{
			Business: "bgpip",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetL4RulesV2ResultOutput

type GetL4RulesV2ResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getL4RulesV2.

func (GetL4RulesV2ResultOutput) Business

func (GetL4RulesV2ResultOutput) ElementType

func (GetL4RulesV2ResultOutput) ElementType() reflect.Type

func (GetL4RulesV2ResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetL4RulesV2ResultOutput) Ip

Bind the resource IP information.

func (GetL4RulesV2ResultOutput) Lists

A list of layer 4 rules. Each element contains the following attributes:

func (GetL4RulesV2ResultOutput) ResultOutputFile

func (o GetL4RulesV2ResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetL4RulesV2ResultOutput) ToGetL4RulesV2ResultOutput

func (o GetL4RulesV2ResultOutput) ToGetL4RulesV2ResultOutput() GetL4RulesV2ResultOutput

func (GetL4RulesV2ResultOutput) ToGetL4RulesV2ResultOutputWithContext

func (o GetL4RulesV2ResultOutput) ToGetL4RulesV2ResultOutputWithContext(ctx context.Context) GetL4RulesV2ResultOutput

func (GetL4RulesV2ResultOutput) VirtualPort

The virtual port of the layer 4 rule.

type GetL7RulesArgs

type GetL7RulesArgs struct {
	// Domain of the layer 7 rule to be queried.
	Domain *string `pulumi:"domain"`
	// Id of the resource that the layer 7 rule works for.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource that the layer 7 rule works for, valid value is `bgpip`.
	ResourceType string `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// Id of the layer 7 rule to be queried.
	RuleId *string `pulumi:"ruleId"`
}

A collection of arguments for invoking getL7Rules.

type GetL7RulesList

type GetL7RulesList struct {
	// Domain of the layer 7 rule to be queried.
	Domain string `pulumi:"domain"`
	// HTTP Status Code. `1` means the return value `1xx` is health. `2` means the return value `2xx` is health. `4` means the return value `3xx` is health. `8` means the return value `4xx` is health. `16` means the return value `5xx` is health. If you want multiple return codes to indicate health, need to add the corresponding values.
	HealthCheckCode int `pulumi:"healthCheckCode"`
	// Health threshold of health check.
	HealthCheckHealthNum int `pulumi:"healthCheckHealthNum"`
	// Interval time of health check.
	HealthCheckInterval int `pulumi:"healthCheckInterval"`
	// Methods of health check.
	HealthCheckMethod string `pulumi:"healthCheckMethod"`
	// Path of health check.
	HealthCheckPath string `pulumi:"healthCheckPath"`
	// Indicates whether health check is enabled.
	HealthCheckSwitch bool `pulumi:"healthCheckSwitch"`
	// Unhealthy threshold of health check.
	HealthCheckUnhealthNum int `pulumi:"healthCheckUnhealthNum"`
	// Name of the rule.
	Name string `pulumi:"name"`
	// Protocol of the rule.
	Protocol string `pulumi:"protocol"`
	// Id of the layer 7 rule to be queried.
	RuleId string `pulumi:"ruleId"`
	// Source list of the rule.
	SourceLists []string `pulumi:"sourceLists"`
	// Source type, 1 for source of host, 2 for source of ip.
	SourceType int `pulumi:"sourceType"`
	// SSL id.
	SslId string `pulumi:"sslId"`
	// Status of the rule. `0` for create/modify success, `2` for create/modify fail, `3` for delete success, `5` for waiting to be created/modified, `7` for waiting to be deleted and `8` for waiting to get SSL id.
	Status int `pulumi:"status"`
	// Indicate the rule will take effect or not.
	Switch bool `pulumi:"switch"`
	// Threshold of the rule.
	Threshold int `pulumi:"threshold"`
}

type GetL7RulesListArgs

type GetL7RulesListArgs struct {
	// Domain of the layer 7 rule to be queried.
	Domain pulumi.StringInput `pulumi:"domain"`
	// HTTP Status Code. `1` means the return value `1xx` is health. `2` means the return value `2xx` is health. `4` means the return value `3xx` is health. `8` means the return value `4xx` is health. `16` means the return value `5xx` is health. If you want multiple return codes to indicate health, need to add the corresponding values.
	HealthCheckCode pulumi.IntInput `pulumi:"healthCheckCode"`
	// Health threshold of health check.
	HealthCheckHealthNum pulumi.IntInput `pulumi:"healthCheckHealthNum"`
	// Interval time of health check.
	HealthCheckInterval pulumi.IntInput `pulumi:"healthCheckInterval"`
	// Methods of health check.
	HealthCheckMethod pulumi.StringInput `pulumi:"healthCheckMethod"`
	// Path of health check.
	HealthCheckPath pulumi.StringInput `pulumi:"healthCheckPath"`
	// Indicates whether health check is enabled.
	HealthCheckSwitch pulumi.BoolInput `pulumi:"healthCheckSwitch"`
	// Unhealthy threshold of health check.
	HealthCheckUnhealthNum pulumi.IntInput `pulumi:"healthCheckUnhealthNum"`
	// Name of the rule.
	Name pulumi.StringInput `pulumi:"name"`
	// Protocol of the rule.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// Id of the layer 7 rule to be queried.
	RuleId pulumi.StringInput `pulumi:"ruleId"`
	// Source list of the rule.
	SourceLists pulumi.StringArrayInput `pulumi:"sourceLists"`
	// Source type, 1 for source of host, 2 for source of ip.
	SourceType pulumi.IntInput `pulumi:"sourceType"`
	// SSL id.
	SslId pulumi.StringInput `pulumi:"sslId"`
	// Status of the rule. `0` for create/modify success, `2` for create/modify fail, `3` for delete success, `5` for waiting to be created/modified, `7` for waiting to be deleted and `8` for waiting to get SSL id.
	Status pulumi.IntInput `pulumi:"status"`
	// Indicate the rule will take effect or not.
	Switch pulumi.BoolInput `pulumi:"switch"`
	// Threshold of the rule.
	Threshold pulumi.IntInput `pulumi:"threshold"`
}

func (GetL7RulesListArgs) ElementType

func (GetL7RulesListArgs) ElementType() reflect.Type

func (GetL7RulesListArgs) ToGetL7RulesListOutput

func (i GetL7RulesListArgs) ToGetL7RulesListOutput() GetL7RulesListOutput

func (GetL7RulesListArgs) ToGetL7RulesListOutputWithContext

func (i GetL7RulesListArgs) ToGetL7RulesListOutputWithContext(ctx context.Context) GetL7RulesListOutput

type GetL7RulesListArray

type GetL7RulesListArray []GetL7RulesListInput

func (GetL7RulesListArray) ElementType

func (GetL7RulesListArray) ElementType() reflect.Type

func (GetL7RulesListArray) ToGetL7RulesListArrayOutput

func (i GetL7RulesListArray) ToGetL7RulesListArrayOutput() GetL7RulesListArrayOutput

func (GetL7RulesListArray) ToGetL7RulesListArrayOutputWithContext

func (i GetL7RulesListArray) ToGetL7RulesListArrayOutputWithContext(ctx context.Context) GetL7RulesListArrayOutput

type GetL7RulesListArrayInput

type GetL7RulesListArrayInput interface {
	pulumi.Input

	ToGetL7RulesListArrayOutput() GetL7RulesListArrayOutput
	ToGetL7RulesListArrayOutputWithContext(context.Context) GetL7RulesListArrayOutput
}

GetL7RulesListArrayInput is an input type that accepts GetL7RulesListArray and GetL7RulesListArrayOutput values. You can construct a concrete instance of `GetL7RulesListArrayInput` via:

GetL7RulesListArray{ GetL7RulesListArgs{...} }

type GetL7RulesListArrayOutput

type GetL7RulesListArrayOutput struct{ *pulumi.OutputState }

func (GetL7RulesListArrayOutput) ElementType

func (GetL7RulesListArrayOutput) ElementType() reflect.Type

func (GetL7RulesListArrayOutput) Index

func (GetL7RulesListArrayOutput) ToGetL7RulesListArrayOutput

func (o GetL7RulesListArrayOutput) ToGetL7RulesListArrayOutput() GetL7RulesListArrayOutput

func (GetL7RulesListArrayOutput) ToGetL7RulesListArrayOutputWithContext

func (o GetL7RulesListArrayOutput) ToGetL7RulesListArrayOutputWithContext(ctx context.Context) GetL7RulesListArrayOutput

type GetL7RulesListInput

type GetL7RulesListInput interface {
	pulumi.Input

	ToGetL7RulesListOutput() GetL7RulesListOutput
	ToGetL7RulesListOutputWithContext(context.Context) GetL7RulesListOutput
}

GetL7RulesListInput is an input type that accepts GetL7RulesListArgs and GetL7RulesListOutput values. You can construct a concrete instance of `GetL7RulesListInput` via:

GetL7RulesListArgs{...}

type GetL7RulesListOutput

type GetL7RulesListOutput struct{ *pulumi.OutputState }

func (GetL7RulesListOutput) Domain

Domain of the layer 7 rule to be queried.

func (GetL7RulesListOutput) ElementType

func (GetL7RulesListOutput) ElementType() reflect.Type

func (GetL7RulesListOutput) HealthCheckCode

func (o GetL7RulesListOutput) HealthCheckCode() pulumi.IntOutput

HTTP Status Code. `1` means the return value `1xx` is health. `2` means the return value `2xx` is health. `4` means the return value `3xx` is health. `8` means the return value `4xx` is health. `16` means the return value `5xx` is health. If you want multiple return codes to indicate health, need to add the corresponding values.

func (GetL7RulesListOutput) HealthCheckHealthNum

func (o GetL7RulesListOutput) HealthCheckHealthNum() pulumi.IntOutput

Health threshold of health check.

func (GetL7RulesListOutput) HealthCheckInterval

func (o GetL7RulesListOutput) HealthCheckInterval() pulumi.IntOutput

Interval time of health check.

func (GetL7RulesListOutput) HealthCheckMethod

func (o GetL7RulesListOutput) HealthCheckMethod() pulumi.StringOutput

Methods of health check.

func (GetL7RulesListOutput) HealthCheckPath

func (o GetL7RulesListOutput) HealthCheckPath() pulumi.StringOutput

Path of health check.

func (GetL7RulesListOutput) HealthCheckSwitch

func (o GetL7RulesListOutput) HealthCheckSwitch() pulumi.BoolOutput

Indicates whether health check is enabled.

func (GetL7RulesListOutput) HealthCheckUnhealthNum

func (o GetL7RulesListOutput) HealthCheckUnhealthNum() pulumi.IntOutput

Unhealthy threshold of health check.

func (GetL7RulesListOutput) Name

Name of the rule.

func (GetL7RulesListOutput) Protocol

Protocol of the rule.

func (GetL7RulesListOutput) RuleId

Id of the layer 7 rule to be queried.

func (GetL7RulesListOutput) SourceLists

Source list of the rule.

func (GetL7RulesListOutput) SourceType

func (o GetL7RulesListOutput) SourceType() pulumi.IntOutput

Source type, 1 for source of host, 2 for source of ip.

func (GetL7RulesListOutput) SslId

SSL id.

func (GetL7RulesListOutput) Status

Status of the rule. `0` for create/modify success, `2` for create/modify fail, `3` for delete success, `5` for waiting to be created/modified, `7` for waiting to be deleted and `8` for waiting to get SSL id.

func (GetL7RulesListOutput) Switch

Indicate the rule will take effect or not.

func (GetL7RulesListOutput) Threshold

func (o GetL7RulesListOutput) Threshold() pulumi.IntOutput

Threshold of the rule.

func (GetL7RulesListOutput) ToGetL7RulesListOutput

func (o GetL7RulesListOutput) ToGetL7RulesListOutput() GetL7RulesListOutput

func (GetL7RulesListOutput) ToGetL7RulesListOutputWithContext

func (o GetL7RulesListOutput) ToGetL7RulesListOutputWithContext(ctx context.Context) GetL7RulesListOutput

type GetL7RulesOutputArgs

type GetL7RulesOutputArgs struct {
	// Domain of the layer 7 rule to be queried.
	Domain pulumi.StringPtrInput `pulumi:"domain"`
	// Id of the resource that the layer 7 rule works for.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// Type of the resource that the layer 7 rule works for, valid value is `bgpip`.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// Id of the layer 7 rule to be queried.
	RuleId pulumi.StringPtrInput `pulumi:"ruleId"`
}

A collection of arguments for invoking getL7Rules.

func (GetL7RulesOutputArgs) ElementType

func (GetL7RulesOutputArgs) ElementType() reflect.Type

type GetL7RulesResult

type GetL7RulesResult struct {
	// Domain that the 7 layer rule works for.
	Domain *string `pulumi:"domain"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of layer 7 rules. Each element contains the following attributes:
	Lists            []GetL7RulesList `pulumi:"lists"`
	ResourceId       string           `pulumi:"resourceId"`
	ResourceType     string           `pulumi:"resourceType"`
	ResultOutputFile *string          `pulumi:"resultOutputFile"`
	// Id of the 7 layer rule.
	RuleId *string `pulumi:"ruleId"`
}

A collection of values returned by getL7Rules.

func GetL7Rules

func GetL7Rules(ctx *pulumi.Context, args *GetL7RulesArgs, opts ...pulumi.InvokeOption) (*GetL7RulesResult, error)

Use this data source to query dayu layer 7 rules

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.GetL7Rules(ctx, &dayu.GetL7RulesArgs{
			ResourceType: tencentcloud_dayu_l7_rule.Test_rule.Resource_type,
			ResourceId:   tencentcloud_dayu_l7_rule.Test_rule.Resource_id,
			Domain:       pulumi.StringRef(tencentcloud_dayu_l7_rule.Test_rule.Domain),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Dayu.GetL7Rules(ctx, &dayu.GetL7RulesArgs{
			ResourceType: tencentcloud_dayu_l7_rule.Test_rule.Resource_type,
			ResourceId:   tencentcloud_dayu_l7_rule.Test_rule.Resource_id,
			RuleId:       pulumi.StringRef(tencentcloud_dayu_l7_rule.Test_rule.Rule_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetL7RulesResultOutput

type GetL7RulesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getL7Rules.

func (GetL7RulesResultOutput) Domain

Domain that the 7 layer rule works for.

func (GetL7RulesResultOutput) ElementType

func (GetL7RulesResultOutput) ElementType() reflect.Type

func (GetL7RulesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetL7RulesResultOutput) Lists

A list of layer 7 rules. Each element contains the following attributes:

func (GetL7RulesResultOutput) ResourceId

func (GetL7RulesResultOutput) ResourceType

func (o GetL7RulesResultOutput) ResourceType() pulumi.StringOutput

func (GetL7RulesResultOutput) ResultOutputFile

func (o GetL7RulesResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetL7RulesResultOutput) RuleId

Id of the 7 layer rule.

func (GetL7RulesResultOutput) ToGetL7RulesResultOutput

func (o GetL7RulesResultOutput) ToGetL7RulesResultOutput() GetL7RulesResultOutput

func (GetL7RulesResultOutput) ToGetL7RulesResultOutputWithContext

func (o GetL7RulesResultOutput) ToGetL7RulesResultOutputWithContext(ctx context.Context) GetL7RulesResultOutput

type GetL7RulesV2Args

type GetL7RulesV2Args struct {
	// Type of the resource that the layer 4 rule works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	Business string `pulumi:"business"`
	// Domain of resource.
	Domain *string `pulumi:"domain"`
	// Ip of the resource.
	Ip *string `pulumi:"ip"`
	// It has been deprecated from version 1.81.21. The number of pages, default is `10`.
	//
	// Deprecated: It has been deprecated from version 1.81.21.
	Limit *int `pulumi:"limit"`
	// It has been deprecated from version 1.81.21. The page start offset, default is `0`.
	//
	// Deprecated: It has been deprecated from version 1.81.21.
	Offset *int `pulumi:"offset"`
	// Protocol of resource, value range [`http`, `https`].
	Protocol *string `pulumi:"protocol"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getL7RulesV2.

type GetL7RulesV2List

type GetL7RulesV2List struct {
	// CC protection status of HTTPS protocol, the value is [0 (off), 1 (on)].
	CcEnable int `pulumi:"ccEnable"`
	// CC protection level of HTTPS protocol.
	CcLevel string `pulumi:"ccLevel"`
	// CC protection status, value [0(off), 1(on)].
	CcStatus int `pulumi:"ccStatus"`
	// CC protection threshold of HTTPS protocol.
	CcThreshold int `pulumi:"ccThreshold"`
	// The source of the certificate.
	CertType int `pulumi:"certType"`
	// Domain of resource.
	Domain string `pulumi:"domain"`
	// Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], default is off.
	HttpsToHttpEnable int `pulumi:"httpsToHttpEnable"`
	// Id of the resource.
	Id string `pulumi:"id"`
	// Ip of the resource.
	Ip string `pulumi:"ip"`
	// Session keep switch, value [0 (session keep closed), 1 (session keep open)].
	KeepEnable int `pulumi:"keepEnable"`
	// Session hold time, in seconds.
	KeepTime int `pulumi:"keepTime"`
	// Load balancing mode, the value is [1 (weighted round-robin)].
	LbType int `pulumi:"lbType"`
	// Modify time of resource.
	ModifyTime string `pulumi:"modifyTime"`
	// Protocol of resource, value range [`http`, `https`].
	Protocol string `pulumi:"protocol"`
	// The area code.
	Region int `pulumi:"region"`
	// Rule description.
	RuleName string `pulumi:"ruleName"`
	// Source list of the rule.
	SourceLists []GetL7RulesV2ListSourceList `pulumi:"sourceLists"`
	// Back-to-origin method, value [1 (domain name back-to-source), 2 (IP back-to-source)].
	SourceType int `pulumi:"sourceType"`
	// SSL id of the resource.
	SslId string `pulumi:"sslId"`
	// Rule status, value [0 (rule configuration is successful), 1 (rule configuration is in effect), 2 (rule configuration fails), 3 (rule deletion is in effect), 5 (rule deletion fails), 6 (rule is waiting to be configured), 7 (rule pending deletion), 8 (rule pending configuration certificate)].
	Status int `pulumi:"status"`
	// Virtual port of resource.
	VirtualPort int `pulumi:"virtualPort"`
}

type GetL7RulesV2ListArgs

type GetL7RulesV2ListArgs struct {
	// CC protection status of HTTPS protocol, the value is [0 (off), 1 (on)].
	CcEnable pulumi.IntInput `pulumi:"ccEnable"`
	// CC protection level of HTTPS protocol.
	CcLevel pulumi.StringInput `pulumi:"ccLevel"`
	// CC protection status, value [0(off), 1(on)].
	CcStatus pulumi.IntInput `pulumi:"ccStatus"`
	// CC protection threshold of HTTPS protocol.
	CcThreshold pulumi.IntInput `pulumi:"ccThreshold"`
	// The source of the certificate.
	CertType pulumi.IntInput `pulumi:"certType"`
	// Domain of resource.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], default is off.
	HttpsToHttpEnable pulumi.IntInput `pulumi:"httpsToHttpEnable"`
	// Id of the resource.
	Id pulumi.StringInput `pulumi:"id"`
	// Ip of the resource.
	Ip pulumi.StringInput `pulumi:"ip"`
	// Session keep switch, value [0 (session keep closed), 1 (session keep open)].
	KeepEnable pulumi.IntInput `pulumi:"keepEnable"`
	// Session hold time, in seconds.
	KeepTime pulumi.IntInput `pulumi:"keepTime"`
	// Load balancing mode, the value is [1 (weighted round-robin)].
	LbType pulumi.IntInput `pulumi:"lbType"`
	// Modify time of resource.
	ModifyTime pulumi.StringInput `pulumi:"modifyTime"`
	// Protocol of resource, value range [`http`, `https`].
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// The area code.
	Region pulumi.IntInput `pulumi:"region"`
	// Rule description.
	RuleName pulumi.StringInput `pulumi:"ruleName"`
	// Source list of the rule.
	SourceLists GetL7RulesV2ListSourceListArrayInput `pulumi:"sourceLists"`
	// Back-to-origin method, value [1 (domain name back-to-source), 2 (IP back-to-source)].
	SourceType pulumi.IntInput `pulumi:"sourceType"`
	// SSL id of the resource.
	SslId pulumi.StringInput `pulumi:"sslId"`
	// Rule status, value [0 (rule configuration is successful), 1 (rule configuration is in effect), 2 (rule configuration fails), 3 (rule deletion is in effect), 5 (rule deletion fails), 6 (rule is waiting to be configured), 7 (rule pending deletion), 8 (rule pending configuration certificate)].
	Status pulumi.IntInput `pulumi:"status"`
	// Virtual port of resource.
	VirtualPort pulumi.IntInput `pulumi:"virtualPort"`
}

func (GetL7RulesV2ListArgs) ElementType

func (GetL7RulesV2ListArgs) ElementType() reflect.Type

func (GetL7RulesV2ListArgs) ToGetL7RulesV2ListOutput

func (i GetL7RulesV2ListArgs) ToGetL7RulesV2ListOutput() GetL7RulesV2ListOutput

func (GetL7RulesV2ListArgs) ToGetL7RulesV2ListOutputWithContext

func (i GetL7RulesV2ListArgs) ToGetL7RulesV2ListOutputWithContext(ctx context.Context) GetL7RulesV2ListOutput

type GetL7RulesV2ListArray

type GetL7RulesV2ListArray []GetL7RulesV2ListInput

func (GetL7RulesV2ListArray) ElementType

func (GetL7RulesV2ListArray) ElementType() reflect.Type

func (GetL7RulesV2ListArray) ToGetL7RulesV2ListArrayOutput

func (i GetL7RulesV2ListArray) ToGetL7RulesV2ListArrayOutput() GetL7RulesV2ListArrayOutput

func (GetL7RulesV2ListArray) ToGetL7RulesV2ListArrayOutputWithContext

func (i GetL7RulesV2ListArray) ToGetL7RulesV2ListArrayOutputWithContext(ctx context.Context) GetL7RulesV2ListArrayOutput

type GetL7RulesV2ListArrayInput

type GetL7RulesV2ListArrayInput interface {
	pulumi.Input

	ToGetL7RulesV2ListArrayOutput() GetL7RulesV2ListArrayOutput
	ToGetL7RulesV2ListArrayOutputWithContext(context.Context) GetL7RulesV2ListArrayOutput
}

GetL7RulesV2ListArrayInput is an input type that accepts GetL7RulesV2ListArray and GetL7RulesV2ListArrayOutput values. You can construct a concrete instance of `GetL7RulesV2ListArrayInput` via:

GetL7RulesV2ListArray{ GetL7RulesV2ListArgs{...} }

type GetL7RulesV2ListArrayOutput

type GetL7RulesV2ListArrayOutput struct{ *pulumi.OutputState }

func (GetL7RulesV2ListArrayOutput) ElementType

func (GetL7RulesV2ListArrayOutput) Index

func (GetL7RulesV2ListArrayOutput) ToGetL7RulesV2ListArrayOutput

func (o GetL7RulesV2ListArrayOutput) ToGetL7RulesV2ListArrayOutput() GetL7RulesV2ListArrayOutput

func (GetL7RulesV2ListArrayOutput) ToGetL7RulesV2ListArrayOutputWithContext

func (o GetL7RulesV2ListArrayOutput) ToGetL7RulesV2ListArrayOutputWithContext(ctx context.Context) GetL7RulesV2ListArrayOutput

type GetL7RulesV2ListInput

type GetL7RulesV2ListInput interface {
	pulumi.Input

	ToGetL7RulesV2ListOutput() GetL7RulesV2ListOutput
	ToGetL7RulesV2ListOutputWithContext(context.Context) GetL7RulesV2ListOutput
}

GetL7RulesV2ListInput is an input type that accepts GetL7RulesV2ListArgs and GetL7RulesV2ListOutput values. You can construct a concrete instance of `GetL7RulesV2ListInput` via:

GetL7RulesV2ListArgs{...}

type GetL7RulesV2ListOutput

type GetL7RulesV2ListOutput struct{ *pulumi.OutputState }

func (GetL7RulesV2ListOutput) CcEnable

CC protection status of HTTPS protocol, the value is [0 (off), 1 (on)].

func (GetL7RulesV2ListOutput) CcLevel

CC protection level of HTTPS protocol.

func (GetL7RulesV2ListOutput) CcStatus

CC protection status, value [0(off), 1(on)].

func (GetL7RulesV2ListOutput) CcThreshold

func (o GetL7RulesV2ListOutput) CcThreshold() pulumi.IntOutput

CC protection threshold of HTTPS protocol.

func (GetL7RulesV2ListOutput) CertType

The source of the certificate.

func (GetL7RulesV2ListOutput) Domain

Domain of resource.

func (GetL7RulesV2ListOutput) ElementType

func (GetL7RulesV2ListOutput) ElementType() reflect.Type

func (GetL7RulesV2ListOutput) HttpsToHttpEnable

func (o GetL7RulesV2ListOutput) HttpsToHttpEnable() pulumi.IntOutput

Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], default is off.

func (GetL7RulesV2ListOutput) Id

Id of the resource.

func (GetL7RulesV2ListOutput) Ip

Ip of the resource.

func (GetL7RulesV2ListOutput) KeepEnable

func (o GetL7RulesV2ListOutput) KeepEnable() pulumi.IntOutput

Session keep switch, value [0 (session keep closed), 1 (session keep open)].

func (GetL7RulesV2ListOutput) KeepTime

Session hold time, in seconds.

func (GetL7RulesV2ListOutput) LbType

Load balancing mode, the value is [1 (weighted round-robin)].

func (GetL7RulesV2ListOutput) ModifyTime

Modify time of resource.

func (GetL7RulesV2ListOutput) Protocol

Protocol of resource, value range [`http`, `https`].

func (GetL7RulesV2ListOutput) Region

The area code.

func (GetL7RulesV2ListOutput) RuleName

Rule description.

func (GetL7RulesV2ListOutput) SourceLists

Source list of the rule.

func (GetL7RulesV2ListOutput) SourceType

func (o GetL7RulesV2ListOutput) SourceType() pulumi.IntOutput

Back-to-origin method, value [1 (domain name back-to-source), 2 (IP back-to-source)].

func (GetL7RulesV2ListOutput) SslId

SSL id of the resource.

func (GetL7RulesV2ListOutput) Status

Rule status, value [0 (rule configuration is successful), 1 (rule configuration is in effect), 2 (rule configuration fails), 3 (rule deletion is in effect), 5 (rule deletion fails), 6 (rule is waiting to be configured), 7 (rule pending deletion), 8 (rule pending configuration certificate)].

func (GetL7RulesV2ListOutput) ToGetL7RulesV2ListOutput

func (o GetL7RulesV2ListOutput) ToGetL7RulesV2ListOutput() GetL7RulesV2ListOutput

func (GetL7RulesV2ListOutput) ToGetL7RulesV2ListOutputWithContext

func (o GetL7RulesV2ListOutput) ToGetL7RulesV2ListOutputWithContext(ctx context.Context) GetL7RulesV2ListOutput

func (GetL7RulesV2ListOutput) VirtualPort

func (o GetL7RulesV2ListOutput) VirtualPort() pulumi.IntOutput

Virtual port of resource.

type GetL7RulesV2ListSourceList

type GetL7RulesV2ListSourceList struct {
	// Back-to-source IP or domain name.
	Source string `pulumi:"source"`
	// Weight value, take value [0,100].
	Weight int `pulumi:"weight"`
}

type GetL7RulesV2ListSourceListArgs

type GetL7RulesV2ListSourceListArgs struct {
	// Back-to-source IP or domain name.
	Source pulumi.StringInput `pulumi:"source"`
	// Weight value, take value [0,100].
	Weight pulumi.IntInput `pulumi:"weight"`
}

func (GetL7RulesV2ListSourceListArgs) ElementType

func (GetL7RulesV2ListSourceListArgs) ToGetL7RulesV2ListSourceListOutput

func (i GetL7RulesV2ListSourceListArgs) ToGetL7RulesV2ListSourceListOutput() GetL7RulesV2ListSourceListOutput

func (GetL7RulesV2ListSourceListArgs) ToGetL7RulesV2ListSourceListOutputWithContext

func (i GetL7RulesV2ListSourceListArgs) ToGetL7RulesV2ListSourceListOutputWithContext(ctx context.Context) GetL7RulesV2ListSourceListOutput

type GetL7RulesV2ListSourceListArray

type GetL7RulesV2ListSourceListArray []GetL7RulesV2ListSourceListInput

func (GetL7RulesV2ListSourceListArray) ElementType

func (GetL7RulesV2ListSourceListArray) ToGetL7RulesV2ListSourceListArrayOutput

func (i GetL7RulesV2ListSourceListArray) ToGetL7RulesV2ListSourceListArrayOutput() GetL7RulesV2ListSourceListArrayOutput

func (GetL7RulesV2ListSourceListArray) ToGetL7RulesV2ListSourceListArrayOutputWithContext

func (i GetL7RulesV2ListSourceListArray) ToGetL7RulesV2ListSourceListArrayOutputWithContext(ctx context.Context) GetL7RulesV2ListSourceListArrayOutput

type GetL7RulesV2ListSourceListArrayInput

type GetL7RulesV2ListSourceListArrayInput interface {
	pulumi.Input

	ToGetL7RulesV2ListSourceListArrayOutput() GetL7RulesV2ListSourceListArrayOutput
	ToGetL7RulesV2ListSourceListArrayOutputWithContext(context.Context) GetL7RulesV2ListSourceListArrayOutput
}

GetL7RulesV2ListSourceListArrayInput is an input type that accepts GetL7RulesV2ListSourceListArray and GetL7RulesV2ListSourceListArrayOutput values. You can construct a concrete instance of `GetL7RulesV2ListSourceListArrayInput` via:

GetL7RulesV2ListSourceListArray{ GetL7RulesV2ListSourceListArgs{...} }

type GetL7RulesV2ListSourceListArrayOutput

type GetL7RulesV2ListSourceListArrayOutput struct{ *pulumi.OutputState }

func (GetL7RulesV2ListSourceListArrayOutput) ElementType

func (GetL7RulesV2ListSourceListArrayOutput) Index

func (GetL7RulesV2ListSourceListArrayOutput) ToGetL7RulesV2ListSourceListArrayOutput

func (o GetL7RulesV2ListSourceListArrayOutput) ToGetL7RulesV2ListSourceListArrayOutput() GetL7RulesV2ListSourceListArrayOutput

func (GetL7RulesV2ListSourceListArrayOutput) ToGetL7RulesV2ListSourceListArrayOutputWithContext

func (o GetL7RulesV2ListSourceListArrayOutput) ToGetL7RulesV2ListSourceListArrayOutputWithContext(ctx context.Context) GetL7RulesV2ListSourceListArrayOutput

type GetL7RulesV2ListSourceListInput

type GetL7RulesV2ListSourceListInput interface {
	pulumi.Input

	ToGetL7RulesV2ListSourceListOutput() GetL7RulesV2ListSourceListOutput
	ToGetL7RulesV2ListSourceListOutputWithContext(context.Context) GetL7RulesV2ListSourceListOutput
}

GetL7RulesV2ListSourceListInput is an input type that accepts GetL7RulesV2ListSourceListArgs and GetL7RulesV2ListSourceListOutput values. You can construct a concrete instance of `GetL7RulesV2ListSourceListInput` via:

GetL7RulesV2ListSourceListArgs{...}

type GetL7RulesV2ListSourceListOutput

type GetL7RulesV2ListSourceListOutput struct{ *pulumi.OutputState }

func (GetL7RulesV2ListSourceListOutput) ElementType

func (GetL7RulesV2ListSourceListOutput) Source

Back-to-source IP or domain name.

func (GetL7RulesV2ListSourceListOutput) ToGetL7RulesV2ListSourceListOutput

func (o GetL7RulesV2ListSourceListOutput) ToGetL7RulesV2ListSourceListOutput() GetL7RulesV2ListSourceListOutput

func (GetL7RulesV2ListSourceListOutput) ToGetL7RulesV2ListSourceListOutputWithContext

func (o GetL7RulesV2ListSourceListOutput) ToGetL7RulesV2ListSourceListOutputWithContext(ctx context.Context) GetL7RulesV2ListSourceListOutput

func (GetL7RulesV2ListSourceListOutput) Weight

Weight value, take value [0,100].

type GetL7RulesV2OutputArgs

type GetL7RulesV2OutputArgs struct {
	// Type of the resource that the layer 4 rule works for, valid values are `bgpip`, `bgp`, `bgp-multip` and `net`.
	Business pulumi.StringInput `pulumi:"business"`
	// Domain of resource.
	Domain pulumi.StringPtrInput `pulumi:"domain"`
	// Ip of the resource.
	Ip pulumi.StringPtrInput `pulumi:"ip"`
	// It has been deprecated from version 1.81.21. The number of pages, default is `10`.
	//
	// Deprecated: It has been deprecated from version 1.81.21.
	Limit pulumi.IntPtrInput `pulumi:"limit"`
	// It has been deprecated from version 1.81.21. The page start offset, default is `0`.
	//
	// Deprecated: It has been deprecated from version 1.81.21.
	Offset pulumi.IntPtrInput `pulumi:"offset"`
	// Protocol of resource, value range [`http`, `https`].
	Protocol pulumi.StringPtrInput `pulumi:"protocol"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getL7RulesV2.

func (GetL7RulesV2OutputArgs) ElementType

func (GetL7RulesV2OutputArgs) ElementType() reflect.Type

type GetL7RulesV2Result

type GetL7RulesV2Result struct {
	Business string `pulumi:"business"`
	// Domain of resource.
	Domain *string `pulumi:"domain"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Ip of the resource.
	Ip *string `pulumi:"ip"`
	// Deprecated: It has been deprecated from version 1.81.21.
	Limit *int `pulumi:"limit"`
	// A list of layer 4 rules. Each element contains the following attributes:
	Lists []GetL7RulesV2List `pulumi:"lists"`
	// Deprecated: It has been deprecated from version 1.81.21.
	Offset *int `pulumi:"offset"`
	// Protocol of resource, value range [`http`, `https`].
	Protocol         *string `pulumi:"protocol"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of values returned by getL7RulesV2.

func GetL7RulesV2

func GetL7RulesV2(ctx *pulumi.Context, args *GetL7RulesV2Args, opts ...pulumi.InvokeOption) (*GetL7RulesV2Result, error)

Use this data source to query new dayu layer 7 rules

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.GetL7RulesV2(ctx, &dayu.GetL7RulesV2Args{
			Business: "bgpip",
			Domain:   pulumi.StringRef("qq.com"),
			Protocol: pulumi.StringRef("https"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetL7RulesV2ResultOutput

type GetL7RulesV2ResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getL7RulesV2.

func (GetL7RulesV2ResultOutput) Business

func (GetL7RulesV2ResultOutput) Domain

Domain of resource.

func (GetL7RulesV2ResultOutput) ElementType

func (GetL7RulesV2ResultOutput) ElementType() reflect.Type

func (GetL7RulesV2ResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetL7RulesV2ResultOutput) Ip

Ip of the resource.

func (GetL7RulesV2ResultOutput) Limit deprecated

Deprecated: It has been deprecated from version 1.81.21.

func (GetL7RulesV2ResultOutput) Lists

A list of layer 4 rules. Each element contains the following attributes:

func (GetL7RulesV2ResultOutput) Offset deprecated

Deprecated: It has been deprecated from version 1.81.21.

func (GetL7RulesV2ResultOutput) Protocol

Protocol of resource, value range [`http`, `https`].

func (GetL7RulesV2ResultOutput) ResultOutputFile

func (o GetL7RulesV2ResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetL7RulesV2ResultOutput) ToGetL7RulesV2ResultOutput

func (o GetL7RulesV2ResultOutput) ToGetL7RulesV2ResultOutput() GetL7RulesV2ResultOutput

func (GetL7RulesV2ResultOutput) ToGetL7RulesV2ResultOutputWithContext

func (o GetL7RulesV2ResultOutput) ToGetL7RulesV2ResultOutputWithContext(ctx context.Context) GetL7RulesV2ResultOutput

type L4Rule

type L4Rule struct {
	pulumi.CustomResourceState

	// The destination port of the L4 rule.
	DPort pulumi.IntOutput `pulumi:"dPort"`
	// Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
	HealthCheckHealthNum pulumi.IntOutput `pulumi:"healthCheckHealthNum"`
	// Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
	HealthCheckInterval pulumi.IntOutput `pulumi:"healthCheckInterval"`
	// Indicates whether health check is enabled. The default is `false`. Only valid when source list has more than one source item.
	HealthCheckSwitch pulumi.BoolOutput `pulumi:"healthCheckSwitch"`
	// HTTP Status Code. The default is 26 and value range is 2-60.
	HealthCheckTimeout pulumi.IntOutput `pulumi:"healthCheckTimeout"`
	// Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
	HealthCheckUnhealthNum pulumi.IntOutput `pulumi:"healthCheckUnhealthNum"`
	// LB type of the rule. Valid values: `1`, `2`. `1` for weight cycling and `2` for IP hash.
	LbType pulumi.IntOutput `pulumi:"lbType"`
	// Name of the rule. When the `resourceType` is `net`, this field should be set with valid domain.
	Name pulumi.StringOutput `pulumi:"name"`
	// Protocol of the rule. Valid values: `http`, `https`. When `sourceType` is 1(host source), the value of this field can only set with `tcp`.
	Protocol pulumi.StringOutput `pulumi:"protocol"`
	// ID of the resource that the layer 4 rule works for.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// Type of the resource that the layer 4 rule works for. Valid values: `bgpip` and `net`.
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// ID of the layer 4 rule.
	RuleId pulumi.StringOutput `pulumi:"ruleId"`
	// The source port of the L4 rule.
	SPort pulumi.IntOutput `pulumi:"sPort"`
	// Indicate that the session will keep or not, and default value is `false`.
	SessionSwitch pulumi.BoolPtrOutput `pulumi:"sessionSwitch"`
	// Session keep time, only valid when `sessionSwitch` is true, the available value ranges from 1 to 300 and unit is second.
	SessionTime pulumi.IntOutput `pulumi:"sessionTime"`
	// Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
	SourceLists L4RuleSourceListArrayOutput `pulumi:"sourceLists"`
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType pulumi.IntOutput `pulumi:"sourceType"`
}

Use this resource to create dayu layer 4 rule

> **NOTE:** This resource only support resource Anti-DDoS of type `bgpip` and `net`

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewL4Rule(ctx, "testRule", &Dayu.L4RuleArgs{
			DPort:                  pulumi.Int(60),
			HealthCheckHealthNum:   pulumi.Int(5),
			HealthCheckInterval:    pulumi.Int(35),
			HealthCheckSwitch:      pulumi.Bool(true),
			HealthCheckTimeout:     pulumi.Int(30),
			HealthCheckUnhealthNum: pulumi.Int(10),
			Protocol:               pulumi.String("TCP"),
			ResourceId:             pulumi.String("bgpip-00000294"),
			ResourceType:           pulumi.String("bgpip"),
			SPort:                  pulumi.Int(80),
			SessionSwitch:          pulumi.Bool(false),
			SessionTime:            pulumi.Int(300),
			SourceLists: dayu.L4RuleSourceListArray{
				&dayu.L4RuleSourceListArgs{
					Source: pulumi.String("1.1.1.1"),
					Weight: pulumi.Int(100),
				},
				&dayu.L4RuleSourceListArgs{
					Source: pulumi.String("2.2.2.2"),
					Weight: pulumi.Int(50),
				},
			},
			SourceType: pulumi.Int(2),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetL4Rule

func GetL4Rule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *L4RuleState, opts ...pulumi.ResourceOption) (*L4Rule, error)

GetL4Rule gets an existing L4Rule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewL4Rule

func NewL4Rule(ctx *pulumi.Context,
	name string, args *L4RuleArgs, opts ...pulumi.ResourceOption) (*L4Rule, error)

NewL4Rule registers a new resource with the given unique name, arguments, and options.

func (*L4Rule) ElementType

func (*L4Rule) ElementType() reflect.Type

func (*L4Rule) ToL4RuleOutput

func (i *L4Rule) ToL4RuleOutput() L4RuleOutput

func (*L4Rule) ToL4RuleOutputWithContext

func (i *L4Rule) ToL4RuleOutputWithContext(ctx context.Context) L4RuleOutput

type L4RuleArgs

type L4RuleArgs struct {
	// The destination port of the L4 rule.
	DPort pulumi.IntInput
	// Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
	HealthCheckHealthNum pulumi.IntPtrInput
	// Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
	HealthCheckInterval pulumi.IntPtrInput
	// Indicates whether health check is enabled. The default is `false`. Only valid when source list has more than one source item.
	HealthCheckSwitch pulumi.BoolPtrInput
	// HTTP Status Code. The default is 26 and value range is 2-60.
	HealthCheckTimeout pulumi.IntPtrInput
	// Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
	HealthCheckUnhealthNum pulumi.IntPtrInput
	// Name of the rule. When the `resourceType` is `net`, this field should be set with valid domain.
	Name pulumi.StringPtrInput
	// Protocol of the rule. Valid values: `http`, `https`. When `sourceType` is 1(host source), the value of this field can only set with `tcp`.
	Protocol pulumi.StringInput
	// ID of the resource that the layer 4 rule works for.
	ResourceId pulumi.StringInput
	// Type of the resource that the layer 4 rule works for. Valid values: `bgpip` and `net`.
	ResourceType pulumi.StringInput
	// The source port of the L4 rule.
	SPort pulumi.IntInput
	// Indicate that the session will keep or not, and default value is `false`.
	SessionSwitch pulumi.BoolPtrInput
	// Session keep time, only valid when `sessionSwitch` is true, the available value ranges from 1 to 300 and unit is second.
	SessionTime pulumi.IntPtrInput
	// Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
	SourceLists L4RuleSourceListArrayInput
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType pulumi.IntInput
}

The set of arguments for constructing a L4Rule resource.

func (L4RuleArgs) ElementType

func (L4RuleArgs) ElementType() reflect.Type

type L4RuleArray

type L4RuleArray []L4RuleInput

func (L4RuleArray) ElementType

func (L4RuleArray) ElementType() reflect.Type

func (L4RuleArray) ToL4RuleArrayOutput

func (i L4RuleArray) ToL4RuleArrayOutput() L4RuleArrayOutput

func (L4RuleArray) ToL4RuleArrayOutputWithContext

func (i L4RuleArray) ToL4RuleArrayOutputWithContext(ctx context.Context) L4RuleArrayOutput

type L4RuleArrayInput

type L4RuleArrayInput interface {
	pulumi.Input

	ToL4RuleArrayOutput() L4RuleArrayOutput
	ToL4RuleArrayOutputWithContext(context.Context) L4RuleArrayOutput
}

L4RuleArrayInput is an input type that accepts L4RuleArray and L4RuleArrayOutput values. You can construct a concrete instance of `L4RuleArrayInput` via:

L4RuleArray{ L4RuleArgs{...} }

type L4RuleArrayOutput

type L4RuleArrayOutput struct{ *pulumi.OutputState }

func (L4RuleArrayOutput) ElementType

func (L4RuleArrayOutput) ElementType() reflect.Type

func (L4RuleArrayOutput) Index

func (L4RuleArrayOutput) ToL4RuleArrayOutput

func (o L4RuleArrayOutput) ToL4RuleArrayOutput() L4RuleArrayOutput

func (L4RuleArrayOutput) ToL4RuleArrayOutputWithContext

func (o L4RuleArrayOutput) ToL4RuleArrayOutputWithContext(ctx context.Context) L4RuleArrayOutput

type L4RuleInput

type L4RuleInput interface {
	pulumi.Input

	ToL4RuleOutput() L4RuleOutput
	ToL4RuleOutputWithContext(ctx context.Context) L4RuleOutput
}

type L4RuleMap

type L4RuleMap map[string]L4RuleInput

func (L4RuleMap) ElementType

func (L4RuleMap) ElementType() reflect.Type

func (L4RuleMap) ToL4RuleMapOutput

func (i L4RuleMap) ToL4RuleMapOutput() L4RuleMapOutput

func (L4RuleMap) ToL4RuleMapOutputWithContext

func (i L4RuleMap) ToL4RuleMapOutputWithContext(ctx context.Context) L4RuleMapOutput

type L4RuleMapInput

type L4RuleMapInput interface {
	pulumi.Input

	ToL4RuleMapOutput() L4RuleMapOutput
	ToL4RuleMapOutputWithContext(context.Context) L4RuleMapOutput
}

L4RuleMapInput is an input type that accepts L4RuleMap and L4RuleMapOutput values. You can construct a concrete instance of `L4RuleMapInput` via:

L4RuleMap{ "key": L4RuleArgs{...} }

type L4RuleMapOutput

type L4RuleMapOutput struct{ *pulumi.OutputState }

func (L4RuleMapOutput) ElementType

func (L4RuleMapOutput) ElementType() reflect.Type

func (L4RuleMapOutput) MapIndex

func (L4RuleMapOutput) ToL4RuleMapOutput

func (o L4RuleMapOutput) ToL4RuleMapOutput() L4RuleMapOutput

func (L4RuleMapOutput) ToL4RuleMapOutputWithContext

func (o L4RuleMapOutput) ToL4RuleMapOutputWithContext(ctx context.Context) L4RuleMapOutput

type L4RuleOutput

type L4RuleOutput struct{ *pulumi.OutputState }

func (L4RuleOutput) DPort

func (o L4RuleOutput) DPort() pulumi.IntOutput

The destination port of the L4 rule.

func (L4RuleOutput) ElementType

func (L4RuleOutput) ElementType() reflect.Type

func (L4RuleOutput) HealthCheckHealthNum

func (o L4RuleOutput) HealthCheckHealthNum() pulumi.IntOutput

Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.

func (L4RuleOutput) HealthCheckInterval

func (o L4RuleOutput) HealthCheckInterval() pulumi.IntOutput

Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.

func (L4RuleOutput) HealthCheckSwitch

func (o L4RuleOutput) HealthCheckSwitch() pulumi.BoolOutput

Indicates whether health check is enabled. The default is `false`. Only valid when source list has more than one source item.

func (L4RuleOutput) HealthCheckTimeout

func (o L4RuleOutput) HealthCheckTimeout() pulumi.IntOutput

HTTP Status Code. The default is 26 and value range is 2-60.

func (L4RuleOutput) HealthCheckUnhealthNum

func (o L4RuleOutput) HealthCheckUnhealthNum() pulumi.IntOutput

Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.

func (L4RuleOutput) LbType

func (o L4RuleOutput) LbType() pulumi.IntOutput

LB type of the rule. Valid values: `1`, `2`. `1` for weight cycling and `2` for IP hash.

func (L4RuleOutput) Name

func (o L4RuleOutput) Name() pulumi.StringOutput

Name of the rule. When the `resourceType` is `net`, this field should be set with valid domain.

func (L4RuleOutput) Protocol

func (o L4RuleOutput) Protocol() pulumi.StringOutput

Protocol of the rule. Valid values: `http`, `https`. When `sourceType` is 1(host source), the value of this field can only set with `tcp`.

func (L4RuleOutput) ResourceId

func (o L4RuleOutput) ResourceId() pulumi.StringOutput

ID of the resource that the layer 4 rule works for.

func (L4RuleOutput) ResourceType

func (o L4RuleOutput) ResourceType() pulumi.StringOutput

Type of the resource that the layer 4 rule works for. Valid values: `bgpip` and `net`.

func (L4RuleOutput) RuleId

func (o L4RuleOutput) RuleId() pulumi.StringOutput

ID of the layer 4 rule.

func (L4RuleOutput) SPort

func (o L4RuleOutput) SPort() pulumi.IntOutput

The source port of the L4 rule.

func (L4RuleOutput) SessionSwitch

func (o L4RuleOutput) SessionSwitch() pulumi.BoolPtrOutput

Indicate that the session will keep or not, and default value is `false`.

func (L4RuleOutput) SessionTime

func (o L4RuleOutput) SessionTime() pulumi.IntOutput

Session keep time, only valid when `sessionSwitch` is true, the available value ranges from 1 to 300 and unit is second.

func (L4RuleOutput) SourceLists

func (o L4RuleOutput) SourceLists() L4RuleSourceListArrayOutput

Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.

func (L4RuleOutput) SourceType

func (o L4RuleOutput) SourceType() pulumi.IntOutput

Source type, `1` for source of host, `2` for source of IP.

func (L4RuleOutput) ToL4RuleOutput

func (o L4RuleOutput) ToL4RuleOutput() L4RuleOutput

func (L4RuleOutput) ToL4RuleOutputWithContext

func (o L4RuleOutput) ToL4RuleOutputWithContext(ctx context.Context) L4RuleOutput

type L4RuleSourceList

type L4RuleSourceList struct {
	// Source IP or domain, valid format of ip is like `1.1.1.1` and valid format of host source is like `abc.com`.
	Source string `pulumi:"source"`
	// Weight of the source, the valid value ranges from 0 to 100.
	Weight int `pulumi:"weight"`
}

type L4RuleSourceListArgs

type L4RuleSourceListArgs struct {
	// Source IP or domain, valid format of ip is like `1.1.1.1` and valid format of host source is like `abc.com`.
	Source pulumi.StringInput `pulumi:"source"`
	// Weight of the source, the valid value ranges from 0 to 100.
	Weight pulumi.IntInput `pulumi:"weight"`
}

func (L4RuleSourceListArgs) ElementType

func (L4RuleSourceListArgs) ElementType() reflect.Type

func (L4RuleSourceListArgs) ToL4RuleSourceListOutput

func (i L4RuleSourceListArgs) ToL4RuleSourceListOutput() L4RuleSourceListOutput

func (L4RuleSourceListArgs) ToL4RuleSourceListOutputWithContext

func (i L4RuleSourceListArgs) ToL4RuleSourceListOutputWithContext(ctx context.Context) L4RuleSourceListOutput

type L4RuleSourceListArray

type L4RuleSourceListArray []L4RuleSourceListInput

func (L4RuleSourceListArray) ElementType

func (L4RuleSourceListArray) ElementType() reflect.Type

func (L4RuleSourceListArray) ToL4RuleSourceListArrayOutput

func (i L4RuleSourceListArray) ToL4RuleSourceListArrayOutput() L4RuleSourceListArrayOutput

func (L4RuleSourceListArray) ToL4RuleSourceListArrayOutputWithContext

func (i L4RuleSourceListArray) ToL4RuleSourceListArrayOutputWithContext(ctx context.Context) L4RuleSourceListArrayOutput

type L4RuleSourceListArrayInput

type L4RuleSourceListArrayInput interface {
	pulumi.Input

	ToL4RuleSourceListArrayOutput() L4RuleSourceListArrayOutput
	ToL4RuleSourceListArrayOutputWithContext(context.Context) L4RuleSourceListArrayOutput
}

L4RuleSourceListArrayInput is an input type that accepts L4RuleSourceListArray and L4RuleSourceListArrayOutput values. You can construct a concrete instance of `L4RuleSourceListArrayInput` via:

L4RuleSourceListArray{ L4RuleSourceListArgs{...} }

type L4RuleSourceListArrayOutput

type L4RuleSourceListArrayOutput struct{ *pulumi.OutputState }

func (L4RuleSourceListArrayOutput) ElementType

func (L4RuleSourceListArrayOutput) Index

func (L4RuleSourceListArrayOutput) ToL4RuleSourceListArrayOutput

func (o L4RuleSourceListArrayOutput) ToL4RuleSourceListArrayOutput() L4RuleSourceListArrayOutput

func (L4RuleSourceListArrayOutput) ToL4RuleSourceListArrayOutputWithContext

func (o L4RuleSourceListArrayOutput) ToL4RuleSourceListArrayOutputWithContext(ctx context.Context) L4RuleSourceListArrayOutput

type L4RuleSourceListInput

type L4RuleSourceListInput interface {
	pulumi.Input

	ToL4RuleSourceListOutput() L4RuleSourceListOutput
	ToL4RuleSourceListOutputWithContext(context.Context) L4RuleSourceListOutput
}

L4RuleSourceListInput is an input type that accepts L4RuleSourceListArgs and L4RuleSourceListOutput values. You can construct a concrete instance of `L4RuleSourceListInput` via:

L4RuleSourceListArgs{...}

type L4RuleSourceListOutput

type L4RuleSourceListOutput struct{ *pulumi.OutputState }

func (L4RuleSourceListOutput) ElementType

func (L4RuleSourceListOutput) ElementType() reflect.Type

func (L4RuleSourceListOutput) Source

Source IP or domain, valid format of ip is like `1.1.1.1` and valid format of host source is like `abc.com`.

func (L4RuleSourceListOutput) ToL4RuleSourceListOutput

func (o L4RuleSourceListOutput) ToL4RuleSourceListOutput() L4RuleSourceListOutput

func (L4RuleSourceListOutput) ToL4RuleSourceListOutputWithContext

func (o L4RuleSourceListOutput) ToL4RuleSourceListOutputWithContext(ctx context.Context) L4RuleSourceListOutput

func (L4RuleSourceListOutput) Weight

Weight of the source, the valid value ranges from 0 to 100.

type L4RuleState

type L4RuleState struct {
	// The destination port of the L4 rule.
	DPort pulumi.IntPtrInput
	// Health threshold of health check, and the default is 3. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is 2-10.
	HealthCheckHealthNum pulumi.IntPtrInput
	// Interval time of health check. The value range is 10-60 sec, and the default is 15 sec.
	HealthCheckInterval pulumi.IntPtrInput
	// Indicates whether health check is enabled. The default is `false`. Only valid when source list has more than one source item.
	HealthCheckSwitch pulumi.BoolPtrInput
	// HTTP Status Code. The default is 26 and value range is 2-60.
	HealthCheckTimeout pulumi.IntPtrInput
	// Unhealthy threshold of health check, and the default is 3. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is 2-10.
	HealthCheckUnhealthNum pulumi.IntPtrInput
	// LB type of the rule. Valid values: `1`, `2`. `1` for weight cycling and `2` for IP hash.
	LbType pulumi.IntPtrInput
	// Name of the rule. When the `resourceType` is `net`, this field should be set with valid domain.
	Name pulumi.StringPtrInput
	// Protocol of the rule. Valid values: `http`, `https`. When `sourceType` is 1(host source), the value of this field can only set with `tcp`.
	Protocol pulumi.StringPtrInput
	// ID of the resource that the layer 4 rule works for.
	ResourceId pulumi.StringPtrInput
	// Type of the resource that the layer 4 rule works for. Valid values: `bgpip` and `net`.
	ResourceType pulumi.StringPtrInput
	// ID of the layer 4 rule.
	RuleId pulumi.StringPtrInput
	// The source port of the L4 rule.
	SPort pulumi.IntPtrInput
	// Indicate that the session will keep or not, and default value is `false`.
	SessionSwitch pulumi.BoolPtrInput
	// Session keep time, only valid when `sessionSwitch` is true, the available value ranges from 1 to 300 and unit is second.
	SessionTime pulumi.IntPtrInput
	// Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 20.
	SourceLists L4RuleSourceListArrayInput
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType pulumi.IntPtrInput
}

func (L4RuleState) ElementType

func (L4RuleState) ElementType() reflect.Type

type L4RuleV2

type L4RuleV2 struct {
	pulumi.CustomResourceState

	// Business of the resource that the layer 4 rule works for. Valid values: `bgpip` and `net`.
	Business pulumi.StringOutput `pulumi:"business"`
	// Resource id.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// A list of layer 4 rules. Each element contains the following attributes:
	Rules L4RuleV2RulesOutput `pulumi:"rules"`
	// The virtual port of the layer 4 rule.
	VirtualPort pulumi.IntOutput `pulumi:"virtualPort"`
	// Resource vpn.
	Vpn pulumi.StringOutput `pulumi:"vpn"`
}

func GetL4RuleV2

func GetL4RuleV2(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *L4RuleV2State, opts ...pulumi.ResourceOption) (*L4RuleV2, error)

GetL4RuleV2 gets an existing L4RuleV2 resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewL4RuleV2

func NewL4RuleV2(ctx *pulumi.Context,
	name string, args *L4RuleV2Args, opts ...pulumi.ResourceOption) (*L4RuleV2, error)

NewL4RuleV2 registers a new resource with the given unique name, arguments, and options.

func (*L4RuleV2) ElementType

func (*L4RuleV2) ElementType() reflect.Type

func (*L4RuleV2) ToL4RuleV2Output

func (i *L4RuleV2) ToL4RuleV2Output() L4RuleV2Output

func (*L4RuleV2) ToL4RuleV2OutputWithContext

func (i *L4RuleV2) ToL4RuleV2OutputWithContext(ctx context.Context) L4RuleV2Output

type L4RuleV2Args

type L4RuleV2Args struct {
	// Business of the resource that the layer 4 rule works for. Valid values: `bgpip` and `net`.
	Business pulumi.StringInput
	// Resource id.
	ResourceId pulumi.StringInput
	// A list of layer 4 rules. Each element contains the following attributes:
	Rules L4RuleV2RulesInput
	// The virtual port of the layer 4 rule.
	VirtualPort pulumi.IntInput
	// Resource vpn.
	Vpn pulumi.StringInput
}

The set of arguments for constructing a L4RuleV2 resource.

func (L4RuleV2Args) ElementType

func (L4RuleV2Args) ElementType() reflect.Type

type L4RuleV2Array

type L4RuleV2Array []L4RuleV2Input

func (L4RuleV2Array) ElementType

func (L4RuleV2Array) ElementType() reflect.Type

func (L4RuleV2Array) ToL4RuleV2ArrayOutput

func (i L4RuleV2Array) ToL4RuleV2ArrayOutput() L4RuleV2ArrayOutput

func (L4RuleV2Array) ToL4RuleV2ArrayOutputWithContext

func (i L4RuleV2Array) ToL4RuleV2ArrayOutputWithContext(ctx context.Context) L4RuleV2ArrayOutput

type L4RuleV2ArrayInput

type L4RuleV2ArrayInput interface {
	pulumi.Input

	ToL4RuleV2ArrayOutput() L4RuleV2ArrayOutput
	ToL4RuleV2ArrayOutputWithContext(context.Context) L4RuleV2ArrayOutput
}

L4RuleV2ArrayInput is an input type that accepts L4RuleV2Array and L4RuleV2ArrayOutput values. You can construct a concrete instance of `L4RuleV2ArrayInput` via:

L4RuleV2Array{ L4RuleV2Args{...} }

type L4RuleV2ArrayOutput

type L4RuleV2ArrayOutput struct{ *pulumi.OutputState }

func (L4RuleV2ArrayOutput) ElementType

func (L4RuleV2ArrayOutput) ElementType() reflect.Type

func (L4RuleV2ArrayOutput) Index

func (L4RuleV2ArrayOutput) ToL4RuleV2ArrayOutput

func (o L4RuleV2ArrayOutput) ToL4RuleV2ArrayOutput() L4RuleV2ArrayOutput

func (L4RuleV2ArrayOutput) ToL4RuleV2ArrayOutputWithContext

func (o L4RuleV2ArrayOutput) ToL4RuleV2ArrayOutputWithContext(ctx context.Context) L4RuleV2ArrayOutput

type L4RuleV2Input

type L4RuleV2Input interface {
	pulumi.Input

	ToL4RuleV2Output() L4RuleV2Output
	ToL4RuleV2OutputWithContext(ctx context.Context) L4RuleV2Output
}

type L4RuleV2Map

type L4RuleV2Map map[string]L4RuleV2Input

func (L4RuleV2Map) ElementType

func (L4RuleV2Map) ElementType() reflect.Type

func (L4RuleV2Map) ToL4RuleV2MapOutput

func (i L4RuleV2Map) ToL4RuleV2MapOutput() L4RuleV2MapOutput

func (L4RuleV2Map) ToL4RuleV2MapOutputWithContext

func (i L4RuleV2Map) ToL4RuleV2MapOutputWithContext(ctx context.Context) L4RuleV2MapOutput

type L4RuleV2MapInput

type L4RuleV2MapInput interface {
	pulumi.Input

	ToL4RuleV2MapOutput() L4RuleV2MapOutput
	ToL4RuleV2MapOutputWithContext(context.Context) L4RuleV2MapOutput
}

L4RuleV2MapInput is an input type that accepts L4RuleV2Map and L4RuleV2MapOutput values. You can construct a concrete instance of `L4RuleV2MapInput` via:

L4RuleV2Map{ "key": L4RuleV2Args{...} }

type L4RuleV2MapOutput

type L4RuleV2MapOutput struct{ *pulumi.OutputState }

func (L4RuleV2MapOutput) ElementType

func (L4RuleV2MapOutput) ElementType() reflect.Type

func (L4RuleV2MapOutput) MapIndex

func (L4RuleV2MapOutput) ToL4RuleV2MapOutput

func (o L4RuleV2MapOutput) ToL4RuleV2MapOutput() L4RuleV2MapOutput

func (L4RuleV2MapOutput) ToL4RuleV2MapOutputWithContext

func (o L4RuleV2MapOutput) ToL4RuleV2MapOutputWithContext(ctx context.Context) L4RuleV2MapOutput

type L4RuleV2Output

type L4RuleV2Output struct{ *pulumi.OutputState }

func (L4RuleV2Output) Business

func (o L4RuleV2Output) Business() pulumi.StringOutput

Business of the resource that the layer 4 rule works for. Valid values: `bgpip` and `net`.

func (L4RuleV2Output) ElementType

func (L4RuleV2Output) ElementType() reflect.Type

func (L4RuleV2Output) ResourceId

func (o L4RuleV2Output) ResourceId() pulumi.StringOutput

Resource id.

func (L4RuleV2Output) Rules

A list of layer 4 rules. Each element contains the following attributes:

func (L4RuleV2Output) ToL4RuleV2Output

func (o L4RuleV2Output) ToL4RuleV2Output() L4RuleV2Output

func (L4RuleV2Output) ToL4RuleV2OutputWithContext

func (o L4RuleV2Output) ToL4RuleV2OutputWithContext(ctx context.Context) L4RuleV2Output

func (L4RuleV2Output) VirtualPort

func (o L4RuleV2Output) VirtualPort() pulumi.IntOutput

The virtual port of the layer 4 rule.

func (L4RuleV2Output) Vpn

Resource vpn.

type L4RuleV2Rules

type L4RuleV2Rules struct {
	KeepEnable   bool                      `pulumi:"keepEnable"`
	Keeptime     int                       `pulumi:"keeptime"`
	LbType       int                       `pulumi:"lbType"`
	Protocol     string                    `pulumi:"protocol"`
	Region       int                       `pulumi:"region"`
	RemoveSwitch bool                      `pulumi:"removeSwitch"`
	RuleName     string                    `pulumi:"ruleName"`
	SourceLists  []L4RuleV2RulesSourceList `pulumi:"sourceLists"`
	SourcePort   int                       `pulumi:"sourcePort"`
	SourceType   int                       `pulumi:"sourceType"`
	VirtualPort  int                       `pulumi:"virtualPort"`
}

type L4RuleV2RulesArgs

type L4RuleV2RulesArgs struct {
	KeepEnable   pulumi.BoolInput                  `pulumi:"keepEnable"`
	Keeptime     pulumi.IntInput                   `pulumi:"keeptime"`
	LbType       pulumi.IntInput                   `pulumi:"lbType"`
	Protocol     pulumi.StringInput                `pulumi:"protocol"`
	Region       pulumi.IntInput                   `pulumi:"region"`
	RemoveSwitch pulumi.BoolInput                  `pulumi:"removeSwitch"`
	RuleName     pulumi.StringInput                `pulumi:"ruleName"`
	SourceLists  L4RuleV2RulesSourceListArrayInput `pulumi:"sourceLists"`
	SourcePort   pulumi.IntInput                   `pulumi:"sourcePort"`
	SourceType   pulumi.IntInput                   `pulumi:"sourceType"`
	VirtualPort  pulumi.IntInput                   `pulumi:"virtualPort"`
}

func (L4RuleV2RulesArgs) ElementType

func (L4RuleV2RulesArgs) ElementType() reflect.Type

func (L4RuleV2RulesArgs) ToL4RuleV2RulesOutput

func (i L4RuleV2RulesArgs) ToL4RuleV2RulesOutput() L4RuleV2RulesOutput

func (L4RuleV2RulesArgs) ToL4RuleV2RulesOutputWithContext

func (i L4RuleV2RulesArgs) ToL4RuleV2RulesOutputWithContext(ctx context.Context) L4RuleV2RulesOutput

func (L4RuleV2RulesArgs) ToL4RuleV2RulesPtrOutput

func (i L4RuleV2RulesArgs) ToL4RuleV2RulesPtrOutput() L4RuleV2RulesPtrOutput

func (L4RuleV2RulesArgs) ToL4RuleV2RulesPtrOutputWithContext

func (i L4RuleV2RulesArgs) ToL4RuleV2RulesPtrOutputWithContext(ctx context.Context) L4RuleV2RulesPtrOutput

type L4RuleV2RulesInput

type L4RuleV2RulesInput interface {
	pulumi.Input

	ToL4RuleV2RulesOutput() L4RuleV2RulesOutput
	ToL4RuleV2RulesOutputWithContext(context.Context) L4RuleV2RulesOutput
}

L4RuleV2RulesInput is an input type that accepts L4RuleV2RulesArgs and L4RuleV2RulesOutput values. You can construct a concrete instance of `L4RuleV2RulesInput` via:

L4RuleV2RulesArgs{...}

type L4RuleV2RulesOutput

type L4RuleV2RulesOutput struct{ *pulumi.OutputState }

func (L4RuleV2RulesOutput) ElementType

func (L4RuleV2RulesOutput) ElementType() reflect.Type

func (L4RuleV2RulesOutput) KeepEnable

func (o L4RuleV2RulesOutput) KeepEnable() pulumi.BoolOutput

func (L4RuleV2RulesOutput) Keeptime

func (o L4RuleV2RulesOutput) Keeptime() pulumi.IntOutput

func (L4RuleV2RulesOutput) LbType

func (L4RuleV2RulesOutput) Protocol

func (L4RuleV2RulesOutput) Region

func (L4RuleV2RulesOutput) RemoveSwitch

func (o L4RuleV2RulesOutput) RemoveSwitch() pulumi.BoolOutput

func (L4RuleV2RulesOutput) RuleName

func (L4RuleV2RulesOutput) SourceLists

func (L4RuleV2RulesOutput) SourcePort

func (o L4RuleV2RulesOutput) SourcePort() pulumi.IntOutput

func (L4RuleV2RulesOutput) SourceType

func (o L4RuleV2RulesOutput) SourceType() pulumi.IntOutput

func (L4RuleV2RulesOutput) ToL4RuleV2RulesOutput

func (o L4RuleV2RulesOutput) ToL4RuleV2RulesOutput() L4RuleV2RulesOutput

func (L4RuleV2RulesOutput) ToL4RuleV2RulesOutputWithContext

func (o L4RuleV2RulesOutput) ToL4RuleV2RulesOutputWithContext(ctx context.Context) L4RuleV2RulesOutput

func (L4RuleV2RulesOutput) ToL4RuleV2RulesPtrOutput

func (o L4RuleV2RulesOutput) ToL4RuleV2RulesPtrOutput() L4RuleV2RulesPtrOutput

func (L4RuleV2RulesOutput) ToL4RuleV2RulesPtrOutputWithContext

func (o L4RuleV2RulesOutput) ToL4RuleV2RulesPtrOutputWithContext(ctx context.Context) L4RuleV2RulesPtrOutput

func (L4RuleV2RulesOutput) VirtualPort

func (o L4RuleV2RulesOutput) VirtualPort() pulumi.IntOutput

type L4RuleV2RulesPtrInput

type L4RuleV2RulesPtrInput interface {
	pulumi.Input

	ToL4RuleV2RulesPtrOutput() L4RuleV2RulesPtrOutput
	ToL4RuleV2RulesPtrOutputWithContext(context.Context) L4RuleV2RulesPtrOutput
}

L4RuleV2RulesPtrInput is an input type that accepts L4RuleV2RulesArgs, L4RuleV2RulesPtr and L4RuleV2RulesPtrOutput values. You can construct a concrete instance of `L4RuleV2RulesPtrInput` via:

        L4RuleV2RulesArgs{...}

or:

        nil

type L4RuleV2RulesPtrOutput

type L4RuleV2RulesPtrOutput struct{ *pulumi.OutputState }

func (L4RuleV2RulesPtrOutput) Elem

func (L4RuleV2RulesPtrOutput) ElementType

func (L4RuleV2RulesPtrOutput) ElementType() reflect.Type

func (L4RuleV2RulesPtrOutput) KeepEnable

func (L4RuleV2RulesPtrOutput) Keeptime

func (L4RuleV2RulesPtrOutput) LbType

func (L4RuleV2RulesPtrOutput) Protocol

func (L4RuleV2RulesPtrOutput) Region

func (L4RuleV2RulesPtrOutput) RemoveSwitch

func (o L4RuleV2RulesPtrOutput) RemoveSwitch() pulumi.BoolPtrOutput

func (L4RuleV2RulesPtrOutput) RuleName

func (L4RuleV2RulesPtrOutput) SourceLists

func (L4RuleV2RulesPtrOutput) SourcePort

func (L4RuleV2RulesPtrOutput) SourceType

func (L4RuleV2RulesPtrOutput) ToL4RuleV2RulesPtrOutput

func (o L4RuleV2RulesPtrOutput) ToL4RuleV2RulesPtrOutput() L4RuleV2RulesPtrOutput

func (L4RuleV2RulesPtrOutput) ToL4RuleV2RulesPtrOutputWithContext

func (o L4RuleV2RulesPtrOutput) ToL4RuleV2RulesPtrOutputWithContext(ctx context.Context) L4RuleV2RulesPtrOutput

func (L4RuleV2RulesPtrOutput) VirtualPort

func (o L4RuleV2RulesPtrOutput) VirtualPort() pulumi.IntPtrOutput

type L4RuleV2RulesSourceList

type L4RuleV2RulesSourceList struct {
	Source string `pulumi:"source"`
	Weight int    `pulumi:"weight"`
}

type L4RuleV2RulesSourceListArgs

type L4RuleV2RulesSourceListArgs struct {
	Source pulumi.StringInput `pulumi:"source"`
	Weight pulumi.IntInput    `pulumi:"weight"`
}

func (L4RuleV2RulesSourceListArgs) ElementType

func (L4RuleV2RulesSourceListArgs) ToL4RuleV2RulesSourceListOutput

func (i L4RuleV2RulesSourceListArgs) ToL4RuleV2RulesSourceListOutput() L4RuleV2RulesSourceListOutput

func (L4RuleV2RulesSourceListArgs) ToL4RuleV2RulesSourceListOutputWithContext

func (i L4RuleV2RulesSourceListArgs) ToL4RuleV2RulesSourceListOutputWithContext(ctx context.Context) L4RuleV2RulesSourceListOutput

type L4RuleV2RulesSourceListArray

type L4RuleV2RulesSourceListArray []L4RuleV2RulesSourceListInput

func (L4RuleV2RulesSourceListArray) ElementType

func (L4RuleV2RulesSourceListArray) ToL4RuleV2RulesSourceListArrayOutput

func (i L4RuleV2RulesSourceListArray) ToL4RuleV2RulesSourceListArrayOutput() L4RuleV2RulesSourceListArrayOutput

func (L4RuleV2RulesSourceListArray) ToL4RuleV2RulesSourceListArrayOutputWithContext

func (i L4RuleV2RulesSourceListArray) ToL4RuleV2RulesSourceListArrayOutputWithContext(ctx context.Context) L4RuleV2RulesSourceListArrayOutput

type L4RuleV2RulesSourceListArrayInput

type L4RuleV2RulesSourceListArrayInput interface {
	pulumi.Input

	ToL4RuleV2RulesSourceListArrayOutput() L4RuleV2RulesSourceListArrayOutput
	ToL4RuleV2RulesSourceListArrayOutputWithContext(context.Context) L4RuleV2RulesSourceListArrayOutput
}

L4RuleV2RulesSourceListArrayInput is an input type that accepts L4RuleV2RulesSourceListArray and L4RuleV2RulesSourceListArrayOutput values. You can construct a concrete instance of `L4RuleV2RulesSourceListArrayInput` via:

L4RuleV2RulesSourceListArray{ L4RuleV2RulesSourceListArgs{...} }

type L4RuleV2RulesSourceListArrayOutput

type L4RuleV2RulesSourceListArrayOutput struct{ *pulumi.OutputState }

func (L4RuleV2RulesSourceListArrayOutput) ElementType

func (L4RuleV2RulesSourceListArrayOutput) Index

func (L4RuleV2RulesSourceListArrayOutput) ToL4RuleV2RulesSourceListArrayOutput

func (o L4RuleV2RulesSourceListArrayOutput) ToL4RuleV2RulesSourceListArrayOutput() L4RuleV2RulesSourceListArrayOutput

func (L4RuleV2RulesSourceListArrayOutput) ToL4RuleV2RulesSourceListArrayOutputWithContext

func (o L4RuleV2RulesSourceListArrayOutput) ToL4RuleV2RulesSourceListArrayOutputWithContext(ctx context.Context) L4RuleV2RulesSourceListArrayOutput

type L4RuleV2RulesSourceListInput

type L4RuleV2RulesSourceListInput interface {
	pulumi.Input

	ToL4RuleV2RulesSourceListOutput() L4RuleV2RulesSourceListOutput
	ToL4RuleV2RulesSourceListOutputWithContext(context.Context) L4RuleV2RulesSourceListOutput
}

L4RuleV2RulesSourceListInput is an input type that accepts L4RuleV2RulesSourceListArgs and L4RuleV2RulesSourceListOutput values. You can construct a concrete instance of `L4RuleV2RulesSourceListInput` via:

L4RuleV2RulesSourceListArgs{...}

type L4RuleV2RulesSourceListOutput

type L4RuleV2RulesSourceListOutput struct{ *pulumi.OutputState }

func (L4RuleV2RulesSourceListOutput) ElementType

func (L4RuleV2RulesSourceListOutput) Source

func (L4RuleV2RulesSourceListOutput) ToL4RuleV2RulesSourceListOutput

func (o L4RuleV2RulesSourceListOutput) ToL4RuleV2RulesSourceListOutput() L4RuleV2RulesSourceListOutput

func (L4RuleV2RulesSourceListOutput) ToL4RuleV2RulesSourceListOutputWithContext

func (o L4RuleV2RulesSourceListOutput) ToL4RuleV2RulesSourceListOutputWithContext(ctx context.Context) L4RuleV2RulesSourceListOutput

func (L4RuleV2RulesSourceListOutput) Weight

type L4RuleV2State

type L4RuleV2State struct {
	// Business of the resource that the layer 4 rule works for. Valid values: `bgpip` and `net`.
	Business pulumi.StringPtrInput
	// Resource id.
	ResourceId pulumi.StringPtrInput
	// A list of layer 4 rules. Each element contains the following attributes:
	Rules L4RuleV2RulesPtrInput
	// The virtual port of the layer 4 rule.
	VirtualPort pulumi.IntPtrInput
	// Resource vpn.
	Vpn pulumi.StringPtrInput
}

func (L4RuleV2State) ElementType

func (L4RuleV2State) ElementType() reflect.Type

type L7Rule

type L7Rule struct {
	pulumi.CustomResourceState

	// Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
	Domain pulumi.StringOutput `pulumi:"domain"`
	// HTTP Status Code. The default is `26`. Valid value ranges: [1~31]. `1` means the return value '1xx' is health. `2` means the return value '2xx' is health. `4` means the return value '3xx' is health. `8` means the return value '4xx' is health. `16` means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
	HealthCheckCode pulumi.IntOutput `pulumi:"healthCheckCode"`
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10].
	HealthCheckHealthNum pulumi.IntOutput `pulumi:"healthCheckHealthNum"`
	// Interval time of health check. Valid value ranges: [10~60]sec. The default is 15 sec.
	HealthCheckInterval pulumi.IntOutput `pulumi:"healthCheckInterval"`
	// Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
	HealthCheckMethod pulumi.StringOutput `pulumi:"healthCheckMethod"`
	// Path of health check. The default is `/`.
	HealthCheckPath pulumi.StringOutput `pulumi:"healthCheckPath"`
	// Indicates whether health check is enabled. The default is `false`.
	HealthCheckSwitch pulumi.BoolOutput `pulumi:"healthCheckSwitch"`
	// Unhealthy threshold of health check, and the default is `3`. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10].
	HealthCheckUnhealthNum pulumi.IntOutput `pulumi:"healthCheckUnhealthNum"`
	// Name of the rule.
	Name pulumi.StringOutput `pulumi:"name"`
	// Protocol of the rule. Valid values: `http`, `https`.
	Protocol pulumi.StringOutput `pulumi:"protocol"`
	// ID of the resource that the layer 7 rule works for.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// Type of the resource that the layer 7 rule works for, valid value is `bgpip`.
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// ID of the layer 7 rule.
	RuleId pulumi.StringOutput `pulumi:"ruleId"`
	// Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 16.
	SourceLists pulumi.StringArrayOutput `pulumi:"sourceLists"`
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType pulumi.IntOutput `pulumi:"sourceType"`
	// SSL ID, when the `protocol` is `https`, the field should be set with valid SSL id.
	SslId pulumi.StringPtrOutput `pulumi:"sslId"`
	// Status of the rule. `0` for create/modify success, `2` for create/modify fail, `3` for delete success, `5` for delete failed, `6` for waiting to be created/modified, `7` for waiting to be deleted and 8 for waiting to get SSL ID.
	Status pulumi.IntOutput `pulumi:"status"`
	// Indicate the rule will take effect or not.
	Switch pulumi.BoolOutput `pulumi:"switch"`
}

Use this resource to create dayu layer 7 rule

> **NOTE:** This resource only support resource Anti-DDoS of type `bgpip`

## Example Usage

```go package main

import (

"fmt"

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewL7Rule(ctx, "testRule", &Dayu.L7RuleArgs{
			Domain:                 pulumi.String("zhaoshaona.com"),
			HealthCheckCode:        pulumi.Int(31),
			HealthCheckHealthNum:   pulumi.Int(5),
			HealthCheckInterval:    pulumi.Int(30),
			HealthCheckMethod:      pulumi.String("GET"),
			HealthCheckPath:        pulumi.String("/"),
			HealthCheckSwitch:      pulumi.Bool(true),
			HealthCheckUnhealthNum: pulumi.Int(10),
			Protocol:               pulumi.String("https"),
			ResourceId:             pulumi.String("bgpip-00000294"),
			ResourceType:           pulumi.String("bgpip"),
			SourceLists: pulumi.StringArray{
				pulumi.String("1.1.1.1:80"),
				pulumi.String("2.2.2.2"),
			},
			SourceType: pulumi.Int(2),
			SslId:      pulumi.String(fmt.Sprintf("%v%v", "%", "s")),
			Switch:     pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetL7Rule

func GetL7Rule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *L7RuleState, opts ...pulumi.ResourceOption) (*L7Rule, error)

GetL7Rule gets an existing L7Rule resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewL7Rule

func NewL7Rule(ctx *pulumi.Context,
	name string, args *L7RuleArgs, opts ...pulumi.ResourceOption) (*L7Rule, error)

NewL7Rule registers a new resource with the given unique name, arguments, and options.

func (*L7Rule) ElementType

func (*L7Rule) ElementType() reflect.Type

func (*L7Rule) ToL7RuleOutput

func (i *L7Rule) ToL7RuleOutput() L7RuleOutput

func (*L7Rule) ToL7RuleOutputWithContext

func (i *L7Rule) ToL7RuleOutputWithContext(ctx context.Context) L7RuleOutput

type L7RuleArgs

type L7RuleArgs struct {
	// Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
	Domain pulumi.StringInput
	// HTTP Status Code. The default is `26`. Valid value ranges: [1~31]. `1` means the return value '1xx' is health. `2` means the return value '2xx' is health. `4` means the return value '3xx' is health. `8` means the return value '4xx' is health. `16` means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
	HealthCheckCode pulumi.IntPtrInput
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10].
	HealthCheckHealthNum pulumi.IntPtrInput
	// Interval time of health check. Valid value ranges: [10~60]sec. The default is 15 sec.
	HealthCheckInterval pulumi.IntPtrInput
	// Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
	HealthCheckMethod pulumi.StringPtrInput
	// Path of health check. The default is `/`.
	HealthCheckPath pulumi.StringPtrInput
	// Indicates whether health check is enabled. The default is `false`.
	HealthCheckSwitch pulumi.BoolPtrInput
	// Unhealthy threshold of health check, and the default is `3`. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10].
	HealthCheckUnhealthNum pulumi.IntPtrInput
	// Name of the rule.
	Name pulumi.StringPtrInput
	// Protocol of the rule. Valid values: `http`, `https`.
	Protocol pulumi.StringInput
	// ID of the resource that the layer 7 rule works for.
	ResourceId pulumi.StringInput
	// Type of the resource that the layer 7 rule works for, valid value is `bgpip`.
	ResourceType pulumi.StringInput
	// Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 16.
	SourceLists pulumi.StringArrayInput
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType pulumi.IntInput
	// SSL ID, when the `protocol` is `https`, the field should be set with valid SSL id.
	SslId pulumi.StringPtrInput
	// Indicate the rule will take effect or not.
	Switch pulumi.BoolInput
}

The set of arguments for constructing a L7Rule resource.

func (L7RuleArgs) ElementType

func (L7RuleArgs) ElementType() reflect.Type

type L7RuleArray

type L7RuleArray []L7RuleInput

func (L7RuleArray) ElementType

func (L7RuleArray) ElementType() reflect.Type

func (L7RuleArray) ToL7RuleArrayOutput

func (i L7RuleArray) ToL7RuleArrayOutput() L7RuleArrayOutput

func (L7RuleArray) ToL7RuleArrayOutputWithContext

func (i L7RuleArray) ToL7RuleArrayOutputWithContext(ctx context.Context) L7RuleArrayOutput

type L7RuleArrayInput

type L7RuleArrayInput interface {
	pulumi.Input

	ToL7RuleArrayOutput() L7RuleArrayOutput
	ToL7RuleArrayOutputWithContext(context.Context) L7RuleArrayOutput
}

L7RuleArrayInput is an input type that accepts L7RuleArray and L7RuleArrayOutput values. You can construct a concrete instance of `L7RuleArrayInput` via:

L7RuleArray{ L7RuleArgs{...} }

type L7RuleArrayOutput

type L7RuleArrayOutput struct{ *pulumi.OutputState }

func (L7RuleArrayOutput) ElementType

func (L7RuleArrayOutput) ElementType() reflect.Type

func (L7RuleArrayOutput) Index

func (L7RuleArrayOutput) ToL7RuleArrayOutput

func (o L7RuleArrayOutput) ToL7RuleArrayOutput() L7RuleArrayOutput

func (L7RuleArrayOutput) ToL7RuleArrayOutputWithContext

func (o L7RuleArrayOutput) ToL7RuleArrayOutputWithContext(ctx context.Context) L7RuleArrayOutput

type L7RuleInput

type L7RuleInput interface {
	pulumi.Input

	ToL7RuleOutput() L7RuleOutput
	ToL7RuleOutputWithContext(ctx context.Context) L7RuleOutput
}

type L7RuleMap

type L7RuleMap map[string]L7RuleInput

func (L7RuleMap) ElementType

func (L7RuleMap) ElementType() reflect.Type

func (L7RuleMap) ToL7RuleMapOutput

func (i L7RuleMap) ToL7RuleMapOutput() L7RuleMapOutput

func (L7RuleMap) ToL7RuleMapOutputWithContext

func (i L7RuleMap) ToL7RuleMapOutputWithContext(ctx context.Context) L7RuleMapOutput

type L7RuleMapInput

type L7RuleMapInput interface {
	pulumi.Input

	ToL7RuleMapOutput() L7RuleMapOutput
	ToL7RuleMapOutputWithContext(context.Context) L7RuleMapOutput
}

L7RuleMapInput is an input type that accepts L7RuleMap and L7RuleMapOutput values. You can construct a concrete instance of `L7RuleMapInput` via:

L7RuleMap{ "key": L7RuleArgs{...} }

type L7RuleMapOutput

type L7RuleMapOutput struct{ *pulumi.OutputState }

func (L7RuleMapOutput) ElementType

func (L7RuleMapOutput) ElementType() reflect.Type

func (L7RuleMapOutput) MapIndex

func (L7RuleMapOutput) ToL7RuleMapOutput

func (o L7RuleMapOutput) ToL7RuleMapOutput() L7RuleMapOutput

func (L7RuleMapOutput) ToL7RuleMapOutputWithContext

func (o L7RuleMapOutput) ToL7RuleMapOutputWithContext(ctx context.Context) L7RuleMapOutput

type L7RuleOutput

type L7RuleOutput struct{ *pulumi.OutputState }

func (L7RuleOutput) Domain

func (o L7RuleOutput) Domain() pulumi.StringOutput

Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.

func (L7RuleOutput) ElementType

func (L7RuleOutput) ElementType() reflect.Type

func (L7RuleOutput) HealthCheckCode

func (o L7RuleOutput) HealthCheckCode() pulumi.IntOutput

HTTP Status Code. The default is `26`. Valid value ranges: [1~31]. `1` means the return value '1xx' is health. `2` means the return value '2xx' is health. `4` means the return value '3xx' is health. `8` means the return value '4xx' is health. `16` means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.

func (L7RuleOutput) HealthCheckHealthNum

func (o L7RuleOutput) HealthCheckHealthNum() pulumi.IntOutput

Health threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10].

func (L7RuleOutput) HealthCheckInterval

func (o L7RuleOutput) HealthCheckInterval() pulumi.IntOutput

Interval time of health check. Valid value ranges: [10~60]sec. The default is 15 sec.

func (L7RuleOutput) HealthCheckMethod

func (o L7RuleOutput) HealthCheckMethod() pulumi.StringOutput

Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.

func (L7RuleOutput) HealthCheckPath

func (o L7RuleOutput) HealthCheckPath() pulumi.StringOutput

Path of health check. The default is `/`.

func (L7RuleOutput) HealthCheckSwitch

func (o L7RuleOutput) HealthCheckSwitch() pulumi.BoolOutput

Indicates whether health check is enabled. The default is `false`.

func (L7RuleOutput) HealthCheckUnhealthNum

func (o L7RuleOutput) HealthCheckUnhealthNum() pulumi.IntOutput

Unhealthy threshold of health check, and the default is `3`. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10].

func (L7RuleOutput) Name

func (o L7RuleOutput) Name() pulumi.StringOutput

Name of the rule.

func (L7RuleOutput) Protocol

func (o L7RuleOutput) Protocol() pulumi.StringOutput

Protocol of the rule. Valid values: `http`, `https`.

func (L7RuleOutput) ResourceId

func (o L7RuleOutput) ResourceId() pulumi.StringOutput

ID of the resource that the layer 7 rule works for.

func (L7RuleOutput) ResourceType

func (o L7RuleOutput) ResourceType() pulumi.StringOutput

Type of the resource that the layer 7 rule works for, valid value is `bgpip`.

func (L7RuleOutput) RuleId

func (o L7RuleOutput) RuleId() pulumi.StringOutput

ID of the layer 7 rule.

func (L7RuleOutput) SourceLists

func (o L7RuleOutput) SourceLists() pulumi.StringArrayOutput

Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 16.

func (L7RuleOutput) SourceType

func (o L7RuleOutput) SourceType() pulumi.IntOutput

Source type, `1` for source of host, `2` for source of IP.

func (L7RuleOutput) SslId

SSL ID, when the `protocol` is `https`, the field should be set with valid SSL id.

func (L7RuleOutput) Status

func (o L7RuleOutput) Status() pulumi.IntOutput

Status of the rule. `0` for create/modify success, `2` for create/modify fail, `3` for delete success, `5` for delete failed, `6` for waiting to be created/modified, `7` for waiting to be deleted and 8 for waiting to get SSL ID.

func (L7RuleOutput) Switch

func (o L7RuleOutput) Switch() pulumi.BoolOutput

Indicate the rule will take effect or not.

func (L7RuleOutput) ToL7RuleOutput

func (o L7RuleOutput) ToL7RuleOutput() L7RuleOutput

func (L7RuleOutput) ToL7RuleOutputWithContext

func (o L7RuleOutput) ToL7RuleOutputWithContext(ctx context.Context) L7RuleOutput

type L7RuleState

type L7RuleState struct {
	// Domain that the layer 7 rule works for. Valid string length ranges from 0 to 80.
	Domain pulumi.StringPtrInput
	// HTTP Status Code. The default is `26`. Valid value ranges: [1~31]. `1` means the return value '1xx' is health. `2` means the return value '2xx' is health. `4` means the return value '3xx' is health. `8` means the return value '4xx' is health. `16` means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values.
	HealthCheckCode pulumi.IntPtrInput
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10].
	HealthCheckHealthNum pulumi.IntPtrInput
	// Interval time of health check. Valid value ranges: [10~60]sec. The default is 15 sec.
	HealthCheckInterval pulumi.IntPtrInput
	// Methods of health check. The default is 'HEAD', the available value are 'HEAD' and 'GET'.
	HealthCheckMethod pulumi.StringPtrInput
	// Path of health check. The default is `/`.
	HealthCheckPath pulumi.StringPtrInput
	// Indicates whether health check is enabled. The default is `false`.
	HealthCheckSwitch pulumi.BoolPtrInput
	// Unhealthy threshold of health check, and the default is `3`. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10].
	HealthCheckUnhealthNum pulumi.IntPtrInput
	// Name of the rule.
	Name pulumi.StringPtrInput
	// Protocol of the rule. Valid values: `http`, `https`.
	Protocol pulumi.StringPtrInput
	// ID of the resource that the layer 7 rule works for.
	ResourceId pulumi.StringPtrInput
	// Type of the resource that the layer 7 rule works for, valid value is `bgpip`.
	ResourceType pulumi.StringPtrInput
	// ID of the layer 7 rule.
	RuleId pulumi.StringPtrInput
	// Source list of the rule, it can be a set of ip sources or a set of domain sources. The number of items ranges from 1 to 16.
	SourceLists pulumi.StringArrayInput
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType pulumi.IntPtrInput
	// SSL ID, when the `protocol` is `https`, the field should be set with valid SSL id.
	SslId pulumi.StringPtrInput
	// Status of the rule. `0` for create/modify success, `2` for create/modify fail, `3` for delete success, `5` for delete failed, `6` for waiting to be created/modified, `7` for waiting to be deleted and 8 for waiting to get SSL ID.
	Status pulumi.IntPtrInput
	// Indicate the rule will take effect or not.
	Switch pulumi.BoolPtrInput
}

func (L7RuleState) ElementType

func (L7RuleState) ElementType() reflect.Type

type L7RuleV2

type L7RuleV2 struct {
	pulumi.CustomResourceState

	// ID of the resource that the layer 7 rule works for.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// Ip of the resource that the layer 7 rule works for.
	ResourceIp pulumi.StringOutput `pulumi:"resourceIp"`
	// Type of the resource that the layer 7 rule works for, valid value is `bgpip`.
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// A list of layer 7 rules. Each element contains the following attributes:
	Rule L7RuleV2RuleOutput `pulumi:"rule"`
}

Use this resource to create dayu new layer 7 rule

> **NOTE:** This resource only support resource Anti-DDoS of type `bgpip`

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.NewL7RuleV2(ctx, "tencentcloudDayuL7RuleV2", &Dayu.L7RuleV2Args{
			ResourceId:   pulumi.String("bgpip-000004xe"),
			ResourceIp:   pulumi.String("119.28.217.162"),
			ResourceType: pulumi.String("bgpip"),
			Rule: &dayu.L7RuleV2RuleArgs{
				Domain:     pulumi.String("github.com"),
				KeepEnable: pulumi.Int(false),
				Keeptime:   pulumi.Int(0),
				LbType:     pulumi.Int(1),
				Protocol:   pulumi.String("http"),
				SourceLists: dayu.L7RuleV2RuleSourceListArray{
					&dayu.L7RuleV2RuleSourceListArgs{
						Source: pulumi.String("1.2.3.5"),
						Weight: pulumi.Int(100),
					},
					&dayu.L7RuleV2RuleSourceListArgs{
						Source: pulumi.String("1.2.3.6"),
						Weight: pulumi.Int(100),
					},
				},
				SourceType: pulumi.Int(2),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

func GetL7RuleV2

func GetL7RuleV2(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *L7RuleV2State, opts ...pulumi.ResourceOption) (*L7RuleV2, error)

GetL7RuleV2 gets an existing L7RuleV2 resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewL7RuleV2

func NewL7RuleV2(ctx *pulumi.Context,
	name string, args *L7RuleV2Args, opts ...pulumi.ResourceOption) (*L7RuleV2, error)

NewL7RuleV2 registers a new resource with the given unique name, arguments, and options.

func (*L7RuleV2) ElementType

func (*L7RuleV2) ElementType() reflect.Type

func (*L7RuleV2) ToL7RuleV2Output

func (i *L7RuleV2) ToL7RuleV2Output() L7RuleV2Output

func (*L7RuleV2) ToL7RuleV2OutputWithContext

func (i *L7RuleV2) ToL7RuleV2OutputWithContext(ctx context.Context) L7RuleV2Output

type L7RuleV2Args

type L7RuleV2Args struct {
	// ID of the resource that the layer 7 rule works for.
	ResourceId pulumi.StringInput
	// Ip of the resource that the layer 7 rule works for.
	ResourceIp pulumi.StringInput
	// Type of the resource that the layer 7 rule works for, valid value is `bgpip`.
	ResourceType pulumi.StringInput
	// A list of layer 7 rules. Each element contains the following attributes:
	Rule L7RuleV2RuleInput
}

The set of arguments for constructing a L7RuleV2 resource.

func (L7RuleV2Args) ElementType

func (L7RuleV2Args) ElementType() reflect.Type

type L7RuleV2Array

type L7RuleV2Array []L7RuleV2Input

func (L7RuleV2Array) ElementType

func (L7RuleV2Array) ElementType() reflect.Type

func (L7RuleV2Array) ToL7RuleV2ArrayOutput

func (i L7RuleV2Array) ToL7RuleV2ArrayOutput() L7RuleV2ArrayOutput

func (L7RuleV2Array) ToL7RuleV2ArrayOutputWithContext

func (i L7RuleV2Array) ToL7RuleV2ArrayOutputWithContext(ctx context.Context) L7RuleV2ArrayOutput

type L7RuleV2ArrayInput

type L7RuleV2ArrayInput interface {
	pulumi.Input

	ToL7RuleV2ArrayOutput() L7RuleV2ArrayOutput
	ToL7RuleV2ArrayOutputWithContext(context.Context) L7RuleV2ArrayOutput
}

L7RuleV2ArrayInput is an input type that accepts L7RuleV2Array and L7RuleV2ArrayOutput values. You can construct a concrete instance of `L7RuleV2ArrayInput` via:

L7RuleV2Array{ L7RuleV2Args{...} }

type L7RuleV2ArrayOutput

type L7RuleV2ArrayOutput struct{ *pulumi.OutputState }

func (L7RuleV2ArrayOutput) ElementType

func (L7RuleV2ArrayOutput) ElementType() reflect.Type

func (L7RuleV2ArrayOutput) Index

func (L7RuleV2ArrayOutput) ToL7RuleV2ArrayOutput

func (o L7RuleV2ArrayOutput) ToL7RuleV2ArrayOutput() L7RuleV2ArrayOutput

func (L7RuleV2ArrayOutput) ToL7RuleV2ArrayOutputWithContext

func (o L7RuleV2ArrayOutput) ToL7RuleV2ArrayOutputWithContext(ctx context.Context) L7RuleV2ArrayOutput

type L7RuleV2Input

type L7RuleV2Input interface {
	pulumi.Input

	ToL7RuleV2Output() L7RuleV2Output
	ToL7RuleV2OutputWithContext(ctx context.Context) L7RuleV2Output
}

type L7RuleV2Map

type L7RuleV2Map map[string]L7RuleV2Input

func (L7RuleV2Map) ElementType

func (L7RuleV2Map) ElementType() reflect.Type

func (L7RuleV2Map) ToL7RuleV2MapOutput

func (i L7RuleV2Map) ToL7RuleV2MapOutput() L7RuleV2MapOutput

func (L7RuleV2Map) ToL7RuleV2MapOutputWithContext

func (i L7RuleV2Map) ToL7RuleV2MapOutputWithContext(ctx context.Context) L7RuleV2MapOutput

type L7RuleV2MapInput

type L7RuleV2MapInput interface {
	pulumi.Input

	ToL7RuleV2MapOutput() L7RuleV2MapOutput
	ToL7RuleV2MapOutputWithContext(context.Context) L7RuleV2MapOutput
}

L7RuleV2MapInput is an input type that accepts L7RuleV2Map and L7RuleV2MapOutput values. You can construct a concrete instance of `L7RuleV2MapInput` via:

L7RuleV2Map{ "key": L7RuleV2Args{...} }

type L7RuleV2MapOutput

type L7RuleV2MapOutput struct{ *pulumi.OutputState }

func (L7RuleV2MapOutput) ElementType

func (L7RuleV2MapOutput) ElementType() reflect.Type

func (L7RuleV2MapOutput) MapIndex

func (L7RuleV2MapOutput) ToL7RuleV2MapOutput

func (o L7RuleV2MapOutput) ToL7RuleV2MapOutput() L7RuleV2MapOutput

func (L7RuleV2MapOutput) ToL7RuleV2MapOutputWithContext

func (o L7RuleV2MapOutput) ToL7RuleV2MapOutputWithContext(ctx context.Context) L7RuleV2MapOutput

type L7RuleV2Output

type L7RuleV2Output struct{ *pulumi.OutputState }

func (L7RuleV2Output) ElementType

func (L7RuleV2Output) ElementType() reflect.Type

func (L7RuleV2Output) ResourceId

func (o L7RuleV2Output) ResourceId() pulumi.StringOutput

ID of the resource that the layer 7 rule works for.

func (L7RuleV2Output) ResourceIp

func (o L7RuleV2Output) ResourceIp() pulumi.StringOutput

Ip of the resource that the layer 7 rule works for.

func (L7RuleV2Output) ResourceType

func (o L7RuleV2Output) ResourceType() pulumi.StringOutput

Type of the resource that the layer 7 rule works for, valid value is `bgpip`.

func (L7RuleV2Output) Rule

A list of layer 7 rules. Each element contains the following attributes:

func (L7RuleV2Output) ToL7RuleV2Output

func (o L7RuleV2Output) ToL7RuleV2Output() L7RuleV2Output

func (L7RuleV2Output) ToL7RuleV2OutputWithContext

func (o L7RuleV2Output) ToL7RuleV2OutputWithContext(ctx context.Context) L7RuleV2Output

type L7RuleV2Rule

type L7RuleV2Rule struct {
	// HTTPS protocol CC protection status, value [0 (off), 1 (on)], defaule is 0.
	CcEnable *int `pulumi:"ccEnable"`
	// The source of the certificate must be filled in when the forwarding protocol is https, the value [2 (Tencent Cloud Hosting Certificate)], and 0 when the forwarding protocol is http.
	CertType *int `pulumi:"certType"`
	// Domain of the rule.
	Domain string `pulumi:"domain"`
	// Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], do not fill in the default is off, defaule is 0.
	HttpsToHttpEnable *int `pulumi:"httpsToHttpEnable"`
	// session hold switch.
	KeepEnable int `pulumi:"keepEnable"`
	// The keeptime of the layer 4 rule.
	Keeptime int `pulumi:"keeptime"`
	// LB type of the rule, `1` for weight cycling and `2` for IP hash.
	LbType int `pulumi:"lbType"`
	// Protocol of the rule.
	Protocol    string                   `pulumi:"protocol"`
	SourceLists []L7RuleV2RuleSourceList `pulumi:"sourceLists"`
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType int `pulumi:"sourceType"`
	// When the certificate source is a Tencent Cloud managed certificate, this field must be filled in with the managed certificate ID.
	SslId *string `pulumi:"sslId"`
}

type L7RuleV2RuleArgs

type L7RuleV2RuleArgs struct {
	// HTTPS protocol CC protection status, value [0 (off), 1 (on)], defaule is 0.
	CcEnable pulumi.IntPtrInput `pulumi:"ccEnable"`
	// The source of the certificate must be filled in when the forwarding protocol is https, the value [2 (Tencent Cloud Hosting Certificate)], and 0 when the forwarding protocol is http.
	CertType pulumi.IntPtrInput `pulumi:"certType"`
	// Domain of the rule.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], do not fill in the default is off, defaule is 0.
	HttpsToHttpEnable pulumi.IntPtrInput `pulumi:"httpsToHttpEnable"`
	// session hold switch.
	KeepEnable pulumi.IntInput `pulumi:"keepEnable"`
	// The keeptime of the layer 4 rule.
	Keeptime pulumi.IntInput `pulumi:"keeptime"`
	// LB type of the rule, `1` for weight cycling and `2` for IP hash.
	LbType pulumi.IntInput `pulumi:"lbType"`
	// Protocol of the rule.
	Protocol    pulumi.StringInput               `pulumi:"protocol"`
	SourceLists L7RuleV2RuleSourceListArrayInput `pulumi:"sourceLists"`
	// Source type, `1` for source of host, `2` for source of IP.
	SourceType pulumi.IntInput `pulumi:"sourceType"`
	// When the certificate source is a Tencent Cloud managed certificate, this field must be filled in with the managed certificate ID.
	SslId pulumi.StringPtrInput `pulumi:"sslId"`
}

func (L7RuleV2RuleArgs) ElementType

func (L7RuleV2RuleArgs) ElementType() reflect.Type

func (L7RuleV2RuleArgs) ToL7RuleV2RuleOutput

func (i L7RuleV2RuleArgs) ToL7RuleV2RuleOutput() L7RuleV2RuleOutput

func (L7RuleV2RuleArgs) ToL7RuleV2RuleOutputWithContext

func (i L7RuleV2RuleArgs) ToL7RuleV2RuleOutputWithContext(ctx context.Context) L7RuleV2RuleOutput

func (L7RuleV2RuleArgs) ToL7RuleV2RulePtrOutput

func (i L7RuleV2RuleArgs) ToL7RuleV2RulePtrOutput() L7RuleV2RulePtrOutput

func (L7RuleV2RuleArgs) ToL7RuleV2RulePtrOutputWithContext

func (i L7RuleV2RuleArgs) ToL7RuleV2RulePtrOutputWithContext(ctx context.Context) L7RuleV2RulePtrOutput

type L7RuleV2RuleInput

type L7RuleV2RuleInput interface {
	pulumi.Input

	ToL7RuleV2RuleOutput() L7RuleV2RuleOutput
	ToL7RuleV2RuleOutputWithContext(context.Context) L7RuleV2RuleOutput
}

L7RuleV2RuleInput is an input type that accepts L7RuleV2RuleArgs and L7RuleV2RuleOutput values. You can construct a concrete instance of `L7RuleV2RuleInput` via:

L7RuleV2RuleArgs{...}

type L7RuleV2RuleOutput

type L7RuleV2RuleOutput struct{ *pulumi.OutputState }

func (L7RuleV2RuleOutput) CcEnable

func (o L7RuleV2RuleOutput) CcEnable() pulumi.IntPtrOutput

HTTPS protocol CC protection status, value [0 (off), 1 (on)], defaule is 0.

func (L7RuleV2RuleOutput) CertType

func (o L7RuleV2RuleOutput) CertType() pulumi.IntPtrOutput

The source of the certificate must be filled in when the forwarding protocol is https, the value [2 (Tencent Cloud Hosting Certificate)], and 0 when the forwarding protocol is http.

func (L7RuleV2RuleOutput) Domain

Domain of the rule.

func (L7RuleV2RuleOutput) ElementType

func (L7RuleV2RuleOutput) ElementType() reflect.Type

func (L7RuleV2RuleOutput) HttpsToHttpEnable

func (o L7RuleV2RuleOutput) HttpsToHttpEnable() pulumi.IntPtrOutput

Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], do not fill in the default is off, defaule is 0.

func (L7RuleV2RuleOutput) KeepEnable

func (o L7RuleV2RuleOutput) KeepEnable() pulumi.IntOutput

session hold switch.

func (L7RuleV2RuleOutput) Keeptime

func (o L7RuleV2RuleOutput) Keeptime() pulumi.IntOutput

The keeptime of the layer 4 rule.

func (L7RuleV2RuleOutput) LbType

func (o L7RuleV2RuleOutput) LbType() pulumi.IntOutput

LB type of the rule, `1` for weight cycling and `2` for IP hash.

func (L7RuleV2RuleOutput) Protocol

func (o L7RuleV2RuleOutput) Protocol() pulumi.StringOutput

Protocol of the rule.

func (L7RuleV2RuleOutput) SourceLists

func (L7RuleV2RuleOutput) SourceType

func (o L7RuleV2RuleOutput) SourceType() pulumi.IntOutput

Source type, `1` for source of host, `2` for source of IP.

func (L7RuleV2RuleOutput) SslId

When the certificate source is a Tencent Cloud managed certificate, this field must be filled in with the managed certificate ID.

func (L7RuleV2RuleOutput) ToL7RuleV2RuleOutput

func (o L7RuleV2RuleOutput) ToL7RuleV2RuleOutput() L7RuleV2RuleOutput

func (L7RuleV2RuleOutput) ToL7RuleV2RuleOutputWithContext

func (o L7RuleV2RuleOutput) ToL7RuleV2RuleOutputWithContext(ctx context.Context) L7RuleV2RuleOutput

func (L7RuleV2RuleOutput) ToL7RuleV2RulePtrOutput

func (o L7RuleV2RuleOutput) ToL7RuleV2RulePtrOutput() L7RuleV2RulePtrOutput

func (L7RuleV2RuleOutput) ToL7RuleV2RulePtrOutputWithContext

func (o L7RuleV2RuleOutput) ToL7RuleV2RulePtrOutputWithContext(ctx context.Context) L7RuleV2RulePtrOutput

type L7RuleV2RulePtrInput

type L7RuleV2RulePtrInput interface {
	pulumi.Input

	ToL7RuleV2RulePtrOutput() L7RuleV2RulePtrOutput
	ToL7RuleV2RulePtrOutputWithContext(context.Context) L7RuleV2RulePtrOutput
}

L7RuleV2RulePtrInput is an input type that accepts L7RuleV2RuleArgs, L7RuleV2RulePtr and L7RuleV2RulePtrOutput values. You can construct a concrete instance of `L7RuleV2RulePtrInput` via:

        L7RuleV2RuleArgs{...}

or:

        nil

type L7RuleV2RulePtrOutput

type L7RuleV2RulePtrOutput struct{ *pulumi.OutputState }

func (L7RuleV2RulePtrOutput) CcEnable

HTTPS protocol CC protection status, value [0 (off), 1 (on)], defaule is 0.

func (L7RuleV2RulePtrOutput) CertType

The source of the certificate must be filled in when the forwarding protocol is https, the value [2 (Tencent Cloud Hosting Certificate)], and 0 when the forwarding protocol is http.

func (L7RuleV2RulePtrOutput) Domain

Domain of the rule.

func (L7RuleV2RulePtrOutput) Elem

func (L7RuleV2RulePtrOutput) ElementType

func (L7RuleV2RulePtrOutput) ElementType() reflect.Type

func (L7RuleV2RulePtrOutput) HttpsToHttpEnable

func (o L7RuleV2RulePtrOutput) HttpsToHttpEnable() pulumi.IntPtrOutput

Whether to enable the Https protocol to use Http back-to-source, take the value [0 (off), 1 (on)], do not fill in the default is off, defaule is 0.

func (L7RuleV2RulePtrOutput) KeepEnable

func (o L7RuleV2RulePtrOutput) KeepEnable() pulumi.IntPtrOutput

session hold switch.

func (L7RuleV2RulePtrOutput) Keeptime

The keeptime of the layer 4 rule.

func (L7RuleV2RulePtrOutput) LbType

LB type of the rule, `1` for weight cycling and `2` for IP hash.

func (L7RuleV2RulePtrOutput) Protocol

Protocol of the rule.

func (L7RuleV2RulePtrOutput) SourceLists

func (L7RuleV2RulePtrOutput) SourceType

func (o L7RuleV2RulePtrOutput) SourceType() pulumi.IntPtrOutput

Source type, `1` for source of host, `2` for source of IP.

func (L7RuleV2RulePtrOutput) SslId

When the certificate source is a Tencent Cloud managed certificate, this field must be filled in with the managed certificate ID.

func (L7RuleV2RulePtrOutput) ToL7RuleV2RulePtrOutput

func (o L7RuleV2RulePtrOutput) ToL7RuleV2RulePtrOutput() L7RuleV2RulePtrOutput

func (L7RuleV2RulePtrOutput) ToL7RuleV2RulePtrOutputWithContext

func (o L7RuleV2RulePtrOutput) ToL7RuleV2RulePtrOutputWithContext(ctx context.Context) L7RuleV2RulePtrOutput

type L7RuleV2RuleSourceList

type L7RuleV2RuleSourceList struct {
	Source string `pulumi:"source"`
	Weight int    `pulumi:"weight"`
}

type L7RuleV2RuleSourceListArgs

type L7RuleV2RuleSourceListArgs struct {
	Source pulumi.StringInput `pulumi:"source"`
	Weight pulumi.IntInput    `pulumi:"weight"`
}

func (L7RuleV2RuleSourceListArgs) ElementType

func (L7RuleV2RuleSourceListArgs) ElementType() reflect.Type

func (L7RuleV2RuleSourceListArgs) ToL7RuleV2RuleSourceListOutput

func (i L7RuleV2RuleSourceListArgs) ToL7RuleV2RuleSourceListOutput() L7RuleV2RuleSourceListOutput

func (L7RuleV2RuleSourceListArgs) ToL7RuleV2RuleSourceListOutputWithContext

func (i L7RuleV2RuleSourceListArgs) ToL7RuleV2RuleSourceListOutputWithContext(ctx context.Context) L7RuleV2RuleSourceListOutput

type L7RuleV2RuleSourceListArray

type L7RuleV2RuleSourceListArray []L7RuleV2RuleSourceListInput

func (L7RuleV2RuleSourceListArray) ElementType

func (L7RuleV2RuleSourceListArray) ToL7RuleV2RuleSourceListArrayOutput

func (i L7RuleV2RuleSourceListArray) ToL7RuleV2RuleSourceListArrayOutput() L7RuleV2RuleSourceListArrayOutput

func (L7RuleV2RuleSourceListArray) ToL7RuleV2RuleSourceListArrayOutputWithContext

func (i L7RuleV2RuleSourceListArray) ToL7RuleV2RuleSourceListArrayOutputWithContext(ctx context.Context) L7RuleV2RuleSourceListArrayOutput

type L7RuleV2RuleSourceListArrayInput

type L7RuleV2RuleSourceListArrayInput interface {
	pulumi.Input

	ToL7RuleV2RuleSourceListArrayOutput() L7RuleV2RuleSourceListArrayOutput
	ToL7RuleV2RuleSourceListArrayOutputWithContext(context.Context) L7RuleV2RuleSourceListArrayOutput
}

L7RuleV2RuleSourceListArrayInput is an input type that accepts L7RuleV2RuleSourceListArray and L7RuleV2RuleSourceListArrayOutput values. You can construct a concrete instance of `L7RuleV2RuleSourceListArrayInput` via:

L7RuleV2RuleSourceListArray{ L7RuleV2RuleSourceListArgs{...} }

type L7RuleV2RuleSourceListArrayOutput

type L7RuleV2RuleSourceListArrayOutput struct{ *pulumi.OutputState }

func (L7RuleV2RuleSourceListArrayOutput) ElementType

func (L7RuleV2RuleSourceListArrayOutput) Index

func (L7RuleV2RuleSourceListArrayOutput) ToL7RuleV2RuleSourceListArrayOutput

func (o L7RuleV2RuleSourceListArrayOutput) ToL7RuleV2RuleSourceListArrayOutput() L7RuleV2RuleSourceListArrayOutput

func (L7RuleV2RuleSourceListArrayOutput) ToL7RuleV2RuleSourceListArrayOutputWithContext

func (o L7RuleV2RuleSourceListArrayOutput) ToL7RuleV2RuleSourceListArrayOutputWithContext(ctx context.Context) L7RuleV2RuleSourceListArrayOutput

type L7RuleV2RuleSourceListInput

type L7RuleV2RuleSourceListInput interface {
	pulumi.Input

	ToL7RuleV2RuleSourceListOutput() L7RuleV2RuleSourceListOutput
	ToL7RuleV2RuleSourceListOutputWithContext(context.Context) L7RuleV2RuleSourceListOutput
}

L7RuleV2RuleSourceListInput is an input type that accepts L7RuleV2RuleSourceListArgs and L7RuleV2RuleSourceListOutput values. You can construct a concrete instance of `L7RuleV2RuleSourceListInput` via:

L7RuleV2RuleSourceListArgs{...}

type L7RuleV2RuleSourceListOutput

type L7RuleV2RuleSourceListOutput struct{ *pulumi.OutputState }

func (L7RuleV2RuleSourceListOutput) ElementType

func (L7RuleV2RuleSourceListOutput) Source

func (L7RuleV2RuleSourceListOutput) ToL7RuleV2RuleSourceListOutput

func (o L7RuleV2RuleSourceListOutput) ToL7RuleV2RuleSourceListOutput() L7RuleV2RuleSourceListOutput

func (L7RuleV2RuleSourceListOutput) ToL7RuleV2RuleSourceListOutputWithContext

func (o L7RuleV2RuleSourceListOutput) ToL7RuleV2RuleSourceListOutputWithContext(ctx context.Context) L7RuleV2RuleSourceListOutput

func (L7RuleV2RuleSourceListOutput) Weight

type L7RuleV2State

type L7RuleV2State struct {
	// ID of the resource that the layer 7 rule works for.
	ResourceId pulumi.StringPtrInput
	// Ip of the resource that the layer 7 rule works for.
	ResourceIp pulumi.StringPtrInput
	// Type of the resource that the layer 7 rule works for, valid value is `bgpip`.
	ResourceType pulumi.StringPtrInput
	// A list of layer 7 rules. Each element contains the following attributes:
	Rule L7RuleV2RulePtrInput
}

func (L7RuleV2State) ElementType

func (L7RuleV2State) ElementType() reflect.Type

type LookupEipArgs

type LookupEipArgs struct {
	// The binding state of the instance, value range [BINDING, BIND, UNBINDING, UNBIND], default is [BINDING, BIND, UNBINDING, UNBIND].
	BindStatuses []string `pulumi:"bindStatuses"`
	// The number of pages, default is `10`.
	Limit *int `pulumi:"limit"`
	// The page start offset, default is `0`.
	Offset *int `pulumi:"offset"`
	// Id of the resource.
	ResourceId string `pulumi:"resourceId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getEip.

type LookupEipOutputArgs

type LookupEipOutputArgs struct {
	// The binding state of the instance, value range [BINDING, BIND, UNBINDING, UNBIND], default is [BINDING, BIND, UNBINDING, UNBIND].
	BindStatuses pulumi.StringArrayInput `pulumi:"bindStatuses"`
	// The number of pages, default is `10`.
	Limit pulumi.IntPtrInput `pulumi:"limit"`
	// The page start offset, default is `0`.
	Offset pulumi.IntPtrInput `pulumi:"offset"`
	// Id of the resource.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getEip.

func (LookupEipOutputArgs) ElementType

func (LookupEipOutputArgs) ElementType() reflect.Type

type LookupEipResult

type LookupEipResult struct {
	BindStatuses []string `pulumi:"bindStatuses"`
	// The provider-assigned unique ID for this managed resource.
	Id    string `pulumi:"id"`
	Limit *int   `pulumi:"limit"`
	// A list of layer 4 rules. Each element contains the following attributes:
	Lists            []GetEipList `pulumi:"lists"`
	Offset           *int         `pulumi:"offset"`
	ResourceId       string       `pulumi:"resourceId"`
	ResultOutputFile *string      `pulumi:"resultOutputFile"`
}

A collection of values returned by getEip.

func LookupEip

func LookupEip(ctx *pulumi.Context, args *LookupEipArgs, opts ...pulumi.InvokeOption) (*LookupEipResult, error)

Use this data source to query dayu eip rules

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Dayu"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Dayu.GetEip(ctx, &dayu.GetEipArgs{
			ResourceId: "bgpip-000004xg",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type LookupEipResultOutput

type LookupEipResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEip.

func (LookupEipResultOutput) BindStatuses

func (LookupEipResultOutput) ElementType

func (LookupEipResultOutput) ElementType() reflect.Type

func (LookupEipResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (LookupEipResultOutput) Limit

func (LookupEipResultOutput) Lists

A list of layer 4 rules. Each element contains the following attributes:

func (LookupEipResultOutput) Offset

func (LookupEipResultOutput) ResourceId

func (o LookupEipResultOutput) ResourceId() pulumi.StringOutput

func (LookupEipResultOutput) ResultOutputFile

func (o LookupEipResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (LookupEipResultOutput) ToLookupEipResultOutput

func (o LookupEipResultOutput) ToLookupEipResultOutput() LookupEipResultOutput

func (LookupEipResultOutput) ToLookupEipResultOutputWithContext

func (o LookupEipResultOutput) ToLookupEipResultOutputWithContext(ctx context.Context) LookupEipResultOutput

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL