PrivateZoneArgs

data class PrivateZoneArgs(val accessRegionId: Output<String>? = null, val cenId: Output<String>? = null, val hostRegionId: Output<String>? = null, val hostVpcId: Output<String>? = null) : ConvertibleToJava<PrivateZoneArgs>

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.

NOTE: Available in 1.83.0+

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.Instance;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.cen.InstanceAttachment;
import com.pulumi.alicloud.cen.InstanceAttachmentArgs;
import com.pulumi.alicloud.cen.PrivateZone;
import com.pulumi.alicloud.cen.PrivateZoneArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var defaultInstance = new Instance("defaultInstance");
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName("test_name")
.cidrBlock("172.16.0.0/12")
.build());
var defaultInstanceAttachment = new InstanceAttachment("defaultInstanceAttachment", InstanceAttachmentArgs.builder()
.instanceId(defaultInstance.id())
.childInstanceId(defaultNetwork.id())
.childInstanceType("VPC")
.childInstanceRegionId("cn-hangzhou")
.build(), CustomResourceOptions.builder()
.dependsOn(
defaultInstance,
defaultNetwork)
.build());
var defaultPrivateZone = new PrivateZone("defaultPrivateZone", PrivateZoneArgs.builder()
.accessRegionId("cn-hangzhou")
.cenId(defaultInstance.id())
.hostRegionId("cn-hangzhou")
.hostVpcId(defaultNetwork.id())
.build(), CustomResourceOptions.builder()
.dependsOn(defaultInstanceAttachment)
.build());
}
}

Import

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

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

Constructors

Link copied to clipboard
fun PrivateZoneArgs(accessRegionId: Output<String>? = null, cenId: Output<String>? = null, hostRegionId: Output<String>? = null, hostVpcId: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): PrivateZoneArgs

Properties

Link copied to clipboard
val accessRegionId: Output<String>? = null

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

Link copied to clipboard
val cenId: Output<String>? = null

The ID of the CEN instance.

Link copied to clipboard
val hostRegionId: Output<String>? = null

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

Link copied to clipboard
val hostVpcId: Output<String>? = null

The VPC that belongs to the service region.