in alibabacloudstack/data_source_apsarastack_polardb_instances.go [16:408]
func dataSourceAlibabacloudStackPolardbDbInstances() *schema.Resource {
return &schema.Resource{
Read: dataSourceAlibabacloudStackPolardbDbInstancesRead,
Schema: map[string]*schema.Schema{
"ids": {
Type: schema.TypeList,
Optional: true,
Elem: &schema.Schema{Type: schema.TypeString},
Computed: true,
ForceNew: true,
MinItems: 1,
},
"network_type": {
Type: schema.TypeString,
Optional: true,
},
"db_instance_type": {
Type: schema.TypeString,
Optional: true,
},
"vswitch_id": {
Type: schema.TypeString,
Optional: true,
},
"vpc_id": {
Type: schema.TypeString,
Optional: true,
},
"db_instance_class": {
Type: schema.TypeString,
Optional: true,
},
"payment_type": {
Type: schema.TypeString,
Optional: true,
},
"status": {
Type: schema.TypeString,
Optional: true,
},
"db_instance_id": {
Type: schema.TypeString,
Optional: true,
},
"engine_version": {
Type: schema.TypeString,
Optional: true,
},
"resource_group_id": {
Type: schema.TypeString,
Optional: true,
},
"region_id": {
Type: schema.TypeString,
Required: true,
},
"engine": {
Type: schema.TypeString,
Optional: true,
},
"output_file": {
Type: schema.TypeString,
Optional: true,
},
"db_instances": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"id": {
Type: schema.TypeString,
Computed: true,
},
"auto_pay": {
Type: schema.TypeBool,
Computed: true,
},
"auto_renew": {
Type: schema.TypeString,
Computed: true,
},
"auto_upgrade_minor_version": {
Type: schema.TypeString,
Computed: true,
},
"business_info": {
Type: schema.TypeString,
Computed: true,
},
"category": {
Type: schema.TypeString,
Computed: true,
},
"classic_expired_days": {
Type: schema.TypeInt,
Computed: true,
},
"commodity_code": {
Type: schema.TypeString,
Computed: true,
},
"connection_mode": {
Type: schema.TypeString,
Computed: true,
},
"connection_string_prefix": {
Type: schema.TypeString,
Computed: true,
},
"connection_string_type": {
Type: schema.TypeString,
Computed: true,
},
"current_connection_string": {
Type: schema.TypeString,
Computed: true,
},
"db_instance_description": {
Type: schema.TypeString,
Computed: true,
},
"db_instance_storage": {
Type: schema.TypeInt,
Computed: true,
},
"db_instance_type": {
Type: schema.TypeString,
Computed: true,
},
"db_instance_class": {
Type: schema.TypeString,
Computed: true,
},
"db_instance_id": {
Type: schema.TypeString,
Computed: true,
},
"db_instance_net_type": {
Type: schema.TypeString,
Computed: true,
},
"db_instance_storage_type": {
Type: schema.TypeString,
Computed: true,
},
"distribution_type": {
Type: schema.TypeString,
Computed: true,
},
"effective_time": {
Type: schema.TypeString,
Computed: true,
},
"encryption_key": {
Type: schema.TypeString,
Computed: true,
},
"engine": {
Type: schema.TypeString,
Computed: true,
},
"engine_version": {
Type: schema.TypeString,
Computed: true,
},
"expire_time": {
Type: schema.TypeString,
Computed: true,
},
"guard_db_instance_id": {
Type: schema.TypeString,
Computed: true,
},
"lock_mode": {
Type: schema.TypeString,
Computed: true,
},
"lock_reason": {
Type: schema.TypeString,
Computed: true,
},
"maintain_time": {
Type: schema.TypeString,
Computed: true,
},
"master_instance_id": {
Type: schema.TypeString,
Computed: true,
},
"max_delay_time": {
Type: schema.TypeString,
Computed: true,
},
"network_type": {
Type: schema.TypeString,
Computed: true,
},
"payment_type": {
Type: schema.TypeString,
Computed: true,
},
"period": {
Type: schema.TypeString,
Computed: true,
},
"port": {
Type: schema.TypeString,
Computed: true,
},
"private_ip_address": {
Type: schema.TypeString,
Computed: true,
},
"read_write_splitting_classic_expired_days": {
Type: schema.TypeInt,
Computed: true,
},
"read_write_splitting_private_ip_address": {
Type: schema.TypeString,
Computed: true,
},
"record_total": {
Type: schema.TypeInt,
Computed: true,
},
"region_id": {
Type: schema.TypeString,
Computed: true,
},
"resource_group_id": {
Type: schema.TypeString,
Computed: true,
},
"resource_type": {
Type: schema.TypeString,
Computed: true,
},
"retain_classic": {
Type: schema.TypeString,
Computed: true,
},
"role_arn": {
Type: schema.TypeString,
Computed: true,
},
"security_ip_list": {
Type: schema.TypeString,
Computed: true,
},
"security_ip_mode": {
Type: schema.TypeString,
Computed: true,
},
"sql_collector_status": {
Type: schema.TypeString,
Computed: true,
},
"status": {
Type: schema.TypeString,
Computed: true,
},
"table_meta": {
Type: schema.TypeString,
Computed: true,
},
"tags": {
Type: schema.TypeList,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"tag_key": {
Type: schema.TypeString,
Computed: true,
},
"tag_value": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
"temp_db_instance_id": {
Type: schema.TypeString,
Computed: true,
},
"used_time": {
Type: schema.TypeString,
Computed: true,
},
"vswitch_id": {
Type: schema.TypeString,
Computed: true,
},
"vpc_cloud_instance_id": {
Type: schema.TypeString,
Computed: true,
},
"vpc_id": {
Type: schema.TypeString,
Computed: true,
},
"weight": {
Type: schema.TypeString,
Computed: true,
},
"zone_id_slave_one": {
Type: schema.TypeString,
Computed: true,
},
"zone_id_slave_two": {
Type: schema.TypeString,
Computed: true,
},
},
},
},
},
}
}