clb

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 19, 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 Attachment

type Attachment struct {
	pulumi.CustomResourceState

	// ID of the CLB.
	ClbId pulumi.StringOutput `pulumi:"clbId"`
	// ID of the CLB listener.
	ListenerId pulumi.StringOutput `pulumi:"listenerId"`
	// Type of protocol within the listener.
	ProtocolType pulumi.StringOutput `pulumi:"protocolType"`
	// ID of the CLB listener rule. Only supports listeners of `HTTPS` and `HTTP` protocol.
	RuleId pulumi.StringPtrOutput `pulumi:"ruleId"`
	// Information of the backends to be attached.
	Targets AttachmentTargetArrayOutput `pulumi:"targets"`
}

Provides a resource to create a CLB attachment.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewAttachment(ctx, "foo", &Clb.AttachmentArgs{
			ClbId:      pulumi.String("lb-k2zjp9lv"),
			ListenerId: pulumi.String("lbl-hh141sn9"),
			RuleId:     pulumi.String("loc-4xxr2cy7"),
			Targets: clb.AttachmentTargetArray{
				&clb.AttachmentTargetArgs{
					InstanceId: pulumi.String("ins-1flbqyp8"),
					Port:       pulumi.Int(80),
					Weight:     pulumi.Int(10),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CLB attachment can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Clb/attachment:Attachment foo loc-4xxr2cy7#lbl-hh141sn9#lb-7a0t6zqb

```

func GetAttachment

func GetAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *AttachmentState, opts ...pulumi.ResourceOption) (*Attachment, error)

GetAttachment gets an existing Attachment 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 NewAttachment

func NewAttachment(ctx *pulumi.Context,
	name string, args *AttachmentArgs, opts ...pulumi.ResourceOption) (*Attachment, error)

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

func (*Attachment) ElementType

func (*Attachment) ElementType() reflect.Type

func (*Attachment) ToAttachmentOutput

func (i *Attachment) ToAttachmentOutput() AttachmentOutput

func (*Attachment) ToAttachmentOutputWithContext

func (i *Attachment) ToAttachmentOutputWithContext(ctx context.Context) AttachmentOutput

type AttachmentArgs

type AttachmentArgs struct {
	// ID of the CLB.
	ClbId pulumi.StringInput
	// ID of the CLB listener.
	ListenerId pulumi.StringInput
	// ID of the CLB listener rule. Only supports listeners of `HTTPS` and `HTTP` protocol.
	RuleId pulumi.StringPtrInput
	// Information of the backends to be attached.
	Targets AttachmentTargetArrayInput
}

The set of arguments for constructing a Attachment resource.

func (AttachmentArgs) ElementType

func (AttachmentArgs) ElementType() reflect.Type

type AttachmentArray

type AttachmentArray []AttachmentInput

func (AttachmentArray) ElementType

func (AttachmentArray) ElementType() reflect.Type

func (AttachmentArray) ToAttachmentArrayOutput

func (i AttachmentArray) ToAttachmentArrayOutput() AttachmentArrayOutput

func (AttachmentArray) ToAttachmentArrayOutputWithContext

func (i AttachmentArray) ToAttachmentArrayOutputWithContext(ctx context.Context) AttachmentArrayOutput

type AttachmentArrayInput

type AttachmentArrayInput interface {
	pulumi.Input

	ToAttachmentArrayOutput() AttachmentArrayOutput
	ToAttachmentArrayOutputWithContext(context.Context) AttachmentArrayOutput
}

AttachmentArrayInput is an input type that accepts AttachmentArray and AttachmentArrayOutput values. You can construct a concrete instance of `AttachmentArrayInput` via:

AttachmentArray{ AttachmentArgs{...} }

type AttachmentArrayOutput

type AttachmentArrayOutput struct{ *pulumi.OutputState }

func (AttachmentArrayOutput) ElementType

func (AttachmentArrayOutput) ElementType() reflect.Type

func (AttachmentArrayOutput) Index

func (AttachmentArrayOutput) ToAttachmentArrayOutput

func (o AttachmentArrayOutput) ToAttachmentArrayOutput() AttachmentArrayOutput

func (AttachmentArrayOutput) ToAttachmentArrayOutputWithContext

func (o AttachmentArrayOutput) ToAttachmentArrayOutputWithContext(ctx context.Context) AttachmentArrayOutput

type AttachmentInput

type AttachmentInput interface {
	pulumi.Input

	ToAttachmentOutput() AttachmentOutput
	ToAttachmentOutputWithContext(ctx context.Context) AttachmentOutput
}

type AttachmentMap

type AttachmentMap map[string]AttachmentInput

func (AttachmentMap) ElementType

func (AttachmentMap) ElementType() reflect.Type

func (AttachmentMap) ToAttachmentMapOutput

func (i AttachmentMap) ToAttachmentMapOutput() AttachmentMapOutput

func (AttachmentMap) ToAttachmentMapOutputWithContext

func (i AttachmentMap) ToAttachmentMapOutputWithContext(ctx context.Context) AttachmentMapOutput

type AttachmentMapInput

type AttachmentMapInput interface {
	pulumi.Input

	ToAttachmentMapOutput() AttachmentMapOutput
	ToAttachmentMapOutputWithContext(context.Context) AttachmentMapOutput
}

AttachmentMapInput is an input type that accepts AttachmentMap and AttachmentMapOutput values. You can construct a concrete instance of `AttachmentMapInput` via:

AttachmentMap{ "key": AttachmentArgs{...} }

type AttachmentMapOutput

type AttachmentMapOutput struct{ *pulumi.OutputState }

func (AttachmentMapOutput) ElementType

func (AttachmentMapOutput) ElementType() reflect.Type

func (AttachmentMapOutput) MapIndex

func (AttachmentMapOutput) ToAttachmentMapOutput

func (o AttachmentMapOutput) ToAttachmentMapOutput() AttachmentMapOutput

func (AttachmentMapOutput) ToAttachmentMapOutputWithContext

func (o AttachmentMapOutput) ToAttachmentMapOutputWithContext(ctx context.Context) AttachmentMapOutput

type AttachmentOutput

type AttachmentOutput struct{ *pulumi.OutputState }

func (AttachmentOutput) ClbId

ID of the CLB.

func (AttachmentOutput) ElementType

func (AttachmentOutput) ElementType() reflect.Type

func (AttachmentOutput) ListenerId

func (o AttachmentOutput) ListenerId() pulumi.StringOutput

ID of the CLB listener.

func (AttachmentOutput) ProtocolType

func (o AttachmentOutput) ProtocolType() pulumi.StringOutput

Type of protocol within the listener.

func (AttachmentOutput) RuleId

ID of the CLB listener rule. Only supports listeners of `HTTPS` and `HTTP` protocol.

func (AttachmentOutput) Targets

Information of the backends to be attached.

func (AttachmentOutput) ToAttachmentOutput

func (o AttachmentOutput) ToAttachmentOutput() AttachmentOutput

func (AttachmentOutput) ToAttachmentOutputWithContext

func (o AttachmentOutput) ToAttachmentOutputWithContext(ctx context.Context) AttachmentOutput

type AttachmentState

type AttachmentState struct {
	// ID of the CLB.
	ClbId pulumi.StringPtrInput
	// ID of the CLB listener.
	ListenerId pulumi.StringPtrInput
	// Type of protocol within the listener.
	ProtocolType pulumi.StringPtrInput
	// ID of the CLB listener rule. Only supports listeners of `HTTPS` and `HTTP` protocol.
	RuleId pulumi.StringPtrInput
	// Information of the backends to be attached.
	Targets AttachmentTargetArrayInput
}

func (AttachmentState) ElementType

func (AttachmentState) ElementType() reflect.Type

type AttachmentTarget

type AttachmentTarget struct {
	// Eni IP address of the backend server, conflict with `instanceId` but must specify one of them.
	EniIp *string `pulumi:"eniIp"`
	// CVM Instance Id of the backend server, conflict with `eniIp` but must specify one of them.
	InstanceId *string `pulumi:"instanceId"`
	// Port of the backend server. Valid value ranges: (0~65535).
	Port int `pulumi:"port"`
	// Forwarding weight of the backend service. Valid value ranges: (0~100). defaults to `10`.
	Weight *int `pulumi:"weight"`
}

type AttachmentTargetArgs

type AttachmentTargetArgs struct {
	// Eni IP address of the backend server, conflict with `instanceId` but must specify one of them.
	EniIp pulumi.StringPtrInput `pulumi:"eniIp"`
	// CVM Instance Id of the backend server, conflict with `eniIp` but must specify one of them.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// Port of the backend server. Valid value ranges: (0~65535).
	Port pulumi.IntInput `pulumi:"port"`
	// Forwarding weight of the backend service. Valid value ranges: (0~100). defaults to `10`.
	Weight pulumi.IntPtrInput `pulumi:"weight"`
}

func (AttachmentTargetArgs) ElementType

func (AttachmentTargetArgs) ElementType() reflect.Type

func (AttachmentTargetArgs) ToAttachmentTargetOutput

func (i AttachmentTargetArgs) ToAttachmentTargetOutput() AttachmentTargetOutput

func (AttachmentTargetArgs) ToAttachmentTargetOutputWithContext

func (i AttachmentTargetArgs) ToAttachmentTargetOutputWithContext(ctx context.Context) AttachmentTargetOutput

type AttachmentTargetArray

type AttachmentTargetArray []AttachmentTargetInput

func (AttachmentTargetArray) ElementType

func (AttachmentTargetArray) ElementType() reflect.Type

func (AttachmentTargetArray) ToAttachmentTargetArrayOutput

func (i AttachmentTargetArray) ToAttachmentTargetArrayOutput() AttachmentTargetArrayOutput

func (AttachmentTargetArray) ToAttachmentTargetArrayOutputWithContext

func (i AttachmentTargetArray) ToAttachmentTargetArrayOutputWithContext(ctx context.Context) AttachmentTargetArrayOutput

type AttachmentTargetArrayInput

type AttachmentTargetArrayInput interface {
	pulumi.Input

	ToAttachmentTargetArrayOutput() AttachmentTargetArrayOutput
	ToAttachmentTargetArrayOutputWithContext(context.Context) AttachmentTargetArrayOutput
}

AttachmentTargetArrayInput is an input type that accepts AttachmentTargetArray and AttachmentTargetArrayOutput values. You can construct a concrete instance of `AttachmentTargetArrayInput` via:

AttachmentTargetArray{ AttachmentTargetArgs{...} }

type AttachmentTargetArrayOutput

type AttachmentTargetArrayOutput struct{ *pulumi.OutputState }

func (AttachmentTargetArrayOutput) ElementType

func (AttachmentTargetArrayOutput) Index

func (AttachmentTargetArrayOutput) ToAttachmentTargetArrayOutput

func (o AttachmentTargetArrayOutput) ToAttachmentTargetArrayOutput() AttachmentTargetArrayOutput

func (AttachmentTargetArrayOutput) ToAttachmentTargetArrayOutputWithContext

func (o AttachmentTargetArrayOutput) ToAttachmentTargetArrayOutputWithContext(ctx context.Context) AttachmentTargetArrayOutput

type AttachmentTargetInput

type AttachmentTargetInput interface {
	pulumi.Input

	ToAttachmentTargetOutput() AttachmentTargetOutput
	ToAttachmentTargetOutputWithContext(context.Context) AttachmentTargetOutput
}

AttachmentTargetInput is an input type that accepts AttachmentTargetArgs and AttachmentTargetOutput values. You can construct a concrete instance of `AttachmentTargetInput` via:

AttachmentTargetArgs{...}

type AttachmentTargetOutput

type AttachmentTargetOutput struct{ *pulumi.OutputState }

func (AttachmentTargetOutput) ElementType

func (AttachmentTargetOutput) ElementType() reflect.Type

func (AttachmentTargetOutput) EniIp

Eni IP address of the backend server, conflict with `instanceId` but must specify one of them.

func (AttachmentTargetOutput) InstanceId

CVM Instance Id of the backend server, conflict with `eniIp` but must specify one of them.

func (AttachmentTargetOutput) Port

Port of the backend server. Valid value ranges: (0~65535).

func (AttachmentTargetOutput) ToAttachmentTargetOutput

func (o AttachmentTargetOutput) ToAttachmentTargetOutput() AttachmentTargetOutput

func (AttachmentTargetOutput) ToAttachmentTargetOutputWithContext

func (o AttachmentTargetOutput) ToAttachmentTargetOutputWithContext(ctx context.Context) AttachmentTargetOutput

func (AttachmentTargetOutput) Weight

Forwarding weight of the backend service. Valid value ranges: (0~100). defaults to `10`.

type CustomizedConfig

type CustomizedConfig struct {
	pulumi.CustomResourceState

	// Content of Customized Config.
	ConfigContent pulumi.StringOutput `pulumi:"configContent"`
	// Name of Customized Config.
	ConfigName pulumi.StringOutput `pulumi:"configName"`
	// Create time of Customized Config.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// List of LoadBalancer Ids.
	LoadBalancerIds pulumi.StringArrayOutput `pulumi:"loadBalancerIds"`
	// Update time of Customized Config.
	UpdateTime pulumi.StringOutput `pulumi:"updateTime"`
}

Provides a resource to create a CLB customized config.

## Example Usage

```go package main

import (

"fmt"

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewCustomizedConfig(ctx, "foo", &Clb.CustomizedConfigArgs{
			ConfigContent: pulumi.String(fmt.Sprintf("%v%v", "client_max_body_size 224M;\n", "client_body_timeout 60s;\n")),
			ConfigName:    pulumi.String("helloWorld"),
			LoadBalancerIds: pulumi.StringArray{
				pulumi.Any(tencentcloud_clb_instance.Internal_clb.Id),
				pulumi.Any(tencentcloud_clb_instance.Internal_clb2.Id),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CLB customized config can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Clb/customizedConfig:CustomizedConfig foo pz-diowqstq

```

func GetCustomizedConfig

func GetCustomizedConfig(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *CustomizedConfigState, opts ...pulumi.ResourceOption) (*CustomizedConfig, error)

GetCustomizedConfig gets an existing CustomizedConfig 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 NewCustomizedConfig

func NewCustomizedConfig(ctx *pulumi.Context,
	name string, args *CustomizedConfigArgs, opts ...pulumi.ResourceOption) (*CustomizedConfig, error)

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

func (*CustomizedConfig) ElementType

func (*CustomizedConfig) ElementType() reflect.Type

func (*CustomizedConfig) ToCustomizedConfigOutput

func (i *CustomizedConfig) ToCustomizedConfigOutput() CustomizedConfigOutput

func (*CustomizedConfig) ToCustomizedConfigOutputWithContext

func (i *CustomizedConfig) ToCustomizedConfigOutputWithContext(ctx context.Context) CustomizedConfigOutput

type CustomizedConfigArgs

type CustomizedConfigArgs struct {
	// Content of Customized Config.
	ConfigContent pulumi.StringInput
	// Name of Customized Config.
	ConfigName pulumi.StringInput
	// List of LoadBalancer Ids.
	LoadBalancerIds pulumi.StringArrayInput
}

The set of arguments for constructing a CustomizedConfig resource.

func (CustomizedConfigArgs) ElementType

func (CustomizedConfigArgs) ElementType() reflect.Type

type CustomizedConfigArray

type CustomizedConfigArray []CustomizedConfigInput

func (CustomizedConfigArray) ElementType

func (CustomizedConfigArray) ElementType() reflect.Type

func (CustomizedConfigArray) ToCustomizedConfigArrayOutput

func (i CustomizedConfigArray) ToCustomizedConfigArrayOutput() CustomizedConfigArrayOutput

func (CustomizedConfigArray) ToCustomizedConfigArrayOutputWithContext

func (i CustomizedConfigArray) ToCustomizedConfigArrayOutputWithContext(ctx context.Context) CustomizedConfigArrayOutput

type CustomizedConfigArrayInput

type CustomizedConfigArrayInput interface {
	pulumi.Input

	ToCustomizedConfigArrayOutput() CustomizedConfigArrayOutput
	ToCustomizedConfigArrayOutputWithContext(context.Context) CustomizedConfigArrayOutput
}

CustomizedConfigArrayInput is an input type that accepts CustomizedConfigArray and CustomizedConfigArrayOutput values. You can construct a concrete instance of `CustomizedConfigArrayInput` via:

CustomizedConfigArray{ CustomizedConfigArgs{...} }

type CustomizedConfigArrayOutput

type CustomizedConfigArrayOutput struct{ *pulumi.OutputState }

func (CustomizedConfigArrayOutput) ElementType

func (CustomizedConfigArrayOutput) Index

func (CustomizedConfigArrayOutput) ToCustomizedConfigArrayOutput

func (o CustomizedConfigArrayOutput) ToCustomizedConfigArrayOutput() CustomizedConfigArrayOutput

func (CustomizedConfigArrayOutput) ToCustomizedConfigArrayOutputWithContext

func (o CustomizedConfigArrayOutput) ToCustomizedConfigArrayOutputWithContext(ctx context.Context) CustomizedConfigArrayOutput

type CustomizedConfigInput

type CustomizedConfigInput interface {
	pulumi.Input

	ToCustomizedConfigOutput() CustomizedConfigOutput
	ToCustomizedConfigOutputWithContext(ctx context.Context) CustomizedConfigOutput
}

type CustomizedConfigMap

type CustomizedConfigMap map[string]CustomizedConfigInput

func (CustomizedConfigMap) ElementType

func (CustomizedConfigMap) ElementType() reflect.Type

func (CustomizedConfigMap) ToCustomizedConfigMapOutput

func (i CustomizedConfigMap) ToCustomizedConfigMapOutput() CustomizedConfigMapOutput

func (CustomizedConfigMap) ToCustomizedConfigMapOutputWithContext

func (i CustomizedConfigMap) ToCustomizedConfigMapOutputWithContext(ctx context.Context) CustomizedConfigMapOutput

type CustomizedConfigMapInput

type CustomizedConfigMapInput interface {
	pulumi.Input

	ToCustomizedConfigMapOutput() CustomizedConfigMapOutput
	ToCustomizedConfigMapOutputWithContext(context.Context) CustomizedConfigMapOutput
}

CustomizedConfigMapInput is an input type that accepts CustomizedConfigMap and CustomizedConfigMapOutput values. You can construct a concrete instance of `CustomizedConfigMapInput` via:

CustomizedConfigMap{ "key": CustomizedConfigArgs{...} }

type CustomizedConfigMapOutput

type CustomizedConfigMapOutput struct{ *pulumi.OutputState }

func (CustomizedConfigMapOutput) ElementType

func (CustomizedConfigMapOutput) ElementType() reflect.Type

func (CustomizedConfigMapOutput) MapIndex

func (CustomizedConfigMapOutput) ToCustomizedConfigMapOutput

func (o CustomizedConfigMapOutput) ToCustomizedConfigMapOutput() CustomizedConfigMapOutput

func (CustomizedConfigMapOutput) ToCustomizedConfigMapOutputWithContext

func (o CustomizedConfigMapOutput) ToCustomizedConfigMapOutputWithContext(ctx context.Context) CustomizedConfigMapOutput

type CustomizedConfigOutput

type CustomizedConfigOutput struct{ *pulumi.OutputState }

func (CustomizedConfigOutput) ConfigContent

func (o CustomizedConfigOutput) ConfigContent() pulumi.StringOutput

Content of Customized Config.

func (CustomizedConfigOutput) ConfigName

Name of Customized Config.

func (CustomizedConfigOutput) CreateTime

Create time of Customized Config.

func (CustomizedConfigOutput) ElementType

func (CustomizedConfigOutput) ElementType() reflect.Type

func (CustomizedConfigOutput) LoadBalancerIds

func (o CustomizedConfigOutput) LoadBalancerIds() pulumi.StringArrayOutput

List of LoadBalancer Ids.

func (CustomizedConfigOutput) ToCustomizedConfigOutput

func (o CustomizedConfigOutput) ToCustomizedConfigOutput() CustomizedConfigOutput

func (CustomizedConfigOutput) ToCustomizedConfigOutputWithContext

func (o CustomizedConfigOutput) ToCustomizedConfigOutputWithContext(ctx context.Context) CustomizedConfigOutput

func (CustomizedConfigOutput) UpdateTime

Update time of Customized Config.

type CustomizedConfigState

type CustomizedConfigState struct {
	// Content of Customized Config.
	ConfigContent pulumi.StringPtrInput
	// Name of Customized Config.
	ConfigName pulumi.StringPtrInput
	// Create time of Customized Config.
	CreateTime pulumi.StringPtrInput
	// List of LoadBalancer Ids.
	LoadBalancerIds pulumi.StringArrayInput
	// Update time of Customized Config.
	UpdateTime pulumi.StringPtrInput
}

func (CustomizedConfigState) ElementType

func (CustomizedConfigState) ElementType() reflect.Type

type GetAttachmentsArgs

type GetAttachmentsArgs struct {
	// ID of the CLB to be queried.
	ClbId string `pulumi:"clbId"`
	// ID of the CLB listener to be queried.
	ListenerId string `pulumi:"listenerId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the CLB listener rule. If the protocol of listener is `HTTP`/`HTTPS`, this para is required.
	RuleId *string `pulumi:"ruleId"`
}

A collection of arguments for invoking getAttachments.

type GetAttachmentsAttachmentList

type GetAttachmentsAttachmentList struct {
	// ID of the CLB to be queried.
	ClbId string `pulumi:"clbId"`
	// ID of the CLB listener to be queried.
	ListenerId string `pulumi:"listenerId"`
	// Type of protocol within the listener, and available values include `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`. NOTES: `TCP_SSL` is testing internally, please apply if you need to use.
	ProtocolType string `pulumi:"protocolType"`
	// ID of the CLB listener rule. If the protocol of listener is `HTTP`/`HTTPS`, this para is required.
	RuleId string `pulumi:"ruleId"`
	// Information of the backends to be attached.
	Targets []GetAttachmentsAttachmentListTarget `pulumi:"targets"`
}

type GetAttachmentsAttachmentListArgs

type GetAttachmentsAttachmentListArgs struct {
	// ID of the CLB to be queried.
	ClbId pulumi.StringInput `pulumi:"clbId"`
	// ID of the CLB listener to be queried.
	ListenerId pulumi.StringInput `pulumi:"listenerId"`
	// Type of protocol within the listener, and available values include `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`. NOTES: `TCP_SSL` is testing internally, please apply if you need to use.
	ProtocolType pulumi.StringInput `pulumi:"protocolType"`
	// ID of the CLB listener rule. If the protocol of listener is `HTTP`/`HTTPS`, this para is required.
	RuleId pulumi.StringInput `pulumi:"ruleId"`
	// Information of the backends to be attached.
	Targets GetAttachmentsAttachmentListTargetArrayInput `pulumi:"targets"`
}

func (GetAttachmentsAttachmentListArgs) ElementType

func (GetAttachmentsAttachmentListArgs) ToGetAttachmentsAttachmentListOutput

func (i GetAttachmentsAttachmentListArgs) ToGetAttachmentsAttachmentListOutput() GetAttachmentsAttachmentListOutput

func (GetAttachmentsAttachmentListArgs) ToGetAttachmentsAttachmentListOutputWithContext

func (i GetAttachmentsAttachmentListArgs) ToGetAttachmentsAttachmentListOutputWithContext(ctx context.Context) GetAttachmentsAttachmentListOutput

type GetAttachmentsAttachmentListArray

type GetAttachmentsAttachmentListArray []GetAttachmentsAttachmentListInput

func (GetAttachmentsAttachmentListArray) ElementType

func (GetAttachmentsAttachmentListArray) ToGetAttachmentsAttachmentListArrayOutput

func (i GetAttachmentsAttachmentListArray) ToGetAttachmentsAttachmentListArrayOutput() GetAttachmentsAttachmentListArrayOutput

func (GetAttachmentsAttachmentListArray) ToGetAttachmentsAttachmentListArrayOutputWithContext

func (i GetAttachmentsAttachmentListArray) ToGetAttachmentsAttachmentListArrayOutputWithContext(ctx context.Context) GetAttachmentsAttachmentListArrayOutput

type GetAttachmentsAttachmentListArrayInput

type GetAttachmentsAttachmentListArrayInput interface {
	pulumi.Input

	ToGetAttachmentsAttachmentListArrayOutput() GetAttachmentsAttachmentListArrayOutput
	ToGetAttachmentsAttachmentListArrayOutputWithContext(context.Context) GetAttachmentsAttachmentListArrayOutput
}

GetAttachmentsAttachmentListArrayInput is an input type that accepts GetAttachmentsAttachmentListArray and GetAttachmentsAttachmentListArrayOutput values. You can construct a concrete instance of `GetAttachmentsAttachmentListArrayInput` via:

GetAttachmentsAttachmentListArray{ GetAttachmentsAttachmentListArgs{...} }

type GetAttachmentsAttachmentListArrayOutput

type GetAttachmentsAttachmentListArrayOutput struct{ *pulumi.OutputState }

func (GetAttachmentsAttachmentListArrayOutput) ElementType

func (GetAttachmentsAttachmentListArrayOutput) Index

func (GetAttachmentsAttachmentListArrayOutput) ToGetAttachmentsAttachmentListArrayOutput

func (o GetAttachmentsAttachmentListArrayOutput) ToGetAttachmentsAttachmentListArrayOutput() GetAttachmentsAttachmentListArrayOutput

func (GetAttachmentsAttachmentListArrayOutput) ToGetAttachmentsAttachmentListArrayOutputWithContext

func (o GetAttachmentsAttachmentListArrayOutput) ToGetAttachmentsAttachmentListArrayOutputWithContext(ctx context.Context) GetAttachmentsAttachmentListArrayOutput

type GetAttachmentsAttachmentListInput

type GetAttachmentsAttachmentListInput interface {
	pulumi.Input

	ToGetAttachmentsAttachmentListOutput() GetAttachmentsAttachmentListOutput
	ToGetAttachmentsAttachmentListOutputWithContext(context.Context) GetAttachmentsAttachmentListOutput
}

GetAttachmentsAttachmentListInput is an input type that accepts GetAttachmentsAttachmentListArgs and GetAttachmentsAttachmentListOutput values. You can construct a concrete instance of `GetAttachmentsAttachmentListInput` via:

GetAttachmentsAttachmentListArgs{...}

type GetAttachmentsAttachmentListOutput

type GetAttachmentsAttachmentListOutput struct{ *pulumi.OutputState }

func (GetAttachmentsAttachmentListOutput) ClbId

ID of the CLB to be queried.

func (GetAttachmentsAttachmentListOutput) ElementType

func (GetAttachmentsAttachmentListOutput) ListenerId

ID of the CLB listener to be queried.

func (GetAttachmentsAttachmentListOutput) ProtocolType

Type of protocol within the listener, and available values include `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`. NOTES: `TCP_SSL` is testing internally, please apply if you need to use.

func (GetAttachmentsAttachmentListOutput) RuleId

ID of the CLB listener rule. If the protocol of listener is `HTTP`/`HTTPS`, this para is required.

func (GetAttachmentsAttachmentListOutput) Targets

Information of the backends to be attached.

func (GetAttachmentsAttachmentListOutput) ToGetAttachmentsAttachmentListOutput

func (o GetAttachmentsAttachmentListOutput) ToGetAttachmentsAttachmentListOutput() GetAttachmentsAttachmentListOutput

func (GetAttachmentsAttachmentListOutput) ToGetAttachmentsAttachmentListOutputWithContext

func (o GetAttachmentsAttachmentListOutput) ToGetAttachmentsAttachmentListOutputWithContext(ctx context.Context) GetAttachmentsAttachmentListOutput

type GetAttachmentsAttachmentListTarget

type GetAttachmentsAttachmentListTarget struct {
	// Id of the backend server.
	InstanceId string `pulumi:"instanceId"`
	// Port of the backend server.
	Port int `pulumi:"port"`
	// Forwarding weight of the backend service, the range of [0, 100], defaults to `10`.
	Weight int `pulumi:"weight"`
}

type GetAttachmentsAttachmentListTargetArgs

type GetAttachmentsAttachmentListTargetArgs struct {
	// Id of the backend server.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// Port of the backend server.
	Port pulumi.IntInput `pulumi:"port"`
	// Forwarding weight of the backend service, the range of [0, 100], defaults to `10`.
	Weight pulumi.IntInput `pulumi:"weight"`
}

func (GetAttachmentsAttachmentListTargetArgs) ElementType

func (GetAttachmentsAttachmentListTargetArgs) ToGetAttachmentsAttachmentListTargetOutput

func (i GetAttachmentsAttachmentListTargetArgs) ToGetAttachmentsAttachmentListTargetOutput() GetAttachmentsAttachmentListTargetOutput

func (GetAttachmentsAttachmentListTargetArgs) ToGetAttachmentsAttachmentListTargetOutputWithContext

func (i GetAttachmentsAttachmentListTargetArgs) ToGetAttachmentsAttachmentListTargetOutputWithContext(ctx context.Context) GetAttachmentsAttachmentListTargetOutput

type GetAttachmentsAttachmentListTargetArray

type GetAttachmentsAttachmentListTargetArray []GetAttachmentsAttachmentListTargetInput

func (GetAttachmentsAttachmentListTargetArray) ElementType

func (GetAttachmentsAttachmentListTargetArray) ToGetAttachmentsAttachmentListTargetArrayOutput

func (i GetAttachmentsAttachmentListTargetArray) ToGetAttachmentsAttachmentListTargetArrayOutput() GetAttachmentsAttachmentListTargetArrayOutput

func (GetAttachmentsAttachmentListTargetArray) ToGetAttachmentsAttachmentListTargetArrayOutputWithContext

func (i GetAttachmentsAttachmentListTargetArray) ToGetAttachmentsAttachmentListTargetArrayOutputWithContext(ctx context.Context) GetAttachmentsAttachmentListTargetArrayOutput

type GetAttachmentsAttachmentListTargetArrayInput

type GetAttachmentsAttachmentListTargetArrayInput interface {
	pulumi.Input

	ToGetAttachmentsAttachmentListTargetArrayOutput() GetAttachmentsAttachmentListTargetArrayOutput
	ToGetAttachmentsAttachmentListTargetArrayOutputWithContext(context.Context) GetAttachmentsAttachmentListTargetArrayOutput
}

GetAttachmentsAttachmentListTargetArrayInput is an input type that accepts GetAttachmentsAttachmentListTargetArray and GetAttachmentsAttachmentListTargetArrayOutput values. You can construct a concrete instance of `GetAttachmentsAttachmentListTargetArrayInput` via:

GetAttachmentsAttachmentListTargetArray{ GetAttachmentsAttachmentListTargetArgs{...} }

type GetAttachmentsAttachmentListTargetArrayOutput

type GetAttachmentsAttachmentListTargetArrayOutput struct{ *pulumi.OutputState }

func (GetAttachmentsAttachmentListTargetArrayOutput) ElementType

func (GetAttachmentsAttachmentListTargetArrayOutput) Index

func (GetAttachmentsAttachmentListTargetArrayOutput) ToGetAttachmentsAttachmentListTargetArrayOutput

func (o GetAttachmentsAttachmentListTargetArrayOutput) ToGetAttachmentsAttachmentListTargetArrayOutput() GetAttachmentsAttachmentListTargetArrayOutput

func (GetAttachmentsAttachmentListTargetArrayOutput) ToGetAttachmentsAttachmentListTargetArrayOutputWithContext

func (o GetAttachmentsAttachmentListTargetArrayOutput) ToGetAttachmentsAttachmentListTargetArrayOutputWithContext(ctx context.Context) GetAttachmentsAttachmentListTargetArrayOutput

type GetAttachmentsAttachmentListTargetInput

type GetAttachmentsAttachmentListTargetInput interface {
	pulumi.Input

	ToGetAttachmentsAttachmentListTargetOutput() GetAttachmentsAttachmentListTargetOutput
	ToGetAttachmentsAttachmentListTargetOutputWithContext(context.Context) GetAttachmentsAttachmentListTargetOutput
}

GetAttachmentsAttachmentListTargetInput is an input type that accepts GetAttachmentsAttachmentListTargetArgs and GetAttachmentsAttachmentListTargetOutput values. You can construct a concrete instance of `GetAttachmentsAttachmentListTargetInput` via:

GetAttachmentsAttachmentListTargetArgs{...}

type GetAttachmentsAttachmentListTargetOutput

type GetAttachmentsAttachmentListTargetOutput struct{ *pulumi.OutputState }

func (GetAttachmentsAttachmentListTargetOutput) ElementType

func (GetAttachmentsAttachmentListTargetOutput) InstanceId

Id of the backend server.

func (GetAttachmentsAttachmentListTargetOutput) Port

Port of the backend server.

func (GetAttachmentsAttachmentListTargetOutput) ToGetAttachmentsAttachmentListTargetOutput

func (o GetAttachmentsAttachmentListTargetOutput) ToGetAttachmentsAttachmentListTargetOutput() GetAttachmentsAttachmentListTargetOutput

func (GetAttachmentsAttachmentListTargetOutput) ToGetAttachmentsAttachmentListTargetOutputWithContext

func (o GetAttachmentsAttachmentListTargetOutput) ToGetAttachmentsAttachmentListTargetOutputWithContext(ctx context.Context) GetAttachmentsAttachmentListTargetOutput

func (GetAttachmentsAttachmentListTargetOutput) Weight

Forwarding weight of the backend service, the range of [0, 100], defaults to `10`.

type GetAttachmentsOutputArgs

type GetAttachmentsOutputArgs struct {
	// ID of the CLB to be queried.
	ClbId pulumi.StringInput `pulumi:"clbId"`
	// ID of the CLB listener to be queried.
	ListenerId pulumi.StringInput `pulumi:"listenerId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of the CLB listener rule. If the protocol of listener is `HTTP`/`HTTPS`, this para is required.
	RuleId pulumi.StringPtrInput `pulumi:"ruleId"`
}

A collection of arguments for invoking getAttachments.

func (GetAttachmentsOutputArgs) ElementType

func (GetAttachmentsOutputArgs) ElementType() reflect.Type

type GetAttachmentsResult

type GetAttachmentsResult struct {
	// A list of cloud load balancer attachment configurations. Each element contains the following attributes:
	AttachmentLists []GetAttachmentsAttachmentList `pulumi:"attachmentLists"`
	// ID of the CLB.
	ClbId string `pulumi:"clbId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// ID of the CLB listener.
	ListenerId       string  `pulumi:"listenerId"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the CLB listener rule.
	RuleId *string `pulumi:"ruleId"`
}

A collection of values returned by getAttachments.

func GetAttachments

func GetAttachments(ctx *pulumi.Context, args *GetAttachmentsArgs, opts ...pulumi.InvokeOption) (*GetAttachmentsResult, error)

Use this data source to query detailed information of CLB attachments

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.GetAttachments(ctx, &clb.GetAttachmentsArgs{
			ClbId:      "lb-k2zjp9lv",
			ListenerId: "lbl-hh141sn9",
			RuleId:     pulumi.StringRef("loc-4xxr2cy7"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetAttachmentsResultOutput

type GetAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getAttachments.

func (GetAttachmentsResultOutput) AttachmentLists

A list of cloud load balancer attachment configurations. Each element contains the following attributes:

func (GetAttachmentsResultOutput) ClbId

ID of the CLB.

func (GetAttachmentsResultOutput) ElementType

func (GetAttachmentsResultOutput) ElementType() reflect.Type

func (GetAttachmentsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetAttachmentsResultOutput) ListenerId

ID of the CLB listener.

func (GetAttachmentsResultOutput) ResultOutputFile

func (o GetAttachmentsResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetAttachmentsResultOutput) RuleId

ID of the CLB listener rule.

func (GetAttachmentsResultOutput) ToGetAttachmentsResultOutput

func (o GetAttachmentsResultOutput) ToGetAttachmentsResultOutput() GetAttachmentsResultOutput

func (GetAttachmentsResultOutput) ToGetAttachmentsResultOutputWithContext

func (o GetAttachmentsResultOutput) ToGetAttachmentsResultOutputWithContext(ctx context.Context) GetAttachmentsResultOutput

type GetInstancesArgs

type GetInstancesArgs struct {
	// ID of the CLB to be queried.
	ClbId *string `pulumi:"clbId"`
	// Name of the CLB to be queried.
	ClbName *string `pulumi:"clbName"`
	// Master available zone id.
	MasterZone *string `pulumi:"masterZone"`
	// Type of CLB instance, and available values include `OPEN` and `INTERNAL`.
	NetworkType *string `pulumi:"networkType"`
	// Project ID of the CLB.
	ProjectId *int `pulumi:"projectId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getInstances.

type GetInstancesClbList

type GetInstancesClbList struct {
	// IP version, only applicable to open CLB. Valid values are `IPV4`, `IPV6` and `IPv6FullChain`.
	AddressIpVersion string `pulumi:"addressIpVersion"`
	// ID of the CLB to be queried.
	ClbId string `pulumi:"clbId"`
	// Name of the CLB to be queried.
	ClbName string `pulumi:"clbName"`
	// The virtual service address table of the CLB.
	ClbVips []string `pulumi:"clbVips"`
	// Create time of the CLB.
	CreateTime string `pulumi:"createTime"`
	// Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
	InternetBandwidthMaxOut int `pulumi:"internetBandwidthMaxOut"`
	// Internet charge type, only applicable to open CLB. Valid values are `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.
	InternetChargeType string `pulumi:"internetChargeType"`
	// Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
	LocalZone bool `pulumi:"localZone"`
	// Type of CLB instance, and available values include `OPEN` and `INTERNAL`.
	NetworkType string `pulumi:"networkType"`
	// Project ID of the CLB.
	ProjectId int `pulumi:"projectId"`
	// ID set of the security groups.
	SecurityGroups []string `pulumi:"securityGroups"`
	// The status of CLB.
	Status int `pulumi:"status"`
	// Latest state transition time of CLB.
	StatusTime string `pulumi:"statusTime"`
	// ID of the subnet.
	SubnetId string `pulumi:"subnetId"`
	// The available tags within this CLB.
	Tags map[string]interface{} `pulumi:"tags"`
	// Region information of backend service are attached the CLB.
	TargetRegionInfoRegion string `pulumi:"targetRegionInfoRegion"`
	// VpcId information of backend service are attached the CLB.
	TargetRegionInfoVpcId string `pulumi:"targetRegionInfoVpcId"`
	// Network operator, only applicable to open CLB. Valid values are `CMCC`(China Mobile), `CTCC`(Telecom), `CUCC`(China Unicom) and `BGP`. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
	VipIsp string `pulumi:"vipIsp"`
	// ID of the VPC.
	VpcId string `pulumi:"vpcId"`
	// Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
	Zone string `pulumi:"zone"`
	// Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
	ZoneId int `pulumi:"zoneId"`
	// Available zone name, This field maybe null, means cannot get a valid value.
	ZoneName string `pulumi:"zoneName"`
	// Region that this available zone belong to, This field maybe null, means cannot get a valid value.
	ZoneRegion string `pulumi:"zoneRegion"`
}

type GetInstancesClbListArgs

type GetInstancesClbListArgs struct {
	// IP version, only applicable to open CLB. Valid values are `IPV4`, `IPV6` and `IPv6FullChain`.
	AddressIpVersion pulumi.StringInput `pulumi:"addressIpVersion"`
	// ID of the CLB to be queried.
	ClbId pulumi.StringInput `pulumi:"clbId"`
	// Name of the CLB to be queried.
	ClbName pulumi.StringInput `pulumi:"clbName"`
	// The virtual service address table of the CLB.
	ClbVips pulumi.StringArrayInput `pulumi:"clbVips"`
	// Create time of the CLB.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
	InternetBandwidthMaxOut pulumi.IntInput `pulumi:"internetBandwidthMaxOut"`
	// Internet charge type, only applicable to open CLB. Valid values are `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.
	InternetChargeType pulumi.StringInput `pulumi:"internetChargeType"`
	// Whether this available zone is local zone, This field maybe null, means cannot get a valid value.
	LocalZone pulumi.BoolInput `pulumi:"localZone"`
	// Type of CLB instance, and available values include `OPEN` and `INTERNAL`.
	NetworkType pulumi.StringInput `pulumi:"networkType"`
	// Project ID of the CLB.
	ProjectId pulumi.IntInput `pulumi:"projectId"`
	// ID set of the security groups.
	SecurityGroups pulumi.StringArrayInput `pulumi:"securityGroups"`
	// The status of CLB.
	Status pulumi.IntInput `pulumi:"status"`
	// Latest state transition time of CLB.
	StatusTime pulumi.StringInput `pulumi:"statusTime"`
	// ID of the subnet.
	SubnetId pulumi.StringInput `pulumi:"subnetId"`
	// The available tags within this CLB.
	Tags pulumi.MapInput `pulumi:"tags"`
	// Region information of backend service are attached the CLB.
	TargetRegionInfoRegion pulumi.StringInput `pulumi:"targetRegionInfoRegion"`
	// VpcId information of backend service are attached the CLB.
	TargetRegionInfoVpcId pulumi.StringInput `pulumi:"targetRegionInfoVpcId"`
	// Network operator, only applicable to open CLB. Valid values are `CMCC`(China Mobile), `CTCC`(Telecom), `CUCC`(China Unicom) and `BGP`. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
	VipIsp pulumi.StringInput `pulumi:"vipIsp"`
	// ID of the VPC.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// Available zone unique id(string representation), This field maybe null, means cannot get a valid value.
	Zone pulumi.StringInput `pulumi:"zone"`
	// Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.
	ZoneId pulumi.IntInput `pulumi:"zoneId"`
	// Available zone name, This field maybe null, means cannot get a valid value.
	ZoneName pulumi.StringInput `pulumi:"zoneName"`
	// Region that this available zone belong to, This field maybe null, means cannot get a valid value.
	ZoneRegion pulumi.StringInput `pulumi:"zoneRegion"`
}

func (GetInstancesClbListArgs) ElementType

func (GetInstancesClbListArgs) ElementType() reflect.Type

func (GetInstancesClbListArgs) ToGetInstancesClbListOutput

func (i GetInstancesClbListArgs) ToGetInstancesClbListOutput() GetInstancesClbListOutput

func (GetInstancesClbListArgs) ToGetInstancesClbListOutputWithContext

func (i GetInstancesClbListArgs) ToGetInstancesClbListOutputWithContext(ctx context.Context) GetInstancesClbListOutput

type GetInstancesClbListArray

type GetInstancesClbListArray []GetInstancesClbListInput

func (GetInstancesClbListArray) ElementType

func (GetInstancesClbListArray) ElementType() reflect.Type

func (GetInstancesClbListArray) ToGetInstancesClbListArrayOutput

func (i GetInstancesClbListArray) ToGetInstancesClbListArrayOutput() GetInstancesClbListArrayOutput

func (GetInstancesClbListArray) ToGetInstancesClbListArrayOutputWithContext

func (i GetInstancesClbListArray) ToGetInstancesClbListArrayOutputWithContext(ctx context.Context) GetInstancesClbListArrayOutput

type GetInstancesClbListArrayInput

type GetInstancesClbListArrayInput interface {
	pulumi.Input

	ToGetInstancesClbListArrayOutput() GetInstancesClbListArrayOutput
	ToGetInstancesClbListArrayOutputWithContext(context.Context) GetInstancesClbListArrayOutput
}

GetInstancesClbListArrayInput is an input type that accepts GetInstancesClbListArray and GetInstancesClbListArrayOutput values. You can construct a concrete instance of `GetInstancesClbListArrayInput` via:

GetInstancesClbListArray{ GetInstancesClbListArgs{...} }

type GetInstancesClbListArrayOutput

type GetInstancesClbListArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesClbListArrayOutput) ElementType

func (GetInstancesClbListArrayOutput) Index

func (GetInstancesClbListArrayOutput) ToGetInstancesClbListArrayOutput

func (o GetInstancesClbListArrayOutput) ToGetInstancesClbListArrayOutput() GetInstancesClbListArrayOutput

func (GetInstancesClbListArrayOutput) ToGetInstancesClbListArrayOutputWithContext

func (o GetInstancesClbListArrayOutput) ToGetInstancesClbListArrayOutputWithContext(ctx context.Context) GetInstancesClbListArrayOutput

type GetInstancesClbListInput

type GetInstancesClbListInput interface {
	pulumi.Input

	ToGetInstancesClbListOutput() GetInstancesClbListOutput
	ToGetInstancesClbListOutputWithContext(context.Context) GetInstancesClbListOutput
}

GetInstancesClbListInput is an input type that accepts GetInstancesClbListArgs and GetInstancesClbListOutput values. You can construct a concrete instance of `GetInstancesClbListInput` via:

GetInstancesClbListArgs{...}

type GetInstancesClbListOutput

type GetInstancesClbListOutput struct{ *pulumi.OutputState }

func (GetInstancesClbListOutput) AddressIpVersion

func (o GetInstancesClbListOutput) AddressIpVersion() pulumi.StringOutput

IP version, only applicable to open CLB. Valid values are `IPV4`, `IPV6` and `IPv6FullChain`.

func (GetInstancesClbListOutput) ClbId

ID of the CLB to be queried.

func (GetInstancesClbListOutput) ClbName

Name of the CLB to be queried.

func (GetInstancesClbListOutput) ClbVips

The virtual service address table of the CLB.

func (GetInstancesClbListOutput) CreateTime

Create time of the CLB.

func (GetInstancesClbListOutput) ElementType

func (GetInstancesClbListOutput) ElementType() reflect.Type

func (GetInstancesClbListOutput) InternetBandwidthMaxOut

func (o GetInstancesClbListOutput) InternetBandwidthMaxOut() pulumi.IntOutput

Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.

func (GetInstancesClbListOutput) InternetChargeType

func (o GetInstancesClbListOutput) InternetChargeType() pulumi.StringOutput

Internet charge type, only applicable to open CLB. Valid values are `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.

func (GetInstancesClbListOutput) LocalZone

Whether this available zone is local zone, This field maybe null, means cannot get a valid value.

func (GetInstancesClbListOutput) NetworkType

Type of CLB instance, and available values include `OPEN` and `INTERNAL`.

func (GetInstancesClbListOutput) ProjectId

Project ID of the CLB.

func (GetInstancesClbListOutput) SecurityGroups

ID set of the security groups.

func (GetInstancesClbListOutput) Status

The status of CLB.

func (GetInstancesClbListOutput) StatusTime

Latest state transition time of CLB.

func (GetInstancesClbListOutput) SubnetId

ID of the subnet.

func (GetInstancesClbListOutput) Tags

The available tags within this CLB.

func (GetInstancesClbListOutput) TargetRegionInfoRegion

func (o GetInstancesClbListOutput) TargetRegionInfoRegion() pulumi.StringOutput

Region information of backend service are attached the CLB.

func (GetInstancesClbListOutput) TargetRegionInfoVpcId

func (o GetInstancesClbListOutput) TargetRegionInfoVpcId() pulumi.StringOutput

VpcId information of backend service are attached the CLB.

func (GetInstancesClbListOutput) ToGetInstancesClbListOutput

func (o GetInstancesClbListOutput) ToGetInstancesClbListOutput() GetInstancesClbListOutput

func (GetInstancesClbListOutput) ToGetInstancesClbListOutputWithContext

func (o GetInstancesClbListOutput) ToGetInstancesClbListOutputWithContext(ctx context.Context) GetInstancesClbListOutput

func (GetInstancesClbListOutput) VipIsp

Network operator, only applicable to open CLB. Valid values are `CMCC`(China Mobile), `CTCC`(Telecom), `CUCC`(China Unicom) and `BGP`. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).

func (GetInstancesClbListOutput) VpcId

ID of the VPC.

func (GetInstancesClbListOutput) Zone

Available zone unique id(string representation), This field maybe null, means cannot get a valid value.

func (GetInstancesClbListOutput) ZoneId

Available zone unique id(numerical representation), This field maybe null, means cannot get a valid value.

func (GetInstancesClbListOutput) ZoneName

Available zone name, This field maybe null, means cannot get a valid value.

func (GetInstancesClbListOutput) ZoneRegion

Region that this available zone belong to, This field maybe null, means cannot get a valid value.

type GetInstancesOutputArgs

type GetInstancesOutputArgs struct {
	// ID of the CLB to be queried.
	ClbId pulumi.StringPtrInput `pulumi:"clbId"`
	// Name of the CLB to be queried.
	ClbName pulumi.StringPtrInput `pulumi:"clbName"`
	// Master available zone id.
	MasterZone pulumi.StringPtrInput `pulumi:"masterZone"`
	// Type of CLB instance, and available values include `OPEN` and `INTERNAL`.
	NetworkType pulumi.StringPtrInput `pulumi:"networkType"`
	// Project ID of the CLB.
	ProjectId pulumi.IntPtrInput `pulumi:"projectId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getInstances.

func (GetInstancesOutputArgs) ElementType

func (GetInstancesOutputArgs) ElementType() reflect.Type

type GetInstancesResult

type GetInstancesResult struct {
	// ID of CLB.
	ClbId *string `pulumi:"clbId"`
	// A list of cloud load balancers. Each element contains the following attributes:
	ClbLists []GetInstancesClbList `pulumi:"clbLists"`
	// Name of CLB.
	ClbName *string `pulumi:"clbName"`
	// The provider-assigned unique ID for this managed resource.
	Id         string  `pulumi:"id"`
	MasterZone *string `pulumi:"masterZone"`
	// Types of CLB.
	NetworkType *string `pulumi:"networkType"`
	// ID of the project.
	ProjectId        *int    `pulumi:"projectId"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of values returned by getInstances.

func GetInstances

func GetInstances(ctx *pulumi.Context, args *GetInstancesArgs, opts ...pulumi.InvokeOption) (*GetInstancesResult, error)

Use this data source to query detailed information of CLB

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.GetInstances(ctx, &clb.GetInstancesArgs{
			ClbId:            pulumi.StringRef("lb-k2zjp9lv"),
			ClbName:          pulumi.StringRef("myclb"),
			NetworkType:      pulumi.StringRef("OPEN"),
			ProjectId:        pulumi.IntRef(0),
			ResultOutputFile: pulumi.StringRef("mytestpath"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetInstancesResultOutput

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func (GetInstancesResultOutput) ClbId

ID of CLB.

func (GetInstancesResultOutput) ClbLists

A list of cloud load balancers. Each element contains the following attributes:

func (GetInstancesResultOutput) ClbName

Name of CLB.

func (GetInstancesResultOutput) ElementType

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) MasterZone

func (GetInstancesResultOutput) NetworkType

Types of CLB.

func (GetInstancesResultOutput) ProjectId

ID of the project.

func (GetInstancesResultOutput) ResultOutputFile

func (o GetInstancesResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutput

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext

func (o GetInstancesResultOutput) ToGetInstancesResultOutputWithContext(ctx context.Context) GetInstancesResultOutput

type GetListenerRulesArgs

type GetListenerRulesArgs struct {
	// ID of the CLB to be queried.
	ClbId string `pulumi:"clbId"`
	// Domain name of the forwarding rule to be queried.
	Domain *string `pulumi:"domain"`
	// ID of the CLB listener to be queried.
	ListenerId string `pulumi:"listenerId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the forwarding rule to be queried.
	RuleId *string `pulumi:"ruleId"`
	// Scheduling method of the forwarding rule of thr CLB listener, and available values include `WRR`, `IP HASH` and `LEAST_CONN`. The default is `WRR`.
	Scheduler *string `pulumi:"scheduler"`
	// Url of the forwarding rule to be queried.
	Url *string `pulumi:"url"`
}

A collection of arguments for invoking getListenerRules.

type GetListenerRulesOutputArgs

type GetListenerRulesOutputArgs struct {
	// ID of the CLB to be queried.
	ClbId pulumi.StringInput `pulumi:"clbId"`
	// Domain name of the forwarding rule to be queried.
	Domain pulumi.StringPtrInput `pulumi:"domain"`
	// ID of the CLB listener to be queried.
	ListenerId pulumi.StringInput `pulumi:"listenerId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of the forwarding rule to be queried.
	RuleId pulumi.StringPtrInput `pulumi:"ruleId"`
	// Scheduling method of the forwarding rule of thr CLB listener, and available values include `WRR`, `IP HASH` and `LEAST_CONN`. The default is `WRR`.
	Scheduler pulumi.StringPtrInput `pulumi:"scheduler"`
	// Url of the forwarding rule to be queried.
	Url pulumi.StringPtrInput `pulumi:"url"`
}

A collection of arguments for invoking getListenerRules.

func (GetListenerRulesOutputArgs) ElementType

func (GetListenerRulesOutputArgs) ElementType() reflect.Type

type GetListenerRulesResult

type GetListenerRulesResult struct {
	// ID of the CLB.
	ClbId  string  `pulumi:"clbId"`
	Domain *string `pulumi:"domain"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// ID of the listener.
	ListenerId       string  `pulumi:"listenerId"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of the rule.
	RuleId *string `pulumi:"ruleId"`
	// A list of forward rules of listeners. Each element contains the following attributes:
	RuleLists []GetListenerRulesRuleList `pulumi:"ruleLists"`
	// Scheduling method of the CLB listener, and available values include 'WRR', 'IP_HASH' and 'LEAST_CONN'. The default is 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	Scheduler *string `pulumi:"scheduler"`
	Url       *string `pulumi:"url"`
}

A collection of values returned by getListenerRules.

func GetListenerRules

func GetListenerRules(ctx *pulumi.Context, args *GetListenerRulesArgs, opts ...pulumi.InvokeOption) (*GetListenerRulesResult, error)

Use this data source to query detailed information of CLB listener rule

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.GetListenerRules(ctx, &clb.GetListenerRulesArgs{
			ClbId:      "lb-k2zjp9lv",
			Domain:     pulumi.StringRef("abc.com"),
			ListenerId: "lbl-mwr6vbtv",
			RuleId:     pulumi.StringRef("loc-inem40hz"),
			Scheduler:  pulumi.StringRef("WRR"),
			Url:        pulumi.StringRef("/"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetListenerRulesResultOutput

type GetListenerRulesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getListenerRules.

func (GetListenerRulesResultOutput) ClbId

ID of the CLB.

func (GetListenerRulesResultOutput) Domain

func (GetListenerRulesResultOutput) ElementType

func (GetListenerRulesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetListenerRulesResultOutput) ListenerId

ID of the listener.

func (GetListenerRulesResultOutput) ResultOutputFile

func (GetListenerRulesResultOutput) RuleId

ID of the rule.

func (GetListenerRulesResultOutput) RuleLists

A list of forward rules of listeners. Each element contains the following attributes:

func (GetListenerRulesResultOutput) Scheduler

Scheduling method of the CLB listener, and available values include 'WRR', 'IP_HASH' and 'LEAST_CONN'. The default is 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (GetListenerRulesResultOutput) ToGetListenerRulesResultOutput

func (o GetListenerRulesResultOutput) ToGetListenerRulesResultOutput() GetListenerRulesResultOutput

func (GetListenerRulesResultOutput) ToGetListenerRulesResultOutputWithContext

func (o GetListenerRulesResultOutput) ToGetListenerRulesResultOutputWithContext(ctx context.Context) GetListenerRulesResultOutput

func (GetListenerRulesResultOutput) Url

type GetListenerRulesRuleList

type GetListenerRulesRuleList struct {
	// ID of the client certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
	CertificateCaId string `pulumi:"certificateCaId"`
	// ID of the server certificate. NOTES: Only supports listeners of 'HTTPS'  and 'TCP_SSL' protocol.
	CertificateId string `pulumi:"certificateId"`
	// Type of SSL Mode, and available values inclue 'UNIDIRECTIONAL', 'MUTUAL'.NOTES: Only supports listeners of 'HTTPS'  and 'TCP_SSL' protocol.
	CertificateSslMode string `pulumi:"certificateSslMode"`
	// ID of the CLB to be queried.
	ClbId string `pulumi:"clbId"`
	// Domain name of the forwarding rule to be queried.
	Domain *string `pulumi:"domain"`
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckHealthNum int `pulumi:"healthCheckHealthNum"`
	// HTTP Status Code. The default is 31 and value range is 1-31. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value 4xx is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol.
	HealthCheckHttpCode int `pulumi:"healthCheckHttpCode"`
	// Domain name of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.
	HealthCheckHttpDomain string `pulumi:"healthCheckHttpDomain"`
	// Methods of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. The default is 'HEAD', the available value include 'HEAD' and 'GET'.
	HealthCheckHttpMethod string `pulumi:"healthCheckHttpMethod"`
	// Path of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.
	HealthCheckHttpPath string `pulumi:"healthCheckHttpPath"`
	// Interval time of health check. The value range is 5-300 sec, and the default is `5` sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckIntervalTime int `pulumi:"healthCheckIntervalTime"`
	// Indicates whether health check is enabled.
	HealthCheckSwitch bool `pulumi:"healthCheckSwitch"`
	// Unhealth threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckUnhealthNum int `pulumi:"healthCheckUnhealthNum"`
	// Indicate to set HTTP2 protocol or not.
	Http2Switch bool `pulumi:"http2Switch"`
	// ID of the CLB listener to be queried.
	ListenerId string `pulumi:"listenerId"`
	// ID of the forwarding rule to be queried.
	RuleId string `pulumi:"ruleId"`
	// Scheduling method of the forwarding rule of thr CLB listener, and available values include `WRR`, `IP HASH` and `LEAST_CONN`. The default is `WRR`.
	Scheduler string `pulumi:"scheduler"`
	// Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	SessionExpireTime int `pulumi:"sessionExpireTime"`
	// Url of the forwarding rule to be queried.
	Url *string `pulumi:"url"`
}

type GetListenerRulesRuleListArgs

type GetListenerRulesRuleListArgs struct {
	// ID of the client certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.
	CertificateCaId pulumi.StringInput `pulumi:"certificateCaId"`
	// ID of the server certificate. NOTES: Only supports listeners of 'HTTPS'  and 'TCP_SSL' protocol.
	CertificateId pulumi.StringInput `pulumi:"certificateId"`
	// Type of SSL Mode, and available values inclue 'UNIDIRECTIONAL', 'MUTUAL'.NOTES: Only supports listeners of 'HTTPS'  and 'TCP_SSL' protocol.
	CertificateSslMode pulumi.StringInput `pulumi:"certificateSslMode"`
	// ID of the CLB to be queried.
	ClbId pulumi.StringInput `pulumi:"clbId"`
	// Domain name of the forwarding rule to be queried.
	Domain pulumi.StringPtrInput `pulumi:"domain"`
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckHealthNum pulumi.IntInput `pulumi:"healthCheckHealthNum"`
	// HTTP Status Code. The default is 31 and value range is 1-31. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value 4xx is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol.
	HealthCheckHttpCode pulumi.IntInput `pulumi:"healthCheckHttpCode"`
	// Domain name of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.
	HealthCheckHttpDomain pulumi.StringInput `pulumi:"healthCheckHttpDomain"`
	// Methods of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. The default is 'HEAD', the available value include 'HEAD' and 'GET'.
	HealthCheckHttpMethod pulumi.StringInput `pulumi:"healthCheckHttpMethod"`
	// Path of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.
	HealthCheckHttpPath pulumi.StringInput `pulumi:"healthCheckHttpPath"`
	// Interval time of health check. The value range is 5-300 sec, and the default is `5` sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckIntervalTime pulumi.IntInput `pulumi:"healthCheckIntervalTime"`
	// Indicates whether health check is enabled.
	HealthCheckSwitch pulumi.BoolInput `pulumi:"healthCheckSwitch"`
	// Unhealth threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckUnhealthNum pulumi.IntInput `pulumi:"healthCheckUnhealthNum"`
	// Indicate to set HTTP2 protocol or not.
	Http2Switch pulumi.BoolInput `pulumi:"http2Switch"`
	// ID of the CLB listener to be queried.
	ListenerId pulumi.StringInput `pulumi:"listenerId"`
	// ID of the forwarding rule to be queried.
	RuleId pulumi.StringInput `pulumi:"ruleId"`
	// Scheduling method of the forwarding rule of thr CLB listener, and available values include `WRR`, `IP HASH` and `LEAST_CONN`. The default is `WRR`.
	Scheduler pulumi.StringInput `pulumi:"scheduler"`
	// Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	SessionExpireTime pulumi.IntInput `pulumi:"sessionExpireTime"`
	// Url of the forwarding rule to be queried.
	Url pulumi.StringPtrInput `pulumi:"url"`
}

func (GetListenerRulesRuleListArgs) ElementType

func (GetListenerRulesRuleListArgs) ToGetListenerRulesRuleListOutput

func (i GetListenerRulesRuleListArgs) ToGetListenerRulesRuleListOutput() GetListenerRulesRuleListOutput

func (GetListenerRulesRuleListArgs) ToGetListenerRulesRuleListOutputWithContext

func (i GetListenerRulesRuleListArgs) ToGetListenerRulesRuleListOutputWithContext(ctx context.Context) GetListenerRulesRuleListOutput

type GetListenerRulesRuleListArray

type GetListenerRulesRuleListArray []GetListenerRulesRuleListInput

func (GetListenerRulesRuleListArray) ElementType

func (GetListenerRulesRuleListArray) ToGetListenerRulesRuleListArrayOutput

func (i GetListenerRulesRuleListArray) ToGetListenerRulesRuleListArrayOutput() GetListenerRulesRuleListArrayOutput

func (GetListenerRulesRuleListArray) ToGetListenerRulesRuleListArrayOutputWithContext

func (i GetListenerRulesRuleListArray) ToGetListenerRulesRuleListArrayOutputWithContext(ctx context.Context) GetListenerRulesRuleListArrayOutput

type GetListenerRulesRuleListArrayInput

type GetListenerRulesRuleListArrayInput interface {
	pulumi.Input

	ToGetListenerRulesRuleListArrayOutput() GetListenerRulesRuleListArrayOutput
	ToGetListenerRulesRuleListArrayOutputWithContext(context.Context) GetListenerRulesRuleListArrayOutput
}

GetListenerRulesRuleListArrayInput is an input type that accepts GetListenerRulesRuleListArray and GetListenerRulesRuleListArrayOutput values. You can construct a concrete instance of `GetListenerRulesRuleListArrayInput` via:

GetListenerRulesRuleListArray{ GetListenerRulesRuleListArgs{...} }

type GetListenerRulesRuleListArrayOutput

type GetListenerRulesRuleListArrayOutput struct{ *pulumi.OutputState }

func (GetListenerRulesRuleListArrayOutput) ElementType

func (GetListenerRulesRuleListArrayOutput) Index

func (GetListenerRulesRuleListArrayOutput) ToGetListenerRulesRuleListArrayOutput

func (o GetListenerRulesRuleListArrayOutput) ToGetListenerRulesRuleListArrayOutput() GetListenerRulesRuleListArrayOutput

func (GetListenerRulesRuleListArrayOutput) ToGetListenerRulesRuleListArrayOutputWithContext

func (o GetListenerRulesRuleListArrayOutput) ToGetListenerRulesRuleListArrayOutputWithContext(ctx context.Context) GetListenerRulesRuleListArrayOutput

type GetListenerRulesRuleListInput

type GetListenerRulesRuleListInput interface {
	pulumi.Input

	ToGetListenerRulesRuleListOutput() GetListenerRulesRuleListOutput
	ToGetListenerRulesRuleListOutputWithContext(context.Context) GetListenerRulesRuleListOutput
}

GetListenerRulesRuleListInput is an input type that accepts GetListenerRulesRuleListArgs and GetListenerRulesRuleListOutput values. You can construct a concrete instance of `GetListenerRulesRuleListInput` via:

GetListenerRulesRuleListArgs{...}

type GetListenerRulesRuleListOutput

type GetListenerRulesRuleListOutput struct{ *pulumi.OutputState }

func (GetListenerRulesRuleListOutput) CertificateCaId

ID of the client certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.

func (GetListenerRulesRuleListOutput) CertificateId

ID of the server certificate. NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.

func (GetListenerRulesRuleListOutput) CertificateSslMode

func (o GetListenerRulesRuleListOutput) CertificateSslMode() pulumi.StringOutput

Type of SSL Mode, and available values inclue 'UNIDIRECTIONAL', 'MUTUAL'.NOTES: Only supports listeners of 'HTTPS' and 'TCP_SSL' protocol.

func (GetListenerRulesRuleListOutput) ClbId

ID of the CLB to be queried.

func (GetListenerRulesRuleListOutput) Domain

Domain name of the forwarding rule to be queried.

func (GetListenerRulesRuleListOutput) ElementType

func (GetListenerRulesRuleListOutput) HealthCheckHealthNum

func (o GetListenerRulesRuleListOutput) HealthCheckHealthNum() pulumi.IntOutput

Health threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (GetListenerRulesRuleListOutput) HealthCheckHttpCode

func (o GetListenerRulesRuleListOutput) HealthCheckHttpCode() pulumi.IntOutput

HTTP Status Code. The default is 31 and value range is 1-31. 1 means the return value '1xx' is health. 2 means the return value '2xx' is health. 4 means the return value '3xx' is health. 8 means the return value 4xx is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol.

func (GetListenerRulesRuleListOutput) HealthCheckHttpDomain

func (o GetListenerRulesRuleListOutput) HealthCheckHttpDomain() pulumi.StringOutput

Domain name of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.

func (GetListenerRulesRuleListOutput) HealthCheckHttpMethod

func (o GetListenerRulesRuleListOutput) HealthCheckHttpMethod() pulumi.StringOutput

Methods of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol. The default is 'HEAD', the available value include 'HEAD' and 'GET'.

func (GetListenerRulesRuleListOutput) HealthCheckHttpPath

func (o GetListenerRulesRuleListOutput) HealthCheckHttpPath() pulumi.StringOutput

Path of health check. NOTES: Only supports listeners of 'HTTPS' and 'HTTP' protocol.

func (GetListenerRulesRuleListOutput) HealthCheckIntervalTime

func (o GetListenerRulesRuleListOutput) HealthCheckIntervalTime() pulumi.IntOutput

Interval time of health check. The value range is 5-300 sec, and the default is `5` sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (GetListenerRulesRuleListOutput) HealthCheckSwitch

func (o GetListenerRulesRuleListOutput) HealthCheckSwitch() pulumi.BoolOutput

Indicates whether health check is enabled.

func (GetListenerRulesRuleListOutput) HealthCheckUnhealthNum

func (o GetListenerRulesRuleListOutput) HealthCheckUnhealthNum() pulumi.IntOutput

Unhealth threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (GetListenerRulesRuleListOutput) Http2Switch

Indicate to set HTTP2 protocol or not.

func (GetListenerRulesRuleListOutput) ListenerId

ID of the CLB listener to be queried.

func (GetListenerRulesRuleListOutput) RuleId

ID of the forwarding rule to be queried.

func (GetListenerRulesRuleListOutput) Scheduler

Scheduling method of the forwarding rule of thr CLB listener, and available values include `WRR`, `IP HASH` and `LEAST_CONN`. The default is `WRR`.

func (GetListenerRulesRuleListOutput) SessionExpireTime

func (o GetListenerRulesRuleListOutput) SessionExpireTime() pulumi.IntOutput

Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as 'WRR'. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (GetListenerRulesRuleListOutput) ToGetListenerRulesRuleListOutput

func (o GetListenerRulesRuleListOutput) ToGetListenerRulesRuleListOutput() GetListenerRulesRuleListOutput

func (GetListenerRulesRuleListOutput) ToGetListenerRulesRuleListOutputWithContext

func (o GetListenerRulesRuleListOutput) ToGetListenerRulesRuleListOutputWithContext(ctx context.Context) GetListenerRulesRuleListOutput

func (GetListenerRulesRuleListOutput) Url

Url of the forwarding rule to be queried.

type GetListenersArgs

type GetListenersArgs struct {
	// Id of the CLB to be queried.
	ClbId string `pulumi:"clbId"`
	// Id of the listener to be queried.
	ListenerId *string `pulumi:"listenerId"`
	// Port of the CLB listener.
	Port *int `pulumi:"port"`
	// Type of protocol within the listener, and available values are `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`.
	Protocol *string `pulumi:"protocol"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getListeners.

type GetListenersListenerList

type GetListenersListenerList struct {
	// Id of the client certificate. It must be set when SSLMode is `mutual`. NOTES: only supported by listeners of `HTTPS` and `TCP_SSL` protocol.
	CertificateCaId string `pulumi:"certificateCaId"`
	// Id of the server certificate. It must be set when protocol is `HTTPS` or `TCP_SSL`. NOTES: only supported by listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.
	CertificateId string `pulumi:"certificateId"`
	// Type of certificate, and available values inclue `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.
	CertificateSslMode string `pulumi:"certificateSslMode"`
	// Id of the CLB to be queried.
	ClbId string `pulumi:"clbId"`
	// Health check protocol.
	HealthCheckContextType string `pulumi:"healthCheckContextType"`
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckHealthNum int `pulumi:"healthCheckHealthNum"`
	// HTTP health check code of TCP listener.
	HealthCheckHttpCode int `pulumi:"healthCheckHttpCode"`
	// HTTP health check domain of TCP listener.
	HealthCheckHttpDomain string `pulumi:"healthCheckHttpDomain"`
	// HTTP health check method of TCP listener.
	HealthCheckHttpMethod string `pulumi:"healthCheckHttpMethod"`
	// HTTP health check path of TCP listener.
	HealthCheckHttpPath string `pulumi:"healthCheckHttpPath"`
	// The HTTP version of the backend service.
	HealthCheckHttpVersion string `pulumi:"healthCheckHttpVersion"`
	// Interval time of health check. The value range is 5-300 sec, and the default is `5` sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckIntervalTime int `pulumi:"healthCheckIntervalTime"`
	// The health check port is the port of the backend service.
	HealthCheckPort int `pulumi:"healthCheckPort"`
	// It represents the result returned by the health check.
	HealthCheckRecvContext string `pulumi:"healthCheckRecvContext"`
	// It represents the content of the request sent by the health check.
	HealthCheckSendContext string `pulumi:"healthCheckSendContext"`
	// Indicates whether health check is enabled.
	HealthCheckSwitch bool `pulumi:"healthCheckSwitch"`
	// Response timeout of health check. The value range is 2-60 sec, and the default is `2` sec. Response timeout needs to be less than check interval. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration.
	HealthCheckTimeOut int `pulumi:"healthCheckTimeOut"`
	// Protocol used for health check.
	HealthCheckType string `pulumi:"healthCheckType"`
	// Unhealthy threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckUnhealthNum int `pulumi:"healthCheckUnhealthNum"`
	// Id of the listener to be queried.
	ListenerId string `pulumi:"listenerId"`
	// Name of the CLB listener.
	ListenerName string `pulumi:"listenerName"`
	// Port of the CLB listener.
	Port int `pulumi:"port"`
	// Type of protocol within the listener, and available values are `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`.
	Protocol string `pulumi:"protocol"`
	// Scheduling method of the CLB listener, and available values are `WRR` and `LEAST_CONN`. The default is `WRR`. NOTES: The listener of 'HTTP' and `HTTPS` protocol additionally supports the `IP HASH` method. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	Scheduler string `pulumi:"scheduler"`
	// Time of session persistence within the CLB listener. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	SessionExpireTime int `pulumi:"sessionExpireTime"`
	// Indicates whether SNI is enabled. NOTES: Only supported by `HTTPS` protocol.
	SniSwitch bool `pulumi:"sniSwitch"`
}

type GetListenersListenerListArgs

type GetListenersListenerListArgs struct {
	// Id of the client certificate. It must be set when SSLMode is `mutual`. NOTES: only supported by listeners of `HTTPS` and `TCP_SSL` protocol.
	CertificateCaId pulumi.StringInput `pulumi:"certificateCaId"`
	// Id of the server certificate. It must be set when protocol is `HTTPS` or `TCP_SSL`. NOTES: only supported by listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.
	CertificateId pulumi.StringInput `pulumi:"certificateId"`
	// Type of certificate, and available values inclue `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.
	CertificateSslMode pulumi.StringInput `pulumi:"certificateSslMode"`
	// Id of the CLB to be queried.
	ClbId pulumi.StringInput `pulumi:"clbId"`
	// Health check protocol.
	HealthCheckContextType pulumi.StringInput `pulumi:"healthCheckContextType"`
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckHealthNum pulumi.IntInput `pulumi:"healthCheckHealthNum"`
	// HTTP health check code of TCP listener.
	HealthCheckHttpCode pulumi.IntInput `pulumi:"healthCheckHttpCode"`
	// HTTP health check domain of TCP listener.
	HealthCheckHttpDomain pulumi.StringInput `pulumi:"healthCheckHttpDomain"`
	// HTTP health check method of TCP listener.
	HealthCheckHttpMethod pulumi.StringInput `pulumi:"healthCheckHttpMethod"`
	// HTTP health check path of TCP listener.
	HealthCheckHttpPath pulumi.StringInput `pulumi:"healthCheckHttpPath"`
	// The HTTP version of the backend service.
	HealthCheckHttpVersion pulumi.StringInput `pulumi:"healthCheckHttpVersion"`
	// Interval time of health check. The value range is 5-300 sec, and the default is `5` sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckIntervalTime pulumi.IntInput `pulumi:"healthCheckIntervalTime"`
	// The health check port is the port of the backend service.
	HealthCheckPort pulumi.IntInput `pulumi:"healthCheckPort"`
	// It represents the result returned by the health check.
	HealthCheckRecvContext pulumi.StringInput `pulumi:"healthCheckRecvContext"`
	// It represents the content of the request sent by the health check.
	HealthCheckSendContext pulumi.StringInput `pulumi:"healthCheckSendContext"`
	// Indicates whether health check is enabled.
	HealthCheckSwitch pulumi.BoolInput `pulumi:"healthCheckSwitch"`
	// Response timeout of health check. The value range is 2-60 sec, and the default is `2` sec. Response timeout needs to be less than check interval. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration.
	HealthCheckTimeOut pulumi.IntInput `pulumi:"healthCheckTimeOut"`
	// Protocol used for health check.
	HealthCheckType pulumi.StringInput `pulumi:"healthCheckType"`
	// Unhealthy threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckUnhealthNum pulumi.IntInput `pulumi:"healthCheckUnhealthNum"`
	// Id of the listener to be queried.
	ListenerId pulumi.StringInput `pulumi:"listenerId"`
	// Name of the CLB listener.
	ListenerName pulumi.StringInput `pulumi:"listenerName"`
	// Port of the CLB listener.
	Port pulumi.IntInput `pulumi:"port"`
	// Type of protocol within the listener, and available values are `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// Scheduling method of the CLB listener, and available values are `WRR` and `LEAST_CONN`. The default is `WRR`. NOTES: The listener of 'HTTP' and `HTTPS` protocol additionally supports the `IP HASH` method. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	Scheduler pulumi.StringInput `pulumi:"scheduler"`
	// Time of session persistence within the CLB listener. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	SessionExpireTime pulumi.IntInput `pulumi:"sessionExpireTime"`
	// Indicates whether SNI is enabled. NOTES: Only supported by `HTTPS` protocol.
	SniSwitch pulumi.BoolInput `pulumi:"sniSwitch"`
}

func (GetListenersListenerListArgs) ElementType

func (GetListenersListenerListArgs) ToGetListenersListenerListOutput

func (i GetListenersListenerListArgs) ToGetListenersListenerListOutput() GetListenersListenerListOutput

func (GetListenersListenerListArgs) ToGetListenersListenerListOutputWithContext

func (i GetListenersListenerListArgs) ToGetListenersListenerListOutputWithContext(ctx context.Context) GetListenersListenerListOutput

type GetListenersListenerListArray

type GetListenersListenerListArray []GetListenersListenerListInput

func (GetListenersListenerListArray) ElementType

func (GetListenersListenerListArray) ToGetListenersListenerListArrayOutput

func (i GetListenersListenerListArray) ToGetListenersListenerListArrayOutput() GetListenersListenerListArrayOutput

func (GetListenersListenerListArray) ToGetListenersListenerListArrayOutputWithContext

func (i GetListenersListenerListArray) ToGetListenersListenerListArrayOutputWithContext(ctx context.Context) GetListenersListenerListArrayOutput

type GetListenersListenerListArrayInput

type GetListenersListenerListArrayInput interface {
	pulumi.Input

	ToGetListenersListenerListArrayOutput() GetListenersListenerListArrayOutput
	ToGetListenersListenerListArrayOutputWithContext(context.Context) GetListenersListenerListArrayOutput
}

GetListenersListenerListArrayInput is an input type that accepts GetListenersListenerListArray and GetListenersListenerListArrayOutput values. You can construct a concrete instance of `GetListenersListenerListArrayInput` via:

GetListenersListenerListArray{ GetListenersListenerListArgs{...} }

type GetListenersListenerListArrayOutput

type GetListenersListenerListArrayOutput struct{ *pulumi.OutputState }

func (GetListenersListenerListArrayOutput) ElementType

func (GetListenersListenerListArrayOutput) Index

func (GetListenersListenerListArrayOutput) ToGetListenersListenerListArrayOutput

func (o GetListenersListenerListArrayOutput) ToGetListenersListenerListArrayOutput() GetListenersListenerListArrayOutput

func (GetListenersListenerListArrayOutput) ToGetListenersListenerListArrayOutputWithContext

func (o GetListenersListenerListArrayOutput) ToGetListenersListenerListArrayOutputWithContext(ctx context.Context) GetListenersListenerListArrayOutput

type GetListenersListenerListInput

type GetListenersListenerListInput interface {
	pulumi.Input

	ToGetListenersListenerListOutput() GetListenersListenerListOutput
	ToGetListenersListenerListOutputWithContext(context.Context) GetListenersListenerListOutput
}

GetListenersListenerListInput is an input type that accepts GetListenersListenerListArgs and GetListenersListenerListOutput values. You can construct a concrete instance of `GetListenersListenerListInput` via:

GetListenersListenerListArgs{...}

type GetListenersListenerListOutput

type GetListenersListenerListOutput struct{ *pulumi.OutputState }

func (GetListenersListenerListOutput) CertificateCaId

Id of the client certificate. It must be set when SSLMode is `mutual`. NOTES: only supported by listeners of `HTTPS` and `TCP_SSL` protocol.

func (GetListenersListenerListOutput) CertificateId

Id of the server certificate. It must be set when protocol is `HTTPS` or `TCP_SSL`. NOTES: only supported by listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.

func (GetListenersListenerListOutput) CertificateSslMode

func (o GetListenersListenerListOutput) CertificateSslMode() pulumi.StringOutput

Type of certificate, and available values inclue `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.

func (GetListenersListenerListOutput) ClbId

Id of the CLB to be queried.

func (GetListenersListenerListOutput) ElementType

func (GetListenersListenerListOutput) HealthCheckContextType

func (o GetListenersListenerListOutput) HealthCheckContextType() pulumi.StringOutput

Health check protocol.

func (GetListenersListenerListOutput) HealthCheckHealthNum

func (o GetListenersListenerListOutput) HealthCheckHealthNum() pulumi.IntOutput

Health threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (GetListenersListenerListOutput) HealthCheckHttpCode

func (o GetListenersListenerListOutput) HealthCheckHttpCode() pulumi.IntOutput

HTTP health check code of TCP listener.

func (GetListenersListenerListOutput) HealthCheckHttpDomain

func (o GetListenersListenerListOutput) HealthCheckHttpDomain() pulumi.StringOutput

HTTP health check domain of TCP listener.

func (GetListenersListenerListOutput) HealthCheckHttpMethod

func (o GetListenersListenerListOutput) HealthCheckHttpMethod() pulumi.StringOutput

HTTP health check method of TCP listener.

func (GetListenersListenerListOutput) HealthCheckHttpPath

func (o GetListenersListenerListOutput) HealthCheckHttpPath() pulumi.StringOutput

HTTP health check path of TCP listener.

func (GetListenersListenerListOutput) HealthCheckHttpVersion

func (o GetListenersListenerListOutput) HealthCheckHttpVersion() pulumi.StringOutput

The HTTP version of the backend service.

func (GetListenersListenerListOutput) HealthCheckIntervalTime

func (o GetListenersListenerListOutput) HealthCheckIntervalTime() pulumi.IntOutput

Interval time of health check. The value range is 5-300 sec, and the default is `5` sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (GetListenersListenerListOutput) HealthCheckPort

func (o GetListenersListenerListOutput) HealthCheckPort() pulumi.IntOutput

The health check port is the port of the backend service.

func (GetListenersListenerListOutput) HealthCheckRecvContext

func (o GetListenersListenerListOutput) HealthCheckRecvContext() pulumi.StringOutput

It represents the result returned by the health check.

func (GetListenersListenerListOutput) HealthCheckSendContext

func (o GetListenersListenerListOutput) HealthCheckSendContext() pulumi.StringOutput

It represents the content of the request sent by the health check.

func (GetListenersListenerListOutput) HealthCheckSwitch

func (o GetListenersListenerListOutput) HealthCheckSwitch() pulumi.BoolOutput

Indicates whether health check is enabled.

func (GetListenersListenerListOutput) HealthCheckTimeOut

func (o GetListenersListenerListOutput) HealthCheckTimeOut() pulumi.IntOutput

Response timeout of health check. The value range is 2-60 sec, and the default is `2` sec. Response timeout needs to be less than check interval. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration.

func (GetListenersListenerListOutput) HealthCheckType

Protocol used for health check.

func (GetListenersListenerListOutput) HealthCheckUnhealthNum

func (o GetListenersListenerListOutput) HealthCheckUnhealthNum() pulumi.IntOutput

Unhealthy threshold of health check, and the default is `3`. If a success result is returned for the health check three consecutive times, the CVM is identified as unhealthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (GetListenersListenerListOutput) ListenerId

Id of the listener to be queried.

func (GetListenersListenerListOutput) ListenerName

Name of the CLB listener.

func (GetListenersListenerListOutput) Port

Port of the CLB listener.

func (GetListenersListenerListOutput) Protocol

Type of protocol within the listener, and available values are `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`.

func (GetListenersListenerListOutput) Scheduler

Scheduling method of the CLB listener, and available values are `WRR` and `LEAST_CONN`. The default is `WRR`. NOTES: The listener of 'HTTP' and `HTTPS` protocol additionally supports the `IP HASH` method. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (GetListenersListenerListOutput) SessionExpireTime

func (o GetListenersListenerListOutput) SessionExpireTime() pulumi.IntOutput

Time of session persistence within the CLB listener. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (GetListenersListenerListOutput) SniSwitch

Indicates whether SNI is enabled. NOTES: Only supported by `HTTPS` protocol.

func (GetListenersListenerListOutput) ToGetListenersListenerListOutput

func (o GetListenersListenerListOutput) ToGetListenersListenerListOutput() GetListenersListenerListOutput

func (GetListenersListenerListOutput) ToGetListenersListenerListOutputWithContext

func (o GetListenersListenerListOutput) ToGetListenersListenerListOutputWithContext(ctx context.Context) GetListenersListenerListOutput

type GetListenersOutputArgs

type GetListenersOutputArgs struct {
	// Id of the CLB to be queried.
	ClbId pulumi.StringInput `pulumi:"clbId"`
	// Id of the listener to be queried.
	ListenerId pulumi.StringPtrInput `pulumi:"listenerId"`
	// Port of the CLB listener.
	Port pulumi.IntPtrInput `pulumi:"port"`
	// Type of protocol within the listener, and available values are `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`.
	Protocol pulumi.StringPtrInput `pulumi:"protocol"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
}

A collection of arguments for invoking getListeners.

func (GetListenersOutputArgs) ElementType

func (GetListenersOutputArgs) ElementType() reflect.Type

type GetListenersResult

type GetListenersResult struct {
	// ID of the CLB.
	ClbId string `pulumi:"clbId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// ID of the listener.
	ListenerId *string `pulumi:"listenerId"`
	// A list of listeners of cloud load balancers. Each element contains the following attributes:
	ListenerLists []GetListenersListenerList `pulumi:"listenerLists"`
	// Port of the CLB listener.
	Port *int `pulumi:"port"`
	// Protocol of the listener. Available values are `HTTP`, `HTTPS`, `TCP`, `UDP`, `TCP_SSL`.
	Protocol         *string `pulumi:"protocol"`
	ResultOutputFile *string `pulumi:"resultOutputFile"`
}

A collection of values returned by getListeners.

func GetListeners

func GetListeners(ctx *pulumi.Context, args *GetListenersArgs, opts ...pulumi.InvokeOption) (*GetListenersResult, error)

Use this data source to query detailed information of CLB listener

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.GetListeners(ctx, &clb.GetListenersArgs{
			ClbId:      "lb-k2zjp9lv",
			ListenerId: pulumi.StringRef("lbl-mwr6vbtv"),
			Port:       pulumi.IntRef(80),
			Protocol:   pulumi.StringRef("TCP"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetListenersResultOutput

type GetListenersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getListeners.

func (GetListenersResultOutput) ClbId

ID of the CLB.

func (GetListenersResultOutput) ElementType

func (GetListenersResultOutput) ElementType() reflect.Type

func (GetListenersResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetListenersResultOutput) ListenerId

ID of the listener.

func (GetListenersResultOutput) ListenerLists

A list of listeners of cloud load balancers. Each element contains the following attributes:

func (GetListenersResultOutput) Port

Port of the CLB listener.

func (GetListenersResultOutput) Protocol

Protocol of the listener. Available values are `HTTP`, `HTTPS`, `TCP`, `UDP`, `TCP_SSL`.

func (GetListenersResultOutput) ResultOutputFile

func (o GetListenersResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetListenersResultOutput) ToGetListenersResultOutput

func (o GetListenersResultOutput) ToGetListenersResultOutput() GetListenersResultOutput

func (GetListenersResultOutput) ToGetListenersResultOutputWithContext

func (o GetListenersResultOutput) ToGetListenersResultOutputWithContext(ctx context.Context) GetListenersResultOutput

type GetRedirectionsArgs

type GetRedirectionsArgs struct {
	// ID of the CLB to be queried.
	ClbId string `pulumi:"clbId"`
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of source listener to be queried.
	SourceListenerId string `pulumi:"sourceListenerId"`
	// Rule ID of source listener to be queried.
	SourceRuleId string `pulumi:"sourceRuleId"`
	// ID of target listener to be queried.
	TargetListenerId *string `pulumi:"targetListenerId"`
	// Rule ID of target listener to be queried.
	TargetRuleId *string `pulumi:"targetRuleId"`
}

A collection of arguments for invoking getRedirections.

type GetRedirectionsOutputArgs

type GetRedirectionsOutputArgs struct {
	// ID of the CLB to be queried.
	ClbId pulumi.StringInput `pulumi:"clbId"`
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of source listener to be queried.
	SourceListenerId pulumi.StringInput `pulumi:"sourceListenerId"`
	// Rule ID of source listener to be queried.
	SourceRuleId pulumi.StringInput `pulumi:"sourceRuleId"`
	// ID of target listener to be queried.
	TargetListenerId pulumi.StringPtrInput `pulumi:"targetListenerId"`
	// Rule ID of target listener to be queried.
	TargetRuleId pulumi.StringPtrInput `pulumi:"targetRuleId"`
}

A collection of arguments for invoking getRedirections.

func (GetRedirectionsOutputArgs) ElementType

func (GetRedirectionsOutputArgs) ElementType() reflect.Type

type GetRedirectionsRedirectionList

type GetRedirectionsRedirectionList struct {
	// ID of the CLB to be queried.
	ClbId string `pulumi:"clbId"`
	// ID of source listener to be queried.
	SourceListenerId string `pulumi:"sourceListenerId"`
	// Rule ID of source listener to be queried.
	SourceRuleId string `pulumi:"sourceRuleId"`
	// ID of target listener to be queried.
	TargetListenerId string `pulumi:"targetListenerId"`
	// Rule ID of target listener to be queried.
	TargetRuleId string `pulumi:"targetRuleId"`
}

type GetRedirectionsRedirectionListArgs

type GetRedirectionsRedirectionListArgs struct {
	// ID of the CLB to be queried.
	ClbId pulumi.StringInput `pulumi:"clbId"`
	// ID of source listener to be queried.
	SourceListenerId pulumi.StringInput `pulumi:"sourceListenerId"`
	// Rule ID of source listener to be queried.
	SourceRuleId pulumi.StringInput `pulumi:"sourceRuleId"`
	// ID of target listener to be queried.
	TargetListenerId pulumi.StringInput `pulumi:"targetListenerId"`
	// Rule ID of target listener to be queried.
	TargetRuleId pulumi.StringInput `pulumi:"targetRuleId"`
}

func (GetRedirectionsRedirectionListArgs) ElementType

func (GetRedirectionsRedirectionListArgs) ToGetRedirectionsRedirectionListOutput

func (i GetRedirectionsRedirectionListArgs) ToGetRedirectionsRedirectionListOutput() GetRedirectionsRedirectionListOutput

func (GetRedirectionsRedirectionListArgs) ToGetRedirectionsRedirectionListOutputWithContext

func (i GetRedirectionsRedirectionListArgs) ToGetRedirectionsRedirectionListOutputWithContext(ctx context.Context) GetRedirectionsRedirectionListOutput

type GetRedirectionsRedirectionListArray

type GetRedirectionsRedirectionListArray []GetRedirectionsRedirectionListInput

func (GetRedirectionsRedirectionListArray) ElementType

func (GetRedirectionsRedirectionListArray) ToGetRedirectionsRedirectionListArrayOutput

func (i GetRedirectionsRedirectionListArray) ToGetRedirectionsRedirectionListArrayOutput() GetRedirectionsRedirectionListArrayOutput

func (GetRedirectionsRedirectionListArray) ToGetRedirectionsRedirectionListArrayOutputWithContext

func (i GetRedirectionsRedirectionListArray) ToGetRedirectionsRedirectionListArrayOutputWithContext(ctx context.Context) GetRedirectionsRedirectionListArrayOutput

type GetRedirectionsRedirectionListArrayInput

type GetRedirectionsRedirectionListArrayInput interface {
	pulumi.Input

	ToGetRedirectionsRedirectionListArrayOutput() GetRedirectionsRedirectionListArrayOutput
	ToGetRedirectionsRedirectionListArrayOutputWithContext(context.Context) GetRedirectionsRedirectionListArrayOutput
}

GetRedirectionsRedirectionListArrayInput is an input type that accepts GetRedirectionsRedirectionListArray and GetRedirectionsRedirectionListArrayOutput values. You can construct a concrete instance of `GetRedirectionsRedirectionListArrayInput` via:

GetRedirectionsRedirectionListArray{ GetRedirectionsRedirectionListArgs{...} }

type GetRedirectionsRedirectionListArrayOutput

type GetRedirectionsRedirectionListArrayOutput struct{ *pulumi.OutputState }

func (GetRedirectionsRedirectionListArrayOutput) ElementType

func (GetRedirectionsRedirectionListArrayOutput) Index

func (GetRedirectionsRedirectionListArrayOutput) ToGetRedirectionsRedirectionListArrayOutput

func (o GetRedirectionsRedirectionListArrayOutput) ToGetRedirectionsRedirectionListArrayOutput() GetRedirectionsRedirectionListArrayOutput

func (GetRedirectionsRedirectionListArrayOutput) ToGetRedirectionsRedirectionListArrayOutputWithContext

func (o GetRedirectionsRedirectionListArrayOutput) ToGetRedirectionsRedirectionListArrayOutputWithContext(ctx context.Context) GetRedirectionsRedirectionListArrayOutput

type GetRedirectionsRedirectionListInput

type GetRedirectionsRedirectionListInput interface {
	pulumi.Input

	ToGetRedirectionsRedirectionListOutput() GetRedirectionsRedirectionListOutput
	ToGetRedirectionsRedirectionListOutputWithContext(context.Context) GetRedirectionsRedirectionListOutput
}

GetRedirectionsRedirectionListInput is an input type that accepts GetRedirectionsRedirectionListArgs and GetRedirectionsRedirectionListOutput values. You can construct a concrete instance of `GetRedirectionsRedirectionListInput` via:

GetRedirectionsRedirectionListArgs{...}

type GetRedirectionsRedirectionListOutput

type GetRedirectionsRedirectionListOutput struct{ *pulumi.OutputState }

func (GetRedirectionsRedirectionListOutput) ClbId

ID of the CLB to be queried.

func (GetRedirectionsRedirectionListOutput) ElementType

func (GetRedirectionsRedirectionListOutput) SourceListenerId

ID of source listener to be queried.

func (GetRedirectionsRedirectionListOutput) SourceRuleId

Rule ID of source listener to be queried.

func (GetRedirectionsRedirectionListOutput) TargetListenerId

ID of target listener to be queried.

func (GetRedirectionsRedirectionListOutput) TargetRuleId

Rule ID of target listener to be queried.

func (GetRedirectionsRedirectionListOutput) ToGetRedirectionsRedirectionListOutput

func (o GetRedirectionsRedirectionListOutput) ToGetRedirectionsRedirectionListOutput() GetRedirectionsRedirectionListOutput

func (GetRedirectionsRedirectionListOutput) ToGetRedirectionsRedirectionListOutputWithContext

func (o GetRedirectionsRedirectionListOutput) ToGetRedirectionsRedirectionListOutputWithContext(ctx context.Context) GetRedirectionsRedirectionListOutput

type GetRedirectionsResult

type GetRedirectionsResult struct {
	// ID of the CLB.
	ClbId string `pulumi:"clbId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of cloud load balancer redirection configurations. Each element contains the following attributes:
	RedirectionLists []GetRedirectionsRedirectionList `pulumi:"redirectionLists"`
	ResultOutputFile *string                          `pulumi:"resultOutputFile"`
	// ID of source listener.
	SourceListenerId string `pulumi:"sourceListenerId"`
	// Rule ID of source listener.
	SourceRuleId string `pulumi:"sourceRuleId"`
	// ID of target listener.
	TargetListenerId *string `pulumi:"targetListenerId"`
	// Rule ID of target listener.
	TargetRuleId *string `pulumi:"targetRuleId"`
}

A collection of values returned by getRedirections.

func GetRedirections

func GetRedirections(ctx *pulumi.Context, args *GetRedirectionsArgs, opts ...pulumi.InvokeOption) (*GetRedirectionsResult, error)

Use this data source to query detailed information of CLB redirections

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.GetRedirections(ctx, &clb.GetRedirectionsArgs{
			ClbId:            "lb-p7olt9e5",
			ResultOutputFile: pulumi.StringRef("mytestpath"),
			SourceListenerId: "lbl-jc1dx6ju",
			SourceRuleId:     "loc-ft8fmngv",
			TargetListenerId: pulumi.StringRef("lbl-asj1hzuo"),
			TargetRuleId:     pulumi.StringRef("loc-4xxr2cy7"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRedirectionsResultOutput

type GetRedirectionsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRedirections.

func (GetRedirectionsResultOutput) ClbId

ID of the CLB.

func (GetRedirectionsResultOutput) ElementType

func (GetRedirectionsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetRedirectionsResultOutput) RedirectionLists

A list of cloud load balancer redirection configurations. Each element contains the following attributes:

func (GetRedirectionsResultOutput) ResultOutputFile

func (o GetRedirectionsResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetRedirectionsResultOutput) SourceListenerId

func (o GetRedirectionsResultOutput) SourceListenerId() pulumi.StringOutput

ID of source listener.

func (GetRedirectionsResultOutput) SourceRuleId

Rule ID of source listener.

func (GetRedirectionsResultOutput) TargetListenerId

func (o GetRedirectionsResultOutput) TargetListenerId() pulumi.StringPtrOutput

ID of target listener.

func (GetRedirectionsResultOutput) TargetRuleId

Rule ID of target listener.

func (GetRedirectionsResultOutput) ToGetRedirectionsResultOutput

func (o GetRedirectionsResultOutput) ToGetRedirectionsResultOutput() GetRedirectionsResultOutput

func (GetRedirectionsResultOutput) ToGetRedirectionsResultOutputWithContext

func (o GetRedirectionsResultOutput) ToGetRedirectionsResultOutputWithContext(ctx context.Context) GetRedirectionsResultOutput

type GetTargetGroupsArgs

type GetTargetGroupsArgs struct {
	// Used to save results.
	ResultOutputFile *string `pulumi:"resultOutputFile"`
	// ID of Target group. Mutually exclusive with `vpcId` and `targetGroupName`. `targetGroupId` is preferred.
	TargetGroupId *string `pulumi:"targetGroupId"`
	// Name of target group. Mutually exclusive with `targetGroupId`. `targetGroupId` is preferred.
	TargetGroupName *string `pulumi:"targetGroupName"`
	// Target group VPC ID. Mutually exclusive with `targetGroupId`. `targetGroupId` is preferred.
	VpcId *string `pulumi:"vpcId"`
}

A collection of arguments for invoking getTargetGroups.

type GetTargetGroupsList

type GetTargetGroupsList struct {
	// List of associated rules.
	AssociatedRuleLists []GetTargetGroupsListAssociatedRuleList `pulumi:"associatedRuleLists"`
	// Creation time of the target group.
	CreateTime string `pulumi:"createTime"`
	// Port of target group.
	Port int `pulumi:"port"`
	// ID of Target group. Mutually exclusive with `vpcId` and `targetGroupName`. `targetGroupId` is preferred.
	TargetGroupId string `pulumi:"targetGroupId"`
	// List of backend servers bound to the target group.
	TargetGroupInstanceLists []GetTargetGroupsListTargetGroupInstanceList `pulumi:"targetGroupInstanceLists"`
	// Name of target group. Mutually exclusive with `targetGroupId`. `targetGroupId` is preferred.
	TargetGroupName string `pulumi:"targetGroupName"`
	// Modification time of the target group.
	UpdateTime string `pulumi:"updateTime"`
	// Target group VPC ID. Mutually exclusive with `targetGroupId`. `targetGroupId` is preferred.
	VpcId string `pulumi:"vpcId"`
}

type GetTargetGroupsListArgs

type GetTargetGroupsListArgs struct {
	// List of associated rules.
	AssociatedRuleLists GetTargetGroupsListAssociatedRuleListArrayInput `pulumi:"associatedRuleLists"`
	// Creation time of the target group.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// Port of target group.
	Port pulumi.IntInput `pulumi:"port"`
	// ID of Target group. Mutually exclusive with `vpcId` and `targetGroupName`. `targetGroupId` is preferred.
	TargetGroupId pulumi.StringInput `pulumi:"targetGroupId"`
	// List of backend servers bound to the target group.
	TargetGroupInstanceLists GetTargetGroupsListTargetGroupInstanceListArrayInput `pulumi:"targetGroupInstanceLists"`
	// Name of target group. Mutually exclusive with `targetGroupId`. `targetGroupId` is preferred.
	TargetGroupName pulumi.StringInput `pulumi:"targetGroupName"`
	// Modification time of the target group.
	UpdateTime pulumi.StringInput `pulumi:"updateTime"`
	// Target group VPC ID. Mutually exclusive with `targetGroupId`. `targetGroupId` is preferred.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
}

func (GetTargetGroupsListArgs) ElementType

func (GetTargetGroupsListArgs) ElementType() reflect.Type

func (GetTargetGroupsListArgs) ToGetTargetGroupsListOutput

func (i GetTargetGroupsListArgs) ToGetTargetGroupsListOutput() GetTargetGroupsListOutput

func (GetTargetGroupsListArgs) ToGetTargetGroupsListOutputWithContext

func (i GetTargetGroupsListArgs) ToGetTargetGroupsListOutputWithContext(ctx context.Context) GetTargetGroupsListOutput

type GetTargetGroupsListArray

type GetTargetGroupsListArray []GetTargetGroupsListInput

func (GetTargetGroupsListArray) ElementType

func (GetTargetGroupsListArray) ElementType() reflect.Type

func (GetTargetGroupsListArray) ToGetTargetGroupsListArrayOutput

func (i GetTargetGroupsListArray) ToGetTargetGroupsListArrayOutput() GetTargetGroupsListArrayOutput

func (GetTargetGroupsListArray) ToGetTargetGroupsListArrayOutputWithContext

func (i GetTargetGroupsListArray) ToGetTargetGroupsListArrayOutputWithContext(ctx context.Context) GetTargetGroupsListArrayOutput

type GetTargetGroupsListArrayInput

type GetTargetGroupsListArrayInput interface {
	pulumi.Input

	ToGetTargetGroupsListArrayOutput() GetTargetGroupsListArrayOutput
	ToGetTargetGroupsListArrayOutputWithContext(context.Context) GetTargetGroupsListArrayOutput
}

GetTargetGroupsListArrayInput is an input type that accepts GetTargetGroupsListArray and GetTargetGroupsListArrayOutput values. You can construct a concrete instance of `GetTargetGroupsListArrayInput` via:

GetTargetGroupsListArray{ GetTargetGroupsListArgs{...} }

type GetTargetGroupsListArrayOutput

type GetTargetGroupsListArrayOutput struct{ *pulumi.OutputState }

func (GetTargetGroupsListArrayOutput) ElementType

func (GetTargetGroupsListArrayOutput) Index

func (GetTargetGroupsListArrayOutput) ToGetTargetGroupsListArrayOutput

func (o GetTargetGroupsListArrayOutput) ToGetTargetGroupsListArrayOutput() GetTargetGroupsListArrayOutput

func (GetTargetGroupsListArrayOutput) ToGetTargetGroupsListArrayOutputWithContext

func (o GetTargetGroupsListArrayOutput) ToGetTargetGroupsListArrayOutputWithContext(ctx context.Context) GetTargetGroupsListArrayOutput

type GetTargetGroupsListAssociatedRuleList

type GetTargetGroupsListAssociatedRuleList struct {
	// Forwarding rule domain.
	Domain string `pulumi:"domain"`
	// Listener ID.
	ListenerId string `pulumi:"listenerId"`
	// Listener name.
	ListenerName string `pulumi:"listenerName"`
	// Listener port.
	ListenerPort int `pulumi:"listenerPort"`
	// Load balance ID.
	LoadBalancerId string `pulumi:"loadBalancerId"`
	// Load balance name.
	LoadBalancerName string `pulumi:"loadBalancerName"`
	// Forwarding rule ID.
	LocationId string `pulumi:"locationId"`
	// Listener protocol type.
	Protocol string `pulumi:"protocol"`
	// Forwarding rule URL.
	Url string `pulumi:"url"`
}

type GetTargetGroupsListAssociatedRuleListArgs

type GetTargetGroupsListAssociatedRuleListArgs struct {
	// Forwarding rule domain.
	Domain pulumi.StringInput `pulumi:"domain"`
	// Listener ID.
	ListenerId pulumi.StringInput `pulumi:"listenerId"`
	// Listener name.
	ListenerName pulumi.StringInput `pulumi:"listenerName"`
	// Listener port.
	ListenerPort pulumi.IntInput `pulumi:"listenerPort"`
	// Load balance ID.
	LoadBalancerId pulumi.StringInput `pulumi:"loadBalancerId"`
	// Load balance name.
	LoadBalancerName pulumi.StringInput `pulumi:"loadBalancerName"`
	// Forwarding rule ID.
	LocationId pulumi.StringInput `pulumi:"locationId"`
	// Listener protocol type.
	Protocol pulumi.StringInput `pulumi:"protocol"`
	// Forwarding rule URL.
	Url pulumi.StringInput `pulumi:"url"`
}

func (GetTargetGroupsListAssociatedRuleListArgs) ElementType

func (GetTargetGroupsListAssociatedRuleListArgs) ToGetTargetGroupsListAssociatedRuleListOutput

func (i GetTargetGroupsListAssociatedRuleListArgs) ToGetTargetGroupsListAssociatedRuleListOutput() GetTargetGroupsListAssociatedRuleListOutput

func (GetTargetGroupsListAssociatedRuleListArgs) ToGetTargetGroupsListAssociatedRuleListOutputWithContext

func (i GetTargetGroupsListAssociatedRuleListArgs) ToGetTargetGroupsListAssociatedRuleListOutputWithContext(ctx context.Context) GetTargetGroupsListAssociatedRuleListOutput

type GetTargetGroupsListAssociatedRuleListArray

type GetTargetGroupsListAssociatedRuleListArray []GetTargetGroupsListAssociatedRuleListInput

func (GetTargetGroupsListAssociatedRuleListArray) ElementType

func (GetTargetGroupsListAssociatedRuleListArray) ToGetTargetGroupsListAssociatedRuleListArrayOutput

func (i GetTargetGroupsListAssociatedRuleListArray) ToGetTargetGroupsListAssociatedRuleListArrayOutput() GetTargetGroupsListAssociatedRuleListArrayOutput

func (GetTargetGroupsListAssociatedRuleListArray) ToGetTargetGroupsListAssociatedRuleListArrayOutputWithContext

func (i GetTargetGroupsListAssociatedRuleListArray) ToGetTargetGroupsListAssociatedRuleListArrayOutputWithContext(ctx context.Context) GetTargetGroupsListAssociatedRuleListArrayOutput

type GetTargetGroupsListAssociatedRuleListArrayInput

type GetTargetGroupsListAssociatedRuleListArrayInput interface {
	pulumi.Input

	ToGetTargetGroupsListAssociatedRuleListArrayOutput() GetTargetGroupsListAssociatedRuleListArrayOutput
	ToGetTargetGroupsListAssociatedRuleListArrayOutputWithContext(context.Context) GetTargetGroupsListAssociatedRuleListArrayOutput
}

GetTargetGroupsListAssociatedRuleListArrayInput is an input type that accepts GetTargetGroupsListAssociatedRuleListArray and GetTargetGroupsListAssociatedRuleListArrayOutput values. You can construct a concrete instance of `GetTargetGroupsListAssociatedRuleListArrayInput` via:

GetTargetGroupsListAssociatedRuleListArray{ GetTargetGroupsListAssociatedRuleListArgs{...} }

type GetTargetGroupsListAssociatedRuleListArrayOutput

type GetTargetGroupsListAssociatedRuleListArrayOutput struct{ *pulumi.OutputState }

func (GetTargetGroupsListAssociatedRuleListArrayOutput) ElementType

func (GetTargetGroupsListAssociatedRuleListArrayOutput) Index

func (GetTargetGroupsListAssociatedRuleListArrayOutput) ToGetTargetGroupsListAssociatedRuleListArrayOutput

func (o GetTargetGroupsListAssociatedRuleListArrayOutput) ToGetTargetGroupsListAssociatedRuleListArrayOutput() GetTargetGroupsListAssociatedRuleListArrayOutput

func (GetTargetGroupsListAssociatedRuleListArrayOutput) ToGetTargetGroupsListAssociatedRuleListArrayOutputWithContext

func (o GetTargetGroupsListAssociatedRuleListArrayOutput) ToGetTargetGroupsListAssociatedRuleListArrayOutputWithContext(ctx context.Context) GetTargetGroupsListAssociatedRuleListArrayOutput

type GetTargetGroupsListAssociatedRuleListInput

type GetTargetGroupsListAssociatedRuleListInput interface {
	pulumi.Input

	ToGetTargetGroupsListAssociatedRuleListOutput() GetTargetGroupsListAssociatedRuleListOutput
	ToGetTargetGroupsListAssociatedRuleListOutputWithContext(context.Context) GetTargetGroupsListAssociatedRuleListOutput
}

GetTargetGroupsListAssociatedRuleListInput is an input type that accepts GetTargetGroupsListAssociatedRuleListArgs and GetTargetGroupsListAssociatedRuleListOutput values. You can construct a concrete instance of `GetTargetGroupsListAssociatedRuleListInput` via:

GetTargetGroupsListAssociatedRuleListArgs{...}

type GetTargetGroupsListAssociatedRuleListOutput

type GetTargetGroupsListAssociatedRuleListOutput struct{ *pulumi.OutputState }

func (GetTargetGroupsListAssociatedRuleListOutput) Domain

Forwarding rule domain.

func (GetTargetGroupsListAssociatedRuleListOutput) ElementType

func (GetTargetGroupsListAssociatedRuleListOutput) ListenerId

Listener ID.

func (GetTargetGroupsListAssociatedRuleListOutput) ListenerName

Listener name.

func (GetTargetGroupsListAssociatedRuleListOutput) ListenerPort

Listener port.

func (GetTargetGroupsListAssociatedRuleListOutput) LoadBalancerId

Load balance ID.

func (GetTargetGroupsListAssociatedRuleListOutput) LoadBalancerName

Load balance name.

func (GetTargetGroupsListAssociatedRuleListOutput) LocationId

Forwarding rule ID.

func (GetTargetGroupsListAssociatedRuleListOutput) Protocol

Listener protocol type.

func (GetTargetGroupsListAssociatedRuleListOutput) ToGetTargetGroupsListAssociatedRuleListOutput

func (o GetTargetGroupsListAssociatedRuleListOutput) ToGetTargetGroupsListAssociatedRuleListOutput() GetTargetGroupsListAssociatedRuleListOutput

func (GetTargetGroupsListAssociatedRuleListOutput) ToGetTargetGroupsListAssociatedRuleListOutputWithContext

func (o GetTargetGroupsListAssociatedRuleListOutput) ToGetTargetGroupsListAssociatedRuleListOutputWithContext(ctx context.Context) GetTargetGroupsListAssociatedRuleListOutput

func (GetTargetGroupsListAssociatedRuleListOutput) Url

Forwarding rule URL.

type GetTargetGroupsListInput

type GetTargetGroupsListInput interface {
	pulumi.Input

	ToGetTargetGroupsListOutput() GetTargetGroupsListOutput
	ToGetTargetGroupsListOutputWithContext(context.Context) GetTargetGroupsListOutput
}

GetTargetGroupsListInput is an input type that accepts GetTargetGroupsListArgs and GetTargetGroupsListOutput values. You can construct a concrete instance of `GetTargetGroupsListInput` via:

GetTargetGroupsListArgs{...}

type GetTargetGroupsListOutput

type GetTargetGroupsListOutput struct{ *pulumi.OutputState }

func (GetTargetGroupsListOutput) AssociatedRuleLists

List of associated rules.

func (GetTargetGroupsListOutput) CreateTime

Creation time of the target group.

func (GetTargetGroupsListOutput) ElementType

func (GetTargetGroupsListOutput) ElementType() reflect.Type

func (GetTargetGroupsListOutput) Port

Port of target group.

func (GetTargetGroupsListOutput) TargetGroupId

func (o GetTargetGroupsListOutput) TargetGroupId() pulumi.StringOutput

ID of Target group. Mutually exclusive with `vpcId` and `targetGroupName`. `targetGroupId` is preferred.

func (GetTargetGroupsListOutput) TargetGroupInstanceLists

List of backend servers bound to the target group.

func (GetTargetGroupsListOutput) TargetGroupName

func (o GetTargetGroupsListOutput) TargetGroupName() pulumi.StringOutput

Name of target group. Mutually exclusive with `targetGroupId`. `targetGroupId` is preferred.

func (GetTargetGroupsListOutput) ToGetTargetGroupsListOutput

func (o GetTargetGroupsListOutput) ToGetTargetGroupsListOutput() GetTargetGroupsListOutput

func (GetTargetGroupsListOutput) ToGetTargetGroupsListOutputWithContext

func (o GetTargetGroupsListOutput) ToGetTargetGroupsListOutputWithContext(ctx context.Context) GetTargetGroupsListOutput

func (GetTargetGroupsListOutput) UpdateTime

Modification time of the target group.

func (GetTargetGroupsListOutput) VpcId

Target group VPC ID. Mutually exclusive with `targetGroupId`. `targetGroupId` is preferred.

type GetTargetGroupsListTargetGroupInstanceList

type GetTargetGroupsListTargetGroupInstanceList struct {
	// ID of Elastic Network Interface.
	EniId string `pulumi:"eniId"`
	// ID of backend service.
	InstanceId string `pulumi:"instanceId"`
	// The instance name of the backend service.
	InstanceName string `pulumi:"instanceName"`
	// Intranet IP list of back-end services.
	PrivateIpAddresses []interface{} `pulumi:"privateIpAddresses"`
	// List of external network IP of back-end services.
	PublicIpAddresses []interface{} `pulumi:"publicIpAddresses"`
	// The time the backend service was bound.
	RegisteredTime string `pulumi:"registeredTime"`
	// Port of backend service.
	ServerPort int `pulumi:"serverPort"`
	// Type of backend service.
	ServerType string `pulumi:"serverType"`
	// Forwarding weight of back-end services.
	Weight int `pulumi:"weight"`
}

type GetTargetGroupsListTargetGroupInstanceListArgs

type GetTargetGroupsListTargetGroupInstanceListArgs struct {
	// ID of Elastic Network Interface.
	EniId pulumi.StringInput `pulumi:"eniId"`
	// ID of backend service.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The instance name of the backend service.
	InstanceName pulumi.StringInput `pulumi:"instanceName"`
	// Intranet IP list of back-end services.
	PrivateIpAddresses pulumi.ArrayInput `pulumi:"privateIpAddresses"`
	// List of external network IP of back-end services.
	PublicIpAddresses pulumi.ArrayInput `pulumi:"publicIpAddresses"`
	// The time the backend service was bound.
	RegisteredTime pulumi.StringInput `pulumi:"registeredTime"`
	// Port of backend service.
	ServerPort pulumi.IntInput `pulumi:"serverPort"`
	// Type of backend service.
	ServerType pulumi.StringInput `pulumi:"serverType"`
	// Forwarding weight of back-end services.
	Weight pulumi.IntInput `pulumi:"weight"`
}

func (GetTargetGroupsListTargetGroupInstanceListArgs) ElementType

func (GetTargetGroupsListTargetGroupInstanceListArgs) ToGetTargetGroupsListTargetGroupInstanceListOutput

func (i GetTargetGroupsListTargetGroupInstanceListArgs) ToGetTargetGroupsListTargetGroupInstanceListOutput() GetTargetGroupsListTargetGroupInstanceListOutput

func (GetTargetGroupsListTargetGroupInstanceListArgs) ToGetTargetGroupsListTargetGroupInstanceListOutputWithContext

func (i GetTargetGroupsListTargetGroupInstanceListArgs) ToGetTargetGroupsListTargetGroupInstanceListOutputWithContext(ctx context.Context) GetTargetGroupsListTargetGroupInstanceListOutput

type GetTargetGroupsListTargetGroupInstanceListArray

type GetTargetGroupsListTargetGroupInstanceListArray []GetTargetGroupsListTargetGroupInstanceListInput

func (GetTargetGroupsListTargetGroupInstanceListArray) ElementType

func (GetTargetGroupsListTargetGroupInstanceListArray) ToGetTargetGroupsListTargetGroupInstanceListArrayOutput

func (i GetTargetGroupsListTargetGroupInstanceListArray) ToGetTargetGroupsListTargetGroupInstanceListArrayOutput() GetTargetGroupsListTargetGroupInstanceListArrayOutput

func (GetTargetGroupsListTargetGroupInstanceListArray) ToGetTargetGroupsListTargetGroupInstanceListArrayOutputWithContext

func (i GetTargetGroupsListTargetGroupInstanceListArray) ToGetTargetGroupsListTargetGroupInstanceListArrayOutputWithContext(ctx context.Context) GetTargetGroupsListTargetGroupInstanceListArrayOutput

type GetTargetGroupsListTargetGroupInstanceListArrayInput

type GetTargetGroupsListTargetGroupInstanceListArrayInput interface {
	pulumi.Input

	ToGetTargetGroupsListTargetGroupInstanceListArrayOutput() GetTargetGroupsListTargetGroupInstanceListArrayOutput
	ToGetTargetGroupsListTargetGroupInstanceListArrayOutputWithContext(context.Context) GetTargetGroupsListTargetGroupInstanceListArrayOutput
}

GetTargetGroupsListTargetGroupInstanceListArrayInput is an input type that accepts GetTargetGroupsListTargetGroupInstanceListArray and GetTargetGroupsListTargetGroupInstanceListArrayOutput values. You can construct a concrete instance of `GetTargetGroupsListTargetGroupInstanceListArrayInput` via:

GetTargetGroupsListTargetGroupInstanceListArray{ GetTargetGroupsListTargetGroupInstanceListArgs{...} }

type GetTargetGroupsListTargetGroupInstanceListArrayOutput

type GetTargetGroupsListTargetGroupInstanceListArrayOutput struct{ *pulumi.OutputState }

func (GetTargetGroupsListTargetGroupInstanceListArrayOutput) ElementType

func (GetTargetGroupsListTargetGroupInstanceListArrayOutput) Index

func (GetTargetGroupsListTargetGroupInstanceListArrayOutput) ToGetTargetGroupsListTargetGroupInstanceListArrayOutput

func (GetTargetGroupsListTargetGroupInstanceListArrayOutput) ToGetTargetGroupsListTargetGroupInstanceListArrayOutputWithContext

func (o GetTargetGroupsListTargetGroupInstanceListArrayOutput) ToGetTargetGroupsListTargetGroupInstanceListArrayOutputWithContext(ctx context.Context) GetTargetGroupsListTargetGroupInstanceListArrayOutput

type GetTargetGroupsListTargetGroupInstanceListInput

type GetTargetGroupsListTargetGroupInstanceListInput interface {
	pulumi.Input

	ToGetTargetGroupsListTargetGroupInstanceListOutput() GetTargetGroupsListTargetGroupInstanceListOutput
	ToGetTargetGroupsListTargetGroupInstanceListOutputWithContext(context.Context) GetTargetGroupsListTargetGroupInstanceListOutput
}

GetTargetGroupsListTargetGroupInstanceListInput is an input type that accepts GetTargetGroupsListTargetGroupInstanceListArgs and GetTargetGroupsListTargetGroupInstanceListOutput values. You can construct a concrete instance of `GetTargetGroupsListTargetGroupInstanceListInput` via:

GetTargetGroupsListTargetGroupInstanceListArgs{...}

type GetTargetGroupsListTargetGroupInstanceListOutput

type GetTargetGroupsListTargetGroupInstanceListOutput struct{ *pulumi.OutputState }

func (GetTargetGroupsListTargetGroupInstanceListOutput) ElementType

func (GetTargetGroupsListTargetGroupInstanceListOutput) EniId

ID of Elastic Network Interface.

func (GetTargetGroupsListTargetGroupInstanceListOutput) InstanceId

ID of backend service.

func (GetTargetGroupsListTargetGroupInstanceListOutput) InstanceName

The instance name of the backend service.

func (GetTargetGroupsListTargetGroupInstanceListOutput) PrivateIpAddresses

Intranet IP list of back-end services.

func (GetTargetGroupsListTargetGroupInstanceListOutput) PublicIpAddresses

List of external network IP of back-end services.

func (GetTargetGroupsListTargetGroupInstanceListOutput) RegisteredTime

The time the backend service was bound.

func (GetTargetGroupsListTargetGroupInstanceListOutput) ServerPort

Port of backend service.

func (GetTargetGroupsListTargetGroupInstanceListOutput) ServerType

Type of backend service.

func (GetTargetGroupsListTargetGroupInstanceListOutput) ToGetTargetGroupsListTargetGroupInstanceListOutput

func (o GetTargetGroupsListTargetGroupInstanceListOutput) ToGetTargetGroupsListTargetGroupInstanceListOutput() GetTargetGroupsListTargetGroupInstanceListOutput

func (GetTargetGroupsListTargetGroupInstanceListOutput) ToGetTargetGroupsListTargetGroupInstanceListOutputWithContext

func (o GetTargetGroupsListTargetGroupInstanceListOutput) ToGetTargetGroupsListTargetGroupInstanceListOutputWithContext(ctx context.Context) GetTargetGroupsListTargetGroupInstanceListOutput

func (GetTargetGroupsListTargetGroupInstanceListOutput) Weight

Forwarding weight of back-end services.

type GetTargetGroupsOutputArgs

type GetTargetGroupsOutputArgs struct {
	// Used to save results.
	ResultOutputFile pulumi.StringPtrInput `pulumi:"resultOutputFile"`
	// ID of Target group. Mutually exclusive with `vpcId` and `targetGroupName`. `targetGroupId` is preferred.
	TargetGroupId pulumi.StringPtrInput `pulumi:"targetGroupId"`
	// Name of target group. Mutually exclusive with `targetGroupId`. `targetGroupId` is preferred.
	TargetGroupName pulumi.StringPtrInput `pulumi:"targetGroupName"`
	// Target group VPC ID. Mutually exclusive with `targetGroupId`. `targetGroupId` is preferred.
	VpcId pulumi.StringPtrInput `pulumi:"vpcId"`
}

A collection of arguments for invoking getTargetGroups.

func (GetTargetGroupsOutputArgs) ElementType

func (GetTargetGroupsOutputArgs) ElementType() reflect.Type

type GetTargetGroupsResult

type GetTargetGroupsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// Target group info list.
	Lists            []GetTargetGroupsList `pulumi:"lists"`
	ResultOutputFile *string               `pulumi:"resultOutputFile"`
	// ID of Target group.
	TargetGroupId *string `pulumi:"targetGroupId"`
	// Target group VPC ID.
	TargetGroupName *string `pulumi:"targetGroupName"`
	// Name of target group.
	VpcId *string `pulumi:"vpcId"`
}

A collection of values returned by getTargetGroups.

func GetTargetGroups

func GetTargetGroups(ctx *pulumi.Context, args *GetTargetGroupsArgs, opts ...pulumi.InvokeOption) (*GetTargetGroupsResult, error)

Use this data source to query target group information.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		clbBasic, err := Clb.NewInstance(ctx, "clbBasic", &Clb.InstanceArgs{
			NetworkType: pulumi.String("OPEN"),
			ClbName:     pulumi.String("tf-clb-rule-basic"),
		})
		if err != nil {
			return err
		}
		listenerBasic, err := Clb.NewListener(ctx, "listenerBasic", &Clb.ListenerArgs{
			ClbId:        clbBasic.ID(),
			Port:         pulumi.Int(1),
			Protocol:     pulumi.String("HTTP"),
			ListenerName: pulumi.String("listener_basic"),
		})
		if err != nil {
			return err
		}
		ruleBasic, err := Clb.NewListenerRule(ctx, "ruleBasic", &Clb.ListenerRuleArgs{
			ClbId:             clbBasic.ID(),
			ListenerId:        listenerBasic.ListenerId,
			Domain:            pulumi.String("abc.com"),
			Url:               pulumi.String("/"),
			SessionExpireTime: pulumi.Int(30),
			Scheduler:         pulumi.String("WRR"),
			TargetType:        pulumi.String("TARGETGROUP"),
		})
		if err != nil {
			return err
		}
		test, err := Clb.NewTargetGroup(ctx, "test", &Clb.TargetGroupArgs{
			TargetGroupName: pulumi.String("test-target-keep-1"),
		})
		if err != nil {
			return err
		}
		_, err = Clb.NewTargetGroupAttachment(ctx, "group", &Clb.TargetGroupAttachmentArgs{
			ClbId:         clbBasic.ID(),
			ListenerId:    listenerBasic.ListenerId,
			RuleId:        ruleBasic.RuleId,
			TargrtGroupId: test.ID(),
		})
		if err != nil {
			return err
		}
		_ = Clb.GetTargetGroupsOutput(ctx, clb.GetTargetGroupsOutputArgs{
			TargetGroupId: test.ID(),
		}, nil)
		return nil
	})
}

```

type GetTargetGroupsResultOutput

type GetTargetGroupsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTargetGroups.

func (GetTargetGroupsResultOutput) ElementType

func (GetTargetGroupsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTargetGroupsResultOutput) Lists

Target group info list.

func (GetTargetGroupsResultOutput) ResultOutputFile

func (o GetTargetGroupsResultOutput) ResultOutputFile() pulumi.StringPtrOutput

func (GetTargetGroupsResultOutput) TargetGroupId

ID of Target group.

func (GetTargetGroupsResultOutput) TargetGroupName

Target group VPC ID.

func (GetTargetGroupsResultOutput) ToGetTargetGroupsResultOutput

func (o GetTargetGroupsResultOutput) ToGetTargetGroupsResultOutput() GetTargetGroupsResultOutput

func (GetTargetGroupsResultOutput) ToGetTargetGroupsResultOutputWithContext

func (o GetTargetGroupsResultOutput) ToGetTargetGroupsResultOutputWithContext(ctx context.Context) GetTargetGroupsResultOutput

func (GetTargetGroupsResultOutput) VpcId

Name of target group.

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// IP version, only applicable to open CLB. Valid values are `ipv4`, `ipv6` and `IPv6FullChain`.
	AddressIpVersion pulumi.StringOutput `pulumi:"addressIpVersion"`
	// Bandwidth package id. If set, the `internetChargeType` must be `BANDWIDTH_PACKAGE`.
	BandwidthPackageId pulumi.StringPtrOutput `pulumi:"bandwidthPackageId"`
	// Name of the CLB. The name can only contain Chinese characters, English letters, numbers, underscore and hyphen '-'.
	ClbName pulumi.StringOutput `pulumi:"clbName"`
	// The virtual service address table of the CLB.
	ClbVips pulumi.StringArrayOutput `pulumi:"clbVips"`
	// Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
	InternetBandwidthMaxOut pulumi.IntOutput `pulumi:"internetBandwidthMaxOut"`
	// Internet charge type, only applicable to open CLB. Valid values are `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.
	InternetChargeType pulumi.StringOutput `pulumi:"internetChargeType"`
	// Whether the target allow flow come from clb. If value is true, only check security group of clb, or check both clb and backend instance security group.
	LoadBalancerPassToTarget pulumi.BoolPtrOutput `pulumi:"loadBalancerPassToTarget"`
	// The id of log set.
	LogSetId pulumi.StringPtrOutput `pulumi:"logSetId"`
	// The id of log topic.
	LogTopicId pulumi.StringPtrOutput `pulumi:"logTopicId"`
	// Setting master zone id of cross available zone disaster recovery, only applicable to open CLB.
	MasterZoneId pulumi.StringPtrOutput `pulumi:"masterZoneId"`
	// Type of CLB instance. Valid values: `OPEN` and `INTERNAL`.
	NetworkType pulumi.StringOutput `pulumi:"networkType"`
	// ID of the project within the CLB instance, `0` - Default Project.
	ProjectId pulumi.IntPtrOutput `pulumi:"projectId"`
	// Security groups of the CLB instance. Supports both `OPEN` and `INTERNAL` CLBs.
	SecurityGroups pulumi.StringArrayOutput `pulumi:"securityGroups"`
	// Setting slave zone id of cross available zone disaster recovery, only applicable to open CLB. this zone will undertake traffic when the master is down.
	SlaveZoneId pulumi.StringPtrOutput `pulumi:"slaveZoneId"`
	// Snat Ip List, required with `snat_pro=true`. NOTE: This argument cannot be read and modified here because dynamic ip is untraceable, please import resource `Clb.SnatIp` to handle fixed ips.
	SnatIps InstanceSnatIpArrayOutput `pulumi:"snatIps"`
	// Indicates whether Binding IPs of other VPCs feature switch.
	SnatPro pulumi.BoolPtrOutput `pulumi:"snatPro"`
	// Subnet ID of the CLB. Effective only for CLB within the VPC. Only supports `INTERNAL` CLBs. Default is `ipv4`.
	SubnetId pulumi.StringPtrOutput `pulumi:"subnetId"`
	// The available tags within this CLB.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// Region information of backend services are attached the CLB instance. Only supports `OPEN` CLBs.
	TargetRegionInfoRegion pulumi.StringOutput `pulumi:"targetRegionInfoRegion"`
	// Vpc information of backend services are attached the CLB instance. Only supports `OPEN` CLBs.
	TargetRegionInfoVpcId pulumi.StringOutput `pulumi:"targetRegionInfoVpcId"`
	// Network operator, only applicable to open CLB. Valid values are `CMCC`(China Mobile), `CTCC`(Telecom), `CUCC`(China Unicom) and `BGP`. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
	VipIsp pulumi.StringOutput `pulumi:"vipIsp"`
	// VPC ID of the CLB.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
	// Available zone id, only applicable to open CLB.
	ZoneId pulumi.StringPtrOutput `pulumi:"zoneId"`
}

Provides a resource to create a CLB instance.

## Example Usage

INTERNAL CLB

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewInstance(ctx, "internalClb", &Clb.InstanceArgs{
			ClbName:     pulumi.String("myclb"),
			NetworkType: pulumi.String("INTERNAL"),
			ProjectId:   pulumi.Int(0),
			SubnetId:    pulumi.String("subnet-12rastkr"),
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("tf"),
			},
			VpcId: pulumi.String("vpc-7007ll7q"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

OPEN CLB

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewInstance(ctx, "openClb", &Clb.InstanceArgs{
			ClbName:     pulumi.String("myclb"),
			NetworkType: pulumi.String("OPEN"),
			ProjectId:   pulumi.Int(0),
			SecurityGroups: pulumi.StringArray{
				pulumi.String("sg-o0ek7r93"),
			},
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("tf"),
			},
			TargetRegionInfoRegion: pulumi.String("ap-guangzhou"),
			TargetRegionInfoVpcId:  pulumi.String("vpc-da7ffa61"),
			VpcId:                  pulumi.String("vpc-da7ffa61"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Default enable

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Clb"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Security"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		foo, err := Vpc.NewInstance(ctx, "foo", &Vpc.InstanceArgs{
			CidrBlock: pulumi.String("10.0.0.0/16"),
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("mytest"),
			},
		})
		if err != nil {
			return err
		}
		_, err = Subnet.NewInstance(ctx, "subnet", &Subnet.InstanceArgs{
			AvailabilityZone: pulumi.String("ap-guangzhou-1"),
			VpcId:            foo.ID(),
			CidrBlock:        pulumi.String("10.0.20.0/28"),
			IsMulticast:      pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		sglab, err := Security.NewGroup(ctx, "sglab", &Security.GroupArgs{
			Description: pulumi.String("favourite sg"),
			ProjectId:   pulumi.Int(0),
		})
		if err != nil {
			return err
		}
		_, err = Clb.NewInstance(ctx, "openClb", &Clb.InstanceArgs{
			NetworkType:              pulumi.String("OPEN"),
			ClbName:                  pulumi.String("my-open-clb"),
			ProjectId:                pulumi.Int(0),
			VpcId:                    foo.ID(),
			LoadBalancerPassToTarget: pulumi.Bool(true),
			SecurityGroups: pulumi.StringArray{
				sglab.ID(),
			},
			TargetRegionInfoRegion: pulumi.String("ap-guangzhou"),
			TargetRegionInfoVpcId:  foo.ID(),
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("open"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

CREATE multiple instance

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewInstance(ctx, "openClb1", &Clb.InstanceArgs{
			ClbName:      pulumi.String("hello"),
			MasterZoneId: pulumi.String("ap-guangzhou-3"),
			NetworkType:  pulumi.String("OPEN"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

CREATE instance with log

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Clb"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Route"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Subnet"
"github.com/tencentcloudstack/pulumi-tencentcloud/sdk/go/tencentcloud/Vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		vpcTest, err := Vpc.NewInstance(ctx, "vpcTest", &Vpc.InstanceArgs{
			CidrBlock: pulumi.String("10.0.0.0/16"),
		})
		if err != nil {
			return err
		}
		rtbTest, err := Route.NewTable(ctx, "rtbTest", &Route.TableArgs{
			VpcId: vpcTest.ID(),
		})
		if err != nil {
			return err
		}
		subnetTest, err := Subnet.NewInstance(ctx, "subnetTest", &Subnet.InstanceArgs{
			AvailabilityZone: pulumi.String("ap-guangzhou-3"),
			CidrBlock:        pulumi.String("10.0.1.0/24"),
			RouteTableId:     rtbTest.ID(),
			VpcId:            vpcTest.ID(),
		})
		if err != nil {
			return err
		}
		set, err := Clb.NewLogSet(ctx, "set", &Clb.LogSetArgs{
			Period: pulumi.Int(7),
		})
		if err != nil {
			return err
		}
		topic, err := Clb.NewLogTopic(ctx, "topic", &Clb.LogTopicArgs{
			LogSetId:  set.ID(),
			TopicName: pulumi.String("clb-topic"),
		})
		if err != nil {
			return err
		}
		_, err = Clb.NewInstance(ctx, "internalClb", &Clb.InstanceArgs{
			ClbName:                  pulumi.String("myclb"),
			LoadBalancerPassToTarget: pulumi.Bool(true),
			LogSetId:                 set.ID(),
			LogTopicId:               topic.ID(),
			NetworkType:              pulumi.String("INTERNAL"),
			ProjectId:                pulumi.Int(0),
			SubnetId:                 subnetTest.ID(),
			Tags: pulumi.AnyMap{
				"test": pulumi.Any("tf"),
			},
			VpcId: vpcTest.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CLB instance can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Clb/instance:Instance foo lb-7a0t6zqb

```

func GetInstance

func GetInstance(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error)

GetInstance gets an existing Instance 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 NewInstance

func NewInstance(ctx *pulumi.Context,
	name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error)

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

func (*Instance) ElementType

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

type InstanceArgs

type InstanceArgs struct {
	// IP version, only applicable to open CLB. Valid values are `ipv4`, `ipv6` and `IPv6FullChain`.
	AddressIpVersion pulumi.StringPtrInput
	// Bandwidth package id. If set, the `internetChargeType` must be `BANDWIDTH_PACKAGE`.
	BandwidthPackageId pulumi.StringPtrInput
	// Name of the CLB. The name can only contain Chinese characters, English letters, numbers, underscore and hyphen '-'.
	ClbName pulumi.StringInput
	// Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
	InternetBandwidthMaxOut pulumi.IntPtrInput
	// Internet charge type, only applicable to open CLB. Valid values are `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.
	InternetChargeType pulumi.StringPtrInput
	// Whether the target allow flow come from clb. If value is true, only check security group of clb, or check both clb and backend instance security group.
	LoadBalancerPassToTarget pulumi.BoolPtrInput
	// The id of log set.
	LogSetId pulumi.StringPtrInput
	// The id of log topic.
	LogTopicId pulumi.StringPtrInput
	// Setting master zone id of cross available zone disaster recovery, only applicable to open CLB.
	MasterZoneId pulumi.StringPtrInput
	// Type of CLB instance. Valid values: `OPEN` and `INTERNAL`.
	NetworkType pulumi.StringInput
	// ID of the project within the CLB instance, `0` - Default Project.
	ProjectId pulumi.IntPtrInput
	// Security groups of the CLB instance. Supports both `OPEN` and `INTERNAL` CLBs.
	SecurityGroups pulumi.StringArrayInput
	// Setting slave zone id of cross available zone disaster recovery, only applicable to open CLB. this zone will undertake traffic when the master is down.
	SlaveZoneId pulumi.StringPtrInput
	// Snat Ip List, required with `snat_pro=true`. NOTE: This argument cannot be read and modified here because dynamic ip is untraceable, please import resource `Clb.SnatIp` to handle fixed ips.
	SnatIps InstanceSnatIpArrayInput
	// Indicates whether Binding IPs of other VPCs feature switch.
	SnatPro pulumi.BoolPtrInput
	// Subnet ID of the CLB. Effective only for CLB within the VPC. Only supports `INTERNAL` CLBs. Default is `ipv4`.
	SubnetId pulumi.StringPtrInput
	// The available tags within this CLB.
	Tags pulumi.MapInput
	// Region information of backend services are attached the CLB instance. Only supports `OPEN` CLBs.
	TargetRegionInfoRegion pulumi.StringPtrInput
	// Vpc information of backend services are attached the CLB instance. Only supports `OPEN` CLBs.
	TargetRegionInfoVpcId pulumi.StringPtrInput
	// VPC ID of the CLB.
	VpcId pulumi.StringPtrInput
	// Available zone id, only applicable to open CLB.
	ZoneId pulumi.StringPtrInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

	ToInstanceArrayOutput() InstanceArrayOutput
	ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput
}

InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values. You can construct a concrete instance of `InstanceArrayInput` via:

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

func (o InstanceArrayOutput) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput

type InstanceInput

type InstanceInput interface {
	pulumi.Input

	ToInstanceOutput() InstanceOutput
	ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
}

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

	ToInstanceMapOutput() InstanceMapOutput
	ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput
}

InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values. You can construct a concrete instance of `InstanceMapInput` via:

InstanceMap{ "key": InstanceArgs{...} }

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

func (o InstanceMapOutput) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) AddressIpVersion

func (o InstanceOutput) AddressIpVersion() pulumi.StringOutput

IP version, only applicable to open CLB. Valid values are `ipv4`, `ipv6` and `IPv6FullChain`.

func (InstanceOutput) BandwidthPackageId

func (o InstanceOutput) BandwidthPackageId() pulumi.StringPtrOutput

Bandwidth package id. If set, the `internetChargeType` must be `BANDWIDTH_PACKAGE`.

func (InstanceOutput) ClbName

func (o InstanceOutput) ClbName() pulumi.StringOutput

Name of the CLB. The name can only contain Chinese characters, English letters, numbers, underscore and hyphen '-'.

func (InstanceOutput) ClbVips

The virtual service address table of the CLB.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) InternetBandwidthMaxOut

func (o InstanceOutput) InternetBandwidthMaxOut() pulumi.IntOutput

Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.

func (InstanceOutput) InternetChargeType

func (o InstanceOutput) InternetChargeType() pulumi.StringOutput

Internet charge type, only applicable to open CLB. Valid values are `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.

func (InstanceOutput) LoadBalancerPassToTarget

func (o InstanceOutput) LoadBalancerPassToTarget() pulumi.BoolPtrOutput

Whether the target allow flow come from clb. If value is true, only check security group of clb, or check both clb and backend instance security group.

func (InstanceOutput) LogSetId

func (o InstanceOutput) LogSetId() pulumi.StringPtrOutput

The id of log set.

func (InstanceOutput) LogTopicId

func (o InstanceOutput) LogTopicId() pulumi.StringPtrOutput

The id of log topic.

func (InstanceOutput) MasterZoneId

func (o InstanceOutput) MasterZoneId() pulumi.StringPtrOutput

Setting master zone id of cross available zone disaster recovery, only applicable to open CLB.

func (InstanceOutput) NetworkType

func (o InstanceOutput) NetworkType() pulumi.StringOutput

Type of CLB instance. Valid values: `OPEN` and `INTERNAL`.

func (InstanceOutput) ProjectId

func (o InstanceOutput) ProjectId() pulumi.IntPtrOutput

ID of the project within the CLB instance, `0` - Default Project.

func (InstanceOutput) SecurityGroups

func (o InstanceOutput) SecurityGroups() pulumi.StringArrayOutput

Security groups of the CLB instance. Supports both `OPEN` and `INTERNAL` CLBs.

func (InstanceOutput) SlaveZoneId

func (o InstanceOutput) SlaveZoneId() pulumi.StringPtrOutput

Setting slave zone id of cross available zone disaster recovery, only applicable to open CLB. this zone will undertake traffic when the master is down.

func (InstanceOutput) SnatIps

Snat Ip List, required with `snat_pro=true`. NOTE: This argument cannot be read and modified here because dynamic ip is untraceable, please import resource `Clb.SnatIp` to handle fixed ips.

func (InstanceOutput) SnatPro

func (o InstanceOutput) SnatPro() pulumi.BoolPtrOutput

Indicates whether Binding IPs of other VPCs feature switch.

func (InstanceOutput) SubnetId

func (o InstanceOutput) SubnetId() pulumi.StringPtrOutput

Subnet ID of the CLB. Effective only for CLB within the VPC. Only supports `INTERNAL` CLBs. Default is `ipv4`.

func (InstanceOutput) Tags

func (o InstanceOutput) Tags() pulumi.MapOutput

The available tags within this CLB.

func (InstanceOutput) TargetRegionInfoRegion

func (o InstanceOutput) TargetRegionInfoRegion() pulumi.StringOutput

Region information of backend services are attached the CLB instance. Only supports `OPEN` CLBs.

func (InstanceOutput) TargetRegionInfoVpcId

func (o InstanceOutput) TargetRegionInfoVpcId() pulumi.StringOutput

Vpc information of backend services are attached the CLB instance. Only supports `OPEN` CLBs.

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput

func (InstanceOutput) VipIsp

func (o InstanceOutput) VipIsp() pulumi.StringOutput

Network operator, only applicable to open CLB. Valid values are `CMCC`(China Mobile), `CTCC`(Telecom), `CUCC`(China Unicom) and `BGP`. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).

func (InstanceOutput) VpcId

VPC ID of the CLB.

func (InstanceOutput) ZoneId

Available zone id, only applicable to open CLB.

type InstanceSnatIp

type InstanceSnatIp struct {
	// Snat IP address, If set to empty will auto allocated.
	Ip *string `pulumi:"ip"`
	// Snat subnet ID.
	SubnetId string `pulumi:"subnetId"`
}

type InstanceSnatIpArgs

type InstanceSnatIpArgs struct {
	// Snat IP address, If set to empty will auto allocated.
	Ip pulumi.StringPtrInput `pulumi:"ip"`
	// Snat subnet ID.
	SubnetId pulumi.StringInput `pulumi:"subnetId"`
}

func (InstanceSnatIpArgs) ElementType

func (InstanceSnatIpArgs) ElementType() reflect.Type

func (InstanceSnatIpArgs) ToInstanceSnatIpOutput

func (i InstanceSnatIpArgs) ToInstanceSnatIpOutput() InstanceSnatIpOutput

func (InstanceSnatIpArgs) ToInstanceSnatIpOutputWithContext

func (i InstanceSnatIpArgs) ToInstanceSnatIpOutputWithContext(ctx context.Context) InstanceSnatIpOutput

type InstanceSnatIpArray

type InstanceSnatIpArray []InstanceSnatIpInput

func (InstanceSnatIpArray) ElementType

func (InstanceSnatIpArray) ElementType() reflect.Type

func (InstanceSnatIpArray) ToInstanceSnatIpArrayOutput

func (i InstanceSnatIpArray) ToInstanceSnatIpArrayOutput() InstanceSnatIpArrayOutput

func (InstanceSnatIpArray) ToInstanceSnatIpArrayOutputWithContext

func (i InstanceSnatIpArray) ToInstanceSnatIpArrayOutputWithContext(ctx context.Context) InstanceSnatIpArrayOutput

type InstanceSnatIpArrayInput

type InstanceSnatIpArrayInput interface {
	pulumi.Input

	ToInstanceSnatIpArrayOutput() InstanceSnatIpArrayOutput
	ToInstanceSnatIpArrayOutputWithContext(context.Context) InstanceSnatIpArrayOutput
}

InstanceSnatIpArrayInput is an input type that accepts InstanceSnatIpArray and InstanceSnatIpArrayOutput values. You can construct a concrete instance of `InstanceSnatIpArrayInput` via:

InstanceSnatIpArray{ InstanceSnatIpArgs{...} }

type InstanceSnatIpArrayOutput

type InstanceSnatIpArrayOutput struct{ *pulumi.OutputState }

func (InstanceSnatIpArrayOutput) ElementType

func (InstanceSnatIpArrayOutput) ElementType() reflect.Type

func (InstanceSnatIpArrayOutput) Index

func (InstanceSnatIpArrayOutput) ToInstanceSnatIpArrayOutput

func (o InstanceSnatIpArrayOutput) ToInstanceSnatIpArrayOutput() InstanceSnatIpArrayOutput

func (InstanceSnatIpArrayOutput) ToInstanceSnatIpArrayOutputWithContext

func (o InstanceSnatIpArrayOutput) ToInstanceSnatIpArrayOutputWithContext(ctx context.Context) InstanceSnatIpArrayOutput

type InstanceSnatIpInput

type InstanceSnatIpInput interface {
	pulumi.Input

	ToInstanceSnatIpOutput() InstanceSnatIpOutput
	ToInstanceSnatIpOutputWithContext(context.Context) InstanceSnatIpOutput
}

InstanceSnatIpInput is an input type that accepts InstanceSnatIpArgs and InstanceSnatIpOutput values. You can construct a concrete instance of `InstanceSnatIpInput` via:

InstanceSnatIpArgs{...}

type InstanceSnatIpOutput

type InstanceSnatIpOutput struct{ *pulumi.OutputState }

func (InstanceSnatIpOutput) ElementType

func (InstanceSnatIpOutput) ElementType() reflect.Type

func (InstanceSnatIpOutput) Ip

Snat IP address, If set to empty will auto allocated.

func (InstanceSnatIpOutput) SubnetId

Snat subnet ID.

func (InstanceSnatIpOutput) ToInstanceSnatIpOutput

func (o InstanceSnatIpOutput) ToInstanceSnatIpOutput() InstanceSnatIpOutput

func (InstanceSnatIpOutput) ToInstanceSnatIpOutputWithContext

func (o InstanceSnatIpOutput) ToInstanceSnatIpOutputWithContext(ctx context.Context) InstanceSnatIpOutput

type InstanceState

type InstanceState struct {
	// IP version, only applicable to open CLB. Valid values are `ipv4`, `ipv6` and `IPv6FullChain`.
	AddressIpVersion pulumi.StringPtrInput
	// Bandwidth package id. If set, the `internetChargeType` must be `BANDWIDTH_PACKAGE`.
	BandwidthPackageId pulumi.StringPtrInput
	// Name of the CLB. The name can only contain Chinese characters, English letters, numbers, underscore and hyphen '-'.
	ClbName pulumi.StringPtrInput
	// The virtual service address table of the CLB.
	ClbVips pulumi.StringArrayInput
	// Max bandwidth out, only applicable to open CLB. Valid value ranges is [1, 2048]. Unit is MB.
	InternetBandwidthMaxOut pulumi.IntPtrInput
	// Internet charge type, only applicable to open CLB. Valid values are `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`.
	InternetChargeType pulumi.StringPtrInput
	// Whether the target allow flow come from clb. If value is true, only check security group of clb, or check both clb and backend instance security group.
	LoadBalancerPassToTarget pulumi.BoolPtrInput
	// The id of log set.
	LogSetId pulumi.StringPtrInput
	// The id of log topic.
	LogTopicId pulumi.StringPtrInput
	// Setting master zone id of cross available zone disaster recovery, only applicable to open CLB.
	MasterZoneId pulumi.StringPtrInput
	// Type of CLB instance. Valid values: `OPEN` and `INTERNAL`.
	NetworkType pulumi.StringPtrInput
	// ID of the project within the CLB instance, `0` - Default Project.
	ProjectId pulumi.IntPtrInput
	// Security groups of the CLB instance. Supports both `OPEN` and `INTERNAL` CLBs.
	SecurityGroups pulumi.StringArrayInput
	// Setting slave zone id of cross available zone disaster recovery, only applicable to open CLB. this zone will undertake traffic when the master is down.
	SlaveZoneId pulumi.StringPtrInput
	// Snat Ip List, required with `snat_pro=true`. NOTE: This argument cannot be read and modified here because dynamic ip is untraceable, please import resource `Clb.SnatIp` to handle fixed ips.
	SnatIps InstanceSnatIpArrayInput
	// Indicates whether Binding IPs of other VPCs feature switch.
	SnatPro pulumi.BoolPtrInput
	// Subnet ID of the CLB. Effective only for CLB within the VPC. Only supports `INTERNAL` CLBs. Default is `ipv4`.
	SubnetId pulumi.StringPtrInput
	// The available tags within this CLB.
	Tags pulumi.MapInput
	// Region information of backend services are attached the CLB instance. Only supports `OPEN` CLBs.
	TargetRegionInfoRegion pulumi.StringPtrInput
	// Vpc information of backend services are attached the CLB instance. Only supports `OPEN` CLBs.
	TargetRegionInfoVpcId pulumi.StringPtrInput
	// Network operator, only applicable to open CLB. Valid values are `CMCC`(China Mobile), `CTCC`(Telecom), `CUCC`(China Unicom) and `BGP`. If this ISP is specified, network billing method can only use the bandwidth package billing (BANDWIDTH_PACKAGE).
	VipIsp pulumi.StringPtrInput
	// VPC ID of the CLB.
	VpcId pulumi.StringPtrInput
	// Available zone id, only applicable to open CLB.
	ZoneId pulumi.StringPtrInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

type Listener

type Listener struct {
	pulumi.CustomResourceState

	// ID of the client certificate. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when the ssl mode is `MUTUAL`.
	CertificateCaId pulumi.StringPtrOutput `pulumi:"certificateCaId"`
	// ID of the server certificate. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.
	CertificateId pulumi.StringPtrOutput `pulumi:"certificateId"`
	// Type of certificate. Valid values: `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.
	CertificateSslMode pulumi.StringPtrOutput `pulumi:"certificateSslMode"`
	// ID of the CLB.
	ClbId pulumi.StringOutput `pulumi:"clbId"`
	// Health check protocol. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required, which represents the input format of the health check. Valid values: `HEX`, `TEXT`.
	HealthCheckContextType pulumi.StringPtrOutput `pulumi:"healthCheckContextType"`
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check for 3 consecutive times, the backend CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckHealthNum pulumi.IntOutput `pulumi:"healthCheckHealthNum"`
	// HTTP health check code of TCP listener. When the value of `healthCheckType` of the health check protocol is `HTTP`, this field is required. Valid values: `1`, `2`, `4`, `8`, `16`. `1` means http_1xx, `2` means http_2xx, `4` means http_3xx, `8` means http_4xx, `16` means http_5xx.
	HealthCheckHttpCode pulumi.IntPtrOutput `pulumi:"healthCheckHttpCode"`
	// HTTP health check domain of TCP listener.
	HealthCheckHttpDomain pulumi.StringPtrOutput `pulumi:"healthCheckHttpDomain"`
	// HTTP health check method of TCP listener. Valid values: `HEAD`, `GET`.
	HealthCheckHttpMethod pulumi.StringOutput `pulumi:"healthCheckHttpMethod"`
	// HTTP health check path of TCP listener.
	HealthCheckHttpPath pulumi.StringPtrOutput `pulumi:"healthCheckHttpPath"`
	// The HTTP version of the backend service. When the value of `healthCheckType` of the health check protocol is `HTTP`, this field is required. Valid values: `HTTP/1.0`, `HTTP/1.1`.
	HealthCheckHttpVersion pulumi.StringPtrOutput `pulumi:"healthCheckHttpVersion"`
	// Interval time of health check. Valid value ranges: [5~300] sec. and the default is 5 sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckIntervalTime pulumi.IntOutput `pulumi:"healthCheckIntervalTime"`
	// The health check port is the port of the backend service by default. Unless you want to specify a specific port, it is recommended to leave it blank. Only applicable to TCP/UDP listener.
	HealthCheckPort pulumi.IntPtrOutput `pulumi:"healthCheckPort"`
	// It represents the result returned by the health check. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required. Only ASCII visible characters are allowed and the maximum length is 500. When `healthCheckContextType` value is `HEX`, the characters of SendContext and RecvContext can only be selected in `0123456789ABCDEF` and the length must be even digits.
	HealthCheckRecvContext pulumi.StringPtrOutput `pulumi:"healthCheckRecvContext"`
	// It represents the content of the request sent by the health check. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required. Only visible ASCII characters are allowed and the maximum length is 500. When `healthCheckContextType` value is `HEX`, the characters of SendContext and RecvContext can only be selected in `0123456789ABCDEF` and the length must be even digits.
	HealthCheckSendContext pulumi.StringPtrOutput `pulumi:"healthCheckSendContext"`
	// Indicates whether health check is enabled.
	HealthCheckSwitch pulumi.BoolOutput `pulumi:"healthCheckSwitch"`
	// Response timeout of health check. Valid value ranges: [2~60] sec. Default is 2 sec. Response timeout needs to be less than check interval. NOTES: Only supports listeners of `TCP`,`UDP`,`TCP_SSL` protocol.
	HealthCheckTimeOut pulumi.IntOutput `pulumi:"healthCheckTimeOut"`
	// Protocol used for health check. Valid values: `CUSTOM`, `TCP`, `HTTP`.
	HealthCheckType pulumi.StringOutput `pulumi:"healthCheckType"`
	// Unhealthy threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, the CVM is identified as unhealthy. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckUnhealthNum pulumi.IntOutput `pulumi:"healthCheckUnhealthNum"`
	// ID of this CLB listener.
	ListenerId pulumi.StringOutput `pulumi:"listenerId"`
	// Name of the CLB listener, and available values can only be Chinese characters, English letters, numbers, underscore and hyphen '-'.
	ListenerName pulumi.StringOutput `pulumi:"listenerName"`
	// Port of the CLB listener.
	Port pulumi.IntPtrOutput `pulumi:"port"`
	// Type of protocol within the listener. Valid values: `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`.
	Protocol pulumi.StringOutput `pulumi:"protocol"`
	// Scheduling method of the CLB listener, and available values are 'WRR' and 'LEAST_CONN'. The default is 'WRR'. NOTES: The listener of `HTTP` and `HTTPS` protocol additionally supports the `IP Hash` method. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	Scheduler pulumi.StringPtrOutput `pulumi:"scheduler"`
	// Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as `WRR`, and not available when listener protocol is `TCP_SSL`. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	SessionExpireTime pulumi.IntPtrOutput `pulumi:"sessionExpireTime"`
	// Indicates whether SNI is enabled, and only supported with protocol `HTTPS`. If enabled, you can set a certificate for each rule in `Clb.ListenerRule`, otherwise all rules have a certificate.
	SniSwitch pulumi.BoolPtrOutput `pulumi:"sniSwitch"`
	// Backend target type. Valid values: `NODE`, `TARGETGROUP`. `NODE` means to bind ordinary nodes, `TARGETGROUP` means to bind target group. NOTES: TCP/UDP/TCP_SSL listener must configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	TargetType pulumi.StringOutput `pulumi:"targetType"`
}

Provides a resource to create a CLB listener.

## Example Usage

HTTP Listener

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewListener(ctx, "hTTPListener", &Clb.ListenerArgs{
			ClbId:        pulumi.String("lb-0lh5au7v"),
			ListenerName: pulumi.String("test_listener"),
			Port:         pulumi.Int(80),
			Protocol:     pulumi.String("HTTP"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

TCP/UDP Listener

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewListener(ctx, "tCPListener", &Clb.ListenerArgs{
			ClbId:                   pulumi.String("lb-0lh5au7v"),
			HealthCheckHealthNum:    pulumi.Int(3),
			HealthCheckHttpCode:     pulumi.Int(2),
			HealthCheckHttpMethod:   pulumi.String("GET"),
			HealthCheckHttpVersion:  pulumi.String("HTTP/1.0"),
			HealthCheckIntervalTime: pulumi.Int(5),
			HealthCheckPort:         pulumi.Int(200),
			HealthCheckSwitch:       pulumi.Bool(true),
			HealthCheckTimeOut:      pulumi.Int(2),
			HealthCheckType:         pulumi.String("HTTP"),
			HealthCheckUnhealthNum:  pulumi.Int(3),
			ListenerName:            pulumi.String("test_listener"),
			Port:                    pulumi.Int(80),
			Protocol:                pulumi.String("TCP"),
			Scheduler:               pulumi.String("WRR"),
			SessionExpireTime:       pulumi.Int(30),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

TCP/UDP Listener with tcp health check

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewListener(ctx, "listenerTcp", &Clb.ListenerArgs{
			ClbId:                   pulumi.Any(tencentcloud_clb_instance.Clb_basic.Id),
			ListenerName:            pulumi.String("listener_tcp"),
			Port:                    pulumi.Int(44),
			Protocol:                pulumi.String("TCP"),
			HealthCheckSwitch:       pulumi.Bool(true),
			HealthCheckTimeOut:      pulumi.Int(30),
			HealthCheckIntervalTime: pulumi.Int(100),
			HealthCheckHealthNum:    pulumi.Int(2),
			HealthCheckUnhealthNum:  pulumi.Int(2),
			SessionExpireTime:       pulumi.Int(30),
			Scheduler:               pulumi.String("WRR"),
			HealthCheckType:         pulumi.String("TCP"),
			HealthCheckPort:         pulumi.Int(200),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

TCP/UDP Listener with http health check

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewListener(ctx, "listenerTcp", &Clb.ListenerArgs{
			ClbId:                   pulumi.Any(tencentcloud_clb_instance.Clb_basic.Id),
			ListenerName:            pulumi.String("listener_tcp"),
			Port:                    pulumi.Int(44),
			Protocol:                pulumi.String("TCP"),
			HealthCheckSwitch:       pulumi.Bool(true),
			HealthCheckTimeOut:      pulumi.Int(30),
			HealthCheckIntervalTime: pulumi.Int(100),
			HealthCheckHealthNum:    pulumi.Int(2),
			HealthCheckUnhealthNum:  pulumi.Int(2),
			SessionExpireTime:       pulumi.Int(30),
			Scheduler:               pulumi.String("WRR"),
			HealthCheckType:         pulumi.String("HTTP"),
			HealthCheckHttpDomain:   pulumi.String("www.tencent.com"),
			HealthCheckHttpCode:     pulumi.Int(16),
			HealthCheckHttpVersion:  pulumi.String("HTTP/1.1"),
			HealthCheckHttpMethod:   pulumi.String("HEAD"),
			HealthCheckHttpPath:     pulumi.String("/"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

TCP/UDP Listener with customer health check

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewListener(ctx, "listenerTcp", &Clb.ListenerArgs{
			ClbId:                   pulumi.Any(tencentcloud_clb_instance.Clb_basic.Id),
			ListenerName:            pulumi.String("listener_tcp"),
			Port:                    pulumi.Int(44),
			Protocol:                pulumi.String("TCP"),
			HealthCheckSwitch:       pulumi.Bool(true),
			HealthCheckTimeOut:      pulumi.Int(30),
			HealthCheckIntervalTime: pulumi.Int(100),
			HealthCheckHealthNum:    pulumi.Int(2),
			HealthCheckUnhealthNum:  pulumi.Int(2),
			SessionExpireTime:       pulumi.Int(30),
			Scheduler:               pulumi.String("WRR"),
			HealthCheckType:         pulumi.String("CUSTOM"),
			HealthCheckContextType:  pulumi.String("HEX"),
			HealthCheckSendContext:  pulumi.String("0123456789ABCDEF"),
			HealthCheckRecvContext:  pulumi.String("ABCD"),
			TargetType:              pulumi.String("TARGETGROUP"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

HTTPS Listener

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewListener(ctx, "hTTPSListener", &Clb.ListenerArgs{
			CertificateCaId:    pulumi.String("VfqO4zkB"),
			CertificateId:      pulumi.String("VjANRdz8"),
			CertificateSslMode: pulumi.String("MUTUAL"),
			ClbId:              pulumi.String("lb-0lh5au7v"),
			ListenerName:       pulumi.String("test_listener"),
			Port:               pulumi.Int(80),
			Protocol:           pulumi.String("HTTPS"),
			SniSwitch:          pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

TCP SSL Listener

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewListener(ctx, "tCPSSLListener", &Clb.ListenerArgs{
			CertificateCaId:         pulumi.String("VfqO4zkB"),
			CertificateId:           pulumi.String("VjANRdz8"),
			CertificateSslMode:      pulumi.String("MUTUAL"),
			ClbId:                   pulumi.String("lb-0lh5au7v"),
			HealthCheckHealthNum:    pulumi.Int(3),
			HealthCheckIntervalTime: pulumi.Int(5),
			HealthCheckSwitch:       pulumi.Bool(true),
			HealthCheckTimeOut:      pulumi.Int(2),
			HealthCheckUnhealthNum:  pulumi.Int(3),
			ListenerName:            pulumi.String("test_listener"),
			Port:                    pulumi.Int(80),
			Protocol:                pulumi.String("TCP_SSL"),
			Scheduler:               pulumi.String("WRR"),
			TargetType:              pulumi.String("TARGETGROUP"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CLB listener can be imported using the id (version >= 1.47.0), e.g.

```sh

$ pulumi import tencentcloud:Clb/listener:Listener foo lb-7a0t6zqb#lbl-hh141sn9

```

func GetListener

func GetListener(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ListenerState, opts ...pulumi.ResourceOption) (*Listener, error)

GetListener gets an existing Listener 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 NewListener

func NewListener(ctx *pulumi.Context,
	name string, args *ListenerArgs, opts ...pulumi.ResourceOption) (*Listener, error)

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

func (*Listener) ElementType

func (*Listener) ElementType() reflect.Type

func (*Listener) ToListenerOutput

func (i *Listener) ToListenerOutput() ListenerOutput

func (*Listener) ToListenerOutputWithContext

func (i *Listener) ToListenerOutputWithContext(ctx context.Context) ListenerOutput

type ListenerArgs

type ListenerArgs struct {
	// ID of the client certificate. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when the ssl mode is `MUTUAL`.
	CertificateCaId pulumi.StringPtrInput
	// ID of the server certificate. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.
	CertificateId pulumi.StringPtrInput
	// Type of certificate. Valid values: `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.
	CertificateSslMode pulumi.StringPtrInput
	// ID of the CLB.
	ClbId pulumi.StringInput
	// Health check protocol. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required, which represents the input format of the health check. Valid values: `HEX`, `TEXT`.
	HealthCheckContextType pulumi.StringPtrInput
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check for 3 consecutive times, the backend CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckHealthNum pulumi.IntPtrInput
	// HTTP health check code of TCP listener. When the value of `healthCheckType` of the health check protocol is `HTTP`, this field is required. Valid values: `1`, `2`, `4`, `8`, `16`. `1` means http_1xx, `2` means http_2xx, `4` means http_3xx, `8` means http_4xx, `16` means http_5xx.
	HealthCheckHttpCode pulumi.IntPtrInput
	// HTTP health check domain of TCP listener.
	HealthCheckHttpDomain pulumi.StringPtrInput
	// HTTP health check method of TCP listener. Valid values: `HEAD`, `GET`.
	HealthCheckHttpMethod pulumi.StringPtrInput
	// HTTP health check path of TCP listener.
	HealthCheckHttpPath pulumi.StringPtrInput
	// The HTTP version of the backend service. When the value of `healthCheckType` of the health check protocol is `HTTP`, this field is required. Valid values: `HTTP/1.0`, `HTTP/1.1`.
	HealthCheckHttpVersion pulumi.StringPtrInput
	// Interval time of health check. Valid value ranges: [5~300] sec. and the default is 5 sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckIntervalTime pulumi.IntPtrInput
	// The health check port is the port of the backend service by default. Unless you want to specify a specific port, it is recommended to leave it blank. Only applicable to TCP/UDP listener.
	HealthCheckPort pulumi.IntPtrInput
	// It represents the result returned by the health check. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required. Only ASCII visible characters are allowed and the maximum length is 500. When `healthCheckContextType` value is `HEX`, the characters of SendContext and RecvContext can only be selected in `0123456789ABCDEF` and the length must be even digits.
	HealthCheckRecvContext pulumi.StringPtrInput
	// It represents the content of the request sent by the health check. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required. Only visible ASCII characters are allowed and the maximum length is 500. When `healthCheckContextType` value is `HEX`, the characters of SendContext and RecvContext can only be selected in `0123456789ABCDEF` and the length must be even digits.
	HealthCheckSendContext pulumi.StringPtrInput
	// Indicates whether health check is enabled.
	HealthCheckSwitch pulumi.BoolPtrInput
	// Response timeout of health check. Valid value ranges: [2~60] sec. Default is 2 sec. Response timeout needs to be less than check interval. NOTES: Only supports listeners of `TCP`,`UDP`,`TCP_SSL` protocol.
	HealthCheckTimeOut pulumi.IntPtrInput
	// Protocol used for health check. Valid values: `CUSTOM`, `TCP`, `HTTP`.
	HealthCheckType pulumi.StringPtrInput
	// Unhealthy threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, the CVM is identified as unhealthy. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckUnhealthNum pulumi.IntPtrInput
	// Name of the CLB listener, and available values can only be Chinese characters, English letters, numbers, underscore and hyphen '-'.
	ListenerName pulumi.StringInput
	// Port of the CLB listener.
	Port pulumi.IntPtrInput
	// Type of protocol within the listener. Valid values: `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`.
	Protocol pulumi.StringInput
	// Scheduling method of the CLB listener, and available values are 'WRR' and 'LEAST_CONN'. The default is 'WRR'. NOTES: The listener of `HTTP` and `HTTPS` protocol additionally supports the `IP Hash` method. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	Scheduler pulumi.StringPtrInput
	// Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as `WRR`, and not available when listener protocol is `TCP_SSL`. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	SessionExpireTime pulumi.IntPtrInput
	// Indicates whether SNI is enabled, and only supported with protocol `HTTPS`. If enabled, you can set a certificate for each rule in `Clb.ListenerRule`, otherwise all rules have a certificate.
	SniSwitch pulumi.BoolPtrInput
	// Backend target type. Valid values: `NODE`, `TARGETGROUP`. `NODE` means to bind ordinary nodes, `TARGETGROUP` means to bind target group. NOTES: TCP/UDP/TCP_SSL listener must configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	TargetType pulumi.StringPtrInput
}

The set of arguments for constructing a Listener resource.

func (ListenerArgs) ElementType

func (ListenerArgs) ElementType() reflect.Type

type ListenerArray

type ListenerArray []ListenerInput

func (ListenerArray) ElementType

func (ListenerArray) ElementType() reflect.Type

func (ListenerArray) ToListenerArrayOutput

func (i ListenerArray) ToListenerArrayOutput() ListenerArrayOutput

func (ListenerArray) ToListenerArrayOutputWithContext

func (i ListenerArray) ToListenerArrayOutputWithContext(ctx context.Context) ListenerArrayOutput

type ListenerArrayInput

type ListenerArrayInput interface {
	pulumi.Input

	ToListenerArrayOutput() ListenerArrayOutput
	ToListenerArrayOutputWithContext(context.Context) ListenerArrayOutput
}

ListenerArrayInput is an input type that accepts ListenerArray and ListenerArrayOutput values. You can construct a concrete instance of `ListenerArrayInput` via:

ListenerArray{ ListenerArgs{...} }

type ListenerArrayOutput

type ListenerArrayOutput struct{ *pulumi.OutputState }

func (ListenerArrayOutput) ElementType

func (ListenerArrayOutput) ElementType() reflect.Type

func (ListenerArrayOutput) Index

func (ListenerArrayOutput) ToListenerArrayOutput

func (o ListenerArrayOutput) ToListenerArrayOutput() ListenerArrayOutput

func (ListenerArrayOutput) ToListenerArrayOutputWithContext

func (o ListenerArrayOutput) ToListenerArrayOutputWithContext(ctx context.Context) ListenerArrayOutput

type ListenerInput

type ListenerInput interface {
	pulumi.Input

	ToListenerOutput() ListenerOutput
	ToListenerOutputWithContext(ctx context.Context) ListenerOutput
}

type ListenerMap

type ListenerMap map[string]ListenerInput

func (ListenerMap) ElementType

func (ListenerMap) ElementType() reflect.Type

func (ListenerMap) ToListenerMapOutput

func (i ListenerMap) ToListenerMapOutput() ListenerMapOutput

func (ListenerMap) ToListenerMapOutputWithContext

func (i ListenerMap) ToListenerMapOutputWithContext(ctx context.Context) ListenerMapOutput

type ListenerMapInput

type ListenerMapInput interface {
	pulumi.Input

	ToListenerMapOutput() ListenerMapOutput
	ToListenerMapOutputWithContext(context.Context) ListenerMapOutput
}

ListenerMapInput is an input type that accepts ListenerMap and ListenerMapOutput values. You can construct a concrete instance of `ListenerMapInput` via:

ListenerMap{ "key": ListenerArgs{...} }

type ListenerMapOutput

type ListenerMapOutput struct{ *pulumi.OutputState }

func (ListenerMapOutput) ElementType

func (ListenerMapOutput) ElementType() reflect.Type

func (ListenerMapOutput) MapIndex

func (ListenerMapOutput) ToListenerMapOutput

func (o ListenerMapOutput) ToListenerMapOutput() ListenerMapOutput

func (ListenerMapOutput) ToListenerMapOutputWithContext

func (o ListenerMapOutput) ToListenerMapOutputWithContext(ctx context.Context) ListenerMapOutput

type ListenerOutput

type ListenerOutput struct{ *pulumi.OutputState }

func (ListenerOutput) CertificateCaId

func (o ListenerOutput) CertificateCaId() pulumi.StringPtrOutput

ID of the client certificate. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when the ssl mode is `MUTUAL`.

func (ListenerOutput) CertificateId

func (o ListenerOutput) CertificateId() pulumi.StringPtrOutput

ID of the server certificate. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.

func (ListenerOutput) CertificateSslMode

func (o ListenerOutput) CertificateSslMode() pulumi.StringPtrOutput

Type of certificate. Valid values: `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.

func (ListenerOutput) ClbId

ID of the CLB.

func (ListenerOutput) ElementType

func (ListenerOutput) ElementType() reflect.Type

func (ListenerOutput) HealthCheckContextType

func (o ListenerOutput) HealthCheckContextType() pulumi.StringPtrOutput

Health check protocol. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required, which represents the input format of the health check. Valid values: `HEX`, `TEXT`.

func (ListenerOutput) HealthCheckHealthNum

func (o ListenerOutput) HealthCheckHealthNum() pulumi.IntOutput

Health threshold of health check, and the default is `3`. If a success result is returned for the health check for 3 consecutive times, the backend CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (ListenerOutput) HealthCheckHttpCode

func (o ListenerOutput) HealthCheckHttpCode() pulumi.IntPtrOutput

HTTP health check code of TCP listener. When the value of `healthCheckType` of the health check protocol is `HTTP`, this field is required. Valid values: `1`, `2`, `4`, `8`, `16`. `1` means http_1xx, `2` means http_2xx, `4` means http_3xx, `8` means http_4xx, `16` means http_5xx.

func (ListenerOutput) HealthCheckHttpDomain

func (o ListenerOutput) HealthCheckHttpDomain() pulumi.StringPtrOutput

HTTP health check domain of TCP listener.

func (ListenerOutput) HealthCheckHttpMethod

func (o ListenerOutput) HealthCheckHttpMethod() pulumi.StringOutput

HTTP health check method of TCP listener. Valid values: `HEAD`, `GET`.

func (ListenerOutput) HealthCheckHttpPath

func (o ListenerOutput) HealthCheckHttpPath() pulumi.StringPtrOutput

HTTP health check path of TCP listener.

func (ListenerOutput) HealthCheckHttpVersion

func (o ListenerOutput) HealthCheckHttpVersion() pulumi.StringPtrOutput

The HTTP version of the backend service. When the value of `healthCheckType` of the health check protocol is `HTTP`, this field is required. Valid values: `HTTP/1.0`, `HTTP/1.1`.

func (ListenerOutput) HealthCheckIntervalTime

func (o ListenerOutput) HealthCheckIntervalTime() pulumi.IntOutput

Interval time of health check. Valid value ranges: [5~300] sec. and the default is 5 sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.

func (ListenerOutput) HealthCheckPort

func (o ListenerOutput) HealthCheckPort() pulumi.IntPtrOutput

The health check port is the port of the backend service by default. Unless you want to specify a specific port, it is recommended to leave it blank. Only applicable to TCP/UDP listener.

func (ListenerOutput) HealthCheckRecvContext

func (o ListenerOutput) HealthCheckRecvContext() pulumi.StringPtrOutput

It represents the result returned by the health check. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required. Only ASCII visible characters are allowed and the maximum length is 500. When `healthCheckContextType` value is `HEX`, the characters of SendContext and RecvContext can only be selected in `0123456789ABCDEF` and the length must be even digits.

func (ListenerOutput) HealthCheckSendContext

func (o ListenerOutput) HealthCheckSendContext() pulumi.StringPtrOutput

It represents the content of the request sent by the health check. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required. Only visible ASCII characters are allowed and the maximum length is 500. When `healthCheckContextType` value is `HEX`, the characters of SendContext and RecvContext can only be selected in `0123456789ABCDEF` and the length must be even digits.

func (ListenerOutput) HealthCheckSwitch

func (o ListenerOutput) HealthCheckSwitch() pulumi.BoolOutput

Indicates whether health check is enabled.

func (ListenerOutput) HealthCheckTimeOut

func (o ListenerOutput) HealthCheckTimeOut() pulumi.IntOutput

Response timeout of health check. Valid value ranges: [2~60] sec. Default is 2 sec. Response timeout needs to be less than check interval. NOTES: Only supports listeners of `TCP`,`UDP`,`TCP_SSL` protocol.

func (ListenerOutput) HealthCheckType

func (o ListenerOutput) HealthCheckType() pulumi.StringOutput

Protocol used for health check. Valid values: `CUSTOM`, `TCP`, `HTTP`.

func (ListenerOutput) HealthCheckUnhealthNum

func (o ListenerOutput) HealthCheckUnhealthNum() pulumi.IntOutput

Unhealthy threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, the CVM is identified as unhealthy. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.

func (ListenerOutput) ListenerId

func (o ListenerOutput) ListenerId() pulumi.StringOutput

ID of this CLB listener.

func (ListenerOutput) ListenerName

func (o ListenerOutput) ListenerName() pulumi.StringOutput

Name of the CLB listener, and available values can only be Chinese characters, English letters, numbers, underscore and hyphen '-'.

func (ListenerOutput) Port

Port of the CLB listener.

func (ListenerOutput) Protocol

func (o ListenerOutput) Protocol() pulumi.StringOutput

Type of protocol within the listener. Valid values: `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`.

func (ListenerOutput) Scheduler

func (o ListenerOutput) Scheduler() pulumi.StringPtrOutput

Scheduling method of the CLB listener, and available values are 'WRR' and 'LEAST_CONN'. The default is 'WRR'. NOTES: The listener of `HTTP` and `HTTPS` protocol additionally supports the `IP Hash` method. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.

func (ListenerOutput) SessionExpireTime

func (o ListenerOutput) SessionExpireTime() pulumi.IntPtrOutput

Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as `WRR`, and not available when listener protocol is `TCP_SSL`. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.

func (ListenerOutput) SniSwitch

func (o ListenerOutput) SniSwitch() pulumi.BoolPtrOutput

Indicates whether SNI is enabled, and only supported with protocol `HTTPS`. If enabled, you can set a certificate for each rule in `Clb.ListenerRule`, otherwise all rules have a certificate.

func (ListenerOutput) TargetType

func (o ListenerOutput) TargetType() pulumi.StringOutput

Backend target type. Valid values: `NODE`, `TARGETGROUP`. `NODE` means to bind ordinary nodes, `TARGETGROUP` means to bind target group. NOTES: TCP/UDP/TCP_SSL listener must configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.

func (ListenerOutput) ToListenerOutput

func (o ListenerOutput) ToListenerOutput() ListenerOutput

func (ListenerOutput) ToListenerOutputWithContext

func (o ListenerOutput) ToListenerOutputWithContext(ctx context.Context) ListenerOutput

type ListenerRule

type ListenerRule struct {
	pulumi.CustomResourceState

	// ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
	CertificateCaId pulumi.StringPtrOutput `pulumi:"certificateCaId"`
	// ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
	CertificateId pulumi.StringPtrOutput `pulumi:"certificateId"`
	// Type of certificate. Valid values: `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of HTTPS protocol.
	CertificateSslMode pulumi.StringPtrOutput `pulumi:"certificateSslMode"`
	// ID of CLB instance.
	ClbId pulumi.StringOutput `pulumi:"clbId"`
	// Domain name of the listener rule.
	Domain pulumi.StringOutput `pulumi:"domain"`
	// Forwarding protocol between the CLB instance and real server. Valid values: `HTTP`, `HTTPS`, `TRPC`.
	ForwardType pulumi.StringOutput `pulumi:"forwardType"`
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckHealthNum pulumi.IntOutput `pulumi:"healthCheckHealthNum"`
	// HTTP Status Code. The default is 31. Valid value ranges: [1~31]. ` 1 means the return value '1xx' is health.  `2`means the return value '2xx' is health.`4`means the return value '3xx' is health.`8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol.
	HealthCheckHttpCode pulumi.IntOutput `pulumi:"healthCheckHttpCode"`
	// Domain name of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol.
	HealthCheckHttpDomain pulumi.StringOutput `pulumi:"healthCheckHttpDomain"`
	// Methods of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol. The default is `HEAD`, the available value are `HEAD` and `GET`.
	HealthCheckHttpMethod pulumi.StringOutput `pulumi:"healthCheckHttpMethod"`
	// Path of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol.
	HealthCheckHttpPath pulumi.StringOutput `pulumi:"healthCheckHttpPath"`
	// Interval time of health check. Valid value ranges: (5~300) sec. and the default is `5` sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckIntervalTime pulumi.IntOutput `pulumi:"healthCheckIntervalTime"`
	// Indicates whether health check is enabled.
	HealthCheckSwitch pulumi.BoolOutput `pulumi:"healthCheckSwitch"`
	// Unhealthy threshold of health check, and the default is `3`. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10].  NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckUnhealthNum pulumi.IntOutput `pulumi:"healthCheckUnhealthNum"`
	// Indicate to apply HTTP2.0 protocol or not.
	Http2Switch pulumi.BoolOutput `pulumi:"http2Switch"`
	// ID of CLB listener.
	ListenerId pulumi.StringOutput `pulumi:"listenerId"`
	// ID of this CLB listener rule.
	RuleId pulumi.StringOutput `pulumi:"ruleId"`
	// Scheduling method of the CLB listener rules. Valid values: `WRR`, `IP HASH`, `LEAST_CONN`. The default is `WRR`.  NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	Scheduler pulumi.StringPtrOutput `pulumi:"scheduler"`
	// Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as `WRR`, and not available when listener protocol is `TCP_SSL`.  NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	SessionExpireTime pulumi.IntPtrOutput `pulumi:"sessionExpireTime"`
	// Backend target type. Valid values: `NODE`, `TARGETGROUP`. `NODE` means to bind ordinary nodes, `TARGETGROUP` means to bind target group.
	TargetType pulumi.StringPtrOutput `pulumi:"targetType"`
	// Url of the listener rule.
	Url pulumi.StringOutput `pulumi:"url"`
}

Provides a resource to create a CLB listener rule.

> **NOTE:** This resource only be applied to the HTTP or HTTPS listeners.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewListenerRule(ctx, "foo", &Clb.ListenerRuleArgs{
			CertificateCaId:         pulumi.String("VfqO4zkB"),
			CertificateId:           pulumi.String("VjANRdz8"),
			CertificateSslMode:      pulumi.String("MUTUAL"),
			ClbId:                   pulumi.String("lb-k2zjp9lv"),
			Domain:                  pulumi.String("foo.net"),
			HealthCheckHealthNum:    pulumi.Int(3),
			HealthCheckHttpCode:     pulumi.Int(2),
			HealthCheckHttpDomain:   pulumi.String("Default Domain"),
			HealthCheckHttpMethod:   pulumi.String("GET"),
			HealthCheckHttpPath:     pulumi.String("Default Path"),
			HealthCheckIntervalTime: pulumi.Int(5),
			HealthCheckSwitch:       pulumi.Bool(true),
			HealthCheckUnhealthNum:  pulumi.Int(3),
			ListenerId:              pulumi.String("lbl-hh141sn9"),
			Scheduler:               pulumi.String("WRR"),
			SessionExpireTime:       pulumi.Int(30),
			Url:                     pulumi.String("/bar"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CLB listener rule can be imported using the id (version >= 1.47.0), e.g.

```sh

$ pulumi import tencentcloud:Clb/listenerRule:ListenerRule foo lb-7a0t6zqb#lbl-hh141sn9#loc-agg236ys

```

func GetListenerRule

func GetListenerRule(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ListenerRuleState, opts ...pulumi.ResourceOption) (*ListenerRule, error)

GetListenerRule gets an existing ListenerRule 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 NewListenerRule

func NewListenerRule(ctx *pulumi.Context,
	name string, args *ListenerRuleArgs, opts ...pulumi.ResourceOption) (*ListenerRule, error)

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

func (*ListenerRule) ElementType

func (*ListenerRule) ElementType() reflect.Type

func (*ListenerRule) ToListenerRuleOutput

func (i *ListenerRule) ToListenerRuleOutput() ListenerRuleOutput

func (*ListenerRule) ToListenerRuleOutputWithContext

func (i *ListenerRule) ToListenerRuleOutputWithContext(ctx context.Context) ListenerRuleOutput

type ListenerRuleArgs

type ListenerRuleArgs struct {
	// ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
	CertificateCaId pulumi.StringPtrInput
	// ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
	CertificateId pulumi.StringPtrInput
	// Type of certificate. Valid values: `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of HTTPS protocol.
	CertificateSslMode pulumi.StringPtrInput
	// ID of CLB instance.
	ClbId pulumi.StringInput
	// Domain name of the listener rule.
	Domain pulumi.StringInput
	// Forwarding protocol between the CLB instance and real server. Valid values: `HTTP`, `HTTPS`, `TRPC`.
	ForwardType pulumi.StringPtrInput
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckHealthNum pulumi.IntPtrInput
	// HTTP Status Code. The default is 31. Valid value ranges: [1~31]. ` 1 means the return value '1xx' is health.  `2`means the return value '2xx' is health.`4`means the return value '3xx' is health.`8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol.
	HealthCheckHttpCode pulumi.IntPtrInput
	// Domain name of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol.
	HealthCheckHttpDomain pulumi.StringPtrInput
	// Methods of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol. The default is `HEAD`, the available value are `HEAD` and `GET`.
	HealthCheckHttpMethod pulumi.StringPtrInput
	// Path of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol.
	HealthCheckHttpPath pulumi.StringPtrInput
	// Interval time of health check. Valid value ranges: (5~300) sec. and the default is `5` sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckIntervalTime pulumi.IntPtrInput
	// Indicates whether health check is enabled.
	HealthCheckSwitch pulumi.BoolPtrInput
	// Unhealthy threshold of health check, and the default is `3`. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10].  NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckUnhealthNum pulumi.IntPtrInput
	// Indicate to apply HTTP2.0 protocol or not.
	Http2Switch pulumi.BoolPtrInput
	// ID of CLB listener.
	ListenerId pulumi.StringInput
	// Scheduling method of the CLB listener rules. Valid values: `WRR`, `IP HASH`, `LEAST_CONN`. The default is `WRR`.  NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	Scheduler pulumi.StringPtrInput
	// Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as `WRR`, and not available when listener protocol is `TCP_SSL`.  NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	SessionExpireTime pulumi.IntPtrInput
	// Backend target type. Valid values: `NODE`, `TARGETGROUP`. `NODE` means to bind ordinary nodes, `TARGETGROUP` means to bind target group.
	TargetType pulumi.StringPtrInput
	// Url of the listener rule.
	Url pulumi.StringInput
}

The set of arguments for constructing a ListenerRule resource.

func (ListenerRuleArgs) ElementType

func (ListenerRuleArgs) ElementType() reflect.Type

type ListenerRuleArray

type ListenerRuleArray []ListenerRuleInput

func (ListenerRuleArray) ElementType

func (ListenerRuleArray) ElementType() reflect.Type

func (ListenerRuleArray) ToListenerRuleArrayOutput

func (i ListenerRuleArray) ToListenerRuleArrayOutput() ListenerRuleArrayOutput

func (ListenerRuleArray) ToListenerRuleArrayOutputWithContext

func (i ListenerRuleArray) ToListenerRuleArrayOutputWithContext(ctx context.Context) ListenerRuleArrayOutput

type ListenerRuleArrayInput

type ListenerRuleArrayInput interface {
	pulumi.Input

	ToListenerRuleArrayOutput() ListenerRuleArrayOutput
	ToListenerRuleArrayOutputWithContext(context.Context) ListenerRuleArrayOutput
}

ListenerRuleArrayInput is an input type that accepts ListenerRuleArray and ListenerRuleArrayOutput values. You can construct a concrete instance of `ListenerRuleArrayInput` via:

ListenerRuleArray{ ListenerRuleArgs{...} }

type ListenerRuleArrayOutput

type ListenerRuleArrayOutput struct{ *pulumi.OutputState }

func (ListenerRuleArrayOutput) ElementType

func (ListenerRuleArrayOutput) ElementType() reflect.Type

func (ListenerRuleArrayOutput) Index

func (ListenerRuleArrayOutput) ToListenerRuleArrayOutput

func (o ListenerRuleArrayOutput) ToListenerRuleArrayOutput() ListenerRuleArrayOutput

func (ListenerRuleArrayOutput) ToListenerRuleArrayOutputWithContext

func (o ListenerRuleArrayOutput) ToListenerRuleArrayOutputWithContext(ctx context.Context) ListenerRuleArrayOutput

type ListenerRuleInput

type ListenerRuleInput interface {
	pulumi.Input

	ToListenerRuleOutput() ListenerRuleOutput
	ToListenerRuleOutputWithContext(ctx context.Context) ListenerRuleOutput
}

type ListenerRuleMap

type ListenerRuleMap map[string]ListenerRuleInput

func (ListenerRuleMap) ElementType

func (ListenerRuleMap) ElementType() reflect.Type

func (ListenerRuleMap) ToListenerRuleMapOutput

func (i ListenerRuleMap) ToListenerRuleMapOutput() ListenerRuleMapOutput

func (ListenerRuleMap) ToListenerRuleMapOutputWithContext

func (i ListenerRuleMap) ToListenerRuleMapOutputWithContext(ctx context.Context) ListenerRuleMapOutput

type ListenerRuleMapInput

type ListenerRuleMapInput interface {
	pulumi.Input

	ToListenerRuleMapOutput() ListenerRuleMapOutput
	ToListenerRuleMapOutputWithContext(context.Context) ListenerRuleMapOutput
}

ListenerRuleMapInput is an input type that accepts ListenerRuleMap and ListenerRuleMapOutput values. You can construct a concrete instance of `ListenerRuleMapInput` via:

ListenerRuleMap{ "key": ListenerRuleArgs{...} }

type ListenerRuleMapOutput

type ListenerRuleMapOutput struct{ *pulumi.OutputState }

func (ListenerRuleMapOutput) ElementType

func (ListenerRuleMapOutput) ElementType() reflect.Type

func (ListenerRuleMapOutput) MapIndex

func (ListenerRuleMapOutput) ToListenerRuleMapOutput

func (o ListenerRuleMapOutput) ToListenerRuleMapOutput() ListenerRuleMapOutput

func (ListenerRuleMapOutput) ToListenerRuleMapOutputWithContext

func (o ListenerRuleMapOutput) ToListenerRuleMapOutputWithContext(ctx context.Context) ListenerRuleMapOutput

type ListenerRuleOutput

type ListenerRuleOutput struct{ *pulumi.OutputState }

func (ListenerRuleOutput) CertificateCaId

func (o ListenerRuleOutput) CertificateCaId() pulumi.StringPtrOutput

ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.

func (ListenerRuleOutput) CertificateId

func (o ListenerRuleOutput) CertificateId() pulumi.StringPtrOutput

ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.

func (ListenerRuleOutput) CertificateSslMode

func (o ListenerRuleOutput) CertificateSslMode() pulumi.StringPtrOutput

Type of certificate. Valid values: `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of HTTPS protocol.

func (ListenerRuleOutput) ClbId

ID of CLB instance.

func (ListenerRuleOutput) Domain

Domain name of the listener rule.

func (ListenerRuleOutput) ElementType

func (ListenerRuleOutput) ElementType() reflect.Type

func (ListenerRuleOutput) ForwardType

func (o ListenerRuleOutput) ForwardType() pulumi.StringOutput

Forwarding protocol between the CLB instance and real server. Valid values: `HTTP`, `HTTPS`, `TRPC`.

func (ListenerRuleOutput) HealthCheckHealthNum

func (o ListenerRuleOutput) HealthCheckHealthNum() pulumi.IntOutput

Health threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.

func (ListenerRuleOutput) HealthCheckHttpCode

func (o ListenerRuleOutput) HealthCheckHttpCode() pulumi.IntOutput

HTTP Status Code. The default is 31. Valid value ranges: [1~31]. ` 1 means the return value '1xx' is health. `2`means the return value '2xx' is health.`4`means the return value '3xx' is health.`8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol.

func (ListenerRuleOutput) HealthCheckHttpDomain

func (o ListenerRuleOutput) HealthCheckHttpDomain() pulumi.StringOutput

Domain name of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol.

func (ListenerRuleOutput) HealthCheckHttpMethod

func (o ListenerRuleOutput) HealthCheckHttpMethod() pulumi.StringOutput

Methods of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol. The default is `HEAD`, the available value are `HEAD` and `GET`.

func (ListenerRuleOutput) HealthCheckHttpPath

func (o ListenerRuleOutput) HealthCheckHttpPath() pulumi.StringOutput

Path of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol.

func (ListenerRuleOutput) HealthCheckIntervalTime

func (o ListenerRuleOutput) HealthCheckIntervalTime() pulumi.IntOutput

Interval time of health check. Valid value ranges: (5~300) sec. and the default is `5` sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.

func (ListenerRuleOutput) HealthCheckSwitch

func (o ListenerRuleOutput) HealthCheckSwitch() pulumi.BoolOutput

Indicates whether health check is enabled.

func (ListenerRuleOutput) HealthCheckUnhealthNum

func (o ListenerRuleOutput) HealthCheckUnhealthNum() pulumi.IntOutput

Unhealthy threshold of health check, and the default is `3`. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.

func (ListenerRuleOutput) Http2Switch

func (o ListenerRuleOutput) Http2Switch() pulumi.BoolOutput

Indicate to apply HTTP2.0 protocol or not.

func (ListenerRuleOutput) ListenerId

func (o ListenerRuleOutput) ListenerId() pulumi.StringOutput

ID of CLB listener.

func (ListenerRuleOutput) RuleId

ID of this CLB listener rule.

func (ListenerRuleOutput) Scheduler

Scheduling method of the CLB listener rules. Valid values: `WRR`, `IP HASH`, `LEAST_CONN`. The default is `WRR`. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.

func (ListenerRuleOutput) SessionExpireTime

func (o ListenerRuleOutput) SessionExpireTime() pulumi.IntPtrOutput

Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as `WRR`, and not available when listener protocol is `TCP_SSL`. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.

func (ListenerRuleOutput) TargetType

func (o ListenerRuleOutput) TargetType() pulumi.StringPtrOutput

Backend target type. Valid values: `NODE`, `TARGETGROUP`. `NODE` means to bind ordinary nodes, `TARGETGROUP` means to bind target group.

func (ListenerRuleOutput) ToListenerRuleOutput

func (o ListenerRuleOutput) ToListenerRuleOutput() ListenerRuleOutput

func (ListenerRuleOutput) ToListenerRuleOutputWithContext

func (o ListenerRuleOutput) ToListenerRuleOutputWithContext(ctx context.Context) ListenerRuleOutput

func (ListenerRuleOutput) Url

Url of the listener rule.

type ListenerRuleState

type ListenerRuleState struct {
	// ID of the client certificate. NOTES: Only supports listeners of HTTPS protocol.
	CertificateCaId pulumi.StringPtrInput
	// ID of the server certificate. NOTES: Only supports listeners of HTTPS protocol.
	CertificateId pulumi.StringPtrInput
	// Type of certificate. Valid values: `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of HTTPS protocol.
	CertificateSslMode pulumi.StringPtrInput
	// ID of CLB instance.
	ClbId pulumi.StringPtrInput
	// Domain name of the listener rule.
	Domain pulumi.StringPtrInput
	// Forwarding protocol between the CLB instance and real server. Valid values: `HTTP`, `HTTPS`, `TRPC`.
	ForwardType pulumi.StringPtrInput
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, indicates that the forwarding is normal. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckHealthNum pulumi.IntPtrInput
	// HTTP Status Code. The default is 31. Valid value ranges: [1~31]. ` 1 means the return value '1xx' is health.  `2`means the return value '2xx' is health.`4`means the return value '3xx' is health.`8` means the return value '4xx' is health. 16 means the return value '5xx' is health. If you want multiple return codes to indicate health, need to add the corresponding values. NOTES: The 'HTTP' health check of the 'TCP' listener only supports specifying one health check status code. NOTES: Only supports listeners of 'HTTP' and 'HTTPS' protocol.
	HealthCheckHttpCode pulumi.IntPtrInput
	// Domain name of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol.
	HealthCheckHttpDomain pulumi.StringPtrInput
	// Methods of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol. The default is `HEAD`, the available value are `HEAD` and `GET`.
	HealthCheckHttpMethod pulumi.StringPtrInput
	// Path of health check. NOTES: Only supports listeners of `HTTP` and `HTTPS` protocol.
	HealthCheckHttpPath pulumi.StringPtrInput
	// Interval time of health check. Valid value ranges: (5~300) sec. and the default is `5` sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckIntervalTime pulumi.IntPtrInput
	// Indicates whether health check is enabled.
	HealthCheckSwitch pulumi.BoolPtrInput
	// Unhealthy threshold of health check, and the default is `3`. If the unhealthy result is returned 3 consecutive times, indicates that the forwarding is abnormal. The value range is [2-10].  NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckUnhealthNum pulumi.IntPtrInput
	// Indicate to apply HTTP2.0 protocol or not.
	Http2Switch pulumi.BoolPtrInput
	// ID of CLB listener.
	ListenerId pulumi.StringPtrInput
	// ID of this CLB listener rule.
	RuleId pulumi.StringPtrInput
	// Scheduling method of the CLB listener rules. Valid values: `WRR`, `IP HASH`, `LEAST_CONN`. The default is `WRR`.  NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	Scheduler pulumi.StringPtrInput
	// Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as `WRR`, and not available when listener protocol is `TCP_SSL`.  NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	SessionExpireTime pulumi.IntPtrInput
	// Backend target type. Valid values: `NODE`, `TARGETGROUP`. `NODE` means to bind ordinary nodes, `TARGETGROUP` means to bind target group.
	TargetType pulumi.StringPtrInput
	// Url of the listener rule.
	Url pulumi.StringPtrInput
}

func (ListenerRuleState) ElementType

func (ListenerRuleState) ElementType() reflect.Type

type ListenerState

type ListenerState struct {
	// ID of the client certificate. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when the ssl mode is `MUTUAL`.
	CertificateCaId pulumi.StringPtrInput
	// ID of the server certificate. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.
	CertificateId pulumi.StringPtrInput
	// Type of certificate. Valid values: `UNIDIRECTIONAL`, `MUTUAL`. NOTES: Only supports listeners of `HTTPS` and `TCP_SSL` protocol and must be set when it is available.
	CertificateSslMode pulumi.StringPtrInput
	// ID of the CLB.
	ClbId pulumi.StringPtrInput
	// Health check protocol. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required, which represents the input format of the health check. Valid values: `HEX`, `TEXT`.
	HealthCheckContextType pulumi.StringPtrInput
	// Health threshold of health check, and the default is `3`. If a success result is returned for the health check for 3 consecutive times, the backend CVM is identified as healthy. The value range is 2-10. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	HealthCheckHealthNum pulumi.IntPtrInput
	// HTTP health check code of TCP listener. When the value of `healthCheckType` of the health check protocol is `HTTP`, this field is required. Valid values: `1`, `2`, `4`, `8`, `16`. `1` means http_1xx, `2` means http_2xx, `4` means http_3xx, `8` means http_4xx, `16` means http_5xx.
	HealthCheckHttpCode pulumi.IntPtrInput
	// HTTP health check domain of TCP listener.
	HealthCheckHttpDomain pulumi.StringPtrInput
	// HTTP health check method of TCP listener. Valid values: `HEAD`, `GET`.
	HealthCheckHttpMethod pulumi.StringPtrInput
	// HTTP health check path of TCP listener.
	HealthCheckHttpPath pulumi.StringPtrInput
	// The HTTP version of the backend service. When the value of `healthCheckType` of the health check protocol is `HTTP`, this field is required. Valid values: `HTTP/1.0`, `HTTP/1.1`.
	HealthCheckHttpVersion pulumi.StringPtrInput
	// Interval time of health check. Valid value ranges: [5~300] sec. and the default is 5 sec. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckIntervalTime pulumi.IntPtrInput
	// The health check port is the port of the backend service by default. Unless you want to specify a specific port, it is recommended to leave it blank. Only applicable to TCP/UDP listener.
	HealthCheckPort pulumi.IntPtrInput
	// It represents the result returned by the health check. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required. Only ASCII visible characters are allowed and the maximum length is 500. When `healthCheckContextType` value is `HEX`, the characters of SendContext and RecvContext can only be selected in `0123456789ABCDEF` and the length must be even digits.
	HealthCheckRecvContext pulumi.StringPtrInput
	// It represents the content of the request sent by the health check. When the value of `healthCheckType` of the health check protocol is `CUSTOM`, this field is required. Only visible ASCII characters are allowed and the maximum length is 500. When `healthCheckContextType` value is `HEX`, the characters of SendContext and RecvContext can only be selected in `0123456789ABCDEF` and the length must be even digits.
	HealthCheckSendContext pulumi.StringPtrInput
	// Indicates whether health check is enabled.
	HealthCheckSwitch pulumi.BoolPtrInput
	// Response timeout of health check. Valid value ranges: [2~60] sec. Default is 2 sec. Response timeout needs to be less than check interval. NOTES: Only supports listeners of `TCP`,`UDP`,`TCP_SSL` protocol.
	HealthCheckTimeOut pulumi.IntPtrInput
	// Protocol used for health check. Valid values: `CUSTOM`, `TCP`, `HTTP`.
	HealthCheckType pulumi.StringPtrInput
	// Unhealthy threshold of health check, and the default is `3`. If a success result is returned for the health check 3 consecutive times, the CVM is identified as unhealthy. The value range is [2-10]. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	HealthCheckUnhealthNum pulumi.IntPtrInput
	// ID of this CLB listener.
	ListenerId pulumi.StringPtrInput
	// Name of the CLB listener, and available values can only be Chinese characters, English letters, numbers, underscore and hyphen '-'.
	ListenerName pulumi.StringPtrInput
	// Port of the CLB listener.
	Port pulumi.IntPtrInput
	// Type of protocol within the listener. Valid values: `TCP`, `UDP`, `HTTP`, `HTTPS` and `TCP_SSL`.
	Protocol pulumi.StringPtrInput
	// Scheduling method of the CLB listener, and available values are 'WRR' and 'LEAST_CONN'. The default is 'WRR'. NOTES: The listener of `HTTP` and `HTTPS` protocol additionally supports the `IP Hash` method. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	Scheduler pulumi.StringPtrInput
	// Time of session persistence within the CLB listener. NOTES: Available when scheduler is specified as `WRR`, and not available when listener protocol is `TCP_SSL`. NOTES: TCP/UDP/TCP_SSL listener allows direct configuration, HTTP/HTTPS listener needs to be configured in `Clb.ListenerRule`.
	SessionExpireTime pulumi.IntPtrInput
	// Indicates whether SNI is enabled, and only supported with protocol `HTTPS`. If enabled, you can set a certificate for each rule in `Clb.ListenerRule`, otherwise all rules have a certificate.
	SniSwitch pulumi.BoolPtrInput
	// Backend target type. Valid values: `NODE`, `TARGETGROUP`. `NODE` means to bind ordinary nodes, `TARGETGROUP` means to bind target group. NOTES: TCP/UDP/TCP_SSL listener must configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.
	TargetType pulumi.StringPtrInput
}

func (ListenerState) ElementType

func (ListenerState) ElementType() reflect.Type

type LogSet

type LogSet struct {
	pulumi.CustomResourceState

	// Logset creation time.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Logset name, which unique and fixed `clbLogset` among all CLS logsets.
	Name pulumi.StringOutput `pulumi:"name"`
	// Logset retention period in days. Maximun value is `90`.
	Period pulumi.IntPtrOutput `pulumi:"period"`
	// Number of log topics in logset.
	TopicCount pulumi.StringOutput `pulumi:"topicCount"`
}

Provides a resource to create an exclusive CLB Logset.

## Import

CLB log set can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Clb/logSet:LogSet foo 4eb9e3a8-9c42-4b32-9ddf-e215e9c92764

```

func GetLogSet

func GetLogSet(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LogSetState, opts ...pulumi.ResourceOption) (*LogSet, error)

GetLogSet gets an existing LogSet 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 NewLogSet

func NewLogSet(ctx *pulumi.Context,
	name string, args *LogSetArgs, opts ...pulumi.ResourceOption) (*LogSet, error)

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

func (*LogSet) ElementType

func (*LogSet) ElementType() reflect.Type

func (*LogSet) ToLogSetOutput

func (i *LogSet) ToLogSetOutput() LogSetOutput

func (*LogSet) ToLogSetOutputWithContext

func (i *LogSet) ToLogSetOutputWithContext(ctx context.Context) LogSetOutput

type LogSetArgs

type LogSetArgs struct {
	// Logset retention period in days. Maximun value is `90`.
	Period pulumi.IntPtrInput
}

The set of arguments for constructing a LogSet resource.

func (LogSetArgs) ElementType

func (LogSetArgs) ElementType() reflect.Type

type LogSetArray

type LogSetArray []LogSetInput

func (LogSetArray) ElementType

func (LogSetArray) ElementType() reflect.Type

func (LogSetArray) ToLogSetArrayOutput

func (i LogSetArray) ToLogSetArrayOutput() LogSetArrayOutput

func (LogSetArray) ToLogSetArrayOutputWithContext

func (i LogSetArray) ToLogSetArrayOutputWithContext(ctx context.Context) LogSetArrayOutput

type LogSetArrayInput

type LogSetArrayInput interface {
	pulumi.Input

	ToLogSetArrayOutput() LogSetArrayOutput
	ToLogSetArrayOutputWithContext(context.Context) LogSetArrayOutput
}

LogSetArrayInput is an input type that accepts LogSetArray and LogSetArrayOutput values. You can construct a concrete instance of `LogSetArrayInput` via:

LogSetArray{ LogSetArgs{...} }

type LogSetArrayOutput

type LogSetArrayOutput struct{ *pulumi.OutputState }

func (LogSetArrayOutput) ElementType

func (LogSetArrayOutput) ElementType() reflect.Type

func (LogSetArrayOutput) Index

func (LogSetArrayOutput) ToLogSetArrayOutput

func (o LogSetArrayOutput) ToLogSetArrayOutput() LogSetArrayOutput

func (LogSetArrayOutput) ToLogSetArrayOutputWithContext

func (o LogSetArrayOutput) ToLogSetArrayOutputWithContext(ctx context.Context) LogSetArrayOutput

type LogSetInput

type LogSetInput interface {
	pulumi.Input

	ToLogSetOutput() LogSetOutput
	ToLogSetOutputWithContext(ctx context.Context) LogSetOutput
}

type LogSetMap

type LogSetMap map[string]LogSetInput

func (LogSetMap) ElementType

func (LogSetMap) ElementType() reflect.Type

func (LogSetMap) ToLogSetMapOutput

func (i LogSetMap) ToLogSetMapOutput() LogSetMapOutput

func (LogSetMap) ToLogSetMapOutputWithContext

func (i LogSetMap) ToLogSetMapOutputWithContext(ctx context.Context) LogSetMapOutput

type LogSetMapInput

type LogSetMapInput interface {
	pulumi.Input

	ToLogSetMapOutput() LogSetMapOutput
	ToLogSetMapOutputWithContext(context.Context) LogSetMapOutput
}

LogSetMapInput is an input type that accepts LogSetMap and LogSetMapOutput values. You can construct a concrete instance of `LogSetMapInput` via:

LogSetMap{ "key": LogSetArgs{...} }

type LogSetMapOutput

type LogSetMapOutput struct{ *pulumi.OutputState }

func (LogSetMapOutput) ElementType

func (LogSetMapOutput) ElementType() reflect.Type

func (LogSetMapOutput) MapIndex

func (LogSetMapOutput) ToLogSetMapOutput

func (o LogSetMapOutput) ToLogSetMapOutput() LogSetMapOutput

func (LogSetMapOutput) ToLogSetMapOutputWithContext

func (o LogSetMapOutput) ToLogSetMapOutputWithContext(ctx context.Context) LogSetMapOutput

type LogSetOutput

type LogSetOutput struct{ *pulumi.OutputState }

func (LogSetOutput) CreateTime

func (o LogSetOutput) CreateTime() pulumi.StringOutput

Logset creation time.

func (LogSetOutput) ElementType

func (LogSetOutput) ElementType() reflect.Type

func (LogSetOutput) Name

func (o LogSetOutput) Name() pulumi.StringOutput

Logset name, which unique and fixed `clbLogset` among all CLS logsets.

func (LogSetOutput) Period

func (o LogSetOutput) Period() pulumi.IntPtrOutput

Logset retention period in days. Maximun value is `90`.

func (LogSetOutput) ToLogSetOutput

func (o LogSetOutput) ToLogSetOutput() LogSetOutput

func (LogSetOutput) ToLogSetOutputWithContext

func (o LogSetOutput) ToLogSetOutputWithContext(ctx context.Context) LogSetOutput

func (LogSetOutput) TopicCount

func (o LogSetOutput) TopicCount() pulumi.StringOutput

Number of log topics in logset.

type LogSetState

type LogSetState struct {
	// Logset creation time.
	CreateTime pulumi.StringPtrInput
	// Logset name, which unique and fixed `clbLogset` among all CLS logsets.
	Name pulumi.StringPtrInput
	// Logset retention period in days. Maximun value is `90`.
	Period pulumi.IntPtrInput
	// Number of log topics in logset.
	TopicCount pulumi.StringPtrInput
}

func (LogSetState) ElementType

func (LogSetState) ElementType() reflect.Type

type LogTopic

type LogTopic struct {
	pulumi.CustomResourceState

	// Log topic creation time.
	CreateTime pulumi.StringOutput `pulumi:"createTime"`
	// Log topic of CLB instance.
	LogSetId pulumi.StringOutput `pulumi:"logSetId"`
	// The status of log topic.
	Status pulumi.BoolOutput `pulumi:"status"`
	// Log topic of CLB instance.
	TopicName pulumi.StringOutput `pulumi:"topicName"`
}

Provides a resource to create a CLB instance topic.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewLogTopic(ctx, "topic", &Clb.LogTopicArgs{
			LogSetId:  pulumi.Any(tencentcloud_clb_log_set.Set.Id),
			TopicName: pulumi.String("clb-topic"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CLB log topic can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Clb/logTopic:LogTopic topic lb-7a0t6zqb

```

func GetLogTopic

func GetLogTopic(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *LogTopicState, opts ...pulumi.ResourceOption) (*LogTopic, error)

GetLogTopic gets an existing LogTopic 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 NewLogTopic

func NewLogTopic(ctx *pulumi.Context,
	name string, args *LogTopicArgs, opts ...pulumi.ResourceOption) (*LogTopic, error)

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

func (*LogTopic) ElementType

func (*LogTopic) ElementType() reflect.Type

func (*LogTopic) ToLogTopicOutput

func (i *LogTopic) ToLogTopicOutput() LogTopicOutput

func (*LogTopic) ToLogTopicOutputWithContext

func (i *LogTopic) ToLogTopicOutputWithContext(ctx context.Context) LogTopicOutput

type LogTopicArgs

type LogTopicArgs struct {
	// Log topic of CLB instance.
	LogSetId pulumi.StringInput
	// Log topic of CLB instance.
	TopicName pulumi.StringInput
}

The set of arguments for constructing a LogTopic resource.

func (LogTopicArgs) ElementType

func (LogTopicArgs) ElementType() reflect.Type

type LogTopicArray

type LogTopicArray []LogTopicInput

func (LogTopicArray) ElementType

func (LogTopicArray) ElementType() reflect.Type

func (LogTopicArray) ToLogTopicArrayOutput

func (i LogTopicArray) ToLogTopicArrayOutput() LogTopicArrayOutput

func (LogTopicArray) ToLogTopicArrayOutputWithContext

func (i LogTopicArray) ToLogTopicArrayOutputWithContext(ctx context.Context) LogTopicArrayOutput

type LogTopicArrayInput

type LogTopicArrayInput interface {
	pulumi.Input

	ToLogTopicArrayOutput() LogTopicArrayOutput
	ToLogTopicArrayOutputWithContext(context.Context) LogTopicArrayOutput
}

LogTopicArrayInput is an input type that accepts LogTopicArray and LogTopicArrayOutput values. You can construct a concrete instance of `LogTopicArrayInput` via:

LogTopicArray{ LogTopicArgs{...} }

type LogTopicArrayOutput

type LogTopicArrayOutput struct{ *pulumi.OutputState }

func (LogTopicArrayOutput) ElementType

func (LogTopicArrayOutput) ElementType() reflect.Type

func (LogTopicArrayOutput) Index

func (LogTopicArrayOutput) ToLogTopicArrayOutput

func (o LogTopicArrayOutput) ToLogTopicArrayOutput() LogTopicArrayOutput

func (LogTopicArrayOutput) ToLogTopicArrayOutputWithContext

func (o LogTopicArrayOutput) ToLogTopicArrayOutputWithContext(ctx context.Context) LogTopicArrayOutput

type LogTopicInput

type LogTopicInput interface {
	pulumi.Input

	ToLogTopicOutput() LogTopicOutput
	ToLogTopicOutputWithContext(ctx context.Context) LogTopicOutput
}

type LogTopicMap

type LogTopicMap map[string]LogTopicInput

func (LogTopicMap) ElementType

func (LogTopicMap) ElementType() reflect.Type

func (LogTopicMap) ToLogTopicMapOutput

func (i LogTopicMap) ToLogTopicMapOutput() LogTopicMapOutput

func (LogTopicMap) ToLogTopicMapOutputWithContext

func (i LogTopicMap) ToLogTopicMapOutputWithContext(ctx context.Context) LogTopicMapOutput

type LogTopicMapInput

type LogTopicMapInput interface {
	pulumi.Input

	ToLogTopicMapOutput() LogTopicMapOutput
	ToLogTopicMapOutputWithContext(context.Context) LogTopicMapOutput
}

LogTopicMapInput is an input type that accepts LogTopicMap and LogTopicMapOutput values. You can construct a concrete instance of `LogTopicMapInput` via:

LogTopicMap{ "key": LogTopicArgs{...} }

type LogTopicMapOutput

type LogTopicMapOutput struct{ *pulumi.OutputState }

func (LogTopicMapOutput) ElementType

func (LogTopicMapOutput) ElementType() reflect.Type

func (LogTopicMapOutput) MapIndex

func (LogTopicMapOutput) ToLogTopicMapOutput

func (o LogTopicMapOutput) ToLogTopicMapOutput() LogTopicMapOutput

func (LogTopicMapOutput) ToLogTopicMapOutputWithContext

func (o LogTopicMapOutput) ToLogTopicMapOutputWithContext(ctx context.Context) LogTopicMapOutput

type LogTopicOutput

type LogTopicOutput struct{ *pulumi.OutputState }

func (LogTopicOutput) CreateTime

func (o LogTopicOutput) CreateTime() pulumi.StringOutput

Log topic creation time.

func (LogTopicOutput) ElementType

func (LogTopicOutput) ElementType() reflect.Type

func (LogTopicOutput) LogSetId

func (o LogTopicOutput) LogSetId() pulumi.StringOutput

Log topic of CLB instance.

func (LogTopicOutput) Status

func (o LogTopicOutput) Status() pulumi.BoolOutput

The status of log topic.

func (LogTopicOutput) ToLogTopicOutput

func (o LogTopicOutput) ToLogTopicOutput() LogTopicOutput

func (LogTopicOutput) ToLogTopicOutputWithContext

func (o LogTopicOutput) ToLogTopicOutputWithContext(ctx context.Context) LogTopicOutput

func (LogTopicOutput) TopicName

func (o LogTopicOutput) TopicName() pulumi.StringOutput

Log topic of CLB instance.

type LogTopicState

type LogTopicState struct {
	// Log topic creation time.
	CreateTime pulumi.StringPtrInput
	// Log topic of CLB instance.
	LogSetId pulumi.StringPtrInput
	// The status of log topic.
	Status pulumi.BoolPtrInput
	// Log topic of CLB instance.
	TopicName pulumi.StringPtrInput
}

func (LogTopicState) ElementType

func (LogTopicState) ElementType() reflect.Type

type Redirection

type Redirection struct {
	pulumi.CustomResourceState

	// ID of CLB instance.
	ClbId pulumi.StringOutput `pulumi:"clbId"`
	// Indicates whether delete all auto redirection. Default is `false`. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true.
	DeleteAllAutoRewrite pulumi.BoolPtrOutput `pulumi:"deleteAllAutoRewrite"`
	// Indicates whether automatic forwarding is enable, default is `false`. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443.
	IsAutoRewrite pulumi.BoolPtrOutput `pulumi:"isAutoRewrite"`
	// ID of source listener.
	SourceListenerId pulumi.StringOutput `pulumi:"sourceListenerId"`
	// Rule ID of source listener.
	SourceRuleId pulumi.StringOutput `pulumi:"sourceRuleId"`
	// ID of source listener.
	TargetListenerId pulumi.StringOutput `pulumi:"targetListenerId"`
	// Rule ID of target listener.
	TargetRuleId pulumi.StringOutput `pulumi:"targetRuleId"`
}

Provides a resource to create a CLB redirection.

## Example Usage

Manual Rewrite

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewRedirection(ctx, "foo", &Clb.RedirectionArgs{
			ClbId:            pulumi.String("lb-p7olt9e5"),
			SourceListenerId: pulumi.String("lbl-jc1dx6ju"),
			SourceRuleId:     pulumi.String("loc-ft8fmngv"),
			TargetListenerId: pulumi.String("lbl-asj1hzuo"),
			TargetRuleId:     pulumi.String("loc-4xxr2cy7"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Auto Rewrite

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewRedirection(ctx, "foo", &Clb.RedirectionArgs{
			ClbId:            pulumi.String("lb-p7olt9e5"),
			IsAutoRewrite:    pulumi.Bool(true),
			TargetListenerId: pulumi.String("lbl-asj1hzuo"),
			TargetRuleId:     pulumi.String("loc-4xxr2cy7"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CLB redirection can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Clb/redirection:Redirection foo loc-ft8fmngv#loc-4xxr2cy7#lbl-jc1dx6ju#lbl-asj1hzuo#lb-p7olt9e5

```

func GetRedirection

func GetRedirection(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RedirectionState, opts ...pulumi.ResourceOption) (*Redirection, error)

GetRedirection gets an existing Redirection 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 NewRedirection

func NewRedirection(ctx *pulumi.Context,
	name string, args *RedirectionArgs, opts ...pulumi.ResourceOption) (*Redirection, error)

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

func (*Redirection) ElementType

func (*Redirection) ElementType() reflect.Type

func (*Redirection) ToRedirectionOutput

func (i *Redirection) ToRedirectionOutput() RedirectionOutput

func (*Redirection) ToRedirectionOutputWithContext

func (i *Redirection) ToRedirectionOutputWithContext(ctx context.Context) RedirectionOutput

type RedirectionArgs

type RedirectionArgs struct {
	// ID of CLB instance.
	ClbId pulumi.StringInput
	// Indicates whether delete all auto redirection. Default is `false`. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true.
	DeleteAllAutoRewrite pulumi.BoolPtrInput
	// Indicates whether automatic forwarding is enable, default is `false`. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443.
	IsAutoRewrite pulumi.BoolPtrInput
	// ID of source listener.
	SourceListenerId pulumi.StringPtrInput
	// Rule ID of source listener.
	SourceRuleId pulumi.StringPtrInput
	// ID of source listener.
	TargetListenerId pulumi.StringInput
	// Rule ID of target listener.
	TargetRuleId pulumi.StringInput
}

The set of arguments for constructing a Redirection resource.

func (RedirectionArgs) ElementType

func (RedirectionArgs) ElementType() reflect.Type

type RedirectionArray

type RedirectionArray []RedirectionInput

func (RedirectionArray) ElementType

func (RedirectionArray) ElementType() reflect.Type

func (RedirectionArray) ToRedirectionArrayOutput

func (i RedirectionArray) ToRedirectionArrayOutput() RedirectionArrayOutput

func (RedirectionArray) ToRedirectionArrayOutputWithContext

func (i RedirectionArray) ToRedirectionArrayOutputWithContext(ctx context.Context) RedirectionArrayOutput

type RedirectionArrayInput

type RedirectionArrayInput interface {
	pulumi.Input

	ToRedirectionArrayOutput() RedirectionArrayOutput
	ToRedirectionArrayOutputWithContext(context.Context) RedirectionArrayOutput
}

RedirectionArrayInput is an input type that accepts RedirectionArray and RedirectionArrayOutput values. You can construct a concrete instance of `RedirectionArrayInput` via:

RedirectionArray{ RedirectionArgs{...} }

type RedirectionArrayOutput

type RedirectionArrayOutput struct{ *pulumi.OutputState }

func (RedirectionArrayOutput) ElementType

func (RedirectionArrayOutput) ElementType() reflect.Type

func (RedirectionArrayOutput) Index

func (RedirectionArrayOutput) ToRedirectionArrayOutput

func (o RedirectionArrayOutput) ToRedirectionArrayOutput() RedirectionArrayOutput

func (RedirectionArrayOutput) ToRedirectionArrayOutputWithContext

func (o RedirectionArrayOutput) ToRedirectionArrayOutputWithContext(ctx context.Context) RedirectionArrayOutput

type RedirectionInput

type RedirectionInput interface {
	pulumi.Input

	ToRedirectionOutput() RedirectionOutput
	ToRedirectionOutputWithContext(ctx context.Context) RedirectionOutput
}

type RedirectionMap

type RedirectionMap map[string]RedirectionInput

func (RedirectionMap) ElementType

func (RedirectionMap) ElementType() reflect.Type

func (RedirectionMap) ToRedirectionMapOutput

func (i RedirectionMap) ToRedirectionMapOutput() RedirectionMapOutput

func (RedirectionMap) ToRedirectionMapOutputWithContext

func (i RedirectionMap) ToRedirectionMapOutputWithContext(ctx context.Context) RedirectionMapOutput

type RedirectionMapInput

type RedirectionMapInput interface {
	pulumi.Input

	ToRedirectionMapOutput() RedirectionMapOutput
	ToRedirectionMapOutputWithContext(context.Context) RedirectionMapOutput
}

RedirectionMapInput is an input type that accepts RedirectionMap and RedirectionMapOutput values. You can construct a concrete instance of `RedirectionMapInput` via:

RedirectionMap{ "key": RedirectionArgs{...} }

type RedirectionMapOutput

type RedirectionMapOutput struct{ *pulumi.OutputState }

func (RedirectionMapOutput) ElementType

func (RedirectionMapOutput) ElementType() reflect.Type

func (RedirectionMapOutput) MapIndex

func (RedirectionMapOutput) ToRedirectionMapOutput

func (o RedirectionMapOutput) ToRedirectionMapOutput() RedirectionMapOutput

func (RedirectionMapOutput) ToRedirectionMapOutputWithContext

func (o RedirectionMapOutput) ToRedirectionMapOutputWithContext(ctx context.Context) RedirectionMapOutput

type RedirectionOutput

type RedirectionOutput struct{ *pulumi.OutputState }

func (RedirectionOutput) ClbId

ID of CLB instance.

func (RedirectionOutput) DeleteAllAutoRewrite

func (o RedirectionOutput) DeleteAllAutoRewrite() pulumi.BoolPtrOutput

Indicates whether delete all auto redirection. Default is `false`. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true.

func (RedirectionOutput) ElementType

func (RedirectionOutput) ElementType() reflect.Type

func (RedirectionOutput) IsAutoRewrite

func (o RedirectionOutput) IsAutoRewrite() pulumi.BoolPtrOutput

Indicates whether automatic forwarding is enable, default is `false`. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443.

func (RedirectionOutput) SourceListenerId

func (o RedirectionOutput) SourceListenerId() pulumi.StringOutput

ID of source listener.

func (RedirectionOutput) SourceRuleId

func (o RedirectionOutput) SourceRuleId() pulumi.StringOutput

Rule ID of source listener.

func (RedirectionOutput) TargetListenerId

func (o RedirectionOutput) TargetListenerId() pulumi.StringOutput

ID of source listener.

func (RedirectionOutput) TargetRuleId

func (o RedirectionOutput) TargetRuleId() pulumi.StringOutput

Rule ID of target listener.

func (RedirectionOutput) ToRedirectionOutput

func (o RedirectionOutput) ToRedirectionOutput() RedirectionOutput

func (RedirectionOutput) ToRedirectionOutputWithContext

func (o RedirectionOutput) ToRedirectionOutputWithContext(ctx context.Context) RedirectionOutput

type RedirectionState

type RedirectionState struct {
	// ID of CLB instance.
	ClbId pulumi.StringPtrInput
	// Indicates whether delete all auto redirection. Default is `false`. It will take effect only when this redirection is auto-rewrite and this auto-rewrite auto redirected more than one rules. All the auto-rewrite relations will be deleted when this parameter set true.
	DeleteAllAutoRewrite pulumi.BoolPtrInput
	// Indicates whether automatic forwarding is enable, default is `false`. If enabled, the source listener and location should be empty, the target listener must be https protocol and port is 443.
	IsAutoRewrite pulumi.BoolPtrInput
	// ID of source listener.
	SourceListenerId pulumi.StringPtrInput
	// Rule ID of source listener.
	SourceRuleId pulumi.StringPtrInput
	// ID of source listener.
	TargetListenerId pulumi.StringPtrInput
	// Rule ID of target listener.
	TargetRuleId pulumi.StringPtrInput
}

func (RedirectionState) ElementType

func (RedirectionState) ElementType() reflect.Type

type SnatIp

type SnatIp struct {
	pulumi.CustomResourceState

	// CLB instance ID.
	ClbId pulumi.StringOutput `pulumi:"clbId"`
	// Snat IP address config.
	Ips SnatIpIpArrayOutput `pulumi:"ips"`
}

Provide a resource to create a SnatIp of CLB instance.

> **NOTE:** Target CLB instance must enable `snatPro` before creating snat ips. **NOTE:** Dynamic allocate IP doesn't support for now.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		snatTest, err := Clb.NewInstance(ctx, "snatTest", &Clb.InstanceArgs{
			NetworkType: pulumi.String("OPEN"),
			ClbName:     pulumi.String("tf-clb-snat-test"),
		})
		if err != nil {
			return err
		}
		_, err = Clb.NewSnatIp(ctx, "foo", &Clb.SnatIpArgs{
			ClbId: snatTest.ID(),
			Ips: clb.SnatIpIpArray{
				&clb.SnatIpIpArgs{
					SubnetId: pulumi.String("subnet-12345678"),
					Ip:       pulumi.String("172.16.0.1"),
				},
				&clb.SnatIpIpArgs{
					SubnetId: pulumi.String("subnet-12345678"),
					Ip:       pulumi.String("172.16.0.2"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

ClbSnatIp instance can be imported by clb instance id, e.g.

```sh

$ pulumi import tencentcloud:Clb/snatIp:SnatIp test clb_id

```

func GetSnatIp

func GetSnatIp(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *SnatIpState, opts ...pulumi.ResourceOption) (*SnatIp, error)

GetSnatIp gets an existing SnatIp 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 NewSnatIp

func NewSnatIp(ctx *pulumi.Context,
	name string, args *SnatIpArgs, opts ...pulumi.ResourceOption) (*SnatIp, error)

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

func (*SnatIp) ElementType

func (*SnatIp) ElementType() reflect.Type

func (*SnatIp) ToSnatIpOutput

func (i *SnatIp) ToSnatIpOutput() SnatIpOutput

func (*SnatIp) ToSnatIpOutputWithContext

func (i *SnatIp) ToSnatIpOutputWithContext(ctx context.Context) SnatIpOutput

type SnatIpArgs

type SnatIpArgs struct {
	// CLB instance ID.
	ClbId pulumi.StringInput
	// Snat IP address config.
	Ips SnatIpIpArrayInput
}

The set of arguments for constructing a SnatIp resource.

func (SnatIpArgs) ElementType

func (SnatIpArgs) ElementType() reflect.Type

type SnatIpArray

type SnatIpArray []SnatIpInput

func (SnatIpArray) ElementType

func (SnatIpArray) ElementType() reflect.Type

func (SnatIpArray) ToSnatIpArrayOutput

func (i SnatIpArray) ToSnatIpArrayOutput() SnatIpArrayOutput

func (SnatIpArray) ToSnatIpArrayOutputWithContext

func (i SnatIpArray) ToSnatIpArrayOutputWithContext(ctx context.Context) SnatIpArrayOutput

type SnatIpArrayInput

type SnatIpArrayInput interface {
	pulumi.Input

	ToSnatIpArrayOutput() SnatIpArrayOutput
	ToSnatIpArrayOutputWithContext(context.Context) SnatIpArrayOutput
}

SnatIpArrayInput is an input type that accepts SnatIpArray and SnatIpArrayOutput values. You can construct a concrete instance of `SnatIpArrayInput` via:

SnatIpArray{ SnatIpArgs{...} }

type SnatIpArrayOutput

type SnatIpArrayOutput struct{ *pulumi.OutputState }

func (SnatIpArrayOutput) ElementType

func (SnatIpArrayOutput) ElementType() reflect.Type

func (SnatIpArrayOutput) Index

func (SnatIpArrayOutput) ToSnatIpArrayOutput

func (o SnatIpArrayOutput) ToSnatIpArrayOutput() SnatIpArrayOutput

func (SnatIpArrayOutput) ToSnatIpArrayOutputWithContext

func (o SnatIpArrayOutput) ToSnatIpArrayOutputWithContext(ctx context.Context) SnatIpArrayOutput

type SnatIpInput

type SnatIpInput interface {
	pulumi.Input

	ToSnatIpOutput() SnatIpOutput
	ToSnatIpOutputWithContext(ctx context.Context) SnatIpOutput
}

type SnatIpIp

type SnatIpIp struct {
	// Snat IP.
	Ip string `pulumi:"ip"`
	// Subnet ID.
	SubnetId string `pulumi:"subnetId"`
}

type SnatIpIpArgs

type SnatIpIpArgs struct {
	// Snat IP.
	Ip pulumi.StringInput `pulumi:"ip"`
	// Subnet ID.
	SubnetId pulumi.StringInput `pulumi:"subnetId"`
}

func (SnatIpIpArgs) ElementType

func (SnatIpIpArgs) ElementType() reflect.Type

func (SnatIpIpArgs) ToSnatIpIpOutput

func (i SnatIpIpArgs) ToSnatIpIpOutput() SnatIpIpOutput

func (SnatIpIpArgs) ToSnatIpIpOutputWithContext

func (i SnatIpIpArgs) ToSnatIpIpOutputWithContext(ctx context.Context) SnatIpIpOutput

type SnatIpIpArray

type SnatIpIpArray []SnatIpIpInput

func (SnatIpIpArray) ElementType

func (SnatIpIpArray) ElementType() reflect.Type

func (SnatIpIpArray) ToSnatIpIpArrayOutput

func (i SnatIpIpArray) ToSnatIpIpArrayOutput() SnatIpIpArrayOutput

func (SnatIpIpArray) ToSnatIpIpArrayOutputWithContext

func (i SnatIpIpArray) ToSnatIpIpArrayOutputWithContext(ctx context.Context) SnatIpIpArrayOutput

type SnatIpIpArrayInput

type SnatIpIpArrayInput interface {
	pulumi.Input

	ToSnatIpIpArrayOutput() SnatIpIpArrayOutput
	ToSnatIpIpArrayOutputWithContext(context.Context) SnatIpIpArrayOutput
}

SnatIpIpArrayInput is an input type that accepts SnatIpIpArray and SnatIpIpArrayOutput values. You can construct a concrete instance of `SnatIpIpArrayInput` via:

SnatIpIpArray{ SnatIpIpArgs{...} }

type SnatIpIpArrayOutput

type SnatIpIpArrayOutput struct{ *pulumi.OutputState }

func (SnatIpIpArrayOutput) ElementType

func (SnatIpIpArrayOutput) ElementType() reflect.Type

func (SnatIpIpArrayOutput) Index

func (SnatIpIpArrayOutput) ToSnatIpIpArrayOutput

func (o SnatIpIpArrayOutput) ToSnatIpIpArrayOutput() SnatIpIpArrayOutput

func (SnatIpIpArrayOutput) ToSnatIpIpArrayOutputWithContext

func (o SnatIpIpArrayOutput) ToSnatIpIpArrayOutputWithContext(ctx context.Context) SnatIpIpArrayOutput

type SnatIpIpInput

type SnatIpIpInput interface {
	pulumi.Input

	ToSnatIpIpOutput() SnatIpIpOutput
	ToSnatIpIpOutputWithContext(context.Context) SnatIpIpOutput
}

SnatIpIpInput is an input type that accepts SnatIpIpArgs and SnatIpIpOutput values. You can construct a concrete instance of `SnatIpIpInput` via:

SnatIpIpArgs{...}

type SnatIpIpOutput

type SnatIpIpOutput struct{ *pulumi.OutputState }

func (SnatIpIpOutput) ElementType

func (SnatIpIpOutput) ElementType() reflect.Type

func (SnatIpIpOutput) Ip

Snat IP.

func (SnatIpIpOutput) SubnetId

func (o SnatIpIpOutput) SubnetId() pulumi.StringOutput

Subnet ID.

func (SnatIpIpOutput) ToSnatIpIpOutput

func (o SnatIpIpOutput) ToSnatIpIpOutput() SnatIpIpOutput

func (SnatIpIpOutput) ToSnatIpIpOutputWithContext

func (o SnatIpIpOutput) ToSnatIpIpOutputWithContext(ctx context.Context) SnatIpIpOutput

type SnatIpMap

type SnatIpMap map[string]SnatIpInput

func (SnatIpMap) ElementType

func (SnatIpMap) ElementType() reflect.Type

func (SnatIpMap) ToSnatIpMapOutput

func (i SnatIpMap) ToSnatIpMapOutput() SnatIpMapOutput

func (SnatIpMap) ToSnatIpMapOutputWithContext

func (i SnatIpMap) ToSnatIpMapOutputWithContext(ctx context.Context) SnatIpMapOutput

type SnatIpMapInput

type SnatIpMapInput interface {
	pulumi.Input

	ToSnatIpMapOutput() SnatIpMapOutput
	ToSnatIpMapOutputWithContext(context.Context) SnatIpMapOutput
}

SnatIpMapInput is an input type that accepts SnatIpMap and SnatIpMapOutput values. You can construct a concrete instance of `SnatIpMapInput` via:

SnatIpMap{ "key": SnatIpArgs{...} }

type SnatIpMapOutput

type SnatIpMapOutput struct{ *pulumi.OutputState }

func (SnatIpMapOutput) ElementType

func (SnatIpMapOutput) ElementType() reflect.Type

func (SnatIpMapOutput) MapIndex

func (SnatIpMapOutput) ToSnatIpMapOutput

func (o SnatIpMapOutput) ToSnatIpMapOutput() SnatIpMapOutput

func (SnatIpMapOutput) ToSnatIpMapOutputWithContext

func (o SnatIpMapOutput) ToSnatIpMapOutputWithContext(ctx context.Context) SnatIpMapOutput

type SnatIpOutput

type SnatIpOutput struct{ *pulumi.OutputState }

func (SnatIpOutput) ClbId

func (o SnatIpOutput) ClbId() pulumi.StringOutput

CLB instance ID.

func (SnatIpOutput) ElementType

func (SnatIpOutput) ElementType() reflect.Type

func (SnatIpOutput) Ips

Snat IP address config.

func (SnatIpOutput) ToSnatIpOutput

func (o SnatIpOutput) ToSnatIpOutput() SnatIpOutput

func (SnatIpOutput) ToSnatIpOutputWithContext

func (o SnatIpOutput) ToSnatIpOutputWithContext(ctx context.Context) SnatIpOutput

type SnatIpState

type SnatIpState struct {
	// CLB instance ID.
	ClbId pulumi.StringPtrInput
	// Snat IP address config.
	Ips SnatIpIpArrayInput
}

func (SnatIpState) ElementType

func (SnatIpState) ElementType() reflect.Type

type TargetGroup

type TargetGroup struct {
	pulumi.CustomResourceState

	// The default port of target group, add server after can use it.
	Port pulumi.IntPtrOutput `pulumi:"port"`
	// The backend server of target group bind.
	TargetGroupInstances TargetGroupTargetGroupInstanceArrayOutput `pulumi:"targetGroupInstances"`
	// Target group name.
	TargetGroupName pulumi.StringPtrOutput `pulumi:"targetGroupName"`
	// VPC ID, default is based on the network.
	VpcId pulumi.StringPtrOutput `pulumi:"vpcId"`
}

Provides a resource to create a CLB target group.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewTargetGroup(ctx, "test", &Clb.TargetGroupArgs{
			Port:            pulumi.Int(33),
			TargetGroupName: pulumi.String("test"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

Create target group

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Clb.NewTargetGroup(ctx, "test", &Clb.TargetGroupArgs{
			Port: pulumi.Int(18082),
			TargetGroupInstances: clb.TargetGroupTargetGroupInstanceArray{
				&clb.TargetGroupTargetGroupInstanceArgs{
					BindIp: pulumi.String("10.0.0.4"),
					Port:   pulumi.Int(18080),
				},
			},
			TargetGroupName: pulumi.String("hello1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CLB target group can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Clb/targetGroup:TargetGroup test lbtg-3k3io0i0

```

func GetTargetGroup

func GetTargetGroup(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TargetGroupState, opts ...pulumi.ResourceOption) (*TargetGroup, error)

GetTargetGroup gets an existing TargetGroup 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 NewTargetGroup

func NewTargetGroup(ctx *pulumi.Context,
	name string, args *TargetGroupArgs, opts ...pulumi.ResourceOption) (*TargetGroup, error)

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

func (*TargetGroup) ElementType

func (*TargetGroup) ElementType() reflect.Type

func (*TargetGroup) ToTargetGroupOutput

func (i *TargetGroup) ToTargetGroupOutput() TargetGroupOutput

func (*TargetGroup) ToTargetGroupOutputWithContext

func (i *TargetGroup) ToTargetGroupOutputWithContext(ctx context.Context) TargetGroupOutput

type TargetGroupArgs

type TargetGroupArgs struct {
	// The default port of target group, add server after can use it.
	Port pulumi.IntPtrInput
	// The backend server of target group bind.
	TargetGroupInstances TargetGroupTargetGroupInstanceArrayInput
	// Target group name.
	TargetGroupName pulumi.StringPtrInput
	// VPC ID, default is based on the network.
	VpcId pulumi.StringPtrInput
}

The set of arguments for constructing a TargetGroup resource.

func (TargetGroupArgs) ElementType

func (TargetGroupArgs) ElementType() reflect.Type

type TargetGroupArray

type TargetGroupArray []TargetGroupInput

func (TargetGroupArray) ElementType

func (TargetGroupArray) ElementType() reflect.Type

func (TargetGroupArray) ToTargetGroupArrayOutput

func (i TargetGroupArray) ToTargetGroupArrayOutput() TargetGroupArrayOutput

func (TargetGroupArray) ToTargetGroupArrayOutputWithContext

func (i TargetGroupArray) ToTargetGroupArrayOutputWithContext(ctx context.Context) TargetGroupArrayOutput

type TargetGroupArrayInput

type TargetGroupArrayInput interface {
	pulumi.Input

	ToTargetGroupArrayOutput() TargetGroupArrayOutput
	ToTargetGroupArrayOutputWithContext(context.Context) TargetGroupArrayOutput
}

TargetGroupArrayInput is an input type that accepts TargetGroupArray and TargetGroupArrayOutput values. You can construct a concrete instance of `TargetGroupArrayInput` via:

TargetGroupArray{ TargetGroupArgs{...} }

type TargetGroupArrayOutput

type TargetGroupArrayOutput struct{ *pulumi.OutputState }

func (TargetGroupArrayOutput) ElementType

func (TargetGroupArrayOutput) ElementType() reflect.Type

func (TargetGroupArrayOutput) Index

func (TargetGroupArrayOutput) ToTargetGroupArrayOutput

func (o TargetGroupArrayOutput) ToTargetGroupArrayOutput() TargetGroupArrayOutput

func (TargetGroupArrayOutput) ToTargetGroupArrayOutputWithContext

func (o TargetGroupArrayOutput) ToTargetGroupArrayOutputWithContext(ctx context.Context) TargetGroupArrayOutput

type TargetGroupAttachment

type TargetGroupAttachment struct {
	pulumi.CustomResourceState

	// ID of the CLB.
	ClbId pulumi.StringOutput `pulumi:"clbId"`
	// ID of the CLB listener.
	ListenerId pulumi.StringOutput `pulumi:"listenerId"`
	// ID of the CLB listener rule.
	RuleId pulumi.StringPtrOutput `pulumi:"ruleId"`
	// ID of the CLB target group.
	TargetGroupId pulumi.StringPtrOutput `pulumi:"targetGroupId"`
	// It has been deprecated from version 1.47.1. Use `targetGroupId` instead. ID of the CLB target group.
	//
	// Deprecated: It has been deprecated from version 1.47.1. Use `target_group_id` instead.
	TargrtGroupId pulumi.StringPtrOutput `pulumi:"targrtGroupId"`
}

Provides a resource to create a CLB target group attachment is bound to the load balancing listener or forwarding rule.

## Example Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		clbBasic, err := Clb.NewInstance(ctx, "clbBasic", &Clb.InstanceArgs{
			NetworkType: pulumi.String("OPEN"),
			ClbName:     pulumi.String("tf-clb-rule-basic"),
		})
		if err != nil {
			return err
		}
		listenerBasic, err := Clb.NewListener(ctx, "listenerBasic", &Clb.ListenerArgs{
			ClbId:        clbBasic.ID(),
			Port:         pulumi.Int(1),
			Protocol:     pulumi.String("HTTP"),
			ListenerName: pulumi.String("listener_basic"),
		})
		if err != nil {
			return err
		}
		ruleBasic, err := Clb.NewListenerRule(ctx, "ruleBasic", &Clb.ListenerRuleArgs{
			ClbId:             clbBasic.ID(),
			ListenerId:        listenerBasic.ListenerId,
			Domain:            pulumi.String("abc.com"),
			Url:               pulumi.String("/"),
			SessionExpireTime: pulumi.Int(30),
			Scheduler:         pulumi.String("WRR"),
			TargetType:        pulumi.String("TARGETGROUP"),
		})
		if err != nil {
			return err
		}
		test, err := Clb.NewTargetGroup(ctx, "test", &Clb.TargetGroupArgs{
			TargetGroupName: pulumi.String("test-target-keep-1"),
		})
		if err != nil {
			return err
		}
		_, err = Clb.NewTargetGroupAttachment(ctx, "group", &Clb.TargetGroupAttachmentArgs{
			ClbId:         clbBasic.ID(),
			ListenerId:    listenerBasic.ListenerId,
			RuleId:        ruleBasic.RuleId,
			TargetGroupId: test.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CLB target group attachment can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Clb/targetGroupAttachment:TargetGroupAttachment group lbtg-odareyb2#lbl-bicjmx3i#lb-cv0iz74c#loc-ac6uk7b6

```

func GetTargetGroupAttachment

func GetTargetGroupAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TargetGroupAttachmentState, opts ...pulumi.ResourceOption) (*TargetGroupAttachment, error)

GetTargetGroupAttachment gets an existing TargetGroupAttachment 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 NewTargetGroupAttachment

func NewTargetGroupAttachment(ctx *pulumi.Context,
	name string, args *TargetGroupAttachmentArgs, opts ...pulumi.ResourceOption) (*TargetGroupAttachment, error)

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

func (*TargetGroupAttachment) ElementType

func (*TargetGroupAttachment) ElementType() reflect.Type

func (*TargetGroupAttachment) ToTargetGroupAttachmentOutput

func (i *TargetGroupAttachment) ToTargetGroupAttachmentOutput() TargetGroupAttachmentOutput

func (*TargetGroupAttachment) ToTargetGroupAttachmentOutputWithContext

func (i *TargetGroupAttachment) ToTargetGroupAttachmentOutputWithContext(ctx context.Context) TargetGroupAttachmentOutput

type TargetGroupAttachmentArgs

type TargetGroupAttachmentArgs struct {
	// ID of the CLB.
	ClbId pulumi.StringInput
	// ID of the CLB listener.
	ListenerId pulumi.StringInput
	// ID of the CLB listener rule.
	RuleId pulumi.StringPtrInput
	// ID of the CLB target group.
	TargetGroupId pulumi.StringPtrInput
	// It has been deprecated from version 1.47.1. Use `targetGroupId` instead. ID of the CLB target group.
	//
	// Deprecated: It has been deprecated from version 1.47.1. Use `target_group_id` instead.
	TargrtGroupId pulumi.StringPtrInput
}

The set of arguments for constructing a TargetGroupAttachment resource.

func (TargetGroupAttachmentArgs) ElementType

func (TargetGroupAttachmentArgs) ElementType() reflect.Type

type TargetGroupAttachmentArray

type TargetGroupAttachmentArray []TargetGroupAttachmentInput

func (TargetGroupAttachmentArray) ElementType

func (TargetGroupAttachmentArray) ElementType() reflect.Type

func (TargetGroupAttachmentArray) ToTargetGroupAttachmentArrayOutput

func (i TargetGroupAttachmentArray) ToTargetGroupAttachmentArrayOutput() TargetGroupAttachmentArrayOutput

func (TargetGroupAttachmentArray) ToTargetGroupAttachmentArrayOutputWithContext

func (i TargetGroupAttachmentArray) ToTargetGroupAttachmentArrayOutputWithContext(ctx context.Context) TargetGroupAttachmentArrayOutput

type TargetGroupAttachmentArrayInput

type TargetGroupAttachmentArrayInput interface {
	pulumi.Input

	ToTargetGroupAttachmentArrayOutput() TargetGroupAttachmentArrayOutput
	ToTargetGroupAttachmentArrayOutputWithContext(context.Context) TargetGroupAttachmentArrayOutput
}

TargetGroupAttachmentArrayInput is an input type that accepts TargetGroupAttachmentArray and TargetGroupAttachmentArrayOutput values. You can construct a concrete instance of `TargetGroupAttachmentArrayInput` via:

TargetGroupAttachmentArray{ TargetGroupAttachmentArgs{...} }

type TargetGroupAttachmentArrayOutput

type TargetGroupAttachmentArrayOutput struct{ *pulumi.OutputState }

func (TargetGroupAttachmentArrayOutput) ElementType

func (TargetGroupAttachmentArrayOutput) Index

func (TargetGroupAttachmentArrayOutput) ToTargetGroupAttachmentArrayOutput

func (o TargetGroupAttachmentArrayOutput) ToTargetGroupAttachmentArrayOutput() TargetGroupAttachmentArrayOutput

func (TargetGroupAttachmentArrayOutput) ToTargetGroupAttachmentArrayOutputWithContext

func (o TargetGroupAttachmentArrayOutput) ToTargetGroupAttachmentArrayOutputWithContext(ctx context.Context) TargetGroupAttachmentArrayOutput

type TargetGroupAttachmentInput

type TargetGroupAttachmentInput interface {
	pulumi.Input

	ToTargetGroupAttachmentOutput() TargetGroupAttachmentOutput
	ToTargetGroupAttachmentOutputWithContext(ctx context.Context) TargetGroupAttachmentOutput
}

type TargetGroupAttachmentMap

type TargetGroupAttachmentMap map[string]TargetGroupAttachmentInput

func (TargetGroupAttachmentMap) ElementType

func (TargetGroupAttachmentMap) ElementType() reflect.Type

func (TargetGroupAttachmentMap) ToTargetGroupAttachmentMapOutput

func (i TargetGroupAttachmentMap) ToTargetGroupAttachmentMapOutput() TargetGroupAttachmentMapOutput

func (TargetGroupAttachmentMap) ToTargetGroupAttachmentMapOutputWithContext

func (i TargetGroupAttachmentMap) ToTargetGroupAttachmentMapOutputWithContext(ctx context.Context) TargetGroupAttachmentMapOutput

type TargetGroupAttachmentMapInput

type TargetGroupAttachmentMapInput interface {
	pulumi.Input

	ToTargetGroupAttachmentMapOutput() TargetGroupAttachmentMapOutput
	ToTargetGroupAttachmentMapOutputWithContext(context.Context) TargetGroupAttachmentMapOutput
}

TargetGroupAttachmentMapInput is an input type that accepts TargetGroupAttachmentMap and TargetGroupAttachmentMapOutput values. You can construct a concrete instance of `TargetGroupAttachmentMapInput` via:

TargetGroupAttachmentMap{ "key": TargetGroupAttachmentArgs{...} }

type TargetGroupAttachmentMapOutput

type TargetGroupAttachmentMapOutput struct{ *pulumi.OutputState }

func (TargetGroupAttachmentMapOutput) ElementType

func (TargetGroupAttachmentMapOutput) MapIndex

func (TargetGroupAttachmentMapOutput) ToTargetGroupAttachmentMapOutput

func (o TargetGroupAttachmentMapOutput) ToTargetGroupAttachmentMapOutput() TargetGroupAttachmentMapOutput

func (TargetGroupAttachmentMapOutput) ToTargetGroupAttachmentMapOutputWithContext

func (o TargetGroupAttachmentMapOutput) ToTargetGroupAttachmentMapOutputWithContext(ctx context.Context) TargetGroupAttachmentMapOutput

type TargetGroupAttachmentOutput

type TargetGroupAttachmentOutput struct{ *pulumi.OutputState }

func (TargetGroupAttachmentOutput) ClbId

ID of the CLB.

func (TargetGroupAttachmentOutput) ElementType

func (TargetGroupAttachmentOutput) ListenerId

ID of the CLB listener.

func (TargetGroupAttachmentOutput) RuleId

ID of the CLB listener rule.

func (TargetGroupAttachmentOutput) TargetGroupId

ID of the CLB target group.

func (TargetGroupAttachmentOutput) TargrtGroupId deprecated

It has been deprecated from version 1.47.1. Use `targetGroupId` instead. ID of the CLB target group.

Deprecated: It has been deprecated from version 1.47.1. Use `target_group_id` instead.

func (TargetGroupAttachmentOutput) ToTargetGroupAttachmentOutput

func (o TargetGroupAttachmentOutput) ToTargetGroupAttachmentOutput() TargetGroupAttachmentOutput

func (TargetGroupAttachmentOutput) ToTargetGroupAttachmentOutputWithContext

func (o TargetGroupAttachmentOutput) ToTargetGroupAttachmentOutputWithContext(ctx context.Context) TargetGroupAttachmentOutput

type TargetGroupAttachmentState

type TargetGroupAttachmentState struct {
	// ID of the CLB.
	ClbId pulumi.StringPtrInput
	// ID of the CLB listener.
	ListenerId pulumi.StringPtrInput
	// ID of the CLB listener rule.
	RuleId pulumi.StringPtrInput
	// ID of the CLB target group.
	TargetGroupId pulumi.StringPtrInput
	// It has been deprecated from version 1.47.1. Use `targetGroupId` instead. ID of the CLB target group.
	//
	// Deprecated: It has been deprecated from version 1.47.1. Use `target_group_id` instead.
	TargrtGroupId pulumi.StringPtrInput
}

func (TargetGroupAttachmentState) ElementType

func (TargetGroupAttachmentState) ElementType() reflect.Type

type TargetGroupInput

type TargetGroupInput interface {
	pulumi.Input

	ToTargetGroupOutput() TargetGroupOutput
	ToTargetGroupOutputWithContext(ctx context.Context) TargetGroupOutput
}

type TargetGroupInstanceAttachment

type TargetGroupInstanceAttachment struct {
	pulumi.CustomResourceState

	// The Intranet IP of the target group instance.
	BindIp pulumi.StringOutput `pulumi:"bindIp"`
	// Port of the target group instance.
	Port pulumi.IntOutput `pulumi:"port"`
	// Target group ID.
	TargetGroupId pulumi.StringOutput `pulumi:"targetGroupId"`
	// The weight of the target group instance.
	Weight pulumi.IntOutput `pulumi:"weight"`
}

Provides a resource to create a CLB target group instance attachment.

## Import

CLB target group instance attachment can be imported using the id, e.g.

```sh

$ pulumi import tencentcloud:Clb/targetGroupInstanceAttachment:TargetGroupInstanceAttachment test lbtg-3k3io0i0#172.16.48.18#222

```

func GetTargetGroupInstanceAttachment

func GetTargetGroupInstanceAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TargetGroupInstanceAttachmentState, opts ...pulumi.ResourceOption) (*TargetGroupInstanceAttachment, error)

GetTargetGroupInstanceAttachment gets an existing TargetGroupInstanceAttachment 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 NewTargetGroupInstanceAttachment

func NewTargetGroupInstanceAttachment(ctx *pulumi.Context,
	name string, args *TargetGroupInstanceAttachmentArgs, opts ...pulumi.ResourceOption) (*TargetGroupInstanceAttachment, error)

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

func (*TargetGroupInstanceAttachment) ElementType

func (*TargetGroupInstanceAttachment) ToTargetGroupInstanceAttachmentOutput

func (i *TargetGroupInstanceAttachment) ToTargetGroupInstanceAttachmentOutput() TargetGroupInstanceAttachmentOutput

func (*TargetGroupInstanceAttachment) ToTargetGroupInstanceAttachmentOutputWithContext

func (i *TargetGroupInstanceAttachment) ToTargetGroupInstanceAttachmentOutputWithContext(ctx context.Context) TargetGroupInstanceAttachmentOutput

type TargetGroupInstanceAttachmentArgs

type TargetGroupInstanceAttachmentArgs struct {
	// The Intranet IP of the target group instance.
	BindIp pulumi.StringInput
	// Port of the target group instance.
	Port pulumi.IntInput
	// Target group ID.
	TargetGroupId pulumi.StringInput
	// The weight of the target group instance.
	Weight pulumi.IntInput
}

The set of arguments for constructing a TargetGroupInstanceAttachment resource.

func (TargetGroupInstanceAttachmentArgs) ElementType

type TargetGroupInstanceAttachmentArray

type TargetGroupInstanceAttachmentArray []TargetGroupInstanceAttachmentInput

func (TargetGroupInstanceAttachmentArray) ElementType

func (TargetGroupInstanceAttachmentArray) ToTargetGroupInstanceAttachmentArrayOutput

func (i TargetGroupInstanceAttachmentArray) ToTargetGroupInstanceAttachmentArrayOutput() TargetGroupInstanceAttachmentArrayOutput

func (TargetGroupInstanceAttachmentArray) ToTargetGroupInstanceAttachmentArrayOutputWithContext

func (i TargetGroupInstanceAttachmentArray) ToTargetGroupInstanceAttachmentArrayOutputWithContext(ctx context.Context) TargetGroupInstanceAttachmentArrayOutput

type TargetGroupInstanceAttachmentArrayInput

type TargetGroupInstanceAttachmentArrayInput interface {
	pulumi.Input

	ToTargetGroupInstanceAttachmentArrayOutput() TargetGroupInstanceAttachmentArrayOutput
	ToTargetGroupInstanceAttachmentArrayOutputWithContext(context.Context) TargetGroupInstanceAttachmentArrayOutput
}

TargetGroupInstanceAttachmentArrayInput is an input type that accepts TargetGroupInstanceAttachmentArray and TargetGroupInstanceAttachmentArrayOutput values. You can construct a concrete instance of `TargetGroupInstanceAttachmentArrayInput` via:

TargetGroupInstanceAttachmentArray{ TargetGroupInstanceAttachmentArgs{...} }

type TargetGroupInstanceAttachmentArrayOutput

type TargetGroupInstanceAttachmentArrayOutput struct{ *pulumi.OutputState }

func (TargetGroupInstanceAttachmentArrayOutput) ElementType

func (TargetGroupInstanceAttachmentArrayOutput) Index

func (TargetGroupInstanceAttachmentArrayOutput) ToTargetGroupInstanceAttachmentArrayOutput

func (o TargetGroupInstanceAttachmentArrayOutput) ToTargetGroupInstanceAttachmentArrayOutput() TargetGroupInstanceAttachmentArrayOutput

func (TargetGroupInstanceAttachmentArrayOutput) ToTargetGroupInstanceAttachmentArrayOutputWithContext

func (o TargetGroupInstanceAttachmentArrayOutput) ToTargetGroupInstanceAttachmentArrayOutputWithContext(ctx context.Context) TargetGroupInstanceAttachmentArrayOutput

type TargetGroupInstanceAttachmentInput

type TargetGroupInstanceAttachmentInput interface {
	pulumi.Input

	ToTargetGroupInstanceAttachmentOutput() TargetGroupInstanceAttachmentOutput
	ToTargetGroupInstanceAttachmentOutputWithContext(ctx context.Context) TargetGroupInstanceAttachmentOutput
}

type TargetGroupInstanceAttachmentMap

type TargetGroupInstanceAttachmentMap map[string]TargetGroupInstanceAttachmentInput

func (TargetGroupInstanceAttachmentMap) ElementType

func (TargetGroupInstanceAttachmentMap) ToTargetGroupInstanceAttachmentMapOutput

func (i TargetGroupInstanceAttachmentMap) ToTargetGroupInstanceAttachmentMapOutput() TargetGroupInstanceAttachmentMapOutput

func (TargetGroupInstanceAttachmentMap) ToTargetGroupInstanceAttachmentMapOutputWithContext

func (i TargetGroupInstanceAttachmentMap) ToTargetGroupInstanceAttachmentMapOutputWithContext(ctx context.Context) TargetGroupInstanceAttachmentMapOutput

type TargetGroupInstanceAttachmentMapInput

type TargetGroupInstanceAttachmentMapInput interface {
	pulumi.Input

	ToTargetGroupInstanceAttachmentMapOutput() TargetGroupInstanceAttachmentMapOutput
	ToTargetGroupInstanceAttachmentMapOutputWithContext(context.Context) TargetGroupInstanceAttachmentMapOutput
}

TargetGroupInstanceAttachmentMapInput is an input type that accepts TargetGroupInstanceAttachmentMap and TargetGroupInstanceAttachmentMapOutput values. You can construct a concrete instance of `TargetGroupInstanceAttachmentMapInput` via:

TargetGroupInstanceAttachmentMap{ "key": TargetGroupInstanceAttachmentArgs{...} }

type TargetGroupInstanceAttachmentMapOutput

type TargetGroupInstanceAttachmentMapOutput struct{ *pulumi.OutputState }

func (TargetGroupInstanceAttachmentMapOutput) ElementType

func (TargetGroupInstanceAttachmentMapOutput) MapIndex

func (TargetGroupInstanceAttachmentMapOutput) ToTargetGroupInstanceAttachmentMapOutput

func (o TargetGroupInstanceAttachmentMapOutput) ToTargetGroupInstanceAttachmentMapOutput() TargetGroupInstanceAttachmentMapOutput

func (TargetGroupInstanceAttachmentMapOutput) ToTargetGroupInstanceAttachmentMapOutputWithContext

func (o TargetGroupInstanceAttachmentMapOutput) ToTargetGroupInstanceAttachmentMapOutputWithContext(ctx context.Context) TargetGroupInstanceAttachmentMapOutput

type TargetGroupInstanceAttachmentOutput

type TargetGroupInstanceAttachmentOutput struct{ *pulumi.OutputState }

func (TargetGroupInstanceAttachmentOutput) BindIp

The Intranet IP of the target group instance.

func (TargetGroupInstanceAttachmentOutput) ElementType

func (TargetGroupInstanceAttachmentOutput) Port

Port of the target group instance.

func (TargetGroupInstanceAttachmentOutput) TargetGroupId

Target group ID.

func (TargetGroupInstanceAttachmentOutput) ToTargetGroupInstanceAttachmentOutput

func (o TargetGroupInstanceAttachmentOutput) ToTargetGroupInstanceAttachmentOutput() TargetGroupInstanceAttachmentOutput

func (TargetGroupInstanceAttachmentOutput) ToTargetGroupInstanceAttachmentOutputWithContext

func (o TargetGroupInstanceAttachmentOutput) ToTargetGroupInstanceAttachmentOutputWithContext(ctx context.Context) TargetGroupInstanceAttachmentOutput

func (TargetGroupInstanceAttachmentOutput) Weight

The weight of the target group instance.

type TargetGroupInstanceAttachmentState

type TargetGroupInstanceAttachmentState struct {
	// The Intranet IP of the target group instance.
	BindIp pulumi.StringPtrInput
	// Port of the target group instance.
	Port pulumi.IntPtrInput
	// Target group ID.
	TargetGroupId pulumi.StringPtrInput
	// The weight of the target group instance.
	Weight pulumi.IntPtrInput
}

func (TargetGroupInstanceAttachmentState) ElementType

type TargetGroupMap

type TargetGroupMap map[string]TargetGroupInput

func (TargetGroupMap) ElementType

func (TargetGroupMap) ElementType() reflect.Type

func (TargetGroupMap) ToTargetGroupMapOutput

func (i TargetGroupMap) ToTargetGroupMapOutput() TargetGroupMapOutput

func (TargetGroupMap) ToTargetGroupMapOutputWithContext

func (i TargetGroupMap) ToTargetGroupMapOutputWithContext(ctx context.Context) TargetGroupMapOutput

type TargetGroupMapInput

type TargetGroupMapInput interface {
	pulumi.Input

	ToTargetGroupMapOutput() TargetGroupMapOutput
	ToTargetGroupMapOutputWithContext(context.Context) TargetGroupMapOutput
}

TargetGroupMapInput is an input type that accepts TargetGroupMap and TargetGroupMapOutput values. You can construct a concrete instance of `TargetGroupMapInput` via:

TargetGroupMap{ "key": TargetGroupArgs{...} }

type TargetGroupMapOutput

type TargetGroupMapOutput struct{ *pulumi.OutputState }

func (TargetGroupMapOutput) ElementType

func (TargetGroupMapOutput) ElementType() reflect.Type

func (TargetGroupMapOutput) MapIndex

func (TargetGroupMapOutput) ToTargetGroupMapOutput

func (o TargetGroupMapOutput) ToTargetGroupMapOutput() TargetGroupMapOutput

func (TargetGroupMapOutput) ToTargetGroupMapOutputWithContext

func (o TargetGroupMapOutput) ToTargetGroupMapOutputWithContext(ctx context.Context) TargetGroupMapOutput

type TargetGroupOutput

type TargetGroupOutput struct{ *pulumi.OutputState }

func (TargetGroupOutput) ElementType

func (TargetGroupOutput) ElementType() reflect.Type

func (TargetGroupOutput) Port

The default port of target group, add server after can use it.

func (TargetGroupOutput) TargetGroupInstances

The backend server of target group bind.

func (TargetGroupOutput) TargetGroupName

func (o TargetGroupOutput) TargetGroupName() pulumi.StringPtrOutput

Target group name.

func (TargetGroupOutput) ToTargetGroupOutput

func (o TargetGroupOutput) ToTargetGroupOutput() TargetGroupOutput

func (TargetGroupOutput) ToTargetGroupOutputWithContext

func (o TargetGroupOutput) ToTargetGroupOutputWithContext(ctx context.Context) TargetGroupOutput

func (TargetGroupOutput) VpcId

VPC ID, default is based on the network.

type TargetGroupState

type TargetGroupState struct {
	// The default port of target group, add server after can use it.
	Port pulumi.IntPtrInput
	// The backend server of target group bind.
	TargetGroupInstances TargetGroupTargetGroupInstanceArrayInput
	// Target group name.
	TargetGroupName pulumi.StringPtrInput
	// VPC ID, default is based on the network.
	VpcId pulumi.StringPtrInput
}

func (TargetGroupState) ElementType

func (TargetGroupState) ElementType() reflect.Type

type TargetGroupTargetGroupInstance

type TargetGroupTargetGroupInstance struct {
	// The internal ip of target group instance.
	BindIp string `pulumi:"bindIp"`
	// The new port of target group instance.
	NewPort *int `pulumi:"newPort"`
	// The port of target group instance.
	Port int `pulumi:"port"`
	// The weight of target group instance.
	Weight *int `pulumi:"weight"`
}

type TargetGroupTargetGroupInstanceArgs

type TargetGroupTargetGroupInstanceArgs struct {
	// The internal ip of target group instance.
	BindIp pulumi.StringInput `pulumi:"bindIp"`
	// The new port of target group instance.
	NewPort pulumi.IntPtrInput `pulumi:"newPort"`
	// The port of target group instance.
	Port pulumi.IntInput `pulumi:"port"`
	// The weight of target group instance.
	Weight pulumi.IntPtrInput `pulumi:"weight"`
}

func (TargetGroupTargetGroupInstanceArgs) ElementType

func (TargetGroupTargetGroupInstanceArgs) ToTargetGroupTargetGroupInstanceOutput

func (i TargetGroupTargetGroupInstanceArgs) ToTargetGroupTargetGroupInstanceOutput() TargetGroupTargetGroupInstanceOutput

func (TargetGroupTargetGroupInstanceArgs) ToTargetGroupTargetGroupInstanceOutputWithContext

func (i TargetGroupTargetGroupInstanceArgs) ToTargetGroupTargetGroupInstanceOutputWithContext(ctx context.Context) TargetGroupTargetGroupInstanceOutput

type TargetGroupTargetGroupInstanceArray

type TargetGroupTargetGroupInstanceArray []TargetGroupTargetGroupInstanceInput

func (TargetGroupTargetGroupInstanceArray) ElementType

func (TargetGroupTargetGroupInstanceArray) ToTargetGroupTargetGroupInstanceArrayOutput

func (i TargetGroupTargetGroupInstanceArray) ToTargetGroupTargetGroupInstanceArrayOutput() TargetGroupTargetGroupInstanceArrayOutput

func (TargetGroupTargetGroupInstanceArray) ToTargetGroupTargetGroupInstanceArrayOutputWithContext

func (i TargetGroupTargetGroupInstanceArray) ToTargetGroupTargetGroupInstanceArrayOutputWithContext(ctx context.Context) TargetGroupTargetGroupInstanceArrayOutput

type TargetGroupTargetGroupInstanceArrayInput

type TargetGroupTargetGroupInstanceArrayInput interface {
	pulumi.Input

	ToTargetGroupTargetGroupInstanceArrayOutput() TargetGroupTargetGroupInstanceArrayOutput
	ToTargetGroupTargetGroupInstanceArrayOutputWithContext(context.Context) TargetGroupTargetGroupInstanceArrayOutput
}

TargetGroupTargetGroupInstanceArrayInput is an input type that accepts TargetGroupTargetGroupInstanceArray and TargetGroupTargetGroupInstanceArrayOutput values. You can construct a concrete instance of `TargetGroupTargetGroupInstanceArrayInput` via:

TargetGroupTargetGroupInstanceArray{ TargetGroupTargetGroupInstanceArgs{...} }

type TargetGroupTargetGroupInstanceArrayOutput

type TargetGroupTargetGroupInstanceArrayOutput struct{ *pulumi.OutputState }

func (TargetGroupTargetGroupInstanceArrayOutput) ElementType

func (TargetGroupTargetGroupInstanceArrayOutput) Index

func (TargetGroupTargetGroupInstanceArrayOutput) ToTargetGroupTargetGroupInstanceArrayOutput

func (o TargetGroupTargetGroupInstanceArrayOutput) ToTargetGroupTargetGroupInstanceArrayOutput() TargetGroupTargetGroupInstanceArrayOutput

func (TargetGroupTargetGroupInstanceArrayOutput) ToTargetGroupTargetGroupInstanceArrayOutputWithContext

func (o TargetGroupTargetGroupInstanceArrayOutput) ToTargetGroupTargetGroupInstanceArrayOutputWithContext(ctx context.Context) TargetGroupTargetGroupInstanceArrayOutput

type TargetGroupTargetGroupInstanceInput

type TargetGroupTargetGroupInstanceInput interface {
	pulumi.Input

	ToTargetGroupTargetGroupInstanceOutput() TargetGroupTargetGroupInstanceOutput
	ToTargetGroupTargetGroupInstanceOutputWithContext(context.Context) TargetGroupTargetGroupInstanceOutput
}

TargetGroupTargetGroupInstanceInput is an input type that accepts TargetGroupTargetGroupInstanceArgs and TargetGroupTargetGroupInstanceOutput values. You can construct a concrete instance of `TargetGroupTargetGroupInstanceInput` via:

TargetGroupTargetGroupInstanceArgs{...}

type TargetGroupTargetGroupInstanceOutput

type TargetGroupTargetGroupInstanceOutput struct{ *pulumi.OutputState }

func (TargetGroupTargetGroupInstanceOutput) BindIp

The internal ip of target group instance.

func (TargetGroupTargetGroupInstanceOutput) ElementType

func (TargetGroupTargetGroupInstanceOutput) NewPort

The new port of target group instance.

func (TargetGroupTargetGroupInstanceOutput) Port

The port of target group instance.

func (TargetGroupTargetGroupInstanceOutput) ToTargetGroupTargetGroupInstanceOutput

func (o TargetGroupTargetGroupInstanceOutput) ToTargetGroupTargetGroupInstanceOutput() TargetGroupTargetGroupInstanceOutput

func (TargetGroupTargetGroupInstanceOutput) ToTargetGroupTargetGroupInstanceOutputWithContext

func (o TargetGroupTargetGroupInstanceOutput) ToTargetGroupTargetGroupInstanceOutputWithContext(ctx context.Context) TargetGroupTargetGroupInstanceOutput

func (TargetGroupTargetGroupInstanceOutput) Weight

The weight of target group instance.

Jump to

Keyboard shortcuts

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