1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. vpc
  5. PrefixList
Alibaba Cloud v3.43.1 published on Monday, Sep 11, 2023 by Pulumi

alicloud.vpc.PrefixList

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.43.1 published on Monday, Sep 11, 2023 by Pulumi

    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

    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 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.String(fmt.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
    	})
    }
    
    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());
    
        }
    }
    
    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=[alicloud.vpc.PrefixListEntryArgs(
            cidr="192.168.0.0/16",
            description="test",
        )])
    
    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",
        }],
    });
    
    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

    new PrefixList(name: string, args?: PrefixListArgs, opts?: CustomResourceOptions);
    @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, Any]] = None)
    @overload
    def PrefixList(resource_name: str,
                   args: Optional[PrefixListArgs] = None,
                   opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The PrefixList resource accepts the following input properties:

    Entrys List<Pulumi.AliCloud.Vpc.Inputs.PrefixListEntry>

    The CIDR address block list of the prefix list.See the following Block Entrys.

    IpVersion string

    The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.

    MaxEntries int

    The maximum number of entries for CIDR address blocks in the prefix list.

    PrefixListDescription string

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

    PrefixListName string

    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 (-).

    ResourceGroupId string

    The ID of the resource group to which the PrefixList belongs.

    Tags Dictionary<string, object>

    The tags of PrefixList.

    Entrys []PrefixListEntryArgs

    The CIDR address block list of the prefix list.See the following Block Entrys.

    IpVersion string

    The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.

    MaxEntries int

    The maximum number of entries for CIDR address blocks in the prefix list.

    PrefixListDescription string

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

    PrefixListName string

    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 (-).

    ResourceGroupId string

    The ID of the resource group to which the PrefixList belongs.

    Tags map[string]interface{}

    The tags of PrefixList.

    entrys List<PrefixListEntry>

    The CIDR address block list of the prefix list.See the following Block Entrys.

    ipVersion String

    The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.

    maxEntries Integer

    The maximum number of entries for CIDR address blocks in the prefix list.

    prefixListDescription String

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

    prefixListName String

    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 (-).

    resourceGroupId String

    The ID of the resource group to which the PrefixList belongs.

    tags Map<String,Object>

    The tags of PrefixList.

    entrys PrefixListEntry[]

    The CIDR address block list of the prefix list.See the following Block Entrys.

    ipVersion string

    The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.

    maxEntries number

    The maximum number of entries for CIDR address blocks in the prefix list.

    prefixListDescription string

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

    prefixListName string

    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 (-).

    resourceGroupId string

    The ID of the resource group to which the PrefixList belongs.

    tags {[key: string]: any}

    The tags of PrefixList.

    entrys Sequence[PrefixListEntryArgs]

    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_description str

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

    prefix_list_name str

    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_id str

    The ID of the resource group to which the PrefixList belongs.

    tags Mapping[str, Any]

    The tags of PrefixList.

    entrys List<Property Map>

    The CIDR address block list of the prefix list.See the following Block Entrys.

    ipVersion String

    The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.

    maxEntries Number

    The maximum number of entries for CIDR address blocks in the prefix list.

    prefixListDescription String

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

    prefixListName String

    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 (-).

    resourceGroupId String

    The ID of the resource group to which the PrefixList belongs.

    tags Map<Any>

    The tags of PrefixList.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PrefixList resource produces the following output properties:

    CreateTime string

    The time when the prefix list was created.

    Id string

    The provider-assigned unique ID for this managed resource.

    PrefixListAssociations List<Pulumi.AliCloud.Vpc.Outputs.PrefixListPrefixListAssociation>

    The association list information of the prefix list.

    PrefixListId string

    The ID of the query Prefix List.

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

    CreateTime string

    The time when the prefix list was created.

    Id string

    The provider-assigned unique ID for this managed resource.

    PrefixListAssociations []PrefixListPrefixListAssociation

    The association list information of the prefix list.

    PrefixListId string

    The ID of the query Prefix List.

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

    createTime String

    The time when the prefix list was created.

    id String

    The provider-assigned unique ID for this managed resource.

    prefixListAssociations List<PrefixListPrefixListAssociation>

    The association list information of the prefix list.

    prefixListId String

    The ID of the query Prefix List.

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

    createTime string

    The time when the prefix list was created.

    id string

    The provider-assigned unique ID for this managed resource.

    prefixListAssociations PrefixListPrefixListAssociation[]

    The association list information of the prefix list.

    prefixListId string

    The ID of the query Prefix List.

    shareType 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_associations Sequence[PrefixListPrefixListAssociation]

    The association list information of the prefix list.

    prefix_list_id str

    The ID of the query Prefix List.

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

    createTime String

    The time when the prefix list was created.

    id String

    The provider-assigned unique ID for this managed resource.

    prefixListAssociations List<Property Map>

    The association list information of the prefix list.

    prefixListId String

    The ID of the query Prefix List.

    shareType 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, Any]] = 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.
    The following state arguments are supported:
    CreateTime string

    The time when the prefix list was created.

    Entrys List<Pulumi.AliCloud.Vpc.Inputs.PrefixListEntry>

    The CIDR address block list of the prefix list.See the following Block Entrys.

    IpVersion string

    The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.

    MaxEntries int

    The maximum number of entries for CIDR address blocks in the prefix list.

    PrefixListAssociations List<Pulumi.AliCloud.Vpc.Inputs.PrefixListPrefixListAssociation>

    The association list information of the prefix list.

    PrefixListDescription string

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

    PrefixListId string

    The ID of the query Prefix List.

    PrefixListName string

    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 (-).

    ResourceGroupId string

    The ID of the resource group to which the PrefixList belongs.

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

    Tags Dictionary<string, object>

    The tags of PrefixList.

    CreateTime string

    The time when the prefix list was created.

    Entrys []PrefixListEntryArgs

    The CIDR address block list of the prefix list.See the following Block Entrys.

    IpVersion string

    The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.

    MaxEntries int

    The maximum number of entries for CIDR address blocks in the prefix list.

    PrefixListAssociations []PrefixListPrefixListAssociationArgs

    The association list information of the prefix list.

    PrefixListDescription string

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

    PrefixListId string

    The ID of the query Prefix List.

    PrefixListName string

    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 (-).

    ResourceGroupId string

    The ID of the resource group to which the PrefixList belongs.

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

    Tags map[string]interface{}

    The tags of PrefixList.

    createTime String

    The time when the prefix list was created.

    entrys List<PrefixListEntry>

    The CIDR address block list of the prefix list.See the following Block Entrys.

    ipVersion String

    The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.

    maxEntries Integer

    The maximum number of entries for CIDR address blocks in the prefix list.

    prefixListAssociations List<PrefixListPrefixListAssociation>

    The association list information of the prefix list.

    prefixListDescription String

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

    prefixListId String

    The ID of the query Prefix List.

    prefixListName String

    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 (-).

    resourceGroupId String

    The ID of the resource group to which the PrefixList belongs.

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

    tags Map<String,Object>

    The tags of PrefixList.

    createTime string

    The time when the prefix list was created.

    entrys PrefixListEntry[]

    The CIDR address block list of the prefix list.See the following Block Entrys.

    ipVersion string

    The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.

    maxEntries number

    The maximum number of entries for CIDR address blocks in the prefix list.

    prefixListAssociations PrefixListPrefixListAssociation[]

    The association list information of the prefix list.

    prefixListDescription string

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

    prefixListId string

    The ID of the query Prefix List.

    prefixListName string

    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 (-).

    resourceGroupId string

    The ID of the resource group to which the PrefixList belongs.

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

    tags {[key: string]: any}

    The tags of PrefixList.

    create_time str

    The time when the prefix list was created.

    entrys Sequence[PrefixListEntryArgs]

    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_associations Sequence[PrefixListPrefixListAssociationArgs]

    The association list information of the prefix list.

    prefix_list_description str

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

    prefix_list_id str

    The ID of the query Prefix List.

    prefix_list_name str

    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_id str

    The ID of the resource group to which the PrefixList belongs.

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

    tags Mapping[str, Any]

    The tags of PrefixList.

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

    ipVersion String

    The IP version of the prefix list. Value:-IPV4:IPv4 version.-IPV6:IPv6 version.

    maxEntries Number

    The maximum number of entries for CIDR address blocks in the prefix list.

    prefixListAssociations List<Property Map>

    The association list information of the prefix list.

    prefixListDescription String

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

    prefixListId String

    The ID of the query Prefix List.

    prefixListName String

    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 (-).

    resourceGroupId String

    The ID of the resource group to which the PrefixList belongs.

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

    tags Map<Any>

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

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

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

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

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

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

    PrefixListPrefixListAssociation, PrefixListPrefixListAssociationArgs

    OwnerId string

    The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.

    PrefixListId string

    The ID of the query Prefix List.

    Reason string

    Reason when the association fails.

    RegionId string

    The region ID of the prefix list to be queried.

    ResourceId string

    The ID of the associated resource.

    ResourceType string

    The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.

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

    OwnerId string

    The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.

    PrefixListId string

    The ID of the query Prefix List.

    Reason string

    Reason when the association fails.

    RegionId string

    The region ID of the prefix list to be queried.

    ResourceId string

    The ID of the associated resource.

    ResourceType string

    The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.

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

    ownerId String

    The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.

    prefixListId String

    The ID of the query Prefix List.

    reason String

    Reason when the association fails.

    regionId String

    The region ID of the prefix list to be queried.

    resourceId String

    The ID of the associated resource.

    resourceType String

    The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.

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

    ownerId string

    The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.

    prefixListId string

    The ID of the query Prefix List.

    reason string

    Reason when the association fails.

    regionId string

    The region ID of the prefix list to be queried.

    resourceId string

    The ID of the associated resource.

    resourceType string

    The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.

    resourceUid 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_id str

    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.

    ownerId String

    The ID of the Alibaba Cloud account (primary account) to which the prefix list belongs.

    prefixListId String

    The ID of the query Prefix List.

    reason String

    Reason when the association fails.

    regionId String

    The region ID of the prefix list to be queried.

    resourceId String

    The ID of the associated resource.

    resourceType String

    The associated resource type. Value:-vpcRouteTable: The VPC route table.-trRouteTable: the routing table of the forwarding router.

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.43.1 published on Monday, Sep 11, 2023 by Pulumi