-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
registration.go
86 lines (75 loc) · 3.96 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package sentinel
import (
"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
"github.com/hashicorp/terraform-provider-azurerm/internal/tf/pluginsdk"
)
type Registration struct{}
var _ sdk.UntypedServiceRegistrationWithAGitHubLabel = Registration{}
func (r Registration) AssociatedGitHubLabel() string {
return "service/sentinel"
}
// Name is the name of this Service
func (r Registration) Name() string {
return "Sentinel"
}
// WebsiteCategories returns a list of categories which can be used for the sidebar
func (r Registration) WebsiteCategories() []string {
return []string{
"Sentinel",
}
}
// SupportedDataSources returns the supported Data Sources supported by this Service
func (r Registration) SupportedDataSources() map[string]*pluginsdk.Resource {
return map[string]*pluginsdk.Resource{
"azurerm_sentinel_alert_rule": dataSourceSentinelAlertRule(),
"azurerm_sentinel_alert_rule_template": dataSourceSentinelAlertRuleTemplate(),
}
}
// SupportedResources returns the supported Resources supported by this Service
func (r Registration) SupportedResources() map[string]*pluginsdk.Resource {
return map[string]*pluginsdk.Resource{
"azurerm_sentinel_alert_rule_fusion": resourceSentinelAlertRuleFusion(),
"azurerm_sentinel_alert_rule_machine_learning_behavior_analytics": resourceSentinelAlertRuleMLBehaviorAnalytics(),
"azurerm_sentinel_alert_rule_ms_security_incident": resourceSentinelAlertRuleMsSecurityIncident(),
"azurerm_sentinel_alert_rule_scheduled": resourceSentinelAlertRuleScheduled(),
"azurerm_sentinel_alert_rule_nrt": resourceSentinelAlertRuleNrt(),
"azurerm_sentinel_data_connector_aws_cloud_trail": resourceSentinelDataConnectorAwsCloudTrail(),
"azurerm_sentinel_data_connector_azure_active_directory": resourceSentinelDataConnectorAzureActiveDirectory(),
"azurerm_sentinel_data_connector_azure_advanced_threat_protection": resourceSentinelDataConnectorAzureAdvancedThreatProtection(),
"azurerm_sentinel_data_connector_azure_security_center": resourceSentinelDataConnectorAzureSecurityCenter(),
"azurerm_sentinel_data_connector_microsoft_cloud_app_security": resourceSentinelDataConnectorMicrosoftCloudAppSecurity(),
"azurerm_sentinel_data_connector_microsoft_defender_advanced_threat_protection": resourceSentinelDataConnectorMicrosoftDefenderAdvancedThreatProtection(),
"azurerm_sentinel_data_connector_office_365": resourceSentinelDataConnectorOffice365(),
"azurerm_sentinel_data_connector_office_atp": resourceSentinelDataConnectorOfficeATP(),
"azurerm_sentinel_data_connector_threat_intelligence": resourceSentinelDataConnectorThreatIntelligence(),
"azurerm_sentinel_automation_rule": resourceSentinelAutomationRule(),
}
}
func (r Registration) DataSources() []sdk.DataSource {
return []sdk.DataSource{
AlertRuleAnomalyDataSource{},
}
}
func (r Registration) Resources() []sdk.Resource {
return []sdk.Resource{
AlertRuleThreatIntelligenceResource{},
WatchlistResource{},
WatchlistItemResource{},
DataConnectorAwsS3Resource{},
DataConnectorMicrosoftThreatProtectionResource{},
DataConnectorIOTResource{},
DataConnectorDynamics365Resource{},
DataConnectorOffice365ProjectResource{},
DataConnectorOfficePowerBIResource{},
DataConnectorOfficeIRMResource{},
LogAnalyticsWorkspaceOnboardResource{},
DataConnectorThreatIntelligenceTAXIIResource{},
DataConnectorMicrosoftThreatIntelligenceResource{},
AlertRuleAnomalyBuiltInResource{},
MetadataResource{},
AlertRuleAnomalyDuplicateResource{},
ThreatIntelligenceIndicator{},
}
}