alicloud.vpc.PrefixList
Explore with Pulumi AI
Provides a Vpc Prefix List resource. This resource is used to create a prefix list.
For information about Vpc Prefix List and how to use it, see What is Prefix List.
NOTE: Available in v1.182.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-testacc-example";
const defaultRg = new alicloud.resourcemanager.ResourceGroup("defaultRg", {
displayName: "tf-testacc-chenyi",
resourceGroupName: name,
});
const changeRg = new alicloud.resourcemanager.ResourceGroup("changeRg", {
displayName: "tf-testacc-chenyi-change",
resourceGroupName: `${name}1`,
});
const _default = new alicloud.vpc.PrefixList("default", {
maxEntries: 50,
resourceGroupId: defaultRg.id,
prefixListDescription: "test",
ipVersion: "IPV4",
prefixListName: name,
entrys: [{
cidr: "192.168.0.0/16",
description: "test",
}],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-testacc-example"
default_rg = alicloud.resourcemanager.ResourceGroup("defaultRg",
display_name="tf-testacc-chenyi",
resource_group_name=name)
change_rg = alicloud.resourcemanager.ResourceGroup("changeRg",
display_name="tf-testacc-chenyi-change",
resource_group_name=f"{name}1")
default = alicloud.vpc.PrefixList("default",
max_entries=50,
resource_group_id=default_rg.id,
prefix_list_description="test",
ip_version="IPV4",
prefix_list_name=name,
entrys=[{
"cidr": "192.168.0.0/16",
"description": "test",
}])
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-testacc-example"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultRg, err := resourcemanager.NewResourceGroup(ctx, "defaultRg", &resourcemanager.ResourceGroupArgs{
DisplayName: pulumi.String("tf-testacc-chenyi"),
ResourceGroupName: pulumi.String(name),
})
if err != nil {
return err
}
_, err = resourcemanager.NewResourceGroup(ctx, "changeRg", &resourcemanager.ResourceGroupArgs{
DisplayName: pulumi.String("tf-testacc-chenyi-change"),
ResourceGroupName: pulumi.Sprintf("%v1", name),
})
if err != nil {
return err
}
_, err = vpc.NewPrefixList(ctx, "default", &vpc.PrefixListArgs{
MaxEntries: pulumi.Int(50),
ResourceGroupId: defaultRg.ID(),
PrefixListDescription: pulumi.String("test"),
IpVersion: pulumi.String("IPV4"),
PrefixListName: pulumi.String(name),
Entrys: vpc.PrefixListEntryArray{
&vpc.PrefixListEntryArgs{
Cidr: pulumi.String("192.168.0.0/16"),
Description: pulumi.String("test"),
},
},
})
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 config = new Config();
var name = config.Get("name") ?? "tf-testacc-example";
var defaultRg = new AliCloud.ResourceManager.ResourceGroup("defaultRg", new()
{
DisplayName = "tf-testacc-chenyi",
ResourceGroupName = name,
});
var changeRg = new AliCloud.ResourceManager.ResourceGroup("changeRg", new()
{
DisplayName = "tf-testacc-chenyi-change",
ResourceGroupName = $"{name}1",
});
var @default = new AliCloud.Vpc.PrefixList("default", new()
{
MaxEntries = 50,
ResourceGroupId = defaultRg.Id,
PrefixListDescription = "test",
IpVersion = "IPV4",
PrefixListName = name,
Entrys = new[]
{
new AliCloud.Vpc.Inputs.PrefixListEntryArgs
{
Cidr = "192.168.0.0/16",
Description = "test",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourceGroup;
import com.pulumi.alicloud.resourcemanager.ResourceGroupArgs;
import com.pulumi.alicloud.vpc.PrefixList;
import com.pulumi.alicloud.vpc.PrefixListArgs;
import com.pulumi.alicloud.vpc.inputs.PrefixListEntryArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-testacc-example");
var defaultRg = new ResourceGroup("defaultRg", ResourceGroupArgs.builder()
.displayName("tf-testacc-chenyi")
.resourceGroupName(name)
.build());
var changeRg = new ResourceGroup("changeRg", ResourceGroupArgs.builder()
.displayName("tf-testacc-chenyi-change")
.resourceGroupName(String.format("%s1", name))
.build());
var default_ = new PrefixList("default", PrefixListArgs.builder()
.maxEntries(50)
.resourceGroupId(defaultRg.id())
.prefixListDescription("test")
.ipVersion("IPV4")
.prefixListName(name)
.entrys(PrefixListEntryArgs.builder()
.cidr("192.168.0.0/16")
.description("test")
.build())
.build());
}
}
configuration:
name:
type: string
default: tf-testacc-example
resources:
defaultRg:
type: alicloud:resourcemanager:ResourceGroup
properties:
displayName: tf-testacc-chenyi
resourceGroupName: ${name}
changeRg:
type: alicloud:resourcemanager:ResourceGroup
properties:
displayName: tf-testacc-chenyi-change
resourceGroupName: ${name}1
default:
type: alicloud:vpc:PrefixList
properties:
maxEntries: 50
resourceGroupId: ${defaultRg.id}
prefixListDescription: test
ipVersion: IPV4
prefixListName: ${name}
entrys:
- cidr: 192.168.0.0/16
description: test
Create PrefixList Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PrefixList(name: string, args?: PrefixListArgs, opts?: CustomResourceOptions);
@overload
def PrefixList(resource_name: str,
args: Optional[PrefixListArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def PrefixList(resource_name: str,
opts: Optional[ResourceOptions] = None,
entrys: Optional[Sequence[PrefixListEntryArgs]] = None,
ip_version: Optional[str] = None,
max_entries: Optional[int] = None,
prefix_list_description: Optional[str] = None,
prefix_list_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewPrefixList(ctx *Context, name string, args *PrefixListArgs, opts ...ResourceOption) (*PrefixList, error)
public PrefixList(string name, PrefixListArgs? args = null, CustomResourceOptions? opts = null)
public PrefixList(String name, PrefixListArgs args)
public PrefixList(String name, PrefixListArgs args, CustomResourceOptions options)
type: alicloud:vpc:PrefixList
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 PrefixListArgs
- 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 PrefixListArgs
- 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 PrefixListArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PrefixListArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PrefixListArgs
- 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 prefixListResource = new AliCloud.Vpc.PrefixList("prefixListResource", new()
{
Entrys = new[]
{
new AliCloud.Vpc.Inputs.PrefixListEntryArgs
{
Cidr = "string",
Description = "string",
},
},
IpVersion = "string",
MaxEntries = 0,
PrefixListDescription = "string",
PrefixListName = "string",
ResourceGroupId = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := vpc.NewPrefixList(ctx, "prefixListResource", &vpc.PrefixListArgs{
Entrys: vpc.PrefixListEntryArray{
&vpc.PrefixListEntryArgs{
Cidr: pulumi.String("string"),
Description: pulumi.String("string"),
},
},
IpVersion: pulumi.String("string"),
MaxEntries: pulumi.Int(0),
PrefixListDescription: pulumi.String("string"),
PrefixListName: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var prefixListResource = new PrefixList("prefixListResource", PrefixListArgs.builder()
.entrys(PrefixListEntryArgs.builder()
.cidr("string")
.description("string")
.build())
.ipVersion("string")
.maxEntries(0)
.prefixListDescription("string")
.prefixListName("string")
.resourceGroupId("string")
.tags(Map.of("string", "string"))
.build());
prefix_list_resource = alicloud.vpc.PrefixList("prefixListResource",
entrys=[{
"cidr": "string",
"description": "string",
}],
ip_version="string",
max_entries=0,
prefix_list_description="string",
prefix_list_name="string",
resource_group_id="string",
tags={
"string": "string",
})
const prefixListResource = new alicloud.vpc.PrefixList("prefixListResource", {
entrys: [{
cidr: "string",
description: "string",
}],
ipVersion: "string",
maxEntries: 0,
prefixListDescription: "string",
prefixListName: "string",
resourceGroupId: "string",
tags: {
string: "string",
},
});
type: alicloud:vpc:PrefixList
properties:
entrys:
- cidr: string
description: string
ipVersion: string
maxEntries: 0
prefixListDescription: string
prefixListName: string
resourceGroupId: string
tags:
string: string
PrefixList 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 PrefixList resource accepts the following input properties:
- Entrys
List<Pulumi.
Ali Cloud. Vpc. Inputs. Prefix List Entry> - The CIDR address block list of the prefix list.See the following
Block Entrys
. - Ip
Version string - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- Max
Entries int - The maximum number of entries for CIDR address blocks in the prefix list.
- Prefix
List stringDescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - Prefix
List stringName - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- Resource
Group stringId - The ID of the resource group to which the PrefixList belongs.
- Dictionary<string, string>
- The tags of PrefixList.
- Entrys
[]Prefix
List Entry Args - The CIDR address block list of the prefix list.See the following
Block Entrys
. - Ip
Version string - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- Max
Entries int - The maximum number of entries for CIDR address blocks in the prefix list.
- Prefix
List stringDescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - Prefix
List stringName - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- Resource
Group stringId - The ID of the resource group to which the PrefixList belongs.
- map[string]string
- The tags of PrefixList.
- entrys
List<Prefix
List Entry> - The CIDR address block list of the prefix list.See the following
Block Entrys
. - ip
Version String - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- max
Entries Integer - The maximum number of entries for CIDR address blocks in the prefix list.
- prefix
List StringDescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - prefix
List StringName - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- resource
Group StringId - The ID of the resource group to which the PrefixList belongs.
- Map<String,String>
- The tags of PrefixList.
- entrys
Prefix
List Entry[] - The CIDR address block list of the prefix list.See the following
Block Entrys
. - ip
Version string - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- max
Entries number - The maximum number of entries for CIDR address blocks in the prefix list.
- prefix
List stringDescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - prefix
List stringName - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- resource
Group stringId - The ID of the resource group to which the PrefixList belongs.
- {[key: string]: string}
- The tags of PrefixList.
- entrys
Sequence[Prefix
List Entry Args] - The CIDR address block list of the prefix list.See the following
Block Entrys
. - ip_
version str - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- max_
entries int - The maximum number of entries for CIDR address blocks in the prefix list.
- prefix_
list_ strdescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - prefix_
list_ strname - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- resource_
group_ strid - The ID of the resource group to which the PrefixList belongs.
- Mapping[str, str]
- The tags of PrefixList.
- entrys List<Property Map>
- The CIDR address block list of the prefix list.See the following
Block Entrys
. - ip
Version String - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- max
Entries Number - The maximum number of entries for CIDR address blocks in the prefix list.
- prefix
List StringDescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - prefix
List StringName - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- resource
Group StringId - The ID of the resource group to which the PrefixList belongs.
- Map<String>
- The tags of PrefixList.
Outputs
All input properties are implicitly available as output properties. Additionally, the PrefixList resource produces the following output properties:
- Create
Time string - The time when the prefix list was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Prefix
List List<Pulumi.Associations Ali Cloud. Vpc. Outputs. Prefix List Prefix List Association> - The association list information of the prefix list.
- Prefix
List stringId - The ID of the query Prefix List.
- string
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- Status string
- Resource attribute fields that represent the status of the resource.
- Create
Time string - The time when the prefix list was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Prefix
List []PrefixAssociations List Prefix List Association - The association list information of the prefix list.
- Prefix
List stringId - The ID of the query Prefix List.
- string
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- Status string
- Resource attribute fields that represent the status of the resource.
- create
Time String - The time when the prefix list was created.
- id String
- The provider-assigned unique ID for this managed resource.
- prefix
List List<PrefixAssociations List Prefix List Association> - The association list information of the prefix list.
- prefix
List StringId - The ID of the query Prefix List.
- String
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- status String
- Resource attribute fields that represent the status of the resource.
- create
Time string - The time when the prefix list was created.
- id string
- The provider-assigned unique ID for this managed resource.
- prefix
List PrefixAssociations List Prefix List Association[] - The association list information of the prefix list.
- prefix
List stringId - The ID of the query Prefix List.
- string
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- status string
- Resource attribute fields that represent the status of the resource.
- create_
time str - The time when the prefix list was created.
- id str
- The provider-assigned unique ID for this managed resource.
- prefix_
list_ Sequence[Prefixassociations List Prefix List Association] - The association list information of the prefix list.
- prefix_
list_ strid - The ID of the query Prefix List.
- str
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- status str
- Resource attribute fields that represent the status of the resource.
- create
Time String - The time when the prefix list was created.
- id String
- The provider-assigned unique ID for this managed resource.
- prefix
List List<Property Map>Associations - The association list information of the prefix list.
- prefix
List StringId - The ID of the query Prefix List.
- String
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- status String
- Resource attribute fields that represent the status of the resource.
Look up Existing PrefixList Resource
Get an existing PrefixList 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?: PrefixListState, opts?: CustomResourceOptions): PrefixList
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
entrys: Optional[Sequence[PrefixListEntryArgs]] = None,
ip_version: Optional[str] = None,
max_entries: Optional[int] = None,
prefix_list_associations: Optional[Sequence[PrefixListPrefixListAssociationArgs]] = None,
prefix_list_description: Optional[str] = None,
prefix_list_id: Optional[str] = None,
prefix_list_name: Optional[str] = None,
resource_group_id: Optional[str] = None,
share_type: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> PrefixList
func GetPrefixList(ctx *Context, name string, id IDInput, state *PrefixListState, opts ...ResourceOption) (*PrefixList, error)
public static PrefixList Get(string name, Input<string> id, PrefixListState? state, CustomResourceOptions? opts = null)
public static PrefixList get(String name, Output<String> id, PrefixListState 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.
- Create
Time string - The time when the prefix list was created.
- Entrys
List<Pulumi.
Ali Cloud. Vpc. Inputs. Prefix List Entry> - The CIDR address block list of the prefix list.See the following
Block Entrys
. - Ip
Version string - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- Max
Entries int - The maximum number of entries for CIDR address blocks in the prefix list.
- Prefix
List List<Pulumi.Associations Ali Cloud. Vpc. Inputs. Prefix List Prefix List Association> - The association list information of the prefix list.
- Prefix
List stringDescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - Prefix
List stringId - The ID of the query Prefix List.
- Prefix
List stringName - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- Resource
Group stringId - The ID of the resource group to which the PrefixList belongs.
- string
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- Status string
- Resource attribute fields that represent the status of the resource.
- Dictionary<string, string>
- The tags of PrefixList.
- Create
Time string - The time when the prefix list was created.
- Entrys
[]Prefix
List Entry Args - The CIDR address block list of the prefix list.See the following
Block Entrys
. - Ip
Version string - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- Max
Entries int - The maximum number of entries for CIDR address blocks in the prefix list.
- Prefix
List []PrefixAssociations List Prefix List Association Args - The association list information of the prefix list.
- Prefix
List stringDescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - Prefix
List stringId - The ID of the query Prefix List.
- Prefix
List stringName - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- Resource
Group stringId - The ID of the resource group to which the PrefixList belongs.
- string
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- Status string
- Resource attribute fields that represent the status of the resource.
- map[string]string
- The tags of PrefixList.
- create
Time String - The time when the prefix list was created.
- entrys
List<Prefix
List Entry> - The CIDR address block list of the prefix list.See the following
Block Entrys
. - ip
Version String - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- max
Entries Integer - The maximum number of entries for CIDR address blocks in the prefix list.
- prefix
List List<PrefixAssociations List Prefix List Association> - The association list information of the prefix list.
- prefix
List StringDescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - prefix
List StringId - The ID of the query Prefix List.
- prefix
List StringName - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- resource
Group StringId - The ID of the resource group to which the PrefixList belongs.
- String
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- status String
- Resource attribute fields that represent the status of the resource.
- Map<String,String>
- The tags of PrefixList.
- create
Time string - The time when the prefix list was created.
- entrys
Prefix
List Entry[] - The CIDR address block list of the prefix list.See the following
Block Entrys
. - ip
Version string - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- max
Entries number - The maximum number of entries for CIDR address blocks in the prefix list.
- prefix
List PrefixAssociations List Prefix List Association[] - The association list information of the prefix list.
- prefix
List stringDescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - prefix
List stringId - The ID of the query Prefix List.
- prefix
List stringName - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- resource
Group stringId - The ID of the resource group to which the PrefixList belongs.
- string
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- status string
- Resource attribute fields that represent the status of the resource.
- {[key: string]: string}
- The tags of PrefixList.
- create_
time str - The time when the prefix list was created.
- entrys
Sequence[Prefix
List Entry Args] - The CIDR address block list of the prefix list.See the following
Block Entrys
. - ip_
version str - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- max_
entries int - The maximum number of entries for CIDR address blocks in the prefix list.
- prefix_
list_ Sequence[Prefixassociations List Prefix List Association Args] - The association list information of the prefix list.
- prefix_
list_ strdescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - prefix_
list_ strid - The ID of the query Prefix List.
- prefix_
list_ strname - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- resource_
group_ strid - The ID of the resource group to which the PrefixList belongs.
- str
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- status str
- Resource attribute fields that represent the status of the resource.
- Mapping[str, str]
- The tags of PrefixList.
- create
Time String - The time when the prefix list was created.
- entrys List<Property Map>
- The CIDR address block list of the prefix list.See the following
Block Entrys
. - ip
Version String - The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.
- max
Entries Number - The maximum number of entries for CIDR address blocks in the prefix list.
- prefix
List List<Property Map>Associations - The association list information of the prefix list.
- prefix
List StringDescription - The description of the prefix list.It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
. - prefix
List StringId - The ID of the query Prefix List.
- prefix
List StringName - The name of the prefix list. The name must be 2 to 128 characters in length, and must start with a letter. It can contain digits, periods (.), underscores (_), and hyphens (-).
- resource
Group StringId - The ID of the resource group to which the PrefixList belongs.
- String
- The share type of the prefix list. Value:-Shared: indicates that the prefix list is a Shared prefix list.-Null: indicates that the prefix list is not a shared prefix list.
- status String
- Resource attribute fields that represent the status of the resource.
- Map<String>
- The tags of PrefixList.
Supporting Types
PrefixListEntry, PrefixListEntryArgs
- Cidr string
- The CIDR address block of the prefix list.
- Description string
- The description of the cidr entry. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.
- Cidr string
- The CIDR address block of the prefix list.
- Description string
- The description of the cidr entry. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.
- cidr String
- The CIDR address block of the prefix list.
- description String
- The description of the cidr entry. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.
- cidr string
- The CIDR address block of the prefix list.
- description string
- The description of the cidr entry. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.
- cidr str
- The CIDR address block of the prefix list.
- description str
- The description of the cidr entry. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.
- cidr String
- The CIDR address block of the prefix list.
- description String
- The description of the cidr entry. It must be 2 to 256 characters in length and must start with a letter or Chinese, but cannot start with
http://
orhttps://
.
PrefixListPrefixListAssociation, PrefixListPrefixListAssociationArgs
- Owner
Id string - The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.
- Prefix
List stringId - The ID of the query Prefix List.
- Reason string
- Reason when the association fails.
- Region
Id string - The region ID of the prefix list to be queried.
- Resource
Id string - The ID of the associated resource.
- Resource
Type string - The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.
- Resource
Uid string - The ID of the Alibaba Cloud account (primary account) to which the resource bound to the prefix list belongs.
- Status string
- Resource attribute fields that represent the status of the resource.
- Owner
Id string - The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.
- Prefix
List stringId - The ID of the query Prefix List.
- Reason string
- Reason when the association fails.
- Region
Id string - The region ID of the prefix list to be queried.
- Resource
Id string - The ID of the associated resource.
- Resource
Type string - The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.
- Resource
Uid string - The ID of the Alibaba Cloud account (primary account) to which the resource bound to the prefix list belongs.
- Status string
- Resource attribute fields that represent the status of the resource.
- owner
Id String - The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.
- prefix
List StringId - The ID of the query Prefix List.
- reason String
- Reason when the association fails.
- region
Id String - The region ID of the prefix list to be queried.
- resource
Id String - The ID of the associated resource.
- resource
Type String - The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.
- resource
Uid String - The ID of the Alibaba Cloud account (primary account) to which the resource bound to the prefix list belongs.
- status String
- Resource attribute fields that represent the status of the resource.
- owner
Id string - The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.
- prefix
List stringId - The ID of the query Prefix List.
- reason string
- Reason when the association fails.
- region
Id string - The region ID of the prefix list to be queried.
- resource
Id string - The ID of the associated resource.
- resource
Type string - The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.
- resource
Uid string - The ID of the Alibaba Cloud account (primary account) to which the resource bound to the prefix list belongs.
- status string
- Resource attribute fields that represent the status of the resource.
- owner_
id str - The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.
- prefix_
list_ strid - The ID of the query Prefix List.
- reason str
- Reason when the association fails.
- region_
id str - The region ID of the prefix list to be queried.
- resource_
id str - The ID of the associated resource.
- resource_
type str - The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.
- resource_
uid str - The ID of the Alibaba Cloud account (primary account) to which the resource bound to the prefix list belongs.
- status str
- Resource attribute fields that represent the status of the resource.
- owner
Id String - The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.
- prefix
List StringId - The ID of the query Prefix List.
- reason String
- Reason when the association fails.
- region
Id String - The region ID of the prefix list to be queried.
- resource
Id String - The ID of the associated resource.
- resource
Type String - The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.
- resource
Uid String - The ID of the Alibaba Cloud account (primary account) to which the resource bound to the prefix list belongs.
- status String
- Resource attribute fields that represent the status of the resource.
Import
Vpc Prefix List can be imported using the id, e.g.
$ pulumi import alicloud:vpc/prefixList:PrefixList example <id>
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.