alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.vpc.PublicIpAddressPool

Provides a VPC Public Ip Address Pool resource.

For information about VPC Public Ip Address Pool and how to use it, see What is Public Ip Address Pool.

NOTE: Available in v1.186.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = new AliCloud.Vpc.PublicIpAddressPool("default", new()
    {
        Description = "example_value",
        Isp = "BGP_PRO",
        PublicIpAddressPoolName = "example_value",
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vpc.NewPublicIpAddressPool(ctx, "default", &vpc.PublicIpAddressPoolArgs{
			Description:             pulumi.String("example_value"),
			Isp:                     pulumi.String("BGP_PRO"),
			PublicIpAddressPoolName: pulumi.String("example_value"),
		})
		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.vpc.PublicIpAddressPool;
import com.pulumi.alicloud.vpc.PublicIpAddressPoolArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var default_ = new PublicIpAddressPool("default", PublicIpAddressPoolArgs.builder()        
            .description("example_value")
            .isp("BGP_PRO")
            .publicIpAddressPoolName("example_value")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.vpc.PublicIpAddressPool("default",
    description="example_value",
    isp="BGP_PRO",
    public_ip_address_pool_name="example_value")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = new alicloud.vpc.PublicIpAddressPool("default", {
    description: "example_value",
    isp: "BGP_PRO",
    publicIpAddressPoolName: "example_value",
});
resources:
  default:
    type: alicloud:vpc:PublicIpAddressPool
    properties:
      description: example_value
      isp: BGP_PRO
      publicIpAddressPoolName: example_value

Create PublicIpAddressPool Resource

new PublicIpAddressPool(name: string, args?: PublicIpAddressPoolArgs, opts?: CustomResourceOptions);
@overload
def PublicIpAddressPool(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        description: Optional[str] = None,
                        isp: Optional[str] = None,
                        public_ip_address_pool_name: Optional[str] = None)
@overload
def PublicIpAddressPool(resource_name: str,
                        args: Optional[PublicIpAddressPoolArgs] = None,
                        opts: Optional[ResourceOptions] = None)
func NewPublicIpAddressPool(ctx *Context, name string, args *PublicIpAddressPoolArgs, opts ...ResourceOption) (*PublicIpAddressPool, error)
public PublicIpAddressPool(string name, PublicIpAddressPoolArgs? args = null, CustomResourceOptions? opts = null)
public PublicIpAddressPool(String name, PublicIpAddressPoolArgs args)
public PublicIpAddressPool(String name, PublicIpAddressPoolArgs args, CustomResourceOptions options)
type: alicloud:vpc:PublicIpAddressPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args PublicIpAddressPoolArgs
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 PublicIpAddressPoolArgs
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 PublicIpAddressPoolArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args PublicIpAddressPoolArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args PublicIpAddressPoolArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

PublicIpAddressPool 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 PublicIpAddressPool resource accepts the following input properties:

Description string

The description of the VPC Public IP address pool.

Isp string

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

PublicIpAddressPoolName string

The name of the VPC Public IP address pool.

Description string

The description of the VPC Public IP address pool.

Isp string

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

PublicIpAddressPoolName string

The name of the VPC Public IP address pool.

description String

The description of the VPC Public IP address pool.

isp String

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

publicIpAddressPoolName String

The name of the VPC Public IP address pool.

description string

The description of the VPC Public IP address pool.

isp string

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

publicIpAddressPoolName string

The name of the VPC Public IP address pool.

description str

The description of the VPC Public IP address pool.

isp str

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

public_ip_address_pool_name str

The name of the VPC Public IP address pool.

description String

The description of the VPC Public IP address pool.

isp String

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

publicIpAddressPoolName String

The name of the VPC Public IP address pool.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the VPC Public IP address pool.

Id string

The provider-assigned unique ID for this managed resource.

Status string

The status of the VPC Public IP address pool.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the VPC Public IP address pool.

id string

The provider-assigned unique ID for this managed resource.

status string

The status of the VPC Public IP address pool.

id str

The provider-assigned unique ID for this managed resource.

status str

The status of the VPC Public IP address pool.

id String

The provider-assigned unique ID for this managed resource.

status String

The status of the VPC Public IP address pool.

Look up Existing PublicIpAddressPool Resource

Get an existing PublicIpAddressPool 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?: PublicIpAddressPoolState, opts?: CustomResourceOptions): PublicIpAddressPool
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        isp: Optional[str] = None,
        public_ip_address_pool_name: Optional[str] = None,
        status: Optional[str] = None) -> PublicIpAddressPool
func GetPublicIpAddressPool(ctx *Context, name string, id IDInput, state *PublicIpAddressPoolState, opts ...ResourceOption) (*PublicIpAddressPool, error)
public static PublicIpAddressPool Get(string name, Input<string> id, PublicIpAddressPoolState? state, CustomResourceOptions? opts = null)
public static PublicIpAddressPool get(String name, Output<String> id, PublicIpAddressPoolState 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:
Description string

The description of the VPC Public IP address pool.

Isp string

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

PublicIpAddressPoolName string

The name of the VPC Public IP address pool.

Status string

The status of the VPC Public IP address pool.

Description string

The description of the VPC Public IP address pool.

Isp string

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

PublicIpAddressPoolName string

The name of the VPC Public IP address pool.

Status string

The status of the VPC Public IP address pool.

description String

The description of the VPC Public IP address pool.

isp String

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

publicIpAddressPoolName String

The name of the VPC Public IP address pool.

status String

The status of the VPC Public IP address pool.

description string

The description of the VPC Public IP address pool.

isp string

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

publicIpAddressPoolName string

The name of the VPC Public IP address pool.

status string

The status of the VPC Public IP address pool.

description str

The description of the VPC Public IP address pool.

isp str

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

public_ip_address_pool_name str

The name of the VPC Public IP address pool.

status str

The status of the VPC Public IP address pool.

description String

The description of the VPC Public IP address pool.

isp String

The Internet service provider. Valid values: BGP, BGP_PRO, ChinaTelecom, ChinaUnicom, ChinaMobile, ChinaTelecom_L2, ChinaUnicom_L2, ChinaMobile_L2, BGP_FinanceCloud. Default Value: BGP.

publicIpAddressPoolName String

The name of the VPC Public IP address pool.

status String

The status of the VPC Public IP address pool.

Import

VPC Public Ip Address Pool can be imported using the id, e.g.

 $ pulumi import alicloud:vpc/publicIpAddressPool:PublicIpAddressPool 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.