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);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.
- Instance
Charge stringType Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- Internet
Charge stringType Internet charge type of the EIP, Valid values are
PayByBandwidth,PayByTraffic. Default toPayByBandwidth. From version1.7.1, default toPayByTraffic. It is only PayByBandwidth wheninstance_charge_typeis 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_typeisPrePaid. 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 stringId The Id of resource group which the eip belongs.
- 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.
- Instance
Charge stringType Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- Internet
Charge stringType Internet charge type of the EIP, Valid values are
PayByBandwidth,PayByTraffic. Default toPayByBandwidth. From version1.7.1, default toPayByTraffic. It is only PayByBandwidth wheninstance_charge_typeis 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_typeisPrePaid. 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 stringId The Id of resource group which the eip belongs.
- 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.
- instance
Charge stringType Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- internet
Charge stringType Internet charge type of the EIP, Valid values are
PayByBandwidth,PayByTraffic. Default toPayByBandwidth. From version1.7.1, default toPayByTraffic. It is only PayByBandwidth wheninstance_charge_typeis 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_typeisPrePaid. 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 stringId The Id of resource group which the eip belongs.
- {[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_ strtype Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- internet_
charge_ strtype Internet charge type of the EIP, Valid values are
PayByBandwidth,PayByTraffic. Default toPayByBandwidth. From version1.7.1, default toPayByTraffic. It is only PayByBandwidth wheninstance_charge_typeis 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_typeisPrePaid. 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_ strid The Id of resource group which the eip belongs.
- 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:
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): Eipstatic 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);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.
- Instance
Charge stringType Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- Internet
Charge stringType Internet charge type of the EIP, Valid values are
PayByBandwidth,PayByTraffic. Default toPayByBandwidth. From version1.7.1, default toPayByTraffic. It is only PayByBandwidth wheninstance_charge_typeis PrePaid.- Ip
Address 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_typeisPrePaid. 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 stringId The Id of resource group which the eip belongs.
- Status string
The EIP current status.
- 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.
- Instance
Charge stringType Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- Internet
Charge stringType Internet charge type of the EIP, Valid values are
PayByBandwidth,PayByTraffic. Default toPayByBandwidth. From version1.7.1, default toPayByTraffic. It is only PayByBandwidth wheninstance_charge_typeis PrePaid.- Ip
Address 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_typeisPrePaid. 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 stringId The Id of resource group which the eip belongs.
- Status string
The EIP current status.
- 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.
- instance
Charge stringType Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- internet
Charge stringType Internet charge type of the EIP, Valid values are
PayByBandwidth,PayByTraffic. Default toPayByBandwidth. From version1.7.1, default toPayByTraffic. It is only PayByBandwidth wheninstance_charge_typeis PrePaid.- ip
Address 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_typeisPrePaid. 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 stringId The Id of resource group which the eip belongs.
- status string
The EIP current status.
- {[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_ strtype Elastic IP instance charge type. Valid values are “PrePaid” and “PostPaid”. Default to “PostPaid”.
- internet_
charge_ strtype Internet charge type of the EIP, Valid values are
PayByBandwidth,PayByTraffic. Default toPayByBandwidth. From version1.7.1, default toPayByTraffic. It is only PayByBandwidth wheninstance_charge_typeis 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_typeisPrePaid. 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_ strid The Id of resource group which the eip belongs.
- status str
The EIP current status.
- 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
alicloudTerraform Provider.