-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
registration.go
32 lines (27 loc) · 1.35 KB
/
registration.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package hdinsight
import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)
type Registration struct{}
// Name is the name of this Service
func (r Registration) Name() string {
return "HDInsight"
}
// SupportedDataSources returns the supported Data Sources supported by this Service
func (r Registration) SupportedDataSources() map[string]*schema.Resource {
return map[string]*schema.Resource{
"azurerm_hdinsight_cluster": dataSourceArmHDInsightSparkCluster(),
}
}
// SupportedResources returns the supported Resources supported by this Service
func (r Registration) SupportedResources() map[string]*schema.Resource {
return map[string]*schema.Resource{
"azurerm_hdinsight_hadoop_cluster": resourceArmHDInsightHadoopCluster(),
"azurerm_hdinsight_hbase_cluster": resourceArmHDInsightHBaseCluster(),
"azurerm_hdinsight_interactive_query_cluster": resourceArmHDInsightInteractiveQueryCluster(),
"azurerm_hdinsight_kafka_cluster": resourceArmHDInsightKafkaCluster(),
"azurerm_hdinsight_ml_services_cluster": resourceArmHDInsightMLServicesCluster(),
"azurerm_hdinsight_rserver_cluster": resourceArmHDInsightRServerCluster(),
"azurerm_hdinsight_spark_cluster": resourceArmHDInsightSparkCluster(),
"azurerm_hdinsight_storm_cluster": resourceArmHDInsightStormCluster()}
}