generated from pulumi/pulumi-tf-provider-boilerplate
/
getOrgIdpLdap.go
316 lines (272 loc) · 12.3 KB
/
getOrgIdpLdap.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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package zitadel
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel/internal"
)
// Datasource representing an LDAP IdP on the organization.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _, err := zitadel.LookupOrgIdpLdap(ctx, &zitadel.LookupOrgIdpLdapArgs{
// OrgId: pulumi.StringRef(data.Zitadel_org.Default.Id),
// Id: "123456789012345678",
// }, nil)
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
func LookupOrgIdpLdap(ctx *pulumi.Context, args *LookupOrgIdpLdapArgs, opts ...pulumi.InvokeOption) (*LookupOrgIdpLdapResult, error) {
opts = internal.PkgInvokeDefaultOpts(opts)
var rv LookupOrgIdpLdapResult
err := ctx.Invoke("zitadel:index/getOrgIdpLdap:getOrgIdpLdap", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
// A collection of arguments for invoking getOrgIdpLdap.
type LookupOrgIdpLdapArgs struct {
// The ID of this resource.
Id string `pulumi:"id"`
// ID of the organization
OrgId *string `pulumi:"orgId"`
}
// A collection of values returned by getOrgIdpLdap.
type LookupOrgIdpLdapResult struct {
// User attribute for the avatar url
AvatarUrlAttribute string `pulumi:"avatarUrlAttribute"`
// Base DN for LDAP connections
BaseDn string `pulumi:"baseDn"`
// Bind DN for LDAP connections
BindDn string `pulumi:"bindDn"`
// Bind password for LDAP connections
BindPassword string `pulumi:"bindPassword"`
// User attribute for the display name
DisplayNameAttribute string `pulumi:"displayNameAttribute"`
// User attribute for the email
EmailAttribute string `pulumi:"emailAttribute"`
// User attribute for the email verified state
EmailVerifiedAttribute string `pulumi:"emailVerifiedAttribute"`
// User attribute for the first name
FirstNameAttribute string `pulumi:"firstNameAttribute"`
// The ID of this resource.
Id string `pulumi:"id"`
// User attribute for the id
IdAttribute string `pulumi:"idAttribute"`
// enabled if a new account in ZITADEL are created automatically on login with an external account
IsAutoCreation bool `pulumi:"isAutoCreation"`
// enabled if a the ZITADEL account fields are updated automatically on each login
IsAutoUpdate bool `pulumi:"isAutoUpdate"`
// enabled if users are able to create a new account in ZITADEL when using an external account
IsCreationAllowed bool `pulumi:"isCreationAllowed"`
// enabled if users are able to link an existing ZITADEL user with an external account
IsLinkingAllowed bool `pulumi:"isLinkingAllowed"`
// User attribute for the last name
LastNameAttribute string `pulumi:"lastNameAttribute"`
// Name of the IDP
Name string `pulumi:"name"`
// User attribute for the nick name
NickNameAttribute string `pulumi:"nickNameAttribute"`
// ID of the organization
OrgId *string `pulumi:"orgId"`
// User attribute for the phone
PhoneAttribute string `pulumi:"phoneAttribute"`
// User attribute for the phone verified state
PhoneVerifiedAttribute string `pulumi:"phoneVerifiedAttribute"`
// User attribute for the preferred language
PreferredLanguageAttribute string `pulumi:"preferredLanguageAttribute"`
// User attribute for the preferred username
PreferredUsernameAttribute string `pulumi:"preferredUsernameAttribute"`
// User attribute for the profile
ProfileAttribute string `pulumi:"profileAttribute"`
// Servers to try in order for establishing LDAP connections
Servers []string `pulumi:"servers"`
// Wether to use StartTLS for LDAP connections
StartTls bool `pulumi:"startTls"`
// Timeout for LDAP connections
Timeout string `pulumi:"timeout"`
// User base for LDAP connections
UserBase string `pulumi:"userBase"`
// User filters for LDAP connections
UserFilters []string `pulumi:"userFilters"`
// User object classes for LDAP connections
UserObjectClasses []string `pulumi:"userObjectClasses"`
}
func LookupOrgIdpLdapOutput(ctx *pulumi.Context, args LookupOrgIdpLdapOutputArgs, opts ...pulumi.InvokeOption) LookupOrgIdpLdapResultOutput {
return pulumi.ToOutputWithContext(context.Background(), args).
ApplyT(func(v interface{}) (LookupOrgIdpLdapResult, error) {
args := v.(LookupOrgIdpLdapArgs)
r, err := LookupOrgIdpLdap(ctx, &args, opts...)
var s LookupOrgIdpLdapResult
if r != nil {
s = *r
}
return s, err
}).(LookupOrgIdpLdapResultOutput)
}
// A collection of arguments for invoking getOrgIdpLdap.
type LookupOrgIdpLdapOutputArgs struct {
// The ID of this resource.
Id pulumi.StringInput `pulumi:"id"`
// ID of the organization
OrgId pulumi.StringPtrInput `pulumi:"orgId"`
}
func (LookupOrgIdpLdapOutputArgs) ElementType() reflect.Type {
return reflect.TypeOf((*LookupOrgIdpLdapArgs)(nil)).Elem()
}
// A collection of values returned by getOrgIdpLdap.
type LookupOrgIdpLdapResultOutput struct{ *pulumi.OutputState }
func (LookupOrgIdpLdapResultOutput) ElementType() reflect.Type {
return reflect.TypeOf((*LookupOrgIdpLdapResult)(nil)).Elem()
}
func (o LookupOrgIdpLdapResultOutput) ToLookupOrgIdpLdapResultOutput() LookupOrgIdpLdapResultOutput {
return o
}
func (o LookupOrgIdpLdapResultOutput) ToLookupOrgIdpLdapResultOutputWithContext(ctx context.Context) LookupOrgIdpLdapResultOutput {
return o
}
func (o LookupOrgIdpLdapResultOutput) ToOutput(ctx context.Context) pulumix.Output[LookupOrgIdpLdapResult] {
return pulumix.Output[LookupOrgIdpLdapResult]{
OutputState: o.OutputState,
}
}
// User attribute for the avatar url
func (o LookupOrgIdpLdapResultOutput) AvatarUrlAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.AvatarUrlAttribute }).(pulumi.StringOutput)
}
// Base DN for LDAP connections
func (o LookupOrgIdpLdapResultOutput) BaseDn() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.BaseDn }).(pulumi.StringOutput)
}
// Bind DN for LDAP connections
func (o LookupOrgIdpLdapResultOutput) BindDn() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.BindDn }).(pulumi.StringOutput)
}
// Bind password for LDAP connections
func (o LookupOrgIdpLdapResultOutput) BindPassword() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.BindPassword }).(pulumi.StringOutput)
}
// User attribute for the display name
func (o LookupOrgIdpLdapResultOutput) DisplayNameAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.DisplayNameAttribute }).(pulumi.StringOutput)
}
// User attribute for the email
func (o LookupOrgIdpLdapResultOutput) EmailAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.EmailAttribute }).(pulumi.StringOutput)
}
// User attribute for the email verified state
func (o LookupOrgIdpLdapResultOutput) EmailVerifiedAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.EmailVerifiedAttribute }).(pulumi.StringOutput)
}
// User attribute for the first name
func (o LookupOrgIdpLdapResultOutput) FirstNameAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.FirstNameAttribute }).(pulumi.StringOutput)
}
// The ID of this resource.
func (o LookupOrgIdpLdapResultOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.Id }).(pulumi.StringOutput)
}
// User attribute for the id
func (o LookupOrgIdpLdapResultOutput) IdAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.IdAttribute }).(pulumi.StringOutput)
}
// enabled if a new account in ZITADEL are created automatically on login with an external account
func (o LookupOrgIdpLdapResultOutput) IsAutoCreation() pulumi.BoolOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) bool { return v.IsAutoCreation }).(pulumi.BoolOutput)
}
// enabled if a the ZITADEL account fields are updated automatically on each login
func (o LookupOrgIdpLdapResultOutput) IsAutoUpdate() pulumi.BoolOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) bool { return v.IsAutoUpdate }).(pulumi.BoolOutput)
}
// enabled if users are able to create a new account in ZITADEL when using an external account
func (o LookupOrgIdpLdapResultOutput) IsCreationAllowed() pulumi.BoolOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) bool { return v.IsCreationAllowed }).(pulumi.BoolOutput)
}
// enabled if users are able to link an existing ZITADEL user with an external account
func (o LookupOrgIdpLdapResultOutput) IsLinkingAllowed() pulumi.BoolOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) bool { return v.IsLinkingAllowed }).(pulumi.BoolOutput)
}
// User attribute for the last name
func (o LookupOrgIdpLdapResultOutput) LastNameAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.LastNameAttribute }).(pulumi.StringOutput)
}
// Name of the IDP
func (o LookupOrgIdpLdapResultOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.Name }).(pulumi.StringOutput)
}
// User attribute for the nick name
func (o LookupOrgIdpLdapResultOutput) NickNameAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.NickNameAttribute }).(pulumi.StringOutput)
}
// ID of the organization
func (o LookupOrgIdpLdapResultOutput) OrgId() pulumi.StringPtrOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) *string { return v.OrgId }).(pulumi.StringPtrOutput)
}
// User attribute for the phone
func (o LookupOrgIdpLdapResultOutput) PhoneAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.PhoneAttribute }).(pulumi.StringOutput)
}
// User attribute for the phone verified state
func (o LookupOrgIdpLdapResultOutput) PhoneVerifiedAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.PhoneVerifiedAttribute }).(pulumi.StringOutput)
}
// User attribute for the preferred language
func (o LookupOrgIdpLdapResultOutput) PreferredLanguageAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.PreferredLanguageAttribute }).(pulumi.StringOutput)
}
// User attribute for the preferred username
func (o LookupOrgIdpLdapResultOutput) PreferredUsernameAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.PreferredUsernameAttribute }).(pulumi.StringOutput)
}
// User attribute for the profile
func (o LookupOrgIdpLdapResultOutput) ProfileAttribute() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.ProfileAttribute }).(pulumi.StringOutput)
}
// Servers to try in order for establishing LDAP connections
func (o LookupOrgIdpLdapResultOutput) Servers() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) []string { return v.Servers }).(pulumi.StringArrayOutput)
}
// Wether to use StartTLS for LDAP connections
func (o LookupOrgIdpLdapResultOutput) StartTls() pulumi.BoolOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) bool { return v.StartTls }).(pulumi.BoolOutput)
}
// Timeout for LDAP connections
func (o LookupOrgIdpLdapResultOutput) Timeout() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.Timeout }).(pulumi.StringOutput)
}
// User base for LDAP connections
func (o LookupOrgIdpLdapResultOutput) UserBase() pulumi.StringOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) string { return v.UserBase }).(pulumi.StringOutput)
}
// User filters for LDAP connections
func (o LookupOrgIdpLdapResultOutput) UserFilters() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) []string { return v.UserFilters }).(pulumi.StringArrayOutput)
}
// User object classes for LDAP connections
func (o LookupOrgIdpLdapResultOutput) UserObjectClasses() pulumi.StringArrayOutput {
return o.ApplyT(func(v LookupOrgIdpLdapResult) []string { return v.UserObjectClasses }).(pulumi.StringArrayOutput)
}
func init() {
pulumi.RegisterOutputType(LookupOrgIdpLdapResultOutput{})
}