diff --git a/tencentcloud/resource_tc_eip.go b/tencentcloud/resource_tc_eip.go index ae28f45f36..c02411ef14 100644 --- a/tencentcloud/resource_tc_eip.go +++ b/tencentcloud/resource_tc_eip.go @@ -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, @@ -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, diff --git a/website/docs/r/eip.html.markdown b/website/docs/r/eip.html.markdown index 15fef11286..1b4978093f 100644 --- a/website/docs/r/eip.html.markdown +++ b/website/docs/r/eip.html.markdown @@ -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.