cen

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion added in v0.0.1

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type 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/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

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 := alicloud.NewProvider(ctx, "fra", &alicloud.ProviderArgs{
			Region: pulumi.String("eu-central-1"),
		})
		if err != nil {
			return err
		}
		_, err = alicloud.NewProvider(ctx, "sh", &alicloud.ProviderArgs{
			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

func (*BandwidthLimit) ElementType() reflect.Type

func (*BandwidthLimit) ToBandwidthLimitOutput

func (i *BandwidthLimit) ToBandwidthLimitOutput() BandwidthLimitOutput

func (*BandwidthLimit) ToBandwidthLimitOutputWithContext

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

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

type BandwidthLimitArray []BandwidthLimitInput

func (BandwidthLimitArray) ElementType

func (BandwidthLimitArray) ElementType() reflect.Type

func (BandwidthLimitArray) ToBandwidthLimitArrayOutput

func (i BandwidthLimitArray) ToBandwidthLimitArrayOutput() BandwidthLimitArrayOutput

func (BandwidthLimitArray) ToBandwidthLimitArrayOutputWithContext

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

type BandwidthLimitArrayInput

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

type BandwidthLimitArrayOutput struct{ *pulumi.OutputState }

func (BandwidthLimitArrayOutput) ElementType

func (BandwidthLimitArrayOutput) ElementType() reflect.Type

func (BandwidthLimitArrayOutput) Index

func (BandwidthLimitArrayOutput) ToBandwidthLimitArrayOutput

func (o BandwidthLimitArrayOutput) ToBandwidthLimitArrayOutput() BandwidthLimitArrayOutput

func (BandwidthLimitArrayOutput) ToBandwidthLimitArrayOutputWithContext

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

type BandwidthLimitInput

type BandwidthLimitInput interface {
	pulumi.Input

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

type BandwidthLimitMap

type BandwidthLimitMap map[string]BandwidthLimitInput

func (BandwidthLimitMap) ElementType

func (BandwidthLimitMap) ElementType() reflect.Type

func (BandwidthLimitMap) ToBandwidthLimitMapOutput

func (i BandwidthLimitMap) ToBandwidthLimitMapOutput() BandwidthLimitMapOutput

func (BandwidthLimitMap) ToBandwidthLimitMapOutputWithContext

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

type BandwidthLimitMapInput

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

type BandwidthLimitMapOutput struct{ *pulumi.OutputState }

func (BandwidthLimitMapOutput) ElementType

func (BandwidthLimitMapOutput) ElementType() reflect.Type

func (BandwidthLimitMapOutput) MapIndex

func (BandwidthLimitMapOutput) ToBandwidthLimitMapOutput

func (o BandwidthLimitMapOutput) ToBandwidthLimitMapOutput() BandwidthLimitMapOutput

func (BandwidthLimitMapOutput) ToBandwidthLimitMapOutputWithContext

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

type BandwidthLimitOutput

type BandwidthLimitOutput struct{ *pulumi.OutputState }

func (BandwidthLimitOutput) BandwidthLimit

func (o BandwidthLimitOutput) BandwidthLimit() pulumi.IntOutput

The bandwidth configured for the interconnected regions communication.

func (BandwidthLimitOutput) ElementType

func (BandwidthLimitOutput) ElementType() reflect.Type

func (BandwidthLimitOutput) InstanceId

func (o BandwidthLimitOutput) InstanceId() pulumi.StringOutput

The ID of the CEN.

func (BandwidthLimitOutput) RegionIds

List of the two regions to interconnect. Must be two different regions.

func (BandwidthLimitOutput) ToBandwidthLimitOutput

func (o BandwidthLimitOutput) ToBandwidthLimitOutput() BandwidthLimitOutput

func (BandwidthLimitOutput) ToBandwidthLimitOutputWithContext

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

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 `PrePaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	Period      pulumi.IntPtrOutput `pulumi:"period"`
	// The association status of the bandwidth package.
	Status pulumi.StringOutput `pulumi:"status"`
}

## 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

func (*BandwidthPackage) ElementType() reflect.Type

func (*BandwidthPackage) ToBandwidthPackageOutput

func (i *BandwidthPackage) ToBandwidthPackageOutput() BandwidthPackageOutput

func (*BandwidthPackage) ToBandwidthPackageOutputWithContext

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

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 `PrePaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.
	PaymentType pulumi.StringPtrInput
	Period      pulumi.IntPtrInput
}

The set of arguments for constructing a BandwidthPackage resource.

func (BandwidthPackageArgs) ElementType

func (BandwidthPackageArgs) ElementType() reflect.Type

type BandwidthPackageArray

type BandwidthPackageArray []BandwidthPackageInput

func (BandwidthPackageArray) ElementType

func (BandwidthPackageArray) ElementType() reflect.Type

func (BandwidthPackageArray) ToBandwidthPackageArrayOutput

func (i BandwidthPackageArray) ToBandwidthPackageArrayOutput() BandwidthPackageArrayOutput

func (BandwidthPackageArray) ToBandwidthPackageArrayOutputWithContext

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

type BandwidthPackageArrayInput

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

type BandwidthPackageArrayOutput struct{ *pulumi.OutputState }

func (BandwidthPackageArrayOutput) ElementType

func (BandwidthPackageArrayOutput) Index

func (BandwidthPackageArrayOutput) ToBandwidthPackageArrayOutput

func (o BandwidthPackageArrayOutput) ToBandwidthPackageArrayOutput() BandwidthPackageArrayOutput

func (BandwidthPackageArrayOutput) ToBandwidthPackageArrayOutputWithContext

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/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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

func (*BandwidthPackageAttachment) ElementType() reflect.Type

func (*BandwidthPackageAttachment) ToBandwidthPackageAttachmentOutput

func (i *BandwidthPackageAttachment) ToBandwidthPackageAttachmentOutput() BandwidthPackageAttachmentOutput

func (*BandwidthPackageAttachment) ToBandwidthPackageAttachmentOutputWithContext

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

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

type BandwidthPackageAttachmentArray []BandwidthPackageAttachmentInput

func (BandwidthPackageAttachmentArray) ElementType

func (BandwidthPackageAttachmentArray) ToBandwidthPackageAttachmentArrayOutput

func (i BandwidthPackageAttachmentArray) ToBandwidthPackageAttachmentArrayOutput() BandwidthPackageAttachmentArrayOutput

func (BandwidthPackageAttachmentArray) ToBandwidthPackageAttachmentArrayOutputWithContext

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

type BandwidthPackageAttachmentArrayInput

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

type BandwidthPackageAttachmentArrayOutput struct{ *pulumi.OutputState }

func (BandwidthPackageAttachmentArrayOutput) ElementType

func (BandwidthPackageAttachmentArrayOutput) Index

func (BandwidthPackageAttachmentArrayOutput) ToBandwidthPackageAttachmentArrayOutput

func (o BandwidthPackageAttachmentArrayOutput) ToBandwidthPackageAttachmentArrayOutput() BandwidthPackageAttachmentArrayOutput

func (BandwidthPackageAttachmentArrayOutput) ToBandwidthPackageAttachmentArrayOutputWithContext

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

type BandwidthPackageAttachmentInput

type BandwidthPackageAttachmentInput interface {
	pulumi.Input

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

type BandwidthPackageAttachmentMap

type BandwidthPackageAttachmentMap map[string]BandwidthPackageAttachmentInput

func (BandwidthPackageAttachmentMap) ElementType

func (BandwidthPackageAttachmentMap) ToBandwidthPackageAttachmentMapOutput

func (i BandwidthPackageAttachmentMap) ToBandwidthPackageAttachmentMapOutput() BandwidthPackageAttachmentMapOutput

func (BandwidthPackageAttachmentMap) ToBandwidthPackageAttachmentMapOutputWithContext

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

type BandwidthPackageAttachmentMapInput

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

type BandwidthPackageAttachmentMapOutput struct{ *pulumi.OutputState }

func (BandwidthPackageAttachmentMapOutput) ElementType

func (BandwidthPackageAttachmentMapOutput) MapIndex

func (BandwidthPackageAttachmentMapOutput) ToBandwidthPackageAttachmentMapOutput

func (o BandwidthPackageAttachmentMapOutput) ToBandwidthPackageAttachmentMapOutput() BandwidthPackageAttachmentMapOutput

func (BandwidthPackageAttachmentMapOutput) ToBandwidthPackageAttachmentMapOutputWithContext

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

type BandwidthPackageAttachmentOutput

type BandwidthPackageAttachmentOutput struct{ *pulumi.OutputState }

func (BandwidthPackageAttachmentOutput) BandwidthPackageId

func (o BandwidthPackageAttachmentOutput) BandwidthPackageId() pulumi.StringOutput

The ID of the bandwidth package.

func (BandwidthPackageAttachmentOutput) ElementType

func (BandwidthPackageAttachmentOutput) InstanceId

The ID of the CEN.

func (BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentOutput

func (o BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentOutput() BandwidthPackageAttachmentOutput

func (BandwidthPackageAttachmentOutput) ToBandwidthPackageAttachmentOutputWithContext

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

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

type BandwidthPackageInput interface {
	pulumi.Input

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

type BandwidthPackageMap

type BandwidthPackageMap map[string]BandwidthPackageInput

func (BandwidthPackageMap) ElementType

func (BandwidthPackageMap) ElementType() reflect.Type

func (BandwidthPackageMap) ToBandwidthPackageMapOutput

func (i BandwidthPackageMap) ToBandwidthPackageMapOutput() BandwidthPackageMapOutput

func (BandwidthPackageMap) ToBandwidthPackageMapOutputWithContext

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

type BandwidthPackageMapInput

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

type BandwidthPackageMapOutput struct{ *pulumi.OutputState }

func (BandwidthPackageMapOutput) ElementType

func (BandwidthPackageMapOutput) ElementType() reflect.Type

func (BandwidthPackageMapOutput) MapIndex

func (BandwidthPackageMapOutput) ToBandwidthPackageMapOutput

func (o BandwidthPackageMapOutput) ToBandwidthPackageMapOutput() BandwidthPackageMapOutput

func (BandwidthPackageMapOutput) ToBandwidthPackageMapOutputWithContext

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

type BandwidthPackageOutput

type BandwidthPackageOutput struct{ *pulumi.OutputState }

func (BandwidthPackageOutput) Bandwidth

func (o BandwidthPackageOutput) Bandwidth() pulumi.IntOutput

The bandwidth in Mbps of the bandwidth package. Cannot be less than 2Mbps.

func (BandwidthPackageOutput) CenBandwidthPackageName

func (o BandwidthPackageOutput) CenBandwidthPackageName() pulumi.StringOutput

The name of the bandwidth package. Defaults to null.

func (BandwidthPackageOutput) ChargeType deprecated

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.

func (BandwidthPackageOutput) Description

The description of the bandwidth package. Default to null.

func (BandwidthPackageOutput) ElementType

func (BandwidthPackageOutput) ElementType() reflect.Type

func (BandwidthPackageOutput) ExpiredTime

func (o BandwidthPackageOutput) ExpiredTime() pulumi.StringOutput

The time of the bandwidth package to expire.

func (BandwidthPackageOutput) GeographicRegionAId

func (o BandwidthPackageOutput) GeographicRegionAId() pulumi.StringOutput

The area A to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.

func (BandwidthPackageOutput) GeographicRegionBId

func (o BandwidthPackageOutput) GeographicRegionBId() pulumi.StringOutput

The area B to which the network instance belongs. Valid values: `China` | `North-America` | `Asia-Pacific` | `Europe` | `Australia`.

func (BandwidthPackageOutput) GeographicRegionIds deprecated

func (o BandwidthPackageOutput) GeographicRegionIds() pulumi.StringArrayOutput

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.

func (BandwidthPackageOutput) Name deprecated

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.

func (BandwidthPackageOutput) PaymentType

func (o BandwidthPackageOutput) PaymentType() pulumi.StringOutput

The billing method. Valid value: `PostPaid` | `PrePaid`. Default to `PrePaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.

func (BandwidthPackageOutput) Period

func (BandwidthPackageOutput) Status

The association status of the bandwidth package.

func (BandwidthPackageOutput) ToBandwidthPackageOutput

func (o BandwidthPackageOutput) ToBandwidthPackageOutput() BandwidthPackageOutput

func (BandwidthPackageOutput) ToBandwidthPackageOutputWithContext

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

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 `PrePaid`. If set to PrePaid, the bandwidth package can't be deleted before expired time.
	PaymentType pulumi.StringPtrInput
	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/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/log"

)

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

func (*FlowLog) ElementType() reflect.Type

func (*FlowLog) ToFlowLogOutput

func (i *FlowLog) ToFlowLogOutput() FlowLogOutput

func (*FlowLog) ToFlowLogOutputWithContext

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

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

type FlowLogArray []FlowLogInput

func (FlowLogArray) ElementType

func (FlowLogArray) ElementType() reflect.Type

func (FlowLogArray) ToFlowLogArrayOutput

func (i FlowLogArray) ToFlowLogArrayOutput() FlowLogArrayOutput

func (FlowLogArray) ToFlowLogArrayOutputWithContext

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

type FlowLogArrayInput

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

type FlowLogArrayOutput struct{ *pulumi.OutputState }

func (FlowLogArrayOutput) ElementType

func (FlowLogArrayOutput) ElementType() reflect.Type

func (FlowLogArrayOutput) Index

func (FlowLogArrayOutput) ToFlowLogArrayOutput

func (o FlowLogArrayOutput) ToFlowLogArrayOutput() FlowLogArrayOutput

func (FlowLogArrayOutput) ToFlowLogArrayOutputWithContext

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

type FlowLogInput

type FlowLogInput interface {
	pulumi.Input

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

type FlowLogMap

type FlowLogMap map[string]FlowLogInput

func (FlowLogMap) ElementType

func (FlowLogMap) ElementType() reflect.Type

func (FlowLogMap) ToFlowLogMapOutput

func (i FlowLogMap) ToFlowLogMapOutput() FlowLogMapOutput

func (FlowLogMap) ToFlowLogMapOutputWithContext

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

type FlowLogMapInput

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

type FlowLogMapOutput struct{ *pulumi.OutputState }

func (FlowLogMapOutput) ElementType

func (FlowLogMapOutput) ElementType() reflect.Type

func (FlowLogMapOutput) MapIndex

func (FlowLogMapOutput) ToFlowLogMapOutput

func (o FlowLogMapOutput) ToFlowLogMapOutput() FlowLogMapOutput

func (FlowLogMapOutput) ToFlowLogMapOutputWithContext

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

type FlowLogOutput

type FlowLogOutput struct{ *pulumi.OutputState }

func (FlowLogOutput) CenId

func (o FlowLogOutput) CenId() pulumi.StringOutput

The ID of the CEN Instance.

func (FlowLogOutput) Description

func (o FlowLogOutput) Description() pulumi.StringPtrOutput

The description of flowlog.

func (FlowLogOutput) ElementType

func (FlowLogOutput) ElementType() reflect.Type

func (FlowLogOutput) FlowLogName

func (o FlowLogOutput) FlowLogName() pulumi.StringPtrOutput

The name of flowlog.

func (FlowLogOutput) LogStoreName

func (o FlowLogOutput) LogStoreName() pulumi.StringOutput

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

func (FlowLogOutput) ProjectName

func (o FlowLogOutput) ProjectName() pulumi.StringOutput

The name of the SLS project.

func (FlowLogOutput) Status

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

func (FlowLogOutput) ToFlowLogOutput

func (o FlowLogOutput) ToFlowLogOutput() FlowLogOutput

func (FlowLogOutput) ToFlowLogOutputWithContext

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

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 GetBandwidthLimitsOutputArgs

type GetBandwidthLimitsOutputArgs struct {
	// A list of CEN instances IDs.
	InstanceIds pulumi.StringArrayInput `pulumi:"instanceIds"`
	OutputFile  pulumi.StringPtrInput   `pulumi:"outputFile"`
}

A collection of arguments for invoking getBandwidthLimits.

func (GetBandwidthLimitsOutputArgs) ElementType

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/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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 GetBandwidthLimitsResultOutput

type GetBandwidthLimitsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBandwidthLimits.

func (GetBandwidthLimitsResultOutput) ElementType

func (GetBandwidthLimitsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetBandwidthLimitsResultOutput) InstanceIds

func (GetBandwidthLimitsResultOutput) Limits

A list of CEN Bandwidth Limits. Each element contains the following attributes:

func (GetBandwidthLimitsResultOutput) OutputFile

func (GetBandwidthLimitsResultOutput) ToGetBandwidthLimitsResultOutput

func (o GetBandwidthLimitsResultOutput) ToGetBandwidthLimitsResultOutput() GetBandwidthLimitsResultOutput

func (GetBandwidthLimitsResultOutput) ToGetBandwidthLimitsResultOutputWithContext

func (o GetBandwidthLimitsResultOutput) ToGetBandwidthLimitsResultOutputWithContext(ctx context.Context) GetBandwidthLimitsResultOutput

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 GetBandwidthPackagesOutputArgs

type GetBandwidthPackagesOutputArgs struct {
	// Limit search to a list of specific CEN Bandwidth Package IDs.
	Ids pulumi.StringArrayInput `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 pulumi.BoolPtrInput `pulumi:"includeReservationData"`
	// ID of a CEN instance.
	InstanceId pulumi.StringPtrInput `pulumi:"instanceId"`
	// A regex string to filter CEN Bandwidth Package by name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// Status of the CEN Bandwidth Package in CEN instance, Valid value: `Idle` and `InUse`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getBandwidthPackages.

func (GetBandwidthPackagesOutputArgs) ElementType

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

func (o GetBandwidthPackagesPackageOutput) CenBandwidthPackageId() pulumi.StringOutput

The ID of the bandwidth package.

func (GetBandwidthPackagesPackageOutput) CenBandwidthPackageName

func (o GetBandwidthPackagesPackageOutput) CenBandwidthPackageName() pulumi.StringOutput

The name of the bandwidth package.

func (GetBandwidthPackagesPackageOutput) CenIds

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

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

The area ID of the cross-area connection.

func (GetBandwidthPackagesPackageOutput) HasReservationData

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

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

func (GetBandwidthPackagesPackageOutput) Name

Name of the CEN Bandwidth Package.

func (GetBandwidthPackagesPackageOutput) PaymentType

The billing method of the bandwidth package.

func (GetBandwidthPackagesPackageOutput) ReservationActiveTime

func (o GetBandwidthPackagesPackageOutput) ReservationActiveTime() pulumi.StringOutput

The expiration time of the temporary upgrade.

func (GetBandwidthPackagesPackageOutput) ReservationBandwidth

func (o GetBandwidthPackagesPackageOutput) ReservationBandwidth() pulumi.StringOutput

The restored bandwidth after the temporary upgrade.

func (GetBandwidthPackagesPackageOutput) ReservationInternetChargeType

func (o GetBandwidthPackagesPackageOutput) ReservationInternetChargeType() pulumi.StringOutput

The billing method after the configuration change.

func (GetBandwidthPackagesPackageOutput) ReservationOrderType

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/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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

```

type GetBandwidthPackagesResultOutput

type GetBandwidthPackagesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getBandwidthPackages.

func (GetBandwidthPackagesResultOutput) ElementType

func (GetBandwidthPackagesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetBandwidthPackagesResultOutput) Ids

A list of specific CEN Bandwidth Package IDs. * `names` (Available in 1.98.0+) - A list of CEN Bandwidth Package Names.

func (GetBandwidthPackagesResultOutput) IncludeReservationData

func (o GetBandwidthPackagesResultOutput) IncludeReservationData() pulumi.BoolPtrOutput

func (GetBandwidthPackagesResultOutput) InstanceId

The ID of the CEN instance that are associated with the bandwidth package.

func (GetBandwidthPackagesResultOutput) NameRegex

func (GetBandwidthPackagesResultOutput) Names

func (GetBandwidthPackagesResultOutput) OutputFile

func (GetBandwidthPackagesResultOutput) Packages

A list of CEN bandwidth package. Each element contains the following attributes:

func (GetBandwidthPackagesResultOutput) Status

Status of the CEN Bandwidth Package in CEN instance, including `Idle` and `InUse`.

func (GetBandwidthPackagesResultOutput) ToGetBandwidthPackagesResultOutput

func (o GetBandwidthPackagesResultOutput) ToGetBandwidthPackagesResultOutput() GetBandwidthPackagesResultOutput

func (GetBandwidthPackagesResultOutput) ToGetBandwidthPackagesResultOutputWithContext

func (o GetBandwidthPackagesResultOutput) ToGetBandwidthPackagesResultOutputWithContext(ctx context.Context) GetBandwidthPackagesResultOutput

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 GetFlowlogsOutputArgs

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

A collection of arguments for invoking getFlowlogs.

func (GetFlowlogsOutputArgs) ElementType

func (GetFlowlogsOutputArgs) ElementType() reflect.Type

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/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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

```

type GetFlowlogsResultOutput

type GetFlowlogsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getFlowlogs.

func (GetFlowlogsResultOutput) CenId

The ID of the CEN Instance.

func (GetFlowlogsResultOutput) Description

The description of flowlog.

func (GetFlowlogsResultOutput) ElementType

func (GetFlowlogsResultOutput) ElementType() reflect.Type

func (GetFlowlogsResultOutput) Flowlogs

func (GetFlowlogsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetFlowlogsResultOutput) Ids

A list of CEN flow log IDs.

func (GetFlowlogsResultOutput) LogStoreName

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

func (GetFlowlogsResultOutput) NameRegex

func (GetFlowlogsResultOutput) Names

A list of CEN flow log names.

func (GetFlowlogsResultOutput) OutputFile

func (GetFlowlogsResultOutput) ProjectName

The name of the SLS project.

func (GetFlowlogsResultOutput) Status

The status of flowlog.

func (GetFlowlogsResultOutput) ToGetFlowlogsResultOutput

func (o GetFlowlogsResultOutput) ToGetFlowlogsResultOutput() GetFlowlogsResultOutput

func (GetFlowlogsResultOutput) ToGetFlowlogsResultOutputWithContext

func (o GetFlowlogsResultOutput) ToGetFlowlogsResultOutputWithContext(ctx context.Context) GetFlowlogsResultOutput

type GetInstanceAttachmentsArgs

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

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

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

func (GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput

func (i GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput

func (GetInstanceAttachmentsAttachmentArgs) ToGetInstanceAttachmentsAttachmentOutputWithContext

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

type GetInstanceAttachmentsAttachmentArray

type GetInstanceAttachmentsAttachmentArray []GetInstanceAttachmentsAttachmentInput

func (GetInstanceAttachmentsAttachmentArray) ElementType

func (GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput

func (i GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput

func (GetInstanceAttachmentsAttachmentArray) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext

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

type GetInstanceAttachmentsAttachmentArrayInput

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

type GetInstanceAttachmentsAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetInstanceAttachmentsAttachmentArrayOutput) ElementType

func (GetInstanceAttachmentsAttachmentArrayOutput) Index

func (GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput

func (o GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutput() GetInstanceAttachmentsAttachmentArrayOutput

func (GetInstanceAttachmentsAttachmentArrayOutput) ToGetInstanceAttachmentsAttachmentArrayOutputWithContext

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

type GetInstanceAttachmentsAttachmentInput

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

type GetInstanceAttachmentsAttachmentOutput struct{ *pulumi.OutputState }

func (GetInstanceAttachmentsAttachmentOutput) ChildInstanceAttachTime

func (o GetInstanceAttachmentsAttachmentOutput) ChildInstanceAttachTime() pulumi.StringOutput

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

func (GetInstanceAttachmentsAttachmentOutput) ChildInstanceId

The ID of the network.

func (GetInstanceAttachmentsAttachmentOutput) ChildInstanceOwnerId

func (o GetInstanceAttachmentsAttachmentOutput) ChildInstanceOwnerId() pulumi.IntOutput

The ID of the account to which the network belongs.

func (GetInstanceAttachmentsAttachmentOutput) ChildInstanceRegionId

The region to which the network to be queried belongs.

func (GetInstanceAttachmentsAttachmentOutput) ChildInstanceType

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

func (GetInstanceAttachmentsAttachmentOutput) ElementType

func (GetInstanceAttachmentsAttachmentOutput) Id

The ID of the CEN Instance Attachment.

func (GetInstanceAttachmentsAttachmentOutput) InstanceId

The ID of the CEN instance.

func (GetInstanceAttachmentsAttachmentOutput) Status

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

func (GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput

func (o GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutput() GetInstanceAttachmentsAttachmentOutput

func (GetInstanceAttachmentsAttachmentOutput) ToGetInstanceAttachmentsAttachmentOutputWithContext

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

type GetInstanceAttachmentsOutputArgs

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

A collection of arguments for invoking getInstanceAttachments.

func (GetInstanceAttachmentsOutputArgs) ElementType

type GetInstanceAttachmentsResult

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

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/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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 GetInstanceAttachmentsResultOutput

type GetInstanceAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstanceAttachments.

func (GetInstanceAttachmentsResultOutput) Attachments

A list of CEN Instance Attachments. Each element contains the following attributes:

func (GetInstanceAttachmentsResultOutput) ChildInstanceRegionId

func (o GetInstanceAttachmentsResultOutput) ChildInstanceRegionId() pulumi.StringPtrOutput

The ID of the region to which the network belongs.

func (GetInstanceAttachmentsResultOutput) ChildInstanceType

The type of the associated network.

func (GetInstanceAttachmentsResultOutput) ElementType

func (GetInstanceAttachmentsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInstanceAttachmentsResultOutput) Ids

A list of CEN Instance Attachment IDs.

func (GetInstanceAttachmentsResultOutput) InstanceId

The ID of the CEN instance.

func (GetInstanceAttachmentsResultOutput) OutputFile

func (GetInstanceAttachmentsResultOutput) Status

The status of the network.

func (GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutput

func (o GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutput() GetInstanceAttachmentsResultOutput

func (GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutputWithContext

func (o GetInstanceAttachmentsResultOutput) ToGetInstanceAttachmentsResultOutputWithContext(ctx context.Context) GetInstanceAttachmentsResultOutput

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"`
	// The creation time of the CEN Instance.
	CreateTime string `pulumi:"createTime"`
	// 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"`
	// The creation time of the CEN Instance.
	CreateTime pulumi.StringInput `pulumi:"createTime"`
	// 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

func (o GetInstancesInstanceOutput) CenBandwidthPackageIds() pulumi.StringArrayOutput

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

func (GetInstancesInstanceOutput) CenId

ID of the CEN instance.

func (GetInstancesInstanceOutput) CenInstanceName

func (o GetInstancesInstanceOutput) CenInstanceName() pulumi.StringOutput

Name of the CEN instance.

func (GetInstancesInstanceOutput) CreateTime

The creation time 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

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

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 GetInstancesOutputArgs

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

A collection of arguments for invoking getInstances.

func (GetInstancesOutputArgs) ElementType

func (GetInstancesOutputArgs) ElementType() reflect.Type

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/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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

```

type GetInstancesResultOutput

type GetInstancesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getInstances.

func (GetInstancesResultOutput) ElementType

func (GetInstancesResultOutput) ElementType() reflect.Type

func (GetInstancesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetInstancesResultOutput) Ids

A list of CEN instances IDs.

func (GetInstancesResultOutput) Instances

A list of CEN instances. Each element contains the following attributes:

func (GetInstancesResultOutput) NameRegex

func (GetInstancesResultOutput) Names

A list of CEN instances names.

func (GetInstancesResultOutput) OutputFile

func (GetInstancesResultOutput) Status

Status of the CEN instance, including "Creating", "Active" and "Deleting".

func (GetInstancesResultOutput) Tags

A map of tags assigned to the Cen Instance.

func (GetInstancesResultOutput) ToGetInstancesResultOutput

func (o GetInstancesResultOutput) ToGetInstancesResultOutput() GetInstancesResultOutput

func (GetInstancesResultOutput) ToGetInstancesResultOutputWithContext

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

type GetPrivateZonesArgs

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. Each element format as `<cen_id>:<access_region_id>`.
	// **NOTE:** Before 1.162.0, each element same as `accessRegionId`.
	// * ` 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 GetPrivateZonesOutputArgs

type GetPrivateZonesOutputArgs struct {
	// 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.StringPtrInput `pulumi:"hostRegionId"`
	// A list of CEN private zone IDs. Each element format as `<cen_id>:<access_region_id>`.
	// **NOTE:** Before 1.162.0, each element same as `accessRegionId`.
	// * ` hostRegionId  ` - (Optional) The service region is the target region of the PrivateZone service accessed through CEN.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	// The status of the PrivateZone service, including `Creating`, `Active` and `Deleting`.
	Status pulumi.StringPtrInput `pulumi:"status"`
}

A collection of arguments for invoking getPrivateZones.

func (GetPrivateZonesOutputArgs) ElementType

func (GetPrivateZonesOutputArgs) ElementType() reflect.Type

type GetPrivateZonesResult

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. Each element format as `<cen_id>:<access_region_id>`.
	// **NOTE:** Before 1.162.0, each element same as `accessRegionId`.
	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

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+.

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		this, err := cen.GetPrivateZones(ctx, &cen.GetPrivateZonesArgs{
			CenId: "cen-o40h17ll9w********",
			Ids: []string{
				"cn-hangzhou",
			},
			Status: pulumi.StringRef("Active"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstCenPrivateZonesId", this.Zones[0].Id)
		return nil
	})
}

```

type GetPrivateZonesResultOutput

type GetPrivateZonesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getPrivateZones.

func (GetPrivateZonesResultOutput) CenId

The ID of the CEN instance.

func (GetPrivateZonesResultOutput) ElementType

func (GetPrivateZonesResultOutput) HostRegionId

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

func (GetPrivateZonesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetPrivateZonesResultOutput) Ids

A list of CEN private zone IDs. Each element format as `<cen_id>:<access_region_id>`. **NOTE:** Before 1.162.0, each element same as `accessRegionId`.

func (GetPrivateZonesResultOutput) OutputFile

func (GetPrivateZonesResultOutput) Status

The status of the PrivateZone service.

func (GetPrivateZonesResultOutput) ToGetPrivateZonesResultOutput

func (o GetPrivateZonesResultOutput) ToGetPrivateZonesResultOutput() GetPrivateZonesResultOutput

func (GetPrivateZonesResultOutput) ToGetPrivateZonesResultOutputWithContext

func (o GetPrivateZonesResultOutput) ToGetPrivateZonesResultOutputWithContext(ctx context.Context) GetPrivateZonesResultOutput

func (GetPrivateZonesResultOutput) Zones

A list of CEN private zones. Each element contains the following attributes:

type GetPrivateZonesZone

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 ID of the private zone. It formats as `<cen_id>:<access_region_id>`.
	Id string `pulumi:"id"`
	// 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

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 ID of the private zone. It formats as `<cen_id>:<access_region_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// 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

func (GetPrivateZonesZoneArgs) ElementType() reflect.Type

func (GetPrivateZonesZoneArgs) ToGetPrivateZonesZoneOutput

func (i GetPrivateZonesZoneArgs) ToGetPrivateZonesZoneOutput() GetPrivateZonesZoneOutput

func (GetPrivateZonesZoneArgs) ToGetPrivateZonesZoneOutputWithContext

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

type GetPrivateZonesZoneArray

type GetPrivateZonesZoneArray []GetPrivateZonesZoneInput

func (GetPrivateZonesZoneArray) ElementType

func (GetPrivateZonesZoneArray) ElementType() reflect.Type

func (GetPrivateZonesZoneArray) ToGetPrivateZonesZoneArrayOutput

func (i GetPrivateZonesZoneArray) ToGetPrivateZonesZoneArrayOutput() GetPrivateZonesZoneArrayOutput

func (GetPrivateZonesZoneArray) ToGetPrivateZonesZoneArrayOutputWithContext

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

type GetPrivateZonesZoneArrayInput

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

type GetPrivateZonesZoneArrayOutput struct{ *pulumi.OutputState }

func (GetPrivateZonesZoneArrayOutput) ElementType

func (GetPrivateZonesZoneArrayOutput) Index

func (GetPrivateZonesZoneArrayOutput) ToGetPrivateZonesZoneArrayOutput

func (o GetPrivateZonesZoneArrayOutput) ToGetPrivateZonesZoneArrayOutput() GetPrivateZonesZoneArrayOutput

func (GetPrivateZonesZoneArrayOutput) ToGetPrivateZonesZoneArrayOutputWithContext

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

type GetPrivateZonesZoneInput

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

type GetPrivateZonesZoneOutput struct{ *pulumi.OutputState }

func (GetPrivateZonesZoneOutput) AccessRegionId

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

The ID of the CEN instance.

func (GetPrivateZonesZoneOutput) ElementType

func (GetPrivateZonesZoneOutput) ElementType() reflect.Type

func (GetPrivateZonesZoneOutput) HostRegionId

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

func (GetPrivateZonesZoneOutput) HostVpcId

The VPC that belongs to the service region.

func (GetPrivateZonesZoneOutput) Id

The ID of the private zone. It formats as `<cen_id>:<access_region_id>`.

func (GetPrivateZonesZoneOutput) PrivateZoneDnsServers

func (o GetPrivateZonesZoneOutput) PrivateZoneDnsServers() pulumi.StringOutput

The DNS IP addresses of the PrivateZone service.

func (GetPrivateZonesZoneOutput) Status

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

func (GetPrivateZonesZoneOutput) ToGetPrivateZonesZoneOutput

func (o GetPrivateZonesZoneOutput) ToGetPrivateZonesZoneOutput() GetPrivateZonesZoneOutput

func (GetPrivateZonesZoneOutput) ToGetPrivateZonesZoneOutputWithContext

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 GetRegionRouteEntriesOutputArgs

type GetRegionRouteEntriesOutputArgs struct {
	// ID of the CEN instance.
	InstanceId pulumi.StringInput    `pulumi:"instanceId"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// ID of the region.
	RegionId pulumi.StringInput `pulumi:"regionId"`
}

A collection of arguments for invoking getRegionRouteEntries.

func (GetRegionRouteEntriesOutputArgs) ElementType

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/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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 GetRegionRouteEntriesResultOutput

type GetRegionRouteEntriesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRegionRouteEntries.

func (GetRegionRouteEntriesResultOutput) ElementType

func (GetRegionRouteEntriesResultOutput) Entries

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

func (GetRegionRouteEntriesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetRegionRouteEntriesResultOutput) InstanceId

func (GetRegionRouteEntriesResultOutput) OutputFile

func (GetRegionRouteEntriesResultOutput) RegionId

func (GetRegionRouteEntriesResultOutput) ToGetRegionRouteEntriesResultOutput

func (o GetRegionRouteEntriesResultOutput) ToGetRegionRouteEntriesResultOutput() GetRegionRouteEntriesResultOutput

func (GetRegionRouteEntriesResultOutput) ToGetRegionRouteEntriesResultOutputWithContext

func (o GetRegionRouteEntriesResultOutput) ToGetRegionRouteEntriesResultOutputWithContext(ctx context.Context) GetRegionRouteEntriesResultOutput

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 GetRouteEntriesOutputArgs

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

A collection of arguments for invoking getRouteEntries.

func (GetRouteEntriesOutputArgs) ElementType

func (GetRouteEntriesOutputArgs) ElementType() reflect.Type

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/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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 GetRouteEntriesResultOutput

type GetRouteEntriesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRouteEntries.

func (GetRouteEntriesResultOutput) CidrBlock

The destination CIDR block of the conflicted route entry.

func (GetRouteEntriesResultOutput) ElementType

func (GetRouteEntriesResultOutput) Entries

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

func (GetRouteEntriesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetRouteEntriesResultOutput) InstanceId

ID of the CEN child instance.

func (GetRouteEntriesResultOutput) OutputFile

func (GetRouteEntriesResultOutput) RouteTableId

ID of the route table.

func (GetRouteEntriesResultOutput) ToGetRouteEntriesResultOutput

func (o GetRouteEntriesResultOutput) ToGetRouteEntriesResultOutput() GetRouteEntriesResultOutput

func (GetRouteEntriesResultOutput) ToGetRouteEntriesResultOutputWithContext

func (o GetRouteEntriesResultOutput) ToGetRouteEntriesResultOutputWithContext(ctx context.Context) GetRouteEntriesResultOutput

type GetRouteMapsArgs

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. Each item formats as `<cen_id>:<route_map_id>`.
	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

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. It formats as `<cen_id>:<route_map_id>`. Before 1.161.0, it is `routeMapId`.
	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

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. It formats as `<cen_id>:<route_map_id>`. Before 1.161.0, it is `routeMapId`.
	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

func (GetRouteMapsMapArgs) ElementType() reflect.Type

func (GetRouteMapsMapArgs) ToGetRouteMapsMapOutput

func (i GetRouteMapsMapArgs) ToGetRouteMapsMapOutput() GetRouteMapsMapOutput

func (GetRouteMapsMapArgs) ToGetRouteMapsMapOutputWithContext

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

type GetRouteMapsMapArray

type GetRouteMapsMapArray []GetRouteMapsMapInput

func (GetRouteMapsMapArray) ElementType

func (GetRouteMapsMapArray) ElementType() reflect.Type

func (GetRouteMapsMapArray) ToGetRouteMapsMapArrayOutput

func (i GetRouteMapsMapArray) ToGetRouteMapsMapArrayOutput() GetRouteMapsMapArrayOutput

func (GetRouteMapsMapArray) ToGetRouteMapsMapArrayOutputWithContext

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

type GetRouteMapsMapArrayInput

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{ GetRouteMapsMapArgs{...} }

type GetRouteMapsMapArrayOutput

type GetRouteMapsMapArrayOutput struct{ *pulumi.OutputState }

func (GetRouteMapsMapArrayOutput) ElementType

func (GetRouteMapsMapArrayOutput) ElementType() reflect.Type

func (GetRouteMapsMapArrayOutput) Index

func (GetRouteMapsMapArrayOutput) ToGetRouteMapsMapArrayOutput

func (o GetRouteMapsMapArrayOutput) ToGetRouteMapsMapArrayOutput() GetRouteMapsMapArrayOutput

func (GetRouteMapsMapArrayOutput) ToGetRouteMapsMapArrayOutputWithContext

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

type GetRouteMapsMapInput

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

type GetRouteMapsMapOutput struct{ *pulumi.OutputState }

func (GetRouteMapsMapOutput) AsPathMatchMode

func (o GetRouteMapsMapOutput) AsPathMatchMode() pulumi.StringOutput

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

func (GetRouteMapsMapOutput) CenId

The ID of the CEN instance.

func (GetRouteMapsMapOutput) CenRegionId

func (o GetRouteMapsMapOutput) CenRegionId() pulumi.StringOutput

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

func (GetRouteMapsMapOutput) CidrMatchMode

func (o GetRouteMapsMapOutput) CidrMatchMode() pulumi.StringOutput

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

func (GetRouteMapsMapOutput) CommunityMatchMode

func (o GetRouteMapsMapOutput) CommunityMatchMode() pulumi.StringOutput

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

func (GetRouteMapsMapOutput) CommunityOperateMode

func (o GetRouteMapsMapOutput) CommunityOperateMode() pulumi.StringOutput

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

func (GetRouteMapsMapOutput) Description

func (o GetRouteMapsMapOutput) Description() pulumi.StringOutput

The description of the route map.

func (GetRouteMapsMapOutput) DestinationChildInstanceTypes

func (o GetRouteMapsMapOutput) DestinationChildInstanceTypes() pulumi.StringArrayOutput

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

func (GetRouteMapsMapOutput) DestinationCidrBlocks

func (o GetRouteMapsMapOutput) DestinationCidrBlocks() pulumi.StringArrayOutput

A match statement that indicates the prefix list.

func (GetRouteMapsMapOutput) DestinationInstanceIds

func (o GetRouteMapsMapOutput) DestinationInstanceIds() pulumi.StringArrayOutput

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

func (GetRouteMapsMapOutput) DestinationInstanceIdsReverseMatch

func (o GetRouteMapsMapOutput) DestinationInstanceIdsReverseMatch() pulumi.BoolOutput

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

func (GetRouteMapsMapOutput) DestinationRouteTableIds

func (o GetRouteMapsMapOutput) DestinationRouteTableIds() pulumi.StringArrayOutput

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

func (GetRouteMapsMapOutput) ElementType

func (GetRouteMapsMapOutput) ElementType() reflect.Type

func (GetRouteMapsMapOutput) Id

The ID of the route map. It formats as `<cen_id>:<route_map_id>`. Before 1.161.0, it is `routeMapId`.

func (GetRouteMapsMapOutput) MapResult

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

func (GetRouteMapsMapOutput) MatchAsns

A match statement that indicates the As path list.

func (GetRouteMapsMapOutput) MatchCommunitySets

func (o GetRouteMapsMapOutput) MatchCommunitySets() pulumi.StringArrayOutput

A match statement that indicates the community set.

func (GetRouteMapsMapOutput) NextPriority

func (o GetRouteMapsMapOutput) NextPriority() pulumi.IntOutput

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

func (GetRouteMapsMapOutput) OperateCommunitySets

func (o GetRouteMapsMapOutput) OperateCommunitySets() pulumi.StringArrayOutput

An action statement that operates the community attribute.

func (GetRouteMapsMapOutput) Preference

func (o GetRouteMapsMapOutput) Preference() pulumi.IntOutput

An action statement that modifies the preference of the route.

func (GetRouteMapsMapOutput) PrependAsPaths

func (o GetRouteMapsMapOutput) PrependAsPaths() pulumi.StringArrayOutput

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

func (GetRouteMapsMapOutput) Priority

func (o GetRouteMapsMapOutput) Priority() pulumi.IntOutput

The priority of the route map.

func (GetRouteMapsMapOutput) RouteMapId

func (o GetRouteMapsMapOutput) RouteMapId() pulumi.StringOutput

The ID of the route map.

func (GetRouteMapsMapOutput) RouteTypes

A match statement that indicates the list of route types.

func (GetRouteMapsMapOutput) SourceChildInstanceTypes

func (o GetRouteMapsMapOutput) SourceChildInstanceTypes() pulumi.StringArrayOutput

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

func (GetRouteMapsMapOutput) SourceInstanceIds

func (o GetRouteMapsMapOutput) SourceInstanceIds() pulumi.StringArrayOutput

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

func (GetRouteMapsMapOutput) SourceInstanceIdsReverseMatch

func (o GetRouteMapsMapOutput) SourceInstanceIdsReverseMatch() pulumi.BoolOutput

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

func (GetRouteMapsMapOutput) SourceRegionIds

func (o GetRouteMapsMapOutput) SourceRegionIds() pulumi.StringArrayOutput

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

func (GetRouteMapsMapOutput) SourceRouteTableIds

func (o GetRouteMapsMapOutput) SourceRouteTableIds() pulumi.StringArrayOutput

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

func (GetRouteMapsMapOutput) Status

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

func (GetRouteMapsMapOutput) ToGetRouteMapsMapOutput

func (o GetRouteMapsMapOutput) ToGetRouteMapsMapOutput() GetRouteMapsMapOutput

func (GetRouteMapsMapOutput) ToGetRouteMapsMapOutputWithContext

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

func (GetRouteMapsMapOutput) TransmitDirection

func (o GetRouteMapsMapOutput) TransmitDirection() pulumi.StringOutput

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

type GetRouteMapsOutputArgs

type GetRouteMapsOutputArgs struct {
	// The ID of the CEN instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// The ID of the region to which the CEN instance belongs.
	CenRegionId pulumi.StringPtrInput `pulumi:"cenRegionId"`
	// A regex string to filter CEN route map by description.
	DescriptionRegex pulumi.StringPtrInput `pulumi:"descriptionRegex"`
	// A list of CEN route map IDs. Each item formats as `<cen_id>:<route_map_id>`.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	// The status of the route map, including `Creating`, `Active` and `Deleting`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The direction in which the route map is applied, including `RegionIn` and `RegionOut`.
	TransmitDirection pulumi.StringPtrInput `pulumi:"transmitDirection"`
}

A collection of arguments for invoking getRouteMaps.

func (GetRouteMapsOutputArgs) ElementType

func (GetRouteMapsOutputArgs) ElementType() reflect.Type

type GetRouteMapsResult

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. Each item formats as `<cen_id>:<route_map_id>`. Before 1.161.0, its element is `routeMapId`.
	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

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/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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

```

type GetRouteMapsResultOutput

type GetRouteMapsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRouteMaps.

func (GetRouteMapsResultOutput) CenId

The ID of the CEN instance.

func (GetRouteMapsResultOutput) CenRegionId

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

func (GetRouteMapsResultOutput) DescriptionRegex

func (o GetRouteMapsResultOutput) DescriptionRegex() pulumi.StringPtrOutput

func (GetRouteMapsResultOutput) ElementType

func (GetRouteMapsResultOutput) ElementType() reflect.Type

func (GetRouteMapsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetRouteMapsResultOutput) Ids

A list of CEN route map IDs. Each item formats as `<cen_id>:<route_map_id>`. Before 1.161.0, its element is `routeMapId`.

func (GetRouteMapsResultOutput) Maps

A list of CEN instances. Each element contains the following attributes:

func (GetRouteMapsResultOutput) OutputFile

func (GetRouteMapsResultOutput) Status

The status of the route map.

func (GetRouteMapsResultOutput) ToGetRouteMapsResultOutput

func (o GetRouteMapsResultOutput) ToGetRouteMapsResultOutput() GetRouteMapsResultOutput

func (GetRouteMapsResultOutput) ToGetRouteMapsResultOutputWithContext

func (o GetRouteMapsResultOutput) ToGetRouteMapsResultOutputWithContext(ctx context.Context) GetRouteMapsResultOutput

func (GetRouteMapsResultOutput) TransmitDirection

func (o GetRouteMapsResultOutput) TransmitDirection() pulumi.StringPtrOutput

The direction in which the route map is applied.

type GetRouteServicesArgs

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 GetRouteServicesOutputArgs

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

A collection of arguments for invoking getRouteServices.

func (GetRouteServicesOutputArgs) ElementType

func (GetRouteServicesOutputArgs) ElementType() reflect.Type

type GetRouteServicesResult

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

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/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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 GetRouteServicesResultOutput

type GetRouteServicesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRouteServices.

func (GetRouteServicesResultOutput) AccessRegionId

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

func (GetRouteServicesResultOutput) CenId

The ID of the CEN instance.

func (GetRouteServicesResultOutput) ElementType

func (GetRouteServicesResultOutput) Host

The domain name or IP address of the cloud service.

func (GetRouteServicesResultOutput) HostRegionId

The region of the cloud service.

func (GetRouteServicesResultOutput) HostVpcId

The VPC associated with the cloud service.

func (GetRouteServicesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetRouteServicesResultOutput) Ids

A list of CEN Route Service IDs.

func (GetRouteServicesResultOutput) OutputFile

func (GetRouteServicesResultOutput) Services

A list of CEN Route Services. Each element contains the following attributes:

func (GetRouteServicesResultOutput) Status

The status of the cloud service.

func (GetRouteServicesResultOutput) ToGetRouteServicesResultOutput

func (o GetRouteServicesResultOutput) ToGetRouteServicesResultOutput() GetRouteServicesResultOutput

func (GetRouteServicesResultOutput) ToGetRouteServicesResultOutputWithContext

func (o GetRouteServicesResultOutput) ToGetRouteServicesResultOutputWithContext(ctx context.Context) GetRouteServicesResultOutput

type GetRouteServicesService

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

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

func (GetRouteServicesServiceArgs) ToGetRouteServicesServiceOutput

func (i GetRouteServicesServiceArgs) ToGetRouteServicesServiceOutput() GetRouteServicesServiceOutput

func (GetRouteServicesServiceArgs) ToGetRouteServicesServiceOutputWithContext

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

type GetRouteServicesServiceArray

type GetRouteServicesServiceArray []GetRouteServicesServiceInput

func (GetRouteServicesServiceArray) ElementType

func (GetRouteServicesServiceArray) ToGetRouteServicesServiceArrayOutput

func (i GetRouteServicesServiceArray) ToGetRouteServicesServiceArrayOutput() GetRouteServicesServiceArrayOutput

func (GetRouteServicesServiceArray) ToGetRouteServicesServiceArrayOutputWithContext

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

type GetRouteServicesServiceArrayInput

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

type GetRouteServicesServiceArrayOutput struct{ *pulumi.OutputState }

func (GetRouteServicesServiceArrayOutput) ElementType

func (GetRouteServicesServiceArrayOutput) Index

func (GetRouteServicesServiceArrayOutput) ToGetRouteServicesServiceArrayOutput

func (o GetRouteServicesServiceArrayOutput) ToGetRouteServicesServiceArrayOutput() GetRouteServicesServiceArrayOutput

func (GetRouteServicesServiceArrayOutput) ToGetRouteServicesServiceArrayOutputWithContext

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

type GetRouteServicesServiceInput

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

type GetRouteServicesServiceOutput struct{ *pulumi.OutputState }

func (GetRouteServicesServiceOutput) AccessRegionId

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

func (GetRouteServicesServiceOutput) CenId

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

func (GetRouteServicesServiceOutput) Cidrs

The IP address of the cloud service.

func (GetRouteServicesServiceOutput) Description

The description of the cloud service.

func (GetRouteServicesServiceOutput) ElementType

func (GetRouteServicesServiceOutput) Host

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

func (GetRouteServicesServiceOutput) HostRegionId

The region of the cloud service.

func (GetRouteServicesServiceOutput) HostVpcId

The VPC associated with the cloud service.

func (GetRouteServicesServiceOutput) Id

The ID of the route service.

func (GetRouteServicesServiceOutput) Status

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

func (GetRouteServicesServiceOutput) ToGetRouteServicesServiceOutput

func (o GetRouteServicesServiceOutput) ToGetRouteServicesServiceOutput() GetRouteServicesServiceOutput

func (GetRouteServicesServiceOutput) ToGetRouteServicesServiceOutputWithContext

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

func (GetRouteServicesServiceOutput) UpdateInterval

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

type GetTrafficMarkingPoliciesArgs

type GetTrafficMarkingPoliciesArgs struct {
	// The description of the Traffic Marking Policy.
	Description *string `pulumi:"description"`
	// A list of Traffic Marking Policy IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter results by Traffic Marking Policy name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the resource.
	Status *string `pulumi:"status"`
	// The ID of the transit router.
	TransitRouterId string `pulumi:"transitRouterId"`
}

A collection of arguments for invoking getTrafficMarkingPolicies.

type GetTrafficMarkingPoliciesOutputArgs

type GetTrafficMarkingPoliciesOutputArgs struct {
	// The description of the Traffic Marking Policy.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// A list of Traffic Marking Policy IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter results by Traffic Marking Policy name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the resource.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of the transit router.
	TransitRouterId pulumi.StringInput `pulumi:"transitRouterId"`
}

A collection of arguments for invoking getTrafficMarkingPolicies.

func (GetTrafficMarkingPoliciesOutputArgs) ElementType

type GetTrafficMarkingPoliciesPolicy

type GetTrafficMarkingPoliciesPolicy struct {
	// The description of the Traffic Marking Policy.
	Description string `pulumi:"description"`
	// The ID of the resource. The value is formatted `<transit_router_id>:<traffic_marking_policy_id>`.
	Id string `pulumi:"id"`
	// The DSCP(Differentiated Services Code Point) of the Traffic Marking Policy.
	MarkingDscp int `pulumi:"markingDscp"`
	// The Priority of the Traffic Marking Policy.
	Priority int `pulumi:"priority"`
	// The status of the resource.
	Status string `pulumi:"status"`
	// The ID of the Traffic Marking Policy.
	TrafficMarkingPolicyId string `pulumi:"trafficMarkingPolicyId"`
	// The name of the Traffic Marking Policy.
	TrafficMarkingPolicyName string `pulumi:"trafficMarkingPolicyName"`
	// The ID of the transit router.
	TransitRouterId string `pulumi:"transitRouterId"`
}

type GetTrafficMarkingPoliciesPolicyArgs

type GetTrafficMarkingPoliciesPolicyArgs struct {
	// The description of the Traffic Marking Policy.
	Description pulumi.StringInput `pulumi:"description"`
	// The ID of the resource. The value is formatted `<transit_router_id>:<traffic_marking_policy_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The DSCP(Differentiated Services Code Point) of the Traffic Marking Policy.
	MarkingDscp pulumi.IntInput `pulumi:"markingDscp"`
	// The Priority of the Traffic Marking Policy.
	Priority pulumi.IntInput `pulumi:"priority"`
	// The status of the resource.
	Status pulumi.StringInput `pulumi:"status"`
	// The ID of the Traffic Marking Policy.
	TrafficMarkingPolicyId pulumi.StringInput `pulumi:"trafficMarkingPolicyId"`
	// The name of the Traffic Marking Policy.
	TrafficMarkingPolicyName pulumi.StringInput `pulumi:"trafficMarkingPolicyName"`
	// The ID of the transit router.
	TransitRouterId pulumi.StringInput `pulumi:"transitRouterId"`
}

func (GetTrafficMarkingPoliciesPolicyArgs) ElementType

func (GetTrafficMarkingPoliciesPolicyArgs) ToGetTrafficMarkingPoliciesPolicyOutput

func (i GetTrafficMarkingPoliciesPolicyArgs) ToGetTrafficMarkingPoliciesPolicyOutput() GetTrafficMarkingPoliciesPolicyOutput

func (GetTrafficMarkingPoliciesPolicyArgs) ToGetTrafficMarkingPoliciesPolicyOutputWithContext

func (i GetTrafficMarkingPoliciesPolicyArgs) ToGetTrafficMarkingPoliciesPolicyOutputWithContext(ctx context.Context) GetTrafficMarkingPoliciesPolicyOutput

type GetTrafficMarkingPoliciesPolicyArray

type GetTrafficMarkingPoliciesPolicyArray []GetTrafficMarkingPoliciesPolicyInput

func (GetTrafficMarkingPoliciesPolicyArray) ElementType

func (GetTrafficMarkingPoliciesPolicyArray) ToGetTrafficMarkingPoliciesPolicyArrayOutput

func (i GetTrafficMarkingPoliciesPolicyArray) ToGetTrafficMarkingPoliciesPolicyArrayOutput() GetTrafficMarkingPoliciesPolicyArrayOutput

func (GetTrafficMarkingPoliciesPolicyArray) ToGetTrafficMarkingPoliciesPolicyArrayOutputWithContext

func (i GetTrafficMarkingPoliciesPolicyArray) ToGetTrafficMarkingPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetTrafficMarkingPoliciesPolicyArrayOutput

type GetTrafficMarkingPoliciesPolicyArrayInput

type GetTrafficMarkingPoliciesPolicyArrayInput interface {
	pulumi.Input

	ToGetTrafficMarkingPoliciesPolicyArrayOutput() GetTrafficMarkingPoliciesPolicyArrayOutput
	ToGetTrafficMarkingPoliciesPolicyArrayOutputWithContext(context.Context) GetTrafficMarkingPoliciesPolicyArrayOutput
}

GetTrafficMarkingPoliciesPolicyArrayInput is an input type that accepts GetTrafficMarkingPoliciesPolicyArray and GetTrafficMarkingPoliciesPolicyArrayOutput values. You can construct a concrete instance of `GetTrafficMarkingPoliciesPolicyArrayInput` via:

GetTrafficMarkingPoliciesPolicyArray{ GetTrafficMarkingPoliciesPolicyArgs{...} }

type GetTrafficMarkingPoliciesPolicyArrayOutput

type GetTrafficMarkingPoliciesPolicyArrayOutput struct{ *pulumi.OutputState }

func (GetTrafficMarkingPoliciesPolicyArrayOutput) ElementType

func (GetTrafficMarkingPoliciesPolicyArrayOutput) Index

func (GetTrafficMarkingPoliciesPolicyArrayOutput) ToGetTrafficMarkingPoliciesPolicyArrayOutput

func (o GetTrafficMarkingPoliciesPolicyArrayOutput) ToGetTrafficMarkingPoliciesPolicyArrayOutput() GetTrafficMarkingPoliciesPolicyArrayOutput

func (GetTrafficMarkingPoliciesPolicyArrayOutput) ToGetTrafficMarkingPoliciesPolicyArrayOutputWithContext

func (o GetTrafficMarkingPoliciesPolicyArrayOutput) ToGetTrafficMarkingPoliciesPolicyArrayOutputWithContext(ctx context.Context) GetTrafficMarkingPoliciesPolicyArrayOutput

type GetTrafficMarkingPoliciesPolicyInput

type GetTrafficMarkingPoliciesPolicyInput interface {
	pulumi.Input

	ToGetTrafficMarkingPoliciesPolicyOutput() GetTrafficMarkingPoliciesPolicyOutput
	ToGetTrafficMarkingPoliciesPolicyOutputWithContext(context.Context) GetTrafficMarkingPoliciesPolicyOutput
}

GetTrafficMarkingPoliciesPolicyInput is an input type that accepts GetTrafficMarkingPoliciesPolicyArgs and GetTrafficMarkingPoliciesPolicyOutput values. You can construct a concrete instance of `GetTrafficMarkingPoliciesPolicyInput` via:

GetTrafficMarkingPoliciesPolicyArgs{...}

type GetTrafficMarkingPoliciesPolicyOutput

type GetTrafficMarkingPoliciesPolicyOutput struct{ *pulumi.OutputState }

func (GetTrafficMarkingPoliciesPolicyOutput) Description

The description of the Traffic Marking Policy.

func (GetTrafficMarkingPoliciesPolicyOutput) ElementType

func (GetTrafficMarkingPoliciesPolicyOutput) Id

The ID of the resource. The value is formatted `<transit_router_id>:<traffic_marking_policy_id>`.

func (GetTrafficMarkingPoliciesPolicyOutput) MarkingDscp

The DSCP(Differentiated Services Code Point) of the Traffic Marking Policy.

func (GetTrafficMarkingPoliciesPolicyOutput) Priority

The Priority of the Traffic Marking Policy.

func (GetTrafficMarkingPoliciesPolicyOutput) Status

The status of the resource.

func (GetTrafficMarkingPoliciesPolicyOutput) ToGetTrafficMarkingPoliciesPolicyOutput

func (o GetTrafficMarkingPoliciesPolicyOutput) ToGetTrafficMarkingPoliciesPolicyOutput() GetTrafficMarkingPoliciesPolicyOutput

func (GetTrafficMarkingPoliciesPolicyOutput) ToGetTrafficMarkingPoliciesPolicyOutputWithContext

func (o GetTrafficMarkingPoliciesPolicyOutput) ToGetTrafficMarkingPoliciesPolicyOutputWithContext(ctx context.Context) GetTrafficMarkingPoliciesPolicyOutput

func (GetTrafficMarkingPoliciesPolicyOutput) TrafficMarkingPolicyId

func (o GetTrafficMarkingPoliciesPolicyOutput) TrafficMarkingPolicyId() pulumi.StringOutput

The ID of the Traffic Marking Policy.

func (GetTrafficMarkingPoliciesPolicyOutput) TrafficMarkingPolicyName

func (o GetTrafficMarkingPoliciesPolicyOutput) TrafficMarkingPolicyName() pulumi.StringOutput

The name of the Traffic Marking Policy.

func (GetTrafficMarkingPoliciesPolicyOutput) TransitRouterId

The ID of the transit router.

type GetTrafficMarkingPoliciesResult

type GetTrafficMarkingPoliciesResult struct {
	Description *string `pulumi:"description"`
	// The provider-assigned unique ID for this managed resource.
	Id              string                            `pulumi:"id"`
	Ids             []string                          `pulumi:"ids"`
	NameRegex       *string                           `pulumi:"nameRegex"`
	Names           []string                          `pulumi:"names"`
	OutputFile      *string                           `pulumi:"outputFile"`
	Policies        []GetTrafficMarkingPoliciesPolicy `pulumi:"policies"`
	Status          *string                           `pulumi:"status"`
	TransitRouterId string                            `pulumi:"transitRouterId"`
}

A collection of values returned by getTrafficMarkingPolicies.

func GetTrafficMarkingPolicies

func GetTrafficMarkingPolicies(ctx *pulumi.Context, args *GetTrafficMarkingPoliciesArgs, opts ...pulumi.InvokeOption) (*GetTrafficMarkingPoliciesResult, error)

This data source provides the Cen Traffic Marking Policies of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		ids, err := cen.GetTrafficMarkingPolicies(ctx, &cen.GetTrafficMarkingPoliciesArgs{
			TransitRouterId: "example_value",
			Ids: []string{
				"example_value-1",
				"example_value-2",
			},
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cenTrafficMarkingPolicyId1", ids.Policies[0].Id)
		nameRegex, err := cen.GetTrafficMarkingPolicies(ctx, &cen.GetTrafficMarkingPoliciesArgs{
			TransitRouterId: "example_value",
			NameRegex:       pulumi.StringRef("^my-TrafficMarkingPolicy"),
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("cenTrafficMarkingPolicyId2", nameRegex.Policies[0].Id)
		return nil
	})
}

```

type GetTrafficMarkingPoliciesResultOutput

type GetTrafficMarkingPoliciesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTrafficMarkingPolicies.

func (GetTrafficMarkingPoliciesResultOutput) Description

func (GetTrafficMarkingPoliciesResultOutput) ElementType

func (GetTrafficMarkingPoliciesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTrafficMarkingPoliciesResultOutput) Ids

func (GetTrafficMarkingPoliciesResultOutput) NameRegex

func (GetTrafficMarkingPoliciesResultOutput) Names

func (GetTrafficMarkingPoliciesResultOutput) OutputFile

func (GetTrafficMarkingPoliciesResultOutput) Policies

func (GetTrafficMarkingPoliciesResultOutput) Status

func (GetTrafficMarkingPoliciesResultOutput) ToGetTrafficMarkingPoliciesResultOutput

func (o GetTrafficMarkingPoliciesResultOutput) ToGetTrafficMarkingPoliciesResultOutput() GetTrafficMarkingPoliciesResultOutput

func (GetTrafficMarkingPoliciesResultOutput) ToGetTrafficMarkingPoliciesResultOutputWithContext

func (o GetTrafficMarkingPoliciesResultOutput) ToGetTrafficMarkingPoliciesResultOutputWithContext(ctx context.Context) GetTrafficMarkingPoliciesResultOutput

func (GetTrafficMarkingPoliciesResultOutput) TransitRouterId

type GetTransitRouterAvailableResourcesArgs

type GetTransitRouterAvailableResourcesArgs struct {
	OutputFile *string `pulumi:"outputFile"`
}

A collection of arguments for invoking getTransitRouterAvailableResources.

type GetTransitRouterAvailableResourcesOutputArgs

type GetTransitRouterAvailableResourcesOutputArgs struct {
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
}

A collection of arguments for invoking getTransitRouterAvailableResources.

func (GetTransitRouterAvailableResourcesOutputArgs) ElementType

type GetTransitRouterAvailableResourcesResource

type GetTransitRouterAvailableResourcesResource struct {
	// The list of primary zones.
	MasterZones []string `pulumi:"masterZones"`
	// The list of secondary zones.
	SlaveZones []string `pulumi:"slaveZones"`
}

type GetTransitRouterAvailableResourcesResourceArgs

type GetTransitRouterAvailableResourcesResourceArgs struct {
	// The list of primary zones.
	MasterZones pulumi.StringArrayInput `pulumi:"masterZones"`
	// The list of secondary zones.
	SlaveZones pulumi.StringArrayInput `pulumi:"slaveZones"`
}

func (GetTransitRouterAvailableResourcesResourceArgs) ElementType

func (GetTransitRouterAvailableResourcesResourceArgs) ToGetTransitRouterAvailableResourcesResourceOutput

func (i GetTransitRouterAvailableResourcesResourceArgs) ToGetTransitRouterAvailableResourcesResourceOutput() GetTransitRouterAvailableResourcesResourceOutput

func (GetTransitRouterAvailableResourcesResourceArgs) ToGetTransitRouterAvailableResourcesResourceOutputWithContext

func (i GetTransitRouterAvailableResourcesResourceArgs) ToGetTransitRouterAvailableResourcesResourceOutputWithContext(ctx context.Context) GetTransitRouterAvailableResourcesResourceOutput

type GetTransitRouterAvailableResourcesResourceArray

type GetTransitRouterAvailableResourcesResourceArray []GetTransitRouterAvailableResourcesResourceInput

func (GetTransitRouterAvailableResourcesResourceArray) ElementType

func (GetTransitRouterAvailableResourcesResourceArray) ToGetTransitRouterAvailableResourcesResourceArrayOutput

func (i GetTransitRouterAvailableResourcesResourceArray) ToGetTransitRouterAvailableResourcesResourceArrayOutput() GetTransitRouterAvailableResourcesResourceArrayOutput

func (GetTransitRouterAvailableResourcesResourceArray) ToGetTransitRouterAvailableResourcesResourceArrayOutputWithContext

func (i GetTransitRouterAvailableResourcesResourceArray) ToGetTransitRouterAvailableResourcesResourceArrayOutputWithContext(ctx context.Context) GetTransitRouterAvailableResourcesResourceArrayOutput

type GetTransitRouterAvailableResourcesResourceArrayInput

type GetTransitRouterAvailableResourcesResourceArrayInput interface {
	pulumi.Input

	ToGetTransitRouterAvailableResourcesResourceArrayOutput() GetTransitRouterAvailableResourcesResourceArrayOutput
	ToGetTransitRouterAvailableResourcesResourceArrayOutputWithContext(context.Context) GetTransitRouterAvailableResourcesResourceArrayOutput
}

GetTransitRouterAvailableResourcesResourceArrayInput is an input type that accepts GetTransitRouterAvailableResourcesResourceArray and GetTransitRouterAvailableResourcesResourceArrayOutput values. You can construct a concrete instance of `GetTransitRouterAvailableResourcesResourceArrayInput` via:

GetTransitRouterAvailableResourcesResourceArray{ GetTransitRouterAvailableResourcesResourceArgs{...} }

type GetTransitRouterAvailableResourcesResourceArrayOutput

type GetTransitRouterAvailableResourcesResourceArrayOutput struct{ *pulumi.OutputState }

func (GetTransitRouterAvailableResourcesResourceArrayOutput) ElementType

func (GetTransitRouterAvailableResourcesResourceArrayOutput) Index

func (GetTransitRouterAvailableResourcesResourceArrayOutput) ToGetTransitRouterAvailableResourcesResourceArrayOutput

func (GetTransitRouterAvailableResourcesResourceArrayOutput) ToGetTransitRouterAvailableResourcesResourceArrayOutputWithContext

func (o GetTransitRouterAvailableResourcesResourceArrayOutput) ToGetTransitRouterAvailableResourcesResourceArrayOutputWithContext(ctx context.Context) GetTransitRouterAvailableResourcesResourceArrayOutput

type GetTransitRouterAvailableResourcesResourceInput

type GetTransitRouterAvailableResourcesResourceInput interface {
	pulumi.Input

	ToGetTransitRouterAvailableResourcesResourceOutput() GetTransitRouterAvailableResourcesResourceOutput
	ToGetTransitRouterAvailableResourcesResourceOutputWithContext(context.Context) GetTransitRouterAvailableResourcesResourceOutput
}

GetTransitRouterAvailableResourcesResourceInput is an input type that accepts GetTransitRouterAvailableResourcesResourceArgs and GetTransitRouterAvailableResourcesResourceOutput values. You can construct a concrete instance of `GetTransitRouterAvailableResourcesResourceInput` via:

GetTransitRouterAvailableResourcesResourceArgs{...}

type GetTransitRouterAvailableResourcesResourceOutput

type GetTransitRouterAvailableResourcesResourceOutput struct{ *pulumi.OutputState }

func (GetTransitRouterAvailableResourcesResourceOutput) ElementType

func (GetTransitRouterAvailableResourcesResourceOutput) MasterZones

The list of primary zones.

func (GetTransitRouterAvailableResourcesResourceOutput) SlaveZones

The list of secondary zones.

func (GetTransitRouterAvailableResourcesResourceOutput) ToGetTransitRouterAvailableResourcesResourceOutput

func (o GetTransitRouterAvailableResourcesResourceOutput) ToGetTransitRouterAvailableResourcesResourceOutput() GetTransitRouterAvailableResourcesResourceOutput

func (GetTransitRouterAvailableResourcesResourceOutput) ToGetTransitRouterAvailableResourcesResourceOutputWithContext

func (o GetTransitRouterAvailableResourcesResourceOutput) ToGetTransitRouterAvailableResourcesResourceOutputWithContext(ctx context.Context) GetTransitRouterAvailableResourcesResourceOutput

type GetTransitRouterAvailableResourcesResult

type GetTransitRouterAvailableResourcesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id         string                                       `pulumi:"id"`
	OutputFile *string                                      `pulumi:"outputFile"`
	Resources  []GetTransitRouterAvailableResourcesResource `pulumi:"resources"`
}

A collection of values returned by getTransitRouterAvailableResources.

func GetTransitRouterAvailableResources

This data source provides the Cen Transit Router Available Resources of the current Alibaba Cloud user.

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cen.GetTransitRouterAvailableResources(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("masterId", data.Alicloud_cen_transit_router_available_resources.Default.Resources[0].Master_zones[0])
		ctx.Export("slaveId", data.Alicloud_cen_transit_router_available_resources.Default.Resources[0].Slave_zones[0])
		return nil
	})
}

```

type GetTransitRouterAvailableResourcesResultOutput

type GetTransitRouterAvailableResourcesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTransitRouterAvailableResources.

func (GetTransitRouterAvailableResourcesResultOutput) ElementType

func (GetTransitRouterAvailableResourcesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTransitRouterAvailableResourcesResultOutput) OutputFile

func (GetTransitRouterAvailableResourcesResultOutput) Resources

func (GetTransitRouterAvailableResourcesResultOutput) ToGetTransitRouterAvailableResourcesResultOutput

func (o GetTransitRouterAvailableResourcesResultOutput) ToGetTransitRouterAvailableResourcesResultOutput() GetTransitRouterAvailableResourcesResultOutput

func (GetTransitRouterAvailableResourcesResultOutput) ToGetTransitRouterAvailableResourcesResultOutputWithContext

func (o GetTransitRouterAvailableResourcesResultOutput) ToGetTransitRouterAvailableResourcesResultOutputWithContext(ctx context.Context) GetTransitRouterAvailableResourcesResultOutput

type GetTransitRouterPeerAttachmentsArgs

type GetTransitRouterPeerAttachmentsArgs struct {
	// ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// A list of CEN Transit Router peer attachments IDs.
	Ids []string `pulumi:"ids"`
	// A regex string to filter CEN Transit Router peer attachments by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of CEN Transit Router peer attachment. Valid values `Attached`, `Attaching` and `Detaching`.
	Status *string `pulumi:"status"`
	// The ID of CEN Transit Router peer attachments.
	TransitRouterAttachmentId *string `pulumi:"transitRouterAttachmentId"`
	// The ID of transit router.
	TransitRouterId *string `pulumi:"transitRouterId"`
}

A collection of arguments for invoking getTransitRouterPeerAttachments.

type GetTransitRouterPeerAttachmentsAttachment

type GetTransitRouterPeerAttachmentsAttachment struct {
	// Auto publish route enabled.
	AutoPublishRouteEnabled bool `pulumi:"autoPublishRouteEnabled"`
	// The bandwidth of the bandwidth package.
	Bandwidth int `pulumi:"bandwidth"`
	// ID of the CEN bandwidth package.
	CenBandwidthPackageId string `pulumi:"cenBandwidthPackageId"`
	// ID of the geographic.
	GeographicSpanId string `pulumi:"geographicSpanId"`
	// The ID of CEN Transit Router peer attachments.
	Id string `pulumi:"id"`
	// ID of the peer transit router.
	PeerTransitRouterId string `pulumi:"peerTransitRouterId"`
	// Owner ID of the peer transit router.
	PeerTransitRouterOwnerId string `pulumi:"peerTransitRouterOwnerId"`
	// Region ID of the peer transit router.
	PeerTransitRouterRegionId string `pulumi:"peerTransitRouterRegionId"`
	// Type of the resource.
	ResourceType string `pulumi:"resourceType"`
	// The status of CEN Transit Router peer attachment. Valid values `Attached`, `Attaching` and `Detaching`.
	Status string `pulumi:"status"`
	// The description of CEN Transit Router peer attachments.
	TransitRouterAttachmentDescription string `pulumi:"transitRouterAttachmentDescription"`
	// The ID of CEN Transit Router peer attachments.
	TransitRouterAttachmentId string `pulumi:"transitRouterAttachmentId"`
	// Name of the transit router attachment.
	TransitRouterAttachmentName string `pulumi:"transitRouterAttachmentName"`
	// The ID of transit router.
	TransitRouterId string `pulumi:"transitRouterId"`
}

type GetTransitRouterPeerAttachmentsAttachmentArgs

type GetTransitRouterPeerAttachmentsAttachmentArgs struct {
	// Auto publish route enabled.
	AutoPublishRouteEnabled pulumi.BoolInput `pulumi:"autoPublishRouteEnabled"`
	// The bandwidth of the bandwidth package.
	Bandwidth pulumi.IntInput `pulumi:"bandwidth"`
	// ID of the CEN bandwidth package.
	CenBandwidthPackageId pulumi.StringInput `pulumi:"cenBandwidthPackageId"`
	// ID of the geographic.
	GeographicSpanId pulumi.StringInput `pulumi:"geographicSpanId"`
	// The ID of CEN Transit Router peer attachments.
	Id pulumi.StringInput `pulumi:"id"`
	// ID of the peer transit router.
	PeerTransitRouterId pulumi.StringInput `pulumi:"peerTransitRouterId"`
	// Owner ID of the peer transit router.
	PeerTransitRouterOwnerId pulumi.StringInput `pulumi:"peerTransitRouterOwnerId"`
	// Region ID of the peer transit router.
	PeerTransitRouterRegionId pulumi.StringInput `pulumi:"peerTransitRouterRegionId"`
	// Type of the resource.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// The status of CEN Transit Router peer attachment. Valid values `Attached`, `Attaching` and `Detaching`.
	Status pulumi.StringInput `pulumi:"status"`
	// The description of CEN Transit Router peer attachments.
	TransitRouterAttachmentDescription pulumi.StringInput `pulumi:"transitRouterAttachmentDescription"`
	// The ID of CEN Transit Router peer attachments.
	TransitRouterAttachmentId pulumi.StringInput `pulumi:"transitRouterAttachmentId"`
	// Name of the transit router attachment.
	TransitRouterAttachmentName pulumi.StringInput `pulumi:"transitRouterAttachmentName"`
	// The ID of transit router.
	TransitRouterId pulumi.StringInput `pulumi:"transitRouterId"`
}

func (GetTransitRouterPeerAttachmentsAttachmentArgs) ElementType

func (GetTransitRouterPeerAttachmentsAttachmentArgs) ToGetTransitRouterPeerAttachmentsAttachmentOutput

func (i GetTransitRouterPeerAttachmentsAttachmentArgs) ToGetTransitRouterPeerAttachmentsAttachmentOutput() GetTransitRouterPeerAttachmentsAttachmentOutput

func (GetTransitRouterPeerAttachmentsAttachmentArgs) ToGetTransitRouterPeerAttachmentsAttachmentOutputWithContext

func (i GetTransitRouterPeerAttachmentsAttachmentArgs) ToGetTransitRouterPeerAttachmentsAttachmentOutputWithContext(ctx context.Context) GetTransitRouterPeerAttachmentsAttachmentOutput

type GetTransitRouterPeerAttachmentsAttachmentArray

type GetTransitRouterPeerAttachmentsAttachmentArray []GetTransitRouterPeerAttachmentsAttachmentInput

func (GetTransitRouterPeerAttachmentsAttachmentArray) ElementType

func (GetTransitRouterPeerAttachmentsAttachmentArray) ToGetTransitRouterPeerAttachmentsAttachmentArrayOutput

func (i GetTransitRouterPeerAttachmentsAttachmentArray) ToGetTransitRouterPeerAttachmentsAttachmentArrayOutput() GetTransitRouterPeerAttachmentsAttachmentArrayOutput

func (GetTransitRouterPeerAttachmentsAttachmentArray) ToGetTransitRouterPeerAttachmentsAttachmentArrayOutputWithContext

func (i GetTransitRouterPeerAttachmentsAttachmentArray) ToGetTransitRouterPeerAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetTransitRouterPeerAttachmentsAttachmentArrayOutput

type GetTransitRouterPeerAttachmentsAttachmentArrayInput

type GetTransitRouterPeerAttachmentsAttachmentArrayInput interface {
	pulumi.Input

	ToGetTransitRouterPeerAttachmentsAttachmentArrayOutput() GetTransitRouterPeerAttachmentsAttachmentArrayOutput
	ToGetTransitRouterPeerAttachmentsAttachmentArrayOutputWithContext(context.Context) GetTransitRouterPeerAttachmentsAttachmentArrayOutput
}

GetTransitRouterPeerAttachmentsAttachmentArrayInput is an input type that accepts GetTransitRouterPeerAttachmentsAttachmentArray and GetTransitRouterPeerAttachmentsAttachmentArrayOutput values. You can construct a concrete instance of `GetTransitRouterPeerAttachmentsAttachmentArrayInput` via:

GetTransitRouterPeerAttachmentsAttachmentArray{ GetTransitRouterPeerAttachmentsAttachmentArgs{...} }

type GetTransitRouterPeerAttachmentsAttachmentArrayOutput

type GetTransitRouterPeerAttachmentsAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetTransitRouterPeerAttachmentsAttachmentArrayOutput) ElementType

func (GetTransitRouterPeerAttachmentsAttachmentArrayOutput) Index

func (GetTransitRouterPeerAttachmentsAttachmentArrayOutput) ToGetTransitRouterPeerAttachmentsAttachmentArrayOutput

func (GetTransitRouterPeerAttachmentsAttachmentArrayOutput) ToGetTransitRouterPeerAttachmentsAttachmentArrayOutputWithContext

func (o GetTransitRouterPeerAttachmentsAttachmentArrayOutput) ToGetTransitRouterPeerAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetTransitRouterPeerAttachmentsAttachmentArrayOutput

type GetTransitRouterPeerAttachmentsAttachmentInput

type GetTransitRouterPeerAttachmentsAttachmentInput interface {
	pulumi.Input

	ToGetTransitRouterPeerAttachmentsAttachmentOutput() GetTransitRouterPeerAttachmentsAttachmentOutput
	ToGetTransitRouterPeerAttachmentsAttachmentOutputWithContext(context.Context) GetTransitRouterPeerAttachmentsAttachmentOutput
}

GetTransitRouterPeerAttachmentsAttachmentInput is an input type that accepts GetTransitRouterPeerAttachmentsAttachmentArgs and GetTransitRouterPeerAttachmentsAttachmentOutput values. You can construct a concrete instance of `GetTransitRouterPeerAttachmentsAttachmentInput` via:

GetTransitRouterPeerAttachmentsAttachmentArgs{...}

type GetTransitRouterPeerAttachmentsAttachmentOutput

type GetTransitRouterPeerAttachmentsAttachmentOutput struct{ *pulumi.OutputState }

func (GetTransitRouterPeerAttachmentsAttachmentOutput) AutoPublishRouteEnabled

Auto publish route enabled.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) Bandwidth

The bandwidth of the bandwidth package.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) CenBandwidthPackageId

ID of the CEN bandwidth package.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) ElementType

func (GetTransitRouterPeerAttachmentsAttachmentOutput) GeographicSpanId

ID of the geographic.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) Id

The ID of CEN Transit Router peer attachments.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) PeerTransitRouterId

ID of the peer transit router.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) PeerTransitRouterOwnerId

Owner ID of the peer transit router.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) PeerTransitRouterRegionId

Region ID of the peer transit router.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) ResourceType

Type of the resource.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) Status

The status of CEN Transit Router peer attachment. Valid values `Attached`, `Attaching` and `Detaching`.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) ToGetTransitRouterPeerAttachmentsAttachmentOutput

func (o GetTransitRouterPeerAttachmentsAttachmentOutput) ToGetTransitRouterPeerAttachmentsAttachmentOutput() GetTransitRouterPeerAttachmentsAttachmentOutput

func (GetTransitRouterPeerAttachmentsAttachmentOutput) ToGetTransitRouterPeerAttachmentsAttachmentOutputWithContext

func (o GetTransitRouterPeerAttachmentsAttachmentOutput) ToGetTransitRouterPeerAttachmentsAttachmentOutputWithContext(ctx context.Context) GetTransitRouterPeerAttachmentsAttachmentOutput

func (GetTransitRouterPeerAttachmentsAttachmentOutput) TransitRouterAttachmentDescription

func (o GetTransitRouterPeerAttachmentsAttachmentOutput) TransitRouterAttachmentDescription() pulumi.StringOutput

The description of CEN Transit Router peer attachments.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) TransitRouterAttachmentId

The ID of CEN Transit Router peer attachments.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) TransitRouterAttachmentName

Name of the transit router attachment.

func (GetTransitRouterPeerAttachmentsAttachmentOutput) TransitRouterId

The ID of transit router.

type GetTransitRouterPeerAttachmentsOutputArgs

type GetTransitRouterPeerAttachmentsOutputArgs struct {
	// ID of the CEN instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// A list of CEN Transit Router peer attachments IDs.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter CEN Transit Router peer attachments by name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of CEN Transit Router peer attachment. Valid values `Attached`, `Attaching` and `Detaching`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of CEN Transit Router peer attachments.
	TransitRouterAttachmentId pulumi.StringPtrInput `pulumi:"transitRouterAttachmentId"`
	// The ID of transit router.
	TransitRouterId pulumi.StringPtrInput `pulumi:"transitRouterId"`
}

A collection of arguments for invoking getTransitRouterPeerAttachments.

func (GetTransitRouterPeerAttachmentsOutputArgs) ElementType

type GetTransitRouterPeerAttachmentsResult

type GetTransitRouterPeerAttachmentsResult struct {
	Attachments []GetTransitRouterPeerAttachmentsAttachment `pulumi:"attachments"`
	CenId       string                                      `pulumi:"cenId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN Transit Router peer attachments IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of CEN Transit Router peer attachments names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the transit router attachment.
	Status *string `pulumi:"status"`
	// ID of the transit router attachment.
	TransitRouterAttachmentId *string `pulumi:"transitRouterAttachmentId"`
	// ID of the transit router.
	TransitRouterId *string `pulumi:"transitRouterId"`
}

A collection of values returned by getTransitRouterPeerAttachments.

func GetTransitRouterPeerAttachments

This data source provides CEN Transit Router peer attachments available to the user.

> **NOTE:** Available in 1.128.0+

type GetTransitRouterPeerAttachmentsResultOutput

type GetTransitRouterPeerAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTransitRouterPeerAttachments.

func (GetTransitRouterPeerAttachmentsResultOutput) Attachments

func (GetTransitRouterPeerAttachmentsResultOutput) CenId

func (GetTransitRouterPeerAttachmentsResultOutput) ElementType

func (GetTransitRouterPeerAttachmentsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTransitRouterPeerAttachmentsResultOutput) Ids

A list of CEN Transit Router peer attachments IDs.

func (GetTransitRouterPeerAttachmentsResultOutput) NameRegex

func (GetTransitRouterPeerAttachmentsResultOutput) Names

A list of CEN Transit Router peer attachments names.

func (GetTransitRouterPeerAttachmentsResultOutput) OutputFile

func (GetTransitRouterPeerAttachmentsResultOutput) Status

The status of the transit router attachment.

func (GetTransitRouterPeerAttachmentsResultOutput) ToGetTransitRouterPeerAttachmentsResultOutput

func (o GetTransitRouterPeerAttachmentsResultOutput) ToGetTransitRouterPeerAttachmentsResultOutput() GetTransitRouterPeerAttachmentsResultOutput

func (GetTransitRouterPeerAttachmentsResultOutput) ToGetTransitRouterPeerAttachmentsResultOutputWithContext

func (o GetTransitRouterPeerAttachmentsResultOutput) ToGetTransitRouterPeerAttachmentsResultOutputWithContext(ctx context.Context) GetTransitRouterPeerAttachmentsResultOutput

func (GetTransitRouterPeerAttachmentsResultOutput) TransitRouterAttachmentId

ID of the transit router attachment.

func (GetTransitRouterPeerAttachmentsResultOutput) TransitRouterId

ID of the transit router.

type GetTransitRouterRouteEntriesArgs

type GetTransitRouterRouteEntriesArgs struct {
	// A list of CEN Transit Router Route Entry IDs.
	Ids        []string `pulumi:"ids"`
	NameRegex  *string  `pulumi:"nameRegex"`
	OutputFile *string  `pulumi:"outputFile"`
	Status     *string  `pulumi:"status"`
	// A list of ID of the cen transit router route entry.
	TransitRouterRouteEntryIds []string `pulumi:"transitRouterRouteEntryIds"`
	// A list of name of the cen transit router route entry.
	TransitRouterRouteEntryNames []string `pulumi:"transitRouterRouteEntryNames"`
	// The status of the resource.Valid values `Creating`, `Active` and `Deleting`.
	TransitRouterRouteEntryStatus *string `pulumi:"transitRouterRouteEntryStatus"`
	// ID of the CEN Transit Router Route Table.
	TransitRouterRouteTableId string `pulumi:"transitRouterRouteTableId"`
}

A collection of arguments for invoking getTransitRouterRouteEntries.

type GetTransitRouterRouteEntriesEntry

type GetTransitRouterRouteEntriesEntry struct {
	Id                                 string `pulumi:"id"`
	Status                             string `pulumi:"status"`
	TransitRouterRouteEntryDescription string `pulumi:"transitRouterRouteEntryDescription"`
	// The target network segment of the route entry.
	TransitRouterRouteEntryDestinationCidrBlock string `pulumi:"transitRouterRouteEntryDestinationCidrBlock"`
	TransitRouterRouteEntryId                   string `pulumi:"transitRouterRouteEntryId"`
	TransitRouterRouteEntryName                 string `pulumi:"transitRouterRouteEntryName"`
	// ID of the next hop.
	TransitRouterRouteEntryNextHopId string `pulumi:"transitRouterRouteEntryNextHopId"`
	// Type of the next hop.
	TransitRouterRouteEntryNextHopType string `pulumi:"transitRouterRouteEntryNextHopType"`
	// Type of the route entry.
	TransitRouterRouteEntryType string `pulumi:"transitRouterRouteEntryType"`
}

type GetTransitRouterRouteEntriesEntryArgs

type GetTransitRouterRouteEntriesEntryArgs struct {
	Id                                 pulumi.StringInput `pulumi:"id"`
	Status                             pulumi.StringInput `pulumi:"status"`
	TransitRouterRouteEntryDescription pulumi.StringInput `pulumi:"transitRouterRouteEntryDescription"`
	// The target network segment of the route entry.
	TransitRouterRouteEntryDestinationCidrBlock pulumi.StringInput `pulumi:"transitRouterRouteEntryDestinationCidrBlock"`
	TransitRouterRouteEntryId                   pulumi.StringInput `pulumi:"transitRouterRouteEntryId"`
	TransitRouterRouteEntryName                 pulumi.StringInput `pulumi:"transitRouterRouteEntryName"`
	// ID of the next hop.
	TransitRouterRouteEntryNextHopId pulumi.StringInput `pulumi:"transitRouterRouteEntryNextHopId"`
	// Type of the next hop.
	TransitRouterRouteEntryNextHopType pulumi.StringInput `pulumi:"transitRouterRouteEntryNextHopType"`
	// Type of the route entry.
	TransitRouterRouteEntryType pulumi.StringInput `pulumi:"transitRouterRouteEntryType"`
}

func (GetTransitRouterRouteEntriesEntryArgs) ElementType

func (GetTransitRouterRouteEntriesEntryArgs) ToGetTransitRouterRouteEntriesEntryOutput

func (i GetTransitRouterRouteEntriesEntryArgs) ToGetTransitRouterRouteEntriesEntryOutput() GetTransitRouterRouteEntriesEntryOutput

func (GetTransitRouterRouteEntriesEntryArgs) ToGetTransitRouterRouteEntriesEntryOutputWithContext

func (i GetTransitRouterRouteEntriesEntryArgs) ToGetTransitRouterRouteEntriesEntryOutputWithContext(ctx context.Context) GetTransitRouterRouteEntriesEntryOutput

type GetTransitRouterRouteEntriesEntryArray

type GetTransitRouterRouteEntriesEntryArray []GetTransitRouterRouteEntriesEntryInput

func (GetTransitRouterRouteEntriesEntryArray) ElementType

func (GetTransitRouterRouteEntriesEntryArray) ToGetTransitRouterRouteEntriesEntryArrayOutput

func (i GetTransitRouterRouteEntriesEntryArray) ToGetTransitRouterRouteEntriesEntryArrayOutput() GetTransitRouterRouteEntriesEntryArrayOutput

func (GetTransitRouterRouteEntriesEntryArray) ToGetTransitRouterRouteEntriesEntryArrayOutputWithContext

func (i GetTransitRouterRouteEntriesEntryArray) ToGetTransitRouterRouteEntriesEntryArrayOutputWithContext(ctx context.Context) GetTransitRouterRouteEntriesEntryArrayOutput

type GetTransitRouterRouteEntriesEntryArrayInput

type GetTransitRouterRouteEntriesEntryArrayInput interface {
	pulumi.Input

	ToGetTransitRouterRouteEntriesEntryArrayOutput() GetTransitRouterRouteEntriesEntryArrayOutput
	ToGetTransitRouterRouteEntriesEntryArrayOutputWithContext(context.Context) GetTransitRouterRouteEntriesEntryArrayOutput
}

GetTransitRouterRouteEntriesEntryArrayInput is an input type that accepts GetTransitRouterRouteEntriesEntryArray and GetTransitRouterRouteEntriesEntryArrayOutput values. You can construct a concrete instance of `GetTransitRouterRouteEntriesEntryArrayInput` via:

GetTransitRouterRouteEntriesEntryArray{ GetTransitRouterRouteEntriesEntryArgs{...} }

type GetTransitRouterRouteEntriesEntryArrayOutput

type GetTransitRouterRouteEntriesEntryArrayOutput struct{ *pulumi.OutputState }

func (GetTransitRouterRouteEntriesEntryArrayOutput) ElementType

func (GetTransitRouterRouteEntriesEntryArrayOutput) Index

func (GetTransitRouterRouteEntriesEntryArrayOutput) ToGetTransitRouterRouteEntriesEntryArrayOutput

func (o GetTransitRouterRouteEntriesEntryArrayOutput) ToGetTransitRouterRouteEntriesEntryArrayOutput() GetTransitRouterRouteEntriesEntryArrayOutput

func (GetTransitRouterRouteEntriesEntryArrayOutput) ToGetTransitRouterRouteEntriesEntryArrayOutputWithContext

func (o GetTransitRouterRouteEntriesEntryArrayOutput) ToGetTransitRouterRouteEntriesEntryArrayOutputWithContext(ctx context.Context) GetTransitRouterRouteEntriesEntryArrayOutput

type GetTransitRouterRouteEntriesEntryInput

type GetTransitRouterRouteEntriesEntryInput interface {
	pulumi.Input

	ToGetTransitRouterRouteEntriesEntryOutput() GetTransitRouterRouteEntriesEntryOutput
	ToGetTransitRouterRouteEntriesEntryOutputWithContext(context.Context) GetTransitRouterRouteEntriesEntryOutput
}

GetTransitRouterRouteEntriesEntryInput is an input type that accepts GetTransitRouterRouteEntriesEntryArgs and GetTransitRouterRouteEntriesEntryOutput values. You can construct a concrete instance of `GetTransitRouterRouteEntriesEntryInput` via:

GetTransitRouterRouteEntriesEntryArgs{...}

type GetTransitRouterRouteEntriesEntryOutput

type GetTransitRouterRouteEntriesEntryOutput struct{ *pulumi.OutputState }

func (GetTransitRouterRouteEntriesEntryOutput) ElementType

func (GetTransitRouterRouteEntriesEntryOutput) Id

func (GetTransitRouterRouteEntriesEntryOutput) Status

func (GetTransitRouterRouteEntriesEntryOutput) ToGetTransitRouterRouteEntriesEntryOutput

func (o GetTransitRouterRouteEntriesEntryOutput) ToGetTransitRouterRouteEntriesEntryOutput() GetTransitRouterRouteEntriesEntryOutput

func (GetTransitRouterRouteEntriesEntryOutput) ToGetTransitRouterRouteEntriesEntryOutputWithContext

func (o GetTransitRouterRouteEntriesEntryOutput) ToGetTransitRouterRouteEntriesEntryOutputWithContext(ctx context.Context) GetTransitRouterRouteEntriesEntryOutput

func (GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryDescription

func (o GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryDescription() pulumi.StringOutput

func (GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryDestinationCidrBlock

func (o GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryDestinationCidrBlock() pulumi.StringOutput

The target network segment of the route entry.

func (GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryId

func (o GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryId() pulumi.StringOutput

func (GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryName

func (o GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryName() pulumi.StringOutput

func (GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryNextHopId

func (o GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryNextHopId() pulumi.StringOutput

ID of the next hop.

func (GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryNextHopType

func (o GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryNextHopType() pulumi.StringOutput

Type of the next hop.

func (GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryType

func (o GetTransitRouterRouteEntriesEntryOutput) TransitRouterRouteEntryType() pulumi.StringOutput

Type of the route entry.

type GetTransitRouterRouteEntriesOutputArgs

type GetTransitRouterRouteEntriesOutputArgs struct {
	// A list of CEN Transit Router Route Entry IDs.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	NameRegex  pulumi.StringPtrInput   `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	Status     pulumi.StringPtrInput   `pulumi:"status"`
	// A list of ID of the cen transit router route entry.
	TransitRouterRouteEntryIds pulumi.StringArrayInput `pulumi:"transitRouterRouteEntryIds"`
	// A list of name of the cen transit router route entry.
	TransitRouterRouteEntryNames pulumi.StringArrayInput `pulumi:"transitRouterRouteEntryNames"`
	// The status of the resource.Valid values `Creating`, `Active` and `Deleting`.
	TransitRouterRouteEntryStatus pulumi.StringPtrInput `pulumi:"transitRouterRouteEntryStatus"`
	// ID of the CEN Transit Router Route Table.
	TransitRouterRouteTableId pulumi.StringInput `pulumi:"transitRouterRouteTableId"`
}

A collection of arguments for invoking getTransitRouterRouteEntries.

func (GetTransitRouterRouteEntriesOutputArgs) ElementType

type GetTransitRouterRouteEntriesResult

type GetTransitRouterRouteEntriesResult struct {
	// A list of CEN Route Entries. Each element contains the following attributes:
	Entries []GetTransitRouterRouteEntriesEntry `pulumi:"entries"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN Transit Router Route Entry IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of CEN Transit Router Route Entry Names.
	Names                        []string `pulumi:"names"`
	OutputFile                   *string  `pulumi:"outputFile"`
	Status                       *string  `pulumi:"status"`
	TransitRouterRouteEntryIds   []string `pulumi:"transitRouterRouteEntryIds"`
	TransitRouterRouteEntryNames []string `pulumi:"transitRouterRouteEntryNames"`
	// The status of the route entry in CEN.
	TransitRouterRouteEntryStatus *string `pulumi:"transitRouterRouteEntryStatus"`
	TransitRouterRouteTableId     string  `pulumi:"transitRouterRouteTableId"`
}

A collection of values returned by getTransitRouterRouteEntries.

func GetTransitRouterRouteEntries

func GetTransitRouterRouteEntries(ctx *pulumi.Context, args *GetTransitRouterRouteEntriesArgs, opts ...pulumi.InvokeOption) (*GetTransitRouterRouteEntriesResult, error)

This data source provides CEN Transit Router Route Entries available to the user.[What is Cen Transit Router Route Entries](https://help.aliyun.com/document_detail/260941.html)

> **NOTE:** Available in 1.126.0+

type GetTransitRouterRouteEntriesResultOutput

type GetTransitRouterRouteEntriesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTransitRouterRouteEntries.

func (GetTransitRouterRouteEntriesResultOutput) ElementType

func (GetTransitRouterRouteEntriesResultOutput) Entries

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

func (GetTransitRouterRouteEntriesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTransitRouterRouteEntriesResultOutput) Ids

A list of CEN Transit Router Route Entry IDs.

func (GetTransitRouterRouteEntriesResultOutput) NameRegex

func (GetTransitRouterRouteEntriesResultOutput) Names

A list of CEN Transit Router Route Entry Names.

func (GetTransitRouterRouteEntriesResultOutput) OutputFile

func (GetTransitRouterRouteEntriesResultOutput) Status

func (GetTransitRouterRouteEntriesResultOutput) ToGetTransitRouterRouteEntriesResultOutput

func (o GetTransitRouterRouteEntriesResultOutput) ToGetTransitRouterRouteEntriesResultOutput() GetTransitRouterRouteEntriesResultOutput

func (GetTransitRouterRouteEntriesResultOutput) ToGetTransitRouterRouteEntriesResultOutputWithContext

func (o GetTransitRouterRouteEntriesResultOutput) ToGetTransitRouterRouteEntriesResultOutputWithContext(ctx context.Context) GetTransitRouterRouteEntriesResultOutput

func (GetTransitRouterRouteEntriesResultOutput) TransitRouterRouteEntryIds

func (o GetTransitRouterRouteEntriesResultOutput) TransitRouterRouteEntryIds() pulumi.StringArrayOutput

func (GetTransitRouterRouteEntriesResultOutput) TransitRouterRouteEntryNames

func (o GetTransitRouterRouteEntriesResultOutput) TransitRouterRouteEntryNames() pulumi.StringArrayOutput

func (GetTransitRouterRouteEntriesResultOutput) TransitRouterRouteEntryStatus

func (o GetTransitRouterRouteEntriesResultOutput) TransitRouterRouteEntryStatus() pulumi.StringPtrOutput

The status of the route entry in CEN.

func (GetTransitRouterRouteEntriesResultOutput) TransitRouterRouteTableId

func (o GetTransitRouterRouteEntriesResultOutput) TransitRouterRouteTableId() pulumi.StringOutput

type GetTransitRouterRouteTableAssociationsArgs

type GetTransitRouterRouteTableAssociationsArgs struct {
	// A list of CEN Transit Router Route Table Association IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the route table, including `Active`, `Associating`, `Dissociating`.
	Status *string `pulumi:"status"`
	// ID of the route table of the VPC or VBR.
	TransitRouterRouteTableId string `pulumi:"transitRouterRouteTableId"`
}

A collection of arguments for invoking getTransitRouterRouteTableAssociations.

type GetTransitRouterRouteTableAssociationsAssociation

type GetTransitRouterRouteTableAssociationsAssociation struct {
	Id string `pulumi:"id"`
	// ID of the transit router route table association.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource.
	ResourceType string `pulumi:"resourceType"`
	// The status of the route table, including `Active`, `Associating`, `Dissociating`.
	Status string `pulumi:"status"`
	// ID of the cen transit router attachment.
	TransitRouterAttachmentId string `pulumi:"transitRouterAttachmentId"`
}

type GetTransitRouterRouteTableAssociationsAssociationArgs

type GetTransitRouterRouteTableAssociationsAssociationArgs struct {
	Id pulumi.StringInput `pulumi:"id"`
	// ID of the transit router route table association.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// Type of the resource.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// The status of the route table, including `Active`, `Associating`, `Dissociating`.
	Status pulumi.StringInput `pulumi:"status"`
	// ID of the cen transit router attachment.
	TransitRouterAttachmentId pulumi.StringInput `pulumi:"transitRouterAttachmentId"`
}

func (GetTransitRouterRouteTableAssociationsAssociationArgs) ElementType

func (GetTransitRouterRouteTableAssociationsAssociationArgs) ToGetTransitRouterRouteTableAssociationsAssociationOutput

func (i GetTransitRouterRouteTableAssociationsAssociationArgs) ToGetTransitRouterRouteTableAssociationsAssociationOutput() GetTransitRouterRouteTableAssociationsAssociationOutput

func (GetTransitRouterRouteTableAssociationsAssociationArgs) ToGetTransitRouterRouteTableAssociationsAssociationOutputWithContext

func (i GetTransitRouterRouteTableAssociationsAssociationArgs) ToGetTransitRouterRouteTableAssociationsAssociationOutputWithContext(ctx context.Context) GetTransitRouterRouteTableAssociationsAssociationOutput

type GetTransitRouterRouteTableAssociationsAssociationArray

type GetTransitRouterRouteTableAssociationsAssociationArray []GetTransitRouterRouteTableAssociationsAssociationInput

func (GetTransitRouterRouteTableAssociationsAssociationArray) ElementType

func (GetTransitRouterRouteTableAssociationsAssociationArray) ToGetTransitRouterRouteTableAssociationsAssociationArrayOutput

func (i GetTransitRouterRouteTableAssociationsAssociationArray) ToGetTransitRouterRouteTableAssociationsAssociationArrayOutput() GetTransitRouterRouteTableAssociationsAssociationArrayOutput

func (GetTransitRouterRouteTableAssociationsAssociationArray) ToGetTransitRouterRouteTableAssociationsAssociationArrayOutputWithContext

func (i GetTransitRouterRouteTableAssociationsAssociationArray) ToGetTransitRouterRouteTableAssociationsAssociationArrayOutputWithContext(ctx context.Context) GetTransitRouterRouteTableAssociationsAssociationArrayOutput

type GetTransitRouterRouteTableAssociationsAssociationArrayInput

type GetTransitRouterRouteTableAssociationsAssociationArrayInput interface {
	pulumi.Input

	ToGetTransitRouterRouteTableAssociationsAssociationArrayOutput() GetTransitRouterRouteTableAssociationsAssociationArrayOutput
	ToGetTransitRouterRouteTableAssociationsAssociationArrayOutputWithContext(context.Context) GetTransitRouterRouteTableAssociationsAssociationArrayOutput
}

GetTransitRouterRouteTableAssociationsAssociationArrayInput is an input type that accepts GetTransitRouterRouteTableAssociationsAssociationArray and GetTransitRouterRouteTableAssociationsAssociationArrayOutput values. You can construct a concrete instance of `GetTransitRouterRouteTableAssociationsAssociationArrayInput` via:

GetTransitRouterRouteTableAssociationsAssociationArray{ GetTransitRouterRouteTableAssociationsAssociationArgs{...} }

type GetTransitRouterRouteTableAssociationsAssociationArrayOutput

type GetTransitRouterRouteTableAssociationsAssociationArrayOutput struct{ *pulumi.OutputState }

func (GetTransitRouterRouteTableAssociationsAssociationArrayOutput) ElementType

func (GetTransitRouterRouteTableAssociationsAssociationArrayOutput) Index

func (GetTransitRouterRouteTableAssociationsAssociationArrayOutput) ToGetTransitRouterRouteTableAssociationsAssociationArrayOutput

func (GetTransitRouterRouteTableAssociationsAssociationArrayOutput) ToGetTransitRouterRouteTableAssociationsAssociationArrayOutputWithContext

func (o GetTransitRouterRouteTableAssociationsAssociationArrayOutput) ToGetTransitRouterRouteTableAssociationsAssociationArrayOutputWithContext(ctx context.Context) GetTransitRouterRouteTableAssociationsAssociationArrayOutput

type GetTransitRouterRouteTableAssociationsAssociationInput

type GetTransitRouterRouteTableAssociationsAssociationInput interface {
	pulumi.Input

	ToGetTransitRouterRouteTableAssociationsAssociationOutput() GetTransitRouterRouteTableAssociationsAssociationOutput
	ToGetTransitRouterRouteTableAssociationsAssociationOutputWithContext(context.Context) GetTransitRouterRouteTableAssociationsAssociationOutput
}

GetTransitRouterRouteTableAssociationsAssociationInput is an input type that accepts GetTransitRouterRouteTableAssociationsAssociationArgs and GetTransitRouterRouteTableAssociationsAssociationOutput values. You can construct a concrete instance of `GetTransitRouterRouteTableAssociationsAssociationInput` via:

GetTransitRouterRouteTableAssociationsAssociationArgs{...}

type GetTransitRouterRouteTableAssociationsAssociationOutput

type GetTransitRouterRouteTableAssociationsAssociationOutput struct{ *pulumi.OutputState }

func (GetTransitRouterRouteTableAssociationsAssociationOutput) ElementType

func (GetTransitRouterRouteTableAssociationsAssociationOutput) Id

func (GetTransitRouterRouteTableAssociationsAssociationOutput) ResourceId

ID of the transit router route table association.

func (GetTransitRouterRouteTableAssociationsAssociationOutput) ResourceType

Type of the resource.

func (GetTransitRouterRouteTableAssociationsAssociationOutput) Status

The status of the route table, including `Active`, `Associating`, `Dissociating`.

func (GetTransitRouterRouteTableAssociationsAssociationOutput) ToGetTransitRouterRouteTableAssociationsAssociationOutput

func (GetTransitRouterRouteTableAssociationsAssociationOutput) ToGetTransitRouterRouteTableAssociationsAssociationOutputWithContext

func (o GetTransitRouterRouteTableAssociationsAssociationOutput) ToGetTransitRouterRouteTableAssociationsAssociationOutputWithContext(ctx context.Context) GetTransitRouterRouteTableAssociationsAssociationOutput

func (GetTransitRouterRouteTableAssociationsAssociationOutput) TransitRouterAttachmentId

ID of the cen transit router attachment.

type GetTransitRouterRouteTableAssociationsOutputArgs

type GetTransitRouterRouteTableAssociationsOutputArgs struct {
	// A list of CEN Transit Router Route Table Association IDs.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	// The status of the route table, including `Active`, `Associating`, `Dissociating`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// ID of the route table of the VPC or VBR.
	TransitRouterRouteTableId pulumi.StringInput `pulumi:"transitRouterRouteTableId"`
}

A collection of arguments for invoking getTransitRouterRouteTableAssociations.

func (GetTransitRouterRouteTableAssociationsOutputArgs) ElementType

type GetTransitRouterRouteTableAssociationsResult

type GetTransitRouterRouteTableAssociationsResult struct {
	// A list of CEN Transit Router Route Table Associations. Each element contains the following attributes:
	Associations []GetTransitRouterRouteTableAssociationsAssociation `pulumi:"associations"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN Transit Router Route Table Association IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the route table.
	Status *string `pulumi:"status"`
	// ID of the transit router route table.
	TransitRouterRouteTableId string `pulumi:"transitRouterRouteTableId"`
}

A collection of values returned by getTransitRouterRouteTableAssociations.

func GetTransitRouterRouteTableAssociations

This data source provides CEN Transit Router Route Table Associations available to the user.[What is Cen Transit Router Route Table Associations](https://help.aliyun.com/document_detail/261243.html)

> **NOTE:** Available in 1.126.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := cen.GetTransitRouterRouteTableAssociations(ctx, &cen.GetTransitRouterRouteTableAssociationsArgs{
			TransitRouterRouteTableId: "rtb-id1",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType", _default.Associations[0].ResourceType)
		return nil
	})
}

```

type GetTransitRouterRouteTableAssociationsResultOutput

type GetTransitRouterRouteTableAssociationsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTransitRouterRouteTableAssociations.

func (GetTransitRouterRouteTableAssociationsResultOutput) Associations

A list of CEN Transit Router Route Table Associations. Each element contains the following attributes:

func (GetTransitRouterRouteTableAssociationsResultOutput) ElementType

func (GetTransitRouterRouteTableAssociationsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTransitRouterRouteTableAssociationsResultOutput) Ids

A list of CEN Transit Router Route Table Association IDs.

func (GetTransitRouterRouteTableAssociationsResultOutput) OutputFile

func (GetTransitRouterRouteTableAssociationsResultOutput) Status

The status of the route table.

func (GetTransitRouterRouteTableAssociationsResultOutput) ToGetTransitRouterRouteTableAssociationsResultOutput

func (o GetTransitRouterRouteTableAssociationsResultOutput) ToGetTransitRouterRouteTableAssociationsResultOutput() GetTransitRouterRouteTableAssociationsResultOutput

func (GetTransitRouterRouteTableAssociationsResultOutput) ToGetTransitRouterRouteTableAssociationsResultOutputWithContext

func (o GetTransitRouterRouteTableAssociationsResultOutput) ToGetTransitRouterRouteTableAssociationsResultOutputWithContext(ctx context.Context) GetTransitRouterRouteTableAssociationsResultOutput

func (GetTransitRouterRouteTableAssociationsResultOutput) TransitRouterRouteTableId

ID of the transit router route table.

type GetTransitRouterRouteTablePropagationsArgs

type GetTransitRouterRouteTablePropagationsArgs struct {
	// A list of CEN Transit Router Route Table Association IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the route table, including `Active`, `Enabling`, `Disabling`, `Deleted`.
	Status *string `pulumi:"status"`
	// ID of the route table of the VPC or VBR.
	TransitRouterRouteTableId string `pulumi:"transitRouterRouteTableId"`
}

A collection of arguments for invoking getTransitRouterRouteTablePropagations.

type GetTransitRouterRouteTablePropagationsOutputArgs

type GetTransitRouterRouteTablePropagationsOutputArgs struct {
	// A list of CEN Transit Router Route Table Association IDs.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	// The status of the route table, including `Active`, `Enabling`, `Disabling`, `Deleted`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// ID of the route table of the VPC or VBR.
	TransitRouterRouteTableId pulumi.StringInput `pulumi:"transitRouterRouteTableId"`
}

A collection of arguments for invoking getTransitRouterRouteTablePropagations.

func (GetTransitRouterRouteTablePropagationsOutputArgs) ElementType

type GetTransitRouterRouteTablePropagationsPropagation

type GetTransitRouterRouteTablePropagationsPropagation struct {
	Id string `pulumi:"id"`
	// ID of the transit router route table association.
	ResourceId string `pulumi:"resourceId"`
	// Type of the resource.
	ResourceType string `pulumi:"resourceType"`
	// The status of the route table, including `Active`, `Enabling`, `Disabling`, `Deleted`.
	Status string `pulumi:"status"`
	// ID of the cen transit router attachment.
	TransitRouterAttachmentId string `pulumi:"transitRouterAttachmentId"`
}

type GetTransitRouterRouteTablePropagationsPropagationArgs

type GetTransitRouterRouteTablePropagationsPropagationArgs struct {
	Id pulumi.StringInput `pulumi:"id"`
	// ID of the transit router route table association.
	ResourceId pulumi.StringInput `pulumi:"resourceId"`
	// Type of the resource.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// The status of the route table, including `Active`, `Enabling`, `Disabling`, `Deleted`.
	Status pulumi.StringInput `pulumi:"status"`
	// ID of the cen transit router attachment.
	TransitRouterAttachmentId pulumi.StringInput `pulumi:"transitRouterAttachmentId"`
}

func (GetTransitRouterRouteTablePropagationsPropagationArgs) ElementType

func (GetTransitRouterRouteTablePropagationsPropagationArgs) ToGetTransitRouterRouteTablePropagationsPropagationOutput

func (i GetTransitRouterRouteTablePropagationsPropagationArgs) ToGetTransitRouterRouteTablePropagationsPropagationOutput() GetTransitRouterRouteTablePropagationsPropagationOutput

func (GetTransitRouterRouteTablePropagationsPropagationArgs) ToGetTransitRouterRouteTablePropagationsPropagationOutputWithContext

func (i GetTransitRouterRouteTablePropagationsPropagationArgs) ToGetTransitRouterRouteTablePropagationsPropagationOutputWithContext(ctx context.Context) GetTransitRouterRouteTablePropagationsPropagationOutput

type GetTransitRouterRouteTablePropagationsPropagationArray

type GetTransitRouterRouteTablePropagationsPropagationArray []GetTransitRouterRouteTablePropagationsPropagationInput

func (GetTransitRouterRouteTablePropagationsPropagationArray) ElementType

func (GetTransitRouterRouteTablePropagationsPropagationArray) ToGetTransitRouterRouteTablePropagationsPropagationArrayOutput

func (i GetTransitRouterRouteTablePropagationsPropagationArray) ToGetTransitRouterRouteTablePropagationsPropagationArrayOutput() GetTransitRouterRouteTablePropagationsPropagationArrayOutput

func (GetTransitRouterRouteTablePropagationsPropagationArray) ToGetTransitRouterRouteTablePropagationsPropagationArrayOutputWithContext

func (i GetTransitRouterRouteTablePropagationsPropagationArray) ToGetTransitRouterRouteTablePropagationsPropagationArrayOutputWithContext(ctx context.Context) GetTransitRouterRouteTablePropagationsPropagationArrayOutput

type GetTransitRouterRouteTablePropagationsPropagationArrayInput

type GetTransitRouterRouteTablePropagationsPropagationArrayInput interface {
	pulumi.Input

	ToGetTransitRouterRouteTablePropagationsPropagationArrayOutput() GetTransitRouterRouteTablePropagationsPropagationArrayOutput
	ToGetTransitRouterRouteTablePropagationsPropagationArrayOutputWithContext(context.Context) GetTransitRouterRouteTablePropagationsPropagationArrayOutput
}

GetTransitRouterRouteTablePropagationsPropagationArrayInput is an input type that accepts GetTransitRouterRouteTablePropagationsPropagationArray and GetTransitRouterRouteTablePropagationsPropagationArrayOutput values. You can construct a concrete instance of `GetTransitRouterRouteTablePropagationsPropagationArrayInput` via:

GetTransitRouterRouteTablePropagationsPropagationArray{ GetTransitRouterRouteTablePropagationsPropagationArgs{...} }

type GetTransitRouterRouteTablePropagationsPropagationArrayOutput

type GetTransitRouterRouteTablePropagationsPropagationArrayOutput struct{ *pulumi.OutputState }

func (GetTransitRouterRouteTablePropagationsPropagationArrayOutput) ElementType

func (GetTransitRouterRouteTablePropagationsPropagationArrayOutput) Index

func (GetTransitRouterRouteTablePropagationsPropagationArrayOutput) ToGetTransitRouterRouteTablePropagationsPropagationArrayOutput

func (GetTransitRouterRouteTablePropagationsPropagationArrayOutput) ToGetTransitRouterRouteTablePropagationsPropagationArrayOutputWithContext

func (o GetTransitRouterRouteTablePropagationsPropagationArrayOutput) ToGetTransitRouterRouteTablePropagationsPropagationArrayOutputWithContext(ctx context.Context) GetTransitRouterRouteTablePropagationsPropagationArrayOutput

type GetTransitRouterRouteTablePropagationsPropagationInput

type GetTransitRouterRouteTablePropagationsPropagationInput interface {
	pulumi.Input

	ToGetTransitRouterRouteTablePropagationsPropagationOutput() GetTransitRouterRouteTablePropagationsPropagationOutput
	ToGetTransitRouterRouteTablePropagationsPropagationOutputWithContext(context.Context) GetTransitRouterRouteTablePropagationsPropagationOutput
}

GetTransitRouterRouteTablePropagationsPropagationInput is an input type that accepts GetTransitRouterRouteTablePropagationsPropagationArgs and GetTransitRouterRouteTablePropagationsPropagationOutput values. You can construct a concrete instance of `GetTransitRouterRouteTablePropagationsPropagationInput` via:

GetTransitRouterRouteTablePropagationsPropagationArgs{...}

type GetTransitRouterRouteTablePropagationsPropagationOutput

type GetTransitRouterRouteTablePropagationsPropagationOutput struct{ *pulumi.OutputState }

func (GetTransitRouterRouteTablePropagationsPropagationOutput) ElementType

func (GetTransitRouterRouteTablePropagationsPropagationOutput) Id

func (GetTransitRouterRouteTablePropagationsPropagationOutput) ResourceId

ID of the transit router route table association.

func (GetTransitRouterRouteTablePropagationsPropagationOutput) ResourceType

Type of the resource.

func (GetTransitRouterRouteTablePropagationsPropagationOutput) Status

The status of the route table, including `Active`, `Enabling`, `Disabling`, `Deleted`.

func (GetTransitRouterRouteTablePropagationsPropagationOutput) ToGetTransitRouterRouteTablePropagationsPropagationOutput

func (GetTransitRouterRouteTablePropagationsPropagationOutput) ToGetTransitRouterRouteTablePropagationsPropagationOutputWithContext

func (o GetTransitRouterRouteTablePropagationsPropagationOutput) ToGetTransitRouterRouteTablePropagationsPropagationOutputWithContext(ctx context.Context) GetTransitRouterRouteTablePropagationsPropagationOutput

func (GetTransitRouterRouteTablePropagationsPropagationOutput) TransitRouterAttachmentId

ID of the cen transit router attachment.

type GetTransitRouterRouteTablePropagationsResult

type GetTransitRouterRouteTablePropagationsResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN Transit Router Route Table Association IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// A list of CEN Transit Router Route Table Propagations. Each element contains the following attributes:
	Propagations []GetTransitRouterRouteTablePropagationsPropagation `pulumi:"propagations"`
	// The status of the route table.
	Status *string `pulumi:"status"`
	// ID of the transit router route table.
	TransitRouterRouteTableId string `pulumi:"transitRouterRouteTableId"`
}

A collection of values returned by getTransitRouterRouteTablePropagations.

func GetTransitRouterRouteTablePropagations

This data source provides CEN Transit Router Route Table Propagations available to the user.[What is Cen Transit Router Route Table Propagations](https://help.aliyun.com/document_detail/261245.html)

> **NOTE:** Available in 1.126.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := cen.GetTransitRouterRouteTablePropagations(ctx, &cen.GetTransitRouterRouteTablePropagationsArgs{
			TransitRouterRouteTableId: "rtb-id1",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstTransitRouterPeerAttachmentsTransitRouterAttachmentResourceType", _default.Propagations[0].ResourceType)
		return nil
	})
}

```

type GetTransitRouterRouteTablePropagationsResultOutput

type GetTransitRouterRouteTablePropagationsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTransitRouterRouteTablePropagations.

func (GetTransitRouterRouteTablePropagationsResultOutput) ElementType

func (GetTransitRouterRouteTablePropagationsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTransitRouterRouteTablePropagationsResultOutput) Ids

A list of CEN Transit Router Route Table Association IDs.

func (GetTransitRouterRouteTablePropagationsResultOutput) OutputFile

func (GetTransitRouterRouteTablePropagationsResultOutput) Propagations

A list of CEN Transit Router Route Table Propagations. Each element contains the following attributes:

func (GetTransitRouterRouteTablePropagationsResultOutput) Status

The status of the route table.

func (GetTransitRouterRouteTablePropagationsResultOutput) ToGetTransitRouterRouteTablePropagationsResultOutput

func (o GetTransitRouterRouteTablePropagationsResultOutput) ToGetTransitRouterRouteTablePropagationsResultOutput() GetTransitRouterRouteTablePropagationsResultOutput

func (GetTransitRouterRouteTablePropagationsResultOutput) ToGetTransitRouterRouteTablePropagationsResultOutputWithContext

func (o GetTransitRouterRouteTablePropagationsResultOutput) ToGetTransitRouterRouteTablePropagationsResultOutputWithContext(ctx context.Context) GetTransitRouterRouteTablePropagationsResultOutput

func (GetTransitRouterRouteTablePropagationsResultOutput) TransitRouterRouteTableId

ID of the transit router route table.

type GetTransitRouterRouteTablesArgs

type GetTransitRouterRouteTablesArgs struct {
	// A list of CEN Transit Router Route Table IDs.
	Ids        []string `pulumi:"ids"`
	NameRegex  *string  `pulumi:"nameRegex"`
	OutputFile *string  `pulumi:"outputFile"`
	Status     *string  `pulumi:"status"`
	// ID of the CEN Transit Router Route Table.
	TransitRouterId string `pulumi:"transitRouterId"`
	// A list of ID of the CEN Transit Router Route Table.
	TransitRouterRouteTableIds []string `pulumi:"transitRouterRouteTableIds"`
	// A list of name of the CEN Transit Router Route Table.
	TransitRouterRouteTableNames []string `pulumi:"transitRouterRouteTableNames"`
	// The status of the transit router route table to query.
	TransitRouterRouteTableStatus *string `pulumi:"transitRouterRouteTableStatus"`
}

A collection of arguments for invoking getTransitRouterRouteTables.

type GetTransitRouterRouteTablesOutputArgs

type GetTransitRouterRouteTablesOutputArgs struct {
	// A list of CEN Transit Router Route Table IDs.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	NameRegex  pulumi.StringPtrInput   `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	Status     pulumi.StringPtrInput   `pulumi:"status"`
	// ID of the CEN Transit Router Route Table.
	TransitRouterId pulumi.StringInput `pulumi:"transitRouterId"`
	// A list of ID of the CEN Transit Router Route Table.
	TransitRouterRouteTableIds pulumi.StringArrayInput `pulumi:"transitRouterRouteTableIds"`
	// A list of name of the CEN Transit Router Route Table.
	TransitRouterRouteTableNames pulumi.StringArrayInput `pulumi:"transitRouterRouteTableNames"`
	// The status of the transit router route table to query.
	TransitRouterRouteTableStatus pulumi.StringPtrInput `pulumi:"transitRouterRouteTableStatus"`
}

A collection of arguments for invoking getTransitRouterRouteTables.

func (GetTransitRouterRouteTablesOutputArgs) ElementType

type GetTransitRouterRouteTablesResult

type GetTransitRouterRouteTablesResult struct {
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN Transit Router Route Table IDs.
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of name of CEN Transit Router Route Tables.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	Status     *string  `pulumi:"status"`
	// A list of CEN Route Entries. Each element contains the following attributes:
	Tables                       []GetTransitRouterRouteTablesTable `pulumi:"tables"`
	TransitRouterId              string                             `pulumi:"transitRouterId"`
	TransitRouterRouteTableIds   []string                           `pulumi:"transitRouterRouteTableIds"`
	TransitRouterRouteTableNames []string                           `pulumi:"transitRouterRouteTableNames"`
	// The status of the route table.
	TransitRouterRouteTableStatus *string `pulumi:"transitRouterRouteTableStatus"`
}

A collection of values returned by getTransitRouterRouteTables.

func GetTransitRouterRouteTables

func GetTransitRouterRouteTables(ctx *pulumi.Context, args *GetTransitRouterRouteTablesArgs, opts ...pulumi.InvokeOption) (*GetTransitRouterRouteTablesResult, error)

This data source provides CEN Transit Router Route Tables available to the user.[What is Cen Transit Router Route Tables](https://help.aliyun.com/document_detail/261237.html)

> **NOTE:** Available in 1.126.0+

type GetTransitRouterRouteTablesResultOutput

type GetTransitRouterRouteTablesResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTransitRouterRouteTables.

func (GetTransitRouterRouteTablesResultOutput) ElementType

func (GetTransitRouterRouteTablesResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTransitRouterRouteTablesResultOutput) Ids

A list of CEN Transit Router Route Table IDs.

func (GetTransitRouterRouteTablesResultOutput) NameRegex

func (GetTransitRouterRouteTablesResultOutput) Names

A list of name of CEN Transit Router Route Tables.

func (GetTransitRouterRouteTablesResultOutput) OutputFile

func (GetTransitRouterRouteTablesResultOutput) Status

func (GetTransitRouterRouteTablesResultOutput) Tables

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

func (GetTransitRouterRouteTablesResultOutput) ToGetTransitRouterRouteTablesResultOutput

func (o GetTransitRouterRouteTablesResultOutput) ToGetTransitRouterRouteTablesResultOutput() GetTransitRouterRouteTablesResultOutput

func (GetTransitRouterRouteTablesResultOutput) ToGetTransitRouterRouteTablesResultOutputWithContext

func (o GetTransitRouterRouteTablesResultOutput) ToGetTransitRouterRouteTablesResultOutputWithContext(ctx context.Context) GetTransitRouterRouteTablesResultOutput

func (GetTransitRouterRouteTablesResultOutput) TransitRouterId

func (GetTransitRouterRouteTablesResultOutput) TransitRouterRouteTableIds

func (o GetTransitRouterRouteTablesResultOutput) TransitRouterRouteTableIds() pulumi.StringArrayOutput

func (GetTransitRouterRouteTablesResultOutput) TransitRouterRouteTableNames

func (o GetTransitRouterRouteTablesResultOutput) TransitRouterRouteTableNames() pulumi.StringArrayOutput

func (GetTransitRouterRouteTablesResultOutput) TransitRouterRouteTableStatus

func (o GetTransitRouterRouteTablesResultOutput) TransitRouterRouteTableStatus() pulumi.StringPtrOutput

The status of the route table.

type GetTransitRouterRouteTablesTable

type GetTransitRouterRouteTablesTable struct {
	// ID of resource.
	Id     string `pulumi:"id"`
	Status string `pulumi:"status"`
	// The description of the transit router route table.
	TransitRouterRouteTableDescription string `pulumi:"transitRouterRouteTableDescription"`
	// ID of the trabsit router route table.
	TransitRouterRouteTableId string `pulumi:"transitRouterRouteTableId"`
	// Name of the transit router route table.
	TransitRouterRouteTableName string `pulumi:"transitRouterRouteTableName"`
	// The type of the transit router route table to query. Valid values `Creating`, `Active` and `Deleting`..
	TransitRouterRouteTableType string `pulumi:"transitRouterRouteTableType"`
}

type GetTransitRouterRouteTablesTableArgs

type GetTransitRouterRouteTablesTableArgs struct {
	// ID of resource.
	Id     pulumi.StringInput `pulumi:"id"`
	Status pulumi.StringInput `pulumi:"status"`
	// The description of the transit router route table.
	TransitRouterRouteTableDescription pulumi.StringInput `pulumi:"transitRouterRouteTableDescription"`
	// ID of the trabsit router route table.
	TransitRouterRouteTableId pulumi.StringInput `pulumi:"transitRouterRouteTableId"`
	// Name of the transit router route table.
	TransitRouterRouteTableName pulumi.StringInput `pulumi:"transitRouterRouteTableName"`
	// The type of the transit router route table to query. Valid values `Creating`, `Active` and `Deleting`..
	TransitRouterRouteTableType pulumi.StringInput `pulumi:"transitRouterRouteTableType"`
}

func (GetTransitRouterRouteTablesTableArgs) ElementType

func (GetTransitRouterRouteTablesTableArgs) ToGetTransitRouterRouteTablesTableOutput

func (i GetTransitRouterRouteTablesTableArgs) ToGetTransitRouterRouteTablesTableOutput() GetTransitRouterRouteTablesTableOutput

func (GetTransitRouterRouteTablesTableArgs) ToGetTransitRouterRouteTablesTableOutputWithContext

func (i GetTransitRouterRouteTablesTableArgs) ToGetTransitRouterRouteTablesTableOutputWithContext(ctx context.Context) GetTransitRouterRouteTablesTableOutput

type GetTransitRouterRouteTablesTableArray

type GetTransitRouterRouteTablesTableArray []GetTransitRouterRouteTablesTableInput

func (GetTransitRouterRouteTablesTableArray) ElementType

func (GetTransitRouterRouteTablesTableArray) ToGetTransitRouterRouteTablesTableArrayOutput

func (i GetTransitRouterRouteTablesTableArray) ToGetTransitRouterRouteTablesTableArrayOutput() GetTransitRouterRouteTablesTableArrayOutput

func (GetTransitRouterRouteTablesTableArray) ToGetTransitRouterRouteTablesTableArrayOutputWithContext

func (i GetTransitRouterRouteTablesTableArray) ToGetTransitRouterRouteTablesTableArrayOutputWithContext(ctx context.Context) GetTransitRouterRouteTablesTableArrayOutput

type GetTransitRouterRouteTablesTableArrayInput

type GetTransitRouterRouteTablesTableArrayInput interface {
	pulumi.Input

	ToGetTransitRouterRouteTablesTableArrayOutput() GetTransitRouterRouteTablesTableArrayOutput
	ToGetTransitRouterRouteTablesTableArrayOutputWithContext(context.Context) GetTransitRouterRouteTablesTableArrayOutput
}

GetTransitRouterRouteTablesTableArrayInput is an input type that accepts GetTransitRouterRouteTablesTableArray and GetTransitRouterRouteTablesTableArrayOutput values. You can construct a concrete instance of `GetTransitRouterRouteTablesTableArrayInput` via:

GetTransitRouterRouteTablesTableArray{ GetTransitRouterRouteTablesTableArgs{...} }

type GetTransitRouterRouteTablesTableArrayOutput

type GetTransitRouterRouteTablesTableArrayOutput struct{ *pulumi.OutputState }

func (GetTransitRouterRouteTablesTableArrayOutput) ElementType

func (GetTransitRouterRouteTablesTableArrayOutput) Index

func (GetTransitRouterRouteTablesTableArrayOutput) ToGetTransitRouterRouteTablesTableArrayOutput

func (o GetTransitRouterRouteTablesTableArrayOutput) ToGetTransitRouterRouteTablesTableArrayOutput() GetTransitRouterRouteTablesTableArrayOutput

func (GetTransitRouterRouteTablesTableArrayOutput) ToGetTransitRouterRouteTablesTableArrayOutputWithContext

func (o GetTransitRouterRouteTablesTableArrayOutput) ToGetTransitRouterRouteTablesTableArrayOutputWithContext(ctx context.Context) GetTransitRouterRouteTablesTableArrayOutput

type GetTransitRouterRouteTablesTableInput

type GetTransitRouterRouteTablesTableInput interface {
	pulumi.Input

	ToGetTransitRouterRouteTablesTableOutput() GetTransitRouterRouteTablesTableOutput
	ToGetTransitRouterRouteTablesTableOutputWithContext(context.Context) GetTransitRouterRouteTablesTableOutput
}

GetTransitRouterRouteTablesTableInput is an input type that accepts GetTransitRouterRouteTablesTableArgs and GetTransitRouterRouteTablesTableOutput values. You can construct a concrete instance of `GetTransitRouterRouteTablesTableInput` via:

GetTransitRouterRouteTablesTableArgs{...}

type GetTransitRouterRouteTablesTableOutput

type GetTransitRouterRouteTablesTableOutput struct{ *pulumi.OutputState }

func (GetTransitRouterRouteTablesTableOutput) ElementType

func (GetTransitRouterRouteTablesTableOutput) Id

ID of resource.

func (GetTransitRouterRouteTablesTableOutput) Status

func (GetTransitRouterRouteTablesTableOutput) ToGetTransitRouterRouteTablesTableOutput

func (o GetTransitRouterRouteTablesTableOutput) ToGetTransitRouterRouteTablesTableOutput() GetTransitRouterRouteTablesTableOutput

func (GetTransitRouterRouteTablesTableOutput) ToGetTransitRouterRouteTablesTableOutputWithContext

func (o GetTransitRouterRouteTablesTableOutput) ToGetTransitRouterRouteTablesTableOutputWithContext(ctx context.Context) GetTransitRouterRouteTablesTableOutput

func (GetTransitRouterRouteTablesTableOutput) TransitRouterRouteTableDescription

func (o GetTransitRouterRouteTablesTableOutput) TransitRouterRouteTableDescription() pulumi.StringOutput

The description of the transit router route table.

func (GetTransitRouterRouteTablesTableOutput) TransitRouterRouteTableId

func (o GetTransitRouterRouteTablesTableOutput) TransitRouterRouteTableId() pulumi.StringOutput

ID of the trabsit router route table.

func (GetTransitRouterRouteTablesTableOutput) TransitRouterRouteTableName

func (o GetTransitRouterRouteTablesTableOutput) TransitRouterRouteTableName() pulumi.StringOutput

Name of the transit router route table.

func (GetTransitRouterRouteTablesTableOutput) TransitRouterRouteTableType

func (o GetTransitRouterRouteTablesTableOutput) TransitRouterRouteTableType() pulumi.StringOutput

The type of the transit router route table to query. Valid values `Creating`, `Active` and `Deleting`..

type GetTransitRouterServiceArgs

type GetTransitRouterServiceArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: `On` or `Off`. Default to `Off`.
	Enable *string `pulumi:"enable"`
}

A collection of arguments for invoking getTransitRouterService.

type GetTransitRouterServiceOutputArgs

type GetTransitRouterServiceOutputArgs struct {
	// Setting the value to `On` to enable the service. If has been enabled, return the result. Valid values: `On` or `Off`. Default to `Off`.
	Enable pulumi.StringPtrInput `pulumi:"enable"`
}

A collection of arguments for invoking getTransitRouterService.

func (GetTransitRouterServiceOutputArgs) ElementType

type GetTransitRouterServiceResult

type GetTransitRouterServiceResult struct {
	Enable *string `pulumi:"enable"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// The current service enable status.
	Status string `pulumi:"status"`
}

A collection of values returned by getTransitRouterService.

func GetTransitRouterService

func GetTransitRouterService(ctx *pulumi.Context, args *GetTransitRouterServiceArgs, opts ...pulumi.InvokeOption) (*GetTransitRouterServiceResult, error)

Using this data source can open CEN Transit Router Service automatically. If the service has been opened, it will return opened.

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

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

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cen.GetTransitRouterService(ctx, &cen.GetTransitRouterServiceArgs{
			Enable: pulumi.StringRef("On"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetTransitRouterServiceResultOutput

type GetTransitRouterServiceResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTransitRouterService.

func (GetTransitRouterServiceResultOutput) ElementType

func (GetTransitRouterServiceResultOutput) Enable

func (GetTransitRouterServiceResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTransitRouterServiceResultOutput) Status

The current service enable status.

func (GetTransitRouterServiceResultOutput) ToGetTransitRouterServiceResultOutput

func (o GetTransitRouterServiceResultOutput) ToGetTransitRouterServiceResultOutput() GetTransitRouterServiceResultOutput

func (GetTransitRouterServiceResultOutput) ToGetTransitRouterServiceResultOutputWithContext

func (o GetTransitRouterServiceResultOutput) ToGetTransitRouterServiceResultOutputWithContext(ctx context.Context) GetTransitRouterServiceResultOutput

type GetTransitRouterVbrAttachmentsArgs

type GetTransitRouterVbrAttachmentsArgs struct {
	// ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// A list of resource id. The element value is same as `transitRouterId`.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.
	Status *string `pulumi:"status"`
	// ID of the transit router.
	TransitRouterId *string `pulumi:"transitRouterId"`
}

A collection of arguments for invoking getTransitRouterVbrAttachments.

type GetTransitRouterVbrAttachmentsAttachment

type GetTransitRouterVbrAttachmentsAttachment struct {
	// ID of the region where the conflicted VBR is located.
	AutoPublishRouteEnabled bool   `pulumi:"autoPublishRouteEnabled"`
	Id                      string `pulumi:"id"`
	// Type of the resource.
	ResourceType string `pulumi:"resourceType"`
	// The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.
	Status                             string `pulumi:"status"`
	TransitRouterAttachmentDescription string `pulumi:"transitRouterAttachmentDescription"`
	// ID of the transit router VBR attachment.
	TransitRouterAttachmentId string `pulumi:"transitRouterAttachmentId"`
	// Name of the transit router attachment.
	TransitRouterAttachmentName string `pulumi:"transitRouterAttachmentName"`
	// ID of the VBR.
	VbrId string `pulumi:"vbrId"`
	// The Owner ID of the VBR.
	VbrOwnerId string `pulumi:"vbrOwnerId"`
}

type GetTransitRouterVbrAttachmentsAttachmentArgs

type GetTransitRouterVbrAttachmentsAttachmentArgs struct {
	// ID of the region where the conflicted VBR is located.
	AutoPublishRouteEnabled pulumi.BoolInput   `pulumi:"autoPublishRouteEnabled"`
	Id                      pulumi.StringInput `pulumi:"id"`
	// Type of the resource.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.
	Status                             pulumi.StringInput `pulumi:"status"`
	TransitRouterAttachmentDescription pulumi.StringInput `pulumi:"transitRouterAttachmentDescription"`
	// ID of the transit router VBR attachment.
	TransitRouterAttachmentId pulumi.StringInput `pulumi:"transitRouterAttachmentId"`
	// Name of the transit router attachment.
	TransitRouterAttachmentName pulumi.StringInput `pulumi:"transitRouterAttachmentName"`
	// ID of the VBR.
	VbrId pulumi.StringInput `pulumi:"vbrId"`
	// The Owner ID of the VBR.
	VbrOwnerId pulumi.StringInput `pulumi:"vbrOwnerId"`
}

func (GetTransitRouterVbrAttachmentsAttachmentArgs) ElementType

func (GetTransitRouterVbrAttachmentsAttachmentArgs) ToGetTransitRouterVbrAttachmentsAttachmentOutput

func (i GetTransitRouterVbrAttachmentsAttachmentArgs) ToGetTransitRouterVbrAttachmentsAttachmentOutput() GetTransitRouterVbrAttachmentsAttachmentOutput

func (GetTransitRouterVbrAttachmentsAttachmentArgs) ToGetTransitRouterVbrAttachmentsAttachmentOutputWithContext

func (i GetTransitRouterVbrAttachmentsAttachmentArgs) ToGetTransitRouterVbrAttachmentsAttachmentOutputWithContext(ctx context.Context) GetTransitRouterVbrAttachmentsAttachmentOutput

type GetTransitRouterVbrAttachmentsAttachmentArray

type GetTransitRouterVbrAttachmentsAttachmentArray []GetTransitRouterVbrAttachmentsAttachmentInput

func (GetTransitRouterVbrAttachmentsAttachmentArray) ElementType

func (GetTransitRouterVbrAttachmentsAttachmentArray) ToGetTransitRouterVbrAttachmentsAttachmentArrayOutput

func (i GetTransitRouterVbrAttachmentsAttachmentArray) ToGetTransitRouterVbrAttachmentsAttachmentArrayOutput() GetTransitRouterVbrAttachmentsAttachmentArrayOutput

func (GetTransitRouterVbrAttachmentsAttachmentArray) ToGetTransitRouterVbrAttachmentsAttachmentArrayOutputWithContext

func (i GetTransitRouterVbrAttachmentsAttachmentArray) ToGetTransitRouterVbrAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetTransitRouterVbrAttachmentsAttachmentArrayOutput

type GetTransitRouterVbrAttachmentsAttachmentArrayInput

type GetTransitRouterVbrAttachmentsAttachmentArrayInput interface {
	pulumi.Input

	ToGetTransitRouterVbrAttachmentsAttachmentArrayOutput() GetTransitRouterVbrAttachmentsAttachmentArrayOutput
	ToGetTransitRouterVbrAttachmentsAttachmentArrayOutputWithContext(context.Context) GetTransitRouterVbrAttachmentsAttachmentArrayOutput
}

GetTransitRouterVbrAttachmentsAttachmentArrayInput is an input type that accepts GetTransitRouterVbrAttachmentsAttachmentArray and GetTransitRouterVbrAttachmentsAttachmentArrayOutput values. You can construct a concrete instance of `GetTransitRouterVbrAttachmentsAttachmentArrayInput` via:

GetTransitRouterVbrAttachmentsAttachmentArray{ GetTransitRouterVbrAttachmentsAttachmentArgs{...} }

type GetTransitRouterVbrAttachmentsAttachmentArrayOutput

type GetTransitRouterVbrAttachmentsAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetTransitRouterVbrAttachmentsAttachmentArrayOutput) ElementType

func (GetTransitRouterVbrAttachmentsAttachmentArrayOutput) Index

func (GetTransitRouterVbrAttachmentsAttachmentArrayOutput) ToGetTransitRouterVbrAttachmentsAttachmentArrayOutput

func (o GetTransitRouterVbrAttachmentsAttachmentArrayOutput) ToGetTransitRouterVbrAttachmentsAttachmentArrayOutput() GetTransitRouterVbrAttachmentsAttachmentArrayOutput

func (GetTransitRouterVbrAttachmentsAttachmentArrayOutput) ToGetTransitRouterVbrAttachmentsAttachmentArrayOutputWithContext

func (o GetTransitRouterVbrAttachmentsAttachmentArrayOutput) ToGetTransitRouterVbrAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetTransitRouterVbrAttachmentsAttachmentArrayOutput

type GetTransitRouterVbrAttachmentsAttachmentInput

type GetTransitRouterVbrAttachmentsAttachmentInput interface {
	pulumi.Input

	ToGetTransitRouterVbrAttachmentsAttachmentOutput() GetTransitRouterVbrAttachmentsAttachmentOutput
	ToGetTransitRouterVbrAttachmentsAttachmentOutputWithContext(context.Context) GetTransitRouterVbrAttachmentsAttachmentOutput
}

GetTransitRouterVbrAttachmentsAttachmentInput is an input type that accepts GetTransitRouterVbrAttachmentsAttachmentArgs and GetTransitRouterVbrAttachmentsAttachmentOutput values. You can construct a concrete instance of `GetTransitRouterVbrAttachmentsAttachmentInput` via:

GetTransitRouterVbrAttachmentsAttachmentArgs{...}

type GetTransitRouterVbrAttachmentsAttachmentOutput

type GetTransitRouterVbrAttachmentsAttachmentOutput struct{ *pulumi.OutputState }

func (GetTransitRouterVbrAttachmentsAttachmentOutput) AutoPublishRouteEnabled

ID of the region where the conflicted VBR is located.

func (GetTransitRouterVbrAttachmentsAttachmentOutput) ElementType

func (GetTransitRouterVbrAttachmentsAttachmentOutput) Id

func (GetTransitRouterVbrAttachmentsAttachmentOutput) ResourceType

Type of the resource.

func (GetTransitRouterVbrAttachmentsAttachmentOutput) Status

The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.

func (GetTransitRouterVbrAttachmentsAttachmentOutput) ToGetTransitRouterVbrAttachmentsAttachmentOutput

func (o GetTransitRouterVbrAttachmentsAttachmentOutput) ToGetTransitRouterVbrAttachmentsAttachmentOutput() GetTransitRouterVbrAttachmentsAttachmentOutput

func (GetTransitRouterVbrAttachmentsAttachmentOutput) ToGetTransitRouterVbrAttachmentsAttachmentOutputWithContext

func (o GetTransitRouterVbrAttachmentsAttachmentOutput) ToGetTransitRouterVbrAttachmentsAttachmentOutputWithContext(ctx context.Context) GetTransitRouterVbrAttachmentsAttachmentOutput

func (GetTransitRouterVbrAttachmentsAttachmentOutput) TransitRouterAttachmentDescription

func (o GetTransitRouterVbrAttachmentsAttachmentOutput) TransitRouterAttachmentDescription() pulumi.StringOutput

func (GetTransitRouterVbrAttachmentsAttachmentOutput) TransitRouterAttachmentId

ID of the transit router VBR attachment.

func (GetTransitRouterVbrAttachmentsAttachmentOutput) TransitRouterAttachmentName

func (o GetTransitRouterVbrAttachmentsAttachmentOutput) TransitRouterAttachmentName() pulumi.StringOutput

Name of the transit router attachment.

func (GetTransitRouterVbrAttachmentsAttachmentOutput) VbrId

ID of the VBR.

func (GetTransitRouterVbrAttachmentsAttachmentOutput) VbrOwnerId

The Owner ID of the VBR.

type GetTransitRouterVbrAttachmentsOutputArgs

type GetTransitRouterVbrAttachmentsOutputArgs struct {
	// ID of the CEN instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// A list of resource id. The element value is same as `transitRouterId`.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	// The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// ID of the transit router.
	TransitRouterId pulumi.StringPtrInput `pulumi:"transitRouterId"`
}

A collection of arguments for invoking getTransitRouterVbrAttachments.

func (GetTransitRouterVbrAttachmentsOutputArgs) ElementType

type GetTransitRouterVbrAttachmentsResult

type GetTransitRouterVbrAttachmentsResult struct {
	// A list of CEN Transit Router VBR Attachments. Each element contains the following attributes:
	Attachments []GetTransitRouterVbrAttachmentsAttachment `pulumi:"attachments"`
	CenId       string                                     `pulumi:"cenId"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A list of CEN Transit Router VBR attachment IDs.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the transit router attachment.
	Status          *string `pulumi:"status"`
	TransitRouterId *string `pulumi:"transitRouterId"`
}

A collection of values returned by getTransitRouterVbrAttachments.

func GetTransitRouterVbrAttachments

This data source provides CEN Transit Router VBR Attachments available to the user.[What is Cen Transit Router VBR Attachments](https://help.aliyun.com/document_detail/261226.html)

> **NOTE:** Available in 1.126.0+

type GetTransitRouterVbrAttachmentsResultOutput

type GetTransitRouterVbrAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTransitRouterVbrAttachments.

func (GetTransitRouterVbrAttachmentsResultOutput) Attachments

A list of CEN Transit Router VBR Attachments. Each element contains the following attributes:

func (GetTransitRouterVbrAttachmentsResultOutput) CenId

func (GetTransitRouterVbrAttachmentsResultOutput) ElementType

func (GetTransitRouterVbrAttachmentsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTransitRouterVbrAttachmentsResultOutput) Ids

A list of CEN Transit Router VBR attachment IDs.

func (GetTransitRouterVbrAttachmentsResultOutput) OutputFile

func (GetTransitRouterVbrAttachmentsResultOutput) Status

The status of the transit router attachment.

func (GetTransitRouterVbrAttachmentsResultOutput) ToGetTransitRouterVbrAttachmentsResultOutput

func (o GetTransitRouterVbrAttachmentsResultOutput) ToGetTransitRouterVbrAttachmentsResultOutput() GetTransitRouterVbrAttachmentsResultOutput

func (GetTransitRouterVbrAttachmentsResultOutput) ToGetTransitRouterVbrAttachmentsResultOutputWithContext

func (o GetTransitRouterVbrAttachmentsResultOutput) ToGetTransitRouterVbrAttachmentsResultOutputWithContext(ctx context.Context) GetTransitRouterVbrAttachmentsResultOutput

func (GetTransitRouterVbrAttachmentsResultOutput) TransitRouterId

type GetTransitRouterVpcAttachmentsArgs

type GetTransitRouterVpcAttachmentsArgs struct {
	// ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// A list of resource id. The element value is same as `transitRouterId`.
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.
	Status *string `pulumi:"status"`
	// The transit router ID.
	TransitRouterId *string `pulumi:"transitRouterId"`
}

A collection of arguments for invoking getTransitRouterVpcAttachments.

type GetTransitRouterVpcAttachmentsAttachment

type GetTransitRouterVpcAttachmentsAttachment struct {
	// The ID of the transit router.
	Id string `pulumi:"id"`
	// The payment type of the resource.
	PaymentType string `pulumi:"paymentType"`
	// Type of the resource.
	ResourceType string `pulumi:"resourceType"`
	// The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.
	Status string `pulumi:"status"`
	// The description of transit router attachment.
	TransitRouterAttachmentDescription string `pulumi:"transitRouterAttachmentDescription"`
	// ID of the transit router VBR attachment.
	TransitRouterAttachmentId string `pulumi:"transitRouterAttachmentId"`
	// Name of the transit router attachment.
	TransitRouterAttachmentName string `pulumi:"transitRouterAttachmentName"`
	// ID of the VPC.
	VpcId string `pulumi:"vpcId"`
	// The Owner ID of the VPC.
	VpcOwnerId string `pulumi:"vpcOwnerId"`
	// The mappings of zone
	ZoneMappings []GetTransitRouterVpcAttachmentsAttachmentZoneMapping `pulumi:"zoneMappings"`
}

type GetTransitRouterVpcAttachmentsAttachmentArgs

type GetTransitRouterVpcAttachmentsAttachmentArgs struct {
	// The ID of the transit router.
	Id pulumi.StringInput `pulumi:"id"`
	// The payment type of the resource.
	PaymentType pulumi.StringInput `pulumi:"paymentType"`
	// Type of the resource.
	ResourceType pulumi.StringInput `pulumi:"resourceType"`
	// The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.
	Status pulumi.StringInput `pulumi:"status"`
	// The description of transit router attachment.
	TransitRouterAttachmentDescription pulumi.StringInput `pulumi:"transitRouterAttachmentDescription"`
	// ID of the transit router VBR attachment.
	TransitRouterAttachmentId pulumi.StringInput `pulumi:"transitRouterAttachmentId"`
	// Name of the transit router attachment.
	TransitRouterAttachmentName pulumi.StringInput `pulumi:"transitRouterAttachmentName"`
	// ID of the VPC.
	VpcId pulumi.StringInput `pulumi:"vpcId"`
	// The Owner ID of the VPC.
	VpcOwnerId pulumi.StringInput `pulumi:"vpcOwnerId"`
	// The mappings of zone
	ZoneMappings GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayInput `pulumi:"zoneMappings"`
}

func (GetTransitRouterVpcAttachmentsAttachmentArgs) ElementType

func (GetTransitRouterVpcAttachmentsAttachmentArgs) ToGetTransitRouterVpcAttachmentsAttachmentOutput

func (i GetTransitRouterVpcAttachmentsAttachmentArgs) ToGetTransitRouterVpcAttachmentsAttachmentOutput() GetTransitRouterVpcAttachmentsAttachmentOutput

func (GetTransitRouterVpcAttachmentsAttachmentArgs) ToGetTransitRouterVpcAttachmentsAttachmentOutputWithContext

func (i GetTransitRouterVpcAttachmentsAttachmentArgs) ToGetTransitRouterVpcAttachmentsAttachmentOutputWithContext(ctx context.Context) GetTransitRouterVpcAttachmentsAttachmentOutput

type GetTransitRouterVpcAttachmentsAttachmentArray

type GetTransitRouterVpcAttachmentsAttachmentArray []GetTransitRouterVpcAttachmentsAttachmentInput

func (GetTransitRouterVpcAttachmentsAttachmentArray) ElementType

func (GetTransitRouterVpcAttachmentsAttachmentArray) ToGetTransitRouterVpcAttachmentsAttachmentArrayOutput

func (i GetTransitRouterVpcAttachmentsAttachmentArray) ToGetTransitRouterVpcAttachmentsAttachmentArrayOutput() GetTransitRouterVpcAttachmentsAttachmentArrayOutput

func (GetTransitRouterVpcAttachmentsAttachmentArray) ToGetTransitRouterVpcAttachmentsAttachmentArrayOutputWithContext

func (i GetTransitRouterVpcAttachmentsAttachmentArray) ToGetTransitRouterVpcAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetTransitRouterVpcAttachmentsAttachmentArrayOutput

type GetTransitRouterVpcAttachmentsAttachmentArrayInput

type GetTransitRouterVpcAttachmentsAttachmentArrayInput interface {
	pulumi.Input

	ToGetTransitRouterVpcAttachmentsAttachmentArrayOutput() GetTransitRouterVpcAttachmentsAttachmentArrayOutput
	ToGetTransitRouterVpcAttachmentsAttachmentArrayOutputWithContext(context.Context) GetTransitRouterVpcAttachmentsAttachmentArrayOutput
}

GetTransitRouterVpcAttachmentsAttachmentArrayInput is an input type that accepts GetTransitRouterVpcAttachmentsAttachmentArray and GetTransitRouterVpcAttachmentsAttachmentArrayOutput values. You can construct a concrete instance of `GetTransitRouterVpcAttachmentsAttachmentArrayInput` via:

GetTransitRouterVpcAttachmentsAttachmentArray{ GetTransitRouterVpcAttachmentsAttachmentArgs{...} }

type GetTransitRouterVpcAttachmentsAttachmentArrayOutput

type GetTransitRouterVpcAttachmentsAttachmentArrayOutput struct{ *pulumi.OutputState }

func (GetTransitRouterVpcAttachmentsAttachmentArrayOutput) ElementType

func (GetTransitRouterVpcAttachmentsAttachmentArrayOutput) Index

func (GetTransitRouterVpcAttachmentsAttachmentArrayOutput) ToGetTransitRouterVpcAttachmentsAttachmentArrayOutput

func (o GetTransitRouterVpcAttachmentsAttachmentArrayOutput) ToGetTransitRouterVpcAttachmentsAttachmentArrayOutput() GetTransitRouterVpcAttachmentsAttachmentArrayOutput

func (GetTransitRouterVpcAttachmentsAttachmentArrayOutput) ToGetTransitRouterVpcAttachmentsAttachmentArrayOutputWithContext

func (o GetTransitRouterVpcAttachmentsAttachmentArrayOutput) ToGetTransitRouterVpcAttachmentsAttachmentArrayOutputWithContext(ctx context.Context) GetTransitRouterVpcAttachmentsAttachmentArrayOutput

type GetTransitRouterVpcAttachmentsAttachmentInput

type GetTransitRouterVpcAttachmentsAttachmentInput interface {
	pulumi.Input

	ToGetTransitRouterVpcAttachmentsAttachmentOutput() GetTransitRouterVpcAttachmentsAttachmentOutput
	ToGetTransitRouterVpcAttachmentsAttachmentOutputWithContext(context.Context) GetTransitRouterVpcAttachmentsAttachmentOutput
}

GetTransitRouterVpcAttachmentsAttachmentInput is an input type that accepts GetTransitRouterVpcAttachmentsAttachmentArgs and GetTransitRouterVpcAttachmentsAttachmentOutput values. You can construct a concrete instance of `GetTransitRouterVpcAttachmentsAttachmentInput` via:

GetTransitRouterVpcAttachmentsAttachmentArgs{...}

type GetTransitRouterVpcAttachmentsAttachmentOutput

type GetTransitRouterVpcAttachmentsAttachmentOutput struct{ *pulumi.OutputState }

func (GetTransitRouterVpcAttachmentsAttachmentOutput) ElementType

func (GetTransitRouterVpcAttachmentsAttachmentOutput) Id

The ID of the transit router.

func (GetTransitRouterVpcAttachmentsAttachmentOutput) PaymentType

The payment type of the resource.

func (GetTransitRouterVpcAttachmentsAttachmentOutput) ResourceType

Type of the resource.

func (GetTransitRouterVpcAttachmentsAttachmentOutput) Status

The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.

func (GetTransitRouterVpcAttachmentsAttachmentOutput) ToGetTransitRouterVpcAttachmentsAttachmentOutput

func (o GetTransitRouterVpcAttachmentsAttachmentOutput) ToGetTransitRouterVpcAttachmentsAttachmentOutput() GetTransitRouterVpcAttachmentsAttachmentOutput

func (GetTransitRouterVpcAttachmentsAttachmentOutput) ToGetTransitRouterVpcAttachmentsAttachmentOutputWithContext

func (o GetTransitRouterVpcAttachmentsAttachmentOutput) ToGetTransitRouterVpcAttachmentsAttachmentOutputWithContext(ctx context.Context) GetTransitRouterVpcAttachmentsAttachmentOutput

func (GetTransitRouterVpcAttachmentsAttachmentOutput) TransitRouterAttachmentDescription

func (o GetTransitRouterVpcAttachmentsAttachmentOutput) TransitRouterAttachmentDescription() pulumi.StringOutput

The description of transit router attachment.

func (GetTransitRouterVpcAttachmentsAttachmentOutput) TransitRouterAttachmentId

ID of the transit router VBR attachment.

func (GetTransitRouterVpcAttachmentsAttachmentOutput) TransitRouterAttachmentName

func (o GetTransitRouterVpcAttachmentsAttachmentOutput) TransitRouterAttachmentName() pulumi.StringOutput

Name of the transit router attachment.

func (GetTransitRouterVpcAttachmentsAttachmentOutput) VpcId

ID of the VPC.

func (GetTransitRouterVpcAttachmentsAttachmentOutput) VpcOwnerId

The Owner ID of the VPC.

func (GetTransitRouterVpcAttachmentsAttachmentOutput) ZoneMappings

The mappings of zone

type GetTransitRouterVpcAttachmentsAttachmentZoneMapping

type GetTransitRouterVpcAttachmentsAttachmentZoneMapping struct {
	// The VSwitch ID.
	VswitchId string `pulumi:"vswitchId"`
	// The zone ID.
	ZoneId string `pulumi:"zoneId"`
}

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingArgs

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingArgs struct {
	// The VSwitch ID.
	VswitchId pulumi.StringInput `pulumi:"vswitchId"`
	// The zone ID.
	ZoneId pulumi.StringInput `pulumi:"zoneId"`
}

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingArgs) ElementType

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingArgs) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingArgs) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingOutputWithContext

func (i GetTransitRouterVpcAttachmentsAttachmentZoneMappingArgs) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingOutputWithContext(ctx context.Context) GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingArray

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingArray []GetTransitRouterVpcAttachmentsAttachmentZoneMappingInput

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingArray) ElementType

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingArray) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput

func (i GetTransitRouterVpcAttachmentsAttachmentZoneMappingArray) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput() GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingArray) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutputWithContext

func (i GetTransitRouterVpcAttachmentsAttachmentZoneMappingArray) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutputWithContext(ctx context.Context) GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayInput

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayInput interface {
	pulumi.Input

	ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput() GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput
	ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutputWithContext(context.Context) GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput
}

GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayInput is an input type that accepts GetTransitRouterVpcAttachmentsAttachmentZoneMappingArray and GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput values. You can construct a concrete instance of `GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayInput` via:

GetTransitRouterVpcAttachmentsAttachmentZoneMappingArray{ GetTransitRouterVpcAttachmentsAttachmentZoneMappingArgs{...} }

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput struct{ *pulumi.OutputState }

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput) ElementType

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput) Index

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutputWithContext

func (o GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutputWithContext(ctx context.Context) GetTransitRouterVpcAttachmentsAttachmentZoneMappingArrayOutput

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingInput

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingInput interface {
	pulumi.Input

	ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput() GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput
	ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingOutputWithContext(context.Context) GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput
}

GetTransitRouterVpcAttachmentsAttachmentZoneMappingInput is an input type that accepts GetTransitRouterVpcAttachmentsAttachmentZoneMappingArgs and GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput values. You can construct a concrete instance of `GetTransitRouterVpcAttachmentsAttachmentZoneMappingInput` via:

GetTransitRouterVpcAttachmentsAttachmentZoneMappingArgs{...}

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput

type GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput struct{ *pulumi.OutputState }

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput) ElementType

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingOutputWithContext

func (o GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput) ToGetTransitRouterVpcAttachmentsAttachmentZoneMappingOutputWithContext(ctx context.Context) GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput) VswitchId

The VSwitch ID.

func (GetTransitRouterVpcAttachmentsAttachmentZoneMappingOutput) ZoneId

The zone ID.

type GetTransitRouterVpcAttachmentsOutputArgs

type GetTransitRouterVpcAttachmentsOutputArgs struct {
	// ID of the CEN instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// A list of resource id. The element value is same as `transitRouterId`.
	Ids        pulumi.StringArrayInput `pulumi:"ids"`
	OutputFile pulumi.StringPtrInput   `pulumi:"outputFile"`
	// The status of the resource. Valid values `Attached`, `Attaching` and `Detaching`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The transit router ID.
	TransitRouterId pulumi.StringPtrInput `pulumi:"transitRouterId"`
}

A collection of arguments for invoking getTransitRouterVpcAttachments.

func (GetTransitRouterVpcAttachmentsOutputArgs) ElementType

type GetTransitRouterVpcAttachmentsResult

type GetTransitRouterVpcAttachmentsResult struct {
	// A list of CEN Transit Router VPC Attachments. Each element contains the following attributes:
	Attachments []GetTransitRouterVpcAttachmentsAttachment `pulumi:"attachments"`
	CenId       string                                     `pulumi:"cenId"`
	// The provider-assigned unique ID for this managed resource.
	Id         string   `pulumi:"id"`
	Ids        []string `pulumi:"ids"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the transit router attachment.
	Status *string `pulumi:"status"`
	// ID of the transit router.
	TransitRouterId *string `pulumi:"transitRouterId"`
}

A collection of values returned by getTransitRouterVpcAttachments.

func GetTransitRouterVpcAttachments

This data source provides CEN Transit Router VPC Attachments available to the user.[What is Cen Transit Router VPC Attachments](https://help.aliyun.com/document_detail/261222.html)

> **NOTE:** Available in 1.126.0+

type GetTransitRouterVpcAttachmentsResultOutput

type GetTransitRouterVpcAttachmentsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTransitRouterVpcAttachments.

func (GetTransitRouterVpcAttachmentsResultOutput) Attachments

A list of CEN Transit Router VPC Attachments. Each element contains the following attributes:

func (GetTransitRouterVpcAttachmentsResultOutput) CenId

func (GetTransitRouterVpcAttachmentsResultOutput) ElementType

func (GetTransitRouterVpcAttachmentsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTransitRouterVpcAttachmentsResultOutput) Ids

func (GetTransitRouterVpcAttachmentsResultOutput) OutputFile

func (GetTransitRouterVpcAttachmentsResultOutput) Status

The status of the transit router attachment.

func (GetTransitRouterVpcAttachmentsResultOutput) ToGetTransitRouterVpcAttachmentsResultOutput

func (o GetTransitRouterVpcAttachmentsResultOutput) ToGetTransitRouterVpcAttachmentsResultOutput() GetTransitRouterVpcAttachmentsResultOutput

func (GetTransitRouterVpcAttachmentsResultOutput) ToGetTransitRouterVpcAttachmentsResultOutputWithContext

func (o GetTransitRouterVpcAttachmentsResultOutput) ToGetTransitRouterVpcAttachmentsResultOutputWithContext(ctx context.Context) GetTransitRouterVpcAttachmentsResultOutput

func (GetTransitRouterVpcAttachmentsResultOutput) TransitRouterId

ID of the transit router.

type GetTransitRoutersArgs

type GetTransitRoutersArgs struct {
	// The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// A list of resource id. The element value is same as <cen_id>:<transit_router_id>`.
	Ids []string `pulumi:"ids"`
	// A regex string to filter CEN Transit Routers by name.
	NameRegex  *string `pulumi:"nameRegex"`
	OutputFile *string `pulumi:"outputFile"`
	// The status of the resource. Valid values `Active`, `Creating`, `Deleting` and `Updating`.
	Status *string `pulumi:"status"`
	// The ID of the transit router.
	TransitRouterId *string `pulumi:"transitRouterId"`
	// A list of ID of the transit router.
	TransitRouterIds []string `pulumi:"transitRouterIds"`
}

A collection of arguments for invoking getTransitRouters.

type GetTransitRoutersOutputArgs

type GetTransitRoutersOutputArgs struct {
	// The ID of the CEN instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// A list of resource id. The element value is same as <cen_id>:<transit_router_id>`.
	Ids pulumi.StringArrayInput `pulumi:"ids"`
	// A regex string to filter CEN Transit Routers by name.
	NameRegex  pulumi.StringPtrInput `pulumi:"nameRegex"`
	OutputFile pulumi.StringPtrInput `pulumi:"outputFile"`
	// The status of the resource. Valid values `Active`, `Creating`, `Deleting` and `Updating`.
	Status pulumi.StringPtrInput `pulumi:"status"`
	// The ID of the transit router.
	TransitRouterId pulumi.StringPtrInput `pulumi:"transitRouterId"`
	// A list of ID of the transit router.
	TransitRouterIds pulumi.StringArrayInput `pulumi:"transitRouterIds"`
}

A collection of arguments for invoking getTransitRouters.

func (GetTransitRoutersOutputArgs) ElementType

type GetTransitRoutersResult

type GetTransitRoutersResult struct {
	// The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// The provider-assigned unique ID for this managed resource.
	Id        string   `pulumi:"id"`
	Ids       []string `pulumi:"ids"`
	NameRegex *string  `pulumi:"nameRegex"`
	// A list of  CEN Transit Routers names.
	Names      []string `pulumi:"names"`
	OutputFile *string  `pulumi:"outputFile"`
	// The status of the transit router attachment.
	Status *string `pulumi:"status"`
	// The ID of the transit router.
	TransitRouterId  *string  `pulumi:"transitRouterId"`
	TransitRouterIds []string `pulumi:"transitRouterIds"`
	// A list of CEN Transit Routers. Each element contains the following attributes:
	TransitRouters []GetTransitRoutersTransitRouter `pulumi:"transitRouters"`
}

A collection of values returned by getTransitRouters.

func GetTransitRouters

func GetTransitRouters(ctx *pulumi.Context, args *GetTransitRoutersArgs, opts ...pulumi.InvokeOption) (*GetTransitRoutersResult, error)

This data source provides CEN Transit Routers available to the user.[What is Cen Transit Routers](https://help.aliyun.com/document_detail/261219.html)

> **NOTE:** Available in 1.126.0+

## Example Usage

```go package main

import (

"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_default, err := cen.GetTransitRouters(ctx, &cen.GetTransitRoutersArgs{
			CenId: "cen-id1",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstTransitRoutersType", _default.TransitRouters[0].Type)
		return nil
	})
}

```

type GetTransitRoutersResultOutput

type GetTransitRoutersResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getTransitRouters.

func (GetTransitRoutersResultOutput) CenId

The ID of the CEN instance.

func (GetTransitRoutersResultOutput) ElementType

func (GetTransitRoutersResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetTransitRoutersResultOutput) Ids

func (GetTransitRoutersResultOutput) NameRegex

func (GetTransitRoutersResultOutput) Names

A list of CEN Transit Routers names.

func (GetTransitRoutersResultOutput) OutputFile

func (GetTransitRoutersResultOutput) Status

The status of the transit router attachment.

func (GetTransitRoutersResultOutput) ToGetTransitRoutersResultOutput

func (o GetTransitRoutersResultOutput) ToGetTransitRoutersResultOutput() GetTransitRoutersResultOutput

func (GetTransitRoutersResultOutput) ToGetTransitRoutersResultOutputWithContext

func (o GetTransitRoutersResultOutput) ToGetTransitRoutersResultOutputWithContext(ctx context.Context) GetTransitRoutersResultOutput

func (GetTransitRoutersResultOutput) TransitRouterId

The ID of the transit router.

func (GetTransitRoutersResultOutput) TransitRouterIds

func (GetTransitRoutersResultOutput) TransitRouters

A list of CEN Transit Routers. Each element contains the following attributes:

type GetTransitRoutersTransitRouter

type GetTransitRoutersTransitRouter struct {
	// The UID of the Aliyun.
	AliUid string `pulumi:"aliUid"`
	// The ID of the CEN instance.
	CenId string `pulumi:"cenId"`
	// The ID of the resource, It is formatted to `<cen_id>:<transit_router_id>`. **NOTE:** Before 1.151.0, It is formatted to `<transit_router_id>`.
	Id string `pulumi:"id"`
	// The status of the resource. Valid values `Active`, `Creating`, `Deleting` and `Updating`.
	Status string `pulumi:"status"`
	// The description of the transit router.
	TransitRouterDescription string `pulumi:"transitRouterDescription"`
	// The ID of the transit router.
	TransitRouterId string `pulumi:"transitRouterId"`
	// The name of the transit router.
	TransitRouterName string `pulumi:"transitRouterName"`
	// The Type of the transit router.
	Type string `pulumi:"type"`
	// The vip of the XGW.
	XgwVip string `pulumi:"xgwVip"`
}

type GetTransitRoutersTransitRouterArgs

type GetTransitRoutersTransitRouterArgs struct {
	// The UID of the Aliyun.
	AliUid pulumi.StringInput `pulumi:"aliUid"`
	// The ID of the CEN instance.
	CenId pulumi.StringInput `pulumi:"cenId"`
	// The ID of the resource, It is formatted to `<cen_id>:<transit_router_id>`. **NOTE:** Before 1.151.0, It is formatted to `<transit_router_id>`.
	Id pulumi.StringInput `pulumi:"id"`
	// The status of the resource. Valid values `Active`, `Creating`, `Deleting` and `Updating`.
	Status pulumi.StringInput `pulumi:"status"`
	// The description of the transit router.
	TransitRouterDescription pulumi.StringInput `pulumi:"transitRouterDescription"`
	// The ID of the transit router.
	TransitRouterId pulumi.StringInput `pulumi:"transitRouterId"`
	// The name of the transit router.
	TransitRouterName pulumi.StringInput `pulumi:"transitRouterName"`
	// The Type of the transit router.
	Type pulumi.StringInput `pulumi:"type"`
	// The vip of the XGW.
	XgwVip pulumi.StringInput `pulumi:"xgwVip"`
}

func (GetTransitRoutersTransitRouterArgs) ElementType

func (GetTransitRoutersTransitRouterArgs) ToGetTransitRoutersTransitRouterOutput

func (i GetTransitRoutersTransitRouterArgs) ToGetTransitRoutersTransitRouterOutput() GetTransitRoutersTransitRouterOutput

func (GetTransitRoutersTransitRouterArgs) ToGetTransitRoutersTransitRouterOutputWithContext

func (i GetTransitRoutersTransitRouterArgs) ToGetTransitRoutersTransitRouterOutputWithContext(ctx context.Context) GetTransitRoutersTransitRouterOutput

type GetTransitRoutersTransitRouterArray

type GetTransitRoutersTransitRouterArray []GetTransitRoutersTransitRouterInput

func (GetTransitRoutersTransitRouterArray) ElementType

func (GetTransitRoutersTransitRouterArray) ToGetTransitRoutersTransitRouterArrayOutput

func (i GetTransitRoutersTransitRouterArray) ToGetTransitRoutersTransitRouterArrayOutput() GetTransitRoutersTransitRouterArrayOutput

func (GetTransitRoutersTransitRouterArray) ToGetTransitRoutersTransitRouterArrayOutputWithContext

func (i GetTransitRoutersTransitRouterArray) ToGetTransitRoutersTransitRouterArrayOutputWithContext(ctx context.Context) GetTransitRoutersTransitRouterArrayOutput

type GetTransitRoutersTransitRouterArrayInput

type GetTransitRoutersTransitRouterArrayInput interface {
	pulumi.Input

	ToGetTransitRoutersTransitRouterArrayOutput() GetTransitRoutersTransitRouterArrayOutput
	ToGetTransitRoutersTransitRouterArrayOutputWithContext(context.Context) GetTransitRoutersTransitRouterArrayOutput
}

GetTransitRoutersTransitRouterArrayInput is an input type that accepts GetTransitRoutersTransitRouterArray and GetTransitRoutersTransitRouterArrayOutput values. You can construct a concrete instance of `GetTransitRoutersTransitRouterArrayInput` via:

GetTransitRoutersTransitRouterArray{ GetTransitRoutersTransitRouterArgs{...} }

type GetTransitRoutersTransitRouterArrayOutput

type GetTransitRoutersTransitRouterArrayOutput struct{ *pulumi.OutputState }

func (GetTransitRoutersTransitRouterArrayOutput) ElementType

func (GetTransitRoutersTransitRouterArrayOutput) Index

func (GetTransitRoutersTransitRouterArrayOutput) ToGetTransitRoutersTransitRouterArrayOutput

func (o GetTransitRoutersTransitRouterArrayOutput) ToGetTransitRoutersTransitRouterArrayOutput() GetTransitRoutersTransitRouterArrayOutput

func (GetTransitRoutersTransitRouterArrayOutput) ToGetTransitRoutersTransitRouterArrayOutputWithContext

func (o GetTransitRoutersTransitRouterArrayOutput) ToGetTransitRoutersTransitRouterArrayOutputWithContext(ctx context.Context) GetTransitRoutersTransitRouterArrayOutput

type GetTransitRoutersTransitRouterInput

type GetTransitRoutersTransitRouterInput interface {
	pulumi.Input

	ToGetTransitRoutersTransitRouterOutput() GetTransitRoutersTransitRouterOutput
	ToGetTransitRoutersTransitRouterOutputWithContext(context.Context) GetTransitRoutersTransitRouterOutput
}

GetTransitRoutersTransitRouterInput is an input type that accepts GetTransitRoutersTransitRouterArgs and GetTransitRoutersTransitRouterOutput values. You can construct a concrete instance of `GetTransitRoutersTransitRouterInput` via:

GetTransitRoutersTransitRouterArgs{...}

type GetTransitRoutersTransitRouterOutput

type GetTransitRoutersTransitRouterOutput struct{ *pulumi.OutputState }

func (GetTransitRoutersTransitRouterOutput) AliUid

The UID of the Aliyun.

func (GetTransitRoutersTransitRouterOutput) CenId

The ID of the CEN instance.

func (GetTransitRoutersTransitRouterOutput) ElementType

func (GetTransitRoutersTransitRouterOutput) Id

The ID of the resource, It is formatted to `<cen_id>:<transit_router_id>`. **NOTE:** Before 1.151.0, It is formatted to `<transit_router_id>`.

func (GetTransitRoutersTransitRouterOutput) Status

The status of the resource. Valid values `Active`, `Creating`, `Deleting` and `Updating`.

func (GetTransitRoutersTransitRouterOutput) ToGetTransitRoutersTransitRouterOutput

func (o GetTransitRoutersTransitRouterOutput) ToGetTransitRoutersTransitRouterOutput() GetTransitRoutersTransitRouterOutput

func (GetTransitRoutersTransitRouterOutput) ToGetTransitRoutersTransitRouterOutputWithContext

func (o GetTransitRoutersTransitRouterOutput) ToGetTransitRoutersTransitRouterOutputWithContext(ctx context.Context) GetTransitRoutersTransitRouterOutput

func (GetTransitRoutersTransitRouterOutput) TransitRouterDescription

func (o GetTransitRoutersTransitRouterOutput) TransitRouterDescription() pulumi.StringOutput

The description of the transit router.

func (GetTransitRoutersTransitRouterOutput) TransitRouterId

The ID of the transit router.

func (GetTransitRoutersTransitRouterOutput) TransitRouterName

The name of the transit router.

func (GetTransitRoutersTransitRouterOutput) Type

The Type of the transit router.

func (GetTransitRoutersTransitRouterOutput) XgwVip

The vip of the XGW.

type GetVbrHealthChecksArgs

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

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

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

func (GetVbrHealthChecksCheckArgs) ToGetVbrHealthChecksCheckOutput

func (i GetVbrHealthChecksCheckArgs) ToGetVbrHealthChecksCheckOutput() GetVbrHealthChecksCheckOutput

func (GetVbrHealthChecksCheckArgs) ToGetVbrHealthChecksCheckOutputWithContext

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

type GetVbrHealthChecksCheckArray

type GetVbrHealthChecksCheckArray []GetVbrHealthChecksCheckInput

func (GetVbrHealthChecksCheckArray) ElementType

func (GetVbrHealthChecksCheckArray) ToGetVbrHealthChecksCheckArrayOutput

func (i GetVbrHealthChecksCheckArray) ToGetVbrHealthChecksCheckArrayOutput() GetVbrHealthChecksCheckArrayOutput

func (GetVbrHealthChecksCheckArray) ToGetVbrHealthChecksCheckArrayOutputWithContext

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

type GetVbrHealthChecksCheckArrayInput

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

type GetVbrHealthChecksCheckArrayOutput struct{ *pulumi.OutputState }

func (GetVbrHealthChecksCheckArrayOutput) ElementType

func (GetVbrHealthChecksCheckArrayOutput) Index

func (GetVbrHealthChecksCheckArrayOutput) ToGetVbrHealthChecksCheckArrayOutput

func (o GetVbrHealthChecksCheckArrayOutput) ToGetVbrHealthChecksCheckArrayOutput() GetVbrHealthChecksCheckArrayOutput

func (GetVbrHealthChecksCheckArrayOutput) ToGetVbrHealthChecksCheckArrayOutputWithContext

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

type GetVbrHealthChecksCheckInput

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

type GetVbrHealthChecksCheckOutput struct{ *pulumi.OutputState }

func (GetVbrHealthChecksCheckOutput) CenId

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

func (GetVbrHealthChecksCheckOutput) ElementType

func (GetVbrHealthChecksCheckOutput) HealthCheckInterval

func (o GetVbrHealthChecksCheckOutput) HealthCheckInterval() pulumi.IntOutput

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

func (GetVbrHealthChecksCheckOutput) HealthCheckSourceIp

func (o GetVbrHealthChecksCheckOutput) HealthCheckSourceIp() pulumi.StringOutput

The source IP address of the health check.

func (GetVbrHealthChecksCheckOutput) HealthCheckTargetIp

func (o GetVbrHealthChecksCheckOutput) HealthCheckTargetIp() pulumi.StringOutput

The destination IP address of the health check.

func (GetVbrHealthChecksCheckOutput) HealthyThreshold

func (o GetVbrHealthChecksCheckOutput) HealthyThreshold() pulumi.IntOutput

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

func (GetVbrHealthChecksCheckOutput) Id

The ID of the CEN VBR Heath Check.

func (GetVbrHealthChecksCheckOutput) ToGetVbrHealthChecksCheckOutput

func (o GetVbrHealthChecksCheckOutput) ToGetVbrHealthChecksCheckOutput() GetVbrHealthChecksCheckOutput

func (GetVbrHealthChecksCheckOutput) ToGetVbrHealthChecksCheckOutputWithContext

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

func (GetVbrHealthChecksCheckOutput) VbrInstanceId

The ID of the VBR instance.

func (GetVbrHealthChecksCheckOutput) VbrInstanceRegionId

func (o GetVbrHealthChecksCheckOutput) VbrInstanceRegionId() pulumi.StringOutput

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

type GetVbrHealthChecksOutputArgs

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

A collection of arguments for invoking getVbrHealthChecks.

func (GetVbrHealthChecksOutputArgs) ElementType

type GetVbrHealthChecksResult

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

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 GetVbrHealthChecksResultOutput

type GetVbrHealthChecksResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getVbrHealthChecks.

func (GetVbrHealthChecksResultOutput) CenId

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

func (GetVbrHealthChecksResultOutput) Checks

A list of CEN VBR Heath Checks. Each element contains the following attributes:

func (GetVbrHealthChecksResultOutput) ElementType

func (GetVbrHealthChecksResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetVbrHealthChecksResultOutput) Ids

A list of the CEN VBR Heath Check IDs.

func (GetVbrHealthChecksResultOutput) OutputFile

func (GetVbrHealthChecksResultOutput) ToGetVbrHealthChecksResultOutput

func (o GetVbrHealthChecksResultOutput) ToGetVbrHealthChecksResultOutput() GetVbrHealthChecksResultOutput

func (GetVbrHealthChecksResultOutput) ToGetVbrHealthChecksResultOutputWithContext

func (o GetVbrHealthChecksResultOutput) ToGetVbrHealthChecksResultOutputWithContext(ctx context.Context) GetVbrHealthChecksResultOutput

func (GetVbrHealthChecksResultOutput) VbrInstanceId

The ID of the VBR instance.

func (GetVbrHealthChecksResultOutput) VbrInstanceOwnerId

func (o GetVbrHealthChecksResultOutput) VbrInstanceOwnerId() pulumi.IntPtrOutput

func (GetVbrHealthChecksResultOutput) VbrInstanceRegionId

func (o GetVbrHealthChecksResultOutput) VbrInstanceRegionId() pulumi.StringOutput

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

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: attribute '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.StringOutput `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/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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

func (*Instance) ElementType() reflect.Type

func (*Instance) ToInstanceOutput

func (i *Instance) ToInstanceOutput() InstanceOutput

func (*Instance) ToInstanceOutputWithContext

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

type InstanceArgs

type InstanceArgs struct {
	// 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: attribute '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

type InstanceArray []InstanceInput

func (InstanceArray) ElementType

func (InstanceArray) ElementType() reflect.Type

func (InstanceArray) ToInstanceArrayOutput

func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArray) ToInstanceArrayOutputWithContext

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

type InstanceArrayInput

type InstanceArrayInput interface {
	pulumi.Input

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

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

InstanceArray{ InstanceArgs{...} }

type InstanceArrayOutput

type InstanceArrayOutput struct{ *pulumi.OutputState }

func (InstanceArrayOutput) ElementType

func (InstanceArrayOutput) ElementType() reflect.Type

func (InstanceArrayOutput) Index

func (InstanceArrayOutput) ToInstanceArrayOutput

func (o InstanceArrayOutput) ToInstanceArrayOutput() InstanceArrayOutput

func (InstanceArrayOutput) ToInstanceArrayOutputWithContext

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

type 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/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

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

func (*InstanceAttachment) ElementType() reflect.Type

func (*InstanceAttachment) ToInstanceAttachmentOutput

func (i *InstanceAttachment) ToInstanceAttachmentOutput() InstanceAttachmentOutput

func (*InstanceAttachment) ToInstanceAttachmentOutputWithContext

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

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

type InstanceAttachmentArray []InstanceAttachmentInput

func (InstanceAttachmentArray) ElementType

func (InstanceAttachmentArray) ElementType() reflect.Type

func (InstanceAttachmentArray) ToInstanceAttachmentArrayOutput

func (i InstanceAttachmentArray) ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput

func (InstanceAttachmentArray) ToInstanceAttachmentArrayOutputWithContext

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

type InstanceAttachmentArrayInput

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

type InstanceAttachmentArrayOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentArrayOutput) ElementType

func (InstanceAttachmentArrayOutput) Index

func (InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutput

func (o InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutput() InstanceAttachmentArrayOutput

func (InstanceAttachmentArrayOutput) ToInstanceAttachmentArrayOutputWithContext

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

type InstanceAttachmentInput

type InstanceAttachmentInput interface {
	pulumi.Input

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

type InstanceAttachmentMap

type InstanceAttachmentMap map[string]InstanceAttachmentInput

func (InstanceAttachmentMap) ElementType

func (InstanceAttachmentMap) ElementType() reflect.Type

func (InstanceAttachmentMap) ToInstanceAttachmentMapOutput

func (i InstanceAttachmentMap) ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput

func (InstanceAttachmentMap) ToInstanceAttachmentMapOutputWithContext

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

type InstanceAttachmentMapInput

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

type InstanceAttachmentMapOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentMapOutput) ElementType

func (InstanceAttachmentMapOutput) MapIndex

func (InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutput

func (o InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutput() InstanceAttachmentMapOutput

func (InstanceAttachmentMapOutput) ToInstanceAttachmentMapOutputWithContext

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

type InstanceAttachmentOutput

type InstanceAttachmentOutput struct{ *pulumi.OutputState }

func (InstanceAttachmentOutput) CenOwnerId

The account ID to which the CEN instance belongs.

func (InstanceAttachmentOutput) ChildInstanceId

func (o InstanceAttachmentOutput) ChildInstanceId() pulumi.StringOutput

The ID of the child instance to attach.

func (InstanceAttachmentOutput) ChildInstanceOwnerId

func (o InstanceAttachmentOutput) ChildInstanceOwnerId() pulumi.IntOutput

The uid of the child instance. Only used when attach a child instance of other account.

func (InstanceAttachmentOutput) ChildInstanceRegionId

func (o InstanceAttachmentOutput) ChildInstanceRegionId() pulumi.StringOutput

The region ID of the child instance to attach.

func (InstanceAttachmentOutput) ChildInstanceType

func (o InstanceAttachmentOutput) ChildInstanceType() pulumi.StringOutput

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

func (InstanceAttachmentOutput) ElementType

func (InstanceAttachmentOutput) ElementType() reflect.Type

func (InstanceAttachmentOutput) InstanceId

The ID of the CEN.

func (InstanceAttachmentOutput) Status

The associating status of the network.

func (InstanceAttachmentOutput) ToInstanceAttachmentOutput

func (o InstanceAttachmentOutput) ToInstanceAttachmentOutput() InstanceAttachmentOutput

func (InstanceAttachmentOutput) ToInstanceAttachmentOutputWithContext

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

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/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := alicloud.NewProvider(ctx, "account1", &alicloud.ProviderArgs{
			AccessKey: pulumi.String("access123"),
			SecretKey: pulumi.String("secret123"),
		})
		if err != nil {
			return err
		}
		_, err = alicloud.NewProvider(ctx, "account2", &alicloud.ProviderArgs{
			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

func (*InstanceGrant) ElementType() reflect.Type

func (*InstanceGrant) ToInstanceGrantOutput

func (i *InstanceGrant) ToInstanceGrantOutput() InstanceGrantOutput

func (*InstanceGrant) ToInstanceGrantOutputWithContext

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

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

type InstanceGrantArray []InstanceGrantInput

func (InstanceGrantArray) ElementType

func (InstanceGrantArray) ElementType() reflect.Type

func (InstanceGrantArray) ToInstanceGrantArrayOutput

func (i InstanceGrantArray) ToInstanceGrantArrayOutput() InstanceGrantArrayOutput

func (InstanceGrantArray) ToInstanceGrantArrayOutputWithContext

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

type InstanceGrantArrayInput

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

type InstanceGrantArrayOutput struct{ *pulumi.OutputState }

func (InstanceGrantArrayOutput) ElementType

func (InstanceGrantArrayOutput) ElementType() reflect.Type

func (InstanceGrantArrayOutput) Index

func (InstanceGrantArrayOutput) ToInstanceGrantArrayOutput

func (o InstanceGrantArrayOutput) ToInstanceGrantArrayOutput() InstanceGrantArrayOutput

func (InstanceGrantArrayOutput) ToInstanceGrantArrayOutputWithContext

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

type InstanceGrantInput

type InstanceGrantInput interface {
	pulumi.Input

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

type InstanceGrantMap

type InstanceGrantMap map[string]InstanceGrantInput

func (InstanceGrantMap) ElementType

func (InstanceGrantMap) ElementType() reflect.Type

func (InstanceGrantMap) ToInstanceGrantMapOutput

func (i InstanceGrantMap) ToInstanceGrantMapOutput() InstanceGrantMapOutput

func (InstanceGrantMap) ToInstanceGrantMapOutputWithContext

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

type InstanceGrantMapInput

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

type InstanceGrantMapOutput struct{ *pulumi.OutputState }

func (InstanceGrantMapOutput) ElementType

func (InstanceGrantMapOutput) ElementType() reflect.Type

func (InstanceGrantMapOutput) MapIndex

func (InstanceGrantMapOutput) ToInstanceGrantMapOutput

func (o InstanceGrantMapOutput) ToInstanceGrantMapOutput() InstanceGrantMapOutput

func (InstanceGrantMapOutput) ToInstanceGrantMapOutputWithContext

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

type InstanceGrantOutput

type InstanceGrantOutput struct{ *pulumi.OutputState }

func (InstanceGrantOutput) CenId

The ID of the CEN.

func (InstanceGrantOutput) CenOwnerId

func (o InstanceGrantOutput) CenOwnerId() pulumi.StringOutput

The owner UID of the CEN which the child instance granted to.

func (InstanceGrantOutput) ChildInstanceId

func (o InstanceGrantOutput) ChildInstanceId() pulumi.StringOutput

The ID of the child instance to grant.

func (InstanceGrantOutput) ElementType

func (InstanceGrantOutput) ElementType() reflect.Type

func (InstanceGrantOutput) ToInstanceGrantOutput

func (o InstanceGrantOutput) ToInstanceGrantOutput() InstanceGrantOutput

func (InstanceGrantOutput) ToInstanceGrantOutputWithContext

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

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

type InstanceInput interface {
	pulumi.Input

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

type InstanceMap

type InstanceMap map[string]InstanceInput

func (InstanceMap) ElementType

func (InstanceMap) ElementType() reflect.Type

func (InstanceMap) ToInstanceMapOutput

func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMap) ToInstanceMapOutputWithContext

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

type InstanceMapInput

type InstanceMapInput interface {
	pulumi.Input

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

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

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

type InstanceMapOutput

type InstanceMapOutput struct{ *pulumi.OutputState }

func (InstanceMapOutput) ElementType

func (InstanceMapOutput) ElementType() reflect.Type

func (InstanceMapOutput) MapIndex

func (InstanceMapOutput) ToInstanceMapOutput

func (o InstanceMapOutput) ToInstanceMapOutput() InstanceMapOutput

func (InstanceMapOutput) ToInstanceMapOutputWithContext

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

type InstanceOutput

type InstanceOutput struct{ *pulumi.OutputState }

func (InstanceOutput) CenInstanceName

func (o InstanceOutput) CenInstanceName() pulumi.StringOutput

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://.

func (InstanceOutput) Description

func (o InstanceOutput) Description() pulumi.StringPtrOutput

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://.

func (InstanceOutput) ElementType

func (InstanceOutput) ElementType() reflect.Type

func (InstanceOutput) Name deprecated

Field `name` has been deprecated from version 1.98.0. Use `cenInstanceName` instead.

Deprecated: attribute 'name' has been deprecated from version 1.98.0. Use 'cen_instance_name' instead.

func (InstanceOutput) ProtectionLevel

func (o InstanceOutput) ProtectionLevel() pulumi.StringOutput

Indicates the allowed level of CIDR block overlapping. Default value: `REDUCE`: Overlapping CIDR blocks are allowed. However, the overlapping CIDR blocks cannot be identical.

func (InstanceOutput) Status

func (o InstanceOutput) Status() pulumi.StringOutput

The Cen Instance current status.

func (InstanceOutput) Tags

func (o InstanceOutput) Tags() pulumi.MapOutput

A mapping of tags to assign to the resource.

func (InstanceOutput) ToInstanceOutput

func (o InstanceOutput) ToInstanceOutput() InstanceOutput

func (InstanceOutput) ToInstanceOutputWithContext

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

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: attribute '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

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/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

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

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

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

func (*PrivateZone) ElementType() reflect.Type

func (*PrivateZone) ToPrivateZoneOutput

func (i *PrivateZone) ToPrivateZoneOutput() PrivateZoneOutput

func (*PrivateZone) ToPrivateZoneOutputWithContext

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

type PrivateZoneArgs

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

func (PrivateZoneArgs) ElementType() reflect.Type

type PrivateZoneArray

type PrivateZoneArray []PrivateZoneInput

func (PrivateZoneArray) ElementType

func (PrivateZoneArray) ElementType() reflect.Type

func (PrivateZoneArray) ToPrivateZoneArrayOutput

func (i PrivateZoneArray) ToPrivateZoneArrayOutput() PrivateZoneArrayOutput

func (PrivateZoneArray) ToPrivateZoneArrayOutputWithContext

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

type PrivateZoneArrayInput

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

type PrivateZoneArrayOutput struct{ *pulumi.OutputState }

func (PrivateZoneArrayOutput) ElementType

func (PrivateZoneArrayOutput) ElementType() reflect.Type

func (PrivateZoneArrayOutput) Index

func (PrivateZoneArrayOutput) ToPrivateZoneArrayOutput

func (o PrivateZoneArrayOutput) ToPrivateZoneArrayOutput() PrivateZoneArrayOutput

func (PrivateZoneArrayOutput) ToPrivateZoneArrayOutputWithContext

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

type PrivateZoneInput

type PrivateZoneInput interface {
	pulumi.Input

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

type PrivateZoneMap

type PrivateZoneMap map[string]PrivateZoneInput

func (PrivateZoneMap) ElementType

func (PrivateZoneMap) ElementType() reflect.Type

func (PrivateZoneMap) ToPrivateZoneMapOutput

func (i PrivateZoneMap) ToPrivateZoneMapOutput() PrivateZoneMapOutput

func (PrivateZoneMap) ToPrivateZoneMapOutputWithContext

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

type PrivateZoneMapInput

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

type PrivateZoneMapOutput struct{ *pulumi.OutputState }

func (PrivateZoneMapOutput) ElementType

func (PrivateZoneMapOutput) ElementType() reflect.Type

func (PrivateZoneMapOutput) MapIndex

func (PrivateZoneMapOutput) ToPrivateZoneMapOutput

func (o PrivateZoneMapOutput) ToPrivateZoneMapOutput() PrivateZoneMapOutput

func (PrivateZoneMapOutput) ToPrivateZoneMapOutputWithContext

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

type PrivateZoneOutput

type PrivateZoneOutput struct{ *pulumi.OutputState }

func (PrivateZoneOutput) AccessRegionId

func (o PrivateZoneOutput) AccessRegionId() pulumi.StringOutput

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

func (PrivateZoneOutput) CenId

The ID of the CEN instance.

func (PrivateZoneOutput) ElementType

func (PrivateZoneOutput) ElementType() reflect.Type

func (PrivateZoneOutput) HostRegionId

func (o PrivateZoneOutput) HostRegionId() pulumi.StringOutput

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

func (PrivateZoneOutput) HostVpcId

func (o PrivateZoneOutput) HostVpcId() pulumi.StringOutput

The VPC that belongs to the service region.

func (PrivateZoneOutput) Status

The status of the PrivateZone service. Valid values: ["Creating", "Active", "Deleting"].

func (PrivateZoneOutput) ToPrivateZoneOutput

func (o PrivateZoneOutput) ToPrivateZoneOutput() PrivateZoneOutput

func (PrivateZoneOutput) ToPrivateZoneOutputWithContext

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

type PrivateZoneState

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

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/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/go/alicloud/ecs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/ecs"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := alicloud.NewProvider(ctx, "hz", &alicloud.ProviderArgs{
			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
		}
		defaultZones, err := alicloud.GetZones(ctx, &GetZonesArgs{
			AvailableDiskCategory:     pulumi.StringRef("cloud_efficiency"),
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		defaultInstanceTypes, err := ecs.GetInstanceTypes(ctx, &ecs.GetInstanceTypesArgs{
			AvailabilityZone: pulumi.StringRef(defaultZones.Zones[0].Id),
			CpuCoreCount:     pulumi.IntRef(1),
			MemorySize:       pulumi.Float64Ref(2),
		}, nil)
		if err != nil {
			return err
		}
		defaultImages, err := ecs.GetImages(ctx, &ecs.GetImagesArgs{
			NameRegex:  pulumi.StringRef("^ubuntu_18.*64"),
			MostRecent: pulumi.BoolRef(true),
			Owners:     pulumi.StringRef("system"),
		}, 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"),
			ZoneId:      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

func (*RouteEntry) ElementType() reflect.Type

func (*RouteEntry) ToRouteEntryOutput

func (i *RouteEntry) ToRouteEntryOutput() RouteEntryOutput

func (*RouteEntry) ToRouteEntryOutputWithContext

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

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

type RouteEntryArray []RouteEntryInput

func (RouteEntryArray) ElementType

func (RouteEntryArray) ElementType() reflect.Type

func (RouteEntryArray) ToRouteEntryArrayOutput

func (i RouteEntryArray) ToRouteEntryArrayOutput() RouteEntryArrayOutput

func (RouteEntryArray) ToRouteEntryArrayOutputWithContext

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

type RouteEntryArrayInput

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

type RouteEntryArrayOutput struct{ *pulumi.OutputState }

func (RouteEntryArrayOutput) ElementType

func (RouteEntryArrayOutput) ElementType() reflect.Type

func (RouteEntryArrayOutput) Index

func (RouteEntryArrayOutput) ToRouteEntryArrayOutput

func (o RouteEntryArrayOutput) ToRouteEntryArrayOutput() RouteEntryArrayOutput

func (RouteEntryArrayOutput) ToRouteEntryArrayOutputWithContext

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

type RouteEntryInput

type RouteEntryInput interface {
	pulumi.Input

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

type RouteEntryMap

type RouteEntryMap map[string]RouteEntryInput

func (RouteEntryMap) ElementType

func (RouteEntryMap) ElementType() reflect.Type

func (RouteEntryMap) ToRouteEntryMapOutput

func (i RouteEntryMap) ToRouteEntryMapOutput() RouteEntryMapOutput

func (RouteEntryMap) ToRouteEntryMapOutputWithContext

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

type RouteEntryMapInput

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

type RouteEntryMapOutput struct{ *pulumi.OutputState }

func (RouteEntryMapOutput) ElementType

func (RouteEntryMapOutput) ElementType() reflect.Type

func (RouteEntryMapOutput) MapIndex

func (RouteEntryMapOutput) ToRouteEntryMapOutput

func (o RouteEntryMapOutput) ToRouteEntryMapOutput() RouteEntryMapOutput

func (RouteEntryMapOutput) ToRouteEntryMapOutputWithContext

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

type RouteEntryOutput

type RouteEntryOutput struct{ *pulumi.OutputState }

func (RouteEntryOutput) CidrBlock

func (o RouteEntryOutput) CidrBlock() pulumi.StringOutput

The destination CIDR block of the route entry to publish.

func (RouteEntryOutput) ElementType

func (RouteEntryOutput) ElementType() reflect.Type

func (RouteEntryOutput) InstanceId

func (o RouteEntryOutput) InstanceId() pulumi.StringOutput

The ID of the CEN.

func (RouteEntryOutput) RouteTableId

func (o RouteEntryOutput) RouteTableId() pulumi.StringOutput

The route table of the attached VBR or VPC.

func (RouteEntryOutput) ToRouteEntryOutput

func (o RouteEntryOutput) ToRouteEntryOutput() RouteEntryOutput

func (RouteEntryOutput) ToRouteEntryOutputWithContext

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

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

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"`
	// ID of the RouteMap. It is available in 1.161.0+.
	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 routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
	TransitRouterRouteTableId pulumi.StringOutput `pulumi:"transitRouterRouteTableId"`
	// 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/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", nil)
		if err != nil {
			return err
		}
		_, err = alicloud.NewProvider(ctx, "vpc00Region", &alicloud.ProviderArgs{
			Region: pulumi.String("cn-hangzhou"),
		})
		if err != nil {
			return err
		}
		_, err = alicloud.NewProvider(ctx, "vpc01Region", &alicloud.ProviderArgs{
			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 <cen_id>:<route_map_id>.

```

func GetRouteMap

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

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

func (*RouteMap) ElementType() reflect.Type

func (*RouteMap) ToRouteMapOutput

func (i *RouteMap) ToRouteMapOutput() RouteMapOutput

func (*RouteMap) ToRouteMapOutputWithContext

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

type RouteMapArgs

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 routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
	TransitRouterRouteTableId pulumi.StringPtrInput
	// 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

func (RouteMapArgs) ElementType() reflect.Type

type RouteMapArray

type RouteMapArray []RouteMapInput

func (RouteMapArray) ElementType

func (RouteMapArray) ElementType() reflect.Type

func (RouteMapArray) ToRouteMapArrayOutput

func (i RouteMapArray) ToRouteMapArrayOutput() RouteMapArrayOutput

func (RouteMapArray) ToRouteMapArrayOutputWithContext

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

type RouteMapArrayInput

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

type RouteMapArrayOutput struct{ *pulumi.OutputState }

func (RouteMapArrayOutput) ElementType

func (RouteMapArrayOutput) ElementType() reflect.Type

func (RouteMapArrayOutput) Index

func (RouteMapArrayOutput) ToRouteMapArrayOutput

func (o RouteMapArrayOutput) ToRouteMapArrayOutput() RouteMapArrayOutput

func (RouteMapArrayOutput) ToRouteMapArrayOutputWithContext

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

type RouteMapInput

type RouteMapInput interface {
	pulumi.Input

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

type RouteMapMap

type RouteMapMap map[string]RouteMapInput

func (RouteMapMap) ElementType

func (RouteMapMap) ElementType() reflect.Type

func (RouteMapMap) ToRouteMapMapOutput

func (i RouteMapMap) ToRouteMapMapOutput() RouteMapMapOutput

func (RouteMapMap) ToRouteMapMapOutputWithContext

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

type RouteMapMapInput

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

type RouteMapMapOutput struct{ *pulumi.OutputState }

func (RouteMapMapOutput) ElementType

func (RouteMapMapOutput) ElementType() reflect.Type

func (RouteMapMapOutput) MapIndex

func (RouteMapMapOutput) ToRouteMapMapOutput

func (o RouteMapMapOutput) ToRouteMapMapOutput() RouteMapMapOutput

func (RouteMapMapOutput) ToRouteMapMapOutputWithContext

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

type RouteMapOutput

type RouteMapOutput struct{ *pulumi.OutputState }

func (RouteMapOutput) AsPathMatchMode

func (o RouteMapOutput) AsPathMatchMode() pulumi.StringPtrOutput

A match statement. It indicates the mode in which the AS path attribute is matched. Valid values: ["Include", "Complete"].

func (RouteMapOutput) CenId

The ID of the CEN instance.

func (RouteMapOutput) CenRegionId

func (o RouteMapOutput) CenRegionId() pulumi.StringOutput

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

func (RouteMapOutput) CidrMatchMode

func (o RouteMapOutput) CidrMatchMode() pulumi.StringPtrOutput

A match statement. It indicates the mode in which the prefix attribute is matched. Valid values: ["Include", "Complete"].

func (RouteMapOutput) CommunityMatchMode

func (o RouteMapOutput) CommunityMatchMode() pulumi.StringPtrOutput

A match statement. It indicates the mode in which the community attribute is matched. Valid values: ["Include", "Complete"].

func (RouteMapOutput) CommunityOperateMode

func (o RouteMapOutput) CommunityOperateMode() pulumi.StringPtrOutput

An action statement. It indicates the mode in which the community attribute is operated. Valid values: ["Additive", "Replace"].

func (RouteMapOutput) Description

func (o RouteMapOutput) Description() pulumi.StringPtrOutput

The description of the route map.

func (RouteMapOutput) DestinationChildInstanceTypes

func (o RouteMapOutput) DestinationChildInstanceTypes() pulumi.StringArrayOutput

A match statement that indicates the list of destination instance types. Valid values: ["VPC", "VBR", "CCN"].

func (RouteMapOutput) DestinationCidrBlocks

func (o RouteMapOutput) DestinationCidrBlocks() pulumi.StringArrayOutput

A match statement that indicates the prefix list. The prefix is in the CIDR format. You can enter a maximum of 32 CIDR blocks.

func (RouteMapOutput) DestinationInstanceIds

func (o RouteMapOutput) DestinationInstanceIds() pulumi.StringArrayOutput

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

func (RouteMapOutput) DestinationInstanceIdsReverseMatch

func (o RouteMapOutput) DestinationInstanceIdsReverseMatch() pulumi.BoolPtrOutput

Indicates whether to enable the reverse match method for the DestinationInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".

func (RouteMapOutput) DestinationRouteTableIds

func (o RouteMapOutput) DestinationRouteTableIds() pulumi.StringArrayOutput

A match statement that indicates the list of IDs of the destination route tables. You can enter a maximum of 32 route table IDs.

func (RouteMapOutput) ElementType

func (RouteMapOutput) ElementType() reflect.Type

func (RouteMapOutput) MapResult

func (o RouteMapOutput) MapResult() pulumi.StringOutput

The action that is performed to a route if the route matches all the match conditions. Valid values: ["Permit", "Deny"].

func (RouteMapOutput) MatchAsns

func (o RouteMapOutput) MatchAsns() pulumi.StringArrayOutput

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.

func (RouteMapOutput) MatchCommunitySets

func (o RouteMapOutput) MatchCommunitySets() pulumi.StringArrayOutput

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.

func (RouteMapOutput) NextPriority

func (o RouteMapOutput) NextPriority() pulumi.IntPtrOutput

The priority of the next route map that is associated with the current route map. Value range: 1 to 100.

func (RouteMapOutput) OperateCommunitySets

func (o RouteMapOutput) OperateCommunitySets() pulumi.StringArrayOutput

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.

func (RouteMapOutput) Preference

func (o RouteMapOutput) Preference() pulumi.IntPtrOutput

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.

func (RouteMapOutput) PrependAsPaths

func (o RouteMapOutput) PrependAsPaths() pulumi.StringArrayOutput

An action statement that indicates an AS path is prepended when the regional gateway receives or advertises a route.

func (RouteMapOutput) Priority

func (o RouteMapOutput) Priority() pulumi.IntOutput

The priority of the route map. Value range: 1 to 100. A lower value indicates a higher priority.

func (RouteMapOutput) RouteMapId

func (o RouteMapOutput) RouteMapId() pulumi.StringOutput

ID of the RouteMap. It is available in 1.161.0+.

func (RouteMapOutput) RouteTypes

func (o RouteMapOutput) RouteTypes() pulumi.StringArrayOutput

A match statement that indicates the list of route types. Valid values: ["System", "Custom", "BGP"].

func (RouteMapOutput) SourceChildInstanceTypes

func (o RouteMapOutput) SourceChildInstanceTypes() pulumi.StringArrayOutput

A match statement that indicates the list of source instance types. Valid values: ["VPC", "VBR", "CCN"].

func (RouteMapOutput) SourceInstanceIds

func (o RouteMapOutput) SourceInstanceIds() pulumi.StringArrayOutput

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

func (RouteMapOutput) SourceInstanceIdsReverseMatch

func (o RouteMapOutput) SourceInstanceIdsReverseMatch() pulumi.BoolPtrOutput

Indicates whether to enable the reverse match method for the SourceInstanceIds match condition. Valid values: ["false", "true"]. Default to "false".

func (RouteMapOutput) SourceRegionIds

func (o RouteMapOutput) SourceRegionIds() pulumi.StringArrayOutput

A match statement that indicates the list of IDs of the source regions. You can enter a maximum of 32 region IDs.

func (RouteMapOutput) SourceRouteTableIds

func (o RouteMapOutput) SourceRouteTableIds() pulumi.StringArrayOutput

A match statement that indicates the list of IDs of the source route tables. You can enter a maximum of 32 route table IDs.

func (RouteMapOutput) Status

func (o RouteMapOutput) Status() pulumi.StringOutput

(Computed) The status of route map. Valid values: ["Creating", "Active", "Deleting"].

func (RouteMapOutput) ToRouteMapOutput

func (o RouteMapOutput) ToRouteMapOutput() RouteMapOutput

func (RouteMapOutput) ToRouteMapOutputWithContext

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

func (RouteMapOutput) TransitRouterRouteTableId

func (o RouteMapOutput) TransitRouterRouteTableId() pulumi.StringOutput

The routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.

func (RouteMapOutput) TransmitDirection

func (o RouteMapOutput) TransmitDirection() pulumi.StringOutput

The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].

type RouteMapState

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
	// ID of the RouteMap. It is available in 1.161.0+.
	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 routing table ID of the forwarding router. If you do not enter the routing table ID, the routing policy is automatically associated with the default routing table of the forwarding router.
	TransitRouterRouteTableId pulumi.StringPtrInput
	// The direction in which the route map is applied. Valid values: ["RegionIn", "RegionOut"].
	TransmitDirection pulumi.StringPtrInput
}

func (RouteMapState) ElementType

func (RouteMapState) ElementType() reflect.Type

type RouteService

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/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/vpc"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-test"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		exampleNetworks, err := vpc.GetNetworks(ctx, &vpc.GetNetworksArgs{
			IsDefault: pulumi.BoolRef(true),
		}, 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

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

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

func (*RouteService) ElementType() reflect.Type

func (*RouteService) ToRouteServiceOutput

func (i *RouteService) ToRouteServiceOutput() RouteServiceOutput

func (*RouteService) ToRouteServiceOutputWithContext

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

type RouteServiceArgs

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

func (RouteServiceArgs) ElementType() reflect.Type

type RouteServiceArray

type RouteServiceArray []RouteServiceInput

func (RouteServiceArray) ElementType

func (RouteServiceArray) ElementType() reflect.Type

func (RouteServiceArray) ToRouteServiceArrayOutput

func (i RouteServiceArray) ToRouteServiceArrayOutput() RouteServiceArrayOutput

func (RouteServiceArray) ToRouteServiceArrayOutputWithContext

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

type RouteServiceArrayInput

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

type RouteServiceArrayOutput struct{ *pulumi.OutputState }

func (RouteServiceArrayOutput) ElementType

func (RouteServiceArrayOutput) ElementType() reflect.Type

func (RouteServiceArrayOutput) Index

func (RouteServiceArrayOutput) ToRouteServiceArrayOutput

func (o RouteServiceArrayOutput) ToRouteServiceArrayOutput() RouteServiceArrayOutput

func (RouteServiceArrayOutput) ToRouteServiceArrayOutputWithContext

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

type RouteServiceInput

type RouteServiceInput interface {
	pulumi.Input

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

type RouteServiceMap

type RouteServiceMap map[string]RouteServiceInput

func (RouteServiceMap) ElementType

func (RouteServiceMap) ElementType() reflect.Type

func (RouteServiceMap) ToRouteServiceMapOutput

func (i RouteServiceMap) ToRouteServiceMapOutput() RouteServiceMapOutput

func (RouteServiceMap) ToRouteServiceMapOutputWithContext

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

type RouteServiceMapInput

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

type RouteServiceMapOutput struct{ *pulumi.OutputState }

func (RouteServiceMapOutput) ElementType

func (RouteServiceMapOutput) ElementType() reflect.Type

func (RouteServiceMapOutput) MapIndex

func (RouteServiceMapOutput) ToRouteServiceMapOutput

func (o RouteServiceMapOutput) ToRouteServiceMapOutput() RouteServiceMapOutput

func (RouteServiceMapOutput) ToRouteServiceMapOutputWithContext

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

type RouteServiceOutput

type RouteServiceOutput struct{ *pulumi.OutputState }

func (RouteServiceOutput) AccessRegionId

func (o RouteServiceOutput) AccessRegionId() pulumi.StringOutput

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

func (RouteServiceOutput) CenId

The ID of the CEN instance.

func (RouteServiceOutput) Description

func (o RouteServiceOutput) Description() pulumi.StringPtrOutput

The description of the cloud service.

func (RouteServiceOutput) ElementType

func (RouteServiceOutput) ElementType() reflect.Type

func (RouteServiceOutput) Host

The domain name or IP address of the cloud service.

func (RouteServiceOutput) HostRegionId

func (o RouteServiceOutput) HostRegionId() pulumi.StringOutput

The region of the cloud service.

func (RouteServiceOutput) HostVpcId

func (o RouteServiceOutput) HostVpcId() pulumi.StringOutput

The VPC associated with the cloud service.

func (RouteServiceOutput) Status

The status of the cloud service.

func (RouteServiceOutput) ToRouteServiceOutput

func (o RouteServiceOutput) ToRouteServiceOutput() RouteServiceOutput

func (RouteServiceOutput) ToRouteServiceOutputWithContext

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

type RouteServiceState

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

func (RouteServiceState) ElementType() reflect.Type

type TrafficMarkingPolicy

type TrafficMarkingPolicy struct {
	pulumi.CustomResourceState

	// The description of the Traffic Marking Policy. The description must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The dry run.
	DryRun pulumi.BoolPtrOutput `pulumi:"dryRun"`
	// The DSCP(Differentiated Services Code Point) of the Traffic Marking Policy. Value range: 0~63.
	MarkingDscp pulumi.IntOutput `pulumi:"markingDscp"`
	// The Priority of the Traffic Marking Policy. Value range: 1~100.
	Priority pulumi.IntOutput `pulumi:"priority"`
	// The status of the resource.
	Status pulumi.StringOutput `pulumi:"status"`
	// The ID of the Traffic Marking Policy.
	TrafficMarkingPolicyId pulumi.StringOutput `pulumi:"trafficMarkingPolicyId"`
	// The name of the Traffic Marking Policy. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).
	TrafficMarkingPolicyName pulumi.StringPtrOutput `pulumi:"trafficMarkingPolicyName"`
	// The ID of the transit router.
	TransitRouterId pulumi.StringOutput `pulumi:"transitRouterId"`
}

Provides a Cloud Enterprise Network (CEN) Traffic Marking Policy resource.

For information about Cloud Enterprise Network (CEN) Traffic Marking Policy and how to use it, see [What is Traffic Marking Policy](https://help.aliyun.com/document_detail/419025.html).

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

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleInstance, err := cen.NewInstance(ctx, "exampleInstance", &cen.InstanceArgs{
			CenInstanceName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		exampleTransitRouter, err := cen.NewTransitRouter(ctx, "exampleTransitRouter", &cen.TransitRouterArgs{
			CenId:             exampleInstance.ID(),
			TransitRouterName: pulumi.String("example_value"),
		})
		if err != nil {
			return err
		}
		_, err = cen.NewTrafficMarkingPolicy(ctx, "exampleTrafficMarkingPolicy", &cen.TrafficMarkingPolicyArgs{
			MarkingDscp:              pulumi.Int(1),
			Priority:                 pulumi.Int(1),
			TrafficMarkingPolicyName: pulumi.String("example_value"),
			TransitRouterId:          exampleTransitRouter.TransitRouterId,
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

Cloud Enterprise Network (CEN) Traffic Marking Policy can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/trafficMarkingPolicy:TrafficMarkingPolicy example <transit_router_id>:<traffic_marking_policy_id>

```

func GetTrafficMarkingPolicy

func GetTrafficMarkingPolicy(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TrafficMarkingPolicyState, opts ...pulumi.ResourceOption) (*TrafficMarkingPolicy, error)

GetTrafficMarkingPolicy gets an existing TrafficMarkingPolicy 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 NewTrafficMarkingPolicy

func NewTrafficMarkingPolicy(ctx *pulumi.Context,
	name string, args *TrafficMarkingPolicyArgs, opts ...pulumi.ResourceOption) (*TrafficMarkingPolicy, error)

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

func (*TrafficMarkingPolicy) ElementType

func (*TrafficMarkingPolicy) ElementType() reflect.Type

func (*TrafficMarkingPolicy) ToTrafficMarkingPolicyOutput

func (i *TrafficMarkingPolicy) ToTrafficMarkingPolicyOutput() TrafficMarkingPolicyOutput

func (*TrafficMarkingPolicy) ToTrafficMarkingPolicyOutputWithContext

func (i *TrafficMarkingPolicy) ToTrafficMarkingPolicyOutputWithContext(ctx context.Context) TrafficMarkingPolicyOutput

type TrafficMarkingPolicyArgs

type TrafficMarkingPolicyArgs struct {
	// The description of the Traffic Marking Policy. The description must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).
	Description pulumi.StringPtrInput
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The DSCP(Differentiated Services Code Point) of the Traffic Marking Policy. Value range: 0~63.
	MarkingDscp pulumi.IntInput
	// The Priority of the Traffic Marking Policy. Value range: 1~100.
	Priority pulumi.IntInput
	// The name of the Traffic Marking Policy. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).
	TrafficMarkingPolicyName pulumi.StringPtrInput
	// The ID of the transit router.
	TransitRouterId pulumi.StringInput
}

The set of arguments for constructing a TrafficMarkingPolicy resource.

func (TrafficMarkingPolicyArgs) ElementType

func (TrafficMarkingPolicyArgs) ElementType() reflect.Type

type TrafficMarkingPolicyArray

type TrafficMarkingPolicyArray []TrafficMarkingPolicyInput

func (TrafficMarkingPolicyArray) ElementType

func (TrafficMarkingPolicyArray) ElementType() reflect.Type

func (TrafficMarkingPolicyArray) ToTrafficMarkingPolicyArrayOutput

func (i TrafficMarkingPolicyArray) ToTrafficMarkingPolicyArrayOutput() TrafficMarkingPolicyArrayOutput

func (TrafficMarkingPolicyArray) ToTrafficMarkingPolicyArrayOutputWithContext

func (i TrafficMarkingPolicyArray) ToTrafficMarkingPolicyArrayOutputWithContext(ctx context.Context) TrafficMarkingPolicyArrayOutput

type TrafficMarkingPolicyArrayInput

type TrafficMarkingPolicyArrayInput interface {
	pulumi.Input

	ToTrafficMarkingPolicyArrayOutput() TrafficMarkingPolicyArrayOutput
	ToTrafficMarkingPolicyArrayOutputWithContext(context.Context) TrafficMarkingPolicyArrayOutput
}

TrafficMarkingPolicyArrayInput is an input type that accepts TrafficMarkingPolicyArray and TrafficMarkingPolicyArrayOutput values. You can construct a concrete instance of `TrafficMarkingPolicyArrayInput` via:

TrafficMarkingPolicyArray{ TrafficMarkingPolicyArgs{...} }

type TrafficMarkingPolicyArrayOutput

type TrafficMarkingPolicyArrayOutput struct{ *pulumi.OutputState }

func (TrafficMarkingPolicyArrayOutput) ElementType

func (TrafficMarkingPolicyArrayOutput) Index

func (TrafficMarkingPolicyArrayOutput) ToTrafficMarkingPolicyArrayOutput

func (o TrafficMarkingPolicyArrayOutput) ToTrafficMarkingPolicyArrayOutput() TrafficMarkingPolicyArrayOutput

func (TrafficMarkingPolicyArrayOutput) ToTrafficMarkingPolicyArrayOutputWithContext

func (o TrafficMarkingPolicyArrayOutput) ToTrafficMarkingPolicyArrayOutputWithContext(ctx context.Context) TrafficMarkingPolicyArrayOutput

type TrafficMarkingPolicyInput

type TrafficMarkingPolicyInput interface {
	pulumi.Input

	ToTrafficMarkingPolicyOutput() TrafficMarkingPolicyOutput
	ToTrafficMarkingPolicyOutputWithContext(ctx context.Context) TrafficMarkingPolicyOutput
}

type TrafficMarkingPolicyMap

type TrafficMarkingPolicyMap map[string]TrafficMarkingPolicyInput

func (TrafficMarkingPolicyMap) ElementType

func (TrafficMarkingPolicyMap) ElementType() reflect.Type

func (TrafficMarkingPolicyMap) ToTrafficMarkingPolicyMapOutput

func (i TrafficMarkingPolicyMap) ToTrafficMarkingPolicyMapOutput() TrafficMarkingPolicyMapOutput

func (TrafficMarkingPolicyMap) ToTrafficMarkingPolicyMapOutputWithContext

func (i TrafficMarkingPolicyMap) ToTrafficMarkingPolicyMapOutputWithContext(ctx context.Context) TrafficMarkingPolicyMapOutput

type TrafficMarkingPolicyMapInput

type TrafficMarkingPolicyMapInput interface {
	pulumi.Input

	ToTrafficMarkingPolicyMapOutput() TrafficMarkingPolicyMapOutput
	ToTrafficMarkingPolicyMapOutputWithContext(context.Context) TrafficMarkingPolicyMapOutput
}

TrafficMarkingPolicyMapInput is an input type that accepts TrafficMarkingPolicyMap and TrafficMarkingPolicyMapOutput values. You can construct a concrete instance of `TrafficMarkingPolicyMapInput` via:

TrafficMarkingPolicyMap{ "key": TrafficMarkingPolicyArgs{...} }

type TrafficMarkingPolicyMapOutput

type TrafficMarkingPolicyMapOutput struct{ *pulumi.OutputState }

func (TrafficMarkingPolicyMapOutput) ElementType

func (TrafficMarkingPolicyMapOutput) MapIndex

func (TrafficMarkingPolicyMapOutput) ToTrafficMarkingPolicyMapOutput

func (o TrafficMarkingPolicyMapOutput) ToTrafficMarkingPolicyMapOutput() TrafficMarkingPolicyMapOutput

func (TrafficMarkingPolicyMapOutput) ToTrafficMarkingPolicyMapOutputWithContext

func (o TrafficMarkingPolicyMapOutput) ToTrafficMarkingPolicyMapOutputWithContext(ctx context.Context) TrafficMarkingPolicyMapOutput

type TrafficMarkingPolicyOutput

type TrafficMarkingPolicyOutput struct{ *pulumi.OutputState }

func (TrafficMarkingPolicyOutput) Description

The description of the Traffic Marking Policy. The description must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

func (TrafficMarkingPolicyOutput) DryRun

The dry run.

func (TrafficMarkingPolicyOutput) ElementType

func (TrafficMarkingPolicyOutput) ElementType() reflect.Type

func (TrafficMarkingPolicyOutput) MarkingDscp

The DSCP(Differentiated Services Code Point) of the Traffic Marking Policy. Value range: 0~63.

func (TrafficMarkingPolicyOutput) Priority

The Priority of the Traffic Marking Policy. Value range: 1~100.

func (TrafficMarkingPolicyOutput) Status

The status of the resource.

func (TrafficMarkingPolicyOutput) ToTrafficMarkingPolicyOutput

func (o TrafficMarkingPolicyOutput) ToTrafficMarkingPolicyOutput() TrafficMarkingPolicyOutput

func (TrafficMarkingPolicyOutput) ToTrafficMarkingPolicyOutputWithContext

func (o TrafficMarkingPolicyOutput) ToTrafficMarkingPolicyOutputWithContext(ctx context.Context) TrafficMarkingPolicyOutput

func (TrafficMarkingPolicyOutput) TrafficMarkingPolicyId

func (o TrafficMarkingPolicyOutput) TrafficMarkingPolicyId() pulumi.StringOutput

The ID of the Traffic Marking Policy.

func (TrafficMarkingPolicyOutput) TrafficMarkingPolicyName

func (o TrafficMarkingPolicyOutput) TrafficMarkingPolicyName() pulumi.StringPtrOutput

The name of the Traffic Marking Policy. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).

func (TrafficMarkingPolicyOutput) TransitRouterId

func (o TrafficMarkingPolicyOutput) TransitRouterId() pulumi.StringOutput

The ID of the transit router.

type TrafficMarkingPolicyState

type TrafficMarkingPolicyState struct {
	// The description of the Traffic Marking Policy. The description must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).
	Description pulumi.StringPtrInput
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The DSCP(Differentiated Services Code Point) of the Traffic Marking Policy. Value range: 0~63.
	MarkingDscp pulumi.IntPtrInput
	// The Priority of the Traffic Marking Policy. Value range: 1~100.
	Priority pulumi.IntPtrInput
	// The status of the resource.
	Status pulumi.StringPtrInput
	// The ID of the Traffic Marking Policy.
	TrafficMarkingPolicyId pulumi.StringPtrInput
	// The name of the Traffic Marking Policy. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, underscores (_), and hyphens (-).
	TrafficMarkingPolicyName pulumi.StringPtrInput
	// The ID of the transit router.
	TransitRouterId pulumi.StringPtrInput
}

func (TrafficMarkingPolicyState) ElementType

func (TrafficMarkingPolicyState) ElementType() reflect.Type

type TransitRouter

type TransitRouter struct {
	pulumi.CustomResourceState

	// The ID of the CEN.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// The dry run.
	DryRun pulumi.BoolPtrOutput `pulumi:"dryRun"`
	// The associating status of the Transit Router.
	Status pulumi.StringOutput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The description of the transit router.
	TransitRouterDescription pulumi.StringPtrOutput `pulumi:"transitRouterDescription"`
	// The transit router id of the transit router.
	TransitRouterId pulumi.StringOutput `pulumi:"transitRouterId"`
	// The name of the transit router.
	TransitRouterName pulumi.StringPtrOutput `pulumi:"transitRouterName"`
	// The Type of the Transit Router. Valid values: `Enterprise`, `Basic`.
	Type pulumi.StringOutput `pulumi:"type"`
}

Provides a CEN transit router resource that associate the transitRouter with the CEN instance.[What is Cen Transit Router](https://help.aliyun.com/document_detail/261169.html)

> **NOTE:** Available in 1.126.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-testAccCenTransitRouter"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", &cen.InstanceArgs{
			CenInstanceName: pulumi.String(name),
			Description:     pulumi.String("terraform01"),
		})
		if err != nil {
			return err
		}
		_, err = cen.NewTransitRouter(ctx, "defaultTransitRouter", &cen.TransitRouterArgs{
			TransitRouterName: pulumi.String(name),
			CenId:             defaultInstance.ID(),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import alicloud:cen/transitRouter:TransitRouter default cen-*****:tr-*******

```

func GetTransitRouter

func GetTransitRouter(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TransitRouterState, opts ...pulumi.ResourceOption) (*TransitRouter, error)

GetTransitRouter gets an existing TransitRouter 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 NewTransitRouter

func NewTransitRouter(ctx *pulumi.Context,
	name string, args *TransitRouterArgs, opts ...pulumi.ResourceOption) (*TransitRouter, error)

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

func (*TransitRouter) ElementType

func (*TransitRouter) ElementType() reflect.Type

func (*TransitRouter) ToTransitRouterOutput

func (i *TransitRouter) ToTransitRouterOutput() TransitRouterOutput

func (*TransitRouter) ToTransitRouterOutputWithContext

func (i *TransitRouter) ToTransitRouterOutputWithContext(ctx context.Context) TransitRouterOutput

type TransitRouterArgs

type TransitRouterArgs struct {
	// The ID of the CEN.
	CenId pulumi.StringInput
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The description of the transit router.
	TransitRouterDescription pulumi.StringPtrInput
	// The name of the transit router.
	TransitRouterName pulumi.StringPtrInput
}

The set of arguments for constructing a TransitRouter resource.

func (TransitRouterArgs) ElementType

func (TransitRouterArgs) ElementType() reflect.Type

type TransitRouterArray

type TransitRouterArray []TransitRouterInput

func (TransitRouterArray) ElementType

func (TransitRouterArray) ElementType() reflect.Type

func (TransitRouterArray) ToTransitRouterArrayOutput

func (i TransitRouterArray) ToTransitRouterArrayOutput() TransitRouterArrayOutput

func (TransitRouterArray) ToTransitRouterArrayOutputWithContext

func (i TransitRouterArray) ToTransitRouterArrayOutputWithContext(ctx context.Context) TransitRouterArrayOutput

type TransitRouterArrayInput

type TransitRouterArrayInput interface {
	pulumi.Input

	ToTransitRouterArrayOutput() TransitRouterArrayOutput
	ToTransitRouterArrayOutputWithContext(context.Context) TransitRouterArrayOutput
}

TransitRouterArrayInput is an input type that accepts TransitRouterArray and TransitRouterArrayOutput values. You can construct a concrete instance of `TransitRouterArrayInput` via:

TransitRouterArray{ TransitRouterArgs{...} }

type TransitRouterArrayOutput

type TransitRouterArrayOutput struct{ *pulumi.OutputState }

func (TransitRouterArrayOutput) ElementType

func (TransitRouterArrayOutput) ElementType() reflect.Type

func (TransitRouterArrayOutput) Index

func (TransitRouterArrayOutput) ToTransitRouterArrayOutput

func (o TransitRouterArrayOutput) ToTransitRouterArrayOutput() TransitRouterArrayOutput

func (TransitRouterArrayOutput) ToTransitRouterArrayOutputWithContext

func (o TransitRouterArrayOutput) ToTransitRouterArrayOutputWithContext(ctx context.Context) TransitRouterArrayOutput

type TransitRouterInput

type TransitRouterInput interface {
	pulumi.Input

	ToTransitRouterOutput() TransitRouterOutput
	ToTransitRouterOutputWithContext(ctx context.Context) TransitRouterOutput
}

type TransitRouterMap

type TransitRouterMap map[string]TransitRouterInput

func (TransitRouterMap) ElementType

func (TransitRouterMap) ElementType() reflect.Type

func (TransitRouterMap) ToTransitRouterMapOutput

func (i TransitRouterMap) ToTransitRouterMapOutput() TransitRouterMapOutput

func (TransitRouterMap) ToTransitRouterMapOutputWithContext

func (i TransitRouterMap) ToTransitRouterMapOutputWithContext(ctx context.Context) TransitRouterMapOutput

type TransitRouterMapInput

type TransitRouterMapInput interface {
	pulumi.Input

	ToTransitRouterMapOutput() TransitRouterMapOutput
	ToTransitRouterMapOutputWithContext(context.Context) TransitRouterMapOutput
}

TransitRouterMapInput is an input type that accepts TransitRouterMap and TransitRouterMapOutput values. You can construct a concrete instance of `TransitRouterMapInput` via:

TransitRouterMap{ "key": TransitRouterArgs{...} }

type TransitRouterMapOutput

type TransitRouterMapOutput struct{ *pulumi.OutputState }

func (TransitRouterMapOutput) ElementType

func (TransitRouterMapOutput) ElementType() reflect.Type

func (TransitRouterMapOutput) MapIndex

func (TransitRouterMapOutput) ToTransitRouterMapOutput

func (o TransitRouterMapOutput) ToTransitRouterMapOutput() TransitRouterMapOutput

func (TransitRouterMapOutput) ToTransitRouterMapOutputWithContext

func (o TransitRouterMapOutput) ToTransitRouterMapOutputWithContext(ctx context.Context) TransitRouterMapOutput

type TransitRouterOutput

type TransitRouterOutput struct{ *pulumi.OutputState }

func (TransitRouterOutput) CenId

The ID of the CEN.

func (TransitRouterOutput) DryRun

The dry run.

func (TransitRouterOutput) ElementType

func (TransitRouterOutput) ElementType() reflect.Type

func (TransitRouterOutput) Status

The associating status of the Transit Router.

func (TransitRouterOutput) Tags

A mapping of tags to assign to the resource.

func (TransitRouterOutput) ToTransitRouterOutput

func (o TransitRouterOutput) ToTransitRouterOutput() TransitRouterOutput

func (TransitRouterOutput) ToTransitRouterOutputWithContext

func (o TransitRouterOutput) ToTransitRouterOutputWithContext(ctx context.Context) TransitRouterOutput

func (TransitRouterOutput) TransitRouterDescription

func (o TransitRouterOutput) TransitRouterDescription() pulumi.StringPtrOutput

The description of the transit router.

func (TransitRouterOutput) TransitRouterId

func (o TransitRouterOutput) TransitRouterId() pulumi.StringOutput

The transit router id of the transit router.

func (TransitRouterOutput) TransitRouterName

func (o TransitRouterOutput) TransitRouterName() pulumi.StringPtrOutput

The name of the transit router.

func (TransitRouterOutput) Type

The Type of the Transit Router. Valid values: `Enterprise`, `Basic`.

type TransitRouterPeerAttachment

type TransitRouterPeerAttachment struct {
	pulumi.CustomResourceState

	// Auto publish route enabled. The system default value is `false`.
	AutoPublishRouteEnabled pulumi.BoolPtrOutput `pulumi:"autoPublishRouteEnabled"`
	// The bandwidth of the bandwidth package.
	Bandwidth pulumi.IntPtrOutput `pulumi:"bandwidth"`
	// The method that is used to allocate bandwidth to the cross-region connection. Valid values: `BandwidthPackage` and `DataTransfer`.
	BandwidthType pulumi.StringOutput `pulumi:"bandwidthType"`
	// The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
	CenBandwidthPackageId pulumi.StringPtrOutput `pulumi:"cenBandwidthPackageId"`
	// The ID of the CEN.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// Whether to perform pre-check for this request, including permission, instance status verification, etc.
	DryRun pulumi.BoolPtrOutput `pulumi:"dryRun"`
	// The ID of the peer transit router.
	PeerTransitRouterId pulumi.StringOutput `pulumi:"peerTransitRouterId"`
	// The region ID of peer transit router.
	PeerTransitRouterRegionId pulumi.StringOutput `pulumi:"peerTransitRouterRegionId"`
	// The resource type to attachment. Only support `VR` and default value is `VR`.
	ResourceType pulumi.StringPtrOutput `pulumi:"resourceType"`
	// Whether to association route table. System default is `false`.
	RouteTableAssociationEnabled pulumi.BoolPtrOutput `pulumi:"routeTableAssociationEnabled"`
	// Whether to propagation route table. System default is `false`.
	RouteTablePropagationEnabled pulumi.BoolPtrOutput `pulumi:"routeTablePropagationEnabled"`
	// The associating status of the network.
	Status pulumi.StringOutput `pulumi:"status"`
	// The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with `http://` or `https://`.
	TransitRouterAttachmentDescription pulumi.StringPtrOutput `pulumi:"transitRouterAttachmentDescription"`
	// The ID of transit router attachment id.
	TransitRouterAttachmentId pulumi.StringOutput `pulumi:"transitRouterAttachmentId"`
	// The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
	TransitRouterAttachmentName pulumi.StringPtrOutput `pulumi:"transitRouterAttachmentName"`
	// The ID of the transit router to attach.
	TransitRouterId pulumi.StringPtrOutput `pulumi:"transitRouterId"`
}

Provides a CEN transit router peer attachment resource that associate the transit router with the CEN instance. [What is CEN transit router peer attachment](https://help.aliyun.com/document_detail/261363.html)

> **NOTE:** Available in 1.128.0+

## Example Usage

Basic Usage

```go package main

import (

"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		name := "tf-testAcccExample"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		_, err := alicloud.NewProvider(ctx, "us", &alicloud.ProviderArgs{
			Region: pulumi.String("us-east-1"),
		})
		if err != nil {
			return err
		}
		_, err = alicloud.NewProvider(ctx, "cn", &alicloud.ProviderArgs{
			Region: pulumi.String("cn-hangzhou"),
		})
		if err != nil {
			return err
		}
		defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", &cen.InstanceArgs{
			CenInstanceName: pulumi.String(name),
			ProtectionLevel: pulumi.String("REDUCED"),
		}, pulumi.Provider(alicloud.Cn))
		if err != nil {
			return err
		}
		defaultBandwidthPackage, err := cen.NewBandwidthPackage(ctx, "defaultBandwidthPackage", &cen.BandwidthPackageArgs{
			Bandwidth:               pulumi.Int(5),
			CenBandwidthPackageName: pulumi.String(name),
			GeographicRegionAId:     pulumi.String("China"),
			GeographicRegionBId:     pulumi.String("North-America"),
		})
		if err != nil {
			return err
		}
		defaultBandwidthPackageAttachment, err := cen.NewBandwidthPackageAttachment(ctx, "defaultBandwidthPackageAttachment", &cen.BandwidthPackageAttachmentArgs{
			InstanceId:         defaultInstance.ID(),
			BandwidthPackageId: defaultBandwidthPackage.ID(),
		}, pulumi.Provider(alicloud.Cn))
		if err != nil {
			return err
		}
		cnTransitRouter, err := cen.NewTransitRouter(ctx, "cnTransitRouter", &cen.TransitRouterArgs{
			CenId: defaultInstance.ID(),
		}, pulumi.Provider(alicloud.Cn), pulumi.DependsOn([]pulumi.Resource{
			defaultBandwidthPackageAttachment,
		}))
		if err != nil {
			return err
		}
		usTransitRouter, err := cen.NewTransitRouter(ctx, "usTransitRouter", &cen.TransitRouterArgs{
			CenId: defaultInstance.ID(),
		}, pulumi.Provider(alicloud.Us), pulumi.DependsOn([]pulumi.Resource{
			alicloud_cen_transit_router.Default_0,
		}))
		if err != nil {
			return err
		}
		_, err = cen.NewTransitRouterPeerAttachment(ctx, "defaultTransitRouterPeerAttachment", &cen.TransitRouterPeerAttachmentArgs{
			CenId:                              defaultInstance.ID(),
			TransitRouterId:                    cnTransitRouter.TransitRouterId,
			PeerTransitRouterRegionId:          pulumi.String("us-east-1"),
			PeerTransitRouterId:                usTransitRouter.TransitRouterId,
			CenBandwidthPackageId:              defaultBandwidthPackageAttachment.BandwidthPackageId,
			Bandwidth:                          pulumi.Int(5),
			TransitRouterAttachmentDescription: pulumi.String(name),
			TransitRouterAttachmentName:        pulumi.String(name),
		}, pulumi.Provider(alicloud.Cn))
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import alicloud:cen/transitRouterPeerAttachment:TransitRouterPeerAttachment example tr-********:tr-attach-*******

```

func GetTransitRouterPeerAttachment

func GetTransitRouterPeerAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TransitRouterPeerAttachmentState, opts ...pulumi.ResourceOption) (*TransitRouterPeerAttachment, error)

GetTransitRouterPeerAttachment gets an existing TransitRouterPeerAttachment 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 NewTransitRouterPeerAttachment

func NewTransitRouterPeerAttachment(ctx *pulumi.Context,
	name string, args *TransitRouterPeerAttachmentArgs, opts ...pulumi.ResourceOption) (*TransitRouterPeerAttachment, error)

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

func (*TransitRouterPeerAttachment) ElementType

func (*TransitRouterPeerAttachment) ElementType() reflect.Type

func (*TransitRouterPeerAttachment) ToTransitRouterPeerAttachmentOutput

func (i *TransitRouterPeerAttachment) ToTransitRouterPeerAttachmentOutput() TransitRouterPeerAttachmentOutput

func (*TransitRouterPeerAttachment) ToTransitRouterPeerAttachmentOutputWithContext

func (i *TransitRouterPeerAttachment) ToTransitRouterPeerAttachmentOutputWithContext(ctx context.Context) TransitRouterPeerAttachmentOutput

type TransitRouterPeerAttachmentArgs

type TransitRouterPeerAttachmentArgs struct {
	// Auto publish route enabled. The system default value is `false`.
	AutoPublishRouteEnabled pulumi.BoolPtrInput
	// The bandwidth of the bandwidth package.
	Bandwidth pulumi.IntPtrInput
	// The method that is used to allocate bandwidth to the cross-region connection. Valid values: `BandwidthPackage` and `DataTransfer`.
	BandwidthType pulumi.StringPtrInput
	// The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
	CenBandwidthPackageId pulumi.StringPtrInput
	// The ID of the CEN.
	CenId pulumi.StringInput
	// Whether to perform pre-check for this request, including permission, instance status verification, etc.
	DryRun pulumi.BoolPtrInput
	// The ID of the peer transit router.
	PeerTransitRouterId pulumi.StringInput
	// The region ID of peer transit router.
	PeerTransitRouterRegionId pulumi.StringInput
	// The resource type to attachment. Only support `VR` and default value is `VR`.
	ResourceType pulumi.StringPtrInput
	// Whether to association route table. System default is `false`.
	RouteTableAssociationEnabled pulumi.BoolPtrInput
	// Whether to propagation route table. System default is `false`.
	RouteTablePropagationEnabled pulumi.BoolPtrInput
	// The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with `http://` or `https://`.
	TransitRouterAttachmentDescription pulumi.StringPtrInput
	// The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
	TransitRouterAttachmentName pulumi.StringPtrInput
	// The ID of the transit router to attach.
	TransitRouterId pulumi.StringPtrInput
}

The set of arguments for constructing a TransitRouterPeerAttachment resource.

func (TransitRouterPeerAttachmentArgs) ElementType

type TransitRouterPeerAttachmentArray

type TransitRouterPeerAttachmentArray []TransitRouterPeerAttachmentInput

func (TransitRouterPeerAttachmentArray) ElementType

func (TransitRouterPeerAttachmentArray) ToTransitRouterPeerAttachmentArrayOutput

func (i TransitRouterPeerAttachmentArray) ToTransitRouterPeerAttachmentArrayOutput() TransitRouterPeerAttachmentArrayOutput

func (TransitRouterPeerAttachmentArray) ToTransitRouterPeerAttachmentArrayOutputWithContext

func (i TransitRouterPeerAttachmentArray) ToTransitRouterPeerAttachmentArrayOutputWithContext(ctx context.Context) TransitRouterPeerAttachmentArrayOutput

type TransitRouterPeerAttachmentArrayInput

type TransitRouterPeerAttachmentArrayInput interface {
	pulumi.Input

	ToTransitRouterPeerAttachmentArrayOutput() TransitRouterPeerAttachmentArrayOutput
	ToTransitRouterPeerAttachmentArrayOutputWithContext(context.Context) TransitRouterPeerAttachmentArrayOutput
}

TransitRouterPeerAttachmentArrayInput is an input type that accepts TransitRouterPeerAttachmentArray and TransitRouterPeerAttachmentArrayOutput values. You can construct a concrete instance of `TransitRouterPeerAttachmentArrayInput` via:

TransitRouterPeerAttachmentArray{ TransitRouterPeerAttachmentArgs{...} }

type TransitRouterPeerAttachmentArrayOutput

type TransitRouterPeerAttachmentArrayOutput struct{ *pulumi.OutputState }

func (TransitRouterPeerAttachmentArrayOutput) ElementType

func (TransitRouterPeerAttachmentArrayOutput) Index

func (TransitRouterPeerAttachmentArrayOutput) ToTransitRouterPeerAttachmentArrayOutput

func (o TransitRouterPeerAttachmentArrayOutput) ToTransitRouterPeerAttachmentArrayOutput() TransitRouterPeerAttachmentArrayOutput

func (TransitRouterPeerAttachmentArrayOutput) ToTransitRouterPeerAttachmentArrayOutputWithContext

func (o TransitRouterPeerAttachmentArrayOutput) ToTransitRouterPeerAttachmentArrayOutputWithContext(ctx context.Context) TransitRouterPeerAttachmentArrayOutput

type TransitRouterPeerAttachmentInput

type TransitRouterPeerAttachmentInput interface {
	pulumi.Input

	ToTransitRouterPeerAttachmentOutput() TransitRouterPeerAttachmentOutput
	ToTransitRouterPeerAttachmentOutputWithContext(ctx context.Context) TransitRouterPeerAttachmentOutput
}

type TransitRouterPeerAttachmentMap

type TransitRouterPeerAttachmentMap map[string]TransitRouterPeerAttachmentInput

func (TransitRouterPeerAttachmentMap) ElementType

func (TransitRouterPeerAttachmentMap) ToTransitRouterPeerAttachmentMapOutput

func (i TransitRouterPeerAttachmentMap) ToTransitRouterPeerAttachmentMapOutput() TransitRouterPeerAttachmentMapOutput

func (TransitRouterPeerAttachmentMap) ToTransitRouterPeerAttachmentMapOutputWithContext

func (i TransitRouterPeerAttachmentMap) ToTransitRouterPeerAttachmentMapOutputWithContext(ctx context.Context) TransitRouterPeerAttachmentMapOutput

type TransitRouterPeerAttachmentMapInput

type TransitRouterPeerAttachmentMapInput interface {
	pulumi.Input

	ToTransitRouterPeerAttachmentMapOutput() TransitRouterPeerAttachmentMapOutput
	ToTransitRouterPeerAttachmentMapOutputWithContext(context.Context) TransitRouterPeerAttachmentMapOutput
}

TransitRouterPeerAttachmentMapInput is an input type that accepts TransitRouterPeerAttachmentMap and TransitRouterPeerAttachmentMapOutput values. You can construct a concrete instance of `TransitRouterPeerAttachmentMapInput` via:

TransitRouterPeerAttachmentMap{ "key": TransitRouterPeerAttachmentArgs{...} }

type TransitRouterPeerAttachmentMapOutput

type TransitRouterPeerAttachmentMapOutput struct{ *pulumi.OutputState }

func (TransitRouterPeerAttachmentMapOutput) ElementType

func (TransitRouterPeerAttachmentMapOutput) MapIndex

func (TransitRouterPeerAttachmentMapOutput) ToTransitRouterPeerAttachmentMapOutput

func (o TransitRouterPeerAttachmentMapOutput) ToTransitRouterPeerAttachmentMapOutput() TransitRouterPeerAttachmentMapOutput

func (TransitRouterPeerAttachmentMapOutput) ToTransitRouterPeerAttachmentMapOutputWithContext

func (o TransitRouterPeerAttachmentMapOutput) ToTransitRouterPeerAttachmentMapOutputWithContext(ctx context.Context) TransitRouterPeerAttachmentMapOutput

type TransitRouterPeerAttachmentOutput

type TransitRouterPeerAttachmentOutput struct{ *pulumi.OutputState }

func (TransitRouterPeerAttachmentOutput) AutoPublishRouteEnabled

func (o TransitRouterPeerAttachmentOutput) AutoPublishRouteEnabled() pulumi.BoolPtrOutput

Auto publish route enabled. The system default value is `false`.

func (TransitRouterPeerAttachmentOutput) Bandwidth

The bandwidth of the bandwidth package.

func (TransitRouterPeerAttachmentOutput) BandwidthType

The method that is used to allocate bandwidth to the cross-region connection. Valid values: `BandwidthPackage` and `DataTransfer`.

func (TransitRouterPeerAttachmentOutput) CenBandwidthPackageId

func (o TransitRouterPeerAttachmentOutput) CenBandwidthPackageId() pulumi.StringPtrOutput

The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity

func (TransitRouterPeerAttachmentOutput) CenId

The ID of the CEN.

func (TransitRouterPeerAttachmentOutput) DryRun

Whether to perform pre-check for this request, including permission, instance status verification, etc.

func (TransitRouterPeerAttachmentOutput) ElementType

func (TransitRouterPeerAttachmentOutput) PeerTransitRouterId

func (o TransitRouterPeerAttachmentOutput) PeerTransitRouterId() pulumi.StringOutput

The ID of the peer transit router.

func (TransitRouterPeerAttachmentOutput) PeerTransitRouterRegionId

func (o TransitRouterPeerAttachmentOutput) PeerTransitRouterRegionId() pulumi.StringOutput

The region ID of peer transit router.

func (TransitRouterPeerAttachmentOutput) ResourceType

The resource type to attachment. Only support `VR` and default value is `VR`.

func (TransitRouterPeerAttachmentOutput) RouteTableAssociationEnabled

func (o TransitRouterPeerAttachmentOutput) RouteTableAssociationEnabled() pulumi.BoolPtrOutput

Whether to association route table. System default is `false`.

func (TransitRouterPeerAttachmentOutput) RouteTablePropagationEnabled

func (o TransitRouterPeerAttachmentOutput) RouteTablePropagationEnabled() pulumi.BoolPtrOutput

Whether to propagation route table. System default is `false`.

func (TransitRouterPeerAttachmentOutput) Status

The associating status of the network.

func (TransitRouterPeerAttachmentOutput) ToTransitRouterPeerAttachmentOutput

func (o TransitRouterPeerAttachmentOutput) ToTransitRouterPeerAttachmentOutput() TransitRouterPeerAttachmentOutput

func (TransitRouterPeerAttachmentOutput) ToTransitRouterPeerAttachmentOutputWithContext

func (o TransitRouterPeerAttachmentOutput) ToTransitRouterPeerAttachmentOutputWithContext(ctx context.Context) TransitRouterPeerAttachmentOutput

func (TransitRouterPeerAttachmentOutput) TransitRouterAttachmentDescription

func (o TransitRouterPeerAttachmentOutput) TransitRouterAttachmentDescription() pulumi.StringPtrOutput

The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with `http://` or `https://`.

func (TransitRouterPeerAttachmentOutput) TransitRouterAttachmentId

func (o TransitRouterPeerAttachmentOutput) TransitRouterAttachmentId() pulumi.StringOutput

The ID of transit router attachment id.

func (TransitRouterPeerAttachmentOutput) TransitRouterAttachmentName

func (o TransitRouterPeerAttachmentOutput) TransitRouterAttachmentName() pulumi.StringPtrOutput

The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)

func (TransitRouterPeerAttachmentOutput) TransitRouterId

The ID of the transit router to attach.

type TransitRouterPeerAttachmentState

type TransitRouterPeerAttachmentState struct {
	// Auto publish route enabled. The system default value is `false`.
	AutoPublishRouteEnabled pulumi.BoolPtrInput
	// The bandwidth of the bandwidth package.
	Bandwidth pulumi.IntPtrInput
	// The method that is used to allocate bandwidth to the cross-region connection. Valid values: `BandwidthPackage` and `DataTransfer`.
	BandwidthType pulumi.StringPtrInput
	// The ID of the bandwidth package. If you do not enter the ID of the package, it means you are using the test. The system default test is 1bps, demonstrating that you test network connectivity
	CenBandwidthPackageId pulumi.StringPtrInput
	// The ID of the CEN.
	CenId pulumi.StringPtrInput
	// Whether to perform pre-check for this request, including permission, instance status verification, etc.
	DryRun pulumi.BoolPtrInput
	// The ID of the peer transit router.
	PeerTransitRouterId pulumi.StringPtrInput
	// The region ID of peer transit router.
	PeerTransitRouterRegionId pulumi.StringPtrInput
	// The resource type to attachment. Only support `VR` and default value is `VR`.
	ResourceType pulumi.StringPtrInput
	// Whether to association route table. System default is `false`.
	RouteTableAssociationEnabled pulumi.BoolPtrInput
	// Whether to propagation route table. System default is `false`.
	RouteTablePropagationEnabled pulumi.BoolPtrInput
	// The associating status of the network.
	Status pulumi.StringPtrInput
	// The description of transit router attachment. The description is 2~256 characters long and must start with a letter or Chinese, but cannot start with `http://` or `https://`.
	TransitRouterAttachmentDescription pulumi.StringPtrInput
	// The ID of transit router attachment id.
	TransitRouterAttachmentId pulumi.StringPtrInput
	// The name of transit router attachment. The name is 2~128 characters in length, starts with uppercase and lowercase letters or Chinese, and can contain numbers, underscores (_) and dashes (-)
	TransitRouterAttachmentName pulumi.StringPtrInput
	// The ID of the transit router to attach.
	TransitRouterId pulumi.StringPtrInput
}

func (TransitRouterPeerAttachmentState) ElementType

type TransitRouterRouteEntry

type TransitRouterRouteEntry struct {
	pulumi.CustomResourceState

	// The dry run.
	DryRun pulumi.BoolPtrOutput `pulumi:"dryRun"`
	// The associating status of the Transit Router.
	Status pulumi.StringOutput `pulumi:"status"`
	// The description of the transit router route entry.
	TransitRouterRouteEntryDescription pulumi.StringPtrOutput `pulumi:"transitRouterRouteEntryDescription"`
	// The CIDR of the transit router route entry.
	TransitRouterRouteEntryDestinationCidrBlock pulumi.StringOutput `pulumi:"transitRouterRouteEntryDestinationCidrBlock"`
	// The ID of the route entry.
	TransitRouterRouteEntryId pulumi.StringOutput `pulumi:"transitRouterRouteEntryId"`
	// The name of the transit router route entry.
	TransitRouterRouteEntryName pulumi.StringPtrOutput `pulumi:"transitRouterRouteEntryName"`
	// The ID of the transit router route entry next hop.
	TransitRouterRouteEntryNextHopId pulumi.StringPtrOutput `pulumi:"transitRouterRouteEntryNextHopId"`
	// The Type of the transit router route entry next hop,Valid values `Attachment` and `BlackHole`.
	TransitRouterRouteEntryNextHopType pulumi.StringOutput `pulumi:"transitRouterRouteEntryNextHopType"`
	// The ID of the transit router route table.
	TransitRouterRouteTableId pulumi.StringOutput `pulumi:"transitRouterRouteTableId"`
}

Provides a CEN transit router route entry resource.[What is Cen Transit Router Route Entry](https://help.aliyun.com/document_detail/261238.html)

> **NOTE:** Available in 1.126.0+

## Import

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

```sh

$ pulumi import alicloud:cen/transitRouterRouteEntry:TransitRouterRouteEntry default vtb-*********:rte-*******

```

func GetTransitRouterRouteEntry

func GetTransitRouterRouteEntry(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TransitRouterRouteEntryState, opts ...pulumi.ResourceOption) (*TransitRouterRouteEntry, error)

GetTransitRouterRouteEntry gets an existing TransitRouterRouteEntry 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 NewTransitRouterRouteEntry

func NewTransitRouterRouteEntry(ctx *pulumi.Context,
	name string, args *TransitRouterRouteEntryArgs, opts ...pulumi.ResourceOption) (*TransitRouterRouteEntry, error)

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

func (*TransitRouterRouteEntry) ElementType

func (*TransitRouterRouteEntry) ElementType() reflect.Type

func (*TransitRouterRouteEntry) ToTransitRouterRouteEntryOutput

func (i *TransitRouterRouteEntry) ToTransitRouterRouteEntryOutput() TransitRouterRouteEntryOutput

func (*TransitRouterRouteEntry) ToTransitRouterRouteEntryOutputWithContext

func (i *TransitRouterRouteEntry) ToTransitRouterRouteEntryOutputWithContext(ctx context.Context) TransitRouterRouteEntryOutput

type TransitRouterRouteEntryArgs

type TransitRouterRouteEntryArgs struct {
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The description of the transit router route entry.
	TransitRouterRouteEntryDescription pulumi.StringPtrInput
	// The CIDR of the transit router route entry.
	TransitRouterRouteEntryDestinationCidrBlock pulumi.StringInput
	// The name of the transit router route entry.
	TransitRouterRouteEntryName pulumi.StringPtrInput
	// The ID of the transit router route entry next hop.
	TransitRouterRouteEntryNextHopId pulumi.StringPtrInput
	// The Type of the transit router route entry next hop,Valid values `Attachment` and `BlackHole`.
	TransitRouterRouteEntryNextHopType pulumi.StringInput
	// The ID of the transit router route table.
	TransitRouterRouteTableId pulumi.StringInput
}

The set of arguments for constructing a TransitRouterRouteEntry resource.

func (TransitRouterRouteEntryArgs) ElementType

type TransitRouterRouteEntryArray

type TransitRouterRouteEntryArray []TransitRouterRouteEntryInput

func (TransitRouterRouteEntryArray) ElementType

func (TransitRouterRouteEntryArray) ToTransitRouterRouteEntryArrayOutput

func (i TransitRouterRouteEntryArray) ToTransitRouterRouteEntryArrayOutput() TransitRouterRouteEntryArrayOutput

func (TransitRouterRouteEntryArray) ToTransitRouterRouteEntryArrayOutputWithContext

func (i TransitRouterRouteEntryArray) ToTransitRouterRouteEntryArrayOutputWithContext(ctx context.Context) TransitRouterRouteEntryArrayOutput

type TransitRouterRouteEntryArrayInput

type TransitRouterRouteEntryArrayInput interface {
	pulumi.Input

	ToTransitRouterRouteEntryArrayOutput() TransitRouterRouteEntryArrayOutput
	ToTransitRouterRouteEntryArrayOutputWithContext(context.Context) TransitRouterRouteEntryArrayOutput
}

TransitRouterRouteEntryArrayInput is an input type that accepts TransitRouterRouteEntryArray and TransitRouterRouteEntryArrayOutput values. You can construct a concrete instance of `TransitRouterRouteEntryArrayInput` via:

TransitRouterRouteEntryArray{ TransitRouterRouteEntryArgs{...} }

type TransitRouterRouteEntryArrayOutput

type TransitRouterRouteEntryArrayOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteEntryArrayOutput) ElementType

func (TransitRouterRouteEntryArrayOutput) Index

func (TransitRouterRouteEntryArrayOutput) ToTransitRouterRouteEntryArrayOutput

func (o TransitRouterRouteEntryArrayOutput) ToTransitRouterRouteEntryArrayOutput() TransitRouterRouteEntryArrayOutput

func (TransitRouterRouteEntryArrayOutput) ToTransitRouterRouteEntryArrayOutputWithContext

func (o TransitRouterRouteEntryArrayOutput) ToTransitRouterRouteEntryArrayOutputWithContext(ctx context.Context) TransitRouterRouteEntryArrayOutput

type TransitRouterRouteEntryInput

type TransitRouterRouteEntryInput interface {
	pulumi.Input

	ToTransitRouterRouteEntryOutput() TransitRouterRouteEntryOutput
	ToTransitRouterRouteEntryOutputWithContext(ctx context.Context) TransitRouterRouteEntryOutput
}

type TransitRouterRouteEntryMap

type TransitRouterRouteEntryMap map[string]TransitRouterRouteEntryInput

func (TransitRouterRouteEntryMap) ElementType

func (TransitRouterRouteEntryMap) ElementType() reflect.Type

func (TransitRouterRouteEntryMap) ToTransitRouterRouteEntryMapOutput

func (i TransitRouterRouteEntryMap) ToTransitRouterRouteEntryMapOutput() TransitRouterRouteEntryMapOutput

func (TransitRouterRouteEntryMap) ToTransitRouterRouteEntryMapOutputWithContext

func (i TransitRouterRouteEntryMap) ToTransitRouterRouteEntryMapOutputWithContext(ctx context.Context) TransitRouterRouteEntryMapOutput

type TransitRouterRouteEntryMapInput

type TransitRouterRouteEntryMapInput interface {
	pulumi.Input

	ToTransitRouterRouteEntryMapOutput() TransitRouterRouteEntryMapOutput
	ToTransitRouterRouteEntryMapOutputWithContext(context.Context) TransitRouterRouteEntryMapOutput
}

TransitRouterRouteEntryMapInput is an input type that accepts TransitRouterRouteEntryMap and TransitRouterRouteEntryMapOutput values. You can construct a concrete instance of `TransitRouterRouteEntryMapInput` via:

TransitRouterRouteEntryMap{ "key": TransitRouterRouteEntryArgs{...} }

type TransitRouterRouteEntryMapOutput

type TransitRouterRouteEntryMapOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteEntryMapOutput) ElementType

func (TransitRouterRouteEntryMapOutput) MapIndex

func (TransitRouterRouteEntryMapOutput) ToTransitRouterRouteEntryMapOutput

func (o TransitRouterRouteEntryMapOutput) ToTransitRouterRouteEntryMapOutput() TransitRouterRouteEntryMapOutput

func (TransitRouterRouteEntryMapOutput) ToTransitRouterRouteEntryMapOutputWithContext

func (o TransitRouterRouteEntryMapOutput) ToTransitRouterRouteEntryMapOutputWithContext(ctx context.Context) TransitRouterRouteEntryMapOutput

type TransitRouterRouteEntryOutput

type TransitRouterRouteEntryOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteEntryOutput) DryRun

The dry run.

func (TransitRouterRouteEntryOutput) ElementType

func (TransitRouterRouteEntryOutput) Status

The associating status of the Transit Router.

func (TransitRouterRouteEntryOutput) ToTransitRouterRouteEntryOutput

func (o TransitRouterRouteEntryOutput) ToTransitRouterRouteEntryOutput() TransitRouterRouteEntryOutput

func (TransitRouterRouteEntryOutput) ToTransitRouterRouteEntryOutputWithContext

func (o TransitRouterRouteEntryOutput) ToTransitRouterRouteEntryOutputWithContext(ctx context.Context) TransitRouterRouteEntryOutput

func (TransitRouterRouteEntryOutput) TransitRouterRouteEntryDescription

func (o TransitRouterRouteEntryOutput) TransitRouterRouteEntryDescription() pulumi.StringPtrOutput

The description of the transit router route entry.

func (TransitRouterRouteEntryOutput) TransitRouterRouteEntryDestinationCidrBlock

func (o TransitRouterRouteEntryOutput) TransitRouterRouteEntryDestinationCidrBlock() pulumi.StringOutput

The CIDR of the transit router route entry.

func (TransitRouterRouteEntryOutput) TransitRouterRouteEntryId

func (o TransitRouterRouteEntryOutput) TransitRouterRouteEntryId() pulumi.StringOutput

The ID of the route entry.

func (TransitRouterRouteEntryOutput) TransitRouterRouteEntryName

func (o TransitRouterRouteEntryOutput) TransitRouterRouteEntryName() pulumi.StringPtrOutput

The name of the transit router route entry.

func (TransitRouterRouteEntryOutput) TransitRouterRouteEntryNextHopId

func (o TransitRouterRouteEntryOutput) TransitRouterRouteEntryNextHopId() pulumi.StringPtrOutput

The ID of the transit router route entry next hop.

func (TransitRouterRouteEntryOutput) TransitRouterRouteEntryNextHopType

func (o TransitRouterRouteEntryOutput) TransitRouterRouteEntryNextHopType() pulumi.StringOutput

The Type of the transit router route entry next hop,Valid values `Attachment` and `BlackHole`.

func (TransitRouterRouteEntryOutput) TransitRouterRouteTableId

func (o TransitRouterRouteEntryOutput) TransitRouterRouteTableId() pulumi.StringOutput

The ID of the transit router route table.

type TransitRouterRouteEntryState

type TransitRouterRouteEntryState struct {
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The associating status of the Transit Router.
	Status pulumi.StringPtrInput
	// The description of the transit router route entry.
	TransitRouterRouteEntryDescription pulumi.StringPtrInput
	// The CIDR of the transit router route entry.
	TransitRouterRouteEntryDestinationCidrBlock pulumi.StringPtrInput
	// The ID of the route entry.
	TransitRouterRouteEntryId pulumi.StringPtrInput
	// The name of the transit router route entry.
	TransitRouterRouteEntryName pulumi.StringPtrInput
	// The ID of the transit router route entry next hop.
	TransitRouterRouteEntryNextHopId pulumi.StringPtrInput
	// The Type of the transit router route entry next hop,Valid values `Attachment` and `BlackHole`.
	TransitRouterRouteEntryNextHopType pulumi.StringPtrInput
	// The ID of the transit router route table.
	TransitRouterRouteTableId pulumi.StringPtrInput
}

func (TransitRouterRouteEntryState) ElementType

type TransitRouterRouteTable

type TransitRouterRouteTable struct {
	pulumi.CustomResourceState

	// The dry run.
	DryRun pulumi.BoolPtrOutput `pulumi:"dryRun"`
	// The associating status of the Transit Router.
	Status pulumi.StringOutput `pulumi:"status"`
	// The ID of the transit router.
	TransitRouterId pulumi.StringOutput `pulumi:"transitRouterId"`
	// The description of the transit router route table.
	TransitRouterRouteTableDescription pulumi.StringOutput `pulumi:"transitRouterRouteTableDescription"`
	// The id of the transit router route table.
	TransitRouterRouteTableId pulumi.StringOutput `pulumi:"transitRouterRouteTableId"`
	// The name of the transit router route table.
	TransitRouterRouteTableName pulumi.StringPtrOutput `pulumi:"transitRouterRouteTableName"`
	// The type of the transit router route table. Valid values: `Custom`, `System`.
	TransitRouterRouteTableType pulumi.StringOutput `pulumi:"transitRouterRouteTableType"`
}

Provides a CEN transit router route table resource.[What is Cen Transit Router Route Table](https://help.aliyun.com/document_detail/261233.html)

> **NOTE:** Available in 1.126.0+

## Import

CEN transit router route table

can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/transitRouterRouteTable:TransitRouterRouteTable default tr-*********:vtb-********

```

func GetTransitRouterRouteTable

func GetTransitRouterRouteTable(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TransitRouterRouteTableState, opts ...pulumi.ResourceOption) (*TransitRouterRouteTable, error)

GetTransitRouterRouteTable gets an existing TransitRouterRouteTable 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 NewTransitRouterRouteTable

func NewTransitRouterRouteTable(ctx *pulumi.Context,
	name string, args *TransitRouterRouteTableArgs, opts ...pulumi.ResourceOption) (*TransitRouterRouteTable, error)

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

func (*TransitRouterRouteTable) ElementType

func (*TransitRouterRouteTable) ElementType() reflect.Type

func (*TransitRouterRouteTable) ToTransitRouterRouteTableOutput

func (i *TransitRouterRouteTable) ToTransitRouterRouteTableOutput() TransitRouterRouteTableOutput

func (*TransitRouterRouteTable) ToTransitRouterRouteTableOutputWithContext

func (i *TransitRouterRouteTable) ToTransitRouterRouteTableOutputWithContext(ctx context.Context) TransitRouterRouteTableOutput

type TransitRouterRouteTableArgs

type TransitRouterRouteTableArgs struct {
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The ID of the transit router.
	TransitRouterId pulumi.StringInput
	// The description of the transit router route table.
	TransitRouterRouteTableDescription pulumi.StringPtrInput
	// The name of the transit router route table.
	TransitRouterRouteTableName pulumi.StringPtrInput
}

The set of arguments for constructing a TransitRouterRouteTable resource.

func (TransitRouterRouteTableArgs) ElementType

type TransitRouterRouteTableArray

type TransitRouterRouteTableArray []TransitRouterRouteTableInput

func (TransitRouterRouteTableArray) ElementType

func (TransitRouterRouteTableArray) ToTransitRouterRouteTableArrayOutput

func (i TransitRouterRouteTableArray) ToTransitRouterRouteTableArrayOutput() TransitRouterRouteTableArrayOutput

func (TransitRouterRouteTableArray) ToTransitRouterRouteTableArrayOutputWithContext

func (i TransitRouterRouteTableArray) ToTransitRouterRouteTableArrayOutputWithContext(ctx context.Context) TransitRouterRouteTableArrayOutput

type TransitRouterRouteTableArrayInput

type TransitRouterRouteTableArrayInput interface {
	pulumi.Input

	ToTransitRouterRouteTableArrayOutput() TransitRouterRouteTableArrayOutput
	ToTransitRouterRouteTableArrayOutputWithContext(context.Context) TransitRouterRouteTableArrayOutput
}

TransitRouterRouteTableArrayInput is an input type that accepts TransitRouterRouteTableArray and TransitRouterRouteTableArrayOutput values. You can construct a concrete instance of `TransitRouterRouteTableArrayInput` via:

TransitRouterRouteTableArray{ TransitRouterRouteTableArgs{...} }

type TransitRouterRouteTableArrayOutput

type TransitRouterRouteTableArrayOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteTableArrayOutput) ElementType

func (TransitRouterRouteTableArrayOutput) Index

func (TransitRouterRouteTableArrayOutput) ToTransitRouterRouteTableArrayOutput

func (o TransitRouterRouteTableArrayOutput) ToTransitRouterRouteTableArrayOutput() TransitRouterRouteTableArrayOutput

func (TransitRouterRouteTableArrayOutput) ToTransitRouterRouteTableArrayOutputWithContext

func (o TransitRouterRouteTableArrayOutput) ToTransitRouterRouteTableArrayOutputWithContext(ctx context.Context) TransitRouterRouteTableArrayOutput

type TransitRouterRouteTableAssociation

type TransitRouterRouteTableAssociation struct {
	pulumi.CustomResourceState

	// The dry run.
	DryRun pulumi.BoolPtrOutput `pulumi:"dryRun"`
	// The associating status of the network.
	Status pulumi.StringOutput `pulumi:"status"`
	// The ID the transit router attachment.
	TransitRouterAttachmentId pulumi.StringOutput `pulumi:"transitRouterAttachmentId"`
	// The ID of the transit router route table.
	TransitRouterRouteTableId pulumi.StringOutput `pulumi:"transitRouterRouteTableId"`
}

Provides a CEN transit router route table association resource.[What is Cen Transit Router Route Table Association](https://help.aliyun.com/document_detail/261242.html)

> **NOTE:** Available in 1.126.0+

## Import

CEN transit router route table association can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/transitRouterRouteTableAssociation:TransitRouterRouteTableAssociation default tr-********:tr-attach-********

```

func GetTransitRouterRouteTableAssociation

func GetTransitRouterRouteTableAssociation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TransitRouterRouteTableAssociationState, opts ...pulumi.ResourceOption) (*TransitRouterRouteTableAssociation, error)

GetTransitRouterRouteTableAssociation gets an existing TransitRouterRouteTableAssociation 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 NewTransitRouterRouteTableAssociation

func NewTransitRouterRouteTableAssociation(ctx *pulumi.Context,
	name string, args *TransitRouterRouteTableAssociationArgs, opts ...pulumi.ResourceOption) (*TransitRouterRouteTableAssociation, error)

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

func (*TransitRouterRouteTableAssociation) ElementType

func (*TransitRouterRouteTableAssociation) ToTransitRouterRouteTableAssociationOutput

func (i *TransitRouterRouteTableAssociation) ToTransitRouterRouteTableAssociationOutput() TransitRouterRouteTableAssociationOutput

func (*TransitRouterRouteTableAssociation) ToTransitRouterRouteTableAssociationOutputWithContext

func (i *TransitRouterRouteTableAssociation) ToTransitRouterRouteTableAssociationOutputWithContext(ctx context.Context) TransitRouterRouteTableAssociationOutput

type TransitRouterRouteTableAssociationArgs

type TransitRouterRouteTableAssociationArgs struct {
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The ID the transit router attachment.
	TransitRouterAttachmentId pulumi.StringInput
	// The ID of the transit router route table.
	TransitRouterRouteTableId pulumi.StringInput
}

The set of arguments for constructing a TransitRouterRouteTableAssociation resource.

func (TransitRouterRouteTableAssociationArgs) ElementType

type TransitRouterRouteTableAssociationArray

type TransitRouterRouteTableAssociationArray []TransitRouterRouteTableAssociationInput

func (TransitRouterRouteTableAssociationArray) ElementType

func (TransitRouterRouteTableAssociationArray) ToTransitRouterRouteTableAssociationArrayOutput

func (i TransitRouterRouteTableAssociationArray) ToTransitRouterRouteTableAssociationArrayOutput() TransitRouterRouteTableAssociationArrayOutput

func (TransitRouterRouteTableAssociationArray) ToTransitRouterRouteTableAssociationArrayOutputWithContext

func (i TransitRouterRouteTableAssociationArray) ToTransitRouterRouteTableAssociationArrayOutputWithContext(ctx context.Context) TransitRouterRouteTableAssociationArrayOutput

type TransitRouterRouteTableAssociationArrayInput

type TransitRouterRouteTableAssociationArrayInput interface {
	pulumi.Input

	ToTransitRouterRouteTableAssociationArrayOutput() TransitRouterRouteTableAssociationArrayOutput
	ToTransitRouterRouteTableAssociationArrayOutputWithContext(context.Context) TransitRouterRouteTableAssociationArrayOutput
}

TransitRouterRouteTableAssociationArrayInput is an input type that accepts TransitRouterRouteTableAssociationArray and TransitRouterRouteTableAssociationArrayOutput values. You can construct a concrete instance of `TransitRouterRouteTableAssociationArrayInput` via:

TransitRouterRouteTableAssociationArray{ TransitRouterRouteTableAssociationArgs{...} }

type TransitRouterRouteTableAssociationArrayOutput

type TransitRouterRouteTableAssociationArrayOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteTableAssociationArrayOutput) ElementType

func (TransitRouterRouteTableAssociationArrayOutput) Index

func (TransitRouterRouteTableAssociationArrayOutput) ToTransitRouterRouteTableAssociationArrayOutput

func (o TransitRouterRouteTableAssociationArrayOutput) ToTransitRouterRouteTableAssociationArrayOutput() TransitRouterRouteTableAssociationArrayOutput

func (TransitRouterRouteTableAssociationArrayOutput) ToTransitRouterRouteTableAssociationArrayOutputWithContext

func (o TransitRouterRouteTableAssociationArrayOutput) ToTransitRouterRouteTableAssociationArrayOutputWithContext(ctx context.Context) TransitRouterRouteTableAssociationArrayOutput

type TransitRouterRouteTableAssociationInput

type TransitRouterRouteTableAssociationInput interface {
	pulumi.Input

	ToTransitRouterRouteTableAssociationOutput() TransitRouterRouteTableAssociationOutput
	ToTransitRouterRouteTableAssociationOutputWithContext(ctx context.Context) TransitRouterRouteTableAssociationOutput
}

type TransitRouterRouteTableAssociationMap

type TransitRouterRouteTableAssociationMap map[string]TransitRouterRouteTableAssociationInput

func (TransitRouterRouteTableAssociationMap) ElementType

func (TransitRouterRouteTableAssociationMap) ToTransitRouterRouteTableAssociationMapOutput

func (i TransitRouterRouteTableAssociationMap) ToTransitRouterRouteTableAssociationMapOutput() TransitRouterRouteTableAssociationMapOutput

func (TransitRouterRouteTableAssociationMap) ToTransitRouterRouteTableAssociationMapOutputWithContext

func (i TransitRouterRouteTableAssociationMap) ToTransitRouterRouteTableAssociationMapOutputWithContext(ctx context.Context) TransitRouterRouteTableAssociationMapOutput

type TransitRouterRouteTableAssociationMapInput

type TransitRouterRouteTableAssociationMapInput interface {
	pulumi.Input

	ToTransitRouterRouteTableAssociationMapOutput() TransitRouterRouteTableAssociationMapOutput
	ToTransitRouterRouteTableAssociationMapOutputWithContext(context.Context) TransitRouterRouteTableAssociationMapOutput
}

TransitRouterRouteTableAssociationMapInput is an input type that accepts TransitRouterRouteTableAssociationMap and TransitRouterRouteTableAssociationMapOutput values. You can construct a concrete instance of `TransitRouterRouteTableAssociationMapInput` via:

TransitRouterRouteTableAssociationMap{ "key": TransitRouterRouteTableAssociationArgs{...} }

type TransitRouterRouteTableAssociationMapOutput

type TransitRouterRouteTableAssociationMapOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteTableAssociationMapOutput) ElementType

func (TransitRouterRouteTableAssociationMapOutput) MapIndex

func (TransitRouterRouteTableAssociationMapOutput) ToTransitRouterRouteTableAssociationMapOutput

func (o TransitRouterRouteTableAssociationMapOutput) ToTransitRouterRouteTableAssociationMapOutput() TransitRouterRouteTableAssociationMapOutput

func (TransitRouterRouteTableAssociationMapOutput) ToTransitRouterRouteTableAssociationMapOutputWithContext

func (o TransitRouterRouteTableAssociationMapOutput) ToTransitRouterRouteTableAssociationMapOutputWithContext(ctx context.Context) TransitRouterRouteTableAssociationMapOutput

type TransitRouterRouteTableAssociationOutput

type TransitRouterRouteTableAssociationOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteTableAssociationOutput) DryRun

The dry run.

func (TransitRouterRouteTableAssociationOutput) ElementType

func (TransitRouterRouteTableAssociationOutput) Status

The associating status of the network.

func (TransitRouterRouteTableAssociationOutput) ToTransitRouterRouteTableAssociationOutput

func (o TransitRouterRouteTableAssociationOutput) ToTransitRouterRouteTableAssociationOutput() TransitRouterRouteTableAssociationOutput

func (TransitRouterRouteTableAssociationOutput) ToTransitRouterRouteTableAssociationOutputWithContext

func (o TransitRouterRouteTableAssociationOutput) ToTransitRouterRouteTableAssociationOutputWithContext(ctx context.Context) TransitRouterRouteTableAssociationOutput

func (TransitRouterRouteTableAssociationOutput) TransitRouterAttachmentId

func (o TransitRouterRouteTableAssociationOutput) TransitRouterAttachmentId() pulumi.StringOutput

The ID the transit router attachment.

func (TransitRouterRouteTableAssociationOutput) TransitRouterRouteTableId

func (o TransitRouterRouteTableAssociationOutput) TransitRouterRouteTableId() pulumi.StringOutput

The ID of the transit router route table.

type TransitRouterRouteTableAssociationState

type TransitRouterRouteTableAssociationState struct {
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The associating status of the network.
	Status pulumi.StringPtrInput
	// The ID the transit router attachment.
	TransitRouterAttachmentId pulumi.StringPtrInput
	// The ID of the transit router route table.
	TransitRouterRouteTableId pulumi.StringPtrInput
}

func (TransitRouterRouteTableAssociationState) ElementType

type TransitRouterRouteTableInput

type TransitRouterRouteTableInput interface {
	pulumi.Input

	ToTransitRouterRouteTableOutput() TransitRouterRouteTableOutput
	ToTransitRouterRouteTableOutputWithContext(ctx context.Context) TransitRouterRouteTableOutput
}

type TransitRouterRouteTableMap

type TransitRouterRouteTableMap map[string]TransitRouterRouteTableInput

func (TransitRouterRouteTableMap) ElementType

func (TransitRouterRouteTableMap) ElementType() reflect.Type

func (TransitRouterRouteTableMap) ToTransitRouterRouteTableMapOutput

func (i TransitRouterRouteTableMap) ToTransitRouterRouteTableMapOutput() TransitRouterRouteTableMapOutput

func (TransitRouterRouteTableMap) ToTransitRouterRouteTableMapOutputWithContext

func (i TransitRouterRouteTableMap) ToTransitRouterRouteTableMapOutputWithContext(ctx context.Context) TransitRouterRouteTableMapOutput

type TransitRouterRouteTableMapInput

type TransitRouterRouteTableMapInput interface {
	pulumi.Input

	ToTransitRouterRouteTableMapOutput() TransitRouterRouteTableMapOutput
	ToTransitRouterRouteTableMapOutputWithContext(context.Context) TransitRouterRouteTableMapOutput
}

TransitRouterRouteTableMapInput is an input type that accepts TransitRouterRouteTableMap and TransitRouterRouteTableMapOutput values. You can construct a concrete instance of `TransitRouterRouteTableMapInput` via:

TransitRouterRouteTableMap{ "key": TransitRouterRouteTableArgs{...} }

type TransitRouterRouteTableMapOutput

type TransitRouterRouteTableMapOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteTableMapOutput) ElementType

func (TransitRouterRouteTableMapOutput) MapIndex

func (TransitRouterRouteTableMapOutput) ToTransitRouterRouteTableMapOutput

func (o TransitRouterRouteTableMapOutput) ToTransitRouterRouteTableMapOutput() TransitRouterRouteTableMapOutput

func (TransitRouterRouteTableMapOutput) ToTransitRouterRouteTableMapOutputWithContext

func (o TransitRouterRouteTableMapOutput) ToTransitRouterRouteTableMapOutputWithContext(ctx context.Context) TransitRouterRouteTableMapOutput

type TransitRouterRouteTableOutput

type TransitRouterRouteTableOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteTableOutput) DryRun

The dry run.

func (TransitRouterRouteTableOutput) ElementType

func (TransitRouterRouteTableOutput) Status

The associating status of the Transit Router.

func (TransitRouterRouteTableOutput) ToTransitRouterRouteTableOutput

func (o TransitRouterRouteTableOutput) ToTransitRouterRouteTableOutput() TransitRouterRouteTableOutput

func (TransitRouterRouteTableOutput) ToTransitRouterRouteTableOutputWithContext

func (o TransitRouterRouteTableOutput) ToTransitRouterRouteTableOutputWithContext(ctx context.Context) TransitRouterRouteTableOutput

func (TransitRouterRouteTableOutput) TransitRouterId

The ID of the transit router.

func (TransitRouterRouteTableOutput) TransitRouterRouteTableDescription

func (o TransitRouterRouteTableOutput) TransitRouterRouteTableDescription() pulumi.StringOutput

The description of the transit router route table.

func (TransitRouterRouteTableOutput) TransitRouterRouteTableId

func (o TransitRouterRouteTableOutput) TransitRouterRouteTableId() pulumi.StringOutput

The id of the transit router route table.

func (TransitRouterRouteTableOutput) TransitRouterRouteTableName

func (o TransitRouterRouteTableOutput) TransitRouterRouteTableName() pulumi.StringPtrOutput

The name of the transit router route table.

func (TransitRouterRouteTableOutput) TransitRouterRouteTableType

func (o TransitRouterRouteTableOutput) TransitRouterRouteTableType() pulumi.StringOutput

The type of the transit router route table. Valid values: `Custom`, `System`.

type TransitRouterRouteTablePropagation

type TransitRouterRouteTablePropagation struct {
	pulumi.CustomResourceState

	// The dry run.
	DryRun pulumi.BoolPtrOutput `pulumi:"dryRun"`
	// The associating status of the network.
	Status pulumi.StringOutput `pulumi:"status"`
	// The ID the transit router attachment.
	TransitRouterAttachmentId pulumi.StringOutput `pulumi:"transitRouterAttachmentId"`
	// The ID of the transit router route table.
	TransitRouterRouteTableId pulumi.StringOutput `pulumi:"transitRouterRouteTableId"`
}

Provides a CEN transit router route table propagation resource.[What is Cen Transit Router Route Table Propagation](https://help.aliyun.com/document_detail/261244.html)

> **NOTE:** Available in 1.126.0+

## Import

CEN transit router route table propagation can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/transitRouterRouteTablePropagation:TransitRouterRouteTablePropagation default tr-********:tr-attach-********

```

func GetTransitRouterRouteTablePropagation

func GetTransitRouterRouteTablePropagation(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TransitRouterRouteTablePropagationState, opts ...pulumi.ResourceOption) (*TransitRouterRouteTablePropagation, error)

GetTransitRouterRouteTablePropagation gets an existing TransitRouterRouteTablePropagation 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 NewTransitRouterRouteTablePropagation

func NewTransitRouterRouteTablePropagation(ctx *pulumi.Context,
	name string, args *TransitRouterRouteTablePropagationArgs, opts ...pulumi.ResourceOption) (*TransitRouterRouteTablePropagation, error)

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

func (*TransitRouterRouteTablePropagation) ElementType

func (*TransitRouterRouteTablePropagation) ToTransitRouterRouteTablePropagationOutput

func (i *TransitRouterRouteTablePropagation) ToTransitRouterRouteTablePropagationOutput() TransitRouterRouteTablePropagationOutput

func (*TransitRouterRouteTablePropagation) ToTransitRouterRouteTablePropagationOutputWithContext

func (i *TransitRouterRouteTablePropagation) ToTransitRouterRouteTablePropagationOutputWithContext(ctx context.Context) TransitRouterRouteTablePropagationOutput

type TransitRouterRouteTablePropagationArgs

type TransitRouterRouteTablePropagationArgs struct {
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The ID the transit router attachment.
	TransitRouterAttachmentId pulumi.StringInput
	// The ID of the transit router route table.
	TransitRouterRouteTableId pulumi.StringInput
}

The set of arguments for constructing a TransitRouterRouteTablePropagation resource.

func (TransitRouterRouteTablePropagationArgs) ElementType

type TransitRouterRouteTablePropagationArray

type TransitRouterRouteTablePropagationArray []TransitRouterRouteTablePropagationInput

func (TransitRouterRouteTablePropagationArray) ElementType

func (TransitRouterRouteTablePropagationArray) ToTransitRouterRouteTablePropagationArrayOutput

func (i TransitRouterRouteTablePropagationArray) ToTransitRouterRouteTablePropagationArrayOutput() TransitRouterRouteTablePropagationArrayOutput

func (TransitRouterRouteTablePropagationArray) ToTransitRouterRouteTablePropagationArrayOutputWithContext

func (i TransitRouterRouteTablePropagationArray) ToTransitRouterRouteTablePropagationArrayOutputWithContext(ctx context.Context) TransitRouterRouteTablePropagationArrayOutput

type TransitRouterRouteTablePropagationArrayInput

type TransitRouterRouteTablePropagationArrayInput interface {
	pulumi.Input

	ToTransitRouterRouteTablePropagationArrayOutput() TransitRouterRouteTablePropagationArrayOutput
	ToTransitRouterRouteTablePropagationArrayOutputWithContext(context.Context) TransitRouterRouteTablePropagationArrayOutput
}

TransitRouterRouteTablePropagationArrayInput is an input type that accepts TransitRouterRouteTablePropagationArray and TransitRouterRouteTablePropagationArrayOutput values. You can construct a concrete instance of `TransitRouterRouteTablePropagationArrayInput` via:

TransitRouterRouteTablePropagationArray{ TransitRouterRouteTablePropagationArgs{...} }

type TransitRouterRouteTablePropagationArrayOutput

type TransitRouterRouteTablePropagationArrayOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteTablePropagationArrayOutput) ElementType

func (TransitRouterRouteTablePropagationArrayOutput) Index

func (TransitRouterRouteTablePropagationArrayOutput) ToTransitRouterRouteTablePropagationArrayOutput

func (o TransitRouterRouteTablePropagationArrayOutput) ToTransitRouterRouteTablePropagationArrayOutput() TransitRouterRouteTablePropagationArrayOutput

func (TransitRouterRouteTablePropagationArrayOutput) ToTransitRouterRouteTablePropagationArrayOutputWithContext

func (o TransitRouterRouteTablePropagationArrayOutput) ToTransitRouterRouteTablePropagationArrayOutputWithContext(ctx context.Context) TransitRouterRouteTablePropagationArrayOutput

type TransitRouterRouteTablePropagationInput

type TransitRouterRouteTablePropagationInput interface {
	pulumi.Input

	ToTransitRouterRouteTablePropagationOutput() TransitRouterRouteTablePropagationOutput
	ToTransitRouterRouteTablePropagationOutputWithContext(ctx context.Context) TransitRouterRouteTablePropagationOutput
}

type TransitRouterRouteTablePropagationMap

type TransitRouterRouteTablePropagationMap map[string]TransitRouterRouteTablePropagationInput

func (TransitRouterRouteTablePropagationMap) ElementType

func (TransitRouterRouteTablePropagationMap) ToTransitRouterRouteTablePropagationMapOutput

func (i TransitRouterRouteTablePropagationMap) ToTransitRouterRouteTablePropagationMapOutput() TransitRouterRouteTablePropagationMapOutput

func (TransitRouterRouteTablePropagationMap) ToTransitRouterRouteTablePropagationMapOutputWithContext

func (i TransitRouterRouteTablePropagationMap) ToTransitRouterRouteTablePropagationMapOutputWithContext(ctx context.Context) TransitRouterRouteTablePropagationMapOutput

type TransitRouterRouteTablePropagationMapInput

type TransitRouterRouteTablePropagationMapInput interface {
	pulumi.Input

	ToTransitRouterRouteTablePropagationMapOutput() TransitRouterRouteTablePropagationMapOutput
	ToTransitRouterRouteTablePropagationMapOutputWithContext(context.Context) TransitRouterRouteTablePropagationMapOutput
}

TransitRouterRouteTablePropagationMapInput is an input type that accepts TransitRouterRouteTablePropagationMap and TransitRouterRouteTablePropagationMapOutput values. You can construct a concrete instance of `TransitRouterRouteTablePropagationMapInput` via:

TransitRouterRouteTablePropagationMap{ "key": TransitRouterRouteTablePropagationArgs{...} }

type TransitRouterRouteTablePropagationMapOutput

type TransitRouterRouteTablePropagationMapOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteTablePropagationMapOutput) ElementType

func (TransitRouterRouteTablePropagationMapOutput) MapIndex

func (TransitRouterRouteTablePropagationMapOutput) ToTransitRouterRouteTablePropagationMapOutput

func (o TransitRouterRouteTablePropagationMapOutput) ToTransitRouterRouteTablePropagationMapOutput() TransitRouterRouteTablePropagationMapOutput

func (TransitRouterRouteTablePropagationMapOutput) ToTransitRouterRouteTablePropagationMapOutputWithContext

func (o TransitRouterRouteTablePropagationMapOutput) ToTransitRouterRouteTablePropagationMapOutputWithContext(ctx context.Context) TransitRouterRouteTablePropagationMapOutput

type TransitRouterRouteTablePropagationOutput

type TransitRouterRouteTablePropagationOutput struct{ *pulumi.OutputState }

func (TransitRouterRouteTablePropagationOutput) DryRun

The dry run.

func (TransitRouterRouteTablePropagationOutput) ElementType

func (TransitRouterRouteTablePropagationOutput) Status

The associating status of the network.

func (TransitRouterRouteTablePropagationOutput) ToTransitRouterRouteTablePropagationOutput

func (o TransitRouterRouteTablePropagationOutput) ToTransitRouterRouteTablePropagationOutput() TransitRouterRouteTablePropagationOutput

func (TransitRouterRouteTablePropagationOutput) ToTransitRouterRouteTablePropagationOutputWithContext

func (o TransitRouterRouteTablePropagationOutput) ToTransitRouterRouteTablePropagationOutputWithContext(ctx context.Context) TransitRouterRouteTablePropagationOutput

func (TransitRouterRouteTablePropagationOutput) TransitRouterAttachmentId

func (o TransitRouterRouteTablePropagationOutput) TransitRouterAttachmentId() pulumi.StringOutput

The ID the transit router attachment.

func (TransitRouterRouteTablePropagationOutput) TransitRouterRouteTableId

func (o TransitRouterRouteTablePropagationOutput) TransitRouterRouteTableId() pulumi.StringOutput

The ID of the transit router route table.

type TransitRouterRouteTablePropagationState

type TransitRouterRouteTablePropagationState struct {
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The associating status of the network.
	Status pulumi.StringPtrInput
	// The ID the transit router attachment.
	TransitRouterAttachmentId pulumi.StringPtrInput
	// The ID of the transit router route table.
	TransitRouterRouteTableId pulumi.StringPtrInput
}

func (TransitRouterRouteTablePropagationState) ElementType

type TransitRouterRouteTableState

type TransitRouterRouteTableState struct {
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The associating status of the Transit Router.
	Status pulumi.StringPtrInput
	// The ID of the transit router.
	TransitRouterId pulumi.StringPtrInput
	// The description of the transit router route table.
	TransitRouterRouteTableDescription pulumi.StringPtrInput
	// The id of the transit router route table.
	TransitRouterRouteTableId pulumi.StringPtrInput
	// The name of the transit router route table.
	TransitRouterRouteTableName pulumi.StringPtrInput
	// The type of the transit router route table. Valid values: `Custom`, `System`.
	TransitRouterRouteTableType pulumi.StringPtrInput
}

func (TransitRouterRouteTableState) ElementType

type TransitRouterState

type TransitRouterState struct {
	// The ID of the CEN.
	CenId pulumi.StringPtrInput
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The associating status of the Transit Router.
	Status pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The description of the transit router.
	TransitRouterDescription pulumi.StringPtrInput
	// The transit router id of the transit router.
	TransitRouterId pulumi.StringPtrInput
	// The name of the transit router.
	TransitRouterName pulumi.StringPtrInput
	// The Type of the Transit Router. Valid values: `Enterprise`, `Basic`.
	Type pulumi.StringPtrInput
}

func (TransitRouterState) ElementType

func (TransitRouterState) ElementType() reflect.Type

type TransitRouterVbrAttachment

type TransitRouterVbrAttachment struct {
	pulumi.CustomResourceState

	// Auto publish route enabled.Default value is `false`.
	AutoPublishRouteEnabled pulumi.BoolOutput `pulumi:"autoPublishRouteEnabled"`
	// The ID of the CEN.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// The dry run.
	DryRun pulumi.BoolPtrOutput `pulumi:"dryRun"`
	// The resource type of the transit router vbr attachment.  Valid values: `VPC`, `CCN`, `VBR`, `TR`.
	ResourceType pulumi.StringPtrOutput `pulumi:"resourceType"`
	// Whether to enabled route table association. The system default value is `true`.
	RouteTableAssociationEnabled pulumi.BoolPtrOutput `pulumi:"routeTableAssociationEnabled"`
	// Whether to enabled route table propagation. The system default value is `true`.
	RouteTablePropagationEnabled pulumi.BoolPtrOutput `pulumi:"routeTablePropagationEnabled"`
	// The associating status of the network.
	Status pulumi.StringOutput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The description of the transit router vbr attachment.
	TransitRouterAttachmentDescription pulumi.StringPtrOutput `pulumi:"transitRouterAttachmentDescription"`
	// The id of the transit router vbr attachment.
	TransitRouterAttachmentId pulumi.StringOutput `pulumi:"transitRouterAttachmentId"`
	// The name of the transit router vbr attachment.
	TransitRouterAttachmentName pulumi.StringPtrOutput `pulumi:"transitRouterAttachmentName"`
	// The ID of the transit router.
	TransitRouterId pulumi.StringPtrOutput `pulumi:"transitRouterId"`
	// The ID of the VBR.
	VbrId pulumi.StringOutput `pulumi:"vbrId"`
	// The owner id of the transit router vbr attachment.
	VbrOwnerId pulumi.StringOutput `pulumi:"vbrOwnerId"`
}

Provides a CEN transit router VBR attachment resource that associate the VBR with the CEN instance.[What is Cen Transit Router VBR Attachment](https://help.aliyun.com/document_detail/261361.html)

> **NOTE:** Available in 1.126.0+

## Import

CEN transit router VBR attachment can be imported using the id, e.g.

```sh

$ pulumi import alicloud:cen/transitRouterVbrAttachment:TransitRouterVbrAttachment example tr-********:tr-attach-********

```

func GetTransitRouterVbrAttachment

func GetTransitRouterVbrAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TransitRouterVbrAttachmentState, opts ...pulumi.ResourceOption) (*TransitRouterVbrAttachment, error)

GetTransitRouterVbrAttachment gets an existing TransitRouterVbrAttachment 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 NewTransitRouterVbrAttachment

func NewTransitRouterVbrAttachment(ctx *pulumi.Context,
	name string, args *TransitRouterVbrAttachmentArgs, opts ...pulumi.ResourceOption) (*TransitRouterVbrAttachment, error)

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

func (*TransitRouterVbrAttachment) ElementType

func (*TransitRouterVbrAttachment) ElementType() reflect.Type

func (*TransitRouterVbrAttachment) ToTransitRouterVbrAttachmentOutput

func (i *TransitRouterVbrAttachment) ToTransitRouterVbrAttachmentOutput() TransitRouterVbrAttachmentOutput

func (*TransitRouterVbrAttachment) ToTransitRouterVbrAttachmentOutputWithContext

func (i *TransitRouterVbrAttachment) ToTransitRouterVbrAttachmentOutputWithContext(ctx context.Context) TransitRouterVbrAttachmentOutput

type TransitRouterVbrAttachmentArgs

type TransitRouterVbrAttachmentArgs struct {
	// Auto publish route enabled.Default value is `false`.
	AutoPublishRouteEnabled pulumi.BoolPtrInput
	// The ID of the CEN.
	CenId pulumi.StringInput
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The resource type of the transit router vbr attachment.  Valid values: `VPC`, `CCN`, `VBR`, `TR`.
	ResourceType pulumi.StringPtrInput
	// Whether to enabled route table association. The system default value is `true`.
	RouteTableAssociationEnabled pulumi.BoolPtrInput
	// Whether to enabled route table propagation. The system default value is `true`.
	RouteTablePropagationEnabled pulumi.BoolPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The description of the transit router vbr attachment.
	TransitRouterAttachmentDescription pulumi.StringPtrInput
	// The name of the transit router vbr attachment.
	TransitRouterAttachmentName pulumi.StringPtrInput
	// The ID of the transit router.
	TransitRouterId pulumi.StringPtrInput
	// The ID of the VBR.
	VbrId pulumi.StringInput
	// The owner id of the transit router vbr attachment.
	VbrOwnerId pulumi.StringPtrInput
}

The set of arguments for constructing a TransitRouterVbrAttachment resource.

func (TransitRouterVbrAttachmentArgs) ElementType

type TransitRouterVbrAttachmentArray

type TransitRouterVbrAttachmentArray []TransitRouterVbrAttachmentInput

func (TransitRouterVbrAttachmentArray) ElementType

func (TransitRouterVbrAttachmentArray) ToTransitRouterVbrAttachmentArrayOutput

func (i TransitRouterVbrAttachmentArray) ToTransitRouterVbrAttachmentArrayOutput() TransitRouterVbrAttachmentArrayOutput

func (TransitRouterVbrAttachmentArray) ToTransitRouterVbrAttachmentArrayOutputWithContext

func (i TransitRouterVbrAttachmentArray) ToTransitRouterVbrAttachmentArrayOutputWithContext(ctx context.Context) TransitRouterVbrAttachmentArrayOutput

type TransitRouterVbrAttachmentArrayInput

type TransitRouterVbrAttachmentArrayInput interface {
	pulumi.Input

	ToTransitRouterVbrAttachmentArrayOutput() TransitRouterVbrAttachmentArrayOutput
	ToTransitRouterVbrAttachmentArrayOutputWithContext(context.Context) TransitRouterVbrAttachmentArrayOutput
}

TransitRouterVbrAttachmentArrayInput is an input type that accepts TransitRouterVbrAttachmentArray and TransitRouterVbrAttachmentArrayOutput values. You can construct a concrete instance of `TransitRouterVbrAttachmentArrayInput` via:

TransitRouterVbrAttachmentArray{ TransitRouterVbrAttachmentArgs{...} }

type TransitRouterVbrAttachmentArrayOutput

type TransitRouterVbrAttachmentArrayOutput struct{ *pulumi.OutputState }

func (TransitRouterVbrAttachmentArrayOutput) ElementType

func (TransitRouterVbrAttachmentArrayOutput) Index

func (TransitRouterVbrAttachmentArrayOutput) ToTransitRouterVbrAttachmentArrayOutput

func (o TransitRouterVbrAttachmentArrayOutput) ToTransitRouterVbrAttachmentArrayOutput() TransitRouterVbrAttachmentArrayOutput

func (TransitRouterVbrAttachmentArrayOutput) ToTransitRouterVbrAttachmentArrayOutputWithContext

func (o TransitRouterVbrAttachmentArrayOutput) ToTransitRouterVbrAttachmentArrayOutputWithContext(ctx context.Context) TransitRouterVbrAttachmentArrayOutput

type TransitRouterVbrAttachmentInput

type TransitRouterVbrAttachmentInput interface {
	pulumi.Input

	ToTransitRouterVbrAttachmentOutput() TransitRouterVbrAttachmentOutput
	ToTransitRouterVbrAttachmentOutputWithContext(ctx context.Context) TransitRouterVbrAttachmentOutput
}

type TransitRouterVbrAttachmentMap

type TransitRouterVbrAttachmentMap map[string]TransitRouterVbrAttachmentInput

func (TransitRouterVbrAttachmentMap) ElementType

func (TransitRouterVbrAttachmentMap) ToTransitRouterVbrAttachmentMapOutput

func (i TransitRouterVbrAttachmentMap) ToTransitRouterVbrAttachmentMapOutput() TransitRouterVbrAttachmentMapOutput

func (TransitRouterVbrAttachmentMap) ToTransitRouterVbrAttachmentMapOutputWithContext

func (i TransitRouterVbrAttachmentMap) ToTransitRouterVbrAttachmentMapOutputWithContext(ctx context.Context) TransitRouterVbrAttachmentMapOutput

type TransitRouterVbrAttachmentMapInput

type TransitRouterVbrAttachmentMapInput interface {
	pulumi.Input

	ToTransitRouterVbrAttachmentMapOutput() TransitRouterVbrAttachmentMapOutput
	ToTransitRouterVbrAttachmentMapOutputWithContext(context.Context) TransitRouterVbrAttachmentMapOutput
}

TransitRouterVbrAttachmentMapInput is an input type that accepts TransitRouterVbrAttachmentMap and TransitRouterVbrAttachmentMapOutput values. You can construct a concrete instance of `TransitRouterVbrAttachmentMapInput` via:

TransitRouterVbrAttachmentMap{ "key": TransitRouterVbrAttachmentArgs{...} }

type TransitRouterVbrAttachmentMapOutput

type TransitRouterVbrAttachmentMapOutput struct{ *pulumi.OutputState }

func (TransitRouterVbrAttachmentMapOutput) ElementType

func (TransitRouterVbrAttachmentMapOutput) MapIndex

func (TransitRouterVbrAttachmentMapOutput) ToTransitRouterVbrAttachmentMapOutput

func (o TransitRouterVbrAttachmentMapOutput) ToTransitRouterVbrAttachmentMapOutput() TransitRouterVbrAttachmentMapOutput

func (TransitRouterVbrAttachmentMapOutput) ToTransitRouterVbrAttachmentMapOutputWithContext

func (o TransitRouterVbrAttachmentMapOutput) ToTransitRouterVbrAttachmentMapOutputWithContext(ctx context.Context) TransitRouterVbrAttachmentMapOutput

type TransitRouterVbrAttachmentOutput

type TransitRouterVbrAttachmentOutput struct{ *pulumi.OutputState }

func (TransitRouterVbrAttachmentOutput) AutoPublishRouteEnabled

func (o TransitRouterVbrAttachmentOutput) AutoPublishRouteEnabled() pulumi.BoolOutput

Auto publish route enabled.Default value is `false`.

func (TransitRouterVbrAttachmentOutput) CenId

The ID of the CEN.

func (TransitRouterVbrAttachmentOutput) DryRun

The dry run.

func (TransitRouterVbrAttachmentOutput) ElementType

func (TransitRouterVbrAttachmentOutput) ResourceType

The resource type of the transit router vbr attachment. Valid values: `VPC`, `CCN`, `VBR`, `TR`.

func (TransitRouterVbrAttachmentOutput) RouteTableAssociationEnabled

func (o TransitRouterVbrAttachmentOutput) RouteTableAssociationEnabled() pulumi.BoolPtrOutput

Whether to enabled route table association. The system default value is `true`.

func (TransitRouterVbrAttachmentOutput) RouteTablePropagationEnabled

func (o TransitRouterVbrAttachmentOutput) RouteTablePropagationEnabled() pulumi.BoolPtrOutput

Whether to enabled route table propagation. The system default value is `true`.

func (TransitRouterVbrAttachmentOutput) Status

The associating status of the network.

func (TransitRouterVbrAttachmentOutput) Tags

A mapping of tags to assign to the resource.

func (TransitRouterVbrAttachmentOutput) ToTransitRouterVbrAttachmentOutput

func (o TransitRouterVbrAttachmentOutput) ToTransitRouterVbrAttachmentOutput() TransitRouterVbrAttachmentOutput

func (TransitRouterVbrAttachmentOutput) ToTransitRouterVbrAttachmentOutputWithContext

func (o TransitRouterVbrAttachmentOutput) ToTransitRouterVbrAttachmentOutputWithContext(ctx context.Context) TransitRouterVbrAttachmentOutput

func (TransitRouterVbrAttachmentOutput) TransitRouterAttachmentDescription

func (o TransitRouterVbrAttachmentOutput) TransitRouterAttachmentDescription() pulumi.StringPtrOutput

The description of the transit router vbr attachment.

func (TransitRouterVbrAttachmentOutput) TransitRouterAttachmentId

func (o TransitRouterVbrAttachmentOutput) TransitRouterAttachmentId() pulumi.StringOutput

The id of the transit router vbr attachment.

func (TransitRouterVbrAttachmentOutput) TransitRouterAttachmentName

func (o TransitRouterVbrAttachmentOutput) TransitRouterAttachmentName() pulumi.StringPtrOutput

The name of the transit router vbr attachment.

func (TransitRouterVbrAttachmentOutput) TransitRouterId

The ID of the transit router.

func (TransitRouterVbrAttachmentOutput) VbrId

The ID of the VBR.

func (TransitRouterVbrAttachmentOutput) VbrOwnerId

The owner id of the transit router vbr attachment.

type TransitRouterVbrAttachmentState

type TransitRouterVbrAttachmentState struct {
	// Auto publish route enabled.Default value is `false`.
	AutoPublishRouteEnabled pulumi.BoolPtrInput
	// The ID of the CEN.
	CenId pulumi.StringPtrInput
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The resource type of the transit router vbr attachment.  Valid values: `VPC`, `CCN`, `VBR`, `TR`.
	ResourceType pulumi.StringPtrInput
	// Whether to enabled route table association. The system default value is `true`.
	RouteTableAssociationEnabled pulumi.BoolPtrInput
	// Whether to enabled route table propagation. The system default value is `true`.
	RouteTablePropagationEnabled pulumi.BoolPtrInput
	// The associating status of the network.
	Status pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The description of the transit router vbr attachment.
	TransitRouterAttachmentDescription pulumi.StringPtrInput
	// The id of the transit router vbr attachment.
	TransitRouterAttachmentId pulumi.StringPtrInput
	// The name of the transit router vbr attachment.
	TransitRouterAttachmentName pulumi.StringPtrInput
	// The ID of the transit router.
	TransitRouterId pulumi.StringPtrInput
	// The ID of the VBR.
	VbrId pulumi.StringPtrInput
	// The owner id of the transit router vbr attachment.
	VbrOwnerId pulumi.StringPtrInput
}

func (TransitRouterVbrAttachmentState) ElementType

type TransitRouterVpcAttachment

type TransitRouterVpcAttachment struct {
	pulumi.CustomResourceState

	// The ID of the CEN.
	CenId pulumi.StringOutput `pulumi:"cenId"`
	// The dry run.
	DryRun pulumi.BoolPtrOutput `pulumi:"dryRun"`
	// The payment type of the resource. Valid values: `PayAsYouGo`.
	PaymentType pulumi.StringOutput `pulumi:"paymentType"`
	// The resource type of transit router vpc attachment. Valid value `VPC`. Default value is `VPC`.
	ResourceType pulumi.StringPtrOutput `pulumi:"resourceType"`
	// Deprecated: Field 'route_table_association_enabled' has been deprecated from provider version 1.192.0. Please use the resource 'alicloud_cen_transit_router_route_table_association' instead.
	RouteTableAssociationEnabled pulumi.BoolPtrOutput `pulumi:"routeTableAssociationEnabled"`
	// Deprecated: Field 'route_table_propagation_enabled' has been deprecated from provider version 1.192.0. Please use the resource 'alicloud_cen_transit_router_route_table_propagation' instead.
	RouteTablePropagationEnabled pulumi.BoolPtrOutput `pulumi:"routeTablePropagationEnabled"`
	// The associating status of the network.
	Status pulumi.StringOutput `pulumi:"status"`
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapOutput `pulumi:"tags"`
	// The description of the transit router vbr attachment.
	TransitRouterAttachmentDescription pulumi.StringPtrOutput `pulumi:"transitRouterAttachmentDescription"`
	// The ID of transit router attachment.
	TransitRouterAttachmentId pulumi.StringOutput `pulumi:"transitRouterAttachmentId"`
	// The name of the transit router vbr attachment.
	TransitRouterAttachmentName pulumi.StringPtrOutput `pulumi:"transitRouterAttachmentName"`
	// The ID of the transit router.
	TransitRouterId pulumi.StringPtrOutput `pulumi:"transitRouterId"`
	// The ID of the VPC.
	VpcId pulumi.StringOutput `pulumi:"vpcId"`
	// The owner id of vpc.
	VpcOwnerId pulumi.StringOutput `pulumi:"vpcOwnerId"`
	// The list of zone mapping of the VPC. **NOTE:** From version 1.184.0, `zoneMappings` can be modified.
	// > **NOTE:** The Zone of CEN has MasterZone and SlaveZone, first zoneId of zoneMapping need be MasterZone. We have a API to describeZones[API](https://help.aliyun.com/document_detail/261356.html)
	ZoneMappings TransitRouterVpcAttachmentZoneMappingArrayOutput `pulumi:"zoneMappings"`
}

Provides a CEN transit router VPC attachment resource that associate the VPC with the CEN instance. [What is Cen Transit Router VPC Attachment](https://help.aliyun.com/document_detail/261358.html)

> **NOTE:** Available in 1.126.0+

## Example Usage

Basic Usage

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		transitRouterAttachmentName := "sdk_rebot_cen_tr_yaochi"
		if param := cfg.Get("transitRouterAttachmentName"); param != "" {
			transitRouterAttachmentName = param
		}
		transitRouterAttachmentDescription := "sdk_rebot_cen_tr_yaochi"
		if param := cfg.Get("transitRouterAttachmentDescription"); param != "" {
			transitRouterAttachmentDescription = param
		}
		defaultTransitRouterAvailableResources, err := cen.GetTransitRouterAvailableResources(ctx, nil, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
			VpcName:   pulumi.String("sdk_rebot_cen_tr_yaochi"),
			CidrBlock: pulumi.String("192.168.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultMaster, err := vpc.NewSwitch(ctx, "defaultMaster", &vpc.SwitchArgs{
			VswitchName: pulumi.String("sdk_rebot_cen_tr_yaochi"),
			VpcId:       defaultNetwork.ID(),
			CidrBlock:   pulumi.String("192.168.1.0/24"),
			ZoneId:      pulumi.String(defaultTransitRouterAvailableResources.Resources[0].MasterZones[0]),
		})
		if err != nil {
			return err
		}
		defaultSlave, err := vpc.NewSwitch(ctx, "defaultSlave", &vpc.SwitchArgs{
			VswitchName: pulumi.String("sdk_rebot_cen_tr_yaochi"),
			VpcId:       defaultNetwork.ID(),
			CidrBlock:   pulumi.String("192.168.2.0/24"),
			ZoneId:      pulumi.String(defaultTransitRouterAvailableResources.Resources[0].SlaveZones[0]),
		})
		if err != nil {
			return err
		}
		defaultInstance, err := cen.NewInstance(ctx, "defaultInstance", &cen.InstanceArgs{
			CenInstanceName: pulumi.String("sdk_rebot_cen_tr_yaochi"),
			ProtectionLevel: pulumi.String("REDUCED"),
		})
		if err != nil {
			return err
		}
		defaultTransitRouter, err := cen.NewTransitRouter(ctx, "defaultTransitRouter", &cen.TransitRouterArgs{
			CenId: defaultInstance.ID(),
		})
		if err != nil {
			return err
		}
		_, err = cen.NewTransitRouterVpcAttachment(ctx, "defaultTransitRouterVpcAttachment", &cen.TransitRouterVpcAttachmentArgs{
			CenId:           defaultInstance.ID(),
			TransitRouterId: defaultTransitRouter.ID(),
			VpcId:           defaultNetwork.ID(),
			ZoneMappings: cen.TransitRouterVpcAttachmentZoneMappingArray{
				&cen.TransitRouterVpcAttachmentZoneMappingArgs{
					ZoneId:    pulumi.Any(data.Alicloud_cen_transit_router_available_resource.Default.Zones[0].Master_zones[0]),
					VswitchId: defaultMaster.ID(),
				},
				&cen.TransitRouterVpcAttachmentZoneMappingArgs{
					ZoneId:    pulumi.Any(data.Alicloud_cen_transit_router_available_resource.Default.Zones[0].Slave_zones[0]),
					VswitchId: defaultSlave.ID(),
				},
			},
			TransitRouterAttachmentName:        pulumi.String(transitRouterAttachmentName),
			TransitRouterAttachmentDescription: pulumi.String(transitRouterAttachmentDescription),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

## Import

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

```sh

$ pulumi import alicloud:cen/transitRouterVpcAttachment:TransitRouterVpcAttachment example tr-********:tr-attach-********

```

func GetTransitRouterVpcAttachment

func GetTransitRouterVpcAttachment(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *TransitRouterVpcAttachmentState, opts ...pulumi.ResourceOption) (*TransitRouterVpcAttachment, error)

GetTransitRouterVpcAttachment gets an existing TransitRouterVpcAttachment 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 NewTransitRouterVpcAttachment

func NewTransitRouterVpcAttachment(ctx *pulumi.Context,
	name string, args *TransitRouterVpcAttachmentArgs, opts ...pulumi.ResourceOption) (*TransitRouterVpcAttachment, error)

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

func (*TransitRouterVpcAttachment) ElementType

func (*TransitRouterVpcAttachment) ElementType() reflect.Type

func (*TransitRouterVpcAttachment) ToTransitRouterVpcAttachmentOutput

func (i *TransitRouterVpcAttachment) ToTransitRouterVpcAttachmentOutput() TransitRouterVpcAttachmentOutput

func (*TransitRouterVpcAttachment) ToTransitRouterVpcAttachmentOutputWithContext

func (i *TransitRouterVpcAttachment) ToTransitRouterVpcAttachmentOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentOutput

type TransitRouterVpcAttachmentArgs

type TransitRouterVpcAttachmentArgs struct {
	// The ID of the CEN.
	CenId pulumi.StringInput
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The payment type of the resource. Valid values: `PayAsYouGo`.
	PaymentType pulumi.StringPtrInput
	// The resource type of transit router vpc attachment. Valid value `VPC`. Default value is `VPC`.
	ResourceType pulumi.StringPtrInput
	// Deprecated: Field 'route_table_association_enabled' has been deprecated from provider version 1.192.0. Please use the resource 'alicloud_cen_transit_router_route_table_association' instead.
	RouteTableAssociationEnabled pulumi.BoolPtrInput
	// Deprecated: Field 'route_table_propagation_enabled' has been deprecated from provider version 1.192.0. Please use the resource 'alicloud_cen_transit_router_route_table_propagation' instead.
	RouteTablePropagationEnabled pulumi.BoolPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The description of the transit router vbr attachment.
	TransitRouterAttachmentDescription pulumi.StringPtrInput
	// The name of the transit router vbr attachment.
	TransitRouterAttachmentName pulumi.StringPtrInput
	// The ID of the transit router.
	TransitRouterId pulumi.StringPtrInput
	// The ID of the VPC.
	VpcId pulumi.StringInput
	// The owner id of vpc.
	VpcOwnerId pulumi.StringPtrInput
	// The list of zone mapping of the VPC. **NOTE:** From version 1.184.0, `zoneMappings` can be modified.
	// > **NOTE:** The Zone of CEN has MasterZone and SlaveZone, first zoneId of zoneMapping need be MasterZone. We have a API to describeZones[API](https://help.aliyun.com/document_detail/261356.html)
	ZoneMappings TransitRouterVpcAttachmentZoneMappingArrayInput
}

The set of arguments for constructing a TransitRouterVpcAttachment resource.

func (TransitRouterVpcAttachmentArgs) ElementType

type TransitRouterVpcAttachmentArray

type TransitRouterVpcAttachmentArray []TransitRouterVpcAttachmentInput

func (TransitRouterVpcAttachmentArray) ElementType

func (TransitRouterVpcAttachmentArray) ToTransitRouterVpcAttachmentArrayOutput

func (i TransitRouterVpcAttachmentArray) ToTransitRouterVpcAttachmentArrayOutput() TransitRouterVpcAttachmentArrayOutput

func (TransitRouterVpcAttachmentArray) ToTransitRouterVpcAttachmentArrayOutputWithContext

func (i TransitRouterVpcAttachmentArray) ToTransitRouterVpcAttachmentArrayOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentArrayOutput

type TransitRouterVpcAttachmentArrayInput

type TransitRouterVpcAttachmentArrayInput interface {
	pulumi.Input

	ToTransitRouterVpcAttachmentArrayOutput() TransitRouterVpcAttachmentArrayOutput
	ToTransitRouterVpcAttachmentArrayOutputWithContext(context.Context) TransitRouterVpcAttachmentArrayOutput
}

TransitRouterVpcAttachmentArrayInput is an input type that accepts TransitRouterVpcAttachmentArray and TransitRouterVpcAttachmentArrayOutput values. You can construct a concrete instance of `TransitRouterVpcAttachmentArrayInput` via:

TransitRouterVpcAttachmentArray{ TransitRouterVpcAttachmentArgs{...} }

type TransitRouterVpcAttachmentArrayOutput

type TransitRouterVpcAttachmentArrayOutput struct{ *pulumi.OutputState }

func (TransitRouterVpcAttachmentArrayOutput) ElementType

func (TransitRouterVpcAttachmentArrayOutput) Index

func (TransitRouterVpcAttachmentArrayOutput) ToTransitRouterVpcAttachmentArrayOutput

func (o TransitRouterVpcAttachmentArrayOutput) ToTransitRouterVpcAttachmentArrayOutput() TransitRouterVpcAttachmentArrayOutput

func (TransitRouterVpcAttachmentArrayOutput) ToTransitRouterVpcAttachmentArrayOutputWithContext

func (o TransitRouterVpcAttachmentArrayOutput) ToTransitRouterVpcAttachmentArrayOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentArrayOutput

type TransitRouterVpcAttachmentInput

type TransitRouterVpcAttachmentInput interface {
	pulumi.Input

	ToTransitRouterVpcAttachmentOutput() TransitRouterVpcAttachmentOutput
	ToTransitRouterVpcAttachmentOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentOutput
}

type TransitRouterVpcAttachmentMap

type TransitRouterVpcAttachmentMap map[string]TransitRouterVpcAttachmentInput

func (TransitRouterVpcAttachmentMap) ElementType

func (TransitRouterVpcAttachmentMap) ToTransitRouterVpcAttachmentMapOutput

func (i TransitRouterVpcAttachmentMap) ToTransitRouterVpcAttachmentMapOutput() TransitRouterVpcAttachmentMapOutput

func (TransitRouterVpcAttachmentMap) ToTransitRouterVpcAttachmentMapOutputWithContext

func (i TransitRouterVpcAttachmentMap) ToTransitRouterVpcAttachmentMapOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentMapOutput

type TransitRouterVpcAttachmentMapInput

type TransitRouterVpcAttachmentMapInput interface {
	pulumi.Input

	ToTransitRouterVpcAttachmentMapOutput() TransitRouterVpcAttachmentMapOutput
	ToTransitRouterVpcAttachmentMapOutputWithContext(context.Context) TransitRouterVpcAttachmentMapOutput
}

TransitRouterVpcAttachmentMapInput is an input type that accepts TransitRouterVpcAttachmentMap and TransitRouterVpcAttachmentMapOutput values. You can construct a concrete instance of `TransitRouterVpcAttachmentMapInput` via:

TransitRouterVpcAttachmentMap{ "key": TransitRouterVpcAttachmentArgs{...} }

type TransitRouterVpcAttachmentMapOutput

type TransitRouterVpcAttachmentMapOutput struct{ *pulumi.OutputState }

func (TransitRouterVpcAttachmentMapOutput) ElementType

func (TransitRouterVpcAttachmentMapOutput) MapIndex

func (TransitRouterVpcAttachmentMapOutput) ToTransitRouterVpcAttachmentMapOutput

func (o TransitRouterVpcAttachmentMapOutput) ToTransitRouterVpcAttachmentMapOutput() TransitRouterVpcAttachmentMapOutput

func (TransitRouterVpcAttachmentMapOutput) ToTransitRouterVpcAttachmentMapOutputWithContext

func (o TransitRouterVpcAttachmentMapOutput) ToTransitRouterVpcAttachmentMapOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentMapOutput

type TransitRouterVpcAttachmentOutput

type TransitRouterVpcAttachmentOutput struct{ *pulumi.OutputState }

func (TransitRouterVpcAttachmentOutput) CenId

The ID of the CEN.

func (TransitRouterVpcAttachmentOutput) DryRun

The dry run.

func (TransitRouterVpcAttachmentOutput) ElementType

func (TransitRouterVpcAttachmentOutput) PaymentType

The payment type of the resource. Valid values: `PayAsYouGo`.

func (TransitRouterVpcAttachmentOutput) ResourceType

The resource type of transit router vpc attachment. Valid value `VPC`. Default value is `VPC`.

func (TransitRouterVpcAttachmentOutput) RouteTableAssociationEnabled deprecated

func (o TransitRouterVpcAttachmentOutput) RouteTableAssociationEnabled() pulumi.BoolPtrOutput

Deprecated: Field 'route_table_association_enabled' has been deprecated from provider version 1.192.0. Please use the resource 'alicloud_cen_transit_router_route_table_association' instead.

func (TransitRouterVpcAttachmentOutput) RouteTablePropagationEnabled deprecated

func (o TransitRouterVpcAttachmentOutput) RouteTablePropagationEnabled() pulumi.BoolPtrOutput

Deprecated: Field 'route_table_propagation_enabled' has been deprecated from provider version 1.192.0. Please use the resource 'alicloud_cen_transit_router_route_table_propagation' instead.

func (TransitRouterVpcAttachmentOutput) Status

The associating status of the network.

func (TransitRouterVpcAttachmentOutput) Tags

A mapping of tags to assign to the resource.

func (TransitRouterVpcAttachmentOutput) ToTransitRouterVpcAttachmentOutput

func (o TransitRouterVpcAttachmentOutput) ToTransitRouterVpcAttachmentOutput() TransitRouterVpcAttachmentOutput

func (TransitRouterVpcAttachmentOutput) ToTransitRouterVpcAttachmentOutputWithContext

func (o TransitRouterVpcAttachmentOutput) ToTransitRouterVpcAttachmentOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentOutput

func (TransitRouterVpcAttachmentOutput) TransitRouterAttachmentDescription

func (o TransitRouterVpcAttachmentOutput) TransitRouterAttachmentDescription() pulumi.StringPtrOutput

The description of the transit router vbr attachment.

func (TransitRouterVpcAttachmentOutput) TransitRouterAttachmentId

func (o TransitRouterVpcAttachmentOutput) TransitRouterAttachmentId() pulumi.StringOutput

The ID of transit router attachment.

func (TransitRouterVpcAttachmentOutput) TransitRouterAttachmentName

func (o TransitRouterVpcAttachmentOutput) TransitRouterAttachmentName() pulumi.StringPtrOutput

The name of the transit router vbr attachment.

func (TransitRouterVpcAttachmentOutput) TransitRouterId

The ID of the transit router.

func (TransitRouterVpcAttachmentOutput) VpcId

The ID of the VPC.

func (TransitRouterVpcAttachmentOutput) VpcOwnerId

The owner id of vpc.

func (TransitRouterVpcAttachmentOutput) ZoneMappings

The list of zone mapping of the VPC. **NOTE:** From version 1.184.0, `zoneMappings` can be modified. > **NOTE:** The Zone of CEN has MasterZone and SlaveZone, first zoneId of zoneMapping need be MasterZone. We have a API to describeZones[API](https://help.aliyun.com/document_detail/261356.html)

type TransitRouterVpcAttachmentState

type TransitRouterVpcAttachmentState struct {
	// The ID of the CEN.
	CenId pulumi.StringPtrInput
	// The dry run.
	DryRun pulumi.BoolPtrInput
	// The payment type of the resource. Valid values: `PayAsYouGo`.
	PaymentType pulumi.StringPtrInput
	// The resource type of transit router vpc attachment. Valid value `VPC`. Default value is `VPC`.
	ResourceType pulumi.StringPtrInput
	// Deprecated: Field 'route_table_association_enabled' has been deprecated from provider version 1.192.0. Please use the resource 'alicloud_cen_transit_router_route_table_association' instead.
	RouteTableAssociationEnabled pulumi.BoolPtrInput
	// Deprecated: Field 'route_table_propagation_enabled' has been deprecated from provider version 1.192.0. Please use the resource 'alicloud_cen_transit_router_route_table_propagation' instead.
	RouteTablePropagationEnabled pulumi.BoolPtrInput
	// The associating status of the network.
	Status pulumi.StringPtrInput
	// A mapping of tags to assign to the resource.
	Tags pulumi.MapInput
	// The description of the transit router vbr attachment.
	TransitRouterAttachmentDescription pulumi.StringPtrInput
	// The ID of transit router attachment.
	TransitRouterAttachmentId pulumi.StringPtrInput
	// The name of the transit router vbr attachment.
	TransitRouterAttachmentName pulumi.StringPtrInput
	// The ID of the transit router.
	TransitRouterId pulumi.StringPtrInput
	// The ID of the VPC.
	VpcId pulumi.StringPtrInput
	// The owner id of vpc.
	VpcOwnerId pulumi.StringPtrInput
	// The list of zone mapping of the VPC. **NOTE:** From version 1.184.0, `zoneMappings` can be modified.
	// > **NOTE:** The Zone of CEN has MasterZone and SlaveZone, first zoneId of zoneMapping need be MasterZone. We have a API to describeZones[API](https://help.aliyun.com/document_detail/261356.html)
	ZoneMappings TransitRouterVpcAttachmentZoneMappingArrayInput
}

func (TransitRouterVpcAttachmentState) ElementType

type TransitRouterVpcAttachmentZoneMapping

type TransitRouterVpcAttachmentZoneMapping struct {
	// The VSwitch id of attachment.
	VswitchId *string `pulumi:"vswitchId"`
	// The zone Id of VSwitch.
	ZoneId *string `pulumi:"zoneId"`
}

type TransitRouterVpcAttachmentZoneMappingArgs

type TransitRouterVpcAttachmentZoneMappingArgs struct {
	// The VSwitch id of attachment.
	VswitchId pulumi.StringPtrInput `pulumi:"vswitchId"`
	// The zone Id of VSwitch.
	ZoneId pulumi.StringPtrInput `pulumi:"zoneId"`
}

func (TransitRouterVpcAttachmentZoneMappingArgs) ElementType

func (TransitRouterVpcAttachmentZoneMappingArgs) ToTransitRouterVpcAttachmentZoneMappingOutput

func (i TransitRouterVpcAttachmentZoneMappingArgs) ToTransitRouterVpcAttachmentZoneMappingOutput() TransitRouterVpcAttachmentZoneMappingOutput

func (TransitRouterVpcAttachmentZoneMappingArgs) ToTransitRouterVpcAttachmentZoneMappingOutputWithContext

func (i TransitRouterVpcAttachmentZoneMappingArgs) ToTransitRouterVpcAttachmentZoneMappingOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentZoneMappingOutput

type TransitRouterVpcAttachmentZoneMappingArray

type TransitRouterVpcAttachmentZoneMappingArray []TransitRouterVpcAttachmentZoneMappingInput

func (TransitRouterVpcAttachmentZoneMappingArray) ElementType

func (TransitRouterVpcAttachmentZoneMappingArray) ToTransitRouterVpcAttachmentZoneMappingArrayOutput

func (i TransitRouterVpcAttachmentZoneMappingArray) ToTransitRouterVpcAttachmentZoneMappingArrayOutput() TransitRouterVpcAttachmentZoneMappingArrayOutput

func (TransitRouterVpcAttachmentZoneMappingArray) ToTransitRouterVpcAttachmentZoneMappingArrayOutputWithContext

func (i TransitRouterVpcAttachmentZoneMappingArray) ToTransitRouterVpcAttachmentZoneMappingArrayOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentZoneMappingArrayOutput

type TransitRouterVpcAttachmentZoneMappingArrayInput

type TransitRouterVpcAttachmentZoneMappingArrayInput interface {
	pulumi.Input

	ToTransitRouterVpcAttachmentZoneMappingArrayOutput() TransitRouterVpcAttachmentZoneMappingArrayOutput
	ToTransitRouterVpcAttachmentZoneMappingArrayOutputWithContext(context.Context) TransitRouterVpcAttachmentZoneMappingArrayOutput
}

TransitRouterVpcAttachmentZoneMappingArrayInput is an input type that accepts TransitRouterVpcAttachmentZoneMappingArray and TransitRouterVpcAttachmentZoneMappingArrayOutput values. You can construct a concrete instance of `TransitRouterVpcAttachmentZoneMappingArrayInput` via:

TransitRouterVpcAttachmentZoneMappingArray{ TransitRouterVpcAttachmentZoneMappingArgs{...} }

type TransitRouterVpcAttachmentZoneMappingArrayOutput

type TransitRouterVpcAttachmentZoneMappingArrayOutput struct{ *pulumi.OutputState }

func (TransitRouterVpcAttachmentZoneMappingArrayOutput) ElementType

func (TransitRouterVpcAttachmentZoneMappingArrayOutput) Index

func (TransitRouterVpcAttachmentZoneMappingArrayOutput) ToTransitRouterVpcAttachmentZoneMappingArrayOutput

func (o TransitRouterVpcAttachmentZoneMappingArrayOutput) ToTransitRouterVpcAttachmentZoneMappingArrayOutput() TransitRouterVpcAttachmentZoneMappingArrayOutput

func (TransitRouterVpcAttachmentZoneMappingArrayOutput) ToTransitRouterVpcAttachmentZoneMappingArrayOutputWithContext

func (o TransitRouterVpcAttachmentZoneMappingArrayOutput) ToTransitRouterVpcAttachmentZoneMappingArrayOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentZoneMappingArrayOutput

type TransitRouterVpcAttachmentZoneMappingInput

type TransitRouterVpcAttachmentZoneMappingInput interface {
	pulumi.Input

	ToTransitRouterVpcAttachmentZoneMappingOutput() TransitRouterVpcAttachmentZoneMappingOutput
	ToTransitRouterVpcAttachmentZoneMappingOutputWithContext(context.Context) TransitRouterVpcAttachmentZoneMappingOutput
}

TransitRouterVpcAttachmentZoneMappingInput is an input type that accepts TransitRouterVpcAttachmentZoneMappingArgs and TransitRouterVpcAttachmentZoneMappingOutput values. You can construct a concrete instance of `TransitRouterVpcAttachmentZoneMappingInput` via:

TransitRouterVpcAttachmentZoneMappingArgs{...}

type TransitRouterVpcAttachmentZoneMappingOutput

type TransitRouterVpcAttachmentZoneMappingOutput struct{ *pulumi.OutputState }

func (TransitRouterVpcAttachmentZoneMappingOutput) ElementType

func (TransitRouterVpcAttachmentZoneMappingOutput) ToTransitRouterVpcAttachmentZoneMappingOutput

func (o TransitRouterVpcAttachmentZoneMappingOutput) ToTransitRouterVpcAttachmentZoneMappingOutput() TransitRouterVpcAttachmentZoneMappingOutput

func (TransitRouterVpcAttachmentZoneMappingOutput) ToTransitRouterVpcAttachmentZoneMappingOutputWithContext

func (o TransitRouterVpcAttachmentZoneMappingOutput) ToTransitRouterVpcAttachmentZoneMappingOutputWithContext(ctx context.Context) TransitRouterVpcAttachmentZoneMappingOutput

func (TransitRouterVpcAttachmentZoneMappingOutput) VswitchId

The VSwitch id of attachment.

func (TransitRouterVpcAttachmentZoneMappingOutput) ZoneId

The zone Id of VSwitch.

type VbrHealthCheck

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/sdk/v3/go/pulumi"
"github.com/rhysmdnz/pulumi-alicloud/sdk/go/alicloud/cen"

)

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

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

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

func (*VbrHealthCheck) ElementType() reflect.Type

func (*VbrHealthCheck) ToVbrHealthCheckOutput

func (i *VbrHealthCheck) ToVbrHealthCheckOutput() VbrHealthCheckOutput

func (*VbrHealthCheck) ToVbrHealthCheckOutputWithContext

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

type VbrHealthCheckArgs

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

func (VbrHealthCheckArgs) ElementType() reflect.Type

type VbrHealthCheckArray

type VbrHealthCheckArray []VbrHealthCheckInput

func (VbrHealthCheckArray) ElementType

func (VbrHealthCheckArray) ElementType() reflect.Type

func (VbrHealthCheckArray) ToVbrHealthCheckArrayOutput

func (i VbrHealthCheckArray) ToVbrHealthCheckArrayOutput() VbrHealthCheckArrayOutput

func (VbrHealthCheckArray) ToVbrHealthCheckArrayOutputWithContext

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

type VbrHealthCheckArrayInput

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

type VbrHealthCheckArrayOutput struct{ *pulumi.OutputState }

func (VbrHealthCheckArrayOutput) ElementType

func (VbrHealthCheckArrayOutput) ElementType() reflect.Type

func (VbrHealthCheckArrayOutput) Index

func (VbrHealthCheckArrayOutput) ToVbrHealthCheckArrayOutput

func (o VbrHealthCheckArrayOutput) ToVbrHealthCheckArrayOutput() VbrHealthCheckArrayOutput

func (VbrHealthCheckArrayOutput) ToVbrHealthCheckArrayOutputWithContext

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

type VbrHealthCheckInput

type VbrHealthCheckInput interface {
	pulumi.Input

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

type VbrHealthCheckMap

type VbrHealthCheckMap map[string]VbrHealthCheckInput

func (VbrHealthCheckMap) ElementType

func (VbrHealthCheckMap) ElementType() reflect.Type

func (VbrHealthCheckMap) ToVbrHealthCheckMapOutput

func (i VbrHealthCheckMap) ToVbrHealthCheckMapOutput() VbrHealthCheckMapOutput

func (VbrHealthCheckMap) ToVbrHealthCheckMapOutputWithContext

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

type VbrHealthCheckMapInput

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

type VbrHealthCheckMapOutput struct{ *pulumi.OutputState }

func (VbrHealthCheckMapOutput) ElementType

func (VbrHealthCheckMapOutput) ElementType() reflect.Type

func (VbrHealthCheckMapOutput) MapIndex

func (VbrHealthCheckMapOutput) ToVbrHealthCheckMapOutput

func (o VbrHealthCheckMapOutput) ToVbrHealthCheckMapOutput() VbrHealthCheckMapOutput

func (VbrHealthCheckMapOutput) ToVbrHealthCheckMapOutputWithContext

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

type VbrHealthCheckOutput

type VbrHealthCheckOutput struct{ *pulumi.OutputState }

func (VbrHealthCheckOutput) CenId

The ID of the CEN instance.

func (VbrHealthCheckOutput) ElementType

func (VbrHealthCheckOutput) ElementType() reflect.Type

func (VbrHealthCheckOutput) HealthCheckInterval

func (o VbrHealthCheckOutput) HealthCheckInterval() pulumi.IntPtrOutput

Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.

func (VbrHealthCheckOutput) HealthCheckSourceIp

func (o VbrHealthCheckOutput) HealthCheckSourceIp() pulumi.StringPtrOutput

The source IP address of health checks.

func (VbrHealthCheckOutput) HealthCheckTargetIp

func (o VbrHealthCheckOutput) HealthCheckTargetIp() pulumi.StringOutput

The destination IP address of health checks.

func (VbrHealthCheckOutput) HealthyThreshold

func (o VbrHealthCheckOutput) HealthyThreshold() pulumi.IntPtrOutput

Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.

func (VbrHealthCheckOutput) ToVbrHealthCheckOutput

func (o VbrHealthCheckOutput) ToVbrHealthCheckOutput() VbrHealthCheckOutput

func (VbrHealthCheckOutput) ToVbrHealthCheckOutputWithContext

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

func (VbrHealthCheckOutput) VbrInstanceId

func (o VbrHealthCheckOutput) VbrInstanceId() pulumi.StringOutput

The ID of the VBR.

func (VbrHealthCheckOutput) VbrInstanceOwnerId

func (o VbrHealthCheckOutput) VbrInstanceOwnerId() pulumi.IntPtrOutput

The ID of the account to which the VBR belongs.

func (VbrHealthCheckOutput) VbrInstanceRegionId

func (o VbrHealthCheckOutput) VbrInstanceRegionId() pulumi.StringOutput

The ID of the region to which the VBR belongs.

type VbrHealthCheckState

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

func (VbrHealthCheckState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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