1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. vpc
  5. PrefixList
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.vpc.PrefixList

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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

    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.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, string>
    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]string
    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,String>
    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]: string}
    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, str]
    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<String>
    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, 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.
    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, string>
    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]string
    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,String>
    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]: string}
    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, str]
    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<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:// 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>
    

    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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi