alicloud.pvtz.ZoneAttachment
Explore with Pulumi AI
Example Usage
Using vpc_ids
to attach being in same region several vpc instances to a private zone
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const zone = new alicloud.pvtz.Zone("zone", {zoneName: "foo.example.com"});
const first = new alicloud.vpc.Network("first", {
vpcName: "the-first-vpc",
cidrBlock: "172.16.0.0/12",
});
const second = new alicloud.vpc.Network("second", {
vpcName: "the-second-vpc",
cidrBlock: "172.16.0.0/16",
});
const zone_attachment = new alicloud.pvtz.ZoneAttachment("zone-attachment", {
zoneId: zone.id,
vpcIds: [
first.id,
second.id,
],
});
import pulumi
import pulumi_alicloud as alicloud
zone = alicloud.pvtz.Zone("zone", zone_name="foo.example.com")
first = alicloud.vpc.Network("first",
vpc_name="the-first-vpc",
cidr_block="172.16.0.0/12")
second = alicloud.vpc.Network("second",
vpc_name="the-second-vpc",
cidr_block="172.16.0.0/16")
zone_attachment = alicloud.pvtz.ZoneAttachment("zone-attachment",
zone_id=zone.id,
vpc_ids=[
first.id,
second.id,
])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/pvtz"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
zone, err := pvtz.NewZone(ctx, "zone", &pvtz.ZoneArgs{
ZoneName: pulumi.String("foo.example.com"),
})
if err != nil {
return err
}
first, err := vpc.NewNetwork(ctx, "first", &vpc.NetworkArgs{
VpcName: pulumi.String("the-first-vpc"),
CidrBlock: pulumi.String("172.16.0.0/12"),
})
if err != nil {
return err
}
second, err := vpc.NewNetwork(ctx, "second", &vpc.NetworkArgs{
VpcName: pulumi.String("the-second-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
_, err = pvtz.NewZoneAttachment(ctx, "zone-attachment", &pvtz.ZoneAttachmentArgs{
ZoneId: zone.ID(),
VpcIds: pulumi.StringArray{
first.ID(),
second.ID(),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var zone = new AliCloud.Pvtz.Zone("zone", new()
{
ZoneName = "foo.example.com",
});
var first = new AliCloud.Vpc.Network("first", new()
{
VpcName = "the-first-vpc",
CidrBlock = "172.16.0.0/12",
});
var second = new AliCloud.Vpc.Network("second", new()
{
VpcName = "the-second-vpc",
CidrBlock = "172.16.0.0/16",
});
var zone_attachment = new AliCloud.Pvtz.ZoneAttachment("zone-attachment", new()
{
ZoneId = zone.Id,
VpcIds = new[]
{
first.Id,
second.Id,
},
});
});
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());
}
}
resources:
zone:
type: alicloud:pvtz:Zone
properties:
zoneName: foo.example.com
first:
type: alicloud:vpc:Network
properties:
vpcName: the-first-vpc
cidrBlock: 172.16.0.0/12
second:
type: alicloud:vpc:Network
properties:
vpcName: the-second-vpc
cidrBlock: 172.16.0.0/16
zone-attachment:
type: alicloud:pvtz:ZoneAttachment
properties:
zoneId: ${zone.id}
vpcIds:
- ${first.id}
- ${second.id}
Using vpcs
to attach being in same region several vpc instances to a private zone
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const zone = new alicloud.pvtz.Zone("zone", {zoneName: "foo.example.com"});
const first = new alicloud.vpc.Network("first", {
vpcName: "the-first-vpc",
cidrBlock: "172.16.0.0/12",
});
const second = new alicloud.vpc.Network("second", {
vpcName: "the-second-vpc",
cidrBlock: "172.16.0.0/16",
});
const zone_attachment = new alicloud.pvtz.ZoneAttachment("zone-attachment", {
zoneId: zone.id,
vpcs: [
{
vpcId: first.id,
},
{
vpcId: second.id,
},
],
});
import pulumi
import pulumi_alicloud as alicloud
zone = alicloud.pvtz.Zone("zone", zone_name="foo.example.com")
first = alicloud.vpc.Network("first",
vpc_name="the-first-vpc",
cidr_block="172.16.0.0/12")
second = alicloud.vpc.Network("second",
vpc_name="the-second-vpc",
cidr_block="172.16.0.0/16")
zone_attachment = alicloud.pvtz.ZoneAttachment("zone-attachment",
zone_id=zone.id,
vpcs=[
{
"vpc_id": first.id,
},
{
"vpc_id": second.id,
},
])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/pvtz"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
zone, err := pvtz.NewZone(ctx, "zone", &pvtz.ZoneArgs{
ZoneName: pulumi.String("foo.example.com"),
})
if err != nil {
return err
}
first, err := vpc.NewNetwork(ctx, "first", &vpc.NetworkArgs{
VpcName: pulumi.String("the-first-vpc"),
CidrBlock: pulumi.String("172.16.0.0/12"),
})
if err != nil {
return err
}
second, err := vpc.NewNetwork(ctx, "second", &vpc.NetworkArgs{
VpcName: pulumi.String("the-second-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
_, err = pvtz.NewZoneAttachment(ctx, "zone-attachment", &pvtz.ZoneAttachmentArgs{
ZoneId: zone.ID(),
Vpcs: pvtz.ZoneAttachmentVpcArray{
&pvtz.ZoneAttachmentVpcArgs{
VpcId: first.ID(),
},
&pvtz.ZoneAttachmentVpcArgs{
VpcId: second.ID(),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var zone = new AliCloud.Pvtz.Zone("zone", new()
{
ZoneName = "foo.example.com",
});
var first = new AliCloud.Vpc.Network("first", new()
{
VpcName = "the-first-vpc",
CidrBlock = "172.16.0.0/12",
});
var second = new AliCloud.Vpc.Network("second", new()
{
VpcName = "the-second-vpc",
CidrBlock = "172.16.0.0/16",
});
var zone_attachment = new AliCloud.Pvtz.ZoneAttachment("zone-attachment", new()
{
ZoneId = zone.Id,
Vpcs = new[]
{
new AliCloud.Pvtz.Inputs.ZoneAttachmentVpcArgs
{
VpcId = first.Id,
},
new AliCloud.Pvtz.Inputs.ZoneAttachmentVpcArgs
{
VpcId = second.Id,
},
},
});
});
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 com.pulumi.alicloud.pvtz.inputs.ZoneAttachmentVpcArgs;
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())
.vpcs(
ZoneAttachmentVpcArgs.builder()
.vpcId(first.id())
.build(),
ZoneAttachmentVpcArgs.builder()
.vpcId(second.id())
.build())
.build());
}
}
resources:
zone:
type: alicloud:pvtz:Zone
properties:
zoneName: foo.example.com
first:
type: alicloud:vpc:Network
properties:
vpcName: the-first-vpc
cidrBlock: 172.16.0.0/12
second:
type: alicloud:vpc:Network
properties:
vpcName: the-second-vpc
cidrBlock: 172.16.0.0/16
zone-attachment:
type: alicloud:pvtz:ZoneAttachment
properties:
zoneId: ${zone.id}
vpcs:
- vpcId: ${first.id}
- vpcId: ${second.id}
Using vpcs
to attach being in different regions several vpc instances to a private zone
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const zone = new alicloud.pvtz.Zone("zone", {zoneName: "foo.example.com"});
const first = new alicloud.vpc.Network("first", {
vpcName: "the-first-vpc",
cidrBlock: "172.16.0.0/12",
});
const second = new alicloud.vpc.Network("second", {
vpcName: "the-second-vpc",
cidrBlock: "172.16.0.0/16",
});
const third = new alicloud.vpc.Network("third", {
vpcName: "the-third-vpc",
cidrBlock: "172.16.0.0/16",
});
const zone_attachment = new alicloud.pvtz.ZoneAttachment("zone-attachment", {
zoneId: zone.id,
vpcs: [
{
vpcId: first.id,
},
{
vpcId: second.id,
},
{
regionId: "eu-central-1",
vpcId: third.id,
},
],
});
import pulumi
import pulumi_alicloud as alicloud
zone = alicloud.pvtz.Zone("zone", zone_name="foo.example.com")
first = alicloud.vpc.Network("first",
vpc_name="the-first-vpc",
cidr_block="172.16.0.0/12")
second = alicloud.vpc.Network("second",
vpc_name="the-second-vpc",
cidr_block="172.16.0.0/16")
third = alicloud.vpc.Network("third",
vpc_name="the-third-vpc",
cidr_block="172.16.0.0/16")
zone_attachment = alicloud.pvtz.ZoneAttachment("zone-attachment",
zone_id=zone.id,
vpcs=[
{
"vpc_id": first.id,
},
{
"vpc_id": second.id,
},
{
"region_id": "eu-central-1",
"vpc_id": third.id,
},
])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/pvtz"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
zone, err := pvtz.NewZone(ctx, "zone", &pvtz.ZoneArgs{
ZoneName: pulumi.String("foo.example.com"),
})
if err != nil {
return err
}
first, err := vpc.NewNetwork(ctx, "first", &vpc.NetworkArgs{
VpcName: pulumi.String("the-first-vpc"),
CidrBlock: pulumi.String("172.16.0.0/12"),
})
if err != nil {
return err
}
second, err := vpc.NewNetwork(ctx, "second", &vpc.NetworkArgs{
VpcName: pulumi.String("the-second-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
third, err := vpc.NewNetwork(ctx, "third", &vpc.NetworkArgs{
VpcName: pulumi.String("the-third-vpc"),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
_, err = pvtz.NewZoneAttachment(ctx, "zone-attachment", &pvtz.ZoneAttachmentArgs{
ZoneId: zone.ID(),
Vpcs: pvtz.ZoneAttachmentVpcArray{
&pvtz.ZoneAttachmentVpcArgs{
VpcId: first.ID(),
},
&pvtz.ZoneAttachmentVpcArgs{
VpcId: second.ID(),
},
&pvtz.ZoneAttachmentVpcArgs{
RegionId: pulumi.String("eu-central-1"),
VpcId: third.ID(),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var zone = new AliCloud.Pvtz.Zone("zone", new()
{
ZoneName = "foo.example.com",
});
var first = new AliCloud.Vpc.Network("first", new()
{
VpcName = "the-first-vpc",
CidrBlock = "172.16.0.0/12",
});
var second = new AliCloud.Vpc.Network("second", new()
{
VpcName = "the-second-vpc",
CidrBlock = "172.16.0.0/16",
});
var third = new AliCloud.Vpc.Network("third", new()
{
VpcName = "the-third-vpc",
CidrBlock = "172.16.0.0/16",
});
var zone_attachment = new AliCloud.Pvtz.ZoneAttachment("zone-attachment", new()
{
ZoneId = zone.Id,
Vpcs = new[]
{
new AliCloud.Pvtz.Inputs.ZoneAttachmentVpcArgs
{
VpcId = first.Id,
},
new AliCloud.Pvtz.Inputs.ZoneAttachmentVpcArgs
{
VpcId = second.Id,
},
new AliCloud.Pvtz.Inputs.ZoneAttachmentVpcArgs
{
RegionId = "eu-central-1",
VpcId = third.Id,
},
},
});
});
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 com.pulumi.alicloud.pvtz.inputs.ZoneAttachmentVpcArgs;
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 third = new Network("third", NetworkArgs.builder()
.vpcName("the-third-vpc")
.cidrBlock("172.16.0.0/16")
.build());
var zone_attachment = new ZoneAttachment("zone-attachment", ZoneAttachmentArgs.builder()
.zoneId(zone.id())
.vpcs(
ZoneAttachmentVpcArgs.builder()
.vpcId(first.id())
.build(),
ZoneAttachmentVpcArgs.builder()
.vpcId(second.id())
.build(),
ZoneAttachmentVpcArgs.builder()
.regionId("eu-central-1")
.vpcId(third.id())
.build())
.build());
}
}
resources:
zone:
type: alicloud:pvtz:Zone
properties:
zoneName: foo.example.com
first:
type: alicloud:vpc:Network
properties:
vpcName: the-first-vpc
cidrBlock: 172.16.0.0/12
second:
type: alicloud:vpc:Network
properties:
vpcName: the-second-vpc
cidrBlock: 172.16.0.0/16
third:
type: alicloud:vpc:Network
properties:
vpcName: the-third-vpc
cidrBlock: 172.16.0.0/16
zone-attachment:
type: alicloud:pvtz:ZoneAttachment
properties:
zoneId: ${zone.id}
vpcs:
- vpcId: ${first.id}
- vpcId: ${second.id}
- regionId: eu-central-1
vpcId: ${third.id}
Create ZoneAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZoneAttachment(name: string, args: ZoneAttachmentArgs, opts?: CustomResourceOptions);
@overload
def ZoneAttachment(resource_name: str,
args: ZoneAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZoneAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
zone_id: Optional[str] = None,
lang: Optional[str] = None,
user_client_ip: Optional[str] = None,
vpc_ids: Optional[Sequence[str]] = None,
vpcs: Optional[Sequence[ZoneAttachmentVpcArgs]] = None)
func NewZoneAttachment(ctx *Context, name string, args ZoneAttachmentArgs, opts ...ResourceOption) (*ZoneAttachment, error)
public ZoneAttachment(string name, ZoneAttachmentArgs args, CustomResourceOptions? opts = null)
public ZoneAttachment(String name, ZoneAttachmentArgs args)
public ZoneAttachment(String name, ZoneAttachmentArgs args, CustomResourceOptions options)
type: alicloud:pvtz:ZoneAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ZoneAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ZoneAttachmentArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ZoneAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZoneAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZoneAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var zoneAttachmentResource = new AliCloud.Pvtz.ZoneAttachment("zoneAttachmentResource", new()
{
ZoneId = "string",
Lang = "string",
UserClientIp = "string",
VpcIds = new[]
{
"string",
},
Vpcs = new[]
{
new AliCloud.Pvtz.Inputs.ZoneAttachmentVpcArgs
{
VpcId = "string",
RegionId = "string",
},
},
});
example, err := pvtz.NewZoneAttachment(ctx, "zoneAttachmentResource", &pvtz.ZoneAttachmentArgs{
ZoneId: pulumi.String("string"),
Lang: pulumi.String("string"),
UserClientIp: pulumi.String("string"),
VpcIds: pulumi.StringArray{
pulumi.String("string"),
},
Vpcs: pvtz.ZoneAttachmentVpcArray{
&pvtz.ZoneAttachmentVpcArgs{
VpcId: pulumi.String("string"),
RegionId: pulumi.String("string"),
},
},
})
var zoneAttachmentResource = new ZoneAttachment("zoneAttachmentResource", ZoneAttachmentArgs.builder()
.zoneId("string")
.lang("string")
.userClientIp("string")
.vpcIds("string")
.vpcs(ZoneAttachmentVpcArgs.builder()
.vpcId("string")
.regionId("string")
.build())
.build());
zone_attachment_resource = alicloud.pvtz.ZoneAttachment("zoneAttachmentResource",
zone_id="string",
lang="string",
user_client_ip="string",
vpc_ids=["string"],
vpcs=[{
"vpc_id": "string",
"region_id": "string",
}])
const zoneAttachmentResource = new alicloud.pvtz.ZoneAttachment("zoneAttachmentResource", {
zoneId: "string",
lang: "string",
userClientIp: "string",
vpcIds: ["string"],
vpcs: [{
vpcId: "string",
regionId: "string",
}],
});
type: alicloud:pvtz:ZoneAttachment
properties:
lang: string
userClientIp: string
vpcIds:
- string
vpcs:
- regionId: string
vpcId: string
zoneId: string
ZoneAttachment Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ZoneAttachment resource accepts the following input properties:
- Zone
Id string - The name of the Private Zone Record.
- Lang string
- The language of code.
- User
Client stringIp - The user custom IP address.
- Vpc
Ids List<string> - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- Vpcs
List<Pulumi.
Ali Cloud. Pvtz. Inputs. Zone Attachment Vpc> - See
vpcs
below.Recommend to usevpcs
.
- Zone
Id string - The name of the Private Zone Record.
- Lang string
- The language of code.
- User
Client stringIp - The user custom IP address.
- Vpc
Ids []string - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- Vpcs
[]Zone
Attachment Vpc Args - See
vpcs
below.Recommend to usevpcs
.
- zone
Id String - The name of the Private Zone Record.
- lang String
- The language of code.
- user
Client StringIp - The user custom IP address.
- vpc
Ids List<String> - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- vpcs
List<Zone
Attachment Vpc> - See
vpcs
below.Recommend to usevpcs
.
- zone
Id string - The name of the Private Zone Record.
- lang string
- The language of code.
- user
Client stringIp - The user custom IP address.
- vpc
Ids string[] - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- vpcs
Zone
Attachment Vpc[] - See
vpcs
below.Recommend to usevpcs
.
- zone_
id str - The name of the Private Zone Record.
- lang str
- The language of code.
- user_
client_ strip - The user custom IP address.
- vpc_
ids Sequence[str] - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- vpcs
Sequence[Zone
Attachment Vpc Args] - See
vpcs
below.Recommend to usevpcs
.
- zone
Id String - The name of the Private Zone Record.
- lang String
- The language of code.
- user
Client StringIp - The user custom IP address.
- vpc
Ids List<String> - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- vpcs List<Property Map>
- See
vpcs
below.Recommend to usevpcs
.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZoneAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing ZoneAttachment Resource
Get an existing ZoneAttachment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ZoneAttachmentState, opts?: CustomResourceOptions): ZoneAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
lang: Optional[str] = None,
user_client_ip: Optional[str] = None,
vpc_ids: Optional[Sequence[str]] = None,
vpcs: Optional[Sequence[ZoneAttachmentVpcArgs]] = None,
zone_id: Optional[str] = None) -> ZoneAttachment
func GetZoneAttachment(ctx *Context, name string, id IDInput, state *ZoneAttachmentState, opts ...ResourceOption) (*ZoneAttachment, error)
public static ZoneAttachment Get(string name, Input<string> id, ZoneAttachmentState? state, CustomResourceOptions? opts = null)
public static ZoneAttachment get(String name, Output<String> id, ZoneAttachmentState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Lang string
- The language of code.
- User
Client stringIp - The user custom IP address.
- Vpc
Ids List<string> - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- Vpcs
List<Pulumi.
Ali Cloud. Pvtz. Inputs. Zone Attachment Vpc> - See
vpcs
below.Recommend to usevpcs
. - Zone
Id string - The name of the Private Zone Record.
- Lang string
- The language of code.
- User
Client stringIp - The user custom IP address.
- Vpc
Ids []string - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- Vpcs
[]Zone
Attachment Vpc Args - See
vpcs
below.Recommend to usevpcs
. - Zone
Id string - The name of the Private Zone Record.
- lang String
- The language of code.
- user
Client StringIp - The user custom IP address.
- vpc
Ids List<String> - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- vpcs
List<Zone
Attachment Vpc> - See
vpcs
below.Recommend to usevpcs
. - zone
Id String - The name of the Private Zone Record.
- lang string
- The language of code.
- user
Client stringIp - The user custom IP address.
- vpc
Ids string[] - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- vpcs
Zone
Attachment Vpc[] - See
vpcs
below.Recommend to usevpcs
. - zone
Id string - The name of the Private Zone Record.
- lang str
- The language of code.
- user_
client_ strip - The user custom IP address.
- vpc_
ids Sequence[str] - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- vpcs
Sequence[Zone
Attachment Vpc Args] - See
vpcs
below.Recommend to usevpcs
. - zone_
id str - The name of the Private Zone Record.
- lang String
- The language of code.
- user
Client StringIp - The user custom IP address.
- vpc
Ids List<String> - The id List of the VPC with the same region, for example:["vpc-1","vpc-2"].
- vpcs List<Property Map>
- See
vpcs
below.Recommend to usevpcs
. - zone
Id String - The name of the Private Zone Record.
Supporting Types
ZoneAttachmentVpc, ZoneAttachmentVpcArgs
Import
Private Zone attachment can be imported using the id(same with zone_id
), e.g.
$ pulumi import alicloud:pvtz/zoneAttachment:ZoneAttachment example abc123456
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.