cen

package
v2.39.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 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 BandwidthLimit

type BandwidthLimit struct {
	pulumi.CustomResourceState

	// The bandwidth configured for the interconnected regions communication.
	BandwidthLimit pulumi.IntOutput `pulumi:"bandwidthLimit"`
	// The ID of the CEN.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// List of the two regions to interconnect. Must be two different regions.
	RegionIds pulumi.StringArrayOutput `pulumi:"regionIds"`
}

Provides a CEN cross-regional interconnection bandwidth resource. To connect networks in different regions, you must set cross-region interconnection bandwidth after buying a bandwidth package. The total bandwidth set for all the interconnected regions of a bandwidth package cannot exceed the bandwidth of the bandwidth package. By default, 1 Kbps bandwidth is provided for connectivity test. To run normal business, you must buy a bandwidth package and set a proper interconnection bandwidth.

For example, a CEN instance is bound to a bandwidth package of 20 Mbps and the interconnection areas are Mainland China and North America. You can set the cross-region interconnection bandwidth between US West 1 and China East 1, China East 2, China South 1, and so on. However, the total bandwidth set for all the interconnected regions cannot exceed 20 Mbps.

For information about CEN and how to use it, see [Cross-region interconnection bandwidth](https://www.alibabacloud.com/help/doc-detail/65983.htm)

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/providers"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-testAccCenBandwidthLimitConfig"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := providers.Newalicloud(ctx, "fra", &providers.alicloudArgs{
			Region: pulumi.String("eu-central-1"),
		})
		if err != nil {
			return err
		}
		_, err = providers.Newalicloud(ctx, "sh", &providers.alicloudArgs{
			Region: pulumi.String("cn-shanghai"),
		})
		if err != nil {
			return err
		}
		vpc1, err := vpc.NewNetwork(ctx, "vpc1", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("192.168.0.0/16"),
		}, pulumi.Provider(alicloud.Fra))
		if err != nil {
			return err
		}
		vpc2, err := vpc.NewNetwork(ctx, "vpc2", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("172.16.0.0/12"),
		}, pulumi.Provider(alicloud.Sh))
		if err != nil {
			return err
		}
		cen, err := cen.NewInstance(ctx, "cen", &cen.InstanceArgs{
			Description: pulumi.String("tf-testAccCenBandwidthLimitConfigDescription"),
		})
		if err != nil {
			return err
		}
		bwp, err := cen.NewBandwidthPackage(ctx, "bwp", &cen.BandwidthPackageArgs{
			Bandwidth: pulumi.Int(5),
			GeographicRegionIds: pulumi.StringArray{
				pulumi.String("Europe"),
				pulumi.String("China"),
			},
		})
		if err != nil {
			return err
		}
		bwpAttach, err := cen.NewBandwidthPackageAttachment(ctx, "bwpAttach", &cen.BandwidthPackageAttachmentArgs{
			InstanceId:         cen.ID(),
			BandwidthPackageId: bwp.ID(),
		})
		if err != nil {
			return err
		}
		vpcAttach1, err := cen.NewInstanceAttachment(ctx, "vpcAttach1", &cen.InstanceAttachmentArgs{
			InstanceId:            cen.ID(),
			ChildInstanceId:       vpc1.ID(),
			ChildInstanceType:     pulumi.String("VPC"),
			ChildInstanceRegionId: pulumi.String("eu-central-1"),
		})
		if err != nil {
			return err
		}
		vpcAttach2, err := cen.NewInstanceAttachment(ctx, "vpcAttach2", &cen.InstanceAttachmentArgs{
			InstanceId:            cen.ID(),
			ChildInstanceId:       vpc2.ID(),
			ChildInstanceType:     pulumi.String("VPC"),
			ChildInstanceRegionId: pulumi.String("cn-shanghai"),
		})
		if err != nil {
			return err
		}
		_, err = cen.NewBandwidthLimit(ctx, "foo", &cen.BandwidthLimitArgs{
			InstanceId: cen.ID(),
			RegionIds: pulumi.StringArray{
				pulumi.String("eu-central-1"),
				pulumi.String("cn-shanghai"),
			},
			BandwidthLimit: pulumi.Int(4),
		}, pulumi.DependsOn([]pulumi.Resource{
			bwpAttach,
			vpcAttach1,
			vpcAttach2,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CEN bandwidth limit can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/bandwidthLimit:BandwidthLimit example cen-abc123456:cn-beijing:eu-west-1

```

func GetBandwidthLimit

func GetBandwidthLimit(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BandwidthLimitState, opts ...pulumi.ResourceOption) (*BandwidthLimit, error)

GetBandwidthLimit gets an existing BandwidthLimit 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 NewBandwidthLimit

func NewBandwidthLimit(ctx *pulumi.Context,
	name string, args *BandwidthLimitArgs, opts ...pulumi.ResourceOption) (*BandwidthLimit, error)

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

func (*BandwidthLimit) ElementType added in v2.25.1

func (*BandwidthLimit) ElementType() reflect.Type

func (*BandwidthLimit) ToBandwidthLimitOutput added in v2.25.1

func (i *BandwidthLimit) ToBandwidthLimitOutput() BandwidthLimitOutput

func (*BandwidthLimit) ToBandwidthLimitOutputWithContext added in v2.25.1

func (i *BandwidthLimit) ToBandwidthLimitOutputWithContext(ctx context.Context) BandwidthLimitOutput

func (*BandwidthLimit) ToBandwidthLimitPtrOutput added in v2.35.1

func (i *BandwidthLimit) ToBandwidthLimitPtrOutput() BandwidthLimitPtrOutput

func (*BandwidthLimit) ToBandwidthLimitPtrOutputWithContext added in v2.35.1

func (i *BandwidthLimit) ToBandwidthLimitPtrOutputWithContext(ctx context.Context) BandwidthLimitPtrOutput

type BandwidthLimitArgs

type BandwidthLimitArgs struct {
	// The bandwidth configured for the interconnected regions communication.
	BandwidthLimit pulumi.IntInput
	// The ID of the CEN.
	InstanceId pulumi.StringInput
	// List of the two regions to interconnect. Must be two different regions.
	RegionIds pulumi.StringArrayInput
}

The set of arguments for constructing a BandwidthLimit resource.

func (BandwidthLimitArgs) ElementType

func (BandwidthLimitArgs) ElementType() reflect.Type

type BandwidthLimitArray added in v2.35.1

type BandwidthLimitArray []BandwidthLimitInput

func (BandwidthLimitArray) ElementType added in v2.35.1

func (BandwidthLimitArray) ElementType() reflect.Type

func (BandwidthLimitArray) ToBandwidthLimitArrayOutput added in v2.35.1

func (i BandwidthLimitArray) ToBandwidthLimitArrayOutput() BandwidthLimitArrayOutput

func (BandwidthLimitArray) ToBandwidthLimitArrayOutputWithContext added in v2.35.1

func (i BandwidthLimitArray) ToBandwidthLimitArrayOutputWithContext(ctx context.Context) BandwidthLimitArrayOutput

type BandwidthLimitArrayInput added in v2.35.1

type BandwidthLimitArrayInput interface {
	pulumi.Input

	ToBandwidthLimitArrayOutput() BandwidthLimitArrayOutput
	ToBandwidthLimitArrayOutputWithContext(context.Context) BandwidthLimitArrayOutput
}

BandwidthLimitArrayInput is an input type that accepts BandwidthLimitArray and BandwidthLimitArrayOutput values. You can construct a concrete instance of `BandwidthLimitArrayInput` via:

BandwidthLimitArray{ BandwidthLimitArgs{...} }

type BandwidthLimitArrayOutput added in v2.35.1

type BandwidthLimitArrayOutput struct{ *pulumi.OutputState }

func (BandwidthLimitArrayOutput) ElementType added in v2.35.1

func (BandwidthLimitArrayOutput) ElementType() reflect.Type

func (BandwidthLimitArrayOutput) Index added in v2.35.1

func (BandwidthLimitArrayOutput) ToBandwidthLimitArrayOutput added in v2.35.1

func (o BandwidthLimitArrayOutput) ToBandwidthLimitArrayOutput() BandwidthLimitArrayOutput

func (BandwidthLimitArrayOutput) ToBandwidthLimitArrayOutputWithContext added in v2.35.1

func (o BandwidthLimitArrayOutput) ToBandwidthLimitArrayOutputWithContext(ctx context.Context) BandwidthLimitArrayOutput

type BandwidthLimitInput added in v2.25.1

type BandwidthLimitInput interface {
	pulumi.Input

	ToBandwidthLimitOutput() BandwidthLimitOutput
	ToBandwidthLimitOutputWithContext(ctx context.Context) BandwidthLimitOutput
}

type BandwidthLimitMap added in v2.35.1

type BandwidthLimitMap map[string]BandwidthLimitInput

func (BandwidthLimitMap) ElementType added in v2.35.1

func (BandwidthLimitMap) ElementType() reflect.Type

func (BandwidthLimitMap) ToBandwidthLimitMapOutput added in v2.35.1

func (i BandwidthLimitMap) ToBandwidthLimitMapOutput() BandwidthLimitMapOutput

func (BandwidthLimitMap) ToBandwidthLimitMapOutputWithContext added in v2.35.1

func (i BandwidthLimitMap) ToBandwidthLimitMapOutputWithContext(ctx context.Context) BandwidthLimitMapOutput

type BandwidthLimitMapInput added in v2.35.1

type BandwidthLimitMapInput interface {
	pulumi.Input

	ToBandwidthLimitMapOutput() BandwidthLimitMapOutput
	ToBandwidthLimitMapOutputWithContext(context.Context) BandwidthLimitMapOutput
}

BandwidthLimitMapInput is an input type that accepts BandwidthLimitMap and BandwidthLimitMapOutput values. You can construct a concrete instance of `BandwidthLimitMapInput` via:

BandwidthLimitMap{ "key": BandwidthLimitArgs{...} }

type BandwidthLimitMapOutput added in v2.35.1

type BandwidthLimitMapOutput struct{ *pulumi.OutputState }

func (BandwidthLimitMapOutput) ElementType added in v2.35.1

func (BandwidthLimitMapOutput) ElementType() reflect.Type

func (BandwidthLimitMapOutput) MapIndex added in v2.35.1

func (BandwidthLimitMapOutput) ToBandwidthLimitMapOutput added in v2.35.1

func (o BandwidthLimitMapOutput) ToBandwidthLimitMapOutput() BandwidthLimitMapOutput

func (BandwidthLimitMapOutput) ToBandwidthLimitMapOutputWithContext added in v2.35.1

func (o BandwidthLimitMapOutput) ToBandwidthLimitMapOutputWithContext(ctx context.Context) BandwidthLimitMapOutput

type BandwidthLimitOutput added in v2.25.1

type BandwidthLimitOutput struct {
	*pulumi.OutputState
}

func (BandwidthLimitOutput) ElementType added in v2.25.1

func (BandwidthLimitOutput) ElementType() reflect.Type

func (BandwidthLimitOutput) ToBandwidthLimitOutput added in v2.25.1

func (o BandwidthLimitOutput) ToBandwidthLimitOutput() BandwidthLimitOutput

func (BandwidthLimitOutput) ToBandwidthLimitOutputWithContext added in v2.25.1

func (o BandwidthLimitOutput) ToBandwidthLimitOutputWithContext(ctx context.Context) BandwidthLimitOutput

func (BandwidthLimitOutput) ToBandwidthLimitPtrOutput added in v2.35.1

func (o BandwidthLimitOutput) ToBandwidthLimitPtrOutput() BandwidthLimitPtrOutput

func (BandwidthLimitOutput) ToBandwidthLimitPtrOutputWithContext added in v2.35.1

func (o BandwidthLimitOutput) ToBandwidthLimitPtrOutputWithContext(ctx context.Context) BandwidthLimitPtrOutput

type BandwidthLimitPtrInput added in v2.35.1

type BandwidthLimitPtrInput interface {
	pulumi.Input

	ToBandwidthLimitPtrOutput() BandwidthLimitPtrOutput
	ToBandwidthLimitPtrOutputWithContext(ctx context.Context) BandwidthLimitPtrOutput
}

type BandwidthLimitPtrOutput added in v2.35.1

type BandwidthLimitPtrOutput struct {
	*pulumi.OutputState
}

func (BandwidthLimitPtrOutput) ElementType added in v2.35.1

func (BandwidthLimitPtrOutput) ElementType() reflect.Type

func (BandwidthLimitPtrOutput) ToBandwidthLimitPtrOutput added in v2.35.1

func (o BandwidthLimitPtrOutput) ToBandwidthLimitPtrOutput() BandwidthLimitPtrOutput

func (BandwidthLimitPtrOutput) ToBandwidthLimitPtrOutputWithContext added in v2.35.1

func (o BandwidthLimitPtrOutput) ToBandwidthLimitPtrOutputWithContext(ctx context.Context) BandwidthLimitPtrOutput

type BandwidthLimitState

type BandwidthLimitState struct {
	// The bandwidth configured for the interconnected regions communication.
	BandwidthLimit pulumi.IntPtrInput
	// The ID of the CEN.
	InstanceId pulumi.StringPtrInput
	// List of the two regions to interconnect. Must be two different regions.
	RegionIds pulumi.StringArrayInput
}

func (BandwidthLimitState) ElementType

func (BandwidthLimitState) ElementType() reflect.Type

type BandwidthPackage

type BandwidthPackage struct {
	pulumi.CustomResourceState

	// The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
	Bandwidth pulumi.IntOutput `pulumi:"bandwidth"`
	// The name of the bandwidth package. Defaults to null.
	CenBandwidthPackageName pulumi.StringOutput `pulumi:"cenBandwidthPackageName"`
	// Field `chargeType` has been deprecated from version 1.97.0. Use `paymentType` and instead.
	//
	// Deprecated: Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.
	ChargeType pulumi.StringOutput `pulumi:"chargeType"`
	// The description of the bandwidth package. Default to null.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The time of the bandwidth package to expire.
	ExpiredTime pulumi.StringOutput `pulumi:"expiredTime"`
	// The area A to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
	GeographicRegionAId pulumi.StringOutput `pulumi:"geographicRegionAId"`
	// The area B to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
	GeographicRegionBId pulumi.StringOutput `pulumi:"geographicRegionBId"`
	// Field `geographicRegionIds` has been deprecated from version 1.97.0. Use `geographicRegionAId` and `geographicRegionBId` instead.
	//
	// Deprecated: Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.
	GeographicRegionIds pulumi.StringArrayOutput `pulumi:"geographicRegionIds"`
	// Field 'name' has been deprecated from version 1.97.0. Use `cenBandwidthPackageName` and instead.
	//
	// Deprecated: Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.
	Name pulumi.StringOutput `pulumi:"name"`
	// The billing method. Valid value: `PostPaid` | `PrePaid`. Default to `PostPaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// The purchase period in month. Valid value: `1`, `2`, `3`, `6`, `12`. Default to `1`.
	Period pulumi.IntPtrOutput `pulumi:"period"`
	// The association status of the bandwidth package.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a CEN bandwidth package resource. The CEN bandwidth package is an abstracted object that includes an interconnection bandwidth and interconnection areas. To buy a bandwidth package, you must specify the areas to connect. An area consists of one or more Alibaba Cloud regions. The areas in CEN include Mainland China, Asia Pacific, North America, and Europe.

For information about CEN and how to use it, see [Manage bandwidth packages](https://www.alibabacloud.com/help/doc-detail/65982.htm).

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cen.NewBandwidthPackage(ctx, "example", &cen.BandwidthPackageArgs{
			Bandwidth:               pulumi.Int(5),
			CenBandwidthPackageName: pulumi.String("tf-testAccCenBandwidthPackageConfig"),
			GeographicRegionAId:     pulumi.String("China"),
			GeographicRegionBId:     pulumi.String("China"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CEN bandwidth package can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/bandwidthPackage:BandwidthPackage example cenbwp-abc123456

```

func GetBandwidthPackage

func GetBandwidthPackage(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BandwidthPackageState, opts ...pulumi.ResourceOption) (*BandwidthPackage, error)

GetBandwidthPackage gets an existing BandwidthPackage 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 NewBandwidthPackage

func NewBandwidthPackage(ctx *pulumi.Context,
	name string, args *BandwidthPackageArgs, opts ...pulumi.ResourceOption) (*BandwidthPackage, error)

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

func (*BandwidthPackage) ElementType added in v2.25.1

func (*BandwidthPackage) ElementType() reflect.Type

func (*BandwidthPackage) ToBandwidthPackageOutput added in v2.25.1

func (i *BandwidthPackage) ToBandwidthPackageOutput() BandwidthPackageOutput

func (*BandwidthPackage) ToBandwidthPackageOutputWithContext added in v2.25.1

func (i *BandwidthPackage) ToBandwidthPackageOutputWithContext(ctx context.Context) BandwidthPackageOutput

func (*BandwidthPackage) ToBandwidthPackagePtrOutput added in v2.35.1

func (i *BandwidthPackage) ToBandwidthPackagePtrOutput() BandwidthPackagePtrOutput

func (*BandwidthPackage) ToBandwidthPackagePtrOutputWithContext added in v2.35.1

func (i *BandwidthPackage) ToBandwidthPackagePtrOutputWithContext(ctx context.Context) BandwidthPackagePtrOutput

type BandwidthPackageArgs

type BandwidthPackageArgs struct {
	// The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
	Bandwidth pulumi.IntInput
	// The name of the bandwidth package. Defaults to null.
	CenBandwidthPackageName pulumi.StringPtrInput
	// Field `chargeType` has been deprecated from version 1.97.0. Use `paymentType` and instead.
	//
	// Deprecated: Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.
	ChargeType pulumi.StringPtrInput
	// The description of the bandwidth package. Default to null.
	Description pulumi.StringPtrInput
	// The area A to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
	GeographicRegionAId pulumi.StringPtrInput
	// The area B to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
	GeographicRegionBId pulumi.StringPtrInput
	// Field `geographicRegionIds` has been deprecated from version 1.97.0. Use `geographicRegionAId` and `geographicRegionBId` instead.
	//
	// Deprecated: Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.
	GeographicRegionIds pulumi.StringArrayInput
	// Field 'name' has been deprecated from version 1.97.0. Use `cenBandwidthPackageName` and instead.
	//
	// Deprecated: Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.
	Name pulumi.StringPtrInput
	// The billing method. Valid value: `PostPaid` | `PrePaid`. Default to `PostPaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.
	PaymentType pulumi.StringPtrInput
	// The purchase period in month. Valid value: `1`, `2`, `3`, `6`, `12`. Default to `1`.
	Period pulumi.IntPtrInput
}

The set of arguments for constructing a BandwidthPackage resource.

func (BandwidthPackageArgs) ElementType

func (BandwidthPackageArgs) ElementType() reflect.Type

type BandwidthPackageArray added in v2.35.1

type BandwidthPackageArray []BandwidthPackageInput

func (BandwidthPackageArray) ElementType added in v2.35.1

func (BandwidthPackageArray) ElementType() reflect.Type

func (BandwidthPackageArray) ToBandwidthPackageArrayOutput added in v2.35.1

func (i BandwidthPackageArray) ToBandwidthPackageArrayOutput() BandwidthPackageArrayOutput

func (BandwidthPackageArray) ToBandwidthPackageArrayOutputWithContext added in v2.35.1

func (i BandwidthPackageArray) ToBandwidthPackageArrayOutputWithContext(ctx context.Context) BandwidthPackageArrayOutput

type BandwidthPackageArrayInput added in v2.35.1

type BandwidthPackageArrayInput interface {
	pulumi.Input

	ToBandwidthPackageArrayOutput() BandwidthPackageArrayOutput
	ToBandwidthPackageArrayOutputWithContext(context.Context) BandwidthPackageArrayOutput
}

BandwidthPackageArrayInput is an input type that accepts BandwidthPackageArray and BandwidthPackageArrayOutput values. You can construct a concrete instance of `BandwidthPackageArrayInput` via:

BandwidthPackageArray{ BandwidthPackageArgs{...} }

type BandwidthPackageArrayOutput added in v2.35.1

type BandwidthPackageArrayOutput struct{ *pulumi.OutputState }

func (BandwidthPackageArrayOutput) ElementType added in v2.35.1

func (BandwidthPackageArrayOutput) Index added in v2.35.1

func (BandwidthPackageArrayOutput) ToBandwidthPackageArrayOutput added in v2.35.1

func (o BandwidthPackageArrayOutput) ToBandwidthPackageArrayOutput() BandwidthPackageArrayOutput

func (BandwidthPackageArrayOutput) ToBandwidthPackageArrayOutputWithContext added in v2.35.1

func (o BandwidthPackageArrayOutput) ToBandwidthPackageArrayOutputWithContext(ctx context.Context) BandwidthPackageArrayOutput

type BandwidthPackageAttachment

type BandwidthPackageAttachment struct {
	pulumi.CustomResourceState

	// The ID of the bandwidth package.
	BandwidthPackageId pulumi.StringOutput `pulumi:"bandwidthPackageId"`
	// The ID of the CEN.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
}

Provides a CEN bandwidth package attachment resource. The resource can be used to bind a bandwidth package to a specified CEN instance.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cen, err := cen.NewInstance(ctx, "cen", &cen.InstanceArgs{
			Description: pulumi.String("tf-testAccCenBandwidthPackageAttachmentDescription"),
		})
		if err != nil {
			return err
		}
		bwp, err := cen.NewBandwidthPackage(ctx, "bwp", &cen.BandwidthPackageArgs{
			Bandwidth: pulumi.Int(20),
			GeographicRegionIds: pulumi.StringArray{
				pulumi.String("China"),
				pulumi.String("Asia-Pacific"),
			},
		})
		if err != nil {
			return err
		}
		_, err = cen.NewBandwidthPackageAttachment(ctx, "foo", &cen.BandwidthPackageAttachmentArgs{
			InstanceId:         cen.ID(),
			BandwidthPackageId: bwp.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CEN bandwidth package attachment resource can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/bandwidthPackageAttachment:BandwidthPackageAttachment example bwp-abc123456

```

func GetBandwidthPackageAttachment

func GetBandwidthPackageAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *BandwidthPackageAttachmentState, opts ...pulumi.ResourceOption) (*BandwidthPackageAttachment, error)

GetBandwidthPackageAttachment gets an existing BandwidthPackageAttachment 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 NewBandwidthPackageAttachment

func NewBandwidthPackageAttachment(ctx *pulumi.Context,
	name string, args *BandwidthPackageAttachmentArgs, opts ...pulumi.ResourceOption) (*BandwidthPackageAttachment, error)

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

func (*BandwidthPackageAttachment) ElementType added in v2.25.1

func (*BandwidthPackageAttachment) ElementType() reflect.Type

func (*BandwidthPackageAttachment) ToBandwidthPackageAttachmentOutput added in v2.25.1

func (i *BandwidthPackageAttachment) ToBandwidthPackageAttachmentOutput() BandwidthPackageAttachmentOutput

func (*BandwidthPackageAttachment) ToBandwidthPackageAttachmentOutputWithContext added in v2.25.1

func (i *BandwidthPackageAttachment) ToBandwidthPackageAttachmentOutputWithContext(ctx context.Context) BandwidthPackageAttachmentOutput

func (*BandwidthPackageAttachment) ToBandwidthPackageAttachmentPtrOutput added in v2.35.1

func (i *BandwidthPackageAttachment) ToBandwidthPackageAttachmentPtrOutput() BandwidthPackageAttachmentPtrOutput

func (*BandwidthPackageAttachment) ToBandwidthPackageAttachmentPtrOutputWithContext added in v2.35.1

func (i *BandwidthPackageAttachment) ToBandwidthPackageAttachmentPtrOutputWithContext(ctx context.Context) BandwidthPackageAttachmentPtrOutput

type BandwidthPackageAttachmentArgs

type BandwidthPackageAttachmentArgs struct {
	// The ID of the bandwidth package.
	BandwidthPackageId pulumi.StringInput
	// The ID of the CEN.
	InstanceId pulumi.StringInput
}

The set of arguments for constructing a BandwidthPackageAttachment resource.

func (BandwidthPackageAttachmentArgs) ElementType

type BandwidthPackageAttachmentArray added in v2.35.1

type BandwidthPackageAttachmentArray []BandwidthPackageAttachmentInput

func (BandwidthPackageAttachmentArray) ElementType added in v2.35.1

func (BandwidthPackageAttachmentArray) ToBandwidthPackageAttachmentArrayOutput added in v2.35.1

func (i BandwidthPackageAttachmentArray) ToBandwidthPackageAttachmentArrayOutput() BandwidthPackageAttachmentArrayOutput

func (BandwidthPackageAttachmentArray) ToBandwidthPackageAttachmentArrayOutputWithContext added in v2.35.1

func (i BandwidthPackageAttachmentArray) ToBandwidthPackageAttachmentArrayOutputWithContext(ctx context.Context) BandwidthPackageAttachmentArrayOutput

type BandwidthPackageAttachmentArrayInput added in v2.35.1

type BandwidthPackageAttachmentArrayInput interface {
	pulumi.Input

	ToBandwidthPackageAttachmentArrayOutput() BandwidthPackageAttachmentArrayOutput
	ToBandwidthPackageAttachmentArrayOutputWithContext(context.Context) BandwidthPackageAttachmentArrayOutput
}

BandwidthPackageAttachmentArrayInput is an input type that accepts BandwidthPackageAttachmentArray and BandwidthPackageAttachmentArrayOutput values. You can construct a concrete instance of `BandwidthPackageAttachmentArrayInput` via:

BandwidthPackageAttachmentArray{ BandwidthPackageAttachmentArgs{...} }

type BandwidthPackageAttachmentArrayOutput added in v2.35.1

type BandwidthPackageAttachmentArrayOutput struct{ *pulumi.OutputState }

func (BandwidthPackageAttachmentArrayOutput) ElementType added in v2.35.1

func (BandwidthPackageAttachmentArrayOutput) Index added in v2.35.1

func (BandwidthPackageAttachmentArrayOutput) ToBandwidthPackageAttachmentArrayOutput added in v2.35.1

func (o BandwidthPackageAttachmentArrayOutput) ToBandwidthPackageAttachmentArrayOutput() BandwidthPackageAttachmentArrayOutput

func (BandwidthPackageAttachmentArrayOutput) ToBandwidthPackageAttachmentArrayOutputWithContext added in v2.35.1

func (o BandwidthPackageAttachmentArrayOutput) ToBandwidthPackageAttachmentArrayOutputWithContext(ctx context.Context) BandwidthPackageAttachmentArrayOutput

type BandwidthPackageAttachmentInput added in v2.25.1

type BandwidthPackageAttachmentInput interface {
	pulumi.Input

	ToBandwidthPackageAttachmentOutput() BandwidthPackageAttachmentOutput
	ToBandwidthPackageAttachmentOutputWithContext(ctx context.Context) BandwidthPackageAttachmentOutput
}

type BandwidthPackageAttachmentMap added in v2.35.1

type BandwidthPackageAttachmentMap map[string]BandwidthPackageAttachmentInput

func (BandwidthPackageAttachmentMap) ElementType added in v2.35.1

func (BandwidthPackageAttachmentMap) ToBandwidthPackageAttachmentMapOutput added in v2.35.1

func (i BandwidthPackageAttachmentMap) ToBandwidthPackageAttachmentMapOutput() BandwidthPackageAttachmentMapOutput

func (BandwidthPackageAttachmentMap) ToBandwidthPackageAttachmentMapOutputWithContext added in v2.35.1

func (i BandwidthPackageAttachmentMap) ToBandwidthPackageAttachmentMapOutputWithContext(ctx context.Context) BandwidthPackageAttachmentMapOutput

type BandwidthPackageAttachmentMapInput added in v2.35.1

type BandwidthPackageAttachmentMapInput interface {
	pulumi.Input

	ToBandwidthPackageAttachmentMapOutput() BandwidthPackageAttachmentMapOutput
	ToBandwidthPackageAttachmentMapOutputWithContext(context.Context) BandwidthPackageAttachmentMapOutput
}

BandwidthPackageAttachmentMapInput is an input type that accepts BandwidthPackageAttachmentMap and BandwidthPackageAttachmentMapOutput values. You can construct a concrete instance of `BandwidthPackageAttachmentMapInput` via:

BandwidthPackageAttachmentMap{ "key": BandwidthPackageAttachmentArgs{...} }

type BandwidthPackageAttachmentMapOutput added in v2.35.1

type BandwidthPackageAttachmentMapOutput struct{ *pulumi.OutputState }

func (BandwidthPackageAttachmentMapOutput) ElementType added in v2.35.1

func (BandwidthPackageAttachmentMapOutput) MapIndex added in v2.35.1

func (BandwidthPackageAttachmentMapOutput) ToBandwidthPackageAttachmentMapOutput added in v2.35.1

func (o BandwidthPackageAttachmentMapOutput) ToBandwidthPackageAttachmentMapOutput() BandwidthPackageAttachmentMapOutput

func (BandwidthPackageAttachmentMapOutput) ToBandwidthPackageAttachmentMapOutputWithContext added in v2.35.1

func (o BandwidthPackageAttachmentMapOutput) ToBandwidthPackageAttachmentMapOutputWithContext(ctx context.Context) BandwidthPackageAttachmentMapOutput

type BandwidthPackageAttachmentOutput added in v2.25.1

type BandwidthPackageAttachmentOutput struct {
	*pulumi.OutputState
}

func (BandwidthPackageAttachmentOutput) ElementType added in v2.25.1

func (BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentOutput added in v2.25.1

func (o BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentOutput() BandwidthPackageAttachmentOutput

func (BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentOutputWithContext added in v2.25.1

func (o BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentOutputWithContext(ctx context.Context) BandwidthPackageAttachmentOutput

func (BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentPtrOutput added in v2.35.1

func (o BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentPtrOutput() BandwidthPackageAttachmentPtrOutput

func (BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentPtrOutputWithContext added in v2.35.1

func (o BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentPtrOutputWithContext(ctx context.Context) BandwidthPackageAttachmentPtrOutput

type BandwidthPackageAttachmentPtrInput added in v2.35.1

type BandwidthPackageAttachmentPtrInput interface {
	pulumi.Input

	ToBandwidthPackageAttachmentPtrOutput() BandwidthPackageAttachmentPtrOutput
	ToBandwidthPackageAttachmentPtrOutputWithContext(ctx context.Context) BandwidthPackageAttachmentPtrOutput
}

type BandwidthPackageAttachmentPtrOutput added in v2.35.1

type BandwidthPackageAttachmentPtrOutput struct {
	*pulumi.OutputState
}

func (BandwidthPackageAttachmentPtrOutput) ElementType added in v2.35.1

func (BandwidthPackageAttachmentPtrOutput) ToBandwidthPackageAttachmentPtrOutput added in v2.35.1

func (o BandwidthPackageAttachmentPtrOutput) ToBandwidthPackageAttachmentPtrOutput() BandwidthPackageAttachmentPtrOutput

func (BandwidthPackageAttachmentPtrOutput) ToBandwidthPackageAttachmentPtrOutputWithContext added in v2.35.1

func (o BandwidthPackageAttachmentPtrOutput) ToBandwidthPackageAttachmentPtrOutputWithContext(ctx context.Context) BandwidthPackageAttachmentPtrOutput

type BandwidthPackageAttachmentState

type BandwidthPackageAttachmentState struct {
	// The ID of the bandwidth package.
	BandwidthPackageId pulumi.StringPtrInput
	// The ID of the CEN.
	InstanceId pulumi.StringPtrInput
}

func (BandwidthPackageAttachmentState) ElementType

type BandwidthPackageInput added in v2.25.1

type BandwidthPackageInput interface {
	pulumi.Input

	ToBandwidthPackageOutput() BandwidthPackageOutput
	ToBandwidthPackageOutputWithContext(ctx context.Context) BandwidthPackageOutput
}

type BandwidthPackageMap added in v2.35.1

type BandwidthPackageMap map[string]BandwidthPackageInput

func (BandwidthPackageMap) ElementType added in v2.35.1

func (BandwidthPackageMap) ElementType() reflect.Type

func (BandwidthPackageMap) ToBandwidthPackageMapOutput added in v2.35.1

func (i BandwidthPackageMap) ToBandwidthPackageMapOutput() BandwidthPackageMapOutput

func (BandwidthPackageMap) ToBandwidthPackageMapOutputWithContext added in v2.35.1

func (i BandwidthPackageMap) ToBandwidthPackageMapOutputWithContext(ctx context.Context) BandwidthPackageMapOutput

type BandwidthPackageMapInput added in v2.35.1

type BandwidthPackageMapInput interface {
	pulumi.Input

	ToBandwidthPackageMapOutput() BandwidthPackageMapOutput
	ToBandwidthPackageMapOutputWithContext(context.Context) BandwidthPackageMapOutput
}

BandwidthPackageMapInput is an input type that accepts BandwidthPackageMap and BandwidthPackageMapOutput values. You can construct a concrete instance of `BandwidthPackageMapInput` via:

BandwidthPackageMap{ "key": BandwidthPackageArgs{...} }

type BandwidthPackageMapOutput added in v2.35.1

type BandwidthPackageMapOutput struct{ *pulumi.OutputState }

func (BandwidthPackageMapOutput) ElementType added in v2.35.1

func (BandwidthPackageMapOutput) ElementType() reflect.Type

func (BandwidthPackageMapOutput) MapIndex added in v2.35.1

func (BandwidthPackageMapOutput) ToBandwidthPackageMapOutput added in v2.35.1

func (o BandwidthPackageMapOutput) ToBandwidthPackageMapOutput() BandwidthPackageMapOutput

func (BandwidthPackageMapOutput) ToBandwidthPackageMapOutputWithContext added in v2.35.1

func (o BandwidthPackageMapOutput) ToBandwidthPackageMapOutputWithContext(ctx context.Context) BandwidthPackageMapOutput

type BandwidthPackageOutput added in v2.25.1

type BandwidthPackageOutput struct {
	*pulumi.OutputState
}

func (BandwidthPackageOutput) ElementType added in v2.25.1

func (BandwidthPackageOutput) ElementType() reflect.Type

func (BandwidthPackageOutput) ToBandwidthPackageOutput added in v2.25.1

func (o BandwidthPackageOutput) ToBandwidthPackageOutput() BandwidthPackageOutput

func (BandwidthPackageOutput) ToBandwidthPackageOutputWithContext added in v2.25.1

func (o BandwidthPackageOutput) ToBandwidthPackageOutputWithContext(ctx context.Context) BandwidthPackageOutput

func (BandwidthPackageOutput) ToBandwidthPackagePtrOutput added in v2.35.1

func (o BandwidthPackageOutput) ToBandwidthPackagePtrOutput() BandwidthPackagePtrOutput

func (BandwidthPackageOutput) ToBandwidthPackagePtrOutputWithContext added in v2.35.1

func (o BandwidthPackageOutput) ToBandwidthPackagePtrOutputWithContext(ctx context.Context) BandwidthPackagePtrOutput

type BandwidthPackagePtrInput added in v2.35.1

type BandwidthPackagePtrInput interface {
	pulumi.Input

	ToBandwidthPackagePtrOutput() BandwidthPackagePtrOutput
	ToBandwidthPackagePtrOutputWithContext(ctx context.Context) BandwidthPackagePtrOutput
}

type BandwidthPackagePtrOutput added in v2.35.1

type BandwidthPackagePtrOutput struct {
	*pulumi.OutputState
}

func (BandwidthPackagePtrOutput) ElementType added in v2.35.1

func (BandwidthPackagePtrOutput) ElementType() reflect.Type

func (BandwidthPackagePtrOutput) ToBandwidthPackagePtrOutput added in v2.35.1

func (o BandwidthPackagePtrOutput) ToBandwidthPackagePtrOutput() BandwidthPackagePtrOutput

func (BandwidthPackagePtrOutput) ToBandwidthPackagePtrOutputWithContext added in v2.35.1

func (o BandwidthPackagePtrOutput) ToBandwidthPackagePtrOutputWithContext(ctx context.Context) BandwidthPackagePtrOutput

type BandwidthPackageState

type BandwidthPackageState struct {
	// The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.
	Bandwidth pulumi.IntPtrInput
	// The name of the bandwidth package. Defaults to null.
	CenBandwidthPackageName pulumi.StringPtrInput
	// Field `chargeType` has been deprecated from version 1.97.0. Use `paymentType` and instead.
	//
	// Deprecated: Field 'charge_type' has been deprecated from version 1.98.0. Use 'payment_type' and instead.
	ChargeType pulumi.StringPtrInput
	// The description of the bandwidth package. Default to null.
	Description pulumi.StringPtrInput
	// The time of the bandwidth package to expire.
	ExpiredTime pulumi.StringPtrInput
	// The area A to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
	GeographicRegionAId pulumi.StringPtrInput
	// The area B to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.
	GeographicRegionBId pulumi.StringPtrInput
	// Field `geographicRegionIds` has been deprecated from version 1.97.0. Use `geographicRegionAId` and `geographicRegionBId` instead.
	//
	// Deprecated: Field 'geographic_region_ids' has been deprecated from version 1.98.0. Use 'geographic_region_a_id' and 'geographic_region_b_id' instead.
	GeographicRegionIds pulumi.StringArrayInput
	// Field 'name' has been deprecated from version 1.97.0. Use `cenBandwidthPackageName` and instead.
	//
	// Deprecated: Field 'name' has been deprecated from version 1.98.0. Use 'cen_bandwidth_package_name' and instead.
	Name pulumi.StringPtrInput
	// The billing method. Valid value: `PostPaid` | `PrePaid`. Default to `PostPaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.
	PaymentType pulumi.StringPtrInput
	// The purchase period in month. Valid value: `1`, `2`, `3`, `6`, `12`. Default to `1`.
	Period pulumi.IntPtrInput
	// The association status of the bandwidth package.
	Status pulumi.StringPtrInput
}

func (BandwidthPackageState) ElementType

func (BandwidthPackageState) ElementType() reflect.Type

type FlowLog

type FlowLog struct {
	pulumi.CustomResourceState

	// The ID of the CEN Instance.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// The description of flowlog.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The name of flowlog.
	FlowLogName pulumi.StringPtrOutput `pulumi:"flowLogName"`
	// The name of the log store which is in the  `projectName` SLS project.
	LogStoreName pulumi.StringOutput `pulumi:"logStoreName"`
	// The name of the SLS project.
	ProjectName pulumi.StringOutput `pulumi:"projectName"`
	// The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
	Status pulumi.StringPtrOutput `pulumi:"status"`
}

This resource used to create a flow log function in Cloud Enterprise Network (CEN). By using the flow log function, you can capture the traffic data of the network instances in different regions of a CEN. You can also use the data aggregated in flow logs to analyze cross-region traffic flows, minimize traffic costs, and troubleshoot network faults.

For information about CEN flow log and how to use it, see [Manage CEN flowlog](https://www.alibabacloud.com/help/doc-detail/123006.htm).

> **NOTE:** Available in 1.73.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/log"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", nil)
		if err != nil {
			return err
		}
		defaultProject, err := log.NewProject(ctx, "defaultProject", &log.ProjectArgs{
			Description: pulumi.String("create by terraform"),
		})
		if err != nil {
			return err
		}
		defaultStore, err := log.NewStore(ctx, "defaultStore", &log.StoreArgs{
			Project:            defaultProject.Name,
			RetentionPeriod:    pulumi.Int(3650),
			ShardCount:         pulumi.Int(3),
			AutoSplit:          pulumi.Bool(true),
			MaxSplitShardCount: pulumi.Int(60),
			AppendMeta:         pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = cen.NewFlowLog(ctx, "defaultFlowLog", &cen.FlowLogArgs{
			FlowLogName:  pulumi.String("my-flowlog"),
			CenId:        defaultInstance.ID(),
			ProjectName:  defaultProject.Name,
			LogStoreName: defaultStore.Name,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CEN flowlog can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/flowLog:FlowLog default flowlog-tig1xxxxxx

```

func GetFlowLog

func GetFlowLog(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *FlowLogState, opts ...pulumi.ResourceOption) (*FlowLog, error)

GetFlowLog gets an existing FlowLog 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 NewFlowLog

func NewFlowLog(ctx *pulumi.Context,
	name string, args *FlowLogArgs, opts ...pulumi.ResourceOption) (*FlowLog, error)

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

func (*FlowLog) ElementType added in v2.25.1

func (*FlowLog) ElementType() reflect.Type

func (*FlowLog) ToFlowLogOutput added in v2.25.1

func (i *FlowLog) ToFlowLogOutput() FlowLogOutput

func (*FlowLog) ToFlowLogOutputWithContext added in v2.25.1

func (i *FlowLog) ToFlowLogOutputWithContext(ctx context.Context) FlowLogOutput

func (*FlowLog) ToFlowLogPtrOutput added in v2.35.1

func (i *FlowLog) ToFlowLogPtrOutput() FlowLogPtrOutput

func (*FlowLog) ToFlowLogPtrOutputWithContext added in v2.35.1

func (i *FlowLog) ToFlowLogPtrOutputWithContext(ctx context.Context) FlowLogPtrOutput

type FlowLogArgs

type FlowLogArgs struct {
	// The ID of the CEN Instance.
	CenId pulumi.StringInput
	// The description of flowlog.
	Description pulumi.StringPtrInput
	// The name of flowlog.
	FlowLogName pulumi.StringPtrInput
	// The name of the log store which is in the  `projectName` SLS project.
	LogStoreName pulumi.StringInput
	// The name of the SLS project.
	ProjectName pulumi.StringInput
	// The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
	Status pulumi.StringPtrInput
}

The set of arguments for constructing a FlowLog resource.

func (FlowLogArgs) ElementType

func (FlowLogArgs) ElementType() reflect.Type

type FlowLogArray added in v2.35.1

type FlowLogArray []FlowLogInput

func (FlowLogArray) ElementType added in v2.35.1

func (FlowLogArray) ElementType() reflect.Type

func (FlowLogArray) ToFlowLogArrayOutput added in v2.35.1

func (i FlowLogArray) ToFlowLogArrayOutput() FlowLogArrayOutput

func (FlowLogArray) ToFlowLogArrayOutputWithContext added in v2.35.1

func (i FlowLogArray) ToFlowLogArrayOutputWithContext(ctx context.Context) FlowLogArrayOutput

type FlowLogArrayInput added in v2.35.1

type FlowLogArrayInput interface {
	pulumi.Input

	ToFlowLogArrayOutput() FlowLogArrayOutput
	ToFlowLogArrayOutputWithContext(context.Context) FlowLogArrayOutput
}

FlowLogArrayInput is an input type that accepts FlowLogArray and FlowLogArrayOutput values. You can construct a concrete instance of `FlowLogArrayInput` via:

FlowLogArray{ FlowLogArgs{...} }

type FlowLogArrayOutput added in v2.35.1

type FlowLogArrayOutput struct{ *pulumi.OutputState }

func (FlowLogArrayOutput) ElementType added in v2.35.1

func (FlowLogArrayOutput) ElementType() reflect.Type

func (FlowLogArrayOutput) Index added in v2.35.1

func (FlowLogArrayOutput) ToFlowLogArrayOutput added in v2.35.1

func (o FlowLogArrayOutput) ToFlowLogArrayOutput() FlowLogArrayOutput

func (FlowLogArrayOutput) ToFlowLogArrayOutputWithContext added in v2.35.1

func (o FlowLogArrayOutput) ToFlowLogArrayOutputWithContext(ctx context.Context) FlowLogArrayOutput

type FlowLogInput added in v2.25.1

type FlowLogInput interface {
	pulumi.Input

	ToFlowLogOutput() FlowLogOutput
	ToFlowLogOutputWithContext(ctx context.Context) FlowLogOutput
}

type FlowLogMap added in v2.35.1

type FlowLogMap map[string]FlowLogInput

func (FlowLogMap) ElementType added in v2.35.1

func (FlowLogMap) ElementType() reflect.Type

func (FlowLogMap) ToFlowLogMapOutput added in v2.35.1

func (i FlowLogMap) ToFlowLogMapOutput() FlowLogMapOutput

func (FlowLogMap) ToFlowLogMapOutputWithContext added in v2.35.1

func (i FlowLogMap) ToFlowLogMapOutputWithContext(ctx context.Context) FlowLogMapOutput

type FlowLogMapInput added in v2.35.1

type FlowLogMapInput interface {
	pulumi.Input

	ToFlowLogMapOutput() FlowLogMapOutput
	ToFlowLogMapOutputWithContext(context.Context) FlowLogMapOutput
}

FlowLogMapInput is an input type that accepts FlowLogMap and FlowLogMapOutput values. You can construct a concrete instance of `FlowLogMapInput` via:

FlowLogMap{ "key": FlowLogArgs{...} }

type FlowLogMapOutput added in v2.35.1

type FlowLogMapOutput struct{ *pulumi.OutputState }

func (FlowLogMapOutput) ElementType added in v2.35.1

func (FlowLogMapOutput) ElementType() reflect.Type

func (FlowLogMapOutput) MapIndex added in v2.35.1

func (FlowLogMapOutput) ToFlowLogMapOutput added in v2.35.1

func (o FlowLogMapOutput) ToFlowLogMapOutput() FlowLogMapOutput

func (FlowLogMapOutput) ToFlowLogMapOutputWithContext added in v2.35.1

func (o FlowLogMapOutput) ToFlowLogMapOutputWithContext(ctx context.Context) FlowLogMapOutput

type FlowLogOutput added in v2.25.1

type FlowLogOutput struct {
	*pulumi.OutputState
}

func (FlowLogOutput) ElementType added in v2.25.1

func (FlowLogOutput) ElementType() reflect.Type

func (FlowLogOutput) ToFlowLogOutput added in v2.25.1

func (o FlowLogOutput) ToFlowLogOutput() FlowLogOutput

func (FlowLogOutput) ToFlowLogOutputWithContext added in v2.25.1

func (o FlowLogOutput) ToFlowLogOutputWithContext(ctx context.Context) FlowLogOutput

func (FlowLogOutput) ToFlowLogPtrOutput added in v2.35.1

func (o FlowLogOutput) ToFlowLogPtrOutput() FlowLogPtrOutput

func (FlowLogOutput) ToFlowLogPtrOutputWithContext added in v2.35.1

func (o FlowLogOutput) ToFlowLogPtrOutputWithContext(ctx context.Context) FlowLogPtrOutput

type FlowLogPtrInput added in v2.35.1

type FlowLogPtrInput interface {
	pulumi.Input

	ToFlowLogPtrOutput() FlowLogPtrOutput
	ToFlowLogPtrOutputWithContext(ctx context.Context) FlowLogPtrOutput
}

type FlowLogPtrOutput added in v2.35.1

type FlowLogPtrOutput struct {
	*pulumi.OutputState
}

func (FlowLogPtrOutput) ElementType added in v2.35.1

func (FlowLogPtrOutput) ElementType() reflect.Type

func (FlowLogPtrOutput) ToFlowLogPtrOutput added in v2.35.1

func (o FlowLogPtrOutput) ToFlowLogPtrOutput() FlowLogPtrOutput

func (FlowLogPtrOutput) ToFlowLogPtrOutputWithContext added in v2.35.1

func (o FlowLogPtrOutput) ToFlowLogPtrOutputWithContext(ctx context.Context) FlowLogPtrOutput

type FlowLogState

type FlowLogState struct {
	// The ID of the CEN Instance.
	CenId pulumi.StringPtrInput
	// The description of flowlog.
	Description pulumi.StringPtrInput
	// The name of flowlog.
	FlowLogName pulumi.StringPtrInput
	// The name of the log store which is in the  `projectName` SLS project.
	LogStoreName pulumi.StringPtrInput
	// The name of the SLS project.
	ProjectName pulumi.StringPtrInput
	// The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
	Status pulumi.StringPtrInput
}

func (FlowLogState) ElementType

func (FlowLogState) ElementType() reflect.Type

type GetBandwidthLimitsArgs

type GetBandwidthLimitsArgs struct {
	// A list of CEN instances IDs.
	InstanceIds []string `pulumi:"instanceIds"`
	OutputFile  *string  `pulumi:"outputFile"`
}

A collection of arguments for invoking getBandwidthLimits.

type GetBandwidthLimitsLimit

type GetBandwidthLimitsLimit struct {
	// The bandwidth limit configured for the interconnected regions communication.
	BandwidthLimit int `pulumi:"bandwidthLimit"`
	// ID of the CEN instance.
	InstanceId string `pulumi:"instanceId"`
	// ID of local region.
	LocalRegionId string `pulumi:"localRegionId"`
	// ID of opposite region.
	OppositeRegionId string `pulumi:"oppositeRegionId"`
	// Status of the CEN Bandwidth Limit, including "Active" and "Modifying".
	Status string `pulumi:"status"`
}

type GetBandwidthLimitsLimitArgs

type GetBandwidthLimitsLimitArgs struct {
	// The bandwidth limit configured for the interconnected regions communication.
	BandwidthLimit pulumi.IntInput `pulumi:"bandwidthLimit"`
	// ID of the CEN instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// ID of local region.
	LocalRegionId pulumi.StringInput `pulumi:"localRegionId"`
	// ID of opposite region.
	OppositeRegionId pulumi.StringInput `pulumi:"oppositeRegionId"`
	// Status of the CEN Bandwidth Limit, including "Active" and "Modifying".
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetBandwidthLimitsLimitArgs) ElementType

func (GetBandwidthLimitsLimitArgs) ToGetBandwidthLimitsLimitOutput

func (i GetBandwidthLimitsLimitArgs) ToGetBandwidthLimitsLimitOutput() GetBandwidthLimitsLimitOutput

func (GetBandwidthLimitsLimitArgs) ToGetBandwidthLimitsLimitOutputWithContext

func (i GetBandwidthLimitsLimitArgs) ToGetBandwidthLimitsLimitOutputWithContext(ctx context.Context) GetBandwidthLimitsLimitOutput

type GetBandwidthLimitsLimitArray

type GetBandwidthLimitsLimitArray []GetBandwidthLimitsLimitInput

func (GetBandwidthLimitsLimitArray) ElementType

func (GetBandwidthLimitsLimitArray) ToGetBandwidthLimitsLimitArrayOutput

func (i GetBandwidthLimitsLimitArray) ToGetBandwidthLimitsLimitArrayOutput() GetBandwidthLimitsLimitArrayOutput

func (GetBandwidthLimitsLimitArray) ToGetBandwidthLimitsLimitArrayOutputWithContext

func (i GetBandwidthLimitsLimitArray) ToGetBandwidthLimitsLimitArrayOutputWithContext(ctx context.Context) GetBandwidthLimitsLimitArrayOutput

type GetBandwidthLimitsLimitArrayInput

type GetBandwidthLimitsLimitArrayInput interface {
	pulumi.Input

	ToGetBandwidthLimitsLimitArrayOutput() GetBandwidthLimitsLimitArrayOutput
	ToGetBandwidthLimitsLimitArrayOutputWithContext(context.Context) GetBandwidthLimitsLimitArrayOutput
}

GetBandwidthLimitsLimitArrayInput is an input type that accepts GetBandwidthLimitsLimitArray and GetBandwidthLimitsLimitArrayOutput values. You can construct a concrete instance of `GetBandwidthLimitsLimitArrayInput` via:

GetBandwidthLimitsLimitArray{ GetBandwidthLimitsLimitArgs{...} }

type GetBandwidthLimitsLimitArrayOutput

type GetBandwidthLimitsLimitArrayOutput struct{ *pulumi.OutputState }

func (GetBandwidthLimitsLimitArrayOutput) ElementType

func (GetBandwidthLimitsLimitArrayOutput) Index

func (GetBandwidthLimitsLimitArrayOutput) ToGetBandwidthLimitsLimitArrayOutput

func (o GetBandwidthLimitsLimitArrayOutput) ToGetBandwidthLimitsLimitArrayOutput() GetBandwidthLimitsLimitArrayOutput

func (GetBandwidthLimitsLimitArrayOutput) ToGetBandwidthLimitsLimitArrayOutputWithContext

func (o GetBandwidthLimitsLimitArrayOutput) ToGetBandwidthLimitsLimitArrayOutputWithContext(ctx context.Context) GetBandwidthLimitsLimitArrayOutput

type GetBandwidthLimitsLimitInput

type GetBandwidthLimitsLimitInput interface {
	pulumi.Input

	ToGetBandwidthLimitsLimitOutput() GetBandwidthLimitsLimitOutput
	ToGetBandwidthLimitsLimitOutputWithContext(context.Context) GetBandwidthLimitsLimitOutput
}

GetBandwidthLimitsLimitInput is an input type that accepts GetBandwidthLimitsLimitArgs and GetBandwidthLimitsLimitOutput values. You can construct a concrete instance of `GetBandwidthLimitsLimitInput` via:

GetBandwidthLimitsLimitArgs{...}

type GetBandwidthLimitsLimitOutput

type GetBandwidthLimitsLimitOutput struct{ *pulumi.OutputState }

func (GetBandwidthLimitsLimitOutput) BandwidthLimit

func (o GetBandwidthLimitsLimitOutput) BandwidthLimit() pulumi.IntOutput

The bandwidth limit configured for the interconnected regions communication.

func (GetBandwidthLimitsLimitOutput) ElementType

func (GetBandwidthLimitsLimitOutput) InstanceId

ID of the CEN instance.

func (GetBandwidthLimitsLimitOutput) LocalRegionId

ID of local region.

func (GetBandwidthLimitsLimitOutput) OppositeRegionId

func (o GetBandwidthLimitsLimitOutput) OppositeRegionId() pulumi.StringOutput

ID of opposite region.

func (GetBandwidthLimitsLimitOutput) Status

Status of the CEN Bandwidth Limit, including "Active" and "Modifying".

func (GetBandwidthLimitsLimitOutput) ToGetBandwidthLimitsLimitOutput

func (o GetBandwidthLimitsLimitOutput) ToGetBandwidthLimitsLimitOutput() GetBandwidthLimitsLimitOutput

func (GetBandwidthLimitsLimitOutput) ToGetBandwidthLimitsLimitOutputWithContext

func (o GetBandwidthLimitsLimitOutput) ToGetBandwidthLimitsLimitOutputWithContext(ctx context.Context) GetBandwidthLimitsLimitOutput

type GetBandwidthLimitsResult

type GetBandwidthLimitsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id          string   `pulumi:"id"`
	InstanceIds []string `pulumi:"instanceIds"`
	// A list of CEN Bandwidth Limits. Each element contains the following attributes:
	Limits     []GetBandwidthLimitsLimit `pulumi:"limits"`
	OutputFile *string                   `pulumi:"outputFile"`
}

A collection of values returned by getBandwidthLimits.

func GetBandwidthLimits

func GetBandwidthLimits(ctx *pulumi.Context, args *GetBandwidthLimitsArgs, opts ...pulumi.InvokeOption) (*GetBandwidthLimitsResult, error)

This data source provides CEN Bandwidth Limits available to the user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		bwl, err := cen.GetBandwidthLimits(ctx, &cen.GetBandwidthLimitsArgs{
			InstanceIds: []string{
				"cen-id1",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstCenBandwidthLimitsLocalRegionId", bwl.Limits[0].LocalRegionId)
		return nil
	})
}

```

type GetBandwidthPackagesArgs

type GetBandwidthPackagesArgs struct {
	// Limit search to a list of specific CEN Bandwidth Package IDs.
	Ids []string `pulumi:"ids"`
	// -Indicates whether to include renewal data. Valid values: `true`: Return renewal data in the response. `false`: Do not return renewal data in the response.
	IncludeReservationData *bool `pulumi:"includeReservationData"`
	// ID of a CEN instance.
	InstanceId *string `pulumi:"instanceId"`
	// A regex string to filter CEN Bandwidth Package by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// Status of the CEN Bandwidth Package in CEN instance, Valid value: `Idle` and `InUse`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getBandwidthPackages.

type GetBandwidthPackagesPackage

type GetBandwidthPackagesPackage struct {
	// The bandwidth in Mbps of the CEN bandwidth package.
	Bandwidth int `pulumi:"bandwidth"`
	// The billing method, including `POSTPAY` and `PREPAY`.
	BandwidthPackageChargeType string `pulumi:"bandwidthPackageChargeType"`
	// Status of the CEN Bandwidth Package, including `Normal`, `FinancialLocked` and `SecurityLocked`.
	BusinessStatus string `pulumi:"businessStatus"`
	// The ID of the bandwidth package.
	CenBandwidthPackageId string `pulumi:"cenBandwidthPackageId"`
	// The name of the bandwidth package.
	CenBandwidthPackageName string `pulumi:"cenBandwidthPackageName"`
	// The list of CEN instances that are associated with the bandwidth package.
	CenIds []string `pulumi:"cenIds"`
	// Description of the CEN Bandwidth Package.
	Description string `pulumi:"description"`
	ExpiredTime string `pulumi:"expiredTime"`
	// Region ID of the interconnected regions.
	GeographicRegionAId string `pulumi:"geographicRegionAId"`
	// Region ID of the interconnected regions.
	GeographicRegionBId string `pulumi:"geographicRegionBId"`
	// The area ID of the cross-area connection.
	GeographicSpanId string `pulumi:"geographicSpanId"`
	// Indicates whether renewal data is involved.
	HasReservationData string `pulumi:"hasReservationData"`
	// ID of the CEN Bandwidth Package.
	Id string `pulumi:"id"`
	// ID of a CEN instance.
	InstanceId string `pulumi:"instanceId"`
	// Indicates whether the bandwidth package is a cross-border bandwidth package.
	IsCrossBorder bool `pulumi:"isCrossBorder"`
	// Name of the CEN Bandwidth Package.
	Name string `pulumi:"name"`
	// The billing method of the bandwidth package.
	PaymentType string `pulumi:"paymentType"`
	// The expiration time of the temporary upgrade.
	ReservationActiveTime string `pulumi:"reservationActiveTime"`
	// The restored bandwidth after the temporary upgrade.
	ReservationBandwidth string `pulumi:"reservationBandwidth"`
	// The billing method after the configuration change.
	ReservationInternetChargeType string `pulumi:"reservationInternetChargeType"`
	// The type of the configuration change.
	ReservationOrderType string `pulumi:"reservationOrderType"`
	// Status of the CEN Bandwidth Package in CEN instance, Valid value: `Idle` and `InUse`.
	Status string `pulumi:"status"`
}

type GetBandwidthPackagesPackageArgs

type GetBandwidthPackagesPackageArgs struct {
	// The bandwidth in Mbps of the CEN bandwidth package.
	Bandwidth pulumi.IntInput `pulumi:"bandwidth"`
	// The billing method, including `POSTPAY` and `PREPAY`.
	BandwidthPackageChargeType pulumi.StringInput `pulumi:"bandwidthPackageChargeType"`
	// Status of the CEN Bandwidth Package, including `Normal`, `FinancialLocked` and `SecurityLocked`.
	BusinessStatus pulumi.StringInput `pulumi:"businessStatus"`
	// The ID of the bandwidth package.
	CenBandwidthPackageId pulumi.StringInput `pulumi:"cenBandwidthPackageId"`
	// The name of the bandwidth package.
	CenBandwidthPackageName pulumi.StringInput `pulumi:"cenBandwidthPackageName"`
	// The list of CEN instances that are associated with the bandwidth package.
	CenIds pulumi.StringArrayInput `pulumi:"cenIds"`
	// Description of the CEN Bandwidth Package.
	Description pulumi.StringInput `pulumi:"description"`
	ExpiredTime pulumi.StringInput `pulumi:"expiredTime"`
	// Region ID of the interconnected regions.
	GeographicRegionAId pulumi.StringInput `pulumi:"geographicRegionAId"`
	// Region ID of the interconnected regions.
	GeographicRegionBId pulumi.StringInput `pulumi:"geographicRegionBId"`
	// The area ID of the cross-area connection.
	GeographicSpanId pulumi.StringInput `pulumi:"geographicSpanId"`
	// Indicates whether renewal data is involved.
	HasReservationData pulumi.StringInput `pulumi:"hasReservationData"`
	// ID of the CEN Bandwidth Package.
	Id pulumi.StringInput `pulumi:"id"`
	// ID of a CEN instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// Indicates whether the bandwidth package is a cross-border bandwidth package.
	IsCrossBorder pulumi.BoolInput `pulumi:"isCrossBorder"`
	// Name of the CEN Bandwidth Package.
	Name pulumi.StringInput `pulumi:"name"`
	// The billing method of the bandwidth package.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// The expiration time of the temporary upgrade.
	ReservationActiveTime pulumi.StringInput `pulumi:"reservationActiveTime"`
	// The restored bandwidth after the temporary upgrade.
	ReservationBandwidth pulumi.StringInput `pulumi:"reservationBandwidth"`
	// The billing method after the configuration change.
	ReservationInternetChargeType pulumi.StringInput `pulumi:"reservationInternetChargeType"`
	// The type of the configuration change.
	ReservationOrderType pulumi.StringInput `pulumi:"reservationOrderType"`
	// Status of the CEN Bandwidth Package in CEN instance, Valid value: `Idle` and `InUse`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetBandwidthPackagesPackageArgs) ElementType

func (GetBandwidthPackagesPackageArgs) ToGetBandwidthPackagesPackageOutput

func (i GetBandwidthPackagesPackageArgs) ToGetBandwidthPackagesPackageOutput() GetBandwidthPackagesPackageOutput

func (GetBandwidthPackagesPackageArgs) ToGetBandwidthPackagesPackageOutputWithContext

func (i GetBandwidthPackagesPackageArgs) ToGetBandwidthPackagesPackageOutputWithContext(ctx context.Context) GetBandwidthPackagesPackageOutput

type GetBandwidthPackagesPackageArray

type GetBandwidthPackagesPackageArray []GetBandwidthPackagesPackageInput

func (GetBandwidthPackagesPackageArray) ElementType

func (GetBandwidthPackagesPackageArray) ToGetBandwidthPackagesPackageArrayOutput

func (i GetBandwidthPackagesPackageArray) ToGetBandwidthPackagesPackageArrayOutput() GetBandwidthPackagesPackageArrayOutput

func (GetBandwidthPackagesPackageArray) ToGetBandwidthPackagesPackageArrayOutputWithContext

func (i GetBandwidthPackagesPackageArray) ToGetBandwidthPackagesPackageArrayOutputWithContext(ctx context.Context) GetBandwidthPackagesPackageArrayOutput

type GetBandwidthPackagesPackageArrayInput

type GetBandwidthPackagesPackageArrayInput interface {
	pulumi.Input

	ToGetBandwidthPackagesPackageArrayOutput() GetBandwidthPackagesPackageArrayOutput
	ToGetBandwidthPackagesPackageArrayOutputWithContext(context.Context) GetBandwidthPackagesPackageArrayOutput
}

GetBandwidthPackagesPackageArrayInput is an input type that accepts GetBandwidthPackagesPackageArray and GetBandwidthPackagesPackageArrayOutput values. You can construct a concrete instance of `GetBandwidthPackagesPackageArrayInput` via:

GetBandwidthPackagesPackageArray{ GetBandwidthPackagesPackageArgs{...} }

type GetBandwidthPackagesPackageArrayOutput

type GetBandwidthPackagesPackageArrayOutput struct{ *pulumi.OutputState }

func (GetBandwidthPackagesPackageArrayOutput) ElementType

func (GetBandwidthPackagesPackageArrayOutput) Index

func (GetBandwidthPackagesPackageArrayOutput) ToGetBandwidthPackagesPackageArrayOutput

func (o GetBandwidthPackagesPackageArrayOutput) ToGetBandwidthPackagesPackageArrayOutput() GetBandwidthPackagesPackageArrayOutput

func (GetBandwidthPackagesPackageArrayOutput) ToGetBandwidthPackagesPackageArrayOutputWithContext

func (o GetBandwidthPackagesPackageArrayOutput) ToGetBandwidthPackagesPackageArrayOutputWithContext(ctx context.Context) GetBandwidthPackagesPackageArrayOutput

type GetBandwidthPackagesPackageInput

type GetBandwidthPackagesPackageInput interface {
	pulumi.Input

	ToGetBandwidthPackagesPackageOutput() GetBandwidthPackagesPackageOutput
	ToGetBandwidthPackagesPackageOutputWithContext(context.Context) GetBandwidthPackagesPackageOutput
}

GetBandwidthPackagesPackageInput is an input type that accepts GetBandwidthPackagesPackageArgs and GetBandwidthPackagesPackageOutput values. You can construct a concrete instance of `GetBandwidthPackagesPackageInput` via:

GetBandwidthPackagesPackageArgs{...}

type GetBandwidthPackagesPackageOutput

type GetBandwidthPackagesPackageOutput struct{ *pulumi.OutputState }

func (GetBandwidthPackagesPackageOutput) Bandwidth

The bandwidth in Mbps of the CEN bandwidth package.

func (GetBandwidthPackagesPackageOutput) BandwidthPackageChargeType

func (o GetBandwidthPackagesPackageOutput) BandwidthPackageChargeType() pulumi.StringOutput

The billing method, including `POSTPAY` and `PREPAY`.

func (GetBandwidthPackagesPackageOutput) BusinessStatus

Status of the CEN Bandwidth Package, including `Normal`, `FinancialLocked` and `SecurityLocked`.

func (GetBandwidthPackagesPackageOutput) CenBandwidthPackageId added in v2.19.0

func (o GetBandwidthPackagesPackageOutput) CenBandwidthPackageId() pulumi.StringOutput

The ID of the bandwidth package.

func (GetBandwidthPackagesPackageOutput) CenBandwidthPackageName added in v2.19.0

func (o GetBandwidthPackagesPackageOutput) CenBandwidthPackageName() pulumi.StringOutput

The name of the bandwidth package.

func (GetBandwidthPackagesPackageOutput) CenIds added in v2.19.0

The list of CEN instances that are associated with the bandwidth package.

func (GetBandwidthPackagesPackageOutput) Description

Description of the CEN Bandwidth Package.

func (GetBandwidthPackagesPackageOutput) ElementType

func (GetBandwidthPackagesPackageOutput) ExpiredTime added in v2.19.0

func (GetBandwidthPackagesPackageOutput) GeographicRegionAId

func (o GetBandwidthPackagesPackageOutput) GeographicRegionAId() pulumi.StringOutput

Region ID of the interconnected regions.

func (GetBandwidthPackagesPackageOutput) GeographicRegionBId

func (o GetBandwidthPackagesPackageOutput) GeographicRegionBId() pulumi.StringOutput

Region ID of the interconnected regions.

func (GetBandwidthPackagesPackageOutput) GeographicSpanId added in v2.19.0

The area ID of the cross-area connection.

func (GetBandwidthPackagesPackageOutput) HasReservationData added in v2.19.0

func (o GetBandwidthPackagesPackageOutput) HasReservationData() pulumi.StringOutput

Indicates whether renewal data is involved.

func (GetBandwidthPackagesPackageOutput) Id

ID of the CEN Bandwidth Package.

func (GetBandwidthPackagesPackageOutput) InstanceId

ID of a CEN instance.

func (GetBandwidthPackagesPackageOutput) IsCrossBorder added in v2.19.0

Indicates whether the bandwidth package is a cross-border bandwidth package.

func (GetBandwidthPackagesPackageOutput) Name

Name of the CEN Bandwidth Package.

func (GetBandwidthPackagesPackageOutput) PaymentType added in v2.19.0

The billing method of the bandwidth package.

func (GetBandwidthPackagesPackageOutput) ReservationActiveTime added in v2.19.0

func (o GetBandwidthPackagesPackageOutput) ReservationActiveTime() pulumi.StringOutput

The expiration time of the temporary upgrade.

func (GetBandwidthPackagesPackageOutput) ReservationBandwidth added in v2.19.0

func (o GetBandwidthPackagesPackageOutput) ReservationBandwidth() pulumi.StringOutput

The restored bandwidth after the temporary upgrade.

func (GetBandwidthPackagesPackageOutput) ReservationInternetChargeType added in v2.19.0

func (o GetBandwidthPackagesPackageOutput) ReservationInternetChargeType() pulumi.StringOutput

The billing method after the configuration change.

func (GetBandwidthPackagesPackageOutput) ReservationOrderType added in v2.19.0

func (o GetBandwidthPackagesPackageOutput) ReservationOrderType() pulumi.StringOutput

The type of the configuration change.

func (GetBandwidthPackagesPackageOutput) Status

Status of the CEN Bandwidth Package in CEN instance, Valid value: `Idle` and `InUse`.

func (GetBandwidthPackagesPackageOutput) ToGetBandwidthPackagesPackageOutput

func (o GetBandwidthPackagesPackageOutput) ToGetBandwidthPackagesPackageOutput() GetBandwidthPackagesPackageOutput

func (GetBandwidthPackagesPackageOutput) ToGetBandwidthPackagesPackageOutputWithContext

func (o GetBandwidthPackagesPackageOutput) ToGetBandwidthPackagesPackageOutputWithContext(ctx context.Context) GetBandwidthPackagesPackageOutput

type GetBandwidthPackagesResult

type GetBandwidthPackagesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of specific CEN Bandwidth Package IDs.
	// * `names` (Available in 1.98.0+) - A list of CEN Bandwidth Package Names.
	Ids                    []string `pulumi:"ids"`
	IncludeReservationData *bool    `pulumi:"includeReservationData"`
	// The ID of the CEN instance that are associated with the bandwidth package.
	InstanceId *string  `pulumi:"instanceId"`
	NameRegex  *string  `pulumi:"nameRegex"`
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// A list of CEN bandwidth package. Each element contains the following attributes:
	Packages []GetBandwidthPackagesPackage `pulumi:"packages"`
	// Status of the CEN Bandwidth Package in CEN instance, including `Idle` and `InUse`.
	Status *string `pulumi:"status"`
}

A collection of values returned by getBandwidthPackages.

func GetBandwidthPackages

func GetBandwidthPackages(ctx *pulumi.Context, args *GetBandwidthPackagesArgs, opts ...pulumi.InvokeOption) (*GetBandwidthPackagesResult, error)

This data source provides CEN Bandwidth Packages available to the user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "cen-id1"
		opt1 := "^foo"
		example, err := cen.GetBandwidthPackages(ctx, &cen.GetBandwidthPackagesArgs{
			InstanceId: &opt0,
			NameRegex:  &opt1,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstCenBandwidthPackageId", example.Packages[0].Id)
		return nil
	})
}

```

type GetFlowlogsArgs

type GetFlowlogsArgs struct {
	// The ID of the CEN Instance.
	CenId *string `pulumi:"cenId"`
	// The description of flowlog.
	Description *string `pulumi:"description"`
	// A list of CEN flow log IDs.
	Ids []string `pulumi:"ids"`
	// The name of the log store which is in the  `projectName` SLS project.
	LogStoreName *string `pulumi:"logStoreName"`
	// A regex string to filter CEN flow logs by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The name of the SLS project.
	ProjectName *string `pulumi:"projectName"`
	// The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getFlowlogs.

type GetFlowlogsFlowlog

type GetFlowlogsFlowlog struct {
	// The ID of the CEN Instance.
	CenId string `pulumi:"cenId"`
	// The description of flowlog.
	Description string `pulumi:"description"`
	// ID of the CEN flow log.
	FlowLogId string `pulumi:"flowLogId"`
	// The name of flowlog.
	FlowLogName string `pulumi:"flowLogName"`
	// ID of the CEN flow log.
	Id string `pulumi:"id"`
	// The name of the log store which is in the  `projectName` SLS project.
	LogStoreName string `pulumi:"logStoreName"`
	// The name of the SLS project.
	ProjectName string `pulumi:"projectName"`
	// The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
	Status string `pulumi:"status"`
}

type GetFlowlogsFlowlogArgs

type GetFlowlogsFlowlogArgs struct {
	// The ID of the CEN Instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// The description of flowlog.
	Description pulumi.StringInput `pulumi:"description"`
	// ID of the CEN flow log.
	FlowLogId pulumi.StringInput `pulumi:"flowLogId"`
	// The name of flowlog.
	FlowLogName pulumi.StringInput `pulumi:"flowLogName"`
	// ID of the CEN flow log.
	Id pulumi.StringInput `pulumi:"id"`
	// The name of the log store which is in the  `projectName` SLS project.
	LogStoreName pulumi.StringInput `pulumi:"logStoreName"`
	// The name of the SLS project.
	ProjectName pulumi.StringInput `pulumi:"projectName"`
	// The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetFlowlogsFlowlogArgs) ElementType

func (GetFlowlogsFlowlogArgs) ElementType() reflect.Type

func (GetFlowlogsFlowlogArgs) ToGetFlowlogsFlowlogOutput

func (i GetFlowlogsFlowlogArgs) ToGetFlowlogsFlowlogOutput() GetFlowlogsFlowlogOutput

func (GetFlowlogsFlowlogArgs) ToGetFlowlogsFlowlogOutputWithContext

func (i GetFlowlogsFlowlogArgs) ToGetFlowlogsFlowlogOutputWithContext(ctx context.Context) GetFlowlogsFlowlogOutput

type GetFlowlogsFlowlogArray

type GetFlowlogsFlowlogArray []GetFlowlogsFlowlogInput

func (GetFlowlogsFlowlogArray) ElementType

func (GetFlowlogsFlowlogArray) ElementType() reflect.Type

func (GetFlowlogsFlowlogArray) ToGetFlowlogsFlowlogArrayOutput

func (i GetFlowlogsFlowlogArray) ToGetFlowlogsFlowlogArrayOutput() GetFlowlogsFlowlogArrayOutput

func (GetFlowlogsFlowlogArray) ToGetFlowlogsFlowlogArrayOutputWithContext

func (i GetFlowlogsFlowlogArray) ToGetFlowlogsFlowlogArrayOutputWithContext(ctx context.Context) GetFlowlogsFlowlogArrayOutput

type GetFlowlogsFlowlogArrayInput

type GetFlowlogsFlowlogArrayInput interface {
	pulumi.Input

	ToGetFlowlogsFlowlogArrayOutput() GetFlowlogsFlowlogArrayOutput
	ToGetFlowlogsFlowlogArrayOutputWithContext(context.Context) GetFlowlogsFlowlogArrayOutput
}

GetFlowlogsFlowlogArrayInput is an input type that accepts GetFlowlogsFlowlogArray and GetFlowlogsFlowlogArrayOutput values. You can construct a concrete instance of `GetFlowlogsFlowlogArrayInput` via:

GetFlowlogsFlowlogArray{ GetFlowlogsFlowlogArgs{...} }

type GetFlowlogsFlowlogArrayOutput

type GetFlowlogsFlowlogArrayOutput struct{ *pulumi.OutputState }

func (GetFlowlogsFlowlogArrayOutput) ElementType

func (GetFlowlogsFlowlogArrayOutput) Index

func (GetFlowlogsFlowlogArrayOutput) ToGetFlowlogsFlowlogArrayOutput

func (o GetFlowlogsFlowlogArrayOutput) ToGetFlowlogsFlowlogArrayOutput() GetFlowlogsFlowlogArrayOutput

func (GetFlowlogsFlowlogArrayOutput) ToGetFlowlogsFlowlogArrayOutputWithContext

func (o GetFlowlogsFlowlogArrayOutput) ToGetFlowlogsFlowlogArrayOutputWithContext(ctx context.Context) GetFlowlogsFlowlogArrayOutput

type GetFlowlogsFlowlogInput

type GetFlowlogsFlowlogInput interface {
	pulumi.Input

	ToGetFlowlogsFlowlogOutput() GetFlowlogsFlowlogOutput
	ToGetFlowlogsFlowlogOutputWithContext(context.Context) GetFlowlogsFlowlogOutput
}

GetFlowlogsFlowlogInput is an input type that accepts GetFlowlogsFlowlogArgs and GetFlowlogsFlowlogOutput values. You can construct a concrete instance of `GetFlowlogsFlowlogInput` via:

GetFlowlogsFlowlogArgs{...}

type GetFlowlogsFlowlogOutput

type GetFlowlogsFlowlogOutput struct{ *pulumi.OutputState }

func (GetFlowlogsFlowlogOutput) CenId

The ID of the CEN Instance.

func (GetFlowlogsFlowlogOutput) Description

The description of flowlog.

func (GetFlowlogsFlowlogOutput) ElementType

func (GetFlowlogsFlowlogOutput) ElementType() reflect.Type

func (GetFlowlogsFlowlogOutput) FlowLogId

ID of the CEN flow log.

func (GetFlowlogsFlowlogOutput) FlowLogName

The name of flowlog.

func (GetFlowlogsFlowlogOutput) Id

ID of the CEN flow log.

func (GetFlowlogsFlowlogOutput) LogStoreName

func (o GetFlowlogsFlowlogOutput) LogStoreName() pulumi.StringOutput

The name of the log store which is in the `projectName` SLS project.

func (GetFlowlogsFlowlogOutput) ProjectName

The name of the SLS project.

func (GetFlowlogsFlowlogOutput) Status

The status of flowlog. Valid values: ["Active", "Inactive"]. Default to "Active".

func (GetFlowlogsFlowlogOutput) ToGetFlowlogsFlowlogOutput

func (o GetFlowlogsFlowlogOutput) ToGetFlowlogsFlowlogOutput() GetFlowlogsFlowlogOutput

func (GetFlowlogsFlowlogOutput) ToGetFlowlogsFlowlogOutputWithContext

func (o GetFlowlogsFlowlogOutput) ToGetFlowlogsFlowlogOutputWithContext(ctx context.Context) GetFlowlogsFlowlogOutput

type GetFlowlogsResult

type GetFlowlogsResult struct {
	// The ID of the CEN Instance.
	CenId *string `pulumi:"cenId"`
	// The description of flowlog.
	Description *string              `pulumi:"description"`
	Flowlogs    []GetFlowlogsFlowlog `pulumi:"flowlogs"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN flow log IDs.
	Ids []string `pulumi:"ids"`
	// The name of the log store which is in the  `projectName` SLS project.
	LogStoreName *string `pulumi:"logStoreName"`
	NameRegex    *string `pulumi:"nameRegex"`
	// A list of CEN flow log names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// The name of the SLS project.
	ProjectName *string `pulumi:"projectName"`
	// The status of flowlog.
	Status *string `pulumi:"status"`
}

A collection of values returned by getFlowlogs.

func GetFlowlogs

func GetFlowlogs(ctx *pulumi.Context, args *GetFlowlogsArgs, opts ...pulumi.InvokeOption) (*GetFlowlogsResult, error)

This data source provides CEN flow logs available to the user.

> **NOTE:** Available in 1.78.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "^foo"
		_, err := cen.GetFlowlogs(ctx, &cen.GetFlowlogsArgs{
			Ids: []string{
				"flowlog-tig1xxxxx",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstCenFlowlogId", data.Alicloud_cen_instances.Default.Flowlogs[0].Id)
		return nil
	})
}

```

type GetInstanceAttachmentsArgs added in v2.18.0

type GetInstanceAttachmentsArgs struct {
	// The region to which the network to be queried belongs.
	ChildInstanceRegionId *string `pulumi:"childInstanceRegionId"`
	// The type of the associated network. Valid values: `VPC`, `VBR` and `CCN`.
	ChildInstanceType *string `pulumi:"childInstanceType"`
	// The ID of the CEN instance.
	InstanceId string  `pulumi:"instanceId"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the Cen Child Instance Attachment. Valid value: `Attaching`, `Attached` and `Aetaching`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getInstanceAttachments.

type GetInstanceAttachmentsAttachment added in v2.18.0

type GetInstanceAttachmentsAttachment struct {
	// The time when the network is associated with the CEN instance.
	ChildInstanceAttachTime string `pulumi:"childInstanceAttachTime"`
	// The ID of the network.
	ChildInstanceId string `pulumi:"childInstanceId"`
	// The ID of the account to which the network belongs.
	ChildInstanceOwnerId int `pulumi:"childInstanceOwnerId"`
	// The region to which the network to be queried belongs.
	ChildInstanceRegionId string `pulumi:"childInstanceRegionId"`
	// The type of the associated network. Valid values: `VPC`, `VBR` and `CCN`.
	ChildInstanceType string `pulumi:"childInstanceType"`
	// The ID of the CEN Instance Attachment.
	Id string `pulumi:"id"`
	// The ID of the CEN instance.
	InstanceId string `pulumi:"instanceId"`
	// The status of the Cen Child Instance Attachment. Valid value: `Attaching`, `Attached` and `Aetaching`.
	Status string `pulumi:"status"`
}

type GetInstanceAttachmentsAttachmentArgs added in v2.18.0

type GetInstanceAttachmentsAttachmentArgs struct {
	// The time when the network is associated with the CEN instance.
	ChildInstanceAttachTime pulumi.StringInput `pulumi:"childInstanceAttachTime"`
	// The ID of the network.
	ChildInstanceId pulumi.StringInput `pulumi:"childInstanceId"`
	// The ID of the account to which the network belongs.
	ChildInstanceOwnerId pulumi.IntInput `pulumi:"childInstanceOwnerId"`
	// The region to which the network to be queried belongs.
	ChildInstanceRegionId pulumi.StringInput `pulumi:"childInstanceRegionId"`
	// The type of the associated network. Valid values: `VPC`, `VBR` and `CCN`.
	ChildInstanceType pulumi.StringInput `pulumi:"childInstanceType"`
	// The ID of the CEN Instance Attachment.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the CEN instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The status of the Cen Child Instance Attachment. Valid value: `Attaching`, `Attached` and `Aetaching`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetInstanceAttachmentsAttachmentArgs) ElementType added in v2.18.0

func (GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput added in v2.18.0

func (i GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput

func (GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutputWithContext added in v2.18.0

func (i GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentOutput

type GetInstanceAttachmentsAttachmentArray added in v2.18.0

type GetInstanceAttachmentsAttachmentArray []GetInstanceAttachmentsAttachmentInput

func (GetInstanceAttachmentsAttachmentArray) ElementType added in v2.18.0

func (GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput added in v2.18.0

func (i GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput

func (GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext added in v2.18.0

func (i GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentArrayOutput

type GetInstanceAttachmentsAttachmentArrayInput added in v2.18.0

type GetInstanceAttachmentsAttachmentArrayInput interface {
	pulumi.Input

	ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput
	ToGetInstanceAttachmentsAttachmentArrayOutputWithContext(context.Context) GetInstanceAttachmentsAttachmentArrayOutput
}

GetInstanceAttachmentsAttachmentArrayInput is an input type that accepts GetInstanceAttachmentsAttachmentArray and GetInstanceAttachmentsAttachmentArrayOutput values. You can construct a concrete instance of `GetInstanceAttachmentsAttachmentArrayInput` via:

GetInstanceAttachmentsAttachmentArray{ GetInstanceAttachmentsAttachmentArgs{...} }

type GetInstanceAttachmentsAttachmentArrayOutput added in v2.18.0

type GetInstanceAttachmentsAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetInstanceAttachmentsAttachmentArrayOutput) ElementType added in v2.18.0

func (GetInstanceAttachmentsAttachmentArrayOutput) Index added in v2.18.0

func (GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput added in v2.18.0

func (o GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput

func (GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext added in v2.18.0

func (o GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentArrayOutput

type GetInstanceAttachmentsAttachmentInput added in v2.18.0

type GetInstanceAttachmentsAttachmentInput interface {
	pulumi.Input

	ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput
	ToGetInstanceAttachmentsAttachmentOutputWithContext(context.Context) GetInstanceAttachmentsAttachmentOutput
}

GetInstanceAttachmentsAttachmentInput is an input type that accepts GetInstanceAttachmentsAttachmentArgs and GetInstanceAttachmentsAttachmentOutput values. You can construct a concrete instance of `GetInstanceAttachmentsAttachmentInput` via:

GetInstanceAttachmentsAttachmentArgs{...}

type GetInstanceAttachmentsAttachmentOutput added in v2.18.0

type GetInstanceAttachmentsAttachmentOutput struct{ *pulumi.OutputState }

func (GetInstanceAttachmentsAttachmentOutput) ChildInstanceAttachTime added in v2.18.0

func (o GetInstanceAttachmentsAttachmentOutput) ChildInstanceAttachTime() pulumi.StringOutput

The time when the network is associated with the CEN instance.

func (GetInstanceAttachmentsAttachmentOutput) ChildInstanceId added in v2.18.0

The ID of the network.

func (GetInstanceAttachmentsAttachmentOutput) ChildInstanceOwnerId added in v2.18.0

func (o GetInstanceAttachmentsAttachmentOutput) ChildInstanceOwnerId() pulumi.IntOutput

The ID of the account to which the network belongs.

func (GetInstanceAttachmentsAttachmentOutput) ChildInstanceRegionId added in v2.18.0

The region to which the network to be queried belongs.

func (GetInstanceAttachmentsAttachmentOutput) ChildInstanceType added in v2.18.0

The type of the associated network. Valid values: `VPC`, `VBR` and `CCN`.

func (GetInstanceAttachmentsAttachmentOutput) ElementType added in v2.18.0

func (GetInstanceAttachmentsAttachmentOutput) Id added in v2.18.0

The ID of the CEN Instance Attachment.

func (GetInstanceAttachmentsAttachmentOutput) InstanceId added in v2.18.0

The ID of the CEN instance.

func (GetInstanceAttachmentsAttachmentOutput) Status added in v2.18.0

The status of the Cen Child Instance Attachment. Valid value: `Attaching`, `Attached` and `Aetaching`.

func (GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput added in v2.18.0

func (o GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput

func (GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutputWithContext added in v2.18.0

func (o GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutputWithContext(ctx context.Context) GetInstanceAttachmentsAttachmentOutput

type GetInstanceAttachmentsResult added in v2.18.0

type GetInstanceAttachmentsResult struct {
	// A list of CEN Instance Attachments. Each element contains the following attributes:
	Attachments []GetInstanceAttachmentsAttachment `pulumi:"attachments"`
	// The ID of the region to which the network belongs.
	ChildInstanceRegionId *string `pulumi:"childInstanceRegionId"`
	// The type of the associated network.
	ChildInstanceType *string `pulumi:"childInstanceType"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN Instance Attachment IDs.
	Ids []string `pulumi:"ids"`
	// The ID of the CEN instance.
	InstanceId string  `pulumi:"instanceId"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the network.
	Status *string `pulumi:"status"`
}

A collection of values returned by getInstanceAttachments.

func GetInstanceAttachments added in v2.18.0

func GetInstanceAttachments(ctx *pulumi.Context, args *GetInstanceAttachmentsArgs, opts ...pulumi.InvokeOption) (*GetInstanceAttachmentsResult, error)

This data source provides Cen Instance Attachments of the current Alibaba Cloud User.

> **NOTE:** Available in v1.97.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := cen.GetInstanceAttachments(ctx, &cen.GetInstanceAttachmentsArgs{
			InstanceId: "cen-o40h17ll9w********",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("theFirstAttachmentedInstanceId", example.Attachments[0].ChildInstanceId)
		return nil
	})
}

```

type GetInstancesArgs

type GetInstancesArgs struct {
	// A list of CEN instances IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter CEN instances by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of CEN instance. Valid value: `Active`, `Creating` and `Deleting`.
	Status *string `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of arguments for invoking getInstances.

type GetInstancesInstance

type GetInstancesInstance struct {
	// List of CEN Bandwidth Package IDs in the specified CEN instance.
	CenBandwidthPackageIds []string `pulumi:"cenBandwidthPackageIds"`
	// ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// Name of the CEN instance.
	CenInstanceName string `pulumi:"cenInstanceName"`
	// Description of the CEN instance.
	Description string `pulumi:"description"`
	// ID of the CEN instance.
	Id string `pulumi:"id"`
	// Name of the CEN instance.
	Name string `pulumi:"name"`
	// Indicates the allowed level of CIDR block overlapping.
	ProtectionLevel string `pulumi:"protectionLevel"`
	// The status of CEN instance. Valid value: `Active`, `Creating` and `Deleting`.
	Status string `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags map[string]interface{} `pulumi:"tags"`
}

type GetInstancesInstanceArgs

type GetInstancesInstanceArgs struct {
	// List of CEN Bandwidth Package IDs in the specified CEN instance.
	CenBandwidthPackageIds pulumi.StringArrayInput `pulumi:"cenBandwidthPackageIds"`
	// ID of the CEN instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// Name of the CEN instance.
	CenInstanceName pulumi.StringInput `pulumi:"cenInstanceName"`
	// Description of the CEN instance.
	Description pulumi.StringInput `pulumi:"description"`
	// ID of the CEN instance.
	Id pulumi.StringInput `pulumi:"id"`
	// Name of the CEN instance.
	Name pulumi.StringInput `pulumi:"name"`
	// Indicates the allowed level of CIDR block overlapping.
	ProtectionLevel pulumi.StringInput `pulumi:"protectionLevel"`
	// The status of CEN instance. Valid value: `Active`, `Creating` and `Deleting`.
	Status pulumi.StringInput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput `pulumi:"tags"`
}

func (GetInstancesInstanceArgs) ElementType

func (GetInstancesInstanceArgs) ElementType() reflect.Type

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutput

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext

func (i GetInstancesInstanceArgs) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput

type GetInstancesInstanceArray

type GetInstancesInstanceArray []GetInstancesInstanceInput

func (GetInstancesInstanceArray) ElementType

func (GetInstancesInstanceArray) ElementType() reflect.Type

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext

func (i GetInstancesInstanceArray) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayInput

type GetInstancesInstanceArrayInput interface {
	pulumi.Input

	ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput
	ToGetInstancesInstanceArrayOutputWithContext(context.Context) GetInstancesInstanceArrayOutput
}

GetInstancesInstanceArrayInput is an input type that accepts GetInstancesInstanceArray and GetInstancesInstanceArrayOutput values. You can construct a concrete instance of `GetInstancesInstanceArrayInput` via:

GetInstancesInstanceArray{ GetInstancesInstanceArgs{...} }

type GetInstancesInstanceArrayOutput

type GetInstancesInstanceArrayOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceArrayOutput) ElementType

func (GetInstancesInstanceArrayOutput) Index

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutput() GetInstancesInstanceArrayOutput

func (GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext

func (o GetInstancesInstanceArrayOutput) ToGetInstancesInstanceArrayOutputWithContext(ctx context.Context) GetInstancesInstanceArrayOutput

type GetInstancesInstanceInput

type GetInstancesInstanceInput interface {
	pulumi.Input

	ToGetInstancesInstanceOutput() GetInstancesInstanceOutput
	ToGetInstancesInstanceOutputWithContext(context.Context) GetInstancesInstanceOutput
}

GetInstancesInstanceInput is an input type that accepts GetInstancesInstanceArgs and GetInstancesInstanceOutput values. You can construct a concrete instance of `GetInstancesInstanceInput` via:

GetInstancesInstanceArgs{...}

type GetInstancesInstanceOutput

type GetInstancesInstanceOutput struct{ *pulumi.OutputState }

func (GetInstancesInstanceOutput) CenBandwidthPackageIds added in v2.1.1

func (o GetInstancesInstanceOutput) CenBandwidthPackageIds() pulumi.StringArrayOutput

List of CEN Bandwidth Package IDs in the specified CEN instance.

func (GetInstancesInstanceOutput) CenId added in v2.1.1

ID of the CEN instance.

func (GetInstancesInstanceOutput) CenInstanceName added in v2.19.0

func (o GetInstancesInstanceOutput) CenInstanceName() pulumi.StringOutput

Name of the CEN instance.

func (GetInstancesInstanceOutput) Description

Description of the CEN instance.

func (GetInstancesInstanceOutput) ElementType

func (GetInstancesInstanceOutput) ElementType() reflect.Type

func (GetInstancesInstanceOutput) Id

ID of the CEN instance.

func (GetInstancesInstanceOutput) Name

Name of the CEN instance.

func (GetInstancesInstanceOutput) ProtectionLevel added in v2.1.1

func (o GetInstancesInstanceOutput) ProtectionLevel() pulumi.StringOutput

Indicates the allowed level of CIDR block overlapping.

func (GetInstancesInstanceOutput) Status

The status of CEN instance. Valid value: `Active`, `Creating` and `Deleting`.

func (GetInstancesInstanceOutput) Tags added in v2.1.1

A mapping of tags to assign to the resource.

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutput

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutput() GetInstancesInstanceOutput

func (GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext

func (o GetInstancesInstanceOutput) ToGetInstancesInstanceOutputWithContext(ctx context.Context) GetInstancesInstanceOutput

type GetInstancesResult

type GetInstancesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN instances IDs.
	Ids []string `pulumi:"ids"`
	// A list of CEN instances. Each element contains the following attributes:
	Instances []GetInstancesInstance `pulumi:"instances"`
	NameRegex *string                `pulumi:"nameRegex"`
	// A list of CEN instances names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// Status of the CEN instance, including "Creating", "Active" and "Deleting".
	Status *string `pulumi:"status"`
	// A map of tags assigned to the Cen Instance.
	Tags map[string]interface{} `pulumi:"tags"`
}

A collection of values returned by getInstances.

func GetInstances

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

This data source provides CEN instances available to the user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "^foo"
		cenInstancesDs, err := cen.GetInstances(ctx, &cen.GetInstancesArgs{
			Ids: []string{
				"cen-id1",
			},
			NameRegex: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstCenInstanceId", cenInstancesDs.Instances[0].Id)
		return nil
	})
}

```

type GetPrivateZonesArgs added in v2.10.0

type GetPrivateZonesArgs struct {
	// The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// The service region. The service region is the target region of the PrivateZone service accessed through CEN.
	HostRegionId *string `pulumi:"hostRegionId"`
	// A list of CEN private zone IDs.
	// * ` hostRegionId  ` - (Optional) The service region is the target region of the PrivateZone service accessed through CEN.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the PrivateZone service, including `Creating`, `Active` and `Deleting`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getPrivateZones.

type GetPrivateZonesResult added in v2.10.0

type GetPrivateZonesResult struct {
	// The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// The service region. The service region is the target region of the PrivateZone service accessed through CEN.
	HostRegionId *string `pulumi:"hostRegionId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN private zone IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the PrivateZone service.
	Status *string `pulumi:"status"`
	// A list of CEN private zones. Each element contains the following attributes:
	Zones []GetPrivateZonesZone `pulumi:"zones"`
}

A collection of values returned by getPrivateZones.

func GetPrivateZones added in v2.10.0

func GetPrivateZones(ctx *pulumi.Context, args *GetPrivateZonesArgs, opts ...pulumi.InvokeOption) (*GetPrivateZonesResult, error)

This data source provides CEN Private Zones available to the user.

> **NOTE:** Available in v1.88.0+.

type GetPrivateZonesZone added in v2.10.0

type GetPrivateZonesZone struct {
	// The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
	AccessRegionId string `pulumi:"accessRegionId"`
	// The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// The service region. The service region is the target region of the PrivateZone service accessed through CEN.
	HostRegionId string `pulumi:"hostRegionId"`
	// The VPC that belongs to the service region.
	HostVpcId string `pulumi:"hostVpcId"`
	// The DNS IP addresses of the PrivateZone service.
	PrivateZoneDnsServers string `pulumi:"privateZoneDnsServers"`
	// The status of the PrivateZone service, including `Creating`, `Active` and `Deleting`.
	Status string `pulumi:"status"`
}

type GetPrivateZonesZoneArgs added in v2.10.0

type GetPrivateZonesZoneArgs struct {
	// The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
	AccessRegionId pulumi.StringInput `pulumi:"accessRegionId"`
	// The ID of the CEN instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// The service region. The service region is the target region of the PrivateZone service accessed through CEN.
	HostRegionId pulumi.StringInput `pulumi:"hostRegionId"`
	// The VPC that belongs to the service region.
	HostVpcId pulumi.StringInput `pulumi:"hostVpcId"`
	// The DNS IP addresses of the PrivateZone service.
	PrivateZoneDnsServers pulumi.StringInput `pulumi:"privateZoneDnsServers"`
	// The status of the PrivateZone service, including `Creating`, `Active` and `Deleting`.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetPrivateZonesZoneArgs) ElementType added in v2.10.0

func (GetPrivateZonesZoneArgs) ElementType() reflect.Type

func (GetPrivateZonesZoneArgs) ToGetPrivateZonesZoneOutput added in v2.10.0

func (i GetPrivateZonesZoneArgs) ToGetPrivateZonesZoneOutput() GetPrivateZonesZoneOutput

func (GetPrivateZonesZoneArgs) ToGetPrivateZonesZoneOutputWithContext added in v2.10.0

func (i GetPrivateZonesZoneArgs) ToGetPrivateZonesZoneOutputWithContext(ctx context.Context) GetPrivateZonesZoneOutput

type GetPrivateZonesZoneArray added in v2.10.0

type GetPrivateZonesZoneArray []GetPrivateZonesZoneInput

func (GetPrivateZonesZoneArray) ElementType added in v2.10.0

func (GetPrivateZonesZoneArray) ElementType() reflect.Type

func (GetPrivateZonesZoneArray) ToGetPrivateZonesZoneArrayOutput added in v2.10.0

func (i GetPrivateZonesZoneArray) ToGetPrivateZonesZoneArrayOutput() GetPrivateZonesZoneArrayOutput

func (GetPrivateZonesZoneArray) ToGetPrivateZonesZoneArrayOutputWithContext added in v2.10.0

func (i GetPrivateZonesZoneArray) ToGetPrivateZonesZoneArrayOutputWithContext(ctx context.Context) GetPrivateZonesZoneArrayOutput

type GetPrivateZonesZoneArrayInput added in v2.10.0

type GetPrivateZonesZoneArrayInput interface {
	pulumi.Input

	ToGetPrivateZonesZoneArrayOutput() GetPrivateZonesZoneArrayOutput
	ToGetPrivateZonesZoneArrayOutputWithContext(context.Context) GetPrivateZonesZoneArrayOutput
}

GetPrivateZonesZoneArrayInput is an input type that accepts GetPrivateZonesZoneArray and GetPrivateZonesZoneArrayOutput values. You can construct a concrete instance of `GetPrivateZonesZoneArrayInput` via:

GetPrivateZonesZoneArray{ GetPrivateZonesZoneArgs{...} }

type GetPrivateZonesZoneArrayOutput added in v2.10.0

type GetPrivateZonesZoneArrayOutput struct{ *pulumi.OutputState }

func (GetPrivateZonesZoneArrayOutput) ElementType added in v2.10.0

func (GetPrivateZonesZoneArrayOutput) Index added in v2.10.0

func (GetPrivateZonesZoneArrayOutput) ToGetPrivateZonesZoneArrayOutput added in v2.10.0

func (o GetPrivateZonesZoneArrayOutput) ToGetPrivateZonesZoneArrayOutput() GetPrivateZonesZoneArrayOutput

func (GetPrivateZonesZoneArrayOutput) ToGetPrivateZonesZoneArrayOutputWithContext added in v2.10.0

func (o GetPrivateZonesZoneArrayOutput) ToGetPrivateZonesZoneArrayOutputWithContext(ctx context.Context) GetPrivateZonesZoneArrayOutput

type GetPrivateZonesZoneInput added in v2.10.0

type GetPrivateZonesZoneInput interface {
	pulumi.Input

	ToGetPrivateZonesZoneOutput() GetPrivateZonesZoneOutput
	ToGetPrivateZonesZoneOutputWithContext(context.Context) GetPrivateZonesZoneOutput
}

GetPrivateZonesZoneInput is an input type that accepts GetPrivateZonesZoneArgs and GetPrivateZonesZoneOutput values. You can construct a concrete instance of `GetPrivateZonesZoneInput` via:

GetPrivateZonesZoneArgs{...}

type GetPrivateZonesZoneOutput added in v2.10.0

type GetPrivateZonesZoneOutput struct{ *pulumi.OutputState }

func (GetPrivateZonesZoneOutput) AccessRegionId added in v2.10.0

func (o GetPrivateZonesZoneOutput) AccessRegionId() pulumi.StringOutput

The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.

func (GetPrivateZonesZoneOutput) CenId added in v2.10.0

The ID of the CEN instance.

func (GetPrivateZonesZoneOutput) ElementType added in v2.10.0

func (GetPrivateZonesZoneOutput) ElementType() reflect.Type

func (GetPrivateZonesZoneOutput) HostRegionId added in v2.10.0

The service region. The service region is the target region of the PrivateZone service accessed through CEN.

func (GetPrivateZonesZoneOutput) HostVpcId added in v2.10.0

The VPC that belongs to the service region.

func (GetPrivateZonesZoneOutput) PrivateZoneDnsServers added in v2.10.0

func (o GetPrivateZonesZoneOutput) PrivateZoneDnsServers() pulumi.StringOutput

The DNS IP addresses of the PrivateZone service.

func (GetPrivateZonesZoneOutput) Status added in v2.10.0

The status of the PrivateZone service, including `Creating`, `Active` and `Deleting`.

func (GetPrivateZonesZoneOutput) ToGetPrivateZonesZoneOutput added in v2.10.0

func (o GetPrivateZonesZoneOutput) ToGetPrivateZonesZoneOutput() GetPrivateZonesZoneOutput

func (GetPrivateZonesZoneOutput) ToGetPrivateZonesZoneOutputWithContext added in v2.10.0

func (o GetPrivateZonesZoneOutput) ToGetPrivateZonesZoneOutputWithContext(ctx context.Context) GetPrivateZonesZoneOutput

type GetRegionRouteEntriesArgs

type GetRegionRouteEntriesArgs struct {
	// ID of the CEN instance.
	InstanceId string  `pulumi:"instanceId"`
	OutputFile *string `pulumi:"outputFile"`
	// ID of the region.
	RegionId string `pulumi:"regionId"`
}

A collection of arguments for invoking getRegionRouteEntries.

type GetRegionRouteEntriesEntry

type GetRegionRouteEntriesEntry struct {
	// The destination CIDR block of the route entry.
	CidrBlock string `pulumi:"cidrBlock"`
	// ID of the next hop.
	NextHopId string `pulumi:"nextHopId"`
	// ID of the region where the next hop is located.
	NextHopRegionId string `pulumi:"nextHopRegionId"`
	// Type of the next hop.
	NextHopType string `pulumi:"nextHopType"`
	// Type of the route entry.
	Type string `pulumi:"type"`
}

type GetRegionRouteEntriesEntryArgs

type GetRegionRouteEntriesEntryArgs struct {
	// The destination CIDR block of the route entry.
	CidrBlock pulumi.StringInput `pulumi:"cidrBlock"`
	// ID of the next hop.
	NextHopId pulumi.StringInput `pulumi:"nextHopId"`
	// ID of the region where the next hop is located.
	NextHopRegionId pulumi.StringInput `pulumi:"nextHopRegionId"`
	// Type of the next hop.
	NextHopType pulumi.StringInput `pulumi:"nextHopType"`
	// Type of the route entry.
	Type pulumi.StringInput `pulumi:"type"`
}

func (GetRegionRouteEntriesEntryArgs) ElementType

func (GetRegionRouteEntriesEntryArgs) ToGetRegionRouteEntriesEntryOutput

func (i GetRegionRouteEntriesEntryArgs) ToGetRegionRouteEntriesEntryOutput() GetRegionRouteEntriesEntryOutput

func (GetRegionRouteEntriesEntryArgs) ToGetRegionRouteEntriesEntryOutputWithContext

func (i GetRegionRouteEntriesEntryArgs) ToGetRegionRouteEntriesEntryOutputWithContext(ctx context.Context) GetRegionRouteEntriesEntryOutput

type GetRegionRouteEntriesEntryArray

type GetRegionRouteEntriesEntryArray []GetRegionRouteEntriesEntryInput

func (GetRegionRouteEntriesEntryArray) ElementType

func (GetRegionRouteEntriesEntryArray) ToGetRegionRouteEntriesEntryArrayOutput

func (i GetRegionRouteEntriesEntryArray) ToGetRegionRouteEntriesEntryArrayOutput() GetRegionRouteEntriesEntryArrayOutput

func (GetRegionRouteEntriesEntryArray) ToGetRegionRouteEntriesEntryArrayOutputWithContext

func (i GetRegionRouteEntriesEntryArray) ToGetRegionRouteEntriesEntryArrayOutputWithContext(ctx context.Context) GetRegionRouteEntriesEntryArrayOutput

type GetRegionRouteEntriesEntryArrayInput

type GetRegionRouteEntriesEntryArrayInput interface {
	pulumi.Input

	ToGetRegionRouteEntriesEntryArrayOutput() GetRegionRouteEntriesEntryArrayOutput
	ToGetRegionRouteEntriesEntryArrayOutputWithContext(context.Context) GetRegionRouteEntriesEntryArrayOutput
}

GetRegionRouteEntriesEntryArrayInput is an input type that accepts GetRegionRouteEntriesEntryArray and GetRegionRouteEntriesEntryArrayOutput values. You can construct a concrete instance of `GetRegionRouteEntriesEntryArrayInput` via:

GetRegionRouteEntriesEntryArray{ GetRegionRouteEntriesEntryArgs{...} }

type GetRegionRouteEntriesEntryArrayOutput

type GetRegionRouteEntriesEntryArrayOutput struct{ *pulumi.OutputState }

func (GetRegionRouteEntriesEntryArrayOutput) ElementType

func (GetRegionRouteEntriesEntryArrayOutput) Index

func (GetRegionRouteEntriesEntryArrayOutput) ToGetRegionRouteEntriesEntryArrayOutput

func (o GetRegionRouteEntriesEntryArrayOutput) ToGetRegionRouteEntriesEntryArrayOutput() GetRegionRouteEntriesEntryArrayOutput

func (GetRegionRouteEntriesEntryArrayOutput) ToGetRegionRouteEntriesEntryArrayOutputWithContext

func (o GetRegionRouteEntriesEntryArrayOutput) ToGetRegionRouteEntriesEntryArrayOutputWithContext(ctx context.Context) GetRegionRouteEntriesEntryArrayOutput

type GetRegionRouteEntriesEntryInput

type GetRegionRouteEntriesEntryInput interface {
	pulumi.Input

	ToGetRegionRouteEntriesEntryOutput() GetRegionRouteEntriesEntryOutput
	ToGetRegionRouteEntriesEntryOutputWithContext(context.Context) GetRegionRouteEntriesEntryOutput
}

GetRegionRouteEntriesEntryInput is an input type that accepts GetRegionRouteEntriesEntryArgs and GetRegionRouteEntriesEntryOutput values. You can construct a concrete instance of `GetRegionRouteEntriesEntryInput` via:

GetRegionRouteEntriesEntryArgs{...}

type GetRegionRouteEntriesEntryOutput

type GetRegionRouteEntriesEntryOutput struct{ *pulumi.OutputState }

func (GetRegionRouteEntriesEntryOutput) CidrBlock

The destination CIDR block of the route entry.

func (GetRegionRouteEntriesEntryOutput) ElementType

func (GetRegionRouteEntriesEntryOutput) NextHopId

ID of the next hop.

func (GetRegionRouteEntriesEntryOutput) NextHopRegionId

ID of the region where the next hop is located.

func (GetRegionRouteEntriesEntryOutput) NextHopType

Type of the next hop.

func (GetRegionRouteEntriesEntryOutput) ToGetRegionRouteEntriesEntryOutput

func (o GetRegionRouteEntriesEntryOutput) ToGetRegionRouteEntriesEntryOutput() GetRegionRouteEntriesEntryOutput

func (GetRegionRouteEntriesEntryOutput) ToGetRegionRouteEntriesEntryOutputWithContext

func (o GetRegionRouteEntriesEntryOutput) ToGetRegionRouteEntriesEntryOutputWithContext(ctx context.Context) GetRegionRouteEntriesEntryOutput

func (GetRegionRouteEntriesEntryOutput) Type

Type of the route entry.

type GetRegionRouteEntriesResult

type GetRegionRouteEntriesResult struct {
	// A list of CEN Route Entries. Each element contains the following attributes:
	Entries []GetRegionRouteEntriesEntry `pulumi:"entries"`
	// The provider-assigned unique ID for this managed resource.
	Id         string  `pulumi:"id"`
	InstanceId string  `pulumi:"instanceId"`
	OutputFile *string `pulumi:"outputFile"`
	RegionId   string  `pulumi:"regionId"`
}

A collection of values returned by getRegionRouteEntries.

func GetRegionRouteEntries

func GetRegionRouteEntries(ctx *pulumi.Context, args *GetRegionRouteEntriesArgs, opts ...pulumi.InvokeOption) (*GetRegionRouteEntriesResult, error)

This data source provides CEN Regional Route Entries available to the user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		entry, err := cen.GetRegionRouteEntries(ctx, &cen.GetRegionRouteEntriesArgs{
			InstanceId: "cen-id1",
			RegionId:   "cn-beijing",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstRegionRouteEntriesRouteEntryCidrBlock", entry.Entries[0].CidrBlock)
		return nil
	})
}

```

type GetRouteEntriesArgs

type GetRouteEntriesArgs struct {
	// The destination CIDR block of the route entry to query.
	CidrBlock *string `pulumi:"cidrBlock"`
	// ID of the CEN instance.
	InstanceId string  `pulumi:"instanceId"`
	OutputFile *string `pulumi:"outputFile"`
	// ID of the route table of the VPC or VBR.
	RouteTableId string `pulumi:"routeTableId"`
}

A collection of arguments for invoking getRouteEntries.

type GetRouteEntriesEntry

type GetRouteEntriesEntry struct {
	// The destination CIDR block of the route entry to query.
	CidrBlock string `pulumi:"cidrBlock"`
	// A list of conflicted Route Entries. Each element contains the following attributes:
	Conflicts []GetRouteEntriesEntryConflict `pulumi:"conflicts"`
	// ID of the next hop.
	NextHopId string `pulumi:"nextHopId"`
	// Type of the next hop, including "Instance", "HaVip" and "RouterInterface".
	NextHopType string `pulumi:"nextHopType"`
	// Whether to allow the route entry to be published or removed to or from CEN.
	OperationalMode bool `pulumi:"operationalMode"`
	// The publish status of the route entry in CEN, including "Published" and "NonPublished".
	PublishStatus string `pulumi:"publishStatus"`
	// ID of the route table of the VPC or VBR.
	RouteTableId string `pulumi:"routeTableId"`
	// Type of the route entry, including "System", "Custom" and "BGP".
	RouteType string `pulumi:"routeType"`
}

type GetRouteEntriesEntryArgs

type GetRouteEntriesEntryArgs struct {
	// The destination CIDR block of the route entry to query.
	CidrBlock pulumi.StringInput `pulumi:"cidrBlock"`
	// A list of conflicted Route Entries. Each element contains the following attributes:
	Conflicts GetRouteEntriesEntryConflictArrayInput `pulumi:"conflicts"`
	// ID of the next hop.
	NextHopId pulumi.StringInput `pulumi:"nextHopId"`
	// Type of the next hop, including "Instance", "HaVip" and "RouterInterface".
	NextHopType pulumi.StringInput `pulumi:"nextHopType"`
	// Whether to allow the route entry to be published or removed to or from CEN.
	OperationalMode pulumi.BoolInput `pulumi:"operationalMode"`
	// The publish status of the route entry in CEN, including "Published" and "NonPublished".
	PublishStatus pulumi.StringInput `pulumi:"publishStatus"`
	// ID of the route table of the VPC or VBR.
	RouteTableId pulumi.StringInput `pulumi:"routeTableId"`
	// Type of the route entry, including "System", "Custom" and "BGP".
	RouteType pulumi.StringInput `pulumi:"routeType"`
}

func (GetRouteEntriesEntryArgs) ElementType

func (GetRouteEntriesEntryArgs) ElementType() reflect.Type

func (GetRouteEntriesEntryArgs) ToGetRouteEntriesEntryOutput

func (i GetRouteEntriesEntryArgs) ToGetRouteEntriesEntryOutput() GetRouteEntriesEntryOutput

func (GetRouteEntriesEntryArgs) ToGetRouteEntriesEntryOutputWithContext

func (i GetRouteEntriesEntryArgs) ToGetRouteEntriesEntryOutputWithContext(ctx context.Context) GetRouteEntriesEntryOutput

type GetRouteEntriesEntryArray

type GetRouteEntriesEntryArray []GetRouteEntriesEntryInput

func (GetRouteEntriesEntryArray) ElementType

func (GetRouteEntriesEntryArray) ElementType() reflect.Type

func (GetRouteEntriesEntryArray) ToGetRouteEntriesEntryArrayOutput

func (i GetRouteEntriesEntryArray) ToGetRouteEntriesEntryArrayOutput() GetRouteEntriesEntryArrayOutput

func (GetRouteEntriesEntryArray) ToGetRouteEntriesEntryArrayOutputWithContext

func (i GetRouteEntriesEntryArray) ToGetRouteEntriesEntryArrayOutputWithContext(ctx context.Context) GetRouteEntriesEntryArrayOutput

type GetRouteEntriesEntryArrayInput

type GetRouteEntriesEntryArrayInput interface {
	pulumi.Input

	ToGetRouteEntriesEntryArrayOutput() GetRouteEntriesEntryArrayOutput
	ToGetRouteEntriesEntryArrayOutputWithContext(context.Context) GetRouteEntriesEntryArrayOutput
}

GetRouteEntriesEntryArrayInput is an input type that accepts GetRouteEntriesEntryArray and GetRouteEntriesEntryArrayOutput values. You can construct a concrete instance of `GetRouteEntriesEntryArrayInput` via:

GetRouteEntriesEntryArray{ GetRouteEntriesEntryArgs{...} }

type GetRouteEntriesEntryArrayOutput

type GetRouteEntriesEntryArrayOutput struct{ *pulumi.OutputState }

func (GetRouteEntriesEntryArrayOutput) ElementType

func (GetRouteEntriesEntryArrayOutput) Index

func (GetRouteEntriesEntryArrayOutput) ToGetRouteEntriesEntryArrayOutput

func (o GetRouteEntriesEntryArrayOutput) ToGetRouteEntriesEntryArrayOutput() GetRouteEntriesEntryArrayOutput

func (GetRouteEntriesEntryArrayOutput) ToGetRouteEntriesEntryArrayOutputWithContext

func (o GetRouteEntriesEntryArrayOutput) ToGetRouteEntriesEntryArrayOutputWithContext(ctx context.Context) GetRouteEntriesEntryArrayOutput

type GetRouteEntriesEntryConflict

type GetRouteEntriesEntryConflict struct {
	// The destination CIDR block of the route entry to query.
	CidrBlock string `pulumi:"cidrBlock"`
	// ID of the CEN instance.
	InstanceId string `pulumi:"instanceId"`
	// The type of the CEN child instance.
	InstanceType string `pulumi:"instanceType"`
	// ID of the region where the conflicted route entry is located.
	RegionId string `pulumi:"regionId"`
	// Reasons of exceptions.
	Status string `pulumi:"status"`
}

type GetRouteEntriesEntryConflictArgs

type GetRouteEntriesEntryConflictArgs struct {
	// The destination CIDR block of the route entry to query.
	CidrBlock pulumi.StringInput `pulumi:"cidrBlock"`
	// ID of the CEN instance.
	InstanceId pulumi.StringInput `pulumi:"instanceId"`
	// The type of the CEN child instance.
	InstanceType pulumi.StringInput `pulumi:"instanceType"`
	// ID of the region where the conflicted route entry is located.
	RegionId pulumi.StringInput `pulumi:"regionId"`
	// Reasons of exceptions.
	Status pulumi.StringInput `pulumi:"status"`
}

func (GetRouteEntriesEntryConflictArgs) ElementType

func (GetRouteEntriesEntryConflictArgs) ToGetRouteEntriesEntryConflictOutput

func (i GetRouteEntriesEntryConflictArgs) ToGetRouteEntriesEntryConflictOutput() GetRouteEntriesEntryConflictOutput

func (GetRouteEntriesEntryConflictArgs) ToGetRouteEntriesEntryConflictOutputWithContext

func (i GetRouteEntriesEntryConflictArgs) ToGetRouteEntriesEntryConflictOutputWithContext(ctx context.Context) GetRouteEntriesEntryConflictOutput

type GetRouteEntriesEntryConflictArray

type GetRouteEntriesEntryConflictArray []GetRouteEntriesEntryConflictInput

func (GetRouteEntriesEntryConflictArray) ElementType

func (GetRouteEntriesEntryConflictArray) ToGetRouteEntriesEntryConflictArrayOutput

func (i GetRouteEntriesEntryConflictArray) ToGetRouteEntriesEntryConflictArrayOutput() GetRouteEntriesEntryConflictArrayOutput

func (GetRouteEntriesEntryConflictArray) ToGetRouteEntriesEntryConflictArrayOutputWithContext

func (i GetRouteEntriesEntryConflictArray) ToGetRouteEntriesEntryConflictArrayOutputWithContext(ctx context.Context) GetRouteEntriesEntryConflictArrayOutput

type GetRouteEntriesEntryConflictArrayInput

type GetRouteEntriesEntryConflictArrayInput interface {
	pulumi.Input

	ToGetRouteEntriesEntryConflictArrayOutput() GetRouteEntriesEntryConflictArrayOutput
	ToGetRouteEntriesEntryConflictArrayOutputWithContext(context.Context) GetRouteEntriesEntryConflictArrayOutput
}

GetRouteEntriesEntryConflictArrayInput is an input type that accepts GetRouteEntriesEntryConflictArray and GetRouteEntriesEntryConflictArrayOutput values. You can construct a concrete instance of `GetRouteEntriesEntryConflictArrayInput` via:

GetRouteEntriesEntryConflictArray{ GetRouteEntriesEntryConflictArgs{...} }

type GetRouteEntriesEntryConflictArrayOutput

type GetRouteEntriesEntryConflictArrayOutput struct{ *pulumi.OutputState }

func (GetRouteEntriesEntryConflictArrayOutput) ElementType

func (GetRouteEntriesEntryConflictArrayOutput) Index

func (GetRouteEntriesEntryConflictArrayOutput) ToGetRouteEntriesEntryConflictArrayOutput

func (o GetRouteEntriesEntryConflictArrayOutput) ToGetRouteEntriesEntryConflictArrayOutput() GetRouteEntriesEntryConflictArrayOutput

func (GetRouteEntriesEntryConflictArrayOutput) ToGetRouteEntriesEntryConflictArrayOutputWithContext

func (o GetRouteEntriesEntryConflictArrayOutput) ToGetRouteEntriesEntryConflictArrayOutputWithContext(ctx context.Context) GetRouteEntriesEntryConflictArrayOutput

type GetRouteEntriesEntryConflictInput

type GetRouteEntriesEntryConflictInput interface {
	pulumi.Input

	ToGetRouteEntriesEntryConflictOutput() GetRouteEntriesEntryConflictOutput
	ToGetRouteEntriesEntryConflictOutputWithContext(context.Context) GetRouteEntriesEntryConflictOutput
}

GetRouteEntriesEntryConflictInput is an input type that accepts GetRouteEntriesEntryConflictArgs and GetRouteEntriesEntryConflictOutput values. You can construct a concrete instance of `GetRouteEntriesEntryConflictInput` via:

GetRouteEntriesEntryConflictArgs{...}

type GetRouteEntriesEntryConflictOutput

type GetRouteEntriesEntryConflictOutput struct{ *pulumi.OutputState }

func (GetRouteEntriesEntryConflictOutput) CidrBlock

The destination CIDR block of the route entry to query.

func (GetRouteEntriesEntryConflictOutput) ElementType

func (GetRouteEntriesEntryConflictOutput) InstanceId

ID of the CEN instance.

func (GetRouteEntriesEntryConflictOutput) InstanceType

The type of the CEN child instance.

func (GetRouteEntriesEntryConflictOutput) RegionId

ID of the region where the conflicted route entry is located.

func (GetRouteEntriesEntryConflictOutput) Status

Reasons of exceptions.

func (GetRouteEntriesEntryConflictOutput) ToGetRouteEntriesEntryConflictOutput

func (o GetRouteEntriesEntryConflictOutput) ToGetRouteEntriesEntryConflictOutput() GetRouteEntriesEntryConflictOutput

func (GetRouteEntriesEntryConflictOutput) ToGetRouteEntriesEntryConflictOutputWithContext

func (o GetRouteEntriesEntryConflictOutput) ToGetRouteEntriesEntryConflictOutputWithContext(ctx context.Context) GetRouteEntriesEntryConflictOutput

type GetRouteEntriesEntryInput

type GetRouteEntriesEntryInput interface {
	pulumi.Input

	ToGetRouteEntriesEntryOutput() GetRouteEntriesEntryOutput
	ToGetRouteEntriesEntryOutputWithContext(context.Context) GetRouteEntriesEntryOutput
}

GetRouteEntriesEntryInput is an input type that accepts GetRouteEntriesEntryArgs and GetRouteEntriesEntryOutput values. You can construct a concrete instance of `GetRouteEntriesEntryInput` via:

GetRouteEntriesEntryArgs{...}

type GetRouteEntriesEntryOutput

type GetRouteEntriesEntryOutput struct{ *pulumi.OutputState }

func (GetRouteEntriesEntryOutput) CidrBlock

The destination CIDR block of the route entry to query.

func (GetRouteEntriesEntryOutput) Conflicts

A list of conflicted Route Entries. Each element contains the following attributes:

func (GetRouteEntriesEntryOutput) ElementType

func (GetRouteEntriesEntryOutput) ElementType() reflect.Type

func (GetRouteEntriesEntryOutput) NextHopId

ID of the next hop.

func (GetRouteEntriesEntryOutput) NextHopType

Type of the next hop, including "Instance", "HaVip" and "RouterInterface".

func (GetRouteEntriesEntryOutput) OperationalMode

func (o GetRouteEntriesEntryOutput) OperationalMode() pulumi.BoolOutput

Whether to allow the route entry to be published or removed to or from CEN.

func (GetRouteEntriesEntryOutput) PublishStatus

The publish status of the route entry in CEN, including "Published" and "NonPublished".

func (GetRouteEntriesEntryOutput) RouteTableId

ID of the route table of the VPC or VBR.

func (GetRouteEntriesEntryOutput) RouteType

Type of the route entry, including "System", "Custom" and "BGP".

func (GetRouteEntriesEntryOutput) ToGetRouteEntriesEntryOutput

func (o GetRouteEntriesEntryOutput) ToGetRouteEntriesEntryOutput() GetRouteEntriesEntryOutput

func (GetRouteEntriesEntryOutput) ToGetRouteEntriesEntryOutputWithContext

func (o GetRouteEntriesEntryOutput) ToGetRouteEntriesEntryOutputWithContext(ctx context.Context) GetRouteEntriesEntryOutput

type GetRouteEntriesResult

type GetRouteEntriesResult struct {
	// The destination CIDR block of the conflicted route entry.
	CidrBlock *string `pulumi:"cidrBlock"`
	// A list of CEN Route Entries. Each element contains the following attributes:
	Entries []GetRouteEntriesEntry `pulumi:"entries"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// ID of the CEN child instance.
	InstanceId string  `pulumi:"instanceId"`
	OutputFile *string `pulumi:"outputFile"`
	// ID of the route table.
	RouteTableId string `pulumi:"routeTableId"`
}

A collection of values returned by getRouteEntries.

func GetRouteEntries

func GetRouteEntries(ctx *pulumi.Context, args *GetRouteEntriesArgs, opts ...pulumi.InvokeOption) (*GetRouteEntriesResult, error)

This data source provides CEN Route Entries available to the user.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		entry, err := cen.GetRouteEntries(ctx, &cen.GetRouteEntriesArgs{
			InstanceId:   "cen-id1",
			RouteTableId: "vtb-id1",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstRouteEntriesRouteEntryCidrBlock", entry.Entries[0].CidrBlock)
		return nil
	})
}

```

type GetRouteMapsArgs added in v2.9.0

type GetRouteMapsArgs struct {
	// The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// The ID of the region to which the CEN instance belongs.
	CenRegionId *string `pulumi:"cenRegionId"`
	// A regex string to filter CEN route map by description.
	DescriptionRegex *string `pulumi:"descriptionRegex"`
	// A list of CEN route map IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the route map, including `Creating`, `Active` and `Deleting`.
	Status *string `pulumi:"status"`
	// The direction in which the route map is applied, including `RegionIn` and `RegionOut`.
	TransmitDirection *string `pulumi:"transmitDirection"`
}

A collection of arguments for invoking getRouteMaps.

type GetRouteMapsMap added in v2.9.0

type GetRouteMapsMap struct {
	// A match statement. It indicates the mode in which the as-path attribute is matched.
	AsPathMatchMode string `pulumi:"asPathMatchMode"`
	// The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// The ID of the region to which the CEN instance belongs.
	CenRegionId string `pulumi:"cenRegionId"`
	// A match statement. It indicates the mode in which the prefix attribute is matched.
	CidrMatchMode string `pulumi:"cidrMatchMode"`
	// A match statement. It indicates the mode in which the community attribute is matched.
	CommunityMatchMode string `pulumi:"communityMatchMode"`
	// An action statement. It indicates the mode in which the community attribute is operated.
	CommunityOperateMode string `pulumi:"communityOperateMode"`
	// The description of the route map.
	Description string `pulumi:"description"`
	// A match statement that indicates the list of IDs of the destination instances.
	DestinationChildInstanceTypes []string `pulumi:"destinationChildInstanceTypes"`
	// A match statement that indicates the prefix list.
	DestinationCidrBlocks []string `pulumi:"destinationCidrBlocks"`
	// A match statement that indicates the list of IDs of the destination instances.
	DestinationInstanceIds []string `pulumi:"destinationInstanceIds"`
	// Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.
	DestinationInstanceIdsReverseMatch bool `pulumi:"destinationInstanceIdsReverseMatch"`
	// A match statement that indicates the list of IDs of the destination route tables.
	DestinationRouteTableIds []string `pulumi:"destinationRouteTableIds"`
	// The ID of the route map.
	Id string `pulumi:"id"`
	// The action that is performed to a route if the route meets all the match conditions.
	MapResult string `pulumi:"mapResult"`
	// A match statement that indicates the As path list.
	MatchAsns []string `pulumi:"matchAsns"`
	// A match statement that indicates the community set.
	MatchCommunitySets []string `pulumi:"matchCommunitySets"`
	// The priority of the next route map that is associated with the current route map.
	NextPriority int `pulumi:"nextPriority"`
	// An action statement that operates the community attribute.
	OperateCommunitySets []string `pulumi:"operateCommunitySets"`
	// An action statement that modifies the preference of the route.
	Preference int `pulumi:"preference"`
	// Indicates AS Path prepending when a regional gateway receives or publishes a route.
	PrependAsPaths []string `pulumi:"prependAsPaths"`
	// The priority of the route map.
	Priority int `pulumi:"priority"`
	// The ID of the route map.
	RouteMapId string `pulumi:"routeMapId"`
	// A match statement that indicates the list of route types.
	RouteTypes []string `pulumi:"routeTypes"`
	// A match statement that indicates the list of IDs of the source instances.
	SourceChildInstanceTypes []string `pulumi:"sourceChildInstanceTypes"`
	// A match statement that indicates the list of IDs of the source instances.
	SourceInstanceIds []string `pulumi:"sourceInstanceIds"`
	// Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.
	SourceInstanceIdsReverseMatch bool `pulumi:"sourceInstanceIdsReverseMatch"`
	// A match statement that indicates the list of IDs of the source regions.
	SourceRegionIds []string `pulumi:"sourceRegionIds"`
	// A match statement that indicates the list of IDs of the source route tables.
	SourceRouteTableIds []string `pulumi:"sourceRouteTableIds"`
	// The status of the route map, including `Creating`, `Active` and `Deleting`.
	Status string `pulumi:"status"`
	// The direction in which the route map is applied, including `RegionIn` and `RegionOut`.
	TransmitDirection string `pulumi:"transmitDirection"`
}

type GetRouteMapsMapArgs added in v2.9.0

type GetRouteMapsMapArgs struct {
	// A match statement. It indicates the mode in which the as-path attribute is matched.
	AsPathMatchMode pulumi.StringInput `pulumi:"asPathMatchMode"`
	// The ID of the CEN instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// The ID of the region to which the CEN instance belongs.
	CenRegionId pulumi.StringInput `pulumi:"cenRegionId"`
	// A match statement. It indicates the mode in which the prefix attribute is matched.
	CidrMatchMode pulumi.StringInput `pulumi:"cidrMatchMode"`
	// A match statement. It indicates the mode in which the community attribute is matched.
	CommunityMatchMode pulumi.StringInput `pulumi:"communityMatchMode"`
	// An action statement. It indicates the mode in which the community attribute is operated.
	CommunityOperateMode pulumi.StringInput `pulumi:"communityOperateMode"`
	// The description of the route map.
	Description pulumi.StringInput `pulumi:"description"`
	// A match statement that indicates the list of IDs of the destination instances.
	DestinationChildInstanceTypes pulumi.StringArrayInput `pulumi:"destinationChildInstanceTypes"`
	// A match statement that indicates the prefix list.
	DestinationCidrBlocks pulumi.StringArrayInput `pulumi:"destinationCidrBlocks"`
	// A match statement that indicates the list of IDs of the destination instances.
	DestinationInstanceIds pulumi.StringArrayInput `pulumi:"destinationInstanceIds"`
	// Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.
	DestinationInstanceIdsReverseMatch pulumi.BoolInput `pulumi:"destinationInstanceIdsReverseMatch"`
	// A match statement that indicates the list of IDs of the destination route tables.
	DestinationRouteTableIds pulumi.StringArrayInput `pulumi:"destinationRouteTableIds"`
	// The ID of the route map.
	Id pulumi.StringInput `pulumi:"id"`
	// The action that is performed to a route if the route meets all the match conditions.
	MapResult pulumi.StringInput `pulumi:"mapResult"`
	// A match statement that indicates the As path list.
	MatchAsns pulumi.StringArrayInput `pulumi:"matchAsns"`
	// A match statement that indicates the community set.
	MatchCommunitySets pulumi.StringArrayInput `pulumi:"matchCommunitySets"`
	// The priority of the next route map that is associated with the current route map.
	NextPriority pulumi.IntInput `pulumi:"nextPriority"`
	// An action statement that operates the community attribute.
	OperateCommunitySets pulumi.StringArrayInput `pulumi:"operateCommunitySets"`
	// An action statement that modifies the preference of the route.
	Preference pulumi.IntInput `pulumi:"preference"`
	// Indicates AS Path prepending when a regional gateway receives or publishes a route.
	PrependAsPaths pulumi.StringArrayInput `pulumi:"prependAsPaths"`
	// The priority of the route map.
	Priority pulumi.IntInput `pulumi:"priority"`
	// The ID of the route map.
	RouteMapId pulumi.StringInput `pulumi:"routeMapId"`
	// A match statement that indicates the list of route types.
	RouteTypes pulumi.StringArrayInput `pulumi:"routeTypes"`
	// A match statement that indicates the list of IDs of the source instances.
	SourceChildInstanceTypes pulumi.StringArrayInput `pulumi:"sourceChildInstanceTypes"`
	// A match statement that indicates the list of IDs of the source instances.
	SourceInstanceIds pulumi.StringArrayInput `pulumi:"sourceInstanceIds"`
	// Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.
	SourceInstanceIdsReverseMatch pulumi.BoolInput `pulumi:"sourceInstanceIdsReverseMatch"`
	// A match statement that indicates the list of IDs of the source regions.
	SourceRegionIds pulumi.StringArrayInput `pulumi:"sourceRegionIds"`
	// A match statement that indicates the list of IDs of the source route tables.
	SourceRouteTableIds pulumi.StringArrayInput `pulumi:"sourceRouteTableIds"`
	// The status of the route map, including `Creating`, `Active` and `Deleting`.
	Status pulumi.StringInput `pulumi:"status"`
	// The direction in which the route map is applied, including `RegionIn` and `RegionOut`.
	TransmitDirection pulumi.StringInput `pulumi:"transmitDirection"`
}

func (GetRouteMapsMapArgs) ElementType added in v2.9.0

func (GetRouteMapsMapArgs) ElementType() reflect.Type

func (GetRouteMapsMapArgs) ToGetRouteMapsMapOutput added in v2.9.0

func (i GetRouteMapsMapArgs) ToGetRouteMapsMapOutput() GetRouteMapsMapOutput

func (GetRouteMapsMapArgs) ToGetRouteMapsMapOutputWithContext added in v2.9.0

func (i GetRouteMapsMapArgs) ToGetRouteMapsMapOutputWithContext(ctx context.Context) GetRouteMapsMapOutput

type GetRouteMapsMapArray added in v2.9.0

type GetRouteMapsMapArray []GetRouteMapsMapInput

func (GetRouteMapsMapArray) ElementType added in v2.9.0

func (GetRouteMapsMapArray) ElementType() reflect.Type

func (GetRouteMapsMapArray) ToGetRouteMapsMapArrayOutput added in v2.9.0

func (i GetRouteMapsMapArray) ToGetRouteMapsMapArrayOutput() GetRouteMapsMapArrayOutput

func (GetRouteMapsMapArray) ToGetRouteMapsMapArrayOutputWithContext added in v2.9.0

func (i GetRouteMapsMapArray) ToGetRouteMapsMapArrayOutputWithContext(ctx context.Context) GetRouteMapsMapArrayOutput

type GetRouteMapsMapArrayInput added in v2.9.0

type GetRouteMapsMapArrayInput interface {
	pulumi.Input

	ToGetRouteMapsMapArrayOutput() GetRouteMapsMapArrayOutput
	ToGetRouteMapsMapArrayOutputWithContext(context.Context) GetRouteMapsMapArrayOutput
}

GetRouteMapsMapArrayInput is an input type that accepts GetRouteMapsMapArray and GetRouteMapsMapArrayOutput values. You can construct a concrete instance of `GetRouteMapsMapArrayInput` via:

GetRouteMapsMapArray{ GetRouteMapsMap{ "key": GetRouteMapsArgs{...} } }

type GetRouteMapsMapArrayOutput added in v2.9.0

type GetRouteMapsMapArrayOutput struct{ *pulumi.OutputState }

func (GetRouteMapsMapArrayOutput) ElementType added in v2.9.0

func (GetRouteMapsMapArrayOutput) ElementType() reflect.Type

func (GetRouteMapsMapArrayOutput) Index added in v2.9.0

func (GetRouteMapsMapArrayOutput) ToGetRouteMapsMapArrayOutput added in v2.9.0

func (o GetRouteMapsMapArrayOutput) ToGetRouteMapsMapArrayOutput() GetRouteMapsMapArrayOutput

func (GetRouteMapsMapArrayOutput) ToGetRouteMapsMapArrayOutputWithContext added in v2.9.0

func (o GetRouteMapsMapArrayOutput) ToGetRouteMapsMapArrayOutputWithContext(ctx context.Context) GetRouteMapsMapArrayOutput

type GetRouteMapsMapInput added in v2.9.0

type GetRouteMapsMapInput interface {
	pulumi.Input

	ToGetRouteMapsMapOutput() GetRouteMapsMapOutput
	ToGetRouteMapsMapOutputWithContext(context.Context) GetRouteMapsMapOutput
}

GetRouteMapsMapInput is an input type that accepts GetRouteMapsMap and GetRouteMapsMapOutput values. You can construct a concrete instance of `GetRouteMapsMapInput` via:

GetRouteMapsMap{ "key": GetRouteMapsArgs{...} }

type GetRouteMapsMapOutput added in v2.9.0

type GetRouteMapsMapOutput struct{ *pulumi.OutputState }

func (GetRouteMapsMapOutput) AsPathMatchMode added in v2.9.0

func (o GetRouteMapsMapOutput) AsPathMatchMode() pulumi.StringOutput

A match statement. It indicates the mode in which the as-path attribute is matched.

func (GetRouteMapsMapOutput) CenId added in v2.9.0

The ID of the CEN instance.

func (GetRouteMapsMapOutput) CenRegionId added in v2.9.0

func (o GetRouteMapsMapOutput) CenRegionId() pulumi.StringOutput

The ID of the region to which the CEN instance belongs.

func (GetRouteMapsMapOutput) CidrMatchMode added in v2.9.0

func (o GetRouteMapsMapOutput) CidrMatchMode() pulumi.StringOutput

A match statement. It indicates the mode in which the prefix attribute is matched.

func (GetRouteMapsMapOutput) CommunityMatchMode added in v2.9.0

func (o GetRouteMapsMapOutput) CommunityMatchMode() pulumi.StringOutput

A match statement. It indicates the mode in which the community attribute is matched.

func (GetRouteMapsMapOutput) CommunityOperateMode added in v2.9.0

func (o GetRouteMapsMapOutput) CommunityOperateMode() pulumi.StringOutput

An action statement. It indicates the mode in which the community attribute is operated.

func (GetRouteMapsMapOutput) Description added in v2.9.0

func (o GetRouteMapsMapOutput) Description() pulumi.StringOutput

The description of the route map.

func (GetRouteMapsMapOutput) DestinationChildInstanceTypes added in v2.9.0

func (o GetRouteMapsMapOutput) DestinationChildInstanceTypes() pulumi.StringArrayOutput

A match statement that indicates the list of IDs of the destination instances.

func (GetRouteMapsMapOutput) DestinationCidrBlocks added in v2.9.0

func (o GetRouteMapsMapOutput) DestinationCidrBlocks() pulumi.StringArrayOutput

A match statement that indicates the prefix list.

func (GetRouteMapsMapOutput) DestinationInstanceIds added in v2.9.0

func (o GetRouteMapsMapOutput) DestinationInstanceIds() pulumi.StringArrayOutput

A match statement that indicates the list of IDs of the destination instances.

func (GetRouteMapsMapOutput) DestinationInstanceIdsReverseMatch added in v2.9.0

func (o GetRouteMapsMapOutput) DestinationInstanceIdsReverseMatch() pulumi.BoolOutput

Indicates whether to enable the reverse match method of the DestinationInstanceIds match condition.

func (GetRouteMapsMapOutput) DestinationRouteTableIds added in v2.9.0

func (o GetRouteMapsMapOutput) DestinationRouteTableIds() pulumi.StringArrayOutput

A match statement that indicates the list of IDs of the destination route tables.

func (GetRouteMapsMapOutput) ElementType added in v2.9.0

func (GetRouteMapsMapOutput) ElementType() reflect.Type

func (GetRouteMapsMapOutput) Id added in v2.9.0

The ID of the route map.

func (GetRouteMapsMapOutput) MapResult added in v2.9.0

The action that is performed to a route if the route meets all the match conditions.

func (GetRouteMapsMapOutput) MatchAsns added in v2.9.0

A match statement that indicates the As path list.

func (GetRouteMapsMapOutput) MatchCommunitySets added in v2.9.0

func (o GetRouteMapsMapOutput) MatchCommunitySets() pulumi.StringArrayOutput

A match statement that indicates the community set.

func (GetRouteMapsMapOutput) NextPriority added in v2.9.0

func (o GetRouteMapsMapOutput) NextPriority() pulumi.IntOutput

The priority of the next route map that is associated with the current route map.

func (GetRouteMapsMapOutput) OperateCommunitySets added in v2.9.0

func (o GetRouteMapsMapOutput) OperateCommunitySets() pulumi.StringArrayOutput

An action statement that operates the community attribute.

func (GetRouteMapsMapOutput) Preference added in v2.9.0

func (o GetRouteMapsMapOutput) Preference() pulumi.IntOutput

An action statement that modifies the preference of the route.

func (GetRouteMapsMapOutput) PrependAsPaths added in v2.9.0

func (o GetRouteMapsMapOutput) PrependAsPaths() pulumi.StringArrayOutput

Indicates AS Path prepending when a regional gateway receives or publishes a route.

func (GetRouteMapsMapOutput) Priority added in v2.9.0

func (o GetRouteMapsMapOutput) Priority() pulumi.IntOutput

The priority of the route map.

func (GetRouteMapsMapOutput) RouteMapId added in v2.9.0

func (o GetRouteMapsMapOutput) RouteMapId() pulumi.StringOutput

The ID of the route map.

func (GetRouteMapsMapOutput) RouteTypes added in v2.9.0

A match statement that indicates the list of route types.

func (GetRouteMapsMapOutput) SourceChildInstanceTypes added in v2.9.0

func (o GetRouteMapsMapOutput) SourceChildInstanceTypes() pulumi.StringArrayOutput

A match statement that indicates the list of IDs of the source instances.

func (GetRouteMapsMapOutput) SourceInstanceIds added in v2.9.0

func (o GetRouteMapsMapOutput) SourceInstanceIds() pulumi.StringArrayOutput

A match statement that indicates the list of IDs of the source instances.

func (GetRouteMapsMapOutput) SourceInstanceIdsReverseMatch added in v2.9.0

func (o GetRouteMapsMapOutput) SourceInstanceIdsReverseMatch() pulumi.BoolOutput

Indicates whether to enable the reverse match method of the SourceInstanceIds match condition.

func (GetRouteMapsMapOutput) SourceRegionIds added in v2.9.0

func (o GetRouteMapsMapOutput) SourceRegionIds() pulumi.StringArrayOutput

A match statement that indicates the list of IDs of the source regions.

func (GetRouteMapsMapOutput) SourceRouteTableIds added in v2.9.0

func (o GetRouteMapsMapOutput) SourceRouteTableIds() pulumi.StringArrayOutput

A match statement that indicates the list of IDs of the source route tables.

func (GetRouteMapsMapOutput) Status added in v2.9.0

The status of the route map, including `Creating`, `Active` and `Deleting`.

func (GetRouteMapsMapOutput) ToGetRouteMapsMapOutput added in v2.9.0

func (o GetRouteMapsMapOutput) ToGetRouteMapsMapOutput() GetRouteMapsMapOutput

func (GetRouteMapsMapOutput) ToGetRouteMapsMapOutputWithContext added in v2.9.0

func (o GetRouteMapsMapOutput) ToGetRouteMapsMapOutputWithContext(ctx context.Context) GetRouteMapsMapOutput

func (GetRouteMapsMapOutput) TransmitDirection added in v2.9.0

func (o GetRouteMapsMapOutput) TransmitDirection() pulumi.StringOutput

The direction in which the route map is applied, including `RegionIn` and `RegionOut`.

type GetRouteMapsResult added in v2.9.0

type GetRouteMapsResult struct {
	// The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// The ID of the region to which the CEN instance belongs.
	CenRegionId      *string `pulumi:"cenRegionId"`
	DescriptionRegex *string `pulumi:"descriptionRegex"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN route map IDs.
	Ids []string `pulumi:"ids"`
	// A list of CEN instances. Each element contains the following attributes:
	Maps       []GetRouteMapsMap `pulumi:"maps"`
	OutputFile *string           `pulumi:"outputFile"`
	// The status of the route map.
	Status *string `pulumi:"status"`
	// The direction in which the route map is applied.
	TransmitDirection *string `pulumi:"transmitDirection"`
}

A collection of values returned by getRouteMaps.

func GetRouteMaps added in v2.9.0

func GetRouteMaps(ctx *pulumi.Context, args *GetRouteMapsArgs, opts ...pulumi.InvokeOption) (*GetRouteMapsResult, error)

This data source provides CEN Route Maps available to the user.

> **NOTE:** Available in v1.87.0+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		opt0 := "cn-hangzhou"
		opt1 := "datasource_test"
		opt2 := "Active"
		opt3 := "RegionIn"
		this, err := cen.GetRouteMaps(ctx, &cen.GetRouteMapsArgs{
			CenId:            "cen-ihdlgo87ai********",
			CenRegionId:      &opt0,
			DescriptionRegex: &opt1,
			Ids: []string{
				"cenrmap-bnh97kb3mn********",
			},
			Status:            &opt2,
			TransmitDirection: &opt3,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstCenRouteMapId", this.Maps[0].Id)
		return nil
	})
}

```

type GetRouteServicesArgs added in v2.28.0

type GetRouteServicesArgs struct {
	// The region of the network instances that access the cloud services.
	AccessRegionId *string `pulumi:"accessRegionId"`
	// -(Required, ForceNew) The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// -(Optional, ForceNew) The domain name or IP address of the cloud service.
	Host *string `pulumi:"host"`
	// The region of the cloud service.
	HostRegionId *string `pulumi:"hostRegionId"`
	// The VPC associated with the cloud service.
	HostVpcId  *string `pulumi:"hostVpcId"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the cloud service. Valid values: `Active`, `Creating` and `Deleting`.
	Status *string `pulumi:"status"`
}

A collection of arguments for invoking getRouteServices.

type GetRouteServicesResult added in v2.28.0

type GetRouteServicesResult struct {
	// The region of the network instances that access the cloud services.
	AccessRegionId *string `pulumi:"accessRegionId"`
	// The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// The domain name or IP address of the cloud service.
	Host *string `pulumi:"host"`
	// The region of the cloud service.
	HostRegionId *string `pulumi:"hostRegionId"`
	// The VPC associated with the cloud service.
	HostVpcId *string `pulumi:"hostVpcId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN Route Service IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// A list of CEN Route Services. Each element contains the following attributes:
	Services []GetRouteServicesService `pulumi:"services"`
	// The status of the cloud service.
	Status *string `pulumi:"status"`
}

A collection of values returned by getRouteServices.

func GetRouteServices added in v2.28.0

func GetRouteServices(ctx *pulumi.Context, args *GetRouteServicesArgs, opts ...pulumi.InvokeOption) (*GetRouteServicesResult, error)

This data source provides CEN Route Service available to the user.

> **NOTE:** Available in v1.102.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := cen.GetRouteServices(ctx, &cen.GetRouteServicesArgs{
			CenId: "cen-7qthudw0ll6jmc****",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstCenRouteServiceId", example.Services[0].Id)
		return nil
	})
}

```

type GetRouteServicesService added in v2.28.0

type GetRouteServicesService struct {
	// The region of the network instances that access the cloud services.
	AccessRegionId string `pulumi:"accessRegionId"`
	// -(Required, ForceNew) The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// The IP address of the cloud service.
	Cidrs []string `pulumi:"cidrs"`
	// The description of the cloud service.
	Description string `pulumi:"description"`
	// -(Optional, ForceNew) The domain name or IP address of the cloud service.
	Host string `pulumi:"host"`
	// The region of the cloud service.
	HostRegionId string `pulumi:"hostRegionId"`
	// The VPC associated with the cloud service.
	HostVpcId string `pulumi:"hostVpcId"`
	// The ID of the route service.
	Id string `pulumi:"id"`
	// The status of the cloud service. Valid values: `Active`, `Creating` and `Deleting`.
	Status string `pulumi:"status"`
	// The update interval. Default value: 5. The value cannot be modified.
	UpdateInterval string `pulumi:"updateInterval"`
}

type GetRouteServicesServiceArgs added in v2.28.0

type GetRouteServicesServiceArgs struct {
	// The region of the network instances that access the cloud services.
	AccessRegionId pulumi.StringInput `pulumi:"accessRegionId"`
	// -(Required, ForceNew) The ID of the CEN instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// The IP address of the cloud service.
	Cidrs pulumi.StringArrayInput `pulumi:"cidrs"`
	// The description of the cloud service.
	Description pulumi.StringInput `pulumi:"description"`
	// -(Optional, ForceNew) The domain name or IP address of the cloud service.
	Host pulumi.StringInput `pulumi:"host"`
	// The region of the cloud service.
	HostRegionId pulumi.StringInput `pulumi:"hostRegionId"`
	// The VPC associated with the cloud service.
	HostVpcId pulumi.StringInput `pulumi:"hostVpcId"`
	// The ID of the route service.
	Id pulumi.StringInput `pulumi:"id"`
	// The status of the cloud service. Valid values: `Active`, `Creating` and `Deleting`.
	Status pulumi.StringInput `pulumi:"status"`
	// The update interval. Default value: 5. The value cannot be modified.
	UpdateInterval pulumi.StringInput `pulumi:"updateInterval"`
}

func (GetRouteServicesServiceArgs) ElementType added in v2.28.0

func (GetRouteServicesServiceArgs) ToGetRouteServicesServiceOutput added in v2.28.0

func (i GetRouteServicesServiceArgs) ToGetRouteServicesServiceOutput() GetRouteServicesServiceOutput

func (GetRouteServicesServiceArgs) ToGetRouteServicesServiceOutputWithContext added in v2.28.0

func (i GetRouteServicesServiceArgs) ToGetRouteServicesServiceOutputWithContext(ctx context.Context) GetRouteServicesServiceOutput

type GetRouteServicesServiceArray added in v2.28.0

type GetRouteServicesServiceArray []GetRouteServicesServiceInput

func (GetRouteServicesServiceArray) ElementType added in v2.28.0

func (GetRouteServicesServiceArray) ToGetRouteServicesServiceArrayOutput added in v2.28.0

func (i GetRouteServicesServiceArray) ToGetRouteServicesServiceArrayOutput() GetRouteServicesServiceArrayOutput

func (GetRouteServicesServiceArray) ToGetRouteServicesServiceArrayOutputWithContext added in v2.28.0

func (i GetRouteServicesServiceArray) ToGetRouteServicesServiceArrayOutputWithContext(ctx context.Context) GetRouteServicesServiceArrayOutput

type GetRouteServicesServiceArrayInput added in v2.28.0

type GetRouteServicesServiceArrayInput interface {
	pulumi.Input

	ToGetRouteServicesServiceArrayOutput() GetRouteServicesServiceArrayOutput
	ToGetRouteServicesServiceArrayOutputWithContext(context.Context) GetRouteServicesServiceArrayOutput
}

GetRouteServicesServiceArrayInput is an input type that accepts GetRouteServicesServiceArray and GetRouteServicesServiceArrayOutput values. You can construct a concrete instance of `GetRouteServicesServiceArrayInput` via:

GetRouteServicesServiceArray{ GetRouteServicesServiceArgs{...} }

type GetRouteServicesServiceArrayOutput added in v2.28.0

type GetRouteServicesServiceArrayOutput struct{ *pulumi.OutputState }

func (GetRouteServicesServiceArrayOutput) ElementType added in v2.28.0

func (GetRouteServicesServiceArrayOutput) Index added in v2.28.0

func (GetRouteServicesServiceArrayOutput) ToGetRouteServicesServiceArrayOutput added in v2.28.0

func (o GetRouteServicesServiceArrayOutput) ToGetRouteServicesServiceArrayOutput() GetRouteServicesServiceArrayOutput

func (GetRouteServicesServiceArrayOutput) ToGetRouteServicesServiceArrayOutputWithContext added in v2.28.0

func (o GetRouteServicesServiceArrayOutput) ToGetRouteServicesServiceArrayOutputWithContext(ctx context.Context) GetRouteServicesServiceArrayOutput

type GetRouteServicesServiceInput added in v2.28.0

type GetRouteServicesServiceInput interface {
	pulumi.Input

	ToGetRouteServicesServiceOutput() GetRouteServicesServiceOutput
	ToGetRouteServicesServiceOutputWithContext(context.Context) GetRouteServicesServiceOutput
}

GetRouteServicesServiceInput is an input type that accepts GetRouteServicesServiceArgs and GetRouteServicesServiceOutput values. You can construct a concrete instance of `GetRouteServicesServiceInput` via:

GetRouteServicesServiceArgs{...}

type GetRouteServicesServiceOutput added in v2.28.0

type GetRouteServicesServiceOutput struct{ *pulumi.OutputState }

func (GetRouteServicesServiceOutput) AccessRegionId added in v2.28.0

The region of the network instances that access the cloud services.

func (GetRouteServicesServiceOutput) CenId added in v2.28.0

-(Required, ForceNew) The ID of the CEN instance.

func (GetRouteServicesServiceOutput) Cidrs added in v2.28.0

The IP address of the cloud service.

func (GetRouteServicesServiceOutput) Description added in v2.28.0

The description of the cloud service.

func (GetRouteServicesServiceOutput) ElementType added in v2.28.0

func (GetRouteServicesServiceOutput) Host added in v2.28.0

-(Optional, ForceNew) The domain name or IP address of the cloud service.

func (GetRouteServicesServiceOutput) HostRegionId added in v2.28.0

The region of the cloud service.

func (GetRouteServicesServiceOutput) HostVpcId added in v2.28.0

The VPC associated with the cloud service.

func (GetRouteServicesServiceOutput) Id added in v2.28.0

The ID of the route service.

func (GetRouteServicesServiceOutput) Status added in v2.28.0

The status of the cloud service. Valid values: `Active`, `Creating` and `Deleting`.

func (GetRouteServicesServiceOutput) ToGetRouteServicesServiceOutput added in v2.28.0

func (o GetRouteServicesServiceOutput) ToGetRouteServicesServiceOutput() GetRouteServicesServiceOutput

func (GetRouteServicesServiceOutput) ToGetRouteServicesServiceOutputWithContext added in v2.28.0

func (o GetRouteServicesServiceOutput) ToGetRouteServicesServiceOutputWithContext(ctx context.Context) GetRouteServicesServiceOutput

func (GetRouteServicesServiceOutput) UpdateInterval added in v2.28.0

The update interval. Default value: 5. The value cannot be modified.

type GetVbrHealthChecksArgs added in v2.19.0

type GetVbrHealthChecksArgs struct {
	// The ID of the Cloud Enterprise Network (CEN) instance.
	CenId      *string `pulumi:"cenId"`
	OutputFile *string `pulumi:"outputFile"`
	// The ID of the VBR instance.
	VbrInstanceId *string `pulumi:"vbrInstanceId"`
	// The User ID (UID) of the account to which the VBR instance belongs.
	VbrInstanceOwnerId *int `pulumi:"vbrInstanceOwnerId"`
	// The ID of the region where the VBR instance is deployed.
	VbrInstanceRegionId string `pulumi:"vbrInstanceRegionId"`
}

A collection of arguments for invoking getVbrHealthChecks.

type GetVbrHealthChecksCheck added in v2.19.0

type GetVbrHealthChecksCheck struct {
	// The ID of the Cloud Enterprise Network (CEN) instance.
	CenId string `pulumi:"cenId"`
	// The time interval at which probe packets are sent during the health check.
	HealthCheckInterval int `pulumi:"healthCheckInterval"`
	// The source IP address of the health check.
	HealthCheckSourceIp string `pulumi:"healthCheckSourceIp"`
	// The destination IP address of the health check.
	HealthCheckTargetIp string `pulumi:"healthCheckTargetIp"`
	// The number of probe packets that are sent during the health check.
	HealthyThreshold int `pulumi:"healthyThreshold"`
	// The ID of the CEN VBR Heath Check.
	Id string `pulumi:"id"`
	// The ID of the VBR instance.
	VbrInstanceId string `pulumi:"vbrInstanceId"`
	// The ID of the region where the VBR instance is deployed.
	VbrInstanceRegionId string `pulumi:"vbrInstanceRegionId"`
}

type GetVbrHealthChecksCheckArgs added in v2.19.0

type GetVbrHealthChecksCheckArgs struct {
	// The ID of the Cloud Enterprise Network (CEN) instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// The time interval at which probe packets are sent during the health check.
	HealthCheckInterval pulumi.IntInput `pulumi:"healthCheckInterval"`
	// The source IP address of the health check.
	HealthCheckSourceIp pulumi.StringInput `pulumi:"healthCheckSourceIp"`
	// The destination IP address of the health check.
	HealthCheckTargetIp pulumi.StringInput `pulumi:"healthCheckTargetIp"`
	// The number of probe packets that are sent during the health check.
	HealthyThreshold pulumi.IntInput `pulumi:"healthyThreshold"`
	// The ID of the CEN VBR Heath Check.
	Id pulumi.StringInput `pulumi:"id"`
	// The ID of the VBR instance.
	VbrInstanceId pulumi.StringInput `pulumi:"vbrInstanceId"`
	// The ID of the region where the VBR instance is deployed.
	VbrInstanceRegionId pulumi.StringInput `pulumi:"vbrInstanceRegionId"`
}

func (GetVbrHealthChecksCheckArgs) ElementType added in v2.19.0

func (GetVbrHealthChecksCheckArgs) ToGetVbrHealthChecksCheckOutput added in v2.19.0

func (i GetVbrHealthChecksCheckArgs) ToGetVbrHealthChecksCheckOutput() GetVbrHealthChecksCheckOutput

func (GetVbrHealthChecksCheckArgs) ToGetVbrHealthChecksCheckOutputWithContext added in v2.19.0

func (i GetVbrHealthChecksCheckArgs) ToGetVbrHealthChecksCheckOutputWithContext(ctx context.Context) GetVbrHealthChecksCheckOutput

type GetVbrHealthChecksCheckArray added in v2.19.0

type GetVbrHealthChecksCheckArray []GetVbrHealthChecksCheckInput

func (GetVbrHealthChecksCheckArray) ElementType added in v2.19.0

func (GetVbrHealthChecksCheckArray) ToGetVbrHealthChecksCheckArrayOutput added in v2.19.0

func (i GetVbrHealthChecksCheckArray) ToGetVbrHealthChecksCheckArrayOutput() GetVbrHealthChecksCheckArrayOutput

func (GetVbrHealthChecksCheckArray) ToGetVbrHealthChecksCheckArrayOutputWithContext added in v2.19.0

func (i GetVbrHealthChecksCheckArray) ToGetVbrHealthChecksCheckArrayOutputWithContext(ctx context.Context) GetVbrHealthChecksCheckArrayOutput

type GetVbrHealthChecksCheckArrayInput added in v2.19.0

type GetVbrHealthChecksCheckArrayInput interface {
	pulumi.Input

	ToGetVbrHealthChecksCheckArrayOutput() GetVbrHealthChecksCheckArrayOutput
	ToGetVbrHealthChecksCheckArrayOutputWithContext(context.Context) GetVbrHealthChecksCheckArrayOutput
}

GetVbrHealthChecksCheckArrayInput is an input type that accepts GetVbrHealthChecksCheckArray and GetVbrHealthChecksCheckArrayOutput values. You can construct a concrete instance of `GetVbrHealthChecksCheckArrayInput` via:

GetVbrHealthChecksCheckArray{ GetVbrHealthChecksCheckArgs{...} }

type GetVbrHealthChecksCheckArrayOutput added in v2.19.0

type GetVbrHealthChecksCheckArrayOutput struct{ *pulumi.OutputState }

func (GetVbrHealthChecksCheckArrayOutput) ElementType added in v2.19.0

func (GetVbrHealthChecksCheckArrayOutput) Index added in v2.19.0

func (GetVbrHealthChecksCheckArrayOutput) ToGetVbrHealthChecksCheckArrayOutput added in v2.19.0

func (o GetVbrHealthChecksCheckArrayOutput) ToGetVbrHealthChecksCheckArrayOutput() GetVbrHealthChecksCheckArrayOutput

func (GetVbrHealthChecksCheckArrayOutput) ToGetVbrHealthChecksCheckArrayOutputWithContext added in v2.19.0

func (o GetVbrHealthChecksCheckArrayOutput) ToGetVbrHealthChecksCheckArrayOutputWithContext(ctx context.Context) GetVbrHealthChecksCheckArrayOutput

type GetVbrHealthChecksCheckInput added in v2.19.0

type GetVbrHealthChecksCheckInput interface {
	pulumi.Input

	ToGetVbrHealthChecksCheckOutput() GetVbrHealthChecksCheckOutput
	ToGetVbrHealthChecksCheckOutputWithContext(context.Context) GetVbrHealthChecksCheckOutput
}

GetVbrHealthChecksCheckInput is an input type that accepts GetVbrHealthChecksCheckArgs and GetVbrHealthChecksCheckOutput values. You can construct a concrete instance of `GetVbrHealthChecksCheckInput` via:

GetVbrHealthChecksCheckArgs{...}

type GetVbrHealthChecksCheckOutput added in v2.19.0

type GetVbrHealthChecksCheckOutput struct{ *pulumi.OutputState }

func (GetVbrHealthChecksCheckOutput) CenId added in v2.19.0

The ID of the Cloud Enterprise Network (CEN) instance.

func (GetVbrHealthChecksCheckOutput) ElementType added in v2.19.0

func (GetVbrHealthChecksCheckOutput) HealthCheckInterval added in v2.19.0

func (o GetVbrHealthChecksCheckOutput) HealthCheckInterval() pulumi.IntOutput

The time interval at which probe packets are sent during the health check.

func (GetVbrHealthChecksCheckOutput) HealthCheckSourceIp added in v2.19.0

func (o GetVbrHealthChecksCheckOutput) HealthCheckSourceIp() pulumi.StringOutput

The source IP address of the health check.

func (GetVbrHealthChecksCheckOutput) HealthCheckTargetIp added in v2.19.0

func (o GetVbrHealthChecksCheckOutput) HealthCheckTargetIp() pulumi.StringOutput

The destination IP address of the health check.

func (GetVbrHealthChecksCheckOutput) HealthyThreshold added in v2.19.0

func (o GetVbrHealthChecksCheckOutput) HealthyThreshold() pulumi.IntOutput

The number of probe packets that are sent during the health check.

func (GetVbrHealthChecksCheckOutput) Id added in v2.19.0

The ID of the CEN VBR Heath Check.

func (GetVbrHealthChecksCheckOutput) ToGetVbrHealthChecksCheckOutput added in v2.19.0

func (o GetVbrHealthChecksCheckOutput) ToGetVbrHealthChecksCheckOutput() GetVbrHealthChecksCheckOutput

func (GetVbrHealthChecksCheckOutput) ToGetVbrHealthChecksCheckOutputWithContext added in v2.19.0

func (o GetVbrHealthChecksCheckOutput) ToGetVbrHealthChecksCheckOutputWithContext(ctx context.Context) GetVbrHealthChecksCheckOutput

func (GetVbrHealthChecksCheckOutput) VbrInstanceId added in v2.19.0

The ID of the VBR instance.

func (GetVbrHealthChecksCheckOutput) VbrInstanceRegionId added in v2.19.0

func (o GetVbrHealthChecksCheckOutput) VbrInstanceRegionId() pulumi.StringOutput

The ID of the region where the VBR instance is deployed.

type GetVbrHealthChecksResult added in v2.19.0

type GetVbrHealthChecksResult struct {
	// The ID of the Cloud Enterprise Network (CEN) instance.
	CenId *string `pulumi:"cenId"`
	// A list of CEN VBR Heath Checks. Each element contains the following attributes:
	Checks []GetVbrHealthChecksCheck `pulumi:"checks"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of the CEN VBR Heath Check IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The ID of the VBR instance.
	VbrInstanceId      *string `pulumi:"vbrInstanceId"`
	VbrInstanceOwnerId *int    `pulumi:"vbrInstanceOwnerId"`
	// The ID of the region where the VBR instance is deployed.
	VbrInstanceRegionId string `pulumi:"vbrInstanceRegionId"`
}

A collection of values returned by getVbrHealthChecks.

func GetVbrHealthChecks added in v2.19.0

func GetVbrHealthChecks(ctx *pulumi.Context, args *GetVbrHealthChecksArgs, opts ...pulumi.InvokeOption) (*GetVbrHealthChecksResult, error)

This data source provides CEN VBR Health Checks available to the user.

> **NOTE:** Available in 1.98.0+

type Instance

type Instance struct {
	pulumi.CustomResourceState

	// The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
	CenInstanceName pulumi.StringOutput `pulumi:"cenInstanceName"`
	// The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// Field `name` has been deprecated from version 1.98.0. Use `cenInstanceName` instead.
	//
	// Deprecated: Field 'name' has been deprecated from version 1.98.0. Use 'cen_instance_name' instead.
	Name pulumi.StringOutput `pulumi:"name"`
	// Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.
	ProtectionLevel pulumi.StringPtrOutput `pulumi:"protectionLevel"`
	// The Cen Instance current status.
	Status pulumi.StringOutput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
}

Provides a CEN instance resource. Cloud Enterprise Network (CEN) is a service that allows you to create a global network for rapidly building a distributed business system with a hybrid cloud computing solution. CEN enables you to build a secure, private, and enterprise-class interconnected network between VPCs in different regions and your local data centers. CEN provides enterprise-class scalability that automatically responds to your dynamic computing requirements.

For information about CEN and how to use it, see [What is Cloud Enterprise Network](https://www.alibabacloud.com/help/doc-detail/59870.htm).

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cen.NewInstance(ctx, "example", &cen.InstanceArgs{
			CenInstanceName: pulumi.String("tf_test_foo"),
			Description:     pulumi.String("an example for cen"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import alicloud:cen/instance:Instance example cen-abc123456

```

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 added in v2.25.1

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput added in v2.25.1

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext added in v2.25.1

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

func (*Instance) ToInstancePtrOutput added in v2.35.1

func (i *Instance) ToInstancePtrOutput() InstancePtrOutput

func (*Instance) ToInstancePtrOutputWithContext added in v2.35.1

func (i *Instance) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

type InstanceArgs

type InstanceArgs struct {
	// The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
	CenInstanceName pulumi.StringPtrInput
	// The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
	Description pulumi.StringPtrInput
	// Field `name` has been deprecated from version 1.98.0. Use `cenInstanceName` instead.
	//
	// Deprecated: Field 'name' has been deprecated from version 1.98.0. Use 'cen_instance_name' instead.
	Name pulumi.StringPtrInput
	// Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.
	ProtectionLevel pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
}

The set of arguments for constructing a Instance resource.

func (InstanceArgs) ElementType

func (InstanceArgs) ElementType() reflect.Type

type InstanceArray added in v2.35.1

type InstanceArray []InstanceInput

func (InstanceArray) ElementType added in v2.35.1

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput added in v2.35.1

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext added in v2.35.1

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

type InstanceArrayInput added in v2.35.1

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 added in v2.35.1

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType added in v2.35.1

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index added in v2.35.1

func (InstanceArrayOutput) ToInstanceArrayOutput added in v2.35.1

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext added in v2.35.1

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

type InstanceAttachment

type InstanceAttachment struct {
	pulumi.CustomResourceState

	// The account ID to which the CEN instance belongs.
	CenOwnerId pulumi.IntPtrOutput `pulumi:"cenOwnerId"`
	// The ID of the child instance to attach.
	ChildInstanceId pulumi.StringOutput `pulumi:"childInstanceId"`
	// The uid of the child instance. Only used when attach a child instance of other account.
	ChildInstanceOwnerId pulumi.IntOutput `pulumi:"childInstanceOwnerId"`
	// The region ID of the child instance to attach.
	ChildInstanceRegionId pulumi.StringOutput `pulumi:"childInstanceRegionId"`
	// The type of the associated network. Valid values: `VPC`, `VBR` and `CCN`.
	ChildInstanceType pulumi.StringOutput `pulumi:"childInstanceType"`
	// The ID of the CEN.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The associating status of the network.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a CEN child instance attachment resource that associate the network(VPC, CCN, VBR) with the CEN instance.

->**NOTE:** Available in 1.42.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-testAccCenInstanceAttachmentBasic"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		cen, err := cen.NewInstance(ctx, "cen", &cen.InstanceArgs{
			Description: pulumi.String("terraform01"),
		})
		if err != nil {
			return err
		}
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("192.168.0.0/16"),
		})
		if err != nil {
			return err
		}
		_, err = cen.NewInstanceAttachment(ctx, "foo", &cen.InstanceAttachmentArgs{
			InstanceId:            cen.ID(),
			ChildInstanceId:       vpc.ID(),
			ChildInstanceType:     pulumi.String("VPC"),
			ChildInstanceRegionId: pulumi.String("cn-beijing"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import alicloud:cen/instanceAttachment:InstanceAttachment example cen-m7i7pjmkon********:vpc-2ze2w07mcy9nz********:VPC:cn-beijing

```

func GetInstanceAttachment

func GetInstanceAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceAttachmentState, opts ...pulumi.ResourceOption) (*InstanceAttachment, error)

GetInstanceAttachment gets an existing InstanceAttachment 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 NewInstanceAttachment

func NewInstanceAttachment(ctx *pulumi.Context,
	name string, args *InstanceAttachmentArgs, opts ...pulumi.ResourceOption) (*InstanceAttachment, error)

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

func (*InstanceAttachment) ElementType added in v2.25.1

func (*InstanceAttachment) ElementType() reflect.Type

func (*InstanceAttachment) ToInstanceAttachmentOutput added in v2.25.1

func (i *InstanceAttachment) ToInstanceAttachmentOutput() InstanceAttachmentOutput

func (*InstanceAttachment) ToInstanceAttachmentOutputWithContext added in v2.25.1

func (i *InstanceAttachment) ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput

func (*InstanceAttachment) ToInstanceAttachmentPtrOutput added in v2.35.1

func (i *InstanceAttachment) ToInstanceAttachmentPtrOutput() InstanceAttachmentPtrOutput

func (*InstanceAttachment) ToInstanceAttachmentPtrOutputWithContext added in v2.35.1

func (i *InstanceAttachment) ToInstanceAttachmentPtrOutputWithContext(ctx context.Context) InstanceAttachmentPtrOutput

type InstanceAttachmentArgs

type InstanceAttachmentArgs struct {
	// The account ID to which the CEN instance belongs.
	CenOwnerId pulumi.IntPtrInput
	// The ID of the child instance to attach.
	ChildInstanceId pulumi.StringInput
	// The uid of the child instance. Only used when attach a child instance of other account.
	ChildInstanceOwnerId pulumi.IntPtrInput
	// The region ID of the child instance to attach.
	ChildInstanceRegionId pulumi.StringInput
	// The type of the associated network. Valid values: `VPC`, `VBR` and `CCN`.
	ChildInstanceType pulumi.StringInput
	// The ID of the CEN.
	InstanceId pulumi.StringInput
}

The set of arguments for constructing a InstanceAttachment resource.

func (InstanceAttachmentArgs) ElementType

func (InstanceAttachmentArgs) ElementType() reflect.Type

type InstanceAttachmentArray added in v2.35.1

type InstanceAttachmentArray []InstanceAttachmentInput

func (InstanceAttachmentArray) ElementType added in v2.35.1

func (InstanceAttachmentArray) ElementType() reflect.Type

func (InstanceAttachmentArray) ToInstanceAttachmentArrayOutput added in v2.35.1

func (i InstanceAttachmentArray) ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput

func (InstanceAttachmentArray) ToInstanceAttachmentArrayOutputWithContext added in v2.35.1

func (i InstanceAttachmentArray) ToInstanceAttachmentArrayOutputWithContext(ctx context.Context) InstanceAttachmentArrayOutput

type InstanceAttachmentArrayInput added in v2.35.1

type InstanceAttachmentArrayInput interface {
	pulumi.Input

	ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput
	ToInstanceAttachmentArrayOutputWithContext(context.Context) InstanceAttachmentArrayOutput
}

InstanceAttachmentArrayInput is an input type that accepts InstanceAttachmentArray and InstanceAttachmentArrayOutput values. You can construct a concrete instance of `InstanceAttachmentArrayInput` via:

InstanceAttachmentArray{ InstanceAttachmentArgs{...} }

type InstanceAttachmentArrayOutput added in v2.35.1

type InstanceAttachmentArrayOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentArrayOutput) ElementType added in v2.35.1

func (InstanceAttachmentArrayOutput) Index added in v2.35.1

func (InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutput added in v2.35.1

func (o InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput

func (InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutputWithContext added in v2.35.1

func (o InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutputWithContext(ctx context.Context) InstanceAttachmentArrayOutput

type InstanceAttachmentInput added in v2.25.1

type InstanceAttachmentInput interface {
	pulumi.Input

	ToInstanceAttachmentOutput() InstanceAttachmentOutput
	ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput
}

type InstanceAttachmentMap added in v2.35.1

type InstanceAttachmentMap map[string]InstanceAttachmentInput

func (InstanceAttachmentMap) ElementType added in v2.35.1

func (InstanceAttachmentMap) ElementType() reflect.Type

func (InstanceAttachmentMap) ToInstanceAttachmentMapOutput added in v2.35.1

func (i InstanceAttachmentMap) ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput

func (InstanceAttachmentMap) ToInstanceAttachmentMapOutputWithContext added in v2.35.1

func (i InstanceAttachmentMap) ToInstanceAttachmentMapOutputWithContext(ctx context.Context) InstanceAttachmentMapOutput

type InstanceAttachmentMapInput added in v2.35.1

type InstanceAttachmentMapInput interface {
	pulumi.Input

	ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput
	ToInstanceAttachmentMapOutputWithContext(context.Context) InstanceAttachmentMapOutput
}

InstanceAttachmentMapInput is an input type that accepts InstanceAttachmentMap and InstanceAttachmentMapOutput values. You can construct a concrete instance of `InstanceAttachmentMapInput` via:

InstanceAttachmentMap{ "key": InstanceAttachmentArgs{...} }

type InstanceAttachmentMapOutput added in v2.35.1

type InstanceAttachmentMapOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentMapOutput) ElementType added in v2.35.1

func (InstanceAttachmentMapOutput) MapIndex added in v2.35.1

func (InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutput added in v2.35.1

func (o InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput

func (InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutputWithContext added in v2.35.1

func (o InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutputWithContext(ctx context.Context) InstanceAttachmentMapOutput

type InstanceAttachmentOutput added in v2.25.1

type InstanceAttachmentOutput struct {
	*pulumi.OutputState
}

func (InstanceAttachmentOutput) ElementType added in v2.25.1

func (InstanceAttachmentOutput) ElementType() reflect.Type

func (InstanceAttachmentOutput) ToInstanceAttachmentOutput added in v2.25.1

func (o InstanceAttachmentOutput) ToInstanceAttachmentOutput() InstanceAttachmentOutput

func (InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext added in v2.25.1

func (o InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext(ctx context.Context) InstanceAttachmentOutput

func (InstanceAttachmentOutput) ToInstanceAttachmentPtrOutput added in v2.35.1

func (o InstanceAttachmentOutput) ToInstanceAttachmentPtrOutput() InstanceAttachmentPtrOutput

func (InstanceAttachmentOutput) ToInstanceAttachmentPtrOutputWithContext added in v2.35.1

func (o InstanceAttachmentOutput) ToInstanceAttachmentPtrOutputWithContext(ctx context.Context) InstanceAttachmentPtrOutput

type InstanceAttachmentPtrInput added in v2.35.1

type InstanceAttachmentPtrInput interface {
	pulumi.Input

	ToInstanceAttachmentPtrOutput() InstanceAttachmentPtrOutput
	ToInstanceAttachmentPtrOutputWithContext(ctx context.Context) InstanceAttachmentPtrOutput
}

type InstanceAttachmentPtrOutput added in v2.35.1

type InstanceAttachmentPtrOutput struct {
	*pulumi.OutputState
}

func (InstanceAttachmentPtrOutput) ElementType added in v2.35.1

func (InstanceAttachmentPtrOutput) ToInstanceAttachmentPtrOutput added in v2.35.1

func (o InstanceAttachmentPtrOutput) ToInstanceAttachmentPtrOutput() InstanceAttachmentPtrOutput

func (InstanceAttachmentPtrOutput) ToInstanceAttachmentPtrOutputWithContext added in v2.35.1

func (o InstanceAttachmentPtrOutput) ToInstanceAttachmentPtrOutputWithContext(ctx context.Context) InstanceAttachmentPtrOutput

type InstanceAttachmentState

type InstanceAttachmentState struct {
	// The account ID to which the CEN instance belongs.
	CenOwnerId pulumi.IntPtrInput
	// The ID of the child instance to attach.
	ChildInstanceId pulumi.StringPtrInput
	// The uid of the child instance. Only used when attach a child instance of other account.
	ChildInstanceOwnerId pulumi.IntPtrInput
	// The region ID of the child instance to attach.
	ChildInstanceRegionId pulumi.StringPtrInput
	// The type of the associated network. Valid values: `VPC`, `VBR` and `CCN`.
	ChildInstanceType pulumi.StringPtrInput
	// The ID of the CEN.
	InstanceId pulumi.StringPtrInput
	// The associating status of the network.
	Status pulumi.StringPtrInput
}

func (InstanceAttachmentState) ElementType

func (InstanceAttachmentState) ElementType() reflect.Type

type InstanceGrant

type InstanceGrant struct {
	pulumi.CustomResourceState

	// The ID of the CEN.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// The owner UID of the  CEN which the child instance granted to.
	CenOwnerId pulumi.StringOutput `pulumi:"cenOwnerId"`
	// The ID of the child instance to grant.
	ChildInstanceId pulumi.StringOutput `pulumi:"childInstanceId"`
}

Provides a CEN child instance grant resource, which allow you to authorize a VPC or VBR to a CEN of a different account.

For more information about how to use it, see [Attach a network in a different account](https://www.alibabacloud.com/help/doc-detail/73645.htm).

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/providers"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := providers.Newalicloud(ctx, "account1", &providers.alicloudArgs{
			AccessKey: pulumi.String("access123"),
			SecretKey: pulumi.String("secret123"),
		})
		if err != nil {
			return err
		}
		_, err = providers.Newalicloud(ctx, "account2", &providers.alicloudArgs{
			AccessKey: pulumi.String("access456"),
			SecretKey: pulumi.String("secret456"),
		})
		if err != nil {
			return err
		}
		cfg := config.New(ctx, "")
		name := "tf-testAccCenInstanceGrantBasic"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		cen, err := cen.NewInstance(ctx, "cen", nil, pulumi.Provider(alicloud.Account2))
		if err != nil {
			return err
		}
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("192.168.0.0/16"),
		}, pulumi.Provider(alicloud.Account1))
		if err != nil {
			return err
		}
		fooInstanceGrant, err := cen.NewInstanceGrant(ctx, "fooInstanceGrant", &cen.InstanceGrantArgs{
			CenId:           cen.ID(),
			ChildInstanceId: vpc.ID(),
			CenOwnerId:      pulumi.String("uid2"),
		}, pulumi.Provider(alicloud.Account1))
		if err != nil {
			return err
		}
		_, err = cen.NewInstanceAttachment(ctx, "fooInstanceAttachment", &cen.InstanceAttachmentArgs{
			InstanceId:            cen.ID(),
			ChildInstanceId:       vpc.ID(),
			ChildInstanceType:     pulumi.String("VPC"),
			ChildInstanceRegionId: pulumi.String("cn-qingdao"),
			ChildInstanceOwnerId:  pulumi.Int("uid1"),
		}, pulumi.Provider(alicloud.Account2), pulumi.DependsOn([]pulumi.Resource{
			fooInstanceGrant,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import alicloud:cen/instanceGrant:InstanceGrant example cen-abc123456:vpc-abc123456:uid123456

```

func GetInstanceGrant

func GetInstanceGrant(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *InstanceGrantState, opts ...pulumi.ResourceOption) (*InstanceGrant, error)

GetInstanceGrant gets an existing InstanceGrant 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 NewInstanceGrant

func NewInstanceGrant(ctx *pulumi.Context,
	name string, args *InstanceGrantArgs, opts ...pulumi.ResourceOption) (*InstanceGrant, error)

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

func (*InstanceGrant) ElementType added in v2.25.1

func (*InstanceGrant) ElementType() reflect.Type

func (*InstanceGrant) ToInstanceGrantOutput added in v2.25.1

func (i *InstanceGrant) ToInstanceGrantOutput() InstanceGrantOutput

func (*InstanceGrant) ToInstanceGrantOutputWithContext added in v2.25.1

func (i *InstanceGrant) ToInstanceGrantOutputWithContext(ctx context.Context) InstanceGrantOutput

func (*InstanceGrant) ToInstanceGrantPtrOutput added in v2.35.1

func (i *InstanceGrant) ToInstanceGrantPtrOutput() InstanceGrantPtrOutput

func (*InstanceGrant) ToInstanceGrantPtrOutputWithContext added in v2.35.1

func (i *InstanceGrant) ToInstanceGrantPtrOutputWithContext(ctx context.Context) InstanceGrantPtrOutput

type InstanceGrantArgs

type InstanceGrantArgs struct {
	// The ID of the CEN.
	CenId pulumi.StringInput
	// The owner UID of the  CEN which the child instance granted to.
	CenOwnerId pulumi.StringInput
	// The ID of the child instance to grant.
	ChildInstanceId pulumi.StringInput
}

The set of arguments for constructing a InstanceGrant resource.

func (InstanceGrantArgs) ElementType

func (InstanceGrantArgs) ElementType() reflect.Type

type InstanceGrantArray added in v2.35.1

type InstanceGrantArray []InstanceGrantInput

func (InstanceGrantArray) ElementType added in v2.35.1

func (InstanceGrantArray) ElementType() reflect.Type

func (InstanceGrantArray) ToInstanceGrantArrayOutput added in v2.35.1

func (i InstanceGrantArray) ToInstanceGrantArrayOutput() InstanceGrantArrayOutput

func (InstanceGrantArray) ToInstanceGrantArrayOutputWithContext added in v2.35.1

func (i InstanceGrantArray) ToInstanceGrantArrayOutputWithContext(ctx context.Context) InstanceGrantArrayOutput

type InstanceGrantArrayInput added in v2.35.1

type InstanceGrantArrayInput interface {
	pulumi.Input

	ToInstanceGrantArrayOutput() InstanceGrantArrayOutput
	ToInstanceGrantArrayOutputWithContext(context.Context) InstanceGrantArrayOutput
}

InstanceGrantArrayInput is an input type that accepts InstanceGrantArray and InstanceGrantArrayOutput values. You can construct a concrete instance of `InstanceGrantArrayInput` via:

InstanceGrantArray{ InstanceGrantArgs{...} }

type InstanceGrantArrayOutput added in v2.35.1

type InstanceGrantArrayOutput struct{ *pulumi.OutputState }

func (InstanceGrantArrayOutput) ElementType added in v2.35.1

func (InstanceGrantArrayOutput) ElementType() reflect.Type

func (InstanceGrantArrayOutput) Index added in v2.35.1

func (InstanceGrantArrayOutput) ToInstanceGrantArrayOutput added in v2.35.1

func (o InstanceGrantArrayOutput) ToInstanceGrantArrayOutput() InstanceGrantArrayOutput

func (InstanceGrantArrayOutput) ToInstanceGrantArrayOutputWithContext added in v2.35.1

func (o InstanceGrantArrayOutput) ToInstanceGrantArrayOutputWithContext(ctx context.Context) InstanceGrantArrayOutput

type InstanceGrantInput added in v2.25.1

type InstanceGrantInput interface {
	pulumi.Input

	ToInstanceGrantOutput() InstanceGrantOutput
	ToInstanceGrantOutputWithContext(ctx context.Context) InstanceGrantOutput
}

type InstanceGrantMap added in v2.35.1

type InstanceGrantMap map[string]InstanceGrantInput

func (InstanceGrantMap) ElementType added in v2.35.1

func (InstanceGrantMap) ElementType() reflect.Type

func (InstanceGrantMap) ToInstanceGrantMapOutput added in v2.35.1

func (i InstanceGrantMap) ToInstanceGrantMapOutput() InstanceGrantMapOutput

func (InstanceGrantMap) ToInstanceGrantMapOutputWithContext added in v2.35.1

func (i InstanceGrantMap) ToInstanceGrantMapOutputWithContext(ctx context.Context) InstanceGrantMapOutput

type InstanceGrantMapInput added in v2.35.1

type InstanceGrantMapInput interface {
	pulumi.Input

	ToInstanceGrantMapOutput() InstanceGrantMapOutput
	ToInstanceGrantMapOutputWithContext(context.Context) InstanceGrantMapOutput
}

InstanceGrantMapInput is an input type that accepts InstanceGrantMap and InstanceGrantMapOutput values. You can construct a concrete instance of `InstanceGrantMapInput` via:

InstanceGrantMap{ "key": InstanceGrantArgs{...} }

type InstanceGrantMapOutput added in v2.35.1

type InstanceGrantMapOutput struct{ *pulumi.OutputState }

func (InstanceGrantMapOutput) ElementType added in v2.35.1

func (InstanceGrantMapOutput) ElementType() reflect.Type

func (InstanceGrantMapOutput) MapIndex added in v2.35.1

func (InstanceGrantMapOutput) ToInstanceGrantMapOutput added in v2.35.1

func (o InstanceGrantMapOutput) ToInstanceGrantMapOutput() InstanceGrantMapOutput

func (InstanceGrantMapOutput) ToInstanceGrantMapOutputWithContext added in v2.35.1

func (o InstanceGrantMapOutput) ToInstanceGrantMapOutputWithContext(ctx context.Context) InstanceGrantMapOutput

type InstanceGrantOutput added in v2.25.1

type InstanceGrantOutput struct {
	*pulumi.OutputState
}

func (InstanceGrantOutput) ElementType added in v2.25.1

func (InstanceGrantOutput) ElementType() reflect.Type

func (InstanceGrantOutput) ToInstanceGrantOutput added in v2.25.1

func (o InstanceGrantOutput) ToInstanceGrantOutput() InstanceGrantOutput

func (InstanceGrantOutput) ToInstanceGrantOutputWithContext added in v2.25.1

func (o InstanceGrantOutput) ToInstanceGrantOutputWithContext(ctx context.Context) InstanceGrantOutput

func (InstanceGrantOutput) ToInstanceGrantPtrOutput added in v2.35.1

func (o InstanceGrantOutput) ToInstanceGrantPtrOutput() InstanceGrantPtrOutput

func (InstanceGrantOutput) ToInstanceGrantPtrOutputWithContext added in v2.35.1

func (o InstanceGrantOutput) ToInstanceGrantPtrOutputWithContext(ctx context.Context) InstanceGrantPtrOutput

type InstanceGrantPtrInput added in v2.35.1

type InstanceGrantPtrInput interface {
	pulumi.Input

	ToInstanceGrantPtrOutput() InstanceGrantPtrOutput
	ToInstanceGrantPtrOutputWithContext(ctx context.Context) InstanceGrantPtrOutput
}

type InstanceGrantPtrOutput added in v2.35.1

type InstanceGrantPtrOutput struct {
	*pulumi.OutputState
}

func (InstanceGrantPtrOutput) ElementType added in v2.35.1

func (InstanceGrantPtrOutput) ElementType() reflect.Type

func (InstanceGrantPtrOutput) ToInstanceGrantPtrOutput added in v2.35.1

func (o InstanceGrantPtrOutput) ToInstanceGrantPtrOutput() InstanceGrantPtrOutput

func (InstanceGrantPtrOutput) ToInstanceGrantPtrOutputWithContext added in v2.35.1

func (o InstanceGrantPtrOutput) ToInstanceGrantPtrOutputWithContext(ctx context.Context) InstanceGrantPtrOutput

type InstanceGrantState

type InstanceGrantState struct {
	// The ID of the CEN.
	CenId pulumi.StringPtrInput
	// The owner UID of the  CEN which the child instance granted to.
	CenOwnerId pulumi.StringPtrInput
	// The ID of the child instance to grant.
	ChildInstanceId pulumi.StringPtrInput
}

func (InstanceGrantState) ElementType

func (InstanceGrantState) ElementType() reflect.Type

type InstanceInput added in v2.25.1

type InstanceInput interface {
	pulumi.Input

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

type InstanceMap added in v2.35.1

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType added in v2.35.1

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput added in v2.35.1

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext added in v2.35.1

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

type InstanceMapInput added in v2.35.1

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 added in v2.35.1

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType added in v2.35.1

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex added in v2.35.1

func (InstanceMapOutput) ToInstanceMapOutput added in v2.35.1

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext added in v2.35.1

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

type InstanceOutput added in v2.25.1

type InstanceOutput struct {
	*pulumi.OutputState
}

func (InstanceOutput) ElementType added in v2.25.1

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) ToInstanceOutput added in v2.25.1

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext added in v2.25.1

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

func (InstanceOutput) ToInstancePtrOutput added in v2.35.1

func (o InstanceOutput) ToInstancePtrOutput() InstancePtrOutput

func (InstanceOutput) ToInstancePtrOutputWithContext added in v2.35.1

func (o InstanceOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

type InstancePtrInput added in v2.35.1

type InstancePtrInput interface {
	pulumi.Input

	ToInstancePtrOutput() InstancePtrOutput
	ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput
}

type InstancePtrOutput added in v2.35.1

type InstancePtrOutput struct {
	*pulumi.OutputState
}

func (InstancePtrOutput) ElementType added in v2.35.1

func (InstancePtrOutput) ElementType() reflect.Type

func (InstancePtrOutput) ToInstancePtrOutput added in v2.35.1

func (o InstancePtrOutput) ToInstancePtrOutput() InstancePtrOutput

func (InstancePtrOutput) ToInstancePtrOutputWithContext added in v2.35.1

func (o InstancePtrOutput) ToInstancePtrOutputWithContext(ctx context.Context) InstancePtrOutput

type InstanceState

type InstanceState struct {
	// The name of the CEN instance. Defaults to null. The name must be 2 to 128 characters in length and can contain letters, numbers, periods (.), underscores (_), and hyphens (-). The name must start with a letter, but cannot start with http:// or https://.
	CenInstanceName pulumi.StringPtrInput
	// The description of the CEN instance. Defaults to null. The description must be 2 to 256 characters in length. It must start with a letter, and cannot start with http:// or https://.
	Description pulumi.StringPtrInput
	// Field `name` has been deprecated from version 1.98.0. Use `cenInstanceName` instead.
	//
	// Deprecated: Field 'name' has been deprecated from version 1.98.0. Use 'cen_instance_name' instead.
	Name pulumi.StringPtrInput
	// Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.
	ProtectionLevel pulumi.StringPtrInput
	// The Cen Instance current status.
	Status pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
}

func (InstanceState) ElementType

func (InstanceState) ElementType() reflect.Type

type PrivateZone added in v2.5.0

type PrivateZone struct {
	pulumi.CustomResourceState

	// The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
	AccessRegionId pulumi.StringOutput `pulumi:"accessRegionId"`
	// The ID of the CEN instance.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
	HostRegionId pulumi.StringOutput `pulumi:"hostRegionId"`
	// The VPC that belongs to the service region.
	HostVpcId pulumi.StringOutput `pulumi:"hostVpcId"`
	// The status of the PrivateZone service. Valid values: ["Creating", "Active", "Deleting"].
	Status pulumi.StringOutput `pulumi:"status"`
}

This topic describes how to configure PrivateZone access. PrivateZone is a VPC-based resolution and management service for private domain names. After you set a PrivateZone access, the Cloud Connect Network (CCN) and Virtual Border Router (VBR) attached to a CEN instance can access the PrivateZone service through CEN.

For information about CEN Private Zone and how to use it, see [Manage CEN Private Zone](https://www.alibabacloud.com/help/en/doc-detail/106693.htm).

> **NOTE:** Available in 1.83.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
			VpcName:   pulumi.String("test_name"),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		defaultInstanceAttachment, err := cen.NewInstanceAttachment(ctx, "defaultInstanceAttachment", &cen.InstanceAttachmentArgs{
			InstanceId:            defaultInstance.ID(),
			ChildInstanceId:       defaultNetwork.ID(),
			ChildInstanceType:     pulumi.String("VPC"),
			ChildInstanceRegionId: pulumi.String("cn-hangzhou"),
		}, pulumi.DependsOn([]pulumi.Resource{
			defaultInstance,
			defaultNetwork,
		}))
		if err != nil {
			return err
		}
		_, err = cen.NewPrivateZone(ctx, "defaultPrivateZone", &cen.PrivateZoneArgs{
			AccessRegionId: pulumi.String("cn-hangzhou"),
			CenId:          defaultInstance.ID(),
			HostRegionId:   pulumi.String("cn-hangzhou"),
			HostVpcId:      defaultNetwork.ID(),
		}, pulumi.DependsOn([]pulumi.Resource{
			defaultInstanceAttachment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CEN Private Zone can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/privateZone:PrivateZone example cen-abc123456:cn-hangzhou

```

func GetPrivateZone added in v2.5.0

func GetPrivateZone(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *PrivateZoneState, opts ...pulumi.ResourceOption) (*PrivateZone, error)

GetPrivateZone gets an existing PrivateZone 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 NewPrivateZone added in v2.5.0

func NewPrivateZone(ctx *pulumi.Context,
	name string, args *PrivateZoneArgs, opts ...pulumi.ResourceOption) (*PrivateZone, error)

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

func (*PrivateZone) ElementType added in v2.25.1

func (*PrivateZone) ElementType() reflect.Type

func (*PrivateZone) ToPrivateZoneOutput added in v2.25.1

func (i *PrivateZone) ToPrivateZoneOutput() PrivateZoneOutput

func (*PrivateZone) ToPrivateZoneOutputWithContext added in v2.25.1

func (i *PrivateZone) ToPrivateZoneOutputWithContext(ctx context.Context) PrivateZoneOutput

func (*PrivateZone) ToPrivateZonePtrOutput added in v2.35.1

func (i *PrivateZone) ToPrivateZonePtrOutput() PrivateZonePtrOutput

func (*PrivateZone) ToPrivateZonePtrOutputWithContext added in v2.35.1

func (i *PrivateZone) ToPrivateZonePtrOutputWithContext(ctx context.Context) PrivateZonePtrOutput

type PrivateZoneArgs added in v2.5.0

type PrivateZoneArgs struct {
	// The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
	AccessRegionId pulumi.StringInput
	// The ID of the CEN instance.
	CenId pulumi.StringInput
	// The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
	HostRegionId pulumi.StringInput
	// The VPC that belongs to the service region.
	HostVpcId pulumi.StringInput
}

The set of arguments for constructing a PrivateZone resource.

func (PrivateZoneArgs) ElementType added in v2.5.0

func (PrivateZoneArgs) ElementType() reflect.Type

type PrivateZoneArray added in v2.35.1

type PrivateZoneArray []PrivateZoneInput

func (PrivateZoneArray) ElementType added in v2.35.1

func (PrivateZoneArray) ElementType() reflect.Type

func (PrivateZoneArray) ToPrivateZoneArrayOutput added in v2.35.1

func (i PrivateZoneArray) ToPrivateZoneArrayOutput() PrivateZoneArrayOutput

func (PrivateZoneArray) ToPrivateZoneArrayOutputWithContext added in v2.35.1

func (i PrivateZoneArray) ToPrivateZoneArrayOutputWithContext(ctx context.Context) PrivateZoneArrayOutput

type PrivateZoneArrayInput added in v2.35.1

type PrivateZoneArrayInput interface {
	pulumi.Input

	ToPrivateZoneArrayOutput() PrivateZoneArrayOutput
	ToPrivateZoneArrayOutputWithContext(context.Context) PrivateZoneArrayOutput
}

PrivateZoneArrayInput is an input type that accepts PrivateZoneArray and PrivateZoneArrayOutput values. You can construct a concrete instance of `PrivateZoneArrayInput` via:

PrivateZoneArray{ PrivateZoneArgs{...} }

type PrivateZoneArrayOutput added in v2.35.1

type PrivateZoneArrayOutput struct{ *pulumi.OutputState }

func (PrivateZoneArrayOutput) ElementType added in v2.35.1

func (PrivateZoneArrayOutput) ElementType() reflect.Type

func (PrivateZoneArrayOutput) Index added in v2.35.1

func (PrivateZoneArrayOutput) ToPrivateZoneArrayOutput added in v2.35.1

func (o PrivateZoneArrayOutput) ToPrivateZoneArrayOutput() PrivateZoneArrayOutput

func (PrivateZoneArrayOutput) ToPrivateZoneArrayOutputWithContext added in v2.35.1

func (o PrivateZoneArrayOutput) ToPrivateZoneArrayOutputWithContext(ctx context.Context) PrivateZoneArrayOutput

type PrivateZoneInput added in v2.25.1

type PrivateZoneInput interface {
	pulumi.Input

	ToPrivateZoneOutput() PrivateZoneOutput
	ToPrivateZoneOutputWithContext(ctx context.Context) PrivateZoneOutput
}

type PrivateZoneMap added in v2.35.1

type PrivateZoneMap map[string]PrivateZoneInput

func (PrivateZoneMap) ElementType added in v2.35.1

func (PrivateZoneMap) ElementType() reflect.Type

func (PrivateZoneMap) ToPrivateZoneMapOutput added in v2.35.1

func (i PrivateZoneMap) ToPrivateZoneMapOutput() PrivateZoneMapOutput

func (PrivateZoneMap) ToPrivateZoneMapOutputWithContext added in v2.35.1

func (i PrivateZoneMap) ToPrivateZoneMapOutputWithContext(ctx context.Context) PrivateZoneMapOutput

type PrivateZoneMapInput added in v2.35.1

type PrivateZoneMapInput interface {
	pulumi.Input

	ToPrivateZoneMapOutput() PrivateZoneMapOutput
	ToPrivateZoneMapOutputWithContext(context.Context) PrivateZoneMapOutput
}

PrivateZoneMapInput is an input type that accepts PrivateZoneMap and PrivateZoneMapOutput values. You can construct a concrete instance of `PrivateZoneMapInput` via:

PrivateZoneMap{ "key": PrivateZoneArgs{...} }

type PrivateZoneMapOutput added in v2.35.1

type PrivateZoneMapOutput struct{ *pulumi.OutputState }

func (PrivateZoneMapOutput) ElementType added in v2.35.1

func (PrivateZoneMapOutput) ElementType() reflect.Type

func (PrivateZoneMapOutput) MapIndex added in v2.35.1

func (PrivateZoneMapOutput) ToPrivateZoneMapOutput added in v2.35.1

func (o PrivateZoneMapOutput) ToPrivateZoneMapOutput() PrivateZoneMapOutput

func (PrivateZoneMapOutput) ToPrivateZoneMapOutputWithContext added in v2.35.1

func (o PrivateZoneMapOutput) ToPrivateZoneMapOutputWithContext(ctx context.Context) PrivateZoneMapOutput

type PrivateZoneOutput added in v2.25.1

type PrivateZoneOutput struct {
	*pulumi.OutputState
}

func (PrivateZoneOutput) ElementType added in v2.25.1

func (PrivateZoneOutput) ElementType() reflect.Type

func (PrivateZoneOutput) ToPrivateZoneOutput added in v2.25.1

func (o PrivateZoneOutput) ToPrivateZoneOutput() PrivateZoneOutput

func (PrivateZoneOutput) ToPrivateZoneOutputWithContext added in v2.25.1

func (o PrivateZoneOutput) ToPrivateZoneOutputWithContext(ctx context.Context) PrivateZoneOutput

func (PrivateZoneOutput) ToPrivateZonePtrOutput added in v2.35.1

func (o PrivateZoneOutput) ToPrivateZonePtrOutput() PrivateZonePtrOutput

func (PrivateZoneOutput) ToPrivateZonePtrOutputWithContext added in v2.35.1

func (o PrivateZoneOutput) ToPrivateZonePtrOutputWithContext(ctx context.Context) PrivateZonePtrOutput

type PrivateZonePtrInput added in v2.35.1

type PrivateZonePtrInput interface {
	pulumi.Input

	ToPrivateZonePtrOutput() PrivateZonePtrOutput
	ToPrivateZonePtrOutputWithContext(ctx context.Context) PrivateZonePtrOutput
}

type PrivateZonePtrOutput added in v2.35.1

type PrivateZonePtrOutput struct {
	*pulumi.OutputState
}

func (PrivateZonePtrOutput) ElementType added in v2.35.1

func (PrivateZonePtrOutput) ElementType() reflect.Type

func (PrivateZonePtrOutput) ToPrivateZonePtrOutput added in v2.35.1

func (o PrivateZonePtrOutput) ToPrivateZonePtrOutput() PrivateZonePtrOutput

func (PrivateZonePtrOutput) ToPrivateZonePtrOutputWithContext added in v2.35.1

func (o PrivateZonePtrOutput) ToPrivateZonePtrOutputWithContext(ctx context.Context) PrivateZonePtrOutput

type PrivateZoneState added in v2.5.0

type PrivateZoneState struct {
	// The access region. The access region is the region of the cloud resource that accesses the PrivateZone service through CEN.
	AccessRegionId pulumi.StringPtrInput
	// The ID of the CEN instance.
	CenId pulumi.StringPtrInput
	// The service region. The service region is the target region of the PrivateZone service to be accessed through CEN.
	HostRegionId pulumi.StringPtrInput
	// The VPC that belongs to the service region.
	HostVpcId pulumi.StringPtrInput
	// The status of the PrivateZone service. Valid values: ["Creating", "Active", "Deleting"].
	Status pulumi.StringPtrInput
}

func (PrivateZoneState) ElementType added in v2.5.0

func (PrivateZoneState) ElementType() reflect.Type

type RouteEntry

type RouteEntry struct {
	pulumi.CustomResourceState

	// The destination CIDR block of the route entry to publish.
	CidrBlock pulumi.StringOutput `pulumi:"cidrBlock"`
	// The ID of the CEN.
	InstanceId pulumi.StringOutput `pulumi:"instanceId"`
	// The route table of the attached VBR or VPC.
	RouteTableId pulumi.StringOutput `pulumi:"routeTableId"`
}

Provides a CEN route entry resource. Cloud Enterprise Network (CEN) supports publishing and withdrawing route entries of attached networks. You can publish a route entry of an attached VPC or VBR to a CEN instance, then other attached networks can learn the route if there is no route conflict. You can withdraw a published route entry when CEN does not need it any more.

For information about CEN route entries publishment and how to use it, see [Manage network routes](https://www.alibabacloud.com/help/doc-detail/86980.htm).

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/providers"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := providers.Newalicloud(ctx, "hz", &providers.alicloudArgs{
			Region: pulumi.String("cn-hangzhou"),
		})
		if err != nil {
			return err
		}
		cfg := config.New(ctx, "")
		name := "tf-testAccCenRouteEntryConfig"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		opt0 := "cloud_efficiency"
		opt1 := "VSwitch"
		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableDiskCategory:     &opt0,
			AvailableResourceCreation: &opt1,
		}, nil)
		if err != nil {
			return err
		}
		opt2 := defaultZones.Zones[0].Id
		opt3 := 1
		opt4 := 2
		defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
			AvailabilityZone: &opt2,
			CpuCoreCount:     &opt3,
			MemorySize:       &opt4,
		}, nil)
		if err != nil {
			return err
		}
		opt5 := "^ubuntu_18.*64"
		opt6 := true
		opt7 := "system"
		defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			NameRegex:  &opt5,
			MostRecent: &opt6,
			Owners:     &opt7,
		}, nil)
		if err != nil {
			return err
		}
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		}, pulumi.Provider(alicloud.Hz))
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
			VpcId:            vpc.ID(),
			CidrBlock:        pulumi.String("172.16.0.0/21"),
			AvailabilityZone: pulumi.String(defaultZones.Zones[0].Id),
			VswitchName:      pulumi.String(name),
		}, pulumi.Provider(alicloud.Hz))
		if err != nil {
			return err
		}
		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
			Description: pulumi.String("foo"),
			VpcId:       vpc.ID(),
		}, pulumi.Provider(alicloud.Hz))
		if err != nil {
			return err
		}
		defaultInstance, err := ecs.NewInstance(ctx, "defaultInstance", &ecs.InstanceArgs{
			VswitchId:               defaultSwitch.ID(),
			ImageId:                 pulumi.String(defaultImages.Images[0].Id),
			InstanceType:            pulumi.String(defaultInstanceTypes.InstanceTypes[0].Id),
			SystemDiskCategory:      pulumi.String("cloud_efficiency"),
			InternetChargeType:      pulumi.String("PayByTraffic"),
			InternetMaxBandwidthOut: pulumi.Int(5),
			SecurityGroups: pulumi.StringArray{
				defaultSecurityGroup.ID(),
			},
			InstanceName: pulumi.String(name),
		}, pulumi.Provider(alicloud.Hz))
		if err != nil {
			return err
		}
		cen, err := cen.NewInstance(ctx, "cen", nil)
		if err != nil {
			return err
		}
		attach, err := cen.NewInstanceAttachment(ctx, "attach", &cen.InstanceAttachmentArgs{
			InstanceId:            cen.ID(),
			ChildInstanceId:       vpc.ID(),
			ChildInstanceType:     pulumi.String("VPC"),
			ChildInstanceRegionId: pulumi.String("cn-hangzhou"),
		}, pulumi.DependsOn([]pulumi.Resource{
			defaultSwitch,
		}))
		if err != nil {
			return err
		}
		route, err := vpc.NewRouteEntry(ctx, "route", &vpc.RouteEntryArgs{
			RouteTableId:         vpc.RouteTableId,
			DestinationCidrblock: pulumi.String("11.0.0.0/16"),
			NexthopType:          pulumi.String("Instance"),
			NexthopId:            defaultInstance.ID(),
		}, pulumi.Provider(alicloud.Hz))
		if err != nil {
			return err
		}
		_, err = cen.NewRouteEntry(ctx, "foo", &cen.RouteEntryArgs{
			InstanceId:   cen.ID(),
			RouteTableId: vpc.RouteTableId,
			CidrBlock:    route.DestinationCidrblock,
		}, pulumi.Provider(alicloud.Hz), pulumi.DependsOn([]pulumi.Resource{
			attach,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import alicloud:cen/routeEntry:RouteEntry example cen-abc123456:vtb-abc123:192.168.0.0/24

```

func GetRouteEntry

func GetRouteEntry(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RouteEntryState, opts ...pulumi.ResourceOption) (*RouteEntry, error)

GetRouteEntry gets an existing RouteEntry 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 NewRouteEntry

func NewRouteEntry(ctx *pulumi.Context,
	name string, args *RouteEntryArgs, opts ...pulumi.ResourceOption) (*RouteEntry, error)

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

func (*RouteEntry) ElementType added in v2.25.1

func (*RouteEntry) ElementType() reflect.Type

func (*RouteEntry) ToRouteEntryOutput added in v2.25.1

func (i *RouteEntry) ToRouteEntryOutput() RouteEntryOutput

func (*RouteEntry) ToRouteEntryOutputWithContext added in v2.25.1

func (i *RouteEntry) ToRouteEntryOutputWithContext(ctx context.Context) RouteEntryOutput

func (*RouteEntry) ToRouteEntryPtrOutput added in v2.35.1

func (i *RouteEntry) ToRouteEntryPtrOutput() RouteEntryPtrOutput

func (*RouteEntry) ToRouteEntryPtrOutputWithContext added in v2.35.1

func (i *RouteEntry) ToRouteEntryPtrOutputWithContext(ctx context.Context) RouteEntryPtrOutput

type RouteEntryArgs

type RouteEntryArgs struct {
	// The destination CIDR block of the route entry to publish.
	CidrBlock pulumi.StringInput
	// The ID of the CEN.
	InstanceId pulumi.StringInput
	// The route table of the attached VBR or VPC.
	RouteTableId pulumi.StringInput
}

The set of arguments for constructing a RouteEntry resource.

func (RouteEntryArgs) ElementType

func (RouteEntryArgs) ElementType() reflect.Type

type RouteEntryArray added in v2.35.1

type RouteEntryArray []RouteEntryInput

func (RouteEntryArray) ElementType added in v2.35.1

func (RouteEntryArray) ElementType() reflect.Type

func (RouteEntryArray) ToRouteEntryArrayOutput added in v2.35.1

func (i RouteEntryArray) ToRouteEntryArrayOutput() RouteEntryArrayOutput

func (RouteEntryArray) ToRouteEntryArrayOutputWithContext added in v2.35.1

func (i RouteEntryArray) ToRouteEntryArrayOutputWithContext(ctx context.Context) RouteEntryArrayOutput

type RouteEntryArrayInput added in v2.35.1

type RouteEntryArrayInput interface {
	pulumi.Input

	ToRouteEntryArrayOutput() RouteEntryArrayOutput
	ToRouteEntryArrayOutputWithContext(context.Context) RouteEntryArrayOutput
}

RouteEntryArrayInput is an input type that accepts RouteEntryArray and RouteEntryArrayOutput values. You can construct a concrete instance of `RouteEntryArrayInput` via:

RouteEntryArray{ RouteEntryArgs{...} }

type RouteEntryArrayOutput added in v2.35.1

type RouteEntryArrayOutput struct{ *pulumi.OutputState }

func (RouteEntryArrayOutput) ElementType added in v2.35.1

func (RouteEntryArrayOutput) ElementType() reflect.Type

func (RouteEntryArrayOutput) Index added in v2.35.1

func (RouteEntryArrayOutput) ToRouteEntryArrayOutput added in v2.35.1

func (o RouteEntryArrayOutput) ToRouteEntryArrayOutput() RouteEntryArrayOutput

func (RouteEntryArrayOutput) ToRouteEntryArrayOutputWithContext added in v2.35.1

func (o RouteEntryArrayOutput) ToRouteEntryArrayOutputWithContext(ctx context.Context) RouteEntryArrayOutput

type RouteEntryInput added in v2.25.1

type RouteEntryInput interface {
	pulumi.Input

	ToRouteEntryOutput() RouteEntryOutput
	ToRouteEntryOutputWithContext(ctx context.Context) RouteEntryOutput
}

type RouteEntryMap added in v2.35.1

type RouteEntryMap map[string]RouteEntryInput

func (RouteEntryMap) ElementType added in v2.35.1

func (RouteEntryMap) ElementType() reflect.Type

func (RouteEntryMap) ToRouteEntryMapOutput added in v2.35.1

func (i RouteEntryMap) ToRouteEntryMapOutput() RouteEntryMapOutput

func (RouteEntryMap) ToRouteEntryMapOutputWithContext added in v2.35.1

func (i RouteEntryMap) ToRouteEntryMapOutputWithContext(ctx context.Context) RouteEntryMapOutput

type RouteEntryMapInput added in v2.35.1

type RouteEntryMapInput interface {
	pulumi.Input

	ToRouteEntryMapOutput() RouteEntryMapOutput
	ToRouteEntryMapOutputWithContext(context.Context) RouteEntryMapOutput
}

RouteEntryMapInput is an input type that accepts RouteEntryMap and RouteEntryMapOutput values. You can construct a concrete instance of `RouteEntryMapInput` via:

RouteEntryMap{ "key": RouteEntryArgs{...} }

type RouteEntryMapOutput added in v2.35.1

type RouteEntryMapOutput struct{ *pulumi.OutputState }

func (RouteEntryMapOutput) ElementType added in v2.35.1

func (RouteEntryMapOutput) ElementType() reflect.Type

func (RouteEntryMapOutput) MapIndex added in v2.35.1

func (RouteEntryMapOutput) ToRouteEntryMapOutput added in v2.35.1

func (o RouteEntryMapOutput) ToRouteEntryMapOutput() RouteEntryMapOutput

func (RouteEntryMapOutput) ToRouteEntryMapOutputWithContext added in v2.35.1

func (o RouteEntryMapOutput) ToRouteEntryMapOutputWithContext(ctx context.Context) RouteEntryMapOutput

type RouteEntryOutput added in v2.25.1

type RouteEntryOutput struct {
	*pulumi.OutputState
}

func (RouteEntryOutput) ElementType added in v2.25.1

func (RouteEntryOutput) ElementType() reflect.Type

func (RouteEntryOutput) ToRouteEntryOutput added in v2.25.1

func (o RouteEntryOutput) ToRouteEntryOutput() RouteEntryOutput

func (RouteEntryOutput) ToRouteEntryOutputWithContext added in v2.25.1

func (o RouteEntryOutput) ToRouteEntryOutputWithContext(ctx context.Context) RouteEntryOutput

func (RouteEntryOutput) ToRouteEntryPtrOutput added in v2.35.1

func (o RouteEntryOutput) ToRouteEntryPtrOutput() RouteEntryPtrOutput

func (RouteEntryOutput) ToRouteEntryPtrOutputWithContext added in v2.35.1

func (o RouteEntryOutput) ToRouteEntryPtrOutputWithContext(ctx context.Context) RouteEntryPtrOutput

type RouteEntryPtrInput added in v2.35.1

type RouteEntryPtrInput interface {
	pulumi.Input

	ToRouteEntryPtrOutput() RouteEntryPtrOutput
	ToRouteEntryPtrOutputWithContext(ctx context.Context) RouteEntryPtrOutput
}

type RouteEntryPtrOutput added in v2.35.1

type RouteEntryPtrOutput struct {
	*pulumi.OutputState
}

func (RouteEntryPtrOutput) ElementType added in v2.35.1

func (RouteEntryPtrOutput) ElementType() reflect.Type

func (RouteEntryPtrOutput) ToRouteEntryPtrOutput added in v2.35.1

func (o RouteEntryPtrOutput) ToRouteEntryPtrOutput() RouteEntryPtrOutput

func (RouteEntryPtrOutput) ToRouteEntryPtrOutputWithContext added in v2.35.1

func (o RouteEntryPtrOutput) ToRouteEntryPtrOutputWithContext(ctx context.Context) RouteEntryPtrOutput

type RouteEntryState

type RouteEntryState struct {
	// The destination CIDR block of the route entry to publish.
	CidrBlock pulumi.StringPtrInput
	// The ID of the CEN.
	InstanceId pulumi.StringPtrInput
	// The route table of the attached VBR or VPC.
	RouteTableId pulumi.StringPtrInput
}

func (RouteEntryState) ElementType

func (RouteEntryState) ElementType() reflect.Type

type RouteMap added in v2.4.0

type RouteMap struct {
	pulumi.CustomResourceState

	// A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
	AsPathMatchMode pulumi.StringPtrOutput `pulumi:"asPathMatchMode"`
	// The ID of the CEN instance.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// The ID of the region to which the CEN instance belongs.
	CenRegionId pulumi.StringOutput `pulumi:"cenRegionId"`
	// A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
	CidrMatchMode pulumi.StringPtrOutput `pulumi:"cidrMatchMode"`
	// A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
	CommunityMatchMode pulumi.StringPtrOutput `pulumi:"communityMatchMode"`
	// An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
	CommunityOperateMode pulumi.StringPtrOutput `pulumi:"communityOperateMode"`
	// The description of the route map.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN"].
	DestinationChildInstanceTypes pulumi.StringArrayOutput `pulumi:"destinationChildInstanceTypes"`
	// A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
	DestinationCidrBlocks pulumi.StringArrayOutput `pulumi:"destinationCidrBlocks"`
	// A match statement that indicates the list of IDs of the destination instances.
	DestinationInstanceIds pulumi.StringArrayOutput `pulumi:"destinationInstanceIds"`
	// Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
	DestinationInstanceIdsReverseMatch pulumi.BoolPtrOutput `pulumi:"destinationInstanceIdsReverseMatch"`
	// A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
	DestinationRouteTableIds pulumi.StringArrayOutput `pulumi:"destinationRouteTableIds"`
	// The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
	MapResult pulumi.StringOutput `pulumi:"mapResult"`
	// A match statement that indicates the AS path list. The AS path is a well-known mandatory attribute, which describes the numbers of the ASs that a BGP route passes through during transmission.
	MatchAsns pulumi.StringArrayOutput `pulumi:"matchAsns"`
	// A match statement that indicates the community set. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
	MatchCommunitySets pulumi.StringArrayOutput `pulumi:"matchCommunitySets"`
	// The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
	NextPriority pulumi.IntPtrOutput `pulumi:"nextPriority"`
	// An action statement that operates the community attribute. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
	OperateCommunitySets pulumi.StringArrayOutput `pulumi:"operateCommunitySets"`
	// An action statement that modifies the priority of the route. Value range: 1 to 100. The default priority of a route is 50. A lower value indicates a higher preference.
	Preference pulumi.IntPtrOutput `pulumi:"preference"`
	// An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
	PrependAsPaths pulumi.StringArrayOutput `pulumi:"prependAsPaths"`
	// The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
	Priority   pulumi.IntOutput    `pulumi:"priority"`
	RouteMapId pulumi.StringOutput `pulumi:"routeMapId"`
	// A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
	RouteTypes pulumi.StringArrayOutput `pulumi:"routeTypes"`
	// A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
	SourceChildInstanceTypes pulumi.StringArrayOutput `pulumi:"sourceChildInstanceTypes"`
	// A match statement that indicates the list of IDs of the source instances.
	SourceInstanceIds pulumi.StringArrayOutput `pulumi:"sourceInstanceIds"`
	// Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
	SourceInstanceIdsReverseMatch pulumi.BoolPtrOutput `pulumi:"sourceInstanceIdsReverseMatch"`
	// A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
	SourceRegionIds pulumi.StringArrayOutput `pulumi:"sourceRegionIds"`
	// A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
	SourceRouteTableIds pulumi.StringArrayOutput `pulumi:"sourceRouteTableIds"`
	// (Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
	Status pulumi.StringOutput `pulumi:"status"`
	// The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
	TransmitDirection pulumi.StringOutput `pulumi:"transmitDirection"`
}

This topic provides an overview of the route map function of Cloud Enterprise Networks (CENs). You can use the route map function to filter routes and modify route attributes. By doing so, you can manage the communication between networks attached to a CEN.

For information about CEN Route Map and how to use it, see [Manage CEN Route Map](https://www.alibabacloud.com/help/doc-detail/124157.htm).

> **NOTE:** Available in 1.82.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/providers"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", nil)
		if err != nil {
			return err
		}
		_, err = providers.Newalicloud(ctx, "vpc00Region", &providers.alicloudArgs{
			Region: pulumi.String("cn-hangzhou"),
		})
		if err != nil {
			return err
		}
		_, err = providers.Newalicloud(ctx, "vpc01Region", &providers.alicloudArgs{
			Region: pulumi.String("cn-shanghai"),
		})
		if err != nil {
			return err
		}
		vpc00, err := vpc.NewNetwork(ctx, "vpc00", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("172.16.0.0/12"),
		}, pulumi.Provider(alicloud.Vpc00_region))
		if err != nil {
			return err
		}
		vpc01, err := vpc.NewNetwork(ctx, "vpc01", &vpc.NetworkArgs{
			CidrBlock: pulumi.String("172.16.0.0/12"),
		}, pulumi.Provider(alicloud.Vpc01_region))
		if err != nil {
			return err
		}
		default00, err := cen.NewInstanceAttachment(ctx, "default00", &cen.InstanceAttachmentArgs{
			InstanceId:            defaultInstance.ID(),
			ChildInstanceId:       vpc00.ID(),
			ChildInstanceType:     pulumi.String("VPC"),
			ChildInstanceRegionId: pulumi.String("cn-hangzhou"),
		})
		if err != nil {
			return err
		}
		default01, err := cen.NewInstanceAttachment(ctx, "default01", &cen.InstanceAttachmentArgs{
			InstanceId:            defaultInstance.ID(),
			ChildInstanceId:       vpc01.ID(),
			ChildInstanceType:     pulumi.String("VPC"),
			ChildInstanceRegionId: pulumi.String("cn-shanghai"),
		})
		if err != nil {
			return err
		}
		_, err = cen.NewRouteMap(ctx, "defaultRouteMap", &cen.RouteMapArgs{
			CenRegionId:       pulumi.String("cn-hangzhou"),
			CenId:             pulumi.Any(alicloud_cen_instance.Cen.Id),
			Description:       pulumi.String("test-desc"),
			Priority:          pulumi.Int(1),
			TransmitDirection: pulumi.String("RegionIn"),
			MapResult:         pulumi.String("Permit"),
			NextPriority:      pulumi.Int(1),
			SourceRegionIds: pulumi.StringArray{
				pulumi.String("cn-hangzhou"),
			},
			SourceInstanceIds: pulumi.StringArray{
				vpc00.ID(),
			},
			SourceInstanceIdsReverseMatch: pulumi.Bool(false),
			DestinationInstanceIds: pulumi.StringArray{
				vpc01.ID(),
			},
			DestinationInstanceIdsReverseMatch: pulumi.Bool(false),
			SourceRouteTableIds: pulumi.StringArray{
				vpc00.RouteTableId,
			},
			DestinationRouteTableIds: pulumi.StringArray{
				vpc01.RouteTableId,
			},
			SourceChildInstanceTypes: pulumi.StringArray{
				pulumi.String("VPC"),
			},
			DestinationChildInstanceTypes: pulumi.StringArray{
				pulumi.String("VPC"),
			},
			DestinationCidrBlocks: pulumi.StringArray{
				vpc01.CidrBlock,
			},
			CidrMatchMode: pulumi.String("Include"),
			RouteTypes: pulumi.StringArray{
				pulumi.String("System"),
			},
			MatchAsns: pulumi.StringArray{
				pulumi.String("65501"),
			},
			AsPathMatchMode: pulumi.String("Include"),
			MatchCommunitySets: pulumi.StringArray{
				pulumi.String("65501:1"),
			},
			CommunityMatchMode:   pulumi.String("Include"),
			CommunityOperateMode: pulumi.String("Additive"),
			OperateCommunitySets: pulumi.StringArray{
				pulumi.String("65501:1"),
			},
			Preference: pulumi.Int(20),
			PrependAsPaths: pulumi.StringArray{
				pulumi.String("65501"),
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			default00,
			default01,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CEN RouteMap can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/routeMap:RouteMap default cenrmap-tig1xxxxxx

```

func GetRouteMap added in v2.4.0

func GetRouteMap(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RouteMapState, opts ...pulumi.ResourceOption) (*RouteMap, error)

GetRouteMap gets an existing RouteMap 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 NewRouteMap added in v2.4.0

func NewRouteMap(ctx *pulumi.Context,
	name string, args *RouteMapArgs, opts ...pulumi.ResourceOption) (*RouteMap, error)

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

func (*RouteMap) ElementType added in v2.25.1

func (*RouteMap) ElementType() reflect.Type

func (*RouteMap) ToRouteMapOutput added in v2.25.1

func (i *RouteMap) ToRouteMapOutput() RouteMapOutput

func (*RouteMap) ToRouteMapOutputWithContext added in v2.25.1

func (i *RouteMap) ToRouteMapOutputWithContext(ctx context.Context) RouteMapOutput

func (*RouteMap) ToRouteMapPtrOutput added in v2.35.1

func (i *RouteMap) ToRouteMapPtrOutput() RouteMapPtrOutput

func (*RouteMap) ToRouteMapPtrOutputWithContext added in v2.35.1

func (i *RouteMap) ToRouteMapPtrOutputWithContext(ctx context.Context) RouteMapPtrOutput

type RouteMapArgs added in v2.4.0

type RouteMapArgs struct {
	// A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
	AsPathMatchMode pulumi.StringPtrInput
	// The ID of the CEN instance.
	CenId pulumi.StringInput
	// The ID of the region to which the CEN instance belongs.
	CenRegionId pulumi.StringInput
	// A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
	CidrMatchMode pulumi.StringPtrInput
	// A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
	CommunityMatchMode pulumi.StringPtrInput
	// An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
	CommunityOperateMode pulumi.StringPtrInput
	// The description of the route map.
	Description pulumi.StringPtrInput
	// A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN"].
	DestinationChildInstanceTypes pulumi.StringArrayInput
	// A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
	DestinationCidrBlocks pulumi.StringArrayInput
	// A match statement that indicates the list of IDs of the destination instances.
	DestinationInstanceIds pulumi.StringArrayInput
	// Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
	DestinationInstanceIdsReverseMatch pulumi.BoolPtrInput
	// A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
	DestinationRouteTableIds pulumi.StringArrayInput
	// The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
	MapResult pulumi.StringInput
	// A match statement that indicates the AS path list. The AS path is a well-known mandatory attribute, which describes the numbers of the ASs that a BGP route passes through during transmission.
	MatchAsns pulumi.StringArrayInput
	// A match statement that indicates the community set. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
	MatchCommunitySets pulumi.StringArrayInput
	// The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
	NextPriority pulumi.IntPtrInput
	// An action statement that operates the community attribute. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
	OperateCommunitySets pulumi.StringArrayInput
	// An action statement that modifies the priority of the route. Value range: 1 to 100. The default priority of a route is 50. A lower value indicates a higher preference.
	Preference pulumi.IntPtrInput
	// An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
	PrependAsPaths pulumi.StringArrayInput
	// The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
	Priority pulumi.IntInput
	// A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
	RouteTypes pulumi.StringArrayInput
	// A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
	SourceChildInstanceTypes pulumi.StringArrayInput
	// A match statement that indicates the list of IDs of the source instances.
	SourceInstanceIds pulumi.StringArrayInput
	// Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
	SourceInstanceIdsReverseMatch pulumi.BoolPtrInput
	// A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
	SourceRegionIds pulumi.StringArrayInput
	// A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
	SourceRouteTableIds pulumi.StringArrayInput
	// The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
	TransmitDirection pulumi.StringInput
}

The set of arguments for constructing a RouteMap resource.

func (RouteMapArgs) ElementType added in v2.4.0

func (RouteMapArgs) ElementType() reflect.Type

type RouteMapArray added in v2.35.1

type RouteMapArray []RouteMapInput

func (RouteMapArray) ElementType added in v2.35.1

func (RouteMapArray) ElementType() reflect.Type

func (RouteMapArray) ToRouteMapArrayOutput added in v2.35.1

func (i RouteMapArray) ToRouteMapArrayOutput() RouteMapArrayOutput

func (RouteMapArray) ToRouteMapArrayOutputWithContext added in v2.35.1

func (i RouteMapArray) ToRouteMapArrayOutputWithContext(ctx context.Context) RouteMapArrayOutput

type RouteMapArrayInput added in v2.35.1

type RouteMapArrayInput interface {
	pulumi.Input

	ToRouteMapArrayOutput() RouteMapArrayOutput
	ToRouteMapArrayOutputWithContext(context.Context) RouteMapArrayOutput
}

RouteMapArrayInput is an input type that accepts RouteMapArray and RouteMapArrayOutput values. You can construct a concrete instance of `RouteMapArrayInput` via:

RouteMapArray{ RouteMapArgs{...} }

type RouteMapArrayOutput added in v2.35.1

type RouteMapArrayOutput struct{ *pulumi.OutputState }

func (RouteMapArrayOutput) ElementType added in v2.35.1

func (RouteMapArrayOutput) ElementType() reflect.Type

func (RouteMapArrayOutput) Index added in v2.35.1

func (RouteMapArrayOutput) ToRouteMapArrayOutput added in v2.35.1

func (o RouteMapArrayOutput) ToRouteMapArrayOutput() RouteMapArrayOutput

func (RouteMapArrayOutput) ToRouteMapArrayOutputWithContext added in v2.35.1

func (o RouteMapArrayOutput) ToRouteMapArrayOutputWithContext(ctx context.Context) RouteMapArrayOutput

type RouteMapInput added in v2.25.1

type RouteMapInput interface {
	pulumi.Input

	ToRouteMapOutput() RouteMapOutput
	ToRouteMapOutputWithContext(ctx context.Context) RouteMapOutput
}

type RouteMapMap added in v2.35.1

type RouteMapMap map[string]RouteMapInput

func (RouteMapMap) ElementType added in v2.35.1

func (RouteMapMap) ElementType() reflect.Type

func (RouteMapMap) ToRouteMapMapOutput added in v2.35.1

func (i RouteMapMap) ToRouteMapMapOutput() RouteMapMapOutput

func (RouteMapMap) ToRouteMapMapOutputWithContext added in v2.35.1

func (i RouteMapMap) ToRouteMapMapOutputWithContext(ctx context.Context) RouteMapMapOutput

type RouteMapMapInput added in v2.35.1

type RouteMapMapInput interface {
	pulumi.Input

	ToRouteMapMapOutput() RouteMapMapOutput
	ToRouteMapMapOutputWithContext(context.Context) RouteMapMapOutput
}

RouteMapMapInput is an input type that accepts RouteMapMap and RouteMapMapOutput values. You can construct a concrete instance of `RouteMapMapInput` via:

RouteMapMap{ "key": RouteMapArgs{...} }

type RouteMapMapOutput added in v2.35.1

type RouteMapMapOutput struct{ *pulumi.OutputState }

func (RouteMapMapOutput) ElementType added in v2.35.1

func (RouteMapMapOutput) ElementType() reflect.Type

func (RouteMapMapOutput) MapIndex added in v2.35.1

func (RouteMapMapOutput) ToRouteMapMapOutput added in v2.35.1

func (o RouteMapMapOutput) ToRouteMapMapOutput() RouteMapMapOutput

func (RouteMapMapOutput) ToRouteMapMapOutputWithContext added in v2.35.1

func (o RouteMapMapOutput) ToRouteMapMapOutputWithContext(ctx context.Context) RouteMapMapOutput

type RouteMapOutput added in v2.25.1

type RouteMapOutput struct {
	*pulumi.OutputState
}

func (RouteMapOutput) ElementType added in v2.25.1

func (RouteMapOutput) ElementType() reflect.Type

func (RouteMapOutput) ToRouteMapOutput added in v2.25.1

func (o RouteMapOutput) ToRouteMapOutput() RouteMapOutput

func (RouteMapOutput) ToRouteMapOutputWithContext added in v2.25.1

func (o RouteMapOutput) ToRouteMapOutputWithContext(ctx context.Context) RouteMapOutput

func (RouteMapOutput) ToRouteMapPtrOutput added in v2.35.1

func (o RouteMapOutput) ToRouteMapPtrOutput() RouteMapPtrOutput

func (RouteMapOutput) ToRouteMapPtrOutputWithContext added in v2.35.1

func (o RouteMapOutput) ToRouteMapPtrOutputWithContext(ctx context.Context) RouteMapPtrOutput

type RouteMapPtrInput added in v2.35.1

type RouteMapPtrInput interface {
	pulumi.Input

	ToRouteMapPtrOutput() RouteMapPtrOutput
	ToRouteMapPtrOutputWithContext(ctx context.Context) RouteMapPtrOutput
}

type RouteMapPtrOutput added in v2.35.1

type RouteMapPtrOutput struct {
	*pulumi.OutputState
}

func (RouteMapPtrOutput) ElementType added in v2.35.1

func (RouteMapPtrOutput) ElementType() reflect.Type

func (RouteMapPtrOutput) ToRouteMapPtrOutput added in v2.35.1

func (o RouteMapPtrOutput) ToRouteMapPtrOutput() RouteMapPtrOutput

func (RouteMapPtrOutput) ToRouteMapPtrOutputWithContext added in v2.35.1

func (o RouteMapPtrOutput) ToRouteMapPtrOutputWithContext(ctx context.Context) RouteMapPtrOutput

type RouteMapState added in v2.4.0

type RouteMapState struct {
	// A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].
	AsPathMatchMode pulumi.StringPtrInput
	// The ID of the CEN instance.
	CenId pulumi.StringPtrInput
	// The ID of the region to which the CEN instance belongs.
	CenRegionId pulumi.StringPtrInput
	// A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].
	CidrMatchMode pulumi.StringPtrInput
	// A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].
	CommunityMatchMode pulumi.StringPtrInput
	// An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].
	CommunityOperateMode pulumi.StringPtrInput
	// The description of the route map.
	Description pulumi.StringPtrInput
	// A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN"].
	DestinationChildInstanceTypes pulumi.StringArrayInput
	// A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.
	DestinationCidrBlocks pulumi.StringArrayInput
	// A match statement that indicates the list of IDs of the destination instances.
	DestinationInstanceIds pulumi.StringArrayInput
	// Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
	DestinationInstanceIdsReverseMatch pulumi.BoolPtrInput
	// A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.
	DestinationRouteTableIds pulumi.StringArrayInput
	// The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].
	MapResult pulumi.StringPtrInput
	// A match statement that indicates the AS path list. The AS path is a well-known mandatory attribute, which describes the numbers of the ASs that a BGP route passes through during transmission.
	MatchAsns pulumi.StringArrayInput
	// A match statement that indicates the community set. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
	MatchCommunitySets pulumi.StringArrayInput
	// The priority of the next route map that is associated with the current route map. Value range: 1 to 100.
	NextPriority pulumi.IntPtrInput
	// An action statement that operates the community attribute. The format of each community is nn:nn, which ranges from 1 to 65535. You can enter a maximum of 32 communities. Communities must comply with RFC 1997. Large communities (RFC 8092) are not supported.
	OperateCommunitySets pulumi.StringArrayInput
	// An action statement that modifies the priority of the route. Value range: 1 to 100. The default priority of a route is 50. A lower value indicates a higher preference.
	Preference pulumi.IntPtrInput
	// An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.
	PrependAsPaths pulumi.StringArrayInput
	// The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.
	Priority   pulumi.IntPtrInput
	RouteMapId pulumi.StringPtrInput
	// A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].
	RouteTypes pulumi.StringArrayInput
	// A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].
	SourceChildInstanceTypes pulumi.StringArrayInput
	// A match statement that indicates the list of IDs of the source instances.
	SourceInstanceIds pulumi.StringArrayInput
	// Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".
	SourceInstanceIdsReverseMatch pulumi.BoolPtrInput
	// A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.
	SourceRegionIds pulumi.StringArrayInput
	// A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.
	SourceRouteTableIds pulumi.StringArrayInput
	// (Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].
	Status pulumi.StringPtrInput
	// The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
	TransmitDirection pulumi.StringPtrInput
}

func (RouteMapState) ElementType added in v2.4.0

func (RouteMapState) ElementType() reflect.Type

type RouteService added in v2.20.0

type RouteService struct {
	pulumi.CustomResourceState

	// The region of the network instances that access the cloud services.
	AccessRegionId pulumi.StringOutput `pulumi:"accessRegionId"`
	// The ID of the CEN instance.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// The description of the cloud service.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The domain name or IP address of the cloud service.
	Host pulumi.StringOutput `pulumi:"host"`
	// The region of the cloud service.
	HostRegionId pulumi.StringOutput `pulumi:"hostRegionId"`
	// The VPC associated with the cloud service.
	HostVpcId pulumi.StringOutput `pulumi:"hostVpcId"`
	// The status of the cloud service.
	Status pulumi.StringOutput `pulumi:"status"`
}

Provides a CEN Route Service resource. The virtual border routers (VBRs) and Cloud Connect Network (CCN) instances attached to Cloud Enterprise Network (CEN) instances can access the cloud services deployed in VPCs through the CEN instances.

For information about CEN Route Service and how to use it, see [What is Route Service](https://www.alibabacloud.com/help/en/doc-detail/106671.htm).

> **NOTE:** Available in v1.99.0+.

> **NOTE:** Ensure that at least one VPC in the selected region is attached to the CEN instance.

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi/config"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-test"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		opt0 := true
		exampleNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			IsDefault: &opt0,
		}, nil)
		if err != nil {
			return err
		}
		exampleInstance, err := cen.NewInstance(ctx, "exampleInstance", nil)
		if err != nil {
			return err
		}
		vpc, err := cen.NewInstanceAttachment(ctx, "vpc", &cen.InstanceAttachmentArgs{
			InstanceId:            exampleInstance.ID(),
			ChildInstanceId:       pulumi.String(exampleNetworks.Vpcs[0].Id),
			ChildInstanceType:     pulumi.String("VPC"),
			ChildInstanceRegionId: pulumi.String(exampleNetworks.Vpcs[0].RegionId),
		})
		if err != nil {
			return err
		}
		_, err = cen.NewRouteService(ctx, "this", &cen.RouteServiceArgs{
			AccessRegionId: pulumi.String(exampleNetworks.Vpcs[0].RegionId),
			HostRegionId:   pulumi.String(exampleNetworks.Vpcs[0].RegionId),
			HostVpcId:      pulumi.String(exampleNetworks.Vpcs[0].Id),
			CenId:          vpc.InstanceId,
			Host:           pulumi.String("100.118.28.52/32"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CEN Route Service can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/routeService:RouteService example cen-ahixm0efqh********:cn-shanghai:100.118.28.52/32:cn-shanghai

```

func GetRouteService added in v2.20.0

func GetRouteService(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *RouteServiceState, opts ...pulumi.ResourceOption) (*RouteService, error)

GetRouteService gets an existing RouteService 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 NewRouteService added in v2.20.0

func NewRouteService(ctx *pulumi.Context,
	name string, args *RouteServiceArgs, opts ...pulumi.ResourceOption) (*RouteService, error)

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

func (*RouteService) ElementType added in v2.25.1

func (*RouteService) ElementType() reflect.Type

func (*RouteService) ToRouteServiceOutput added in v2.25.1

func (i *RouteService) ToRouteServiceOutput() RouteServiceOutput

func (*RouteService) ToRouteServiceOutputWithContext added in v2.25.1

func (i *RouteService) ToRouteServiceOutputWithContext(ctx context.Context) RouteServiceOutput

func (*RouteService) ToRouteServicePtrOutput added in v2.35.1

func (i *RouteService) ToRouteServicePtrOutput() RouteServicePtrOutput

func (*RouteService) ToRouteServicePtrOutputWithContext added in v2.35.1

func (i *RouteService) ToRouteServicePtrOutputWithContext(ctx context.Context) RouteServicePtrOutput

type RouteServiceArgs added in v2.20.0

type RouteServiceArgs struct {
	// The region of the network instances that access the cloud services.
	AccessRegionId pulumi.StringInput
	// The ID of the CEN instance.
	CenId pulumi.StringInput
	// The description of the cloud service.
	Description pulumi.StringPtrInput
	// The domain name or IP address of the cloud service.
	Host pulumi.StringInput
	// The region of the cloud service.
	HostRegionId pulumi.StringInput
	// The VPC associated with the cloud service.
	HostVpcId pulumi.StringInput
}

The set of arguments for constructing a RouteService resource.

func (RouteServiceArgs) ElementType added in v2.20.0

func (RouteServiceArgs) ElementType() reflect.Type

type RouteServiceArray added in v2.35.1

type RouteServiceArray []RouteServiceInput

func (RouteServiceArray) ElementType added in v2.35.1

func (RouteServiceArray) ElementType() reflect.Type

func (RouteServiceArray) ToRouteServiceArrayOutput added in v2.35.1

func (i RouteServiceArray) ToRouteServiceArrayOutput() RouteServiceArrayOutput

func (RouteServiceArray) ToRouteServiceArrayOutputWithContext added in v2.35.1

func (i RouteServiceArray) ToRouteServiceArrayOutputWithContext(ctx context.Context) RouteServiceArrayOutput

type RouteServiceArrayInput added in v2.35.1

type RouteServiceArrayInput interface {
	pulumi.Input

	ToRouteServiceArrayOutput() RouteServiceArrayOutput
	ToRouteServiceArrayOutputWithContext(context.Context) RouteServiceArrayOutput
}

RouteServiceArrayInput is an input type that accepts RouteServiceArray and RouteServiceArrayOutput values. You can construct a concrete instance of `RouteServiceArrayInput` via:

RouteServiceArray{ RouteServiceArgs{...} }

type RouteServiceArrayOutput added in v2.35.1

type RouteServiceArrayOutput struct{ *pulumi.OutputState }

func (RouteServiceArrayOutput) ElementType added in v2.35.1

func (RouteServiceArrayOutput) ElementType() reflect.Type

func (RouteServiceArrayOutput) Index added in v2.35.1

func (RouteServiceArrayOutput) ToRouteServiceArrayOutput added in v2.35.1

func (o RouteServiceArrayOutput) ToRouteServiceArrayOutput() RouteServiceArrayOutput

func (RouteServiceArrayOutput) ToRouteServiceArrayOutputWithContext added in v2.35.1

func (o RouteServiceArrayOutput) ToRouteServiceArrayOutputWithContext(ctx context.Context) RouteServiceArrayOutput

type RouteServiceInput added in v2.25.1

type RouteServiceInput interface {
	pulumi.Input

	ToRouteServiceOutput() RouteServiceOutput
	ToRouteServiceOutputWithContext(ctx context.Context) RouteServiceOutput
}

type RouteServiceMap added in v2.35.1

type RouteServiceMap map[string]RouteServiceInput

func (RouteServiceMap) ElementType added in v2.35.1

func (RouteServiceMap) ElementType() reflect.Type

func (RouteServiceMap) ToRouteServiceMapOutput added in v2.35.1

func (i RouteServiceMap) ToRouteServiceMapOutput() RouteServiceMapOutput

func (RouteServiceMap) ToRouteServiceMapOutputWithContext added in v2.35.1

func (i RouteServiceMap) ToRouteServiceMapOutputWithContext(ctx context.Context) RouteServiceMapOutput

type RouteServiceMapInput added in v2.35.1

type RouteServiceMapInput interface {
	pulumi.Input

	ToRouteServiceMapOutput() RouteServiceMapOutput
	ToRouteServiceMapOutputWithContext(context.Context) RouteServiceMapOutput
}

RouteServiceMapInput is an input type that accepts RouteServiceMap and RouteServiceMapOutput values. You can construct a concrete instance of `RouteServiceMapInput` via:

RouteServiceMap{ "key": RouteServiceArgs{...} }

type RouteServiceMapOutput added in v2.35.1

type RouteServiceMapOutput struct{ *pulumi.OutputState }

func (RouteServiceMapOutput) ElementType added in v2.35.1

func (RouteServiceMapOutput) ElementType() reflect.Type

func (RouteServiceMapOutput) MapIndex added in v2.35.1

func (RouteServiceMapOutput) ToRouteServiceMapOutput added in v2.35.1

func (o RouteServiceMapOutput) ToRouteServiceMapOutput() RouteServiceMapOutput

func (RouteServiceMapOutput) ToRouteServiceMapOutputWithContext added in v2.35.1

func (o RouteServiceMapOutput) ToRouteServiceMapOutputWithContext(ctx context.Context) RouteServiceMapOutput

type RouteServiceOutput added in v2.25.1

type RouteServiceOutput struct {
	*pulumi.OutputState
}

func (RouteServiceOutput) ElementType added in v2.25.1

func (RouteServiceOutput) ElementType() reflect.Type

func (RouteServiceOutput) ToRouteServiceOutput added in v2.25.1

func (o RouteServiceOutput) ToRouteServiceOutput() RouteServiceOutput

func (RouteServiceOutput) ToRouteServiceOutputWithContext added in v2.25.1

func (o RouteServiceOutput) ToRouteServiceOutputWithContext(ctx context.Context) RouteServiceOutput

func (RouteServiceOutput) ToRouteServicePtrOutput added in v2.35.1

func (o RouteServiceOutput) ToRouteServicePtrOutput() RouteServicePtrOutput

func (RouteServiceOutput) ToRouteServicePtrOutputWithContext added in v2.35.1

func (o RouteServiceOutput) ToRouteServicePtrOutputWithContext(ctx context.Context) RouteServicePtrOutput

type RouteServicePtrInput added in v2.35.1

type RouteServicePtrInput interface {
	pulumi.Input

	ToRouteServicePtrOutput() RouteServicePtrOutput
	ToRouteServicePtrOutputWithContext(ctx context.Context) RouteServicePtrOutput
}

type RouteServicePtrOutput added in v2.35.1

type RouteServicePtrOutput struct {
	*pulumi.OutputState
}

func (RouteServicePtrOutput) ElementType added in v2.35.1

func (RouteServicePtrOutput) ElementType() reflect.Type

func (RouteServicePtrOutput) ToRouteServicePtrOutput added in v2.35.1

func (o RouteServicePtrOutput) ToRouteServicePtrOutput() RouteServicePtrOutput

func (RouteServicePtrOutput) ToRouteServicePtrOutputWithContext added in v2.35.1

func (o RouteServicePtrOutput) ToRouteServicePtrOutputWithContext(ctx context.Context) RouteServicePtrOutput

type RouteServiceState added in v2.20.0

type RouteServiceState struct {
	// The region of the network instances that access the cloud services.
	AccessRegionId pulumi.StringPtrInput
	// The ID of the CEN instance.
	CenId pulumi.StringPtrInput
	// The description of the cloud service.
	Description pulumi.StringPtrInput
	// The domain name or IP address of the cloud service.
	Host pulumi.StringPtrInput
	// The region of the cloud service.
	HostRegionId pulumi.StringPtrInput
	// The VPC associated with the cloud service.
	HostVpcId pulumi.StringPtrInput
	// The status of the cloud service.
	Status pulumi.StringPtrInput
}

func (RouteServiceState) ElementType added in v2.20.0

func (RouteServiceState) ElementType() reflect.Type

type VbrHealthCheck added in v2.10.0

type VbrHealthCheck struct {
	pulumi.CustomResourceState

	// The ID of the CEN instance.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
	HealthCheckInterval pulumi.IntPtrOutput `pulumi:"healthCheckInterval"`
	// The source IP address of health checks.
	HealthCheckSourceIp pulumi.StringPtrOutput `pulumi:"healthCheckSourceIp"`
	// The destination IP address of health checks.
	HealthCheckTargetIp pulumi.StringOutput `pulumi:"healthCheckTargetIp"`
	// Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
	HealthyThreshold pulumi.IntPtrOutput `pulumi:"healthyThreshold"`
	// The ID of the VBR.
	VbrInstanceId pulumi.StringOutput `pulumi:"vbrInstanceId"`
	// The ID of the account to which the VBR belongs.
	VbrInstanceOwnerId pulumi.IntPtrOutput `pulumi:"vbrInstanceOwnerId"`
	// The ID of the region to which the VBR belongs.
	VbrInstanceRegionId pulumi.StringOutput `pulumi:"vbrInstanceRegionId"`
}

This topic describes how to configure the health check feature for a Cloud Enterprise Network (CEN) instance. After you attach a Virtual Border Router (VBR) to the CEN instance and configure the health check feature, you can monitor the network conditions of the on-premises data center connected to the VBR.

For information about CEN VBR HealthCheck and how to use it, see [Manage CEN VBR HealthCheck](https://www.alibabacloud.com/help/en/doc-detail/71141.htm).

> **NOTE:** Available in 1.88.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/v2/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", &cen.InstanceArgs{
			CenInstanceName: pulumi.String("test_name"),
		})
		if err != nil {
			return err
		}
		defaultInstanceAttachment, err := cen.NewInstanceAttachment(ctx, "defaultInstanceAttachment", &cen.InstanceAttachmentArgs{
			InstanceId:            defaultInstance.ID(),
			ChildInstanceId:       pulumi.String("vbr-xxxxx"),
			ChildInstanceType:     pulumi.String("VBR"),
			ChildInstanceRegionId: pulumi.String("cn-hangzhou"),
		})
		if err != nil {
			return err
		}
		_, err = cen.NewVbrHealthCheck(ctx, "defaultVbrHealthCheck", &cen.VbrHealthCheckArgs{
			CenId:               defaultInstance.ID(),
			HealthCheckSourceIp: pulumi.String("192.168.1.2"),
			HealthCheckTargetIp: pulumi.String("10.0.0.2"),
			VbrInstanceId:       pulumi.String("vbr-xxxxx"),
			VbrInstanceRegionId: pulumi.String("cn-hangzhou"),
			HealthCheckInterval: pulumi.Int(2),
			HealthyThreshold:    pulumi.Int(8),
		}, pulumi.DependsOn([]pulumi.Resource{
			defaultInstanceAttachment,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

CEN VBR HealthCheck can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/vbrHealthCheck:VbrHealthCheck example vbr-xxxxx:cn-hangzhou

```

func GetVbrHealthCheck added in v2.10.0

func GetVbrHealthCheck(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *VbrHealthCheckState, opts ...pulumi.ResourceOption) (*VbrHealthCheck, error)

GetVbrHealthCheck gets an existing VbrHealthCheck 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 NewVbrHealthCheck added in v2.10.0

func NewVbrHealthCheck(ctx *pulumi.Context,
	name string, args *VbrHealthCheckArgs, opts ...pulumi.ResourceOption) (*VbrHealthCheck, error)

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

func (*VbrHealthCheck) ElementType added in v2.25.1

func (*VbrHealthCheck) ElementType() reflect.Type

func (*VbrHealthCheck) ToVbrHealthCheckOutput added in v2.25.1

func (i *VbrHealthCheck) ToVbrHealthCheckOutput() VbrHealthCheckOutput

func (*VbrHealthCheck) ToVbrHealthCheckOutputWithContext added in v2.25.1

func (i *VbrHealthCheck) ToVbrHealthCheckOutputWithContext(ctx context.Context) VbrHealthCheckOutput

func (*VbrHealthCheck) ToVbrHealthCheckPtrOutput added in v2.35.1

func (i *VbrHealthCheck) ToVbrHealthCheckPtrOutput() VbrHealthCheckPtrOutput

func (*VbrHealthCheck) ToVbrHealthCheckPtrOutputWithContext added in v2.35.1

func (i *VbrHealthCheck) ToVbrHealthCheckPtrOutputWithContext(ctx context.Context) VbrHealthCheckPtrOutput

type VbrHealthCheckArgs added in v2.10.0

type VbrHealthCheckArgs struct {
	// The ID of the CEN instance.
	CenId pulumi.StringInput
	// Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
	HealthCheckInterval pulumi.IntPtrInput
	// The source IP address of health checks.
	HealthCheckSourceIp pulumi.StringPtrInput
	// The destination IP address of health checks.
	HealthCheckTargetIp pulumi.StringInput
	// Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
	HealthyThreshold pulumi.IntPtrInput
	// The ID of the VBR.
	VbrInstanceId pulumi.StringInput
	// The ID of the account to which the VBR belongs.
	VbrInstanceOwnerId pulumi.IntPtrInput
	// The ID of the region to which the VBR belongs.
	VbrInstanceRegionId pulumi.StringInput
}

The set of arguments for constructing a VbrHealthCheck resource.

func (VbrHealthCheckArgs) ElementType added in v2.10.0

func (VbrHealthCheckArgs) ElementType() reflect.Type

type VbrHealthCheckArray added in v2.35.1

type VbrHealthCheckArray []VbrHealthCheckInput

func (VbrHealthCheckArray) ElementType added in v2.35.1

func (VbrHealthCheckArray) ElementType() reflect.Type

func (VbrHealthCheckArray) ToVbrHealthCheckArrayOutput added in v2.35.1

func (i VbrHealthCheckArray) ToVbrHealthCheckArrayOutput() VbrHealthCheckArrayOutput

func (VbrHealthCheckArray) ToVbrHealthCheckArrayOutputWithContext added in v2.35.1

func (i VbrHealthCheckArray) ToVbrHealthCheckArrayOutputWithContext(ctx context.Context) VbrHealthCheckArrayOutput

type VbrHealthCheckArrayInput added in v2.35.1

type VbrHealthCheckArrayInput interface {
	pulumi.Input

	ToVbrHealthCheckArrayOutput() VbrHealthCheckArrayOutput
	ToVbrHealthCheckArrayOutputWithContext(context.Context) VbrHealthCheckArrayOutput
}

VbrHealthCheckArrayInput is an input type that accepts VbrHealthCheckArray and VbrHealthCheckArrayOutput values. You can construct a concrete instance of `VbrHealthCheckArrayInput` via:

VbrHealthCheckArray{ VbrHealthCheckArgs{...} }

type VbrHealthCheckArrayOutput added in v2.35.1

type VbrHealthCheckArrayOutput struct{ *pulumi.OutputState }

func (VbrHealthCheckArrayOutput) ElementType added in v2.35.1

func (VbrHealthCheckArrayOutput) ElementType() reflect.Type

func (VbrHealthCheckArrayOutput) Index added in v2.35.1

func (VbrHealthCheckArrayOutput) ToVbrHealthCheckArrayOutput added in v2.35.1

func (o VbrHealthCheckArrayOutput) ToVbrHealthCheckArrayOutput() VbrHealthCheckArrayOutput

func (VbrHealthCheckArrayOutput) ToVbrHealthCheckArrayOutputWithContext added in v2.35.1

func (o VbrHealthCheckArrayOutput) ToVbrHealthCheckArrayOutputWithContext(ctx context.Context) VbrHealthCheckArrayOutput

type VbrHealthCheckInput added in v2.25.1

type VbrHealthCheckInput interface {
	pulumi.Input

	ToVbrHealthCheckOutput() VbrHealthCheckOutput
	ToVbrHealthCheckOutputWithContext(ctx context.Context) VbrHealthCheckOutput
}

type VbrHealthCheckMap added in v2.35.1

type VbrHealthCheckMap map[string]VbrHealthCheckInput

func (VbrHealthCheckMap) ElementType added in v2.35.1

func (VbrHealthCheckMap) ElementType() reflect.Type

func (VbrHealthCheckMap) ToVbrHealthCheckMapOutput added in v2.35.1

func (i VbrHealthCheckMap) ToVbrHealthCheckMapOutput() VbrHealthCheckMapOutput

func (VbrHealthCheckMap) ToVbrHealthCheckMapOutputWithContext added in v2.35.1

func (i VbrHealthCheckMap) ToVbrHealthCheckMapOutputWithContext(ctx context.Context) VbrHealthCheckMapOutput

type VbrHealthCheckMapInput added in v2.35.1

type VbrHealthCheckMapInput interface {
	pulumi.Input

	ToVbrHealthCheckMapOutput() VbrHealthCheckMapOutput
	ToVbrHealthCheckMapOutputWithContext(context.Context) VbrHealthCheckMapOutput
}

VbrHealthCheckMapInput is an input type that accepts VbrHealthCheckMap and VbrHealthCheckMapOutput values. You can construct a concrete instance of `VbrHealthCheckMapInput` via:

VbrHealthCheckMap{ "key": VbrHealthCheckArgs{...} }

type VbrHealthCheckMapOutput added in v2.35.1

type VbrHealthCheckMapOutput struct{ *pulumi.OutputState }

func (VbrHealthCheckMapOutput) ElementType added in v2.35.1

func (VbrHealthCheckMapOutput) ElementType() reflect.Type

func (VbrHealthCheckMapOutput) MapIndex added in v2.35.1

func (VbrHealthCheckMapOutput) ToVbrHealthCheckMapOutput added in v2.35.1

func (o VbrHealthCheckMapOutput) ToVbrHealthCheckMapOutput() VbrHealthCheckMapOutput

func (VbrHealthCheckMapOutput) ToVbrHealthCheckMapOutputWithContext added in v2.35.1

func (o VbrHealthCheckMapOutput) ToVbrHealthCheckMapOutputWithContext(ctx context.Context) VbrHealthCheckMapOutput

type VbrHealthCheckOutput added in v2.25.1

type VbrHealthCheckOutput struct {
	*pulumi.OutputState
}

func (VbrHealthCheckOutput) ElementType added in v2.25.1

func (VbrHealthCheckOutput) ElementType() reflect.Type

func (VbrHealthCheckOutput) ToVbrHealthCheckOutput added in v2.25.1

func (o VbrHealthCheckOutput) ToVbrHealthCheckOutput() VbrHealthCheckOutput

func (VbrHealthCheckOutput) ToVbrHealthCheckOutputWithContext added in v2.25.1

func (o VbrHealthCheckOutput) ToVbrHealthCheckOutputWithContext(ctx context.Context) VbrHealthCheckOutput

func (VbrHealthCheckOutput) ToVbrHealthCheckPtrOutput added in v2.35.1

func (o VbrHealthCheckOutput) ToVbrHealthCheckPtrOutput() VbrHealthCheckPtrOutput

func (VbrHealthCheckOutput) ToVbrHealthCheckPtrOutputWithContext added in v2.35.1

func (o VbrHealthCheckOutput) ToVbrHealthCheckPtrOutputWithContext(ctx context.Context) VbrHealthCheckPtrOutput

type VbrHealthCheckPtrInput added in v2.35.1

type VbrHealthCheckPtrInput interface {
	pulumi.Input

	ToVbrHealthCheckPtrOutput() VbrHealthCheckPtrOutput
	ToVbrHealthCheckPtrOutputWithContext(ctx context.Context) VbrHealthCheckPtrOutput
}

type VbrHealthCheckPtrOutput added in v2.35.1

type VbrHealthCheckPtrOutput struct {
	*pulumi.OutputState
}

func (VbrHealthCheckPtrOutput) ElementType added in v2.35.1

func (VbrHealthCheckPtrOutput) ElementType() reflect.Type

func (VbrHealthCheckPtrOutput) ToVbrHealthCheckPtrOutput added in v2.35.1

func (o VbrHealthCheckPtrOutput) ToVbrHealthCheckPtrOutput() VbrHealthCheckPtrOutput

func (VbrHealthCheckPtrOutput) ToVbrHealthCheckPtrOutputWithContext added in v2.35.1

func (o VbrHealthCheckPtrOutput) ToVbrHealthCheckPtrOutputWithContext(ctx context.Context) VbrHealthCheckPtrOutput

type VbrHealthCheckState added in v2.10.0

type VbrHealthCheckState struct {
	// The ID of the CEN instance.
	CenId pulumi.StringPtrInput
	// Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
	HealthCheckInterval pulumi.IntPtrInput
	// The source IP address of health checks.
	HealthCheckSourceIp pulumi.StringPtrInput
	// The destination IP address of health checks.
	HealthCheckTargetIp pulumi.StringPtrInput
	// Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
	HealthyThreshold pulumi.IntPtrInput
	// The ID of the VBR.
	VbrInstanceId pulumi.StringPtrInput
	// The ID of the account to which the VBR belongs.
	VbrInstanceOwnerId pulumi.IntPtrInput
	// The ID of the region to which the VBR belongs.
	VbrInstanceRegionId pulumi.StringPtrInput
}

func (VbrHealthCheckState) ElementType added in v2.10.0

func (VbrHealthCheckState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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