udpn

package
v0.0.0-...-4e6c764 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPNConnection

type UDPNConnection struct {
	pulumi.CustomResourceState

	// Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). range from 2 - 1000M. The default value is "1"
	Bandwidth pulumi.IntPtrOutput `pulumi:"bandwidth"`
	// Charge type. Possible values are: "year" as pay by year, "month" as pay by month, "dynamic" as pay by hour. The default value is "month".
	ChargeType pulumi.StringPtrOutput `pulumi:"chargeType"`
	// The time of creation for UDPN connection, formatted by RFC3339 time string.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// The duration that you will buy the resource, the default value is "1". It is not required when "dynamic" (pay by hour), the value is "0" when pay by month and the instance will be valid till the last day of that month.
	Duration pulumi.IntPtrOutput `pulumi:"duration"`
	// The expiration time for UDPN connection, formatted by RFC3339 time string.
	ExpireTime pulumi.StringOutput `pulumi:"expireTime"`
	// The correspondent region of dedicated connection, please refer to the region and [availability zone list](https://docs.ucloud.cn/api/summary/regionlist) and [UDPN price list](https://docs.ucloud.cn/network/udpn/udpn_price).
	PeerRegion pulumi.StringOutput `pulumi:"peerRegion"`
}

UDPN (UCloud Dedicated Private Network),you can use Dedicated Private Network to achieve high-speed, stable, secure, and dedicated communications between different data centers. The most frequent scenario is to create network connection of clusters across regions.

> **VPC Peering Connections with UDPN Connection** The cross-region Dedicated Private Network must be established if the two VPCs located in different regions are expected to be connected.

> **Note** The additional packet head will be added and included in the overall length of packet due to the tunneling UDPN adopted. Since the number of the bytes of packet head is fixed, the bigger data packet is, the less usage will be taken for the packet head.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/udpn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := udpn.NewUDPNConnection(ctx, "example", &udpn.UDPNConnectionArgs{
			Bandwidth:  pulumi.Int(2),
			PeerRegion: pulumi.String("cn-sh2"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

UDPN connection can be imported using the `id`, e.g.

```sh

$ pulumi import ucloud:udpn/uDPNConnection:UDPNConnection example udpn-abc123456

```

func GetUDPNConnection

func GetUDPNConnection(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *UDPNConnectionState, opts ...pulumi.ResourceOption) (*UDPNConnection, error)

GetUDPNConnection gets an existing UDPNConnection 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 NewUDPNConnection

func NewUDPNConnection(ctx *pulumi.Context,
	name string, args *UDPNConnectionArgs, opts ...pulumi.ResourceOption) (*UDPNConnection, error)

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

func (*UDPNConnection) ElementType

func (*UDPNConnection) ElementType() reflect.Type

func (*UDPNConnection) ToUDPNConnectionOutput

func (i *UDPNConnection) ToUDPNConnectionOutput() UDPNConnectionOutput

func (*UDPNConnection) ToUDPNConnectionOutputWithContext

func (i *UDPNConnection) ToUDPNConnectionOutputWithContext(ctx context.Context) UDPNConnectionOutput

func (*UDPNConnection) ToUDPNConnectionPtrOutput

func (i *UDPNConnection) ToUDPNConnectionPtrOutput() UDPNConnectionPtrOutput

func (*UDPNConnection) ToUDPNConnectionPtrOutputWithContext

func (i *UDPNConnection) ToUDPNConnectionPtrOutputWithContext(ctx context.Context) UDPNConnectionPtrOutput

type UDPNConnectionArgs

type UDPNConnectionArgs struct {
	// Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). range from 2 - 1000M. The default value is "1"
	Bandwidth pulumi.IntPtrInput
	// Charge type. Possible values are: "year" as pay by year, "month" as pay by month, "dynamic" as pay by hour. The default value is "month".
	ChargeType pulumi.StringPtrInput
	// The duration that you will buy the resource, the default value is "1". It is not required when "dynamic" (pay by hour), the value is "0" when pay by month and the instance will be valid till the last day of that month.
	Duration pulumi.IntPtrInput
	// The correspondent region of dedicated connection, please refer to the region and [availability zone list](https://docs.ucloud.cn/api/summary/regionlist) and [UDPN price list](https://docs.ucloud.cn/network/udpn/udpn_price).
	PeerRegion pulumi.StringInput
}

The set of arguments for constructing a UDPNConnection resource.

func (UDPNConnectionArgs) ElementType

func (UDPNConnectionArgs) ElementType() reflect.Type

type UDPNConnectionArray

type UDPNConnectionArray []UDPNConnectionInput

func (UDPNConnectionArray) ElementType

func (UDPNConnectionArray) ElementType() reflect.Type

func (UDPNConnectionArray) ToUDPNConnectionArrayOutput

func (i UDPNConnectionArray) ToUDPNConnectionArrayOutput() UDPNConnectionArrayOutput

func (UDPNConnectionArray) ToUDPNConnectionArrayOutputWithContext

func (i UDPNConnectionArray) ToUDPNConnectionArrayOutputWithContext(ctx context.Context) UDPNConnectionArrayOutput

type UDPNConnectionArrayInput

type UDPNConnectionArrayInput interface {
	pulumi.Input

	ToUDPNConnectionArrayOutput() UDPNConnectionArrayOutput
	ToUDPNConnectionArrayOutputWithContext(context.Context) UDPNConnectionArrayOutput
}

UDPNConnectionArrayInput is an input type that accepts UDPNConnectionArray and UDPNConnectionArrayOutput values. You can construct a concrete instance of `UDPNConnectionArrayInput` via:

UDPNConnectionArray{ UDPNConnectionArgs{...} }

type UDPNConnectionArrayOutput

type UDPNConnectionArrayOutput struct{ *pulumi.OutputState }

func (UDPNConnectionArrayOutput) ElementType

func (UDPNConnectionArrayOutput) ElementType() reflect.Type

func (UDPNConnectionArrayOutput) Index

func (UDPNConnectionArrayOutput) ToUDPNConnectionArrayOutput

func (o UDPNConnectionArrayOutput) ToUDPNConnectionArrayOutput() UDPNConnectionArrayOutput

func (UDPNConnectionArrayOutput) ToUDPNConnectionArrayOutputWithContext

func (o UDPNConnectionArrayOutput) ToUDPNConnectionArrayOutputWithContext(ctx context.Context) UDPNConnectionArrayOutput

type UDPNConnectionInput

type UDPNConnectionInput interface {
	pulumi.Input

	ToUDPNConnectionOutput() UDPNConnectionOutput
	ToUDPNConnectionOutputWithContext(ctx context.Context) UDPNConnectionOutput
}

type UDPNConnectionMap

type UDPNConnectionMap map[string]UDPNConnectionInput

func (UDPNConnectionMap) ElementType

func (UDPNConnectionMap) ElementType() reflect.Type

func (UDPNConnectionMap) ToUDPNConnectionMapOutput

func (i UDPNConnectionMap) ToUDPNConnectionMapOutput() UDPNConnectionMapOutput

func (UDPNConnectionMap) ToUDPNConnectionMapOutputWithContext

func (i UDPNConnectionMap) ToUDPNConnectionMapOutputWithContext(ctx context.Context) UDPNConnectionMapOutput

type UDPNConnectionMapInput

type UDPNConnectionMapInput interface {
	pulumi.Input

	ToUDPNConnectionMapOutput() UDPNConnectionMapOutput
	ToUDPNConnectionMapOutputWithContext(context.Context) UDPNConnectionMapOutput
}

UDPNConnectionMapInput is an input type that accepts UDPNConnectionMap and UDPNConnectionMapOutput values. You can construct a concrete instance of `UDPNConnectionMapInput` via:

UDPNConnectionMap{ "key": UDPNConnectionArgs{...} }

type UDPNConnectionMapOutput

type UDPNConnectionMapOutput struct{ *pulumi.OutputState }

func (UDPNConnectionMapOutput) ElementType

func (UDPNConnectionMapOutput) ElementType() reflect.Type

func (UDPNConnectionMapOutput) MapIndex

func (UDPNConnectionMapOutput) ToUDPNConnectionMapOutput

func (o UDPNConnectionMapOutput) ToUDPNConnectionMapOutput() UDPNConnectionMapOutput

func (UDPNConnectionMapOutput) ToUDPNConnectionMapOutputWithContext

func (o UDPNConnectionMapOutput) ToUDPNConnectionMapOutputWithContext(ctx context.Context) UDPNConnectionMapOutput

type UDPNConnectionOutput

type UDPNConnectionOutput struct {
	*pulumi.OutputState
}

func (UDPNConnectionOutput) ElementType

func (UDPNConnectionOutput) ElementType() reflect.Type

func (UDPNConnectionOutput) ToUDPNConnectionOutput

func (o UDPNConnectionOutput) ToUDPNConnectionOutput() UDPNConnectionOutput

func (UDPNConnectionOutput) ToUDPNConnectionOutputWithContext

func (o UDPNConnectionOutput) ToUDPNConnectionOutputWithContext(ctx context.Context) UDPNConnectionOutput

func (UDPNConnectionOutput) ToUDPNConnectionPtrOutput

func (o UDPNConnectionOutput) ToUDPNConnectionPtrOutput() UDPNConnectionPtrOutput

func (UDPNConnectionOutput) ToUDPNConnectionPtrOutputWithContext

func (o UDPNConnectionOutput) ToUDPNConnectionPtrOutputWithContext(ctx context.Context) UDPNConnectionPtrOutput

type UDPNConnectionPtrInput

type UDPNConnectionPtrInput interface {
	pulumi.Input

	ToUDPNConnectionPtrOutput() UDPNConnectionPtrOutput
	ToUDPNConnectionPtrOutputWithContext(ctx context.Context) UDPNConnectionPtrOutput
}

type UDPNConnectionPtrOutput

type UDPNConnectionPtrOutput struct {
	*pulumi.OutputState
}

func (UDPNConnectionPtrOutput) ElementType

func (UDPNConnectionPtrOutput) ElementType() reflect.Type

func (UDPNConnectionPtrOutput) ToUDPNConnectionPtrOutput

func (o UDPNConnectionPtrOutput) ToUDPNConnectionPtrOutput() UDPNConnectionPtrOutput

func (UDPNConnectionPtrOutput) ToUDPNConnectionPtrOutputWithContext

func (o UDPNConnectionPtrOutput) ToUDPNConnectionPtrOutputWithContext(ctx context.Context) UDPNConnectionPtrOutput

type UDPNConnectionState

type UDPNConnectionState struct {
	// Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). range from 2 - 1000M. The default value is "1"
	Bandwidth pulumi.IntPtrInput
	// Charge type. Possible values are: "year" as pay by year, "month" as pay by month, "dynamic" as pay by hour. The default value is "month".
	ChargeType pulumi.StringPtrInput
	// The time of creation for UDPN connection, formatted by RFC3339 time string.
	CreateTime pulumi.StringPtrInput
	// The duration that you will buy the resource, the default value is "1". It is not required when "dynamic" (pay by hour), the value is "0" when pay by month and the instance will be valid till the last day of that month.
	Duration pulumi.IntPtrInput
	// The expiration time for UDPN connection, formatted by RFC3339 time string.
	ExpireTime pulumi.StringPtrInput
	// The correspondent region of dedicated connection, please refer to the region and [availability zone list](https://docs.ucloud.cn/api/summary/regionlist) and [UDPN price list](https://docs.ucloud.cn/network/udpn/udpn_price).
	PeerRegion pulumi.StringPtrInput
}

func (UDPNConnectionState) ElementType

func (UDPNConnectionState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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