Eip

Create a Eip Resource

new Eip(name: string, args?: EipArgs, opts?: CustomResourceOptions);
def Eip(resource_name, opts=None, bandwidth=None, description=None, instance_charge_type=None, internet_charge_type=None, isp=None, name=None, period=None, resource_group_id=None, tags=None, __props__=None);
func NewEip(ctx *Context, name string, args *EipArgs, opts ...ResourceOption) (*Eip, error)
public Eip(string name, EipArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args EipArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args EipArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EipArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Eip Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The Eip resource accepts the following input properties:

Bandwidth int

Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.

Description string

Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.

InstanceChargeType string

Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.

InternetChargeType string

Internet charge type of the EIP, Valid values are PayByBandwidth, PayByTraffic. Default to PayByBandwidth. From version 1.7.1, default to PayByTraffic. It is only PayByBandwidth when instance_charge_type is PrePaid.

Isp string

The line type of the Elastic IP instance. Default to BGP. Other type of the isp need to open a whitelist.

Name string

The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as “-”,“.”,”_“, and must not begin or end with a hyphen, and must not begin with http:// or https://.

Period int

The duration that you will buy the resource, in month. It is valid when instance_charge_type is PrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.

ResourceGroupId string

The Id of resource group which the eip belongs.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Bandwidth int

Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.

Description string

Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.

InstanceChargeType string

Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.

InternetChargeType string

Internet charge type of the EIP, Valid values are PayByBandwidth, PayByTraffic. Default to PayByBandwidth. From version 1.7.1, default to PayByTraffic. It is only PayByBandwidth when instance_charge_type is PrePaid.

Isp string

The line type of the Elastic IP instance. Default to BGP. Other type of the isp need to open a whitelist.

Name string

The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as “-”,“.”,”_“, and must not begin or end with a hyphen, and must not begin with http:// or https://.

Period int

The duration that you will buy the resource, in month. It is valid when instance_charge_type is PrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.

ResourceGroupId string

The Id of resource group which the eip belongs.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

bandwidth number

Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.

description string

Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.

instanceChargeType string

Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.

internetChargeType string

Internet charge type of the EIP, Valid values are PayByBandwidth, PayByTraffic. Default to PayByBandwidth. From version 1.7.1, default to PayByTraffic. It is only PayByBandwidth when instance_charge_type is PrePaid.

isp string

The line type of the Elastic IP instance. Default to BGP. Other type of the isp need to open a whitelist.

name string

The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as “-”,“.”,”_“, and must not begin or end with a hyphen, and must not begin with http:// or https://.

period number

The duration that you will buy the resource, in month. It is valid when instance_charge_type is PrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.

resourceGroupId string

The Id of resource group which the eip belongs.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

bandwidth float

Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.

description str

Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.

instance_charge_type str

Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.

internet_charge_type str

Internet charge type of the EIP, Valid values are PayByBandwidth, PayByTraffic. Default to PayByBandwidth. From version 1.7.1, default to PayByTraffic. It is only PayByBandwidth when instance_charge_type is PrePaid.

isp str

The line type of the Elastic IP instance. Default to BGP. Other type of the isp need to open a whitelist.

name str

The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as “-”,“.”,”_“, and must not begin or end with a hyphen, and must not begin with http:// or https://.

period float

The duration that you will buy the resource, in month. It is valid when instance_charge_type is PrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.

resource_group_id str

The Id of resource group which the eip belongs.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
IpAddress string

The elastic ip address

Status string

The EIP current status.

Id string
The provider-assigned unique ID for this managed resource.
IpAddress string

The elastic ip address

Status string

The EIP current status.

id string
The provider-assigned unique ID for this managed resource.
ipAddress string

The elastic ip address

status string

The EIP current status.

id str
The provider-assigned unique ID for this managed resource.
ip_address str

The elastic ip address

status str

The EIP current status.

Look up an Existing Eip Resource

Get an existing Eip 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?: EipState, opts?: CustomResourceOptions): Eip
static get(resource_name, id, opts=None, bandwidth=None, description=None, instance_charge_type=None, internet_charge_type=None, ip_address=None, isp=None, name=None, period=None, resource_group_id=None, status=None, tags=None, __props__=None);
func GetEip(ctx *Context, name string, id IDInput, state *EipState, opts ...ResourceOption) (*Eip, error)
public static Eip Get(string name, Input<string> id, EipState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

Bandwidth int

Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.

Description string

Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.

InstanceChargeType string

Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.

InternetChargeType string

Internet charge type of the EIP, Valid values are PayByBandwidth, PayByTraffic. Default to PayByBandwidth. From version 1.7.1, default to PayByTraffic. It is only PayByBandwidth when instance_charge_type is PrePaid.

IpAddress string

The elastic ip address

Isp string

The line type of the Elastic IP instance. Default to BGP. Other type of the isp need to open a whitelist.

Name string

The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as “-”,“.”,”_“, and must not begin or end with a hyphen, and must not begin with http:// or https://.

Period int

The duration that you will buy the resource, in month. It is valid when instance_charge_type is PrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.

ResourceGroupId string

The Id of resource group which the eip belongs.

Status string

The EIP current status.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Bandwidth int

Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.

Description string

Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.

InstanceChargeType string

Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.

InternetChargeType string

Internet charge type of the EIP, Valid values are PayByBandwidth, PayByTraffic. Default to PayByBandwidth. From version 1.7.1, default to PayByTraffic. It is only PayByBandwidth when instance_charge_type is PrePaid.

IpAddress string

The elastic ip address

Isp string

The line type of the Elastic IP instance. Default to BGP. Other type of the isp need to open a whitelist.

Name string

The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as “-”,“.”,”_“, and must not begin or end with a hyphen, and must not begin with http:// or https://.

Period int

The duration that you will buy the resource, in month. It is valid when instance_charge_type is PrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.

ResourceGroupId string

The Id of resource group which the eip belongs.

Status string

The EIP current status.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

bandwidth number

Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.

description string

Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.

instanceChargeType string

Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.

internetChargeType string

Internet charge type of the EIP, Valid values are PayByBandwidth, PayByTraffic. Default to PayByBandwidth. From version 1.7.1, default to PayByTraffic. It is only PayByBandwidth when instance_charge_type is PrePaid.

ipAddress string

The elastic ip address

isp string

The line type of the Elastic IP instance. Default to BGP. Other type of the isp need to open a whitelist.

name string

The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as “-”,“.”,”_“, and must not begin or end with a hyphen, and must not begin with http:// or https://.

period number

The duration that you will buy the resource, in month. It is valid when instance_charge_type is PrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.

resourceGroupId string

The Id of resource group which the eip belongs.

status string

The EIP current status.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

bandwidth float

Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). If this value is not specified, then automatically sets it to 5 Mbps.

description str

Description of the EIP instance, This description can have a string of 2 to 256 characters, It cannot begin with http:// or https://. Default value is null.

instance_charge_type str

Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.

internet_charge_type str

Internet charge type of the EIP, Valid values are PayByBandwidth, PayByTraffic. Default to PayByBandwidth. From version 1.7.1, default to PayByTraffic. It is only PayByBandwidth when instance_charge_type is PrePaid.

ip_address str

The elastic ip address

isp str

The line type of the Elastic IP instance. Default to BGP. Other type of the isp need to open a whitelist.

name str

The name of the EIP instance. This name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as “-”,“.”,”_“, and must not begin or end with a hyphen, and must not begin with http:// or https://.

period float

The duration that you will buy the resource, in month. It is valid when instance_charge_type is PrePaid. Default to 1. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify “period” and you can do that via web console.

resource_group_id str

The Id of resource group which the eip belongs.

status str

The EIP current status.

tags Dict[str, Any]

A mapping of tags to assign to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.