advancedantiddos

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 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.2

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 ForwardRule

type ForwardRule struct {
	pulumi.CustomResourceState

	// Specifies the forward port.
	// The valid value is range from **1** to **65535**.
	ForwardPort pulumi.IntOutput `pulumi:"forwardPort"`
	// Specifies the forward protocol.
	// The valid values are **tcp** and **udp**.
	ForwardProtocol pulumi.StringOutput `pulumi:"forwardProtocol"`
	// Specifies the ID of advanced Anti-DDoS instance.
	// Changing this will create a new rule resource.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// Specifies the public IP addresss to which Advanced Anti-DDoS instance
	// belongs. Changing this will create a new rule resource.
	Ip pulumi.StringOutput `pulumi:"ip"`
	// The LVS forward policy.
	LbMethod pulumi.StringOutput `pulumi:"lbMethod"`
	// schema: Deprecated
	RuleId pulumi.StringOutput `pulumi:"ruleId"`
	// Specifies the source IP addresses, separated by commas (,).
	SourceIp pulumi.StringOutput `pulumi:"sourceIp"`
	// Specifies the source port.
	// The valid value is range from **1** to **65535**.
	SourcePort pulumi.IntOutput `pulumi:"sourcePort"`
	// The status of forward rule.
	Status pulumi.IntOutput `pulumi:"status"`
}

Manages a forward rule resource of Advanced Anti-DDos service within HuaweiCloud.

## Import

Rule can be imported using the `id` (combination of `instance_id`, `ip`, `forward_protocol` and `forward_port`), separated by slashes (/), e.g.

```sh

$ pulumi import huaweicloud:AdvancedAntiDDos/forwardRule:ForwardRule test &ltinstance_id&gt/&ltip&gt/&ltforward_protocol&gt/&ltforward_port&gt

```

func GetForwardRule

func GetForwardRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ForwardRuleState, opts ...pulumi.ResourceOption) (*ForwardRule, error)

GetForwardRule gets an existing ForwardRule 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 NewForwardRule

func NewForwardRule(ctx *pulumi.Context,
	name string, args *ForwardRuleArgs, opts ...pulumi.ResourceOption) (*ForwardRule, error)

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

func (*ForwardRule) ElementType

func (*ForwardRule) ElementType() reflect.Type

func (*ForwardRule) ToForwardRuleOutput

func (i *ForwardRule) ToForwardRuleOutput() ForwardRuleOutput

func (*ForwardRule) ToForwardRuleOutputWithContext

func (i *ForwardRule) ToForwardRuleOutputWithContext(ctx context.Context) ForwardRuleOutput

type ForwardRuleArgs

type ForwardRuleArgs struct {
	// Specifies the forward port.
	// The valid value is range from **1** to **65535**.
	ForwardPort pulumi.IntInput
	// Specifies the forward protocol.
	// The valid values are **tcp** and **udp**.
	ForwardProtocol pulumi.StringInput
	// Specifies the ID of advanced Anti-DDoS instance.
	// Changing this will create a new rule resource.
	InstanceId pulumi.StringInput
	// Specifies the public IP addresss to which Advanced Anti-DDoS instance
	// belongs. Changing this will create a new rule resource.
	Ip pulumi.StringInput
	// Specifies the source IP addresses, separated by commas (,).
	SourceIp pulumi.StringInput
	// Specifies the source port.
	// The valid value is range from **1** to **65535**.
	SourcePort pulumi.IntInput
}

The set of arguments for constructing a ForwardRule resource.

func (ForwardRuleArgs) ElementType

func (ForwardRuleArgs) ElementType() reflect.Type

type ForwardRuleArray

type ForwardRuleArray []ForwardRuleInput

func (ForwardRuleArray) ElementType

func (ForwardRuleArray) ElementType() reflect.Type

func (ForwardRuleArray) ToForwardRuleArrayOutput

func (i ForwardRuleArray) ToForwardRuleArrayOutput() ForwardRuleArrayOutput

func (ForwardRuleArray) ToForwardRuleArrayOutputWithContext

func (i ForwardRuleArray) ToForwardRuleArrayOutputWithContext(ctx context.Context) ForwardRuleArrayOutput

type ForwardRuleArrayInput

type ForwardRuleArrayInput interface {
	pulumi.Input

	ToForwardRuleArrayOutput() ForwardRuleArrayOutput
	ToForwardRuleArrayOutputWithContext(context.Context) ForwardRuleArrayOutput
}

ForwardRuleArrayInput is an input type that accepts ForwardRuleArray and ForwardRuleArrayOutput values. You can construct a concrete instance of `ForwardRuleArrayInput` via:

ForwardRuleArray{ ForwardRuleArgs{...} }

type ForwardRuleArrayOutput

type ForwardRuleArrayOutput struct{ *pulumi.OutputState }

func (ForwardRuleArrayOutput) ElementType

func (ForwardRuleArrayOutput) ElementType() reflect.Type

func (ForwardRuleArrayOutput) Index

func (ForwardRuleArrayOutput) ToForwardRuleArrayOutput

func (o ForwardRuleArrayOutput) ToForwardRuleArrayOutput() ForwardRuleArrayOutput

func (ForwardRuleArrayOutput) ToForwardRuleArrayOutputWithContext

func (o ForwardRuleArrayOutput) ToForwardRuleArrayOutputWithContext(ctx context.Context) ForwardRuleArrayOutput

type ForwardRuleInput

type ForwardRuleInput interface {
	pulumi.Input

	ToForwardRuleOutput() ForwardRuleOutput
	ToForwardRuleOutputWithContext(ctx context.Context) ForwardRuleOutput
}

type ForwardRuleMap

type ForwardRuleMap map[string]ForwardRuleInput

func (ForwardRuleMap) ElementType

func (ForwardRuleMap) ElementType() reflect.Type

func (ForwardRuleMap) ToForwardRuleMapOutput

func (i ForwardRuleMap) ToForwardRuleMapOutput() ForwardRuleMapOutput

func (ForwardRuleMap) ToForwardRuleMapOutputWithContext

func (i ForwardRuleMap) ToForwardRuleMapOutputWithContext(ctx context.Context) ForwardRuleMapOutput

type ForwardRuleMapInput

type ForwardRuleMapInput interface {
	pulumi.Input

	ToForwardRuleMapOutput() ForwardRuleMapOutput
	ToForwardRuleMapOutputWithContext(context.Context) ForwardRuleMapOutput
}

ForwardRuleMapInput is an input type that accepts ForwardRuleMap and ForwardRuleMapOutput values. You can construct a concrete instance of `ForwardRuleMapInput` via:

ForwardRuleMap{ "key": ForwardRuleArgs{...} }

type ForwardRuleMapOutput

type ForwardRuleMapOutput struct{ *pulumi.OutputState }

func (ForwardRuleMapOutput) ElementType

func (ForwardRuleMapOutput) ElementType() reflect.Type

func (ForwardRuleMapOutput) MapIndex

func (ForwardRuleMapOutput) ToForwardRuleMapOutput

func (o ForwardRuleMapOutput) ToForwardRuleMapOutput() ForwardRuleMapOutput

func (ForwardRuleMapOutput) ToForwardRuleMapOutputWithContext

func (o ForwardRuleMapOutput) ToForwardRuleMapOutputWithContext(ctx context.Context) ForwardRuleMapOutput

type ForwardRuleOutput

type ForwardRuleOutput struct{ *pulumi.OutputState }

func (ForwardRuleOutput) ElementType

func (ForwardRuleOutput) ElementType() reflect.Type

func (ForwardRuleOutput) ForwardPort

func (o ForwardRuleOutput) ForwardPort() pulumi.IntOutput

Specifies the forward port. The valid value is range from **1** to **65535**.

func (ForwardRuleOutput) ForwardProtocol

func (o ForwardRuleOutput) ForwardProtocol() pulumi.StringOutput

Specifies the forward protocol. The valid values are **tcp** and **udp**.

func (ForwardRuleOutput) InstanceId

func (o ForwardRuleOutput) InstanceId() pulumi.StringOutput

Specifies the ID of advanced Anti-DDoS instance. Changing this will create a new rule resource.

func (ForwardRuleOutput) Ip

Specifies the public IP addresss to which Advanced Anti-DDoS instance belongs. Changing this will create a new rule resource.

func (ForwardRuleOutput) LbMethod

func (o ForwardRuleOutput) LbMethod() pulumi.StringOutput

The LVS forward policy.

func (ForwardRuleOutput) RuleId

schema: Deprecated

func (ForwardRuleOutput) SourceIp

func (o ForwardRuleOutput) SourceIp() pulumi.StringOutput

Specifies the source IP addresses, separated by commas (,).

func (ForwardRuleOutput) SourcePort

func (o ForwardRuleOutput) SourcePort() pulumi.IntOutput

Specifies the source port. The valid value is range from **1** to **65535**.

func (ForwardRuleOutput) Status

func (o ForwardRuleOutput) Status() pulumi.IntOutput

The status of forward rule.

func (ForwardRuleOutput) ToForwardRuleOutput

func (o ForwardRuleOutput) ToForwardRuleOutput() ForwardRuleOutput

func (ForwardRuleOutput) ToForwardRuleOutputWithContext

func (o ForwardRuleOutput) ToForwardRuleOutputWithContext(ctx context.Context) ForwardRuleOutput

type ForwardRuleState

type ForwardRuleState struct {
	// Specifies the forward port.
	// The valid value is range from **1** to **65535**.
	ForwardPort pulumi.IntPtrInput
	// Specifies the forward protocol.
	// The valid values are **tcp** and **udp**.
	ForwardProtocol pulumi.StringPtrInput
	// Specifies the ID of advanced Anti-DDoS instance.
	// Changing this will create a new rule resource.
	InstanceId pulumi.StringPtrInput
	// Specifies the public IP addresss to which Advanced Anti-DDoS instance
	// belongs. Changing this will create a new rule resource.
	Ip pulumi.StringPtrInput
	// The LVS forward policy.
	LbMethod pulumi.StringPtrInput
	// schema: Deprecated
	RuleId pulumi.StringPtrInput
	// Specifies the source IP addresses, separated by commas (,).
	SourceIp pulumi.StringPtrInput
	// Specifies the source port.
	// The valid value is range from **1** to **65535**.
	SourcePort pulumi.IntPtrInput
	// The status of forward rule.
	Status pulumi.IntPtrInput
}

func (ForwardRuleState) ElementType

func (ForwardRuleState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL