func dataSourceAliCloudAckNodepools()

in alicloud/data_source_alicloud_cs_kubernetes_node_pools.go [15:701]


func dataSourceAliCloudAckNodepools() *schema.Resource {
	return &schema.Resource{
		Read: dataSourceAliCloudAckNodepoolRead,
		Schema: map[string]*schema.Schema{
			"ids": {
				Type:     schema.TypeList,
				Optional: true,
				ForceNew: true,
				Elem:     &schema.Schema{Type: schema.TypeString},
				Computed: true,
			},
			"cluster_id": {
				Type:     schema.TypeString,
				Required: true,
				ForceNew: true,
			},
			"node_pool_name": {
				Type:     schema.TypeString,
				Optional: true,
				ForceNew: true,
			},
			"nodepools": {
				Type:     schema.TypeList,
				Computed: true,
				Elem: &schema.Resource{
					Schema: map[string]*schema.Schema{
						"node_pool_id": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"auto_renew": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"auto_renew_period": {
							Type:     schema.TypeInt,
							Computed: true,
						},
						"cis_enabled": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"compensate_with_on_demand": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"cpu_policy": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"data_disks": {
							Type:     schema.TypeList,
							Computed: true,
							Elem: &schema.Resource{
								Schema: map[string]*schema.Schema{
									"bursting_enabled": {
										Type:     schema.TypeBool,
										Computed: true,
									},
									"category": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"kms_key_id": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"performance_level": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"encrypted": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"size": {
										Type:     schema.TypeInt,
										Computed: true,
									},
									"device": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"auto_snapshot_policy_id": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"mount_target": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"auto_format": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"provisioned_iops": {
										Type:     schema.TypeInt,
										Computed: true,
									},
									"name": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"snapshot_id": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"file_system": {
										Type:     schema.TypeString,
										Computed: true,
									},
								},
							},
						},
						"deployment_set_id": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"desired_size": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"image_id": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"image_type": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"install_cloud_monitor": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"instance_charge_type": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"instance_types": {
							Type:     schema.TypeList,
							Computed: true,
							Elem:     &schema.Schema{Type: schema.TypeString},
						},
						"internet_charge_type": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"internet_max_bandwidth_out": {
							Type:     schema.TypeInt,
							Computed: true,
						},
						"key_name": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"kubelet_configuration": {
							Type:     schema.TypeList,
							Computed: true,
							MaxItems: 1,
							Elem: &schema.Resource{
								Schema: map[string]*schema.Schema{
									"cpu_manager_policy": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"allowed_unsafe_sysctls": {
										Type:     schema.TypeList,
										Computed: true,
										Elem:     &schema.Schema{Type: schema.TypeString},
									},
									"topology_manager_policy": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"pod_pids_limit": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"cpu_cfs_quota": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"serialize_image_pulls": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"kube_api_burst": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"cluster_dns": {
										Type:     schema.TypeList,
										Computed: true,
										Elem:     &schema.Schema{Type: schema.TypeString},
									},
									"system_reserved": {
										Type:     schema.TypeMap,
										Computed: true,
									},
									"feature_gates": {
										Type:     schema.TypeMap,
										Computed: true,
									},
									"registry_burst": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"read_only_port": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"registry_pull_qps": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"reserved_memory": {
										Type:     schema.TypeList,
										Computed: true,
										Elem: &schema.Resource{
											Schema: map[string]*schema.Schema{
												"limits": {
													Type:     schema.TypeMap,
													Computed: true,
												},
												"numa_node": {
													Type:     schema.TypeInt,
													Computed: true,
												},
											},
										},
									},
									"container_log_monitor_interval": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"container_log_max_workers": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"event_burst": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"image_gc_high_threshold_percent": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"eviction_soft_grace_period": {
										Type:     schema.TypeMap,
										Computed: true,
									},
									"image_gc_low_threshold_percent": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"memory_manager_policy": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"cpu_cfs_quota_period": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"eviction_soft": {
										Type:     schema.TypeMap,
										Computed: true,
									},
									"event_record_qps": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"kube_reserved": {
										Type:     schema.TypeMap,
										Computed: true,
									},
									"max_pods": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"container_log_max_files": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"eviction_hard": {
										Type:     schema.TypeMap,
										Computed: true,
									},
									"tracing": {
										Type:     schema.TypeList,
										Computed: true,
										MaxItems: 1,
										Elem: &schema.Resource{
											Schema: map[string]*schema.Schema{
												"sampling_rate_per_million": {
													Type:     schema.TypeString,
													Computed: true,
												},
												"endpoint": {
													Type:     schema.TypeString,
													Computed: true,
												},
											},
										},
									},
									"container_log_max_size": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"kube_api_qps": {
										Type:     schema.TypeString,
										Computed: true,
									},
								},
							},
						},
						"labels": {
							Type:     schema.TypeList,
							Computed: true,
							Elem: &schema.Resource{
								Schema: map[string]*schema.Schema{
									"value": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"key": {
										Type:     schema.TypeString,
										Computed: true,
									},
								},
							},
						},
						"login_as_non_root": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"management": {
							Type:     schema.TypeList,
							Computed: true,
							MaxItems: 1,
							Elem: &schema.Resource{
								Schema: map[string]*schema.Schema{
									"auto_upgrade_policy": {
										Type:     schema.TypeList,
										Computed: true,
										MaxItems: 1,
										Elem: &schema.Resource{
											Schema: map[string]*schema.Schema{
												"auto_upgrade_kubelet": {
													Type:     schema.TypeBool,
													Computed: true,
												},
											},
										},
									},
									"auto_repair": {
										Type:     schema.TypeBool,
										Computed: true,
									},
									"auto_upgrade": {
										Type:     schema.TypeBool,
										Computed: true,
									},
									"surge_percentage": {
										Type:     schema.TypeInt,
										Computed: true,
									},
									"surge": {
										Type:     schema.TypeInt,
										Computed: true,
									},
									"auto_vul_fix_policy": {
										Type:     schema.TypeList,
										Computed: true,
										MaxItems: 1,
										Elem: &schema.Resource{
											Schema: map[string]*schema.Schema{
												"restart_node": {
													Type:     schema.TypeBool,
													Computed: true,
												},
												"vul_level": {
													Type:     schema.TypeString,
													Computed: true,
												},
											},
										},
									},
									"enable": {
										Type:     schema.TypeBool,
										Computed: true,
									},
									"auto_repair_policy": {
										Type:     schema.TypeList,
										Computed: true,
										MaxItems: 1,
										Elem: &schema.Resource{
											Schema: map[string]*schema.Schema{
												"restart_node": {
													Type:     schema.TypeBool,
													Computed: true,
												},
											},
										},
									},
									"auto_vul_fix": {
										Type:     schema.TypeBool,
										Computed: true,
									},
									"max_unavailable": {
										Type:     schema.TypeInt,
										Computed: true,
									},
								},
							},
						},
						"multi_az_policy": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"node_name_mode": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"node_pool_name": {
							Type:         schema.TypeString,
							ExactlyOneOf: []string{},
							Computed:     true,
						},
						"on_demand_base_capacity": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"on_demand_percentage_above_base_capacity": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"password": {
							Type:      schema.TypeString,
							Computed:  true,
							Sensitive: true,
						},
						"period": {
							Type:     schema.TypeInt,
							Computed: true,
						},
						"period_unit": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"platform": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"pre_user_data": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"private_pool_options": {
							Type:     schema.TypeList,
							Computed: true,
							MaxItems: 1,
							Elem: &schema.Resource{
								Schema: map[string]*schema.Schema{
									"private_pool_options_match_criteria": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"private_pool_options_id": {
										Type:     schema.TypeString,
										Computed: true,
									},
								},
							},
						},
						"ram_role_name": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"rds_instances": {
							Type:     schema.TypeList,
							Computed: true,
							Elem:     &schema.Schema{Type: schema.TypeString},
						},
						"resource_group_id": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"runtime_name": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"runtime_version": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"scaling_config": {
							Type:     schema.TypeList,
							Computed: true,
							MaxItems: 1,
							Elem: &schema.Resource{
								Schema: map[string]*schema.Schema{
									"min_size": {
										Type:     schema.TypeInt,
										Computed: true,
									},
									"type": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"eip_bandwidth": {
										Type:     schema.TypeInt,
										Computed: true,
									},
									"is_bond_eip": {
										Type:     schema.TypeBool,
										Computed: true,
									},
									"enable": {
										Type:     schema.TypeBool,
										Computed: true,
									},
									"max_size": {
										Type:     schema.TypeInt,
										Computed: true,
									},
									"eip_internet_charge_type": {
										Type:     schema.TypeString,
										Computed: true,
									},
								},
							},
						},
						"scaling_group_id": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"scaling_policy": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"security_group_id": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"security_group_ids": {
							Type:     schema.TypeList,
							Computed: true,
							Elem:     &schema.Schema{Type: schema.TypeString},
						},
						"security_hardening_os": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"soc_enabled": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"spot_instance_pools": {
							Type:     schema.TypeInt,
							Computed: true,
						},
						"spot_instance_remedy": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"spot_price_limit": {
							Type:     schema.TypeList,
							Computed: true,
							Elem: &schema.Resource{
								Schema: map[string]*schema.Schema{
									"price_limit": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"instance_type": {
										Type:     schema.TypeString,
										Computed: true,
									},
								},
							},
						},
						"spot_strategy": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"system_disk_bursting_enabled": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"system_disk_categories": {
							Type:     schema.TypeList,
							Computed: true,
							Elem:     &schema.Schema{Type: schema.TypeString},
						},
						"system_disk_category": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"system_disk_encrypt_algorithm": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"system_disk_encrypted": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"system_disk_kms_key": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"system_disk_performance_level": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"system_disk_provisioned_iops": {
							Type:     schema.TypeInt,
							Computed: true,
						},
						"system_disk_size": {
							Type:     schema.TypeInt,
							Computed: true,
						},
						"system_disk_snapshot_policy_id": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"tags": {
							Type:     schema.TypeMap,
							Computed: true,
						},
						"taints": {
							Type:     schema.TypeList,
							Computed: true,
							Elem: &schema.Resource{
								Schema: map[string]*schema.Schema{
									"value": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"effect": {
										Type:     schema.TypeString,
										Computed: true,
									},
									"key": {
										Type:     schema.TypeString,
										Computed: true,
									},
								},
							},
						},
						"tee_config": {
							Type:     schema.TypeList,
							Computed: true,
							MaxItems: 1,
							Elem: &schema.Resource{
								Schema: map[string]*schema.Schema{
									"tee_enable": {
										Type:     schema.TypeBool,
										Computed: true,
									},
								},
							},
						},
						"unschedulable": {
							Type:     schema.TypeBool,
							Computed: true,
						},
						"user_data": {
							Type:     schema.TypeString,
							Computed: true,
						},
						"vswitch_ids": {
							Type:     schema.TypeList,
							Computed: true,
							Elem:     &schema.Schema{Type: schema.TypeString},
						},
					},
				},
			},
			"output_file": {
				Type:     schema.TypeString,
				Optional: true,
				ForceNew: true,
			},
		},
	}
}