ulb

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 GetLBAttachmentLbAttachment

type GetLBAttachmentLbAttachment struct {
	// The ID of LB Attachment.
	Id string `pulumi:"id"`
	// Port opened on the backend server to receive requests, range: 1-65535.
	Port int `pulumi:"port"`
	// The private ip address for backend servers.
	PrivateIp string `pulumi:"privateIp"`
	// The ID of a backend server.
	ResourceId string `pulumi:"resourceId"`
	// The status of backend servers. Possible values are: `normalRunning`, `exceptionRunning`.
	Status string `pulumi:"status"`
}

type GetLBAttachmentLbAttachmentArgs

type GetLBAttachmentLbAttachmentArgs struct {
	// The ID of LB Attachment.
	Id pulumi.StringInput `pulumi:"id"`
	// Port opened on the backend server to receive requests, range: 1-65535.
	Port pulumi.IntInput `pulumi:"port"`
	// The private ip address for backend servers.
	PrivateIp pulumi.StringInput `pulumi:"privateIp"`
	// The ID of a backend server.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// The status of backend servers. Possible values are: `normalRunning`, `exceptionRunning`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetLBAttachmentLbAttachmentArgs) ElementType

func (GetLBAttachmentLbAttachmentArgs) ToGetLBAttachmentLbAttachmentOutput

func (i GetLBAttachmentLbAttachmentArgs) ToGetLBAttachmentLbAttachmentOutput() GetLBAttachmentLbAttachmentOutput

func (GetLBAttachmentLbAttachmentArgs) ToGetLBAttachmentLbAttachmentOutputWithContext

func (i GetLBAttachmentLbAttachmentArgs) ToGetLBAttachmentLbAttachmentOutputWithContext(ctx context.Context) GetLBAttachmentLbAttachmentOutput

type GetLBAttachmentLbAttachmentArray

type GetLBAttachmentLbAttachmentArray []GetLBAttachmentLbAttachmentInput

func (GetLBAttachmentLbAttachmentArray) ElementType

func (GetLBAttachmentLbAttachmentArray) ToGetLBAttachmentLbAttachmentArrayOutput

func (i GetLBAttachmentLbAttachmentArray) ToGetLBAttachmentLbAttachmentArrayOutput() GetLBAttachmentLbAttachmentArrayOutput

func (GetLBAttachmentLbAttachmentArray) ToGetLBAttachmentLbAttachmentArrayOutputWithContext

func (i GetLBAttachmentLbAttachmentArray) ToGetLBAttachmentLbAttachmentArrayOutputWithContext(ctx context.Context) GetLBAttachmentLbAttachmentArrayOutput

type GetLBAttachmentLbAttachmentArrayInput

type GetLBAttachmentLbAttachmentArrayInput interface {
	pulumi.Input

	ToGetLBAttachmentLbAttachmentArrayOutput() GetLBAttachmentLbAttachmentArrayOutput
	ToGetLBAttachmentLbAttachmentArrayOutputWithContext(context.Context) GetLBAttachmentLbAttachmentArrayOutput
}

GetLBAttachmentLbAttachmentArrayInput is an input type that accepts GetLBAttachmentLbAttachmentArray and GetLBAttachmentLbAttachmentArrayOutput values. You can construct a concrete instance of `GetLBAttachmentLbAttachmentArrayInput` via:

GetLBAttachmentLbAttachmentArray{ GetLBAttachmentLbAttachmentArgs{...} }

type GetLBAttachmentLbAttachmentArrayOutput

type GetLBAttachmentLbAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetLBAttachmentLbAttachmentArrayOutput) ElementType

func (GetLBAttachmentLbAttachmentArrayOutput) Index

func (GetLBAttachmentLbAttachmentArrayOutput) ToGetLBAttachmentLbAttachmentArrayOutput

func (o GetLBAttachmentLbAttachmentArrayOutput) ToGetLBAttachmentLbAttachmentArrayOutput() GetLBAttachmentLbAttachmentArrayOutput

func (GetLBAttachmentLbAttachmentArrayOutput) ToGetLBAttachmentLbAttachmentArrayOutputWithContext

func (o GetLBAttachmentLbAttachmentArrayOutput) ToGetLBAttachmentLbAttachmentArrayOutputWithContext(ctx context.Context) GetLBAttachmentLbAttachmentArrayOutput

type GetLBAttachmentLbAttachmentInput

type GetLBAttachmentLbAttachmentInput interface {
	pulumi.Input

	ToGetLBAttachmentLbAttachmentOutput() GetLBAttachmentLbAttachmentOutput
	ToGetLBAttachmentLbAttachmentOutputWithContext(context.Context) GetLBAttachmentLbAttachmentOutput
}

GetLBAttachmentLbAttachmentInput is an input type that accepts GetLBAttachmentLbAttachmentArgs and GetLBAttachmentLbAttachmentOutput values. You can construct a concrete instance of `GetLBAttachmentLbAttachmentInput` via:

GetLBAttachmentLbAttachmentArgs{...}

type GetLBAttachmentLbAttachmentOutput

type GetLBAttachmentLbAttachmentOutput struct{ *pulumi.OutputState }

func (GetLBAttachmentLbAttachmentOutput) ElementType

func (GetLBAttachmentLbAttachmentOutput) Id

The ID of LB Attachment.

func (GetLBAttachmentLbAttachmentOutput) Port

Port opened on the backend server to receive requests, range: 1-65535.

func (GetLBAttachmentLbAttachmentOutput) PrivateIp

The private ip address for backend servers.

func (GetLBAttachmentLbAttachmentOutput) ResourceId

The ID of a backend server.

func (GetLBAttachmentLbAttachmentOutput) Status

The status of backend servers. Possible values are: `normalRunning`, `exceptionRunning`.

func (GetLBAttachmentLbAttachmentOutput) ToGetLBAttachmentLbAttachmentOutput

func (o GetLBAttachmentLbAttachmentOutput) ToGetLBAttachmentLbAttachmentOutput() GetLBAttachmentLbAttachmentOutput

func (GetLBAttachmentLbAttachmentOutput) ToGetLBAttachmentLbAttachmentOutputWithContext

func (o GetLBAttachmentLbAttachmentOutput) ToGetLBAttachmentLbAttachmentOutputWithContext(ctx context.Context) GetLBAttachmentLbAttachmentOutput

type GetLBLb

type GetLBLb struct {
	// The creation time of Load Balancer, formatted in RFC3339 time string.
	CreateTime string `pulumi:"createTime"`
	// The ID of Load Balancer.
	Id string `pulumi:"id"`
	// Indicate whether the load balancer is intranet.
	Internal bool           `pulumi:"internal"`
	IpSets   []GetLBLbIpSet `pulumi:"ipSets"`
	// The name of Load Balancer.
	Name string `pulumi:"name"`
	// The IP address of intranet IP.
	PrivateIp string `pulumi:"privateIp"`
	// The remarks of Load Balancer.
	Remark string `pulumi:"remark"`
	// The ID of subnet that intrant load balancer belongs to.
	SubnetId string `pulumi:"subnetId"`
	// A tag assigned to Load Balancer.
	Tag string `pulumi:"tag"`
	// The ID of the VPC linked to the Load Balancers.
	VpcId string `pulumi:"vpcId"`
}

type GetLBLbArgs

type GetLBLbArgs struct {
	// The creation time of Load Balancer, formatted in RFC3339 time string.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The ID of Load Balancer.
	Id pulumi.StringInput `pulumi:"id"`
	// Indicate whether the load balancer is intranet.
	Internal pulumi.BoolInput       `pulumi:"internal"`
	IpSets   GetLBLbIpSetArrayInput `pulumi:"ipSets"`
	// The name of Load Balancer.
	Name pulumi.StringInput `pulumi:"name"`
	// The IP address of intranet IP.
	PrivateIp pulumi.StringInput `pulumi:"privateIp"`
	// The remarks of Load Balancer.
	Remark pulumi.StringInput `pulumi:"remark"`
	// The ID of subnet that intrant load balancer belongs to.
	SubnetId pulumi.StringInput `pulumi:"subnetId"`
	// A tag assigned to Load Balancer.
	Tag pulumi.StringInput `pulumi:"tag"`
	// The ID of the VPC linked to the Load Balancers.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
}

func (GetLBLbArgs) ElementType

func (GetLBLbArgs) ElementType() reflect.Type

func (GetLBLbArgs) ToGetLBLbOutput

func (i GetLBLbArgs) ToGetLBLbOutput() GetLBLbOutput

func (GetLBLbArgs) ToGetLBLbOutputWithContext

func (i GetLBLbArgs) ToGetLBLbOutputWithContext(ctx context.Context) GetLBLbOutput

type GetLBLbArray

type GetLBLbArray []GetLBLbInput

func (GetLBLbArray) ElementType

func (GetLBLbArray) ElementType() reflect.Type

func (GetLBLbArray) ToGetLBLbArrayOutput

func (i GetLBLbArray) ToGetLBLbArrayOutput() GetLBLbArrayOutput

func (GetLBLbArray) ToGetLBLbArrayOutputWithContext

func (i GetLBLbArray) ToGetLBLbArrayOutputWithContext(ctx context.Context) GetLBLbArrayOutput

type GetLBLbArrayInput

type GetLBLbArrayInput interface {
	pulumi.Input

	ToGetLBLbArrayOutput() GetLBLbArrayOutput
	ToGetLBLbArrayOutputWithContext(context.Context) GetLBLbArrayOutput
}

GetLBLbArrayInput is an input type that accepts GetLBLbArray and GetLBLbArrayOutput values. You can construct a concrete instance of `GetLBLbArrayInput` via:

GetLBLbArray{ GetLBLbArgs{...} }

type GetLBLbArrayOutput

type GetLBLbArrayOutput struct{ *pulumi.OutputState }

func (GetLBLbArrayOutput) ElementType

func (GetLBLbArrayOutput) ElementType() reflect.Type

func (GetLBLbArrayOutput) Index

func (GetLBLbArrayOutput) ToGetLBLbArrayOutput

func (o GetLBLbArrayOutput) ToGetLBLbArrayOutput() GetLBLbArrayOutput

func (GetLBLbArrayOutput) ToGetLBLbArrayOutputWithContext

func (o GetLBLbArrayOutput) ToGetLBLbArrayOutputWithContext(ctx context.Context) GetLBLbArrayOutput

type GetLBLbInput

type GetLBLbInput interface {
	pulumi.Input

	ToGetLBLbOutput() GetLBLbOutput
	ToGetLBLbOutputWithContext(context.Context) GetLBLbOutput
}

GetLBLbInput is an input type that accepts GetLBLbArgs and GetLBLbOutput values. You can construct a concrete instance of `GetLBLbInput` via:

GetLBLbArgs{...}

type GetLBLbIpSet

type GetLBLbIpSet struct {
	// Type of Load Balancer routes.
	InternetType string `pulumi:"internetType"`
	// Load Balancer address.
	Ip string `pulumi:"ip"`
}

type GetLBLbIpSetArgs

type GetLBLbIpSetArgs struct {
	// Type of Load Balancer routes.
	InternetType pulumi.StringInput `pulumi:"internetType"`
	// Load Balancer address.
	Ip pulumi.StringInput `pulumi:"ip"`
}

func (GetLBLbIpSetArgs) ElementType

func (GetLBLbIpSetArgs) ElementType() reflect.Type

func (GetLBLbIpSetArgs) ToGetLBLbIpSetOutput

func (i GetLBLbIpSetArgs) ToGetLBLbIpSetOutput() GetLBLbIpSetOutput

func (GetLBLbIpSetArgs) ToGetLBLbIpSetOutputWithContext

func (i GetLBLbIpSetArgs) ToGetLBLbIpSetOutputWithContext(ctx context.Context) GetLBLbIpSetOutput

type GetLBLbIpSetArray

type GetLBLbIpSetArray []GetLBLbIpSetInput

func (GetLBLbIpSetArray) ElementType

func (GetLBLbIpSetArray) ElementType() reflect.Type

func (GetLBLbIpSetArray) ToGetLBLbIpSetArrayOutput

func (i GetLBLbIpSetArray) ToGetLBLbIpSetArrayOutput() GetLBLbIpSetArrayOutput

func (GetLBLbIpSetArray) ToGetLBLbIpSetArrayOutputWithContext

func (i GetLBLbIpSetArray) ToGetLBLbIpSetArrayOutputWithContext(ctx context.Context) GetLBLbIpSetArrayOutput

type GetLBLbIpSetArrayInput

type GetLBLbIpSetArrayInput interface {
	pulumi.Input

	ToGetLBLbIpSetArrayOutput() GetLBLbIpSetArrayOutput
	ToGetLBLbIpSetArrayOutputWithContext(context.Context) GetLBLbIpSetArrayOutput
}

GetLBLbIpSetArrayInput is an input type that accepts GetLBLbIpSetArray and GetLBLbIpSetArrayOutput values. You can construct a concrete instance of `GetLBLbIpSetArrayInput` via:

GetLBLbIpSetArray{ GetLBLbIpSetArgs{...} }

type GetLBLbIpSetArrayOutput

type GetLBLbIpSetArrayOutput struct{ *pulumi.OutputState }

func (GetLBLbIpSetArrayOutput) ElementType

func (GetLBLbIpSetArrayOutput) ElementType() reflect.Type

func (GetLBLbIpSetArrayOutput) Index

func (GetLBLbIpSetArrayOutput) ToGetLBLbIpSetArrayOutput

func (o GetLBLbIpSetArrayOutput) ToGetLBLbIpSetArrayOutput() GetLBLbIpSetArrayOutput

func (GetLBLbIpSetArrayOutput) ToGetLBLbIpSetArrayOutputWithContext

func (o GetLBLbIpSetArrayOutput) ToGetLBLbIpSetArrayOutputWithContext(ctx context.Context) GetLBLbIpSetArrayOutput

type GetLBLbIpSetInput

type GetLBLbIpSetInput interface {
	pulumi.Input

	ToGetLBLbIpSetOutput() GetLBLbIpSetOutput
	ToGetLBLbIpSetOutputWithContext(context.Context) GetLBLbIpSetOutput
}

GetLBLbIpSetInput is an input type that accepts GetLBLbIpSetArgs and GetLBLbIpSetOutput values. You can construct a concrete instance of `GetLBLbIpSetInput` via:

GetLBLbIpSetArgs{...}

type GetLBLbIpSetOutput

type GetLBLbIpSetOutput struct{ *pulumi.OutputState }

func (GetLBLbIpSetOutput) ElementType

func (GetLBLbIpSetOutput) ElementType() reflect.Type

func (GetLBLbIpSetOutput) InternetType

func (o GetLBLbIpSetOutput) InternetType() pulumi.StringOutput

Type of Load Balancer routes.

func (GetLBLbIpSetOutput) Ip

Load Balancer address.

func (GetLBLbIpSetOutput) ToGetLBLbIpSetOutput

func (o GetLBLbIpSetOutput) ToGetLBLbIpSetOutput() GetLBLbIpSetOutput

func (GetLBLbIpSetOutput) ToGetLBLbIpSetOutputWithContext

func (o GetLBLbIpSetOutput) ToGetLBLbIpSetOutputWithContext(ctx context.Context) GetLBLbIpSetOutput

type GetLBLbOutput

type GetLBLbOutput struct{ *pulumi.OutputState }

func (GetLBLbOutput) CreateTime

func (o GetLBLbOutput) CreateTime() pulumi.StringOutput

The creation time of Load Balancer, formatted in RFC3339 time string.

func (GetLBLbOutput) ElementType

func (GetLBLbOutput) ElementType() reflect.Type

func (GetLBLbOutput) Id

The ID of Load Balancer.

func (GetLBLbOutput) Internal

func (o GetLBLbOutput) Internal() pulumi.BoolOutput

Indicate whether the load balancer is intranet.

func (GetLBLbOutput) IpSets

func (GetLBLbOutput) Name

The name of Load Balancer.

func (GetLBLbOutput) PrivateIp

func (o GetLBLbOutput) PrivateIp() pulumi.StringOutput

The IP address of intranet IP.

func (GetLBLbOutput) Remark

func (o GetLBLbOutput) Remark() pulumi.StringOutput

The remarks of Load Balancer.

func (GetLBLbOutput) SubnetId

func (o GetLBLbOutput) SubnetId() pulumi.StringOutput

The ID of subnet that intrant load balancer belongs to.

func (GetLBLbOutput) Tag

A tag assigned to Load Balancer.

func (GetLBLbOutput) ToGetLBLbOutput

func (o GetLBLbOutput) ToGetLBLbOutput() GetLBLbOutput

func (GetLBLbOutput) ToGetLBLbOutputWithContext

func (o GetLBLbOutput) ToGetLBLbOutputWithContext(ctx context.Context) GetLBLbOutput

func (GetLBLbOutput) VpcId

func (o GetLBLbOutput) VpcId() pulumi.StringOutput

The ID of the VPC linked to the Load Balancers.

type GetLBListenersArgs

type GetLBListenersArgs struct {
	// A list of LB Listener IDs, all the LB Listeners belong to this region will be retrieved if the ID is `[]`.
	Ids []string `pulumi:"ids"`
	// The ID of a load balancer.
	LoadBalancerId string `pulumi:"loadBalancerId"`
	// A regex string to filter resulting lb listeners by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getLBListeners.

type GetLBListenersLbListener

type GetLBListenersLbListener struct {
	// Health check domain checking.
	Domain string `pulumi:"domain"`
	// Health check method. Possible values are `port` as port checking and `path` as http checking.
	HealthCheckType string `pulumi:"healthCheckType"`
	// The ID of LB Listener.
	Id string `pulumi:"id"`
	// Amount of time in seconds to wait for the response for in between two sessions if `listenType` is `requestProxy`, range: 0-86400. Amount of time in seconds to wait for one session if `listenType` is `packetsTransmit`, range: 60-900. The session will be closed as soon as no response if it is `0`.
	IdleTimeout int `pulumi:"idleTimeout"`
	// The type of LB Listener. Possible values are `requestProxy` and `packetsTransmit`.
	ListenType string `pulumi:"listenType"`
	// The load balancer method in which the listener is. Possible values are: `roundrobin`, `source`, `consistentHash`, `sourcePort` , `consistentHashPort`, `weightRoundrobin` and `leastconn`.
	// - The `consistentHash`, `sourcePort` , `consistentHashPort`, `roundrobin`, `source` and `weightRoundrobin` are valid if `listenType` is `packetsTransmit`.
	// - The `rundrobin`, `source` and `weightRoundrobin` and `leastconn` are vaild if `listenType` is `requestProxy`.
	Method string `pulumi:"method"`
	// The name of LB Listener.
	Name string `pulumi:"name"`
	// Health check path checking.
	Path string `pulumi:"path"`
	// Indicate whether the persistence session is enabled, it is invaild if `persistenceType` is `none`, an auto-generated string will be exported if `persistenceType` is `serverInsert`, a custom string will be exported if `persistenceType` is `userDefined`.
	Persistence string `pulumi:"persistence"`
	// The type of session persistence of LB Listener. Possible values are: `none` as disabled, `serverInsert` as auto-generated string and `userDefined` as cutom string. (Default: `none`).
	PersistenceType string `pulumi:"persistenceType"`
	// Port opened on the LB Listener to receive requests, range: 1-65535.
	Port int `pulumi:"port"`
	// LB Listener protocol. Possible values: `http`, `https` if `listenType` is `requestProxy`, `tcp` and `udp` if `listenType` is `packetsTransmit`.
	Protocol string `pulumi:"protocol"`
	// LB Listener status. Possible values are: `allNormal` for all resource functioning well, `partNormal` for partial resource functioning well and `allException` for all resource functioning exceptional.
	Status string `pulumi:"status"`
}

type GetLBListenersLbListenerArgs

type GetLBListenersLbListenerArgs struct {
	// Health check domain checking.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Health check method. Possible values are `port` as port checking and `path` as http checking.
	HealthCheckType pulumi.StringInput `pulumi:"healthCheckType"`
	// The ID of LB Listener.
	Id pulumi.StringInput `pulumi:"id"`
	// Amount of time in seconds to wait for the response for in between two sessions if `listenType` is `requestProxy`, range: 0-86400. Amount of time in seconds to wait for one session if `listenType` is `packetsTransmit`, range: 60-900. The session will be closed as soon as no response if it is `0`.
	IdleTimeout pulumi.IntInput `pulumi:"idleTimeout"`
	// The type of LB Listener. Possible values are `requestProxy` and `packetsTransmit`.
	ListenType pulumi.StringInput `pulumi:"listenType"`
	// The load balancer method in which the listener is. Possible values are: `roundrobin`, `source`, `consistentHash`, `sourcePort` , `consistentHashPort`, `weightRoundrobin` and `leastconn`.
	// - The `consistentHash`, `sourcePort` , `consistentHashPort`, `roundrobin`, `source` and `weightRoundrobin` are valid if `listenType` is `packetsTransmit`.
	// - The `rundrobin`, `source` and `weightRoundrobin` and `leastconn` are vaild if `listenType` is `requestProxy`.
	Method pulumi.StringInput `pulumi:"method"`
	// The name of LB Listener.
	Name pulumi.StringInput `pulumi:"name"`
	// Health check path checking.
	Path pulumi.StringInput `pulumi:"path"`
	// Indicate whether the persistence session is enabled, it is invaild if `persistenceType` is `none`, an auto-generated string will be exported if `persistenceType` is `serverInsert`, a custom string will be exported if `persistenceType` is `userDefined`.
	Persistence pulumi.StringInput `pulumi:"persistence"`
	// The type of session persistence of LB Listener. Possible values are: `none` as disabled, `serverInsert` as auto-generated string and `userDefined` as cutom string. (Default: `none`).
	PersistenceType pulumi.StringInput `pulumi:"persistenceType"`
	// Port opened on the LB Listener to receive requests, range: 1-65535.
	Port pulumi.IntInput `pulumi:"port"`
	// LB Listener protocol. Possible values: `http`, `https` if `listenType` is `requestProxy`, `tcp` and `udp` if `listenType` is `packetsTransmit`.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// LB Listener status. Possible values are: `allNormal` for all resource functioning well, `partNormal` for partial resource functioning well and `allException` for all resource functioning exceptional.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetLBListenersLbListenerArgs) ElementType

func (GetLBListenersLbListenerArgs) ToGetLBListenersLbListenerOutput

func (i GetLBListenersLbListenerArgs) ToGetLBListenersLbListenerOutput() GetLBListenersLbListenerOutput

func (GetLBListenersLbListenerArgs) ToGetLBListenersLbListenerOutputWithContext

func (i GetLBListenersLbListenerArgs) ToGetLBListenersLbListenerOutputWithContext(ctx context.Context) GetLBListenersLbListenerOutput

type GetLBListenersLbListenerArray

type GetLBListenersLbListenerArray []GetLBListenersLbListenerInput

func (GetLBListenersLbListenerArray) ElementType

func (GetLBListenersLbListenerArray) ToGetLBListenersLbListenerArrayOutput

func (i GetLBListenersLbListenerArray) ToGetLBListenersLbListenerArrayOutput() GetLBListenersLbListenerArrayOutput

func (GetLBListenersLbListenerArray) ToGetLBListenersLbListenerArrayOutputWithContext

func (i GetLBListenersLbListenerArray) ToGetLBListenersLbListenerArrayOutputWithContext(ctx context.Context) GetLBListenersLbListenerArrayOutput

type GetLBListenersLbListenerArrayInput

type GetLBListenersLbListenerArrayInput interface {
	pulumi.Input

	ToGetLBListenersLbListenerArrayOutput() GetLBListenersLbListenerArrayOutput
	ToGetLBListenersLbListenerArrayOutputWithContext(context.Context) GetLBListenersLbListenerArrayOutput
}

GetLBListenersLbListenerArrayInput is an input type that accepts GetLBListenersLbListenerArray and GetLBListenersLbListenerArrayOutput values. You can construct a concrete instance of `GetLBListenersLbListenerArrayInput` via:

GetLBListenersLbListenerArray{ GetLBListenersLbListenerArgs{...} }

type GetLBListenersLbListenerArrayOutput

type GetLBListenersLbListenerArrayOutput struct{ *pulumi.OutputState }

func (GetLBListenersLbListenerArrayOutput) ElementType

func (GetLBListenersLbListenerArrayOutput) Index

func (GetLBListenersLbListenerArrayOutput) ToGetLBListenersLbListenerArrayOutput

func (o GetLBListenersLbListenerArrayOutput) ToGetLBListenersLbListenerArrayOutput() GetLBListenersLbListenerArrayOutput

func (GetLBListenersLbListenerArrayOutput) ToGetLBListenersLbListenerArrayOutputWithContext

func (o GetLBListenersLbListenerArrayOutput) ToGetLBListenersLbListenerArrayOutputWithContext(ctx context.Context) GetLBListenersLbListenerArrayOutput

type GetLBListenersLbListenerInput

type GetLBListenersLbListenerInput interface {
	pulumi.Input

	ToGetLBListenersLbListenerOutput() GetLBListenersLbListenerOutput
	ToGetLBListenersLbListenerOutputWithContext(context.Context) GetLBListenersLbListenerOutput
}

GetLBListenersLbListenerInput is an input type that accepts GetLBListenersLbListenerArgs and GetLBListenersLbListenerOutput values. You can construct a concrete instance of `GetLBListenersLbListenerInput` via:

GetLBListenersLbListenerArgs{...}

type GetLBListenersLbListenerOutput

type GetLBListenersLbListenerOutput struct{ *pulumi.OutputState }

func (GetLBListenersLbListenerOutput) Domain

Health check domain checking.

func (GetLBListenersLbListenerOutput) ElementType

func (GetLBListenersLbListenerOutput) HealthCheckType

Health check method. Possible values are `port` as port checking and `path` as http checking.

func (GetLBListenersLbListenerOutput) Id

The ID of LB Listener.

func (GetLBListenersLbListenerOutput) IdleTimeout

Amount of time in seconds to wait for the response for in between two sessions if `listenType` is `requestProxy`, range: 0-86400. Amount of time in seconds to wait for one session if `listenType` is `packetsTransmit`, range: 60-900. The session will be closed as soon as no response if it is `0`.

func (GetLBListenersLbListenerOutput) ListenType

The type of LB Listener. Possible values are `requestProxy` and `packetsTransmit`.

func (GetLBListenersLbListenerOutput) Method

The load balancer method in which the listener is. Possible values are: `roundrobin`, `source`, `consistentHash`, `sourcePort` , `consistentHashPort`, `weightRoundrobin` and `leastconn`. - The `consistentHash`, `sourcePort` , `consistentHashPort`, `roundrobin`, `source` and `weightRoundrobin` are valid if `listenType` is `packetsTransmit`. - The `rundrobin`, `source` and `weightRoundrobin` and `leastconn` are vaild if `listenType` is `requestProxy`.

func (GetLBListenersLbListenerOutput) Name

The name of LB Listener.

func (GetLBListenersLbListenerOutput) Path

Health check path checking.

func (GetLBListenersLbListenerOutput) Persistence

Indicate whether the persistence session is enabled, it is invaild if `persistenceType` is `none`, an auto-generated string will be exported if `persistenceType` is `serverInsert`, a custom string will be exported if `persistenceType` is `userDefined`.

func (GetLBListenersLbListenerOutput) PersistenceType

The type of session persistence of LB Listener. Possible values are: `none` as disabled, `serverInsert` as auto-generated string and `userDefined` as cutom string. (Default: `none`).

func (GetLBListenersLbListenerOutput) Port

Port opened on the LB Listener to receive requests, range: 1-65535.

func (GetLBListenersLbListenerOutput) Protocol

LB Listener protocol. Possible values: `http`, `https` if `listenType` is `requestProxy`, `tcp` and `udp` if `listenType` is `packetsTransmit`.

func (GetLBListenersLbListenerOutput) Status

LB Listener status. Possible values are: `allNormal` for all resource functioning well, `partNormal` for partial resource functioning well and `allException` for all resource functioning exceptional.

func (GetLBListenersLbListenerOutput) ToGetLBListenersLbListenerOutput

func (o GetLBListenersLbListenerOutput) ToGetLBListenersLbListenerOutput() GetLBListenersLbListenerOutput

func (GetLBListenersLbListenerOutput) ToGetLBListenersLbListenerOutputWithContext

func (o GetLBListenersLbListenerOutput) ToGetLBListenersLbListenerOutputWithContext(ctx context.Context) GetLBListenersLbListenerOutput

type GetLBListenersResult

type GetLBListenersResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id  string   `pulumi:"id"`
	Ids []string `pulumi:"ids"`
	// It is a nested type which documented below.
	LbListeners    []GetLBListenersLbListener `pulumi:"lbListeners"`
	LoadBalancerId string                     `pulumi:"loadBalancerId"`
	NameRegex      *string                    `pulumi:"nameRegex"`
	OutputFile     *string                    `pulumi:"outputFile"`
	// Total number of LB listeners that satisfy the condition.
	TotalCount int `pulumi:"totalCount"`
}

A collection of values returned by getLBListeners.

func GetLBListeners

func GetLBListeners(ctx *pulumi.Context, args *GetLBListenersArgs, opts ...pulumi.InvokeOption) (*GetLBListenersResult, error)

This data source provides a list of Load Balancer Listener resources according to their Load Balancer Listener ID.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ulb.GetLBListeners(ctx, &ulb.GetLBListenersArgs{
			LoadBalancerId: "ulb-xxx",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("first", example.LbListeners[0].Id)
		return nil
	})
}

```

type GetLBRulesArgs

type GetLBRulesArgs struct {
	// A list of LB Rule IDs, all the LB Rules belong to the Load Balancer listener will be retrieved if the ID is `[]`.
	Ids []string `pulumi:"ids"`
	// The ID of a listener server.
	ListenerId string `pulumi:"listenerId"`
	// The ID of a load balancer.
	LoadBalancerId string  `pulumi:"loadBalancerId"`
	OutputFile     *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getLBRules.

type GetLBRulesLbRule

type GetLBRulesLbRule struct {
	// (Optional) The domain of content forward matching fields. `path` and `domain` cannot coexist.
	Domain string `pulumi:"domain"`
	// The ID of LB Rule.
	Id string `pulumi:"id"`
	// (Optional) The path of Content forward matching fields. `path` and `domain` cannot coexist.
	Path string `pulumi:"path"`
}

type GetLBRulesLbRuleArgs

type GetLBRulesLbRuleArgs struct {
	// (Optional) The domain of content forward matching fields. `path` and `domain` cannot coexist.
	Domain pulumi.StringInput `pulumi:"domain"`
	// The ID of LB Rule.
	Id pulumi.StringInput `pulumi:"id"`
	// (Optional) The path of Content forward matching fields. `path` and `domain` cannot coexist.
	Path pulumi.StringInput `pulumi:"path"`
}

func (GetLBRulesLbRuleArgs) ElementType

func (GetLBRulesLbRuleArgs) ElementType() reflect.Type

func (GetLBRulesLbRuleArgs) ToGetLBRulesLbRuleOutput

func (i GetLBRulesLbRuleArgs) ToGetLBRulesLbRuleOutput() GetLBRulesLbRuleOutput

func (GetLBRulesLbRuleArgs) ToGetLBRulesLbRuleOutputWithContext

func (i GetLBRulesLbRuleArgs) ToGetLBRulesLbRuleOutputWithContext(ctx context.Context) GetLBRulesLbRuleOutput

type GetLBRulesLbRuleArray

type GetLBRulesLbRuleArray []GetLBRulesLbRuleInput

func (GetLBRulesLbRuleArray) ElementType

func (GetLBRulesLbRuleArray) ElementType() reflect.Type

func (GetLBRulesLbRuleArray) ToGetLBRulesLbRuleArrayOutput

func (i GetLBRulesLbRuleArray) ToGetLBRulesLbRuleArrayOutput() GetLBRulesLbRuleArrayOutput

func (GetLBRulesLbRuleArray) ToGetLBRulesLbRuleArrayOutputWithContext

func (i GetLBRulesLbRuleArray) ToGetLBRulesLbRuleArrayOutputWithContext(ctx context.Context) GetLBRulesLbRuleArrayOutput

type GetLBRulesLbRuleArrayInput

type GetLBRulesLbRuleArrayInput interface {
	pulumi.Input

	ToGetLBRulesLbRuleArrayOutput() GetLBRulesLbRuleArrayOutput
	ToGetLBRulesLbRuleArrayOutputWithContext(context.Context) GetLBRulesLbRuleArrayOutput
}

GetLBRulesLbRuleArrayInput is an input type that accepts GetLBRulesLbRuleArray and GetLBRulesLbRuleArrayOutput values. You can construct a concrete instance of `GetLBRulesLbRuleArrayInput` via:

GetLBRulesLbRuleArray{ GetLBRulesLbRuleArgs{...} }

type GetLBRulesLbRuleArrayOutput

type GetLBRulesLbRuleArrayOutput struct{ *pulumi.OutputState }

func (GetLBRulesLbRuleArrayOutput) ElementType

func (GetLBRulesLbRuleArrayOutput) Index

func (GetLBRulesLbRuleArrayOutput) ToGetLBRulesLbRuleArrayOutput

func (o GetLBRulesLbRuleArrayOutput) ToGetLBRulesLbRuleArrayOutput() GetLBRulesLbRuleArrayOutput

func (GetLBRulesLbRuleArrayOutput) ToGetLBRulesLbRuleArrayOutputWithContext

func (o GetLBRulesLbRuleArrayOutput) ToGetLBRulesLbRuleArrayOutputWithContext(ctx context.Context) GetLBRulesLbRuleArrayOutput

type GetLBRulesLbRuleInput

type GetLBRulesLbRuleInput interface {
	pulumi.Input

	ToGetLBRulesLbRuleOutput() GetLBRulesLbRuleOutput
	ToGetLBRulesLbRuleOutputWithContext(context.Context) GetLBRulesLbRuleOutput
}

GetLBRulesLbRuleInput is an input type that accepts GetLBRulesLbRuleArgs and GetLBRulesLbRuleOutput values. You can construct a concrete instance of `GetLBRulesLbRuleInput` via:

GetLBRulesLbRuleArgs{...}

type GetLBRulesLbRuleOutput

type GetLBRulesLbRuleOutput struct{ *pulumi.OutputState }

func (GetLBRulesLbRuleOutput) Domain

(Optional) The domain of content forward matching fields. `path` and `domain` cannot coexist.

func (GetLBRulesLbRuleOutput) ElementType

func (GetLBRulesLbRuleOutput) ElementType() reflect.Type

func (GetLBRulesLbRuleOutput) Id

The ID of LB Rule.

func (GetLBRulesLbRuleOutput) Path

(Optional) The path of Content forward matching fields. `path` and `domain` cannot coexist.

func (GetLBRulesLbRuleOutput) ToGetLBRulesLbRuleOutput

func (o GetLBRulesLbRuleOutput) ToGetLBRulesLbRuleOutput() GetLBRulesLbRuleOutput

func (GetLBRulesLbRuleOutput) ToGetLBRulesLbRuleOutputWithContext

func (o GetLBRulesLbRuleOutput) ToGetLBRulesLbRuleOutputWithContext(ctx context.Context) GetLBRulesLbRuleOutput

type GetLBRulesResult

type GetLBRulesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id  string   `pulumi:"id"`
	Ids []string `pulumi:"ids"`
	// It is a nested type which documented below.
	LbRules        []GetLBRulesLbRule `pulumi:"lbRules"`
	ListenerId     string             `pulumi:"listenerId"`
	LoadBalancerId string             `pulumi:"loadBalancerId"`
	OutputFile     *string            `pulumi:"outputFile"`
	// Total number of LB Rules that satisfy the condition.
	TotalCount int `pulumi:"totalCount"`
}

A collection of values returned by getLBRules.

func GetLBRules

func GetLBRules(ctx *pulumi.Context, args *GetLBRulesArgs, opts ...pulumi.InvokeOption) (*GetLBRulesResult, error)

This data source provides a list of Load Balancer Rule resources according to their Load Balancer Rule ID.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ulb.GetLBRules(ctx, &ulb.GetLBRulesArgs{
			LoadBalancerId: "ulb-xxx",
			ListenerId:     "vserver-xxx",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("first", example.LbRules[0].Id)
		return nil
	})
}

```

type GetLBSslLbSsl

type GetLBSslLbSsl struct {
	// The time of creation for lb ssl, formatted in RFC3339 time string.
	CreateTime string `pulumi:"createTime"`
	// The ID of LB SSL certificate resource.
	Id string `pulumi:"id"`
	// The name of LB SSL certificate resource.
	Name string `pulumi:"name"`
}

type GetLBSslLbSslArgs

type GetLBSslLbSslArgs struct {
	// The time of creation for lb ssl, formatted in RFC3339 time string.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// The ID of LB SSL certificate resource.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of LB SSL certificate resource.
	Name pulumi.StringInput `pulumi:"name"`
}

func (GetLBSslLbSslArgs) ElementType

func (GetLBSslLbSslArgs) ElementType() reflect.Type

func (GetLBSslLbSslArgs) ToGetLBSslLbSslOutput

func (i GetLBSslLbSslArgs) ToGetLBSslLbSslOutput() GetLBSslLbSslOutput

func (GetLBSslLbSslArgs) ToGetLBSslLbSslOutputWithContext

func (i GetLBSslLbSslArgs) ToGetLBSslLbSslOutputWithContext(ctx context.Context) GetLBSslLbSslOutput

type GetLBSslLbSslArray

type GetLBSslLbSslArray []GetLBSslLbSslInput

func (GetLBSslLbSslArray) ElementType

func (GetLBSslLbSslArray) ElementType() reflect.Type

func (GetLBSslLbSslArray) ToGetLBSslLbSslArrayOutput

func (i GetLBSslLbSslArray) ToGetLBSslLbSslArrayOutput() GetLBSslLbSslArrayOutput

func (GetLBSslLbSslArray) ToGetLBSslLbSslArrayOutputWithContext

func (i GetLBSslLbSslArray) ToGetLBSslLbSslArrayOutputWithContext(ctx context.Context) GetLBSslLbSslArrayOutput

type GetLBSslLbSslArrayInput

type GetLBSslLbSslArrayInput interface {
	pulumi.Input

	ToGetLBSslLbSslArrayOutput() GetLBSslLbSslArrayOutput
	ToGetLBSslLbSslArrayOutputWithContext(context.Context) GetLBSslLbSslArrayOutput
}

GetLBSslLbSslArrayInput is an input type that accepts GetLBSslLbSslArray and GetLBSslLbSslArrayOutput values. You can construct a concrete instance of `GetLBSslLbSslArrayInput` via:

GetLBSslLbSslArray{ GetLBSslLbSslArgs{...} }

type GetLBSslLbSslArrayOutput

type GetLBSslLbSslArrayOutput struct{ *pulumi.OutputState }

func (GetLBSslLbSslArrayOutput) ElementType

func (GetLBSslLbSslArrayOutput) ElementType() reflect.Type

func (GetLBSslLbSslArrayOutput) Index

func (GetLBSslLbSslArrayOutput) ToGetLBSslLbSslArrayOutput

func (o GetLBSslLbSslArrayOutput) ToGetLBSslLbSslArrayOutput() GetLBSslLbSslArrayOutput

func (GetLBSslLbSslArrayOutput) ToGetLBSslLbSslArrayOutputWithContext

func (o GetLBSslLbSslArrayOutput) ToGetLBSslLbSslArrayOutputWithContext(ctx context.Context) GetLBSslLbSslArrayOutput

type GetLBSslLbSslInput

type GetLBSslLbSslInput interface {
	pulumi.Input

	ToGetLBSslLbSslOutput() GetLBSslLbSslOutput
	ToGetLBSslLbSslOutputWithContext(context.Context) GetLBSslLbSslOutput
}

GetLBSslLbSslInput is an input type that accepts GetLBSslLbSslArgs and GetLBSslLbSslOutput values. You can construct a concrete instance of `GetLBSslLbSslInput` via:

GetLBSslLbSslArgs{...}

type GetLBSslLbSslOutput

type GetLBSslLbSslOutput struct{ *pulumi.OutputState }

func (GetLBSslLbSslOutput) CreateTime

func (o GetLBSslLbSslOutput) CreateTime() pulumi.StringOutput

The time of creation for lb ssl, formatted in RFC3339 time string.

func (GetLBSslLbSslOutput) ElementType

func (GetLBSslLbSslOutput) ElementType() reflect.Type

func (GetLBSslLbSslOutput) Id

The ID of LB SSL certificate resource.

func (GetLBSslLbSslOutput) Name

The name of LB SSL certificate resource.

func (GetLBSslLbSslOutput) ToGetLBSslLbSslOutput

func (o GetLBSslLbSslOutput) ToGetLBSslLbSslOutput() GetLBSslLbSslOutput

func (GetLBSslLbSslOutput) ToGetLBSslLbSslOutputWithContext

func (o GetLBSslLbSslOutput) ToGetLBSslLbSslOutputWithContext(ctx context.Context) GetLBSslLbSslOutput

type LB

type LB struct {
	pulumi.CustomResourceState

	// , argument `chargeType` is deprecated for optimizing parameters.
	//
	// Deprecated: attribute `charge_type` is deprecated for optimizing parameters
	ChargeType pulumi.StringPtrOutput `pulumi:"chargeType"`
	// The time of creation for load balancer, formatted in RFC3339 time string.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// **Deprecated** attribute `expireTime` is deprecated for optimizing outputs.
	//
	// Deprecated: attribute `expire_time` is deprecated for optimizing outputs
	ExpireTime pulumi.StringOutput `pulumi:"expireTime"`
	// Indicate whether the load balancer is intranet mode.(Default: `"false"`)
	Internal pulumi.BoolOutput `pulumi:"internal"`
	// It is a nested type which documented below.
	IpSets LBIpSetArrayOutput  `pulumi:"ipSets"`
	Name   pulumi.StringOutput `pulumi:"name"`
	// The IP address of intranet IP. It is `""` if `internal` is `false`.
	PrivateIp pulumi.StringOutput `pulumi:"privateIp"`
	// The remarks of the load balancer. (Default: `""`).
	Remark pulumi.StringOutput `pulumi:"remark"`
	// The ID of the associated security group. The securityGroup only takes effect for ULB instances of requestProxy mode and extranet mode at present.
	SecurityGroup pulumi.StringOutput `pulumi:"securityGroup"`
	// The ID of subnet that intranet load balancer belongs to. This argument is not required if default subnet.
	SubnetId pulumi.StringOutput `pulumi:"subnetId"`
	// A tag assigned to load balancer, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag pulumi.StringPtrOutput `pulumi:"tag"`
	// The ID of the VPC linked to the Load balancer, This argument is not required if default VPC.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
}

Provides a Load Balancer resource.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ulb.NewLB(ctx, "web", &ulb.LBArgs{
			Tag: pulumi.String("tf-example"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

LB can be imported using the `id`, e.g.

```sh

$ pulumi import ucloud:ulb/lB:LB example ulb-abc123456

```

func GetLB

func GetLB(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LBState, opts ...pulumi.ResourceOption) (*LB, error)

GetLB gets an existing LB 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 NewLB

func NewLB(ctx *pulumi.Context,
	name string, args *LBArgs, opts ...pulumi.ResourceOption) (*LB, error)

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

func (*LB) ElementType

func (*LB) ElementType() reflect.Type

func (*LB) ToLBOutput

func (i *LB) ToLBOutput() LBOutput

func (*LB) ToLBOutputWithContext

func (i *LB) ToLBOutputWithContext(ctx context.Context) LBOutput

func (*LB) ToLBPtrOutput

func (i *LB) ToLBPtrOutput() LBPtrOutput

func (*LB) ToLBPtrOutputWithContext

func (i *LB) ToLBPtrOutputWithContext(ctx context.Context) LBPtrOutput

type LBArgs

type LBArgs struct {
	// , argument `chargeType` is deprecated for optimizing parameters.
	//
	// Deprecated: attribute `charge_type` is deprecated for optimizing parameters
	ChargeType pulumi.StringPtrInput
	// Indicate whether the load balancer is intranet mode.(Default: `"false"`)
	Internal pulumi.BoolPtrInput
	Name     pulumi.StringPtrInput
	// The remarks of the load balancer. (Default: `""`).
	Remark pulumi.StringPtrInput
	// The ID of the associated security group. The securityGroup only takes effect for ULB instances of requestProxy mode and extranet mode at present.
	SecurityGroup pulumi.StringPtrInput
	// The ID of subnet that intranet load balancer belongs to. This argument is not required if default subnet.
	SubnetId pulumi.StringPtrInput
	// A tag assigned to load balancer, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag pulumi.StringPtrInput
	// The ID of the VPC linked to the Load balancer, This argument is not required if default VPC.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a LB resource.

func (LBArgs) ElementType

func (LBArgs) ElementType() reflect.Type

type LBArray

type LBArray []LBInput

func (LBArray) ElementType

func (LBArray) ElementType() reflect.Type

func (LBArray) ToLBArrayOutput

func (i LBArray) ToLBArrayOutput() LBArrayOutput

func (LBArray) ToLBArrayOutputWithContext

func (i LBArray) ToLBArrayOutputWithContext(ctx context.Context) LBArrayOutput

type LBArrayInput

type LBArrayInput interface {
	pulumi.Input

	ToLBArrayOutput() LBArrayOutput
	ToLBArrayOutputWithContext(context.Context) LBArrayOutput
}

LBArrayInput is an input type that accepts LBArray and LBArrayOutput values. You can construct a concrete instance of `LBArrayInput` via:

LBArray{ LBArgs{...} }

type LBArrayOutput

type LBArrayOutput struct{ *pulumi.OutputState }

func (LBArrayOutput) ElementType

func (LBArrayOutput) ElementType() reflect.Type

func (LBArrayOutput) Index

func (LBArrayOutput) ToLBArrayOutput

func (o LBArrayOutput) ToLBArrayOutput() LBArrayOutput

func (LBArrayOutput) ToLBArrayOutputWithContext

func (o LBArrayOutput) ToLBArrayOutputWithContext(ctx context.Context) LBArrayOutput

type LBAttachment

type LBAttachment struct {
	pulumi.CustomResourceState

	// The ID of a listener server.
	ListenerId pulumi.StringOutput `pulumi:"listenerId"`
	// The ID of a load balancer.
	LoadBalancerId pulumi.StringOutput `pulumi:"loadBalancerId"`
	// The listening port of the backend server, range: 1-65535, (Default: `80`). Backend server port have the following restrictions: If the LB listener type is `requestProxy`, the backend serve can add different ports to implement different service instances of the same IP. Else if LB listener type is `packetsTransmit`, the port of the backend server must be consistent with the LB listening port.
	Port pulumi.IntPtrOutput `pulumi:"port"`
	// The private ip address for backend servers.
	PrivateIp pulumi.StringOutput `pulumi:"privateIp"`
	// The ID of a backend server.
	ResourceId pulumi.StringOutput `pulumi:"resourceId"`
	// , attribute `resourceType` is deprecated for optimizing parameters.
	//
	// Deprecated: attribute `resource_type` is deprecated for optimizing parameters
	ResourceType pulumi.StringOutput `pulumi:"resourceType"`
	// The status of backend servers. Possible values are: `normalRunning`, `exceptionRunning`.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Load Balancer Attachment resource for attaching Load Balancer to UHost Instance, etc.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/uhost"
"github.com/pulumi/pulumi-ucloud/sdk/go/ucloud/ulb"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "cn-bj2-04"
		opt1 := "^CentOS 6.5 64"
		opt2 := "base"
		defaultImage, err := uhost.GetImage(ctx, &uhost.GetImageArgs{
			AvailabilityZone: &opt0,
			NameRegex:        &opt1,
			ImageType:        &opt2,
		}, nil)
		if err != nil {
			return err
		}
		webLB, err := ulb.NewLB(ctx, "webLB", &ulb.LBArgs{
			Tag: pulumi.String("tf-example"),
		})
		if err != nil {
			return err
		}
		defaultLBListener, err := ulb.NewLBListener(ctx, "defaultLBListener", &ulb.LBListenerArgs{
			LoadBalancerId: webLB.ID(),
			Protocol:       pulumi.String("http"),
		})
		if err != nil {
			return err
		}
		webInstance, err := uhost.NewInstance(ctx, "webInstance", &uhost.InstanceArgs{
			InstanceType:     pulumi.String("n-basic-2"),
			AvailabilityZone: pulumi.String("cn-bj2-04"),
			RootPassword:     pulumi.String("wA1234567"),
			ImageId:          pulumi.String(defaultImage.Images[0].Id),
			Tag:              pulumi.String("tf-example"),
		})
		if err != nil {
			return err
		}
		_, err = ulb.NewLBAttachment(ctx, "example", &ulb.LBAttachmentArgs{
			LoadBalancerId: webLB.ID(),
			ListenerId:     defaultLBListener.ID(),
			ResourceId:     webInstance.ID(),
			Port:           pulumi.Int(80),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

LB Listener can be imported using the `id`, e.g.

```sh

$ pulumi import ucloud:ulb/lBAttachment:LBAttachment example backend-abcdefg

```

func GetLBAttachment

func GetLBAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LBAttachmentState, opts ...pulumi.ResourceOption) (*LBAttachment, error)

GetLBAttachment gets an existing LBAttachment 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 NewLBAttachment

func NewLBAttachment(ctx *pulumi.Context,
	name string, args *LBAttachmentArgs, opts ...pulumi.ResourceOption) (*LBAttachment, error)

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

func (*LBAttachment) ElementType

func (*LBAttachment) ElementType() reflect.Type

func (*LBAttachment) ToLBAttachmentOutput

func (i *LBAttachment) ToLBAttachmentOutput() LBAttachmentOutput

func (*LBAttachment) ToLBAttachmentOutputWithContext

func (i *LBAttachment) ToLBAttachmentOutputWithContext(ctx context.Context) LBAttachmentOutput

func (*LBAttachment) ToLBAttachmentPtrOutput

func (i *LBAttachment) ToLBAttachmentPtrOutput() LBAttachmentPtrOutput

func (*LBAttachment) ToLBAttachmentPtrOutputWithContext

func (i *LBAttachment) ToLBAttachmentPtrOutputWithContext(ctx context.Context) LBAttachmentPtrOutput

type LBAttachmentArgs

type LBAttachmentArgs struct {
	// The ID of a listener server.
	ListenerId pulumi.StringInput
	// The ID of a load balancer.
	LoadBalancerId pulumi.StringInput
	// The listening port of the backend server, range: 1-65535, (Default: `80`). Backend server port have the following restrictions: If the LB listener type is `requestProxy`, the backend serve can add different ports to implement different service instances of the same IP. Else if LB listener type is `packetsTransmit`, the port of the backend server must be consistent with the LB listening port.
	Port pulumi.IntPtrInput
	// The ID of a backend server.
	ResourceId pulumi.StringInput
	// , attribute `resourceType` is deprecated for optimizing parameters.
	//
	// Deprecated: attribute `resource_type` is deprecated for optimizing parameters
	ResourceType pulumi.StringPtrInput
}

The set of arguments for constructing a LBAttachment resource.

func (LBAttachmentArgs) ElementType

func (LBAttachmentArgs) ElementType() reflect.Type

type LBAttachmentArray

type LBAttachmentArray []LBAttachmentInput

func (LBAttachmentArray) ElementType

func (LBAttachmentArray) ElementType() reflect.Type

func (LBAttachmentArray) ToLBAttachmentArrayOutput

func (i LBAttachmentArray) ToLBAttachmentArrayOutput() LBAttachmentArrayOutput

func (LBAttachmentArray) ToLBAttachmentArrayOutputWithContext

func (i LBAttachmentArray) ToLBAttachmentArrayOutputWithContext(ctx context.Context) LBAttachmentArrayOutput

type LBAttachmentArrayInput

type LBAttachmentArrayInput interface {
	pulumi.Input

	ToLBAttachmentArrayOutput() LBAttachmentArrayOutput
	ToLBAttachmentArrayOutputWithContext(context.Context) LBAttachmentArrayOutput
}

LBAttachmentArrayInput is an input type that accepts LBAttachmentArray and LBAttachmentArrayOutput values. You can construct a concrete instance of `LBAttachmentArrayInput` via:

LBAttachmentArray{ LBAttachmentArgs{...} }

type LBAttachmentArrayOutput

type LBAttachmentArrayOutput struct{ *pulumi.OutputState }

func (LBAttachmentArrayOutput) ElementType

func (LBAttachmentArrayOutput) ElementType() reflect.Type

func (LBAttachmentArrayOutput) Index

func (LBAttachmentArrayOutput) ToLBAttachmentArrayOutput

func (o LBAttachmentArrayOutput) ToLBAttachmentArrayOutput() LBAttachmentArrayOutput

func (LBAttachmentArrayOutput) ToLBAttachmentArrayOutputWithContext

func (o LBAttachmentArrayOutput) ToLBAttachmentArrayOutputWithContext(ctx context.Context) LBAttachmentArrayOutput

type LBAttachmentInput

type LBAttachmentInput interface {
	pulumi.Input

	ToLBAttachmentOutput() LBAttachmentOutput
	ToLBAttachmentOutputWithContext(ctx context.Context) LBAttachmentOutput
}

type LBAttachmentMap

type LBAttachmentMap map[string]LBAttachmentInput

func (LBAttachmentMap) ElementType

func (LBAttachmentMap) ElementType() reflect.Type

func (LBAttachmentMap) ToLBAttachmentMapOutput

func (i LBAttachmentMap) ToLBAttachmentMapOutput() LBAttachmentMapOutput

func (LBAttachmentMap) ToLBAttachmentMapOutputWithContext

func (i LBAttachmentMap) ToLBAttachmentMapOutputWithContext(ctx context.Context) LBAttachmentMapOutput

type LBAttachmentMapInput

type LBAttachmentMapInput interface {
	pulumi.Input

	ToLBAttachmentMapOutput() LBAttachmentMapOutput
	ToLBAttachmentMapOutputWithContext(context.Context) LBAttachmentMapOutput
}

LBAttachmentMapInput is an input type that accepts LBAttachmentMap and LBAttachmentMapOutput values. You can construct a concrete instance of `LBAttachmentMapInput` via:

LBAttachmentMap{ "key": LBAttachmentArgs{...} }

type LBAttachmentMapOutput

type LBAttachmentMapOutput struct{ *pulumi.OutputState }

func (LBAttachmentMapOutput) ElementType

func (LBAttachmentMapOutput) ElementType() reflect.Type

func (LBAttachmentMapOutput) MapIndex

func (LBAttachmentMapOutput) ToLBAttachmentMapOutput

func (o LBAttachmentMapOutput) ToLBAttachmentMapOutput() LBAttachmentMapOutput

func (LBAttachmentMapOutput) ToLBAttachmentMapOutputWithContext

func (o LBAttachmentMapOutput) ToLBAttachmentMapOutputWithContext(ctx context.Context) LBAttachmentMapOutput

type LBAttachmentOutput

type LBAttachmentOutput struct {
	*pulumi.OutputState
}

func (LBAttachmentOutput) ElementType

func (LBAttachmentOutput) ElementType() reflect.Type

func (LBAttachmentOutput) ToLBAttachmentOutput

func (o LBAttachmentOutput) ToLBAttachmentOutput() LBAttachmentOutput

func (LBAttachmentOutput) ToLBAttachmentOutputWithContext

func (o LBAttachmentOutput) ToLBAttachmentOutputWithContext(ctx context.Context) LBAttachmentOutput

func (LBAttachmentOutput) ToLBAttachmentPtrOutput

func (o LBAttachmentOutput) ToLBAttachmentPtrOutput() LBAttachmentPtrOutput

func (LBAttachmentOutput) ToLBAttachmentPtrOutputWithContext

func (o LBAttachmentOutput) ToLBAttachmentPtrOutputWithContext(ctx context.Context) LBAttachmentPtrOutput

type LBAttachmentPtrInput

type LBAttachmentPtrInput interface {
	pulumi.Input

	ToLBAttachmentPtrOutput() LBAttachmentPtrOutput
	ToLBAttachmentPtrOutputWithContext(ctx context.Context) LBAttachmentPtrOutput
}

type LBAttachmentPtrOutput

type LBAttachmentPtrOutput struct {
	*pulumi.OutputState
}

func (LBAttachmentPtrOutput) ElementType

func (LBAttachmentPtrOutput) ElementType() reflect.Type

func (LBAttachmentPtrOutput) ToLBAttachmentPtrOutput

func (o LBAttachmentPtrOutput) ToLBAttachmentPtrOutput() LBAttachmentPtrOutput

func (LBAttachmentPtrOutput) ToLBAttachmentPtrOutputWithContext

func (o LBAttachmentPtrOutput) ToLBAttachmentPtrOutputWithContext(ctx context.Context) LBAttachmentPtrOutput

type LBAttachmentState

type LBAttachmentState struct {
	// The ID of a listener server.
	ListenerId pulumi.StringPtrInput
	// The ID of a load balancer.
	LoadBalancerId pulumi.StringPtrInput
	// The listening port of the backend server, range: 1-65535, (Default: `80`). Backend server port have the following restrictions: If the LB listener type is `requestProxy`, the backend serve can add different ports to implement different service instances of the same IP. Else if LB listener type is `packetsTransmit`, the port of the backend server must be consistent with the LB listening port.
	Port pulumi.IntPtrInput
	// The private ip address for backend servers.
	PrivateIp pulumi.StringPtrInput
	// The ID of a backend server.
	ResourceId pulumi.StringPtrInput
	// , attribute `resourceType` is deprecated for optimizing parameters.
	//
	// Deprecated: attribute `resource_type` is deprecated for optimizing parameters
	ResourceType pulumi.StringPtrInput
	// The status of backend servers. Possible values are: `normalRunning`, `exceptionRunning`.
	Status pulumi.StringPtrInput
}

func (LBAttachmentState) ElementType

func (LBAttachmentState) ElementType() reflect.Type

type LBInput

type LBInput interface {
	pulumi.Input

	ToLBOutput() LBOutput
	ToLBOutputWithContext(ctx context.Context) LBOutput
}

type LBIpSet

type LBIpSet struct {
	// Type of Elastic IP routes.
	InternetType *string `pulumi:"internetType"`
	// Elastic IP address.
	Ip *string `pulumi:"ip"`
}

type LBIpSetArgs

type LBIpSetArgs struct {
	// Type of Elastic IP routes.
	InternetType pulumi.StringPtrInput `pulumi:"internetType"`
	// Elastic IP address.
	Ip pulumi.StringPtrInput `pulumi:"ip"`
}

func (LBIpSetArgs) ElementType

func (LBIpSetArgs) ElementType() reflect.Type

func (LBIpSetArgs) ToLBIpSetOutput

func (i LBIpSetArgs) ToLBIpSetOutput() LBIpSetOutput

func (LBIpSetArgs) ToLBIpSetOutputWithContext

func (i LBIpSetArgs) ToLBIpSetOutputWithContext(ctx context.Context) LBIpSetOutput

type LBIpSetArray

type LBIpSetArray []LBIpSetInput

func (LBIpSetArray) ElementType

func (LBIpSetArray) ElementType() reflect.Type

func (LBIpSetArray) ToLBIpSetArrayOutput

func (i LBIpSetArray) ToLBIpSetArrayOutput() LBIpSetArrayOutput

func (LBIpSetArray) ToLBIpSetArrayOutputWithContext

func (i LBIpSetArray) ToLBIpSetArrayOutputWithContext(ctx context.Context) LBIpSetArrayOutput

type LBIpSetArrayInput

type LBIpSetArrayInput interface {
	pulumi.Input

	ToLBIpSetArrayOutput() LBIpSetArrayOutput
	ToLBIpSetArrayOutputWithContext(context.Context) LBIpSetArrayOutput
}

LBIpSetArrayInput is an input type that accepts LBIpSetArray and LBIpSetArrayOutput values. You can construct a concrete instance of `LBIpSetArrayInput` via:

LBIpSetArray{ LBIpSetArgs{...} }

type LBIpSetArrayOutput

type LBIpSetArrayOutput struct{ *pulumi.OutputState }

func (LBIpSetArrayOutput) ElementType

func (LBIpSetArrayOutput) ElementType() reflect.Type

func (LBIpSetArrayOutput) Index

func (LBIpSetArrayOutput) ToLBIpSetArrayOutput

func (o LBIpSetArrayOutput) ToLBIpSetArrayOutput() LBIpSetArrayOutput

func (LBIpSetArrayOutput) ToLBIpSetArrayOutputWithContext

func (o LBIpSetArrayOutput) ToLBIpSetArrayOutputWithContext(ctx context.Context) LBIpSetArrayOutput

type LBIpSetInput

type LBIpSetInput interface {
	pulumi.Input

	ToLBIpSetOutput() LBIpSetOutput
	ToLBIpSetOutputWithContext(context.Context) LBIpSetOutput
}

LBIpSetInput is an input type that accepts LBIpSetArgs and LBIpSetOutput values. You can construct a concrete instance of `LBIpSetInput` via:

LBIpSetArgs{...}

type LBIpSetOutput

type LBIpSetOutput struct{ *pulumi.OutputState }

func (LBIpSetOutput) ElementType

func (LBIpSetOutput) ElementType() reflect.Type

func (LBIpSetOutput) InternetType

func (o LBIpSetOutput) InternetType() pulumi.StringPtrOutput

Type of Elastic IP routes.

func (LBIpSetOutput) Ip

Elastic IP address.

func (LBIpSetOutput) ToLBIpSetOutput

func (o LBIpSetOutput) ToLBIpSetOutput() LBIpSetOutput

func (LBIpSetOutput) ToLBIpSetOutputWithContext

func (o LBIpSetOutput) ToLBIpSetOutputWithContext(ctx context.Context) LBIpSetOutput

type LBListener

type LBListener struct {
	pulumi.CustomResourceState

	// Health check domain checking.
	Domain pulumi.StringOutput `pulumi:"domain"`
	// Health check method. Possible values are `port` as port checking and `path` as http checking.
	HealthCheckType pulumi.StringOutput `pulumi:"healthCheckType"`
	// Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when `listenType` is `requestProxy`, range: 60-900 when `listenType` is `packetsTransmit` (Default: `60`). The connection will be closed as soon as no response between the client and LB if it set by `0`.
	IdleTimeout pulumi.IntOutput `pulumi:"idleTimeout"`
	// The type of listener. Possible values are `requestProxy` and `packetsTransmit`. When `packetsTransmit` was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to [configuration instruction](https://docs.ucloud.cn/network/ulb/fast/createulb/vservertype).
	ListenType pulumi.StringOutput `pulumi:"listenType"`
	// The ID of load balancer instance.
	LoadBalancerId pulumi.StringOutput `pulumi:"loadBalancerId"`
	// The load balancer method in which the listener is. Possible values are: `roundrobin`, `source`, `consistentHash`, `sourcePort` , `consistentHashPort`, `weightRoundrobin` and `leastconn`. (Default: `roundrobin`).
	// - The `consistentHash`, `sourcePort` , `consistentHashPort`, `roundrobin`, `source` and `weightRoundrobin` are valid if `listenType` is `packetsTransmit`.
	// - The `roundrobin`, `source` and `weightRoundrobin` and `leastconn` are valid if `listenType` is `requestProxy`.
	Method pulumi.StringPtrOutput `pulumi:"method"`
	Name   pulumi.StringOutput    `pulumi:"name"`
	// Health check path checking.
	Path pulumi.StringOutput `pulumi:"path"`
	// Indicate whether the persistence session is enabled, it is invalid if `persistenceType` is `none`, an auto-generated string will be exported if `persistenceType` is `serverInsert`, a custom string will be exported if `persistenceType` is `userDefined`.
	Persistence pulumi.StringOutput `pulumi:"persistence"`
	// The type of session persistence of listener. Possible values are: `none` as disabled, `serverInsert` as auto-generated key and `userDefined` as customized key. (Default: `none`).
	PersistenceType pulumi.StringPtrOutput `pulumi:"persistenceType"`
	// Port opened on the listeners to receive requests, range: 1-65535. The default value: `80` as `protocol` is `http`, `443` as `protocol` is `https`, `1024` as `protocol` is `tcp` or `udp`.
	Port pulumi.IntOutput `pulumi:"port"`
	// Listener protocol. Possible values: `http`, `https`, `tcp` if `listenType` is `requestProxy`, `tcp` and `udp` if `listenType` is `packetsTransmit`.
	Protocol pulumi.StringOutput `pulumi:"protocol"`
	// Listener status. Possible values are: `allNormal` for all resource functioning well, `partNormal` for partial resource functioning well and `allException` for all resource functioning exceptional.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a Load Balancer Listener resource.

> **Note** This `listenType` only support when `protocol` is `tcp` in the extranet mode and the default value is `requestProxy`. In addition, in the extranet mode, the `listenType` is `requestProxy` if `protocol`is `http` or `https`, the `listenType` is `packetsTransmit` if `protocol`is `udp`. In the intranet mode, the `listenType` is `packetsTransmit`.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		web, err := ulb.NewLB(ctx, "web", &ulb.LBArgs{
			Tag: pulumi.String("tf-example"),
		})
		if err != nil {
			return err
		}
		_, err = ulb.NewLBListener(ctx, "example", &ulb.LBListenerArgs{
			LoadBalancerId: web.ID(),
			Protocol:       pulumi.String("http"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

LB Listener can be imported using the `id`, e.g.

```sh

$ pulumi import ucloud:ulb/lBListener:LBListener example vserver-abcdefg

```

func GetLBListener

func GetLBListener(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LBListenerState, opts ...pulumi.ResourceOption) (*LBListener, error)

GetLBListener gets an existing LBListener 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 NewLBListener

func NewLBListener(ctx *pulumi.Context,
	name string, args *LBListenerArgs, opts ...pulumi.ResourceOption) (*LBListener, error)

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

func (*LBListener) ElementType

func (*LBListener) ElementType() reflect.Type

func (*LBListener) ToLBListenerOutput

func (i *LBListener) ToLBListenerOutput() LBListenerOutput

func (*LBListener) ToLBListenerOutputWithContext

func (i *LBListener) ToLBListenerOutputWithContext(ctx context.Context) LBListenerOutput

func (*LBListener) ToLBListenerPtrOutput

func (i *LBListener) ToLBListenerPtrOutput() LBListenerPtrOutput

func (*LBListener) ToLBListenerPtrOutputWithContext

func (i *LBListener) ToLBListenerPtrOutputWithContext(ctx context.Context) LBListenerPtrOutput

type LBListenerArgs

type LBListenerArgs struct {
	// Health check domain checking.
	Domain pulumi.StringPtrInput
	// Health check method. Possible values are `port` as port checking and `path` as http checking.
	HealthCheckType pulumi.StringPtrInput
	// Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when `listenType` is `requestProxy`, range: 60-900 when `listenType` is `packetsTransmit` (Default: `60`). The connection will be closed as soon as no response between the client and LB if it set by `0`.
	IdleTimeout pulumi.IntPtrInput
	// The type of listener. Possible values are `requestProxy` and `packetsTransmit`. When `packetsTransmit` was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to [configuration instruction](https://docs.ucloud.cn/network/ulb/fast/createulb/vservertype).
	ListenType pulumi.StringPtrInput
	// The ID of load balancer instance.
	LoadBalancerId pulumi.StringInput
	// The load balancer method in which the listener is. Possible values are: `roundrobin`, `source`, `consistentHash`, `sourcePort` , `consistentHashPort`, `weightRoundrobin` and `leastconn`. (Default: `roundrobin`).
	// - The `consistentHash`, `sourcePort` , `consistentHashPort`, `roundrobin`, `source` and `weightRoundrobin` are valid if `listenType` is `packetsTransmit`.
	// - The `roundrobin`, `source` and `weightRoundrobin` and `leastconn` are valid if `listenType` is `requestProxy`.
	Method pulumi.StringPtrInput
	Name   pulumi.StringPtrInput
	// Health check path checking.
	Path pulumi.StringPtrInput
	// Indicate whether the persistence session is enabled, it is invalid if `persistenceType` is `none`, an auto-generated string will be exported if `persistenceType` is `serverInsert`, a custom string will be exported if `persistenceType` is `userDefined`.
	Persistence pulumi.StringPtrInput
	// The type of session persistence of listener. Possible values are: `none` as disabled, `serverInsert` as auto-generated key and `userDefined` as customized key. (Default: `none`).
	PersistenceType pulumi.StringPtrInput
	// Port opened on the listeners to receive requests, range: 1-65535. The default value: `80` as `protocol` is `http`, `443` as `protocol` is `https`, `1024` as `protocol` is `tcp` or `udp`.
	Port pulumi.IntPtrInput
	// Listener protocol. Possible values: `http`, `https`, `tcp` if `listenType` is `requestProxy`, `tcp` and `udp` if `listenType` is `packetsTransmit`.
	Protocol pulumi.StringInput
}

The set of arguments for constructing a LBListener resource.

func (LBListenerArgs) ElementType

func (LBListenerArgs) ElementType() reflect.Type

type LBListenerArray

type LBListenerArray []LBListenerInput

func (LBListenerArray) ElementType

func (LBListenerArray) ElementType() reflect.Type

func (LBListenerArray) ToLBListenerArrayOutput

func (i LBListenerArray) ToLBListenerArrayOutput() LBListenerArrayOutput

func (LBListenerArray) ToLBListenerArrayOutputWithContext

func (i LBListenerArray) ToLBListenerArrayOutputWithContext(ctx context.Context) LBListenerArrayOutput

type LBListenerArrayInput

type LBListenerArrayInput interface {
	pulumi.Input

	ToLBListenerArrayOutput() LBListenerArrayOutput
	ToLBListenerArrayOutputWithContext(context.Context) LBListenerArrayOutput
}

LBListenerArrayInput is an input type that accepts LBListenerArray and LBListenerArrayOutput values. You can construct a concrete instance of `LBListenerArrayInput` via:

LBListenerArray{ LBListenerArgs{...} }

type LBListenerArrayOutput

type LBListenerArrayOutput struct{ *pulumi.OutputState }

func (LBListenerArrayOutput) ElementType

func (LBListenerArrayOutput) ElementType() reflect.Type

func (LBListenerArrayOutput) Index

func (LBListenerArrayOutput) ToLBListenerArrayOutput

func (o LBListenerArrayOutput) ToLBListenerArrayOutput() LBListenerArrayOutput

func (LBListenerArrayOutput) ToLBListenerArrayOutputWithContext

func (o LBListenerArrayOutput) ToLBListenerArrayOutputWithContext(ctx context.Context) LBListenerArrayOutput

type LBListenerInput

type LBListenerInput interface {
	pulumi.Input

	ToLBListenerOutput() LBListenerOutput
	ToLBListenerOutputWithContext(ctx context.Context) LBListenerOutput
}

type LBListenerMap

type LBListenerMap map[string]LBListenerInput

func (LBListenerMap) ElementType

func (LBListenerMap) ElementType() reflect.Type

func (LBListenerMap) ToLBListenerMapOutput

func (i LBListenerMap) ToLBListenerMapOutput() LBListenerMapOutput

func (LBListenerMap) ToLBListenerMapOutputWithContext

func (i LBListenerMap) ToLBListenerMapOutputWithContext(ctx context.Context) LBListenerMapOutput

type LBListenerMapInput

type LBListenerMapInput interface {
	pulumi.Input

	ToLBListenerMapOutput() LBListenerMapOutput
	ToLBListenerMapOutputWithContext(context.Context) LBListenerMapOutput
}

LBListenerMapInput is an input type that accepts LBListenerMap and LBListenerMapOutput values. You can construct a concrete instance of `LBListenerMapInput` via:

LBListenerMap{ "key": LBListenerArgs{...} }

type LBListenerMapOutput

type LBListenerMapOutput struct{ *pulumi.OutputState }

func (LBListenerMapOutput) ElementType

func (LBListenerMapOutput) ElementType() reflect.Type

func (LBListenerMapOutput) MapIndex

func (LBListenerMapOutput) ToLBListenerMapOutput

func (o LBListenerMapOutput) ToLBListenerMapOutput() LBListenerMapOutput

func (LBListenerMapOutput) ToLBListenerMapOutputWithContext

func (o LBListenerMapOutput) ToLBListenerMapOutputWithContext(ctx context.Context) LBListenerMapOutput

type LBListenerOutput

type LBListenerOutput struct {
	*pulumi.OutputState
}

func (LBListenerOutput) ElementType

func (LBListenerOutput) ElementType() reflect.Type

func (LBListenerOutput) ToLBListenerOutput

func (o LBListenerOutput) ToLBListenerOutput() LBListenerOutput

func (LBListenerOutput) ToLBListenerOutputWithContext

func (o LBListenerOutput) ToLBListenerOutputWithContext(ctx context.Context) LBListenerOutput

func (LBListenerOutput) ToLBListenerPtrOutput

func (o LBListenerOutput) ToLBListenerPtrOutput() LBListenerPtrOutput

func (LBListenerOutput) ToLBListenerPtrOutputWithContext

func (o LBListenerOutput) ToLBListenerPtrOutputWithContext(ctx context.Context) LBListenerPtrOutput

type LBListenerPtrInput

type LBListenerPtrInput interface {
	pulumi.Input

	ToLBListenerPtrOutput() LBListenerPtrOutput
	ToLBListenerPtrOutputWithContext(ctx context.Context) LBListenerPtrOutput
}

type LBListenerPtrOutput

type LBListenerPtrOutput struct {
	*pulumi.OutputState
}

func (LBListenerPtrOutput) ElementType

func (LBListenerPtrOutput) ElementType() reflect.Type

func (LBListenerPtrOutput) ToLBListenerPtrOutput

func (o LBListenerPtrOutput) ToLBListenerPtrOutput() LBListenerPtrOutput

func (LBListenerPtrOutput) ToLBListenerPtrOutputWithContext

func (o LBListenerPtrOutput) ToLBListenerPtrOutputWithContext(ctx context.Context) LBListenerPtrOutput

type LBListenerState

type LBListenerState struct {
	// Health check domain checking.
	Domain pulumi.StringPtrInput
	// Health check method. Possible values are `port` as port checking and `path` as http checking.
	HealthCheckType pulumi.StringPtrInput
	// Keep alive timeout of the connection between the client and LB, measured in second. Range: 0-86400 when `listenType` is `requestProxy`, range: 60-900 when `listenType` is `packetsTransmit` (Default: `60`). The connection will be closed as soon as no response between the client and LB if it set by `0`.
	IdleTimeout pulumi.IntPtrInput
	// The type of listener. Possible values are `requestProxy` and `packetsTransmit`. When `packetsTransmit` was specified, you need to config the instances by yourself if the instances attach to the load balancer. You may refer to [configuration instruction](https://docs.ucloud.cn/network/ulb/fast/createulb/vservertype).
	ListenType pulumi.StringPtrInput
	// The ID of load balancer instance.
	LoadBalancerId pulumi.StringPtrInput
	// The load balancer method in which the listener is. Possible values are: `roundrobin`, `source`, `consistentHash`, `sourcePort` , `consistentHashPort`, `weightRoundrobin` and `leastconn`. (Default: `roundrobin`).
	// - The `consistentHash`, `sourcePort` , `consistentHashPort`, `roundrobin`, `source` and `weightRoundrobin` are valid if `listenType` is `packetsTransmit`.
	// - The `roundrobin`, `source` and `weightRoundrobin` and `leastconn` are valid if `listenType` is `requestProxy`.
	Method pulumi.StringPtrInput
	Name   pulumi.StringPtrInput
	// Health check path checking.
	Path pulumi.StringPtrInput
	// Indicate whether the persistence session is enabled, it is invalid if `persistenceType` is `none`, an auto-generated string will be exported if `persistenceType` is `serverInsert`, a custom string will be exported if `persistenceType` is `userDefined`.
	Persistence pulumi.StringPtrInput
	// The type of session persistence of listener. Possible values are: `none` as disabled, `serverInsert` as auto-generated key and `userDefined` as customized key. (Default: `none`).
	PersistenceType pulumi.StringPtrInput
	// Port opened on the listeners to receive requests, range: 1-65535. The default value: `80` as `protocol` is `http`, `443` as `protocol` is `https`, `1024` as `protocol` is `tcp` or `udp`.
	Port pulumi.IntPtrInput
	// Listener protocol. Possible values: `http`, `https`, `tcp` if `listenType` is `requestProxy`, `tcp` and `udp` if `listenType` is `packetsTransmit`.
	Protocol pulumi.StringPtrInput
	// Listener status. Possible values are: `allNormal` for all resource functioning well, `partNormal` for partial resource functioning well and `allException` for all resource functioning exceptional.
	Status pulumi.StringPtrInput
}

func (LBListenerState) ElementType

func (LBListenerState) ElementType() reflect.Type

type LBMap

type LBMap map[string]LBInput

func (LBMap) ElementType

func (LBMap) ElementType() reflect.Type

func (LBMap) ToLBMapOutput

func (i LBMap) ToLBMapOutput() LBMapOutput

func (LBMap) ToLBMapOutputWithContext

func (i LBMap) ToLBMapOutputWithContext(ctx context.Context) LBMapOutput

type LBMapInput

type LBMapInput interface {
	pulumi.Input

	ToLBMapOutput() LBMapOutput
	ToLBMapOutputWithContext(context.Context) LBMapOutput
}

LBMapInput is an input type that accepts LBMap and LBMapOutput values. You can construct a concrete instance of `LBMapInput` via:

LBMap{ "key": LBArgs{...} }

type LBMapOutput

type LBMapOutput struct{ *pulumi.OutputState }

func (LBMapOutput) ElementType

func (LBMapOutput) ElementType() reflect.Type

func (LBMapOutput) MapIndex

func (o LBMapOutput) MapIndex(k pulumi.StringInput) LBOutput

func (LBMapOutput) ToLBMapOutput

func (o LBMapOutput) ToLBMapOutput() LBMapOutput

func (LBMapOutput) ToLBMapOutputWithContext

func (o LBMapOutput) ToLBMapOutputWithContext(ctx context.Context) LBMapOutput

type LBOutput

type LBOutput struct {
	*pulumi.OutputState
}

func (LBOutput) ElementType

func (LBOutput) ElementType() reflect.Type

func (LBOutput) ToLBOutput

func (o LBOutput) ToLBOutput() LBOutput

func (LBOutput) ToLBOutputWithContext

func (o LBOutput) ToLBOutputWithContext(ctx context.Context) LBOutput

func (LBOutput) ToLBPtrOutput

func (o LBOutput) ToLBPtrOutput() LBPtrOutput

func (LBOutput) ToLBPtrOutputWithContext

func (o LBOutput) ToLBPtrOutputWithContext(ctx context.Context) LBPtrOutput

type LBPtrInput

type LBPtrInput interface {
	pulumi.Input

	ToLBPtrOutput() LBPtrOutput
	ToLBPtrOutputWithContext(ctx context.Context) LBPtrOutput
}

type LBPtrOutput

type LBPtrOutput struct {
	*pulumi.OutputState
}

func (LBPtrOutput) ElementType

func (LBPtrOutput) ElementType() reflect.Type

func (LBPtrOutput) ToLBPtrOutput

func (o LBPtrOutput) ToLBPtrOutput() LBPtrOutput

func (LBPtrOutput) ToLBPtrOutputWithContext

func (o LBPtrOutput) ToLBPtrOutputWithContext(ctx context.Context) LBPtrOutput

type LBRule

type LBRule struct {
	pulumi.CustomResourceState

	// The IDs of the backend servers where rule applies, this argument is populated base on the `backendId` responded from `lbAttachment` create.
	BackendIds pulumi.StringArrayOutput `pulumi:"backendIds"`
	// The domain of content forward matching fields. `path` and `domain` cannot coexist. `path` and `domain` must be filled in one.
	Domain pulumi.StringPtrOutput `pulumi:"domain"`
	// The ID of a listener server.
	ListenerId pulumi.StringOutput `pulumi:"listenerId"`
	// The ID of a load balancer.
	LoadBalancerId pulumi.StringOutput `pulumi:"loadBalancerId"`
	// The path of Content forward matching fields. `path` and `domain` cannot coexist. `path` and `domain` must be filled in one.
	Path pulumi.StringPtrOutput `pulumi:"path"`
}

Provides a Load Balancer Rule resource to add content forwarding policies for Load Balancer backend resource.

> **Note** The Load Balancer Rule can only be define while the `protocol` of lb listener is one of HTTP and HTTPS. In addition, should set one of `domain` and `path` if defined.

## Import

LB Listener can be imported using the `id`, e.g.

```sh

$ pulumi import ucloud:ulb/lBRule:LBRule example rule-abcdefg

```

func GetLBRule

func GetLBRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LBRuleState, opts ...pulumi.ResourceOption) (*LBRule, error)

GetLBRule gets an existing LBRule 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 NewLBRule

func NewLBRule(ctx *pulumi.Context,
	name string, args *LBRuleArgs, opts ...pulumi.ResourceOption) (*LBRule, error)

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

func (*LBRule) ElementType

func (*LBRule) ElementType() reflect.Type

func (*LBRule) ToLBRuleOutput

func (i *LBRule) ToLBRuleOutput() LBRuleOutput

func (*LBRule) ToLBRuleOutputWithContext

func (i *LBRule) ToLBRuleOutputWithContext(ctx context.Context) LBRuleOutput

func (*LBRule) ToLBRulePtrOutput

func (i *LBRule) ToLBRulePtrOutput() LBRulePtrOutput

func (*LBRule) ToLBRulePtrOutputWithContext

func (i *LBRule) ToLBRulePtrOutputWithContext(ctx context.Context) LBRulePtrOutput

type LBRuleArgs

type LBRuleArgs struct {
	// The IDs of the backend servers where rule applies, this argument is populated base on the `backendId` responded from `lbAttachment` create.
	BackendIds pulumi.StringArrayInput
	// The domain of content forward matching fields. `path` and `domain` cannot coexist. `path` and `domain` must be filled in one.
	Domain pulumi.StringPtrInput
	// The ID of a listener server.
	ListenerId pulumi.StringInput
	// The ID of a load balancer.
	LoadBalancerId pulumi.StringInput
	// The path of Content forward matching fields. `path` and `domain` cannot coexist. `path` and `domain` must be filled in one.
	Path pulumi.StringPtrInput
}

The set of arguments for constructing a LBRule resource.

func (LBRuleArgs) ElementType

func (LBRuleArgs) ElementType() reflect.Type

type LBRuleArray

type LBRuleArray []LBRuleInput

func (LBRuleArray) ElementType

func (LBRuleArray) ElementType() reflect.Type

func (LBRuleArray) ToLBRuleArrayOutput

func (i LBRuleArray) ToLBRuleArrayOutput() LBRuleArrayOutput

func (LBRuleArray) ToLBRuleArrayOutputWithContext

func (i LBRuleArray) ToLBRuleArrayOutputWithContext(ctx context.Context) LBRuleArrayOutput

type LBRuleArrayInput

type LBRuleArrayInput interface {
	pulumi.Input

	ToLBRuleArrayOutput() LBRuleArrayOutput
	ToLBRuleArrayOutputWithContext(context.Context) LBRuleArrayOutput
}

LBRuleArrayInput is an input type that accepts LBRuleArray and LBRuleArrayOutput values. You can construct a concrete instance of `LBRuleArrayInput` via:

LBRuleArray{ LBRuleArgs{...} }

type LBRuleArrayOutput

type LBRuleArrayOutput struct{ *pulumi.OutputState }

func (LBRuleArrayOutput) ElementType

func (LBRuleArrayOutput) ElementType() reflect.Type

func (LBRuleArrayOutput) Index

func (LBRuleArrayOutput) ToLBRuleArrayOutput

func (o LBRuleArrayOutput) ToLBRuleArrayOutput() LBRuleArrayOutput

func (LBRuleArrayOutput) ToLBRuleArrayOutputWithContext

func (o LBRuleArrayOutput) ToLBRuleArrayOutputWithContext(ctx context.Context) LBRuleArrayOutput

type LBRuleInput

type LBRuleInput interface {
	pulumi.Input

	ToLBRuleOutput() LBRuleOutput
	ToLBRuleOutputWithContext(ctx context.Context) LBRuleOutput
}

type LBRuleMap

type LBRuleMap map[string]LBRuleInput

func (LBRuleMap) ElementType

func (LBRuleMap) ElementType() reflect.Type

func (LBRuleMap) ToLBRuleMapOutput

func (i LBRuleMap) ToLBRuleMapOutput() LBRuleMapOutput

func (LBRuleMap) ToLBRuleMapOutputWithContext

func (i LBRuleMap) ToLBRuleMapOutputWithContext(ctx context.Context) LBRuleMapOutput

type LBRuleMapInput

type LBRuleMapInput interface {
	pulumi.Input

	ToLBRuleMapOutput() LBRuleMapOutput
	ToLBRuleMapOutputWithContext(context.Context) LBRuleMapOutput
}

LBRuleMapInput is an input type that accepts LBRuleMap and LBRuleMapOutput values. You can construct a concrete instance of `LBRuleMapInput` via:

LBRuleMap{ "key": LBRuleArgs{...} }

type LBRuleMapOutput

type LBRuleMapOutput struct{ *pulumi.OutputState }

func (LBRuleMapOutput) ElementType

func (LBRuleMapOutput) ElementType() reflect.Type

func (LBRuleMapOutput) MapIndex

func (LBRuleMapOutput) ToLBRuleMapOutput

func (o LBRuleMapOutput) ToLBRuleMapOutput() LBRuleMapOutput

func (LBRuleMapOutput) ToLBRuleMapOutputWithContext

func (o LBRuleMapOutput) ToLBRuleMapOutputWithContext(ctx context.Context) LBRuleMapOutput

type LBRuleOutput

type LBRuleOutput struct {
	*pulumi.OutputState
}

func (LBRuleOutput) ElementType

func (LBRuleOutput) ElementType() reflect.Type

func (LBRuleOutput) ToLBRuleOutput

func (o LBRuleOutput) ToLBRuleOutput() LBRuleOutput

func (LBRuleOutput) ToLBRuleOutputWithContext

func (o LBRuleOutput) ToLBRuleOutputWithContext(ctx context.Context) LBRuleOutput

func (LBRuleOutput) ToLBRulePtrOutput

func (o LBRuleOutput) ToLBRulePtrOutput() LBRulePtrOutput

func (LBRuleOutput) ToLBRulePtrOutputWithContext

func (o LBRuleOutput) ToLBRulePtrOutputWithContext(ctx context.Context) LBRulePtrOutput

type LBRulePtrInput

type LBRulePtrInput interface {
	pulumi.Input

	ToLBRulePtrOutput() LBRulePtrOutput
	ToLBRulePtrOutputWithContext(ctx context.Context) LBRulePtrOutput
}

type LBRulePtrOutput

type LBRulePtrOutput struct {
	*pulumi.OutputState
}

func (LBRulePtrOutput) ElementType

func (LBRulePtrOutput) ElementType() reflect.Type

func (LBRulePtrOutput) ToLBRulePtrOutput

func (o LBRulePtrOutput) ToLBRulePtrOutput() LBRulePtrOutput

func (LBRulePtrOutput) ToLBRulePtrOutputWithContext

func (o LBRulePtrOutput) ToLBRulePtrOutputWithContext(ctx context.Context) LBRulePtrOutput

type LBRuleState

type LBRuleState struct {
	// The IDs of the backend servers where rule applies, this argument is populated base on the `backendId` responded from `lbAttachment` create.
	BackendIds pulumi.StringArrayInput
	// The domain of content forward matching fields. `path` and `domain` cannot coexist. `path` and `domain` must be filled in one.
	Domain pulumi.StringPtrInput
	// The ID of a listener server.
	ListenerId pulumi.StringPtrInput
	// The ID of a load balancer.
	LoadBalancerId pulumi.StringPtrInput
	// The path of Content forward matching fields. `path` and `domain` cannot coexist. `path` and `domain` must be filled in one.
	Path pulumi.StringPtrInput
}

func (LBRuleState) ElementType

func (LBRuleState) ElementType() reflect.Type

type LBSsl

type LBSsl struct {
	pulumi.CustomResourceState

	// The content of the CA certificate about ssl certificate.
	CaCert pulumi.StringPtrOutput `pulumi:"caCert"`
	// The time of creation for lb ssl, formatted in RFC3339 time string.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	Name       pulumi.StringOutput `pulumi:"name"`
	// The content of the private key about ssl certificate.
	PrivateKey pulumi.StringOutput `pulumi:"privateKey"`
	// The content of the user certificate about ssl certificate.
	UserCert pulumi.StringOutput `pulumi:"userCert"`
}

Provides a Load Balancer SSL certificate resource.

func GetLBSsl

func GetLBSsl(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LBSslState, opts ...pulumi.ResourceOption) (*LBSsl, error)

GetLBSsl gets an existing LBSsl 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 NewLBSsl

func NewLBSsl(ctx *pulumi.Context,
	name string, args *LBSslArgs, opts ...pulumi.ResourceOption) (*LBSsl, error)

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

func (*LBSsl) ElementType

func (*LBSsl) ElementType() reflect.Type

func (*LBSsl) ToLBSslOutput

func (i *LBSsl) ToLBSslOutput() LBSslOutput

func (*LBSsl) ToLBSslOutputWithContext

func (i *LBSsl) ToLBSslOutputWithContext(ctx context.Context) LBSslOutput

func (*LBSsl) ToLBSslPtrOutput

func (i *LBSsl) ToLBSslPtrOutput() LBSslPtrOutput

func (*LBSsl) ToLBSslPtrOutputWithContext

func (i *LBSsl) ToLBSslPtrOutputWithContext(ctx context.Context) LBSslPtrOutput

type LBSslArgs

type LBSslArgs struct {
	// The content of the CA certificate about ssl certificate.
	CaCert pulumi.StringPtrInput
	Name   pulumi.StringPtrInput
	// The content of the private key about ssl certificate.
	PrivateKey pulumi.StringInput
	// The content of the user certificate about ssl certificate.
	UserCert pulumi.StringInput
}

The set of arguments for constructing a LBSsl resource.

func (LBSslArgs) ElementType

func (LBSslArgs) ElementType() reflect.Type

type LBSslArray

type LBSslArray []LBSslInput

func (LBSslArray) ElementType

func (LBSslArray) ElementType() reflect.Type

func (LBSslArray) ToLBSslArrayOutput

func (i LBSslArray) ToLBSslArrayOutput() LBSslArrayOutput

func (LBSslArray) ToLBSslArrayOutputWithContext

func (i LBSslArray) ToLBSslArrayOutputWithContext(ctx context.Context) LBSslArrayOutput

type LBSslArrayInput

type LBSslArrayInput interface {
	pulumi.Input

	ToLBSslArrayOutput() LBSslArrayOutput
	ToLBSslArrayOutputWithContext(context.Context) LBSslArrayOutput
}

LBSslArrayInput is an input type that accepts LBSslArray and LBSslArrayOutput values. You can construct a concrete instance of `LBSslArrayInput` via:

LBSslArray{ LBSslArgs{...} }

type LBSslArrayOutput

type LBSslArrayOutput struct{ *pulumi.OutputState }

func (LBSslArrayOutput) ElementType

func (LBSslArrayOutput) ElementType() reflect.Type

func (LBSslArrayOutput) Index

func (LBSslArrayOutput) ToLBSslArrayOutput

func (o LBSslArrayOutput) ToLBSslArrayOutput() LBSslArrayOutput

func (LBSslArrayOutput) ToLBSslArrayOutputWithContext

func (o LBSslArrayOutput) ToLBSslArrayOutputWithContext(ctx context.Context) LBSslArrayOutput

type LBSslAttachment

type LBSslAttachment struct {
	pulumi.CustomResourceState

	// The ID of listener servers.
	ListenerId     pulumi.StringOutput `pulumi:"listenerId"`
	LoadBalancerId pulumi.StringOutput `pulumi:"loadBalancerId"`
	// The ID of SSL certificate.
	SslId pulumi.StringOutput `pulumi:"sslId"`
}

Provides a Load Balancer SSL attachment resource for attaching SSL certificate to Load Balancer Listener.

func GetLBSslAttachment

func GetLBSslAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LBSslAttachmentState, opts ...pulumi.ResourceOption) (*LBSslAttachment, error)

GetLBSslAttachment gets an existing LBSslAttachment 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 NewLBSslAttachment

func NewLBSslAttachment(ctx *pulumi.Context,
	name string, args *LBSslAttachmentArgs, opts ...pulumi.ResourceOption) (*LBSslAttachment, error)

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

func (*LBSslAttachment) ElementType

func (*LBSslAttachment) ElementType() reflect.Type

func (*LBSslAttachment) ToLBSslAttachmentOutput

func (i *LBSslAttachment) ToLBSslAttachmentOutput() LBSslAttachmentOutput

func (*LBSslAttachment) ToLBSslAttachmentOutputWithContext

func (i *LBSslAttachment) ToLBSslAttachmentOutputWithContext(ctx context.Context) LBSslAttachmentOutput

func (*LBSslAttachment) ToLBSslAttachmentPtrOutput

func (i *LBSslAttachment) ToLBSslAttachmentPtrOutput() LBSslAttachmentPtrOutput

func (*LBSslAttachment) ToLBSslAttachmentPtrOutputWithContext

func (i *LBSslAttachment) ToLBSslAttachmentPtrOutputWithContext(ctx context.Context) LBSslAttachmentPtrOutput

type LBSslAttachmentArgs

type LBSslAttachmentArgs struct {
	// The ID of listener servers.
	ListenerId     pulumi.StringInput
	LoadBalancerId pulumi.StringInput
	// The ID of SSL certificate.
	SslId pulumi.StringInput
}

The set of arguments for constructing a LBSslAttachment resource.

func (LBSslAttachmentArgs) ElementType

func (LBSslAttachmentArgs) ElementType() reflect.Type

type LBSslAttachmentArray

type LBSslAttachmentArray []LBSslAttachmentInput

func (LBSslAttachmentArray) ElementType

func (LBSslAttachmentArray) ElementType() reflect.Type

func (LBSslAttachmentArray) ToLBSslAttachmentArrayOutput

func (i LBSslAttachmentArray) ToLBSslAttachmentArrayOutput() LBSslAttachmentArrayOutput

func (LBSslAttachmentArray) ToLBSslAttachmentArrayOutputWithContext

func (i LBSslAttachmentArray) ToLBSslAttachmentArrayOutputWithContext(ctx context.Context) LBSslAttachmentArrayOutput

type LBSslAttachmentArrayInput

type LBSslAttachmentArrayInput interface {
	pulumi.Input

	ToLBSslAttachmentArrayOutput() LBSslAttachmentArrayOutput
	ToLBSslAttachmentArrayOutputWithContext(context.Context) LBSslAttachmentArrayOutput
}

LBSslAttachmentArrayInput is an input type that accepts LBSslAttachmentArray and LBSslAttachmentArrayOutput values. You can construct a concrete instance of `LBSslAttachmentArrayInput` via:

LBSslAttachmentArray{ LBSslAttachmentArgs{...} }

type LBSslAttachmentArrayOutput

type LBSslAttachmentArrayOutput struct{ *pulumi.OutputState }

func (LBSslAttachmentArrayOutput) ElementType

func (LBSslAttachmentArrayOutput) ElementType() reflect.Type

func (LBSslAttachmentArrayOutput) Index

func (LBSslAttachmentArrayOutput) ToLBSslAttachmentArrayOutput

func (o LBSslAttachmentArrayOutput) ToLBSslAttachmentArrayOutput() LBSslAttachmentArrayOutput

func (LBSslAttachmentArrayOutput) ToLBSslAttachmentArrayOutputWithContext

func (o LBSslAttachmentArrayOutput) ToLBSslAttachmentArrayOutputWithContext(ctx context.Context) LBSslAttachmentArrayOutput

type LBSslAttachmentInput

type LBSslAttachmentInput interface {
	pulumi.Input

	ToLBSslAttachmentOutput() LBSslAttachmentOutput
	ToLBSslAttachmentOutputWithContext(ctx context.Context) LBSslAttachmentOutput
}

type LBSslAttachmentMap

type LBSslAttachmentMap map[string]LBSslAttachmentInput

func (LBSslAttachmentMap) ElementType

func (LBSslAttachmentMap) ElementType() reflect.Type

func (LBSslAttachmentMap) ToLBSslAttachmentMapOutput

func (i LBSslAttachmentMap) ToLBSslAttachmentMapOutput() LBSslAttachmentMapOutput

func (LBSslAttachmentMap) ToLBSslAttachmentMapOutputWithContext

func (i LBSslAttachmentMap) ToLBSslAttachmentMapOutputWithContext(ctx context.Context) LBSslAttachmentMapOutput

type LBSslAttachmentMapInput

type LBSslAttachmentMapInput interface {
	pulumi.Input

	ToLBSslAttachmentMapOutput() LBSslAttachmentMapOutput
	ToLBSslAttachmentMapOutputWithContext(context.Context) LBSslAttachmentMapOutput
}

LBSslAttachmentMapInput is an input type that accepts LBSslAttachmentMap and LBSslAttachmentMapOutput values. You can construct a concrete instance of `LBSslAttachmentMapInput` via:

LBSslAttachmentMap{ "key": LBSslAttachmentArgs{...} }

type LBSslAttachmentMapOutput

type LBSslAttachmentMapOutput struct{ *pulumi.OutputState }

func (LBSslAttachmentMapOutput) ElementType

func (LBSslAttachmentMapOutput) ElementType() reflect.Type

func (LBSslAttachmentMapOutput) MapIndex

func (LBSslAttachmentMapOutput) ToLBSslAttachmentMapOutput

func (o LBSslAttachmentMapOutput) ToLBSslAttachmentMapOutput() LBSslAttachmentMapOutput

func (LBSslAttachmentMapOutput) ToLBSslAttachmentMapOutputWithContext

func (o LBSslAttachmentMapOutput) ToLBSslAttachmentMapOutputWithContext(ctx context.Context) LBSslAttachmentMapOutput

type LBSslAttachmentOutput

type LBSslAttachmentOutput struct {
	*pulumi.OutputState
}

func (LBSslAttachmentOutput) ElementType

func (LBSslAttachmentOutput) ElementType() reflect.Type

func (LBSslAttachmentOutput) ToLBSslAttachmentOutput

func (o LBSslAttachmentOutput) ToLBSslAttachmentOutput() LBSslAttachmentOutput

func (LBSslAttachmentOutput) ToLBSslAttachmentOutputWithContext

func (o LBSslAttachmentOutput) ToLBSslAttachmentOutputWithContext(ctx context.Context) LBSslAttachmentOutput

func (LBSslAttachmentOutput) ToLBSslAttachmentPtrOutput

func (o LBSslAttachmentOutput) ToLBSslAttachmentPtrOutput() LBSslAttachmentPtrOutput

func (LBSslAttachmentOutput) ToLBSslAttachmentPtrOutputWithContext

func (o LBSslAttachmentOutput) ToLBSslAttachmentPtrOutputWithContext(ctx context.Context) LBSslAttachmentPtrOutput

type LBSslAttachmentPtrInput

type LBSslAttachmentPtrInput interface {
	pulumi.Input

	ToLBSslAttachmentPtrOutput() LBSslAttachmentPtrOutput
	ToLBSslAttachmentPtrOutputWithContext(ctx context.Context) LBSslAttachmentPtrOutput
}

type LBSslAttachmentPtrOutput

type LBSslAttachmentPtrOutput struct {
	*pulumi.OutputState
}

func (LBSslAttachmentPtrOutput) ElementType

func (LBSslAttachmentPtrOutput) ElementType() reflect.Type

func (LBSslAttachmentPtrOutput) ToLBSslAttachmentPtrOutput

func (o LBSslAttachmentPtrOutput) ToLBSslAttachmentPtrOutput() LBSslAttachmentPtrOutput

func (LBSslAttachmentPtrOutput) ToLBSslAttachmentPtrOutputWithContext

func (o LBSslAttachmentPtrOutput) ToLBSslAttachmentPtrOutputWithContext(ctx context.Context) LBSslAttachmentPtrOutput

type LBSslAttachmentState

type LBSslAttachmentState struct {
	// The ID of listener servers.
	ListenerId     pulumi.StringPtrInput
	LoadBalancerId pulumi.StringPtrInput
	// The ID of SSL certificate.
	SslId pulumi.StringPtrInput
}

func (LBSslAttachmentState) ElementType

func (LBSslAttachmentState) ElementType() reflect.Type

type LBSslInput

type LBSslInput interface {
	pulumi.Input

	ToLBSslOutput() LBSslOutput
	ToLBSslOutputWithContext(ctx context.Context) LBSslOutput
}

type LBSslMap

type LBSslMap map[string]LBSslInput

func (LBSslMap) ElementType

func (LBSslMap) ElementType() reflect.Type

func (LBSslMap) ToLBSslMapOutput

func (i LBSslMap) ToLBSslMapOutput() LBSslMapOutput

func (LBSslMap) ToLBSslMapOutputWithContext

func (i LBSslMap) ToLBSslMapOutputWithContext(ctx context.Context) LBSslMapOutput

type LBSslMapInput

type LBSslMapInput interface {
	pulumi.Input

	ToLBSslMapOutput() LBSslMapOutput
	ToLBSslMapOutputWithContext(context.Context) LBSslMapOutput
}

LBSslMapInput is an input type that accepts LBSslMap and LBSslMapOutput values. You can construct a concrete instance of `LBSslMapInput` via:

LBSslMap{ "key": LBSslArgs{...} }

type LBSslMapOutput

type LBSslMapOutput struct{ *pulumi.OutputState }

func (LBSslMapOutput) ElementType

func (LBSslMapOutput) ElementType() reflect.Type

func (LBSslMapOutput) MapIndex

func (LBSslMapOutput) ToLBSslMapOutput

func (o LBSslMapOutput) ToLBSslMapOutput() LBSslMapOutput

func (LBSslMapOutput) ToLBSslMapOutputWithContext

func (o LBSslMapOutput) ToLBSslMapOutputWithContext(ctx context.Context) LBSslMapOutput

type LBSslOutput

type LBSslOutput struct {
	*pulumi.OutputState
}

func (LBSslOutput) ElementType

func (LBSslOutput) ElementType() reflect.Type

func (LBSslOutput) ToLBSslOutput

func (o LBSslOutput) ToLBSslOutput() LBSslOutput

func (LBSslOutput) ToLBSslOutputWithContext

func (o LBSslOutput) ToLBSslOutputWithContext(ctx context.Context) LBSslOutput

func (LBSslOutput) ToLBSslPtrOutput

func (o LBSslOutput) ToLBSslPtrOutput() LBSslPtrOutput

func (LBSslOutput) ToLBSslPtrOutputWithContext

func (o LBSslOutput) ToLBSslPtrOutputWithContext(ctx context.Context) LBSslPtrOutput

type LBSslPtrInput

type LBSslPtrInput interface {
	pulumi.Input

	ToLBSslPtrOutput() LBSslPtrOutput
	ToLBSslPtrOutputWithContext(ctx context.Context) LBSslPtrOutput
}

type LBSslPtrOutput

type LBSslPtrOutput struct {
	*pulumi.OutputState
}

func (LBSslPtrOutput) ElementType

func (LBSslPtrOutput) ElementType() reflect.Type

func (LBSslPtrOutput) ToLBSslPtrOutput

func (o LBSslPtrOutput) ToLBSslPtrOutput() LBSslPtrOutput

func (LBSslPtrOutput) ToLBSslPtrOutputWithContext

func (o LBSslPtrOutput) ToLBSslPtrOutputWithContext(ctx context.Context) LBSslPtrOutput

type LBSslState

type LBSslState struct {
	// The content of the CA certificate about ssl certificate.
	CaCert pulumi.StringPtrInput
	// The time of creation for lb ssl, formatted in RFC3339 time string.
	CreateTime pulumi.StringPtrInput
	Name       pulumi.StringPtrInput
	// The content of the private key about ssl certificate.
	PrivateKey pulumi.StringPtrInput
	// The content of the user certificate about ssl certificate.
	UserCert pulumi.StringPtrInput
}

func (LBSslState) ElementType

func (LBSslState) ElementType() reflect.Type

type LBState

type LBState struct {
	// , argument `chargeType` is deprecated for optimizing parameters.
	//
	// Deprecated: attribute `charge_type` is deprecated for optimizing parameters
	ChargeType pulumi.StringPtrInput
	// The time of creation for load balancer, formatted in RFC3339 time string.
	CreateTime pulumi.StringPtrInput
	// **Deprecated** attribute `expireTime` is deprecated for optimizing outputs.
	//
	// Deprecated: attribute `expire_time` is deprecated for optimizing outputs
	ExpireTime pulumi.StringPtrInput
	// Indicate whether the load balancer is intranet mode.(Default: `"false"`)
	Internal pulumi.BoolPtrInput
	// It is a nested type which documented below.
	IpSets LBIpSetArrayInput
	Name   pulumi.StringPtrInput
	// The IP address of intranet IP. It is `""` if `internal` is `false`.
	PrivateIp pulumi.StringPtrInput
	// The remarks of the load balancer. (Default: `""`).
	Remark pulumi.StringPtrInput
	// The ID of the associated security group. The securityGroup only takes effect for ULB instances of requestProxy mode and extranet mode at present.
	SecurityGroup pulumi.StringPtrInput
	// The ID of subnet that intranet load balancer belongs to. This argument is not required if default subnet.
	SubnetId pulumi.StringPtrInput
	// A tag assigned to load balancer, which contains at most 63 characters and only support Chinese, English, numbers, '-', '_', and '.'. If it is not filled in or a empty string is filled in, then default tag will be assigned. (Default: `Default`).
	Tag pulumi.StringPtrInput
	// The ID of the VPC linked to the Load balancer, This argument is not required if default VPC.
	VpcId pulumi.StringPtrInput
}

func (LBState) ElementType

func (LBState) ElementType() reflect.Type

type LookupLBArgs

type LookupLBArgs struct {
	// A list of Load Balancer IDs, all the LBs belong to this region will be retrieved if the ID is `[]`.
	Ids []string `pulumi:"ids"`
	// A regex string to filter resulting lbs by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The ID of subnet that intrant load balancer belongs to.
	SubnetId *string `pulumi:"subnetId"`
	// The ID of the VPC linked to the Load Balancers.
	VpcId *string `pulumi:"vpcId"`
}

A collection of arguments for invoking getLB.

type LookupLBAttachmentArgs

type LookupLBAttachmentArgs struct {
	// A list of LB Attachment IDs, all the LB Attachments belong to the Load Balancer listener will be retrieved if the ID is `[]`.
	Ids []string `pulumi:"ids"`
	// The ID of a listener server.
	ListenerId string `pulumi:"listenerId"`
	// The ID of a load balancer.
	LoadBalancerId string  `pulumi:"loadBalancerId"`
	OutputFile     *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getLBAttachment.

type LookupLBAttachmentResult

type LookupLBAttachmentResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id  string   `pulumi:"id"`
	Ids []string `pulumi:"ids"`
	// It is a nested type which documented below.
	LbAttachments  []GetLBAttachmentLbAttachment `pulumi:"lbAttachments"`
	ListenerId     string                        `pulumi:"listenerId"`
	LoadBalancerId string                        `pulumi:"loadBalancerId"`
	OutputFile     *string                       `pulumi:"outputFile"`
	// Total number of LB Attachments that satisfy the condition.
	TotalCount int `pulumi:"totalCount"`
}

A collection of values returned by getLBAttachment.

func LookupLBAttachment

func LookupLBAttachment(ctx *pulumi.Context, args *LookupLBAttachmentArgs, opts ...pulumi.InvokeOption) (*LookupLBAttachmentResult, error)

This data source provides a list of Load Balancer Attachment resources according to their Load Balancer Attachment ID.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ulb.LookupLBAttachment(ctx, &ulb.LookupLBAttachmentArgs{
			LoadBalancerId: "ulb-xxx",
			ListenerId:     "vserver-xxx",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("first", example.LbAttachments[0].Id)
		return nil
	})
}

```

type LookupLBResult

type LookupLBResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id  string   `pulumi:"id"`
	Ids []string `pulumi:"ids"`
	// It is a nested type which documented below.
	Lbs        []GetLBLb `pulumi:"lbs"`
	NameRegex  *string   `pulumi:"nameRegex"`
	OutputFile *string   `pulumi:"outputFile"`
	// (Optional) The ID of subnet that intrant load balancer belongs to.
	SubnetId string `pulumi:"subnetId"`
	// Total number of Load Balancers that satisfy the condition.
	TotalCount int `pulumi:"totalCount"`
	// The ID of the VPC linked to the Load Balancers.
	VpcId string `pulumi:"vpcId"`
}

A collection of values returned by getLB.

func LookupLB

func LookupLB(ctx *pulumi.Context, args *LookupLBArgs, opts ...pulumi.InvokeOption) (*LookupLBResult, error)

This data source provides a list of Load Balancer resources according to their Load Balancer ID, VPC ID and Subnet ID.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ulb.LookupLB(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("first", example.Lbs[0].Id)
		return nil
	})
}

```

type LookupLBSslArgs

type LookupLBSslArgs struct {
	// A list of LB SSL certificate resource IDs, all the LB SSL certificate resources in the current region will be retrieved if the ID is `[]`.
	Ids []string `pulumi:"ids"`
	// A regex string to filter resulting LB SSL by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getLBSsl.

type LookupLBSslResult

type LookupLBSslResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id  string   `pulumi:"id"`
	Ids []string `pulumi:"ids"`
	// It is a nested type which documented below.
	LbSsls     []GetLBSslLbSsl `pulumi:"lbSsls"`
	NameRegex  *string         `pulumi:"nameRegex"`
	OutputFile *string         `pulumi:"outputFile"`
	// Total number of LB SSL certificate resources that satisfy the condition.
	TotalCount int `pulumi:"totalCount"`
}

A collection of values returned by getLBSsl.

func LookupLBSsl

func LookupLBSsl(ctx *pulumi.Context, args *LookupLBSslArgs, opts ...pulumi.InvokeOption) (*LookupLBSslResult, error)

This data source provides a list of Load Balancer SSL certificate resources according to their Load Balancer SSL certificate resource ID and name.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := ulb.LookupLBSsl(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("first", example.LbSsls[0].Id)
		return nil
	})
}

```

Jump to

Keyboard shortcuts

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