ZoneAttachmentArgs

data class ZoneAttachmentArgs(val lang: Output<String>? = null, val userClientIp: Output<String>? = null, val vpcIds: Output<List<String>>? = null, val vpcs: Output<List<ZoneAttachmentVpcArgs>>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<ZoneAttachmentArgs>

Example Usage

Using vpc_ids to attach being in same region several vpc instances to a private zone

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.pvtz.Zone;
import com.pulumi.alicloud.pvtz.ZoneArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.pvtz.ZoneAttachment;
import com.pulumi.alicloud.pvtz.ZoneAttachmentArgs;
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 zone = new Zone("zone", ZoneArgs.builder()
.zoneName("foo.example.com")
.build());
var first = new Network("first", NetworkArgs.builder()
.vpcName("the-first-vpc")
.cidrBlock("172.16.0.0/12")
.build());
var second = new Network("second", NetworkArgs.builder()
.vpcName("the-second-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var zone_attachment = new ZoneAttachment("zone-attachment", ZoneAttachmentArgs.builder()
.zoneId(zone.id())
.vpcIds(
first.id(),
second.id())
.build());
}
}

Import

Private Zone attachment can be imported using the id(same with zone_id), e.g.

$ pulumi import alicloud:pvtz/zoneAttachment:ZoneAttachment example abc123456

Constructors

Link copied to clipboard
fun ZoneAttachmentArgs(lang: Output<String>? = null, userClientIp: Output<String>? = null, vpcIds: Output<List<String>>? = null, vpcs: Output<List<ZoneAttachmentVpcArgs>>? = null, zoneId: Output<String>? = null)

Functions

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

Properties

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

The language of code.

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

The user custom IP address.

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

The id List of the VPC with the same region, for example:"vpc-1","vpc-2".

Link copied to clipboard
val vpcs: Output<List<ZoneAttachmentVpcArgs>>? = null

See vpcs below.Recommend to use vpcs.

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

The name of the Private Zone Record.