-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathschema_source_connector_attributes.go
164 lines (160 loc) · 4.49 KB
/
schema_source_connector_attributes.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
package main
import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)
// Schemas
func sourceConnectorAttributesFields() map[string]*schema.Schema {
s := map[string]*schema.Schema{
"grant_type": {
Type: schema.TypeString,
Optional: true,
Description: "Authentication grant type to use for communication to connected system",
},
"client_id": {
Type: schema.TypeString,
Optional: true,
Description: "Client id for the connector client credentials",
},
"client_secret": {
Type: schema.TypeString,
Optional: true,
Description: "Client id for the connector client credentials",
Sensitive: true,
},
"cloud_external_id": {
Type: schema.TypeString,
Computed: true,
Description: "Cloud external ID (related to the main id?)",
},
"domain_name": {
Type: schema.TypeString,
Optional: true,
Description: "Domain name for the connector client credentials",
},
"ms_graph_resource_base": {
Type: schema.TypeString,
Optional: true,
Description: "Base resource URL that is used for Microsoft Graph API REST calls",
},
"ms_graph_token_base": {
Type: schema.TypeString,
Optional: true,
Description: "Base token URL that is used to get access token for Microsoft Graph API REST calls",
},
"azure_ad_graph_resource_base": {
Type: schema.TypeString,
Optional: true,
Description: "Base resource URL that is used for Azure AD Graph API REST calls",
},
"azure_ad_graph_token_base": {
Type: schema.TypeString,
Optional: true,
Description: "Base token URL that is used to get an access token for Azure AD Graph API REST calls",
},
"iq_service_host": {
Type: schema.TypeString,
Optional: true,
Description: "IQService host url for on-prem Active Directory.",
},
"iq_service_port": {
Type: schema.TypeString,
Optional: true,
Description: "IQService port for on-prem Active Directory.",
},
"use_tls_for_iq_service": {
Type: schema.TypeBool,
Optional: true,
Description: "Use TLS for IQService for on-prem Active Directory.",
},
"iq_service_user": {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
Description: "Service Account username for IQService host.",
},
"iq_service_password": {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
Description: "Service Account password for IQService host.",
},
"forest_settings": {
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: sourceForestSettingsFields(),
},
},
"domain_settings": {
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: sourceDomainSettingsFields(),
},
},
"search_dns": {
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: sourceSearchDNsFields(),
},
},
"authorization_type": {
Type: schema.TypeString,
Optional: true,
Description: "Authorization type (none, simple, strong)",
},
"api_version": {
Type: schema.TypeString,
Optional: true,
Description: "Azure API version to use for Azure Active Directory connector",
},
"exclude_aws_account_id_list": {
Type: schema.TypeString,
Optional: true,
Description: "List of AWS account ids separated with comma to exclude from aggregation.",
},
"include_aws_account_id_list": {
Type: schema.TypeString,
Optional: true,
Description: "List of AWS account ids separated with comma to include in aggregation.",
},
"kid": {
Type: schema.TypeString,
Optional: true,
Description: "Access Key ID for AWS IAM service account.",
},
"secret": {
Type: schema.TypeString,
Optional: true,
Sensitive: true,
Description: "Secret Access Key for AWS IAM service account.",
},
"role_name": {
Type: schema.TypeString,
Optional: true,
Description: "Secret Access Key for AWS IAM service account.",
},
"manage_all_accounts_iam_data": {
Type: schema.TypeBool,
Optional: true,
Description: "True if IAM source is managing all iam users.",
},
"connector_class": {
Type: schema.TypeString,
Optional: true,
},
"encrypted": {
Type: schema.TypeString,
Optional: true,
},
"group_search_dns": {
Type: schema.TypeList,
Optional: true,
Elem: &schema.Resource{
Schema: sourceGroupSearchDNFields(),
},
},
}
return s
}