Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 18 additions & 22 deletions tencentcloud/resource_tc_eip.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,17 @@ func resourceTencentCloudEip() *schema.Resource {
Description: "The name of eip.",
},
"type": {
Type: schema.TypeString,
Optional: true,
Default: EIP_TYPE_EIP,
ForceNew: true,
ValidateFunc: validateAllowedStringValue(EIP_TYPE),
Description: "The type of eip. Valid value: `EIP` and `AnycastEIP` and `HighQualityEIP`. Default is `EIP`.",
Type: schema.TypeString,
Optional: true,
Default: EIP_TYPE_EIP,
ForceNew: true,
Description: "The type of eip. Valid value: `EIP` and `AnycastEIP` and `HighQualityEIP`. Default is `EIP`.",
},
"anycast_zone": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ValidateFunc: validateAllowedStringValue(EIP_ANYCAST_ZONE),
Description: "The zone of anycast. Valid value: `ANYCAST_ZONE_GLOBAL` and `ANYCAST_ZONE_OVERSEAS`.",
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: "The zone of anycast. Valid value: `ANYCAST_ZONE_GLOBAL` and `ANYCAST_ZONE_OVERSEAS`.",
},
"applicable_for_clb": {
Type: schema.TypeBool,
Expand All @@ -71,19 +69,17 @@ func resourceTencentCloudEip() *schema.Resource {
Deprecated: "It has been deprecated from version 1.27.0.",
},
"internet_service_provider": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
ValidateFunc: validateAllowedStringValue(EIP_INTERNET_PROVIDER),
Description: "Internet service provider of eip. Valid value: `BGP`, `CMCC`, `CTCC` and `CUCC`.",
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: "Internet service provider of eip. Valid value: `BGP`, `CMCC`, `CTCC` and `CUCC`.",
},
"internet_charge_type": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
ValidateFunc: validateAllowedStringValue(CVM_INTERNET_CHARGE_TYPE),
Description: "The charge type of eip. Valid value: `BANDWIDTH_PACKAGE`, `BANDWIDTH_POSTPAID_BY_HOUR` and `TRAFFIC_POSTPAID_BY_HOUR`.",
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: "The charge type of eip. Valid values: `BANDWIDTH_PACKAGE`, `BANDWIDTH_POSTPAID_BY_HOUR`, `BANDWIDTH_PREPAID_BY_MONTH` and `TRAFFIC_POSTPAID_BY_HOUR`.",
},
"internet_max_bandwidth_out": {
Type: schema.TypeInt,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/eip.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The following arguments are supported:

* `anycast_zone` - (Optional, String, ForceNew) The zone of anycast. Valid value: `ANYCAST_ZONE_GLOBAL` and `ANYCAST_ZONE_OVERSEAS`.
* `applicable_for_clb` - (Optional, Bool, **Deprecated**) It has been deprecated from version 1.27.0. Indicates whether the anycast eip can be associated to a CLB.
* `internet_charge_type` - (Optional, String, ForceNew) The charge type of eip. Valid value: `BANDWIDTH_PACKAGE`, `BANDWIDTH_POSTPAID_BY_HOUR` and `TRAFFIC_POSTPAID_BY_HOUR`.
* `internet_charge_type` - (Optional, String, ForceNew) The charge type of eip. Valid values: `BANDWIDTH_PACKAGE`, `BANDWIDTH_POSTPAID_BY_HOUR`, `BANDWIDTH_PREPAID_BY_MONTH` and `TRAFFIC_POSTPAID_BY_HOUR`.
* `internet_max_bandwidth_out` - (Optional, Int) The bandwidth limit of EIP, unit is Mbps.
* `internet_service_provider` - (Optional, String, ForceNew) Internet service provider of eip. Valid value: `BGP`, `CMCC`, `CTCC` and `CUCC`.
* `name` - (Optional, String) The name of eip.
Expand Down